Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

I2 · The installed core package’s hash equals the hash recorded in its signature

planarian @ a924e09 · Spec v4.6 · snapshot main · all versions

The installed core package’s hash equals the hash recorded in its signature. In A–D the reference hash is recorded by the build and covers every Planarian binary and script (§12d); it detects a swapped file, not a rebuilt generation.

— SPEC §7

StatusProof phased:aGym
Tested, not provedE0 : 2 (baseline 0 : 2, not degraded)2 entries, 2 must-pass

How it is proved

No obligation discharges it: nothing about it is proved.

What it rests on

If any of these is false, the proof no longer describes the real machine.

IdAssumptionKindAlso relied on by
P5SHA-256 is collision-resistant (the journal’s hash chain, I18)PlatformI8, I18
P8The kernel and systemd are correctPlatformI1, I3, I9, I17, I20, I22

How it is tested

EntryHarnessWhat it doesExpectsLatest verdict
posture-integrity-core-hashvmThe recorded core hash no longer matches its signature (I2). planarian-recovery’s independent check fails the boot as Integrity: tamper alarm, notify, no agents, remote access off; local login proceeds with the warning. Only an administrator clears it.invariants: I2, I20; not_started: service:gym-agent; posture: class Integrity, not [“halt_to_recovery”], responses [“alarm”, “notify_admins”, “disable_agents”, “restrict_remote”], target_reached planarian-failed@Integr…VM: not run in this build
posture-integrity-core-scriptvmOne posture script (planarian-ack), not planariad, no longer matches its line in the core-hash record. planarian-recovery checks every Planarian binary and script, so the boot fails as Integrity all the same (B-12).invariants: I2; posture: class Integrity, target_reached planarian-failed@Integrity.targetVM: not run in this build

Known limits

BypassRouteSeverityStatusCloses in
X-1Root edits the store, /boot, the binaries, the journal or the posture stateAcceptedAcceptedE
X-2A nixos-rebuild outside PlanarianAcceptedAcceptedC
X-3Firmware, bootloader and initrd run before planarian-ready.targetAcceptedAcceptedC, E
X-4Physical accessAcceptedAcceptedE
X-6The supply chain: nixpkgs content, cache signatures, input-addressed store pathsAcceptedAccepted—
X-7Backends report success falsely; systemd or the kernel misbehave (P1, P6, P8)AcceptedAcceptedD, E

History

SpecChange
v4Restored principles (now 12) and invariants (I1–I14) that v3 referenced but omitted
v4.5I2 states what the A–D core hash detects (B-12)

See also

§12d