Repository navigation
test(channels): align prerelease fallback catalog spec - #120092
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 10:33 PM ET / August 7, 2026, 02:33 UTC. ClawSweeper reviewWhat this changesThe PR updates the WhatsApp fallback catalog contract so prerelease package metadata expects an exact npm package-and-version spec while stable builds retain the bare package name. Merge readiness✅ Ready for maintainer review No blocking findings. Current main still has the stale bare WhatsApp fallback expectation, while the runtime pins prerelease packages; this focused test repair remains necessary. Likely related people: Shakker (recent catalog/test owner) and Vincent Koc (prior official-catalog work). Priority: P2 Review scores
Verification
How this fits togetherOpenClaw generates an official channel catalog from plugin package metadata, then uses it to build fallback install entries. The channel contract test verifies that generated metadata and runtime install-spec normalization agree during release validation. flowchart LR
A[WhatsApp package metadata] --> B[Official channel catalog]
B --> C[Fallback install resolver]
C --> D[Prerelease npm specification]
D --> E[Channel contract test]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +19. Total +19 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the metadata-derived assertion and land it after the normal exact-head merge gate, so prerelease release validation tracks the production fallback resolver without changing runtime behavior. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: release preparation supplies a prerelease catalog version, the runtime pins it, and current main's hard-coded bare expectation then disagrees. Is this the best way to solve the issue? Yes. Deriving only this official-fallback expectation from the same package metadata and prerelease predicate is narrower and more maintainable than hard-coding release versions or changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 21e9634f1084. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
3cb9ba0 to
83d9ef3
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* origin/main: (58 commits) fix(test): restart shared gateway after migration convergence (openclaw#120089) fix(ui): make active-run steering reliable (openclaw#120083) fix(telegram): preserve voice fallback text test(swift): preserve queued websocket frames (openclaw#120106) fix: reject missing oxlint shard selectors (openclaw#120096) test(channels): align prerelease fallback catalog spec (openclaw#120092) fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430) fix(diagnostics): preserve CLI turn usage totals (openclaw#120100) fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110) fix(release): isolate private Telegram QA harness (openclaw#120088) test(agents): exercise execution attribution ingress guard fix(gateway): defer attribution until admission succeeds refactor(agents): centralize exact execution attribution fix(google): accept base64url provider media (openclaw#116204) fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601) fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961) fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749) fix(heartbeat): explain target-none skips (openclaw#119689) fix(security): stop recommending retired install-policy bypasses (openclaw#120011) fix(plugins): preserve startup release during repair (openclaw#120085) ... # Conflicts: # CHANGELOG.md # src/config/sessions/session-accessor.sqlite-transcript-write.ts
What Problem This Solves
Resolves a release-validation failure where the WhatsApp official fallback catalog contract expected a bare npm package name after release preparation correctly pinned the prerelease package version.
The failure was observed in Full Release Validation run https://github.com/openclaw/openclaw/actions/runs/31129806068, job https://github.com/openclaw/openclaw/actions/runs/31129806068/job/92718333675.
Why This Change Was Made
The contract now derives the WhatsApp npm spec from its package metadata and appends the exact version only when that package version is a prerelease. The bundled WhatsApp fixture and Microsoft Teams assertion remain bare because those paths do not carry a prerelease package version.
This keeps production prerelease pinning unchanged and avoids hard-coding a release version in the test.
User Impact
No runtime behavior changes. Beta release validation now accepts the intended exact prerelease install target instead of treating it as catalog drift.
Evidence
node scripts/run-vitest.mjs src/channels/plugins/contracts/channel-catalog.contract.test.ts(12 passed)node scripts/run-vitest.mjs src/channels/plugins/contracts/plugins-core.catalog.entries.contract.test.ts(7 passed)./node_modules/.bin/oxfmt --check --threads=1 src/channels/plugins/contracts/channel-catalog.contract.test.tsgit diff --checknode scripts/check-changed.mjs -- src/channels/plugins/contracts/channel-catalog.contract.test.tspassed formatting, guards, plugin boundaries, dead-code scans, core typecheck, and core-test typecheck. The unrelated extension-test lane remains red on unchangedorigin/mainatextensions/qa-lab/src/live-timeout.test.ts:53; current-main CI run: https://github.com/openclaw/openclaw/actions/runs/31133415715.