Skip to content

fix(sessions): preserve transcript IDs across agent idle resets - #184157

Merged
steipete merged 4 commits into
mainfrom
fix/idle-reset-id
Oct 26, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/idle-reset-id

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Configured idle and daily resets through openclaw agent or Gateway agent rotated the durable transcript ID, so forced session-memory reindexing lost the earlier conversation.

User Impact

Automatic resets now retain the transcript ID and append a reset boundary. Earlier messages remain available to transcript recall and session-memory indexing. Local explicit session-ID resume bypasses automatic expiry. Gateway agent retains its configured expiry policy even with a matching explicit ID. Terminal recovery requiring a replacement transcript still rotates.

Why This Change Was Made

The command resolver and Gateway's pre-command persistence were both missed by #112988. Both now use the existing atomic lifecycle reset writer, retain reset-generation checks, and share metadata cleanup. Gateway cleanup preserves the triggering RPC input, and session-end hooks read the closed pre-reset interval.

This is a focused follow-up to #181258, reported and isolated by @namest504 (SeungTaek Lim). Per the author's suggestion, its historical/pre-upgrade transcript and ACP-lineage work remains intact in that PR: #181258 (comment).

Evidence

  • Frozen-main regressions fail on rotated idle/daily IDs. The core five-file replay passed 40 tests (165.98s wall). CI follow-through passed 10 consumer/restart cases (151.98s) and all 16 reuse cases (76.60s), covering explicit-ID expiry, terminal rotations, stale resets, denied delivery, and the original stopped-claim assertion.
  • Main product baseline loses each command surface's BEFORE canary after forced indexing; shared chat.send initialization retains both. On the fixed production revision, the fixture replay passes in 79.71s and native Ollama qwen3:8b plus nomic-embed-text passes in 100.03s. Each of four surfaces retains its original ID, appends exactly one idle boundary, and semantic search returns all eight BEFORE/AFTER canaries. Real CLI/RPC replies contain the requested canary.
  • Live proof and full build (235.04s wall) are at 81026a873ba; production code is unchanged at the current head, whose last commit only removes a test-fixture type dependency. The fixture factory implementation is unchanged.
  • Production and scoped test typechecks, lint, baseline ratchets, and import-cycle guards pass. The Madge failure reproduces as one type cycle before the final correction and zero afterward (20.77s). Independent Codex review of the current head is scoped clean with no actionable P0–P2 findings.

CI follow-through aligned the old voice ID-rotation assertion, restored the original patch accessor binding so restart fault injection remains effective, and adapted the in-memory handler store to the reset API. Accessor mock implementations moved into a shared test-support owner to keep the fixture under its line cap.

Production: +503/-368 (net +135); tests: +517/-220 (net +297); docs: +2. Production growth connects both admission paths to the existing reset and cleanup owners; most Gateway diff volume relocates the existing entry builder. No new schema, configuration, or dependency.

Local proof is macOS-only. The channel control exercises shared inbound initialization through chat.send, not an external channel service. The stable-to-head package upgrade is covered below; this PR reuses existing reset-event storage without adding a schema or migration. No operator Gateway or state was used.

Upgrade proof

Passed on macOS with Node 26.12.1, native Ollama qwen3:8b, and nomic-embed-text. Installed the registry's latest stable, 2026.10.7 (157d8c2bc3ea), into a fresh isolated npm prefix, HOME, state directory, and config on port 20080. The installed stable CLI and Gateway created five real sessions; forced indexing found all five BEFORE canaries. They were left idle naturally, without database timestamp edits: each had 275–315 seconds of inactivity against a 60-second limit when replacement began.

Built and integrity-checked a self-contained package at f8e9309ca03a81958b63c7beef117f2efe53db59, then manually replaced the package in the same prefix with the same HOME/state/config (npm install --global --prefix "$PREFIX" --allow-scripts=openclaw ./openclaw-candidate.tgz). This exercised manual package replacement, not automatic updater delivery. The candidate required the documented doctor --fix --non-interactive step for existing credential custody and agent schema v25 → v37 migration; Doctor created migration backups before applying it. This PR introduces no schema change itself.

