Skip to content

perf(test): consolidate channel registry coverage - #155014

Merged
steipete merged 1 commit into
mainfrom
codex/test-channel-registry-consolidation
Sep 22, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-channel-registry-consolidation

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two channel-registry behavior cases start a separate contract process and load unrelated plugin code even though the existing registry suite exercises the same owner.

User Impact

There is no user-visible behavior change. All eleven cases remain, including configured ordering and same-object registry reactivation, with one test process instead of two.

Why This Change Was Made

Move both meaningful assertions into the existing registry suite and reuse its fixtures. Remove the obsolete contract file and its exact routing entry, and point the hosted transform-cache warmup at the retained loader contract. The production registry and public exports are unchanged.

The refresh onto main 8e185919954ff6ce129ba7450a63c549117e04d1 keeps the exact original four-file patch. The landed base64 memory-accounting fix 0d70f845 and approval readiness/settlement fixes are inherited from main rather than duplicated here. The canonical wrapper inventory repair 3a4bbc68 is also present.

Earlier PR CI at head 95f2f585 failed the Bun shredded-base64 memory guard and approval-polling cases. Their owner repairs now come from main. The natural historical Bun accounting event remains unreproduced; its retained controlled accounting counterfactual is separate evidence.

Evidence

The retained natural ABBA comparison used Blacksmith Testbox run 35604847032, pinned main 5b71ab4fc0d8, and preserved all eleven cases:

Run Command time
Baseline A1 21.926 s
Candidate B1 3.358 s
Candidate B2 2.103 s
Baseline A2 16.155 s

Mean command time fell from 19.041 s to 2.730 s (85.7%); comparison with warm A2 still saves 12.8–14.1 s. Mean peak RSS fell from about 2,680 MiB to 471 MiB. Runner receipts confirm two processes become one. These are historical focused-command measurements, not a fresh timing claim for current main or a whole-suite saving.

The original 62 owner/sibling cases, complete selected checks, and independent P2 review passed. Sorting and same-object-reactivation counterfactuals each failed only their intended assertion; the restored eleven cases passed. An early custom diagnostic reporter mishandled excluded cases, so the final controls used stock JSON reporting. The three consolidation artifacts and six relevant owner/fixture files remain byte-identical to that proof.

The cache-seed repair separately reproduced the missing-file failure and passed with the retained seed. Blacksmith Testbox run 35638349548 passed the 464 then-current planner/runner/cache cases, actual warm collection, selected checks, and P2 review. That historical source had seven groups and twelve seed paths. Current main has seven groups and seventeen paths; this refresh preserves the current inventory and no-build policy.

Current-source validation completed in Blacksmith Testbox run 35781182408:

  • 11 registry cases and 42 plugin sibling cases passed in separate canonical invocations with native JSON reports. The one-worker registry command took 3.226 seconds; plugin siblings took 37.894 seconds. These are absolute current-source validation costs, not a new speedup comparison.
  • 596 current planner, runner, and cache-slot cases passed.
  • The current seven-group/seventeen-path seed contract passed; actual retained-seed collection succeeded with eight intentionally skipped test bodies.
  • All 111 base64 cases passed on the checksum-pinned CI Bun runtime.
  • The complete selected four-file gate passed in 2,329.068 seconds, including all 25 core test type graphs, script types, wrapper/erasability checks, dead-export checks, and core/script lint. One nonfatal max-lines warning in src/cron/service/timer.test.ts is inherited unchanged from the base; no suppression or baseline edit was made.
  • Fresh isolated managed P2 review found no actionable issues in the exact delta and current planner seed context.

The first refresh validation attempt passed eight loader-contract and one registry-contract cases, then the intentional multi-invocation JSON guard rejected the plugin configuration's inline project before any plugin or registry target case ran. The continuation used supported single-configuration invocations and reused those nine successful contract observations without repeating them. Their complete verbose log is retained, but the first attempt's nested native report set was not archived; that evidence limitation remains explicit. Later capture is recursive, and the continuation's native single-invocation reports are complete.

Source and archive checksums were verified, and both leases are stopped. Existing memory-ownership and approval stress proof remains qualified and was not duplicated. Native landing gates remain required.

