Skip to content

fix(ci): cover core-driven extension impact in PR fallback - #124579

Merged
steipete merged 2 commits into
mainfrom
steipete/extension-impact-fallback-shards
Aug 16, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/extension-impact-fallback-shards

Conversation

@steipete

@steipete steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #124412

What Problem This Solves

Fixes an issue where pull requests with core changes that can affect plugin tests could pass the changed-test planner without scheduling the affected plugin configurations. PR #118579 demonstrated the gap: its 89-file diff triggered the precise-plan fail-safe, but PR fallback coverage included only configurations for directly changed plugins and omitted Codex.

Maintainer sampling found the core-to-plugin impact predicate fires on only 2 of 25 recent origin/main first-parent merges, and it also fires on #118579 itself, so this broader coverage remains concentrated on the PRs that need it.

Why This Change Was Made

The planner now gives the existing core-impact predicate one named owner and reuses it for both precise-plan fallback and plugin fallback expansion. When it fires, fallback planning routes every canonical plugin root through the existing configuration resolver and preserves the existing config grouping, naming, and process bounds. Direct plugin-only changes retain their current scoped behavior, and docs-only changes still schedule nothing.

The fallback planner, extension inventory owner, and chunk-policy owner self-select the gated lane, matching the existing QA and prompt-snapshot gate precedent. ci.yml is intentionally unchanged because it already appends the fallback shards returned by this planner. PR #124553 (merge d437a4a4b49) already bounded the Codex lane that these shards exercise.

User Impact

No end-user behavior changes. Pull requests whose core changes can affect plugin consumers now receive the missing plugin regression coverage before merge.

Evidence

  • Pre-fix regression: the culprit-shaped fixture expected 26 plugin configs but received only Discord; the planner-only fixture received none.
  • Focused suite: node scripts/run-vitest.mjs test/scripts/ci-changed-node-test-plan.test.ts — 38/38 passed.
  • fix(discord): bind transcript capture to source account [AI] #118579 real-diff probe (git diff-tree 8668aeb9698): 89 files, core impact true, 54 bounded shards, 26 configs, Codex present in 5 shards.
  • Planner-only diffs intentionally match NODE_FAST_CI_ROUTING_SCOPE_RE; this PR's exact-head CI ran the extended planner suites through the green checks-fast-ci-routing lane.
  • The all-extension fallback is unit-proven: the culprit fixture creates 54 shards across all 26 configs with Codex present in 5 bounded shards, the planner-only fixture covers the self-gating path, and the shard names, grouping, and shape are identical to the changed-extension shards production CI already runs.
  • The first live materialization will occur on the next core-impact PR. The predicate fired on 2 of 25 recent first-parent merges, keeping the rollout narrow and trivially revertible if a shard-shape issue surfaces.
  • CI=1 node scripts/check-changed.mjs — passed.
  • Touched-file oxlint and oxfmt checks — passed.
  • Autoreview (--mode uncommitted) — clean, no accepted/actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 16, 2026 12:51
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 16, 2026, 9:04 AM ET / 13:04 UTC.

ClawSweeper review

What this changes

The PR makes the pull-request CI fallback schedule all extension test configurations when core changes can affect extension consumers, while preserving scoped extension-only plans.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the prior P1 blocker remains on the unchanged head, so an edit to the extension inventory can still bypass all-extension fallback coverage.

Priority: P2
Reviewed head: 4081306b0ccdb4927bc874c0ed57753be6ebc32b

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has useful planner coverage, but the remaining P1 gate omission prevents merge readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI-planner repair is governed by source-level routing and exact-head CI evidence rather than an external-contributor real-behavior-proof gate.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI-planner repair is governed by source-level routing and exact-head CI evidence rather than an external-contributor real-behavior-proof gate.
Evidence reviewed 6 items Unfixed fallback-gate omission: The new gate regex names the planner and extension-test-plan owners but excludes the directly imported extension inventory owner.
Fallback consumes the excluded owner: The fallback builds every root from listAvailableExtensionIds, whose inventory implementation is scripts/lib/changed-extensions.mts.
CI only calls fallback after a null precise plan: The workflow invokes createChangedExtensionFallbackShards only when createChangedNodeTestShards returns null; a changed-inventory path can instead be routed to its directly referencing planner test.
Findings 1 actionable finding [P1] Include the extension inventory in the fallback gate
Security None None.

How this fits together

The changed-test planner turns pull-request paths into bounded CI test shards. When precise planning cannot prove coverage, its fallback must add extension configurations whose tests may be affected.

