Repository navigation
fix(release): require exact per-manager version identity in Docker package acceptance - #138085
fuller-stack-dev merged 13 commits into
Conversation
…ckage acceptance Replaces substring CLI checks with parsed exact semver equality and reads each manager's own installed manifest (including Bun via the smoke proof JSON) instead of copying npm's version. Adds a focused predicate regression test. Closes openclaw#127415
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 20, 2026, 9:31 PM ET / September 21, 2026, 01:31 UTC (Revision 13). ClawSweeper reviewWhat this changesThe PR verifies each npm, pnpm, and Bun installation against the candidate package’s exact version, preserves manager-specific evidence, and supplies native build tools for the Alpine acceptance image. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, source-backed repair: current main and the latest release retain the reported identity weakness. No blocking correctness or security finding remains. Priority: P2 Review scores
Verification
How this fits togetherDocker package acceptance installs a candidate tarball through several package managers and records evidence for release validation. Its identity checks determine whether the installed manifests and CLI versions match the artifact being tested. flowchart TD
A[Candidate tarball] --> B[Expected package version]
A --> C[npm pnpm and Bun installs]
C --> D[Installed manifests and CLI output]
B --> E{Exact identity match}
D --> E
E -->|Yes| F[Manager-specific acceptance report]
E -->|No| G[Reject package acceptance]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +243, Other +80. Total +323 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep candidate-derived exact identity checks in the existing acceptance lane, with truthful manager-specific reports and native verification preserved. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that current main accepts CLI version 11.2.30 when the expected substring is 1.2.3 and does not independently record Bun's manifest identity. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes, reusing the shared version parser and existing report writer repairs the acceptance owner without adding a competing validation system or changing persisted user data. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 42bc1afdcf6a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
|
Exact head Rank-up moves addressed:
The PR body contains the redacted proof and limitation. The unmodified full lane is independently blocked before identity reporting by pnpm/ Recorded run: https://crabbox.openclaw.ai/portal/runs/run_9ca96fcbed53 @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please review exact head The prior request was tied to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Data-model compatibility proof for exact head
The automated data-model compatibility item is therefore not applicable; no migration or upgrade compatibility proof exists or is required for this surface. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* origin/main: (46 commits) fix(gateway): keep chat metadata responsive across auth refresh (openclaw#139192) fix(doctor): keep Workshop relocation lint read-only (openclaw#139193) perf(ui): retain unchanged forwarded avatar publications (openclaw#139181) fix(config): guide exec policy migration repairs (openclaw#139143) test(i18n): refresh representative Watch key (openclaw#139197) fix(agents): preserve recovered scheduled-run outcomes (openclaw#139037) refactor(acp): simplify pending operation accounting (openclaw#139189) fix(plugin-sdk): harden account scope for pairing requests and challenges (openclaw#139142) perf(gateway): avoid redundant PR landing ancestry checks (openclaw#139186) perf(ui): release captured audio cache leases directly (openclaw#139174) fix(skills): validate names in library forms (openclaw#139184) fix(sessions): reduce cold catalog listing delays (openclaw#139146) perf(cron): scan preserved action output once (openclaw#139163) fix(agents): keep fresh tool results readable under context pressure (openclaw#139165) fix(compaction): heartbeat sessions ignore the active transcript byte cap (openclaw#136533) perf(agents): reuse snapshotted web search result rows (openclaw#139162) fix(onboarding): keep Tauri setup recoverable and verify model results (openclaw#139140) fix(memory): rank indexed sessions by source activity (openclaw#139112) perf(terminal): avoid rebuilding sanitized link fallbacks (openclaw#139159) perf(agents): bound retained tool result projection data (openclaw#139157) ...
* commit '3e4becea5e2ce38ede69e8ecf5302805ecbfc09c': refactor: simplify outbound message execution context (openclaw#139107) fix(models): keep ordinary chat selections session-scoped (openclaw#139232) docs: slim root agent instructions and clarify testing scope (openclaw#139236) test(agents): give the sibling-drain completion wait a tolerance on slow runners (openclaw#139176) refactor(workboard): use canonical queries for card-tree writes (openclaw#139106) fix(canvas): recognize versioned macOS nodes (openclaw#138958) fix: load GitHub connections without a default agent (openclaw#139222) fix(memory): explain unsafe legacy host-event path recovery (openclaw#139195) refactor(talk): centralize typed voice session queries (openclaw#139103) fix(cli): preserve command dispatch and structured errors (openclaw#139067) refactor(agents): consolidate reply failure summaries (openclaw#139175) fix(auth): keep an unset default model unchanged during login (openclaw#139218) perf(media): reuse validated attachment read handles (openclaw#139168) refactor(channels): simplify account configuration updates (openclaw#139096) refactor(android): remove unused updater export root (openclaw#139198) fix(gateway): stop admitting post-ready producers during close (openclaw#139092) fix(gateway): expose agent hook completion outcomes (openclaw#139155) fix(config): return the saved configuration after plugin install commits (openclaw#139203) fix(android): reduce repeated retries to unreachable gateways (openclaw#138732)
* commit '925fb0c3353ce98f1c8d6d1f2c27bbb8472af095': fix(daemon): unify recovery hints and preserve log paths (openclaw#139227)
…exact-identity # Conflicts: # scripts/e2e/bun-global-install-smoke.sh # scripts/e2e/docker-package-install.sh
|
Merged via squash.
|
…ckage acceptance (openclaw#138085) * fix(release): require exact per-manager version identity in Docker package acceptance Replaces substring CLI checks with parsed exact semver equality and reads each manager's own installed manifest (including Bun via the smoke proof JSON) instead of copying npm's version. Adds a focused predicate regression test. Closes openclaw#127415 * fix(release): bind package identity to artifact * test(release): distinguish pnpm identity fixture * test(release): cover Bun identity rejection * test(docker): provision native build tools for musl package installs --------- Co-authored-by: Aniruddha Adak <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Jason (Json) <[email protected]>
Closes #127415
What Problem This Solves
Docker package acceptance could accept an installed version such as
11.2.30for artifact1.2.3, and Bun evidence reused npm identity. That could make a mismatched package look validated.User Impact
Release-validation tooling now rejects a mismatched manager install instead of accepting misleading version evidence. There is no persisted product/config/schema change.
Why This Change Was Made
Read the expected version from the candidate tarball and require exact manifest and parsed CLI identity for each package manager. Preserve Bun's own installed root and manifest before cleanup, emit the validated report from one executable boundary, and preserve complete hyphenated prerelease versions in the shared installer parser.
Real acceptance also exposed missing musl test-image build prerequisites:
tree-sitter-bashhas glibc-linked Linux prebuilds and must compile on musl. The existing Alpine E2E image now includes Python, Make, and G++. Native verification remains required and unchanged.The contributor's work and authorship remain intact. Current head:
9c051243679db3bb07e48f36be1f0875d595c3d7. Updates used normal commits and fast-forward pushes, without ancestry replacement.Evidence
84cf1b809c4f99120e40de575679de41647e2600.9c051243679db3bb07e48f36be1f0875d595c3d7andOPENCLAW_FS_SAFE_NATIVE_CONTRACT=required. npm, pnpm, and Bun each reported artifact, installed-manifest, and parsed CLI version2026.9.5; npm non-root execution, pnpm source-link behavior, Bun runtime smoke, and musl native verification passed. All four containers and both lane images were removed.ba11d1827c7daa8ce09db41af2f117ef2afb54f463e669520aeca4a99903d864. The only change after its source commit is the unshipped Dockerfile fixture; product/package inputs are unchanged, so that artifact was reused without rebuilding.Scope and prior evidence
This changes ephemeral release-validation identity and its test-image prerequisites, not persisted product/config/schema state. The earlier identity-only overlay was diagnostic evidence, not a full native pass. The historical verifier repair #137893 is merged; the fresh required-native full lane above supersedes the old open-blocker statement.
References OCF-117