How diego-lee-24/ancla-inspection-contract works
This is a minimal Python contract example for an industrial-inspection system, not the full inspection product: it contains no model inference, database, or manufacturing data. Its principal workflow creates an immutable inspection from synthetic scores and a policy snapshot, then serializes and can re-read that record, including records without historical policy lineage. A separate explanation step returns its own result, so explanation failure does not alter the judgment. Relationships shown here are documented in the README; the implementation source was not sampled.
Main entry points: inspection.py Immutable inspection
Components 8
Other components
- Scores + policy
- Judge inspection
examples/inspection-contract/inspection.py - Immutable inspection
examples/inspection-contract/inspection.py - Serialize record
examples/inspection-contract/inspection.py - Historical re-read
examples/inspection-contract/inspection.py - Explain separately
examples/inspection-contract/inspection.py - Explanation result
examples/inspection-contract/inspection.py - Fallback + review
examples/inspection-contract/inspection.py
Connections 7
- Scores + policy → Judge inspection: judges from
README.md - Judge inspection → Immutable inspection: creates
README.md - Immutable inspection → Serialize record: serializes
README.md - Serialize record → Historical re-read: re-reads
README.md - Immutable inspection → Explain separately: explains separately
README.md - Explain separately → Explanation result: returns success
README.md - Explain separately → Fallback + review: returns fallback
README.md