Skip to content

fix(ci): keep planner flow private to its CLI - #198089

Merged
steipete merged 1 commit into
mainfrom
fix/2430-planner-private-flow
Nov 13, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/2430-planner-private-flow

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The scripts unused-export guard fails on main because scripts/bench-ci-planner.mts exports runPlannerFlow even 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 export modifier. 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

  • On the exact clean parent 3e9d22d51026f06e8953de7b3d852c764214d0a7, the canonical scripts export scan exits 1 and reports only runPlannerFlow.
  • Existing 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 3e9d22d51026f06e8953de7b3d852c764214d0a7 passes, including all three export scans and script typechecking. The scripts export scan changes from the exact-parent failure above to zero entries.
  • Fresh independent Codex review of the complete diff and owner/caller context is clean through P2; git diff --check passes.

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T04:35:38.051057Z 2d4f202 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 13, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Removes 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.

  • Before: The author reports that the exact parent fails with runPlannerFlow as the sole unused export.
  • After: The function remains available inside its CLI module without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified repair with passing exact-head validation and no identified defect.
Proof confidence 🐚 platinum hermit (4/6) This internal CI export repair changes no user-visible behavior; supplied guard results and passing exact-head validation support the static contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers encounter a failing scripts unused-export guard for an internal benchmark function.
Reason: The maintainer-authored direction restores an existing repository contract with a one-token change.

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
Reviewed head: 2d4f202c0e157065b633a2d9024186502d675606

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Planner benchmark module boundary keeps the original intent (ba28478: Provide repeatable measurements of complete manifest and check-planning CLI flows; no external runPlannerFlow consumer is established.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Other 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a concrete CI export-contract failure with limited scope and no product-runtime impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a concrete CI export-contract failure with limited scope and no product-runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 12, 2026, 11:47 PM ET / November 13, 2026, 04:47 UTC.

@steipete
steipete merged commit e711369 into main Nov 13, 2026
117 of 118 checks passed
@steipete
steipete deleted the fix/2430-planner-private-flow branch November 13, 2026 04:58
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Nov 13, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant