Commit 23d74c0
* Surface present-but-unparseable workspace managers in architecture discovery (UWP4XK)
Closes #558. A workspace manager present at the repo root but unparseable
(malformed go.work, unreadable Cargo [workspace] members, flow-style
pnpm-workspace.yaml) used to return undefined from its detector — conflating
"absent" with "present-but-unparseable" — and contribute zero packages with no
marker, so a whole language could vanish from the map at the discovery layer,
before the ZRW21K per-package "not introspected" marker could fire.
Each detector now returns a discriminated `absent | parsed | unreadable`. The
unreadable set is surfaced advisory-only: a `## Coverage gaps` section in the
generated root index naming each unreadable config, plus a non-blocking
`safeword architecture` / `--check` warning. It is folded into the root
fingerprint only when non-empty, so a clean repo (this one) never re-renders.
Reuses the existing union+dedupe discovery pipeline and toml table readers; no
new detector module, no blocking gate.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NRGYnMkxo3yim7qdFs7s19
* Refine unreadable-workspace detection to avoid valid-config false alarms (UWP4XK)
From the independent /quality-review of #558. The detector classified a workspace
as "unreadable" whenever the manager's table/file was present but yielded no
parseable globs — false-alarming on valid configs where the member-list
declaration is simply absent. Narrowed to: unreadable only when the member-list
declaration is PRESENT but unparseable.
- Cargo [workspace] with no `members` key -> absent (valid root-package
auto-discovery / default-members; verified vs the Cargo reference). New
hasTomlTableKey helper.
- pnpm-workspace.yaml with no `packages:` key -> absent (catalog/settings-only is
valid; verified vs the pnpm reference).
- go.work with no `use` directive -> absent (a fresh `go work init` file).
- uv unchanged: `members` is required in [tool.uv.workspace], so a table with no
usable members is genuinely malformed.
Added U9/U10/U11 asserting each valid case is absent, not a false alarm.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NRGYnMkxo3yim7qdFs7s19
* refactor: extract parsed()/unreadable() constructors for WorkspaceDetection
The discriminated-union variants were built inline as object literals at five
detector sites each — so changing the shape meant editing five places. Extract two
small constructors and route every detector through them; each detector still
decides WHICH variant to return, so no per-manager semantics are lost.
Behavior-identical (52 monorepo + 27 document tests green).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NRGYnMkxo3yim7qdFs7s19
* chore(UWP4XK): advance ticket to phase verify (verification complete)
Verification complete — 55 monorepo unit tests + 14 architecture scenarios, full
CI green, real-CLI polyglot live-fire (incl. the false-alarm fixes), and an
independent quality-review (false-alarm fix applied). Matches the merged MGWZ4P
example's final state (phase: verify, status: todo); completion is the PR #561 merge.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NRGYnMkxo3yim7qdFs7s19
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 645e2a6 commit 23d74c0
13 files changed
Lines changed: 969 additions & 53 deletions
File tree
- .project/tickets/UWP4XK-unparseable-workspace-coverage
- features
- packages/cli
- src
- commands
- utils
- tests/utils
- steps
- support
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 98 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments