Repository navigation
refactor(scripts): remove duplicate parser test facades - #124167
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 8:23 AM ET / 12:23 UTC. ClawSweeper reviewWhat this changesThe PR makes script-local parser, usage, and bounded-response helpers private and removes tests that duplicate canonical shared-helper coverage. Merge readinessKeep open for normal maintainer review: the narrow cleanup removes test-only facades without changing the scripts’ executable paths, and no patch defect was found. The exact-head CI gate is currently failing and needs resolution before merge. Priority: P3 Review scores
Verification
How this fits togetherMaintenance scripts parse developer and CI inputs, run gateway diagnostics, and produce build or repro output. Shared numeric and bounded-response helpers own reusable algorithms, while script tests exercise command behavior and integration outcomes. flowchart LR
A[Developer or CI arguments] --> B[Diagnostic scripts]
B --> C[Shared numeric and response helpers]
C --> D[Script-specific validation]
D --> E[Build and gateway diagnostics]
F[Script test suites] --> C
F --> D
Before merge
Agent review detailsSecurityNone. PR surfaceTests -70, Other -6. Total -76 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the helpers private, retain executable-boundary assertions plus the canonical shared-helper tests, and merge only after the exact-head CI gate and any prior review moves are clear. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors internal script test seams rather than reporting a user-visible defect. Is this the best way to solve the issue? Yes. Removing exports used only as test facades while preserving executable assertions and centralized helper tests is the narrowest maintainable ownership boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 25dda7968c1e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production tooling delta: +3/-9, net -6. Tests: +11/-81, net -70. Total: +14/-90, net -76. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes script-private helper exports and tests that duplicated their shared owners or compared an executable's output to the same helper that generated it.
The affected scripts retained direct testing surfaces for build usage text, strict non-negative parsing, and bounded response reading even though production calls the shared numeric/bounded-response implementations and stronger owner tests already cover those algorithms.
Why This Change Was Made
Script helpers are private again. The build and gateway-watch suites continue to test exact executable argument behavior, and the memory FD repro still exercises its real
memory_searchinvocation path. Numeric and response-size algorithms remain covered once at their shared owners.User Impact
No behavior changes. Script tests are less coupled to helper exports and focus on executable outcomes.
Evidence
scripts,testRoot, andtoolingchanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Script/root typechecks, formatting, lint, Docker boundaries, and raw HTTP/2 guards passed.git diff --checkpassed.Production tooling delta: +3/-9, net -6. Tests: +11/-81, net -70. Total: +14/-90, net -76. No behavior, docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.