This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Repository navigation
docs: document complete session-start digest handling - #93
Merged
Merged
Conversation
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Intent
Semantic adapt of upstream kunchenguid#1794 (commit 2cf0283) in JTInventory/firstmate, Slice A only: when a harness shows only a preview of the session-start digest and the full output was persisted, firstmate must read the exact path supplied by the harness or session-start wrapper before acting, and act on that complete artifact. Change only AGENTS.md, preserving CLAUDE.md as its existing symlink if needed. Do not port kunchenguid#1798 truncation/order, kunchenguid#1781 hooks/runner, or kunchenguid#1860 network worker; do not edit hook files or bin/fm-session-start.sh, add libraries, or add a network worker. Commit on fm/firstmate-adapt-1794-digest-preview-0810 and deliver through JTInventory/firstmate; do not merge. Skip only the local pinned ShellCheck lint because the prior run's lint failure was a daemon/driver timeout with no source finding; retain review, test, document, push, PR, and CI validation.
What Changed
state/*.metaandstate/*.status.Risk Assessment
✅ Low: The change is a bounded AGENTS.md-only semantic adaptation. It requires the exact persisted digest path, forbids filename guessing, preserves section 5 recovery reads, and leaves CLAUDE.md and all executable files unchanged.
Testing
The configured baseline passed, and the focused watch-session test passed. Scope and symlink checks passed. The bootstrap test was attempted but is incompatible with the current isolation fixture. No reviewer-visible product artifact was produced because no executable consumer exists for this AGENTS.md contract.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
AGENTS.md:114-AGENTS.md:114adds the blanket ruleDo not bulk-reread state/, but the pre-existing recovery contract atAGENTS.md:177-178requires reading everystate/*.metaandstate/*.statusafter bootstrap. An agent can therefore skip the metadata and status reads needed to reconcile direct-report windows and wake history. Narrow this rule to avoiding duplicate reconstruction from the persisted artifact, while preserving the required section 5 recovery reads.🔧 Fix: Narrowed persisted digest reread rule
✅ Re-checked - no issues remain.
AGENTS.md:112- The exact-path/full-artifact behavior is only an AGENTS.md instruction. This repository has no executable session-start consumer or focused integration test that demonstrates a harness preview leading to a read of the supplied persisted artifact. Current checks validate wording and scope, but not end-to-end user behavior.tests/fm-bootstrap.test.sh:148- The optional bootstrap test failed before its intended assertion because its fixture lacks the primary attestation/cwd proof now required by S1 worker isolation. This is unrelated to the AGENTS.md-only change and was not modified.bash tests/fm-worker-isolation.test.sh && bash tests/fm-watch-session.test.sh && bash tests/fm-slot-occupant-proof.test.sh && FM_TEARDOWN_TEST_FOCUS=s1 bash tests/fm-teardown.test.shbash tests/fm-worker-isolation.test.sh && bash tests/fm-watch-session.test.sh && bash tests/fm-slot-occupant-proof.test.sh && FM_TEARDOWN_TEST_FOCUS=s1 bash tests/fm-teardown.test.sh(configured baseline)bash tests/fm-watch-session.test.shbash tests/fm-bootstrap.test.sh(fixture failure before target assertion)git diff --name-status aa80e9c HEADtest -L CLAUDE.md && test "$(readlink CLAUDE.md)" = AGENTS.mdManual contract review ofAGENTS.md:112-114✅ **Document** - passed
✅ No issues found.
⏭️ **Lint** - skipped
Step was skipped.
✅ **Push** - passed
✅ No issues found.