Repository navigation
fix(release): accept frozen targets before worker bundles - #136699
Conversation
|
🦞👀 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 5, 2026, 10:16 PM ET / September 6, 2026, 02:16 UTC. ClawSweeper reviewWhat this changesThe PR validates historical release packages against their own declarations, hardens archive and npm inspection, stabilizes UI size comparisons, and combines compatible CI tooling jobs. Merge readiness⛔ Blocked before merge - 2 items remain This remains useful and is protected maintainer-authored work. No actionable defect was found in the new planner repair, and the earlier archive and npm isolation fixes remain intact. The recorded release hold still requires owner clearance. Priority: P2 Review scores
Verification
How this fits togetherRelease validation checks a selected source revision and package archive before publication. The changed tooling determines package acceptance and schedules the tests that validate these checks. flowchart TD
A[Selected release source] --> B[Release checker]
C[Candidate package archive] --> D[Archive safety preflight]
D --> E[Private extracted package]
E --> F[Manifest and npm checks]
F --> B
B --> G[Package acceptance result]
H[CI test planner] --> F
Decision needed
Why: The discussion explicitly reserves hold clearance to the release owner; code review cannot supply that authorization. Before merge
Agent review detailsSecurityNone. PR surfaceTests +799, Other +410. Total +1209 across 23 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep historical qualification governed by target declarations and one archive/npm verifier, with modern rejection checks and CI budgets preserved. Do we have a high-confidence way to reproduce the issue? Yes, source inspection establishes the historical worker/layout mismatch, and the captured maintainer differential identifies the planner's 81-job failure. This review did not execute either path. Is this the best way to solve the issue? Yes. Target-owned declarations remove conflicting historical layout assumptions, while the planner combines only compatible serial groups under unchanged bounds. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aa91024aef60. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (32 earlier review cycles; latest 8 shown)
|
|
Release-owner and ClawSweeper moves:
Testbox evidence:
Per approved scope, I did not weaken SDK inventory or forbidden-content checks and did not broaden into a historical harness compatibility repair. The PR remains draft. |
d0f884e to
9615842
Compare
bbffbfc to
e6cec20
Compare
1e69bbd to
6d4ac9c
Compare
|
@clawsweeper re-review Behavior changed after the previous review: frozen worker requirements now come from parsed target-owned |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head landing remains blocked on one release-owner proof decision. Run https://github.com/openclaw/openclaw/actions/runs/33719058763 only warmed Testbox The exact-head local @steipete, after W1A lands and this PR is mechanically rebased onto the resulting current main, please choose one:
Recommendation: option 1. The cancelled attempt was evidentially null, but the approved program forbids treating that fact as implicit retry authorization. The ClawSweeper stored-data compatibility item is inapplicable: this patch reads frozen package/source metadata into memory and configures release validators; it introduces no persistent state, SQLite/schema change, migration, config, sidecar, or upgrade-data contract. |
6d4ac9c to
b43b754
Compare
|
@clawsweeper re-review Exact-head evidence now records the [email protected] Parser/ReadEntry/Unpack ownership split, the 26-patch and 22-blob continuity proof, and the release-verifier-only data-model disposition for |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* origin/main: (302 commits) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) test(text): consolidate literal sanitizer cases (#139579) test(gateway): observe native drain without a lint exception (#139576) test(memory): consolidate visibility fixtures without policy defaults (#139569) fix(ui): show shimmer skeletons while loading Control UI (#139525) test(qa): make cleanup child logging deterministic (#139566) test(cli): keep Unix socket fixtures within path limits (#139565) fix: avoid slow incognito key checks in large session stores (#139528) feat(macos): open Gateway windows from the Gateways menu (#139522) test(workshop): isolate marker casing fixture identities (#139554) fix(process): require cleanup evidence before releasing owned work (#139517) ... # Conflicts: # scripts/release-check.ts
* origin/main: fix(cli): keep note text with Windows and Unicode line endings (#139512) fix(agents): keep isolated completion context on its admitted generation (#139607) fix: avoid declaration builds during source-server updates (#139392) fix(models): keep discovered models after catalog refresh failures (#139357) fix(gateway): record a transcript notice when a run fails before replying (#139439) refactor(ios): reuse shared integer conversion (#139581) fix(sessions): prevent database lock failures during reclamation (#139469) perf(test): reuse transforms within owned scheduler slots (#139553) test(agents): share sparse transcript input fixtures (#139589) chore(ui): refresh control ui locales (#139481) fix(slack): keep prototype-named emoji shortcodes intact (#136374) fix(gateway): deliver upgrade rejection responses under Bun (#139516) refactor(test): simplify catalog guards and fix native report fixture (#139496) fix(macos): prevent dashboard fixture loopback timeouts (#139556) fix(matrix): preserve selected reply targets inside threads (#139479)
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Related: #136325
What Problem This Solves
Frozen Full Release Validation runs trusted current tooling against a historical target.
Repacking an extracted candidate proves npm exclusion parity, but it cannot detect files
that the target manifest requires and that were already omitted from the candidate.
That gap allowed a repacked candidate to agree with npm while still missing
target-declared package content.
The final exact-head repair also closes two CI-only false failures. npm 10 could
enter package lifecycle behavior while inventory was collected despite
--ignore-scripts, and the Control UI comparator embedded different Git/buildidentity bytes into otherwise identical candidate and base inputs.
Moving package-layout authority into the canonical tarball verifier also had to preserve
checks for root-manifest exclusions, metadata-declared static extension assets,
concrete package export targets, worker artifacts, and private/local build cargo.
The final linked-manifest defect was in archive materialization: system
tarextraction could follow an archived
package/package.jsonsymlink to an externalread-only manifest before the verifier rejected the package. The verifier now uses
the pinned
[email protected]structured API for strict synchronous preflight and extraction.It rejects links, special entries, unsafe paths, duplicate/material conflicts, and
portable case/NFC/Windows-character collisions before extracting anything.
The final npm inventory defect was configuration loading order. Inventory changed its
working directory to the untrusted extracted package before invoking npm, so npm loaded
package/.npmrcbefore the verifier later rejected that file. A reallogs-dirpluslogs-max=0payload deleted an external npm-log-shaped sentinel.Why This Change Was Made
The package contract now has explicit owners:
literal declarations;
release-checkdelegates package acceptance to that verifier instead of maintaininga second matcher.
The npm inventory owner now removes the complete
scriptsfield only around thesynchronous
npm packcall in its unique disposable extracted tree. It retains--ignore-scriptsand restores the exact originalpackage.jsonbytes and permissionmode in
finally, on both success and failure.Both npm invocations now stay in the private sandbox cwd and receive the same trusted
--prefix. Onlynpm packreceives the extracted package root, as its positionalpackage argument immediately after
pack, so package-local.npmrcis never ambientconfiguration.
The Control UI comparator now builds candidate and base with one static canonical
commit, timestamp, branch, build ID, and release identity. Git discovery is disabled
through a nonexistent temporary
GIT_DIR; each source tree still owns its packageversion. The fixed shipped-size cap, growth allowance, and build-variance allowance
are unchanged.
The canonical tarball verifier also:
0700temporary root, preflights itwith bounded streaming, and extracts that same immutable snapshot;
File,OldFile, andContiguousFileentries as regularfiles while rejecting links and special entries;
[email protected]'s private-useencoding for
|<>?:, for collision and ancestor checks;package.json.filesrules;malformed metadata while preserving intentional package-less extension roots;
deploy producer;
through the shared package policy.
The files-only regression covers
dist/Foo.app/Contents/MacOS/Foounder!dist/**/*.app, where the excluded.appdirectory itself is absent from the archivelisting.
Frozen dependency evidence locks and the historical bundled-channel smoke entrypoint
remain separately owned by #136884 and #136919.
User Impact
Frozen release qualification now accepts or rejects the selected target according to
that target's declared package contract. Historical targets are no longer forced to
match current-main layout, while missing declared files, empty declarations, and
undeclared shrinkwrap fail before publication.
Inventory collection no longer executes npm 10 package lifecycle scripts, and
candidate/base Control UI comparisons no longer fail from identity-only compressed
byte drift.
Inventory also no longer loads untrusted package-local npm configuration before
validating the package. This is release-validation tooling only. It does not add a
config, protocol, database, dependency, package-manifest, tag, publish, or workflow
surface.
Evidence
a7be866f49d987cc3635dac08d0eb6a782a280d8.44378c46bb04e1354f42a5826be76e1fd920c760.git range-diffmaps all 26 commits fromd5992278b3b8a8f3e1e37c23749b86efec65215f..e78866bc385e545d3b8cf66638c4af51ce4cb0b8one-for-one (
=) onto the rebased series. The only added commit removes therelease-only
CHANGELOG.mdentry forbidden in normal PRs.[email protected]contract inspection:dist/esm/list.js:48-82,107-112anddist/esm/parse.js:94-120,153-259,343-364,531-548own structured parsing,strict malformed-archive handling, and extended-header sequencing;
dist/esm/read-entry.js:44-99,119-130exposes final type, path, mode, size,and link metadata after extended headers apply. Filesystem materialization
remains owned by
Unpack:dist/esm/unpack.js:92-203,260-355,400-478, 526-539,562-668,690-844owns traversal, Windows winchars encoding,symlink-ancestor protection, and regular-file extraction, with recursive
directory/symlink protection in
dist/esm/mkdir.js:16-23,63-105,121-177.npm inventory and mutated an external
0444manifest before later rejection.e4d142b1b4e3bb3c1c435f6706750e4fd917501e: the Windows raw/private-use collisionwas not detected and
ContiguousFilewas incorrectly rejected.0d9796661f59ddd71385d7681120025324056b95: pack ran from the untrusted package cwd,and real npm 11.19 deleted an external npm-log-shaped sentinel through packaged
logs-dirpluslogs-max=0..npmrcboundaries: 4/4.findings. The final test-only correction review was scoped-clean at 0.99 confidence.
control-ui-performance, UI shard 5/7rerun, and
ci-gate: green.git diff --check: green.changed-path guards, then stopped before branch typechecking because the
repository declaration-boundary checker rejects the required worktree
node_modulessymlink. A local full build reached the same environment-onlydeclaration-boundary refusal. Exact-head hosted CI owns this proof.
canonical measurement is 346197 B.
CHANGELOG.mddelta from the merged current-main parent.44378c46bb04e1354f42a5826be76e1fd920c760, judgedproduction/release tooling is +764/-410 and tests/test support are
+1252/-454. Product runtime remains unchanged.
release:checkremains blocked only by unrelated Control UI catalog fallbackbaseline drift and stale generated native locale artifacts.
false positive: npm-packlist/ignore-walk uses
nocase:true. Local npm 11.19.0reproduced that
files: ["scripts/Required.js"]packs the actualscripts/required.js; archive-vs-npm parity and runtime paths remaincase-sensitive. Disposition delta: zero code and zero tests.
package-manifest, or serialized data shape changes. This is release-verifier
handling of an untrusted archive before materialization; data-model
compatibility is a false positive.
exception.
a7be866f49d987cc3635dac08d0eb6a782a280d8completed with 144/144 checks successful, skipped, or neutral.
PR landing; that authorization does not release, publish, tag, promote, dispatch
Full Release Validation, or mutate registries.
Repair Accounting
detect target-declared files already omitted from the candidate.
--ignore-scriptsalone did not suppress the observedlifecycle path during dry-run inventory. The inventory owner now temporarily removes
manifest scripts and restores exact bytes and mode.
package-local configuration before validation. Inventory now keeps one immutable
sandbox cwd/prefix for version and pack, with the package root passed only as the
pack target. Production delta for this repair is net zero.
symlink before package validation, allowing npm inventory to mutate its external
target. Structured preflight now rejects unsafe archive entries before extraction.
fields, producing compressed-byte drift from identical UI inputs. The comparator now
supplies one canonical identity and disables Git discovery.
presence; the tarball verifier enforces both and rejects undeclared shrinkwrap plus
missing or empty literal declarations; archive materialization is owned by one
structured strict preflight/extraction flow over one private bounded snapshot;
release-checkdelegates. Control UI comparison identity is canonicalized withoutweakening size protection.
scripts/check-openclaw-package-tarball.mts,scripts/lib/npm-pack-inventory.mts,scripts/release-check.ts,scripts/check-control-ui-performance-base.mts, and shared release-package policyhelpers.
the PR history; the signed maintainer merge and follow-up repairs are appended.
ClawSweeper
The prior durable findings and rank-up moves are addressed at the canonical verifier
and package-contract owner boundaries with tarball-level regressions. The latest
durable review found no actionable code defect at
a8a396a1d09d0694cc6ef2b729394e4c17ab57ae. The final head adds the bounded CIplanner repair documented below, so one exact-head re-review is required.
September 6 Exact-Head CI Repair
34004501522/101409234088(checks-node-compact-small-26).test/scripts/ci-node-test-plan.test.tsfailed four assertions because theGitHub pull-request plan produced 81 jobs against the unchanged 80-job cap.
node scripts/run-vitest.mjs --config test/vitest/vitest.tooling.config.ts test/scripts/ci-node-test-plan.test.ts.Base
e10007407d7ce25cf13d816123607993699dc6f3passed 50/50; prior heada8a396a1d09d0694cc6ef2b729394e4c17ab57aefailed 4/50 with the same81 plannederror. This is branch-caused, not infrastructure fallout.leaving a 13-second 8-vCPU tooling tail and a separate 16-second 4-vCPU tooling
tail. Runner-class partitioning forced an otherwise unnecessary 81st job.
55bdfb250b7ad131766b7db9b9e556b66435f511packs only compatible,no-build hosted tooling tails across existing Blacksmith runner classes. Smaller
work is promoted onto the already-required larger runner; the 150-second job cap,
stripe-family isolation, and ten-group bound remain unchanged.
92b2db8b40ac53b9203b27466829cf66373d55b1, signed merge over current-mainparent
82a74b113c4f2f0797e3ca7135c63dd2afe673c0.checks green. Pull-request plans contain 48 Blacksmith, 80 GitHub, and 51 hybrid
jobs. The repaired GitHub tail is one 29-second 8-vCPU job containing both
compatible tooling groups.
1 neutral, zero failed, and zero pending checks. The previously failing
checks-node-compact-small-26passed on job101412712237.