Skip to content

Distinguish Skipper’s client deadline from transport failures - #5622

Merged
freeqaz-openai merged 1 commit into
mainfrom
fix/skipper-gateway-client-deadline-receipt
Nov 12, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
fix/skipper-gateway-client-deadline-receipt

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

A Skipper Gateway request that reaches its local deadline before receiving response headers currently produces the same transport/0 diagnostic as an early socket close. Record client-deadline/0 when fetch rejects with the request’s own deadline reason, and carry that category through to the version 1 failure receipt.

Validation

  • The loopback test runs the serialized receiver over real sockets and checks one request per case. Withholding headers produces client-deadline/0, closing the socket early produces transport/0, and an HTTP 504 with a timeout response produces timeout/504. Interrupted-body, malformed-JSON, permission, and success cases also passed.
  • The baseline check reproduced transport/0 for the deadline and showed that step output dropped the new category. With the fix, synthetic checks through the reporter, workflow output bindings, and receipt writer preserved client-deadline/0 and excluded canary text.
  • The checks-baseline-2 runner passed all 34 cases in tests/integration/skipper-release.test.ts. Type checking, lint, formatting, workspace validation, the test ownership audit, and the managed pre-push hook also passed locally.

Installed verification is pending a normally selected run that includes this change. Earlier transport/0 failures remain unattributed.

@clawsweeper

clawsweeper Bot commented Nov 12, 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.

@freeqaz-openai freeqaz-openai added the agent-created PR opened by an AI agent; does not identify the reviewer or approver. label Nov 12, 2026
@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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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 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 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR distinguishes Skipper’s local request deadline from transport failures and preserves that category in failure receipts.

Example: The Gateway sends no response headers before the 170-second client deadline.

  • Before: The receiver reports transport/0.
  • After: The receiver reports client-deadline/0, while an early socket close remains transport/0.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with meaningful socket and receipt coverage; supplied evidence remains at the harness level.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; supplied validation exercises the serialized receiver over loopback sockets and the receipt path with synthetic inputs, while installed verification is explicitly pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Contributors investigating installed Skipper failures cannot distinguish a local request deadline from an early transport failure.
Reason: The maintainer-authored direction addresses a concrete ambiguity through the established diagnostic owner with a narrowly scoped change.

Merge readiness

✅ Ready for maintainer review

Keep open for maintainer triage: this maintainer-authored draft addresses a diagnostic ambiguity still present on main, and source review found no actionable introduced defect.

Priority: P3
Reviewed head: f47f33b7841b374192935069d631e16a7be92b66

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Installed execution showing the new category reaching a failure receipt remains unverified; the body reports baseline and head results for the focused socket and receipt checks.
Agent review details

How this fits together

The installed Skipper verification receiver sends Gateway chat requests; its bounded diagnostics pass through the test reporter, workflow outputs, and failure-receipt writer.

flowchart LR
  A[Installed Skipper test] --> B[Gateway receiver]
  B --> C[Gateway HTTP request]
  C --> D[Failure diagnostic]
  D --> E[Test reporter]
  E --> F[Workflow outputs]
  F --> G[Failure receipt]
Loading

Technical review

Best possible solution:

Retain the focused distinction in the existing receiver and receipt owners while preserving content-free diagnostics.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly shows the deadline rejection entering the unconditional transport catch; the PR reports a baseline reproduction, but this review executed no target code.

Is this the best way to solve the issue?

The patch uses the existing abort signal and diagnostic projections, distinguishing only the request’s own deadline without introducing retries, new configuration, or another reporting path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 330837dc9c9d.

Provenance checked

  • Receiver failure classification keeps the original intent (a145e0e: Separate transport, body-read, and JSON failures while preserving status and excluding response contents.)
  • Installed failure reporting and receipts keeps the original intent (Retain selected-test diagnostics in installed Skipper failure receipts #5450: Retain allowlisted diagnostics without allowing damaged optional evidence to hide the primary failure; later receipt work preserved status and category.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

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 P3: This improves CI failure attribution without changing Gateway execution, timeout duration, or user data.
  • 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.

Label justifications:

  • P3: This improves CI failure attribution without changing Gateway execution, timeout duration, or user data.
  • 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.

Reviewed November 12, 2026, 1:13 AM ET / 06:13 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 12, 2026 06:14
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 12, 2026 06:14
@freeqaz-openai
freeqaz-openai merged commit 64358aa into main Nov 12, 2026
95 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/skipper-gateway-client-deadline-receipt branch November 12, 2026 06:17
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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

1 participant