Published-head CI run 35786711333 passed for e1e9aa3e1222d0012b94baf0b8c3c6d6373743ea: 83 successful jobs and 18 intentional skips, with no failed jobs. The run took 15 minutes 19 seconds from creation to final job completion; its longest job took 829 seconds. These are current CI costs, not an isolated registry-file measurement or a new before/after comparison. The tested merge e8cafb989c1c1031262ff495c663de35e830204f also ran all 11 registry cases in the build-artifacts job: 0.016 seconds summed rounded case durations. That excludes collection and fixture overhead; no isolated file wall was emitted. The standalone 3.226-second measurement above remains the complete file-command cost.

@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 size: S maintainer Maintainer-authored 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 22, 2026, 7:11 PM ET / 23:11 UTC (Revision 5).

ClawSweeper review

What this changes

Consolidates channel-registry tests into the existing suite and updates test routing and cache warming to avoid a separate test process.

Merge readiness

✅ Ready for maintainer review

The consolidation remains useful and is absent from current main. No actionable defects remain; the earlier cache-seed finding is resolved, and the protected maintainer label precludes cleanup closure.

Priority: P3
Reviewed head: e1e9aa3e1222d0012b94baf0b8c3c6d6373743ea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable consolidation with strong scoped performance evidence and no remaining actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): Recorded Testbox runs exercise the changed test-runner and cache-preparation paths, preserve eleven registry cases, and show lower focused-command cost plus successful retained-seed collection. Exact-head CI success was independently confirmed; detailed raw logs were unavailable through the reviewer’s network route. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Recorded Testbox runs exercise the changed test-runner and cache-preparation paths, preserve eleven registry cases, and show lower focused-command cost plus successful retained-seed collection. Exact-head CI success was independently confirmed; detailed raw logs were unavailable through the reviewer’s network route. No stored-data contract changes.
Evidence reviewed 8 items Introduced change preserves both behavior cases: The pinned introduction delta moves configured-order and same-object-reactivation assertions into the existing registry suite. The real activation and listing operations remain exercised; production registry code and public exports are unchanged.
Prior finding resolved: The hosted channel-registry warmup now selects the retained loader contract, which remains included in the matching contract configuration. The existing planner test verifies that all seventeen seed paths exist and require no runtime build. A repository search found no remaining reference to the deleted contract filename.
Actual registry boundary retained: The existing suite mocks bundled fallback loading, not the loaded-registry owner. Registry listing delegates to the real sorted snapshot view, and the suite resets plugin runtime state after each case.
Findings None None.
Security None None.

How this fits together

OpenClaw’s channel registry supplies registered plugins to channel callers. This change affects the test suites and CI cache preparation that validate registry ordering and refresh behavior.

flowchart LR
  A[Plugin fixtures] --> B[Registry activation]
  B --> C[Ordering and cached lookups]
  C --> D[Consolidated registry tests]
  E[Test routing] --> D
  F[CI cache preparation] --> G[Retained loader contract]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -45, Other 0. Total -45 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 48 93 -45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 4 49 94 -45

Review metrics

Metric Value Why it matters
Focused test cost Historical mean: 19.041 s → 2.730 s; current command: 3.226 s The recorded comparison supports the consolidation benefit without claiming a current whole-suite speedup.

Technical review

Best possible solution:

Keep registry behavior coverage in its existing owner suite and use a retained contract test for CI cache preparation.

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

Not applicable to a product bug: this is test consolidation with recorded before/after command measurements. No tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes. Both meaningful assertions remain at the real registry boundary, while the duplicate suite and its routing entry are removed together.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This reduces recurring test overhead while preserving product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Recorded Testbox runs exercise the changed test-runner and cache-preparation paths, preserve eleven registry cases, and show lower focused-command cost plus successful retained-seed collection. Exact-head CI success was independently confirmed; detailed raw logs were unavailable through the reviewer’s network route. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded Testbox runs exercise the changed test-runner and cache-preparation paths, preserve eleven registry cases, and show lower focused-command cost plus successful retained-seed collection. Exact-head CI success was independently confirmed; detailed raw logs were unavailable through the reviewer’s network route. No stored-data contract changes.

Evidence

