G08: Make CLI status a readable snapshot with useful details while preserving JSON and pipes #182
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router#182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Product owner: Scarcity Router; G08/G13. Source: Creatidy architecture v1.0 (2026-10-04), sections 1-5, 7-13, 14-18 via #173. Improve ordinary
scarcity-router statususability independently of Console, using the same normalized status contract.Why and Evidence
Develop
8d9d4b04bcb23fe19ff702b6209fbcb1537cdf1b,status.render_humanand_format_windowprint provider/status plus raw kind/resource/used/remaining/reset/id/diagnostic fields.render_json/canonical_snapshot_documentsdefine shipped canonical snapshot arrays; CLI status JSON intentionally differs from REST/MCP envelope eligibility (docs machine-interfaces). Telemetry session alignment #171/#172 is integrated, not an open missing feature because #168/#170 remain open. Operator can read facts but gets no coherent compact snapshot/detail/recovery experience. Existing #140 is administrator UI, not this CLI scope.Scope and Non-Goals
Improve human overview and detail presentation, meaningful limiting windows/reset/freshness/source/unknown distinctions and safe recovery guidance. Determine smallest backward-compatible CLI design from existing flags before proposing new ones. TUI/watch, if justified, is a client of the same state contract, not another collector/policy engine; the known client requirement must receive an explicit supported/conditional disposition, not vanish. No prerequisite Console rollout, new service, telemetry normalization change, new model ranker or color requirement.
Acceptance Criteria
--jsonshape, canonical ordering, stdout/stderr, exit codes and pipes/CI remain compatible; no ANSI/control characters or compulsory color in non-TTY/narrow terminals. Configuration notes cannot corrupt JSON.Dependencies, Priority, Reuse and Authority
Independent operator-priority lane; do not wait for Console or MI. Coordinate forthcoming Router state/event contract only where needed; #140 remains admin-view owner. Reuse
StatusObservation, canonical serializers,render_human, diagnostics and current worker discovery; assess Rich adoption before custom formatting, exact revision/files/license, no-color/accessibility/negative tests/security/dependency/maintenance. Candidate is not approval to install it.Refs #173, #140, #171/#172. No credentials or live quota fixtures, no paid calls. Future user acceptance can use redacted/synthetic snapshots; real telemetry/service access requires explicit selected validation scope, inference not needed or authorized. Full repository gates and owner merge required.
Completed in the SAME /loop invocation2026-10-05T12:38:32Z. PR197 merged through supported Forgejo merge as1dae1948f372e0f1739896655bb7db97d6b08460. Fetched develop exactmerge; approvedbase78c0013dc941fc3fd0bf896d9fac55e6801d73fc and HEAD19c5436aa0426c314df22bac8e8e0703fd6c59bf parents/ancestry verified and integratedtreeequalsapprovedtree.
Acceptance verified against actualsynthetic renderer/clock/collectors/sourceunitfixtures and independentUX review: readable ASCII terminal overview/details, weekly/short low windows, exhausted/auth/schema/unsupported/old/unknown/missing-reset/ambiguous scopes, policy distinctfromquota and readiness, safe existing recovery. Multi-source custom home/bin guidance matches actual login discovery; doctor accurately offlineartifacts/configuration, notsourceaccess. Both installed/module entrypoints keep oneclock/collection, byte-identicalJSON/nonTTY output/order/streams/exits/flags, noANSI/colorrequirement and actual32columnscreens/golden. No renderingmock or sourceprivatevalues. Watch/TUIexplicitconditional/deferred usingcurrentstatus or183onlyifneeded; Rich immutablepin/license/behavior independentlyverified, notadopted/copied.
Reviewhistory182 preserved:1COMMENT withguidanceP2 andinfra; sourcebytes/safe freshreadonlypath resolved, remediation9121a42.2REQUEST_CHANGES doctorcapabilityP2; remediation19c5436.3APPROVE/findings[] at exactHEAD/base, independent113tests16.326s/type0/source/UX/security. Full exactcleanHEAD env-i gate2719 PASS17skips/type0/whitespace/exit0 assessed. Original implementation4d6093c retained, no rewrite/merge-in/permission/model/dependency change.
Closing only selected CLI presentation feature, not live telemetry/service/account/harness or productreadiness. No inference/benefit orpaidcalls. Next freshfullSELECT uses correctednonterminal gates,175stillopen/unimplemented.