Slim64FS Invariants (V6.3)
Core Contract Invariants
- Utilities must expose filesystem truth, not conceal it.
- No magical silent repair.
- No hidden replay.
- No "everything is fine" lies.
slim64fs_checkis read-only classification and must not mutate images.- Repair pipeline is IR-first:
scan -> Repair IR -> dry-run|repair -> class checkpoint -> post-check/report. --dry-runand--repairconsume the same canonical Repair IR; parity is required.- Repair ordering is strict and deterministic: class 1 bitmap, class 2 orphan, class 3 dirlog tail.
- Fail-stop behavior is mandatory: stop on first failure; do not execute later classes.
- Never checkpoint partial class state.
- V6.2 repair is bounded and conservative: no extent reconstruction, no metadata reconstruction, no V7 behaviors.
- No fake orphan recovery: never fabricate replacement file content for orphan inode recovery.
- Unsupported corruption is refused without
--force; with--force, only in-scope V6.2 repairs may run. repair_kindvalues currently in use are:REPAIR_BITMAP_LEAK=1,REPAIR_ORPHAN=2,REPAIR_DIRLOG_TAIL=3.
Additional V6.3 Invariants
flush_all_dirty_dirsprecedes everys64_fs_checkpoint(KS4 — hard invariant;safe_checkpoint()enforces this unconditionally; violation is a bug, not a warning. V7 xfstests validation confirmed this invariant under adversarial load: checkpoint boundaries remained clean — no dirty-dir leakage through the checkpoint path.)Scan is always read-only; repair reopens read-write separately (
run_full_scan_modeandscan_dirlog_torn_tailsuses64_fs_open_readonly;s64_fs_opencalled only after scan completes and readonly handle is closed)repair_kindenum is append-only (existing values 1/2/3 never reordered or redefined; V7 adds new values only)slim64fs_debugrequires--yesfor all destructive operations (no mutation without explicit operator confirmation)slim64_fsckdeprecated shim is not built or linked (kept in-tree for reference; Makefileshim-checkonly verifies it compiles, never runs it)
See Also
- [[durability_contract|Durability Contract]] — contract that enforces these invariants
- [[FORMAT|On-Disk Format]] — on-disk layout that implements Fill-or-Kill and Ordered Commit (née Anticipatory Sequencing)
- [[cooldude_md_golden_master|Cooldude Persona]] — the adversarial reviewer these invariants must satisfy