Skip to content

fix(ci): run every changed-scope routing suite - #120625

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-route-changed-scope-family
Aug 8, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-route-changed-scope-family

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a CI routing gap where split ci-changed-scope regression suites could be omitted from the fast routing lane, allowing platform- or surface-specific scope regressions to miss their intended checks.

Why This Change Was Made

The fast-scope classifier and both workflow routes now select the complete ci-changed-scope*.test.ts family. Changed-test ownership explicitly maps the routing script to all four suites, with a filesystem-backed regression that fails when the family and ownership map drift apart.

User Impact

No runtime behavior changes. CI contributors get consistent fast feedback across the base, Control UI, native i18n, and Windows changed-scope contracts.

Evidence

  • Signed head: 879889f034ec5b2e4711682efc06f3ef0758dc2a
  • Focused Vitest: 6 files passed, 421 tests passed, 2 skipped
  • git diff --check: passed
  • check:changed: every stage before tsgo:core:test passed, including workflow/deadcode/script declarations
  • tsgo:core:test: passed in an isolated exact-SHA checkout with Node 26.7.0 and a frozen install; the shared checkout failure was caused by stale dependencies
  • Autoreview: clean, no accepted/actionable findings
  • Local ClawSweeper: nothing_found, high confidence, no rank-up moves
  • Scope: exactly six CI/test files; no production, dependency, or changelog changes

Agent Transcript

Redacted codex session transcript
source: [LOCAL_SESSION]
redaction: local paths, emails, phone-shaped strings, token-shaped strings, auth headers, auth query params
omitted: raw tool outputs, system/developer prompts, local paths, secrets, browser/session/auth details
stats: {"agent":"codex","entries":3,"user":1,"assistant":1,"toolCalls":80,"toolOutputsDropped":80,"web":0,"redactions":0,"omittedUnsafe":0,"rawEntries":13}

[user]
[instructions recap omitted; policy/config text, not task dialogue]

[assistant]
hi. i’m anchoring the exact commit, repository policy, and changed-scope ownership first; then i’ll trace the routing and test-discovery paths independently and run only focused offline checks.

the checkout is exactly the reviewed SHA and clean; its parent matches the supplied base. `origin/main` has moved two commits, so i’ll explicitly compare the commit snapshot with current local `origin/main` behavior instead of assuming the branch is current.

the change is narrow but spans three routing layers: changed-path classification, semantic test targeting, and the CI shell command. i’m splitting the review accordingly: an independent audit will trace the runtime path while i read the complete files and scoped policy; a second agent will challenge the evidence/test plan before focused execution.

hi, i’m anchoring the exact commit, current `origin/main`, repository policy, and routing ownership first. then i’ll trace both classifiers through callers, sibling patterns, history, and focused tests without touching the checkout.

the checkout is clean at the target commit; local `origin/main` is `a6765d369fb54c00883d1874c1c1e81351f63ff6`, and the reviewed commit is not an ancestor of that ref, so this is a branch-only pre-PR audit against current main. `node_modules` is the required symlink; the title helper and `tokenjuice` cache writes were blocked by the read-only sandbox, so i’m switching to direct reads.

the diff’s intent is coherent so far: it broadens the fast-scope classifier to the complete split test family, makes both CI routes invoke that family, and makes semantic routing select the same four suites. the risky bit is consistency across three different enumeration mechanisms, so i’m now checking every family member, route selector, glob expansion, and the history that introduced the splits.

the three enumeration forms currently agree on exactly four files, and current `origin/main` still has the pre-fix behavior, so the defect remains live there. one subtle design question remains: whether hardcoding the semantic family is intentionally guarded against future files or whether it can silently drift; i’m tracing the planner’s existence checks and deduplication before judging that.

the ownership trace found one apparent asymmetry, but it is pre-existing and not a regression in this commit: `control-ui-i18n.test.ts` is a semantic owner while the fast workflow command only names the split family. this patch’s stated invariant is the split `ci-changed-scope*.test.ts` family, and all three selectors now agree; i’m running the focused routing suites plus adversarial boundary probes to see whether that narrower fix is actually complete.

