Skip to content
ocx
install

ClaimReport (1 of 2)

ClaimReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class ClaimReport(package: str, name: str, status: str, forge: str, transport: str, credential_kind: str, push_credential_kind: str | None, author: ClaimOwner | None, author_identity_source: str | None, owners: tuple[ClaimOwner, ...], owner_identity_source: str, branch: str, pull_request_url: str | None, pull_request_number: int | None, fork: str | None, written_paths: tuple[str, ...], capability_checks: tuple[CapabilityCheck, ...])

ocx package claim — the index entry a claim rendered (C-060).

Payload is bare (D11), seventeen keys, every one always on the wire. A package that is already claimed never produces this: ocx exits 65 with an error envelope instead, which error_envelope(err) recovers.

Attributes

NameTypeDescription
packagestrThe claimed <namespace>/<package>, as given.
namestrThe logical name written into the root.
statusstr"updated" or "unchanged" — against the open claim branch, not the committed root, so a --out run is always "updated".
forgestr"github" or "gitlab".
transportstr"api" or "git".
credential_kindstr"job-token", "token" or "none".
push_credential_kindstr | None"job-token", "token", "git-helper", or None under the api transport.
authorClaimOwner | NoneThe identity that authored the request, or None when neither the token nor the CI environment named one. Not attested — see author_identity_source.
author_identity_sourcestr | None"resolved" when the forge’s own answer about the credential produced author, "ci-environment" when an ordinary environment read did; None exactly when author is.
ownerstuple[ClaimOwner, ...]The recorded owners, in order.
owner_identity_sourcestr"resolved", "asserted" or "ci-environment".
branchstrThe claim branch.
pull_request_urlstr | NoneThe request’s URL, when one was opened.
pull_request_numberint | NoneIts number, likewise.
forkstr | NoneThe fork the request came from, when --fork was given.
written_pathstuple[str, ...]Files written under --out; empty otherwise.
capability_checkstuple[CapabilityCheck, ...]The forge probes, in CapabilityName order.

branchattributeinstance attribute#

branch: str

capability_checksattributeinstance attribute#

capability_checks: tuple[CapabilityCheck, ...]

forkattributeinstance attribute#

fork: str | None

nameattributeinstance attribute#

name: str

pull_request_numberattributeinstance attribute#

pull_request_number: int | None

written_pathsattributeinstance attribute#

written_paths: tuple[str, ...]