Skip to content

fix: finish core updates when the Gateway is ready - #206560

Merged
obviyus merged 4 commits into
mainfrom
fix/update-ready-settlement
Nov 27, 2026
Merged

obviyus merged 4 commits into
mainfrom
fix/update-ready-settlement

Conversation

@obviyus

@obviyus obviyus commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A healthy update can remain running while plugin maintenance is pending or aborted. Core readiness should finish the run; plugin downloads and result-notice failures must not hold it open.

User Impact

Core settles at Gateway ready, and the CLI can exit. Plugin maintenance and Doctor inspections continue afterward through the existing watcher. The result notice remains independent.

Why This Change Was Made

  • Record the terminal result directly in settleRunFromTrial, then schedule the existing maintenance job before awaiting notification.
  • Delete the plugin-gated completion closure, its in-progress plugin phase, and unused maintenance return values. No new status, phase, notice, record, flag, timer, retry or boot trigger.
  • Build on already-merged fix: finish release updates after a slow launcher response #206503 (cbdd907387); its readiness/IPC changes are not duplicated.
  • Cut less: package-finalization admission, coherent recovery facts, worker readers, tests and the identity allowance are restored exactly to main 91d491238b17 (fix(update): stop using foreign recovery records as admission #206295). This preserves newer-schema and pending-recovery error causes. There is no admission-reader cut, reporting migration or UI change in the final diff.

Production: net -40 lines; the final production change is confined to src/update/gateway-trial.ts.

Evidence

Linux latest-stable upgrade and restart

Package Acceptance 45982455490 passed, including the existing Linux Docker update-restart-auth survivor lane. Frozen admission and the result manifest bind candidate source 85df275173971255168e1d0aa19401a4ff63e1a9. The log records published baseline [email protected], the npm latest version captured before dispatch, and verifies configuration/state survival into that candidate.

The existing two-stage fixture first exercises the published updater's migration/install path, then forces a real authenticated automatic update using a version-restamped package of the candidate code. Its automatic CLI returned exit 0 with a receipt checked as finished/succeeded, matching the target serving build with coreReady, booted, serviceRunning and versionMatch. It completed in 159 seconds; the harness then waited another 111 seconds for plugin maintenance, proving plugins did not hold the core run/CLI open. The candidate-service preparation probe reached ready in 28 seconds; that is a startup-probe metric, not a claimed restart-downtime measurement. Total survivor lane: 1,125 seconds, no failures/timeouts, cleanup joined. Artifact 15192592241.

The lane's inner sanitized-diagnostics publication reported a warning, so raw inner receipts are not claimed archived; the uploaded lane log and its strict runtime assertions are the evidence above.

Direct modern activation timing

The exact-head CI release-update-survivor cell also passed. It runs plain openclaw update --yes --json and asserts exit 0. Its healthy run db70c195-088b-4591-85cb-c6e9f4a81fd6 is succeeded, with a committed, reported trial, verified serving build and two preserved/migrated seeded rows. Trial start 10:43:55.357Z to readiness commit 10:44:40.015Z is 44.658 seconds; complete update plus verification wall time is 114.250 seconds. This cell uses PR-head-85df merge source 356828d59982 and a disposable successor migration, not a published-stable baseline. Artifact 15190632238.

Both Linux proofs ran before the admission restoration, on 85df. The settlement runtime is byte-identical in the final patch; only the unrelated bridge admission cut is reverted to main. The proofs therefore remain valid for the unchanged settlement change, as explicitly approved by the maintainer. Final-head CI requalifies the retained bridge behavior.

Focused regressions and checks

  • Before production edits, the never-settled abort regression failed on base 91d491238b17: the persisted run remained running/verifying, with no finish timestamp. It passes with ready settlement, including an unchanged finish timestamp after plugin work aborts.
  • The failed-notice regression was red on 8764c0dd8fe7 and green after scheduling maintenance before notice preparation; plugin and Doctor result steps still appear.
  • Targeted types, Oxlint, Oxfmt and runtime builds passed. Local ClawSweeper on 85df27517397 found no remaining code/security findings; the final settlement runtime is unchanged from that review.
  • After restoring admission, update-command-post-update.test.ts:251 passes unchanged; no hash/encoder fix is needed. The original-service.test.ts:664 split-root refusal also passes unchanged. Its schema-newer case hit the existing 120-second host timeout and is not claimed green locally.

Recorded host-test gaps

  • server-startup-legacy-completion.test.ts:67: existing 120-second timeout on unmodified main 05ec9892bab7 and the earlier repair head; the head replay did not reach http.bound/readiness.
  • frozen-contract.test.ts:138: existing 15-second timeout on both repair and unmodified base 91d491238b17 (base observation 15,666 ms).
  • gateway-trial.test.ts:133: import/exit-only smoke hit 15 seconds in the final local replay after passing initially; no main-side classification is claimed.

No timeout, assertion, skip or baseline was weakened. No live Gateway or state was modified, and no release was deployed.

- Record the serving core result and existing notice before background plugin work can delay or abort settlement.
- Reuse the existing readiness owner and remove the redundant all-record recovery-admission reader while retaining physical restore refusals and executor custody.
- Keep reporting unchanged for the separately approved follow-up; update the core-ready contract and regression proof.
@clawsweeper

clawsweeper Bot commented Nov 27, 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 docs Improvements or additions to documentation cli CLI command changes size: M labels Nov 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR finishes core updates at Gateway readiness and removes the remaining all-record recovery-admission reader.

Example: Plugin maintenance is interrupted after the updated Gateway becomes ready.

  • Before: The update record remains running and the CLI continues polling.
  • After: The core update is already succeeded, and stopping plugin work preserves its completion timestamp.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The production repair is focused, but required installed-behavior proof is absent and the admission cutover leaves concrete CI failures; persisted schemas, keys, and serialized formats remain unchanged.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A healthy updated Gateway can leave the CLI following an unfinished update after background plugin work stops.
Reason: The source establishes the settlement failure, and this maintainer-authored PR explicitly approves core completion before advisory maintenance.

Regression provenance

Regression provenance — suspected predecessor, not a causality claim: source commit 6d863890e965 by RoboClaw; no PR verified.

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open: the maintainer-approved repair addresses a current settlement failure, but its admission cutover leaves two failing consumer tests and a stale identity baseline.

Reviewed head: 8764c0dd8fe707b015dbc497812de83bd14e0417

Before merge

  • Shrink the identity allowance after removing admission comparisons (P2) - Deleting assertUpdateRecoveryAdmissionFacts removes four counted comparisons, but this allowance remains six while the file now contains two. The ratchet rejects decreased counts unless the allowance shrinks, so this tree fails checks-fast-baseline-ratchets even though the production deletion is intentional. Reduce this entry to the remaining count without widening any baseline.
  • Migrate the split-root tests affected by removing the metadata reader (P2) - Removing these reads also removes their early newer-schema exception. The unchanged split-root tests still require UpdateCommandPendingRecoveryFailure with a newer-schema cause at line 525 and pendingRecoveryReason at line 664; exact-head CI reports both failing. Update these consumers for the intended physical-only admission contract while retaining assertions that newer database bytes remain unchanged and incompatible services do not restart.

Findings

  • [P2] Shrink the identity allowance after removing admission comparisons — config/session-identity-allowlist.txt:1321
  • [P2] Migrate the split-root tests affected by removing the metadata reader — src/cli/update-cli/update-command-recovery.ts:136-138

Tests

  • Missing end-to-end proof: Provide redacted installed CLI/Gateway evidence showing completion before interrupted plugin maintenance, one result notice, and a latest-stable upgrade preserving settings and data; redact IPs, credentials, phone numbers, and private endpoints.
Agent review details

How this fits together

The resident launcher supplies the activation outcome; Gateway readiness records it in update history, which the CLI and UI consume, while the Gateway watcher runs background maintenance.

flowchart LR
  A[Resident launcher] --> B[Gateway readiness]
  B --> C[Terminal update history]
  C --> D[CLI and UI]
  B --> E[Gateway watcher]
  E --> F[Plugin maintenance]
  F --> C
  E --> G[Doctor inspections]
  G --> C
Loading

Technical review

Best possible solution:

Keep readiness-owned core settlement and physical-only admission, complete the affected test and baseline cutover, and validate an installed upgrade.

Do we have a high-confidence way to reproduce the issue?

Current main returns from aborted plugin maintenance before its terminal-write closure; the supplied regression reports that invariant failing on the base, although no reproduction was executed during this read-only review.

Is this the best way to solve the issue?

Moving the terminal write into the existing readiness owner directly fixes the cancellation failure and reuses the ledger's existing post-completion diagnostic support.

Full review comments:

  • [P2] Shrink the identity allowance after removing admission comparisons — config/session-identity-allowlist.txt:1321
    Deleting assertUpdateRecoveryAdmissionFacts removes four counted comparisons, but this allowance remains six while the file now contains two. The ratchet rejects decreased counts unless the allowance shrinks, so this tree fails checks-fast-baseline-ratchets even though the production deletion is intentional. Reduce this entry to the remaining count without widening any baseline.
    Confidence: 0.99
  • [P2] Migrate the split-root tests affected by removing the metadata reader — src/cli/update-cli/update-command-recovery.ts:136-138
    Removing these reads also removes their early newer-schema exception. The unchanged split-root tests still require UpdateCommandPendingRecoveryFailure with a newer-schema cause at line 525 and pendingRecoveryReason at line 664; exact-head CI reports both failing. Update these consumers for the intended physical-only admission contract while retaining assertions that newer database bytes remain unchanged and incompatible services do not restart.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fd6e07b8e1d0.

Provenance checked

  • Plugin-gated terminal settlement changes intended behavior with a stated reason (ed8b883: Delay the final summary and notice until plugin results are available.)
  • All-record package-finalization admission changes intended behavior with a stated reason (91d4912: Retain the existing two-root legacy admission fallback while the earlier consolidation removed foreign-record policy elsewhere.)
  • State-consistency recovery-row check changes intended behavior with a stated reason (a28f211: Check recorded data-at-risk marks against unfinished recovery and physical state before allowing repair to proceed.)
  • Worker-based recovery metadata reads keeps the original intent (1a74a80: Avoid whole-database snapshot failures during live recovery checks while keeping execution authority with the updater.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:session-identity-ratchet --base cbdd907 --no-merge-base
  • pnpm test src/cli/update-cli/update-command-original-service.test.ts src/cli/update-cli/update-command-recovery.test.ts src/update/gateway-trial.test.ts --maxWorkers=1
  • git diff --check

What I checked:

  • Pinned change and current-main behavior: The introduced diff moves finishUpdateRunAsync before background maintenance; fetched main still waits for plugin completion and returns without finishing when that work is aborted. (src/update/gateway-trial.ts:253, 8764c0dd8fe7)
  • Post-completion results remain supported: The existing ledger accepts completed or failed plugin steps and Doctor diagnostics after terminal settlement without changing the terminal outcome. (src/infra/update-run-write.ts:80, 8764c0dd8fe7)
  • Retained physical and executor guards: Package finalization still checks selected service/history restore directories and executor custody; named recovery validation remains, and state verification retains displaced-database and sidecar checks. (src/cli/update-cli/update-command-recovery.ts:137, 8764c0dd8fe7)
  • Distinct cancellation regression: The changed test uses the actual Gateway watcher and command cleanup with a synthetic child, checking terminal success before cancellation and an unchanged finish timestamp afterward. (src/update/gateway-trial.test.ts:795, 8764c0dd8fe7)
  • Diff-caused consumer-test failures: Exact-head check checks-node-changed-compact-large-26 reports failures at update-command-original-service.test.ts:525 and :664: the removed metadata reader no longer produces the expected early newer-schema failure envelope or pendingRecoveryReason. (src/cli/update-cli/update-command-original-service.test.ts:525, 8764c0dd8fe7)
  • Diff-caused stale baseline: The deleted admission function removes four counted identity comparisons, leaving two while the allowlist retains six; the ratchet explicitly fails on stale allowances, and exact-head annotations identify session-identity as the failing ratchet. (config/session-identity-allowlist.txt:1321, 8764c0dd8fe7)

Likely related people:

  • Ayaan Zaidi: Raw commit ed8b883 adds src/update/gateway-trial.ts:149 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed8b883a3ac8; files: src/update/gateway-trial.ts)
  • Vincent Koc: Raw commit 1a48475 adds src/infra/update-run-admission.read.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1a48475c88f1; files: src/infra/update-run-admission.read.ts)
  • Jason (Json): Raw commit a28f211 adds src/infra/update-data-at-risk.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a28f2117181c; files: src/infra/update-data-at-risk.ts)

