Skip to content

fix: qualify the current installed daemon probe - #199839

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-installed-observer-digest-20261115
Nov 15, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-installed-observer-digest-20261115

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

Source failure: hourly run 43763625500, job 132964130909. Exact-head hosted CI and review will determine landing readiness.

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.
@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 15, 2026
@steipete
steipete marked this pull request as ready for review November 15, 2026 22:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T23:01:26.435982Z 95fef03 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Refreshes 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.

  • Before: The expected digest begins cf758f11, while the actual digest begins d20c4ee8, so qualification fails.
  • After: The reviewed probe matches d20c4ee8; modified source and invalid handoffs remain rejected.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, source-verified repair supported by existing native-subprocess regression coverage and green exact-head CI.
Proof confidence 🦐 gold shrimp (3/6) This tooling-only repair changes no shipped user behavior; the PR reports red/green Node and pinned-Bun qualification runs, supported by green exact-head CI and independent byte verification.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot qualify the current package-owned daemon probe in installed-update evidence.
Reason: The repair restores the existing tooling contract with two value replacements and no new machinery or product choice.

Regression provenance

Possible 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
Reviewed head: 95fef03aca3e189048f85e32bae5aed4b44e2ae9

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Exact generated-probe qualification keeps the original intent (4b9984d: Qualify deliberately uninstrumented installed helpers through exact source, launch, and native-lifetime evidence.)
  • Paired reviewed digest values keeps the original intent (9f1f765: Refresh both explicit reviewed-byte digests after verified generated manifest changes while preserving historical and behavioral checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 4b9984d adds scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs:1713 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4b9984db75f3; files: scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs)

PR surface

Tests 0, Other 0. Total 0 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 2 2 2 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A deterministic mismatch breaks update-evidence qualification on main, with no product runtime behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A deterministic mismatch breaks update-evidence qualification on main, with no product runtime behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 15, 2026, 6:16 PM ET / 23:16 UTC.

@steipete
steipete merged commit 589c964 into main Nov 15, 2026
176 of 177 checks passed
@steipete
steipete deleted the steipete/fix-installed-observer-digest-20261115 branch November 15, 2026 23:22
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
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.
obviyus added a commit that referenced this pull request Nov 22, 2026
## 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 23, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS 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.

1 participant