Skip to content

feat: guard all commands against binary/configuration drift#78

Merged
scode merged 1 commit intomainfrom
epoch-hardening
Mar 2, 2026
Merged

feat: guard all commands against binary/configuration drift#78
scode merged 1 commit intomainfrom
epoch-hardening

Conversation

@scode
Copy link
Copy Markdown
Owner

@scode scode commented Mar 2, 2026

The leiter binary and its configuration (soul file, hooks, skills) are
installed independently, creating problem cases when they fall out of sync:
binary upgraded but setup not re-run, binary downgraded, or corrupt
frontmatter. Previously only leiter hook context checked epochs, and
leiter claude install silently overwrote them.

Now every command except session-end validates epochs via a single shared
function (validate_soul). Corrupt frontmatter is treated as a hard fail
(was fail-open). leiter claude install refuses to overwrite epochs from a
different binary version instead of silently downgrading.

changelog: include

Copy link
Copy Markdown
Owner Author

scode commented Mar 2, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@scode scode force-pushed the epoch-hardening branch 8 times, most recently from 1903527 to 23b463c Compare March 2, 2026 03:56
The leiter binary and its configuration (soul file, hooks, skills) are
installed independently, creating problem cases when they fall out of sync:
binary upgraded but setup not re-run, binary downgraded, or corrupt
frontmatter. Previously only `leiter hook context` checked epochs, and
`leiter claude install` silently overwrote them.

Now every command except `session-end` validates epochs via a single shared
function (`validate_soul`). Corrupt frontmatter is treated as a hard fail
(was fail-open). `leiter claude install` refuses to overwrite epochs from a
different binary version instead of silently downgrading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scode scode force-pushed the epoch-hardening branch from 23b463c to e7cf8fb Compare March 2, 2026 04:09
@scode scode merged commit 4bd9204 into main Mar 2, 2026
16 checks passed
@scode scode deleted the epoch-hardening branch March 4, 2026 03:49
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