feat: move CLI metadata from soul frontmatter into state.toml - #112
Open
scode wants to merge 1 commit into
Open
Conversation
scode
force-pushed
the
hookless/1-state-toml
branch
from
July 7, 2026 00:48
8b621fe to
550afbb
Compare
scode
force-pushed
the
hookless/1-state-toml
branch
from
July 7, 2026 06:17
550afbb to
14f6242
Compare
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.
First step of the hookless transition (plan:
lore/hookless-migration.md, the PR below this one).The soul file was shared between the agent (body) and the CLI (frontmatter) — that split is where the whole
corrupt-frontmatter failure mode came from, and a later step imports the soul into CLAUDE.md, which requires pure
markdown with no metadata block. Watermark state also had to stop being Codex-specific: the upcoming external Claude
session scan needs a per-session watermark home, so the codex-meta.toml split (already flagged as temporary in the
spec) folds into the same file.
Existing installs are deliberately not migrated here: the migration routine ships unit-tested but unwired, and a later
revision's hard-epoch bump drives it. Until then
leiter claude installrefuses a legacy layout rather thanhalf-migrating it, and its write ordering is chosen so a torn install self-heals on rerun.
Also adds
leiter soul mark-upgraded: soul_version now advances only after the agent actually finishes restructuring —the same fail-safe direction as mark-distilled, replacing the old "trust the agent to edit frontmatter" step.
changelog: include