Repository navigation
fix: verify terminal acknowledgement retry exhaustion - #2193
saariuslystoned wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR accelerates the terminal acknowledgement fixture and checks retry exhaustion instead of accepting a subprocess timeout. Example: The terminal acknowledgement endpoint repeatedly returns HTTP 503.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a concrete test blind spot still present on current main, preserves production behavior, and has no actionable findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe fixture executes the workflow's acknowledgement shell with the typed request builder and real curl against loopback HTTP, then checks requests, exit status, and authorization outputs. flowchart LR
A[Workflow fixture] --> B[Acknowledgement shell]
B --> C[Typed request builder]
C --> D[Private retry helper]
D --> E[Loopback HTTP server]
E --> F[Request and exit assertions]
Technical reviewBest possible solution: Retain the focused fixture repair while keeping production retry timing covered by the existing helper tests. Do we have a high-confidence way to reproduce the issue? Current-main source shows that the timeout precedes retry exhaustion and satisfies the generic rejection assertion; supplied before/after evidence reports that exact behavior, without a reviewer-run reproduction. Is this the best way to solve the issue? The guarded private helper copy follows an existing repository pattern, preserves the real shell and transport path, and leaves production delays unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 35da1a845615. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 10, 2026, 11:21 AM ET / 16:21 UTC (Revision 2). |
|
Real-behavior proof for head
The command is the unchanged Hashes: SHA256SUMS |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Thanks, this found a real false pass: the 503 case only passed because the 30-second timeout killed the script after 4 of the helper's 6 attempts. I've continued it in #2199. Your commit is kept and you're credited as co-author. I couldn't push to this branch because GitHub doesn't allow maintainer edits on forks owned by an organization. The one change: the retry helper already honors |
What Problem This Solves
The terminal acknowledgement workflow test accepts a timeout as the expected failure when the control plane keeps returning HTTP 503.
User Impact
There is no user-visible behavior change. Developers get a faster test that checks the actual exhausted-retry failure path.
Why This Change Was Made
The workflow fixture uses a private copy of the retry helper with only its wait removed. It checks six real requests and a normal failure; the production helper and its retry schedule remain unchanged. Separate helper tests retain coverage of the planned waits.
Documentation Impact
The workflow and retry contracts in the existing documentation remain accurate. The new proof document records the test fixture, validation and limitations.
Evidence
pnpm run checkfailed locally in an isolated, loopback-only environment: 7,126 passed, 10 failed, 22 skipped. Seven failures passed focused controls with task-owned writable scratch directories. The remaining webhook, package-install and admission cases need further validation in a compatible environment; the admission timeout's cause is unresolved. Successful upstream CI on the exact base included those cases, but does not establish candidate CI results.eae7a713e211392f2a57ab91880a761efa1ae359. Hosted candidate CI and the current-head ClawSweeper review remain pending.Real Behavior Proof
The actual YAML terminal-acknowledgement step ran against a synthetic loopback HTTP server on Node 24.22.1, Linux aarch64, in isolated user/PID/network namespaces. Its private helper copy replaced only the verified backoff sleep with a zero wait; the request builder was copied byte-for-byte. Six 503 responses led to ordinary exit code 1 without a timeout or signal. Recognized 409 responses and a 200 response retained their authorization checks; an unexpected 409 and 418 each failed normally after one request. The original 503 test instead passed after its 30-second timeout and four requests. Production retry timing was not exercised by the accelerated fixture; the separate retry-helper tests check its planned delay sequence using a stubbed sleep. The existing timeout's process-tree cleanup on an unexpected hang remains outside this change.
Commands:
node --test --test-concurrency=1 test/terminal-finalization-cancellation-workflow.test.tsandnode --test --test-concurrency=1 test/control-plane-curl.test.ts test/repair/exact-review-queue-request.test.tsin the isolated environment. Full comparison, failure details, controls and limitations are in the committed proof.