Skip to content

feat(ux): risk-first posture view for installed repos, adoption pitch for new ones#176

Merged
stackbilt-admin merged 1 commit into
mainfrom
feat/risk-first-default-view
May 23, 2026
Merged

feat(ux): risk-first posture view for installed repos, adoption pitch for new ones#176
stackbilt-admin merged 1 commit into
mainfrom
feat/risk-first-default-view

Conversation

@stackbilt-admin
Copy link
Copy Markdown
Member

Summary

charter (no subcommand) now shows different output depending on whether the repo has Charter installed:

Installed (.charter/config.json present) — compact daily posture view:

charter — governance snapshot (2026-05-23)
  Coverage:  5% of last 20 commits  [fail]
  Patterns:  5 active
  Risk:      2 high-risk commit(s) without governance links  [warn]

Run 'charter audit' for full report · 'charter why' for adoption info

Not installed — unchanged adoption pitch with quickstart instructions.

Signal thresholds:

  • Coverage: ≥50% ok · 10–49% warn · <10% fail
  • Patterns: ≥3 ok · 1–2 warn · 0 fail
  • --ci flag: exits 1 if any signal is fail

activePatterns added to JSON output. charter why still shows the full adoption pitch for anyone who wants it.

Closes #162.

Test plan

  • 6 new tests in why.test.ts — all pass (pnpm vitest run)
  • Installed repo shows governance snapshot, not Why teams use Charter
  • No .charter/ shows Charter Quickstart
  • --ci flag returns exit 1 when patterns=0

🤖 Generated with Claude Code

…itch on new ones

Fixes #162. quickstartCommand now splits on hasBaseline:

Installed (.charter/config.json present):
  charter — governance snapshot (2026-05-23)
    Coverage:  5% of last 20 commits  [fail]
    Patterns:  5 active
    Risk:      2 high-risk commit(s) without governance links  [warn]

  Run 'charter audit' for full report · 'charter why' for adoption info

Not installed: unchanged adoption pitch with quickstart instructions.

Signal thresholds: coverage ≥50% ok, 10-49% warn, <10% fail;
patterns ≥3 ok, 1-2 warn, 0 fail. With --ci flag, exits 1 if any
signal is fail. activePatterns added to JSON output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

ux: default 'charter' view should show risk signal for installed repos, not adoption pitch

1 participant