Skip to content

docs(agents): inventory state/.compact-skills in the state records list - #21

Merged
andrewesweet merged 1 commit into
mainfrom
fm/fm-compact-skills-agents-inventory
Sep 17, 2026
Merged

andrewesweet merged 1 commit into
mainfrom
fm/fm-compact-skills-agents-inventory

Conversation

@andrewesweet

Copy link
Copy Markdown
Owner

Intent

Follow-up noted by the worker that shipped the compaction skill guard (PR #10, merged 2026-09-16): AGENTS.md section 2 lists every state/ record and does not yet name state/.compact-skills, the PreCompact hook's record of skills loaded before a Claude compaction. One line in that inventory. The Mods landing (PR 16) deliberately dropped this line from its upstream-clean branch because bin/fm-precompact-skills.sh is fork-only, so fork main still lacks it. This remains a fork-only AGENTS.md edit.

What Changed

  • Added a state/.compact-skills entry to the state/ runtime records inventory in AGENTS.md section 2, describing it as the per-line list of skills loaded before a Claude compaction, written by the PreCompact hook bin/fm-precompact-skills.sh, printed by bin/fm-session-start.sh's compact-source digest, and overwritten by each later compaction.
  • Fork-only documentation change; no code or behaviour affected.

Risk Assessment

✅ Low: Single documentation line added to the AGENTS.md state inventory; every claim in it (writer hook, reader digest, overwrite semantics) is verified against bin/fm-precompact-skills.sh, bin/fm-session-start.sh, and docs/sessionstart-nudge.md, and the change matches the stated intent exactly.

Testing

Docs-only inventory line in AGENTS.md; no live-drivable surface. Verified the diff is confined to AGENTS.md and that the new line's description of state/.compact-skills matches the writer (bin/fm-precompact-skills.sh) and reader (bin/fm-session-start.sh) scripts present on this fork branch. No scenarios could be driven live; verdict no-surface.

  • Live validation: ⚠️ no-surface - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Reader of AGENTS.md section 2 sees state/.compact-skills listed with its writer and reader ⏸️ untested no Docs-only change; AGENTS.md is agent-instruction prose with no executable consumer no-mistakes can drive live.
New inventory line accurately describes bin/fm-precompact-skills.sh writing and bin/fm-session-start.sh printing state/.compact-skills ⏸️ untested no Accuracy checked by reading the named scripts, not by running the PreCompact hook; running a real Claude compaction is outside this phase's scope and the scripts are unchanged by this commit.
Change stays fork-only (AGENTS.md edit only, no upstream-clean file touched) ⏸️ untested no Constraint verified via git metadata, not a runtime surface.
Evidence: AGENTS.md diff (base..target)
AGENTS.md | 1 +
+ .compact-skills skills this session had loaded before a Claude compaction, one per line; written by the PreCompact hook bin/fm-precompact-skills.sh, printed by bin/fm-session-start.sh's compact-source digest, overwritten by each later compaction's cumulative transcript
- Outcome: ⚠️ 1 warning across 1 run (32.7s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ this change has no live-validatable surface; proceed without live validation? (0 of 3 scenarios were driven live against the product); Reader of AGENTS.md section 2 sees state/.compact-skills listed with its writer and reader: Docs-only change; AGENTS.md is agent-instruction prose with no executable consumer no-mistakes can drive live.; New inventory line accurately describes bin/fm-precompact-skills.sh writing and bin/fm-session-start.sh printing state/.compact-skills: Accuracy checked by reading the named scripts, not by running the PreCompact hook; running a real Claude compaction is outside this phase's scope and the scripts are unchanged by this commit.; Change stays fork-only (AGENTS.md edit only, no upstream-clean file touched): Constraint verified via git metadata, not a runtime surface.
  • Live validation: ⚠️ no-surface - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Reader of AGENTS.md section 2 sees state/.compact-skills listed with its writer and reader ⏸️ untested no Docs-only change; AGENTS.md is agent-instruction prose with no executable consumer no-mistakes can drive live.
New inventory line accurately describes bin/fm-precompact-skills.sh writing and bin/fm-session-start.sh printing state/.compact-skills ⏸️ untested no Accuracy checked by reading the named scripts, not by running the PreCompact hook; running a real Claude compaction is outside this phase's scope and the scripts are unchanged by this commit.
Change stays fork-only (AGENTS.md edit only, no upstream-clean file touched) ⏸️ untested no Constraint verified via git metadata, not a runtime surface.
  • git diff e656392..322fee0 --stat (confirms AGENTS.md only, 1 insertion)
  • grep -n compact-skills bin/fm-precompact-skills.sh bin/fm-session-start.sh (confirms writer/reader/overwrite claims in the new line)
  • ls bin/fm-precompact-skills.sh (confirms fork-only hook present on branch)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@andrewesweet
andrewesweet merged commit eea17d1 into main Sep 17, 2026
14 checks passed
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.

1 participant