docs(adr): resume agent sessions from JSONL transcripts - #6793
Conversation
Record the contributors-meeting decision that continuation replays a prior-run transcript into a new ephemeral sandbox, rather than keeping the process alive or introducing cross-run memory. Numbered 0094 because 0092 and 0095 landed on main while the first PR was closed by the vouch gate, and 0093 is in-flight. Signed-off-by: Marcel Hild <hild@b4mad.net> Co-authored-by: Cursor <cursoragent@cursor.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
PR Summary by QodoDocument JSONL-based agent session continuation
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1. Resume ignores runtime compatibility
|
| - Injection surface grows by one hop: a poisoned first run's transcript | ||
| becomes context for the second. Same-agent, same-work-item, explicit | ||
| trigger, and ADR 0021 access control bound that hop. |
There was a problem hiding this comment.
5. Consequences use multi-sentence bullets 📜 Skill insight ⚙ Maintainability
The injection-surface consequence contains two sentences in one bullet, contrary to the one-sentence-per-bullet requirement. This makes ADR 0094's Consequences section structurally noncompliant.
Agent Prompt
## Issue description
ADR 0094 contains consequence bullets with multiple sentences.
## Issue Context
Rule 1062091 requires three to five consequence bullets, each consisting of exactly one sentence; preserve the substance while combining or trimming sentences.
## Fix Focus Areas
- docs/ADRs/0094-resume-agent-sessions-from-jsonl-transcripts.md[104-108]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| Builds on JSONL exposure | ||
| ([ADR 0021](0021-jsonl-reasoning-trace-exposure.md)), ephemeral sandboxes | ||
| ([ADR 0016](0016-unidirectional-control-flow.md), | ||
| [ADR 0036](0036-agent-execution-sandbox.md)), and is distinct from the |
There was a problem hiding this comment.
6. Related adrs outside context 📜 Skill insight ⚙ Maintainability
ADR 0094 says it builds on ADRs 0021, 0016, 0036, and 0086, but places those links before the Context heading rather than in Context. The required related-ADR cross-references are therefore absent from the specified section.
Agent Prompt
## Issue description
Related ADR cross-references are placed under the Status area instead of the Context section.
## Issue Context
Rule 1062094 requires explicit related-ADR links in Context when an ADR builds on or relates to earlier decisions.
## Fix Focus Areas
- docs/ADRs/0094-resume-agent-sessions-from-jsonl-transcripts.md[24-34]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| Session continuation means: **replay a prior run's JSONL transcript as the | ||
| starting conversation of a new ephemeral sandbox**, scoped to the **same | ||
| agent** and **same work item**. |
There was a problem hiding this comment.
7. Resume ignores runtime compatibility 🐞 Bug ≡ Correctness
ADR 0094 permits continuation based only on the same agent and work item, but a run can override that agent's runtime while Claude and Pi transcripts use incompatible, runtime-specific formats. A follow-up dispatched under a different runtime therefore satisfies the documented resume scope but cannot restore the prior conversation tree.
Agent Prompt
## Issue description
Session continuation is scoped only to the same agent and work item, although transcript formats are runtime-specific and the runtime can be overridden per run. This makes a documented cross-runtime resume impossible.
## Issue Context
Require the resumed run to use the source run's runtime/transcript format, or define an explicit compatible import/normalization contract. Record and validate source-runtime metadata when selecting a transcript.
## Fix Focus Areas
- docs/ADRs/0094-resume-agent-sessions-from-jsonl-transcripts.md[78-95]
- docs/architecture.md[299-302]
- docs/architecture.md[319-322]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
docs/architecture.mdand related problem docs (cross-run-memory,agent-architecture,agent-infrastructure,security-threat-model). Annotates ADR 0021 with a cross-reference.Replaces #6680, which the vouch gate closed before discussion #6726 was granted. GitHub would not reopen #6680 (422). Numbered 0094 because 0092 is now OpenAI WIF on main, 0095 also landed, and 0093 is in-flight.
From the 2026-08-26 contributors meeting (Marcel / Guannan / Adam / Marta / Subhash). Local packaging remains #459; slash-command UX and transcript selection are follow-on.
Test plan
/renumber-adrif another ADR lands first; 0093 is already in-flight).Made with Cursor