Skip to content

refactor(test): derive changed tooling routes - #117407

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-test-routing-0801-2d45
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-test-routing-0801-2d45

Conversation

@steipete

@steipete steipete commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace the duplicated workflow/tooling source ownership inventories with conventional test-name discovery, direct import discovery, and targeted path-reference discovery
  • retain readable semantic/exact exceptions only for ambiguous multi-owner paths, with shared named owner families
  • preserve precise ordinary-source routing and the existing changed-test target order
  • preserve the full-tooling owner for packaging lifecycle hooks that cannot be safely narrowed
  • remove 437 genuine tooling LOC (1,136 additions, 1,573 deletions); no packed tables or newly introduced lines over 120 characters

Why

The changed-test router encoded the same ownership facts in large hand-maintained maps even when test names and direct imports already described those relationships. That made new scripts and workflows require manual routing entries and let the inventory drift away from the code it represented.

This keeps one discovery path for conventional ownership while preserving readable explicit exceptions where filenames or shared helpers cannot identify a single safe owner. Repeated owner names and the shared plugin SDK contract family are factored once instead of compressing data onto oversized physical lines.

Impact

Changed-file CI remains equally selective for all existing routes, while new conventionally named scripts and direct tooling imports can resolve without growing the ownership matrix.

Validation

  • node --check scripts/test-projects.test-support.mjs
  • git diff --check
  • node scripts/run-vitest.mjs test/scripts/test-projects.test.ts --reporter=dot — 260 passed (Testbox run)
  • exhaustive old/new ownership comparison against current main — 411 paths, zero missing or reordered routes, 967 selected targets before and after; includes newly landed docs/package scripts, declarations, workflows, and full-tooling postpack coverage
  • node scripts/check-changed.mjs -- scripts/test-projects.test-support.mjs — passed (Testbox run)
  • autoreview (gpt-5.6-sol, xhigh) — clean, no accepted/actionable findings

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 1, 2026
@steipete
steipete marked this pull request as ready for review August 1, 2026 12:52
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 11:23 AM ET / 15:23 UTC.

ClawSweeper review

What this changes

The branch replaces much of the changed-test router’s hand-maintained tooling ownership inventory with conventional test-name discovery, direct import/reference discovery, and a smaller set of explicit exceptions.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main does not contain its head commit, and the refactor changes the automation that selects focused regression tests. The inspected routing path preserves broad fallbacks, explicit exceptional owners, and direct-reference discovery; no concrete patch defect was found, but the protected maintainer label and base drift warrant a human merge decision after a current-base refresh.

Priority: P3
Reviewed head: d36f1210d9b3f55f30fe01d672e09691d44d52df

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused validation and no confirmed correctness finding, with current-base refresh remaining the material confidence reducer.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body records an after-change Testbox run of the focused routing suite, changed-check validation, and an exhaustive route-parity comparison; redact-sensitive data is not implicated by this internal tooling proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body records an after-change Testbox run of the focused routing suite, changed-check validation, and an exhaustive route-parity comparison; redact-sensitive data is not implicated by this internal tooling proof.
Evidence reviewed 6 items Routing owner boundary: The PR head keeps direct test-file routing, broad-fallback protection, declaration-to-implementation ownership, exact exceptions, semantic exceptions, and discovered owners in one tooling-routing function.
Direct-reference safeguard: The PR head limits direct-reference discovery to real test targets, excludes the router’s own test, excludes live tests, and confirms the normalized path appears in the candidate test source before selecting it.
Existing regression coverage: Current regression coverage asserts focused routing for workflow sanity and workflow-helper script edits, which exercises the same selective-routing contract this refactor retains.
Findings None None.
Security None None.

How this fits together

Changed-file CI feeds modified repository paths into the changed-test router, which selects focused Vitest targets or deliberately falls back to broader validation. This PR changes the tooling-path ownership stage, affecting which regression tests CI runs for scripts, workflows, package hooks, and related helper files.

flowchart LR
  A[Changed repository paths] --> B[Changed-test router]
  B --> C[Explicit exceptional owners]
  B --> D[Conventional test discovery]
  B --> E[Direct reference discovery]
  C --> F[Ordered focused test targets]
  D --> F
  E --> F
  F --> G[Changed-file CI validation]
Loading

Before merge

  • Resolve merge risk (P1) - This is CI-routing automation: a missed exceptional path could select a generic tooling suite or omit a narrower regression target. The PR documents parity proof, but its base is behind current main, and this read-only checkout could not materialize the full three-way diff after GitHub DNS resolution failed.
  • Complete next step (P2) - The protected maintainer label and the automation-coverage risk require a human merge decision; no narrow mechanical repair was identified.
Agent review details

Security

None.

PR surface

