Behavioral Contracts
Overview
Core Concepts
Immutability and Versioning
from nomotic import BehavioralContract, ContractStore
store = ContractStore()
store.store(contract_v1) # version=1
store.store(contract_v2) # version=2, must be > 1
active = store.get_active("agent-1") # returns v2
v1 = store.get_version("agent-1", 1) # returns v1
history = store.get_history("agent-1") # returns [v1, v2]Cryptographic Sealing
Contract Generation
Runtime Integration
Drift Threshold Enforcement
Configuration
API Endpoints
Method
Path
Description
POST /v1/contracts
GET /v1/contracts/{agent_id}/diff?v1=1&v2=2
CLI Commands
Contract Fields Reference
Field
Type
Description
Drift Threshold Keys
Key
Distribution
What It Measures
Example: Full Lifecycle
Last updated

