Skip to content

fix(ci): rebalance session storage test type graph - #154497

Merged
steipete merged 1 commit into
mainfrom
codex/tsgo-graph-balance-20260920
Sep 21, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/tsgo-graph-balance-20260920

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The state/logging test type graph reached 701 roots in the CI merge for #154414, exceeding the existing 700-root headroom guard. Its candidate contributed one SQLite-worker test on top of main's newly added transcript FTS tests; the standalone candidate had 699 roots.

User Impact

CI can typecheck new session-storage tests without exceeding the existing graph limit. Test coverage, compiler settings, and graph size limits are preserved.

Why This Change Was Made

Move the complete src/config/sessions/ test subtree into the existing agents-sessions graph, alongside its session runtime consumers. On the current main base, this changes the two graphs from 700/87 roots to 485/302 while preserving all 12,116 canonical test roots exactly once. Every other root keeps its existing owner. Update the CI ownership documentation; graph registration, stripe order, compiler settings, and the 700/720 limits remain unchanged.

Evidence

Validation: reproduced the unchanged inventory guard on the exact failing CI merge a27419e2b4bb7acdce9060fa62eaa49d59cacfa8, then verified it passes with this change. All 24 existing shard tests pass, both affected graph typechecks and the selected check:changed gates (including the full compiler boundary) pass, and independent review found no actionable findings through P2. One initial native-compiler fixture run timed out during dependency-copy I/O; it passed with the original timeout after the task's private dependency install was ready.

@clawsweeper

clawsweeper Bot commented Sep 21, 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 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 06:14
@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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 2:21 AM ET / 06:21 UTC.

ClawSweeper review

What this changes

Moves session-storage tests into the existing agent-session typechecking group and updates CI documentation, restoring capacity without raising limits.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains a useful, focused CI repair absent from the inspected main revision. No actionable correctness or security findings were identified.

Priority: P2
Reviewed head: d0863f056cd58be6b0646fee411ced602dbd450d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused redistribution with matching documentation, preserved safeguards, and relevant reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a maintainer-authored CI change, so external-contributor runtime proof is not required; reported validation exercises the affected inventory guard and compiler groups.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a maintainer-authored CI change, so external-contributor runtime proof is not required; reported validation exercises the affected inventory guard and compiler groups.
Evidence reviewed 8 items Introduced change: The pinned introduction delta transfers the identical session-storage include patterns between existing configurations and updates their documented ownership; compiler settings, registration, and limits are unchanged.
Independent source inventory: Read-only filesystem enumeration of the two configurations found 302 agent-session roots, 485 state/logging roots, zero overlap, and 215 session-storage test files. This corroborates the reported redistribution but is not a compiler execution.
Coverage and selection safeguards: The existing inventory test enforces exactly-once canonical ownership with a 700-root budget. The boundary owner retains its 720-root hard limit, distinct build-info ownership, and dependency inspection; changed-test selection includes every consuming graph.
Findings None None.
Security None None.

How this fits together

OpenClaw divides test files into bounded compiler groups for CI typechecking. An inventory guard checks complete, single ownership before those groups run through the existing CI stripes.

flowchart LR
 A[Test source files] --> B[Compiler group configuration]
 B --> C[Complete ownership and size guard]
 C --> D[Existing CI stripes]
 D --> E[Typechecking results]
 F[Session-storage tests] --> B
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 4 4 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 5 5 0

Review metrics

Metric Value Why it matters
Compiler-group headroom 215 roots transferred; state/logging 700→485; agents/sessions 87→302 Both groups regain substantial room below the unchanged 700-root inventory guard without adding compiler groups.

Technical review

Best possible solution:

Keep session runtime and storage tests together in the existing bounded graph while preserving complete coverage and current compiler limits.

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

Yes, from source: the existing inventory test rejects a 701-root graph, matching the reported failing CI merge. This review independently checked file counts but did not execute tests or reproduce a failure on current main.

Is this the best way to solve the issue?

Yes. Transferring the complete subtree between existing identically configured graphs is a narrow repair that preserves the ownership guard, compiler settings, and size limits.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded repair to test-typechecking capacity, with no product-runtime change or urgent user-facing regression.
  • 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 supplied repository state identifies a maintainer-authored CI change, so external-contributor runtime proof is not required; reported validation exercises the affected inventory guard and compiler groups.

Label justifications:

  • P2: This is a bounded repair to test-typechecking capacity, with no product-runtime change or urgent user-facing regression.
  • 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 supplied repository state identifies a maintainer-authored CI change, so external-contributor runtime proof is not required; reported validation exercises the affected inventory guard and compiler groups.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 7627a33 adds test/tsconfig/tsconfig.core.test.agents-sessions.json:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7627a337b5ca; files: test/tsconfig/tsconfig.core.test.agents-sessions.json)

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
steipete merged commit f6f5949 into main Sep 21, 2026
188 checks passed
@steipete
steipete deleted the codex/tsgo-graph-balance-20260920 branch September 21, 2026 07:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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