What I checked:

  • Introduced change preserves both behavior cases: The pinned introduction delta moves configured-order and same-object-reactivation assertions into the existing registry suite. The real activation and listing operations remain exercised; production registry code and public exports are unchanged. (src/channels/plugins/registry.test.ts:39, e1e9aa3e1222)
  • Prior finding resolved: The hosted channel-registry warmup now selects the retained loader contract, which remains included in the matching contract configuration. The existing planner test verifies that all seventeen seed paths exist and require no runtime build. A repository search found no remaining reference to the deleted contract filename. (scripts/lib/ci-node-test-plan.mts:2732, e1e9aa3e1222)
  • Actual registry boundary retained: The existing suite mocks bundled fallback loading, not the loaded-registry owner. Registry listing delegates to the real sorted snapshot view, and the suite resets plugin runtime state after each case. (src/channels/plugins/registry-loaded.ts:54, e1e9aa3e1222)
  • Still absent from main and latest release: Both fetched main and v2026.9.5 retain the original registry contract blob 95d9a90c37d9bc9adb94b562de6b69d95f634901. The current-main comparison also retains the original routing entry and lacks the two consolidated cases. (src/channels/plugins/contracts/plugins-core.registry.contract.test.ts:1, 3cab8df827e4)
  • Pinned test-merge ownership verified: Raw commit inspection confirms the test merge has parent 5807e3b followed by the exact PR head. Its comparison against that main parent contains only the four introduced paths. (e8cafb989c1c)
  • Recorded performance and coverage evidence: The complete captured PR body records an ABBA comparison preserving eleven cases, reducing mean focused-command time from 19.041 to 2.730 seconds, plus a current-source 3.226-second registry run, sibling validation, actual loader-seed collection, and counterfactual assertion failures. Historical speedup and current absolute cost are explicitly distinguished. Source revision: 519bd4fbc32304e67ace51b7b283edcc6a2b46403738108ed2ae3f231f21df59. (e1e9aa3e1222)

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-21T16:53:46.745Z sha 272ff9d :: blocked before merge. :: [P2] Replace the cache seed before deleting its test file
  • reviewed 2026-09-21T19:03:20.662Z sha 95f2f58 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-22T21:33:53.454Z sha e1e9aa3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-22T22:03:43.226Z sha e1e9aa3 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 21, 2026 17:16
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 21, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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
@steipete
steipete force-pushed the codex/test-channel-registry-consolidation branch from 95f2f58 to e1e9aa3 Compare September 22, 2026 21:26
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 22, 2026
@steipete steipete changed the title improve(tests): share the channel registry test process perf(test): consolidate channel registry coverage Sep 22, 2026
@steipete
steipete merged commit 254ff63 into main Sep 22, 2026
184 checks passed
@steipete
steipete deleted the codex/test-channel-registry-consolidation branch September 22, 2026 23:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 22, 2026
* commit '7d7f977ccfc1ac177526232e4f4960febd010015': (91 commits)
  test: avoid unused target setup in package profile fixtures (#155972)
  fix(worktrees): batch snapshot metadata reads
  test(plugin-state): distinguish borrowed and foreign lifecycle owners
  refactor(agents): share external harness session and attempt machinery (#152181)
  chore(i18n): refresh native locales (#156006)
  chore(test): retain Doctor fixture settlement diagnostics (#155944)
  perf(codex): reuse unchanged inference request bytes (#155987)
  perf(test): prepare snapshot ownership subprocess imports (#155973)
  perf(test): consolidate channel registry coverage (#155014)
  fix(runtime): preserve Node worker dependencies and cleanup diagnostics (#155292)
  perf(test): prepare worktree GC child runtime (#155928)
  fix(ui): open browser cards after delayed panel renders (#153253)
  fix(update): retain the running updater by hard link instead of copying the package (#155977)
  feat(decisions): add explicit evaluation and Labs opt-in foundation (#155134)
  fix(state): preserve lifecycle custody across worker dispatch
  improve: reuse shared tooling fixtures and defer legacy updater proof (#155731)
  improve(ui): reduce real-Gateway test preparation (#155979)
  perf(state): move session RPC SQL off the Gateway main thread (#155740)
  docs(freebsd): explain native Codex runtime limits (#155980)
  fix(qa): count Code Mode nested tool activity as transcript tool evidence (#155976)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
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. 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: S 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