Reference Python library for GATE v1.4 control-plane contracts.
GATE (Governed Agent Trust Environment) is the deterministic-agents framework for governing autonomous AI agents. This library is the reference implementation of the GATE contract surface: canonical hashing, envelopes, hash-chained ledger events, replay traces, signing, and JSON Schema validation for every contract type the framework defines.
- Library version: 1.2.0
- GATE framework version: 1.4
- Schemas: gate-contracts v1.2.0 (bundled under
gate/schemas/)
PyPI publication is deferred to gate-python v1.3 (GATE v1.5). For v1.4, install from the tagged git ref:
pip install git+https://github.com/deterministic-agents/gate-python.git@v1.2.0
Optional extras:
gate-python[assurance]adds scipy for the C19 drift-score helper.gate-python[dev]adds pytest and scipy for the full test suite.
gate.hashingCanonical JSON serialisation and SHA-256 hashinggate.envelopesTool request and response envelope constructiongate.ledgerHash-chained audit ledger event construction and verificationgate.replayReplay trace construction and step recordinggate.signingES256 action signing and signature verificationgate.validationJSON Schema validation for all GATE contract typesgate.discoveryC17 agent discovery event buildersgate.memory.qualityC18 quality gate evaluation and event buildergate.assurance.behaviourC19 drift detection event buildersgate.outputC20 output classification event builder and matrix (new in v1.4)gate.invariants.break_glassC09 break-glass record builder and verifier (new in v1.4)
gate.outputfor the C20 output classification surfacegate.invariants.break_glassfor the C09 contracted break-glass record- Four new schemas bundled under
gate/schemas/:output_classification_event,break_glass_record,auto_enrolment_policy,approved_feed_registry - Three extended schemas:
agent_statev1.2.0,abomv1.2.0,quality_decisionv1.2.0 - Four new validators on
gate.validation gate/test_vectors/canonical_json_vectors.jsonas the cross-language hash-compatibility source consumed by gate-rust
See CHANGELOG-v1.2.0.md for the full release entry.
Framework and contract documentation: https://deterministicagents.ai/
License: MIT (see LICENSE).