Skip to content

fix(update): omit missing recovery originals from cleanup - #174241

Merged
steipete merged 1 commit into
mainfrom
upd/upd-l1647
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/upd-l1647

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

openclaw update cleanup lists originals that disappeared long ago and includes their manifest-recorded sizes in protected byte totals.

Fixes #174153.

User Impact

Missing originals now appear once as a count, with no per-path rows or phantom bytes, in both preview and apply. Existing files retain their protection and interrupted disposal remains resumable. JSON exposes the count as missingOriginals.

Why This Change Was Made

The recovery inventory now separates the filesystem-backed cleanup report from the receipts Doctor still needs to reconcile interrupted duplicate retirement. It counts each missing path once, even when multiple manifests reference it, and derives logical bytes from present files or disposal claims. No deletion eligibility, options, dependencies, or SQLite schemas change.

The capture portion already has owners on main: update-capture-cleanup.ts lists selected capture roots (including unrecorded directories), and retires eligible superseded captures. Standalone Doctor's 30-day retention was introduced by 0b0849145990; 0492dc8828a5 (#173711) preserves that retirement pass when the container activation marker skips another full capture. Unfinished and unresolved failed-update captures are deliberately protected. Standalone Doctor retention only covers sealed, unassociated schema-v2 baseline captures older than 30 days; incomplete/unattributed leftovers do not meet that contract. Retiring those remaining protected classes would require extending policy, so Part 2 changes are deferred as requested.

Evidence

