Action Logbook — FileCleaner Project¶
Governance Rule (
AGENTS.md§2 &.agents/rules/project-governance.md): This Action Logbook MUST be systematically updated on every request, every change, and every result (strictly in English). - Every new request is logged under "1. Ongoing Actions (IN PROGRESS)" as soon as its GitHub Issue is opened. - Once validated by Rust formatting, Clippy, and unit/integration tests (cargo fmt,cargo clippy,cargo test) and its Pull Request is created/merged, the entry is completed with the exact Changes and quantified Result, then moved under "2. Completed Actions (COMPLETED)".
1. Ongoing Actions (IN PROGRESS)¶
| Action ID | Date / Time (ISO) | Issue / Branch | Status | Request, Ongoing Changes & Expected Results |
|---|---|---|---|---|
| None | — | — | IDLE |
No ongoing actions. |
2. Completed Actions (COMPLETED)¶
ACT-018 — Separate EN/FR MkDocs Builds, Author French Diátaxis/STF Tree, Fix Mermaid Diagrams & Add E2E Tutorial Tests (Issue #40)¶
- Date / Time (ISO):
2026-11-24T00:55:00Z - Issue / Branch:
#40(docs/issue-40-diataxis-i18n-mermaid) - Request: Resolve Ponytail documentation audit findings for
jmrenouard/FileCleanerby isolating English (mkdocs.yml) and French (mkdocs.fr.yml) MkDocs Material builds withextra.alternate, creating the full French Diátaxis 4-quadrant tree underdocs/fr/(01-tutoriels/, ASD-STF10002-guides-pratiques/,03-reference/,04-explications/), verifying all Mermaid diagrams (mmdc+ Playwright), repairingADR-002/ release tag install links /README.fr.mdlinks, and adding executable Rust + Python tutorial/how-to/Mermaid/i18n verification tests. - Changes:
mkdocs.yml,mkdocs.fr.yml,.vale.ini: Separated EN (language: en,/fr/& French quadrants excluded) and FR (language: fr,/index.md,/en/, & English quadrants excluded) configurations withextra.alternateswitcher entries and Vale exemptions fordocs/fr/**/*.mdandREADME.fr.md.scripts/mkdocs_hooks.py&scripts/build_versioned_docs.py: Added language-aware hook routing (_get_config_language,_derive_language_base_paths,_sync_alternate_switcher,InclusionLevel.INCLUDEDroot remapping fordocs/fr/, cross-language target rewriting, historicalRELEASE_NOTES_*.md/ French fallback routing) and dual-language versioned output (<ver>/EN,<ver>/fr/FR, per-version<ver>/versions.jsonFR manifest, rootfr/index.html, and.htaccess^frredirect)..github/workflows/docs-ci.yml&.github/workflows/docs-publish.yml: Addedmkdocs.fr.ymlpath triggers, dual strict builds (mkdocs.yml+mkdocs.fr.yml), built French artifact assertions (site_dist/fr/index.html,site_dist/main/fr/index.html,site_dist/main/versions.json), and live HTTPS smoke checks on/main/fr/and/fr/preserving 40-char SHA pinning andpermissions: contents: read.docs/fr/index.md,docs/fr/01-tutoriels/(01–03),docs/fr/02-guides-pratiques/(5ASD-STF100 operational procedures acrossdeploiement/,exploitation/,gestion-incidents/,securite/),docs/fr/03-reference/(configuration/,cli-et-scripts/,codes-erreurs/),docs/fr/04-explications/(vue-architecture/,decisions-architecture/,analyses-internes/): Authored the 20-page French Diátaxis tree cross-linked with realfilecleanerv1.1.0 CLI commands, exit codes, TOML schemas, Mermaid diagrams, and column-0 KaTeX math.README.md,README.fr.md,docs/index.md,docs/01-tutorials/01-local-retention-sandbox.md,docs/01-tutorials/02-backup-guard-and-in-use-lab.md,docs/02-how-to-guides/deployment/deploy-filecleaner-docker-and-systemd.md,docs/en/USER_GUIDE.md,docs/fr/GUIDE_UTILISATEUR.md,docs/en/SPECIFICATIONS.md,docs/fr/SPECIFICATIONS.md,docs/04-explanation/design-decisions/adr-001-pure-rust-fail-closed-engine.md,docs/04-explanation/design-decisions/adr-002-diataxis-versioned-mkdocs-publishing.md: FixedREADME.fr.md&README.mdFrench Diátaxis links (preserving exact EN/FR heading parity), aligned Docker Hub tags (:v1.0.1), container non-root UID/GID (10001:10001), CLI options/enum variants, andADR-002EN/FR separation, clarifiedv1.0.1release vsmainsource install instructions, added macOS/BSD portable timestamp guidance, replaced Mermaid\nescapes with<br/>, and removed&semicolons breakingsequenceDiagramparsing.tests/test_diataxis_documentation.py,tests/test_mkdocs_publishing.py,tests/governance_and_docs_test.rs,tests/tutorial_and_howto_e2e_test.rs,docs/RCA_REGISTER.md: Added French Diátaxis/ASD-STF100/Mermaid/i18n/versioned-FR tests, extended Rust TOML/YAML validation todocs/fr/01-tutoriels/anddocs/fr/02-guides-pratiques/, added executable CLI E2E tutorial & how-to tests (filecleanerbinaryinit,validate,plan,run,--fail-on-freezeexit3,check-in-useexit10,--pre-hookexit-42skip veto,daemon service-template), and updatedAPP-004.- Result:
diataxis_check.py docs --strict --check-ste --lang en: PASS (0 error(s), 0 warning(s)across52files);diataxis_check_fr.py docs/fr --strict --check-stf: PASS (0 error(s), 0 warning(s)across24files);audit_helpers.py: PASS (56files,17/17Mermaid blocksmmdcOK,0ASCII/indented/untagged,0language mix); Playwright Chromium crawl on/main/(30pages,9SVGs) and/main/fr/(30pages,8SVGs):0failures.pytest tests/ -v:26 passed; WSL2cargo fmt --all -- --check: PASS;cargo clippy --all-targets -- -D warnings: PASS (0warnings);cargo test --all-targets:139 passed, 0 failed, 1 ignored(live Docker E2E).
ACT-017 — Publish Versioned Diátaxis MkDocs Material Documentation Portal to IONOS (Issue #38)¶
- Date / Time (ISO):
2026-11-23T18:01:00Z - Issue / Branch:
#38(feat/issue-38-mkdocs-diataxis-publishing) - Request: Configure and publish FileCleaner technical documentation in MkDocs Material with full Diátaxis 4-quadrant architecture and ASD-STE100 Issue 9 procedural compliance, supporting both current
main(/main/,/dev/) and immutable Git release tags (v1.0.0,v1.0.1, and futurev*//latest/) deployed via GitHub Actions SFTP to IONOS (https://filecleaner.lightpath.fr) using KeePass-provisionedIONOS_FTP_*andIONOS_REMOTE_PATH(filecleaner.lightpath.fr) secrets. - Changes:
- Provisioned
IONOS_FTP_SERVER,IONOS_FTP_USERNAME,IONOS_FTP_PASSWORD,IONOS_FTP_PORT, andIONOS_REMOTE_PATH(filecleaner.lightpath.fr) injmrenouard/FileCleanerrepository secrets via in-memory KeePass vault injection (zero plaintext output). mkdocs.yml,requirements-docs.txt,.vale.ini,.markdownlint.json,.gitignore,docs/stylesheets/extra.css,docs/javascripts/katex.js: Configured Material 6-tab Diátaxis navigation, light/dark indigo/cyan palette,pymdownx.superfencesMermaid custom fence, KaTeX0.16.11math auto-rendering acrossdocument$,provider: mikeversion switcher, and.kdbx/.keyx/.env/.fc-tmp/.pidexclusions.scripts/mkdocs_hooks.py&scripts/build_versioned_docs.py: Added MkDocs-optional build hooks (gfm_slugify, GitHub alert conversion, Markdown + HTML<img src>depth-aware link rewriting, historicaldocs/docs/and quadrant fallbacks forv1.0.0/v1.0.1, virtual root doc injection, semverRELEASE_NOTES_*.mddiscovery, nav pruning) and multi-versiongit archive+ overlay bundle generator (versions.json,.htaccessHTTPS301+/latest///dev/302, protected-output guard, post-build privacy scan)..github/workflows/docs-ci.yml&.github/workflows/docs-publish.yml: Added SHA-pinned, least-privilege (contents: read) Docs-as-Code CI and IONOS SFTP publish workflows with zero script interpolation (${{forbidden insiderun:) and post-deploy HTTPS smoke checks onhttps://filecleaner.lightpath.fr.docs/index.md,docs/01-tutorials/index.md(01–03),docs/02-how-to-guides/index.md(5ASD-STE100 guides acrossdeployment/,operations/,incident-response/,security/),docs/03-reference/index.md(configuration/,cli-and-scripts/,troubleshooting-codes/),docs/04-explanation/index.md(architecture-overview/,design-decisions/adr-001..002,deep-dives/),docs/RELEASE_NOTES_v1.0.1.md,README.md,README.fr.md: Authored complete Diátaxis 4-quadrant portal, repaireddocs/RELEASE_NOTES_v1.0.1.mdrelative links, addedhttps://filecleaner.lightpath.frDocs badges and quadrant links inREADME.md/README.fr.mdkeeping exact EN/FR heading parity, and updateddocs/RCA_REGISTER.md(RCA-010,APP-004).tests/test_diataxis_documentation.py,tests/test_mkdocs_publishing.py,tests/governance_and_docs_test.rs: Added 22 Python Diátaxis/STE/MkDocs/workflow unit + E2E tests and extended Rust governance checks to enforce SHA pinning ondocs-ci.yml/docs-publish.ymland validate all TOML/YAML config blocks inside01-tutorials/and02-how-to-guides/.- Result:
diataxis_check.py docs --strict --check-ste --lang en: PASS (0 error(s), 0 warning(s)across32markdown files);ste_check.py --mode procedural --lang enon all 5 non-index02-how-to-guides/files: PASS (0 errors, 0 warnings).- Bare Python
pytest tests/test_diataxis_documentation.py tests/test_mkdocs_publishing.py -v: PASS (21 passed, 1 skippedwithoutmkdocs); MkDocs venvpytest: PASS (22 passed, 0 failed, 0 skipped); multi-versionscripts/build_versioned_docs.py --main-ref WORKTREE: PASS (main,v1.0.1[latest],v1.0.0,0broken local asset refs,0leaked private files). - WSL2 Rust verification (
CARGO_TARGET_DIR=/var/tmp/filecleaner-target):cargo fmt --all -- --checkPASS,cargo clippy --all-targets -- -D warningsPASS (0warnings),cargo test --all-targetsPASS (135/135active,1ignored live Docker E2E),cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.02%lines /92.09%regions across11,473lines); PR-scoped/ponytail-reviewfixed 2 findings (test_mkdocs_publishing.py:612relative link +deploy-filecleaner-docker-and-systemd.mdUID10001ownership) and returnedVerdict: Ship..
ACT-016 — Bump Crate Version to v1.1.0, Synchronize Guides/CHANGELOG/RCA Register, and Verify Release Readiness (Issue #36)¶
- Date / Time (ISO):
2026-11-22T03:28:00Z - Issue / Branch:
#36(chore/issue-36-release-v1.1.0-prep) - Request: Prepare FileCleaner
v1.1.0for release by bumpingCargo.toml/Cargo.lockto1.1.0, updating remaining bilingual user guides and README badges, cutting## [1.1.0]inCHANGELOG.md, markingIDEA-001shipped indocs/RCA_REGISTER.md, enforcing EN/FR heading parity across all 5 doc pairs intests/governance_and_docs_test.rs, and running full multi-target release verification. - Changes:
Cargo.toml&Cargo.lock: Bumped package version from1.0.1to1.1.0.tests/governance_and_docs_test.rs: Updated crate version assertion to"1.1.0"and expanded heading parity enforcement to cover all 5 bilingual pairs (README,HOWTO,USER_GUIDE/GUIDE_UTILISATEUR,COOKBOOK_EXAMPLES/EXEMPLES_RECETTES,SPECIFICATIONS).docs/en/USER_GUIDE.md,docs/fr/GUIDE_UTILISATEUR.md,docs/en/HOWTO.md,docs/fr/HOWTO.md,docs/en/SPECIFICATIONS.md,docs/fr/SPECIFICATIONS.md,docs/en/COOKBOOK_EXAMPLES.md,docs/fr/EXEMPLES_RECETTES.md,README.md,README.fr.md: Synchronizedv1.1.0release tags/archives,--profile dba-postgres,upload_s3,[s3]/[rules.s3],INV-CFG-01..14,S3Uploadexit1, JSONLdetails, and final verified v1.1.0 test/coverage badges.CHANGELOG.md: Cut## [1.1.0] - 2026-11-22summarizing Issues#24–#36.docs/RCA_REGISTER.md: MarkedIDEA-001shipped inv1.1.0and moved remaining roadmap items (IDEA-002..IDEA-004) tov1.2.- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),cargo test --all-targetsPASS (135/135active:69unit +66integration across11suites +1live 6-scenario PG17/MinIO Docker E2E test previously verified1/1),cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.01%line coverage /92.08%region coverage across11,473lines), and pure-Rustcargo treeverified zeroring/cc/aws-lc-*/openssl-*C bindings.
ACT-015 — Document S3 Archival Sink and DBA PostgreSQL WAL Profile in Bilingual EN/FR Specs & Cookbooks (Issue #34)¶
- Date / Time (ISO):
2026-11-22T03:17:00Z - Issue / Branch:
#34(docs/issue-34-bilingual-s3-dba-specs-cookbooks) - Request: Synchronize bilingual English and French technical specifications, production cookbooks, and root READMEs for FileCleaner v1.1
upload_s3archival sink and DBA PostgreSQL WAL/base-backup retention workflows. - Changes:
docs/en/SPECIFICATIONS.md&docs/fr/SPECIFICATIONS.md(64/64heading parity): Documented pure-Rust S3 transport stack (ureqv3,rustls,rustls-rustcrypto,hmac,base64), top-level[s3]and[rules.s3],ActionStep::UploadS3,S3Config&S3VerifyMode,INV-CFG-08/INV-CFG-10/INV-CFG-13/INV-CFG-14, §7.2.5UploadS3SigV4 + multipart + fail-closed SHA-256 verification protocol (LocalDeleteAllowedinvariant),--profile dba-postgres,FileCleanerError::S3Upload, JSONLdetailsmetadata, and S3 security threat mitigations.docs/en/COOKBOOK_EXAMPLES.md&docs/fr/EXEMPLES_RECETTES.md(26/26heading parity): Added Recipe 5 (PostgreSQL Base Backups & WAL Spool Archival to S3 / MinIO withupload_s3,.history/.partialPITR guards,verify_pg_wal_safe.sh,init --profile dba-postgres, validated TOML config, expected JSONL audit output, and live Docker E2E commands viascripts/e2e-dba-s3-lab.sh).README.md&README.fr.md(15/15heading parity): Updated feature matrix, pure-Rust dependency stack, and CLI quickstart (upload_s3,init --profile dba-postgres,scripts/e2e-dba-s3-lab.sh).- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target): EN/FR heading parity100%across all 5 doc pairs (15/15,64/64,26/26,26/26,44/44),cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings), andcargo test --all-targetsPASS (135/135active, includingall_documented_configs_and_examples_parse_and_validatevalidating Recipe 5 EN & FR TOML blocks andall_repository_markdown_files_enforce_latex_math_integrity_rules).
ACT-014 — Add Docker/MinIO E2E Verification Harness Against PostgreSQL (multi-db-docker-env) (Issue #32)¶
- Date / Time (ISO):
2026-11-22T03:07:00Z - Issue / Branch:
#32(test/issue-32-docker-e2e-minio-lab) - Request: Build a reproducible Docker E2E harness (
scripts/e2e-dba-s3-lab.sh) and Rust integration suite (tests/e2e_dba_s3_docker_test.rs) validating all 6 live DBA PostgreSQL 17 (multi-db-docker-env-compatible) + pinned MinIO S3 archival scenarios end-to-end. - Changes:
scripts/e2e-dba-s3-lab.sh: Added self-cleaning Bash E2E harness provisioning an isolated Docker network, PostgreSQL 17 (postgres:17-bookworm,wal_level=replica,archive_mode=on), and pinned MinIO (pgsty/minio:RELEASE.2026-08-04T00-00-00Z) exercising all 6 DBA scenarios (real 16 MiB WAL +pg_dumpgeneration, activeflock/.tmpwritercheck-in-useexit10+skip_in_use, livecompress -> upload_s3 (x-amz-checksum-sha256) -> delete, MinIO outage + corrupt-checksum fault injection exit1with 100% local retention, 0-byte stub--fail-on-freezeexit3, and MinIO object download +audit.jsonlSHA-256 verification + full 253-row PostgreSQL restore).tests/e2e_dba_s3_docker_test.rs: Added always-on CI-safe validator verifying Bash headers/traps/syntax (bash -non Unix), security hygiene (noAKIA, no:latest), andConfig::validate()on the embedded TOML template, plus#[ignore]live Docker E2E runnerlive_docker_e2e_postgres_minio_six_scenarios.docs/RCA_REGISTER.md: LoggedRCA-009documenting Docker Hubminio/miniopull denial, WSL2-ploopback forwarding, PG17initdbTCP readiness, and WSL2/tmpvs/var/tmpbind-mount namespace isolation.- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),cargo test --all-targetsPASS (135/135active:69unit +66integration across11suites,1ignored), live Docker E2Ecargo test --test e2e_dba_s3_docker_test -- --ignored --nocapturePASS (1/1in17.89s, 6/6 scenarios including48.00 MiBreal WAL archival and 253-row PG17 restore, zero leftover containers), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.01%line coverage /92.08%region coverage across11,473lines).
ACT-013 — Add DBA PostgreSQL WAL and Backup Retention Profile to CLI init and Examples (Issue #30)¶
- Date / Time (ISO):
2026-11-22T02:39:00Z - Issue / Branch:
#30(feat/issue-30-dba-postgres-wal-profile) - Request: Add the
--profile dba-postgresstarter template tofilecleaner init(src/cli.rs), ship validated TOML/YAML production examples (examples/dba-postgres-wal-s3.{toml,yaml}) and a PITR/replica WAL safety pre-delete hook (examples/hooks/verify_pg_wal_safe.sh), and verify all DBA safety invariants with E2E tests. - Changes:
src/cli.rs: AddedInitProfile::DbaPostgres(--profile dba-postgres, TOML and YAML templates withdry_run = true,pg-base-backupsandpg-wal-archiverules), unifiedinit_profile_labelfor CLI/JSON output parity, and expandedstarter_templates_validate_for_every_profile_and_format.examples/dba-postgres-wal-s3.toml&examples/dba-postgres-wal-s3.yaml: Added production DBA PostgreSQL base-backup and WAL archive-to-S3 examples (auto-validated bytests/governance_and_docs_test.rs).examples/hooks/verify_pg_wal_safe.sh: Added POSIX/Bash PITR base-backup and standby-replica WAL boundary safety hook (exit 42veto on non-WAL / held / protected segments, fail-closedexit 1on unreadable/malformed boundary markers).tests/product_workflows_e2e_test.rs: Addedhowto_workflow_5_dba_postgres_wal_and_base_backups_s3_archival_and_pitr_guardstestinginit --profile dba-postgres,validate, 0-byte stub--fail-on-freeze(exit 3),.history/.partial/archive_status/*.readyprotection, hookexit 42veto, and verified S3 archival + LZ4 decompression.- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):bash -n examples/hooks/verify_pg_wal_safe.shPASS,cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings),cargo test --all-targetsPASS (134/134:69unit +65integration across10suites), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.01%line coverage /92.08%region coverage across11,473lines;cli.rs95.14%). Dedicated/ponytail-reviewcaught and fixed locale-dependent Bash hex/LSN collation (export LC_ALL=C) inverify_pg_wal_safe.shand added direct hook boundary-file/replica/malformed-marker tests before merge (PR#31).
ACT-012 — Integrate Fail-Closed UploadS3 Action into Pipeline, Engine, and Audit Log (Issue #28)¶
- Date / Time (ISO):
2026-11-22T02:28:00Z - Issue / Branch:
#28(feat/issue-28-s3-pipeline-integration) - Request: Connect
src/s3.rs(S3Uploader) into FileCleaner's Phase 6 action pipeline (src/actions.rs), sweep orchestrator (src/engine.rs), and structured JSONL audit logging (src/audit.rs) with strict fail-closed deletion guarantees, dry-run parity, and cross-platform loopback tests (tests/s3_archival_sink_test.rs). - Changes:
src/actions.rs: Addedremote_uri: Option<String>ands3_receipt: Option<S3UploadReceipt>toActionReport; added backward-compatibleActionExecutor::execute_pipeline_with_s3; implemented liveActionStep::UploadS3with TOCTOU-safeopen_regular_nofollow_read+ handle-based SHA-256 hashing (compute_handle_sha256), fail-closed short-circuiting beforeDelete/Trash/Move, and zero-I/O dry-run URI projection.src/engine.rs: AddedSweepEngine::run_config_with_s3, lazy single-uploader sharing for live S3 sweeps (zero overhead on non-S3 rules), propagation of globalconfig.s3, and structured S3 audit metadata (sha256,details.s3_uri,details.etag,details.verify_mode,details.parts_uploaded,details.verified_size) onActionExec,FileDecision, andError.tests/s3_archival_sink_test.rs: Added cross-platform loopback HTTP S3 integration tests coveringplan/--dry-runparity, live["compress", "upload_s3", "delete"]decompression verification, fail-closed SHA-256 mismatch / overwrite collision / 500 preservation beforeDelete/Trash/Move, and injectableSweepEngine::run_config_with_s3Constrainedand error-detail assertions.- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings),cargo test --all-targetsPASS (133/133:69unit +64integration across10suites), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (93.86%+ line coverage). Dedicated/ponytail-reviewcaught and fixedUploadS3readingtarget.pathinstead offinal_pathafterCopyTruncateorCompress(compress_remove_source=false)before merge (PR#29).
ACT-011 — Implement Pure-Rust S3 SigV4 Client with Fail-Closed SHA-256 Verification (Issue #26)¶
- Date / Time (ISO):
2026-11-22T02:16:00Z - Issue / Branch:
#26(feat/issue-26-s3-sigv4-client) - Request: Implement the pure-Rust S3 / S3-compatible transport and cryptographic verification layer (
src/s3.rs) preservingIMP-001(zero C/C++-syscrates, zeroring, zeroaws-lc-*, zeroopenssl-*). - Changes:
Cargo.toml&Cargo.lock: Added pure-Rustureqv3 (default-features = false,rustls-no-provider,rustls-webpki-roots),rustlsv0.23 (default-features = false,std,logging,tls12),rustls-rustcrypto(0.1.0-pre.0),hmac(0.12), andbase64(0.22). Verified zeroring/cc/aws-lc-*/openssl-*incargo treeacross Linux, Windows, and macOS.src/s3.rs: ImplementedS3Uploadertrait,HttpS3Uploader(rustls-rustcrypto,https_only(!allow_insecure_http),max_redirects(0)),RedactedSecretnon-logging credentials, AWS SigV4 canonical signer (verified against AWS official test vectors), streaming single-partPutObjectand S3 Multipart Upload (CreateMultipartUpload/UploadPart/CompleteMultipartUploadwith embedded<Error>detection /AbortMultipartUploadon failure), S3 composite multipart checksum matching (<b64>-<N>), non-overwriteHeadObjectpreflight, fail-closedHeadObject(x-amz-checksum-mode: ENABLED) and streamingGetObject(ReadbackSha256) verification, bounded 5xx retry, and deterministic loopbackTcpListenermock S3 tests.src/actions.rs&src/lib.rs: Madeopen_regular_nofollow_readpub(crate)for TOCTOU-safe S3 file streaming and exporteds3module symbols.tests/governance_and_docs_test.rs: Strengthenedcargo_manifest_enforces_version_and_pure_rust_contractto inspectCargo.tomlandCargo.lockfor forbidden native/C crates and verifyureq/rustlsremain offringandaws-lc-*.docs/RCA_REGISTER.md: LoggedAPP-003documenting the pure-Rustrustls-rustcryptoTLS backend trade-off.- Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),cargo test --all-targetsPASS (130/130:69unit +61integration across9suites), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (93.77%line coverage /92.14%region coverage across11,067lines). Dedicated/ponytail-reviewcaught and fixed SigV4 default-port:443/:80Host-header mismatch, empty key rejection, XML namespace attribute parsing, and 0-byte PutObject handling before merge (PR#27).
ACT-010 — Add S3 Archival Config Schema, Validation Invariants, and Error Types (Issue #24)¶
- Date / Time (ISO):
2026-11-22T00:48:00Z - Issue / Branch:
#24(feat/issue-24-s3-config-schema) - Request: Implement the v1.1
IDEA-001configuration and validation foundation (ActionStep::UploadS3,S3Config,S3VerifyMode,FileCleanerError::S3Upload,INV-CFG-10..INV-CFG-12, and pipeline/hook accounting) with zero network dependencies. - Changes:
src/config.rs: AddedActionStep::UploadS3(non-terminal),S3VerifyMode(ChecksumSha256default,ReadbackSha256),S3Config(env-var-only credential names, zero plaintext secrets),MIN_S3_MULTIPART_PART_SIZE(5 MiB), globalConfig.s3+Config::effective_s3, rule-levelRuleConfig.s3, andINV-CFG-10..INV-CFG-12validation (validate_s3_config).src/error.rs: AddedFileCleanerError::S3Upload { path, uri, reason }mapped toEXIT_OPERATIONAL_ERROR(1).src/hooks.rs,src/actions.rs,src/policy.rs,src/scanner.rs,src/cli.rs,src/lib.rs: Updatedformat_action_summary("upload_s3"), keptUploadS3non-destructive alone (RuleOutcome::Constrainedwhen caps remain exceeded), wired temporaryUploadS3guard arm inActionExecutor::execute_pipeline, exported new public config types, and initializeds3: Noneacross struct literals.- Tests: Added unit tests in
src/config.rs,src/error.rs,src/hooks.rs,src/policy.rs,src/actions.rs,src/cli.rs, and CLI integration checks intests/cli_validate.rs. - Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/tmp/filecleaner-target):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),cargo test --all-targetsPASS (127/127:66unit +61integration across9suites), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.50%line coverage /92.69%region coverage across9,533lines). Dedicated/ponytail-reviewcaught and fixed untrimmed whitespace/embedded-credential/upper-boundmultipart_part_sizevalidation edge cases before merge (PR#25).
ACT-009 — Release v1.0.1 and Publish Multi-Arch Docker Hub Image (jmrenouard/filecleaner) (Issue #22)¶
- Date / Time (ISO):
2026-11-20T22:23:00Z - Issue / Branch:
#22(chore/issue-22-release-v1.0.1-dockerhub) - Request: Prepare and ship GitHub Release
v1.0.1alongside hardened multi-architecture (linux/amd64,linux/arm64) Docker Hub publishing (jmrenouard/filecleaner) modeled onjmrenouard/cis_benchmarks_tools. - Changes:
- Provisioned
DOCKERHUB_USERNAMEandDOCKERHUB_TOKEN(dedicated repo-admin PAT saved in KeePassDev-Secrets) injmrenouard/FileCleanerrepository secrets via in-memory Python injection (zero plaintext output). - Created multi-stage hardened
Dockerfile(rust:1.100.0-bookwormbuilder -> non-rootdebian:bookworm-slimUID/GID10001fcuser:fcgroup,VOLUMEmountpoints,HEALTHCHECK, exec entrypoint) and.dockerignore, verified withlint_dockerfile.py --fail-on info(HIGH 0 WARN 0 INFO 0). - Created SHA-pinned multi-platform publishing workflow
.github/workflows/docker-publish.ymltargetingjmrenouard/filecleaner(latest,v1.0.1,1.0.1) with OCI andcom.filecleaner.release-noteslabels and preflight check. - Bumped crate version to
1.0.1inCargo.tomlandCargo.lock, cut## [1.0.1] - 2026-11-20inCHANGELOG.md, authoreddocs/RELEASE_NOTES_v1.0.1.md, updated EN/FR documentation (README.md,README.fr.md,docs/en/{USER_GUIDE,COOKBOOK_EXAMPLES,SPECIFICATIONS}.md,docs/fr/{GUIDE_UTILISATEUR,EXEMPLES_RECETTES,SPECIFICATIONS}.md), and added workflow + Dockerfile security assertions intests/governance_and_docs_test.rs. - Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/var/tmp/filecleaner-target-rel):cargo fmt --all -- --checkPASS, 3-targetcargo clippy --all-targets -- -D warningsPASS (0warnings),cargo test --all-targetsPASS (125/125:64unit +61integration across9suites), andcargo llvm-cov --fail-under-lines 90PASS (94.31%lines /92.45%regions across9,098lines). - Verified local container build (
docker build -t jmrenouard/filecleaner:1.0.1 .) and live container execution (filecleaner 1.0.1,uid=10001(fcuser),/datasweep2 evaluated, 1 acted, and bundled example validation).
ACT-008 — Post-v1.0.1 Ponytail Audit Fixes, Expanded Test Suite, and Bilingual 5-Minute HOWTO (Issue #20)¶
- Date / Time (ISO):
2026-11-20T18:45:00Z - Issue / Branch:
#20(feat/issue-20-audit-tests-simple-howto) - Request: Remediate post-
v1.0.1code audit edge cases, expand unit/integration/E2E test coverage across all modules (>= 90%per module), and add a simple bilingual 5-minute HOWTO guide with verified documentation config blocks. - Changes:
- Audited & fixed 5 bugs/gaps plus lean cleanup:
src/hooks.rs: Bounded stderr capture (MAX_HOOK_STDERR_BYTES = 64 KiBat UTF-8 boundaries) withArc<Mutex<Vec<u8>>>+STDERR_DRAIN_GRACEso failing hooks leaving background grandchildren still report stderr cleanly.src/config.rs: Validatedrename_templatestrftimetemplates eagerly insideConfig::validate().src/cli.rs: Auto-enabledActionStep::RenameByDateinbuild_adhoc_configwhenever--rename-templateis provided.src/daemon.rs: Enforcedis_live_filecleaner_pid(pid)(is_pid_alive+is_filecleaner_process) indaemon_statusandclaim_pid_fileto handle recycled OS PIDs safely.src/scanner.rs: Simplifiedcompile_rule_matchersto reuse trimmedfilename_date_regex.
- Expanded tests (
src/config.rs,src/scanner.rs,src/audit.rs,src/in_use.rs,src/daemon.rs,src/cli.rs,tests/hooks_pre_delete_test.rs,tests/actions_pipeline_test.rs,tests/cli_validate.rs,tests/daemon_and_cli_test.rs,tests/governance_and_docs_test.rs) and createdtests/product_workflows_e2e_test.rs(howto_workflow_1..4). - Added
docs/en/HOWTO.mdanddocs/fr/HOWTO.md, updated cross-links inREADME.md,README.fr.md,docs/en/USER_GUIDE.md,docs/fr/GUIDE_UTILISATEUR.md,docs/en/COOKBOOK_EXAMPLES.md, anddocs/fr/EXEMPLES_RECETTES.md(fixingcheck-in-use --jsonschema example), and updatedCHANGELOG.mdanddocs/RCA_REGISTER.md(RCA-007). - Result:
- Verified in WSL2 (
CARGO_TARGET_DIR=/var/tmp/filecleaner-target-plan):cargo fmt --allPASS,cargo clippy --all-targets -- -D warningsPASS (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),cargo test --all-targetsPASS (124/124:64unit +60integration across9suites), andcargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (94.31%lines /92.45%regions across9,098lines; everysrc/*.rsmodule>= 90.21%:actions.rs90.21%,audit.rs92.89%,cli.rs94.14%,config.rs95.81%,daemon.rs94.07%,engine.rs97.82%,error.rs100.00%,hooks.rs95.54%,in_use.rs93.58%,main.rs100.00%,policy.rs94.82%,scanner.rs93.63%). PR#21submitted and re-verified onwindows-latestCI after Windows NTFS/share-mode/TOML array fixes (RCA-008).
ACT-007 — Remediate All 14 Ponytail Security, Correctness, Scale, and CI Audit Findings (Issue #18)¶
- Timestamp:
2026-11-20T14:01:41Z - Issue / Branch:
#18(fix/issue-18-ponytail-security-audit) - Request: Remediate all 14 Ponytail audit findings across FileCleaner (
v1.0.0) using minimal, pure-Rust stdlib-first fixes with zero newCargo.tomldependencies, full regression test coverage (>= 90%), 5/5 multi-OS CI validation, and synchronized governance/documentation updates. - Changes:
src/actions.rs&src/engine.rs: Enforced non-following regular-file opens (O_NOFOLLOW+(dev, ino)verification on Unix;FILE_FLAG_OPEN_REPARSE_POINT+ reparse-attribute check on Windows),0o600.fc-tmpprivate staging (open_staged_tmp_private),execute_copy_truncatepre/post(dev, ino)identity continuity, pre-execute symlink verification (!rule.follow_symlinks), and idempotentCompress/RenameByDate(has_compressed_extension,has_trailing_date_stamp); wiredSweepLockProbe::default(),run_config_precompiled, andcheck_batch_scoped.src/hooks.rs: Replaced piped stdout withStdio::null(), capped stderr capture to64 KiBviasync_channel(50 msdrain grace) to prevent grandchild FD-2 pipe deadlocks, isolated Unix children viaprocess_group(0), and addedkill_hook_process_tree(SIGKILLto-pgidon timeout).src/audit.rs&src/daemon.rs: Added0o600private permissions onaudit.jsonl,pid_file,state_file, andstop_file(write_atomic_bytes_with_mode), single-generation50 MiB<audit_log>.1rotation (DEFAULT_AUDIT_ROTATE_BYTES,AuditLogger::open_with_max_bytes),is_filecleaner_processPID verification indaemon_stopbefore writingstop_fileor signalingSIGTERM,STOP_POLL_SLICE = 200 ms, precompiled sweep loop (Scanner::compile_config),<audit_log>.1watcher exclusion, and deleted duplicatenormalize_lexical.src/config.rs,src/scanner.rs,src/policy.rs,src/in_use.rs, &src/cli.rs: Unified lexical path resolution oncrate::config::resolve_path_lexically, centralizedCompiledRuleMatchers/compile_rule_matchers, added scanner-level in-place idempotency skip and<audit_log>.1guard, fixedRetentionEngine::planremoves_file/reclaims_bytesandRuleOutcome::Constrainedaccounting (reusingcompute_protected_floor_paths), added non-exclusiveLockProbe::check_os_lock_readonly(LOCK_SH | LOCK_NB/FILE_SHARE_READ),SweepLockProbesingle-passOnceLock/procsnapshot (removing redundantread_link), non-intrusivecheck_batch_scopedprobe ordering, batchedInUseDetector::check_paths, and deleted duplicatewrite_atomic_cli_file..github/workflows/ci.yml&.github/workflows/release.yml: Pinned alluses:steps to 40-char commit SHAs, moved${{ ... }}values toenv:, and scopedcontents: writestrictly topublish-release.- Integration Tests: Updated
tests/actions_pipeline_test.rs,tests/hooks_pre_delete_test.rs,tests/retention_age_size_count_test.rs,tests/in_use_detection_test.rs,tests/daemon_and_cli_test.rs, andtests/governance_and_docs_test.rs. - Governance & Bilingual Docs: Updated
docs/ACTION_LOGBOOK.md,docs/RCA_REGISTER.md(RCA-006,APP-002),CHANGELOG.md,docs/en/SPECIFICATIONS.md, anddocs/fr/SPECIFICATIONS.md(62/62heading parity). - Result:
- Local WSL2 verification (
CARGO_TARGET_DIR=/var/tmp/filecleaner-target-verify):cargo fmt --all -- --checkPASS (0diffs);cargo clippy --all-targets -- -D warningsPASS (Linux,0warnings); cross-targetcargo clippy --lib --bins --tests -- -D warningsPASS forx86_64-pc-windows-gnuandaarch64-apple-darwin(0warnings);cargo test --all-targetsPASS (112/112:62lib unit +50integration across8suites:11actions_pipeline_test,4backup_guards_test,1cli_validate,9daemon_and_cli_test,4governance_and_docs_test,6hooks_pre_delete_test,9in_use_detection_test,6retention_age_size_count_test; doctests0/0);cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (93.09%lines across8,678lines with600missed;90.85%regions); zero changes toCargo.tomlandTest-Path .\target=False. - GitHub Tracking: Issue
#18(fix/issue-18-ponytail-security-audit).
ACT-006 — Stabilize macOS FSEvents Sweep Count Assertion in daemon_notify_and_cooperative_stop_file_work_deterministically (Issue #16)¶
- Timestamp:
2026-11-20T10:17:04Z - Issue / Branch:
#16(fix/issue-16-macos-fsevents-test) - Request: Stabilize the intermittent macOS
FSEventssweep count assertion indaemon::tests::daemon_notify_and_cooperative_stop_file_work_deterministically(src/daemon.rs:1418) spotted in post-mergemainCI Run44716793832(sweeps_completed == 2instead of1underdebounce = 30msandmax_sweeps = Some(5)), and validate 5/5 passing checks on both PR andmainpost-merge push CI workflows. - Changes:
src/daemon.rs: Updateddaemon_notify_and_cooperative_stop_file_work_deterministicallyline 1418 assertion fromassert_eq!(final_state.sweeps_completed, 1);toassert!((1..=5).contains(&final_state.sweeps_completed));with explanatory comment on macOSFSEventsasynchronous self-unlink delivery past the30msdebounce window.docs/RCA_REGISTER.md: LoggedRCA-005documenting the 5-Whys analysis ofFSEventsdelayed self-deletion delivery and the bounded sweep assertion fix.docs/ACTION_LOGBOOK.md: LoggedACT-006.- Result:
- Local WSL2 verification:
cargo fmt --all -- --checkPASS,cargo clippy --all-targets -- -D warningsPASS (0warnings),cargo testPASS (57unit +38integration across 8 suites =95 passed; 0 failed),cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (92.84%line coverage across8,082lines;daemon.rs92.29%). - GitHub Tracking: Issue
#16(fix/issue-16-macos-fsevents-test).
ACT-005 — Add 9-Target Multi-OS GitHub Actions CI/Release Workflows, Bilingual End-User Documentation Suite, and Ship v1.0.0 (Issue #14)¶
- Timestamp:
2026-11-20T10:34:10Z - Issue / Branch:
#14(ci/issue-14-multiarch-ci-bilingual-docs-v1) - Request: Author multi-OS GitHub Actions CI and 9-target release workflows (
.github/workflows/ci.yml,.github/workflows/release.yml), synchronize the complete bilingual EN/FR documentation suite (README.md,README.fr.md,CHANGELOG.md,docs/en/{SPECIFICATIONS,USER_GUIDE,COOKBOOK_EXAMPLES}.md,docs/fr/{SPECIFICATIONS,GUIDE_UTILISATEUR,EXEMPLES_RECETTES}.md), verify 100% CI and governance checks, merge tomain, and publish tagged GitHub Releasev1.0.0. - Changes:
.github/workflows/ci.yml: Added 3-job CI workflow (fmt-and-clippy,coverage-gateenforcingcargo llvm-cov --fail-under-lines 90+ LCOV upload, andcross-os-testenforcingcargo clippy --all-targets -- -D warningsandcargo test --all-targetsacrossubuntu-latest,windows-latest, andmacos-latest)..github/workflows/release.yml: Added tag-triggered (v*) 9-target release matrix (x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl,aarch64-unknown-linux-gnu,aarch64-unknown-linux-musl,armv7-unknown-linux-gnueabihfviacargo-zigbuild, plus nativex86_64-pc-windows-msvc,aarch64-pc-windows-msvc,aarch64-apple-darwin, andx86_64-apple-darwin) packaging binaries,README.md,README.fr.md,LICENSE, andSHA256SUMS.txtviasoftprops/action-gh-release@v3.- Cross-OS Portability Fixes (
RCA-002,RCA-003,RCA-004): Updatedsrc/actions.rs,src/in_use.rs,src/scanner.rs,src/daemon.rs, hook scripts (examples/hooks/verify_checksum_before_delete.sh,examples/hooks/archive_to_s3_mock.sh), and integration tests (tests/hooks_pre_delete_test.rs,tests/retention_age_size_count_test.rs,tests/in_use_detection_test.rs,tests/daemon_and_cli_test.rs) to resolve Windowsclippy::needless_bool, macOS zombie & Windowskernel32STILL_ACTIVEPID liveness checks, macOS/var->/private/varTempDircanonicalization andshasum -a 256fallback, macOS APFSst_birthtimeclamping, WindowsFILETIMESystemTimeceiling,/procLinux gating, Windows atomic rename retry &share_mode(0)coverage, and zero#[cfg(not(unix))]warnings. - Bilingual Root & Changelog: Created
README.md,README.fr.md, andCHANGELOG.md. - Bilingual Guides & Specifications: Created
docs/en/USER_GUIDE.md,docs/fr/GUIDE_UTILISATEUR.md,docs/en/COOKBOOK_EXAMPLES.md, anddocs/fr/EXEMPLES_RECETTES.md; synchronizeddocs/en/SPECIFICATIONS.mdanddocs/fr/SPECIFICATIONS.md(std::fs::FileTimesperIMP-004and exact 9 release targets). - Governance: Updated
docs/ACTION_LOGBOOK.mdanddocs/RCA_REGISTER.md(RCA-002,RCA-003,RCA-004). - Result:
- Local verification & cross-target checks:
cargo fmt --all -- --checkPASS,cargo clippy --all-targets -- -D warningsPASS (0warnings), cross-targetcargo clippy --tests --lib --binsPASS (x86_64-pc-windows-gnuandaarch64-apple-darwin,0warnings),cargo testPASS (57unit +38integration across 8 suites =95 passed; 0 failed),cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90PASS (92.84%line coverage across8,082lines),0LaTeX/Markdown integrity errors across all repository.mdfiles. - GitHub Tracking: Issue
#14/ PR#15(ci/issue-14-multiarch-ci-bilingual-docs-v1).
ACT-004 — Implement Sweep Engine Orchestrator, Daemon Mode, Full CLI Subcommands, and Governance Test Suite (Issue #12)¶
- Timestamp:
2026-11-20T10:22:44Z - Issue / Branch:
#12(feat/issue-12-engine-cli-daemon) - Request: Implement the Wave 3 sweep engine orchestrator (
src/engine.rs), cross-platform daemon runner (src/daemon.rs), fullclapv4 CLI (src/cli.rs,src/main.rs), end-to-end CLI/daemon tests (tests/daemon_and_cli_test.rs), and automated governance/LaTeX math integrity tests (tests/governance_and_docs_test.rs), removing[lints.cargo]unused-dependency suppressions fromCargo.toml. - Changes:
Cargo.toml&Cargo.lock: Removed[lints.cargo] unused_dependencies = "allow", removed deprecatedfiletime = "0.2"(replaced bystd::fs::FileTimesinsrc/actions.rs, logged asIMP-004), and enabledctrlcterminationfeature.src/engine.rs: AddedSweepEngine::run_config/run_liveexecuting the strict 6-phase pipeline (Scan -> InUseProbe -> BackupGuard -> RetentionEval -> PreHook -> Execute), emitting all 8AuditEventKindevents, enforcing dry-run/planparity, mid-sweep shutdown safety, and deterministic exit codes (0,1,3).src/daemon.rs: AddedDaemonRunnersupportingInterval/Notify/Hybrid(notify::RecommendedWatcher+ debounce),sweep_on_start, atomic.fc-tmppid_file(live PID -> exit4) & live JSONstate_file(version: "1.0.0"),ctrlc(SIGINT/SIGTERM) + cooperativestop_fileshutdown,--max-sweeps,daemon_status,daemon_stop, andgenerate_service_template(systemd,launchd,windows-task).src/cli.rs&src/main.rs: Implemented fullclapv4 CLI (--config,--dry-run,--json,-v,-q,--audit-log;run/clean,plan,check-in-use,validate,init,daemon {run, status, stop, service-template}) with documented exit codes (0,1,2,3,4,10).src/lib.rs: Exportedcli,daemon, andenginemodules alongside Wave 1/2 modules.- Integration Tests:
tests/daemon_and_cli_test.rs(6E2E tests) andtests/governance_and_docs_test.rs(3governance/SVG/PNG/LaTeX syntax integrity tests). - Governance Registers: Updated
docs/ACTION_LOGBOOK.mdanddocs/RCA_REGISTER.md(RCA-001,IMP-004). - Result:
cargo fmt --all -- --check: PASS (0diffs).cargo clippy --all-targets -- -D warnings: PASS (0warnings).cargo test: PASS (57unit tests +37integration tests across 8 suites =94 passed; 0 failed).cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90: PASS (92.67%–92.68%line coverage across8,075lines:actions.rs88.80%,audit.rs95.73%,cli.rs91.87%,config.rs94.69%,daemon.rs92.53%,engine.rs97.39%,error.rs100.00%,hooks.rs94.22%,in_use.rs87.56%,main.rs100.00%,policy.rs92.99%,scanner.rs90.79%).- Independent Audit: Approved by
@verifier(94/94passed,92.67%line coverage). - GitHub Tracking: Issue
#12/ PR#13(feat/issue-12-engine-cli-daemon).
ACT-003 — Implement Lifecycle Action Pipeline, Pure-Rust Compression, Pre-Delete Hooks, and JSONL Audit Log (Issue #8)¶
- Timestamp:
2026-11-20T10:03:39Z - Issue / Branch:
#8(feat/issue-8-actions-compression-hooks) - Request: Implement the Wave 2 ordered lifecycle action pipeline (
src/actions.rs), direct-argv pre-delete hook runner (src/hooks.rs), structured JSONL audit logging (src/audit.rs), validated configuration/hook examples (examples/), and integration test suites (tests/actions_pipeline_test.rs,tests/hooks_pre_delete_test.rs), merged cleanly with Wave 2 Core (Issue #7). - Changes:
src/hooks.rs: AddedHookCandidate,HookVerdict,HookFailureDisposition,HookRunner,ProcessHookRunner,evaluate_hook,expand_hook_args,format_action_summary, andhook_error_dispositionwith directCommand::newargv invocation (zero shell),FILECLEANER_*env vars, concurrent stdout/stderr draining,try_wait()timeout +kill()/wait()reaping,ETXTBSYretry,skip_exit_code = 42veto, andHookFailurePolicy::{AbortFile, AbortRule, WarnAndContinue}.src/actions.rs: AddedWorkingTarget,ActionReport,ActionExecutor::execute_pipeline,move_with_cross_fs_fallback,move_with_cross_fs_fallback_hook,copy_and_verify_sha256,execute_copy_truncate,compute_file_sha256, andverify_file_sha256coveringRenameByDate, pure-RustCompress(Gzip,Lz4,Brotli,Zip),Movewith.fc-tmp.<pid>.<seq>+sync_all()+ SHA-256 cross-FS verification,CopyTruncate, collision-safeTrash,Delete, and zero-mutationDryRunparity.src/audit.rs: AddedAuditEventKind,AuditEntry, synchronousAuditLogger,RuleSummaryRow,SweepSummary, andformat_bytes_human.src/lib.rs: Merged Wave 2 Core & Actions exports cleanly across all 8 modules (actions,audit,config,error,hooks,in_use,policy,scanner).- Examples & Hooks:
examples/postgres-backups.toml,examples/app-logs-rotation.toml,examples/incoming-spool.yaml,examples/hooks/archive_to_s3_mock.sh,examples/hooks/verify_checksum_before_delete.sh. - Integration Tests:
tests/actions_pipeline_test.rsandtests/hooks_pre_delete_test.rs. - Governance: Updated
docs/ACTION_LOGBOOK.md. - Result (Combined Wave 2
main+ Issue#8): cargo fmt --all -- --check: PASS (0diffs).cargo clippy --all-targets -- -D warnings: PASS (0warnings).cargo test: PASS (44unit tests +28integration tests across 6 suites =72 passed; 0 failed).cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90: PASS (91.74%line coverage across4,711lines:actions.rs88.69%,audit.rs95.16%,config.rs94.61%,error.rs100.00%,hooks.rs93.93%,in_use.rs87.23%,main.rs100.00%,policy.rs92.38%,scanner.rs90.79%).- Independent Audit: Approved by
@verifier(38/38standalone,92.82%standalone) and verified post-merge (72/72,91.74%). - GitHub Tracking: Issue
#8/ PR#11(feat/issue-8-actions-compression-hooks).
ACT-002 — Implement Directory Scanner, Multi-Probe In-Use Detector, and Backup-Guarded Retention Engine (Issue #7)¶
- Timestamp:
2026-11-20T09:57:09Z - Issue / Branch:
#7(feat/issue-7-retention-safety-inuse) - Request: Implement the Wave 2 core scanning, 6-layer active-writer detection, and mathematical backup-guarded retention planner (
src/scanner.rs,src/in_use.rs,src/policy.rs) with full unit and integration test suites (tests/retention_age_size_count_test.rs,tests/backup_guards_test.rs,tests/in_use_detection_test.rs). - Changes:
.gitignore: Added/.worktrees/exclusion so isolated parallel agent worktrees stay untracked.src/scanner.rs: AddedClock(SystemClock,FixedClock),ScannedFile,ScanReport, andScanner::scan_ruleenforcing non-symlink default traversal,.fc-tmp/control-file exclusion, glob/regex include/exclude precedence, byte-range bounds, fail-closedCreated/FilenameDatetimestamp resolution, and deterministic newest-first ordering.src/in_use.rs: AddedInUseReason,InUseReport,InUseBatchResult, injectableLockProbe+OsLockProbe(Unixflock, Linux/proc/*/fdinode scan with fail-closedEACCESdiagnostics, Windowsshare_mode(0)),ProcFdProbeOutcome,InUseDetector::check_batch(with batched single-sleep two-pointstability_window& future-mtime fail-closedmin_idle_age), andcheck_single/check_single_with.src/policy.rs: AddedRuleOutcome(Ok,Frozen,Constrained),DecisionKind,CandidateDecision,SweepPlan, andRetentionEngine::planimplementingF_valid, staleness dead-man's-switch freezes, unconditionalmin_keep_filesfloor, busy-file exclusion,CombineMode::{Any, All}, andEvictionOrder::{OldestFirst, LargestFirst}.src/lib.rs: Exportedin_use,policy, andscannermodules with public re-exports.- Integration Tests:
tests/retention_age_size_count_test.rs,tests/backup_guards_test.rs, andtests/in_use_detection_test.rs. - Governance Registers: Updated
docs/ACTION_LOGBOOK.mdanddocs/RCA_REGISTER.md(IMP-003). - Result:
cargo fmt --all -- --check: PASS (0diffs).cargo clippy --all-targets -- -D warnings: PASS (0warnings).cargo test: PASS (32unit tests +16integration tests =48 passed; 0 failed).cargo llvm-cov --all-targets --workspace --summary-only --fail-under-lines 90: PASS (92.00%line coverage across3,112lines:config.rs94.61%,error.rs100.00%,in_use.rs87.23%,main.rs100.00%,policy.rs92.38%,scanner.rs90.79%).- Independent Audit: Approved by
@verifier. - GitHub Tracking: Issue
#7/ PR#10(feat/issue-7-retention-safety-inuse).
ACT-001 — Establish Governance, Bilingual Specifications, Brand Identity, and Cargo v1.0.0 Contract (Issue #1)¶
- Timestamp:
2026-11-20T09:26:41Z - Issue / Branch:
#1(docs/issue-1-governance-specs-branding) - Request: Initialize the
jmrenouard/FileCleanerrepository with Apache-2.0 license,.gitignore/.gitattributes, SSH remote, MicroLLM-derived governance (AGENTS.md,.agents/rules/*,.github/dependabot.yml,docs/ACTION_LOGBOOK.md,docs/RCA_REGISTER.md), official brand identity assets (docs/assets/logo.svg,docs/assets/logo.png,docs/assets/header-banner.svg), formal bilingual specifications (docs/en/SPECIFICATIONS.md,docs/fr/SPECIFICATIONS.md), dev-team session transcript (docs/team-sessions/team-session-2026-11-20.md), and the initial compiling Rustv1.0.0Cargo scaffold (Cargo.toml,src/error.rs,src/config.rs,src/lib.rs,src/main.rs,tests/cli_validate.rs). - Changes:
- Repository Root & GitHub Foundation (root commit
efac08conmain):.gitignore,.gitattributes,LICENSE(Apache-2.0, Copyright 2026 Jean-Marie Renouard / LightPath), public repojmrenouard/FileCleanerover SSH (git@github.com:jmrenouard/FileCleaner.git). - Governance & Automation (English-Only):
AGENTS.md,.agents/rules/github-workflow.md,.agents/rules/git-workflow.md,.agents/rules/project-governance.md,.agents/rules/language-policy.md,.agents/rules/latex-math-in-markdown.md,.github/dependabot.yml,docs/ACTION_LOGBOOK.md,docs/RCA_REGISTER.md(IMP-001,IMP-002,APP-001,IDEA-001..IDEA-004). - Brand Identity Assets:
docs/assets/logo.svg,docs/assets/logo.png(512x512),docs/assets/header-banner.svg(1260x420). - Bilingual Formal Specifications & Team Alignment:
docs/en/SPECIFICATIONS.md,docs/fr/SPECIFICATIONS.md(62/62matched headings,22/22column-0 display math equations, zero\operatorname),docs/team-sessions/team-session-2026-11-20.md. - Rust v1.0.0 Cargo Scaffold & Tests:
Cargo.toml,Cargo.lock,src/error.rs,src/config.rs,src/lib.rs,src/main.rs,tests/cli_validate.rs(pure-Rust dependencies verified viacargo tree; aligned schema coveringConfig,DaemonConfig/DaemonMode,AuditConfig,RuleConfig,TimeBasis,CombineMode,EvictionOrder,BackupGuardConfig,InUseConfig,HookConfig/HookFailurePolicy,ActionStep,CompressionFormat,parse_bytes,parse_duration_str,Config::from_file, andConfig::validate). - Result:
cargo fmt --all -- --check: PASS (0formatting diffs).cargo clippy --all-targets -- -D warnings: PASS (0warnings,0errors).cargo test: PASS (13unit tests insrc/lib.rs+1integration test intests/cli_validate.rs=14 passed; 0 failed).cargo llvm-cov --summary-only --fail-under-lines 90: PASS (94.80%line coverage across1,269lines:src/config.rs94.61%,src/error.rs100.00%,src/main.rs100.00%).- Spec validation: All canonical TOML/YAML examples in
docs/en/SPECIFICATIONS.md§2.6 verified withfilecleaner validate(exit0). - GitHub tracking: Issue
#1/ PR#2(docs/issue-1-governance-specs-branding).