feat(ux): risk-first posture view for installed repos, adoption pitch for new ones#176
Merged
Merged
Conversation
…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>
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.
Summary
charter(no subcommand) now shows different output depending on whether the repo has Charter installed:Installed (
.charter/config.jsonpresent) — compact daily posture view:Not installed — unchanged adoption pitch with quickstart instructions.
Signal thresholds:
--ciflag: exits 1 if any signal isfailactivePatternsadded to JSON output.charter whystill shows the full adoption pitch for anyone who wants it.Closes #162.
Test plan
why.test.ts— all pass (pnpm vitest run)governance snapshot, notWhy teams use Charter.charter/showsCharter Quickstart--ciflag returns exit 1 when patterns=0🤖 Generated with Claude Code