Redacted result excerpt from the installed candidate:

OpenClaw 2026.10.7 (f8e9309)
Stable-created transcript events unchanged: 31/31
CLI agent:             ID preserved; new reset boundary=idle; BEFORE+AFTER found
Gateway agent:         ID preserved; new reset boundary=idle; BEFORE+AFTER found
Gateway explicit ID:   ID preserved; new reset boundary=idle; BEFORE+AFTER found
Local explicit ID:     ID preserved; no reset boundary;      BEFORE+AFTER found
Stable manual reset:   ID preserved; reset boundaries 1 -> 2; BEFORE+AFTER found
Forced index:          5 session files indexed
Semantic recall:       all 10 BEFORE/AFTER canaries found
Gateway health:        ok=true; plugin errors=[]
Final Doctor:          exit 0; no "Fix now" items; populated schemas pending=0
Config validation:     exit 0

Stable's public sessions.reset produced a reset event with a nonzero timestamp, not a legacy updatedAt: 0 pending marker. That native stable reset state was carried through and retained its original boundary. Zero-timestamp rotation remains covered by the unchanged, passing consumer regressions; no fabricated marker is claimed as stable-produced.

The original model, reset policy, memory settings, workspace, and tool profile were preserved. Normal Doctor changes added a missing display name, materialized the configured num_ctx, and installed current config defaults; its suggested skill_workshop permission was added to this minimal test fixture. Final Doctor retained only informational empty-workspace/channel/backup tips. All original transcript events remained equal through migration and the subsequent turns. The model replay, final Doctor, index, and search completed in 180.08s; package replacement took 86.51s, and the head build took 233.6s. No code changes or push were needed; the operator Gateway and state were untouched.

steipete and others added 2 commits October 25, 2026 20:05
Append the existing reset boundary at admitted command persistence so idle and daily resets keep historical messages indexed. Preserve terminal recovery rotation and explicit session-ID resume behavior.

Co-authored-by: SeungTaek Lim <[email protected]>
Keep the durable transcript ID through Gateway agent preparation, share reset metadata cleanup, and commit the boundary with the renewed lifecycle. Preserve the triggering RPC source during cleanup and the ended transcript window for hooks.

Co-authored-by: SeungTaek Lim <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 26, 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 agents Agent runtime and tooling size: XL labels Oct 26, 2026
@steipete
steipete marked this pull request as ready for review October 26, 2026 03:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T04:05:43.923152Z f8e9309 New commits
ℹ️ 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.

@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
Keep Gateway explicit-ID expiry semantics while preserving transcript IDs. Align voice and Gateway consumer assertions, adapt the in-memory lifecycle fixture, and retain the original patch accessor binding used by restart-settlement tests.
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves transcript IDs across automatic CLI and Gateway agent resets while appending reset boundaries.

Example: A conversation contains AMBER731 before a configured one-minute idle reset and COBALT942 afterward.

  • Before: The agent path rotates the transcript ID, and forced memory indexing loses AMBER731.
  • After: The transcript ID stays unchanged, one idle boundary is appended, and both canaries remain searchable.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Production-entry-point and stable-upgrade evidence support a focused repair with distinct regression coverage and no remaining findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied production CLI and Gateway RPC output exercises idle expiry with native Ollama inference and embeddings, preserving IDs and recalling before/after canaries; exact-head installed-package upgrade output additionally preserves stable-created transcript events through backed-up Doctor migration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Earlier conversations vanish from session-memory search after configured agent idle or daily resets.
Reason: The maintainer-authored repair restores the established reset contract and preserves the existing explicit-ID and terminal-recovery distinctions.

Merge readiness

✅ Ready for maintainer review

Ready for maintainer review: the stable-to-head upgrade evidence resolves the previous compatibility blocker, and no actionable findings remain.

Priority: P2
Reviewed head: f8e9309ca03a81958b63c7beef117f2efe53db59

Before merge

None.

Findings

None.

Agent review details

How this fits together

CLI and Gateway agent preparation select session lifecycle state, persist it through the session writer, and supply transcripts to agent execution, lifecycle hooks, and memory indexing.

flowchart LR
 A[CLI agent turn] --> C[Session reset decision]
 B[Gateway agent RPC] --> C
 C --> D[Atomic lifecycle writer]
 D --> E[Transcript and reset boundary]
 D --> F[Runtime cleanup and hooks]
 E --> G[Agent context and memory indexing]
Loading

Technical review

Best possible solution:

Land the focused wiring to the existing atomic reset writer while retaining terminal recovery rotation and the separate historical-lineage repair.

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

Current-main source shows expired agent sessions receiving replacement IDs, and the supplied CLI/RPC canary replay demonstrates the resulting search loss; no target code was executed during this review.

Is this the best way to solve the issue?

The smallest complete repair keeps transcript identity, renews lifecycle state through the existing atomic writer, and shares metadata cleanup without adding storage or policy owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Automatic reset transcript identity keeps the original intent (fix: preserve transcript cursors across session resets #112988: Keep routine resets append-only so transcript cursors and retained conversation history survive lifecycle renewal.)
  • Gateway expiry and reuse selection changes intended behavior with a stated reason (40ad90a: Consolidate loaded and authoritative-row reuse decisions while preserving expiry, terminal recovery, requested-ID eligibility, and concurrent replacement protection.)
  • Voice session continuity keeps the original intent (6cc534b: Keep voice turns bound to the stored session and let the core own rollover behavior.)
  • Session writer and publication ownership keeps the original intent (b636e95: Use worker-owned entry writes while preserving source predicates, FIFO ordering, accepted-write settlement, and acknowledged publication.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still rotates expired agent transcripts: Current-main command resolution selects a new UUID for an expired implicit session; Gateway patch construction likewise retains the stored ID only when reuse is allowed. (src/agents/command/session.ts, 642b31d1993b)
  • Existing reset owner reused: Both command persistence and Gateway persistence call resetSessionEntryLifecycle, retaining generation checks and committing the boundary with the renewed entry. (src/gateway/agent-turn/agent-session-persist.ts:419, f8e9309ca03a)
  • Exact-head upgrade evidence clears the previous blocker: The PR body records installed v2026.10.7 creating five real Ollama sessions, natural idle expiry, manual package replacement with the exact head, backed-up Doctor migration, all 31 original transcript events preserved, all ten canaries recalled, and successful final health, Doctor, and config validation. This proves manual package upgrade on macOS, not automatic updater delivery. (f8e9309ca03a)
  • Earlier consumer findings resolved: The voice regression now requires the preserved transcript ID and renewed lifecycle time; the patch accessor remains bound to its original mock, preserving restart fault injection. The final commit changes fixture types only. (src/commands/agent.test.ts:1063, f8e9309ca03a)
  • Related work has a distinct remaining scope: SeungTaek Lim's discussion in fix(memory): session memory search loses earlier transcripts after a session reset #181258 isolates current CLI/Gateway rotation and proposes preserving that PR's historical and intentional-rotation lineage recovery separately.
  • Original reset contract: fix: preserve transcript cursors across session resets #112988 established append-only reset boundaries with stable transcript IDs; this PR extends that contract to the missed agent paths. (9ae9fcb1cdd2)

Likely related people:

  • Peter Steinberger: Raw commit 40ad90a adds src/gateway/server-methods/agent-session-patch.ts:110 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 40ad90a012eb; files: src/gateway/server-methods/agent-session-patch.ts)
  • Sanjay Santhanam: Raw commit 6cc534b adds src/agents/agent-command.ts:956 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6cc534bbad7b; files: src/agents/agent-command.ts)

PR surface

Source +135, Tests +297, Docs +2. Total +434 across 17 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 8 503 368 +135
Tests 8 517 220 +297
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 1022 588 +434

Review metrics

Metric Value Why it matters
Production versus test changes Production +503/-368; tests and fixtures +517/-220 Growth connects two admission paths to existing reset and cleanup owners; much of the Gateway and fixture diff relocates existing implementation.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; 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.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Configured agent resets make earlier conversation content disappear from memory search while the underlying transcript remains stored.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-26T03:51:29.942Z sha e6668b0 :: blocked before merge. :: [P2] Update the Discord voice regression for stable transcript IDs | [P2] Move restart-settlement fault injection to the imported owner
  • reviewed 2026-10-26T04:09:23.823Z sha f8e9309 :: blocked before merge. :: none

Reviewed October 26, 2026, 2:45 AM ET / 06:45 UTC (Revision 3).

@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Oct 26, 2026
Define the fixture dependency surface from the accessor contracts instead of importing its parent mock module. This removes the type-only import cycle without changing fixture execution or production code.
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Both code findings are addressed in the current head: the voice consumer requires the preserved ID with a renewed start time and reuse on the next turn; the original patch accessor binding is restored, and the unchanged stopped-claim regression passes. Gateway expiry, recovery controls, scoped checks, and the final import-cycle correction pass locally. The PR body now contains final production-revision canary replay and build timings, plus the unrun stable-upgrade limitation.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Added the requested stable-to-head upgrade proof to the PR body. The installed latest stable created and indexed five real Ollama sessions; all were idle-expired before manual package replacement. After backed-up Doctor migration, the installed candidate preserved all IDs and original transcript events, appended the expected boundaries, and recalled all ten canaries. Final Doctor and validation passed. No source change or new head.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete merged commit cd8fd90 into main Oct 26, 2026
172 of 175 checks passed
@steipete
steipete deleted the fix/idle-reset-id branch October 26, 2026 17:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…claw#184157)

* fix(sessions): preserve agent transcript IDs across automatic resets

Append the existing reset boundary at admitted command persistence so idle and daily resets keep historical messages indexed. Preserve terminal recovery rotation and explicit session-ID resume behavior.

Co-authored-by: SeungTaek Lim <[email protected]>

* fix(sessions): preserve Gateway automatic reset boundaries

Keep the durable transcript ID through Gateway agent preparation, share reset metadata cleanup, and commit the boundary with the renewed lifecycle. Preserve the triggering RPC source during cleanup and the ended transcript window for hooks.

Co-authored-by: SeungTaek Lim <[email protected]>

* fix(sessions): preserve reset consumer contracts

Keep Gateway explicit-ID expiry semantics while preserving transcript IDs. Align voice and Gateway consumer assertions, adapt the in-memory lifecycle fixture, and retain the original patch accessor binding used by restart-settlement tests.

* test(gateway): decouple accessor fixture types

Define the fixture dependency surface from the accessor contracts instead of importing its parent mock module. This removes the type-only import cycle without changing fixture execution or production code.

---------

Co-authored-by: SeungTaek Lim <[email protected]>
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 27, 2026
Absorbs openclaw/openclaw main at 96da011
(2026-10-26T21:55:24-07:00), 1,293 commits past jump 6's upstream base
2e963ca, into the j6 batch head c7f1481 (j6 final 935ba44 plus
#1488, #1489 and #1490).

45 conflicted files, resolved upstream-first, hunk by hunk:
- generated files regenerated with their generators (PostgreSQL schema
  catalogs, gateway protocol predicates, config baseline, worker-access
  inventory); the mock-factory baseline pruned by its ratchet;
- tests upstream rewrote take upstream's shape and keep the fork's
  continuation cases (result accounting, heartbeat drain, media-only, spawn,
  CLI transcript redaction, Codex #1438 user-image row);
- source hunks keep the continuation lines beside upstream's change
  (spawn envelope, fallback-cycle result fields, event source, traceparent
  carry in the Gateway persist builder, live-interruption retirement).

Agent schema: upstream took 36 (openclaw#183888, PostgreSQL-only exact-path
indexes) and 37 (openclaw#183827, cold transcript archive chunks). The continuation
recipient-authority step moves 36 -> 38, on top of them, per the ruling on
bootstrap#1727 (comment 6434991502). On SQLite the live seats' our-35 and
j6's our-36 databases are upstream's same-numbered schema plus the authority
table, so upstream's 37 adds the chunk table and the idempotent step 38
admits them and keeps their rows. State 33 -> 34 (openclaw#183508) is upstream-only.

Semantic collisions in cleanly merged files:
- subagent-spawn-envelope.ts carries upstream's blind flag and structured
  output instruction into the fork's extracted envelope builder;
- openclaw#184157's two new automatic-reset cleanup calls (agent-command.ts and the
  Gateway persist reset path) route through the fork's continuation-aware
  clearReplacedSessionRuntimeState, as the reply-session path does
  (ruling item 2);
- the agent port descriptor treats 37 as a historical source that already
  has the chunk table.

Refs karmaterminal/openclaw-bootstrap#1727

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 27, 2026
…tinuation custody

Upstream openclaw#184157 (cd8fd90) added an automatic-reset runtime cleanup to
agent-command. The jump-7 merge routes it through the fork's
continuation-aware clearReplacedSessionRuntimeState, as the reply-session
path does (ruling on bootstrap#1727, comment 6434991502, item 2). This pins
that routing at the composed agent-command boundary, on real continuation
custody:
- a session carrying the legacy pending-reset marker (updatedAt 0, reset
  reason "reset") has its queued continuation work cancelled ("Cancelled by
  session reset");
- an idle or daily expiry rotates the session and keeps the queued work.

The suite needs the shared-state host broker (custody writes go through the
state worker), so it joins the database-worker core paths beside the other
reset-cleanup proofs; without it the runner classifies the file unit-fast.

Patch-only negative control (agent-command passes "idle" for every automatic
reset, i.e. no continuation settlement, as upstream's helper behaves): the
marker case fails (record stays "queued"); idle/daily stay green. GREEN
here: 3/3 (about 13 s; the composed path is the contract).

Refs karmaterminal/openclaw-bootstrap#1727

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 28, 2026
)

* fix(sessions): preserve agent transcript IDs across automatic resets

Append the existing reset boundary at admitted command persistence so idle and daily resets keep historical messages indexed. Preserve terminal recovery rotation and explicit session-ID resume behavior.

Co-authored-by: SeungTaek Lim <[email protected]>

* fix(sessions): preserve Gateway automatic reset boundaries

Keep the durable transcript ID through Gateway agent preparation, share reset metadata cleanup, and commit the boundary with the renewed lifecycle. Preserve the triggering RPC source during cleanup and the ended transcript window for hooks.

Co-authored-by: SeungTaek Lim <[email protected]>

* fix(sessions): preserve reset consumer contracts

Keep Gateway explicit-ID expiry semantics while preserving transcript IDs. Align voice and Gateway consumer assertions, adapt the in-memory lifecycle fixture, and retain the original patch accessor binding used by restart-settlement tests.

* test(gateway): decouple accessor fixture types

Define the fixture dependency surface from the accessor contracts instead of importing its parent mock module. This removes the type-only import cycle without changing fixture execution or production code.

---------

Co-authored-by: SeungTaek Lim <[email protected]>

Adapt to the beta.5 SQLite lifecycle owner without importing the later controller architecture. Preserve richer base metadata and all admission guards; qualify same-ID boundaries with real command/Gateway tests and closed-interval readers.

Source-commit: cd8fd90
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

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL 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.

1 participant