Commit 89da01b
Freeze gating contract and ship minimal runner (#11)
Add the gating-contract crate which formalizes the policy enforcement
contract with:
- Inputs: GatingRequest with proposal, context, and metadata
- Outputs: GatingDecision with verdict, refusal details, evaluations
- Refusal Taxonomy: 11 categories with 25+ specific refusal codes
- Language violations (100-199)
- Toolchain violations (200-299)
- Security violations (300-399)
- Pattern violations (400-499)
- Spirit violations (500-599)
- System errors (900-999)
- Audit Log: AuditEntry with full decision traceability
- Minimal Runner: ContractRunner and TestHarness for validation
CLI additions:
- conative contract schema: Display contract specification
- conative contract test: Run tests from training data
- conative contract eval: Evaluate gating requests with audit output
All 8 contract unit tests pass. Test harness exposes known Oracle
limitations (marker-based detection has false positives for TypeScript
and Python markers in Rust/Elixir code).
Co-authored-by: Claude <[email protected]>1 parent f02ddd2 commit 89da01b
File tree
5 files changed
+2756
-1
lines changed- src
- contract
- src
5 files changed
+2756
-1
lines changed
0 commit comments