Repository navigation
Retain bounded evidence on installed Skipper gateway failures - #5920
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 changesThis PR retains request-matched model observations after Gateway exec failures and adds bounded transport causes to Skipper failure receipts. Example: A native Git turn records its matching model request before the Gateway child exits with code 23.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for maintainer triage. Both prior findings are fixed, exact-head CI succeeds, and no remaining actionable defect was found; the PR is still a draft. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe installed Skipper CI harness projects selected test failures through the reporter and workflow outputs into a sanitized JSON artifact. flowchart LR
A[Gateway receiver] --> B[Selected test failure]
C[Synthetic model events] --> B
B --> D[Reporter projection]
D --> E[Workflow outputs]
E --> F[Sanitized failure receipt]
Technical reviewBest possible solution: Retain the bounded diagnostics in the existing reporter-to-receipt path while preserving the original failure and cleanup result. Do we have a high-confidence way to reproduce the issue? Current-main source shows that an exec rejection bypasses the model snapshot and that transport failures lose their finite cause code; no target code was executed during this review. Is this the best way to solve the issue? The patch addresses both diagnostic losses through existing owners, validates exported values again, and preserves deadline attribution and request matching. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2129d79e2cd0. 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:
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 13, 2026, 7:32 PM ET / November 14, 2026, 00:32 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
| case "ECONNRESET": | ||
| gatewayTransportCause = "connection-reset"; | ||
| break; | ||
| case "UND_ERR_HEADERS_TIMEOUT": |
There was a problem hiding this comment.
[P2] The installed receiver’s deadline expires before its headers timer
When the installed Gateway accepts a request and leaves headers pending, the 170-second abort at line 645 expires before the pinned Node 24.22.1 fetch implementation’s 300-second headers timeout. The installed path uses the default dispatcher. It records client-deadline, so the receipt’s new headers-timeout value cannot help diagnose this case. The test at tests/integration/skipper-release.test.ts:1499 supplies the error code through a replacement fetch and verifies the mapping in isolation. I checked the pinned runtime, the bundled Undici timer, and the installed call path from source. I did not run the installed workflow.
For a follow-up, remove this field value and its stubbed case, or give the installed receiver a supported shorter headers timer and verify both timeout paths with the real fetch implementation.
This is Kevin's agent reviewing on behalf of Kevin - If you want my human's direct feedback, please message him with the PR link
| ] as const) { | ||
| await t.test(name, async () => { | ||
| const snapshots = [first, second]; | ||
| const failure = Object.assign(new Error(marker), { |
There was a problem hiding this comment.
[P2] Prove the exec observation with a real child failure
The installed Gateway exec goes through promisified execFile for kubectl (tests/helpers/skipper-prepared-compute.mjs:61–67,322). On the pinned Node version I checked real subprocess failures. Exit 23 produced a null signal, and termination by SIGTERM produced a null exit code. This fixture supplies both fields at once and expects both in the artifact. Its writer environment also comes from uppercasing output keys at lines 1401–1409, which bypasses the checked-in workflow binding.
Extend the existing real-child receipt cases at line 862 with the matched, stale, restarted, and unavailable model-log snapshots. They already exercise distinct exit and signal outcomes and read the workflow mapping at lines 679–691. This would prove the new observation survives the handoff with a reachable child failure.
This is Kevin's agent reviewing on behalf of Kevin - If you want my human's direct feedback, please message him with the PR link
| }) | ||
| : undefined; | ||
| const gatewayExec = { | ||
| ...(execDiagnostic?.modelRequestObservation |
There was a problem hiding this comment.
[P3] Document when the new receipt fields appear
The installed Skipper artifact guide lists the gatewayExec fields and describes structured chat failures without documenting the two new diagnostics. After a failed installed run, a maintainer needs to know why gatewayExec.modelRequestObservation can appear alongside the exec failure and when gatewayTransportCause is available. The writer requires an observed native request for the exec field and an attributed chat failure with status 0 and category transport for the transport field. Add those conditions and explain that an omitted exec observation leaves the outcome of the model request unknown. I verified the current guide and the receipt writer at the merged revision. Receipt guide
This is Kevin's agent reviewing on behalf of Kevin - If you want my human's direct feedback, please message him with the PR link
A failed native Gateway exec can leave a model request visible after the child exits. The installed Skipper failure receipt now records an observed request when the synthetic model's log prefix and request marker match the failing turn. The original process failure and cleanup result are preserved.
The Gateway chat receiver also distinguishes socket closure, connection reset, headers timeout, and other transport failures using a finite set of codes. The client's own deadline keeps its existing category.
Offline regression coverage exercises the reporter and final JSON writer. It checks matched and stale observations, unavailable snapshots, bounded transport causes, deadline attribution, and omission of private input text.