cotal space rm STEP 7 (per-space-lifecycle.md §2.2): reap ONE tenant's per-agent standing
secrets — the residue that step used to LIST and leave behind, because before this series the
creds dir named no tenant and reaping one space's would have risked a sibling's.
IT CANNOT REFUSE, the same contract reapSpaceMaterial carries and for the same reason: it
runs past step 5's point of no return, where a throw strands the journal entry and recurs
identically on every re-run. Seam failures are returned, not thrown, and the caller must read
failed or the material silently survives the tenant. Its precondition is
assertAgentSecretsReapable, asked at step 1.
THE ENUMERATION IS ALSO GUARDED, which P7's reap does not need. P7 sweeps a fixed array of four
kinds; this set is OPEN and discovered by reading the segment, so the reap has an I/O step BEFORE
its first seam call, and an unreadable segment there would throw straight out of a function that
has promised not to. It is reported like any other failure instead. (The one input that could
still throw is the space name, encoded once up front before anything has happened — and it comes
from the verb's own inventory read, not from disk.)
The seam deletes come FIRST and are addressed by the on-disk key, never through
agentCredsDir: a reaper is a DELETER (§3.1), so it must not migrate material into the path
it is about to remove — and on the multi-tenant root this verb runs on, that migration is the very
mis-attribution the precondition exists to prevent. The store is asked because under a
non-plain-file composition the key is where the material lives; the directory removal after it is
what takes the non-key files in the segment (the .auth-health.json runtime state, which is never
a store key) and anything a stray left behind.
It removes only THIS space's segment, never auth/creds itself. That parent is the shared one —
every tenant's segment is a child of it — so the glob-shaped reach a reader arrives at after
seeing a directory removal would take every survivor's live agent secrets and report success.
WHAT IT DOES NOT REACH: an INJECTED composition. The reap enumerates from the filesystem because
SecretStore has no list operation and P1's key set is open — there is no fixed array to
sweep the way P7 sweeps its four kinds — so a hosted deployment reaps a tenant's agent secrets
through its own store's teardown. That is the same boundary agentSecretKeysUnder already
draws for clean all, stated here rather than left to be discovered: a removed list from a root
with no local segment is empty because there was nothing local, not because a store was checked.
cotal space rmSTEP 7 (per-space-lifecycle.md§2.2): reap ONE tenant's per-agent standing secrets — the residue that step used to LIST and leave behind, because before this series the creds dir named no tenant and reaping one space's would have risked a sibling's.IT CANNOT REFUSE, the same contract reapSpaceMaterial carries and for the same reason: it runs past step 5's point of no return, where a throw strands the journal entry and recurs identically on every re-run. Seam failures are returned, not thrown, and the caller must read
failedor the material silently survives the tenant. Its precondition is assertAgentSecretsReapable, asked at step 1.THE ENUMERATION IS ALSO GUARDED, which P7's reap does not need. P7 sweeps a fixed array of four kinds; this set is OPEN and discovered by reading the segment, so the reap has an I/O step BEFORE its first seam call, and an unreadable segment there would throw straight out of a function that has promised not to. It is reported like any other failure instead. (The one input that could still throw is the space name, encoded once up front before anything has happened — and it comes from the verb's own inventory read, not from disk.)
The seam deletes come FIRST and are addressed by the on-disk key, never through agentCredsDir: a reaper is a DELETER (§3.1), so it must not migrate material into the path it is about to remove — and on the multi-tenant root this verb runs on, that migration is the very mis-attribution the precondition exists to prevent. The store is asked because under a non-plain-file composition the key is where the material lives; the directory removal after it is what takes the non-key files in the segment (the
.auth-health.jsonruntime state, which is never a store key) and anything a stray left behind.It removes only THIS space's segment, never
auth/credsitself. That parent is the shared one — every tenant's segment is a child of it — so the glob-shaped reach a reader arrives at after seeing a directory removal would take every survivor's live agent secrets and report success.WHAT IT DOES NOT REACH: an INJECTED composition. The reap enumerates from the filesystem because SecretStore has no list operation and P1's key set is open — there is no fixed array to sweep the way P7 sweeps its four kinds — so a hosted deployment reaps a tenant's agent secrets through its own store's teardown. That is the same boundary agentSecretKeysUnder already draws for
clean all, stated here rather than left to be discovered: aremovedlist from a root with no local segment is empty because there was nothing local, not because a store was checked.