Repository navigation
fix(ci): keep planner flow private to its CLI - #198089
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesRemoves the unused export modifier from the planner benchmark’s internal runPlannerFlow function. Example: Run the scripts unused-export scan with the planner benchmark registered as an executable entry.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR makes the smallest complete repair to an unused export still present on main, with passing exact-head validation and no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe standalone benchmark CLI feeds workload scenarios into the manifest and optional check planner, then writes timing and planning reports; Knip separately audits its exported symbols. flowchart LR
A[Benchmark CLI] --> B[Private planner flow]
B --> C[Manifest CLI]
C --> D[Optional check planner]
B --> E[Benchmark report]
F[Scripts export guard] --> A
Technical reviewBest possible solution: Keep runPlannerFlow private while preserving the existing CLI, consumed helper exports, and canonical export guard. Do we have a high-confidence way to reproduce the issue? Source confirms an exported function with only module-local consumers under an entry-export audit; the PR records exact-parent failure and after-fix success, while this read-only review ran no target code. Is this the best way to solve the issue? Removing the modifier directly repairs the export contract without suppressions, artificial consumers, new machinery, or runtime changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 664a791058eb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceOther 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 11:47 PM ET / November 13, 2026, 04:47 UTC. |
|
Merged via squash.
|
Synchronize canonical planner tooling from 3bd03da (upstream #195711, #198089, #198107, #198147) without importing unrelated schema or runtime changes. Preserve upstream tests: 398 lines accounted by the original 157-line allocation and 241-line synchronization allocation. Archive feature test growth remains 400 lines. Include the SQLite full-text owner in host and worker benchmark source identity. Add source-only preflight; this does not claim a latency pass or waive existing performance failures. Co-authored-by: hannesrudolph <[email protected]>
What Problem This Solves
The scripts unused-export guard fails on main because
scripts/bench-ci-planner.mtsexportsrunPlannerFloweven though its only caller and return-type reference are inside that same CLI module. The export was introduced by #195711 (ba284782cf1705d7e5f1f085b9cdefbb55932af6).User Impact
Restores the CI export guard without changing planner behavior, measurement, cancellation, resource accounting, or CLI options.
Why This Change Was Made
Remove only the unused
exportmodifier. The function, its internal calls, and the other exported helpers consumed by existing tests remain unchanged. No suppression, configuration, baseline, test-only caller, or new test is added. Production and test line counts are unchanged.Evidence
3e9d22d51026f06e8953de7b3d852c764214d0a7, the canonical scripts export scan exits 1 and reports onlyrunPlannerFlow.ci-planner-benchmark.test.ts: four tests pass, including the public CLI help entry point and protocol/resource/report contracts. Two existing GNU-time/Linux process cases are skipped on macOS; they remain in the focused Linux workflow.pnpm check:changed --base 3e9d22d51026f06e8953de7b3d852c764214d0a7passes, including all three export scans and script typechecking. The scripts export scan changes from the exact-parent failure above to zero entries.git diff --checkpasses.