Architecture & Design Explanations¶
This quadrant explains how FileCleaner enforces deterministic fail-closed safety guarantees, why its core pure-Rust and Diátaxis architectural decisions were adopted, and how its retention calculus and TOCTOU defenses operate across filesystems and object storage.
Contents¶
| Document | Focus | Primary Topics |
|---|---|---|
| Fail-Closed Six-Phase Pipeline | System Architecture | Strict phase isolation (Scan -> InUseProbe -> BackupGuard -> RetentionEval -> PreHook -> Execute), injectable traits, daemon event loop, and crash-safe staging |
| ADR-001: Pure-Rust Fail-Closed Engine | Engine Design Decision | Why FileCleaner mandates zero C/C++ -sys crates across 9 targets and prioritizes safety floors over retention caps |
| ADR-002: Diátaxis and Versioned MkDocs Publishing | Documentation Decision | Why FileCleaner separates operational docs into 4 Diátaxis quadrants and builds multi-version static bundles for IONOS Apache |
| Retention Calculus and TOCTOU Defenses | Mathematical & Systems Deep Dive | Filter algebra, staleness freezes, quota conservation under in-place transforms, handle pinning (O_NOFOLLOW), and S3 SHA-256 proofs |
Foundational Engineering Context¶
- Formal Specifications (EN / FR): Read Formal Technical Specifications and Spécifications formelles for the complete normative contract.
- Dev-Team Alignment Record: Read Dev-Team Alignment Session for the initial architecture alignment synthesis.
- Root Cause & Trade-Off Traceability: Read RCA Register and
Action Logbook for recorded dead-ends (
IMP-*), platform approximations (APP-*), and postmortem fixes (RCA-*).
Sibling Quadrants¶
- Portal Home: Documentation Portal
- Tutorials: Guided Sandbox Labs
- How-To Guides: Operational SOPs and Incident Runbooks
- Reference: Configuration, CLI & Error Specifications