Skip to content

fix(release): qualify npm 11 locks and locale catalog - #163392

Merged
roboclaw-bot merged 2 commits into
release/2026.9.8from
fix/release98-package-qualification
Oct 2, 2026
Merged

roboclaw-bot merged 2 commits into
release/2026.9.8from
fix/release98-package-qualification

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Full Release Validation for 2026.9.8 reproduced two source-owned failures:

  • npm 11.19.0 omitted inBundle from three exact npm 11.20 bundled dependencies, so release-evidence generation tried to apply workspace overrides to bytes owned by npm's authenticated bundle;
  • a detached Telegram transcript mirror could recreate a deleted fixture database during the next pagination case, producing AgentDatabaseRegistryChangedError.

User Impact

No runtime behavior or dependency version changes. This restores deterministic npm lock evidence and makes the release's Telegram validation fixture settle all writes it started.

Solution

  • Accept an omitted bundle marker only for the existing exact npm 11.20 path/version exception, normalize it to inBundle: true, and retain final pnpm-locked npm tarball authentication. Explicit false markers, wrong paths, versions, package names, npm versions, and archive integrity still fail.
  • Backport the merged 16-line fixture fence from b806ea6 so cleanup joins observed transcript mirrors before deleting state.

Evidence

  • node scripts/run-vitest.mjs test/scripts/generate-npm-package-lock.test.ts --maxWorkers=1 — 71/71 pass, 10.11 seconds test wall.
  • pnpm deps:npm-lock:report ... — all 53 published-package mirrors pass; 143 bundled dependencies remain authenticated.
  • node scripts/run-vitest.mjs extensions/telegram/src/bot-message-dispatch.preview.telegram-http.test.ts --maxWorkers=1 — 27/27 pass, 58.51 seconds test wall.
  • node scripts/check-changed.mjs --base 6bebbac77c70bb6a481a02d8da1739beef467c64 --head 86b7496b9ebfd2d2a39e6b2d08c1e9d5daa81c1d --timed — all selected checks passed before the isolated Telegram fixture backport; that backport has its own full upstream changed-check evidence and the focused current-candidate proof above.
  • Fresh Codex autoreview through P1 on the combined source and locale repair: scoped clean. The generated locale artifacts were split to a separate PR after CI enforced their owner boundary; the remaining source diff is a strict subset plus the reviewed Telegram backport.

Full Release Validation parent 36979284285 remains blocked. Landing changes the candidate SHA, so a fresh complete parent is required.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 2, 2026 08:42
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: S labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:05 AM ET / 09:05 UTC (Revision 2).

ClawSweeper review

What this changes

The branch normalizes omitted npm bundle markers in release dependency evidence and waits for Telegram test transcript writes before deleting fixture state.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains a useful repair for the npm 11 release branch. No actionable patch defect was found, and the previous migration concern no longer applies to the reduced diff.

Priority: P2
Reviewed head: e70106edf1559e9072a9555fffe8a7688960b49a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with preserved authentication, useful negative controls, and recorded validation; no blocking defect was found.
Proof confidence 🌊 off-meta tidepool Not applicable: The bot-authored PR is exempt from external-contributor proof requirements. Its captured evidence reports the real npm report entrypoint passing across 53 packages and focused Telegram fixture validation; these runs were not repeated here. No stored application data contract or report schema changes, so the previous migration blocker does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The bot-authored PR is exempt from external-contributor proof requirements. Its captured evidence reports the real npm report entrypoint passing across 53 packages and focused Telegram fixture validation; these runs were not repeated here. No stored application data contract or report schema changes, so the previous migration blocker does not apply.
Evidence reviewed 10 items Pinned change ownership: The introduced merge-base-to-head patch contains only the npm generator, its existing tests, and Telegram fixture cleanup. Locale artifacts are absent from this head.
Archive authentication remains mandatory: Normalization accepts an absent marker only for three exact npm 11.20.0 path/version identities. The production generator then authenticates the downloaded npm archive against both its lock entry and pnpm integrity, and verifies bundled package identities before returning output. Explicit false markers remain outside the exception.
Regression and negative controls: Existing table-driven tests now cover omitted markers for all three approved dependencies, while retaining wrong-version, wrong-path, npm-version, and explicit-unbundled controls. Archive tests separately reject changed bytes, missing integrity, wrong identities, and misplaced entries.
Findings None None.
Security None None.

How this fits together

Release tooling converts pnpm dependency policy into authenticated npm lock evidence for downstream packagers. The Telegram HTTP test fixture exercises message delivery and must finish its transcript writes before cleaning up isolated state.

flowchart TD
  A[pnpm dependency policy] --> B[npm lock generation]
  B --> C[Normalize exact bundle entries]
  C --> D[Authenticate npm archive]
  D --> E[Release dependency evidence]
  F[Telegram HTTP test turns] --> G[Join transcript writes]
  G --> H[Delete fixture state]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +33, Other +7. Total +40 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 36 3 +33
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 9 2 +7
Total 3 45 5 +40

Review metrics

None.

Technical review

Best possible solution:

Retain the narrowly authenticated npm 11 normalization and the upstream fixture cleanup fence on the release branch.

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

Yes, for the release branch: the original predicate rejects an omitted bundle marker, and the upstream fixture record describes a controlled cleanup-race reproduction. This review did not execute either scenario or establish a current-main failure.

Is this the best way to solve the issue?

Yes. The patch extends the existing exact exception while preserving final archive authentication and reuses the upstream fixture repair without changing production delivery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2a8538469f45.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs release dependency evidence and test fixture isolation without changing shipped runtime behavior.
  • 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: The bot-authored PR is exempt from external-contributor proof requirements. Its captured evidence reports the real npm report entrypoint passing across 53 packages and focused Telegram fixture validation; these runs were not repeated here. No stored application data contract or report schema changes, so the previous migration blocker does not apply.

Evidence

What I checked:

  • Pinned change ownership: The introduced merge-base-to-head patch contains only the npm generator, its existing tests, and Telegram fixture cleanup. Locale artifacts are absent from this head. (scripts/generate-npm-package-lock.mts:1175, e70106edf155)
  • Archive authentication remains mandatory: Normalization accepts an absent marker only for three exact npm 11.20.0 path/version identities. The production generator then authenticates the downloaded npm archive against both its lock entry and pnpm integrity, and verifies bundled package identities before returning output. Explicit false markers remain outside the exception. (scripts/generate-npm-package-lock.mts:1709, e70106edf155)
  • Regression and negative controls: Existing table-driven tests now cover omitted markers for all three approved dependencies, while retaining wrong-version, wrong-path, npm-version, and explicit-unbundled controls. Archive tests separately reject changed bytes, missing integrity, wrong identities, and misplaced entries. (test/scripts/generate-npm-package-lock.test.ts:788, e70106edf155)
  • Fixture cleanup preserves real writes: The observer calls the original SDK append operation and records its promise. Cleanup joins dispatches, transport requests, detached deletes, and those append promises before resetting runtime state and deleting the fixture. (extensions/telegram/src/bot-message-dispatch.telegram-http.test-support.ts:310, e70106edf155)
  • Backport provenance and controlled failure evidence: The upstream commit contains the identical fixture patch. Its recorded validation describes an injected cold-restore delay that reproduced database recreation after cleanup, followed by recovery with the promise fence, plus all five fixture consumers passing. These are recorded upstream observations, not executions performed during this review. (extensions/telegram/src/bot-message-dispatch.telegram-http.test-support.ts:234, b806ea60921c)
  • Current main does not replace the release repair: Fetched main already contains the Telegram fixture fence but uses npm 12.1.0 with a different exact bundled-dependency exception. The reviewed PR targets release/2026.9.8, whose npm 11.20.0 generator still needs the omitted-marker repair. (scripts/generate-npm-package-lock.mts:1170, 2a8538469f45)

Likely related people:

  • unknown: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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-10-02T08:49:19.774Z sha 86b7496b9ebfd2d2a39e6b2d08c1e9d5daa81c1d :: blocked before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the channel: telegram Channel integration: telegram label Oct 2, 2026
roboclaw-bot and others added 2 commits October 2, 2026 08:58
Normalize npm 11.19.0 omitted bundle markers only for the exact authenticated npm 11.20 entries.

Co-authored-by: RomneyDa <[email protected]>

Co-authored-by: vincentkoc <[email protected]>
Backport the merged fixture repair after the release validation shard reproduced AgentDatabaseRegistryChangedError in the pagination case.

(cherry picked from commit b806ea6)

Co-authored-by: RomneyDa <[email protected]>

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/release98-package-qualification branch from 0da557a to e70106e Compare October 2, 2026 08:59
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Oct 2, 2026
@roboclaw-bot
roboclaw-bot merged commit de96fbc into release/2026.9.8 Oct 2, 2026
146 of 183 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/release98-package-qualification branch October 2, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram P2 Normal backlog priority with limited blast radius. 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.

2 participants