Repository navigation
test(windows): host-quoted agent-status replays, <ref> placeholder words, first-PR route proof (#9659) - #9776
Conversation
… 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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
…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
There was a problem hiding this comment.
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.
Review of record — head 3c9a492Angles
Findings and resolutions
Evidence on this head
No unresolved review threads. Merging under merge authority. Generated by Claude Code |
Summary
Four of the ten
cli_smokefailures in the sharded Windows run 39819783344 on main are quoting rows (#9659):agent_status_restarts_a_failed_attempt_and_completes_a_finished_one,agent_status_keeps_the_gap_open_when_the_receipt_did_not_improveandagent_status_follows_a_focused_test_committed_between_the_phaseshardcoded the POSIX single-quoted root. The product correctly prints the console double-quoted form on Windows (ux(windows): check/explain drill-in recovery commands use POSIX single-quote quoting that breaks when pasted into cmd.exe #7729). These rows now build the expectation with the file's existingrenderer_shell_arg(&rendered_path(..)), the same helper the other replay rows use.first_pr_check_missing_packet_recovers_without_a_resolvable_baseis my regression from test(windows): replay printed commands in the host's quoting form (#9659) #9696. The Windows replay splitter rejected<outside quotes, so the recovery hint's<ref>placeholder failed to split.posix_wordskeeps it as one word.windows_console_wordsnow does the same and still rejects&,|and^. A pinned case was added.This PR also adds a route-level test answering the #9740 review question. With
process.platformstubbed towin32,firstPrCommandIsSafeandvalidateFirstPrPacketaccept 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_smokerows 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
ripr-swarmSource-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
Scope Classification
Production delta: none.
Single acceptance criterion:
Non-goals:
/and\(xtask first_run, output::path, discarded_matcher, match_arm_geometry) #9660) and the xtask, lib and singleton rows in that run.Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
windows-cilane on this PR and the next sharded main run.Claim Boundary
Rollback
Spec-Test-Code Traceability
Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Generated by Claude Code