the repository wrapper cannot start under this read-only sandbox because it writes its include manifest to macOS temp storage; that is an environment block, not a test failure. i’m preserving read-only mode and replacing it with no-write module-level assertions and, if Vitest supports it locally, a cache-disabled direct run through the repository’s Vitest wrapper.

the no-write probes pass: the tracked family is exactly four files, every member selects `runCiRouting`, near-miss paths stay out, future dotted family names route in, semantic targets are the four plus the existing Control UI owner, and both workflow branches contain the family glob. Vitest itself remains sandbox-blocked before collection because OpenClaw’s setup creates temp homes; formatting and `git diff --check` pass.

---
sha: 879889f034ec5b2e4711682efc06f3ef0758dc2a
parent: 7ecdef6e2ed4c5d8007ac9a65c952b3af4eb0798
repository: openclaw/openclaw
author: "Vincent Koc"
committer: "Vincent Koc"
github_author: unknown
github_committer: unknown
co_authors: []
commit_authored_at: 2026-08-08T17:32:49+02:00
commit_committed_at: 2026-08-08T17:33:02+02:00
result: nothing_found
confidence: medium
highest_severity: none
check_conclusion: neutral
reviewed_at: 2026-08-08T15:57:10Z
---

# Commit 879889f0

Nothing found.

## Details

The four tracked `ci-changed-scope` suites agree across:

- Fast-scope regex: `scripts/ci-changed-scope.mjs:87`
- Semantic ownership: `scripts/test-projects.test-support.mjs:1832`, `scripts/test-projects.test-support.mjs:2101`
- Both CI routes: `.github/workflows/ci.yml:1642`, `.github/workflows/ci.yml:1645`
- Drift guards: `test/scripts/test-projects.test.ts:1305`, `test/scripts/ci-workflow-guards.test.ts:6466`

Near-miss paths remain excluded; future dotted family names route correctly. No missing or unintended current suite was found.

Best-fix judgment: yes. The patch aligns classification, execution, and semantic ownership at their respective owners, with dynamic enumeration guarding future family drift.

## Reviewed

- Diff: `7ecdef6e2ed4c5d8007ac9a65c952b3af4eb0798..879889f034ec5b2e4711682efc06f3ef0758dc2a`
- Current local `origin/main`: `6318e3007702f11a6d9de550224956c73b79a37c`
- Current main retains the parent behavior; reviewed commit is not yet its ancestor.
- `git diff --check ...`: passed
- `oxfmt --check <six changed files>`: passed
- `node --check` on both changed scripts: passed
- Parsed-workflow route assertions: passed
- No-write family, regex-boundary, and semantic-target assertions: passed

## Limitations

Focused Vitest was attempted through `node scripts/run-vitest.mjs`, but the read-only sandbox blocked required temporary-home/cache writes with `EPERM` before test collection.

[tool summary]
42 read, 4 write, 34 execute; raw tool outputs dropped: 80

@vincentkoc vincentkoc self-assigned this Aug 8, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 8, 2026 16:01
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 8, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 12:47 PM ET / 16:47 UTC.

ClawSweeper review

What this changes

The PR makes changed-scope CI routing select and run all four split ci-changed-scope regression suites.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for explicit maintainer handling: the patch correctly repairs a current CI-routing coverage gap, but the author is a MEMBER and the PR has the protected maintainer label.

Priority: P3
Reviewed head: 879889f034ec5b2e4711682efc06f3ef0758dc2a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent CI repair with matching regression coverage and green supplied exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored internal CI-routing PR has focused test and exact-head CI evidence; a user-facing real-behavior demonstration is not applicable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored internal CI-routing PR has focused test and exact-head CI evidence; a user-facing real-behavior demonstration is not applicable.
Evidence reviewed 5 items Current-main gap: Current main recognizes only the base changed-scope test file, so edits to split Control UI, native-i18n, or Windows suites do not enter this fast CI-routing scope.
Canonical owner-boundary repair: The PR changes the classifier, semantic ownership mapping, and both workflow routes to cover the same four-suite family.
Drift coverage: The semantic-routing regression enumerates the suite family from the filesystem, so a future split suite makes the explicit ownership map fail visibly rather than silently falling out of coverage.
Findings None None.
Security None None.