flowchart LR
A[Pull request paths] --> B[Changed-test planner]
B --> C{Core extension impact}
C -->|No| D[Scoped extension configs]
C -->|Yes| E[All extension configs]
D --> F[Bounded CI shards]
E --> F
F --> G[Pull request CI]
Loading

Before merge

  • Include the extension inventory in the fallback gate (P1) - createChangedExtensionFallbackShards consumes listAvailableExtensionIds, but this gate omits scripts/lib/changed-extensions.mts. That path is classified as tooling, so an inventory-only change can receive a precise planner-test target and skip the fallback branch in CI, leaving all extension configurations unscheduled. Add the inventory owner and a regression for that path.
  • Resolve merge risk (P2) - A change confined to scripts/lib/changed-extensions.mts can alter the fallback inventory without selecting all extension configurations, recreating the missing-coverage class this PR addresses.
  • Resolve merge risk (P2) - This bug-fix adds 29 net production lines; that shared predicate is only justified if its direct fallback-input surface is complete.
  • Complete next step (P2) - A narrow repair is clear, but this maintainer-authored PR carries the protected maintainer label and should be updated through its owner-reviewed path.

Findings

  • [P1] Include the extension inventory in the fallback gate — scripts/lib/ci-changed-node-test-plan.mts:126
Agent review details

Security

None.

PR surface

Tests +54, Other +29. Total +83 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 62 8 +54
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 36 7 +29
Total 2 98 15 +83

Review metrics

Metric Value Why it matters
Production vs test LOC production +36/-7 (net +29); tests +62/-8 (net +54) The new shared routing predicate is meaningful production growth for a bug fix and must cover every direct fallback owner.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #124412
Summary: This PR is the candidate repair for the canonical missing-extension-coverage report, but its current gate remains incomplete.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete the fallback gate (recommended)
    Add the extension-inventory owner to the impact surface and regression coverage before merging so inventory changes cannot omit extension CI shards.

Technical review

Best possible solution:

Make the canonical core-impact predicate cover the complete direct fallback-input surface, at minimum the extension inventory, and add a regression that proves an inventory-only change selects all extension configurations.

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

Yes—source establishes the path: an inventory-only change is classified as tooling, can receive a precise planner-test target, and therefore never reaches the fallback branch that schedules extension configs.

Is this the best way to solve the issue?

No—the shared predicate is the right owner, but its explicit gate surface omits a direct dependency that determines the fallback roots.

Full review comments:

  • [P1] Include the extension inventory in the fallback gate — scripts/lib/ci-changed-node-test-plan.mts:126
    createChangedExtensionFallbackShards consumes listAvailableExtensionIds, but this gate omits scripts/lib/changed-extensions.mts. That path is classified as tooling, so an inventory-only change can receive a precise planner-test target and skip the fallback branch in CI, leaving all extension configurations unscheduled. Add the inventory owner and a regression for that path.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1787fd6e0add.

Labels

Label justifications:

  • P2: The PR repairs pull-request CI coverage; the remaining defect can let extension regressions reach main without changing end-user runtime behavior directly.
  • merge-risk: 🚨 automation: The changed planner determines which CI test configurations execute for pull requests.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored CI-planner repair is governed by source-level routing and exact-head CI evidence rather than an external-contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the current PR and the merged bounded-extension planner work that owns the same routing boundary. (role: recent planner owner; confidence: high; commits: 4081306b0ccd, d437a4a4b49c; files: scripts/lib/ci-changed-node-test-plan.mts, scripts/lib/extension-test-plan.mts, scripts/lib/changed-extensions.mts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Include scripts/lib/changed-extensions.mts in the gate surface and add the inventory-only regression case.
  • Rerun the focused CI planner suite on the updated head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-16T12:58:40.976Z sha 4081306 :: found issues before merge. :: [P1] Include the extension inventory in the fallback gate surface

@steipete

Copy link
Copy Markdown
Contributor Author

Applied ClawSweeper's Rank-up move in 374dab8: the extension inventory owner now self-gates the all-extension fallback, with a focused inventory-only regression.

Proof: 38/38 focused planner tests, targeted oxlint/oxfmt, CI=1 node scripts/check-changed.mjs, and fresh uncommitted autoreview are clean.

@steipete
steipete merged commit 8638d50 into main Aug 16, 2026
70 checks passed
@steipete
steipete deleted the steipete/extension-impact-fallback-shards branch August 16, 2026 13:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
…124579)

* fix(ci): cover core-driven extension impact in the PR fallback plan

Fixes openclaw#124412

* fix(ci): self-gate extension inventory changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR-CI lane classification misses src/agents -> extension-test import coupling (let #118579 land with a red codex lane)

1 participant