PR surface

Source -164, Tests -21, Docs 0. Total -185 across 14 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 23 187 -164
Tests 2 22 43 -21
Docs 1 9 9 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 54 239 -185

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 merge-risk: 🚨 automation: Deleting counted comparisons without shrinking their allowlist leaves the baseline ratchet failing on this tree.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • merge-risk: 🚨 automation: Deleting counted comparisons without shrinking their allowlist leaves the baseline ratchet failing on this tree.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 27, 2026, 5:09 AM ET / 10:09 UTC.

- Schedule existing post-update maintenance immediately after the terminal write, before awaiting notification.
- Cover failed notice preparation without losing plugin or Doctor results.
- Shrink the session-identity allowance from six to two after deleting admission-record policy.
- Restore the package-finalization admission reader, coherent facts, worker dispatch, source checks and tests exactly as main 91d4912.
- Preserve the real newer-schema and pending-recovery causes rather than falling through to an unrelated primary failure.
- Keep the production change limited to ready settlement and independent post-update maintenance; the settlement runtime is unchanged from the tested 85df275.
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed cli CLI command changes size: M labels Nov 27, 2026
@obviyus
obviyus merged commit ccb6d81 into main Nov 27, 2026
124 of 125 checks passed
@obviyus
obviyus deleted the fix/update-ready-settlement branch November 27, 2026 12:05
@obviyus

obviyus commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as ccb6d81. An update now settles when the new Gateway is ready: plugin maintenance no longer holds the run open or blocks the CLI, and it is scheduled right after the final write, so a failed result notice cannot skip it. docs/install/updating.md now says the core settles at ready and plugins converge after. Proof: an upgrade from the published 2026.11.10 to this change through the update-restart-auth lane finished 'succeeded' with exit 0, and the CLI exited at settle while plugin maintenance continued (run 45982455490); the never-settled regression is red on main and green here; CI is green on the exact head and the review is clean. Production net -40 lines.

obviyus added a commit that referenced this pull request Nov 27, 2026
## What Problem This Solves

Failed-update reporting maintains separate report files, publication receipts, and restart-sentinel projections alongside the recorded update run. This makes the reporting path another state owner to maintain during update consolidation.

Related: #206295, #206503, #206560.

## User Impact

- Keep **Report update failure**, the sanitized preview, and confirmation defaulting to **No** in the CLI and Control UI.
- Prepare reports from the failed run's recorded outcome and steps, then use the shared GitHub issue transport.
- Keep captured triage-failure exports and the `--update-result` handoff/retry commands, so triage retains the original diagnostics after a notification is consumed or replaced.
- Keep current serving observations and historical-failure presentation in `openclaw update status`.
- Reporting no longer saves separate report copies or publication receipts. Host submissions reuse the existing exact-content GitHub search before POST and link a matching issue. Search indexing lag or unavailable search can still permit duplicates; pending publication state is not durable across process restarts.

## Why This Change Was Made

- Delete report artifact/precreation/receipt-store machinery and report-only restart-sentinel operations.
- Delete report-only run/result/sentinel projections and obsolete tests; retain recorded-run diagnostics, captured triage handoffs, and update-status history.
- Keep the existing `update.report` protocol schema unchanged. No new routes, statuses, flags, timers, or retries.
- Simplify pass removed unreachable duplicate-result rendering and duplicate CLI test scaffolding. Fresh recovery observations still drive immediate recovery guidance.

## Evidence

