Skip to content

build: rebalance core test typecheck roots - #146553

Closed
steipete wants to merge 1 commit into
mainfrom
codex/swarm-typecheck-shards
Closed

steipete wants to merge 1 commit into
mainfrom
codex/swarm-typecheck-shards

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #130741, #146539.

What Problem This Solves

The existing core-test inventory regression fails because plugins-platform has 702 test roots, above its 700-root ceiling. This blocks otherwise passing PRs.

Why This Change Was Made

Move the complete 51-root security test subtree to agents-tools, alongside sandbox and execution-tool tests. At the reviewed source, the two groups change from 702 to 651 and from 331 to 382 roots. All 10,137 canonical roots remain covered exactly once across the same 18 graphs, with every other assignment unchanged.

The inventory ceiling remains 700 and the compiler hard limit remains 720. Stripe assignments, compiler concurrency, runner selection and job counts stay unchanged. The matching CI ownership documentation is updated.

Evidence

The original inventory failure reproduced before the change. All 24 existing shard regressions pass afterward, both affected projects pass the actual TypeScript compiler, and canonical changed checks, MDX validation and independent P1 review pass. Fresh main a2705294146d retains the original three-file inputs.

@clawsweeper

clawsweeper Bot commented Sep 12, 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 docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Sep 12, 2026
@steipete
steipete marked this pull request as ready for review September 12, 2026 23:10
@clawsweeper clawsweeper Bot added 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. labels Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 7:15 PM ET / 23:15 UTC.

ClawSweeper review

What this changes

Moves security tests into an existing, smaller TypeScript checking group and updates the CI ownership documentation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main retains the overloaded assignment, and the patch preserves compiler settings and coverage safeguards. No actionable defect was found.

Priority: P2
Reviewed head: fee11c66c85dd8f9ed3b9cb0239b3c3eff7e8482

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with preserved safeguards, relevant reported validation, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored build-only PR is exempt from external-contributor runtime proof; its body reports actual compilation of both affected projects and the inventory regression before and after repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored build-only PR is exempt from external-contributor runtime proof; its body reports actual compilation of both affected projects and the inventory regression before and after repair.
Evidence reviewed 6 items Exact introduced change: The pinned introduction diff transfers both security test patterns between existing projects and updates one documentation paragraph; it introduces no runtime, dependency, workflow, or permission changes.
Shared settings and preserved coverage: Both affected projects extend the same shard configuration and retain separate compiler caches. The canonical guard rejects missing, duplicate, extra, and oversized roots; changed-test selection uses compiler-resolved consumers rather than a hardcoded security assignment.
Existing regression contract: The unchanged inventory regression expands actual compiler configurations and requires exactly-once coverage with a 700-root ceiling. Existing tests also cover cross-project consumers and fallback to full checks. Tests were inspected, not executed during this read-only review.
Findings None None.
Security None None.

How this fits together

OpenClaw divides test files among bounded TypeScript projects to control compiler resource use. CI validates complete coverage, then compiles the selected projects.

flowchart LR
  A[Test files] --> B[Compiler project assignments]
  B --> C[Coverage and size guard]
  C --> D[Full or changed-test selection]
  D --> E[Bounded compiler processes]
  E --> F[CI typecheck results]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0, Docs 0. Total 0 across 3 files.

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

Review metrics

Metric Value Why it matters
Compiler root headroom plugins-platform: 702 → 651; agents-tools: 331 → 382 The transfer restores both affected projects below the unchanged 700-root inventory ceiling.

Technical review

Best possible solution:

Keep complete test families within the existing bounded compiler projects while preserving identical checking rules and exactly-once root coverage.

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

Yes, source establishes the oversized assignment and the existing 700-root regression that rejects it; the PR reports the before/after execution. This review did not run tests or compilers.

Is this the best way to solve the issue?

Yes, transferring the complete subtree between projects with identical inherited settings follows the existing repair pattern without weakening limits or duplicating checking logic.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded developer-workflow repair to an established compiler inventory limit.
  • 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: The maintainer-authored build-only PR is exempt from external-contributor runtime proof; its body reports actual compilation of both affected projects and the inventory regression before and after repair.

Label justifications:

  • P2: This is a bounded developer-workflow repair to an established compiler inventory limit.
  • 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: The maintainer-authored build-only PR is exempt from external-contributor runtime proof; its body reports actual compilation of both affected projects and the inventory regression before and after repair.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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.

@steipete

Copy link
Copy Markdown
Contributor Author

The inventory failure is already resolved on main by #146538 (d569fcdba8bd04b9ae6787af432a6fef409cade7). Current main covers all 10,137 test roots exactly once across 18 graphs, with plugins-platform at 663 and config-cli at 629. The 700-root inventory ceiling and 720-root hard limit are unchanged.

This PR proposes a different regrouping for the same resolved failure, so it is no longer needed. Closing it as a duplicate; the dependent Swarm PRs are being refreshed onto the landed fix.

@steipete steipete closed this Sep 12, 2026
@RomneyDa
RomneyDa deleted the codex/swarm-typecheck-shards branch October 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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