Skip to content

test(ui): diagnose required human action timeouts - #201386

Merged
vincentkoc merged 1 commit into
mainfrom
chore/diagnose-required-human-action-20261119
Nov 18, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
chore/diagnose-required-human-action-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The required-human-action real-Gateway test timed out without showing which manual handoff step finished or whether the synthetic prerequisite was completed. The retained browser timeout snapshot cannot distinguish those paths.

User Impact

No product behavior changes. Maintainers get the last completed step and synthetic fixture state when this browser flow fails.

Why This Change Was Made

On failure only, report the synthetic case, last completed phase, and existing numeric/boolean fixture counters. All original actions, assertions, and the 120-second test timeout remain unchanged; no extra requests or waits are added.

Evidence

  • Failure: scheduled main real-Gateway job, manual-in-panel timed out after 120 seconds.
  • Frozen base b894fe5e3729482eeab747b5758bd79acb2511d1; the target test was unchanged from failed main fd5471bc2d57192072bc8fcec7f7980846dcfb31.
  • Formatting and git diff --check passed. Source inspection of pinned Vitest 5.0.5 confirms a timed-out test reaches onTestFailed.
  • Fresh independent ClawSweeper review of b894fe5e..32ed1761 found no actionable issues (confidence 0.93). Original four-case file passed on macOS Chromium after building the missing UI assets: 4/4, 17.072 seconds in the cases and 40.34 seconds total. manual-in-panel passed in 2.731 seconds. Targeted type-aware lint, UI-E2E typecheck, and formatting passed.
  • The first local attempt stopped at pairing because the private checkout had no built UI assets. All four failure hooks emitted the expected synthetic fields (phase: started, zero counters, ready: false). The normal UI build completed and the asset owner reported ready before the corrected run.
  • This local pass does not reproduce or resolve the Linux timeout. Actual timeout emission is supported by the pinned Vitest source path; runtime emission was observed on the setup assertion failure. No timeout or success-path behavior changed.

@vincentkoc vincentkoc self-assigned this 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 19:12
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 19:15
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 failure-only phase and synthetic fixture-state logging to the required-human-action browser test.

Example: The manual-in-panel case fails before pairing finishes.

  • Before: The failure lacks the last completed phase and synthetic prerequisite state.
  • After: The diagnostic includes caseId manual-in-panel, phase started, ready false, and zero fixture counters.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has no actionable defects; execution evidence is reported in the PR, with timeout-specific emission supported by the author's source inspection rather than an inspected runtime trace.
Proof confidence 🦐 gold shrimp (3/6) This test-only diagnostic change requires no product-entry-point proof; the PR reports observed failure-hook output and a passing four-case browser replay, which this review did not execute.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot distinguish where the required-human-action browser flow stalled from its retained timeout snapshot.
Reason: The maintainer-authored direction addresses an observed diagnostic gap while preserving the original coverage.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a useful, narrowly scoped diagnostic improvement from a repository member, with no actionable code findings.

Priority: P3
Reviewed head: 32ed17610e5caf1b575d15a0c1da0d81a0eeca55

Before merge

None.

Findings

None.

Agent review details

How this fits together

The browser suite exercises a real isolated Gateway against a scripted model and synthetic manual-step server; the new hook sends test progress and fixture counters to failure output.

flowchart LR
  A[Vitest case] --> B[Browser and Control UI]
  B --> C[Isolated Gateway]
  C --> D[Scripted model and manual step server]
  D --> E[Synthetic fixture counters]
  A --> F[Failure hook]
  E --> F
  F --> G[Diagnostic output]
Loading

Technical review

Best possible solution:

Retain the failure-only diagnostics in the existing test while preserving its actions, assertions, and timeout.

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

No timeout was reproduced during this read-only review; the reported Linux timeout remains unresolved, and this PR only improves its diagnostics.

Is this the best way to solve the issue?

The existing fixture counters plus local phase tracking provide the smallest focused diagnostic change without introducing requests, waits, or another state owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Required-human-action browser scenario keeps the original intent (de0ea1e: Exercise manual handoffs through the Gateway and UI while proving authoritative rechecks, cancellation, and preservation of completed progress.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +19. Total +19 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 20 1 +19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 20 1 +19

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 maintainer diagnostics without changing product behavior or weakening test coverage.
  • 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 maintainer diagnostics without changing product behavior or weakening test coverage.
  • 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 18, 2026, 2:27 PM ET / 19:27 UTC.

@vincentkoc
vincentkoc merged commit eb90c15 into main Nov 18, 2026
158 checks passed
@vincentkoc
vincentkoc deleted the chore/diagnose-required-human-action-20261119 branch November 18, 2026 19:28
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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