Skip to content

docs(harness): correct session log claims after the native journal redesign - #3561

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
ningmao-hlyz:fix/session-log-structured-jsonl
Oct 14, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
ningmao-hlyz:fix/session-log-structured-jsonl

Conversation

@ningmao-hlyz

Copy link
Copy Markdown
Contributor

Fixes #3473

As agreed in the issue thread, this corrects the v1 harness reference docs in place, without touching the versioned blogs.

The v1 docs still described the removed dual-file session storage (<sessionId>.jsonl + <sessionId>.log.jsonl, SessionTree, MemoryFlushManager.offloadMessages, the sessions.json index and the offloadBeforeCompact option). That writer is gone from main: the native session journal (JournalSessionLog over AtomicSessionStorage, under .agentscope-runtime/) is the lossless full history, session_search / session_list read it directly, and transcripts are projected at read time via sessionTranscript.

Changes (both languages):

  • session.md — rewritten around the journal: storage layout under .agentscope-runtime/agents/<agentId>/sessions/<userId>/<sessionId>/, backends (local files / SQLite / pluggable SessionLogStore), how RuntimeContext routes the journal, and listing sessions without a separate index file
  • workspace.md — directory layout tree and the compaction/flush lifecycle row
  • architecture.md — journal nodes in the memory-lifecycle diagram and the compaction scenario
  • memory.md — compaction flow, removal of the offloadBeforeCompact row (the option no longer exists in CompactionConfig), and the cross-reference line

All statements were verified against main at e68dd78 (JournalSessionLog, WorkspaceSessionLogStore, LocalFilesystem.sessionStorage, CompactionConfig, SessionSearchTool). The blogs are left untouched as dated announcements.

Note for #2735: with this redesign, loading history for a frontend is agent.session(ctx).transcript() (or sessionTranscript(ctx)), full-fidelity export goes through SessionExportSink, and the v2 session-log page documents both — the lossy flat file no longer exists to parse.

…design

The v1 harness reference docs still describe the removed dual-file session
storage (<sessionId>.jsonl + <sessionId>.log.jsonl, SessionTree,
MemoryFlushManager.offloadMessages, sessions.json index and the
offloadBeforeCompact option). That writer is gone from main: the native
session journal (JournalSessionLog over AtomicSessionStorage, under
.agentscope-runtime/) is the lossless full history, session_search and
session_list read it directly, and transcripts are projected at read time.

Rewrite the session page around the journal and correct the coupled
storage-layout, lifecycle and cross-reference claims in the workspace,
architecture and memory pages (both languages). Fixes agentscope-ai#3473.
@jujn
jujn merged commit 8b06f21 into agentscope-ai:main Oct 14, 2026
5 of 6 checks passed
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants