cayu.delivery.github
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.
approve_github_delivery
Section titled “approve_github_delivery”from cayu.delivery import approve_github_deliveryapprove_github_delivery(request: GitHubPullRequestDeliveryRequest, *, approval_id: str) -> GitHubDeliveryApprovalRelease source · Runtime guarantees · Capability guides
github_connector_behavior_fingerprint
Section titled “github_connector_behavior_fingerprint”from cayu.delivery import github_connector_behavior_fingerprintgithub_connector_behavior_fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GITHUB_DELIVERY_RESULT_KIND
Section titled “GITHUB_DELIVERY_RESULT_KIND”from cayu.delivery import GITHUB_DELIVERY_RESULT_KINDGITHUB_DELIVERY_RESULT_KIND = 'github_pull_request_delivery_result'Release source · Runtime guarantees · Capability guides
GITHUB_DELIVERY_SCHEMA_VERSION
Section titled “GITHUB_DELIVERY_SCHEMA_VERSION”from cayu.delivery import GITHUB_DELIVERY_SCHEMA_VERSIONGITHUB_DELIVERY_SCHEMA_VERSION = 'cayu.github_delivery.v1'Release source · Runtime guarantees · Capability guides
github_follow_up_coding_input
Section titled “github_follow_up_coding_input”from cayu.delivery import github_follow_up_coding_inputgithub_follow_up_coding_input(result: GitHubDeliveryResult, *, provider_ids: Sequence[str], iteration: int, product_run_id: str, session_id: str, task_id: str) -> GitHubFollowUpCodingInputRelease source · Runtime guarantees · Capability guides
github_pull_request_delivery_request
Section titled “github_pull_request_delivery_request”from cayu.delivery import github_pull_request_delivery_requestgithub_pull_request_delivery_request(product: CodingProductPublication, remote: RemoteGitDeliveryPublication, *, connector_run_id: str, session_id: str, idempotency_key: str, requested_at: str, repository_alias: str, installation_id: str, account_id: str, mode: Literal['create', 'update'], existing_pull_request_number: int | None, metadata: GitHubPullRequestMetadata, checks: GitHubCheckPolicy, reviews: GitHubReviewPolicy, security: GitHubSecurityAuthority, limits: GitHubDeliveryLimits | None=None) -> GitHubPullRequestDeliveryRequestRelease source · Runtime guarantees · Capability guides
GitHubCheckBundle
Section titled “GitHubCheckBundle”from cayu.delivery import GitHubCheckBundleBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
head_commit |
str |
required |
checks |
tuple[GitHubCheckObservation, ...] |
required |
truncated |
StrictBool |
False |
commit (method)
Section titled “commit (method)”GitHubCheckBundle.commit(value: str) -> strRelease source · Runtime guarantees · Capability guides
GitHubCheckObservation
Section titled “GitHubCheckObservation”from cayu.delivery import GitHubCheckObservationBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
provider_id |
str |
required |
name |
str |
required |
head_commit |
str |
required |
status |
str |
required |
conclusion |
str | None |
None |
started_at |
str | None |
None |
completed_at |
str | None |
None |
url |
str | None |
None |
identity (method)
Section titled “identity (method)”GitHubCheckObservation.identity(value: str | None, info) -> str | Nonecommit (method)
Section titled “commit (method)”GitHubCheckObservation.commit(value: str) -> strcheck_status (method)
Section titled “check_status (method)”GitHubCheckObservation.check_status(value: str) -> strcheck_conclusion (method)
Section titled “check_conclusion (method)”GitHubCheckObservation.check_conclusion(value: str | None) -> str | Nonetimestamp (method)
Section titled “timestamp (method)”GitHubCheckObservation.timestamp(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
GitHubCheckPolicy
Section titled “GitHubCheckPolicy”from cayu.delivery import GitHubCheckPolicyBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
required_checks |
tuple[str, ...] |
required |
allow_neutral |
StrictBool |
False |
allow_skipped |
StrictBool |
False |
checks (method)
Section titled “checks (method)”GitHubCheckPolicy.checks(value: tuple[str, ...]) -> tuple[str, ...]fingerprint (property)
Section titled “fingerprint (property)”GitHubCheckPolicy.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GitHubCheckState
Section titled “GitHubCheckState”from cayu.delivery import GitHubCheckStateBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
PENDING |
class attribute |
'pending' |
PASSED |
class attribute |
'passed' |
FAILED |
class attribute |
'failed' |
CANCELLED |
class attribute |
'cancelled' |
TIMED_OUT |
class attribute |
'timed_out' |
MISSING |
class attribute |
'missing' |
SUPERSEDED |
class attribute |
'superseded' |
PROVIDER_AMBIGUOUS |
class attribute |
'provider_ambiguous' |
Release source · Runtime guarantees · Capability guides
GitHubConnectorProfile
Section titled “GitHubConnectorProfile”from cayu.delivery import GitHubConnectorProfileDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
connector_id |
str |
required |
behavior_fingerprint |
str |
required |
repositories |
Mapping[str, GitHubRepositoryConfig] |
required |
Release source · Runtime guarantees · Capability guides
GitHubConnectorTransport
Section titled “GitHubConnectorTransport”from cayu.delivery import GitHubConnectorTransportDecorators: @runtime_checkable.
Bases: Protocol.
observe_ref (method)
Section titled “observe_ref (method)”async GitHubConnectorTransport.observe_ref(config: GitHubRepositoryConfig, ref: str, limits: GitHubDeliveryLimits) -> str | Nonefind_pull_requests (method)
Section titled “find_pull_requests (method)”async GitHubConnectorTransport.find_pull_requests(config: GitHubRepositoryConfig, *, base_ref: str, head_ref: str, limits: GitHubDeliveryLimits) -> tuple[GitHubPullRequestSnapshot, ...]get_pull_request (method)
Section titled “get_pull_request (method)”async GitHubConnectorTransport.get_pull_request(config: GitHubRepositoryConfig, number: int, limits: GitHubDeliveryLimits) -> GitHubPullRequestSnapshotcreate_pull_request (method)
Section titled “create_pull_request (method)”async GitHubConnectorTransport.create_pull_request(config: GitHubRepositoryConfig, request: GitHubPullRequestDeliveryRequest) -> tuple[GitHubPullRequestSnapshot, str]update_pull_request (method)
Section titled “update_pull_request (method)”async GitHubConnectorTransport.update_pull_request(config: GitHubRepositoryConfig, request: GitHubPullRequestDeliveryRequest, number: int) -> tuple[GitHubPullRequestSnapshot, str]set_labels (method)
Section titled “set_labels (method)”async GitHubConnectorTransport.set_labels(config: GitHubRepositoryConfig, number: int, labels: tuple[str, ...], limits: GitHubDeliveryLimits) -> strrequest_reviewers (method)
Section titled “request_reviewers (method)”async GitHubConnectorTransport.request_reviewers(config: GitHubRepositoryConfig, number: int, reviewers: tuple[str, ...], teams: tuple[str, ...], limits: GitHubDeliveryLimits) -> strmark_ready (method)
Section titled “mark_ready (method)”async GitHubConnectorTransport.mark_ready(config: GitHubRepositoryConfig, number: int, limits: GitHubDeliveryLimits) -> strobserve_checks (method)
Section titled “observe_checks (method)”async GitHubConnectorTransport.observe_checks(config: GitHubRepositoryConfig, head_commit: str, limits: GitHubDeliveryLimits) -> GitHubCheckBundleobserve_reviews (method)
Section titled “observe_reviews (method)”async GitHubConnectorTransport.observe_reviews(config: GitHubRepositoryConfig, number: int, limits: GitHubDeliveryLimits) -> GitHubReviewBundleRelease source · Runtime guarantees · Capability guides
GitHubCredentials
Section titled “GitHubCredentials”from cayu.delivery import GitHubCredentialsDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
credential_profile_id |
str |
required |
token |
SecretRef |
required |
resolver |
SecretResolver |
required |
Release source · Runtime guarantees · Capability guides
GitHubDeliveryAdmissionError
Section titled “GitHubDeliveryAdmissionError”from cayu.delivery import GitHubDeliveryAdmissionErrorImmutable provider or delivery authority failed admission.
Bases: GitHubDeliveryError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
GitHubDeliveryApproval
Section titled “GitHubDeliveryApproval”from cayu.delivery import GitHubDeliveryApprovalBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
approval_id |
str |
required |
request_fingerprint |
str |
required |
metadata_fingerprint |
str |
required |
policy_fingerprint |
str |
required |
approved_operations |
tuple[GitHubOperation, ...] |
required |
identity (method)
Section titled “identity (method)”GitHubDeliveryApproval.identity(value: str) -> strdigest (method)
Section titled “digest (method)”GitHubDeliveryApproval.digest(value: str, info) -> stroperations (method)
Section titled “operations (method)”GitHubDeliveryApproval.operations(value: tuple[GitHubOperation, ...]) -> tuple[GitHubOperation, ...]fingerprint (property)
Section titled “fingerprint (property)”GitHubDeliveryApproval.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GitHubDeliveryError
Section titled “GitHubDeliveryError”from cayu.delivery import GitHubDeliveryErrorBase error for GitHub delivery.
Bases: RuntimeError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
GitHubDeliveryLimits
Section titled “GitHubDeliveryLimits”from cayu.delivery import GitHubDeliveryLimitsBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
timeout_seconds |
StrictInt |
Field(default=30, ge=1, le=300) |
max_response_bytes |
StrictInt |
Field(default=1024 * 1024, ge=1024, le=4 * 1024 * 1024) |
max_polls |
StrictInt |
Field(default=40, ge=1, le=200) |
poll_interval_seconds |
StrictInt |
Field(default=15, ge=1, le=900) |
max_elapsed_seconds |
StrictInt |
Field(default=3600, ge=1, le=86400) |
max_checks |
StrictInt |
Field(default=100, ge=1, le=100) |
max_reviews |
StrictInt |
Field(default=100, ge=1, le=100) |
max_comments |
StrictInt |
Field(default=100, ge=1, le=100) |
max_feedback_bytes |
StrictInt |
Field(default=4096, ge=256, le=16 * 1024) |
Release source · Runtime guarantees · Capability guides
GitHubDeliveryPublication
Section titled “GitHubDeliveryPublication”from cayu.delivery import GitHubDeliveryPublicationDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
result |
GitHubDeliveryResult |
required |
artifact |
CodingArtifactReference |
required |
Release source · Runtime guarantees · Capability guides
GitHubDeliveryReconstructionRequiredError
Section titled “GitHubDeliveryReconstructionRequiredError”from cayu.delivery import GitHubDeliveryReconstructionRequiredErrorDurable GitHub evidence cannot be reconstructed authoritatively.
Bases: GitHubDeliveryError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
GitHubDeliveryRepository
Section titled “GitHubDeliveryRepository”from cayu.delivery import GitHubDeliveryRepositoryImmutable requests, approvals, results, and ordered progress receipts.
init (method)
Section titled “init (method)”GitHubDeliveryRepository.__init__(store: ArtifactStore) -> Noneensure_request (method)
Section titled “ensure_request (method)”async GitHubDeliveryRepository.ensure_request(request: GitHubPullRequestDeliveryRequest)ensure_approval (method)
Section titled “ensure_approval (method)”async GitHubDeliveryRepository.ensure_approval(request, approval)approval (method)
Section titled “approval (method)”async GitHubDeliveryRepository.approval(request: GitHubPullRequestDeliveryRequest) -> GitHubDeliveryApproval | Nonereceipts (method)
Section titled “receipts (method)”async GitHubDeliveryRepository.receipts(request) -> tuple[GitHubLifecycleReceipt, ...]publish (method)
Section titled “publish (method)”async GitHubDeliveryRepository.publish(request, result) -> GitHubDeliveryPublicationlatest (method)
Section titled “latest (method)”async GitHubDeliveryRepository.latest(request) -> GitHubDeliveryPublication | NoneRelease source · Runtime guarantees · Capability guides
GitHubDeliveryResult
Section titled “GitHubDeliveryResult”from cayu.delivery import GitHubDeliveryResultBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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.github_delivery_result.v1'] |
'cayu.github_delivery_result.v1' |
connector_run_id |
str |
required |
session_id |
str |
required |
idempotency_key |
str |
required |
request_fingerprint |
str |
required |
state |
GitHubDeliveryState |
required |
repository_id |
str |
required |
connector_id |
str |
required |
installation_id |
str |
required |
account_id |
str |
required |
credential_profile_id |
str |
required |
egress_profile_id |
str |
required |
policy_fingerprint |
str |
required |
connector_behavior_fingerprint |
str |
required |
approval_policy_fingerprint |
str |
required |
redaction_profile_fingerprint |
str |
required |
metadata_fingerprint |
str |
required |
check_policy_fingerprint |
str |
required |
review_policy_fingerprint |
str |
required |
approval_fingerprint |
str | None |
None |
approval_id |
str | None |
None |
product_result_artifact_id |
str |
required |
product_run_id |
str |
required |
source_workspace_id |
str |
required |
diff_artifact_id |
str |
required |
remote_result_artifact_id |
str |
required |
remote_delivery_id |
str |
required |
product_request_fingerprint |
str |
required |
remote_request_fingerprint |
str |
required |
product_result_sha256 |
str |
required |
remote_result_sha256 |
str |
required |
source_revision |
str |
required |
diff_sha256 |
str |
required |
repository_alias |
str |
required |
base_ref |
str |
required |
base_commit |
str |
required |
head_ref |
str |
required |
head_commit |
str |
required |
pull_request |
GitHubPullRequestSnapshot | None |
None |
checks_state |
GitHubCheckState | None |
None |
review_state |
GitHubReviewState | None |
None |
checks |
tuple[GitHubCheckObservation, ...] |
() |
feedback |
tuple[GitHubFeedbackObservation, ...] |
() |
checks_truncated |
StrictBool |
False |
feedback_truncated |
StrictBool |
False |
required_checks |
tuple[str, ...] |
required |
allowed_operations |
tuple[GitHubOperation, ...] |
required |
review_approval_required |
StrictBool |
False |
required_approvers |
tuple[str, ...] |
() |
minimum_approvals |
StrictInt |
Field(default=1, ge=1, le=100) |
follow_up_allowed |
StrictBool |
False |
max_follow_up_items |
StrictInt |
Field(default=8, ge=1, le=32) |
max_follow_up_iterations |
StrictInt |
Field(default=3, ge=1, le=20) |
limits |
GitHubDeliveryLimits |
required |
operations |
tuple[GitHubOperationEvidence, ...] |
() |
poll_count |
StrictInt |
Field(default=0, ge=0, le=200) |
next_poll_after_seconds |
StrictInt | None |
Field(default=None, ge=1, le=900) |
next_poll_at |
str | None |
None |
reason_code |
str | None |
None |
poll_timestamp (method)
Section titled “poll_timestamp (method)”GitHubDeliveryResult.poll_timestamp(value: str | None) -> str | Noneidentity (method)
Section titled “identity (method)”GitHubDeliveryResult.identity(value: str | None, info) -> str | Nonedigest (method)
Section titled “digest (method)”GitHubDeliveryResult.digest(value: str | None, info) -> str | Nonebranch (method)
Section titled “branch (method)”GitHubDeliveryResult.branch(value: str, info) -> strcommit (method)
Section titled “commit (method)”GitHubDeliveryResult.commit(value: str, info) -> strapprovers (method)
Section titled “approvers (method)”GitHubDeliveryResult.approvers(value: tuple[str, ...]) -> tuple[str, ...]checks_policy (method)
Section titled “checks_policy (method)”GitHubDeliveryResult.checks_policy(value: tuple[str, ...]) -> tuple[str, ...]operations_policy (method)
Section titled “operations_policy (method)”GitHubDeliveryResult.operations_policy(value: tuple[GitHubOperation, ...]) -> tuple[GitHubOperation, ...]coherent_evidence (method)
Section titled “coherent_evidence (method)”GitHubDeliveryResult.coherent_evidence() -> GitHubDeliveryResultdigest_value (property)
Section titled “digest_value (property)”GitHubDeliveryResult.digest_value() -> strRelease source · Runtime guarantees · Capability guides
GitHubDeliveryState
Section titled “GitHubDeliveryState”from cayu.delivery import GitHubDeliveryStateBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
APPROVAL_REQUIRED |
class attribute |
'approval_required' |
DENIED |
class attribute |
'denied' |
PR_CREATED |
class attribute |
'pr_created' |
PR_UPDATED |
class attribute |
'pr_updated' |
CHECKS_PENDING |
class attribute |
'checks_pending' |
CHECKS_PASSED |
class attribute |
'checks_passed' |
CHECKS_FAILED |
class attribute |
'checks_failed' |
CHANGES_REQUESTED |
class attribute |
'changes_requested' |
APPROVED |
class attribute |
'approved' |
CLOSED |
class attribute |
'closed' |
SUPERSEDED |
class attribute |
'superseded' |
CONFLICT |
class attribute |
'conflict' |
RATE_LIMITED |
class attribute |
'rate_limited' |
PROVIDER_UNAVAILABLE |
class attribute |
'provider_unavailable' |
PERMISSION_DENIED |
class attribute |
'permission_denied' |
CANCELLED |
class attribute |
'cancelled' |
FAILED |
class attribute |
'failed' |
PARTIAL |
class attribute |
'partial' |
AMBIGUOUS |
class attribute |
'ambiguous' |
RECONSTRUCTION_REQUIRED |
class attribute |
'reconstruction_required' |
Release source · Runtime guarantees · Capability guides
GitHubFeedbackObservation
Section titled “GitHubFeedbackObservation”from cayu.delivery import GitHubFeedbackObservationBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
provider_id |
str |
required |
kind |
Literal['review', 'review_comment', 'issue_comment'] |
required |
author_login |
str |
required |
author_type |
str |
required |
state |
str |
required |
created_at |
str |
required |
body |
str |
required |
head_commit |
str | None |
None |
url |
str | None |
None |
thread_id |
str | None |
None |
in_reply_to_id |
str | None |
None |
path |
str | None |
None |
line |
StrictInt | None |
Field(default=None, ge=1) |
resolved |
StrictBool | None |
None |
commit (method)
Section titled “commit (method)”GitHubFeedbackObservation.commit(value: str | None) -> str | Noneidentity (method)
Section titled “identity (method)”GitHubFeedbackObservation.identity(value: str | None, info) -> str | Nonetext (method)
Section titled “text (method)”GitHubFeedbackObservation.text(value: str) -> strtimestamp (method)
Section titled “timestamp (method)”GitHubFeedbackObservation.timestamp(value: str) -> strcoherent_feedback_state (method)
Section titled “coherent_feedback_state (method)”GitHubFeedbackObservation.coherent_feedback_state() -> GitHubFeedbackObservationRelease source · Runtime guarantees · Capability guides
GitHubFollowUpCodingInput
Section titled “GitHubFollowUpCodingInput”from cayu.delivery import GitHubFollowUpCodingInputBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
prior_connector_run_id |
str |
required |
prior_product_run_id |
str |
required |
prior_delivery_id |
str |
required |
head_commit |
str |
required |
iteration |
StrictInt |
Field(ge=1, le=100) |
product_run_id |
str |
required |
session_id |
str |
required |
task_id |
str |
required |
feedback_provider_ids |
tuple[str, ...] |
required |
messages |
tuple[str, ...] |
required |
identity (method)
Section titled “identity (method)”GitHubFollowUpCodingInput.identity(value: str, info) -> strcommit (method)
Section titled “commit (method)”GitHubFollowUpCodingInput.commit(value: str) -> strprovider_ids (method)
Section titled “provider_ids (method)”GitHubFollowUpCodingInput.provider_ids(value: tuple[str, ...]) -> tuple[str, ...]bounded_messages (method)
Section titled “bounded_messages (method)”GitHubFollowUpCodingInput.bounded_messages(value: tuple[str, ...]) -> tuple[str, ...]matching_evidence (method)
Section titled “matching_evidence (method)”GitHubFollowUpCodingInput.matching_evidence()Release source · Runtime guarantees · Capability guides
GitHubLifecycleReceipt
Section titled “GitHubLifecycleReceipt”from cayu.delivery import GitHubLifecycleReceiptBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
connector_run_id |
str |
required |
request_fingerprint |
str |
required |
ordinal |
StrictInt |
Field(ge=1, le=GITHUB_MAX_RECEIPTS) |
state |
GitHubDeliveryState |
required |
result_sha256 |
str |
required |
poll_count |
StrictInt |
Field(ge=0, le=200) |
identity (method)
Section titled “identity (method)”GitHubLifecycleReceipt.identity(value: str) -> strdigest (method)
Section titled “digest (method)”GitHubLifecycleReceipt.digest(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
GitHubOperation
Section titled “GitHubOperation”from cayu.delivery import GitHubOperationBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
CREATE_PULL_REQUEST |
class attribute |
'create_pull_request' |
UPDATE_PULL_REQUEST |
class attribute |
'update_pull_request' |
SET_LABELS |
class attribute |
'set_labels' |
REQUEST_REVIEWERS |
class attribute |
'request_reviewers' |
MARK_READY |
class attribute |
'mark_ready' |
Release source · Runtime guarantees · Capability guides
GitHubOperationEvidence
Section titled “GitHubOperationEvidence”from cayu.delivery import GitHubOperationEvidenceBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
operation |
GitHubOperation |
required |
status |
Literal['reconciled', 'succeeded', 'failed', 'ambiguous'] |
required |
request_id |
str |
required |
provider_id |
str | None |
None |
identity (method)
Section titled “identity (method)”GitHubOperationEvidence.identity(value: str | None, info) -> str | NoneRelease source · Runtime guarantees · Capability guides
GitHubProviderError
Section titled “GitHubProviderError”from cayu.delivery import GitHubProviderErrorSafe classified provider failure without response content.
Bases: GitHubDeliveryError.
init (method)
Section titled “init (method)”GitHubProviderError.__init__(code: str, *, status_code: int | None=None, retryable: bool=False, ambiguous: bool=False, request_id: str | None=None) -> NoneRelease source · Runtime guarantees · Capability guides
GitHubPullRequestConnector
Section titled “GitHubPullRequestConnector”from cayu.delivery import GitHubPullRequestConnectorMutate one bound PR and durably observe one exact-head poll per call.
init (method)
Section titled “init (method)”GitHubPullRequestConnector.__init__(profile: GitHubConnectorProfile, *, repository: GitHubDeliveryRepository, transport: GitHubConnectorTransport, clock=None) -> Noneseal (method)
Section titled “seal (method)”GitHubPullRequestConnector.seal() -> NoneReject new calls and stop subsequent effects in retained calls.
aclose (method)
Section titled “aclose (method)”async GitHubPullRequestConnector.aclose(*, timeout_s: float=30.0) -> boolSeal and observe local quiescence without cancelling owned mutations.
False (or cancellation) requires retaining this connector and its loop; a later call may observe settlement. True is not proof of remote success. Shared transports and artifact stores are not closed by this method.
run (method)
Section titled “run (method)”async GitHubPullRequestConnector.run(request: GitHubPullRequestDeliveryRequest, product: CodingProductPublication, remote: RemoteGitDeliveryPublication, *, approval: GitHubDeliveryApproval | None=None) -> GitHubDeliveryPublicationRelease source · Runtime guarantees · Capability guides
GitHubPullRequestDeliveryRequest
Section titled “GitHubPullRequestDeliveryRequest”from cayu.delivery import GitHubPullRequestDeliveryRequestBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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.github_delivery.v1'] |
GITHUB_DELIVERY_SCHEMA_VERSION |
connector_run_id |
str |
required |
session_id |
str |
required |
idempotency_key |
str |
required |
requested_at |
str |
required |
source |
GitHubSourceAuthority |
required |
repository |
GitHubRepositoryAuthority |
required |
mode |
Literal['create', 'update'] |
required |
existing_pull_request_number |
StrictInt | None |
Field(default=None, ge=1) |
metadata |
GitHubPullRequestMetadata |
required |
checks |
GitHubCheckPolicy |
required |
reviews |
GitHubReviewPolicy |
Field(default_factory=GitHubReviewPolicy) |
security |
GitHubSecurityAuthority |
required |
limits |
GitHubDeliveryLimits |
Field(default_factory=GitHubDeliveryLimits) |
merge |
Literal[False] |
False |
identity (method)
Section titled “identity (method)”GitHubPullRequestDeliveryRequest.identity(value: str, info) -> strtimestamp (method)
Section titled “timestamp (method)”GitHubPullRequestDeliveryRequest.timestamp(value: str) -> strcoherent_mode (method)
Section titled “coherent_mode (method)”GitHubPullRequestDeliveryRequest.coherent_mode()fingerprint (property)
Section titled “fingerprint (property)”GitHubPullRequestDeliveryRequest.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GitHubPullRequestMetadata
Section titled “GitHubPullRequestMetadata”from cayu.delivery import GitHubPullRequestMetadataBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
title |
str |
required |
body |
str |
'' |
labels |
tuple[str, ...] |
() |
reviewers |
tuple[str, ...] |
() |
teams |
tuple[str, ...] |
() |
draft |
StrictBool |
True |
title_text (method)
Section titled “title_text (method)”GitHubPullRequestMetadata.title_text(value: str) -> strbody_text (method)
Section titled “body_text (method)”GitHubPullRequestMetadata.body_text(value: str) -> strnames (method)
Section titled “names (method)”GitHubPullRequestMetadata.names(value: tuple[str, ...], info) -> tuple[str, ...]logins (method)
Section titled “logins (method)”GitHubPullRequestMetadata.logins(value: tuple[str, ...]) -> tuple[str, ...]fingerprint (property)
Section titled “fingerprint (property)”GitHubPullRequestMetadata.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GitHubPullRequestSnapshot
Section titled “GitHubPullRequestSnapshot”from cayu.delivery import GitHubPullRequestSnapshotBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
number |
StrictInt |
Field(ge=1) |
node_id |
str |
required |
url |
str |
required |
state |
Literal['open', 'closed'] |
required |
draft |
StrictBool |
required |
merged |
StrictBool |
False |
mergeable |
StrictBool | None |
None |
mergeable_state |
str | None |
None |
base_ref |
str |
required |
base_commit |
str |
required |
head_ref |
str |
required |
head_commit |
str |
required |
title |
str |
required |
body |
str |
'' |
labels |
tuple[str, ...] |
() |
identity (method)
Section titled “identity (method)”GitHubPullRequestSnapshot.identity(value: str | None, info) -> str | Nonebranch (method)
Section titled “branch (method)”GitHubPullRequestSnapshot.branch(value: str, info) -> strcommit (method)
Section titled “commit (method)”GitHubPullRequestSnapshot.commit(value: str, info) -> strtext (method)
Section titled “text (method)”GitHubPullRequestSnapshot.text(value: str, info) -> strcanonical_labels (method)
Section titled “canonical_labels (method)”GitHubPullRequestSnapshot.canonical_labels(value: tuple[str, ...]) -> tuple[str, ...]coherent_state (method)
Section titled “coherent_state (method)”GitHubPullRequestSnapshot.coherent_state() -> GitHubPullRequestSnapshotRelease source · Runtime guarantees · Capability guides
GitHubRepositoryAuthority
Section titled “GitHubRepositoryAuthority”from cayu.delivery import GitHubRepositoryAuthorityBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
repository_id |
str |
required |
repository_alias |
str |
required |
installation_id |
str |
required |
account_id |
str |
required |
base_ref |
str |
required |
expected_base_commit |
str |
required |
head_ref |
str |
required |
head_commit |
str |
required |
identity (method)
Section titled “identity (method)”GitHubRepositoryAuthority.identity(value: str, info) -> strbranch_ref (method)
Section titled “branch_ref (method)”GitHubRepositoryAuthority.branch_ref(value: str, info) -> strcommit (method)
Section titled “commit (method)”GitHubRepositoryAuthority.commit(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
GitHubRepositoryConfig
Section titled “GitHubRepositoryConfig”from cayu.delivery import GitHubRepositoryConfigDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
alias |
str |
required |
repository_id |
str |
required |
installation_id |
str |
required |
account_id |
str |
required |
api_base_url |
str |
required |
owner |
str |
required |
name |
str |
required |
credential_profile_id |
str |
required |
egress_profile_id |
str |
required |
credentials |
GitHubCredentials |
required |
Release source · Runtime guarantees · Capability guides
GitHubRestTransport
Section titled “GitHubRestTransport”from cayu.delivery import GitHubRestTransportFixed-operation, bounded GitHub REST transport with vault-backed auth.
init (method)
Section titled “init (method)”GitHubRestTransport.__init__(client: httpx.AsyncClient | None=None) -> Noneobserve_ref (method)
Section titled “observe_ref (method)”async GitHubRestTransport.observe_ref(config, ref, limits)find_pull_requests (method)
Section titled “find_pull_requests (method)”async GitHubRestTransport.find_pull_requests(config, *, base_ref, head_ref, limits)get_pull_request (method)
Section titled “get_pull_request (method)”async GitHubRestTransport.get_pull_request(config, number, limits)create_pull_request (method)
Section titled “create_pull_request (method)”async GitHubRestTransport.create_pull_request(config, request)update_pull_request (method)
Section titled “update_pull_request (method)”async GitHubRestTransport.update_pull_request(config, request, number)set_labels (method)
Section titled “set_labels (method)”async GitHubRestTransport.set_labels(config, number, labels, limits)request_reviewers (method)
Section titled “request_reviewers (method)”async GitHubRestTransport.request_reviewers(config, number, reviewers, teams, limits)mark_ready (method)
Section titled “mark_ready (method)”async GitHubRestTransport.mark_ready(config, number, limits)observe_checks (method)
Section titled “observe_checks (method)”async GitHubRestTransport.observe_checks(config, head_commit, limits)observe_reviews (method)
Section titled “observe_reviews (method)”async GitHubRestTransport.observe_reviews(config, number, limits)Release source · Runtime guarantees · Capability guides
GitHubReviewBundle
Section titled “GitHubReviewBundle”from cayu.delivery import GitHubReviewBundleBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
feedback |
tuple[GitHubFeedbackObservation, ...] |
required |
truncated |
StrictBool |
False |
Release source · Runtime guarantees · Capability guides
GitHubReviewPolicy
Section titled “GitHubReviewPolicy”from cayu.delivery import GitHubReviewPolicyBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
approval_required |
StrictBool |
False |
required_approvers |
tuple[str, ...] |
() |
minimum_approvals |
StrictInt |
Field(default=1, ge=1, le=100) |
allow_follow_up |
StrictBool |
False |
max_follow_up_items |
StrictInt |
Field(default=8, ge=1, le=32) |
max_follow_up_iterations |
StrictInt |
Field(default=3, ge=1, le=20) |
approvers (method)
Section titled “approvers (method)”GitHubReviewPolicy.approvers(value: tuple[str, ...]) -> tuple[str, ...]coherent_approval_policy (method)
Section titled “coherent_approval_policy (method)”GitHubReviewPolicy.coherent_approval_policy() -> GitHubReviewPolicyfingerprint (property)
Section titled “fingerprint (property)”GitHubReviewPolicy.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
GitHubReviewState
Section titled “GitHubReviewState”from cayu.delivery import GitHubReviewStateBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
NONE |
class attribute |
'none' |
APPROVED |
class attribute |
'approved' |
CHANGES_REQUESTED |
class attribute |
'changes_requested' |
COMMENTED |
class attribute |
'commented' |
Release source · Runtime guarantees · Capability guides
GitHubSecurityAuthority
Section titled “GitHubSecurityAuthority”from cayu.delivery import GitHubSecurityAuthorityBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
connector_id |
str |
required |
connector_behavior_fingerprint |
str |
required |
credential_profile_id |
str |
required |
egress_profile_id |
str |
required |
policy_fingerprint |
str |
required |
approval_policy_fingerprint |
str |
required |
redaction_profile_fingerprint |
str |
required |
allowed_operations |
tuple[GitHubOperation, ...] |
required |
identity (method)
Section titled “identity (method)”GitHubSecurityAuthority.identity(value: str, info) -> strdigest (method)
Section titled “digest (method)”GitHubSecurityAuthority.digest(value: str, info) -> stroperations (method)
Section titled “operations (method)”GitHubSecurityAuthority.operations(value: tuple[GitHubOperation, ...]) -> tuple[GitHubOperation, ...]Release source · Runtime guarantees · Capability guides
GitHubSourceAuthority
Section titled “GitHubSourceAuthority”from cayu.delivery import GitHubSourceAuthorityBases: _FrozenModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
product_result_artifact_id |
str |
required |
product_result_sha256 |
str |
required |
product_request_fingerprint |
str |
required |
product_run_id |
str |
required |
source_workspace_id |
str |
required |
source_revision |
str |
required |
diff_artifact_id |
str |
required |
diff_sha256 |
str |
required |
remote_result_artifact_id |
str |
required |
remote_result_sha256 |
str |
required |
remote_request_fingerprint |
str |
required |
remote_delivery_id |
str |
required |
identity (method)
Section titled “identity (method)”GitHubSourceAuthority.identity(value: str, info) -> strdigest (method)
Section titled “digest (method)”GitHubSourceAuthority.digest(value: str, info) -> str