Expand description
Exhaustive daemon-artifact reconciliation for cleanup verify (#391).
Exhaustive daemon-artifact reconciliation for cleanup verify (#391,
part of #354).
Enumerates every artifact class the daemon can leave behind — IPC
socket, pid file, .servicedef files, the SQLite registry database
(plus WAL/SHM sidecars), log files, the ENOSPC emergency reserve, and
shadow-dir contents — and reports each location as clean, active,
present, stale, or orphaned. READ-ONLY by contract: nothing is created,
deleted, or rewritten. The documented operator checklist lives in
docs/v1-troubleshooting.md (“Cleanup Verification”).
Every check is a pure function over injected paths/probes so tests can
exercise each class with temp dirs on all platforms; only the
ArtifactPaths::from_environment constructor and the default probes
in run touch the real environment.
Structs§
- Artifact
Check - One reconciled artifact location.
- Artifact
Paths - Every expected daemon artifact location. Fully injectable for tests;
Self::from_environmentderives the real platform locations without creating any directory. - Artifact
Report - Aggregated artifact reconciliation report.
Enums§
- Artifact
Status - Reconciliation outcome for one artifact location.
- Socket
Location - Where the daemon socket lives on this platform.
Constants§
- EMERGENCY_
RESERVE_ BYTES - Expected size of a fully-armed emergency reserve. Mirrors
daemon::emergency_reserve::EMERGENCY_RESERVE_BYTES. - EMERGENCY_
RESERVE_ FILE_ NAME - Leaf name of the ENOSPC emergency reserve file (#390). Mirrors
daemon::emergency_reserve::EMERGENCY_RESERVE_FILE_NAME, duplicated here because this module isclient-only while the canonical constant is gated behind thedaemonfeature.
Functions§
- check_
database - Reconcile the SQLite registry database and its WAL/SHM sidecars.
- check_
emergency_ reserve - Reconcile the 32 MiB ENOSPC emergency reserve (#390).
- check_
logs - Reconcile log files (
*.log) in the daemon data directory. None are expected by default; any found are reported, never deleted. - check_
pid_ file - Reconcile the daemon pid file against process liveness.
- check_
service_ definitions - Reconcile the service-definition directory:
.servicedeffiles are expected persistent config; anything else in the directory is orphaned. - check_
shadow_ dir - Reconcile shadow-dir contents (relocated daemon binaries).
- check_
socket - Reconcile the daemon IPC endpoint.
- run
- Reconcile every artifact class against the live environment.
- run_
with_ probes runwith injected liveness/connect probes (test seam).