- Production delta: `src`/`ui` +316 / −2,271 = **−1,955 lines**; production tooling removes another 15 lines. Tests and support remain net negative.
- CLI consent boundary: both consent and cancellation cases pass. The test writes a failed run row, shows its build failure before confirmation, submits through a fake shared transport only after Yes, and asserts `Result: failed`, `Reason code: build-failed`, and `Failed phase build: exit 1` in the submitted body.
- Final focused vitest-source run: **17 files, 321 tests passed; 5 shards completed cleanly**. Covers exact-content sequential issue reuse, report authority, captured triage exports/retry paths, historical update status, managed handoffs, and process output.
- Core and CLI-update test typechecks, targeted lint, format parity, line-cap, mock-export, and session-identity ratchets passed.
- Addressed the lead's three landing-review decisions in `a0341965c284`: reused the existing pre-POST search, retained the captured triage handoff, and restored historical update-status presentation. No new flag, environment selector, marker, receipt, or store.
- An earlier local process-output run hit a `phase-hang` fixture ENOENT; the current process-output suite passed 20/20. No lifecycle code, retry, timeout increase, or assertion suppression was added to force exit.
- PostgreSQL pool-root red is inherited and reproduced on unmodified main; [attribution evidence](#206700 (comment)). It is being repaired separately in main's worker-pool work.
- Full build/package/install and broad proof remain in CI; no packed/install smoke or autoreview was run for these repairs.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
## What Problem This Solves

A healthy update can remain running while plugin maintenance is pending or aborted. Core readiness should finish the run; plugin downloads and result-notice failures must not hold it open.

## User Impact

Core settles at Gateway ready, and the CLI can exit. Plugin maintenance and Doctor inspections continue afterward through the existing watcher. The result notice remains independent.

## Why This Change Was Made

- Record the terminal result directly in `settleRunFromTrial`, then schedule the existing maintenance job before awaiting notification.
- Delete the plugin-gated completion closure, its in-progress plugin phase, and unused maintenance return values. No new status, phase, notice, record, flag, timer, retry or boot trigger.
- Build on already-merged openclaw#206503 (`4d4d365712`); its readiness/IPC changes are not duplicated.
- **Cut less:** package-finalization admission, coherent recovery facts, worker readers, tests and the identity allowance are restored exactly to main `f39f2afe5946` (openclaw#206295). This preserves newer-schema and pending-recovery error causes. There is no admission-reader cut, reporting migration or UI change in the final diff.

Production: **net -40 lines**; the final production change is confined to `src/update/gateway-trial.ts`.

## Evidence

### Linux latest-stable upgrade and restart

[Package Acceptance 45982455490 passed](https://github.com/openclaw/openclaw/actions/runs/45982455490), including the existing Linux Docker `update-restart-auth` survivor lane. Frozen admission and the result manifest bind candidate source **`85df275173971255168e1d0aa19401a4ff63e1a9`**. The log records published baseline **`[email protected]`**, the npm `latest` version captured before dispatch, and verifies configuration/state survival into that candidate.

The existing two-stage fixture first exercises the published updater's migration/install path, then forces a real authenticated automatic update using a version-restamped package of the candidate code. Its automatic CLI returned **exit 0** with a receipt checked as **`finished/succeeded`**, matching the target serving build with `coreReady`, `booted`, `serviceRunning` and `versionMatch`. It completed in **159 seconds**; the harness then waited another **111 seconds** for plugin maintenance, proving plugins did not hold the core run/CLI open. The candidate-service preparation probe reached ready in **28 seconds**; that is a startup-probe metric, not a claimed restart-downtime measurement. Total survivor lane: **1,125 seconds**, no failures/timeouts, cleanup joined. [Artifact 15192592241](https://github.com/openclaw/openclaw/actions/runs/45982455490/artifacts/15192592241).

The lane's inner sanitized-diagnostics publication reported a warning, so raw inner receipts are not claimed archived; the uploaded lane log and its strict runtime assertions are the evidence above.

### Direct modern activation timing

The exact-head CI [release-update-survivor cell also passed](https://github.com/openclaw/openclaw/actions/runs/45980437781/job/140443596634). It runs plain `openclaw update --yes --json` and asserts exit 0. Its healthy run **`db70c195-088b-4591-85cb-c6e9f4a81fd6`** is **`succeeded`**, with a **committed, reported** trial, verified serving build and two preserved/migrated seeded rows. Trial start **10:43:55.357Z** to readiness commit **10:44:40.015Z** is **44.658 seconds**; complete update plus verification wall time is **114.250 seconds**. This cell uses PR-head-85df merge source `356828d59982` and a disposable successor migration, not a published-stable baseline. [Artifact 15190632238](https://github.com/openclaw/openclaw/actions/runs/45980437781/artifacts/15190632238).

Both Linux proofs ran before the admission restoration, on 85df. The settlement runtime is byte-identical in the final patch; only the unrelated bridge admission cut is reverted to main. The proofs therefore remain valid for the unchanged settlement change, as explicitly approved by the maintainer. Final-head CI requalifies the retained bridge behavior.

### Focused regressions and checks

- Before production edits, the never-settled abort regression failed on base `f39f2afe5946`: the persisted run remained `running/verifying`, with no finish timestamp. It passes with ready settlement, including an unchanged finish timestamp after plugin work aborts.
- The failed-notice regression was red on `8764c0dd8fe7` and green after scheduling maintenance before notice preparation; plugin and Doctor result steps still appear.
- Targeted types, Oxlint, Oxfmt and runtime builds passed. Local ClawSweeper on `85df27517397` found no remaining code/security findings; the final settlement runtime is unchanged from that review.
- After restoring admission, `update-command-post-update.test.ts:251` passes unchanged; no hash/encoder fix is needed. The `original-service.test.ts:664` split-root refusal also passes unchanged. Its schema-newer case hit the existing 120-second host timeout and is not claimed green locally.

### Recorded host-test gaps

- `server-startup-legacy-completion.test.ts:67`: existing 120-second timeout on unmodified main `d0e65fc22516` and the earlier repair head; the head replay did not reach `http.bound`/readiness.
- `frozen-contract.test.ts:138`: existing 15-second timeout on both repair and unmodified base `f39f2afe5946` (base observation 15,666 ms).
- `gateway-trial.test.ts:133`: import/exit-only smoke hit 15 seconds in the final local replay after passing initially; no main-side classification is claimed.

No timeout, assertion, skip or baseline was weakened. No live Gateway or state was modified, and no release was deployed.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
## What Problem This Solves

Failed-update reporting maintains separate report files, publication receipts, and restart-sentinel projections alongside the recorded update run. This makes the reporting path another state owner to maintain during update consolidation.

Related: openclaw#206295, openclaw#206503, openclaw#206560.

## User Impact

- Keep **Report update failure**, the sanitized preview, and confirmation defaulting to **No** in the CLI and Control UI.
- Prepare reports from the failed run's recorded outcome and steps, then use the shared GitHub issue transport.
- Keep captured triage-failure exports and the `--update-result` handoff/retry commands, so triage retains the original diagnostics after a notification is consumed or replaced.
- Keep current serving observations and historical-failure presentation in `openclaw update status`.
- Reporting no longer saves separate report copies or publication receipts. Host submissions reuse the existing exact-content GitHub search before POST and link a matching issue. Search indexing lag or unavailable search can still permit duplicates; pending publication state is not durable across process restarts.

## Why This Change Was Made

- Delete report artifact/precreation/receipt-store machinery and report-only restart-sentinel operations.
- Delete report-only run/result/sentinel projections and obsolete tests; retain recorded-run diagnostics, captured triage handoffs, and update-status history.
- Keep the existing `update.report` protocol schema unchanged. No new routes, statuses, flags, timers, or retries.
- Simplify pass removed unreachable duplicate-result rendering and duplicate CLI test scaffolding. Fresh recovery observations still drive immediate recovery guidance.

## Evidence

- Production delta: `src`/`ui` +316 / −2,271 = **−1,955 lines**; production tooling removes another 15 lines. Tests and support remain net negative.
- CLI consent boundary: both consent and cancellation cases pass. The test writes a failed run row, shows its build failure before confirmation, submits through a fake shared transport only after Yes, and asserts `Result: failed`, `Reason code: build-failed`, and `Failed phase build: exit 1` in the submitted body.
- Final focused vitest-source run: **17 files, 321 tests passed; 5 shards completed cleanly**. Covers exact-content sequential issue reuse, report authority, captured triage exports/retry paths, historical update status, managed handoffs, and process output.
- Core and CLI-update test typechecks, targeted lint, format parity, line-cap, mock-export, and session-identity ratchets passed.
- Addressed the lead's three landing-review decisions in `a0341965c284`: reused the existing pre-POST search, retained the captured triage handoff, and restored historical update-status presentation. No new flag, environment selector, marker, receipt, or store.
- An earlier local process-output run hit a `phase-hang` fixture ENOENT; the current process-output suite passed 20/20. No lifecycle code, retry, timeout increase, or assertion suppression was added to force exit.
- PostgreSQL pool-root red is inherited and reproduced on unmodified main; [attribution evidence](openclaw#206700 (comment)). It is being repaired separately in main's worker-pool work.
- Full build/package/install and broad proof remain in CI; no packed/install smoke or autoreview was run for these repairs.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
…ount (#206343)

* fix(update): refuse a root update of a system service run by another account

When a published updater runs as root and the selected systemd system unit
runs this package under another account, candidate admission now refuses
before the package is replaced. Plain sudo would back up and check root's own
state; pointing OPENCLAW_STATE_DIR at the service state would write it as
root. The refusal names the unit, its account and the documented
system-service procedure, starting with a verified backup of the service state.

Service discovery keeps the observed unit, account and inline state selectors
on the existing systemd-account-refused refusal so admission can tell this
case from an unreadable service. The drop-in override parser moves to its own
module to keep systemd-service-files.ts under the line cap.

* fix(update): keep the manual reinstall with the account that owns the package

* fix(update): name the updating account instead of a path drivers redact

* fix(update): format numeric and default service accounts for sudo

* fix(update): keep the refusal reason within what shipped drivers print

* fix(update): return root-written files before the service-state backup

* fix(update): keep printed service paths intact through driver redaction

* fix(update): refuse for skipped custom units and honor ExecStart profiles

* test(update): consolidate service-account admission cases

(cherry picked from commit 74f02b4)

Release adaptation: Production and test changes are identical to main. Resolve the documentation conflict by inserting only the new service-account notice and manual procedure before the stable update implementation contract, retaining existing stable guidance and omitting main-only local-packaged-code-overrides context. The notice specifies refusal before package replacement, since the installed driver may already have emitted logs or a report. Later same-file edits are documentation for separate work: #206560 core readiness, #206530 legacy Linux lock recovery, #206867 legacy auth cleanup, #206926 boot-time plugin convergence, and #207062 recovery of selected old main checkouts. None is required for or included with this refusal.

Co-authored-by: RomneyDa <[email protected]>
obviyus added a commit that referenced this pull request Nov 29, 2026
## What Problem This Solves

An update can keep its launcher trial open after the Gateway is already serving. In the 2026-11-28 fleet run, the `restarting` step lasted 384.502 seconds, but the readiness outage bracket was only 52.021 seconds. The Gateway logged ready 24.550 seconds before the launcher committed the trial.

## User Impact

The first ready announcement now uses the same update-settlement owner as startup completion. The existing restart-signal log also reports active-work inventory counts, so operators can distinguish real work from a stuck idle count without enabling another log channel. No timeout is shortened or bypassed.

A separate small commit aligns the two remaining schema-marker refusal messages with #207705: stop the Gateway, preserve the state directory, and restore a verified backup into a fresh directory. Database behavior and stored formats are unchanged.

## Why This Change Was Made

`createGatewayReadyAnnouncer` already requires chat availability, sidecars-ready, and the prepared readiness result. Plugin/channel sidecar startup has completed before this boundary; the update canary unlocks methods before sidecars-ready and retains its separate canary announcement. Replacing the early logger's two lines with existing `await logGatewayReady(params)` sends the same launcher receipt as the later startup-finish call, without a second settlement implementation.

The fleet run hit the **300-second idle cap**, not a fixed sleep: something never went idle during that window. The old Gateway kept serving. The captured log shows agent turns continuing during the wait (including activity at 21:52:46, 21:53:16, 21:55:31, and 21:56:12 UTC), but it does not record the blocker inventory, so it cannot identify the exact count that held the restart. The new fields come from `createGatewayActiveWorkSnapshot().counts`, the same inventory used by the deferral check. The existing handoff and received-signal timestamps give the elapsed wait.

Simplification: reuse the existing readiness owner; keep the idle cap, shutdown cleanup, launcher, and background plugin maintenance unchanged. No new status, phase, record, lease, notice, retry, trigger, flag, or timer. Production **+2 lines net** (receipt repair −1, diagnostic fields +3); tests **+83 net**; docs **+1 net**. Marker-message production change is net zero in its own commit.

## Evidence

### Measured fleet timeline

Times below are UTC on 2026-11-27, from the raw fleet capture collected on November 28. `gateway` means `gateway-0300.log`.

| Phase | Start | End | Seconds | Raw evidence |
| --- | --- | --- | ---: | --- |
| Pre-signal wait | 21:52:12.078 | 21:57:14.444 | 302.366 | update-status.json:154–157; gateway:312,413 |
| Old shutdown | 21:57:14.444 | 21:57:25.008 | 10.564 | gateway:413–430 |
| Supervisor/launcher handover **[INFERENCE]** | 21:57:25.008 | 21:57:25.353 | 0.345 | gateway:430; trial.json:1 |
| Trial start to Gateway ready | 21:57:25.353 | 21:58:05.479 | 40.126 | trial.json:1; gateway:439–531 |
| Ready to launcher commit | 21:58:05.479 | 21:58:30.029 | 24.550 | gateway:531; trial.json:1 |
| Commit to terminal settlement | 21:58:30.029 | 21:58:36.580 | 6.551 | trial.json:1; update-status.json:157 |

Plugin disposal took 9.773 seconds and the subsequent cleanup join 4.726 seconds; they overlap (gateway:422–423), so they are not added to shutdown. The 5-second and 10-second warnings were not 384-second waits. Readiness sampling brackets the outage at 52.021 seconds (readyz.log:1438–1479); 332.481 seconds of the step lay outside that bracket. Actual transition times remain sampling-bounded.

#206560's readiness settlement was already in the fleet candidate. #206926 subsequently moved plugin convergence to every boot; #207585 removed native advisory Doctor work. Neither removed this early-announcer gap or changed the idle cap.

### Focused proof

- Red on fresh main `3586700dbad1`: both existing IPC acknowledgement/disconnect cases, routed through the first-ready owner, fail specifically because no launcher `openclaw.ready` receipt is sent before that owner returns. Both pass with the repair, through the real readiness/installation/trial owner chain and a fixed external IPC peer.
- The retained-root diagnostic case and both marker-advice cases are red on the same base. On the candidate, the diagnostic observes a real admitted root; the marker tests retain both differing schema markers unchanged while naming safe recovery.
- The `ocx test` infrastructure shard covering `gateway-trial.test.ts` and `agent-port-descriptor.test.ts` passed **46 cases**, 43.50 seconds Vitest duration (the original command also selected the CLI run-loop file). The final receipt plus CLI-custody selection passed **6 cases** in 40.52 seconds wall time including compiled-worker preparation; after relocating the added log case into its existing sibling owner, that case and log-flush sibling passed **2 cases** in 38.07 seconds wall time, including preparation/import time (35.67 seconds Vitest duration).
- Focused Oxlint: zero warnings/errors. Focused Oxfmt/Bun parity checks and commit hooks pass. The first broader local attempt exposed incomplete cron-module mocks after the new inventory import; those mocks now preserve real exports while retaining their existing drain isolation, and the affected cases pass. One earlier compile attempt was invalidated by an import-order edit and is not proof.
- Local ClawSweeper reviewed final range `3586700dbad1..f157ddb`: complete, patch correct, no code findings, security cleared. It leaves installed behavior/upgrade proof to the acceptance lane; local mocked IPC does not replace that proof.
- No full local build or local broad suite is claimed. Hosted CI and the requested published-latest `update-restart-auth` lane provide the remaining build/update proof. No live Gateway or release branch was touched; no autoreview was run.

### Hosted evidence and remaining limits

- Initial [CI 46202194838](https://github.com/openclaw/openclaw/actions/runs/46202194838) found TS2345 in the new table-driven marker test: its Promise callback mixed synchronous inspection with asynchronous repair. Test-only commit `f157ddb056e7` normalizes the callback; the exact failing infra test-type graph passes locally in 29.0 seconds. A post-correction local marker replay did not reach its assertions within the 90-second command limit; the earlier two marker cases passed, and final hosted CI owns the remaining replay.
- The initial head's [docker-seed-e2e job](https://github.com/openclaw/openclaw/actions/runs/46202194838/job/141157131793) was skipped. It produced no native release-update trial artifact, so no trial-start→commit timing is claimed. Recent main [run 46196621308](https://github.com/openclaw/openclaw/actions/runs/46196621308/job/141139366015) passed that job but its artifact contains the published-upgrade scenario, not a native trial; it is not a like-for-like timing baseline.
- The requested published-latest upgrade lane is [Package Acceptance 46203151290](https://github.com/openclaw/openclaw/actions/runs/46203151290), dispatched on `6f842adc82d1`. Final head `f157ddb056e7` differs only in the test callback above; production bytes are identical. No harness change or extra timing mechanism was added.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…aw#207819)

## What Problem This Solves

An update can keep its launcher trial open after the Gateway is already serving. In the 2026-11-28 fleet run, the `restarting` step lasted 384.502 seconds, but the readiness outage bracket was only 52.021 seconds. The Gateway logged ready 24.550 seconds before the launcher committed the trial.

## User Impact

The first ready announcement now uses the same update-settlement owner as startup completion. The existing restart-signal log also reports active-work inventory counts, so operators can distinguish real work from a stuck idle count without enabling another log channel. No timeout is shortened or bypassed.

A separate small commit aligns the two remaining schema-marker refusal messages with openclaw#207705: stop the Gateway, preserve the state directory, and restore a verified backup into a fresh directory. Database behavior and stored formats are unchanged.

## Why This Change Was Made

`createGatewayReadyAnnouncer` already requires chat availability, sidecars-ready, and the prepared readiness result. Plugin/channel sidecar startup has completed before this boundary; the update canary unlocks methods before sidecars-ready and retains its separate canary announcement. Replacing the early logger's two lines with existing `await logGatewayReady(params)` sends the same launcher receipt as the later startup-finish call, without a second settlement implementation.

The fleet run hit the **300-second idle cap**, not a fixed sleep: something never went idle during that window. The old Gateway kept serving. The captured log shows agent turns continuing during the wait (including activity at 21:52:46, 21:53:16, 21:55:31, and 21:56:12 UTC), but it does not record the blocker inventory, so it cannot identify the exact count that held the restart. The new fields come from `createGatewayActiveWorkSnapshot().counts`, the same inventory used by the deferral check. The existing handoff and received-signal timestamps give the elapsed wait.

Simplification: reuse the existing readiness owner; keep the idle cap, shutdown cleanup, launcher, and background plugin maintenance unchanged. No new status, phase, record, lease, notice, retry, trigger, flag, or timer. Production **+2 lines net** (receipt repair −1, diagnostic fields +3); tests **+83 net**; docs **+1 net**. Marker-message production change is net zero in its own commit.

## Evidence

### Measured fleet timeline

Times below are UTC on 2026-11-27, from the raw fleet capture collected on November 28. `gateway` means `gateway-0300.log`.

| Phase | Start | End | Seconds | Raw evidence |
| --- | --- | --- | ---: | --- |
| Pre-signal wait | 21:52:12.078 | 21:57:14.444 | 302.366 | update-status.json:154–157; gateway:312,413 |
| Old shutdown | 21:57:14.444 | 21:57:25.008 | 10.564 | gateway:413–430 |
| Supervisor/launcher handover **[INFERENCE]** | 21:57:25.008 | 21:57:25.353 | 0.345 | gateway:430; trial.json:1 |
| Trial start to Gateway ready | 21:57:25.353 | 21:58:05.479 | 40.126 | trial.json:1; gateway:439–531 |
| Ready to launcher commit | 21:58:05.479 | 21:58:30.029 | 24.550 | gateway:531; trial.json:1 |
| Commit to terminal settlement | 21:58:30.029 | 21:58:36.580 | 6.551 | trial.json:1; update-status.json:157 |

Plugin disposal took 9.773 seconds and the subsequent cleanup join 4.726 seconds; they overlap (gateway:422–423), so they are not added to shutdown. The 5-second and 10-second warnings were not 384-second waits. Readiness sampling brackets the outage at 52.021 seconds (readyz.log:1438–1479); 332.481 seconds of the step lay outside that bracket. Actual transition times remain sampling-bounded.

openclaw#206560's readiness settlement was already in the fleet candidate. openclaw#206926 subsequently moved plugin convergence to every boot; openclaw#207585 removed native advisory Doctor work. Neither removed this early-announcer gap or changed the idle cap.

### Focused proof

- Red on fresh main `de321b8a9154`: both existing IPC acknowledgement/disconnect cases, routed through the first-ready owner, fail specifically because no launcher `openclaw.ready` receipt is sent before that owner returns. Both pass with the repair, through the real readiness/installation/trial owner chain and a fixed external IPC peer.
- The retained-root diagnostic case and both marker-advice cases are red on the same base. On the candidate, the diagnostic observes a real admitted root; the marker tests retain both differing schema markers unchanged while naming safe recovery.
- The `ocx test` infrastructure shard covering `gateway-trial.test.ts` and `agent-port-descriptor.test.ts` passed **46 cases**, 43.50 seconds Vitest duration (the original command also selected the CLI run-loop file). The final receipt plus CLI-custody selection passed **6 cases** in 40.52 seconds wall time including compiled-worker preparation; after relocating the added log case into its existing sibling owner, that case and log-flush sibling passed **2 cases** in 38.07 seconds wall time, including preparation/import time (35.67 seconds Vitest duration).
- Focused Oxlint: zero warnings/errors. Focused Oxfmt/Bun parity checks and commit hooks pass. The first broader local attempt exposed incomplete cron-module mocks after the new inventory import; those mocks now preserve real exports while retaining their existing drain isolation, and the affected cases pass. One earlier compile attempt was invalidated by an import-order edit and is not proof.
- Local ClawSweeper reviewed final range `de321b8a9154..f157ddb`: complete, patch correct, no code findings, security cleared. It leaves installed behavior/upgrade proof to the acceptance lane; local mocked IPC does not replace that proof.
- No full local build or local broad suite is claimed. Hosted CI and the requested published-latest `update-restart-auth` lane provide the remaining build/update proof. No live Gateway or release branch was touched; no autoreview was run.

### Hosted evidence and remaining limits

- Initial [CI 46202194838](https://github.com/openclaw/openclaw/actions/runs/46202194838) found TS2345 in the new table-driven marker test: its Promise callback mixed synchronous inspection with asynchronous repair. Test-only commit `f157ddb056e7` normalizes the callback; the exact failing infra test-type graph passes locally in 29.0 seconds. A post-correction local marker replay did not reach its assertions within the 90-second command limit; the earlier two marker cases passed, and final hosted CI owns the remaining replay.
- The initial head's [docker-seed-e2e job](https://github.com/openclaw/openclaw/actions/runs/46202194838/job/141157131793) was skipped. It produced no native release-update trial artifact, so no trial-start→commit timing is claimed. Recent main [run 46196621308](https://github.com/openclaw/openclaw/actions/runs/46196621308/job/141139366015) passed that job but its artifact contains the published-upgrade scenario, not a native trial; it is not a like-for-like timing baseline.
- The requested published-latest upgrade lane is [Package Acceptance 46203151290](https://github.com/openclaw/openclaw/actions/runs/46203151290), dispatched on `6f842adc82d1`. Final head `f157ddb056e7` differs only in the test callback above; production bytes are identical. No harness change or extra timing mechanism was added.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
## What Problem This Solves

A plain `openclaw update --yes` can keep printing `restarting: restarting` after the new release is healthy and its launcher has committed the trial. The CLI is following a run that never receives its terminal history entry.

## User Impact

The serving release completes the activation run through the existing readiness and update-watcher owners. No new setting, status, stored format, timer, retry loop, or flag is introduced. This change belongs in the candidate release; an older installed CLI can keep following the same run.

## Why This Change Was Made

On base `bad21b1eba43`, `src/gateway/stale-install.ts:269-275` sets `trialSettled` before a detached `announceReady` finishes. In `src/update/gateway-trial.ts:363-371`, a two-second timer can end the IPC wait while the resident launcher has not yet written its committed receipt. The file fallback then sees an active trial, `settleRunFromTrial` returns at lines 311-315, and the one-shot prevents another settlement. The serving Gateway owns the terminal `update_runs` write at lines 259-290; the old updater CLI only polls it.

Move that same announcement into the existing core-readiness owner and delete the redundant `trialSettled` marker. Await the launcher's existing receipt, using the same single file fallback only when the IPC channel disconnects. Required plugin work and the terminal write remain on the existing Gateway update watcher, so readiness does not wait for plugin downloads.

`6d863890e965` added the separate format-1 legacy recovery path but left the resident one-shot intact. `da6ec1a0d0cb` bounds CLI requests and polling; it does not move settlement ownership.

Production delta: **6 added / 13 removed; net -7 lines**. Tests: net +82 lines. The existing persisted trial receipt and readiness lifetime replace the removed one-shot.

## Evidence

Read-only evidence from a macOS Git-release update from `93ce03aada9f` to `af91b89f6524` on 2026-11-27 (private paths and hostnames omitted):

- Gateway log line **4447**: run `947dcd09…` admitted at **07:13:25.815Z**.
- Lines **4845-4847**: managed restart begins at **07:27:07.903Z**.
- Line **4908** identifies the newly serving `af91b89f6524` build; lines **4967-4968** report Gateway ready at **07:27:44.435Z**.
- The resident `.trial` receipt is `committed`, with `outcome.status=succeeded` at **07:28:10.009Z**, but has no `reported` receipt. Log line **5017** and later lines continue `update.runs.get`.
- At **08:14:20Z**, `sqlite3 -readonly` still showed `status=running`, `phase=restarting`, `finished_at_ms=NULL`, last updated **07:22:05Z**. No live Gateway or state was modified.
- The precise timeout/commit interleaving is reconstructed from those durable facts; it was not directly logged. A deterministic regression reproduces it by advancing the candidate clock three seconds before the launcher acknowledges the committed trial.

Local proof:

- **Red on main/base `bad21b1eba43`** before production edits: the delayed-acknowledgment and delayed-disconnect cases both retain a running run instead of succeeding. The core-readiness activation cases also fail before the fix.
- **Green on the fix:** all 20 `gateway-trial.test.ts` tests pass, including both delayed-launcher cases, readiness success/rollback, plugin finalization, and watcher shutdown. All 17 `stale-install.test.ts` tests pass.
- The 10-file consumer run passed 198 tests and failed `server-startup-legacy-completion.test.ts` at its existing 120-second timeout. An isolated diagnostic replay also timed out: it reached “starting HTTP server” but never reached `http.bound` or the changed readiness owner. Both failures remain recorded; no assertion or timeout was weakened. This host-side startup proof is incomplete.
- Targeted typechecks passed: `node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.gateway-root.json --incremental` and the `tsconfig.core.test.other.json` leaf.
- Targeted Oxlint: zero errors or warnings. Oxfmt: all five changed files pass.
- `ocx build --dist` passed (**dist-nodts**). It reported existing Control UI budget warnings; declarations and packaging were not part of this runtime proof.
- `pnpm check:changed --delegate-compilers` is running; canonical production compiler graphs remain delegated to PR CI. Local ClawSweeper review will be attached for this exact head.

The live affected installation was deliberately left untouched. No release was deployed and no PR was merged.

Co-authored-by: Ayaan Zaidi <[email protected]>

(cherry picked from commit cbdd907)

Release adaptation: Keep the beta.2 maintenance-tick announcement owner; it runs after the listener is serving. Carry the launcher acknowledgment/disconnect fix and two regressions without importing the main-only legacy readiness ownership or docs that describe it.

Companions: #206560 core settlement before plugin maintenance is already in the beta.2 owner and fixtures; #206700 report refactor is not an IPC prerequisite.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
…205987)

## Class: completion is published before required maintenance finishes

Fleet run `4de610c8-e63d-4336-8e85-a76379cfd934` committed and served the new core, but its completion notice preceded the failed plugin result. The bug is ordering, not the core's status.

The modern Gateway-ready owner now settles once **after** required plugin work and sends one final notice afterward. A failed plugin remains a failed step, not a failed core update or a rollback trigger. Existing CLI following and capability-consent behavior remain; the failed-status/early-exit/backoff experiment is removed.

CLI completion, status, Doctor history and the Control UI reuse the existing `renderUpdateRunSummary` over recorded facts. Running results keep their phase; succeeded results name the installed after-version; skipped results keep their existing reason headline, never a guessed serving state. Failed work names its step and exact recovery command. Startup refusal diagnostics, structured failure facts, rollback compensation reasons, recorded signal output and profile-specific recovery commands remain visible. Existing discriminators distinguish repair and reconciled-history records from core updates. Background completion never rewrites the shared trial, preserving a newer pending trial and restart resumption.

## What this deletes

- `renderUpdateRunReport`, its private recovery hints and cause module.
- Routine Markdown completion publication/refresh, automatic `reportPath` output, and artifact-only admission/options plumbing.
- Obsolete completion-export tests and renderer-only assertions. Ledger, recovery, authority, privacy and step-detail assertions remain on their retained data owners.
- The abandoned failed-status classifier, campaign/retry exceptions, early-return CLI path and associated UI/test allocation.

**Kept deliberately:** explicit consent-gated **Report update failure** GitHub preview/submission, its reservation/receipt authority and sanitized issue artifacts. The remaining `update-failure-report*` code serves that user feature and triage, not routine completion. Identity/recovery and legacy result/sentinel projections remain because those manual-report and sentinel consumers still use them.

No new status, state store, flag, stored-record shape or launcher format.

## Size

`tokei` on this PR's **20 production files**, excluding tests/support/harnesses, against integrated main `6ac896f4cbb8bc29940c625cb1e2b19990e87284`:

| | Before | After | Net |
| --- | ---: | ---: | ---: |
| Production code lines | 7,758 | 7,148 | **−610** |
| Test/support lines | | | **−1,257** |

## Verification

- The earlier base Gateway-owner regression exposed the premature terminal write before plugin settlement. Final owner tests pin delayed settlement, unchanged successful core status, exact plugin recovery, one acknowledged final notice, newer-trial preservation and restart resumption.
- **Earlier focused AWS replay GREEN:** nine observed prepare/status/progress regression cases passed in99s; core and CLI-update types, scoped lint (zero warnings/errors) and format passed. https://crabbox.openclaw.ai/portal/runs/run_e5a8682ccf98bb7765b9d075be801705 . Exact qualified source was `5c6686ad20f50377f6affdec0d948f362dc37851`, tree `5ed1cb6e544fbd93604eea566b550f0c722842c8`, normal carrier `d2821086c00e55c8de35d00d7a4418168ca25a2d`; lease released with `--wait`. This is not claimed as an exact-head run after the later shared-summary/UI refinements.
- **Final pushed head:** `79182af301a6166914840dab9a705f4fa5c72fbd`. Restores the existing installed-runtime admission receipt before stop-and-repair advice, keeps historical summaries informational, and types the captured handoff notice without weakening assertions. Three requested files passed once: guidance32/32, handoff19/19, UI view15/15 (**66/66**). https://crabbox.openclaw.ai/portal/runs/run_ea4006e0b21e09bfbd763abe6e25929a . Qualified source was `985dd796d1` plus those two frozen restores, tree `45fe9f49c964b39806b431cde018432ed6e472fc`, normal carrier `81d874a77bb7de2f72307cca91f827db71ec7850`. Exact AWS lease released with `--wait`, exit0. Final-head CI remains the landing gate.
- **Repair candidate:** `1f223e15a20a04a27a4f745af81fb11b106d9d40`. Plain integrated main `6ac896f4cbb8bc29940c625cb1e2b19990e87284` passed all39 CLI tests on hydrated AWS4CPU/7730MiB, including the #205898 restart-wire case in31ms: https://crabbox.openclaw.ai/portal/runs/run_97637e77b460fbb7176bd261693cabd1 . B's timeout came from its local ledger fixture using a remote run ID; the fixture is corrected without changing main's captured connection contract.
- **Node regression batch:** nineteen files on repair predecessor `eede`, 481passed/4failed/1skipped; core types, scoped lint and format passed. https://crabbox.openclaw.ai/portal/runs/run_fbcf26ce68d5a5a539f63f6ee793237a . The four residuals were an early-return saved-notice recognition bug, two assertions pinning retired reconciled wording, and a native-refusal assertion reading a clipped excerpt instead of its retained structured cause. All are corrected without changing generic ledger storage.
- **Final-head residual proof:** summary18/18, abandoned-repair rows2/2 and native-start refusal1/1 passed; core and CLI-update types plus scoped format passed. https://crabbox.openclaw.ai/portal/runs/run_f4e633ac557bce484d1939c03cf88b3f . Source tree `9112e46c2b3081aab02b3dc9a0dfc1e0c06da55f`, normal carrier `82470c4669b7cc502049fa978dc5ed37defb6c6a`, AWS4CPU/7730MiB. Scoped lint did **not** run: its normal SDK declaration preparation failed first with TypeScript/vscode-jsonrpc `ERR_STREAM_DESTROYED`. No retry or bypass; current-head CI remains the lint gate.
- Historical failed-status screenshots, broad partial qualification and prior reviews describe the superseded design, **not** this head.
- No new upgrade source, death proof, harness test or Linux product campaign is added. Superseded remote proof jobs were cancelled and all their leases released with `--wait`.
- The ready-time settlement owner tests passed on integrated `9aba`: `gateway-trial.test.ts`18/18. Later output refinements do not change that settlement policy. Frozen `01b` UI reproduction observed unit14pass/1fail and E2E8pass/2fail. On repair predecessor `eede`, unit15/15, UI/pages/E2E types and scoped lint/format passed. Final `f087` passed both changed E2E cases (standalone repair history; warning advice and keyboard-accessible output), UI/pages/E2E types, scoped lint and format: https://crabbox.openclaw.ai/portal/runs/run_13701071e15057d5ac5c4ac5e927c65d . Source tree `3c734ef709a186303996517ecad54c5e5d4a0e9c`; exact lease released with `--wait`. The other8 E2E cases passed on `eede` and were intentionally not repeated.
- **Accepted budget cost:** exact `1f223` CI measures chat boot gzip **1,336,500→1,337,028 (+528 B)**, requests21→21; startup+1 B. Base already exceeds its cap, so normal tolerance is64 B (464 B excess). https://github.com/openclaw/openclaw/actions/runs/45885636780/job/140136424955 . Cause: `update-run-projection.ts` synchronously imports the shared summary for the existing card/view projection; the existing async result boundary already imports it dynamically. Ayaan accepted this cost for this PR through Main; no new async plumbing or budget config. Main applies the performance-only override at merge; every other gate remains required.
- **Final-head budget receipt (`79182`):** chat boot gzip **1,336,744→1,337,247 (+503 B)**, requests21→21; startup+1 B, normal tolerance64 B. https://github.com/openclaw/openclaw/actions/runs/45895112042/job/140167696819 . This is below the accepted predecessor's +528 B cost; same synchronous-summary cause, no new plumbing/config. Remaining CI gates are still pending.
- **Latest pushed head: `be86da0464892c10cbe7207ff98228eb1e81758a` (test-only delta).** The shared notice mock uses its production signature; no cast or weakened notice assertion remains. Healthy final recovery without an installed-runtime admission receipt explicitly expects update-again/no-stop advice. Two affected files passed once (**81/81**: handoff19, post-update62), focused Gateway/CLI-update types and lint passed: https://crabbox.openclaw.ai/portal/runs/run_c8784e2fe001772ae88bae53af8d9747 . Qualified source was `79182` plus the frozen test edits; only generic-type wrapping changed mechanically afterward, normal commit hooks passed. No production/budget change.
- The prior ratchet failure is infrastructure: its GitHub annotation says the hosted runner lost communication, leaving the baseline-ratchet step without a verdict. Its log fetch returned BlobNotFound/404. No old-head rerun was accepted or needed; this head's normal CI runs the ratchet again.
- **Latest pushed head: `bf3ab61efbb9dba856bfc4d651c7fc77f44549f2` (one exact-copy test assertion).** Requested same-guest owner-file comparison: plain main `993d0b77`13/13 passed ([run](https://crabbox.openclaw.ai/portal/runs/run_4983803c6c82c64295d7d513ac8b52cd)); `be86`12/13 passed ([run](https://crabbox.openclaw.ai/portal/runs/run_51b38ba2049d66bdf6437b89731bf787)), failing only the expected generic details tail. The actual last notice correctly preserves `commands.restart=false` and its app/operator remedy. This commit changes only the exact expected string, retaining acknowledgement, no-update and last-call/context assertions; no mock runtime or production change. No extra local rerun: new-head CI verifies the migrated expectation.

Co-authored-by: Ayaan Zaidi <[email protected]>

(cherry picked from commit ed8b883)

Release adaptation: Port Gateway run/notice timing and the existing maintenance result contract only; retain beta.2 CLI, Doctor and UI summary surfaces and explicit failure reports. Fold in #208074 abort/grace follow-up where applicable.

Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): 974d792 fix: keep update status quiet and app-managed updates honest (#208359); 186e941 fix: restore the dependency check on main (#207741); dae01a9 fix: keep other agents running when one store is refused (#208364); c9f7a98 fix: keep container Gateway commands from rolling back host updates (#208271); edb6820 fix: let the Gateway restart while boot plugin maintenance is running (#208074); bb37856 fix: keep Windows WebChat connected during config reloads (#208109); 516166c fix: exit once when gateway run rejects an argument after an update (#208068); 07e96dc fix: restart the Gateway after real plugin repairs (#208207); bd48ff6 fix: avoid restarting the Gateway for plugin timestamp changes (#208119); 259f71c fix: stop Linux service starts from copying the whole agent database (#207969); 7cb8975 fix: keep forked Claude chats separate after a Gateway crash (#208048); 6d300d3 fix: restart launcher-managed Gateways after exit 78 (#207972); 90ff668 fix: stop treating limited access as an Inbox alert (#207737); ec39a90 fix(whatsapp): retain sender for explicit current-message reactions (#190121); 86ca412 fix: show the saved quota reset when chat skips its only model (#207210); c4a675f fix: avoid reloading unchanged plugins after Gateway boot (#207949); 13c67a1 fix: let updates back up deeply nested databases (#207756); e2fcd4d fix: acknowledge updates when the Gateway first becomes ready (#207819); 8933edd fix: name safe recovery when agent schema markers disagree (#207705); 19e9dd6 fix(gateway): keep Linux legacy lock recovery explicit (#207340); 54b5989 test(update): move startup diagnostics to the live CLI (#207589); fbf1aae fix: give safe update ownership guidance and restore legacy result delivery (#207640); 0cbe433 test(gateway): move update admission tests to the current handler (#207545); a922203 refactor(update): remove native post-activation Doctor subprocess (#207585); c72bd9a fix(anthropic): show Claude CLI quota usage from the native login (#207543); 7ac87ad fix: avoid taking service-account ownership during updates (#207563); b3902a2 fix(update): allow in-place updates without a full state copy (#207448); 9fa8d14 refactor: trim redundant gateway test journeys (#207311); 2cf1cb6 test(cli): remove unused private fixture state (#207431); ece7a74 improve(workboard): apply the Control UI glossary and style to Workboard copy; 1c89587 fix: update system service packages without root state changes (#207304); dfd17d0 fix(docker): avoid pre-boot Doctor delays on container recreation (#207200); b616036 refactor(subagents): simplify ACP spawn relay ownership (#207023); 93ca762 improve: reduce allocations when preparing session rows (#207109); adb3716 fix(update): surface boot plugin repair advisories (#207163); f79ef8c fix: finish updates of 2026-11-17 main checkouts automatically on Linux and macOS (#207062); 3c4362b fix(update): preserve exception causes in failure history (#207085); 20c92a4 fix: converge plugins after every Gateway boot (#206926); 3078862 fix(update): clean up rejected Git update worktrees (#207040); 9993328 refactor(subagents): simplify kill claim and ownership handling (#207025); 97815bd refactor(subagents): consolidate registry cleanup and publication guards (#207064); e94f799 refactor(subagents): centralize requester turn matching (#206584); 819935f refactor(test): trim unused plugin fixture setup (#206982); 8ae0874 improve(gateway): avoid redundant cleanup for empty legacy auth stores (#206867); 4849bb7 fix(browser): report crashed tabs as tab-scoped failures (#194682); ea77ca3 refactor: report update failures from recorded runs (#206700); b19387e fix(test): cover SIGBREAK during pending update recovery (#206860); 18e53d8 fix: finish Linux upgrades after a legacy Gateway crashes (#206530); 8bd1863 chore(test): remove unused plugin contract fixture setup (#206812); f1841bc fix: stop repeating unchanged session state in every chat turn (#206766); f9a8f18 fix: clear the update warning after a retired model is repaired (#204778); 4d7e00b fix: let started participant runs and requests finish after an access change (#206747); 35cd392 improve: use less memory when waiting for an agent reply (#206733); 9845bf5 fix(test): keep readiness abort fixtures alive until stopped (#206660); 461f650 fix(ci): keep startup helpers internal (#206649); f89ae43 refactor(subagents): use cleanup and terminal owners in sweeps (#206533); a882e0f fix(agents): preserve task answers when sessions are reused (#126263); ccb6d81 fix: finish core updates when the Gateway is ready (#206560); 74f02b4 fix: refuse root updates of a system service that runs as another account (#206343); 01032b1 fix(update): keep acknowledged run IDs when status is unavailable (#206562); 3ce0582 refactor(subagents): centralize collector replay decisions (#206471); c2cfab0 chore: consolidate repeated test fixtures and guards (#198739); 219b6b0 perf(agents): render the system prompt from one manifest and halve it (#206537); 360e306 refactor(test): remove mocked outbound staging fixtures (#184863); cbdd907 fix: finish release updates after a slow launcher response (#206503); 81fc833 refactor(subagents): own dormant child Stop decisions (#206479); 91d4912 fix(update): stop using foreign recovery records as admission (#206295); 6feeb50 fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341); be3c73e fix(subagents): finish claimed stops after session rotation (#206405); 5e5bb6e fix(update): round status inspection timeouts (#206250); 41afc0f fix(update): keep successful plugin reload warnings advisory (#206372); 6d86389 fix: finish healthy Git updates after an older verifier exits; da6ec1a fix(update): bound release CLI Gateway waits (#206252); d9a36b3 improve: skip unrelated harness discovery for isolated model calls (#206323); bcdb2ef improve(cli): skip channel and web discovery for model credentials (#206240).
Later PR-number mentions: none Later commit-SHA mentions: none
Pinned PR grep: ed8b883 fix(update): settle after plugins and share one completion summary (#205987)

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
## Class: foreign updater records must not grant admission

Instances: #203486, #205736, #203917, and the modern release route refusing an old unfinished recovery.

The release preparation owner now takes its existing lock, checks the installation and physical restore guard, then records other unfinished runs as `failed: interrupted` and continues. It preserves its current run and the serving trial's handed-over run. The bounded drain reads current rows, not an enclosing Doctor snapshot.

In modern release preparation, the two recovery refusals remain: a positively live in-place lease holder, and `.openclaw-restore-*` that may contain the original state. Current modern locks/trials and normal preflight still apply.

## What disappears

- The 808-line interrupted plugin-cohort settlement owner, its run/finalize/repair discovery and replay paths, and obsolete killed-driver/death-proof suites.
- Foreign saved-row permission for plugin peer links, snapshot collection, interruption/reconciliation and terminal capture. Foreign cohort rows remain unchanged; another update does not replay their rollback.
- The critical-path retained-runtime census and its timeout branches. Existing owned-release path collection runs after ready; Doctor retains its separate old-runtime cleanup.
- Current mutation and Gateway completion read only their named pair. Main's existing all-row admission reader is retained only by the shipped package-finalization bridge, as the accepted fallback below.

Current source/executor/lifecycle/transaction/finalizer checks remain. Explicit repeated repair uses its existing abandonment and exclusive-ownership checks, not a foreign stored-recovery veto; it does not replay the saved cohort. Snapshot collection defers only inside this operation's existing live publication capture, preserving its rollback bytes without consulting foreign records. The shipped `finishInterruptedUpdate` export keeps its real staged finalization, pinned as a source build entry because the compatibility inventory names it.

No new state, flag, timer, death proof, schema/stored shape, or launcher/Gateway protocol change. Doctor-compatible reads remain for legitimate current cross-build bookkeeping, not foreign admission.

**Accepted legacy edge:** package-only finalization retains main's `recoveryAdmission` worker, coherent facts and assertion on its selected service/history roots. The schema-refusal/copy-cost cleanup is not redesigned here. Ordinary readiness guards keep their original no-recovery early return; modern release admission remains physical-only.

## Size

`tokei` on this PR's 39 runtime source files, excluding tests/support/harnesses and fixtures, against merged main `1e6d3f9bd9ecdbb061908ed30090bcf2fd6d7c2f` (original before-code base: `5c815265d5281c7929ab7483bd4e471e54e5c0ff`):

| | Before | After | Net |
| --- | ---: | ---: | ---: |
| Production code lines | 11,335 | 10,362 | **−973** |
| Test/support lines | | | **−2,447** |

Tooling routing/inventory and the update implementation contract are updated with the cut; their deletions are not counted as runtime savings.

## Verification

- Current head `b4e588ff5f9e35a27faa20232819c7f73e100d4a`, tree `12b76c0debe4b9b4ee2274c3459acce54acc1c3d`, fixes the landing review's lease-permission regression: slot inspection opens through the existing lease-store preparation owner, not direct identity capture. The existing slot table now covers an idle owned `0644` store being repaired to `0600` without refusing admission or changing history. Normal hooks passed; **current-head CI is pending**. Predecessor `63010e7d0af9` completed 87 successful checks with no failures/pending checks, including schema, copy-cost, healthy-caller, type, lint, ratchet and extension-boundary gates ([run](https://github.com/openclaw/openclaw/actions/runs/45952703299)).
- Corrected AWS Linux base proof: seven selected contracts, **six meaningful failures and one terminal-history control pass**. A pre-repair repeated-repair comparison selected two positive cases; both failed meaningfully. This supersedes the initial host-only baseline, which is not counted as Linux proof.
- AWS `747bd654fa01`: **145 passed, two skipped** across nine files; core/core-test/scripts/tooling types, changed lint/format and dead-export scans passed. AWS `9901b03a6ae4`: **132 passed** across six affected files, including real snapshot rollback and CLI deadline integration; core/core-test types, scoped lint/format and dead-export scans passed. [Final run](https://crabbox.openclaw.ai/portal/runs/run_95deb2b3c2b56df85ff53e839750f5c5). These are qualified source snapshots, not exact `2dfc213fbdc6` proof.
- The final local identity ratchet could not resolve the original base object after normal synthetic-source sync; that is a setup gap, not a policy verdict. Current CI owns the ratchet and the later two-root schema repair. Both owned AWS leases were released with exact `stop --wait` receipts; no paid resource remains.
- Predecessor `63010e7d0af9` passed the Linux published-to-head [`docker-seed-e2e` / `release-update-survivor` lane](https://github.com/openclaw/openclaw/actions/runs/45952703299/job/140352861920) in 2,615 seconds; healthy/crash/downgrade receipts are artifact 15179778195. Latest-head CI remains the landing gate. The standalone fixture-kit producer remains unsupported unchanged on AWS Linux because it requires Studio/macOS-only ocx cloning; no kit patch, host build, shim or separate paid campaign was used.
- Two local review rounds completed. The first review's request to restore foreign cohort settlement is [explicitly rejected](#206295 (comment)) under Ayaan's rule; its concrete repeated-repair case, build reachability and real path-state testing concerns are addressed. The second review's current-operation snapshot-retention finding is fixed through the existing live capture, not a foreign-row permission check. The maintainer reviews only this final delta.
- The active-list query now excludes the two protected named rows before its limit; `run.ts` has no ID comparisons and the identity allowlist does not grow. Four CI failures that asserted the deliberately retired foreign-record refusal were removed or migrated while retaining current-operation, service-profile and saved-evidence assertions.
- `47d896edda06` passed the two split-root schema cases but added a second snapshot on the common readiness path (`update-command-recovery-cost.test.ts:77`). Per maintainer direction, the move is reverted and main's admission is retained only for package finalization. Both schema assertions and the copy-cost assertion remain unchanged. Current reporting refusal remains; only the retired global-malformed-row policy tail is deleted. Current CI owns the fallback's qualification; earlier AWS snapshots do not prove it. Runner-shutdown ratchets and WebKit apt 403 were infrastructure failures, not product verdicts.
- Maintainer landing review and latest-head CI remain required; no worker merge performed.

Co-authored-by: Ayaan Zaidi <[email protected]>

(cherry picked from commit 91d4912)

Release adaptation: Port the modern release preparation admission boundary only: retain the published package updater’s existing recovery contract, check live in-place custody and restore directories, interrupt only unowned run history, and preserve beta.2 release/runtime cleanup outside that boundary. No schema or row-shape changes.

Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): f84b705 fix: preserve lower-token guidance for unaffordable requests (#201392); dae01a9 fix: keep other agents running when one store is refused (#208364); a20fd1c fix: avoid competing Gateway test boots and cold agent mutation imports (#208203); c9f7a98 fix: keep container Gateway commands from rolling back host updates (#208271); edb6820 fix: let the Gateway restart while boot plugin maintenance is running (#208074); 516166c fix: exit once when gateway run rejects an argument after an update (#208068); 07e96dc fix: restart the Gateway after real plugin repairs (#208207); 13059ef fix: keep the PostgreSQL Doctor preflight test from timing out on module loading (#208225); 50d7708 fix: keep Claude fork compaction out of the parent chat (#208192); bd48ff6 fix: avoid restarting the Gateway for plugin timestamp changes (#208119); 259f71c fix: stop Linux service starts from copying the whole agent database (#207969); 7cb8975 fix: keep forked Claude chats separate after a Gateway crash (#208048); 407b523 fix(slack): thread queued DM replies under the triggering message (#208133); 43b5b52 chore(release): close out 2026.11.11 on main (#208114); 5d5284c fix(ci): add tagged reply control to the PR wrapper inventory (#208120); 1782ab0 fix: keep confirmed sends in the receiving chat's model history (#208049); 6d300d3 fix: restart launcher-managed Gateways after exit 78 (#207972); c4a675f fix: avoid reloading unchanged plugins after Gateway boot (#207949); 13c67a1 fix: let updates back up deeply nested databases (#207756); e2fcd4d fix: acknowledge updates when the Gateway first becomes ready (#207819); 8933edd fix: name safe recovery when agent schema markers disagree (#207705); 19e9dd6 fix(gateway): keep Linux legacy lock recovery explicit (#207340); 3256a47 test(update): move package ownership coverage to preparation (#207581); fbf1aae fix: give safe update ownership guidance and restore legacy result delivery (#207640); a922203 refactor(update): remove native post-activation Doctor subprocess (#207585); 7ac87ad fix: avoid taking service-account ownership during updates (#207563); b3902a2 fix(update): allow in-place updates without a full state copy (#207448); ece7a74 improve(workboard): apply the Control UI glossary and style to Workboard copy; 1c89587 fix: update system service packages without root state changes (#207304); dfd17d0 fix(docker): avoid pre-boot Doctor delays on container recreation (#207200); b616036 refactor(subagents): simplify ACP spawn relay ownership (#207023); 93ca762 improve: reduce allocations when preparing session rows (#207109); adb3716 fix(update): surface boot plugin repair advisories (#207163); f79ef8c fix: finish updates of 2026-11-17 main checkouts automatically on Linux and macOS (#207062); 3c4362b fix(update): preserve exception causes in failure history (#207085); 539f37f perf(gateway): keep legacy lease inspection out of heartbeats (#207084); 7a20389 fix: preserve source ranges in compaction requests (#207045); 20c92a4 fix: converge plugins after every Gateway boot (#206926); 3078862 fix(update): clean up rejected Git update worktrees (#207040); 73cb180 improve: reduce peak memory during Gateway startup update checks (#207073); 9993328 refactor(subagents): simplify kill claim and ownership handling (#207025); 97815bd refactor(subagents): consolidate registry cleanup and publication guards (#207064); 49c5e3e fix: let the end-of-turn recovery request reuse the turn's cached prompt (#207052); e94f799 refactor(subagents): centralize requester turn matching (#206584); e2e0974 fix(doctor): skip the state schema repair when its read-only plan finds nothing (#206694); 15e840e fix(ci): clear stale restart-sentinel exports from the dependency report (#206911); a72dcc9 fix(agents): resolve utility models against the session owner's role (#206962); 8ae0874 improve(gateway): avoid redundant cleanup for empty legacy auth stores (#206867); af1f26c improve: avoid unused proxy runtime in local text replies (#206931); 179e0c4 fix: label conversation data in system updates; ea77ca3 refactor: report update failures from recorded runs (#206700); 18e53d8 fix: finish Linux upgrades after a legacy Gateway crashes (#206530); f0e7d96 fix: preserve large snapshots in trajectory exports (#206810); c7ea9f4 improve: reduce memory used to renew state leases (#206798); 4d7e00b fix: let started participant runs and requests finish after an access change (#206747); dff00f3 fix(mcp): bound unavailable server notices in each turn (#206318); 9845bf5 fix(test): keep readiness abort fixtures alive until stopped (#206660); 844bfbf improve(build): trim unused imports from standalone relays (#170187); d4d45a7 improve: reduce memory when reading saved credentials (#206686); 461f650 fix(ci): keep startup helpers internal (#206649); f89ae43 refactor(subagents): use cleanup and terminal owners in sweeps (#206533); a882e0f fix(agents): preserve task answers when sessions are reused (#126263); 5c5f629 perf(config): keep update inspection out of ordinary config reads (#206607); ccb6d81 fix: finish core updates when the Gateway is ready (#206560); 74f02b4 fix: refuse root updates of a system service that runs as another account (#206343); 01032b1 fix(update): keep acknowledged run IDs when status is unavailable (#206562); cbdd907 fix: finish release updates after a slow launcher response (#206503); ad676f4 improve: reduce memory used by Gateway ownership checks (#206516); 81fc833 refactor(subagents): own dormant child Stop decisions (#206479).
Later PR-number mentions: `ccb6d8168658` fix: finish core updates when the Gateway is ready (#206560), `ea77ca3d602c` refactor: report update failures from recorded runs (#206700) Later commit-SHA mentions: `238c6daf2ba6` perf: import llm-core types from their leaf entry (#206518), `ccb6d8168658` fix: finish core updates when the Gateway is ready (#206560)
Pinned PR grep: ea77ca3 refactor: report update failures from recorded runs (#206700); ccb6d81 fix: finish core updates when the Gateway is ready (#206560); 91d4912 fix(update): stop using foreign recovery records as admission (#206295); 41afc0f fix(update): keep successful plugin reload warnings advisory (#206372)

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant