Skip to content

improve(test): remove obsolete Gateway registry proof - #123643

Merged
steipete merged 1 commit into
mainfrom
steipete/test-suite-performance-pass-3
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/test-suite-performance-pass-3

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

A stale Gateway regression test still started a real loopback server to prove that channel lookups follow a replacement plugin registry. The production registry-pinning mechanism that motivated the test was removed by #117749, and the remaining assertion is already covered more directly by the channel registry owner suite.

The obsolete test added a full Gateway process to the suite despite no longer exercising a distinct Gateway behavior.

Why This Change Was Made

Delete server.minimal-channel-pin.test.ts and remove its now-dead CI shard-name special case. The stronger registry-owner regression remains, and the dedicated minimal-Gateway boot smoke continues to prove real startup and shutdown.

This removes the obsolete path rather than converting it to a cheaper duplicate.

User Impact

No runtime behavior change. Developers and CI stop paying for one redundant Gateway startup, reducing feedback time and memory pressure.

Evidence

Measured on Blacksmith Testbox tbx_01m000a8637h3h0qw1t7jqj7j4 before deletion:

node scripts/run-vitest.mjs \
  src/gateway/server.minimal-channel-pin.test.ts \
  --maxWorkers=1 --reporter=verbose
Removed cost Baseline
File wall time 24.25s
Vitest duration 20.79s
Test-body time 11.43s
Maximum RSS 1,864,844 KiB
CPU user / system 30.62s / 4.90s

The single assertion itself took 8.06s because it paid for a real server lifecycle. Deleting the file removes that entire focused process from the suite.

Coverage retained and verified on the published branch with Blacksmith Testbox tbx_01m0019v8m5r8hfmmpassc2tf8:

  • src/channels/plugins/registry.test.ts: proves replacing the active registry immediately rebuilds channel lookups.
  • src/gateway/server-startup-minimal-boot.test.ts: proves a real minimal Gateway boots and shuts down within budget.
  • test/scripts/ci-node-test-plan.test.ts: proves the deleted file is absent from the complete agentic shard inventory.
  • Full changed gate passed: conflict/ratchet/format guards, test and script typechecks, dead-export checks, core/script lint, Docker E2E boundary checks, and raw HTTP/2 import guard.
  • Fresh mandatory autoreview reported no accepted or actionable findings.

History proof:

Production LOC: -1 stale CI classification branch. Tests: -64 lines / -1 obsolete test. No replacement seam or assertion weakening.

AI-assisted. No transcript attached.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete steipete self-assigned this Aug 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts labels Aug 14, 2026
@steipete
steipete marked this pull request as ready for review August 14, 2026 12:13
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 14, 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 Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 8:20 AM ET / 12:20 UTC.

ClawSweeper review

What this changes

The PR deletes a redundant Gateway registry-swap test and removes its now-unused CI shard-routing rule.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for human merge handling: the cleanup remains absent from current main, while current main retains stronger owner-boundary and Gateway boot coverage. No blocking correctness or security finding was identified; the maintainer label and MEMBER authorship prevent automated closure or merge.

Priority: P3
Reviewed head: 7316f6f8e4e65065a4c9ae4c5077375aa340b053
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported cleanup with retained independent coverage and no actionable patch defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal test cleanup is outside the external-contributor real-behavior-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal test cleanup is outside the external-contributor real-behavior-proof gate.
Evidence reviewed 5 items Registry owner coverage: Current main rebuilds its channel lookup view from the active registry snapshot, and the owner test swaps registries then proves the old channel disappears while the replacement resolves.
Gateway lifecycle coverage: The retained minimal-boot smoke calls the public Gateway start entry point, asserts a server is returned, and closes it within its startup budget.
CI inventory guard: The CI-plan test derives expected Gateway server files from the Vitest configuration and asserts every file is routed exactly once, so deleting the test removes it from the plan rather than leaving an unowned path.
Findings None None.
Security None None.

How this fits together

The plugin runtime publishes an active registry that channel lookup reads through a versioned snapshot for Gateway and outbound operations. CI assigns Gateway server tests to shards, so its plan must track the actual test inventory.

flowchart LR
A[Active plugin registry] --> B[Versioned registry snapshot]
B --> C[Channel plugin lookup]
C --> D[Gateway channel operations]
E[Registry owner test] --> C
F[Gateway boot smoke] --> D
G[CI test plan] --> H[Gateway test shards]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned cleanup merge once exact-head CI is green, retaining the current registry-owner and Gateway boot-smoke tests? Merge after exact-head CI: Land the cleanup once the current merge result is green, relying on the retained owner-boundary and lifecycle tests.

Why: The protected maintainer label and MEMBER authorship require an explicit human merge decision even though the patch has no identified correctness blocker.

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -64, Other -1. Total -65 across 2 files.

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

Review metrics

Metric Value Why it matters
Production versus test delta production 0; test support −1; tests −64 The patch removes redundant test infrastructure without changing user runtime behavior.

Root-cause cluster

Relationship: partial_overlap
Canonical: #117749
Summary: The merged registry refactor removed the pinning mechanism; this PR is the narrow follow-up that removes residual test and CI-routing scaffolding.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Merge the two deletions only with the current registry-owner test and real Gateway boot smoke retained as the canonical independent coverage.

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

Not applicable: this PR removes internal test and CI-planning code rather than addressing a user-reported runtime failure.

Is this the best way to solve the issue?

Yes. The registry owner test covers replacement lookup behavior directly, while the retained Gateway smoke covers real startup and shutdown, so the deleted server lifecycle adds duplicate coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a low-risk test-suite and CI-planning cleanup with no intended runtime 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: This maintainer-authored internal test cleanup is outside the external-contributor real-behavior-proof gate.

Label justifications:

  • P3: This is a low-risk test-suite and CI-planning cleanup with no intended runtime 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: This maintainer-authored internal test cleanup is outside the external-contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: Current main attributes the retained owner test and Gateway boot smoke to this contributor, who also carried the registry-scaffolding removal. (role: recent registry and test-suite contributor; confidence: high; commits: ccee629359e8, 73e2489a5ecb; files: src/plugins/runtime-channel-state.ts, src/channels/plugins/registry.test.ts, src/gateway/server-startup-minimal-boot.test.ts)
  • affsantos: The related historical Gateway pinning PR is attributed to this contributor and supplied the test behavior now being retired. (role: originated the historical Gateway pinning work; confidence: medium; commits: 2aaea9f99e9f; files: src/gateway/server.minimal-channel-pin.test.ts)

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 d8db21e into main Aug 14, 2026
232 checks passed
@steipete
steipete deleted the steipete/test-suite-performance-pass-3 branch August 14, 2026 12:23
@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

gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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