Other -437. Total -437 across 1 file.

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 1136 1573 -437
Total 1 1136 1573 -437

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Refresh current-base parity proof (recommended)
    Rebase or merge current main into the branch and rerun the focused routing suite plus ordered ownership comparison before merge.
  2. Accept the recorded branch-base proof
    Merge with the existing Testbox and parity evidence while accepting that the current-base comparison was not refreshed after the latest main changes.
  3. Pause the refactor
    Close or defer the branch if maintainers prefer the existing explicit inventory over the maintenance risk of changing CI target derivation.

Technical review

Best possible solution:

Rebase or refresh the branch onto current main, rerun the focused routing suite and the old/new route-parity comparison against that exact base, then retain the discovery-first implementation if target order and coverage stay unchanged.

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

Not applicable: this PR refactors internal changed-test routing rather than repairing a user-reported runtime failure. The relevant behavioral contract is covered by route-selection tests and the reported Testbox parity comparison.

Is this the best way to solve the issue?

Yes, provisionally: deriving unambiguous ownership from test names and direct references removes duplicated inventory while retaining named exceptions for ambiguous paths. A current-base parity refresh is the safer final proof because current main has advanced beyond the PR base.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: The PR is an internal test-routing refactor without a demonstrated production regression.
  • merge-risk: 🚨 automation: Its selected test targets control changed-file CI coverage, so an ownership-resolution miss can weaken automated regression validation.
  • 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. Sufficient (terminal): The PR body records an after-change Testbox run of the focused routing suite, changed-check validation, and an exhaustive route-parity comparison; redact-sensitive data is not implicated by this internal tooling proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records an after-change Testbox run of the focused routing suite, changed-check validation, and an exhaustive route-parity comparison; redact-sensitive data is not implicated by this internal tooling proof.

Evidence

What I checked:

  • Routing owner boundary: The PR head keeps direct test-file routing, broad-fallback protection, declaration-to-implementation ownership, exact exceptions, semantic exceptions, and discovered owners in one tooling-routing function. (scripts/test-projects.test-support.mjs:2750, d36f1210d9b3)
  • Direct-reference safeguard: The PR head limits direct-reference discovery to real test targets, excludes the router’s own test, excludes live tests, and confirms the normalized path appears in the candidate test source before selecting it. (scripts/test-projects.test-support.mjs:2736, d36f1210d9b3)
  • Existing regression coverage: Current regression coverage asserts focused routing for workflow sanity and workflow-helper script edits, which exercises the same selective-routing contract this refactor retains. (test/scripts/test-projects.test.ts:1507, 9e43844264a7)
  • Current-main provenance: Recent current-main work on this routing file is attributed to Peter Steinberger, indicating active maintenance around the changed ownership surface. (scripts/test-projects.test-support.mjs:1, b5a59e0a7d94)
  • Current-main and release check: The PR head is not an ancestor of current main, and no local release tag contains it; this is open work rather than an implementation already present on main or shipped. (d36f1210d9b3)
  • Validation evidence: The PR body reports a Testbox focused run with 260 passing tests, a changed-check run, syntax and diff checks, plus an exhaustive old/new route comparison with 411 paths and no missing or reordered targets. The linked artifacts could not be re-fetched because this review environment could not resolve GitHub DNS. (test/scripts/test-projects.test.ts:207, d36f1210d9b3)

Likely related people:

  • steipete: Recent current-main commits touch the changed-test routing file, and the PR head continues that routing work. (role: recent area contributor; confidence: high; commits: b5a59e0a7d94, b721cffa4461; files: scripts/test-projects.test-support.mjs, test/scripts/test-projects.test.ts)

Rank-up moves

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

  • Refresh the parity comparison and focused routing run against the exact current-main merge result 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-01T12:58:13.355Z sha da128e54f8a5fde7a0d726a1cbd13de06416f5d9 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T13:14:18.827Z sha 084622c :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/goal100k-test-routing-0801-2d45 branch from da128e5 to 084622c Compare August 1, 2026 13:07
@steipete
steipete force-pushed the codex/goal100k-test-routing-0801-2d45 branch from 084622c to d36f121 Compare August 1, 2026 15:16
@steipete
steipete merged commit ea2e7f4 into main Aug 1, 2026
66 checks passed
@steipete
steipete deleted the codex/goal100k-test-routing-0801-2d45 branch August 1, 2026 16:42
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

pull Bot pushed a commit to mcx/moltbot that referenced this pull request Aug 1, 2026
* origin/main: (44 commits)
  fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486)
  fix(doctor): reject contradictory lint check selectors (openclaw#117495)
  fix(anthropic): honor configured model pricing (openclaw#117275)
  refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373)
  refactor(test): derive changed tooling routes (openclaw#117407)
  fix(kova): clarify extension memory attribution (openclaw#117500)
  fix(imessage): sanitize private context on every outbound path (openclaw#117501)
  fix(ci): align release validation fixtures (openclaw#117494)
  fix(talk): preserve owner authorization in realtime consults (openclaw#114163)
  fix(ui): surface aborted-run diagnostics (openclaw#117497)
  perf(models): skip Ollama row runtime loading (openclaw#117465)
  fix(cli): report user profile command outcomes (openclaw#117466)
  fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419)
  fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412)
  fix(models): avoid waiting on promotions before listing models (openclaw#117322)
  refactor(plugins): inherit shared package boundary settings (openclaw#117474)
  fix(systemd): parse all inline environment assignments (openclaw#117484)
  feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545)
  fix(qa): Slack progress lane misses successful delivery (openclaw#117391)
  refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476)
  ...
abdulrahman305 pushed a commit to qenex-ai/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (41 commits)
  fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486)
  fix(doctor): reject contradictory lint check selectors (openclaw#117495)
  fix(anthropic): honor configured model pricing (openclaw#117275)
  refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373)
  refactor(test): derive changed tooling routes (openclaw#117407)
  fix(kova): clarify extension memory attribution (openclaw#117500)
  fix(imessage): sanitize private context on every outbound path (openclaw#117501)
  fix(ci): align release validation fixtures (openclaw#117494)
  fix(talk): preserve owner authorization in realtime consults (openclaw#114163)
  fix(ui): surface aborted-run diagnostics (openclaw#117497)
  perf(models): skip Ollama row runtime loading (openclaw#117465)
  fix(cli): report user profile command outcomes (openclaw#117466)
  fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419)
  fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412)
  fix(models): avoid waiting on promotions before listing models (openclaw#117322)
  refactor(plugins): inherit shared package boundary settings (openclaw#117474)
  fix(systemd): parse all inline environment assignments (openclaw#117484)
  feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545)
  fix(qa): Slack progress lane misses successful delivery (openclaw#117391)
  refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (44 commits)
  fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486)
  fix(doctor): reject contradictory lint check selectors (openclaw#117495)
  fix(anthropic): honor configured model pricing (openclaw#117275)
  refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373)
  refactor(test): derive changed tooling routes (openclaw#117407)
  fix(kova): clarify extension memory attribution (openclaw#117500)
  fix(imessage): sanitize private context on every outbound path (openclaw#117501)
  fix(ci): align release validation fixtures (openclaw#117494)
  fix(talk): preserve owner authorization in realtime consults (openclaw#114163)
  fix(ui): surface aborted-run diagnostics (openclaw#117497)
  perf(models): skip Ollama row runtime loading (openclaw#117465)
  fix(cli): report user profile command outcomes (openclaw#117466)
  fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419)
  fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412)
  fix(models): avoid waiting on promotions before listing models (openclaw#117322)
  refactor(plugins): inherit shared package boundary settings (openclaw#117474)
  fix(systemd): parse all inline environment assignments (openclaw#117484)
  feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545)
  fix(qa): Slack progress lane misses successful delivery (openclaw#117391)
  refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (27 commits)
  fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486)
  fix(doctor): reject contradictory lint check selectors (openclaw#117495)
  fix(anthropic): honor configured model pricing (openclaw#117275)
  refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373)
  refactor(test): derive changed tooling routes (openclaw#117407)
  fix(kova): clarify extension memory attribution (openclaw#117500)
  fix(imessage): sanitize private context on every outbound path (openclaw#117501)
  fix(ci): align release validation fixtures (openclaw#117494)
  fix(talk): preserve owner authorization in realtime consults (openclaw#114163)
  fix(ui): surface aborted-run diagnostics (openclaw#117497)
  perf(models): skip Ollama row runtime loading (openclaw#117465)
  fix(cli): report user profile command outcomes (openclaw#117466)
  fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419)
  fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412)
  fix(models): avoid waiting on promotions before listing models (openclaw#117322)
  refactor(plugins): inherit shared package boundary settings (openclaw#117474)
  fix(systemd): parse all inline environment assignments (openclaw#117484)
  feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545)
  fix(qa): Slack progress lane misses successful delivery (openclaw#117391)
  refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (41 commits)
  fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486)
  fix(doctor): reject contradictory lint check selectors (openclaw#117495)
  fix(anthropic): honor configured model pricing (openclaw#117275)
  refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373)
  refactor(test): derive changed tooling routes (openclaw#117407)
  fix(kova): clarify extension memory attribution (openclaw#117500)
  fix(imessage): sanitize private context on every outbound path (openclaw#117501)
  fix(ci): align release validation fixtures (openclaw#117494)
  fix(talk): preserve owner authorization in realtime consults (openclaw#114163)
  fix(ui): surface aborted-run diagnostics (openclaw#117497)
  perf(models): skip Ollama row runtime loading (openclaw#117465)
  fix(cli): report user profile command outcomes (openclaw#117466)
  fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419)
  fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412)
  fix(models): avoid waiting on promotions before listing models (openclaw#117322)
  refactor(plugins): inherit shared package boundary settings (openclaw#117474)
  fix(systemd): parse all inline environment assignments (openclaw#117484)
  feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545)
  fix(qa): Slack progress lane misses successful delivery (openclaw#117391)
  refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476)
  ...
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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