Skip to content

feat(cli): C7 — status composite view (spec 09) - #11

Merged
gustavobertoi merged 1 commit into
mainfrom
nightly/C7
Jun 29, 2026
Merged

feat(cli): C7 — status composite view (spec 09)#11
gustavobertoi merged 1 commit into
mainfrom
nightly/C7

Conversation

@gustavobertoi

Copy link
Copy Markdown
Contributor

Chunk C7 (M2-remainder)

Replaces the status stub with the spec-09 composite view.

  • Per project: live services from tool-labelled containers (state + health via read-only ContainerInspect), a tolerant 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). Per-repo git detail still lives in ws status.

Tests

Registration, an end-to-end run in a temp workspace, and lastSaga selection (failed-wins, else compose-up).

Gate

make ci + make smoke green.

🤖 Generated with Claude Code

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>
@gustavobertoi
gustavobertoi merged commit 92769be into main Jun 29, 2026
9 checks passed
@gustavobertoi
gustavobertoi deleted the nightly/C7 branch June 29, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant