docs(agents): document durable session-provenance files#47
Open
EricGrill wants to merge 2 commits into
Open
Conversation
AGENTS.md only documented `.research-session.json` for `--min-time` runs, omitting the `.session-events.jsonl` and `.session-checkpoint.json` durable provenance files plus `.thesis-session.json`. Portable agents following the single-file protocol therefore left behind incomplete provenance, which breaks `/wiki:audit`'s ability to classify runs as `replayable` rather than `partial`. Three minimal edits, all aligned with claude-plugin/skills/wiki-manager/ references/research-infrastructure.md and references/audit.md: - Topic-wiki tree (line 46) gains the four session files with one-line comments distinguishing ephemeral from durable. - The "Session Registry" paragraph is replaced with a "Session Files" block that covers both ephemeral and durable files, the lifecycle table, and the resume protocol. - Audit verdicts gain a "Provenance classification" line covering the replayable / partial distinction. No plugin behavior change. All four structural tests pass (70 + 92 assertions, both sync mirrors clean). Closes nvk#35. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Fixes #35.
AGENTS.mdonly documented.research-session.jsonfor--min-timeruns, omitting the durable provenance files (.session-events.jsonl,.session-checkpoint.json) and.thesis-session.json. Portable agents following the single-file protocol therefore left behind incomplete provenance, which breaks/wiki:audit's ability to classify runs asreplayablerather thanpartial.What changed
Three minimal edits to
AGENTS.md, all aligned with the canonical Claude source (claude-plugin/skills/wiki-manager/references/research-infrastructure.mdandreferences/audit.md):Topic-wiki tree (around line 46) — adds
.research-session.json,.thesis-session.json,.session-events.jsonl,.session-checkpoint.jsonwith one-line comments distinguishing ephemeral from durable."Session Registry" paragraph (around line 236) — replaced with a fuller "Session Files" block that covers:
Audit verdicts section — adds a one-line "Provenance classification" note documenting that audit reads the durable files to classify runs as
replayablevspartial.Verification
Pre-flight checklist
Notes for review