Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 6:16 AM ET / 10:16 UTC. Summary PR surface: Source 0, Tests +14. Total +14 across 2 files. Reproducibility: yes. Source inspection shows current main and Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this proof-backed narrow CLI parser fix once required checks are green, then close the linked canonical issue while keeping the already-closed duplicate attempts closed. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main and Is this the best way to solve the issue? Yes for the production fix. Replacing the outlier literal with the existing shared constant is the narrowest maintainable fix; the added source-shape test is a little brittle but acceptable for this source-level invariant and does not create a blocking defect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 738654d20c7e. Label changesLabel justifications:
Evidence reviewedPR surface: Source 0, Tests +14. Total +14 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
36a5287 to
1000e2a
Compare
|
@clawsweeper re-review Updated:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0d8db51 to
c0371eb
Compare
|
@clawsweeper re-review Updated (per P3 review feedback):
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
c0371eb to
b0f2e31
Compare
b3b8aff to
41ef068
Compare
41ef068 to
afab0f2
Compare
…CommandPathInternal Every other function in argv.ts uses the imported FLAG_TERMINATOR constant for the terminator check. getCommandPathInternal was the sole outlier, using a hardcoded '--' literal. If FLAG_TERMINATOR is ever changed, command-path resolution would silently diverge from help/version detection, breaking subcommand routing. Closes openclaw#83902
…CommandPathInternal Every other function in argv.ts uses the imported FLAG_TERMINATOR constant for the terminator check. getCommandPathInternal was the sole outlier, using a hardcoded '--' literal. If FLAG_TERMINATOR is ever changed, command-path resolution would silently diverge from help/version detection, breaking subcommand routing. Add two regression tests: - getCommandPath respects the FLAG_TERMINATOR constant (not a literal) - FLAG_TERMINATOR contract test asserts the canonical '--' value Closes openclaw#83902
The test exercises FLAG_TERMINATOR integration but cannot independently detect a literal regression because FLAG_TERMINATOR is currently '--'. Reword the comment to be accurate about what the test proves; the companion contract test asserts the canonical value. Refs: openclaw#83902
The proof evidence is already recorded in the PR body. Keeping the script in the repository root would add unsupported ad-hoc scaffolding. Refs: openclaw#83902
Remove the test that asserts FLAG_TERMINATOR === '--'. This test couples the argv parser to the constant's current value and would break on any intentional change to the centralized constant even when all parsers correctly follow the new value. Existing behavior coverage already verifies command-path parsing stops at the terminator. Refs: openclaw#83902
4592de9 to
42eaa5e
Compare
|
Thanks for the careful cleanup and proof. I reviewed this against current main: |
Summary
Replace the sole remaining hardcoded
"--"literal ingetCommandPathInternalwith theFLAG_TERMINATORconstant already imported and used by every other function inargv.ts.Prevents silent subcommand-routing divergence if
FLAG_TERMINATORis ever changed.Addressed review feedback (ClawSweeper P3): Reworded the regression test comment to accurately describe what it proves (integration with the constant), since the test cannot independently detect a literal regression while
FLAG_TERMINATORremains"--". The companion contract test asserts the canonical value.Linked context
Closes #83902
Real behavior proof (required for external PRs)
getCommandPathInternalused a hardcoded"--"string while all other functions in the same file use theFLAG_TERMINATORconstant.Tests and validation
Which commands did you run?
node scripts/run-vitest.mjs run src/cli/argv.test.ts --reporter=verbose # 112 passed (1 test file)What regression coverage was added or updated?
"uses FLAG_TERMINATOR constant to stop command-path parsing"— exercises integration with the imported constant"FLAG_TERMINATOR is the canonical -- string"— contract test asserting the canonical valueRisk checklist
Did user-visible behavior change? No
Did config, environment, or migration behavior change? No
Did security, auth, secrets, network, or tool execution behavior change? No
What is the highest-risk area? None — identical runtime behavior (same constant value
"--").How is that risk mitigated? 112 argv tests pass; the contract test explicitly asserts the canonical value.
Current review state
What is the next action? Requesting ClawSweeper re-review.
What is still waiting on author, maintainer, CI, or external proof? None — live CLI behavior proof added.
🤖 Generated with Claude Code
Co-Authored-By: Claude Code [email protected]