Repository navigation
fix(update): recognize FreeBSD boot identities in triage leases - #147243
Conversation
Read the kernel boot token as exactly 16 binary bytes and preserve existing platform readers. Add the strict FreeBSD lease shape without a database-version change. Older decoders refuse and retain these rows. Process identity support remains a separate prerequisite for managed FreeBSD handoff.
|
🦞👀 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 13, 2026, 3:04 PM ET / 19:04 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds FreeBSD kernel boot-token reading and lease decoding while preserving the existing Linux, macOS, and Windows readers. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: current main lacks this capability, and the updated evidence addresses both prior review requests. No actionable patch defect was found; the broader FreeBSD support request remains separate. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s update and automatic-triage leases coordinate installation ownership across processes. Boot identity helps distinguish unfinished work from an earlier boot before allowing recovery. flowchart TD
A[Automatic triage] --> B[Lease store]
C[Operating system boot token] --> D[Platform reader]
D --> E[Strict identity validation]
E --> B
B --> F[Current ownership and lifetime checks]
F --> G[Permit recovery or preserve lease]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +37, Tests +126. Total +163 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep boot identity under the existing lease owner, with full FreeBSD process and service support handled separately before promising managed updates. Do we have a high-confidence way to reproduce the issue? Not applicable as an established supported-platform regression: this adds a FreeBSD prerequisite. Current source confirms the previous rejection, and the native proof exercises the new reader. Is this the best way to solve the issue? Yes: the patch extends the existing owner with the kernel’s binary token and preserves existing platform behavior without adding a competing lease mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8132c7cf75b3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* commit 'cf45ff4d6a9c13164463db860285a02c1c4f2e8c': test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270)
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits) improve(gateway): avoid redundant startup preflight work (#147285) test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) ...
…claw#147243) * fix(update): recognize FreeBSD boot identities in triage leases Read the kernel boot token as exactly 16 binary bytes and preserve existing platform readers. Add the strict FreeBSD lease shape without a database-version change. Older decoders refuse and retain these rows. Process identity support remains a separate prerequisite for managed FreeBSD handoff. * refactor(update): isolate managed handoff boot identity reader
Related: #45233
What Problem This Solves
FreeBSD foreground triage cannot obtain the boot identity required by managed handoff leases.
User Impact
FreeBSD can represent its kernel boot token in a foreground triage lease. Managed FreeBSD updates still require the separate process-identity and sealed-native-runtime work; this PR does not enable complete managed handoff.
The published 2026.9.4 reader rejects and preserves these FreeBSD lease rows instead of reclaiming them. No database schema-version change is needed.
Why This Change Was Made
Read exactly 16 binary bytes from
kern.boot_id, which FreeBSD initializes once per boot, and encode them as lowercase hexadecimal. Reject missing, incomplete, failed, or timed-out reads. The extracted reader preserves the existing Linux, macOS, and Windows queries and when they run.The kernel token avoids the mutable wall-clock value exposed by
kern.boottime. See FreeBSD kernel implementation.Evidence
At head
8c0f0df6ec3c0c06d21e603e1163e206b69e765b:e1e864a077e280334f01ea06596dd05242d4e0ed545661a69186b1dc3469520b.unreadableon read andincompatibleon update admission. After each operation, the exact row payload, database bytes, schema version, inode, and mode were unchanged; the candidate could still reread its lease. This Linux fixture proves serialized compatibility and preservation, not a full updater run or native FreeBSD handoff.