Repository navigation
test(channels): verify built sanitizer semantics - #119151
Conversation
|
Land-ready proof for exact head
Observed proof gap: the external Testbox portal sync warning is a coordinator-auth warning after successful commands; it did not affect the lease, build, or test result. |
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 4:09 AM ET / 08:09 UTC. ClawSweeper reviewWhat this changesThe PR replaces a mock-based bundled-channel sanitizer assertion with an assertion that source and built public artifacts produce the canonical visible-text result. Regression provenancePossible regression — probable (reproduction; failure trace). No predecessor PR is attributed. Merge readinessKeep this focused PR open: it repairs a current-main contract test that falsely depends on source-module mock identity after built artifacts load a separate module graph. No blocking patch defect was found. Likely related people: Peter Steinberger for the original contract surface and Vincent Koc for the current mock and sanitizer regression coverage. Priority: P3 Review scores
Verification
How this fits togetherBundled channel plugins sanitize internal tool scaffolding before sending an agent reply. The contract loader imports each channel’s public artifact and the test verifies its outbound hook preserves the shared visible-text behavior. flowchart LR
A[Agent reply text] --> B[Canonical visible-text sanitizer]
B --> C[Channel outbound hook]
C --> D[Source or built public artifact]
D --> E[Channel delivery]
D --> F[Contract test]
F --> G[Shared visible reply result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the semantic visible-text assertion and merge it once exact-head checks and any current ClawSweeper Rank-up moves are clear. Do we have a high-confidence way to reproduce the issue? Yes. The linked report gives a concrete private-QA build plus contract-test path, and source shows why built artifacts bypass the source-module mock; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Comparing canonical visible-text output is the best fix because source and built artifacts need not share Vitest’s mocked module instance, while delivery behavior must remain identical. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b1f2aae3034f. 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
|
|
ClawSweeper
No move is being skipped. |
|
Merged via squash.
|
…checkpoint * origin/main: (46 commits) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) fix(scripts): prevent gateway benchmarks from stalling on probes (#119063) test(channels): verify built sanitizer semantics (#119151) fix: prevent live updater from leaving Gateway offline indefinitely (#119116) test(qa): restore memory tools primary ownership (#119142) fix(agents): settle yielded fanout at harness boundary (#118703) fix(codex): cap compaction override warning cache via createDedupeCache (#101745) fix(daemon): skip unlabeled launchd plists (#119091) test(qa): repair QA catalog integrity (#119140) ...
Summary
distpublic artifactsFixes #119145.
Root cause
The contract mocked the source
openclaw/plugin-sdk/text-chunkingmodule. AfterOPENCLAW_BUILD_PRIVATE_QA=1 pnpm build, five channel public surfaces loaded compileddist/plugin-sdk/text-chunking.jsinstead, so the mock could not intercept them. The test therefore failed according to artifact resolution rather than shipped sanitizer behavior.Proof
node scripts/run-vitest.mjs src/channels/plugins/contracts/plugin-shape.contract.test.ts— 144/144 passedpnpm check:changedon Testbox — passed (typecheck, lint, import-cycle and guard lanes)origin/main— clean, no accepted/actionable findingsRisk is low and test-only. No changelog entry is needed.