Skip to content

cayu.collaboration.releases

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.collaboration import ContentExposure

A declared input occurrence; its release owner must authenticate provenance.

Bases: ContractValue.

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
source ObjectRef required
channel InputChannel required
commitment ContentDigest required
ContentExposure.bounded_input(value: object) -> Any
ContentExposure.immutable_fields() -> ContractValue
ContentExposure.pinned_source() -> ContentExposure

Release source · Runtime guarantees · Capability guides

from cayu.collaboration import ContentReleaseExpectation

Complete release input resolved by the source owner, without draft bytes.

Bases: ContractValue.

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
request ContentReleaseRequest required
source_owner OwnerRef required
session_id Identifier required
session_instance_id Identifier required
source_indices tuple[ReleaseSourceIndex, ...] Field(max_length=16)
audience OwnerRef required
validator ObjectRef required
policy ObjectRef required
ContentReleaseExpectation.bounded_input(value: object) -> Any
ContentReleaseExpectation.immutable_fields() -> ContractValue
ContentReleaseExpectation.exact_selection() -> ContentReleaseExpectation

Release source · Runtime guarantees · Capability guides

from cayu.collaboration import ContentReleaseReader

Bases: ABC.

ContentReleaseReader.ref() -> ObjectRef

Exact versioned registered decision-reader/validator configuration.

ContentReleaseReader.acquire(expected: ContentReleaseExpectation) -> AbstractAsyncContextManager[ReleasedContent]

Authenticate exact reviewed bytes and all exposure/source authority.

This must load positive review evidence from its application-owned source, not echo a caller proposal as approval. Hold current revocation through publication/exposure. Failure or missing evidence must refuse. No model calls, implicit review, semantic DLP promise or mutable regeneration.

Release source · Runtime guarantees · Capability guides

from cayu.collaboration import ContentReleaseReceipt

Historical authenticated review evidence; no current disclosure grant.

Bases: ContractValue.

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
expected ContentReleaseExpectation required
reviewer InitiatorBinding required
authorization_revision Generation required
expires_at_ms Expiry required
ContentReleaseReceipt.bounded_input(value: object) -> Any
ContentReleaseReceipt.immutable_fields() -> ContractValue
ContentReleaseReceipt.exact_issuer() -> ContentReleaseReceipt

Release source · Runtime guarantees · Capability guides

from cayu.collaboration import ContentReleaseRequest

Public reference to an approval, not an approval or bearer capability.

Bases: ContractValue.

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
unordered_fields class attribute frozenset({'exposure'})
decision ObjectRef required
source_commitment ContentDigest required
text_commitment ContentDigest required
exposure tuple[ContentExposure, ...] Field(max_length=16)
ContentReleaseRequest.bounded_input(value: object) -> Any
ContentReleaseRequest.immutable_fields() -> ContractValue
ContentReleaseRequest.pinned_decision() -> ContentReleaseRequest

Release source · Runtime guarantees · Capability guides

from cayu.collaboration import ReleasedContent

Bases: ContractValue.

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
receipt ContentReleaseReceipt required
text Annotated[StrictStr, Field(max_length=8192)] required
ReleasedContent.bounded_input(value: object) -> Any
ReleasedContent.immutable_fields() -> ContractValue

Release source · Runtime guarantees · Capability guides