How this fits together

The changed-file classifier chooses focused CI checks when routing scripts or their tests change, and the workflow runs those selected checks. This patch aligns classification, semantic test ownership, and workflow execution for the changed-scope suite family.

flowchart LR
A[Changed routing files] --> B[Scope classifier]
B --> C[Semantic test ownership]
C --> D[CI routing jobs]
D --> E[All changed-scope suites]
Loading

Decision needed

Question Recommendation
Should this protected maintainer PR be approved for landing after confirming the current-base merge result and latest ClawSweeper review moves? Approve after final gate refresh: Confirm the current merge result and prior review moves, then land the focused CI-routing repair.

Why: The patch is source-correct, but MEMBER authorship and the protected maintainer label require explicit maintainer handling rather than automated closure or dispatch.

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as behind its base; landing should use a clean current-base merge result and confirm the latest ClawSweeper rank-up moves, which were not included in the supplied comment bodies.
Agent review details

Security

None.

PR surface

Tests +9, Config 0, Other +6. Total +15 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 10 1 +9
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 2 8 2 +6
Total 6 20 5 +15

Review metrics

Metric Value Why it matters
Automation vs. test LOC automation +10/-4; tests +10/-1 The small automation increase is justified by making the classifier, semantic owner map, and both workflow routes agree; regression coverage grows alongside it.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the aligned four-suite routing contract after protected maintainer review confirms the current merge result and no prior rank-up move remains.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the aligned four-suite routing contract after protected maintainer review confirms the current merge result and no prior rank-up move remains.

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

Yes, from source: on current main, changing a split changed-scope suite does not match the classifier’s sole base-suite path, so its intended fast routing checks can be omitted.

Is this the best way to solve the issue?

Yes. The patch fixes the producer classifier, semantic ownership map, and CI execution routes together, while tests guard their shared suite-family invariant.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is focused CI-routing hardening with no demonstrated runtime-user behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored internal CI-routing PR has focused test and exact-head CI evidence; a user-facing real-behavior demonstration is not applicable.

Label justifications:

  • P3: This is focused CI-routing hardening with no demonstrated runtime-user behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored internal CI-routing PR has focused test and exact-head CI evidence; a user-facing real-behavior demonstration is not applicable.

Evidence

What I checked:

  • Current-main gap: Current main recognizes only the base changed-scope test file, so edits to split Control UI, native-i18n, or Windows suites do not enter this fast CI-routing scope. (scripts/ci-changed-scope.mjs:87, a413b16ee6c6)
  • Canonical owner-boundary repair: The PR changes the classifier, semantic ownership mapping, and both workflow routes to cover the same four-suite family. (scripts/test-projects.test-support.mjs:2101, 879889f034ec)
  • Drift coverage: The semantic-routing regression enumerates the suite family from the filesystem, so a future split suite makes the explicit ownership map fail visibly rather than silently falling out of coverage. (test/scripts/test-projects.test.ts:1305, 879889f034ec)
  • Current routing provenance: The surrounding current-main classifier ownership traces to the recent routing refactor; the PR adds its changed lines separately. (scripts/ci-changed-scope.mjs:87, 10c7f005be20)
  • Patch hygiene and CI: The supplied PR context reports exact-head focused routing coverage and completed relevant CI checks; read-only review also found no whitespace error. (879889f034ec)

Likely related people:

  • Peter Steinberger: Current classifier and semantic-routing lines trace to the recent CI-routing refactor commit. (role: recent area contributor; confidence: medium; commits: 10c7f005be20; files: scripts/ci-changed-scope.mjs, scripts/test-projects.test-support.mjs)

Rank-up moves

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

  • Confirm the current-base merge result and the latest ClawSweeper rank-up moves before landing.

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.

@vincentkoc
vincentkoc merged commit 13322b2 into main Aug 8, 2026
195 of 197 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-route-changed-scope-family branch August 8, 2026 16:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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