Skip to content

Record how long a native Git chat waits before a transport failure - #6410

Merged
freeqaz-openai merged 1 commit into
mainfrom
ci/skipper-native-git-transport-elapsed
Nov 18, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
ci/skipper-native-git-transport-elapsed

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

The installed Skipper check can report a socket close before it receives HTTP headers. The duration of the whole test step includes fixture setup and cleanup, so it cannot say how long the request was pending.

For the native Git chat, record whole milliseconds from immediately before creating the existing client deadline until the request rejects. Retain that optional number for a socket close, connection reset, headers timeout, or the client’s own deadline. The other chat phases and unclassified transport errors omit it.

A short interval can rule out proximity to the client deadline. An interval near 170 seconds still leaves the cause of the disconnect open. An installed measurement requires a future run containing this change.

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

clawsweeper Bot commented Nov 18, 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:feature 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:feature Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds optional request elapsed milliseconds to native Git chat failure receipts for recognized transport failures and the client deadline.

Example: A native Git chat loses its socket after 169,995 milliseconds without receiving HTTP headers.

  • Before: The receipt identifies transport/socket-closed but cannot distinguish an early disconnect from one near the client deadline.
  • After: The receipt also contains gatewayFetchElapsedMs: 169995, without attributing the disconnect to a particular cause.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused diagnostic change with meaningful harness coverage, successful head checks, and no concrete findings.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored change affects CI diagnostics rather than shipped product behavior; the body explicitly reserves an installed measurement for a future run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot tell whether a native Git chat disconnected early or near its deadline because whole-step duration includes setup and cleanup.
Reason: The collaborator-authored direction adds a focused diagnostic distinction while preserving existing test outcomes and privacy boundaries.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open: it adds a useful CI diagnostic absent from main, and the reviewed diff has no actionable correctness or security findings.

Priority: P3
Reviewed head: 48de48c96ba35d6f773815747d7d0871e7bd6438

Before merge

None.

Findings

None.

Agent review details

How this fits together

The installed Skipper CI helper sends chat requests to an Agent Gateway; its bounded diagnostics pass through the test reporter, workflow outputs, and failure-receipt writer.

flowchart TB
  A[Installed Skipper chat] --> B[Gateway request helper]
  B --> C[Allowlisted failure diagnostic]
  C --> D[Test reporter and recorder]
  D --> E[Workflow output bindings]
  E --> F[Sanitized failure receipt]
Loading

Technical review

Best possible solution:

Keep request timing in the existing helper and allowlisted receipt pipeline without interpreting elapsed time as the transport root cause.

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

Current-main source establishes the missing request-duration diagnostic; this read-only review did not reproduce the underlying disconnect or execute tests.

Is this the best way to solve the issue?

The implementation fits the existing owners, uses a monotonic clock, preserves deadline attribution, and validates the optional value at each public-output boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 114d1a8e3d7b.

Provenance checked

  • Client deadline attribution keeps the original intent (64358aa: Distinguish rejection by the request's own deadline from an early transport failure.)
  • Bounded transport diagnostics keeps the original intent (7a3279d: Retain finite transport causes while preserving primary failures and excluding private request content.)
  • Workflow failure-receipt propagation keeps the original intent (c6aad5b: Carry selected-test diagnostics through workflow outputs and independently validate them before writing the version 1 artifact.)

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 diagnosis without changing the supported Agent workflow or fixing the underlying transport failure.
  • 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 diagnosis without changing the supported Agent workflow or fixing the underlying transport failure.
  • 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 17, 2026, 7:49 PM ET / November 18, 2026, 00:49 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 18, 2026 00:51
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 18, 2026 00:51
@freeqaz-openai
freeqaz-openai merged commit adc430f into main Nov 18, 2026
82 checks passed
@freeqaz-openai
freeqaz-openai deleted the ci/skipper-native-git-transport-elapsed branch November 18, 2026 00:53
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