Skip to content

fix(jsonlstore): preserve session saves with legacy lineage - #1327

Merged
jbeda merged 1 commit into
mainfrom
fix/jsonl-lineage-persistence
Sep 10, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/jsonl-lineage-persistence

Conversation

@jbeda

@jbeda jbeda commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix JSONL session persistence for installations that retain the pre-partition global lineage index.

The partitioned-lineage upgrade left successful mutations marked dirty while the legacy index existed. The next session save then failed with jsonlstore: lineage partition is incomplete, causing a later prompt to reload stale conversation history.

  • Clear lineage transaction markers after successful recovery, save, and delete operations.
  • Keep lineage reads fail-closed until explicit legacy-index migration.
  • Add a regression test covering repeated saves with a legacy index and the preserved read gate.

Validation

  • task lint
  • task test

@jbeda
jbeda merged commit f40f584 into main Sep 10, 2026
57 of 58 checks passed
@jbeda
jbeda deleted the fix/jsonl-lineage-persistence branch September 10, 2026 02:52
jbeda added a commit that referenced this pull request Sep 11, 2026
* commit 'cc6b16afbf7feec3e16451fdc590a3265fbf0c0b':
  docs: amend Shell diagnostic ownership (#1330)
  fix(mecatui): refresh status context on session continuation (#1328)
  fix(jsonlstore): preserve session saves with legacy lineage (#1327)
  test(sessiondebug): eliminate handle tampering flake (#1323)
  fix(agent): authorize structured subagent results (#1317)
  feat(mcp): support attachment-backed broker queries for CallMcpWithQuery (#1309)
  docs(agents): document full-gate timeout guidance (#1316)
  fix(server): let the stale-session sweep re-acquire a lost lease (#1302)
  feat(clientauth): headless Linux credential storage (#1291)
  chore(mcpbroker): trace protected call latency (#1314)

# Conflicts:
#	docs/acceptance/canonical-shell-command-tool.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants