fix(claude-code-hermit): preserve factual archive state - #815
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The idle session skill still supplies blockers only through a payload that the new implementation ignores.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Unifies session archival around SHELL.md facts and runtime-owned duration data.
Changes:
- Preserves tasks, findings, blockers, artifacts, and duration across archive modes.
- Updates close guidance and regression coverage.
- Documents the behavior in the changelog.
File summaries
| File | Description |
|---|---|
scripts/session-archive.ts |
Implements factual archive baseline and duration ownership. |
tests/session-archive.test.ts |
Adds archive-mode and duration regressions. |
skills/session-close/SKILL.md |
Updates the close contract. |
CHANGELOG.md |
Records the archive fix. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
7 tasks
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Retained SHELL history can falsely attribute old artifacts to later sessions, and the shipped report template remains inconsistent.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Balanced
pull Bot
pushed a commit
to bryanwills/claude-code-hermit
that referenced
this pull request
Aug 26, 2026
…ontext resets A compaction or clear silently dropped SHELL.md Blockers and Findings, so a hermit that compacted mid-arc had no way to know it was still blocked and would re-attempt work the archive (gtapps#815) had already recorded as blocked.
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
Make every session archive mode preserve the same on-disk factual baseline. This follows #813 by extending Progress Log preservation to Task, Findings, Blockers, current-session compiled artifacts, and runtime-owned duration data used by briefs and recall.
Changes
Test plan
cd plugins/claude-code-hermit && bun test(4,545 passed, 0 failed)bunx tsc --noEmit(exit 0)cd plugins/claude-code-hermit && bun test tests/session-archive.test.ts(69 passed, 0 failed)Closes #814