Skip to content

Releases: deterministic-agents/gate-python

gate-python v1.1.0

Choose a tag to compare

@andrewjstevens andrewjstevens released this 16 Jun 17:53
20012eb

gate-python v1.1.0

Compatible with GATE v1.3. Adds three new modules:

  • gate.discovery - constructors for the C17 agent.discovered and
    agent.remediation_outcome events.
  • gate.memory.quality - C18 quality gate evaluation (freshness,
    confidence, provenance) and event constructor. All evaluation
    functions are pure.
  • gate.assurance.behaviour - C19 drift_decision and
    response_action event constructors, baseline currency check, and
    an optional scipy-backed KS / chi-square drift score.

gate/schemas/ now bundles the gate-contracts v1.1.0 schemas with a
signed MANIFEST.yaml. gate.validation.GATEValidator gains six new
validate_* methods for the new event types.

Also fixes a pre-existing bug in gate.ledger.LedgerChain: invalid
retention_class now raises ValueError at construction time
instead of at first append.

Install

pip install gate-python==1.1.0
# or from source
git clone --branch v1.1.0 https://github.com/deterministic-agents/gate-python
cd gate-python && pip install -e .

Compatibility

  • GATE framework: v1.3
  • gate-contracts: v1.1.0 (or v1.1.1 - schema files are byte-identical)
  • Python: 3.10+
  • Optional: scipy for gate.assurance.behaviour.compute_drift_score

gate-python v1.0.0

Choose a tag to compare

@andrewjstevens andrewjstevens released this 23 Apr 12:50
62729fa

Initial release of the GATE Python reference library.

Modules:

  • gate.hashing - canonical JSON (RFC 8785) and SHA-256 hashing
  • gate.envelopes - ToolRequestEnvelope and ToolResponseEnvelope
  • gate.ledger - hash-chained LedgerEvent construction and chain verification
  • gate.replay - ReplayTrace construction and step recording
  • gate.signing - ES256 action signing and verification
  • gate.validation - JSON Schema validation (bundled gate-contracts v1.0.0)

Includes 3 runnable examples and 70+ tests.

Requirements: cryptography>=42.0.0 (jsonschema>=4.21.0 optional for validation)

Depends on: gate-contracts v1.0.0 (schemas bundled in gate/schemas/)

SHA-256: 1cc2cafce8b9abee3df61538f4625270378a4ee8f9aa29b0b6879573db00d8dc GATE-python-v1.0.zip