Skip to content

test(channels): align prerelease fallback catalog spec - #120092

Merged
vincentkoc merged 1 commit into
mainfrom
fix/channel-catalog-prerelease-contract
Aug 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/channel-catalog-prerelease-contract

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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.ts
  • git diff --check
  • Autoreview: clean, no accepted/actionable findings, confidence 0.99
  • node scripts/check-changed.mjs -- src/channels/plugins/contracts/channel-catalog.contract.test.ts passed formatting, guards, plugin boundaries, dead-code scans, core typecheck, and core-test typecheck. The unrelated extension-test lane remains red on unchanged origin/main at extensions/qa-lab/src/live-timeout.test.ts:53; current-main CI run: https://github.com/openclaw/openclaw/actions/runs/31133415715.

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:35
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 10:33 PM ET / August 7, 2026, 02:33 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 83d9ef39ae43ba95a98ca80f02a97476e1425abd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned test repair with no actionable correctness or security concern found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only correction has focused contract-test and CI evidence; it does not alter a user-visible runtime path.
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 test-only correction has focused contract-test and CI evidence; it does not alter a user-visible runtime path.
Evidence reviewed 6 items Runtime owner behavior: The current catalog resolver appends the exact package version only when an otherwise bare matching npm spec has a prerelease version.
Current main still needs the repair: Current main's WhatsApp official-fallback contract expects a hard-coded bare npm spec, so it disagrees with the resolver during prerelease release preparation.
PR matches the owner contract: The PR head reads WhatsApp's package metadata and applies the same prerelease predicate only to the official fallback assertion, preserving the bundled bare-spec assertion.
Findings None None.
Security None None.

How this fits together

OpenClaw 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +19. Total +19 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 20 1 +19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 20 1 +19

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +20/-1 The change is confined to contract coverage and introduces no runtime behavior or configuration surface.

Stored data model

Persistent data-model change detected: serialized state: src/channels/plugins/contracts/channel-catalog.contract.test.ts, vector/embedding metadata: src/channels/plugins/contracts/channel-catalog.contract.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs release-validation coverage for prerelease channel installation without a user-facing runtime regression.
  • 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 test-only correction has focused contract-test and CI evidence; it does not alter a user-visible runtime path.

Evidence

What I checked:

Likely related people:

  • Shakker: Current resolver and original contract-test lines trace to the recent catalog/test commit. (role: recent catalog and contract-test contributor; confidence: high; commits: e118e607bc68; files: src/channels/plugins/catalog.ts, src/channels/plugins/contracts/channel-catalog.contract.test.ts)
  • Vincent Koc: Earlier merged work established official external channel source pinning, the behavior this test covers. (role: adjacent official-catalog contributor; confidence: medium; commits: c1b9aa7d9630; files: src/channels/plugins/catalog.ts, scripts/write-official-channel-catalog.mjs)

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 (1 earlier review cycle)
  • reviewed 2026-08-07T00:41:14.054Z sha 3cb9ba08a4289a0ed5618d0f5d949609bd9c17a6 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-prerelease-contract branch from 3cb9ba0 to 83d9ef3 Compare August 7, 2026 00:58
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc merged commit 0f92db6 into main Aug 7, 2026
117 checks passed
@vincentkoc
vincentkoc deleted the fix/channel-catalog-prerelease-contract branch August 7, 2026 02:39
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 7, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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