Source confirmation: on d2b07e89a09c, inventory line 164 falls back to recorded sizes after the missing-path stat at line 154. The historical verification branch precedes the missing-artifact guard. git log -S historical-manifest-without-import-proof traces that behavior to 78d2d914db75 (#133864).

The new production-command regression failed against d2b07e89a09c: three absent originals appeared individually, and protected bytes were 18 instead of the actual 9. It passes after the fix, exercising JSON preview/apply and text output with duplicate manifest references.

Local live proof used isolated HOME and OPENCLAW_STATE_DIR, synthetic manifests, and the real runCli entry point (no mocks). Preview and apply report missingOriginals: 2, one protected 9-byte original, and zero removed files; text emits one aggregate note. pnpm dev update cleanup --dry-run --json first stopped at the source runner's runtime-publication guard before cleanup; no Gateway was stopped or changed. The source entry-point proof runs without publishing runtime artifacts.

Validation: all 17 selected files passed 172 tests (initial 8: 71; remaining direct-import siblings: 101); core tsgo, the targeted cli-update test typecheck (15.1s), touched-file oxlint/oxfmt, and Madge (0 cycles) passed. Independent Codex review found no actionable P0–P2 issues.

Timing: the new regression took 0.463s. CLI wall time was 101.72s, dominated by transform/preparation (87%). The unchanged retirement-disposal suite accumulated 121.214s of test time across its destructive failure scenarios: each creates and imports a fresh SQLite recovery fixture before testing a separate interruption boundary. The unchanged generation-recovery and shared-owner suites accumulated 123.659s and 157.467s respectively; they repeatedly import and restore isolated database generations and multi-owner fixtures. The unchanged container-upgrade case preserves schema 19 at startup, then backs it up and repairs it through Doctor took 37.507s while exercising real startup, backup, and Doctor migration. Per the campaign ruling, these pre-existing costs are recorded rather than treated as lane blockers. The remaining sibling group took 591.22s wall, with 101 tests passing.

Diff size: production +34/-8 (net +26); tests +97/-0; docs +7/-3. The small production growth carries the aggregate through preview/apply and preserves the full receipt inventory for Doctor; no extra retention mechanism is introduced.

The pre-publication freshness check found #174153 still open and no newer main commit touching the recovery inventory, retirement, CLI cleanup, or capture owners.

The full check:changed SQLite inventory pass is omitted under the campaign's local gate budget; PR CI owns broad proof.

Live commands

With HOME and OPENCLAW_STATE_DIR exported to the synthetic fixture under this worktree's .artifacts/, the source driver invokes runCli([process.execPath, 'openclaw', ...process.argv.slice(2)]):

node --import ./scripts/tsx.mjs .artifacts/l1647/live-cli.mts update cleanup --dry-run --json
node --import ./scripts/tsx.mjs .artifacts/l1647/live-cli.mts update cleanup --dry-run
node --import ./scripts/tsx.mjs .artifacts/l1647/live-cli.mts update cleanup --yes --json
Missing recovery originals: 2 (historical receipts retained; no bytes on disk).
Candidates: 0 bytes; verification required: 0; protected: 9; blocked: 0.

Apply: status: complete, missingOriginals: 2, removedFiles: 0. The surviving original remains byte-for-byte original\n.

Report absent originals once without counting historical sizes as disk bytes. Preserve Doctor reconciliation receipts and resumable disposal, and cover preview and apply through the cleanup command.

Fixes #174153
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@steipete
steipete marked this pull request as ready for review October 16, 2026 13:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:20:05.821934Z e4325a9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes commands Command implementations size: S labels Oct 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces missing recovery-original rows and phantom byte totals with one aggregate count.

Example: Two absent originals and one present 9-byte original are referenced by recovery manifests.

  • Before: Cleanup lists the absent paths individually and can include their recorded sizes in protected totals.
  • After: Cleanup reports missingOriginals: 2, shows the present original, and reports 9 protected bytes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused code and supplied entry-point proof support the reporting fix; the linked issue is only partially addressed and should remain tracked.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Supplied terminal output exercises the changed inventory and renderer through runCli in isolated synthetic state, covering JSON preview, JSON apply, aggregate text output, zero removals, and preservation of the present original.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Cleanup buries existing recovery files under absent-path rows and overstates disk bytes.
Reason: The narrow correction has clear operator value and preserves established recovery policy; because capture retirement remains deferred, the linked issue should use a Related reference instead of being automatically closed.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it usefully corrects cleanup reporting while preserving recovery safeguards, and no actionable introduced defect was found.

Priority: P2
Reviewed head: e4325a9329544578c8a984b3615ecd94a3c30923

Before merge

None.

Findings

None.

Agent review details

How this fits together

The update cleanup CLI consumes migration manifests and filesystem inventory, presents recovery-file eligibility and byte totals, and delegates confirmed retirement to the existing maintenance owner.

flowchart TD
  A[Migration manifests] --> C[Recovery inventory]
  B[Filesystem originals and claims] --> C
  C --> D[Cleanup report]
  C --> E[Doctor receipt reconciliation]
  D --> F[CLI preview and confirmation]
  F --> G[Existing retirement owner]
Loading

Technical review

Best possible solution:

Land the focused reporting correction while keeping broader capture-retirement policy tracked separately.

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

Current main directly exposes the missing-path and recorded-size fallback; the supplied command regression reportedly fails on the base and passes on the head, and no target code was executed during this review.

Is this the best way to solve the issue?

The existing inventory owner is the right boundary: filtering its presentation while retaining receipts and dependency protection fixes reporting without expanding deletion eligibility.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Recovery inventory and byte accounting changes intended behavior with a stated reason (78d2d91: The original cleanup feature conservatively inventories recovery claims and verifies originals before explicit retirement; this PR explains why historical recorded sizes must no longer represent bytes on disk.)
  • Doctor duplicate-retirement reconciliation keeps the original intent (7fb3367: Interrupted duplicate retirement must preserve surviving originals and reconcile every retained manifest; the patch keeps the full artifact inventory available to that owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 78d2d91 adds src/commands/doctor-session-sqlite-recovery-inventory.ts:176 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 78d2d914db75; files: src/commands/doctor-session-sqlite-recovery-inventory.ts)
  • Leon-SK668: Raw commit b1c68b9 adds src/commands/doctor-session-sqlite-retirement.ts:60 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: b1c68b936f77; files: src/commands/doctor-session-sqlite-retirement.ts)

PR surface

Source +26, Tests +97, Docs +4. Total +127 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 34 8 +26
Tests 2 97 0 +97
Docs 1 7 3 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 138 11 +127

Review metrics

Metric Value Why it matters
Production versus test changes Production +34/-8; tests +97/-0 The production growth carries aggregate reporting through preview and apply while preserving Doctor's complete receipt inventory; the new test exercises the real cleanup command.

Labels

Label changes:

  • add P2: Misleading cleanup rows and phantom byte totals impair operator review without establishing data loss or an unavailable runtime.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Misleading cleanup rows and phantom byte totals impair operator review without establishing data loss or an unavailable runtime.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 October 16, 2026, 9:32 AM ET / 13:32 UTC.

