Commit e8ef02a
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
- cli
- src
- commands/architecture
- tests
- experimento/specs/002-architecture-plan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
0 commit comments