Skip to content

ci: repair sidebar fixtures and rebalance agent type roots - #146875

Closed
steipete wants to merge 1 commit into
mainfrom
codex/fix-swarm-ci-prerequisites
Closed

steipete wants to merge 1 commit into
mainfrom
codex/fix-swarm-ci-prerequisites

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #130741

What Problem This Solves

Fixes two main-branch failures that block otherwise unrelated PRs: four sidebar tests still import a removed deferred-promise helper, and the agent test-type inventory exceeds its 700-root headroom guard.

Why This Change Was Made

Complete the existing sidebar migration to the shared promise helper. Move the complete session-tool and worktree test cohorts from agents-other to the existing agents-tools compiler graph, where the other tool and sandbox tests already live.

User Impact

The sidebar regressions run again, and the existing type graphs regain headroom. Production behavior, test assertions, root limits, workflow jobs, stripe assignments and compiler concurrency remain unchanged.

Evidence

All four sidebar cases reproduced the missing-helper failure on main and passed after the import correction. The unchanged inventory guard reproduced 702 roots in agents-other; after rebalancing, that graph has 652 and agents-tools has 436. All canonical test roots remain assigned exactly once.

The 24 shard-owner tests and both affected compiler graphs pass. Both component patches received isolated P1 review with no actionable findings. The graph compiler closures do not include the sidebar files; the five-file composition retains the reviewed component bytes.

The sidebar component passed its full canonical changed checks. The combined source passed the real inventory guard; other local component checks are reused for unchanged inputs. Full checks will run against the published PR head before landing.

@clawsweeper

clawsweeper Bot commented Sep 13, 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 app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 08:22
@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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:29 AM ET / 08:29 UTC.

ClawSweeper review

What this changes

Repairs sidebar tests’ shared promise imports and moves session-tool and worktree tests between existing compiler graphs to restore CI headroom.

Merge readiness

✅ Ready for maintainer review

The graph rebalance remains useful on current main, and no actionable patch defect was found. The sidebar correction already landed separately. This maintainer-protected PR should remain open for normal landing.

Priority: P2
Reviewed head: e3afe7bcbf66313077583637aecea1fb0c410e4c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with preserved coverage, matching inventory evidence, and no actionable correctness or security findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies maintainer-authored CI/test maintenance, so external-contributor runtime proof is not required; the recorded inventory and compiler results address the changed validation surface.
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 maintainer-authored CI/test maintenance, so external-contributor runtime proof is not required; the recorded inventory and compiler results address the changed validation surface.
Evidence reviewed 8 items Introduced change and merge result: The pinned merge-base-to-head diff changes only graph configuration, its documentation, and sidebar test imports. The verified test merge retains only the graph and documentation changes against its main parent because the sidebar corrections are already present there.
Balanced ownership preserves coverage: Read-only filesystem glob expansion using the before/after graph configurations matched the reported 702→652 and 386→436 counts. Exactly 50 roots moved; the two graphs’ combined root set was unchanged and their intersection remained empty. This was an inventory inspection, not compiler execution.
Existing guard and selector remain intact: The inventory test requires exact single ownership and a maximum of 700 roots. The graph owner retains its 720-root hard cap and selects every consuming graph for changed tests; this PR changes neither those safeguards nor stripe selection.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI partitions test files into compiler graphs to bound typechecking workloads. Sidebar regression tests separately use shared promise fixtures to control delayed responses and verify session selection.

flowchart TD
  A[Agent test files] --> B[Compiler graph ownership]
  B --> C[Other agent tests]
  B --> D[Tool and worktree tests]
  C --> E[Root inventory and type checks]
  D --> E
  F[Shared promise fixture] --> G[Sidebar scope regressions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4, Docs 0. Total +4 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 12 8 +4
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 13 9 +4

Review metrics

Metric Value Why it matters
Compiler graph headroom agents-other: 702→652; agents-tools: 386→436 The cohort move restores room below the unchanged 700-root inventory guard without dropping roots.

Technical review

Best possible solution:

Retain the existing graph owners and root limits while restoring headroom through complete cohort moves and using the canonical promise helper.

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

Yes, from source: the unchanged inventory guard rejects more than 700 roots, and read-only enumeration matches the reported 702-root pre-rebalance partition. Compiler and test execution were not performed during this review.

Is this the best way to solve the issue?

Yes. Moving complete cohorts between existing graphs preserves coverage and limits, and the sidebar imports reuse the established shared helper without restoring a retired alias.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded repair to shared CI validation with no production 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: The supplied repository state identifies maintainer-authored CI/test maintenance, so external-contributor runtime proof is not required; the recorded inventory and compiler results address the changed validation surface.

Label justifications:

  • P2: This is a bounded repair to shared CI validation with no production 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: The supplied repository state identifies maintainer-authored CI/test maintenance, so external-contributor runtime proof is not required; the recorded inventory and compiler results address the changed validation surface.

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

Superseded on main: #146803 (2e0bfa16dbb, 08:34Z) moved the managed-worktree test roots from agents-other into agents-tools, and fresh main measures agents-other at 672 roots and agents-tools at 416 — every tsgo core test graph is at least five roots below the 700 headroom guard, with the 24 owner tests passing. The sidebar deferred imports were fixed separately by #146862 (2acbeee4614). Nothing from this branch is still needed, so closing.

@steipete steipete closed this Sep 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Both reported failures are fixed on main: #146862 completed the sidebar helper migration, and #146803 moved the managed-worktree tests into the existing tool graph.

Verified main 912685f442286233fbbd40762482d98598299497 contains both fixes and passes the unchanged inventory guard: all 10,212 test roots have exactly one owner, with the affected graphs at 672 and 416 roots, below the 700-root threshold. The extra session-tool move in this PR is no longer needed.

Closing as superseded. The Swarm repair and remaining component PRs continue in #130741.

@RomneyDa
RomneyDa deleted the codex/fix-swarm-ci-prerequisites branch October 22, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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