Repository navigation
Description
Outcome
An authenticated owner can explicitly delete its own local chat history, with exact ownership and permanent replay fences, truthful per-store outcomes, and targeted client invalidation. The product clearly discloses retained independent content, effects, provider copies, backups and offline-device limits.
Why now
#3180 produced a source-backed ownership proposal, and the 2026-11-01 maintainer ruling selected its local-deletion policy. #3232 records that policy and the explicit #3177 native-preservation amendment. The policy and host/backend deletion slices are now delivered; client interaction/retirement and end-to-end acceptance remain open. This epic groups the approved outcome and retains the separate proof and release attribution for each delivered slice.
Shared context
Read the decision and proposal in #3232, docs/decisions/chat-history-deletion.md and docs/plans/chat-history-deletion.md. At source 6fa3ec1305e8b52991252d6a28959a68c56be1c1, bindDialogue (packages/ui-server/src/ws/dialogue-storage.ts:169-212) joins provisional aliases; AgentBackend (packages/ui-sdk/src/server/backend.ts:708-751) has no native-removal capability; createSessionRoutes (packages/ui-server/src/routes/sessions.ts:8-147) only lists and reads; clearPrivateDialogue (packages/ui-react/src/voice/conversation-client.ts:533-545) purges principal state, not one retired chat. Each child must revalidate its exact source and relevant contract before implementation.
Constraints and non-goals
Only a currently authorized owner may delete its own chat. The 2026-11-17 #4138 ruling approves a narrow same-owner-account exception when every deletion-relevant ownership record proves that account; unknown, contradictory and mixed-account evidence refuses. Current caller authorization remains checked across awaits. No agent, cross-account or new ambient deletion authority is approved, and live conversation/epoch controls remain exact-principal. #4138 delivered the narrow same-account runtime admission and decision-record amendment through #4168 (d2b0a814b). The current rule is recorded under The amendment (docs/decisions/chat-history-deletion.md:143-147). Local native history, canonical dialogue and directly bound copies are selected; independent saved content, effects, provider copies and backups remain and are disclosed. Minimized identity/replay fences are permanent within the installation; an older backup may restore text. No outside-image deletion ledger, secure-erasure promise, automatic expiry, routine live cutoff or rewrite of a live provider prefix. Busy effects refuse through existing stop/reconcile paths. Deadline rejection retains real cleanup ownership until actual settlement.
Breakdown
The native sub-issue list carries progress. Delivered as completed: #3180 (policy), #3228 (lifecycle/replay fences), #3229 (concrete native backends), #3230 (host copies/transport), #3337 (typed-chat creation ownership), and #3455 (principal-bound read-only receipt lookup). Their recorded candidate/main proof and individual release milestones retain their own attribution.
#4138 closed through #4168. It verifies the current owner's account against every relevant ownership record, including durable account evidence for pruned logins, and refuses unknown, contradictory or mixed-account evidence. #3231 remains open for client interaction and retirement, and the end-to-end epic definition of done still applies.
Current source at inspected main implements removeSessionHistory (packages/ui-sdk/src/server/backend.ts:903), the host routes (createChatDeletionRoutes, packages/ui-server/src/routes/chat-deletions.ts:46) and the read-only lookup (GET /api/chat-deletions/:operationId, same file:70); the creation-owner ruling is recorded in docs/decisions/chat-history-deletion.md:79. The older source baseline in Shared context explains the original proposal and is historical, not a claim that these capabilities remain absent.
Definition of done
Every selected local owner confirms removal before a completed result, while unsupported, busy, partial and unknown outcomes remain honest and recoverable. Real SQLite/backend/browser red and mutation evidence proves that delayed writes, native archive restore, old cursors, frozen provider seeds, retries and browser caches cannot republish or replay a retired identity. Unrelated chats, independent effects and accounting stay intact. Authorization revocation and principal/session replacement are exercised. Exact disclosures, accessibility/focus behavior and old-backup/offline limits are verified; keyless proof does not claim vendor forgetting or physical erasure. Each delivered slice has its actual candidate/main proof and release attribution. The epic remains open until the implemented end-to-end outcome is verified, not merely when the decision document merges.
2026-11-02 triage at main a84d9bfbcb4e608b504aa0a9feb1144ad9a0b77e: Classified the approved multi-owner deletion outcome as feature work, wanted but unscheduled (p2). Preserved all five native children and the separate interaction-design prerequisite. The epic remains open without agent-ready; the policy delivery does not complete deletion runtime.
Triage 2026-11-03 (main 3d3516a02): added #3337 to the breakdown; #3180 and #3228 are delivered.
Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: reconciled completed native runtime/ownership/lookup slices and #3231’s current readiness with the active epic. Preserved the full implementation/acceptance obligations, existing milestone and no epic agent-ready. No deletion or new runtime verification was performed.
Triage 2026-11-10 at main 3aadc8df5: re-pointed the moved removeSessionHistory citation by anchor. The Shared context ranges stay pinned to their historical source. Children, labels and readiness are unchanged.
2026-11-14 triage at main faa480e8c864d547cd8b4eb75965b7d609284770: Refreshed verified current-source pointers; historical receipts, decisions and remaining qualification requirements retain their identities.
2026-11-16 triage at main 3b104890f8: Verified and repaired the moved removeSessionHistory declaration; the older explicitly historical baseline is preserved.
2026-11-17 triage at main 9e7429a914a8aaf5967f074fa9e09984968fc9dc: Refreshed verified active source navigation; historical receipts retain their source identities. No new runtime qualification or readiness is claimed.
2026-11-17 triage at main d974052166f335cbf57b385fddc13875da1b98de: Attached #4138 after matching its complete deletion-admission outcome to this epic. The eight native children include six closed and two open (#3231/#4138). Preserve exact-principal authorization until a recorded ruling amends it; the new question does not block independent work under the existing approved policy.
2026-11-17 decision reconciliation: Folded the #4138 same-owner-account deletion ruling into the active authority constraints and breakdown. Six children remain delivered and #3231/#4138 remain open; the new admission behavior is approved but not implemented by this tracker update.
2026-11-20 triage — Verified the same-account amendment and its merged host implementation on main bd751d434.
Activity
schlessera commentedon Nov 1, 2026
Delivery verified (2026-11-01): approved deletion policy merged in #3232 at
e0584b7f277f42a18b029e9c0bb6852993cfb946. Candidate run 41311274782 passed; automatic main run 41312956717 passed all 17 jobs, with actual job checkouts verified against the squash. PR and completed issue retain milestone 0.44.0; assignment is empty.This completes the policy decision and documentation only. Deletion runtime and UI remain unbuilt under epic #3234 and #3228–#3231. #3228 is ready; later work retains its dependencies, and #3231 still needs interaction design. No deletion, deployment or provider action was performed.
schlessera commentedon Nov 3, 2026
Epic state — 2026-11-03
epic/3234-chat-deletion: backends: remove owned native chat history under a retired lifecycle #3229 (CONTRACT: feat(backends): remove a retired chat's owned native history #3298) and ui-server: coordinate local chat copies and expose truthful deletion outcomes #3230 (CONTRACT: feat(ui-server): delete an owner's chat across local stores with truthful outcomes #3338). Lane PR CONTRACT: feat(ui-server): land epic #3234 batch 1 — delete retired chats across native history and local stores #3371 to main is a draft and currently reports merge conflicts.needs: decision, blocked) and ui-server: decide owner bindings so typed-only chats can be deleted #3337 (attached 2026-11-02: should new typed-only chats get an owner binding so they can be deleted?). ui-server: decide owner bindings so typed-only chats can be deleted #3337 asks for a maintainer ruling between two options, and its copy feeds ui-react: design own-chat deletion and targeted cache retirement #3231.1 remaining item
Merge pull request #3524 from schlessera/epic/3234-chat-deletion
Merge pull request #3551 from schlessera/epic/3234-chat-deletion
schlessera commentedon Nov 9, 2026
Epic state, 2026-11-09 (inspected main
fb999b8baeabbb3a9cb5756a19862eee45467ebf)Since the 2026-11-03 note: #3229 and #3230 landed on main, #3337 (owner bindings for typed-only chats) was decided and closed, and #3455 (read-only operation lookup, filed from the #3231 D1 ruling) was attached and delivered.
The epic closes when #3231 ships and the end-to-end definition of done is verified, including real browser, SQLite and backend proof and the disclosure and accessibility checks.
schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: re-pointed the movedremoveSessionHistorycitation tobackend.ts:851. #3231 is still the only open child, so the epic is not ready to close. Nothing else changed.schlessera commentedon Nov 17, 2026
Epic state — 2026-11-17 (shared-history deletion question). New native #4138 asks whether a chat used by multiple logins of one owner account should remain exact-principal-only or gain a ruled deletion path. The committed keyless test confirms the current refusal; it approves no new authority. #3962/#3963 share retained history but deliberately preserve exact live-epoch/deletion rules. Eight children now include six closed and two open: #3231 client integration and #4138 policy. Existing deletion admission remains binding until the maintainer rules.
schlessera commentedon Nov 20, 2026
Epic state — 2026-11-20. #4138 is delivered through #4168. Seven native children are closed. #3231 remains open for client interaction and retirement, followed by the full end-to-end outcome check.
schlessera commentedon Nov 23, 2026
2026-11-23 0.45.0 release reconciliation: 7 of 8 tasks are delivered and keep their own milestones. The remaining task, #3231 (design own-chat deletion and targeted cache retirement), is p2 design work with no release milestone, and 0.45.0 does not need it. Milestone removed from the epic; it stays open for #3231.
schlessera commentedon Nov 23, 2026
2026-11-23 triage at main
a3395c4b2: loweredpriority: p1topriority: p2. Today's 0.45.0 reconciliation removed this epic's release commitment, and every open child is p2 or lower with no release milestone. Under the label manifest, p1 marks a current or next milestone commitment. Raise it again when a child takes one.