feat(cli): C7 — status composite view (spec 09) - #11
Merged
Conversation
Replace the status stub with the spec-09 composite: per-project service state +
health, a tolerant git summary, the last saga outcome, and the shared-service
ref graph. Read-only (lock-free) bar a best-effort reconcile; per-repo git
detail still lives in `ws status`.
- Per project: live services from tool-labelled containers (state + health via
the read-only ContainerInspect), a git branch/dirty summary (skipped for the
common local non-repo path), and the last saga outcome from saga_phase (a
failed phase if any, else the terminal compose-up status) — so a partial `up`
is visible without re-running.
- Shared: the ref graph (alias/status/refCount/projects) via the Manager.
- --json emits {projects:[…], shared:[…]}; plain prints a grouped table.
Tolerates a down daemon (ListManaged/reconcile errors are non-fatal — the ledger
view stays truthful). Unit tests cover registration, an end-to-end run in a
temp workspace, and the lastSaga selection (failed-wins, else compose-up).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chunk C7 (M2-remainder)
Replaces the
statusstub with the spec-09 composite view.ContainerInspect), a tolerant git branch/dirty summary (skipped for the common local non-repo path), and the last saga outcome fromsaga_phase(a failed phase if any, else the terminalcompose-upstatus) — so a partialupis visible without re-running.--jsonemits{projects:[…], shared:[…]}; plain prints a grouped table.Tolerates a down daemon (ListManaged/reconcile errors are non-fatal — the ledger view stays truthful). Per-repo git detail still lives in
ws status.Tests
Registration, an end-to-end run in a temp workspace, and
lastSagaselection (failed-wins, else compose-up).Gate
make ci+make smokegreen.🤖 Generated with Claude Code