Public contracts¶
contracts
¶
AmbiguousIdentityError
¶
Bases: PublicSchemaValidationError
Raised when records cannot be associated with one unambiguous identity.
EvidenceCompatibilityError
¶
Bases: PublicSchemaValidationError
Raised when a computed metric uses an incompatible evidence regime.
MetricRecordValidationError
¶
Bases: PublicSchemaValidationError
Raised when a metric value or state contradicts its catalog definition.
PublicContractError
¶
PublicSchemaValidationError
¶
Bases: PublicContractError
Raised when a public record or bundle violates the schema.
PublicSerializationError
¶
RunnerProvenanceError
¶
ScreenExecutionCardinalityError
¶
Bases: ScreenOutputNormalizationError
Raised when observed Screen output contradicts its execution matrix.
ScreenOutputNormalizationError
¶
Bases: PublicContractError
Raised when child output cannot be mapped to planned Screen executions.
SeedResolutionError
¶
UnregisteredMetricError
¶
Bases: PublicSchemaValidationError
Raised when a metric is absent from the public catalog.
WorkflowExecutionError
¶
Bases: RuntimeError
Raised after a workflow has persisted a terminal failure bundle.
Source code in src/cofolder/modules/contracts/models.py
read_public_records
¶
Read typed public records from a records.jsonl file.
Source code in src/cofolder/modules/contracts/serialization.py
record_from_dict
¶
Deserialize and validate one flattened public JSONL record.