socioverse.validation — strict hand-offs¶
Every stage boundary loads its input through validate_handoff and writes
its output through write_artifact — malformed artifacts fail at the gate.
socioverse.validation ¶
The single chokepoint that makes 'skills pass only typed artifacts' literally true.
Every workflow skill loads its input via validate_handoff(path, Schema) and writes its output via write_artifact(path, model). A half-formed dict cannot cross a stage boundary: if the artifact does not satisfy the contract, the pipeline stops here with a typed error.
HandoffError ¶
Bases: Exception
Raised when an inter-skill artifact is missing, unparseable, or off-contract.
validate_handoff ¶
Load + validate a workspace artifact against its schema. Raises HandoffError.
Source code in socioverse/validation.py
write_artifact ¶
Serialize a validated model to a workspace artifact (creates parent dirs).