Skip to content

shield.contracts

shield.contracts

CertifiedContractProfile dataclass

Bases: Generic[EnvState]

Contract profile together with its certificate artifacts and masks.

ContractCandidateEnumeration dataclass

Generated local-obligation candidates and their assignable agent scopes.

ContractCertificationError

Bases: ContractError

Raised when a contract profile cannot be certified.

ContractError

Bases: RuntimeError

Base error for contract-profile synthesis and certification.

ContractLibrary dataclass

Bases: Generic[EnvState]

Finite ordered library of certified contract profiles available to learning.

ContractProfile dataclass

Tuple of per-agent local obligations, also called a SafeLTL contract.

ContractSynthesisConfig dataclass

Configuration for bounded local-obligation search and certification.

LocalObligationCandidate dataclass

Candidate SafeLTL formula that may become one agent's local obligation.

enumerate_contract_local_obligation_candidates(model, *, global_formula, config=None, helper=None, backend=None)

Enumerate generated contract obligations using the library-builder scopes.