Repository navigation
fix: qualify the current installed daemon probe - #199839
Conversation
Refresh the reviewed probe digest after the manifest refactor in #197510. Keep exact source qualification, historical pins, and tamper rejection unchanged. Focused observer checks reproduce the stale digest on the parent and pass under Node and Bun. Production LOC is unchanged.
|
🦞👀 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 Summary: ✅ CompletedThis 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. |
|
Codex review: needs maintainer review before merge. What this changesRefreshes the installed-update observer’s reviewed daemon-probe digest and its existing regression assertion. Example: The observer evaluates the current generated daemon-runtime-probe.mjs.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a verified qualification mismatch still present on main, preserves rejection checks, and has green exact-head CI; no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe update evidence observer consumes native process records and reviewed helper bytes, then produces qualified lifetime and coverage evidence. flowchart LR
A[Runtime manifest] --> B[Generated daemon probe]
B --> C[Native subprocess]
C --> D[Observer records]
D --> E[Digest and lifetime qualification]
E --> F[Update evidence]
Technical reviewBest possible solution: Merge the two-pin refresh while retaining exact-byte admission, historical pins, and existing rejection coverage. Do we have a high-confidence way to reproduce the issue? Independent decoding and hashing establishes the mismatch against main’s explicit expectation; no target tests were run during this read-only review. Is this the best way to solve the issue? Both changed lines are necessary: one repairs the observer’s acceptance boundary and one preserves its independent regression oracle without weakening qualification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3900bb2366e8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0, Other 0. Total 0 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 Reviewed November 15, 2026, 6:16 PM ET / 23:16 UTC. |
|
Merged via squash.
|
Refresh the reviewed probe digest after the manifest refactor in openclaw#197510. Keep exact source qualification, historical pins, and tamper rejection unchanged. Focused observer checks reproduce the stale digest on the parent and pass under Node and Bun. Production LOC is unchanged.
## What Problem This Solves `checks-node-compact-small-22` is red on `main` (scheduled run [44980759580](https://github.com/openclaw/openclaw/actions/runs/44980759580/job/137080868461)). `test/scripts/installed-terminal-observer.test.ts` "qualifies only successful package-owned pre-handoff Node entries (historical=false)" fails its pin on the current daemon runtime probe: expected `ed25993c…`, received `a33dc774…`. ## User Impact No user-visible change. The upgrade-survivor installed terminal observer recognizes the probe that current builds launch again, and the tooling CI shard is green. ## Why This Change Was Made #203177 (`fix: restore macOS setup detection with bundled Bun`) extracted `readPublishedSqliteLibrarySelection()` in `src/infra/bun-sqlite-library.ts`. That module is bundled into `DAEMON_RUNTIME_PROBE_SOURCE`, so the generator regenerated `src/infra/daemon-runtime-probe.generated.mjs` with new bytes. The observer qualifies only reviewed probe bytes (`currentProbeSha256` in `scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs`), and the test pins the same hash; neither was updated. The probe change was deliberate (a behavior-neutral helper extraction regenerated by the owning script; `pnpm runtime:scripts:check` passes), so this follows the established pin-update pattern from #200980, #200530 and #199839: update the reviewed hash in the observer and its test. ## Evidence - Hash of `DAEMON_RUNTIME_PROBE_SOURCE` at `9b0e696264b5^`: `ed25993c…`; at `9b0e696264b5` (#203177) and current `main`: `a33dc774…`. No other commit touched the generated probe since #200980. - Base (`origin/main` 7bf1c3e): `ocx test test/scripts/installed-terminal-observer.test.ts` → `1 failed | 22 passed | 7 skipped`, `Expected: "ed25993c…" Received: "a33dc774…"`. - Head: same command → `23 passed | 7 skipped`. - `pnpm runtime:scripts:check` passes (generated probe matches its generator); `oxfmt --check` clean. Merge danger: two-way door (test/CI pin only); blast radius limited to the upgrade-survivor observer. Co-authored-by: Ayaan Zaidi <[email protected]>
…aw#203415) ## What Problem This Solves `checks-node-compact-small-22` is red on `main` (scheduled run [44980759580](https://github.com/openclaw/openclaw/actions/runs/44980759580/job/137080868461)). `test/scripts/installed-terminal-observer.test.ts` "qualifies only successful package-owned pre-handoff Node entries (historical=false)" fails its pin on the current daemon runtime probe: expected `ed25993c…`, received `a33dc774…`. ## User Impact No user-visible change. The upgrade-survivor installed terminal observer recognizes the probe that current builds launch again, and the tooling CI shard is green. ## Why This Change Was Made openclaw#203177 (`fix: restore macOS setup detection with bundled Bun`) extracted `readPublishedSqliteLibrarySelection()` in `src/infra/bun-sqlite-library.ts`. That module is bundled into `DAEMON_RUNTIME_PROBE_SOURCE`, so the generator regenerated `src/infra/daemon-runtime-probe.generated.mjs` with new bytes. The observer qualifies only reviewed probe bytes (`currentProbeSha256` in `scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs`), and the test pins the same hash; neither was updated. The probe change was deliberate (a behavior-neutral helper extraction regenerated by the owning script; `pnpm runtime:scripts:check` passes), so this follows the established pin-update pattern from openclaw#200980, openclaw#200530 and openclaw#199839: update the reviewed hash in the observer and its test. ## Evidence - Hash of `DAEMON_RUNTIME_PROBE_SOURCE` at `6bde5cc9f716^`: `ed25993c…`; at `6bde5cc9f716` (openclaw#203177) and current `main`: `a33dc774…`. No other commit touched the generated probe since openclaw#200980. - Base (`origin/main` e5aa81b): `ocx test test/scripts/installed-terminal-observer.test.ts` → `1 failed | 22 passed | 7 skipped`, `Expected: "ed25993c…" Received: "a33dc774…"`. - Head: same command → `23 passed | 7 skipped`. - `pnpm runtime:scripts:check` passes (generated probe matches its generator); `oxfmt --check` clean. Merge danger: two-way door (test/CI pin only); blast radius limited to the upgrade-survivor observer. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes installed-update observer qualification failing against the current generated daemon probe after #197510.
User Impact
There is no runtime behavior change. The update evidence harness can again qualify the reviewed package-owned probe while continuing to reject modified probe bytes and invalid handoffs.
Why This Change Was Made
The manifest refactor in 2c4413a regenerated the probe without refreshing its reviewed digest. Inspection of the complete decoded probe confirms that two equivalent file-transfer manifest entries now use the existing helper; the behavior source is unchanged. Update the explicit digest and its independent regression assertion together. Historical pins and tamper rejection remain intact. Production LOC delta: 0; tooling and test each replace one line.
Evidence
The existing qualification regression fails on parent 39b066a under both explicit Node and pinned Bun. With this patch, both selected qualification cases pass under each runtime, including rejection branches.
pnpm check:changed --base 39b066a976970b080df4b107b8ba918e250d4f4e: formatting, lint, typechecks and all other guards pass; unused-export scan fails identically on that exact parent. The inherited state exports were introduced by feat(state): upgrade state by copy and swap at Gateway startup #198389 / ef930eb, and UI exports by feat(openclaw-id): name invited members from their email and ask who they are on first visit #198491 / cec47fd. The UI repair is already merged in fix(ci): keep member welcome internals private #199789; the state repair is being handled separately. These are main regressions, not ignored noise.Source failure: hourly run 43763625500, job 132964130909. Exact-head hosted CI and review will determine landing readiness.