Skip to content

Commit e8ef02a

Browse files
montfortclaude
andauthored
feat(cli): A1.4 — straymark status --where (textual "you are here") (#254)
Adds the textual companion to Loom's visual Architecture Plan view (Spec 002 §8). `straymark status --where [path] [--out DIR]` loads `architecture/model.yml`, builds a GovernanceState from the core extractors, and renders the pure `core::architecture::project` output: per-layer/per-component badges (active/in-progress/implemented/has-debt/ uncharted) with active components marked "you are here", plus the §8 "Where are we" summary (active Charter + declared-vs-modified progress + recent AILOGs + open debt). Degrades to an `architecture generate` hint when no model exists. - where_view.rs: build_governance_state (charters via discover_and_parse + parse_files_to_modify; closed-charter AILOGs via parse_modified_files; in-progress = declared ∩ git-modified through core::drift; open TDEs via related; on-disk via common::collect_source_files). wiring-gap is left empty by design (needs an explicit declared-vs-wired profile; not part of the §11.5 consistency gate). - main.rs: `--where` + `--out` flags on `status`; without `--where`, `status` is unchanged. - Consistency gate (T4.3, NFR3): integration test asserts the active component matches `charter list --status in-progress` and implemented matches `--status closed` on one fixture corpus. No tag/bump — rides the A1.5 cli- release per the M0 decision. CLI 335 unit + 3 new integration tests, core 102; clippy clean. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a5acfd8 commit e8ef02a

6 files changed

Lines changed: 681 additions & 17 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ Loom releases are GitHub-release-only (no crates.io while experimental). Tag for
252252
| `straymark update-cli` | Update the CLI binary |
253253
| `straymark remove [--full]` | Remove StrayMark from project |
254254
| `straymark status [path]` | Show installation health and doc stats |
255+
| `straymark status --where [path] [--out DIR]` | EXPERIMENTAL (Loom A1.4) — textual "you are here": load `architecture/model.yml`, project per-layer/per-component state (active/in-progress/implemented/has-debt/uncharted) from governance signals (charters + drift + open TDEs + on-disk inventory) via the pure `core::architecture::project`, highlight active components, and print the §8 "Where are we" summary. Degrades to a hint when no model exists. `--out` overrides the default `.straymark/architecture/` (lets you dogfood a non-installed repo) |
255256
| `straymark repair [path]` | Restore missing directories and framework files |
256257
| `straymark validate [path] [--staged]` | Validate documents for compliance and correctness |
257258
| `straymark new [path] [-t type] [--title]` | Create a new StrayMark document from a template |

cli/src/commands/architecture/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ pub mod drawio;
1010
pub mod generate;
1111
pub mod sync;
1212
pub mod validate;
13+
pub mod where_view;

0 commit comments

Comments
 (0)