Skip to content

fix(ci): bound planner benchmark dispatch inputs - #198147

Merged
vincentkoc merged 3 commits into
mainfrom
fix/ci-planner-benchmark-inputs
Nov 13, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/ci-planner-benchmark-inputs

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Related: #195711.

What Problem This Solves

The manual planner benchmark always selects the historical workload and fifteen flows. Its first baseline attempt failed the frozen main-case job-cap check before producing a valid sample. Maintainers need to qualify one real planning flow before requesting a full baseline, without allowing dispatch inputs to select arbitrary executable source.

User Impact

The hosted workflow can select either the historical workload 79f5aeb133830a1db60b55cff3cf7a617086aa07 or the reviewed landed workload ba284782cf1705d7e5f1f085b9cdefbb55932af6, one case (all, main, cron, or discord), and one to five repetitions. Historical defaults remain unchanged.

All inputs are validated before checkout. Unlisted SHAs are rejected even when well formed. Two mutually exclusive checkout steps use literal canonical-repository refs; checkout identity and matching complete package-manager integrity pins are checked before installation. Adding a hosted workload requires a reviewed workflow change. The local CLI remains general.

Why This Change Was Made

A SHA syntax check does not establish trust in the code it selects. Fixed reviewed revisions restrict execution authority and address the cache-poisoning path found in the initial dynamic-checkout version. Disabling action-level caches does not revoke runner cache tokens; this change does not claim otherwise.

The collector, planning policy, job cap, runtime pins, limits and report/error semantics are unchanged. A single successful flow is an admission check, not a fifteen-flow baseline or a performance result.

Evidence

  • Standalone diagnostics passed 29 actual Bash selection cases, including both pins and rejection of an unlisted SHA. The checkout-identity fixture exercises the actual workflow block and rejects a mismatch before runtime commands. Strict YAML, shell syntax, whitespace/privacy checks and exact-pinned oxfmt 0.74.0 passed. These are host diagnostics, not hosted Node 24 execution proof.
  • Fresh local ClawSweeper review of 71ebd8c73f330cb6dbf636f3ae4d847331ea861c against the frozen base found no actionable correctness or security findings. The source review did not run project tests.
  • Earlier focused validation passed 24 tests and targeted checks on the previous e69eda8 head. Its subsequent CodeQL finding prompted this trust correction; that earlier execution is not proof for the new head.
  • Focused validation on the trust correction passed all 26 tests on 71ebd8c, including real timeout and cancellation. Typecheck then found three possibly undefined array accesses in test assertions; this follow-up adds optional access while preserving the exact-length and expected-value assertions. The mechanical delta received independent source review. Later lint, formatting, workflow and Knip checks did not run in that failed job.
  • Exact-head validation of all 26 tests, typecheck, lint, formatting, workflow checks, both Knip scans, CodeQL and ordinary PR CI is pending for 5bc89d2cd0c425c3091a9158af8c6f771bcc9864. The fresh local review of the unchanged behavior above is reused with the three-access delta review. Full local workspace dependencies are not admitted. No new benchmark has been dispatched, no valid baseline has been collected, and no speedup is claimed.

@vincentkoc vincentkoc self-assigned this Nov 13, 2026
@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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Nov 13, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 13, 2026 06:59
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature 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

This PR adds validated workload, case, and repetition inputs to the manual planner benchmark workflow.

Example: Select workload e69eda8, case main, and one repetition.

  • Before: The workflow always requests fifteen flows against workload 79f5aeb.
  • After: The workflow can request one main-planning flow against the selected revision while retaining the historical defaults.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused tooling with passing required validation and no identified defect; evidence exercises workflow blocks rather than a dispatched measurement.
Proof confidence 🦐 gold shrimp (3/6) This CI tooling change has exact-head hosted validation of its workflow scripts; no dispatched measurement or new baseline is claimed, and shipped-product proof is not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot request a smaller qualification run or choose a reviewed workload through the manual workflow.
Reason: The maintainer-authored direction provides useful diagnostic control without changing planner policy or claiming to repair the historical admission failure.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful bounded benchmark controls, and no actionable introduced defect was found.

Priority: P2
Reviewed head: e69eda8ba8b0e2c56bb2409d6a5795a722f9046c

Before merge

None.

Findings

None.

Agent review details

How this fits together

The manual GitHub Actions workflow validates operator selections, installs separate harness and workload checkouts, invokes the existing planner benchmark CLI, and uploads its bounded report.

flowchart LR
  A[Manual dispatch] --> B[Validate selections]
  B --> C[Checkout harness and workload]
  C --> D[Verify pins and install]
  D --> E[Existing benchmark CLI]
  E --> F[Manifest and check planners]
  F --> G[Bounded report artifact]
Loading

Technical review

Best possible solution:

Retain the bounded workflow selections and existing collector as the single owner of measurement behavior.

Do we have a high-confidence way to reproduce the issue?

This is a workflow capability addition; source confirms the existing fixed selections, and supplied exact-head hosted validation exercises the new validation blocks.

Is this the best way to solve the issue?

The patch is a focused extension of the existing workflow and collector, with distinct validation and binding tests and no unnecessary production machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c8be02055001.

Provenance checked

  • Frozen workload and fifteen-flow workflow defaults keeps the original intent (ba28478: Provide a bounded, reproducible baseline of complete planner CLI flows using separate harness and workload identities.)
  • Package-manager identity validation keeps the original intent (ba28478: Keep separate frozen installations on the same pinned toolchain; the new pre-install check enforces the collector's existing identity requirement earlier.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit ba28478 adds scripts/bench-ci-planner.mts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ba284782cf17; files: scripts/bench-ci-planner.mts)
  • Peter Steinberger: Raw commit e711369 adds scripts/bench-ci-planner.mts:275 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e711369ecfc3; files: scripts/bench-ci-planner.mts)

PR surface

Tests +156, Docs +15, Config +53. Total +224 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 157 1 +156
Docs 1 18 3 +15
Config 1 57 4 +53
Generated 0 0 0 0
Other 0 0 0 0
Total 3 232 8 +224

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.

Review metrics

Metric Value Why it matters
Manual dispatch controls 3 inputs; 1–15 requested flows Exposes existing collector selections while preserving the historical workload, all cases, and five-repetition defaults.

Labels

Label changes:

  • add P2: Useful bounded CI tooling improvement without an urgent shipped-runtime failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: Useful bounded CI tooling improvement without an urgent shipped-runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 13, 2026, 2:15 AM ET / 07:15 UTC.

@vincentkoc
vincentkoc enabled auto-merge (squash) November 13, 2026 08:01
@vincentkoc
vincentkoc merged commit e1bfcc0 into main Nov 13, 2026
108 of 109 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-planner-benchmark-inputs branch November 13, 2026 08:41
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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
* fix(ci): bound planner benchmark dispatch inputs

* fix(ci): restrict planner runs to reviewed workloads

* fix(test): guard optional planner checkout assertions
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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.

2 participants