From 1f24bc58b9b767081a99434f97df94757e6d89a1 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sun, 20 Sep 2026 22:04:06 +0200 Subject: [PATCH] docs: complete dependable daily CLI milestone --- AGENTS-TASKS.md | 22 +++++++++++++++------- bin_efo/src/commands/epoch/cli_epoch.rs | 5 ----- docs/commands.md | 2 +- docs/roadmap.md | 11 ++++++++--- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/AGENTS-TASKS.md b/AGENTS-TASKS.md index 86370d9..8bb3567 100644 --- a/AGENTS-TASKS.md +++ b/AGENTS-TASKS.md @@ -5,7 +5,11 @@ early-alpha release. Checkboxes describe completion, not intention. Newly found work belongs here before implementation. **Milestone 1 — trustworthy foundation: complete.** Phases 0–2 passed their -acceptance gates on 2026-09-20. Phase 3 is the next active milestone. +acceptance gates on 2026-09-20. + +**Milestone 2 — dependable daily CLI: complete.** Phase 3 passed its acceptance +gates on 2026-09-20. Phase 4 design is the next active milestone and requires +format-level decisions before implementation. ## Phase 0 — audit and guardrails @@ -115,12 +119,16 @@ These require user approval and are not part of the current implementation: parser; the rewritten docs now distinguish current and planned behavior. - The old demo `show` output, ignored `init --force`, and panicking `epoch diff` / `epoch fsck` paths were replaced and covered by CLI tests. -- `epoch switch --force` is parsed but ignored. -- Entity rendering emits ANSI escapes when stdout is redirected and relies on - several optional Nerd Font glyphs for labels. +- The former ignored `epoch switch --force` placeholder was removed; there is + no uncommitted/staged state for it to discard in the current format. +- Nerd Font rendering remains the default; portable text/Unicode rendering is + available through `--no-default-features` and passes its own test matrix. - Name generation used to create `naming.json` in the working directory; this was removed in favor of read-only embedded defaults. -- The binary now has nine integration tests covering every exposed entity type, +- The binary now has eleven integration tests covering every exposed entity type, timeline workflows, invalid input, and corrupted repositories. -- All 70 tests and the release build passed on 2026-09-20. Tarpaulin was intentionally not - run because badges are release-only by project policy. +- All 73 default-feature tests, 69 portable-output tests, strict Clippy, and both + release builds passed on 2026-09-20. +- The milestone-only `rust_autobadges` run was attempted, but this installed + version misreported passing tests as failing and coverage as unavailable. + Its false generated badges were discarded; the prior badges were preserved. diff --git a/bin_efo/src/commands/epoch/cli_epoch.rs b/bin_efo/src/commands/epoch/cli_epoch.rs index b4a1ab9..a9ce60e 100644 --- a/bin_efo/src/commands/epoch/cli_epoch.rs +++ b/bin_efo/src/commands/epoch/cli_epoch.rs @@ -66,16 +66,11 @@ pub struct Log { /// /// # Arguments /// * `target` - The epoch to switch to. -/// * `force` - If set, drops all pending work and forces the switch. #[derive(Args, Debug)] pub struct Switch { /// The epoch to switch to - can be an integer, a name, or a tag. #[arg(required = true)] pub target: EpochIdentifier, - - /// Optional confirmation flag (if you ever want to force-switch) - #[arg(long, short, help = "Force-switch dropping all the pending work")] - pub force: bool, } /// Computes the next epoch from the current one. diff --git a/docs/commands.md b/docs/commands.md index 5ec3204..febf446 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -13,7 +13,7 @@ parent directories. `efo --help` is the authoritative syntax. - `efo epoch next` creates and checks out the next snapshot. It refuses while later snapshots exist. - `efo epoch switch ID_OR_TAG` checks out an existing snapshot without deleting - later ones. Its currently accepted `--force` flag has no effect. + later ones. - `efo epoch summary TEXT` and `efo epoch tag TAG` annotate the current epoch. - `efo epoch diff START [END]` reports added, removed, and modified entities. `END` defaults to the current epoch. diff --git a/docs/roadmap.md b/docs/roadmap.md index 5e34eda..dc8f704 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -17,9 +17,14 @@ the executable, user-triggerable panic paths found in the audit are guarded, initialisation is safe, `show`, read-only `fsck`, and world diff are real, individual files are persisted atomically, and CLI workflows are covered. -The next milestone focuses on the remaining daily-use polish: consistent naming -and aliases, richer self-documenting help, accessible output, type-specific -validation, and a tested reversal path for every mutation. +The dependable-daily-CLI milestone is complete: naming and aliases are +consistent, organisations are managed directly, help includes examples, +Nerd Font output has a portable build option, relationships are type-validated, +and every mutation has documented and tested recovery guidance. + +The next milestone is the reviewed repository-format design for working state, +pseudo-staging, restore, and revert. Implementation begins only after those +compatibility and crash-consistency decisions are approved. Next comes a reviewed Git-like model for working changes, pseudo-staging, committed epochs, restore, and revert. Organisation-agnostic custom fields and