Skip to content

Retain bounded evidence on installed Skipper gateway failures - #5920

Merged
freeqaz-openai merged 2 commits into
mainfrom
fix/skipper-gateway-failure-evidence
Nov 14, 2026
Merged

freeqaz-openai merged 2 commits into
mainfrom
fix/skipper-gateway-failure-evidence

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

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.

@freeqaz-openai freeqaz-openai added the agent-created PR opened by an AI agent; does not identify the reviewer or approver. label Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The failure receipt records gatewayExec.exitCode as 23 but omits the model observation.
  • After: The receipt also records gatewayExec.modelRequestObservation as observed while preserving the failed outcome.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused implementation with both prior defects repaired and successful exact-head CI; available behavioral evidence remains harness-level.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored CI diagnostic change has harness and real-socket regression coverage in source; it makes no claim of an installed failure-upload demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers investigating installed Skipper failures cannot tell whether a failed native exec reached the model or which transport failure occurred.
Reason: The maintainer-authored direction adds useful, bounded diagnostic evidence within the established CI artifact boundary.

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
Reviewed head: 7a6f908ce562d6950eb95415588c24833af94b2c

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Request-matched model observations keeps the original intent (ce1c1b5: Retain selected-request evidence while distinguishing absent and unavailable observations and excluding private correlation values.)
  • Gateway deadline attribution keeps the original intent (64358aa: Distinguish the client's own deadline from socket failures and HTTP timeout responses.)
  • Gateway exec receipt keeps the original intent (6b41738: Retain bounded process termination details without publishing arguments, output, error text, or session identifiers.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit ce1c1b5 adds tests/helpers/skipper-prepared-compute.mjs:506 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ce1c1b586aa8; files: tests/helpers/skipper-prepared-compute.mjs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The change improves diagnosis of installed Skipper CI failures with a limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T00:06:34.912Z sha bce1665 :: needs changes before merge. :: [P2] Narrow the output key before calling toUpperCase | [P2] Add braces to the new snapshot guard

Reviewed November 13, 2026, 7:32 PM ET / November 14, 2026, 00:32 UTC (Revision 2).

@freeqaz-openai

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 14, 2026 00:46
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 14, 2026 00:46
@freeqaz-openai
freeqaz-openai merged commit 7a3279d into main Nov 14, 2026
82 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/skipper-gateway-failure-evidence branch November 14, 2026 00:48
case "ECONNRESET":
gatewayTransportCause = "connection-reset";
break;
case "UND_ERR_HEADERS_TIMEOUT":

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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), {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-created PR opened by an AI agent; does not identify the reviewer or approver. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants