fix(session): unify JSONL persistence and continuation rotation - #84
Merged
Conversation
M09Ic
force-pushed
the
fix/unified-jsonl-session-rotation
branch
2 times, most recently
from
August 3, 2026 07:11
f6478d9 to
f0953ac
Compare
M09Ic
force-pushed
the
fix/unified-jsonl-session-rotation
branch
from
August 3, 2026 08:49
f0953ac to
bdda0af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
*aop.Eventthe only durable event structure and append it through one App EventBus subscriber as AOP ProtoJSONLToolDataEvent,ToolArtifact,ArtifactStream,TimelineWriter, timeline parsing, and resume replay/fork pipelines-Fas direct AOP JSONL presentation; structured artifact payloads are not converted to Markdownaop.tool.Artifact/aop.tool.Progresswithcall_idcorrelation (depends on feat(aop): correlate tool artifacts and progress cyber-ui#10)Session semantics
-f <path>: stream agent, scan, and artifact AOP events to exactly that JSONL file--save-session: auto-select.aiscan/sessions/session-*.jsonl; REPL mode records automatically-r <path>: restore the latest root-agent continuation and append new events to the same file-rand-fare mutually exclusive;-rmay coexist with--save-sessionand wins/clear: end withclearedand create an empty continuation in the current file/compact: end withcompactedand create a continuation containing the compacted context in the current file/resume <path>: when idle, end the current session withresumed, switch the recorder to the target file, and create the continuation there/stopguidanceparent_tool_call_idare excluded from root resume selectionValidation
go test ./...go test -tags full ./cmd/aiscan ./examples/acp/server ./tools ./tools/katanago test -race ./core/output ./pkg/runner ./pkg/node ./tools/scan/clear,/resume,/compact, session parent links, file switching, and end reasons-f, same-file-rappend,-FMarkdown rendering, and-r/-fconflictDependency: chainreactors/cyber-ui#10