@steipete
steipete merged commit fd2d5d0 into main Oct 16, 2026
211 of 214 checks passed
@steipete
steipete deleted the upd/upd-l1647 branch October 16, 2026 13:34
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'c99bc43bffb351d0e37d72b2f4aa89f7d4fd116b': (157 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (157 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…157148)

* feat: describe decision capabilities in model catalogs

Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* fix: apply shared plugin model policy to decisions

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat: support plugin-owned model credentials

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat(decisions): preserve richer answers with versioned data codecs

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* chore(sdk): record approved Decision V2 data allowance

Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

Co-authored-by: steipete <[email protected]>

* fix(models): retain decision facts on their declared routes

Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.

* feat(decisions): enforce shared plugin model policy

Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch.

Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build.

Original PR: #156621

* fix(models): include inference metadata in extracted tooling

* chore(models): include metadata tooling closure repair

* commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301':
  fix(models): include inference metadata in extracted tooling

* feat(auth): integrate plugin-owned model credentials

Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior.

Co-authored-by: steipete <[email protected]>

* fix(models): preserve decision policy on current main

* merge: integrate current model policy into plugin auth

Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged.

* feat(decisions): integrate versioned data codecs on shared auth

Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion.

* fix(decisions): preserve explicit owner-agent selection

* merge: preserve decision owner selection in plugin auth

Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains.

* fix(decisions): carry owner-bound policy repair into data stack

Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification.

* merge: reconcile plugin auth with landed model policy

Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy.

* chore(decisions): reconcile data stack with published auth ancestry

Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner.

* fix(auth): retain plugin credential authority through dispatch

* chore(decisions): integrate canonical auth authority fix

* fix(decisions): distinguish plain record validation

* test(auth): preserve health probe exports in lifecycle fixture

* chore(auth): integrate repaired main for credential lifecycle gates

* chore(decisions): integrate repaired auth authority

* chore(auth): integrate current main for landing

* chore(decisions): integrate current auth authority

* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…dates (openclaw#174241)

openclaw update cleanup listed hundreds of recovery originals that no longer exist (83% of entries in the report) and counted their manifest-recorded sizes as reclaimable bytes. The recovery inventory now reports one count of missing originals with zero phantom bytes, while preserving Doctor's recovery receipts and interrupted-disposal handling. Update-capture directories already have a listing and standalone Doctor's 30-day retention owner; extending retirement to protected/incomplete captures is a policy question left unchanged.

Fixes openclaw#174153
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#157148)

* feat: describe decision capabilities in model catalogs

Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* fix: apply shared plugin model policy to decisions

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat: support plugin-owned model credentials

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat(decisions): preserve richer answers with versioned data codecs

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* chore(sdk): record approved Decision V2 data allowance

Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

Co-authored-by: steipete <[email protected]>

* fix(models): retain decision facts on their declared routes

Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.

* feat(decisions): enforce shared plugin model policy

Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch.

Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build.

Original PR: openclaw#156621

* fix(models): include inference metadata in extracted tooling

* chore(models): include metadata tooling closure repair

* commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301':
  fix(models): include inference metadata in extracted tooling

* feat(auth): integrate plugin-owned model credentials

Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior.

Co-authored-by: steipete <[email protected]>

* fix(models): preserve decision policy on current main

* merge: integrate current model policy into plugin auth

Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged.

* feat(decisions): integrate versioned data codecs on shared auth

Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion.

* fix(decisions): preserve explicit owner-agent selection

* merge: preserve decision owner selection in plugin auth

Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains.

* fix(decisions): carry owner-bound policy repair into data stack

Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification.

* merge: reconcile plugin auth with landed model policy

Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy.

* chore(decisions): reconcile data stack with published auth ancestry

Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner.

* fix(auth): retain plugin credential authority through dispatch

* chore(decisions): integrate canonical auth authority fix

* fix(decisions): distinguish plain record validation

* test(auth): preserve health probe exports in lifecycle fixture

* chore(auth): integrate repaired main for credential lifecycle gates

* chore(decisions): integrate repaired auth authority

* chore(auth): integrate current main for landing

* chore(decisions): integrate current auth authority

* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (openclaw#174249)
  perf(agents): release completed attempt transcript references (openclaw#174236)
  refactor(ui): bind board frames through Solid refs (openclaw#174180)
  fix: stop repetitive output from small models (openclaw#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (openclaw#174241)
  refactor(ui): remove transcript virtualizer controller registry (openclaw#174231)
  fix(ai): surface bounded response errors before cancellation settles (openclaw#174238)
  refactor(test): reuse descendant-death waits (openclaw#174240)
  refactor: consume existing channel and SDK type owners (openclaw#174010)
  refactor(ui): bind sidebar session classes directly (openclaw#174229)
  fix(logging): omit content from AI transport diagnostics (openclaw#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (openclaw#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (openclaw#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (openclaw#174224)
  feat(build): support selected standalone plugins (openclaw#173794)
  refactor(ui): bind browser input through viewport refs (openclaw#174138)
  refactor(ui): simplify multi-select callback ownership (openclaw#174225)
  refactor: simplify settings input ownership (openclaw#174222)
  refactor(ui): pair popup and hovercard listener teardown (openclaw#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts

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

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: update cleanup inventory lists hundreds of non-existent recovery originals; capture dirs accumulate with no cleanup path

1 participant