Here is the comprehensive analysis of every CLI command.
Complete CLI Command Analysis
1. scan (app/commands/scan/scan.py)
What it does: This is the primary data-collection command. It:
- Runs a preflight check (
scan_queue_preflight) -- if a living plan has unfinished queue items, it blocks the scan unless --force-rescan --attest "..." is passed or --profile ci is used.
- Prepares a
ScanRuntime object: resolves language, loads state/config, configures runtime options, expires provisional manual-override assessments, optionally resets subjective assessments.
- Runs all registered detectors for the language via
ScanOrchestrator.generate() -> run_scan_generation() -> planning.generate_findings(). This includes augmenting with stale-exclusion and stale-wontfix findings.
- Merges results into persistent state via
merge_scan_results() -> state_mod.merge_scan(). This is the core state mutation: it diffs findings (new/resolved/reopened), updates dimension scores, saves state atomically.
- Reconciles the living plan after merge: re-surfaces skipped items past review period, syncs unscored/stale subjective dimensions into queue, regenerates auto-clusters, syncs triage/checkpoint/create-plan workflow items, seeds/clears plan-start scores.
- Renders output: diff summary, score delta, dimension deltas, noise budget visibility, plan workflow nudges, scorecard badge generation, LLM summary, auto-updates skill document.
- Writes query.json with the full payload for agent consumption.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, .desloppify/plan.json
State writes: .desloppify/state-{lang}.json (findings, scores, stats, potentials, codebase_metrics, scan_count, last_scan, zone_distribution, scan_coverage, subjective_assessments), .desloppify/plan.json (reconciliation, auto-clusters, workflow items, start scores), .desloppify/query.json, scorecard.png badge image, config (clears needs_rescan flag)
Dependencies: Requires language detection, source files on disk. Gates on plan queue completion.
2. status (app/commands/status_cmd.py)
What it does: A read-only dashboard command that displays:
- Score section: either "frozen" plan-start score (during active queue cycle) or live scores (overall, objective, strict, verified).
- Queue breakdown: N items remaining (plan-ordered, skipped, subjective).
- Scan metrics (file count, LOC).
- Open scope breakdown (findings per path).
- Scan completeness indicators.
- Dimension health table (or legacy tier progress table if no dimension scores).
- Focus suggestion (lowest dimension).
- Subjective followup hints (when objective backlog allows).
- Review summary, structural areas.
- Commit tracking reminders.
- Agent plan section from narrative engine.
- Ignore summary.
- Writes a status query.json payload.
Has --json mode that outputs a structured JSON payload.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, .desloppify/plan.json
State writes: .desloppify/query.json only
Dependencies: Requires completed scan.
3. next (app/commands/next.py)
What it does: Shows the next highest-priority work item(s) from the ranked queue. It:
- Builds a work queue from state + plan via
build_work_queue().
- Respects plan ordering, cluster focus (
active_cluster), skipped items, subjective dimension items.
- Supports
--count N for multiple items, --scope filtering, --group (item/file/detector), --cluster, --explain (ranking rationale), --include-skipped.
- Output formats: terminal (default), json, md. Can write to
--output FILE.
- Renders resolution hints for single items, commit tracking reminders, followup nudges (subjective, queue progress).
- Writes query.json with full payload including scorecard dimensions.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, .desloppify/plan.json
State writes: .desloppify/query.json only
Dependencies: Requires completed scan.
4. show (app/commands/show/cmd.py)
What it does: Drill-down view into findings filtered by file, directory, detector, finding ID, glob, or dimension name. It:
- Resolves the user pattern into an entity type: special view ("concerns"), subjective dimension, mechanical dimension, or file/pattern.
- For subjective dimensions: renders assessment details (scores, components, age).
- For mechanical dimensions: loads dimension-specific findings.
- For files/detectors/patterns: builds a work queue filtered to scope, then renders matching findings.
- Applies noise budget (configurable per-detector cap on displayed findings).
- Supports
--code (inline source snippets), --chronic (reopened 2+ times), --status filter, --top N, --no-budget, --output FILE (JSON), --notes FILE.
- Shows agent plan section and subjective followup after findings.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, .desloppify/plan.json
State writes: .desloppify/query.json only
Dependencies: Requires completed scan.
5. tree (app/commands/viz_cmd.py -> app/output/visualize.py cmd_tree)
What it does: Renders a text-based annotated tree of the codebase to terminal. It:
- Collects file data (LOC per file) using the language's file finder.
- Builds a dependency graph using the language plugin.
- Builds a hierarchical tree structure annotating each file/directory with LOC, fan-in/fan-out, findings count.
- Renders the tree as indented text lines via
render_tree_lines().
- Supports
--depth, --focus (zoom into subdirectory), --min-loc, --sort (loc/findings/coupling), --detail (finding summaries per file).
State reads: .desloppify/state-{lang}.json (for findings overlay), source files on disk
State writes: Nothing
Dependencies: Language detection for file finder, source files on disk.
6. viz (app/commands/viz_cmd.py -> app/output/visualize.py cmd_viz)
What it does: Generates an interactive HTML treemap visualization. It:
- Same data collection as
tree (file LOC, dependency graph, findings).
- Builds a D3.js treemap JSON structure.
- Renders into an HTML template with D3 CDN.
- Writes to
.desloppify/treemap.html (or --output PATH).
- Prints the file URL for browser opening.
State reads: .desloppify/state-{lang}.json, source files on disk
State writes: .desloppify/treemap.html (or custom output path)
Dependencies: Language detection, source files on disk.
7. detect (app/commands/detect.py)
What it does: Runs a single detector directly, bypassing state tracking entirely. It:
- Resolves the language and validates the detector name against
lang.detect_commands.
- Sets default thresholds for specific detectors (e.g.,
large gets lang.large_threshold).
- Creates a language runtime and calls
lang.detect_commands[detector](args) -- the raw detector function.
- Prints results to terminal (or JSON with
--json).
- Does NOT update state. Prints a "Next command:
desloppify scan" hint.
Supports detector-specific flags: --top, --threshold, --category (imports/vars/params/all for unused), --file, --fix, --json, --lang-opt.
State reads: .desloppify/state-{lang}.json (loads runtime context but does not require scan)
State writes: Nothing
Dependencies: Language detection.
8. autofix (app/commands/fix/cmd.py)
What it does: Auto-fixes mechanical issues using the language's fixer registry. It:
- If
fixer_name == "review", delegates to _cmd_fix_review() -- the review preparation flow (see below).
- Otherwise, resolves the fixer from
lang.fixers[fixer_name].
- Runs the fixer's detect function to find entries.
- Calls
fixer.fix(entries, dry_run=...) to generate fix results.
- In non-dry-run mode: applies changes, runs post-fix hooks (e.g., cascade import cleanup), then suggests running scan.
The autofix review special case (fix/review_flow.py): Prepares structured review data with dimension templates for AI evaluation. This is essentially the same thing as review --prepare but accessed via the autofix command. It calls review_mod.prepare_review() and writes to query.json with dimension prompts and file content.
State reads: .desloppify/state-{lang}.json, source files
State writes: Modifies source files (when not dry-run). Writes .desloppify/query.json (review mode only). Does NOT update state file.
Dependencies: Language detection, fixer registration.
9. ignore (app/commands/resolve/ignore_cmd.py)
What it does: Adds a pattern to the config ignore list and removes matching findings from state. It:
- Requires attestation (anti-gaming: must include "I have actually" and "not gaming").
- Adds pattern to
config.ignore[] via config_mod.add_ignore_pattern().
- Sets
config.needs_rescan = true.
- Saves config.
- Calls
state_mod.remove_ignored_findings(state, pattern) -- deletes matching findings from state.
- Appends to
state.attestation_log[].
- Saves state.
- Shows score delta with plan context.
- Writes query.json.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json
State writes: .desloppify/config.json (adds to ignore[], sets needs_rescan), .desloppify/state-{lang}.json (removes findings, adds attestation log entry), .desloppify/query.json
Dependencies: None beyond state file existing.
10. exclude (app/commands/exclude_cmd.py)
What it does: Adds a path pattern to the config exclude list and cleans matching entries from state and plan. It:
- Adds pattern to
config.exclude[] via config_mod.add_exclude_pattern().
- Sets
config.needs_rescan = true.
- Saves config.
- Prunes findings whose file path matches the exclusion from state (
_prune_excluded_findings).
- Saves state if findings were removed.
- Purges removed finding IDs from the living plan (queue, skips, clusters).
- Saves plan if changed.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, .desloppify/plan.json
State writes: .desloppify/config.json (adds to exclude[], sets needs_rescan), .desloppify/state-{lang}.json (removes findings), .desloppify/plan.json (purges IDs)
Dependencies: None beyond files existing.
11. move (app/commands/move/move.py)
What it does: Moves a file or directory and updates all import references across the codebase. It:
- For files: resolves source/dest paths, detects language, loads the language move module, builds dependency graph, computes import replacements, applies the move + import rewrites.
- For directories: delegates to
run_directory_move().
- Supports
--dry-run.
State reads: Source files on disk, dependency graph
State writes: Modifies source files on disk (moves + import rewrites). Does NOT touch state/config/plan.
Dependencies: Language detection for move module.
12. review (app/commands/review/entrypoint.py)
What it does: A multi-mode command for holistic subjective code review (LLM-based). Modes:
- Default /
--prepare: Prepares structured review data (dimension prompts, file content, context) into query.json for an external reviewer.
--run-batches: Orchestrates automated batch review using subagent runners (Codex). Prepares packets, runs batches (potentially in parallel), merges results, imports findings, optionally runs scan after import.
--import FILE: Imports review findings from a JSON file into state.
--validate-import FILE: Validates an import payload without mutating state.
--merge: Merges conceptually duplicate open review findings.
--external-start: Starts a cloud external review session (generates blind packet + session token).
--external-submit: Submits external reviewer JSON via a started session.
--import-run DIR: Re-imports from a completed run directory.
Extensive trust/attestation options (--manual-override, --attested-external, --attest). Supports --dimensions, --retrospective, --scan-after-import.
Has a preflight (review_rerun_preflight) that gates re-runs when the objective plan hasn't been drained.
State reads: .desloppify/state-{lang}.json, .desloppify/config.json, source files
State writes: .desloppify/state-{lang}.json (imports subjective findings/assessments), .desloppify/query.json, run artifact files, potentially triggers scan
Dependencies: Language detection, completed scan.
13. zone (app/commands/zone_cmd.py)
What it does: Shows, sets, or clears zone classifications (production/test/config/generated/script/vendor) for files. It:
zone show (default): Lists all scanned files grouped by zone, highlighting overrides.
zone set <file> <zone>: Adds a zone override to config.
zone clear <file>: Removes a zone override from config.
State reads: .desloppify/state-{lang}.json (state path check), .desloppify/config.json (zone_overrides), source files
State writes: .desloppify/config.json (zone_overrides) for set/clear only
Dependencies: Language detection (for file finder and zone rules).
14. config (app/commands/config_cmd.py)
What it does: Shows, sets, or unsets project configuration values. It:
config show (default): Prints all config keys with values, defaults, and descriptions.
config set <key> <value>: Sets a config value (validated against schema).
config unset <key>: Resets a config key to its schema default.
State reads: .desloppify/config.json
State writes: .desloppify/config.json for set/unset
Dependencies: None.
15. dev (app/commands/dev_cmd.py)
What it does: Developer utilities. Currently only one subcommand:
dev scaffold-lang <name>: Generates a standardized language plugin scaffold directory with template files (config, detectors, extractors, tests). Supports --extension, --marker, --default-src, --force. Optionally wires pyproject.toml testpaths.
State reads: pyproject.toml
State writes: Creates language plugin directory structure under desloppify/languages/<name>/, optionally edits pyproject.toml
Dependencies: None.
16. langs (app/commands/langs.py)
What it does: Read-only listing of all available language plugins. Shows a table with:
- Language name
- Integration depth (full/standard/shallow/minimal) with a visual bar
- Available tools/phases and whether auto-fix is supported
State reads: Language plugin registry
State writes: Nothing
Dependencies: None.
17. update-skill (app/commands/update_skill.py)
What it does: Downloads and installs/updates the desloppify skill/agent document from GitHub. It:
- Resolves the interface (claude, codex, cursor, copilot, windsurf, gemini, opencode) from argument or existing install.
- Downloads
SKILL.md and optional overlay from GitHub.
- Either replaces the section markers in a shared file or writes a dedicated file.
- Reports the installed version.
State reads: Existing skill document files
State writes: Agent skill document (e.g., CLAUDE.md, .cursorrules, etc.)
Dependencies: Network access to GitHub.
18. plan and all subcommands (app/commands/plan/cmd.py)
plan (no subcommand)
What it does: Generates a full prioritized markdown plan from state via planning_mod.generate_plan_md(state). This is a rich markdown document with dimension health table, per-tier task lists, scoring model breakdown.
Also auto-resolves the workflow::create-plan queue item if present.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/plan.json (purges create-plan workflow item if present)
plan show
What it does: Shows plan metadata summary: queue size, skip counts (temp/wontfix/fp), cluster list, annotation counts, active focus, superseded count, commit tracking summary.
State reads: .desloppify/plan.json, .desloppify/config.json
State writes: Nothing
plan queue
What it does: Renders a compact table of all upcoming queue items. Shows position, confidence, detector, summary, cluster. Supports --top, --cluster, --include-skipped, --sort (priority/recent). Marks new items since last triage with *. Collapses clusters into single rows.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: Nothing
plan reset
What it does: Resets the plan to empty (clears queue_order, clusters, overrides, skipped, etc.). Logs the reset action.
State reads: .desloppify/plan.json
State writes: .desloppify/plan.json (cleared)
plan move <patterns> <position>
What it does: Moves findings/clusters to a position in the queue (top, bottom, before, after, up, down). Patterns can be IDs, detectors, file paths, globs, or cluster names.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/plan.json (queue_order reordered)
plan describe <patterns> "<text>"
What it does: Sets an augmented description on findings in the plan overrides.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/plan.json (overrides.description)
plan note <patterns> "<text>"
What it does: Sets a note on findings in the plan overrides.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/plan.json (overrides.note)
plan skip <patterns>
What it does: Skips findings with three modes:
- Temporary (default): Adds to
plan.skipped{} with kind: "temporary". Optionally --review-after N to re-surface after N scans. No attestation required. Does NOT change finding status in state.
- Permanent (
--permanent): Adds to plan.skipped{} with kind: "permanent". Also changes finding status to "wontfix" in state (score-affecting). Requires --note and --attest.
- False positive (
--false-positive): Adds to plan.skipped{} with kind: "false_positive". Also changes finding status to "false_positive" in state. Requires --attest.
Uses transactional persistence (rollback both files on partial failure).
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/plan.json (skipped), .desloppify/state-{lang}.json (finding status -- permanent/fp only)
plan unskip <patterns>
What it does: Brings skipped findings back to queue. For permanent/fp items, also reopens them in state (sets status back to "open"). Transactional persistence.
State reads/writes: Same as skip, reversed.
plan reopen <patterns>
What it does: Reopens resolved findings from plan context. Sets finding status to "open" in state, removes from skipped in plan, adds back to queue_order, purges from commit tracking uncommitted list.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: Both files (transactional).
plan done <patterns>
What it does: Marks findings as fixed. This is the primary "I fixed this" command. It:
- Handles synthetic IDs (triage::, workflow::, subjective::) by purging them from plan directly.
- For real findings: validates attestation, note length, cluster guard (blocks bulk-completing small clusters), then delegates to
cmd_resolve with status="fixed".
cmd_resolve changes finding status to "fixed" in state, purges from plan queue, adds to commit tracking (uncommitted), shows score delta, commit guidance, and next command hint.
State reads: .desloppify/state-{lang}.json, .desloppify/plan.json
State writes: .desloppify/state-{lang}.json (finding status -> fixed), .desloppify/plan.json (purges IDs, adds log, adds to uncommitted), .desloppify/query.json
plan focus <cluster> | --clear
What it does: Sets or clears the active cluster focus. When a cluster is focused, next and plan queue auto-scope to it.
State writes: .desloppify/plan.json (active_cluster)
plan cluster {create|add|remove|delete|move|show|list|update|merge}
What it does: Full cluster lifecycle management:
- create: Creates a named cluster with optional description/action.
- add: Adds findings (by pattern) to cluster.
- remove: Removes findings from cluster.
- delete: Deletes cluster, orphans members.
- move: Moves cluster members as a block in queue order.
- show: Shows cluster details + member list with finding info.
- list: Lists all clusters with member counts.
- update: Updates description and/or action_steps.
- merge: Merges source cluster into target (moves findings, deletes source).
State writes: .desloppify/plan.json only (clusters, queue_order)
plan triage
What it does: Implements a staged triage workflow: OBSERVE -> REFLECT -> ORGANIZE -> COMMIT. This is a post-review workflow for analyzing and organizing new findings after a review run. Supports:
--stage observe/reflect/organize + --report: Record stage reports.
--confirm observe/reflect/organize + --attestation: Confirm completed stages.
--complete + --strategy: Mark triage complete with strategy summary.
--confirm-existing + --confirmed + --note: Fast-track confirmation of existing plan.
--start: Manually inject triage items.
--dry-run: Preview mode.
Enforces stage dependency chain (observe before reflect, etc.).
State writes: .desloppify/plan.json (epic_triage_meta, triage stage data)
plan commit-log {status|record|history|pr}
What it does: Tracks commits and resolved findings for PR description updates:
- status: Shows git context, uncommitted/committed finding counts, PR number.
- record: Records HEAD commit SHA, moves uncommitted -> committed. Updates PR description via
gh if configured.
- history: Shows commit records.
- pr: Prints PR body markdown (dry run).
State reads: .desloppify/plan.json, .desloppify/config.json, git context
State writes: .desloppify/plan.json (commit_log, uncommitted_findings), optionally updates GitHub PR body
Focused Comparisons
ignore vs exclude vs plan skip
| Aspect | ignore | exclude | plan skip |
|---|
| Scope | Finding-level (pattern match on finding ID/detector/file) | Path-level (all findings in matching paths) | Finding-level (by ID/pattern) |
| Config mutation | Adds to config.ignore[] | Adds to config.exclude[] | No config change |
| State mutation | Removes matching findings from state immediately | Removes matching findings from state immediately | Temporary: NO state change. Permanent/FP: changes finding status |
| Plan mutation | None | Purges IDs from plan queue/clusters | Adds to plan.skipped{} |
| Requires attestation | Yes (always) | No | Only for permanent/false_positive |
| Needs rescan | Sets config.needs_rescan | Sets config.needs_rescan | No |
| Persistence | Permanent (pattern in config, findings gone) | Permanent (path excluded from future scans) | Temporary skip: auto-resurfaces. Permanent: like resolve wontfix. FP: like resolve false_positive |
| Reversibility | Must remove from config.ignore manually + rescan | Must remove from config.exclude manually + rescan | plan unskip reverses it |
| Semantic intent | "Never report findings matching this pattern again" | "Stop scanning these files entirely" | Temp: "I'll deal with this later". Perm: "This is intentional". FP: "Detector is wrong" |
Key difference: ignore and exclude are permanent configuration changes that affect future scans. plan skip (temporary) is a queue-management operation that hides items without changing their state -- they remain "open" in state and can reappear. plan skip --permanent and plan skip --false-positive are hybrid: they change finding status in state AND add to plan skipped.
show vs plan show vs plan queue
| Aspect | show <pattern> | plan show | plan queue |
|---|
| Purpose | Drill into findings by file/dir/detector/ID/dimension | Plan metadata summary | Ordered table of upcoming work items |
| What it displays | Detailed findings: file, line, summary, code snippets, detector, confidence | Queue size, skip counts, cluster list, annotations, focus, superseded count, commit tracking | Compact numbered table: #, confidence, detector, summary, cluster |
| Input | Requires a pattern argument | No arguments | Optional --cluster, --top, --sort |
| Data source | Builds work queue filtered by scope | Reads plan.json metadata only | Builds full work queue with plan ordering |
| Finding detail | Full finding details with optional code | No finding details | One-line summary per item |
| Overlap | No overlap with the other two | Summary of the plan structure | Overlaps with next --count N in showing queue items |
plan queue and next --count N are similar but differ in that: plan queue collapses clusters into single rows and shows all items by default (table format), while next shows individual items with more context per item (terminal card format) and defaults to 1 item.
detect vs scan
| Aspect | detect <name> | scan |
|---|
| Detectors run | Single named detector | ALL registered detectors for the language |
| State persistence | None -- results are ephemeral | Full merge into state (new/resolved/reopened findings) |
| Plan interaction | None | Post-scan reconciliation (clusters, triage, workflow items, score checkpoints) |
| Output | Raw detector output (terminal or JSON) | Diff summary, score delta, dimension changes, narrative, badge, LLM summary |
| Use case | "Let me quickly check what this one detector finds" | "Run the full analysis pipeline and update everything" |
| Flags | Detector-specific: --threshold, --category, --file, --fix | Scan-wide: --profile, --skip-slow, --force-resolve, --reset-subjective, --force-rescan |
| Queue gate | None | Blocks if plan queue has items (unless forced) |
detect is a debugging/exploration tool. scan is the production pipeline.
tree vs viz
| Aspect | tree | viz |
|---|
| Output format | Plain text to terminal | HTML file for browser |
| Interactivity | None (static text) | D3.js treemap (zoomable, hoverable, clickable) |
| Data shown | File tree with LOC, findings count, coupling annotations | Same data as tree but as a color-coded area visualization |
| Customization | --depth, --focus, --min-loc, --sort, --detail | --output only |
| Shared code | Same _collect_file_data, _build_dep_graph_for_path, _build_tree, _findings_by_file | Same shared data collection |
| Output size | Small (terminal text) | Large (full HTML with embedded D3 + data) |
These are genuinely different output formats for the same underlying data. tree is for quick terminal inspection; viz is for deep visual exploration. They share ~80% of their implementation code. They could arguably be one command with --format text|html but the argument surfaces are quite different.
plan done -- state transitions
plan done <patterns> triggers the following state transitions:
- Synthetic IDs (triage::, workflow::, subjective::*): Purged from plan queue_order only. No state file change.
- Real findings: Delegated to
cmd_resolve with status="fixed":
- In state file:
finding.status changes from "open" to "fixed". finding.resolved_at is set. finding.note and finding.attestation are recorded.
- In plan file: Finding IDs purged from
queue_order. Log entry appended. Finding IDs added to uncommitted_findings[] (commit tracking).
- Score impact: Overall/objective/strict/verified scores all recalculate based on fewer open findings. Score delta is displayed.
- In query.json: Resolve payload with before/after scores, patterns, narrative.
The queue-order guard ensures you can only resolve items at the front of the queue (or use plan move to reorder first).
autofix review -- is it a weird subcommand combo?
Yes, it is an oddity. autofix review is literally just _cmd_fix_review() which calls review_mod.prepare_review() -- the exact same thing as review --prepare. The only difference is the entry path:
desloppify autofix review -> fix/cmd.py checks fixer_name == "review" -> fix/review_flow.py
desloppify review --prepare -> review/entrypoint.py -> review/prepare.py
Both produce the same output (review data in query.json with dimension prompts). The autofix review path still shows the same "AGENT PLAN" output with review instructions. It exists as a historical artifact -- "review" was added to the autofix namespace before the dedicated review command existed with all its modes.
The parser lists review as a "special" fixer in the epilog: "special: review -- prepare structured review data". It is the only "fixer" that does not actually fix anything. It is purely a data preparation step.
Additional Hidden Command: resolve (not in CLI registry)
cmd_resolve in /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/resolve/cmd.py is not exposed as a public CLI command. It is only called internally by plan done. It handles:
- Changing finding status (fixed/wontfix/false_positive/open) in state
- Anti-gaming validation (attestation, note length)
- Queue-order enforcement (must resolve items at front of queue)
- Triage guardrail (blocks resolving when new findings need triage)
- Cluster expansion (resolving a cluster name resolves all members)
- Plan cleanup (purge resolved IDs, commit tracking)
- Score display and next-step guidance