Skip to content

refactor(acp): migrate legacy session metadata through Doctor - #162920

Merged
steipete merged 3 commits into
mainfrom
refactor/acp-doctor-canonical-metadata
Oct 4, 2026
Merged

steipete merged 3 commits into
mainfrom
refactor/acp-doctor-canonical-metadata

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Older ACP state can keep native conversation locators under historical keys or embedded in session entries. Runtime readers and writers currently interpret those shapes independently, repair state during ordinary requests, and can disagree about session ownership.

User Impact

Doctor becomes the single repair owner. It creates verified private SQLite backups, resolves the owning session and lifecycle, rekeys historical rows, and imports embedded ACP metadata. It records completion before removing the embedded source field so interrupted cleanup cannot reopen metadata after the canonical session was closed. Ambiguous owners, conflicting payloads, changed databases, and unmatched bindings retain their source data and receive actionable diagnostics.

Upgrade behavior and normalization

The candidate's existing update-time Doctor pass runs the repair before startup. Startup refuses restored, unmigrated ACP state before admitting the affected session store. Operators restoring older state should stop the Gateway, run openclaw doctor --fix, and restart.

Raw-key rekeying preserves every metadata column except the key. Embedded imports retain canonical identity, runtime options, lifecycle binding, and activity fields; the source session entry's update timestamp becomes the metadata update timestamp. Unknown embedded fields remain in the verified backup. Duplicate JSON properties retain the session decoder's last-value semantics. The migration fixtures and Doctor documentation describe these deliberate normalizations.

Why This Change Was Made

Runtime consumes canonical metadata. The cutover removes legacy key codecs, embedded-field fallbacks, alias cleanup, and read-time repair. Session resolution, patch responses, chat metadata/history, previews, and the embedded TUI consume prepared canonical facts. Session creation binds its committed identity to the existing mutation-authority owner; asynchronous preparation retains the post-await authority checks. The published synchronous ACP SDK reader remains available and reads canonical state.

Durable-data exception and retention

The net +597 production lines qualify for the durable-data exception because they preserve existing native conversations, including opaque physical backend and resume identifiers. This is more than a metadata label: manager.runtime-handle-ensure.ts reconstructs the persisted handle and passes resolveRuntimeResumeSessionId(identity) into runtime.ensureSession. That resolver uses identity.agentSessionId or identity.acpxSessionId; identity.acpxRecordId and runtimeSessionName identify the physical backend record. ACPX validates that locator against its owner and uses the resume ID when reopening the native session. Discarding these values can detach the existing conversation or start another native session; an OpenClaw display row or transcript cannot reconstruct those opaque identifiers or the backend's native session state. No preference, display-state, or cache migration is added.

These formats have concrete shipped writers within the 2026-07-01-or-later support window:

Shape Shipped writer evidence
Embedded entry.acp Moving new ACP writes to SQLite in db40fde88c6 did not end writes of retained embedded metadata. v2026.7.1-2 serializes projectSessionStoreForPersistence(...).store. In v2026.9.7, writeSessionEntry passes the copied entry through projectCanonicalSessionEntryShape, which retains acp, then splitSessionEntrySnapshots includes it in entryJson and the node writer persists it.
Raw SQLite ACP keys v2026.7.1-2 writes the supplied sessionKey directly to acp_sessions.session_key. Encoded keys arrived in 1ca60fbc3a3, included in v2026.8.1.
Ownerless encoded ACP keys v2026.8.1's sessions command omits agentId from its batch metadata read. The batch read computes [null, key] and persists it when rekeying a historical row. 1b5dc72557c later removed that read-time writer.

These boundaries were checked with git log -S/-G and release-tag source. The migrations therefore remain; the date of the original format introduction is not its last-write cutoff.

Same-owner offsets are included: the ordinary ACP reader/writer/key/control paths shrink +92/-388/net -296, including deletion of the 55-line session-meta-legacy-cleanup.ts and consolidation of key/read/write paths. The ACP Doctor/migration/startup portion is +794/-124/net +670, making the ACP owner subtotal net +374. The remaining net +223 carries canonical owner facts and authority through its existing callers. No pre-July-only Doctor migration retirement is claimed as an offset for these still-supported shapes.

Whole PR production: +1379/-782/net +597. Measured at c11521f296032e57e025f8d3952639842a18e31d from the complete GitHub files response across two API pages: 105 files, including 56 production files in src/** and extensions/**. Tests, test support/helpers/utils/harnesses, e2e, fixtures, and doctor.fast-path-mocks.ts are excluded. The requested path scope includes the +1/-1 Gateway instruction edit, with zero net effect.

Significant overlaps include the prepared catalog, closed-ACP provenance, and patch-response owners covered by #161456, #160851, and #161030. Main's current worker, authority, and startup behavior is retained. The earlier admission conflict preserves main's asynchronous Goal/skills preparation and queued-source cancellation release. Canonical ACP metadata survives recursive authority revalidation, and both admission branches return the async commit promise so the writer barrier stays held until preparation settles. The earlier stringBytes integration and retired-field removal remain unchanged. The preceding rebase preserves the ACP test consolidation from #164238: combined file/incognito joins, the single authority-revocation table, and table-driven Doctor key repair. The two removed alias-rebind cases renamed the canonical row into a historical alias before the runtime read; their assertions depended exclusively on the retired runtime alias-selection path. Durable alias payload, binding, conflict, backup, and rerun protection remain in Doctor tests, while runtime update/close still proves every historical row survives unchanged. The final integration preserves main's worker-backed retry comparison and canonical session reloads from #164313, retains ACP facts across Goal reentry, and returns both commit promises. The TUI prepared-runtime file is now byte-identical to main, so its obsolete catch no longer appears in this PR. The base includes both the Nextcloud Doctor fix 96622c4 and the pending-input fixture repair b02cc06; the ACP update proof retains normal plugin policy. Later main TUI fallback and session-signal worker changes were inspected and merge cleanly without changing this patch. The latest two fixture conflicts preserve the canonical ACP cases while adopting main’s agents.entries shape. Main’s detached-maintenance custody repair b58e6e98933 is retained byte-for-byte. Scoped discovery derives custom template roots before filtering target agents. Prepared metadata absence remains authoritative through defaults, rows and operator presentation; display-identity cache entries match their captured metadata snapshot. The subsequent empty-batch correction avoids dispatching an ACP read after catalog-only invalidation; it adds no cache. These bounded review repairs add net +17 production lines over the conflict-only integration. The response-race test assigns its successor owner through the canonical worker operation instead of an ignored row field, preserving the exact denial and successor-state assertions.

Evidence

  • Exact-head CI 37167922766, attempt 1, passed for c11521f296032e57e025f8d3952639842a18e31d. Those completed source gates are reused for final proof; they do not substitute for the required published-driver update cell.
  • Prepared head: c11521f296032e57e025f8d3952639842a18e31d; tree 9be407b1de4d1c4686c46c6369558b124d01e525, based on main 28a6f71449aa5542c9fb825dcb3423dfbb7abf82. Native staged-content and formatting hooks passed. Independent P2 reviews identified and resolved the custom-root and metadata ownership defects. The final review’s remaining startup-authority concern was rejected after inspecting the existing history owner: it revalidates session identity and sharing after the awaited projection, and again before later delta or retained-transcript publication. No duplicate authority callback was added.
  • Prior-head CI 37120119379 passed at 350727d303900c3e40bfe55b3ae656ba13a4311a. The later run 37126191741 at 1a19238 failed only the four inherited pending-input read-fixture cases and the aggregate. Their host clock mock did not control worker acceptance timestamps, and reads raced receipt settlement. Main fixed those fixtures in b02cc06, with all six cases passing in 101.83 seconds and eight operation cases passing, including a held-completion cancellation probe. This candidate includes that landed fix; current-head CI passed as recorded above. No local tests ran.
  • Earlier published-driver attempt: Hetzner lease cbx_0ddfa2afe062, run run_d6e79a9991bae88e4bfa058f0b506865. Packaging took 662.64s and the unmodified published 2026.9.7 updater completed in 305s. Its postassertion then failed because it counted every receipt for the agent database path: one ACP receipt plus two older auth receipts. Read-only inspection of preserved SQLite families confirmed the exact ACP binding/source hash and unchanged auth receipts. This was a proof-query defect, not duplicate migration. All preserved source bytes stayed unchanged.
  • The corrected proof scopes receipts by ACP kind, target, source binding, hash and size, and separately requires both prior auth receipts to remain unchanged. It preserves canonical-row, exact-backup, installed-build, Doctor-idempotence, closed-replay, and Gateway-health assertions. The original lease ended before remaining checks; its package and installed-artifact identity were not recovered, so it is not claimed as complete update proof.
  • The prior 8bc2260 CI run 37137149985 failed the three inherited Doctor lease cases. A clean-main comparison reproduced those exact cases; main’s b58e6e98933 repair is included in this integration. No passing baseline or completed update is inferred from that failed run.
  • Completed published-driver proof: Hetzner lease cbx_7ebc9f3d6eb1, run run_d9e0d840af26ac29eedc30cbdf2ee0cb, exact c11521f source/tree above. Frozen install ran first. All 272 cases across 12 remaining focused files passed, including corrected response authority; the narrow negative control failed exactly the two intended replacement/reassignment cases, then pristine source was restored. Normal build/package and tarball validation passed in 705.90s. The unmodified published 2026.9.7 updater passed in 344s, with canonical rows, exact backups and scoped ACP receipts verified before manual candidate Doctor, while prior auth receipts remained unchanged. Repeat Doctor passed in 16s; restoring the closed embedded source followed by another Doctor pass (15s) did not reopen it. The candidate Gateway started and passed its health check, then stopped. The complete published cell took 418.97s; total remote command 1911.019s. Catalog (37.05s) and custom-root discovery (50.08s) reuse their passing 75cfa3f proof; the only subsequent source delta was the corrected authority test fixture. Whole-PR remote check-changed was not rerun: source gates use the green exact-head CI listed above. This is isolated synthetic-state Linux proof, not a live external ACP backend conversation.

Release-note context

ACP upgrades preserve existing native-agent conversation and resume bindings by migrating historical session keys and embedded state through Doctor with verified backups and replay protection. Runtime now reads canonical state only; after restoring an older session store, stop the Gateway and run openclaw doctor --fix before restarting.

@clawsweeper

clawsweeper Bot commented Oct 1, 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 gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: XL labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed October 3, 2026, 9:51 PM ET / October 4, 2026, 01:51 UTC (Revision 26).

ClawSweeper review

What this changes

The PR moves historical external-agent session metadata repair into Doctor, adds verified backups and replay protection, and makes runtime consumers read canonical SQLite metadata.

Merge readiness

⛔ Blocked before merge - 6 items remain

This work remains distinct and necessary: current main and the latest release retain legacy metadata readers. No new actionable defect was established, but the existing upgrade and authority proof blockers remain unresolved.

Priority: P2
Reviewed head: c11521f296032e57e025f8d3952639842a18e31d

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation has useful source and CI support, but the two material qualification gaps prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: sessions.patch adopts creation identity at lifecycle commit and awaits canonical ACP metadata before responding; recorded allowed creation and rejection after permission revocation, replacement, or reassignment remain missing. The trusted-author exemption otherwise applies. Independently, the partial published-2026.9.7 update lacks recovered candidate identity and completed preservation, replay, and startup assertions, so stored-data compatibility remains insufficient. Redacted terminal traces or logs are appropriate; update the PR body for automatic re-review, or ask a maintainer to comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: sessions.patch adopts creation identity at lifecycle commit and awaits canonical ACP metadata before responding; recorded allowed creation and rejection after permission revocation, replacement, or reassignment remain missing. The trusted-author exemption otherwise applies. Independently, the partial published-2026.9.7 update lacks recovered candidate identity and completed preservation, replay, and startup assertions, so stored-data compatibility remains insufficient. Redacted terminal traces or logs are appropriate; update the PR body for automatic re-review, or ask a maintainer to comment @clawsweeper re-review.
Evidence reviewed 10 items Pinned introduction and clean checkout: Reviewed the verified merge-base-to-head introduction. The supplied test merge has stale parents and was not used to infer removal of current-main behavior. The checkout remained clean.
Current main still supports legacy reads: The fetched main reader still requests historical keys and legacy free-session aliases; its Doctor implementation does not contain this branch's embedded-import cutover. The central change is not already implemented.
Latest release retains legacy readers: The v2026.9.8 source likewise requests legacy keys. Local release-blob inspection failed because the blob was unavailable and its retrieval returned HTTP 403; the GitHub contents API supplied the release source successfully.
Findings None None.
Security None None.

How this fits together

ACP connects OpenClaw sessions to external agent runtimes and stores the identifiers needed to resume their conversations. Doctor repairs historical stored metadata before Gateway admission; runtime readers then use that metadata for routing and session presentation.

flowchart TD
  A[Historical session metadata] --> B[Doctor repair]
  B --> C[Verified backups]
  B --> D[Owner and lifecycle checks]
  D --> E[Canonical metadata and receipts]
  E --> F[Gateway admission]
  F --> G[Agent routing and session views]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: sessions.patch adopts creation identity at lifecycle commit and awaits canonical ACP metadata before responding; recorded allowed creation and rejection after permission revocation, replacement, or reassignment remain missing. The trusted-author exemption otherwise applies. Independently, the partial published-2026.9.7 update lacks recovered candidate identity and completed preservation, replay, and startup assertions, so stored-data compatibility remains insufficient. Redacted terminal traces or logs are appropriate; update the PR body for automatic re-review, or ask a maintainer to comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Existing or restored legacy ACP stores now stop at admission until Doctor succeeds; the incomplete published-updater evidence does not yet verify preserved resume bindings, backup fidelity, idempotence, closed-source replay prevention, and healthy startup.
  • Resolve merge risk (P1) - Committed creation identity now participates in session-patch authority across an awaited metadata read; recorded allowed creation and final-response rejection after write-permission revocation, session replacement, and ownership reassignment remain unproven.
  • Complete next step (P2) - Complete the source-identified published-updater compatibility cell and record allowed creation plus revoked, replaced, and reassigned session-patch final-effect outcomes.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus regression coverage production net +597 lines; tests and support net +938 lines Production growth has a stated durable-conversation preservation rationale, while migration and authority coverage grows separately.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/acp/runtime/session-meta-doctor.ts, migration/backfill/repair: src/acp/runtime/session-meta-migration-embedded.ts, migration/backfill/repair: src/acp/runtime/session-meta-startup.ts, migration/backfill/repair: src/commands/doctor-session-transcripts.ts, migration/backfill/repair: src/config/sessions/startup-migration.ts, migration/backfill/repair: src/infra/state-migrations.acp-session-metadata.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete the existing qualification (recommended)
    Supply source-identified published-updater results and production-boundary authority outcomes before landing the canonical-only cutover.

Technical review

Best possible solution:

Keep Doctor as the sole repair owner, with lossless restart-safe migration and canonical runtime reads qualified against supported existing installations.

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

Not applicable to this migration refactor; source inspection establishes the legacy paths and changed admission boundary. No runtime reproduction or tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes, concentrating normalization in Doctor follows the existing ownership contract and removes competing runtime interpretations; the available evidence does not yet qualify the upgrade and authority boundaries for merge.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded session-storage reliability improvement without a demonstrated urgent current-user outage.
  • merge-risk: 🚨 compatibility: Canonical-only admission can stop existing legacy installations unless update-time Doctor repair completes.
  • merge-risk: 🚨 session-state: Migration rewrites durable conversation bindings and removes embedded sources, requiring completed preservation and replay evidence.
  • merge-risk: 🚨 security-boundary: Creation authority is carried across asynchronous response preparation without completed forbidden-principal final-effect proof.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: sessions.patch adopts creation identity at lifecycle commit and awaits canonical ACP metadata before responding; recorded allowed creation and rejection after permission revocation, replacement, or reassignment remain missing. The trusted-author exemption otherwise applies. Independently, the partial published-2026.9.7 update lacks recovered candidate identity and completed preservation, replay, and startup assertions, so stored-data compatibility remains insufficient. Redacted terminal traces or logs are appropriate; update the PR body for automatic re-review, or ask a maintainer to comment @clawsweeper re-review.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the verified merge-base-to-head introduction. The supplied test merge has stale parents and was not used to infer removal of current-main behavior. The checkout remained clean. (c11521f29603)
  • Current main still supports legacy reads: The fetched main reader still requests historical keys and legacy free-session aliases; its Doctor implementation does not contain this branch's embedded-import cutover. The central change is not already implemented. (src/acp/runtime/session-meta-readonly.ts:58, 4a799871c1a5)
  • Latest release retains legacy readers: The v2026.9.8 source likewise requests legacy keys. Local release-blob inspection failed because the blob was unavailable and its retrieval returned HTTP 403; the GitHub contents API supplied the release source successfully. (src/acp/runtime/session-meta-readonly.ts:58, fc23bc864e45)
  • Migration preserves sources and prevents replay: Embedded repair verifies a backup, rechecks the source and canonical payload, records completion in the shared transaction, and only afterward removes the embedded field. Reviewed regressions cover backup fidelity, ambiguity, conflicts, changed sources, shared-store ownership, and interrupted cleanup after closure. (src/acp/runtime/session-meta-migration-embedded.ts:192, c11521f29603)
  • Startup changes the upgrade boundary: Startup rejects unmigrated ACP state and directs operators to offline Doctor repair. The documentation explicitly describes this behavior and the update-time repair path; compatibility therefore requires the published-updater cell rather than source checks alone. (src/acp/runtime/session-meta-startup.ts:28, c11521f29603)
  • Material authority change has a final response guard: Single-session patch creation now records its committed identity through the mutation-authority owner. The response awaits ACP metadata and then revalidates authority before publishing session facts. This makes allowed creation and rejection after revocation, replacement, or reassignment relevant final-effect scenarios. (src/gateway/server-methods/sessions-mutations.ts:193, c11521f29603)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete a source-identified published-updater cell proving preserved resume bindings, verified backups, idempotence, closed-source replay prevention, and Gateway health.
  • Record allowed patch creation and final-response rejection after write-permission revocation, session replacement, and ownership reassignment.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-03T10:37:04.323Z sha ba4aeae5b5ab3512604b411235e0c53f54c0d2b6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T11:41:18.321Z sha 350727d303900c3e40bfe55b3ae656ba13a4311a :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T13:33:08.964Z sha 1a19238 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T16:39:51.754Z sha 8bc2260 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T22:41:05.908Z sha b768f94 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T22:51:04.967Z sha b768f94 :: needs real behavior proof before merge. :: [P2] Supply a complete role definition in the catalog fixture | [P2] Assert the reassignment scenario's sharing-denial code
  • reviewed 2026-10-03T23:53:31.362Z sha 75cfa3f :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-04T01:31:12.008Z sha c11521f :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the refactor/acp-doctor-canonical-metadata branch 2 times, most recently from 83fecd5 to 24af1ee Compare October 2, 2026 03:19
@steipete
steipete marked this pull request as ready for review October 2, 2026 11:26
@steipete
steipete force-pushed the refactor/acp-doctor-canonical-metadata branch 2 times, most recently from 14d6b42 to 356bb4e Compare October 2, 2026 13:07
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Oct 2, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 2, 2026
@steipete
steipete force-pushed the refactor/acp-doctor-canonical-metadata branch 2 times, most recently from 9ee150c to d6b48e2 Compare October 3, 2026 00:51
steipete added a commit that referenced this pull request Oct 3, 2026
File preview identities now include the session key. The mocked files response
still returned main while the pane used agent:main:main, so the active row could
never match after the preview resolved. Match the response to the requested
session, preserving the delayed-directory response and both content/selection
assertions. No production behavior changes.

Remote proof on captured main 06ac4a4 using the native UI E2E owner reproduced
the one original failure across 3 tests in 47s; the reviewed correction passed
all 3 in 22s. Combined fixture proof used Hetzner lease cbx_0ddfa2afe062,
run run_2fdec9b8159f9fdd9a8551bc1b942607. Direct review was clean.

Refs #163185, #162920.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
File preview identities now include the session key. The mocked files response
still returned main while the pane used agent:main:main, so the active row could
never match after the preview resolved. Match the response to the requested
session, preserving the delayed-directory response and both content/selection
assertions. No production behavior changes.

Remote proof on captured main 1311a9c using the native UI E2E owner reproduced
the one original failure across 3 tests in 47s; the reviewed correction passed
all 3 in 22s. Combined fixture proof used Hetzner lease cbx_0ddfa2afe062,
run run_2fdec9b8159f9fdd9a8551bc1b942607. Direct review was clean.

Refs openclaw#163185, openclaw#162920.
@steipete
steipete force-pushed the refactor/acp-doctor-canonical-metadata branch 4 times, most recently from 1a19238 to 8bc2260 Compare October 3, 2026 16:31
steipete added a commit that referenced this pull request Oct 3, 2026
Move legacy ACP key and embedded session normalization into the Doctor and
startup migration owner, preserving opaque conversation/resume identities
with backups. Runtime reads canonical metadata through the existing worker
and projection owners.

Integrate current async retry preparation and canonical session reloads in
chat admission. Preserve commit-promise settlement through Goal reentry.
Remove the superseded TUI catch and retain main's behavior.

Independent P2 review is clean. Prior focused and hosted evidence remains
recorded in PR #162920; the refreshed published-driver cell will run on this
integrated candidate before landing.
@steipete
steipete force-pushed the refactor/acp-doctor-canonical-metadata branch from 8bc2260 to b768f94 Compare October 3, 2026 22:35
@steipete
steipete merged commit 12c5644 into main Oct 4, 2026
167 checks passed
@steipete
steipete deleted the refactor/acp-doctor-canonical-metadata branch October 4, 2026 02:26
steipete added a commit that referenced this pull request Oct 4, 2026
Merge main to resolve the account-control lane conflicts with auth-usage shutdown (#164588) and canonical ACP metadata (#162920).

Retain both close-prelude owners and pass canonical ACP metadata alongside prepared personal-account selection. The released account service signatures and storage contract remain unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…aw#162920)

Doctor now owns supported historical ACP keys and embedded native-session metadata, with verified backups and replay protection. Runtime consumes canonical worker-prepared facts and preserves live session authority across asynchronous reads. Opaque conversation/resume identifiers remain durable.

Production: +1379/-782/net +597 (complete two-page GitHub file inventory); native-session data qualifies for the durability exception. Same-owner runtime paths shrink net -296.

Validation: independent P2 review and resolved findings; exact-head CI 37167922766 passed. Hetzner lease cbx_7ebc9f3d6eb1, run run_d9e0d840af26ac29eedc30cbdf2ee0cb: 272 focused cases, two-case authority negative control, package validation, and unmodified 2026.9.7 update passed. Update took 344s; repeat Doctor 16s; closure replay Doctor 15s; Gateway health passed. Total remote command 1911.019s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant