Repository navigation
Harden uncertain work queue launch recovery and diagnostics - #76331
Conversation
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: 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.
|
|
✅ 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.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Reviewed the changed launch recovery, tests, and documentation. No actionable correctness, security, performance, or maintainability issues found in the changed lines. The recovery path preserves the start fence, disables resend/cancellation, uses bounded reconciliation, and maps outcomes into the existing controls success/recovery accounting. Static review only; repository code was not executed per review constraints.
🔎 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.
🟡 Changes recommended
HTTP 204 or malformed 200 receipts can incorrectly pass controls through worker discovery during reconciliation, bypassing the required receipt contract.
1 open issue
What changed in this PR
This PR hardens gh-aw’s work-queue dispatcher when a worker launch may have succeeded despite a failed response, reusing existing reconciliation and reservation fencing.
Changes:
- Attempt bounded recovery of the original reservation without resending the launch or cancelling the worker.
- Add sanitized, always-visible recovery diagnostics while preserving the durable start fence.
- Expand recovery tests, update operator guidance, and add a patch changeset.
| File | Description |
|---|---|
docs/src/content/docs/reference/work-queue.md |
Documents inline recovery, diagnostic events, and retained reservation fencing. |
actions/setup/js/work_queue_dispatch.test.cjs |
Adds ambiguous-response, evidence-failure, and concurrent-activation coverage. |
actions/setup/js/work_queue_dispatch.cjs |
Reconciles uncertain launches and reports sanitized recovery outcomes. |
.changeset/patch-work-queue-ambiguous-launch-recovery.md |
Records the recovery and diagnostics changes for a patch release. |
Review effort: Max (auto)
| const recoveryStarted = Date.now(); | ||
| log.diagnostic("launch.recovery.start", { uncertain_marker_persisted: uncertainMarkerPersisted, resend_allowed: false }); | ||
| try { | ||
| const recovered = await reconcileDispatch({ ...options, assignment, requestCancellation: false }); |
|
🍳 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": "993825db33f283680d8149a4a8e7e9910cfc5269",
"kind": "requested",
"schema_version": "1",
"state": "2fd07cb37ca8f72e88e02d99eb5677158390d54b98183329039946e3259079af",
"work": [
"27ac911a80a91d6b02a3e07caef39b800cb632677606247471a58f9a93975854",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
],
"workflow": "pr-sous-chef"
}
|
…esta Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Updated from main with The |
|
🎉 This pull request is included in a new release. Release: |

Why
GitHub can return HTTP 500 after successfully creating a worker run. In dispatcher run 42593076813, the Codex worker launched despite the failed response. Reporting an unresolved launch without attempting bounded recovery makes these incidents harder to diagnose.
Approach
Reuse the existing authenticated, bounded reconciliation path for the original reservation after an ambiguous dispatch response. Never resend the launch POST or cancel the worker. Missing, conflicting, or unavailable evidence leaves the reservation fenced; concurrent worker activation can resolve the original launch.
Add always-visible, sanitized recovery diagnostics for marker persistence, elapsed time, binding/release/conflict outcomes, and disabled resends. Preserve the durable start fence even if uncertain-marker publication fails. Update the operator reference and add a patch changeset.
Validation
npm --prefix actions/setup/js run test:js -- work_queue_dispatch.test.cjs work_queue_logging.test.cjs --reporter=dot: 381 tests passed.make agent-report-progress: passed, including build, changed-file lint, typecheck, and 210 dispatch tests. No changed Go files required impacted Go tests.Review note
The initial security review passed with no confirmed vulnerabilities. The runtime implementation is unchanged since that review. One mocked failure fixture was subsequently corrected and now passes, but same-reviewer follow-up was unavailable; the initial verdict does not cover that test-only correction.