Repository navigation
Defer work queue run binding to trusted worker activation - #76253
Conversation
Remove dispatcher worker metadata polling after an accepted native dispatch. Report activation pending separately from binding and uncertain launches, retaining mandatory worker identity verification and resend fencing. Make stranded-run reconciliation more efficient without weakening its native checks. Co-authored-by: Copilot App <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully!
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Found one correctness issue in stranded-launch reconciliation: a transient correlation mismatch discovered from the workflow listing is promoted to a binding conflict, bypassing the intended delayed retry. Inline comment posted. Static review only; tests were not run per review constraints. The specialist pass was unavailable because its file-read tool invocation was rejected.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
What this change does: It defers binding accepted worker dispatches until trusted activation and updates reconciliation and reporting.
Two test cases can be simplified without losing coverage; see the inline comments.
Verdict: Ship.
Lean: -15 lines possible.
Generated by ✂️ Ponytail Reviewer for #76253 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 181
Comment /ponytail to run again
There was a problem hiding this comment.
Reviewed head 5dde5dc4ef2f24f27fd6220405dc253cd1251eed against the work queue contract in docs/src/content/docs/specs/work-queue-specification.md, especially section 7.8. The implementation and regression evidence intentionally move native binding from dispatcher-side polling to trusted activation/reconciliation, preserve exact identity/token checks, and retain uncertain launches without retry or release. I synchronized the affected specification: HTTP 200 receipts now yield activation_pending, dispatcher metadata polling is prohibited, reconciliation hints/backoff are specified, and the recovery table distinguishes uncertain POSTs from pending activation. The specification commit was queued to the same-repository PR branch via safe output. No blocking contract violations found. Static review did not execute tests or conformance scripts.
Generated by PR Specification Reviewer for #76253 · copilot · gpt50 · ~7 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again
Update the ESLint factory lifecycle integration tests for activation-pending native dispatches. Preserve exact durable run identity checks, dispatcher replay deduplication, and completed/cancelled claim authorization after trusted worker activation. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs, /tdd, and /grill-with-docs. Requesting changes: the core design is sound, but test and workflow expectations still assert the old bound launch state.
📋 Key Themes & Highlights
Blocking (outside diff hunks, so no inline comment)
- Smoke workflow
.github/workflows/smoke-work-queue-dispatcher.md:58assertslaunch.state === "bound". This PR returnsactivation_pendingfrom dispatch, so the smoke check fails on a real run. Acceptactivation_pendingand verify binding through the worker activation result, then runmake recompile. Do not hand-edit the.lock.yml. - Adapter checks
actions/setup/js/work_queue_control_adapter_checks.cjs:216and:933assertdispatch.state === "bound"inverifiedmode, and:933also assertsstatus === "ok". TheworkerReads === 1expectation (around line 209) assumes the removed worker GET. Thework_queue_control_adapters.test.cjssuite will likely fail. - Docs
docs/src/content/docs/reference/work-queue.md:413still says onlystate: "bound"proves a verified native run. That now conflicts with the newactivation_pendingparagraph at lines 378-384.
Non-blocking
actions/setup/js/work_queue_lifecycle_checks.cjs:226asserts"bound", but no file imports it, so it never runs. Remove it or fix it to avoid misleading future readers.isTransientVerificationErrorinwork_queue_native.cjsis exported but no longer used in production. Remove it, or note that it is kept for tests.
Positive Highlights
- ✅ Correctly moves binding to trusted worker activation, which is validated by
validateNativeRunand the principal/repository/token checks. - ✅ Durable
startedmarker fences resends. - ✅ Telemetry
OUTCOMES, the success check, and the unresolved filter were all updated consistently. - ✅ Per-operation identity reader and bounded correlation backoff are well tested.
Verification limitation
I could not run the targeted vitest suites. node_modules/.bin/vitest is absent and the npm registry is unreachable from this runner. These findings come from static tracing of the diff and the stale assertions, not from a test run.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again
Keep title-pending native attempts distinct from verified candidates and genuine identity conflicts. Preserve the sole discovered run hint for bounded retries while fencing ambiguous IDs, invalid identities, and unverified binding. Add delayed-title and conflict regressions and simplify redundant dispatch acceptance tests without weakening their safety assertions. Co-authored-by: Copilot App <[email protected]>
|
Regarding this notification: this is a review-start notification, not actionable feedback, so no code change is needed. |
|
Regarding this notification: this is a processing notification, not actionable feedback, so no code change is needed. |
|
Regarding this notification: this is a review-start notification, not actionable feedback, so no code change is needed. |
|
Regarding this notification: this is a processing notification, not actionable feedback, so no code change is needed. |
|
Regarding this notification: this announces test analysis without a finding, so no code change is needed. |
|
Regarding this notification: this announces a design check without a finding, so no code change is needed. |
|
Regarding this managed summary: the correlation finding is already tracked in the inline review. No separate change or managed-memory edit is needed. |
There was a problem hiding this comment.
🟡 Changes recommended
Fresh accepted dispatches fail smoke verification because checks still require immediate binding, and recovery without a run hint can bypass the intended retry backoff.
2 open issues
What changed in this PR
Moves accepted native work-queue dispatches into a pending-activation phase, avoiding dispatcher-side metadata polling while leaving durable binding to trusted worker activation.
Changes:
- Returns
activation_pendingreceipts and distinguishes accepted launches from uncertain dispatches in controls output and telemetry. - Adds operation-scoped repository authentication reuse and bounded exponential correlation delays.
- Updates lifecycle documentation and regressions for deferred binding, activation checks and recovery.
| File | Description |
|---|---|
docs/src/content/docs/reference/work-queue.md |
Documents pending acceptance, activation verification and recovery delays. |
actions/setup/js/work_queue_telemetry.test.cjs |
Checks that pending launches are not reported as unhealthy. |
actions/setup/js/work_queue_telemetry.cjs |
Recognizes the activation_pending outcome. |
actions/setup/js/work_queue_reconciler.cjs |
Reuses authenticated attempt reads and adds correlation backoff. |
actions/setup/js/work_queue_native.test.cjs |
Covers authentication reuse, identity mismatches and delay bounds. |
actions/setup/js/work_queue_native.cjs |
Adds an operation-scoped attempt reader and retry-delay helper. |
actions/setup/js/work_queue_dispatch.test.cjs |
Updates launch expectations and adds activation and recovery regressions. |
actions/setup/js/work_queue_dispatch.cjs |
Returns pending receipts without worker polling or binding; updates controls reporting. |
actions/setup/js/work_queue_deployment.test.cjs |
Expects pending activation while preserving credential identity assertions. |
actions/setup/js/work_queue_aw_policy.test.cjs |
Separates accepted dispatches from explicit worker activation checks. |
Review effort: Max (auto)
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Model volatile accepted receipts without binding authority, late trusted activation, and fenced bounded-recovery exhaustion. Update normative lifecycle and recovery guarantees, add exact receipt-authority and reachability controls, and record exhausted lifecycle evidence. Co-authored-by: Copilot App <[email protected]>
Accept pending dispatch receipts without treating them as binding authority, require worker activation independently of completion, and activate adapter/lifecycle fixtures before binding assertions. Regenerate both smoke locks and document the successful pending controls status. Co-authored-by: Copilot App <[email protected]>
|
Regarding this comment: This reports completion of the code quality review, not a separate actionable finding. No additional code change is needed for this notification. |
|
Regarding this comment: This is a successful reviewer-completion notification without an actionable finding. No code change is needed. |
|
Regarding this comment: This announces completion of the skills-based review without specifying a finding. No separate code change is needed. |
|
Regarding this comment: The saved investigation of run 42630180815 on the earlier revision identifies a publication failure caused by a branch-protection GET returning 403, not a demonstrated defect in this PR. No permissions or credentials were changed, and the hosted workflow was not rerun. |
|
Regarding this comment: This reports a design check with outcome reported_no_action and contains no actionable finding. That status alone does not establish full validation or successful publication. |
|
Regarding this comment: This reports test analysis with outcome reported_no_action and contains no actionable finding. That status alone does not establish test completeness or successful publication. |
|
Regarding this comment: This managed memory summarizes the finding already tracked in the inline review; it is not a separate change request. The managed content remains untouched, and pending-correlation discovery is already handled by commit 7dbb569. |
|
Regarding this comment: No code change is needed, as previously noted. More precisely, the linked bot comment reports review completion rather than review start. |
|
Regarding this comment: No code change is needed. The linked bot comment is a successful completion notification rather than an actionable finding. |
|
Regarding this comment: No code change is needed, as previously noted. The linked bot comment announces completed review rather than review start. |
|
Regarding this comment: No application-code change is established, but the linked notification records a publication failure rather than routine processing. Saved evidence attributes it to a branch-protection GET returning 403; no rerun or permission change was attempted. |
|
Regarding this comment: Agreed: the linked analysis notification contains no finding requiring a code change. Its no-action status is not evidence that all required validation completed. |
|
Regarding this comment: Agreed: the linked design-check notification contains no actionable finding. Its no-action status does not independently verify completion or publication. |
|
Regarding this comment: Agreed: the correlation finding is tracked separately in the inline review and does not require duplicate work here. The managed memory remains unchanged. |
Delete the unreferenced isTransientVerificationError helper, export, classifier import, and isolated test. Keep active metadata retry classification and native authority checks unchanged. Co-authored-by: Copilot App <[email protected]>
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "7a5f7d903ab8f3cee337059ef2269270ab52b860",
"kind": "requested",
"schema_version": "1",
"state": "f1bbbf050f28c792580b00342277b33ac99d4c5532bcb74119f6c597d1b3c5a2",
"work": [
"60f9c6f75a23e45038bdc0a714895e50930dc28c799e65ed0e0a6ca6d5b913c3",
"9803bea6e1495ad320abb0fdb2ddfdd804751392681654fe0bd6ca59c6c4f18b",
"9a96ed3feef033b4211cd2d8a11960e4840a84f898f4673b8666d138404db750",
"d2e3b6f7d2445af5de8b9dca6b69007dc1efb922163d494efae36f78d86101d4"
],
"workflow": "pr-sous-chef"
}
|
…rrelation Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |


