{"modulePath":"github.com/github/gh-aw","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workqueue\n\n## Constants\n\n```go\nconst DefaultBranch = \"work-queue\"\n```\n\n```go\nconst FileName = \"work-queue.jsonl\"\n```\n\n```go\nconst MaxClaimsPerDispatch = 16\n```\n\n```go\nconst MaxEnqueued = MaxTimestamp\n```\n\n```go\nconst MaxTimestamp int64 = 9007199254740991\n```\n\n```go\nconst Version = 3\n```\n\n## Functions\n\n```go\nfunc AuthorizeEffect(state Projection, actor Actor, target EffectResource) error\n```\n\n```go\nfunc BuildCandidate(commits []QueueCommit, actor Actor, request Request, at int64) ([]QueueCommit, *QueueCommit, Decision, error)\n```\n\n```go\nfunc Canonical(data []byte) ([]byte, error)\n```\nCanonical uses the contract's integer-only JSON profile and UTF-8 key order.\n\n```go\nfunc CanonicalValue(value any) ([]byte, error)\n```\nCanonicalValue encodes typed JSON without repairing strings or losing numeric values.\n\n```go\nfunc DispatchPrincipal(dispatch *DispatchState) string\n```\nDispatchPrincipal is frozen at launch from the selected AW credential, not from the publisher or an unverified native run.\n\n```go\nfunc Fingerprint(actor Actor, kind string, parameters json.RawMessage) (string, error)\n```\n\n```go\nfunc IndependentGraphID(payload []byte) (string, error)\n```\n\n```go\nfunc NodeID(graphID, nodeKey string) string\n```\n\n```go\nfunc NormalizeClaimHandle(assignment Assignment, selector *string) (string, error)\n```\n\n```go\nfunc ObservationRefreshBudget(state Projection, requested int) (int, error)\n```\nObservationRefreshBudget reserves a Claim slot and excludes optional recovery-capacity reads.\n\n```go\nfunc ProposedCommitID(state Projection, request Request) string\n```\n\n```go\nfunc RecoveryHeadroom(state Projection) int64\n```\nRecoveryHeadroom reports the outstanding closure reservation for a replayed projection.\n\n```go\nfunc Serialize(commits []QueueCommit) ([]byte, error)\n```\n\n```go\nfunc ValidReason(reason string) bool\n```\nValidReason reports whether reason is a bounded sanitized queue reason code.\n\n```go\nfunc ValidateAssignment(state Projection, assignment Assignment) error\n```\n\n```go\nfunc ValidateCommit(commit QueueCommit) error\n```\n\n```go\nfunc ValidatePolicy(policy Policy) error\n```\nValidatePolicy checks the closed contract and semantic limits, not caller authentication or approval of the configured worker identities.\n\n## Types\n\n```go\ntype Actor struct {\n\tRole        string `json:\"role\"`\n\tPrincipal   string `json:\"principal\"`\n\tRepository  string `json:\"repository\"`\n\tWorkflow    string `json:\"workflow,omitempty\"`\n\tRunID       string `json:\"run_id,omitempty\"`\n\tRunAttempt  int    `json:\"run_attempt,omitempty\"`\n\tDispatchID  string `json:\"dispatch_id,omitempty\"`\n\tClaimHandle string `json:\"claim_handle,omitempty\"`\n}\n```\n\n```go\ntype Assignment struct {\n\tVersion       int               `json:\"version\"`\n\tDispatchID    string            `json:\"dispatch_id\"`\n\tRequestID     string            `json:\"request_id\"`\n\tCommitID      string            `json:\"commit_id\"`\n\tPolicyEpoch   string            `json:\"policy_epoch\"`\n\tPool          string            `json:\"pool\"`\n\tWorkerProfile string            `json:\"worker_profile\"`\n\tClaims        []AssignmentClaim `json:\"claims\"`\n}\n```\n\n```go\nfunc ParseAssignment(data []byte) (Assignment, error)\n```\n\n```go\nfunc (assignment Assignment) ToReceipt() AssignmentReceipt\n```\nToReceipt projects immutable identity only, preserving source claim order. Callers must validate the assignment and populate lifecycle facts from their captured projection.\n\n```go\ntype AssignmentClaim struct {\n\tHandle     string            `json:\"handle\"`\n\tClaimID    string            `json:\"claim_id\"`\n\tWorkID     string            `json:\"work_id\"`\n\tWork       json.RawMessage   `json:\"work\"`\n\tResultRefs []ResultReference `json:\"result_refs\"`\n}\n```\n\n```go\nfunc (claim AssignmentClaim) ToReceipt() ClaimReceipt\n```\nToReceipt omits work payloads and result references; lifecycle fields are populated separately from the captured projection.\n\n```go\ntype AssignmentReceipt struct {\n\tDispatchID string         `json:\"dispatch_id\"`\n\tRequestID  string         `json:\"request_id\"`\n\tCommitID   string         `json:\"commit_id\"`\n\tState      string         `json:\"state\"`\n\tReleased   bool           `json:\"released\"`\n\tClaims     []ClaimReceipt `json:\"claims\"`\n}\n```\nAssignmentReceipt describes assignment identity and captured lifecycle facts without carrying work payloads, result descriptors, or actor credentials.\n\n```go\ntype Branch struct {\n\tRemote              string\n\tName                string\n\tHost                string\n\tDependencyClients   map[string]*api.RESTClient\n\tDeliveryVerifier    DeliveryVerifier\n\tRemediationVerifier RemediationVerifier\n\tPolicyProposal      *Policy // Host-approved first-submit proposal; never replaces installed Policy.\n\t// contains filtered or unexported fields\n}\n```\nBranch uses an isolated Git object store for the ledger, independently of the checkout.\n\n```go\nfunc (b Branch) Authenticate(ctx context.Context, role string) (Actor, error)\n```\nAuthenticate derives operator identity from the credential, not command flags, Git authors, submitted actor fields, or an untrusted Actions environment.\n\n```go\nfunc (b Branch) AuthenticateClear(ctx context.Context) (Actor, error)\n```\nAuthenticateClear authorizes repository maintainers and administrators for clear operations, retaining the queue's administrator actor for audit records.\n\n```go\nfunc (b Branch) CancelReserved(ctx context.Context, dispatchID, requestID string) (Reconciliation, error)\n```\nCancelReserved is a checked prelaunch cancellation, never a force release. A competing start marker wins through CAS and makes this request invalid.\n\n```go\nfunc (b Branch) Compact(ctx context.Context) (Compaction, error)\n```\nCompact replaces validated history with a canonical checkpoint rooted at the Git commit that supplied the prior ledger.\n\n```go\nfunc (b Branch) DeploymentOperationsFromConfig(ctx context.Context, state Projection, poolName, workerName string) ([]Operation, error)\n```\nDeploymentOperationsFromConfig proposes route-only changes for existing AW workers. Missing artifacts or registrations pause only the affected targets.\n\n```go\nfunc (b Branch) DispatcherFromConfig(ctx context.Context, name string) (DispatcherRoute, error)\n```\nDispatcherFromConfig resolves a dispatcher, never a worker assignment, at the repository's verified default revision. It does not grant or launch Claims.\n\n```go\nfunc (b Branch) HardClear(ctx context.Context, requestID, reason string, dryRun bool) (HardClearResult, error)\n```\nHardClear replaces only a settled, paused queue, retaining its prior ledger in the Git parent. It never retries a conflicting reset against a newer snapshot.\n\n```go\nfunc (b Branch) HardClearFromSnapshot(ctx context.Context, requestID, reason, priorGitSHA string) (HardClearResult, error)\n```\nHardClearFromSnapshot resets only the exact Git snapshot the operator previewed. An already accepted request is recovered without resetting any newer Work.\n\n```go\nfunc (b Branch) InspectEvidence(ctx context.Context, dispatchID string) (Reconciliation, error)\n```\n\n```go\nfunc (b Branch) OpenLedgerSession(ctx context.Context) (*LedgerSession, error)\n```\nOpenLedgerSession creates a scoped session with an isolated Git object store.\n\n```go\nfunc (b Branch) PolicyFromConfig(ctx context.Context) (Policy, error)\n```\nPolicyFromConfig resolves scheduling and AW worker approval from this target repository's verified immutable default ref, never the current local checkout.\n\n```go\nfunc (b Branch) PrepareDispatcherActivation(ctx context.Context, route DispatcherRoute) (string, error)\n```\nPrepareDispatcherActivation binds a previously verified dispatcher route to a named snapshot ref. It never moves or deletes tags, including on collisions. Repository writers must not mutate the snapshot tag while it is in use.\n\n```go\nfunc (b Branch) Publish(ctx context.Context, actor Actor, request Request) (Publication, error)\n```\nPublish retains only authenticated logical intent across CAS retries. It discards selections, handles, charges and clocks and recovers uncertain ref acknowledgments by stable request identity before constructing another grant.\n\n```go\nfunc (b Branch) PublishFromSnapshot(ctx context.Context, actor Actor, request Request, selected []QueueCommit) (Publication, error)\n```\nPublishFromSnapshot rejects replacement ledgers before applying intent selected from an existing snapshot. Same-ledger appends and verified checkpoints remain eligible, including across CAS retries and uncertain acknowledgments. Snapshot cancellations allow repository maintainers as well as administrators; other request kinds retain their existing authorization requirements.\n\n```go\nfunc (b Branch) Read(ctx context.Context) ([]QueueCommit, error)\n```\n\n```go\nfunc (b Branch) Reconcile(ctx context.Context, dispatchID, requestID string) (Reconciliation, error)\n```\nReconcile inspects the exact bound native attempt. Missing/unbound runs retain reservations; terminal recovery cancels open members only, preserving every Completion and independently pending delivery barrier.\n\n```go\nfunc (b Branch) RecoverDelivery(ctx context.Context, workID, requestID string) (DeliveryRecovery, error)\n```\nRecoverDelivery settles a barrier independently of native capacity. Missing proof remains unknown; neither an overall run success nor a missing artifact is interpreted as verified delivery or as proof that effects never began.\n\n```go\nfunc (b Branch) SynchronizeIssueTransition(ctx context.Context, requestID string) (result IssueSynchronization, err error)\n```\nSynchronizeIssueTransition is an explicit maintain/admin action over one checked terminal request, never a search for dirty Work or a workflow rerun.\n\n```go\nfunc (b Branch) SynchronizePublishedIssueTransition(ctx context.Context, publication *Publication) (IssueSynchronization, error)\n```\nSynchronizePublishedIssueTransition retains a native publisher's existing writer authority, but only for its exact checked publication, not arbitrary recovery.\n\n```go\ntype Capacity struct {\n\tLogical int `json:\"logical\"`\n\tNative  int `json:\"native\"`\n\tAccount int `json:\"account\"`\n}\n```\n\n```go\ntype CheckpointOperation struct {\n\tKind          string          `json:\"kind\"`\n\tPriorGitSHA   string          `json:\"prior_git_sha\"`\n\tPriorTip      string          `json:\"prior_tip\"`\n\tHistorySHA256 string          `json:\"history_sha256\"`\n\tStateSHA256   string          `json:\"state_sha256\"`\n\tState         json.RawMessage `json:\"state\"`\n}\n```\nCheckpointOperation carries a minimal projection bound to prior Git history.\n\n```go\ntype CheckpointParameters struct {\n\tPriorGitSHA   string `json:\"prior_git_sha\"`\n\tPriorTip      string `json:\"prior_tip\"`\n\tHistorySHA256 string `json:\"history_sha256\"`\n\tStateSHA256   string `json:\"state_sha256\"`\n}\n```\n\n```go\ntype ClaimExplanation struct {\n\tTip            string    `json:\"tip\"`\n\tAt             int64     `json:\"at\"`\n\tStatus         string    `json:\"status\"`\n\tBeforeTip      string    `json:\"before_tip\"`\n\tPosition       Position  `json:\"position\"`\n\tRequestID      string    `json:\"request_id\"`\n\tCommitID       string    `json:\"commit_id\"`\n\tPolicyEpoch    string    `json:\"policy_epoch\"`\n\tClaimID        string    `json:\"claim_id\"`\n\tDispatchID     string    `json:\"dispatch_id\"`\n\tHandle         string    `json:\"claim_handle\"`\n\tWorkID         string    `json:\"work_id\"`\n\tPool           string    `json:\"pool\"`\n\tPriority       int       `json:\"priority\"`\n\tFairnessKey    string    `json:\"fairness_key\"`\n\tWorkPosition   Position  `json:\"work_position\"`\n\tSelection      Selection `json:\"selection\"`\n\tClassPassPrior string    `json:\"class_pass_prior\"`\n\tKeyPassPrior   string    `json:\"key_pass_prior\"`\n\tCapacityBefore Capacity  `json:\"capacity_before\"`\n\tCapacityAfter  Capacity  `json:\"capacity_after\"`\n}\n```\n\n```go\nfunc ExplainBeforeClaim(commits []QueueCommit, claimID string) (ClaimExplanation, error)\n```\nExplainBeforeClaim validates the whole authority, then reduces the exact predecessor and earlier in-commit observations/Claims with native reducers.\n\n```go\ntype ClaimOperation struct {\n\tKind         string   `json:\"kind\"`\n\tWorkID       string   `json:\"work_id\"`\n\tClaimID      string   `json:\"claim_id\"`\n\tDispatchID   string   `json:\"dispatch_id\"`\n\tHandle       string   `json:\"handle\"`\n\tObservations []string `json:\"observations\"`\n}\n```\n\n```go\ntype ClaimReceipt struct {\n\tHandle  string `json:\"claim_handle\"`\n\tClaimID string `json:\"claim_id\"`\n\tWorkID  string `json:\"work_id\"`\n\tState   string `json:\"state\"`\n\tBarrier string `json:\"delivery_barrier\"`\n}\n```\n\n```go\ntype ClaimState struct {\n\tClaimOperation\n\tState              string `json:\"state\"`\n\tCommitID           string `json:\"commit_id\"`\n\tRequestID          string `json:\"request_id\"`\n\tTerminalCommitID   string `json:\"terminal_commit_id,omitempty\"`\n\tCancellationReason string `json:\"cancellation_reason,omitempty\"`\n\tRetryNotBefore     int64  `json:\"retry_not_before,omitempty\"`\n\tIssueComment       string `json:\"issue_comment,omitempty\"`\n\tKeepOpen           bool   `json:\"keep_open,omitempty\"`\n\tBarrier            string `json:\"barrier,omitempty\"`\n}\n```\n\n```go\ntype Clock struct {\n\tV      string            `json:\"v\"`\n\tPass   map[string]string `json:\"pass\"`\n\tActive map[string]bool   `json:\"active\"`\n}\n```\n\n```go\ntype Compaction struct {\n\tTip                     string `json:\"tip\"`\n\tAt                      int64  `json:\"at\"`\n\tChanged                 bool   `json:\"changed\"`\n\tAcknowledgmentRecovered bool   `json:\"acknowledgment_recovered\"`\n\tCommits                 int    `json:\"commits\"`\n\tDuplicatesRemoved       int    `json:\"duplicates_removed\"`\n\tBytesBefore             int    `json:\"bytes_before\"`\n\tBytesAfter              int    `json:\"bytes_after\"`\n}\n```\n\n```go\ntype Decision struct {\n\tTip         string       `json:\"tip\"`\n\tOperations  []Operation  `json:\"operations\"`\n\tAssignments []Assignment `json:\"assignments\"`\n\tReason      string       `json:\"reason\"`\n\tNext        Selection    `json:\"next\"`\n}\n```\n\n```go\nfunc PlanDispatch(state Projection, params DispatchParameters, requestID, commitID string, at int64) (Decision, error)\n```\n\n```go\ntype DeliveryRecovery struct {\n\tWorkID      string       `json:\"work_id\"`\n\tReason      string       `json:\"reason\"`\n\tAttempts    int          `json:\"attempts\"`\n\tPublication *Publication `json:\"publication,omitempty\"`\n}\n```\n\n```go\ntype DeliveryVerification struct {\n\tVerified          bool\n\tDescriptor        json.RawMessage\n\tReceipt           string\n\tDisposition       string\n\tPositiveNoEffects bool\n}\n```\n\n```go\ntype DeliveryVerifier func(context.Context, Projection, ClaimState) (DeliveryVerification, error)\n```\nDeliveryVerifier is a trusted, read-only receipt/effect-contract adapter. It verifies existing scoped effects; it must never execute or retry effects. Configuring it is a host capability, not an actor/source string or CLI flag.\n\n```go\ntype Dependency struct {\n\tKind      string    `json:\"kind\"`\n\tWorkID    string    `json:\"work_id,omitempty\"`\n\tResource  *Resource `json:\"resource,omitempty\"`\n\tCondition string    `json:\"condition,omitempty\"`\n}\n```\n\n```go\ntype DeploymentOperation struct {\n\tKind             string        `json:\"kind\"`\n\tPool             string        `json:\"pool\"`\n\tWorkerProfile    string        `json:\"worker_profile\"`\n\tExpectedRef      string        `json:\"expected_ref\"`\n\tExpectedContract string        `json:\"expected_contract\"`\n\tProfile          WorkerProfile `json:\"profile\"`\n\tAvailable        bool          `json:\"available\"`\n\tActivate         *bool         `json:\"activate,omitempty\"`\n\tReason           string        `json:\"reason\"`\n}\n```\nDeployment changes execution routes, never the installed scheduling policy.\n\n```go\ntype DispatchParameters struct {\n\tWorkerProfiles []string `json:\"worker_profiles,omitempty\"`\n\tPool           string   `json:\"pool\"`\n\tMaxClaims      int      `json:\"max_claims\"`\n\tMaxDispatches  int      `json:\"max_dispatches\"`\n\tMaxBytes       int64    `json:\"max_bytes\"`\n}\n```\n\n```go\nfunc (parameters DispatchParameters) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype DispatchState struct {\n\tAssignment\n\tProfile             WorkerProfile `json:\"profile\"`\n\tState               string        `json:\"state\"`\n\tSender              *Actor        `json:\"sender,omitempty\"`\n\tCredentialPrincipal string        `json:\"credential_principal,omitempty\"`\n\tRun                 *RunBinding   `json:\"run,omitempty\"`\n\tReleased            bool          `json:\"released\"`\n\tReason              string        `json:\"reason,omitempty\"`\n\tLifecycleWrites     int           `json:\"lifecycle_writes\"`\n}\n```\n\n```go\ntype DispatcherRoute struct {\n\tRepository string `json:\"repository\"`\n\tWorkflow   string `json:\"workflow\"`\n\tRef        string `json:\"ref\"`\n\tRevision   string `json:\"revision\"`\n}\n```\n\n```go\ntype EffectResource map[string]string\n```\nEffectResource is a broker-resolved target, not an assertion of authenticated evidence.\n\n```go\ntype Evidence struct {\n\tKind       string `json:\"kind\"`\n\tSource     string `json:\"source\"`\n\tRepository string `json:\"repository\"`\n\tWorkflow   string `json:\"workflow\"`\n\tRef        string `json:\"ref\"`\n\tPrincipal  string `json:\"principal\"`\n\tCheckedAt  int64  `json:\"checked_at\"`\n\tRunID      string `json:\"run_id,omitempty\"`\n\tRunAttempt int    `json:\"run_attempt,omitempty\"`\n\tStatus     string `json:\"status,omitempty\"`\n\tConclusion string `json:\"conclusion,omitempty\"`\n\tReceipt    string `json:\"receipt,omitempty\"`\n\tAttempts   int    `json:\"attempts,omitempty\"`\n\tEffects    string `json:\"effects,omitempty\"`\n}\n```\n\n```go\ntype FinishParameters struct {\n\tDispatchID  string `json:\"dispatch_id\"`\n\tClaimHandle string `json:\"claim_handle\"`\n\tOutcome     string `json:\"outcome\"`\n\tKeepOpen    bool   `json:\"keep_open,omitempty\"`\n}\n```\n\n```go\nfunc NormalizeFinishIntent(assignment Assignment, data []byte) (FinishParameters, error)\n```\nNormalizeFinishIntent preserves absent versus null through schema validation. The result still needs durable assignment/run/ownership verification.\n\n```go\ntype HardClearResult struct {\n\tStatus        string `json:\"status\"`\n\tRequestID     string `json:\"request_id\"`\n\tPriorGitSHA   string `json:\"prior_git_sha\"`\n\tPriorTip      string `json:\"prior_tip,omitempty\"`\n\tTip           string `json:\"tip\"`\n\tChanged       bool   `json:\"changed\"`\n\tWorkRemoved   int    `json:\"work_removed,omitempty\"`\n\tHistoryInGit  bool   `json:\"history_in_git\"`\n\tIdentityReset bool   `json:\"identity_reset\"`\n}\n```\nHardClearResult distinguishes a new queue authority from history-preserving cancellation.\n\n```go\ntype IssueCommentOperation struct {\n\tKind             string `json:\"kind\"`\n\tWorkID           string `json:\"work_id\"`\n\tCommentID        string `json:\"comment_id\"`\n\tProjectorRef     string `json:\"projector_ref\"`\n\tClaimID          string `json:\"claim_id,omitempty\"`\n\tAuthorityClaimID string `json:\"authority_claim_id,omitempty\"`\n}\n```\n\n```go\ntype IssueLinkOperation struct {\n\tKind         string   `json:\"kind\"`\n\tWorkID       string   `json:\"work_id\"`\n\tResource     Resource `json:\"resource\"`\n\tProjectorRef string   `json:\"projector_ref\"`\n\tClaimID      string   `json:\"claim_id,omitempty\"`\n}\n```\n\n```go\ntype IssueSynchronization struct {\n\tRequestID    string                        `json:\"request_id\"`\n\tSynchronized int                           `json:\"synchronized\"`\n\tDisabled     bool                          `json:\"disabled,omitempty\"`\n\tPending      []IssueSynchronizationPending `json:\"pending,omitempty\"`\n}\n```\n\n```go\ntype IssueSynchronizationPending struct {\n\tWorkID string `json:\"work_id\"`\n\tReason string `json:\"reason\"`\n}\n```\n\n```go\ntype IssuesSettings struct {\n\tLabel       string `json:\"label\"`\n\tTitlePrefix string `json:\"title_prefix\"`\n}\n```\nIssuesSettings describes optional Issues projection, not queue authority. Nil Settings.Issues means disabled; true or {} uses the default label and title prefix.\n\n```go\ntype LedgerSession struct {\n\t// contains filtered or unexported fields\n}\n```\nLedgerSession reuses one isolated object store for a scoped series of ledger operations. Each operation still resolves the remote queue ref before use.\n\n```go\nfunc (s *LedgerSession) Close()\n```\nClose removes the session's temporary Git object store.\n\n```go\nfunc (s *LedgerSession) Compact(ctx context.Context) (Compaction, error)\n```\nCompact compacts the current queue using the session's object store.\n\n```go\nfunc (s *LedgerSession) Publish(ctx context.Context, actor Actor, request Request) (Publication, error)\n```\nPublish publishes a checked request using the session's object store.\n\n```go\nfunc (s *LedgerSession) Read(ctx context.Context) ([]QueueCommit, error)\n```\nRead refreshes the queue head and reads its validated ledger.\n\n```go\ntype Limits struct {\n\tLedgerBytes       int64 `json:\"ledger_bytes\"`\n\tRecoveryBytes     int64 `json:\"recovery_bytes\"`\n\tPayloadBytes      int64 `json:\"payload_bytes\"`\n\tGraphNodes        int   `json:\"graph_nodes\"`\n\tPredecessors      int   `json:\"predecessors\"`\n\tPendingNodes      int   `json:\"pending_nodes\"`\n\tOperations        int   `json:\"operations\"`\n\tAssignmentBytes   int64 `json:\"assignment_bytes\"`\n\tResultBytes       int64 `json:\"result_bytes\"`\n\tEvidenceBytes     int64 `json:\"evidence_bytes\"`\n\tObservationWrites int   `json:\"observation_writes\"`\n}\n```\n\n```go\ntype NativeDeliveryHost struct {\n\t// contains filtered or unexported fields\n}\n```\nNativeDeliveryHost owns in-process callback capabilities. JSON cannot create or configure a host. The copied registrations cannot be changed by Work data.\n\n```go\nfunc NewNativeDeliveryHost(options NativeDeliveryHostOptions) *NativeDeliveryHost\n```\n\n```go\nfunc (host *NativeDeliveryHost) Verifier(branch Branch) DeliveryVerifier\n```\nVerifier returns the native adapter used by both recovery and every fresh CAS prefix. It re-reads API provenance and approved callbacks on each invocation; a copied receipt/digest or successful job can never bypass those reads.\n\n```go\ntype NativeDeliveryHostOptions struct {\n\tInventory func(context.Context, NativeDeliveryScope) (NativeDeliveryInventory, error)\n\t// Credentials proves the host has approved read credentials for this exact\n\t// target and generation before any output verifier may call an external SDK.\n\tCredentials func(context.Context, NativeDeliveryScope, EffectResource) error\n\tBuiltin     map[string]NativeOutputVerifier\n\tDeclared    map[string]NativeOutputVerifier\n}\n```\n\n```go\ntype NativeDeliveryInventory struct {\n\tClosed  bool\n\tOutputs []NativeDeliveryOutput\n}\n```\nNativeDeliveryInventory must come from an approved process callback, not a receipt file, subprocess stdout, artifact, or caller-supplied source string. Closed means the process has stopped accepting effects for this member.\n\n```go\ntype NativeDeliveryOutput struct {\n\tType      string\n\tTarget    EffectResource\n\tIntent    json.RawMessage\n\tRequestID string\n}\n```\nNativeDeliveryOutput is an item from the protected worker's closed effect channel. Intent and Target are data; neither grants verifier authority.\n\n```go\ntype NativeDeliveryScope struct {\n\tMember               AssignmentClaim\n\tRun                  RunBinding\n\tCompletionID         string\n\tCredentialGeneration string\n}\n```\nNativeDeliveryScope binds approved process callbacks to the immutable member and the authenticated original Actions attempt. It is not a wire credential.\n\n```go\ntype NativeOutputVerifier func(context.Context, NativeDeliveryScope, NativeDeliveryOutput, json.RawMessage) (json.RawMessage, bool, error)\n```\nNativeOutputVerifier performs independent readback only. Hosts register these callbacks before admitting untrusted worker input; no verifier is executable merely because a Work names its ID.\n\n```go\ntype NativeRun struct {\n\tID           json.Number `json:\"id\"`\n\tRunAttempt   int         `json:\"run_attempt\"`\n\tEvent        string      `json:\"event\"`\n\tStatus       string      `json:\"status\"`\n\tConclusion   string      `json:\"conclusion\"`\n\tHeadSHA      string      `json:\"head_sha\"`\n\tPath         string      `json:\"path\"`\n\tDisplayTitle string      `json:\"display_title\"`\n\tActor        struct {\n\t\tID    json.Number `json:\"id\"`\n\t\tLogin string      `json:\"login\"`\n\t} `json:\"actor\"`\n\tTriggeringActor struct {\n\t\tID json.Number `json:\"id,omitempty\"`\n\t} `json:\"triggering_actor\"`\n\tRepository struct {\n\t\tFullName string `json:\"full_name\"`\n\t} `json:\"repository\"`\n}\n```\nNativeRun is a bounded projection of the authenticated Actions run API. Native/resource IDs are decoded as json.Number and never through float64.\n\n```go\ntype Observation struct {\n\tKind                 string   `json:\"kind\"`\n\tObservationID        string   `json:\"observation_id\"`\n\tResource             Resource `json:\"resource\"`\n\tCondition            string   `json:\"condition\"`\n\tState                string   `json:\"state\"`\n\tObservedAt           int64    `json:\"observed_at\"`\n\tCredentialGeneration string   `json:\"credential_generation\"`\n\tSourceUpdatedAt      *int64   `json:\"source_updated_at,omitempty\"`\n\tReadStatus           string   `json:\"read_status\"`\n\tStateReason          string   `json:\"state_reason,omitempty\"`\n\tResourceState        string   `json:\"resource_state,omitempty\"`\n\tMerged               *bool    `json:\"merged,omitempty\"`\n\tMergeCommit          string   `json:\"merge_commit,omitempty\"`\n}\n```\n\n```go\ntype Operation = json.RawMessage\n```\nOperation stores a closed variant as raw JSON. Typed accessors keep absent, null, and explicit zero distinct, unlike a struct with omitempty authority.\n\n```go\nfunc Op(value any) (Operation, error)\n```\n\n```go\ntype OperationsParameters struct {\n\tOperations []Operation `json:\"operations\"`\n}\n```\n\n```go\ntype Policy struct {\n\tAuthorization     string                  `json:\"authorization,omitempty\"`\n\tMode              string                  `json:\"mode\"`\n\tClassWeights      []int                   `json:\"class_weights\"`\n\tAccountingWeights map[string]int          `json:\"accounting_weights\"`\n\tProducers         map[string]ProducerRule `json:\"producers\"`\n\tProjectors        []ProjectorRule         `json:\"projectors,omitempty\"`\n\tPools             map[string]PoolPolicy   `json:\"pools\"`\n\tLimits            Limits                  `json:\"limits\"`\n}\n```\n\n```go\nfunc DefaultPolicy(principal, repository string) Policy\n```\n\n```go\nfunc FuturePolicy(state Projection) Policy\n```\nFuturePolicy exposes current routes for trusted admission builders only. It does not replace the installed policy or affect existing assignments.\n\n```go\ntype PoolClocks struct {\n\tClasses Clock         `json:\"classes\"`\n\tKeys    map[int]Clock `json:\"keys\"`\n}\n```\n\n```go\ntype PoolInstallOperation struct {\n\tKind      string     `json:\"kind\"`\n\tPool      string     `json:\"pool\"`\n\tConfig    PoolPolicy `json:\"config\"`\n\tConfigRef string     `json:\"config_ref,omitempty\"`\n}\n```\n\n```go\ntype PoolPolicy struct {\n\tDefaultProfile      string                   `json:\"default_profile\"`\n\tProfiles            map[string]WorkerProfile `json:\"profiles\"`\n\tLogicalLimit        int                      `json:\"logical_limit\"`\n\tNativeLimit         int                      `json:\"native_limit\"`\n\tPerAccountLimit     int                      `json:\"per_account_limit,omitempty\"`\n\tAllowedRepositories []string                 `json:\"allowed_repositories\"`\n\tMaxObservationAgeMS int64                    `json:\"max_observation_age_ms\"`\n\tRetry               RetryPolicy              `json:\"retry\"`\n\tReconciliation      ReconciliationPolicy     `json:\"reconciliation\"`\n}\n```\n\n```go\ntype PoolSettings struct {\n\tConcurrency     int           `json:\"concurrency\"`\n\tPerAccountLimit int           `json:\"per_account_limit,omitempty\"`\n\tRetry           SettingsRetry `json:\"retry\"`\n}\n```\nPoolSettings overrides scheduling while inheriting host-approved worker routes.\n\n```go\ntype Position struct {\n\tCommit    int `json:\"commit\"`\n\tOperation int `json:\"operation\"`\n}\n```\n\n```go\ntype ProducerRule struct {\n\tPools        []string `json:\"pools\"`\n\tPriorities   []int    `json:\"priorities\"`\n\tFairnessKeys []string `json:\"fairness_keys\"`\n}\n```\n\n```go\ntype Projection struct {\n\tSchedulingProfiles   []string                                `json:\"-\"`\n\tRepository           string                                  `json:\"repository\"`\n\tTip                  string                                  `json:\"tip\"`\n\tPolicyEpoch          string                                  `json:\"policy_epoch\"`\n\tPolicy               *Policy                                 `json:\"policy\"`\n\tDeployments          map[string]map[string]*WorkerDeployment `json:\"deployments,omitempty\"`\n\tWorks                map[string]*WorkState                   `json:\"works\"`\n\tClaims               map[string]*ClaimState                  `json:\"claims\"`\n\tDispatches           map[string]*DispatchState               `json:\"dispatches\"`\n\tObservations         map[string]*Observation                 `json:\"observations\"`\n\tRequests             map[string]QueueCommit                  `json:\"requests\"`\n\tClocks               map[string]PoolClocks                   `json:\"clocks\"`\n\tAdmissionPaused      bool                                    `json:\"admission_paused\"`\n\tGrantsPaused         bool                                    `json:\"grants_paused\"`\n\tCredentialGeneration string                                  `json:\"credential_generation\"`\n\tStats                Stats                                   `json:\"stats\"`\n\tLedgerBytes          int64                                   `json:\"ledger_bytes\"`\n\tObservationWrites    map[string]int                          `json:\"observation_writes\"`\n\tRequestOrder         []string                                `json:\"-\"`\n\tCheckpointReceipts   []checkpointReceipt                     `json:\"-\"`\n\tWorkCreators         map[string]Actor                        `json:\"-\"`\n\tClaimExplanations    map[string]ClaimExplanation             `json:\"-\"`\n\tSeenEpochs           map[string]bool                         `json:\"-\"`\n\tSeenGenerations      map[string]bool                         `json:\"-\"`\n\tObservationIDs       map[string]*Observation                 `json:\"-\"`\n\tTerminalBarriers     map[string]Operation                    `json:\"-\"`\n\tCancellations        map[string]Operation                    `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Replay(commits []QueueCommit) (Projection, error)\n```\n\n```go\nfunc ReplayAt(commits []QueueCommit, at int64) (Projection, error)\n```\nReplayAt adds a disposable current-time view after validating historical decisions at committed time. It must not be used to construct checkpoints.\n\n```go\nfunc ReplayAtForHost(commits []QueueCommit, at int64, host string) (Projection, error)\n```\nReplayAtForHost adds a disposable current-time view using the selected resource host. An empty host preserves ReplayAt's GITHUB\\_SERVER\\_URL-based default.\n\n```go\nfunc ReplayForHost(commits []QueueCommit, host string) (Projection, error)\n```\nReplayForHost validates a ledger against an explicit GitHub resource host. An empty host preserves Replay's GITHUB\\_SERVER\\_URL-based default.\n\n```go\ntype ProjectorRule struct {\n\tPrincipal        string     `json:\"principal\"`\n\tWorkflow         string     `json:\"workflow\"`\n\tRef              string     `json:\"ref\"`\n\tPools            []string   `json:\"pools\"`\n\tRepositories     []string   `json:\"repositories\"`\n\tBackingIssues    []Resource `json:\"backing_issues,omitempty\"`\n\tCompletionPolicy string     `json:\"completion_policy,omitempty\"`\n}\n```\n\n```go\ntype ProtocolError struct {\n\tCode    string\n\tMessage string\n}\n```\nProtocolError preserves a stable rejection code without requiring message matching.\n\n```go\nfunc (e *ProtocolError) Error() string\n```\n\n```go\ntype Publication struct {\n\tCommit   *QueueCommit `json:\"commit,omitempty\"`\n\tDecision Decision     `json:\"decision\"`\n\tChanged  bool         `json:\"changed\"`\n}\n```\n\n```go\ntype QueueCommit struct {\n\tVersion     int         `json:\"version\"`\n\tID          string      `json:\"id\"`\n\tPrevious    *string     `json:\"previous\"`\n\tRequest     Request     `json:\"request\"`\n\tActor       Actor       `json:\"actor\"`\n\tPolicyEpoch string      `json:\"policy_epoch\"`\n\tAt          int64       `json:\"at\"`\n\tOperations  []Operation `json:\"operations\"`\n\tTrace       *Trace      `json:\"trace,omitempty\"`\n}\n```\n\n```go\nfunc Compact(commits []QueueCommit) ([]QueueCommit, error)\n```\n\n```go\nfunc CompactCheckpoint(commits []QueueCommit, priorGitSHA string, actor Actor, at int64) ([]QueueCommit, error)\n```\nCompactCheckpoint constructs a minimal state checkpoint from validated history; priorGitSHA names the Git commit containing the prior ledger.\n\n```go\nfunc Genesis(actor Actor, policy Policy, requestID, epoch string, at int64) (QueueCommit, error)\n```\n\n```go\nfunc Parse(data []byte) ([]QueueCommit, error)\n```\n\n```go\ntype Reconciliation struct {\n\tDispatchID  string       `json:\"dispatch_id\"`\n\tState       string       `json:\"state\"`\n\tReason      string       `json:\"reason\"`\n\tEvidence    *Evidence    `json:\"evidence,omitempty\"`\n\tPublication *Publication `json:\"publication,omitempty\"`\n}\n```\n\n```go\ntype ReconciliationPolicy struct {\n\tMaxAttempts int   `json:\"max_attempts\"`\n\tDeadlineMS  int64 `json:\"deadline_ms\"`\n}\n```\n\n```go\ntype RemediationVerifier func(context.Context, Projection, WorkDefinition) error\n```\nRemediationVerifier validates domain-specific idempotence, compensation, or inspection-only scope before replacing a node with partial/unknown effects.\n\n```go\ntype Replacement struct {\n\tWorkID      string `json:\"work_id\"`\n\tDisposition string `json:\"disposition\"`\n\tEvidence    string `json:\"evidence\"`\n}\n```\n\n```go\ntype Request struct {\n\tID          string          `json:\"id\"`\n\tKind        string          `json:\"kind\"`\n\tParameters  json.RawMessage `json:\"parameters\"`\n\tFingerprint string          `json:\"fingerprint\"`\n}\n```\n\n```go\nfunc NewRequest(id, kind string, actor Actor, parameters any) (Request, error)\n```\n\n```go\ntype RequestExplanation struct {\n\tTip         string             `json:\"tip\"`\n\tAt          int64              `json:\"at\"`\n\tStatus      string             `json:\"status\"`\n\tRequestID   string             `json:\"request_id\"`\n\tCommitID    string             `json:\"commit_id\"`\n\tKind        string             `json:\"kind\"`\n\tPolicyEpoch string             `json:\"policy_epoch\"`\n\tClaims      []ClaimExplanation `json:\"claims\"`\n}\n```\n\n```go\nfunc ExplainRequest(commits []QueueCommit, requestID string) (RequestExplanation, error)\n```\n\n```go\ntype Resource struct {\n\tKind         string `json:\"kind\"`\n\tHost         string `json:\"host\"`\n\tRepository   string `json:\"repository\"`\n\tRepositoryID string `json:\"repository_id\"`\n\tResourceID   string `json:\"resource_id\"`\n\tNumber       string `json:\"number\"`\n}\n```\n\n```go\ntype ResultReference struct {\n\tWorkID         string          `json:\"work_id\"`\n\tResultCommitID string          `json:\"result_commit_id\"`\n\tDescriptor     json.RawMessage `json:\"descriptor\"`\n}\n```\n\n```go\ntype RetryPolicy struct {\n\tMaxAttempts int   `json:\"max_attempts\"`\n\tBackoffMS   int64 `json:\"backoff_ms\"`\n}\n```\n\n```go\ntype RunBinding struct {\n\tRunID      string `json:\"run_id\"`\n\tRunAttempt int    `json:\"run_attempt\"`\n\tRepository string `json:\"repository\"`\n\tWorkflow   string `json:\"workflow\"`\n\tRef        string `json:\"ref\"`\n\tPrincipal  string `json:\"principal\"`\n\tEvent      string `json:\"event\"`\n}\n```\n\n```go\ntype Selection struct {\n\tWorkID       string   `json:\"work_id,omitempty\"`\n\tReason       string   `json:\"reason\"`\n\tObservations []string `json:\"observations\"`\n\tClassPass    string   `json:\"class_pass,omitempty\"`\n\tKeyPass      string   `json:\"key_pass,omitempty\"`\n}\n```\n\n```go\nfunc PlanNext(state Projection, pool string, at int64) (Selection, error)\n```\nPlanNext does not change clocks, active sets, reservations, or ownership.\n\n```go\ntype Settings struct {\n\tMode              string                  `json:\"mode\"`\n\tClassWeights      []int                   `json:\"class_weights\"`\n\tAccountingWeights map[string]int          `json:\"accounting_weights\"`\n\tConcurrency       int                     `json:\"concurrency\"`\n\tPendingLimit      int                     `json:\"pending_limit\"`\n\tRetry             SettingsRetry           `json:\"retry\"`\n\tPools             map[string]PoolSettings `json:\"pools\"`\n\tIssues            *IssuesSettings         `json:\"issues,omitempty\"`\n}\n```\nSettings contains scheduling and optional Issues projection preferences, never queue authorization or routes. ParseSettings accepts the raw work\\_queue property from .github/workflows/aw.json.\n\n```go\nfunc ParseRepositorySettings(data []byte) (Settings, error)\n```\nParseRepositorySettings extracts only work\\_queue; other aw.json properties are owned by the repository configuration parser.\n\n```go\nfunc ParseSettings(data []byte) (Settings, error)\n```\nParseSettings resolves omitted preferences to the ordinary singleton queue defaults. A missing section is nil/empty bytes; explicit null or malformed input is an error.\n\n```go\nfunc (settings Settings) Apply(policy Policy) (Policy, error)\n```\nApply copies only scheduling preferences onto host-approved policy routes. Issues preferences remain available to the host and never enroll projectors. Additional scheduling pools inherit the approved default pool; no profile authority is authored. Full policy validation remains the host's responsibility after binding templates.\n\n```go\ntype SettingsRetry struct {\n\tMaxAttempts    int `json:\"max_attempts\"`\n\tBackoffSeconds int `json:\"backoff_seconds\"`\n}\n```\n\n```go\ntype Stats struct {\n\tWork         int `json:\"work\"`\n\tAvailable    int `json:\"available\"`\n\tClaimed      int `json:\"claimed\"`\n\tCompleted    int `json:\"completed\"`\n\tCancelled    int `json:\"cancelled\"`\n\tClaims       int `json:\"claims\"`\n\tDispatches   int `json:\"dispatches\"`\n\tTransactions int `json:\"transactions\"`\n\tNodes        int `json:\"nodes\"`\n}\n```\n\n```go\ntype SubmitParameters struct {\n\tNodes []WorkDefinition `json:\"nodes\"`\n}\n```\n\n```go\ntype Trace struct {\n\tTraceID          string `json:\"trace_id,omitempty\"`\n\tSpanID           string `json:\"span_id,omitempty\"`\n\tPublisherAttempt int    `json:\"publisher_attempt,omitempty\"`\n}\n```\n\n```go\ntype TraceEvent struct {\n\tPosition            Position        `json:\"position\"`\n\tCommitID            string          `json:\"commit_id\"`\n\tPrevious            *string         `json:\"previous\"`\n\tRequestID           string          `json:\"request_id\"`\n\tRequestKind         string          `json:\"request_kind\"`\n\tPolicyEpoch         string          `json:\"policy_epoch\"`\n\tAt                  int64           `json:\"at\"`\n\tActor               Actor           `json:\"actor\"`\n\tKind                string          `json:\"kind\"`\n\tPool                string          `json:\"pool,omitempty\"`\n\tWorkerProfile       string          `json:\"worker_profile,omitempty\"`\n\tProfile             *WorkerProfile  `json:\"profile,omitempty\"`\n\tExpectedRef         string          `json:\"expected_ref,omitempty\"`\n\tExpectedContract    string          `json:\"expected_contract,omitempty\"`\n\tAvailable           *bool           `json:\"available,omitempty\"`\n\tActivate            *bool           `json:\"activate,omitempty\"`\n\tLogicalContract     string          `json:\"logical_contract,omitempty\"`\n\tAdmissionContract   string          `json:\"admission_contract,omitempty\"`\n\tExecutionRef        string          `json:\"execution_ref,omitempty\"`\n\tWorkID              string          `json:\"work_id,omitempty\"`\n\tClaimID             string          `json:\"claim_id,omitempty\"`\n\tDispatchID          string          `json:\"dispatch_id,omitempty\"`\n\tCredentialPrincipal string          `json:\"credential_principal,omitempty\"`\n\tClaimHandle         string          `json:\"claim_handle,omitempty\"`\n\tCompletionID        string          `json:\"completion_id,omitempty\"`\n\tKeepOpen            bool            `json:\"keep_open,omitempty\"`\n\tState               string          `json:\"state,omitempty\"`\n\tReason              string          `json:\"reason,omitempty\"`\n\tDisposition         string          `json:\"disposition,omitempty\"`\n\tControl             string          `json:\"control,omitempty\"`\n\tValue               json.RawMessage `json:\"value,omitempty\"`\n\tObservationID       string          `json:\"observation_id,omitempty\"`\n\tObservations        []string        `json:\"observations,omitempty\"`\n\tRun                 *RunBinding     `json:\"run,omitempty\"`\n\tRunID               string          `json:\"run_id,omitempty\"`\n\tRunAttempt          int             `json:\"run_attempt,omitempty\"`\n\tEvidence            *TraceEvidence  `json:\"evidence,omitempty\"`\n\tTrace               *Trace          `json:\"trace,omitempty\"`\n}\n```\n\n```go\ntype TraceEvidence struct {\n\tKind       string `json:\"kind\"`\n\tSource     string `json:\"source\"`\n\tCheckedAt  int64  `json:\"checked_at\"`\n\tRepository string `json:\"repository\"`\n\tWorkflow   string `json:\"workflow\"`\n\tRef        string `json:\"ref\"`\n\tPrincipal  string `json:\"principal\"`\n\tRunID      string `json:\"run_id,omitempty\"`\n\tRunAttempt int    `json:\"run_attempt,omitempty\"`\n\tStatus     string `json:\"status,omitempty\"`\n\tConclusion string `json:\"conclusion,omitempty\"`\n\tEffects    string `json:\"effects,omitempty\"`\n\tAttempts   int    `json:\"attempts,omitempty\"`\n}\n```\n\n```go\ntype TraceOptions struct {\n\tRequestID string\n\tClaimID   string\n\tOffset    int\n\tLimit     int\n}\n```\n\n```go\ntype TracePage struct {\n\tTip               string       `json:\"tip\"`\n\tAt                int64        `json:\"at\"`\n\tStatus            string       `json:\"status\"`\n\tTraceAvailability string       `json:\"trace_availability\"`\n\tRequestID         string       `json:\"request_id,omitempty\"`\n\tClaimID           string       `json:\"claim_id,omitempty\"`\n\tOffset            int          `json:\"offset\"`\n\tLimit             int          `json:\"limit\"`\n\tTotalEvents       int          `json:\"total_events\"`\n\tNextOffset        *int         `json:\"next_offset,omitempty\"`\n\tEvents            []TraceEvent `json:\"events\"`\n}\n```\n\n```go\nfunc TraceQueue(commits []QueueCommit, options TraceOptions, at int64) (TracePage, error)\n```\nTraceQueue exposes bounded ledger provenance, never payloads, descriptors, receipt contents or request parameters. Missing telemetry does not lose facts.\n\n```go\ntype WorkDefinition struct {\n\tKind             string          `json:\"kind\"`\n\tWorkID           string          `json:\"work_id\"`\n\tGraphID          string          `json:\"graph_id\"`\n\tNodeKey          string          `json:\"node_key\"`\n\tPool             string          `json:\"pool\"`\n\tPriority         int             `json:\"priority\"`\n\tFairnessKey      string          `json:\"fairness_key\"`\n\tWorkerProfile    string          `json:\"worker_profile\"`\n\tLogicalContract  string          `json:\"logical_contract,omitempty\"`\n\tExecutionRef     string          `json:\"execution_ref,omitempty\"`\n\tBatchTrustDomain string          `json:\"batch_trust_domain\"`\n\tPayload          json.RawMessage `json:\"payload\"`\n\tDependsOn        []Dependency    `json:\"depends_on\"`\n\tEnqueued         int64           `json:\"enqueued\"`\n\tExpiresAt        *int64          `json:\"expires_at,omitempty\"`\n\tSubject          *Resource       `json:\"subject,omitempty\"`\n\tBackingIssue     *Resource       `json:\"backing_issue,omitempty\"`\n\tReplacementOf    *Replacement    `json:\"replacement_of,omitempty\"`\n}\n```\n\n```go\nfunc NewChildWork(state Projection, actor Actor, payload []byte, nodeKey string, at int64) (WorkDefinition, error)\n```\n\n```go\nfunc NewWork(payload []byte, graphID, nodeKey, pool string, policy Policy, at int64) (WorkDefinition, error)\n```\n\n```go\ntype WorkExplanation struct {\n\tWorkID             string   `json:\"work_id\"`\n\tState              string   `json:\"state\"`\n\tBarrier            string   `json:\"barrier\"`\n\tReady              bool     `json:\"ready\"`\n\tSchedulingEligible bool     `json:\"scheduling_eligible\"`\n\tReason             string   `json:\"reason\"`\n\tPath               []string `json:\"path\"`\n\tObservations       []string `json:\"observations\"`\n}\n```\n\n```go\nfunc ExplainWork(state Projection, id string, at int64) (WorkExplanation, error)\n```\n\n```go\ntype WorkState struct {\n\tWorkDefinition\n\tAdmissionContract    string          `json:\"admission_contract,omitempty\"`\n\tEffectivePriority    int             `json:\"effective_priority,omitempty\"`\n\tState                string          `json:\"state\"`\n\tPosition             Position        `json:\"position\"`\n\tClaimID              string          `json:\"claim_id,omitempty\"`\n\tAttempts             int             `json:\"attempts\"`\n\tRetryNotBefore       int64           `json:\"retry_not_before\"`\n\tCompletionID         string          `json:\"completion_id,omitempty\"`\n\tBarrier              string          `json:\"barrier\"`\n\tResult               json.RawMessage `json:\"result,omitempty\"`\n\tResultCommitID       string          `json:\"result_commit_id,omitempty\"`\n\tDisposition          string          `json:\"disposition,omitempty\"`\n\tCancellationReason   string          `json:\"cancellation_reason,omitempty\"`\n\tCancellationClaimID  string          `json:\"cancellation_claim_id,omitempty\"`\n\tCancellationCommitID string          `json:\"cancellation_commit_id,omitempty\"`\n\tIssueLink            *Resource       `json:\"issue_link,omitempty\"`\n\tIssueSummary         string          `json:\"issue_summary,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (work *WorkState) SchedulingPriority() int\n```\nSchedulingPriority leaves the admitted definition and historical Claims immutable.\n\n```go\ntype WorkerDeployment struct {\n\tCurrentRef      string                    `json:\"current_ref\"`\n\tCurrentContract string                    `json:\"current_contract\"`\n\tRevisions       map[string]WorkerRevision `json:\"revisions\"`\n}\n```\n\n```go\ntype WorkerProfile struct {\n\tLogicalContract string `json:\"logical_contract,omitempty\"`\n\tWorkflow        string `json:\"workflow\"`\n\tRef             string `json:\"ref\"`\n\tPrincipal       string `json:\"principal,omitempty\"`\n\tTrustDomain     string `json:\"trust_domain\"`\n\tCredentialScope string `json:\"credential_scope\"`\n\tEffectScope     string `json:\"effect_scope\"`\n\tMaxClaims       int    `json:\"max_claims\"`\n\tShareKeys       bool   `json:\"share_keys\"`\n}\n```\n\n```go\ntype WorkerRevision struct {\n\tProfile   WorkerProfile `json:\"profile\"`\n\tAvailable bool          `json:\"available\"`\n}\n```\n\n","path":"github.com/github/gh-aw/pkg/workqueue","name":"workqueue","synopsis":"","isRedistributable":true}
