/ai-native-toolkit:assess-findingsfrom ai-native-toolkit
Assembles the /assess report from run-context.json and practice scorecard: scorecard, cross-practice findings, contradictions, and Top 3 Actions. Triggered by the /assess orchestrator at report-writing step.
Ships in ai-native-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The report-writing half of /assess. The deterministic core has written .assess/run-context.json (the data bus) and the assess-layer-scorer agent has returned the per-practice scorecard. Your job is to assemble .assess/assess-report.md: the deterministic top card, the scorecard, the snapshots, the verbatim cross-practice findings, the findings where the repository says one thing and does another, and the Top 3 Actions.
Windows: run the bash blocks below in Git Bash, which ships with Git for Windows. Installs, PATH notes and the make-free commands are in the Windows setup guide.
The deterministic parts are not yours to invent - you paste them. You write the prose around a findings section you cannot omit or reorder. This is the deterministic-core-writes-data / LLM-writes-prose split that makes the report reproducible regardless of which model drives the run.
$REPO_ROOT/.assess/run-context.json - the data bus (the headline and level blocks, findings, attention, keyhole summary, prescribed actions, stats, diff).assess-layer-scorer agent (the per-practice verdicts and their evidence), with its evidence list already re-checked by lib/report/evidence_check.py: only entries that held on disk remain there; the rejected ones arrive separately under evidence_rejected, each with the reason the check gave.Existence and wiring claims cite only verified evidence. A report sentence saying a file or directory exists or is missing, or that something is or is not wired in (a workflow runs the linter, no CI job calls the script), must rest on an entry in the scorecard's evidence list and name the path that entry cites. When no verified entry backs such a claim, leave it out rather than restating it from the scorer's prose. The scorecard's per-layer Evidence cell is exempt only in its two empty states (no entries offered, every entry rejected), set beside the scorecard table below; a cell whose layer kept some verified entries cites only those, as the partial state there says. The deterministic findings you paste verbatim are already grounded and need no entry.
The layers above each measure one axis. The deterministic core also crosses those axes against each other and emits ten named findings - the "where to look" signals no single layer surfaces. Read them once, after the per-layer scans:
jq '.derived_findings, .attention, .attention_low_signal, .keyhole_summary, .blocker_actions, .prescribed_actions, .gap_actions, .stats_summary.complexity_unreliable, .stats_summary.scc_unread' "$REPO_ROOT/.assess/run-context.json"
derived_findings is a fixed-order list of ten {name, paths, action} objects - all ten always present, paths may be empty. Omit a finding from the report when its paths is empty. Each pairs an axis-crossing with the action it implies:
hidden_coupling - modular statically but bleeds across boundaries historically (files that keep changing together). The static map says "isolated"; git says "coupled." Action: check why these files change together before trusting the boundary.lying_map - high complexity under a stale doc: the map exists but no longer matches the territory. Staleness is the decaying-map churn ratio for a hand-written doc, counted only over distinct subject commits after the doc's last content change (a doc corrected after its subject last moved is never flagged, however busy the window was), but for a generated doc that declares provenance (frontmatter source: or a [[generated]] config mapping) it is measured against the source - the doc is stale only when its source is newer than it, so an accurate generated doc is never flagged. Action: fix or delete the doc - a wrong map is worse than none.unexplained_complexity - high complexity with no doc and no recorded intent. Action: write the contract the code needs. Do not auto-generate it - a guessed contract is one more doc that says one thing while the code does another.untrusted_hotspot (E1 trust axis) - a complexity hotspot whose tests are hollow: an opt-in mutation pass let a high fraction of mutants survive, so the suite runs the code but doesn't pin it. Silent without mutation data (the default read-only run never fires it). Action: make the tests check what the code does, as a caller sees it, not its internal state.self_referential_tests (E2 trust axis) - the code and its co-located tests were introduced in the same commit, so the suite may verify the author's mental model rather than independently-specified behaviour. Action: ask a person to review - the tests check that the code agrees with itself, not that it is right.unactioned_intent (write-side tendency) - files carrying stale promissory markers (TODO / FIXME / "remove after migration") that survived at least stale_touches_threshold edits to their own file without being kept: a note of intent that says one thing while the code does another. A justified suppression (eslint-disable-line x -- reason, # noqa: X # reason) is never stale; a marker citing an issue or a date still ages. Silent when the marker scan is unavailable or the history is too thin to age markers. Action: keep the promise - fix it, open a ticket for it, or delete the marker or skip.accretion_ratchet (write-side tendency) - a top-band hotspot whose line count only ever ratcheted upward: monotonic net growth across multiple commits with almost no deletion pressure (deletions below ~15% of total churn). The fingerprint of a file appended to rather than reworked. Only surfaced for files already in the top complexity/size band, so a growing-but-simple file is never flagged. Silent when the scan is unavailable or reads reliable: false: degenerate history (shallow clone or squashed import), a rename fallback, or short_history (under 30 days or 30 commits; both minimums uncalibrated). An unreliable reading adds no attention rows and no Top 3 action; the hotspot pages still show the growth line, disclaimed with the scan's reason. Action: make the file smaller - move code out, delete dead code, or split the file.orphaned_understanding - high complexity with no human anchor and no intent: nobody owns the knowledge. Action: name a person who owns this code before it changes again.candidate_dead_weight - high complexity with no runtime evidence it is live. The bias is to keep (static reachability can't see external callers - the runtime legibility caveat applies). Action: check that the code is used, and delete it only if it is not.refactor_boundary (positive) - high containment: edits stay local. A safe zone, never an attention row. Action: safe to hand an agent in isolation; cite these paths in Strengths.Partial import graph (structure.name_collisions). Read it with jq '.structure.name_collisions'. Each entry is {name, paths}: one import name held by two or more discovered packages (paths are their repo-relative directories, with . written %2E and % written %25 so each stays one module name; decode those two escapes before naming a path, so v1%2E2/lib reads v1.2/lib), which the core graphs in separate builds. Every import between those builds is dropped, not only imports of the colliding name, so the import-graph signals - the per-module import footprints, the front-door ratio, modularity, and the static containment behind hidden_coupling and refactor_boundary - cover only part of the tree and can be understated. When the list is non-empty, say so in one or two sentences directly under the ## Cross-Practice Findings (Keyhole Readiness) heading, naming each colliding package by name with its paths, so a reader does not take the structure figures as whole-repo. Omit the note when the list is empty or structure.available is false (the import graph did not run; there is nothing to qualify).
attention ranks the few units landing in the most negative findings (refactor_boundary never counts) - the "look here first" list, each row carrying its findings and score. Equal scores order by stats_summary.top_hotspots rank (members first), then finding severity (stale-marker severity, or lower containment_ratio for hidden_coupling), then path, so the order is already the priority. Lead the report's findings with the top of this list. A row is prescribed only when it is not tied with more than one other row at its score, and no row ranked below such a tie is prescribed. The sibling boolean attention_low_signal is true when that rule held back a row that would have filled one of the three slots.
Copy findings_markdown verbatim. run-context.json carries a pre-rendered findings_markdown string - the deterministic findings section (the ten findings with their paths and actions, then the attention list). Paste it into the report verbatim, inside the 🔎 Cross-practice findings fold below - do not paraphrase, summarise, reorder, or drop findings. You write framing prose (the "why these matter here") inside the block, directly under its ## Cross-Practice Findings (Keyhole Readiness) heading - the block already opens with that heading, so never add your own heading above or around it; the heading must appear exactly once in the report. The section itself is the deterministic core's product, not yours. This is what makes the findings impossible to omit regardless of which LLM drives the run.
keyhole_summary rolls the same findings into a one-line readiness summary (summary_text), pasted in the catalogue coverage fold of the report template below. blocker_actions lists the next Step's unmet gates as ready actions, in Step order ({condition, gate, step, action, done_when, why}, #1646): the action is the check manifest's fix of the gate's condition (for the instructions gate, one sentence per failing criterion with its measured value, #1746) and the done_when names the gate, both deterministic, so copy them verbatim. A gate not measured gives no entry: not measured is not failed. prescribed_actions lists the actions the report MUST include, one per top attention row (up to three, fewer or none when attention_low_signal is true; the Blocker rule below may push the last one under the table), and gap_actions lists {signal, action, paths} candidates for the slots left free: instruction files that are all nested (signal layer_grades, advising a root AGENTS.md or CLAUDE.md that names the check command, naming the nested files), a missing coverage report (signal coverage_report, naming the top hotspots to measure), doc reachability below the 0.50 floor (signal doc_graph, naming the unreachable docs), and a removal (signal instruction_placement, mode remove, #1084): an instruction file whose always-on text the scan flags, with its measured cost ({metric, path, value}, always-on lines). A removal earns credit by taking something away; when it fills a Top 3 slot, copy its finding and cost into the action in finalize-input.json verbatim, and its paths into the action's files, so finalize writes the remove mode and the measured cost into actions.json and keeps the action's lifecycle across runs (identity is finding plus files; the directive's line count changes as the file shrinks). [] when none fires, or {available: false, reason} when the gap scan failed (then fill free slots by judgement) - see the Mandatory attention rule in the Top 3 Actions section below.
Write the report to $REPO_ROOT/.assess/assess-report.md. The top card is not yours to compute. headline.summary_markdown (lib/top_card.py) states each fact about where the repository stands once: the Step, the gates held, the gate that blocks the next Step, what moved since the last run, and one "Start here" and one "Done when". It is the only paste above the fold. assess_finalize.py later rewrites its Start here and Done when from the first open action of the Top 3 you write (rank 1 unless it is already done), except when a hazard or a declined condition blocks the first measured gate of the next Step, whose two lines then stay, so paste it exactly as it stands and never edit those two lines yourself. When the run's headline kind (headline.kind, lib/headline_kinds.py) carries disclosures, the card ends with them, one paragraph each, such as "Not measured is not met: ...": they are part of the paste, so paste the disclosure block verbatim with the card. assess_finalize.py stops the run, naming the disclosure id, when the report does not carry one byte for byte. Never write a layered score, a fraction such as "X / 8" or a band name; the per-practice verdicts sit underneath as detail, and they never set the Step.
Lead decisions (#1825). A profile's lead_decisions say which decisions its reader takes first. The report opens with them: ## Decisions that lead is the first ## section, unfolded, and its entries are the deterministic report's, never re-ordered, reworded or picked by judgement. The scorecard and Step tables below keep their own fixed order. assess_finalize.py refuses a report whose first section is not this one, byte for byte, and its message holds the section to paste; paste from that message on a --scope run, whose context --stdout does not read.
Translation for a reader in another language (#1174). When the user works in a language other than English, add a translation directly under the pasted card: a line Translation (<language>): (the language named in English, for example Translation (Polish):), then the same lines in that language, with Start here and Done when translated from the first open action of your Top 3 (rank 1 unless it is already done: its first step and done-when), since finalize rewrites the English pair from it. When a hazard or a declined condition blocks the first measured gate of the next Step, translate the card's own two lines: finalize keeps them. The English stays first and verbatim: it is the source of truth, and the deterministic lines are never rewritten. Translate the words only: condition ids, file paths, commands, code, gate ids and link targets stay exactly as written, so every backticked span and every link URL of the English appears unchanged in the translation (the helper lib/plain_english.untranslated_tokens(english, translation) lists any that went missing; tests/test_plain_english.py applies it to a sample Polish translation). Nothing machine-read is translated: run-context.json, badge.json, log.md, actions.json and fleet output stay English. With an English-speaking user, add nothing.
Two audiences, one file. The report serves a human (wants a short, picture-led skim) and an AI agent (wants the full structured detail). The structure below satisfies both: the default-visible surface is short - the top card, any lead decisions, the Top 3 Actions, the "Says one thing, does another" section, and the two SVG images with a one-line takeaway each, plus one caveat line - and everything verbose, your own prose included, is relocated into collapsible <details> folds. A collapsed <details> keeps its content fully present in the raw markdown, so an agent reading the file sees everything inside the folds; the fold only hides it from a human's rendered view. Folding is presentation, not removal - never delete content to shorten, relocate it into a fold. Four things never fold: the top card, the Decisions that lead section (present only under a model that names them), the Top 3 Actions and the "Says one thing, does another" section. A section-ablation A/B showed that removing the Top 3 made a fresh agent confidently act on the wrong (lower-priority) item, so they stay visible and complete. A doc or gate that says one thing while the repository does another is the finding a reader most needs, so it stays visible too (#1254).
Use the CodeRabbit fold style: <details>, then <summary>emoji label</summary>, a blank line, the content, a blank line, then </details>. The blank lines are required for tables and lists to render inside the fold. Nesting is allowed.
Report format (write this to disk verbatim, filling in the placeholders; the bolded paragraphs - inside the folds and under the Top 3 Actions table - are instructions for how to fill that section, not literal report text):
# Codebase Assessment: <repo-name>
_Generated <YYYY-MM-DD>. Generated by `/assess` v<version>. <the "Evidence read: ..." and "Not read: ..." sentences, copied verbatim from the end of the "Generated" line that `assess_report.py <repo> --stdout` prints (the evidence classes the run read and the ones it did not); leave them out when that line has none>_
<paste `headline.summary_markdown` from run-context.json verbatim; leave it out when it is empty>
<only when the user works in a language other than English: `Translation (<language>):` on its own line, then the card in that language; see "Translation for a reader in another language" above>
_New to these words? The [glossary](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md) explains [Step](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#step), [gate](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#gate), [practice](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#practice), [level](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#level), [evidence grade](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#evidence-grade) and [truth tag](https://github.com/bjcoombs/ai-native-toolkit/blob/main/docs/glossary.md#truth-tag) in a sentence or two each._
<MUTATION_CAVEAT - only when `mutation_not_run_cap.applies` is true (mutation did not run), paste exactly:>
_Note: Mutation testing was not run. The "Coverage gates and truth pressure" practice is held at Partly in place, and truth pressure is not yet measured._
<MUTATION_PARTIAL_CAVEAT - only when `mutation_not_run_cap.partial` is true (every mutation group stopped at its time budget); never with MUTATION_CAVEAT. Paste exactly:>
_Note: Mutation testing stopped at its time budget in every package it ran in. The "Coverage gates and truth pressure" practice is held at Partly in place: the figures cover only the fastest mutants, a biased sample._
## Decisions that lead
<only when the run's maturity model names `lead_decisions` (a shipped profile, such as `--profile handover`): `assess_report.py <repo> --stdout` then prints a `### Decisions that lead` heading. Copy what is under it verbatim, from the first bold entry head to the line before the next heading, in its order; leave out the sentence between the heading and that head. Leave this whole section out, heading included, when the printed report has no such heading>
## Top 3 Actions
<one orientation sentence: which attention paths Actions 1-2 cover and which scorecard gap Action 3 closes.>
| # | Action | Practice | Effort | Command / First Step | Done when | Scope fence | Hotspot files this addresses | Issue |
|---|--------|-------|--------|---------------------|-----------|-------------|------------------------------|-------|
| 1 | <one-line action - the first `blocker_actions` entry's action when that list is non-empty (Blocker rule below), else rank 1 of `prescribed_actions` with its path when it is non-empty> | <practice title> | <small/medium/large> | `<exact command or file to edit>` | <exit criterion with a backticked command or path, a number or a link> | <what NOT to touch> | <paths from top_hotspots / top_complex / top_large, or "-" if not file-specific> | - |
| 2 | <one-line action - the next `prescribed_actions` entry if present, else the next unused `gap_actions` entry, else judgement> | <practice title> | <small/medium/large> | `<exact command or file to edit>` | <exit criterion with a backticked command or path, a number or a link> | <what NOT to touch> | <paths or -> | - |
| 3 | <one-line action - the next `prescribed_actions` entry if present, else the next unused `gap_actions` entry, else judgement> | <practice title> | <small/medium/large> | `<exact command or file to edit>` | <exit criterion with a backticked command or path, a number or a link> | <what NOT to touch> | <paths or -> | - |
**Done when** is the action's exit criterion and it must be *checkable, not aspirational*. Write it in the card's form: it holds a backticked command or path, a number, or a Markdown link, because the first open action's `done_when` becomes the top card's Done when line (unless a hazard or a declined condition words it) and every line there carries one. `assess_finalize.py` warns on stderr, naming the action, for a `done_when` that holds none (#1300), a sub-item's included (#1518). State it in the repository's own terms first, so a maintainer without the plugin can check it: a command whose pass state defines done (`golangci-lint run` reports 0 new issues; `bats tests/` passes), a file state (`AGENTS.md` names the check command), or a CI result (the `lint` job runs `actionlint` and is green). A re-run criterion (`max_fn_ccn` of the named function drops below the threshold in a re-run's stats sidecar; the finding no longer lists the path) may follow, but never as the only one. An executing agent - especially a smaller model - uses this to know when to stop; an action without a verifiable exit invites either premature "done" claims or runaway scope.
**One concern per action.** Each row carries one change a maintainer could accept or decline on its own. When a gap needs several independent changes (an instruction-file stub, a lockfile, a CI step), the row takes the highest-leverage one, and each other change goes directly under the table as a lettered sub-item (`3a. <change> - Done when: <criterion>`), so a maintainer can take each on its own. Sub-items are not extra rows: the table and `actions.json` keep one entry per rank. Wherever you write a lettered sub-item, also write it into that action's `sub_items` list in `finalize-input.json`, as `{"label": "a", "action": "<change>", "done_when": "<criterion>"}` (with `first_step` or `scope_fence` when it differs from its parent's); the issue-tracking step files each one as its own item titled `3a. <change>` (#1263), and a sub-item left out of `sub_items` never reaches the tracker.
**Name the condition an action moves.** When an action changes one maturity-model condition, put that condition's id in the action's `condition` field in `finalize-input.json` (an id `level.conditions` lists, e.g. `layer-5-ci.1`); `assess_finalize.py` refuses an id the run's level result does not list. The first `blocker_actions` entry holds rank 1: copy its `action`, `done_when` and `condition` into rank 1 (add the `first_step` and `scope_fence` cells by judgement), so the card's Start here and Done when, which finalize rewrites from rank 1, name the gate its Blocks line names (finalize checks the `action`, not the `done_when`, so copy both). The one exception is a prescribed action that already moves that condition: it takes rank 1 in the blocker action's place, with the condition on it. Either way rank 1 carries the condition. `assess_finalize.py` refuses a Top 3 whose rank 1 does not, or whose rank 1 is neither the blocker's `action` verbatim nor an action naming a `prescribed_actions` path, naming the condition.
**Scope fence** names what the action must NOT touch: the files, behaviours, or conventions out of bounds ("only `.golangci.yml`; no source edits", "extract the one function; no drive-by reformatting of the rest of the file"). Smaller models over-extend without an explicit fence.
**Keyhole-size the action.** When an action targets code (not config), prefer the *function* over the *file*: the stats sidecar carries per-function data on each ranked row (`max_fn_ccn` and `max_fn_name`, the worst function's name, filled for files a per-function backend scored - lizard, and the approximate `dart-scanner` for Dart; both are null for files scc scored at file level only), so "extract the dispatch branch of `parseLine` (fn ccn 41), characterization test first" fits one context window where "refactor parser.go (ccn 67)" does not. An action a fresh agent cannot complete inside one keyhole is two actions.
**scc-only ccn is not a priority figure (issue #590).** A row with `source` `scc` and null `max_fn_ccn` carries scc's file-level keyword count, not a parsed complexity, and a path listed in `stats_summary.complexity_unreliable` is one whose count is implausibly low for its size (scc lost its place, often on shell quoting). Never justify an action's rank or order with such a figure: argue from churn, size and the finding instead, and when the figure appears at all write it as "ccn ~N (approximate)" - or "ccn ~N (unreliable)" for a `complexity_unreliable` path (the report table's `~N (approximate)` and `~N (unreliable)` cells, with the column's "ccn" in front). The Top 3 table is pasted into PR and issue bodies, so this caveat travels with it.
### Why these three?
<For each action that names a maturity-model condition or a scan, first quote that entry's `why` verbatim, in quotation marks: a condition's from its `level.conditions[]` entry in run-context.json (`.why`), a gap action's from its `gap_actions[]` entry (`.why`), and a scan's from `.scans[] | select(.name == "<scan>") | .why` in the assess skill's `references/measures.json`. Never quote a why that is `exempt: plumbing`. Then add one or two sentences of repository-specific framing after the quote: what the action prevents here, naming the scorecard gap or hotspot file. The why states the reason; do not invent another reason, and when an action names no condition or scan, give its leverage in one or two sentences of framing alone.>
## Says one thing, does another
These artefacts look true but aren't: the repository says one thing and does another, which is what an agent navigating the codebase most needs to know. Each row is something the repo presents as trustworthy that a scan flagged as hollow: a map of a place that moved, code that reads as live but is never called, a gate that reports "tested" without pinning behaviour.
| Practice | Signal Type | Instance | What it says, and what it does |
|----------|-------------|----------|-------------|
| Agent instructions | Stale hub doc | `<path>` (<N>d stale; subject churned <M> commits in window) | A central doc agents anchor on, frozen while its subject code moves - reads as the map, describes terrain that no longer exists |
| Agent instructions | False instruction claim | `<file>:<line>` - `<path>` (<kind>) | The agent instruction file states enforcement, a pin or a file count the repo does not back - an agent trusts the rule as guarded when nothing checks it |
| Agent instructions | Ignored Claude Code config | `<file>:<line>` - `<key>: <value>` (<kind>) | A skill, command or agent field Claude Code drops without an error - the configuration reads as set while the runtime ignores it |
| Runtime legibility | Dead-but-present | `<path>` - `<symbol>` (<kind>) | Compiles and reads as live, but nothing in *this* repo calls it - an agent extends or trusts a path that is never exercised |
| CI and the agent's local check | Config snapshot drift | `<file>` - `<key>` (tracked <T>, live <L>) | A committed copy of platform configuration that reads as restorable truth while the live setting has moved - restoring it silently reverts a deliberate change |
| Coverage gates and truth pressure | Green-but-hollow | `<path>` (coverage <C>% vs mutation <K>%) | Tests execute the file (green coverage) but don't constrain it (mutants survive) - the gate says "tested" while behaviour is unpinned |
| Review on merged pull requests | Hollow required review | `review_reality` (<R>% of <N> merged PRs reviewed, <A>% approved, by someone other than the author; <S>% self-merged) | The branch rules require an approving review, so review reads as enforced, while merges land without one - the gate is bypassed as routine |
| Review on merged pull requests | Code owner review with no owners | `change_controls` branch `<name>` | The branch requires code owner review, so it reads as owner-reviewed, while no CODEOWNERS file there names an owner - GitHub has no one to ask, so the rule adds no review |
**Populate each row from `run-context.json`; omit any row whose signal is absent or below threshold. Omit the table when no row qualifies, and omit the entire section only when no row qualifies **and** the `lying_map` finding's `paths` is empty; when only the paths exist, show the section with the paths and no table. This section is never folded: it sits above the first `<details>` block, with the `lying_map` finding's paths, so the reader meets every mismatch before any fold.**
**Fill each row, and the `lying_map` paths line, by its rule in `references/report-says-one-thing-rows.md` (relative to this skill dir): which block and entry to take, the threshold that admits a row, and the cells to fill from it.**
## Snapshots
### Complexity - riskiest to change
[](./complexity-heatmap.svg)
<one-line takeaway: where the risk concentrates and whether the per-function complexity is fenced - e.g. "Every hotspot is in `skills/assess/`: the engine auditing itself; per-function ccn p95 9 sits under the 15 gate.">
### Doc navigability - can an agent find its way?
[](./doc-graph.svg)
<one-line takeaway: reachability plus whether it is a wayfinding or a truth gap - e.g. "~10% link-reachable: a curation/wayfinding gap, not hidden content; no doc says one thing while its code does another.">
<details>
<summary>📋 Catalogue coverage, units and keyhole summary</summary>
<paste `headline.markdown` from run-context.json verbatim: "Catalogue coverage" with the not-measured count and the model version, then the per-tag strip>
<paste `unit_rollup.markdown` from run-context.json verbatim, only when it is non-empty (a monorepo run with two or more units); never add, drop or reorder a unit name in its "Learn from:" lines>
Keyhole: <paste `keyhole_summary.summary_text` from run-context.json verbatim>
</details>
<details>
<summary>🗺️ More snapshots (Steps, evidence, truth tags, packages, doc drift, review)</summary>
### Where you are on the Steps
[](./step-ladder.svg)
<the ladder's caption and its "In place:" line, copied verbatim from the `## Where you are on the Steps` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
### Evidence behind the Step
[](./evidence-waffle.svg)
<the waffle's caption and its "In place:" line, copied verbatim from the `## Evidence behind the Step` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
### Practices in place by truth tag
[](./tag-profile.svg)
<the tag profile strip's caption and its "In place:" line, copied verbatim from the `## Practices in place by truth tag` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
### Packages and their imports
[](./package-map.svg)
<the package map's caption and its "In place:" line, copied verbatim from the `## Packages and their imports` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
### Docs behind their code
[](./doc-drift.svg)
<the drift map's caption and its "In place:" line, copied verbatim from the `## Docs behind their code` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
### Review on recent merges
[](./review-strip.svg)
<the strip's caption and its "In place:" line, copied verbatim from the `## Review on recent merges` section that `assess_report.py <repo> --stdout` prints; when that section says "Not drawn:", write its reason here instead of the image>
</details>
<details>
<summary>📈 Snapshot detail (commit, hotspots, navigability, stale docs)</summary>
#### Complexity profile
- **Measured at commit:** `<head_short>` (<committed_date>)<staleness-suffix>
- **Files scored:** <N>
- **Churn window chosen:** <last 12mo | last 24mo | last 5y | all-time>
- **Complexity profile:** per-function ccn p95 <N> (max <M>); file-aggregate ccn p95 <N> (max <M>); p95 est. tokens <N> (max <M>; code <C>, data <D>); p95 NLOC <N> (max <M>; code <C>, data <D>). The code and data maxima come from `max_code` / `max_data` in the `est_tokens` and `loc` blocks (data is scc's JSON, YAML and JSONL); omit a split its snapshot lacks
- **Top hotspots** (composite `sqrt(effective_ccn) × sqrt(1 + commits) × sqrt(est_tokens)`, with `effective_ccn` the file aggregate weighted toward its worst function: a sub-linear blend of complexity, recent churn, and context-window size, so a file high on *multiple* axes - big AND complex AND churning - is the worst keyhole and leads; a frozen-but-complex file ranks below an equally-sized active one; a churny-but-trivial file can't top on churn alone; and a big-but-simple-stable file can't top on size alone; a co-change breadth term was tested and left out, see the assess skill's `references/hotspot-cochange-experiment.md`). `est_tokens` is the char-based estimate (~chars/4), `ccn` here is the **file aggregate**; the worst single function per file is in parentheses:
1. `<path>` - <est_tokens> est. tokens (<loc> NLOC), aggregate ccn <N> (worst function `<max_fn_name>` <max_fn_ccn>), <M> commits in window
For a row scc scored at file level only (`source` `scc`, `max_fn_ccn` null) write the figure as "ccn ~N (approximate)", and as "ccn ~N (unreliable)" when its path is in `stats_summary.complexity_unreliable`.
2. ...
3. ...
- **Size units:** `loc` in the stats sidecar, and every `LOC` label the core generates (the treemap tooltip, the hotspot pages' `LOC` row, the `index.md` column), is NLOC: code lines with blank and comment lines left out (lizard's count; scc's code count for data files). A file-size ratchet or lint cap, `wc -l`, and the hotspot pages' "lines net" accretion figure count physical lines. Write "<N> NLOC" for the first and "<N> lines" for the second, and never set the two against each other as one file's size: the same file can be 394 NLOC and 723 lines.
- **Per-function coverage:** list every language that `fn_ccn.backend_by_language` maps to `null` in one line, once per run: _"no per-function data for <Language>, <Language> (scored at file level only)."_ A row whose `max_fn_ccn` is null then drops the "worst function" parenthesis rather than printing null. Omit the line when no language maps to `null`. A language mapped to a backend that `fn_ccn.file_level_by_language` also counts is partly covered: name the backend and the count once, _"Python per-function figures from lizard; 1 Python file scored at file level only."_, never "no per-function data" for it. For each backend `fn_ccn.source` marks `approximate: true` (`dart-scanner` today), say so once beside the figures it produced, naming the languages `backend_by_language` maps to it: _"Dart per-function figures are approximate (brace-and-keyword scan, `dart-scanner`)."_, and write each such row's figure as "worst function `<max_fn_name>` ~M".
- **Keyhole budget** (`stats_summary.est_tokens.budget`): state the repo total estimated tokens and how many files / top-level subtrees exceed one context-window keyhole (the documented `budget`, an estimate). This is the literal "does the relevant slice fit one keyhole?" measure. e.g. _"Repo is ~<total> est. tokens; <N> subtree(s) exceed the ~200k keyhole budget: `<name>` (~<tokens>)."_ When `est_tokens` is absent (pre-token snapshot), omit this line.
Size encodes estimated tokens (~chars/4 - the keyhole size unit; the familiar LOC is one hover away in the tooltip), colour encodes cyclomatic complexity (dark red = high), saturation encodes recent git churn (vivid = active). Tokens track what fills an agent's context window better than LOC, which undercounts dense/wide files and overcounts sparse code. Vivid red blocks are the migration risk. When the treemap carries a **hatched** overlay (only when opt-in mutation results exist), those blocks are covered-but-unpinned code - tests run them without constraining them - so they stop reading as safe green; the heatmap's own legend keys the diagonal (>30% survivor density) and cross-hatch (>50%, severe).
When `stats_summary.scc_unread` is present and its `files` is not 0, write one line directly under the heatmap: "Not read by scc: N tracked files (language and count for each), scc VERSION. They are missing from the heatmap." A null `files` reads "Not read by scc: unknown number of tracked files, scc VERSION. Some may be missing from the heatmap.", never 0.
**Always explain the hatching - even when it is absent.** The hatched overlay only appears when an opt-in mutation pass ran, but its *absence* must never pass silently: a green-but-unverified treemap reading as safe is exactly the lie the overlay exists to prevent. Read `test_pressure.mutation_config_present` (and whether `test_pressure.survivor_clusters` carry data) and write one of these two readings right after the treemap, always:
- **Mutation ran and hatches exist:** explain the overlay - a diagonal hatch marks >30% survivor density, a cross-hatch >50% (severe); both flag covered-but-unpinned code, tests that execute the lines without constraining behaviour, so the action is to strengthen assertions to pin observable behaviour, not internal state.
- **Mutation did NOT run:** write it verbatim - _"No hatching visible - mutation analysis was not run. The hatching would mark covered-but-unpinned code (tests that execute without constraining). Run `/assess` and accept the mutation offer to enable it."_
**Pin the snapshot to its commit (issue #59).** Read `measured_commit` from `run-context.json` and fill the "Measured at commit" line so every absolute LOC/CCN figure in this report reads as a snapshot of one commit, not a current truth:
```bash
jq '.measured_commit' "$REPO_ROOT/.assess/run-context.json"
```
- When `available: false`, omit the "Measured at commit" line (no git history to pin to).
- Render `head_short` and `committed_date`. Add a `<staleness-suffix>` warning when the snapshot is stale, so a reader knows the numbers may have drifted:
- `dirty: true` → append " - **working tree had uncommitted changes; figures include un-committed edits**".
- `behind` is a positive integer → append " - **HEAD was <behind> commit(s) behind `<upstream>`; absolute figures are a snapshot and may read low against current code**".
- Clean and up to date (`dirty: false`, `behind` 0 or null) → no suffix.
#### Where to focus testing
The cheap, always-on read of *which risky files most need test work, and which kind* - the hotspot risk band crossed against the parsed coverage report and the hollow-test heuristics, pre-joined into one ranked list by the deterministic core. Render it from `run-context.json .test_focus.entries` (the top 5-10). **Omit the whole subsection** when `.test_focus.available` is false or `entries` is empty.
Open with the **coverage provenance line** from `.coverage_report`, so a reader knows whether the signals rest on a real coverage report or on heuristics alone:
- `available: true` → _"Coverage data: `<source>` (Cobertura)"_ (name the report file from `.coverage_report.source`; the format is `cobertura` or `lcov`).
- `available: false` with `source: "none found"` → _"Coverage data: none found - test signals are heuristic-only."_
- `available: false` with a `reason` (the scan failed) → _"Coverage data: not read (`<reason>`) - test signals are heuristic-only."_ Never render a failed read as "none found".
Follow it with the **coverage gate line** from `.coverage_gate`:
- `available: false` (the scan failed) → _"Coverage gate: scan failed (`<reason>`)"_. Never render a failed scan as "none detected".
- `configured: true` → _"Coverage gate: `<file>:<line>` (`<form>` `<threshold>`)"_ for each gate: the threshold as written, with `ratio` appended for a JaCoCo ratio and `uncovered lines` for a negative Jest value (`unit: uncovered_count`, so `-10` reads "at most 10 uncovered lines", never minus ten percent). A `threshold: null` reads "tool default" for an nyc/c8 `check-coverage` and "threshold not read" for any other tool.
- `configured: false` with gates listed (`fail_under = 0`, or a Jest/Vitest threshold not read) → _"Coverage gate: `<file>:<line>` configured at 0 / threshold not read, gates nothing"_ for each.
- `configured: false` with no gates → _"Coverage gate: none detected"_.
- Close the line with the configured 50 percent minimum (`.coverage_gate.threshold_meets_minimum`): `true` → _"meets the 50% minimum"_ (name `max_threshold_percent`, so a JaCoCo `0.80` reads 80%); `false` with a counted gate → _"below the 50% minimum (highest `<max_threshold_percent>`%)"_; `null` with `unmeasured_reason: go_rust_gate_form_not_read`, with or without gates → _"50% minimum not measured: Go and Rust gates written in a script are not read"_; `null` with `unmeasured_reason: codecov_target_not_read` → _"50% minimum not measured: the Codecov project target is auto or not a number"_; `null` with `unmeasured_reason: codecov_patch_only` → _"50% minimum not measured: a Codecov patch target bounds changed lines only, not total coverage"_; any other `null` with gates → _"50% minimum not measured: a threshold is not a readable percentage"_. Otherwise omit it: with no gates, or when gates are listed but none is counted (`configured: false`). Use `threshold_percent` only for this comparison; each gate still shows its threshold as written. Then add whether CI runs it (`.coverage_gate.enforced_meets_minimum`, the signal the coverage practice's level 1 reads): `true` → _"run in CI"_; `false` with `enforced_basis: not_run_in_ci` or `no_ci` → _"no CI step runs it"_; `null` with `enforced_basis` `unknown_trigger`, `indirect_run`, `included_jobs` or `unread_ci_system` → _"CI run not measured: <enforced_basis>"_; `null` with `enforced_basis: status_check_unconfirmed` → _"CI run not measured: a Codecov status, which holds a merge only when branch protection requires it"_. Omit it when the threshold line is omitted or `threshold_meets_minimum` is not `true`.
Then the table, one row per entry, mapping the raw `.test_focus.entries` values to human-readable labels:
| File | Risk | Test Signal | Suggested Action |
|------|------|-------------|------------------|
| `<path>` | High/Medium/Low | <test_signal label> | <suggested_action label> |
- **Risk** ← `risk_band`: `high` → High, `medium` → Medium, `low` → Low.
- **Test Signal** ← `test_signal`: `no_covering_test` → "No covering test", `covered_but_hollow` → "Covered but hollow", `unknown_no_coverage` → "Unknown (no coverage)", `unsupported` → "Unsupported (no report; no sibling or parallel-tree test found)", `sibling_test_only` → "Test file present, coverage unmeasured".
- **Suggested Action** ← `suggested_action`: `add_tests` → "Add tests", `strengthen_assertions` → "Strengthen assertions", `measure_coverage` → "Measure coverage".
**Cross-reference, don't duplicate.** This table surfaces the **cheap** signals - risk band, coverage presence, and the hollow-test heuristics. The **expensive** confirmation lives elsewhere and is referenced, not repeated: the `untrusted_hotspot` finding confirms which files mutation testing proved hollow, and the coverage practice's green-but-hollow row in the "Says one thing, does another" table pairs a file's coverage against its mutation score. A file flagged `covered_but_hollow` here and confirmed by `untrusted_hotspot` there is the same file seen through the cheap then the expensive lens - so point at the finding, don't restate it.
**Disclose active declines.** When `run-context.json .decline_disclosures` is non-empty, the user has permanently declined one or more optional tools for this repo, so a capability was deliberately silenced. Render each line verbatim under a short **"Declined tools"** note so the read stays honest about its own depth - e.g. _"Mutation testing permanently declined by ben on 2026-07-07"_ tells the reader the runtime legibility and coverage depth was held back by choice, not by a gap. Omit the note entirely when `decline_disclosures` is empty (no markers, the common case).
**Disclose owner exclusions.** When `run-context.json .owner_exclusions.disclosures` is non-empty, the owner excluded one or more maturity-model conditions in `.assess/config.toml` `[checks]`, each with a reason. Render each line verbatim under a short **"Excluded by owner"** note, beside the declined tools. When `.owner_exclusions.skipped` is non-empty, list each entry under the same note as "exclusion not applied (`[checks] exclude[<index>]`): <problem, underscores as spaces>; the condition stays in force", so an owner who mistyped an id or left out a reason sees that the condition still counts. An excluded condition neither earns nor costs, and an excluded gate condition keeps its Step out of reach; the headline already says so, so do not restate the Step. Omit the note when both `disclosures` and `skipped` are empty.
#### Doc navigability
Read the structured signal from `run-context.json` (`.doc_graph` without its per-document `link_parents` list - `jq '.doc_graph | del(.link_parents)'` - plus `.doc_staleness` and `.stale_hubs`) and write this in **plain language** - explain the metrics, don't just dump numbers. Define each term the first time you use it:
- **Navigability, in words.** e.g. _"Of <N> docs, <P%> are reachable from the README by following links and backticked doc paths; the other <N> are orphans (nothing links to or cites them) or sit in <K> disconnected islands."_ Pull `island_count`, `orphan_rate`, `reachability_pct`, and name 2-3 specific orphans/islands. Reachability counts both links and **reference edges** (a backticked path to an existing doc, such as `docs/arch.md` in `CLAUDE.md`, which an agent follows as readily as a link); `link_only_reachability_pct` / `link_only_orphan_rate` give the link-only view, so when they differ say how much of the wayfinding rests on backticked citations rather than links. These headline figures are the **curated wiki layer** (see the raw-source split below), so `doc_count` is `curated_doc_count`. **Frame it as curation, not access** - do not write "an agent can only discover <P%>": an agent can still `ls docs/` and open any file by path, so low reachability means the docs lack a navigable map (weak wayfinding / signal-vs-noise), not that content is hidden. State that adding an index/MOC is the fix, and present it as a wayfinding improvement, not a blocker - for a directory-organised tree, temper the priority accordingly.
- **Curated wiki vs raw sources.** When `doc_graph.excluded_raw_trees` is non-empty, a subtree of raw, machine-extracted source documents (a disclosure / SAR export of converted `.msg`/`.pdf`/`.docx` files, say) was auto-detected and **excluded** from the orphan/reachability/broken-link figures above - those files are immutable raw sources that legitimately have no inbound links and carry machine-extracted non-navigational links, so counting them would inflate the figures and mask the curated signal. **Name each excluded tree and its file count** (e.g. _"excluded raw-source tree `sar-export/`: 142 files"_) so the exclusion stays legible, and report the raw layer's own figures separately (`raw_source_doc_count`, `raw_source_orphan_rate`, `raw_source_broken_links`) as context, not as a gap to fix. The headline read-side signal is the curated layer. When `excluded_raw_trees` is empty, say nothing about this - the repo has no raw tree and is unaffected. **Working notes** (`doc_graph.excluded_working_notes_trees`) are the same move for a second kind of tree: pattern-named notes (plans, session logs, tickets) hung off one or two index files. Name each tree and its file count (e.g. _"excluded working-notes tree `notes/`: 51 files"_) and give `working_notes_doc_count` / `working_notes_orphan_rate` / `working_notes_broken_links` as context; a notes tree that dwarfs the curated wiki is itself worth one line (consolidate or archive it), never a navigability gap. A misclassified tree is fixed in `.assess/config.toml`: `working_notes_ignore` keeps a directory counted, `working_notes_dirs` excludes one from the headline. Empty list: say nothing.
- **Attribution.** Describe these checks in plain terms (orphans, broken links, connectivity, hubs). The README credits Andrej Karpathy's LLM-wiki "Lint" pattern as the influence once - **don't repeat that attribution in the generated report.**
- **Docs that say one thing while the code does another (stale docs of churning code).** Define the terms inline: **stale** = days since the doc's last content change (bulk mechanical commits such as a licence-header sweep are skipped; when `doc_staleness.bulk_commits_skipped` is non-empty, name the newest skipped commit's short SHA, date and `docs_touched` of `doc_count` in one line so the reader knows the clock looked past it; when `bulk_commit_scan_complete` is false the history was unreadable or shallow, so say the ages may include bulk commits; a doc with `last_change_basis: "creation"` was only ever touched in bulk, so its age is a creation date - do not call it stale); **subject churn** = file-commits in the window to the code the doc describes (`code_churn_in_window`); `code_churn_since_doc_change` counts the distinct commits to that code after the doc's last content change, and `ratio` is bounded by it, so a doc that is not behind its subject has `ratio` 0; **centrality** = how many other docs point to it (a hub). A real one is **old AND beside genuinely churning code**. From `stale_hubs` / `doc_staleness.docs`, name the worst 2-3 - but **apply judgment, don't trust the raw composite**: when a doc's `subject_method` is `repo-baseline`, its "subject churn" is just the whole repo's churn (a coarse proxy), so a *recently-changed* doc (low stale-days) that merely happens to be a big hub is **not** one of these - don't flag it. Prefer docs with a precise association (`nearest-ancestor` / `parallel-docs-tree` / `explicit-links`) and high stale-days.
- **Cross-repo mappings.** When `doc_staleness.declared_cross_repo` is present, say in one line how many `[[describes]]` mappings the repo declares and that they are not measured outside fleet mode (`/fleet` measures them against the described repositories); name any `status: "invalid"` entries as rejected config. Never guess their freshness or call those docs stale or current from this run.
Colour = staleness (vivid red = a frozen doc beside churning code: the doc says one thing, the code does another); structure = reachability (centre = entry, rim = unreachable, dashed ring = orphan; a solid edge is a link, a dotted edge a reference - a backticked path to an existing doc); size = file length. Hover a node in the SVG (opened on its own) for its path and stats.
#### What changed since last run
<the diff summary (graduated / new / regressed / restructured / persistent / retired / not measured), OR "_Diff suppressed: <note>._" when the prior snapshot was a different plugin version, OR "_No prior run to compare against - this is the first recorded snapshot._" on a first run.>
</details>
<details>
<summary>📊 Capability scorecard (per-practice decision, evidence, limits & gaps)</summary>
The headline and the keyhole summary measure **different things and are never combined.** The Step and the verified tally answer _"which contracts are in place to catch problems?"_ (a property of the contracts and enforcement). The Keyhole Readiness summary answers _"where is today's structural pain?"_ - a pure count of structural notes and safe zones rolled up from the ten cross-practice findings. A repo can hold Step 3 and still carry many structural notes (strong contracts over churning legacy), or Step 1 with zero notes (small, calm codebase). Report both side by side; never average, rescale, or fold one into the other. The per-practice rows below are detail under the headline: they explain it and never set it.
**Name each row by its practice, never by a layer number.** The scorer returns its verdicts keyed by the internal layer ids L0-L8; render each as the practice title of the maturity-model row it scores (the `title` in `levels/default.toml`), in the order above, and use the same title in the Top 3 Actions Practice column and the "Says one thing, does another" Practice column. Layer numbers are an internal name and never appear in the report.
**Decision first, then evidence, then limits (#1644).** Every practice and Step reads in that order: what the result lets a reader decide, the evidence class and what the run found, then what that evidence cannot show. `assess_report.py <repo> --stdout` prints a `## Capability by Step and practice` section with one entry per Step and practice: a bold head line, then `Decides:`, `Evidence (<classes>):` and `Limits:`. In the scorecard below, copy the **Decides** cell verbatim from the `Decides:` line of that practice's entry, open the **Evidence** cell with its evidence classes in brackets as that entry's `Evidence` line names them (for example `(static)`), and copy the **Limits** cell verbatim from its `Limits:` line. When the section reads "Not shown:" (a custom `--levels` run), or has no entry for a practice, or its entry has no `Decides:` or `Limits:` line, write "-" in that cell; never take a line from another model. Never reword these lines: they come from the maturity model and are versioned with it. Strengths stay before gaps: the "In place" section and the Strengths fold keep their places. The **Band** orders them by dependency: a read-side blind spot makes the write-side scores mean less (you can't trust enforcement of a picture you can't see), and the meta band only matters once the rest works.
**Status labels (display only).** The scorer returns `Present`, `Partial`, `Missing` or `N/A`; render the Status cell as **In place**, **Partly in place**, **Next up** or **N/A**, and keep the scorer's token everywhere it is data (`layer_scores`, the finalize input). Write the Status, Evidence and Gap cells of this scorecard in the supportive vocabulary: the banned words and retired band labels of the deterministic vocabulary list (`BANNED_WORDS` and `RETIRED_LABELS` in `skills/assess/scripts/lib/vocabulary.py`) stay out of those cells, and a gap reads as the next goal, never a verdict on the people who built the repository. This rule covers the scorecard cells only; the fixed headings and lines the rest of this template prescribes are unchanged here.
| Practice | Decides | Band | Status | Evidence | Limits | Gap |
|----------|---------|------|--------|----------|--------|-----|
| Agent instructions | <Decides line> | read | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| Runtime legibility | <Decides line> | read | In place/Partly in place/Next up | <what was found - if rung 3, append: "Reachable *if* the agent has `<tools cited in runbooks>` in its execution environment"; if no deployed runtime, note that liveness is read through complexity + churn + reachability, not telemetry> | <Limits line> | <what's next> |
| Code design (module structure) | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| Linters run in CI, suppression cap | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| Architecture boundaries and size | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| CI and the agent's local check | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| Coverage gates and truth pressure | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| Review on merged pull requests | <Decides line> | write | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
| AI project management (capstone) | <Decides line> | meta | In place/Partly in place/Next up | <what was found> | <Limits line> | <what's next> |
**Archetype-aware Status (`N/A` ≠ `Missing`).** When the scorecard marks a layer **N/A** (the write-side practices, code design through review, on a detected knowledge base - see the headline section below), render its Status cell as `N/A`, its Evidence as "not applicable - <archetype> repo has no code surface for this practice", and its Gap as "-"; its Decides and Limits cells keep their copied lines. **Never render an N/A layer as Missing** and never propose a remediation action for it: Missing is a real gap (the contributor is asked to be careful where a guardrail could exist); N/A means the layer cannot apply here. An N/A layer names no gap, so a knowledge base strong on its applicable layers reads as ready, not as failing the layers it has no surface for.
**The Evidence cell is never blank, and a scored layer has two empty states and one partial state.** When the scorer offered no entries for a scored layer (or returned no `evidence` list), keep its one-line note there and end it with `(unverified)`, so the gap reads as a limit of this run rather than as a fact. An N/A layer is neither state: it keeps the archetype rule's text above and takes no marker, because nothing about a layer that cannot apply awaits verification. When a layer's entries were offered and every one was rejected, drop the scorer's note, since repeating it restates a claim the check refuted, and render the gap instead: `no verified evidence - N claim(s) rejected`, followed by each rejected entry's `reason` from `evidence_rejected`. When only some of a layer's entries were rejected, strike the refuted claims from the scorer's note (or rebuild the cell from the entries that held) and end it with `- N of M claim(s) rejected`, so the cell cites only verified entries and still shows that the check refuted part of the note.
**Runtime legibility evidence carries an explicit caveat by default.** Its spec is honest about its boundary: this scores what the *repo* makes agent-reachable, not what the agent has installed at runtime. So when runtime legibility is **Present** (rung 3), the Evidence cell should not read "Reachable, full stop" - it should name the cited tools and conditionalise on their availability. Example: _"Runbook fences `kubectl logs`, `stern`, `logcli`; reachable *if* the agent has these in its execution context."_ When Partial or Missing, the caveat is moot - no rung-3 claim is being made.
### The headline (deterministic)
**State the headline only.** The top card and the catalogue coverage lines are the `headline` block the core computed from the `level` block; paste them and never narrate a correction, a draft, or a reconciliation with the scorer's verdicts. If a layer verdict seems to disagree with the card, the verdict is detail and the card stands: the Step reads only the maturity model's conditions. The evidence markers above (`(unverified)`, `N of M claim(s) rejected`) are findings about the repository and stay.
- **The card's Holding line** reads "N of M measured catalogue conditions met, V verified", and the catalogue coverage line adds the not-measured count with each reason and the model version: how much of the catalogue this run could read, never a progress figure. N is `tally.met`, M is `tally.measured`, V the share of N graded verified. A condition that was not measured is never in M, so a blind run neither lowers nor raises the tally; config-only and declared conditions are listed (`level.listed`), never counted.
- **The per-tag strip** ("By tag: behaviour 2 of 3 · docs 0 of 0 (NOT MEASURED: 1) · ...") counts like the tally over each truth tag's conditions; NOT MEASURED, HAZARD and DECLINED show only when non-zero.
There is no layered score, no fraction and no band name anywhere in the report. For a knowledge base (`.archetype.archetype` is not `"software"`), the scorecard marks the write-side layers N/A as above; the card is unchanged, because it reads conditions, not layers.
### What the Step unlocks
Each Step names the agent **autonomy** this repo's contracts support, in the vocabulary of the adoption ladder ([Steps of AI Adoption](https://www.threads.com/@boris_cherny/post/Da4CkQnEea-), B. Cherny, 2026). Gates accumulate: each Step keeps the gates of the one below. A Step needs its gates and nothing else: no count of conditions moves it. The Step definitions live with the maturity model (`skills/assess/levels/default.toml`), so they are versioned.
| Step | Decides | Gates added at this Step | Limits |
|------|---------|-------------------------|--------|
| 1 · Assisted | <Decides line> | none | <Limits line> |
| 2 · Supervised agent changes | <Decides line> | `instructions`: an instruction file that names the check an agent runs, with no failed claim, within 200 lines | <Limits line> |
| 3 · Unattended agent changes | <Decides line> | `ci_runs_tests`: CI runs the tests, unmasked; `review`: review evidence; `linters`: CI runs a linter; `secrets_guard`: a configured secrets guard | <Limits line> |
| 4 · Autonomous loops | <Decides line> | `coverage_gate`: an enforced coverage gate; `wide_review`: most merged changes reviewed and approved; `agent_permissions`: committed agent permissions; `boundaries`: a boundary or ownership map | <Limits line> |
Fill each Step's Decides and Limits cells verbatim from that Step's entry in the `## Capability by Step and practice` section, and take the Step names from its head lines, since a profile names its Steps its own way. The gate list stays as the default model writes it; a profile run lists, by id, the gates its entry's `Evidence` line names after "Gates:" that the Step one number lower does not name: that list is cumulative, so each row keeps only the gates its Step adds. When that section reads "Not shown:" (a custom `--levels` run), write that line in place of this table: the default model's Steps and gates are not the run's.
A gate whose evidence the run could not read is not measured, never unmet: a run without `--platform` and with no committed AI review step reads "Step 2, Step 3 not measured".
**This is a bound, not a claim about how the team actually works** - a Step 3 repo whose team reviews every diff by hand is operating below its bound; a Step 1 repo running unattended agents is operating beyond it (the risk the top card names). A Step is a capability unlocked, never a grade of the team.
</details>
<details>
<summary>🔎 Cross-practice findings (keyhole detail)</summary>
<fill the instruction placement, skill disclosure, secrets guard, skill script tests, personal data in skill text, contributor files, model-backed CI jobs, agent harness, agent consistency, agent environment and guardrails stated entries from `references/report-keyhole-detail.md` (relative to this skill dir), in that order>
<paste the `findings_markdown` string from run-context.json verbatim here - it renders as a `## Cross-Practice Findings (Keyhole Readiness)` block with the ten findings, their paths, their deterministic actions, and the attention list. Do not paraphrase, summarise, reorder, or drop any finding. The block's own `## Cross-Practice Findings (Keyhole Readiness)` line is the section's ONLY heading - never add a framing heading of your own (no `### Cross-Practice Findings (Keyhole Readiness)` above the block; the heading must appear exactly once in the report). If a sentence or two of framing helps a reader, place it directly under the block's heading line, before the first `###` finding; the findings and attention list themselves are copied, not rewritten.>
</details>
<details>
<summary>✅ Strengths & further opportunities</summary>
### Strengths
<3-5 bullet points. What this repo already does well. Be specific - name files, tools, and patterns. Acknowledge existing infrastructure.>
### Additional Opportunities
<If more than 3 gaps exist, list remaining as brief bullets. Keep to one line each. These are "after you've done the top 3" items. When `attention_low_signal` is true, the held-back `attention` rows go here (Mandatory attention rule), each path with its findings, rows of one score on one bullet.>
</details>
<details>
<summary>🧭 How to read this report (framing & method)</summary>
<write this fold's text from `references/report-how-to-read.md` (relative to this skill dir); its legacy-code anchors also apply when you write the findings and the Top 3 Actions>
</details>
<details>
<summary>🤖 Machine-readable data (for agents)</summary>
If you are an agent working in this repo, the `.assess/` directory is actionable feedback written for you - the first place to look when deciding where to point effort. It is a compounding, AI-readable record that an agent can ingest directly, without re-parsing this prose, and it grows with every run:
- `.assess/assess-report.md` - this report: the scorecard, the findings where the repository says one thing and does another, and the Top 3 Actions with exact commands and file paths.
- `.assess/actions.json` - the Top 3 Actions as data (schema 2): each entry's `rank`, `action`, `done_when`, `scope_fence`, lifecycle `status` and execution `mode`. Pick up the work from here without parsing this report.
- `.assess/run-context.json` - the full data bus (findings, attention, keyhole summary, prescribed actions, stats, diff).
- `.assess/complexity-stats.json` - complexity / estimated-token / LOC percentiles, the keyhole-budget rollup (`est_tokens.budget`), plus the ranked file lists (`top_hotspots`, `top_complex`, `top_large`) and `files`, every scored file's `{path, ccn}`.
- `.assess/hotspots/<file>.md` - per-file briefings, each with a **Suggested actions** section. Read a file's briefing before you change it.
- `.assess/index.md` - the catalog of every hotspot ever flagged (current and graduated), so you can see what has and hasn't been addressed.
- `.assess/log.md` - append-only run history, so a hotspot's trajectory (regressing / persistent / improving) is visible across runs.
</details>
---
<!-- chat-replace:report-footer -->
_Report generated by [`/ai-native-toolkit:assess`](https://github.com/bjcoombs/ai-native-toolkit). Install in any Claude Code session: `/plugin marketplace add https://github.com/bjcoombs/ai-native-toolkit` then `/plugin install ai-native-toolkit@ai-native-toolkit`._
Prioritize by leverage: agent instructions and CI first, then linters and coverage, then architecture tests and retro loops. Each action should be completable in a single session and reference specific files from the hotspot snapshot wherever possible - generic advice is the failure mode this report exists to prevent.
Blocker rule (hard, enforced by finalize). When blocker_actions is non-empty, rank 1 carries its first entry's condition: the blocker action itself or, when a prescribed action already moves that condition, that prescribed action with the condition on it (see Name the condition an action moves above). The remaining prescribed actions fill the ranks below rank 1 in their order; one that finds no rank is named in one line under the table, the one exception to the omission rule below. A not-measured gate never takes rank 1.
Mandatory attention rule (hard, not a suggestion). Every entry in prescribed_actions MUST appear in this Top 3 Actions table, in rank order, with its path and finding-derived action text. An entry's rank is its attention rank, which is also its table rank unless the Blocker rule above holds rank 1 for something else. The core builds it from the top rows of attention, up to three, and stops at the first score that three or more rows share: such a tie does not separate its rows, and a row ranked below them is not raised above them. When attention_low_signal is true, say so in one line under the table, list every attention row that has no prescribed_actions entry under Additional Opportunities, and fill no free slot from those rows by judgement (a gap_actions entry or the blocker action on one of their files still takes its slot). You MAY add context, attach a related gap to a prescribed path as a sub-item under the table (one concern per row, above), or fill the deterministic ? cells (layer, effort, command) with judgement - but you may NOT omit a prescribed path unless it has already been addressed in this repo, or the Blocker rule above pushes it past rank 3 (then name it in one line under the table). Fill the slots prescribed_actions leaves free from gap_actions next, in list order, using each entry's action and paths, and only then by judgement, prioritising by leverage as above. A gap entry keeps its slot even when one of its paths is already a prescribed row: it is a different action on that file (measure or link it, not fix it), so both rows stay. This rule exists because both lists are the deterministic core's "look here first" output; letting the LLM silently drop them would reintroduce exactly the non-determinism Part 1 removes.
The Issue column is filled in later by the assess-followup step if the user opts to create tracking issues. Leave as - initially - that step mutates this table in place via the assess-report.md artifact, so the column is the explicit contract between the two units.
Ground actions in the legacy-code precedent where it applies. For a complex, churning, untested hotspot, the right first action is almost never "rewrite it" and rarely a bare "add tests" - it is "add characterization tests for <file> to pin current behaviour, then refactor behind them" (Feathers). For a tangled hidden_coupling seam, frame it as a strangler-fig boundary to replace incrementally, not a big-bang rewrite. For candidate_dead_weight, the action is retire (confirm liveness, then delete) - one of the 7 Rs. Naming the precedent (characterization test, seam, strangler fig, the 7 Rs) gives the action authority a reading agent recognizes and steers it away from the throw-it-away-and-regenerate instinct that AI velocity makes tempting and usually wrong.
Frame actions positively. "Add cyclop rule (threshold 15) to .golangci.yml" beats "Stop letting complex code through CI". Positive directives are easier for the next contributor (human or LLM) to act on - they say what to do, not what to avoid. If you find yourself writing "Don't X" or "Never Y", convert to "Use X (because Z)" instead.
Use repo-relative paths only. Never write absolute paths from your environment (e.g. /Users/.../repo/src/foo.go) into the report. They leak the author's directory layout, break shell commands for other contributors, and look unprofessional in committed artifacts. Repo-relative paths (src/foo.go, .golangci.yml) work everywhere.
Before you settle the Top 3, read references/report-top3-rules.md (relative to this skill dir): naming a package version, good and generic action examples, read-side remediation by gap, the scope cross-check, counting before a count-based claim, and files approaching a cap.
Complete the full assessment in under 2 minutes. Scan, don't deep-read.
Every snapshot SVG is embedded as a clickable, relative link - [](./complexity-heatmap.svg) and the same for ./doc-graph.svg, ./step-ladder.svg, ./evidence-waffle.svg, ./tag-profile.svg, ./package-map.svg, ./doc-drift.svg and ./review-strip.svg. The viewBox lets GitHub scale them to the content column; the link lets a reader open the SVG on its own (the doc graph's hover tooltips only work when the raw SVG is opened directly - GitHub renders the inline copy as a static image). Keep the link relative, never a raw.githubusercontent.com URL (those are branch-specific and rot on rename). Omit a snapshot only if its script could not generate the SVG (record the reason in the snapshot-detail fold instead). Never inline an <svg> or a <script> in the report: GitHub strips both from markdown, and only the generated HTML pages inline the diagrams with the tooltip helper.
The plugin footer is important - it's how other engineers viewing the report in a PR discover the tool that produced it. Do not omit it, and keep it outside any fold so it stays visible.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
assess-report, scorecard, findings-writer, code-review-report
21 skills in this plugin
/6hatsSix Thinking Hats Analysis/ab-equivalenceCompare two versions of an LLM-directed document - an original (teacher) and a candidate (student) - across a transfer set and return a per-case behavioural-equivalence verdict plus an efficiency signal. A transform-agnostic library capability other skills compose to gate a transform on behavioural sameness. TRIGGER when asked to A/B test two versions of a prompt / instruction / skill, to check whether a rewritten or compressed document still behaves the same as the original, to validate behavioural equivalence between two document versions, to gate a transform on no-regression, or when a skill needs the run-the-runner-on-both-versions-and-judge-equivalence capability./assessnpx claudepluginhub bjcoombs/ai-native-toolkit --plugin ai-native-toolkitOther plugins' skills for the same job