Skip to content

cayu.egress.capabilities

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu.egress import EGRESS_CAPABILITY_EVIDENCE_SCHEMA
EGRESS_CAPABILITY_EVIDENCE_SCHEMA = 'cayu.egress_capabilities.v1'

Release source · Runtime guarantees · Capability guides

from cayu.egress import EgressCapabilityClaim

One bounded, secret-safe runtime capability observation.

Bases: CapabilityClaimBase.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
capability CapabilityIdentity required
adapter_details tuple[CapabilityDetail, ...] Field(default_factory=tuple, max_length=MAX_CAPABILITY_DETAILS)
state EgressCapabilityClaimState required
proof_source EgressCapabilityProofSource required
observation EgressCapabilityObservation | None None
reason_code EgressCapabilityReasonCode | None None
remediation_code EgressCapabilityRemediationCode | None None
EgressCapabilityClaim.validate_detail_names() -> Self
EgressCapabilityClaim.validate_state_fields() -> Self

Release source · Runtime guarantees · Capability guides

from cayu.egress import EgressCapabilityDetail
EgressCapabilityDetail = CapabilityDetail

Release source · Runtime guarantees · Capability guides

from cayu.egress import EgressCapabilityEvidence

Versioned runtime proof published by one virtual-egress adapter.

Bases: BaseModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal['cayu.egress_capabilities.v1'] Field(default=EGRESS_CAPABILITY_EVIDENCE_SCHEMA, alias='schema')
adapter EvidenceIdentity required
claims tuple[EgressCapabilityClaim, ...] Field(default_factory=tuple, max_length=MAX_EGRESS_CAPABILITY_CLAIMS)
unclaimed_reason_code EgressUnclaimedReasonCode | None None
EgressCapabilityEvidence.validate_claims() -> Self
EgressCapabilityEvidence.unclaimed(adapter: str, *, reason_code: EgressUnclaimedReasonCode='adapter_capabilities_unclaimed') -> EgressCapabilityEvidence
EgressCapabilityEvidence.claim_for(capability: str) -> EgressCapabilityClaim | None
EgressCapabilityEvidence.state_for(capability: str) -> EgressCapabilityState
EgressCapabilityEvidence.to_metadata() -> dict[str, object]

Release source · Runtime guarantees · Capability guides

from cayu.egress import EgressCapabilityState
EgressCapabilityState = Literal['verified', 'unverified', 'unsupported', 'unclaimed']

Release source · Runtime guarantees · Capability guides