Skip to content

repair: the cursor-expiry restore runs through the cursor-authority kernel (no behaviour change) - #47

Merged
jaredLunde merged 2 commits into
mainfrom
jared/repair-kernel
Nov 22, 2026
Merged

jaredLunde merged 2 commits into
mainfrom
jared/repair-kernel

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

The restore's step order (ahead check, diff, listing and its window re-check, chunks, cursor commit, reply) and its refusals were control flow in src/repair.rs, re-described by hand in tests/model_repair.rs. They are now applied::step events and actions (a Restore phase in kernel state; extended kernels::applied rather than a new kernel, since the drain/settle/relist ordering and the relisting flag already live there: one state type, one interpreter). repair.rs runs the actions only. No behaviour change: same order, same messages, listing and window re-check still skipped when there are no delete candidates.

Gates: cargo test --no-fail-fast --lib --tests --features fjall,rocksdb,transport --locked all green (nats-server/minio on PATH); clippy --all-features -D warnings; cargo doc -D warnings; dprint on rust/md clean. New kernel unit tests cover order, refusals, out-of-phase events. ARCHITECTURE.md updated.

🤖 Generated with Claude Code

jaredLunde and others added 2 commits November 21, 2026 16:09
…ernel

The restore's step order (ahead check, diff, listing and its window re-check,
chunks, cursor commit, reply) and its refusals were control flow in
repair.rs, re-described by hand in tests/model_repair.rs. They are now
applied::step events and actions (Restore phase in kernel state); the shell
runs the actions only. No behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jaredLunde
jaredLunde merged commit e7069d9 into main Nov 22, 2026
1 check failed
@jaredLunde
jaredLunde deleted the jared/repair-kernel branch November 22, 2026 00:18
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