Skip to content

test(windows): host-quoted agent-status replays, <ref> placeholder words, first-PR route proof (#9659) - #9776

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-c75u2c
Oct 22, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-c75u2c

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Four of the ten cli_smoke failures in the sharded Windows run 39819783344 on main are quoting rows (#9659):

This PR also adds a route-level test answering the #9740 review question. With process.platform stubbed to win32, firstPrCommandIsSafe and validateFirstPrPacket accept a console-quoted spaced root and redirect, and refuse the odd-backslash quote escape, a %TEMP% redirect target and ^&. With the stub off, the double-quoted form is still refused.

The other six cli_smoke rows in that run are path-separator and verbatim-prefix rows (#9660). They were handed to the coordinator, since no open PR covers them.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: #9272 (Windows verdict)
Governing issue or accepted claim: #9659
Acceptance delta (one sentence): The four quoting rows of Windows run 39819783344 expect the form Windows prints, and the first-PR Windows admission is proven through its public route.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-c75u2c
Stack parent or prerequisite PR (if any): #9696, #9740 (merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Scope

  • Test expectations, the shared Windows replay splitter (tests only), one extension test, and a changelog fragment.

Scope Classification

  • Docs/spec/test-only evidence package

Production delta: none.

Single acceptance criterion:

  • The four rows pass on the Windows shard lane, and the Linux suite is unchanged.

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • none

Proof

cargo test -p ripr --test cli_smoke -- shell_words agent_status_restarts_a_failed_attempt_and_completes_a_finished_one agent_status_keeps_the_gap_open_when_the_receipt_did_not_improve agent_status_follows_a_focused_test_committed_between_the_phases first_pr_check_missing_packet_recovers_without_a_resolvable_base renderer_spellings   # 9 passed (Linux)
xvfb-run cargo xtask vscode-test-e2e   # 430 passing incl. the new route test; 1 failing: lsp_compatibility process-group kill, untouched and environmental (container PID 1 reaping)
cargo xtask precommit   # pass on c61a4182

Result, failures, or skipped proof:

  • Proof is Linux-only locally. The Windows proof is the windows-ci lane on this PR and the next sharded main run.

Claim Boundary

Rollback

  • Revert the squash commit.

Spec-Test-Code Traceability

  • Tests: crates/ripr/tests/cli_smoke.rs, cli_smoke/shell_words.rs, common/printed_words.rs, editors/vscode/test/suite/first_pr_command_safety.test.ts
  • Code: none

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

n/a

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.

Generated by Claude Code

… words (#9659)

Run 39819783344 on main: three agent_status rows hardcoded the POSIX
single-quote root, and the Windows replay splitter added in #9696 refused
the first-pr recovery hint's <ref> placeholder, which posix_words keeps
as one word.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsF3ov6sfWbX4wmQd5EWeZ
…ugh the public route (#9526)

Follow-up to #9740 review: stub process.platform so the firstPrCommandIsSafe
and validateFirstPrPacket routes, not only the shared helpers, are shown to
admit a spaced console-quoted root and redirect on Windows and to refuse
the odd-backslash, %TEMP% and ^& forms.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsF3ov6sfWbX4wmQd5EWeZ
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 19:07
@EffortlessSteven EffortlessSteven added merge-ready windows-ci Run the advisory Windows lane on a pull request without opting into every full-ci lane. labels Oct 22, 2026 — with Claude
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 111 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 900ead64-9c70-4c83-afa1-7d1b9fbccb0a
📥 Commits

Reviewing files that changed from the base of the PR and between 4b1b56a and 3c9a492.

📒 Files selected for processing: 5
  • changelog.d/windows-replay-quoting-rows-2.md
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/shell_words.rs
  • crates/ripr/tests/common/printed_words.rs
  • editors/vscode/test/suite/first_pr_command_safety.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…ate each refusal reason (#9526)

Review: the off-Windows assertion ran unstubbed and would fail on the
Windows editor lanes; the odd-backslash and ^ negatives were also refused
by ; and &, so they did not show their own rule.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsF3ov6sfWbX4wmQd5EWeZ

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verification questions

  • Confirm windows console parsing now treats unquoted < and > as word bytes, expanding accepted input beyond the changed placeholder regression; existing tests cover <ref> but not standalone redirection-like inputs.
  • Confirm the Windows parser now accepts unquoted angle brackets, but the diff does not establish that all public command-safety parsers share this grammar.
  • Confirm windows parser behavior is validated through a stubbed platform rather than a real cmd.exe/argv execution path.
  • Confirm the new route test proves selected Windows forms and unsafe forms, but it does not exercise adjacent parser branches such as quoted <, >, ^, or mixed quote state.
  • Confirm the VS Code route test stubs process.platform and exercises firstPrCommandIsSafe/packetStatus, but this lane did not receive a repository-wide sibling inventory of Windows command parsers or safety predicates.

Refuted

  • The changelog claims that every Windows replay issue is fixed.; refuted because: The fragment is narrower: it claims the listed agent-status rows and placeholder behavior, consistent with the PR body’s non-goals.
  • Removing '<' from the rejected operator set permits unsafe Windows redirects.; refuted because: The change is intentionally limited to literal placeholder tokenization and retains rejection of '&', '|', and '^'; the TypeScript test still rejects unsafe Windows forms including %TEMP% expansion and caret escaping.
  • The host simulation introduces cross-test global-state coupling.; refuted because: The helper restores the original process.platform descriptor in finally, and each test invocation is self-contained.
  • The test-only splitter and renderer changes introduce an unsafe native or pointer-ownership hazard.; refuted because: The diff contains no unsafe code, raw pointers, allocation ownership changes, native boundaries, or production implementation changes.
  • The recovery-placeholder parser change introduces an unquoted cmd.exe redirection operator by allowing '<' and '>'.; refuted because: The change treats those characters as literal word bytes to match the POSIX recovery-hint grammar; existing &, |, and ^ operator rejection and route-level admission tests remain in place. Real cmd.exe behavior still requires the Windows lane.

Evidence gaps

  • The TypeScript test stubs process.platform rather than exercising an actual Windows process; it validates policy branches but cannot establish native console quoting behavior.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record — head 3c9a492

Angles

  1. Oracle fidelity. renderer_shell_arg is checked against the product's shell_arg_for on both hosts. On Linux the oracle is no weaker: it still expects the exact single-quoted root.
  2. Splitter safety. Accepting < no longer catches a producer that prints a bare <. That is acceptable: shell_arg_for quotes any value containing <, so a bare < can only come from a literal template such as <ref>. &, | and ^ are still rejected. > handling is unchanged.
  3. TS host stub. The stub restore is correct and the body is synchronous. isWindowsHost() is read on every call, so both firstPrCommandIsSafe and validateFirstPrPacket reach the Windows branch.

Findings and resolutions

  • Blocking, fixed in 3c9a492: the off-Windows assertion ran unstubbed. It would have failed on the Windows editor lanes (windows-packaged-qualification, windows-editor-hang-hunt). Both host checks now run under withHost('linux' | 'win32', …).
  • Non-blocking, fixed in the same commit: the odd-backslash and ^ negatives were also caught by the ; and & checks, so they did not show their own rule. They now test --root "a\" and HEAD^.
  • Non-blocking, left as is: allow < only as a whole <…> word. posix_words has the same grammar, and tightening only one side would make the two disagree.
  • github-actions review 5619881835: verification questions only, and it refuted its own unsafe-redirect hypothesis. As it notes, the stubbed route test proves the policy branch, not native console behavior. The native behavior is covered by the real-shell paste-windows-latest row (test(windows): replay printed commands in the host's quoting form (#9659) #9696) and the Windows lane below.
  • Gemini and CodeRabbit are quota-limited, so their reviews are missing (not clean).

Evidence on this head

  • Ripr Rust Small Result passed.
  • windows-advisory passed. In its log, all four target rows pass on Windows in every run: agent_status_restarts_a_failed_attempt_and_completes_a_finished_one, agent_status_keeps_the_gap_open_when_the_receipt_did_not_improve, agent_status_follows_a_focused_test_committed_between_the_phases and first_pr_check_missing_packet_recovers_without_a_resolvable_base. So does shell_words::windows_console_words_decode_the_printed_console_form.
  • None of the Windows failures left in that log are quoting rows. They are path rows (Windows: tests compare paths with mixed / and \ (xtask first_run, output::path, discarded_matcher, match_arm_geometry) #9660), the shallow-clone base row, xtask, lib and singleton rows.
  • Locally: the 9 targeted cli_smoke tests pass. The extension suite has 430 passing, including the new route test; its one failure is the untouched lsp_compatibility process-group test, which fails in this container. cargo xtask precommit passed on c61a418, and 3c9a492 changes only a TS test (tsc is clean).

No unresolved review threads. Merging under merge authority.


Generated by Claude Code

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

Labels

merge-ready windows-ci Run the advisory Windows lane on a pull request without opting into every full-ci lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants