Repository navigation
improve(test): speed channel artifact parity suites - #123480
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:13 AM ET / 05:13 UTC. ClawSweeper reviewWhat this changesThe PR moves bundled-channel artifact parity checks into the plugin-shape contract suite and routes relevant channel wiring changes to that suite. Merge readinessKeep open. The author is a repository member and the PR has the protected Priority: P3 Review scores
Verification
How this fits togetherLightweight channel artifacts let core use selected channel capabilities before full plugin loading. Contract suites check artifact inventories and their correspondence with loaded channel plugins, while changed-test routing selects relevant checks in CI. flowchart LR
A[Channel plugin source] --> B[Lightweight artifacts]
A --> C[Loaded plugin]
B --> D[Artifact contract shards]
C --> E[Plugin-shape parity suite]
A --> F[Changed-test routing]
F --> E
D --> G[CI feedback]
E --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +81, Other +28. Total +109 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the complete branch in a functioning checkout, confirming that every removed artifact-to-plugin parity assertion is preserved in the plugin-shape suite and that changed-test routing covers each affected artifact owner. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an internal contract-test performance change, not a reported runtime failure; its submitted validation could not be independently inspected. Is this the best way to solve the issue? Unclear: consolidating parity into the existing loaded-plugin suite is plausible, but the inaccessible checkout prevents confirming full assertion preservation and routing coverage. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 2b61dc542905. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for exact head
|
|
Merged via squash.
|
What Problem This Solves
Four lightweight channel artifact contract shards repeatedly loaded the full bundled plugin set for eight parity assertions, making contract feedback unnecessarily slow and memory-heavy.
Why This Change Was Made
This moves loaded-plugin parity into the existing plugin-shape registry suite, which already materializes every bundled plugin. The lightweight shards retain artifact inventory, export, and invocation contracts, while precise supplemental changed-test routing keeps every artifact export and loaded-plugin wiring path covered.
User Impact
There is no runtime behavior change. Maintainers and CI get faster, lower-memory contract feedback while preserving parity coverage and all tests.
Evidence
contracts-channel-surfacecontracts-channel-configcontracts-channel-registrycontracts-channel-sessiontbx_01kzz6s7m09h5w0r5qb7hek719, run 31768452382. The longer full-suite SSH session ended with exit 255 after 36m54s, but only after all four relevant configs above had completed successfully.tbx_01kzz9ep4hkm4kex8fas8xn6kv, run 31770880739. All 50 files and 475 tests passed.node scripts/run-vitest.mjs test/scripts/test-projects.test.ts src/channels/plugins/contracts/gateway-auth-artifact.contract.test.ts src/channels/plugins/contracts/message-tool-artifact.contract.test.ts src/channels/plugins/contracts/plugin-shape.contract.test.ts src/channels/plugins/contracts/session-key-artifact.contract.test.ts src/channels/plugins/contracts/thread-binding-artifact.contract.test.ts --reporter=dotpassed 264 routing tests and 152 contract tests (416 total).tbx_01kzz9p9tg9k624t5zjn7w6tqw, run 31771092545,check:changedexit 0 across types, lint, guards, cycles, and boundaries.AI-assisted. I understand the change and verified the affected routing and contract behavior. Agent transcripts are intentionally omitted.