Delivery observations and ticket closure

GET /v1/work-coordinators/{coordinatorId}/items/{itemId}/delivery-observation returns an allowlisted snapshot of a stored work claim. It requires the existing coordinator read authorization, feature gate, current tenant membership and applicable unrevoked read grant. Responses are private and no-store. Unknown query parameters are rejected.

The response names the organization, coordinator, item, lane and revision. Its claim contains kind, state, canonical manifest source SHA/repository/project when available, and SHA-256 of the raw receipt. It never returns receipt contents, credentials, leases or a signature. The provenance is always work-item-claim/untrusted. recordedAt is the stored item update time, not a freshness guarantee or a production probe.

Acceptance is always unknown/independent-acceptance-unavailable. Neither a live work state, receipt string, receipt hash, review artifact nor public application version proves acceptance of a specific product at an exact source revision. Independent observers must retain that distinction and bind their own deployment observations to an operator-maintained product mapping. No acceptance signer or new authority is installed.

For compatibility, ship/install workers may still record live claims. Their linked closure intents stay pending with an actionable reason; repeated close-tickets calls never dispatch issue mutations. The lane remains blocked while any delivery node is an unaccepted live claim, including an ancestor hidden by a completed child. The shared readiness guard also refuses leases dependent on a live ship/install item. Cross-lane dependencies inspect all upstream delivery nodes, so a passed child cannot hide a live delivery ancestor and release downstream work. The dependency traversal follows passed legacy intermediates and applies the delivery barrier to every crossed predecessor lane. It uses deduplicated IDs to terminate on legacy cycles. Unrelated same-lane work and passed non-delivery predecessors retain their normal scheduling behavior. Agent issue updates to done (including canonical stage changes) are refused for any issue linked to ship/install work, including when an older delivery claims live. A normal authorized human issue closure remains available after independent verification. There is no automatic acceptance override, including for administrator callers or receipt JSON claiming PASS.

A future acceptance authority must provide a separately authenticated, immutable record bound to organization, project/product, item and generation, exact source and observed deployment identity, with freshness/revocation checks before ticket mutation. Until then, automation fails closed. This patch neither retroactively reopens already-closed tickets nor changes unrelated issue workflows.

Existing leases

A lease does not permanently grant dependency readiness. Before a held worker starts, completes, renews a heartbeat, or uses another execution path through assertRunnable, the service rechecks the current shared readiness predicate. A new unaccepted delivery upstream can therefore fence an existing lease with work_dependency_not_ready. Rejection must not mutate item state, revision, heartbeat or expiry. Explicit cancellation/escalation paths remain available to stop work.

Maintenance uses a recovery-only intent: reclaiming an expired lease may proceed despite changed dependencies, but does not authorize execution. The item returns to the queue and the normal lease guard continues to hold it. Existing lane/authority holds retain their previous recovery behavior. This server fence cannot undo external effects already performed; the worker adapter's heartbeat-loss stop path and operator containment remain separate operational concerns.

The readiness SELECT does not lock each ancestor row. Normal coordinator mutations serialize on the coordinator row's transaction-wide update lock; dependency edges are scoped to that coordinator. Parent mutations lock the child coordinator as well. This protects the inspected application transaction paths, not direct database writers that bypass the lock protocol. The recovery intent is internal to maintenance's expired-lease selection and is not a request parameter. No instantaneous revocation of already-performed external effects is claimed.

MCP production claims

Canonical issue updates apply the same independent acceptance requirement to explicit agent on_production and done requests, including resolved stage IDs and same-status repetition. Field-only edits that do not request a status/stage remain legal. on_production is a nonterminal status; this repair does not describe the original path as a terminal-done bypass. Human transitions and unrelated agent work retain existing behavior. No acceptance issuer is introduced.

close_issue_done attempts the canonical status update before writing its evidence note. A refused transition leaves no new note. These remain two independent requests: if the status succeeds and the note request returns an HTTP error, the tool returns issue_note_failed_after_status_update with statusUpdated: true, noteRecorded: 'unknown', and the original refusal. A failure response cannot prove the note was never committed, so callers must inspect comments before retrying. This is not atomicity or a rollback promise. The scope covers explicit status/stage requests, not arbitrary comments or background revalidation of existing human-set status.

We use essential cookies to keep you signed in. See our Privacy Policy for details.