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

I24 · An agent’s authority is bound to the one AgentStarted record for the unit instance it …

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

An agent’s authority is bound to the one AgentStarted record for the unit instance it runs in, identified by that instance (not by name); a second start under the same name neither rebinds a running agent nor is journaled before it has succeeded (§11, §16).

— SPEC §7

StatusProof phased:aGym
Tested, not provedA0 : 3 (baseline 0 : 3, not degraded)1 entry, 1 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
P4Journal fsync is durable and the preallocation is writablePlatformI6, I7, I12, I15, I18, I25
P6systemd reports unit state truthfully over D-Bus and honors X-RestartIfChanged / X-StopIfChangedPlatformI4, I13, I20
U5Identity resolution (§10): peer credentials and pidfd to logind session, seat, terminalInternal unprovenI19, I21

How it is tested

EntryHarnessWhat it doesExpectsLatest verdict
agent-name-collisionfake, vmalice (uid 1000) starts an agent named helper. An administrator then runs planarian agent run helper too: refused, naming alice as its owner. alice’s agent stays alice’s: its stop of gym-web, a system unit she may not stop, is refused. Authority is bound to the instance a start journaled, never the name (I24).reports: AgentNameInUse; txn: service:gym-web StopAndSuppress; units: service:gym-web Runningfake: PASS; VM: not run in this build

Also tested by daemon core tests.

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-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
X-10A program a user runs under their own uid, outside planarian agent run (an agent started by hand from a shell)AcceptedAcceptedC

History

SpecChange
v4.6I24: agent authority bound per instance

See also

§11 · §16