Repository navigation
fix: keep standalone build identities reproducible - #183179
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ef081d9c79
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. What this changesThis PR derives standalone build identities from prepared inputs, removes temporary paths from WASM imports, and excludes volatile local freshness stamps. Example: Two builds use identical prepared inputs but freshness stamps contain builtAt values 1000 and 1001.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current build-identity defect, resolves the previous freshness-stamp finding, and introduces no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe standalone builder turns a prepared OpenClaw runtime and Bun compiler into an executable, resource sidecar, manifest, and optional matched JIT companion. flowchart TD
A[Prepared runtime] --> B[Module bundling]
A --> C[Resource planner]
B --> D[Deterministic identity]
C --> D
D --> E[Bun compilation]
E --> F[Executable and companion]
C --> G[Sidecar and manifest]
Technical reviewBest possible solution: Keep deterministic identity generation in the existing compilation owner and freshness-stamp exclusion in the existing resource planner. Do we have a high-confidence way to reproduce the issue? Current-main source establishes random build identities and temporary absolute WASM imports; the maintainer additionally reports unequal baseline native outputs and a regression failing before the freshness-stamp repair. Is this the best way to solve the issue? The change addresses the nondeterministic inputs through existing owners, preserves matched-companion provenance, and captures the executing image identity without adding a competing state owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bfcaa1b2cd1c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +161, Docs +8, Other +34. Total +203 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 25, 2026, 12:04 AM ET / 04:04 UTC (Revision 2). |
|
@clawsweeper re-review Fixed the local freshness-stamp finding in Inspectable native reduction results: the qualified compiler's SHA256 is Fresh exact-head CI is https://github.com/openclaw/openclaw/actions/runs/40159985885; it is still in progress at this update. Full latest-main application comparison remains a separate qualification step pending the producer lane. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix: keep standalone build identities reproducible * test: satisfy standalone regression type and lint checks * fix: omit local freshness stamps from standalone resources
What Problem This Solves
Repeated standalone builds of the same inputs changed executable bytes because build identities were random, AOT WASM registration imports included temporary absolute paths, and local checkout freshness timestamps entered retained-resource identity.
User Impact
Standalone builds now retain the same identity for identical prepared inputs across output directories, while compiled-code and native-resource changes invalidate it. Matched AOT/JIT support provenance and bundled-plugin change checks remain intact. No default runtime or release publication changes.
Why This Change Was Made
Derive the shared AOT/support identity from the unstamped module graph, retained resource bytes and modes, compiler, target and compilation options. Bundled-plugin fingerprints capture that identity once, preserving immutable-image invalidation. Relative WASM registration imports keep the staging root out of the graph while preserving content-addressed WASM invalidation.
Exclude the two local freshness stamps from the standalone resource plan. Their wall-clock times still serve local build admission, while portable commit provenance remains in
build-info.json. Reproducible preparation sets the sameOPENCLAW_BUILD_TIMESTAMPfor each source build.Evidence
All 57 selected support, sidecar, WASM and snapshot tests pass, as do scoped script/test lint, formatting, and the affected
test-root-scriptsTypeScript graph. Suite wall time was 351 seconds on the loaded host, 97% worker transformation; the extended freshness regression took 562ms. That regression failed on the preceding head with identical module hashes but different build IDs when local freshness timestamps differed; it now verifies equal identity/output bytes and omission of those stamps while retaining build information.A native synthetic JS+WASM compile through the actual compilation owner reproduced unequal baseline executables, then byte-identical outputs after the fix in two independent directories. A 129-entry native control also matched across independent roots and reversed creation order. These are focused proofs; full-application reproducibility remains a separate P7 qualification step. Independent reviews of the implementation and both follow-ups reported no actionable P0–P2 findings.
Release-note context: fix unstable standalone build identities, exclude local freshness stamps, and remove temporary paths from AOT WASM registration.