Why
Valid native dispatches were being reported as recovery failures because dispatcher-side polling exhausted its budget before attempt-one metadata correlated with the dispatch token. Failed dispatchers logged repeated
run_correlation_mismatch; later read-only inspection found the same accepted native attempts with matching tokens and durable bindings. The early title values were not retained in sanitized logs, so the exact propagation delay is unknown.Changes
activation_pendingimmediately after a validated HTTP 200 dispatch receipt: zero dispatcher worker-run metadata GETs and no premature binding.isTransientVerificationErrorhelper/export, its isolated test and unused import. Active read-retry classification remains in place and unchanged.activation_pendingis a derived status, not a new ledger state or operation.Validation
make agent-report-progresspassed with 375 impacted runtime tests across nine suites, scoped formatting/lint, and all 365 workflow locks in sync. Requiredmake recompilesucceeded for the earlier smoke-source changes. Existing warnings outside this change remain.Security overview
Smoke workflow source/lock changes affect assertions and their dependency wiring only. Permissions, credentials, action/container pins and the ledger protocol remain unchanged. Accepted receipt metadata is not verification or effect authority. Uncertain dispatches remain fenced; no queue reset or replay of completed effects was performed. Lost output-only receipts or unavailable bounded discovery can leave a never-activated launch fenced indefinitely: neither the specification nor model promises unconditional recovery, redispatch or forced release.
Hosted limitation
No live workflow was dispatched by this work. Hosted execution of the latest revision and exact GitHub metadata propagation timing remain unverified. The bounded model does not prove actual HTTP retries, hint retention, the concrete two-page/50-run scan, dispatcher API-call counts or full runtime/host refinement; concrete behavior is covered separately by runtime regressions. The earlier Specification Reviewer output-publication failure was attributed by saved evidence to a branch-protection GET returning 403; credentials/permissions were not changed and that hosted run was not retried. PR readiness was not changed.