{"name":"visualise-blast-area","title":"Visualise a blast area","description":"Render a change's blast map as diagrams — mermaid first, optionally one self-contained interactive HTML — with changed-vs-affected styling and blind spots stated on the diagram itself. Use when a blast-area map needs to be seen, shared, or dug into.","compatibility":"Consumes the blast-area output envelope and emits mermaid that renders wherever mermaid already does — a forge comment, a notebook. Graph tooling is used only when already installed, never installed by this skill; dependency-cruiser and watskeburt raise precision on JavaScript and TypeScript trees, and Graphviz is not assumed. The optional interactive output is one HTML file with no build step and no external requests. Nothing is changed or committed unless a run record is asked for.","allowedTools":"Read Write Grep Glob Bash","license":"MIT","kind":"general","useWhen":"a blast map that is easier to look at than to read","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill visualise-blast-area"],"asks":["Here is the blast map for the column drop. Draw it — mermaid, one diagram, all twelve surfaces\nincluding the empty ones — and put the blind spots on the diagram itself rather than in a note\nunderneath. I am pasting this into a pull request comment.","Render this map and make the changed set obvious against the merely affected set. I care most\nabout which of the affected things break silently, so make that visible at a glance rather than\nsomething I have to read the labels for.","This map has about three hundred nodes. Give me something I can actually explore — a single\nHTML file I can open from disk with the network off, where I can filter to the silent breaks\nand click an edge to see the evidence behind it.","We refactored the ingest path and the claim is no behaviour change. Map it before and after and\ncompare them — but give me the delta as a list of what was added, removed and rewired per\nsurface, not two pictures to squint at.","Draw this one and document the run (--document), because the diagram is going into the design\nreview and I want the provenance next to it: which tools were available, which surfaces were\nnever checked, and what the picture is not showing."],"commands":[],"documents":[{"path":"references/comparison-mode.md","slug":"comparison-mode","title":"Comparison mode","body":"# Comparison mode\n\n**Included, off by default, precondition-gated.** Most renders answer \"what does this change\nreach\". Comparison answers a narrower and rarer question — \"what changed about what it reaches\"\n— and it costs two valid envelopes to ask.\n\n## Preconditions\n\nAll of them, or comparison does not run:\n\n1. **Two envelopes of the same change shape.** Before and after the same proposed change, or\n   the map at two revisions of the same work. Two envelopes of two different changes have a\n   delta, and it means nothing.\n2. **The same `resolver` in both.** One map built with a compiler-resolved index and one built\n   name-based will differ mostly in resolution, not in the code. The delta would be a report on\n   the tooling wearing the costume of a report on the repository.\n3. **The same twelve surface ids.** They are fixed, so this holds unless one envelope is\n   malformed — check anyway, because a missing surface reads as \"everything here was removed\".\n4. **Both revisions recorded**, base and head, with dirty state. A delta against uncommitted\n   work describes a tree nobody else has.\n5. **It was asked for.** Do not turn it on because two envelopes happen to be available.\n\nIf a precondition fails, say which one and render the single map instead. A comparison drawn on\na broken precondition is worse than no comparison, because it produces specific, wrong numbers.\n\n## The delta is a classification, not a second graph\n\nTwo graphs side by side get compared by eye, and by eye is exactly where a rewired edge hides —\nsame two boxes, same arrow, different meaning. So the output is a table, per surface, in the\nfixed surface order:\n\n- **Added** — nodes and edges present in the second envelope and not the first.\n- **Removed** — present in the first and not the second.\n- **Rewired** — the same endpoints in both, with a different `kind`, a different `confidence`,\n  or different `evidence`. This is the class that only a classification catches.\n\nPlus two rows that are about the map rather than the code, and are kept separate so they cannot\nbe mistaken for findings:\n\n- **Coverage moved** — a surface whose `confidence` changed, in either direction. A surface\n  going from `not checked` to `measured` is not a change in the codebase; it is a change in what\n  was looked at, and conflating the two invents findings that do not exist.\n- **Blind spots opened or closed** — entries added to or removed from `blindspots`. A closed\n  blind spot means somebody ran the probe. An opened one means the second pass found a limit the\n  first pass had not noticed.\n\nShape:\n\n| Surface | Added | Removed | Rewired | Coverage moved | Blind spots |\n|---|---|---|---|---|---|\n| callers | 0 | 3 | 1 | — | — |\n| data-contracts | 1 | 0 | 0 | `inferred` → `measured` | −1 closed |\n| … all twelve, including the empty rows … | | | | | |\n\nEvery non-zero cell expands to the specific node or edge ids underneath the table. A count with\nno list is a number nobody can check.\n\n## Where it earns its keep\n\n### A refactor claiming \"no behaviour change\"\n\nThe claim is testable against the map. Render the blast area before and after and compare: if\nthe refactor genuinely changed no behaviour, the delta over `callers`, `data-contracts`,\n`jobs`, `ui` and `second-order` is empty, and the only movement is in `config-and-toolchains`\nor `tests-and-guards`.\n\n**A non-empty delta is the finding.** Not a rendering artefact, not noise to be explained away —\na claim of \"no behaviour change\" met by a removed reader on the `second-order` surface is the\nwhole reason the comparison was run. Report it as the headline, before the table.\n\n### A removal or a deprecation\n\nHere the question is precisely what stopped being reachable, and the **Removed** column is the\ndeliverable. Two things need saying alongside it:\n\n- **Removed is not the same as gone.** An edge that disappeared from the map may have gone out\n  of scope of the search rather than out of the codebase. Check the coverage column before\n  reading a removal as a deletion.\n- **A blind spot that opened during a removal** deserves its own line. Removals are where\n  data-resident references and external consumers bite, and those are the two surfaces most\n  likely to gain a blind spot on the second pass.\n\n## What comparison mode is not\n\n- Not a diff of two repositories. Both envelopes describe the same repository.\n- Not a diff of two agent runs. If the two envelopes differ because two different processes\n  produced them, the delta is a report on the processes.\n- Not a substitute for the single map. It ships **with** the current render, never instead of\n  it: a delta with no map to read it against is a list of ids.\n","bodyHtml":"<h2 id=\"comparison-mode\">Comparison mode</h2>\n<p><strong>Included, off by default, precondition-gated.</strong> Most renders answer &quot;what does this change\nreach&quot;. Comparison answers a narrower and rarer question — &quot;what changed about what it reaches&quot;\n— and it costs two valid envelopes to ask.</p>\n<h3 id=\"preconditions\">Preconditions</h3>\n<p>All of them, or comparison does not run:</p>\n<ol>\n<li><strong>Two envelopes of the same change shape.</strong> Before and after the same proposed change, or\nthe map at two revisions of the same work. Two envelopes of two different changes have a\ndelta, and it means nothing.</li>\n<li><strong>The same <code>resolver</code> in both.</strong> One map built with a compiler-resolved index and one built\nname-based will differ mostly in resolution, not in the code. The delta would be a report on\nthe tooling wearing the costume of a report on the repository.</li>\n<li><strong>The same twelve surface ids.</strong> They are fixed, so this holds unless one envelope is\nmalformed — check anyway, because a missing surface reads as &quot;everything here was removed&quot;.</li>\n<li><strong>Both revisions recorded</strong>, base and head, with dirty state. A delta against uncommitted\nwork describes a tree nobody else has.</li>\n<li><strong>It was asked for.</strong> Do not turn it on because two envelopes happen to be available.</li>\n</ol>\n<p>If a precondition fails, say which one and render the single map instead. A comparison drawn on\na broken precondition is worse than no comparison, because it produces specific, wrong numbers.</p>\n<h3 id=\"the-delta-is-a-classification-not-a-second-graph\">The delta is a classification, not a second graph</h3>\n<p>Two graphs side by side get compared by eye, and by eye is exactly where a rewired edge hides —\nsame two boxes, same arrow, different meaning. So the output is a table, per surface, in the\nfixed surface order:</p>\n<ul>\n<li><strong>Added</strong> — nodes and edges present in the second envelope and not the first.</li>\n<li><strong>Removed</strong> — present in the first and not the second.</li>\n<li><strong>Rewired</strong> — the same endpoints in both, with a different <code>kind</code>, a different <code>confidence</code>,\nor different <code>evidence</code>. This is the class that only a classification catches.</li>\n</ul>\n<p>Plus two rows that are about the map rather than the code, and are kept separate so they cannot\nbe mistaken for findings:</p>\n<ul>\n<li><strong>Coverage moved</strong> — a surface whose <code>confidence</code> changed, in either direction. A surface\ngoing from <code>not checked</code> to <code>measured</code> is not a change in the codebase; it is a change in what\nwas looked at, and conflating the two invents findings that do not exist.</li>\n<li><strong>Blind spots opened or closed</strong> — entries added to or removed from <code>blindspots</code>. A closed\nblind spot means somebody ran the probe. An opened one means the second pass found a limit the\nfirst pass had not noticed.</li>\n</ul>\n<p>Shape:</p>\n<table>\n<thead>\n<tr>\n<th>Surface</th>\n<th>Added</th>\n<th>Removed</th>\n<th>Rewired</th>\n<th>Coverage moved</th>\n<th>Blind spots</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>callers</td>\n<td>0</td>\n<td>3</td>\n<td>1</td>\n<td>—</td>\n<td>—</td>\n</tr>\n<tr>\n<td>data-contracts</td>\n<td>1</td>\n<td>0</td>\n<td>0</td>\n<td><code>inferred</code> → <code>measured</code></td>\n<td>−1 closed</td>\n</tr>\n<tr>\n<td>… all twelve, including the empty rows …</td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody></table>\n<p>Every non-zero cell expands to the specific node or edge ids underneath the table. A count with\nno list is a number nobody can check.</p>\n<h3 id=\"where-it-earns-its-keep\">Where it earns its keep</h3>\n<h4 id=\"a-refactor-claiming-no-behaviour-change\">A refactor claiming &quot;no behaviour change&quot;</h4>\n<p>The claim is testable against the map. Render the blast area before and after and compare: if\nthe refactor genuinely changed no behaviour, the delta over <code>callers</code>, <code>data-contracts</code>,\n<code>jobs</code>, <code>ui</code> and <code>second-order</code> is empty, and the only movement is in <code>config-and-toolchains</code>\nor <code>tests-and-guards</code>.</p>\n<p><strong>A non-empty delta is the finding.</strong> Not a rendering artefact, not noise to be explained away —\na claim of &quot;no behaviour change&quot; met by a removed reader on the <code>second-order</code> surface is the\nwhole reason the comparison was run. Report it as the headline, before the table.</p>\n<h4 id=\"a-removal-or-a-deprecation\">A removal or a deprecation</h4>\n<p>Here the question is precisely what stopped being reachable, and the <strong>Removed</strong> column is the\ndeliverable. Two things need saying alongside it:</p>\n<ul>\n<li><strong>Removed is not the same as gone.</strong> An edge that disappeared from the map may have gone out\nof scope of the search rather than out of the codebase. Check the coverage column before\nreading a removal as a deletion.</li>\n<li><strong>A blind spot that opened during a removal</strong> deserves its own line. Removals are where\ndata-resident references and external consumers bite, and those are the two surfaces most\nlikely to gain a blind spot on the second pass.</li>\n</ul>\n<h3 id=\"what-comparison-mode-is-not\">What comparison mode is not</h3>\n<ul>\n<li>Not a diff of two repositories. Both envelopes describe the same repository.</li>\n<li>Not a diff of two agent runs. If the two envelopes differ because two different processes\nproduced them, the delta is a report on the processes.</li>\n<li>Not a substitute for the single map. It ships <strong>with</strong> the current render, never instead of\nit: a delta with no map to read it against is a list of ids.</li>\n</ul>\n","words":817},{"path":"references/documenting-the-run.md","slug":"documenting-the-run","title":"The run record — `--document`","body":"# The run record — `--document`\n\nA run that reached a good answer and left nothing behind cannot be checked, reused, or\nresumed. The next person — often the same person a week later — repeats the searches,\nrediscovers the same dead ends, and has no way to tell which claims were measured and\nwhich were guessed. A run record fixes exactly that: it says what was searched, who\nsearched it, what each found, how the disagreements were settled, and what was decided.\n\nIt is a byproduct, never the product. Writing one must not change the answer.\n\nThis file is the whole convention. It is carried, byte-identical, by every skill in this\nfamily, and the copies are compared by hash in CI — so edit the convention once and copy\nit, never edit a single skill's copy. Never link across skills to another copy: a local\nlink that escapes its skill directory fails the catalog verifier.\n\n## When a record gets written\n\nThree branches, keyed on **attendance**. Attendance is *declared* — conservatively — and\nnever probed. Do not ask the harness whether someone is watching; decide from what you\nalready know about how the run started.\n\n| Branch | Condition | Where it goes | Form |\n|---|---|---|---|\n| Asked for | `--document`, `--document=<path>`, or an unambiguous phrase | host repository | full |\n| Unattended | headless, cron, CI, or dispatched by a parent agent | harness scratch directory | full (light band: short) |\n| Attended, no token | a human is in the loop and did not ask | nowhere | none, plus at most one offer |\n\n1. **Asked for.** The invocation carries `--document` or `--document=<path>`, or an\n   unambiguous natural phrase — \"document the run\", \"write down how you got there\".\n   Write the **full** record at the host-repository path below. A vague \"keep notes\"\n   is not this branch; treat it as attended and offer.\n\n2. **Unattended.** The operative test is one sentence: *if you cannot confirm a human\n   will see and answer a question in THIS run, treat it as unattended.* An unattended\n   run **always** writes a record, because there is nobody to ask afterwards what it\n   did — and it writes to the **harness scratch directory, never the host repository**.\n   An unattended run does not make unsolicited repository writes; a cron job that leaves\n   a file in someone's tree has changed their working state without being asked. Name the\n   record's path in the final answer, or the record is unfindable and might as well not\n   exist. Normal and deep bands write the full form; the light band writes the short form\n   below.\n\n3. **Attended, no token.** Silent by default. Make **one** offer, and only when the run\n   ends with an unresolved contradiction or an open blocking question — the two states\n   where the value of a written record exceeds the cost of the interruption. One offer,\n   ever. A declined offer ends the matter for the run; do not re-offer with better\n   framing.\n\n## Where it goes\n\nOne literal convention:\n\n```text\ndocs/<skill-name>/<UTC-date>-<slug>.md\n```\n\n- `<skill-name>` — the invoking skill's own name, so records from different skills do\n  not interleave in one directory.\n- `<UTC-date>` — `YYYY-MM-DD`, in UTC. Local dates put two records of the same run on\n  different days when the machines sit in different zones.\n- `<slug>` — a short kebab-case handle for the question or the change.\n\nThere is no probe cascade. The path is not negotiated with the repository's existing\ndocumentation layout, because a convention that guesses produces a different answer on\nevery repo and nobody can predict where the file will land. Determinism wins.\n\n- **Overridable only by `--document=<path>`.** No other input moves it.\n- **Create the directory if absent.** A missing directory is not a reason to skip the\n  record.\n- **Never inside a skill directory.** Records are host artifacts; one written under a\n  skill directory ships to everyone who installs the pack.\n- **Never overwrite.** A re-run against an existing path **appends** a new section,\n  headed with its UTC timestamp and round number. Earlier rounds stay exactly as written.\n- **Assert its existence in the skill's Verification list**, with the path stated.\n\n## What the record contains\n\nA header block, then **five headings, in this order, with these names**:\n\n```text\n## What was searched\n## Who searched it\n## What each found\n## How it reconciled\n## What was decided and why\n```\n\nThe names are literal and identical across every skill that carries this file. In a skill\nwhose work is mapping, rendering, or landing rather than searching, \"searched\" covers\nwhatever that skill probed — map queries, gate runs, seeded checks. Do not rename the\nheadings to fit the local vocabulary; the point of fixed names is that a reader who has\nseen one record can read all of them.\n\n### The header block\n\nAbove the first heading, pin what the record is about and what it was true of:\n\n- Repository identity — remote or name, **never** a machine-absolute path.\n- HEAD sha, and the **dirty state**: clean, or the count of modified files. A record\n  taken against an uncommitted tree describes a state nobody else can reconstruct, and\n  it has to say so.\n- UTC timestamp.\n- The invocation: skill, band, and the flags as they were given.\n- The question, or the proposed change, in one sentence.\n\n### What was searched\n\n- Every query **verbatim**, with the tool that ran it and its result count. A query\n  paraphrased into prose cannot be re-run.\n- The surface each query covers, and the surfaces deliberately left out.\n- Artifacts *read* as well as searched — generated registries, manifests, migrations,\n  dashboards, logs. Reading a registry that already answers the question is a finding,\n  not a shortcut worth hiding.\n- Which round each query belongs to, when there was more than one.\n\n### Who searched it\n\n- One line per child: **role, tier band, decomposition axis, the input it was given, and\n  what was withheld from it.** Roles and tiers, never model names — routing identifiers\n  belong to `model-routing`, and a record naming a model is stale the day it changes.\n- **Independence.** State which children could see one another's output. Agreement\n  between two children that read the same artifact is one reading, counted twice.\n- When there were no children — no subagents available, or a light band — say so, and\n  say the passes ran sequentially instead. A record that silently omits this reads as\n  if a fan-out happened.\n\n### What each found\n\n- **Claims**, each with its evidence as `path:line`, its `basis` — `measured` or\n  `inferred` — and its confidence expressed as basis × coverage. Never a percentage;\n  a number nobody computed is a decoration.\n- **`not_found[]`, each with its control and whether the control fired.** A zero-hit\n  search is admissible as \"absent\" **only** with a fired control — a deliberately\n  positive variant of the same query, run the same way, that returns hits. Without one,\n  record `inconclusive`, not `absent`. This is not pedantry: in one measured case a\n  `git grep -E '\\b…'` returned nothing and was read as proof of absence, when ERE simply\n  ignores `\\b` and the search had never matched anything at all.\n- **Discarded candidates** — everything looked at and rejected, with the reason for the\n  rejection and the artifact that produced it. This is the bullet most often skipped and\n  the one that earns the most: in the suite this family is scored against, four of the\n  eight scoring keys award credit for a recorded discard, and none award anything for a\n  candidate dropped in silence. A discard is what stops the next reader spending an hour\n  on a path already walked.\n- **Blockers** — anything a child could not do, with the reason.\n\n### How it reconciled\n\n- **The contradiction table**, with these columns, in this order:\n\n  ```text\n  claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual\n  ```\n\n  Verdicts come from a closed set: `confirmed`, `refuted`, `unresolved (needs X)`,\n  `inconclusive`. \"What each evidence CAN prove\" is the column that does the work — a\n  document proves intent, a log proves behaviour, and a table that skips this column\n  settles disputes by tone.\n- **The evidence class used to break each tie**, and the note that class breaks ties\n  while *reach* decides admissibility: an observation of production outranks a local\n  measurement, which outranks code reading, which outranks docs, comments, and titles,\n  which outrank recollection — but only over the surface the evidence actually touches.\n- **Which candidate hits were re-read** rather than taken from a child's summary. Summaries\n  launder substring false positives into confirmed claims; the reconciler opens the file.\n- **Rounds that changed no verdict.** That is the stop rule firing, and it belongs in the\n  record as the reason the run ended.\n\n### What was decided and why\n\n- **The decision**, one sentence, and what it authorises — including \"authorises nothing\n  destructive\" when that is the truth.\n- **Adversarial concessions**, quoted, each naming the artifact that produced it. A\n  conceded claim is recorded *conceded*, not *validated*; the difference matters to whoever\n  re-opens this.\n- **Marked assumptions.** Every claim depending on an unanswered question is marked\n  assumption-dependent, with the question, the default taken, and the direction the answer\n  would move the conclusion.\n- **Open questions**, with the blocking one labelled as blocking.\n- **The evidence index**: every load-bearing citation as `path:line`, the sha it was read\n  at, and the result counts of the queries behind it. This is what makes the record\n  re-checkable a month later against a moved tree.\n- **A closing paragraph titled \"what this run could not see\"** — surfaces not covered,\n  tools unavailable, questions only a production observation could settle. It closes the\n  record; there is no sixth heading. It is a boundary, not a hedge — and the paragraph a\n  reader deciding how far to trust the rest will go looking for.\n\n## The short form\n\nUnattended runs at the light band write four parts and stop:\n\n1. Header block and invocation.\n2. The complexity assessment — each signal's score, the observable that scored it, and\n   the resulting band.\n3. The decision, with its marked assumptions.\n4. What this run could not see.\n\nNo contradiction table and no evidence index: a light-band run that produced either was\nmis-banded, and the fix is the band, not the record.\n\n## Prohibitions\n\n- **No secret values.** Variable and file names only. Records get committed, and a record\n  is read by people who were not in the room.\n- **No machine-absolute paths.** Repository-relative only. An absolute path under a home\n  directory leaks a username and stops resolving on any other machine.\n- **No chain-of-thought, child transcripts, or raw logs.** The record carries claims,\n  evidence, verdicts and decisions. A transcript is volume, and it re-presents reasoning\n  as if it were a finding.\n- **Minimal personal-data fragments.** Names, addresses, ticket text, customer strings —\n  only where the finding genuinely cannot be stated without them, and preferably as a role.\n- **No unmarked inference.** Every claim carries its basis. Inference written flat, in the\n  same voice as measurement, is the failure this whole family exists to prevent.\n- **No unearned benefit claims.** \"Faster\", \"safer\", \"fixes it\" require something that\n  measured it. Otherwise state what the code does and stop.\n- **Never edit an earlier record.** Append a new dated round section. Records are a\n  history; a rewritten one is a claim about the past with no evidence behind it.\n- **`--document` must not change the answer.** If knowing a record is coming changes what\n  gets searched, what gets conceded, or how confident the conclusion sounds, the record has\n  become the product. Decide first, write second.\n\n## A worked example\n\nA normal-band investigation in a large monorepo, anonymised. Short deliberately — the\nshape matters more than the length.\n\n```markdown\n# Which registry is authoritative for job names?\n\n- repo: `acme/platform` @ `3f9c1ab` — clean\n- run: investigate-codebase, normal band (scope 2, contradiction 2, size 1, ambiguity 0,\n  cost-of-being-wrong 1 = 6), 2026-08-26T09:14Z\n- question: two registries list job names; which one does the runtime read?\n\n## What was searched\n- `git grep -n \"registerJob(\" -- src worker` → 41 hits (round 1)\n- `git grep -nE \"jobs\\.(json|ts)\" -- .` → 6 hits (round 1)\n- read: the generated job registry page, and `worker/boot.ts`\n- not searched: the deploy pipeline's own manifests — not readable from this checkout\n\n## Who searched it\n- child A — searcher, mid tier, by-surface (`src/`), given the question only\n- child B — searcher, mid tier, by-runtime-evidence, forbidden from reading source,\n  given boot output only\n- reconciler — mid tier, re-read every cited hit; A and B could not see each other\n\n## What each found\n- A: `worker/boot.ts:22` imports `jobs.generated.ts` — basis measured\n- B: boot output names 41 jobs, against the 46 listed in the generated page — basis measured\n- not_found: no runtime read of the generated page. Control: `git grep -n \"atlas\" -- worker`\n  → 3 hits, so the pattern matches in that path and the absence is real. Control fired.\n- discarded: `tools/sync-jobs.ts` — writes the page, never read at runtime; rejected\n  after reading it, not after reading its name\n- discarded: 5 of the 41 `registerJob(` hits are test fixtures, not registrations\n\n## How it reconciled\n| claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual |\n|---|---|---|---|---|---|---|---|\n| the generated page is authoritative | its own header | boot output | a doc asserting intent | 41 booted vs 46 listed | doc proves intent; output proves behaviour | refuted | the 5 extra rows are unexplained |\n\nRuntime observation outranks the doc's own claim. The reconciler re-read all 41\n`registerJob(` sites rather than trusting a counted summary; that is where the 5 fixtures\nsurfaced.\n\n## What was decided and why\n- Decision: `jobs.generated.ts` is authoritative at runtime; the generated page has drifted\n  by five entries. Authorises nothing destructive.\n- Concession: the refuter conceded after reading `worker/boot.ts:22` — recorded conceded,\n  not independently validated.\n- Assumption (marked): the deployed image boots the same entrypoint as local. Unanswered;\n  default taken is yes. If false, the drift count is wrong in an unknown direction.\n- Open question (non-blocking): what produced the five extra rows?\n- Evidence index: `worker/boot.ts:22` @ `3f9c1ab`; `jobs.generated.ts` @ `3f9c1ab`;\n  `git grep -n \"registerJob(\" -- src worker` → 41.\n\nWhat this run could not see: the deploy pipeline manifests, any environment whose\nentrypoint differs from local, and job registration that happens per-request rather than\nat boot.\n```\n\n## In-body core (copy verbatim)\n\nEvery skill that supports `--document` embeds the block below in its own body, so the\nconvention survives a reader who never opens this file. Copy it verbatim; the only\npermitted edit is substituting the skill's own name for `<skill-name>`.\n\n```markdown\n**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as \"document the run\"), at `docs/<skill-name>/<UTC-date>-<slug>.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n```\n\nFollow it, in the same section, with the sentence below, word for word, linking the words\n`the run-record convention` to `references/documenting-the-run.md`, a path from the skill's\nroot, where `SKILL.md` sits:\n\n```markdown\nRecords are written per the run-record convention.\n```\n\nThe path is given here as code, not as a link: a link resolves from the file that holds it,\nfenced or not, and from this file's folder that path names nothing.\n","bodyHtml":"<h2 id=\"the-run-record---document\">The run record — <code>--document</code></h2>\n<p>A run that reached a good answer and left nothing behind cannot be checked, reused, or\nresumed. The next person — often the same person a week later — repeats the searches,\nrediscovers the same dead ends, and has no way to tell which claims were measured and\nwhich were guessed. A run record fixes exactly that: it says what was searched, who\nsearched it, what each found, how the disagreements were settled, and what was decided.</p>\n<p>It is a byproduct, never the product. Writing one must not change the answer.</p>\n<p>This file is the whole convention. It is carried, byte-identical, by every skill in this\nfamily, and the copies are compared by hash in CI — so edit the convention once and copy\nit, never edit a single skill&#39;s copy. Never link across skills to another copy: a local\nlink that escapes its skill directory fails the catalog verifier.</p>\n<h3 id=\"when-a-record-gets-written\">When a record gets written</h3>\n<p>Three branches, keyed on <strong>attendance</strong>. Attendance is <em>declared</em> — conservatively — and\nnever probed. Do not ask the harness whether someone is watching; decide from what you\nalready know about how the run started.</p>\n<table>\n<thead>\n<tr>\n<th>Branch</th>\n<th>Condition</th>\n<th>Where it goes</th>\n<th>Form</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Asked for</td>\n<td><code>--document</code>, <code>--document=&lt;path&gt;</code>, or an unambiguous phrase</td>\n<td>host repository</td>\n<td>full</td>\n</tr>\n<tr>\n<td>Unattended</td>\n<td>headless, cron, CI, or dispatched by a parent agent</td>\n<td>harness scratch directory</td>\n<td>full (light band: short)</td>\n</tr>\n<tr>\n<td>Attended, no token</td>\n<td>a human is in the loop and did not ask</td>\n<td>nowhere</td>\n<td>none, plus at most one offer</td>\n</tr>\n</tbody></table>\n<ol>\n<li><p><strong>Asked for.</strong> The invocation carries <code>--document</code> or <code>--document=&lt;path&gt;</code>, or an\nunambiguous natural phrase — &quot;document the run&quot;, &quot;write down how you got there&quot;.\nWrite the <strong>full</strong> record at the host-repository path below. A vague &quot;keep notes&quot;\nis not this branch; treat it as attended and offer.</p>\n</li>\n<li><p><strong>Unattended.</strong> The operative test is one sentence: <em>if you cannot confirm a human\nwill see and answer a question in THIS run, treat it as unattended.</em> An unattended\nrun <strong>always</strong> writes a record, because there is nobody to ask afterwards what it\ndid — and it writes to the <strong>harness scratch directory, never the host repository</strong>.\nAn unattended run does not make unsolicited repository writes; a cron job that leaves\na file in someone&#39;s tree has changed their working state without being asked. Name the\nrecord&#39;s path in the final answer, or the record is unfindable and might as well not\nexist. Normal and deep bands write the full form; the light band writes the short form\nbelow.</p>\n</li>\n<li><p><strong>Attended, no token.</strong> Silent by default. Make <strong>one</strong> offer, and only when the run\nends with an unresolved contradiction or an open blocking question — the two states\nwhere the value of a written record exceeds the cost of the interruption. One offer,\never. A declined offer ends the matter for the run; do not re-offer with better\nframing.</p>\n</li>\n</ol>\n<h3 id=\"where-it-goes\">Where it goes</h3>\n<p>One literal convention:</p>\n<pre><code class=\"language-text\">docs/&lt;skill-name&gt;/&lt;UTC-date&gt;-&lt;slug&gt;.md\n</code></pre>\n<ul>\n<li><code>&lt;skill-name&gt;</code> — the invoking skill&#39;s own name, so records from different skills do\nnot interleave in one directory.</li>\n<li><code>&lt;UTC-date&gt;</code> — <code>YYYY-MM-DD</code>, in UTC. Local dates put two records of the same run on\ndifferent days when the machines sit in different zones.</li>\n<li><code>&lt;slug&gt;</code> — a short kebab-case handle for the question or the change.</li>\n</ul>\n<p>There is no probe cascade. The path is not negotiated with the repository&#39;s existing\ndocumentation layout, because a convention that guesses produces a different answer on\nevery repo and nobody can predict where the file will land. Determinism wins.</p>\n<ul>\n<li><strong>Overridable only by <code>--document=&lt;path&gt;</code>.</strong> No other input moves it.</li>\n<li><strong>Create the directory if absent.</strong> A missing directory is not a reason to skip the\nrecord.</li>\n<li><strong>Never inside a skill directory.</strong> Records are host artifacts; one written under a\nskill directory ships to everyone who installs the pack.</li>\n<li><strong>Never overwrite.</strong> A re-run against an existing path <strong>appends</strong> a new section,\nheaded with its UTC timestamp and round number. Earlier rounds stay exactly as written.</li>\n<li><strong>Assert its existence in the skill&#39;s Verification list</strong>, with the path stated.</li>\n</ul>\n<h3 id=\"what-the-record-contains\">What the record contains</h3>\n<p>A header block, then <strong>five headings, in this order, with these names</strong>:</p>\n<pre><code class=\"language-text\">## What was searched\n## Who searched it\n## What each found\n## How it reconciled\n## What was decided and why\n</code></pre>\n<p>The names are literal and identical across every skill that carries this file. In a skill\nwhose work is mapping, rendering, or landing rather than searching, &quot;searched&quot; covers\nwhatever that skill probed — map queries, gate runs, seeded checks. Do not rename the\nheadings to fit the local vocabulary; the point of fixed names is that a reader who has\nseen one record can read all of them.</p>\n<h4 id=\"the-header-block\">The header block</h4>\n<p>Above the first heading, pin what the record is about and what it was true of:</p>\n<ul>\n<li>Repository identity — remote or name, <strong>never</strong> a machine-absolute path.</li>\n<li>HEAD sha, and the <strong>dirty state</strong>: clean, or the count of modified files. A record\ntaken against an uncommitted tree describes a state nobody else can reconstruct, and\nit has to say so.</li>\n<li>UTC timestamp.</li>\n<li>The invocation: skill, band, and the flags as they were given.</li>\n<li>The question, or the proposed change, in one sentence.</li>\n</ul>\n<h4 id=\"what-was-searched\">What was searched</h4>\n<ul>\n<li>Every query <strong>verbatim</strong>, with the tool that ran it and its result count. A query\nparaphrased into prose cannot be re-run.</li>\n<li>The surface each query covers, and the surfaces deliberately left out.</li>\n<li>Artifacts <em>read</em> as well as searched — generated registries, manifests, migrations,\ndashboards, logs. Reading a registry that already answers the question is a finding,\nnot a shortcut worth hiding.</li>\n<li>Which round each query belongs to, when there was more than one.</li>\n</ul>\n<h4 id=\"who-searched-it\">Who searched it</h4>\n<ul>\n<li>One line per child: <strong>role, tier band, decomposition axis, the input it was given, and\nwhat was withheld from it.</strong> Roles and tiers, never model names — routing identifiers\nbelong to <code>model-routing</code>, and a record naming a model is stale the day it changes.</li>\n<li><strong>Independence.</strong> State which children could see one another&#39;s output. Agreement\nbetween two children that read the same artifact is one reading, counted twice.</li>\n<li>When there were no children — no subagents available, or a light band — say so, and\nsay the passes ran sequentially instead. A record that silently omits this reads as\nif a fan-out happened.</li>\n</ul>\n<h4 id=\"what-each-found\">What each found</h4>\n<ul>\n<li><strong>Claims</strong>, each with its evidence as <code>path:line</code>, its <code>basis</code> — <code>measured</code> or\n<code>inferred</code> — and its confidence expressed as basis × coverage. Never a percentage;\na number nobody computed is a decoration.</li>\n<li><strong><code>not_found[]</code>, each with its control and whether the control fired.</strong> A zero-hit\nsearch is admissible as &quot;absent&quot; <strong>only</strong> with a fired control — a deliberately\npositive variant of the same query, run the same way, that returns hits. Without one,\nrecord <code>inconclusive</code>, not <code>absent</code>. This is not pedantry: in one measured case a\n<code>git grep -E &#39;\\b…&#39;</code> returned nothing and was read as proof of absence, when ERE simply\nignores <code>\\b</code> and the search had never matched anything at all.</li>\n<li><strong>Discarded candidates</strong> — everything looked at and rejected, with the reason for the\nrejection and the artifact that produced it. This is the bullet most often skipped and\nthe one that earns the most: in the suite this family is scored against, four of the\neight scoring keys award credit for a recorded discard, and none award anything for a\ncandidate dropped in silence. A discard is what stops the next reader spending an hour\non a path already walked.</li>\n<li><strong>Blockers</strong> — anything a child could not do, with the reason.</li>\n</ul>\n<h4 id=\"how-it-reconciled\">How it reconciled</h4>\n<ul>\n<li><p><strong>The contradiction table</strong>, with these columns, in this order:</p>\n<pre><code class=\"language-text\">claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual\n</code></pre>\n<p>Verdicts come from a closed set: <code>confirmed</code>, <code>refuted</code>, <code>unresolved (needs X)</code>,\n<code>inconclusive</code>. &quot;What each evidence CAN prove&quot; is the column that does the work — a\ndocument proves intent, a log proves behaviour, and a table that skips this column\nsettles disputes by tone.</p>\n</li>\n<li><p><strong>The evidence class used to break each tie</strong>, and the note that class breaks ties\nwhile <em>reach</em> decides admissibility: an observation of production outranks a local\nmeasurement, which outranks code reading, which outranks docs, comments, and titles,\nwhich outrank recollection — but only over the surface the evidence actually touches.</p>\n</li>\n<li><p><strong>Which candidate hits were re-read</strong> rather than taken from a child&#39;s summary. Summaries\nlaunder substring false positives into confirmed claims; the reconciler opens the file.</p>\n</li>\n<li><p><strong>Rounds that changed no verdict.</strong> That is the stop rule firing, and it belongs in the\nrecord as the reason the run ended.</p>\n</li>\n</ul>\n<h4 id=\"what-was-decided-and-why\">What was decided and why</h4>\n<ul>\n<li><strong>The decision</strong>, one sentence, and what it authorises — including &quot;authorises nothing\ndestructive&quot; when that is the truth.</li>\n<li><strong>Adversarial concessions</strong>, quoted, each naming the artifact that produced it. A\nconceded claim is recorded <em>conceded</em>, not <em>validated</em>; the difference matters to whoever\nre-opens this.</li>\n<li><strong>Marked assumptions.</strong> Every claim depending on an unanswered question is marked\nassumption-dependent, with the question, the default taken, and the direction the answer\nwould move the conclusion.</li>\n<li><strong>Open questions</strong>, with the blocking one labelled as blocking.</li>\n<li><strong>The evidence index</strong>: every load-bearing citation as <code>path:line</code>, the sha it was read\nat, and the result counts of the queries behind it. This is what makes the record\nre-checkable a month later against a moved tree.</li>\n<li><strong>A closing paragraph titled &quot;what this run could not see&quot;</strong> — surfaces not covered,\ntools unavailable, questions only a production observation could settle. It closes the\nrecord; there is no sixth heading. It is a boundary, not a hedge — and the paragraph a\nreader deciding how far to trust the rest will go looking for.</li>\n</ul>\n<h3 id=\"the-short-form\">The short form</h3>\n<p>Unattended runs at the light band write four parts and stop:</p>\n<ol>\n<li>Header block and invocation.</li>\n<li>The complexity assessment — each signal&#39;s score, the observable that scored it, and\nthe resulting band.</li>\n<li>The decision, with its marked assumptions.</li>\n<li>What this run could not see.</li>\n</ol>\n<p>No contradiction table and no evidence index: a light-band run that produced either was\nmis-banded, and the fix is the band, not the record.</p>\n<h3 id=\"prohibitions\">Prohibitions</h3>\n<ul>\n<li><strong>No secret values.</strong> Variable and file names only. Records get committed, and a record\nis read by people who were not in the room.</li>\n<li><strong>No machine-absolute paths.</strong> Repository-relative only. An absolute path under a home\ndirectory leaks a username and stops resolving on any other machine.</li>\n<li><strong>No chain-of-thought, child transcripts, or raw logs.</strong> The record carries claims,\nevidence, verdicts and decisions. A transcript is volume, and it re-presents reasoning\nas if it were a finding.</li>\n<li><strong>Minimal personal-data fragments.</strong> Names, addresses, ticket text, customer strings —\nonly where the finding genuinely cannot be stated without them, and preferably as a role.</li>\n<li><strong>No unmarked inference.</strong> Every claim carries its basis. Inference written flat, in the\nsame voice as measurement, is the failure this whole family exists to prevent.</li>\n<li><strong>No unearned benefit claims.</strong> &quot;Faster&quot;, &quot;safer&quot;, &quot;fixes it&quot; require something that\nmeasured it. Otherwise state what the code does and stop.</li>\n<li><strong>Never edit an earlier record.</strong> Append a new dated round section. Records are a\nhistory; a rewritten one is a claim about the past with no evidence behind it.</li>\n<li><strong><code>--document</code> must not change the answer.</strong> If knowing a record is coming changes what\ngets searched, what gets conceded, or how confident the conclusion sounds, the record has\nbecome the product. Decide first, write second.</li>\n</ul>\n<h3 id=\"a-worked-example\">A worked example</h3>\n<p>A normal-band investigation in a large monorepo, anonymised. Short deliberately — the\nshape matters more than the length.</p>\n<pre><code class=\"language-markdown\"># Which registry is authoritative for job names?\n\n- repo: `acme/platform` @ `3f9c1ab` — clean\n- run: investigate-codebase, normal band (scope 2, contradiction 2, size 1, ambiguity 0,\n  cost-of-being-wrong 1 = 6), 2026-08-26T09:14Z\n- question: two registries list job names; which one does the runtime read?\n\n## What was searched\n- `git grep -n &quot;registerJob(&quot; -- src worker` → 41 hits (round 1)\n- `git grep -nE &quot;jobs\\.(json|ts)&quot; -- .` → 6 hits (round 1)\n- read: the generated job registry page, and `worker/boot.ts`\n- not searched: the deploy pipeline&#39;s own manifests — not readable from this checkout\n\n## Who searched it\n- child A — searcher, mid tier, by-surface (`src/`), given the question only\n- child B — searcher, mid tier, by-runtime-evidence, forbidden from reading source,\n  given boot output only\n- reconciler — mid tier, re-read every cited hit; A and B could not see each other\n\n## What each found\n- A: `worker/boot.ts:22` imports `jobs.generated.ts` — basis measured\n- B: boot output names 41 jobs, against the 46 listed in the generated page — basis measured\n- not_found: no runtime read of the generated page. Control: `git grep -n &quot;atlas&quot; -- worker`\n  → 3 hits, so the pattern matches in that path and the absence is real. Control fired.\n- discarded: `tools/sync-jobs.ts` — writes the page, never read at runtime; rejected\n  after reading it, not after reading its name\n- discarded: 5 of the 41 `registerJob(` hits are test fixtures, not registrations\n\n## How it reconciled\n| claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual |\n|---|---|---|---|---|---|---|---|\n| the generated page is authoritative | its own header | boot output | a doc asserting intent | 41 booted vs 46 listed | doc proves intent; output proves behaviour | refuted | the 5 extra rows are unexplained |\n\nRuntime observation outranks the doc&#39;s own claim. The reconciler re-read all 41\n`registerJob(` sites rather than trusting a counted summary; that is where the 5 fixtures\nsurfaced.\n\n## What was decided and why\n- Decision: `jobs.generated.ts` is authoritative at runtime; the generated page has drifted\n  by five entries. Authorises nothing destructive.\n- Concession: the refuter conceded after reading `worker/boot.ts:22` — recorded conceded,\n  not independently validated.\n- Assumption (marked): the deployed image boots the same entrypoint as local. Unanswered;\n  default taken is yes. If false, the drift count is wrong in an unknown direction.\n- Open question (non-blocking): what produced the five extra rows?\n- Evidence index: `worker/boot.ts:22` @ `3f9c1ab`; `jobs.generated.ts` @ `3f9c1ab`;\n  `git grep -n &quot;registerJob(&quot; -- src worker` → 41.\n\nWhat this run could not see: the deploy pipeline manifests, any environment whose\nentrypoint differs from local, and job registration that happens per-request rather than\nat boot.\n</code></pre>\n<h3 id=\"in-body-core-copy-verbatim\">In-body core (copy verbatim)</h3>\n<p>Every skill that supports <code>--document</code> embeds the block below in its own body, so the\nconvention survives a reader who never opens this file. Copy it verbatim; the only\npermitted edit is substituting the skill&#39;s own name for <code>&lt;skill-name&gt;</code>.</p>\n<pre><code class=\"language-markdown\">**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as &quot;document the run&quot;), at `docs/&lt;skill-name&gt;/&lt;UTC-date&gt;-&lt;slug&gt;.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n</code></pre>\n<p>Follow it, in the same section, with the sentence below, word for word, linking the words\n<code>the run-record convention</code> to <code>references/documenting-the-run.md</code>, a path from the skill&#39;s\nroot, where <code>SKILL.md</code> sits:</p>\n<pre><code class=\"language-markdown\">Records are written per the run-record convention.\n</code></pre>\n<p>The path is given here as code, not as a link: a link resolves from the file that holds it,\nfenced or not, and from this file&#39;s folder that path names nothing.</p>\n","words":2722},{"path":"references/mermaid-contract.md","slug":"mermaid-contract","title":"The mermaid contract","body":"# The mermaid contract\n\nThe classic output. It renders in forge comments, docs sites, chat surfaces, notebooks and\nplain markdown previews, needs no toolchain, and survives being pasted somewhere nobody\nanticipated. It is the primary artefact; the interactive file is the optional extra.\n\n## `flowchart`, never `graph`\n\nMermaid accepts both keywords and they look interchangeable in small examples. They are not:\n**only `flowchart` allows edges to and from subgraphs.** This diagram needs those edges — a\n`deploys-before` constraint runs between whole surfaces, and a blindspot frequently attaches to\na surface rather than to a node inside it. Under `graph` those lines either do nothing useful or\nbreak the parse, and the failure looks like a rendering problem rather than a syntax choice.\n\n`LR` for direction. Surfaces read as columns of consequence left to right, and horizontal\nlayout keeps `path:line` labels legible instead of stacking them into a tower.\n\n## Fixed ids, fixed order, always present\n\nTwelve subgraphs, in the map's order, whether or not they contain anything. The id is the\nsurface id with hyphens replaced by underscores and prefixed `s_` — mermaid ids are safest\nwithout hyphens, and a fixed scheme means two renders of the same repository diff cleanly.\n\n| # | Surface id | Subgraph id |\n|---|---|---|\n| 1 | `callers` | `s_callers` |\n| 2 | `data-contracts` | `s_data_contracts` |\n| 3 | `jobs` | `s_jobs` |\n| 4 | `ui` | `s_ui` |\n| 5 | `tests-and-guards` | `s_tests_and_guards` |\n| 6 | `config-and-toolchains` | `s_config_and_toolchains` |\n| 7 | `deploy-ordering` | `s_deploy_ordering` |\n| 8 | `docs-and-data-resident` | `s_docs_and_data_resident` |\n| 9 | `external-consumers` | `s_external_consumers` |\n| 10 | `second-order` | `s_second_order` |\n| 11 | `reversibility` | `s_reversibility` |\n| 12 | `work-in-flight` | `s_work_in_flight` |\n\nPlus `s_legend`, last.\n\nNode ids are the envelope's own `id` values, verbatim. Blindspot ids likewise. Never renumber:\nthe ids are how a reader moves between the picture, the envelope and the prose.\n\n**An empty subgraph carries exactly one node stating its coverage** — `checked · empty` where a\nnegative with a fired control established it, `not checked` where nobody looked. An empty box is\nread as \"nothing here\", which is a claim the map may not have made.\n\n## Edges\n\nPlain `-->`, every time. The relationship and the confidence ride in the label:\n\n```\nn1 -->|calls · enumerated| n4\nn4 -->|derives · inferred| n9\ns_deploy_ordering -->|deploys-before · measured| s_data_contracts\n```\n\nDotted (`-.->`) and thick (`==>`) arrows are tempting for confidence, and they are the wrong\ncarrier: they render inconsistently across mermaid versions, they are the first thing lost when\ngenerated output is minified, and they vanish entirely in a monochrome print. A label is text.\nText survives.\n\nEdge `kind` comes from the map's closed set — `calls`, `reads`, `writes`, `derives`,\n`registers`, `renders`, `deploys-before`. Confidence comes from the five fixed words. Both\nappear, separated by a middle dot, in that order.\n\n## Styling\n\n`classDef` for the states, applied with `class`. Per-node `style` works identically and is fine\nfor a one-off, but the class form keeps the palette in one place where it can be checked.\n\n```\nclassDef changed   fill:#fde68a,stroke:#b45309,stroke-width:3px,color:#1f2937\nclassDef affected  fill:#dbeafe,stroke:#1d4ed8,stroke-width:1px,color:#1f2937\nclassDef unknown   fill:#f3f4f6,stroke:#6b7280,stroke-width:1px,stroke-dasharray:4 3,color:#374151\nclassDef blindspot fill:#fee2e2,stroke:#b91c1c,stroke-width:2px,stroke-dasharray:6 3,color:#7f1d1d\nclassDef coverage  fill:#ffffff,stroke:#9ca3af,stroke-width:1px,color:#6b7280\n```\n\nState comes **from the envelope's `state` field**. It is never re-derived at render time: the\nmost-severe-wins reconciliation — `changed` over `affected` over `unknown` — already happened\nwhen the map was built, and repeating it is how one node ends up in two colours.\n\n**Break timing goes in the label, as a tag**, because fill and stroke are already carrying state\nand a third visual channel is unreadable:\n\n```\nn7[\"recomputeTotals() · path:line · silent\"]\n```\n\n`silent` is the tag that matters. It is the class the map exists to surface, and a reader\nscanning the picture should be able to find every one of them without opening anything.\n\n## Blind spots are nodes\n\nOne node per `blindspots` entry, inside the subgraph named by its `surface`, in the `blindspot`\nclass, labelled with what is unseen and — where it fits — the probe that would settle it. Long\nprobes go in the table that accompanies the diagram, keyed by the blindspot id.\n\nA blindspot rendered as a caption under the picture is read as a disclaimer about the drawing. A\nblindspot rendered as a node is read as part of the map, which is what it is. Nothing else in\nthis contract matters more than this paragraph.\n\n## The legend\n\nA `s_legend` subgraph, last, with one node per style in use: changed, affected, unknown, blind\nspot, coverage. Plus one line naming the confidence vocabulary. A diagram travels; the person\nwho ends up reading it was not in the conversation where the colours were explained.\n\n## The node cap\n\nRenderers have input limits, and past them a large diagram fails as a **blank box** rather than\nas an error message — which reads as a broken renderer, not as an oversized graph. Generated\nmermaid is often minified by default for exactly this reason.\n\nTake **around 120 nodes** as a working ceiling for a single diagram. That figure is **reasoned,\nnot measured**: it is awaiting benchmark measurement, so treat it as a starting point, measure it\nagainst the renderer you are actually targeting, and adjust. What is not adjustable is the\nbehaviour at the ceiling:\n\n- **Collapse within a surface.** Replace the tail of a surface's nodes with one count node that\n  keeps the confidence of what it stands for: `+14 more callers · measured`. The count is exact.\n- **Or split by surface**, one diagram each, with a fixed index listing all twelve so the\n  missing ones are visibly deliberate.\n- **Never truncate silently.** A shortened diagram with no marker is a map with a lie in it.\n- **Never collapse a blindspot.** They are the smallest set on the page and the reason the page\n  is trustworthy.\n\n## The metadata line\n\nImmediately under the fenced block, in prose: base and head revision, dirty state, `resolver`,\ntools and versions, envelope fingerprint, `notScanned[]`, and whether collapsing happened and\nwhere. The diagram will outlive the conversation that produced it.\n","bodyHtml":"<h2 id=\"the-mermaid-contract\">The mermaid contract</h2>\n<p>The classic output. It renders in forge comments, docs sites, chat surfaces, notebooks and\nplain markdown previews, needs no toolchain, and survives being pasted somewhere nobody\nanticipated. It is the primary artefact; the interactive file is the optional extra.</p>\n<h3 id=\"flowchart-never-graph\"><code>flowchart</code>, never <code>graph</code></h3>\n<p>Mermaid accepts both keywords and they look interchangeable in small examples. They are not:\n<strong>only <code>flowchart</code> allows edges to and from subgraphs.</strong> This diagram needs those edges — a\n<code>deploys-before</code> constraint runs between whole surfaces, and a blindspot frequently attaches to\na surface rather than to a node inside it. Under <code>graph</code> those lines either do nothing useful or\nbreak the parse, and the failure looks like a rendering problem rather than a syntax choice.</p>\n<p><code>LR</code> for direction. Surfaces read as columns of consequence left to right, and horizontal\nlayout keeps <code>path:line</code> labels legible instead of stacking them into a tower.</p>\n<h3 id=\"fixed-ids-fixed-order-always-present\">Fixed ids, fixed order, always present</h3>\n<p>Twelve subgraphs, in the map&#39;s order, whether or not they contain anything. The id is the\nsurface id with hyphens replaced by underscores and prefixed <code>s_</code> — mermaid ids are safest\nwithout hyphens, and a fixed scheme means two renders of the same repository diff cleanly.</p>\n<table>\n<thead>\n<tr>\n<th>#</th>\n<th>Surface id</th>\n<th>Subgraph id</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td><code>callers</code></td>\n<td><code>s_callers</code></td>\n</tr>\n<tr>\n<td>2</td>\n<td><code>data-contracts</code></td>\n<td><code>s_data_contracts</code></td>\n</tr>\n<tr>\n<td>3</td>\n<td><code>jobs</code></td>\n<td><code>s_jobs</code></td>\n</tr>\n<tr>\n<td>4</td>\n<td><code>ui</code></td>\n<td><code>s_ui</code></td>\n</tr>\n<tr>\n<td>5</td>\n<td><code>tests-and-guards</code></td>\n<td><code>s_tests_and_guards</code></td>\n</tr>\n<tr>\n<td>6</td>\n<td><code>config-and-toolchains</code></td>\n<td><code>s_config_and_toolchains</code></td>\n</tr>\n<tr>\n<td>7</td>\n<td><code>deploy-ordering</code></td>\n<td><code>s_deploy_ordering</code></td>\n</tr>\n<tr>\n<td>8</td>\n<td><code>docs-and-data-resident</code></td>\n<td><code>s_docs_and_data_resident</code></td>\n</tr>\n<tr>\n<td>9</td>\n<td><code>external-consumers</code></td>\n<td><code>s_external_consumers</code></td>\n</tr>\n<tr>\n<td>10</td>\n<td><code>second-order</code></td>\n<td><code>s_second_order</code></td>\n</tr>\n<tr>\n<td>11</td>\n<td><code>reversibility</code></td>\n<td><code>s_reversibility</code></td>\n</tr>\n<tr>\n<td>12</td>\n<td><code>work-in-flight</code></td>\n<td><code>s_work_in_flight</code></td>\n</tr>\n</tbody></table>\n<p>Plus <code>s_legend</code>, last.</p>\n<p>Node ids are the envelope&#39;s own <code>id</code> values, verbatim. Blindspot ids likewise. Never renumber:\nthe ids are how a reader moves between the picture, the envelope and the prose.</p>\n<p><strong>An empty subgraph carries exactly one node stating its coverage</strong> — <code>checked · empty</code> where a\nnegative with a fired control established it, <code>not checked</code> where nobody looked. An empty box is\nread as &quot;nothing here&quot;, which is a claim the map may not have made.</p>\n<h3 id=\"edges\">Edges</h3>\n<p>Plain <code>--&gt;</code>, every time. The relationship and the confidence ride in the label:</p>\n<pre><code>n1 --&gt;|calls · enumerated| n4\nn4 --&gt;|derives · inferred| n9\ns_deploy_ordering --&gt;|deploys-before · measured| s_data_contracts\n</code></pre>\n<p>Dotted (<code>-.-&gt;</code>) and thick (<code>==&gt;</code>) arrows are tempting for confidence, and they are the wrong\ncarrier: they render inconsistently across mermaid versions, they are the first thing lost when\ngenerated output is minified, and they vanish entirely in a monochrome print. A label is text.\nText survives.</p>\n<p>Edge <code>kind</code> comes from the map&#39;s closed set — <code>calls</code>, <code>reads</code>, <code>writes</code>, <code>derives</code>,\n<code>registers</code>, <code>renders</code>, <code>deploys-before</code>. Confidence comes from the five fixed words. Both\nappear, separated by a middle dot, in that order.</p>\n<h3 id=\"styling\">Styling</h3>\n<p><code>classDef</code> for the states, applied with <code>class</code>. Per-node <code>style</code> works identically and is fine\nfor a one-off, but the class form keeps the palette in one place where it can be checked.</p>\n<pre><code>classDef changed   fill:#fde68a,stroke:#b45309,stroke-width:3px,color:#1f2937\nclassDef affected  fill:#dbeafe,stroke:#1d4ed8,stroke-width:1px,color:#1f2937\nclassDef unknown   fill:#f3f4f6,stroke:#6b7280,stroke-width:1px,stroke-dasharray:4 3,color:#374151\nclassDef blindspot fill:#fee2e2,stroke:#b91c1c,stroke-width:2px,stroke-dasharray:6 3,color:#7f1d1d\nclassDef coverage  fill:#ffffff,stroke:#9ca3af,stroke-width:1px,color:#6b7280\n</code></pre>\n<p>State comes <strong>from the envelope&#39;s <code>state</code> field</strong>. It is never re-derived at render time: the\nmost-severe-wins reconciliation — <code>changed</code> over <code>affected</code> over <code>unknown</code> — already happened\nwhen the map was built, and repeating it is how one node ends up in two colours.</p>\n<p><strong>Break timing goes in the label, as a tag</strong>, because fill and stroke are already carrying state\nand a third visual channel is unreadable:</p>\n<pre><code>n7[&quot;recomputeTotals() · path:line · silent&quot;]\n</code></pre>\n<p><code>silent</code> is the tag that matters. It is the class the map exists to surface, and a reader\nscanning the picture should be able to find every one of them without opening anything.</p>\n<h3 id=\"blind-spots-are-nodes\">Blind spots are nodes</h3>\n<p>One node per <code>blindspots</code> entry, inside the subgraph named by its <code>surface</code>, in the <code>blindspot</code>\nclass, labelled with what is unseen and — where it fits — the probe that would settle it. Long\nprobes go in the table that accompanies the diagram, keyed by the blindspot id.</p>\n<p>A blindspot rendered as a caption under the picture is read as a disclaimer about the drawing. A\nblindspot rendered as a node is read as part of the map, which is what it is. Nothing else in\nthis contract matters more than this paragraph.</p>\n<h3 id=\"the-legend\">The legend</h3>\n<p>A <code>s_legend</code> subgraph, last, with one node per style in use: changed, affected, unknown, blind\nspot, coverage. Plus one line naming the confidence vocabulary. A diagram travels; the person\nwho ends up reading it was not in the conversation where the colours were explained.</p>\n<h3 id=\"the-node-cap\">The node cap</h3>\n<p>Renderers have input limits, and past them a large diagram fails as a <strong>blank box</strong> rather than\nas an error message — which reads as a broken renderer, not as an oversized graph. Generated\nmermaid is often minified by default for exactly this reason.</p>\n<p>Take <strong>around 120 nodes</strong> as a working ceiling for a single diagram. That figure is <strong>reasoned,\nnot measured</strong>: it is awaiting benchmark measurement, so treat it as a starting point, measure it\nagainst the renderer you are actually targeting, and adjust. What is not adjustable is the\nbehaviour at the ceiling:</p>\n<ul>\n<li><strong>Collapse within a surface.</strong> Replace the tail of a surface&#39;s nodes with one count node that\nkeeps the confidence of what it stands for: <code>+14 more callers · measured</code>. The count is exact.</li>\n<li><strong>Or split by surface</strong>, one diagram each, with a fixed index listing all twelve so the\nmissing ones are visibly deliberate.</li>\n<li><strong>Never truncate silently.</strong> A shortened diagram with no marker is a map with a lie in it.</li>\n<li><strong>Never collapse a blindspot.</strong> They are the smallest set on the page and the reason the page\nis trustworthy.</li>\n</ul>\n<h3 id=\"the-metadata-line\">The metadata line</h3>\n<p>Immediately under the fenced block, in prose: base and head revision, dirty state, <code>resolver</code>,\ntools and versions, envelope fingerprint, <code>notScanned[]</code>, and whether collapsing happened and\nwhere. The diagram will outlive the conversation that produced it.</p>\n","words":1022},{"path":"references/smart-html.md","slug":"smart-html","title":"The smart HTML contract","body":"# The smart HTML contract\n\nOptional. Produce it when the map is big enough to explore rather than read, and when the\naudience will open a browser. The mermaid diagram is still the primary artefact; this is the\none people dig into.\n\n## The four absolutes\n\n1. **One file.** Not a directory, not an index plus assets. One `.html` that can be attached to\n   a message, dropped in a ticket, or committed as a single artefact.\n2. **No external requests.** No CDN script, no remote font, no stylesheet fetch, no analytics,\n   no image pulled from a host. Open it from a disk with the network switched off and it must\n   look and behave identically. The test is not hypothetical: artefacts get read on planes,\n   behind corporate proxies, and two years later when the CDN path has moved.\n3. **No build step.** No bundler, no transpile, no package install. Plain HTML, plain CSS, plain\n   script in the page. Anything requiring a toolchain is a dependency on the reader's machine.\n4. **No runtime fetch of the data.** The envelope is *in* the file. A page that loads its data\n   from anywhere is a page that will one day render an empty graph and no error.\n\n## One literal, unedited\n\nThe whole payload is a single generated literal, and its name is fixed so that a reader\nsearching the file finds it immediately:\n\n```js\nconst BLAST = {\n  meta:       { /* … */ },\n  surfaces:   [ /* twelve, fixed order, including empty */ ],\n  nodes:      [ /* one state and one break each */ ],\n  edges:      [ /* confidence and evidence on every one */ ],\n  blindspots: [ /* reason and probe on every one */ ]\n};\n```\n\nIt is the blast-area envelope, **unedited**. Not reshaped for convenience, not pruned of fields\nthe interface does not use, not re-keyed. Everything the page displays is derived from `BLAST`\nat load time. The moment the generator edits the envelope on the way in, the picture and the\ndecision surface can disagree, and nothing in the file will reveal that they have.\n\nIf a derived structure is needed for rendering — an adjacency index, a per-surface bucket —\ncompute it in the page from `BLAST`, at load. Never ship it alongside as a second source of\ntruth.\n\n## What `meta` must pin\n\nProvenance is not a footer. It is displayed in the interface, in a panel a reader can open\nwithout viewing source:\n\n- **`tool` and its version**, plus the version of whatever generated this page.\n- **`baseRevision`, `headRevision`, `dirty`** — the tree the map describes.\n- **`resolver`** — how symbols were resolved, carried through from the map verbatim.\n- **`fingerprint`** — a hash of the envelope. Two pages claiming to show the same map either\n  match here or one of them is stale.\n- **`toolsUsed`** — what actually ran, with versions.\n- **`notScanned[]`** — every store, repository, language or surface left out. This is the\n  machine-readable half of \"what this map cannot see\", and in the interface it belongs beside\n  the graph, not below it.\n\n## Affordances\n\nEnough to explore, and no more. Every one of these is derivable from `BLAST` alone:\n\n- **Expand and collapse a surface.** Twelve surfaces open at once is a wall. Collapsed by\n  default with counts on the header is readable; a surface that is empty shows its coverage word\n  in the header rather than a zero.\n- **Filter by state** — changed, affected, unknown.\n- **Filter by break timing** — compile, runtime, silent, none. The `silent` filter is the one\n  people will use, because it isolates the class that a typechecker and a CI run both miss.\n- **Filter by confidence**, from the five fixed words.\n- **Follow an edge to its evidence.** Selecting an edge shows its `kind`, its `confidence` and\n  its `evidence` string — the `path:line @ sha` or the verbatim query that established it. This\n  is the single affordance that most changes how the artefact is used: it turns \"the diagram\n  says so\" into \"here is the line\".\n- **Select a node** to see its path, state, break class and its `note` — required on every\n  `silent` node, and the field that says what is observed *instead of* an error.\n\n## Styling from the fixed vocabulary\n\nState drives the node's primary colour. Break timing rides as a tag on the label, exactly as in\nthe mermaid contract, so the two artefacts read the same way. Confidence styles the **edge** —\nweight, or a dash pattern, plus the word itself in the edge's detail panel. Five words, never a\nsixth, and never a percentage: nobody computed one, and a number on a page is read as a\nmeasurement forever.\n\n## Blind spots are a panel that cannot be filtered away\n\nThey appear in the graph, in their surface, styled as their own class — and they also get a\npermanent panel listing every one with its `reason` and its `probe`. Filters do not hide them.\nA filter that can empty the blind-spot list turns the artefact into a machine for producing\nfalse confidence with two clicks.\n\n## Skeleton\n\n```html\n<!doctype html>\n<meta charset=\"utf-8\">\n<title>Blast area — &lt;change name&gt;</title>\n<style>\n  /* everything inline; system font stack only; no @import, no remote font */\n</style>\n<body>\n  <header id=\"meta\"></header>\n  <nav id=\"filters\"></nav>\n  <main id=\"graph\"></main>\n  <aside id=\"detail\"></aside>\n  <section id=\"blindspots\"></section>\n<script>\nconst BLAST = { /* generated literal — the envelope, unedited */ };\n\n// index, render and wire — all from BLAST, all at load, nothing fetched.\n</script>\n</body>\n```\n\nLayout engine: whatever can be written in the page without a dependency. A deterministic\ncolumn-per-surface layout with straight edges is enough and diffs better than a force-directed\none, which produces a different picture every time it is opened and makes two runs\nincomparable.\n\n## Verification for this artefact\n\n- Opens from disk with the network disabled and looks identical.\n- Contains exactly one `const BLAST` literal, matching the envelope field for field.\n- `meta` is visible in the interface, including `notScanned[]`.\n- Every edge's detail shows both its confidence and its evidence.\n- No filter combination can empty the blind-spot panel.\n- No `http://` or `https://` request is issued at load. Grep the file for `src=` and `href=`\n  pointing off-file, and for `fetch(`.\n","bodyHtml":"<h2 id=\"the-smart-html-contract\">The smart HTML contract</h2>\n<p>Optional. Produce it when the map is big enough to explore rather than read, and when the\naudience will open a browser. The mermaid diagram is still the primary artefact; this is the\none people dig into.</p>\n<h3 id=\"the-four-absolutes\">The four absolutes</h3>\n<ol>\n<li><strong>One file.</strong> Not a directory, not an index plus assets. One <code>.html</code> that can be attached to\na message, dropped in a ticket, or committed as a single artefact.</li>\n<li><strong>No external requests.</strong> No CDN script, no remote font, no stylesheet fetch, no analytics,\nno image pulled from a host. Open it from a disk with the network switched off and it must\nlook and behave identically. The test is not hypothetical: artefacts get read on planes,\nbehind corporate proxies, and two years later when the CDN path has moved.</li>\n<li><strong>No build step.</strong> No bundler, no transpile, no package install. Plain HTML, plain CSS, plain\nscript in the page. Anything requiring a toolchain is a dependency on the reader&#39;s machine.</li>\n<li><strong>No runtime fetch of the data.</strong> The envelope is <em>in</em> the file. A page that loads its data\nfrom anywhere is a page that will one day render an empty graph and no error.</li>\n</ol>\n<h3 id=\"one-literal-unedited\">One literal, unedited</h3>\n<p>The whole payload is a single generated literal, and its name is fixed so that a reader\nsearching the file finds it immediately:</p>\n<pre><code class=\"language-js\">const BLAST = {\n  meta:       { /* … */ },\n  surfaces:   [ /* twelve, fixed order, including empty */ ],\n  nodes:      [ /* one state and one break each */ ],\n  edges:      [ /* confidence and evidence on every one */ ],\n  blindspots: [ /* reason and probe on every one */ ]\n};\n</code></pre>\n<p>It is the blast-area envelope, <strong>unedited</strong>. Not reshaped for convenience, not pruned of fields\nthe interface does not use, not re-keyed. Everything the page displays is derived from <code>BLAST</code>\nat load time. The moment the generator edits the envelope on the way in, the picture and the\ndecision surface can disagree, and nothing in the file will reveal that they have.</p>\n<p>If a derived structure is needed for rendering — an adjacency index, a per-surface bucket —\ncompute it in the page from <code>BLAST</code>, at load. Never ship it alongside as a second source of\ntruth.</p>\n<h3 id=\"what-meta-must-pin\">What <code>meta</code> must pin</h3>\n<p>Provenance is not a footer. It is displayed in the interface, in a panel a reader can open\nwithout viewing source:</p>\n<ul>\n<li><strong><code>tool</code> and its version</strong>, plus the version of whatever generated this page.</li>\n<li><strong><code>baseRevision</code>, <code>headRevision</code>, <code>dirty</code></strong> — the tree the map describes.</li>\n<li><strong><code>resolver</code></strong> — how symbols were resolved, carried through from the map verbatim.</li>\n<li><strong><code>fingerprint</code></strong> — a hash of the envelope. Two pages claiming to show the same map either\nmatch here or one of them is stale.</li>\n<li><strong><code>toolsUsed</code></strong> — what actually ran, with versions.</li>\n<li><strong><code>notScanned[]</code></strong> — every store, repository, language or surface left out. This is the\nmachine-readable half of &quot;what this map cannot see&quot;, and in the interface it belongs beside\nthe graph, not below it.</li>\n</ul>\n<h3 id=\"affordances\">Affordances</h3>\n<p>Enough to explore, and no more. Every one of these is derivable from <code>BLAST</code> alone:</p>\n<ul>\n<li><strong>Expand and collapse a surface.</strong> Twelve surfaces open at once is a wall. Collapsed by\ndefault with counts on the header is readable; a surface that is empty shows its coverage word\nin the header rather than a zero.</li>\n<li><strong>Filter by state</strong> — changed, affected, unknown.</li>\n<li><strong>Filter by break timing</strong> — compile, runtime, silent, none. The <code>silent</code> filter is the one\npeople will use, because it isolates the class that a typechecker and a CI run both miss.</li>\n<li><strong>Filter by confidence</strong>, from the five fixed words.</li>\n<li><strong>Follow an edge to its evidence.</strong> Selecting an edge shows its <code>kind</code>, its <code>confidence</code> and\nits <code>evidence</code> string — the <code>path:line @ sha</code> or the verbatim query that established it. This\nis the single affordance that most changes how the artefact is used: it turns &quot;the diagram\nsays so&quot; into &quot;here is the line&quot;.</li>\n<li><strong>Select a node</strong> to see its path, state, break class and its <code>note</code> — required on every\n<code>silent</code> node, and the field that says what is observed <em>instead of</em> an error.</li>\n</ul>\n<h3 id=\"styling-from-the-fixed-vocabulary\">Styling from the fixed vocabulary</h3>\n<p>State drives the node&#39;s primary colour. Break timing rides as a tag on the label, exactly as in\nthe mermaid contract, so the two artefacts read the same way. Confidence styles the <strong>edge</strong> —\nweight, or a dash pattern, plus the word itself in the edge&#39;s detail panel. Five words, never a\nsixth, and never a percentage: nobody computed one, and a number on a page is read as a\nmeasurement forever.</p>\n<h3 id=\"blind-spots-are-a-panel-that-cannot-be-filtered-away\">Blind spots are a panel that cannot be filtered away</h3>\n<p>They appear in the graph, in their surface, styled as their own class — and they also get a\npermanent panel listing every one with its <code>reason</code> and its <code>probe</code>. Filters do not hide them.\nA filter that can empty the blind-spot list turns the artefact into a machine for producing\nfalse confidence with two clicks.</p>\n<h3 id=\"skeleton\">Skeleton</h3>\n<pre><code class=\"language-html\">&lt;!doctype html&gt;\n&lt;meta charset=&quot;utf-8&quot;&gt;\n&lt;title&gt;Blast area — &amp;lt;change name&amp;gt;&lt;/title&gt;\n&lt;style&gt;\n  /* everything inline; system font stack only; no @import, no remote font */\n&lt;/style&gt;\n&lt;body&gt;\n  &lt;header id=&quot;meta&quot;&gt;&lt;/header&gt;\n  &lt;nav id=&quot;filters&quot;&gt;&lt;/nav&gt;\n  &lt;main id=&quot;graph&quot;&gt;&lt;/main&gt;\n  &lt;aside id=&quot;detail&quot;&gt;&lt;/aside&gt;\n  &lt;section id=&quot;blindspots&quot;&gt;&lt;/section&gt;\n&lt;script&gt;\nconst BLAST = { /* generated literal — the envelope, unedited */ };\n\n// index, render and wire — all from BLAST, all at load, nothing fetched.\n&lt;/script&gt;\n&lt;/body&gt;\n</code></pre>\n<p>Layout engine: whatever can be written in the page without a dependency. A deterministic\ncolumn-per-surface layout with straight edges is enough and diffs better than a force-directed\none, which produces a different picture every time it is opened and makes two runs\nincomparable.</p>\n<h3 id=\"verification-for-this-artefact\">Verification for this artefact</h3>\n<ul>\n<li>Opens from disk with the network disabled and looks identical.</li>\n<li>Contains exactly one <code>const BLAST</code> literal, matching the envelope field for field.</li>\n<li><code>meta</code> is visible in the interface, including <code>notScanned[]</code>.</li>\n<li>Every edge&#39;s detail shows both its confidence and its evidence.</li>\n<li>No filter combination can empty the blind-spot panel.</li>\n<li>No <code>http://</code> or <code>https://</code> request is issued at load. Grep the file for <code>src=</code> and <code>href=</code>\npointing off-file, and for <code>fetch(</code>.</li>\n</ul>\n","words":1042},{"path":"references/tool-tiering.md","slug":"tool-tiering","title":"Tool tiering","body":"# Tool tiering\n\nThe rule first, because it is the one that gets broken: **use what is already installed; install\nnothing.** Rendering a diagram is a read-only act. A skill that adds a dependency to the host\nrepository so it can draw a picture has changed a lockfile, a dependency tree and possibly a CI\ncache, in a branch that was supposed to change nothing at all. If a tool is absent, the render\ndegrades and the degradation is stated on the artefact.\n\n## Tier 1 — use if present\n\n### dependency-cruiser\n\nA module-graph tool for JavaScript and TypeScript trees. Two capabilities matter here.\n\n- **A mermaid reporter.** It can emit its graph directly as mermaid, which means a\n  module-level view of a change can be produced without hand-assembling nodes.\n- **A change-aware mode.** It can restrict the graph to the modules reachable from what changed\n  since a revision, which is the module-level half of an affected set:\n\n  ```sh\n  depcruise --affected <base-revision> --output-type mermaid src\n  ```\n\n- **A highlight expression.** `--highlight` takes a regular expression and marks the modules\n  that match it. This is how **changed** is separated from **affected** in the same picture:\n  highlight the changed files, and everything else in the graph is what they reach.\n\n  ```sh\n  depcruise --affected <base-revision> --highlight \"<changed-files-regex>\" --output-type mermaid src\n  ```\n\nFlag spellings and defaults move between major versions. Read the installed version's own\n`--help` before running it, and record the version in the render's metadata — a diagram\nproduced by an unrecorded version of a tool cannot be reproduced.\n\n### watskeburt\n\nA standalone lister of what changed since a revision. Two properties earn it a place:\n\n- **Rename-aware.** A renamed file is reported as a rename rather than as a delete plus an add,\n  which stops a rename from arriving in the diagram as a removed node next to an unrelated new\n  one.\n- **It can emit a regular expression** over the changed set, which is exactly the shape\n  `--highlight` wants. That is why the two tools are listed together; it is also useful alone,\n  as the source of the changed-set truth when no module graph is available.\n\n### A language server or a compiler-resolved symbol index\n\nNot a diagram tool, but it is what makes the caller surface `enumerated` rather than `measured`.\nIf the repository carries one, the upstream map will already have used it and `meta.resolver`\nwill say so. The render's job is to carry that word through, not to re-resolve anything.\n\n## Not assumed: Graphviz\n\n`dot` is a fine renderer and it is **not** a safe assumption. It is a native binary, it is\nfrequently absent from CI images and developer machines alike, and a `.dot` file handed over as\nthe deliverable is a file most recipients cannot open.\n\nSo: never make `.dot` the primary artefact. If `dot` is present and someone wants a raster or a\nvector for a slide, produce it as a **bonus** alongside the mermaid, and say which one is\ncanonical.\n\n## Tier 2 — the envelope alone\n\nThis is the normal case, and it is a complete case. The mermaid is assembled by hand from the\nenvelope's `nodes` and `edges`; the contract does not change; the diagram is not worth less.\n\nWhat changes is coverage, and it must be said out loud:\n\n| Tool absent | What degrades | What the metadata line says |\n|---|---|---|\n| dependency-cruiser | Module-level import edges are not enumerated; only the edges the map itself recorded appear | `module graph: not checked` |\n| watskeburt | The changed set comes from whatever the brief named, and renames may arrive as delete-plus-add | `changed set: as declared, renames unverified` |\n| Language server / symbol index | Caller edges are name-based, at the map's stated precision ceiling | carry `meta.resolver` through verbatim |\n| Graphviz `dot` | No raster or vector export; mermaid only | nothing — this was never promised |\n\n## The polyglot trap\n\ndependency-cruiser and watskeburt are JavaScript and TypeScript tools. In a repository that\nalso contains another language — a service in Go, jobs in Python, SQL that is executed as text —\nthe module graph they produce covers the part they can parse and says nothing about the rest.\n\nRendering that graph without qualification presents partial coverage as total coverage, which is\nthe exact failure the map's `not checked` vocabulary exists to prevent. The render must name the\nlanguages the tooling did not see, in the metadata line, next to the tool that did not see them.\n","bodyHtml":"<h2 id=\"tool-tiering\">Tool tiering</h2>\n<p>The rule first, because it is the one that gets broken: <strong>use what is already installed; install\nnothing.</strong> Rendering a diagram is a read-only act. A skill that adds a dependency to the host\nrepository so it can draw a picture has changed a lockfile, a dependency tree and possibly a CI\ncache, in a branch that was supposed to change nothing at all. If a tool is absent, the render\ndegrades and the degradation is stated on the artefact.</p>\n<h3 id=\"tier-1-use-if-present\">Tier 1 — use if present</h3>\n<h4 id=\"dependency-cruiser\">dependency-cruiser</h4>\n<p>A module-graph tool for JavaScript and TypeScript trees. Two capabilities matter here.</p>\n<ul>\n<li><p><strong>A mermaid reporter.</strong> It can emit its graph directly as mermaid, which means a\nmodule-level view of a change can be produced without hand-assembling nodes.</p>\n</li>\n<li><p><strong>A change-aware mode.</strong> It can restrict the graph to the modules reachable from what changed\nsince a revision, which is the module-level half of an affected set:</p>\n<pre><code class=\"language-sh\">depcruise --affected &lt;base-revision&gt; --output-type mermaid src\n</code></pre>\n</li>\n<li><p><strong>A highlight expression.</strong> <code>--highlight</code> takes a regular expression and marks the modules\nthat match it. This is how <strong>changed</strong> is separated from <strong>affected</strong> in the same picture:\nhighlight the changed files, and everything else in the graph is what they reach.</p>\n<pre><code class=\"language-sh\">depcruise --affected &lt;base-revision&gt; --highlight &quot;&lt;changed-files-regex&gt;&quot; --output-type mermaid src\n</code></pre>\n</li>\n</ul>\n<p>Flag spellings and defaults move between major versions. Read the installed version&#39;s own\n<code>--help</code> before running it, and record the version in the render&#39;s metadata — a diagram\nproduced by an unrecorded version of a tool cannot be reproduced.</p>\n<h4 id=\"watskeburt\">watskeburt</h4>\n<p>A standalone lister of what changed since a revision. Two properties earn it a place:</p>\n<ul>\n<li><strong>Rename-aware.</strong> A renamed file is reported as a rename rather than as a delete plus an add,\nwhich stops a rename from arriving in the diagram as a removed node next to an unrelated new\none.</li>\n<li><strong>It can emit a regular expression</strong> over the changed set, which is exactly the shape\n<code>--highlight</code> wants. That is why the two tools are listed together; it is also useful alone,\nas the source of the changed-set truth when no module graph is available.</li>\n</ul>\n<h4 id=\"a-language-server-or-a-compiler-resolved-symbol-index\">A language server or a compiler-resolved symbol index</h4>\n<p>Not a diagram tool, but it is what makes the caller surface <code>enumerated</code> rather than <code>measured</code>.\nIf the repository carries one, the upstream map will already have used it and <code>meta.resolver</code>\nwill say so. The render&#39;s job is to carry that word through, not to re-resolve anything.</p>\n<h3 id=\"not-assumed-graphviz\">Not assumed: Graphviz</h3>\n<p><code>dot</code> is a fine renderer and it is <strong>not</strong> a safe assumption. It is a native binary, it is\nfrequently absent from CI images and developer machines alike, and a <code>.dot</code> file handed over as\nthe deliverable is a file most recipients cannot open.</p>\n<p>So: never make <code>.dot</code> the primary artefact. If <code>dot</code> is present and someone wants a raster or a\nvector for a slide, produce it as a <strong>bonus</strong> alongside the mermaid, and say which one is\ncanonical.</p>\n<h3 id=\"tier-2-the-envelope-alone\">Tier 2 — the envelope alone</h3>\n<p>This is the normal case, and it is a complete case. The mermaid is assembled by hand from the\nenvelope&#39;s <code>nodes</code> and <code>edges</code>; the contract does not change; the diagram is not worth less.</p>\n<p>What changes is coverage, and it must be said out loud:</p>\n<table>\n<thead>\n<tr>\n<th>Tool absent</th>\n<th>What degrades</th>\n<th>What the metadata line says</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>dependency-cruiser</td>\n<td>Module-level import edges are not enumerated; only the edges the map itself recorded appear</td>\n<td><code>module graph: not checked</code></td>\n</tr>\n<tr>\n<td>watskeburt</td>\n<td>The changed set comes from whatever the brief named, and renames may arrive as delete-plus-add</td>\n<td><code>changed set: as declared, renames unverified</code></td>\n</tr>\n<tr>\n<td>Language server / symbol index</td>\n<td>Caller edges are name-based, at the map&#39;s stated precision ceiling</td>\n<td>carry <code>meta.resolver</code> through verbatim</td>\n</tr>\n<tr>\n<td>Graphviz <code>dot</code></td>\n<td>No raster or vector export; mermaid only</td>\n<td>nothing — this was never promised</td>\n</tr>\n</tbody></table>\n<h3 id=\"the-polyglot-trap\">The polyglot trap</h3>\n<p>dependency-cruiser and watskeburt are JavaScript and TypeScript tools. In a repository that\nalso contains another language — a service in Go, jobs in Python, SQL that is executed as text —\nthe module graph they produce covers the part they can parse and says nothing about the rest.</p>\n<p>Rendering that graph without qualification presents partial coverage as total coverage, which is\nthe exact failure the map&#39;s <code>not checked</code> vocabulary exists to prevent. The render must name the\nlanguages the tooling did not see, in the metadata line, next to the tool that did not see them.</p>\n","words":753},{"path":"references/worked-render.md","slug":"worked-render","title":"A worked render","body":"# A worked render\n\nOne envelope taken end to end. The change is a column drop — the `status` column on a `jobs`\ntable, with the value moving to a derived view. Names are illustrative; the shape is the point.\n\n## The envelope, trimmed\n\nFields not needed to draw are elided. Nothing that *is* needed has been added.\n\n```json\n{\n  \"meta\": {\n    \"baseRevision\": \"3f9c1ab\", \"headRevision\": null, \"dirty\": false,\n    \"resolver\": \"name-based\", \"collisions\": 184,\n    \"toolsUsed\": [\"git grep\", \"watskeburt 1.x\"],\n    \"notScanned\": [\"the prompt-template store\", \"repositories outside this checkout\"]\n  },\n  \"surfaces\": [\n    { \"id\": \"callers\", \"label\": \"Callers\", \"confidence\": \"measured\" },\n    { \"id\": \"ui\", \"label\": \"UI\", \"confidence\": \"measured\",\n      \"negatives\": [{ \"target\": \"any screen rendering the field\", \"query\": \"rg -n \\\"status\\\" app/\",\n                      \"tool\": \"ripgrep\", \"control\": \"rg -n \\\"jobId\\\" app/\", \"control_fired\": true,\n                      \"verdict\": \"absent\" }] },\n    { \"id\": \"docs-and-data-resident\", \"label\": \"Docs, prompts, data-resident\",\n      \"confidence\": \"not checked\" }\n  ],\n  \"nodes\": [\n    { \"id\": \"n1\", \"label\": \"jobs.status column\", \"path\": \"schema/jobs.sql:12\",\n      \"surface\": \"data-contracts\", \"state\": \"changed\", \"break\": \"none\" },\n    { \"id\": \"n4\", \"label\": \"summary query (string-built)\", \"path\": \"reports/summary.ts:88\",\n      \"surface\": \"data-contracts\", \"state\": \"affected\", \"break\": \"silent\",\n      \"note\": \"returns rows with the field undefined; the report renders zero\" }\n  ],\n  \"edges\": [\n    { \"from\": \"n4\", \"to\": \"n1\", \"kind\": \"reads\", \"confidence\": \"measured\",\n      \"evidence\": \"rg -n \\\"SELECT .*status\\\" reports/ -> 1 hit @ 3f9c1ab\" }\n  ],\n  \"blindspots\": [\n    { \"id\": \"b1\", \"label\": \"prompt and saved-query rows naming the field\",\n      \"surface\": \"docs-and-data-resident\",\n      \"reason\": \"no datastore was reachable from this run\",\n      \"probe\": \"query the template table for rows containing the field name\" }\n  ]\n}\n```\n\n## The diagram\n\n```mermaid\nflowchart LR\n  subgraph s_callers[\"1 · Callers — measured\"]\n    n3[\"listJobs() · api/jobs.ts:41 · compile\"]\n    n5[\"+14 more callers · measured\"]\n  end\n  subgraph s_data_contracts[\"2 · Data contracts and derivers — measured\"]\n    n1[\"jobs.status column · schema/jobs.sql:12\"]\n    n2[\"JobRow type · types/jobs.ts:8 · compile\"]\n    n4[\"summary query, string-built · reports/summary.ts:88 · silent\"]\n  end\n  subgraph s_jobs[\"3 · Jobs and registries — enumerated\"]\n    n6[\"retry-failed-jobs worker · workers/retry.ts:12 · runtime\"]\n  end\n  subgraph s_ui[\"4 · UI — measured\"]\n    c1[\"checked · empty — no screen renders the field\"]\n  end\n  subgraph s_tests_and_guards[\"5 · Tests and guards — measured\"]\n    n9[\"guard no-raw-status · ci/guards/status.mjs:4 · silent\"]\n  end\n  subgraph s_config_and_toolchains[\"6 · Config and toolchains — measured\"]\n    n10[\"two bundlers process reports/ · build/ · none\"]\n  end\n  subgraph s_deploy_ordering[\"7 · Deploy ordering — enumerated\"]\n    n11[\"code half — stops selecting the field\"]\n    n12[\"schema half — drop the column\"]\n  end\n  subgraph s_docs_and_data_resident[\"8 · Docs, prompts, data-resident — not checked\"]\n    b1[\"BLIND SPOT · prompt and saved-query rows · probe: query the template table\"]\n  end\n  subgraph s_external_consumers[\"9 · External consumers — sampled\"]\n    n13[\"warehouse job reading the field · unknown\"]\n    b2[\"BLIND SPOT · repositories outside this checkout · probe: org-wide code search\"]\n  end\n  subgraph s_second_order[\"10 · Second-order readers — inferred\"]\n    n14[\"daily completion-rate metric · silent\"]\n  end\n  subgraph s_reversibility[\"11 · Reversibility — measured\"]\n    n15[\"revert restores the column, not the rows written in the window\"]\n  end\n  subgraph s_work_in_flight[\"12 · Work in flight — enumerated\"]\n    n16[\"open PR renaming the same worker · workers/retry.ts · compile\"]\n    n17[\"written, unapplied migration on the same table · migrations/ · silent\"]\n  end\n  subgraph s_legend[\"Legend\"]\n    L1[\"changed\"]\n    L2[\"affected\"]\n    L3[\"unknown\"]\n    L4[\"blind spot\"]\n    L5[\"confidence: enumerated · measured · sampled · inferred · not checked\"]\n  end\n\n  n3 -->|calls · measured| n2\n  n2 -->|reads · enumerated| n1\n  n4 -->|reads · measured| n1\n  n6 -->|reads · measured| n1\n  n9 -->|reads · measured| n1\n  n13 -->|reads · inferred| n1\n  n14 -->|derives · inferred| n4\n  n11 -->|deploys-before · measured| n12\n  s_callers -->|deploys-before · measured| n12\n\n  classDef changed   fill:#fde68a,stroke:#b45309,stroke-width:3px,color:#1f2937\n  classDef affected  fill:#dbeafe,stroke:#1d4ed8,stroke-width:1px,color:#1f2937\n  classDef unknown   fill:#f3f4f6,stroke:#6b7280,stroke-width:1px,stroke-dasharray:4 3,color:#374151\n  classDef blindspot fill:#fee2e2,stroke:#b91c1c,stroke-width:2px,stroke-dasharray:6 3,color:#7f1d1d\n  classDef coverage  fill:#ffffff,stroke:#9ca3af,stroke-width:1px,color:#6b7280\n\n  class n1,n11,n12 changed\n  class n2,n3,n4,n5,n6,n9,n10,n14,n15,n16,n17 affected\n  class n13 unknown\n  class b1,b2 blindspot\n  class c1,L5 coverage\n```\n\n## What to notice in it\n\n- **All twelve surfaces are there**, in order, with their coverage word in the subgraph title.\n  Surface 4 is empty and says which kind of empty it is: checked, with a control that fired.\n  Surface 8 is empty of nodes and says `not checked`, and carries the blind spot that explains\n  why.\n- **Surface 12 is the one no checkout could have shown.** An open pull request renames the same\n  worker and a written-but-unapplied migration touches the same table; neither exists in the\n  tree the rest of the map was drawn against, and both meet this change in one tree later.\n- **The two blind spots are nodes**, inside their own surfaces, each with its probe in the\n  label. Neither is a caption. They are the first thing a reader's eye lands on, which is\n  correct: they are the reason the rest of the picture is trustworthy.\n- **`silent` is a label tag, not a colour.** Three nodes carry it — the string-built query, the\n  guard that will pass forever once its pattern matches nothing, and the derived metric. Those\n  three are the entire reason the map was drawn; a reader can find them by scanning.\n- **One edge runs from a subgraph to a node.** `s_callers -->|deploys-before| n12` says every\n  caller must stop reading before the column is dropped. That edge is why the diagram is a\n  `flowchart` and not a `graph` — the older keyword cannot attach an edge to a subgraph.\n- **One node has no edges at all.** `n10` records that two bundlers process the same directory;\n  that is a property of a file, not a relationship between two nodes. Edgeless nodes are\n  legitimate and the layout must keep them.\n- **Evidence is not on the edge label.** Labels carry kind and confidence; the `evidence`\n  string lives in the envelope and, in the interactive artefact, in the panel that opens when an\n  edge is selected. Putting a `path:line @ sha` on every arrow makes the diagram unreadable and\n  drops it below the node cap for the wrong reason.\n- **Node states came from the envelope.** `n13` is `unknown` because nobody could establish\n  whether the warehouse job breaks — it is not `affected` with a shrug attached.\n\n## The metadata line\n\nDirectly under the diagram, in prose, every time:\n\n> Rendered from the blast-area envelope `sha256:…` at base `3f9c1ab`, clean tree, no head\n> revision. Resolver: **name-based**; 184 exported names in this repository are defined in more\n> than one file, which is this map's precision ceiling. Tools: `git grep`, `watskeburt 1.x`; no\n> module-graph tool was installed or present, so module-level import edges are **not checked**.\n> Not scanned: the prompt-template store, repositories outside this checkout. Collapsed: 14\n> caller nodes into one count node on surface 1. No comparison run.\n\n## The blind-spot table\n\n| id | Surface | What is unseen | Probe that would settle it |\n|---|---|---|---|\n| b1 | docs-and-data-resident | Prompt and saved-query rows naming the field | Query the template table for rows containing the field name |\n| b2 | external-consumers | Repositories outside this checkout | Org-wide code search for the field name |\n\nTwo rows, and they are the part of this artefact most likely to be acted on. Both name a probe,\nso each is a task someone can pick up rather than a shrug someone has to live with.\n","bodyHtml":"<h2 id=\"a-worked-render\">A worked render</h2>\n<p>One envelope taken end to end. The change is a column drop — the <code>status</code> column on a <code>jobs</code>\ntable, with the value moving to a derived view. Names are illustrative; the shape is the point.</p>\n<h3 id=\"the-envelope-trimmed\">The envelope, trimmed</h3>\n<p>Fields not needed to draw are elided. Nothing that <em>is</em> needed has been added.</p>\n<pre><code class=\"language-json\">{\n  &quot;meta&quot;: {\n    &quot;baseRevision&quot;: &quot;3f9c1ab&quot;, &quot;headRevision&quot;: null, &quot;dirty&quot;: false,\n    &quot;resolver&quot;: &quot;name-based&quot;, &quot;collisions&quot;: 184,\n    &quot;toolsUsed&quot;: [&quot;git grep&quot;, &quot;watskeburt 1.x&quot;],\n    &quot;notScanned&quot;: [&quot;the prompt-template store&quot;, &quot;repositories outside this checkout&quot;]\n  },\n  &quot;surfaces&quot;: [\n    { &quot;id&quot;: &quot;callers&quot;, &quot;label&quot;: &quot;Callers&quot;, &quot;confidence&quot;: &quot;measured&quot; },\n    { &quot;id&quot;: &quot;ui&quot;, &quot;label&quot;: &quot;UI&quot;, &quot;confidence&quot;: &quot;measured&quot;,\n      &quot;negatives&quot;: [{ &quot;target&quot;: &quot;any screen rendering the field&quot;, &quot;query&quot;: &quot;rg -n \\&quot;status\\&quot; app/&quot;,\n                      &quot;tool&quot;: &quot;ripgrep&quot;, &quot;control&quot;: &quot;rg -n \\&quot;jobId\\&quot; app/&quot;, &quot;control_fired&quot;: true,\n                      &quot;verdict&quot;: &quot;absent&quot; }] },\n    { &quot;id&quot;: &quot;docs-and-data-resident&quot;, &quot;label&quot;: &quot;Docs, prompts, data-resident&quot;,\n      &quot;confidence&quot;: &quot;not checked&quot; }\n  ],\n  &quot;nodes&quot;: [\n    { &quot;id&quot;: &quot;n1&quot;, &quot;label&quot;: &quot;jobs.status column&quot;, &quot;path&quot;: &quot;schema/jobs.sql:12&quot;,\n      &quot;surface&quot;: &quot;data-contracts&quot;, &quot;state&quot;: &quot;changed&quot;, &quot;break&quot;: &quot;none&quot; },\n    { &quot;id&quot;: &quot;n4&quot;, &quot;label&quot;: &quot;summary query (string-built)&quot;, &quot;path&quot;: &quot;reports/summary.ts:88&quot;,\n      &quot;surface&quot;: &quot;data-contracts&quot;, &quot;state&quot;: &quot;affected&quot;, &quot;break&quot;: &quot;silent&quot;,\n      &quot;note&quot;: &quot;returns rows with the field undefined; the report renders zero&quot; }\n  ],\n  &quot;edges&quot;: [\n    { &quot;from&quot;: &quot;n4&quot;, &quot;to&quot;: &quot;n1&quot;, &quot;kind&quot;: &quot;reads&quot;, &quot;confidence&quot;: &quot;measured&quot;,\n      &quot;evidence&quot;: &quot;rg -n \\&quot;SELECT .*status\\&quot; reports/ -&gt; 1 hit @ 3f9c1ab&quot; }\n  ],\n  &quot;blindspots&quot;: [\n    { &quot;id&quot;: &quot;b1&quot;, &quot;label&quot;: &quot;prompt and saved-query rows naming the field&quot;,\n      &quot;surface&quot;: &quot;docs-and-data-resident&quot;,\n      &quot;reason&quot;: &quot;no datastore was reachable from this run&quot;,\n      &quot;probe&quot;: &quot;query the template table for rows containing the field name&quot; }\n  ]\n}\n</code></pre>\n<h3 id=\"the-diagram\">The diagram</h3>\n<pre><code class=\"language-mermaid\">flowchart LR\n  subgraph s_callers[&quot;1 · Callers — measured&quot;]\n    n3[&quot;listJobs() · api/jobs.ts:41 · compile&quot;]\n    n5[&quot;+14 more callers · measured&quot;]\n  end\n  subgraph s_data_contracts[&quot;2 · Data contracts and derivers — measured&quot;]\n    n1[&quot;jobs.status column · schema/jobs.sql:12&quot;]\n    n2[&quot;JobRow type · types/jobs.ts:8 · compile&quot;]\n    n4[&quot;summary query, string-built · reports/summary.ts:88 · silent&quot;]\n  end\n  subgraph s_jobs[&quot;3 · Jobs and registries — enumerated&quot;]\n    n6[&quot;retry-failed-jobs worker · workers/retry.ts:12 · runtime&quot;]\n  end\n  subgraph s_ui[&quot;4 · UI — measured&quot;]\n    c1[&quot;checked · empty — no screen renders the field&quot;]\n  end\n  subgraph s_tests_and_guards[&quot;5 · Tests and guards — measured&quot;]\n    n9[&quot;guard no-raw-status · ci/guards/status.mjs:4 · silent&quot;]\n  end\n  subgraph s_config_and_toolchains[&quot;6 · Config and toolchains — measured&quot;]\n    n10[&quot;two bundlers process reports/ · build/ · none&quot;]\n  end\n  subgraph s_deploy_ordering[&quot;7 · Deploy ordering — enumerated&quot;]\n    n11[&quot;code half — stops selecting the field&quot;]\n    n12[&quot;schema half — drop the column&quot;]\n  end\n  subgraph s_docs_and_data_resident[&quot;8 · Docs, prompts, data-resident — not checked&quot;]\n    b1[&quot;BLIND SPOT · prompt and saved-query rows · probe: query the template table&quot;]\n  end\n  subgraph s_external_consumers[&quot;9 · External consumers — sampled&quot;]\n    n13[&quot;warehouse job reading the field · unknown&quot;]\n    b2[&quot;BLIND SPOT · repositories outside this checkout · probe: org-wide code search&quot;]\n  end\n  subgraph s_second_order[&quot;10 · Second-order readers — inferred&quot;]\n    n14[&quot;daily completion-rate metric · silent&quot;]\n  end\n  subgraph s_reversibility[&quot;11 · Reversibility — measured&quot;]\n    n15[&quot;revert restores the column, not the rows written in the window&quot;]\n  end\n  subgraph s_work_in_flight[&quot;12 · Work in flight — enumerated&quot;]\n    n16[&quot;open PR renaming the same worker · workers/retry.ts · compile&quot;]\n    n17[&quot;written, unapplied migration on the same table · migrations/ · silent&quot;]\n  end\n  subgraph s_legend[&quot;Legend&quot;]\n    L1[&quot;changed&quot;]\n    L2[&quot;affected&quot;]\n    L3[&quot;unknown&quot;]\n    L4[&quot;blind spot&quot;]\n    L5[&quot;confidence: enumerated · measured · sampled · inferred · not checked&quot;]\n  end\n\n  n3 --&gt;|calls · measured| n2\n  n2 --&gt;|reads · enumerated| n1\n  n4 --&gt;|reads · measured| n1\n  n6 --&gt;|reads · measured| n1\n  n9 --&gt;|reads · measured| n1\n  n13 --&gt;|reads · inferred| n1\n  n14 --&gt;|derives · inferred| n4\n  n11 --&gt;|deploys-before · measured| n12\n  s_callers --&gt;|deploys-before · measured| n12\n\n  classDef changed   fill:#fde68a,stroke:#b45309,stroke-width:3px,color:#1f2937\n  classDef affected  fill:#dbeafe,stroke:#1d4ed8,stroke-width:1px,color:#1f2937\n  classDef unknown   fill:#f3f4f6,stroke:#6b7280,stroke-width:1px,stroke-dasharray:4 3,color:#374151\n  classDef blindspot fill:#fee2e2,stroke:#b91c1c,stroke-width:2px,stroke-dasharray:6 3,color:#7f1d1d\n  classDef coverage  fill:#ffffff,stroke:#9ca3af,stroke-width:1px,color:#6b7280\n\n  class n1,n11,n12 changed\n  class n2,n3,n4,n5,n6,n9,n10,n14,n15,n16,n17 affected\n  class n13 unknown\n  class b1,b2 blindspot\n  class c1,L5 coverage\n</code></pre>\n<h3 id=\"what-to-notice-in-it\">What to notice in it</h3>\n<ul>\n<li><strong>All twelve surfaces are there</strong>, in order, with their coverage word in the subgraph title.\nSurface 4 is empty and says which kind of empty it is: checked, with a control that fired.\nSurface 8 is empty of nodes and says <code>not checked</code>, and carries the blind spot that explains\nwhy.</li>\n<li><strong>Surface 12 is the one no checkout could have shown.</strong> An open pull request renames the same\nworker and a written-but-unapplied migration touches the same table; neither exists in the\ntree the rest of the map was drawn against, and both meet this change in one tree later.</li>\n<li><strong>The two blind spots are nodes</strong>, inside their own surfaces, each with its probe in the\nlabel. Neither is a caption. They are the first thing a reader&#39;s eye lands on, which is\ncorrect: they are the reason the rest of the picture is trustworthy.</li>\n<li><strong><code>silent</code> is a label tag, not a colour.</strong> Three nodes carry it — the string-built query, the\nguard that will pass forever once its pattern matches nothing, and the derived metric. Those\nthree are the entire reason the map was drawn; a reader can find them by scanning.</li>\n<li><strong>One edge runs from a subgraph to a node.</strong> <code>s_callers --&gt;|deploys-before| n12</code> says every\ncaller must stop reading before the column is dropped. That edge is why the diagram is a\n<code>flowchart</code> and not a <code>graph</code> — the older keyword cannot attach an edge to a subgraph.</li>\n<li><strong>One node has no edges at all.</strong> <code>n10</code> records that two bundlers process the same directory;\nthat is a property of a file, not a relationship between two nodes. Edgeless nodes are\nlegitimate and the layout must keep them.</li>\n<li><strong>Evidence is not on the edge label.</strong> Labels carry kind and confidence; the <code>evidence</code>\nstring lives in the envelope and, in the interactive artefact, in the panel that opens when an\nedge is selected. Putting a <code>path:line @ sha</code> on every arrow makes the diagram unreadable and\ndrops it below the node cap for the wrong reason.</li>\n<li><strong>Node states came from the envelope.</strong> <code>n13</code> is <code>unknown</code> because nobody could establish\nwhether the warehouse job breaks — it is not <code>affected</code> with a shrug attached.</li>\n</ul>\n<h3 id=\"the-metadata-line\">The metadata line</h3>\n<p>Directly under the diagram, in prose, every time:</p>\n<blockquote>\n<p>Rendered from the blast-area envelope <code>sha256:…</code> at base <code>3f9c1ab</code>, clean tree, no head\nrevision. Resolver: <strong>name-based</strong>; 184 exported names in this repository are defined in more\nthan one file, which is this map&#39;s precision ceiling. Tools: <code>git grep</code>, <code>watskeburt 1.x</code>; no\nmodule-graph tool was installed or present, so module-level import edges are <strong>not checked</strong>.\nNot scanned: the prompt-template store, repositories outside this checkout. Collapsed: 14\ncaller nodes into one count node on surface 1. No comparison run.</p>\n</blockquote>\n<h3 id=\"the-blind-spot-table\">The blind-spot table</h3>\n<table>\n<thead>\n<tr>\n<th>id</th>\n<th>Surface</th>\n<th>What is unseen</th>\n<th>Probe that would settle it</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>b1</td>\n<td>docs-and-data-resident</td>\n<td>Prompt and saved-query rows naming the field</td>\n<td>Query the template table for rows containing the field name</td>\n</tr>\n<tr>\n<td>b2</td>\n<td>external-consumers</td>\n<td>Repositories outside this checkout</td>\n<td>Org-wide code search for the field name</td>\n</tr>\n</tbody></table>\n<p>Two rows, and they are the part of this artefact most likely to be acted on. Both name a probe,\nso each is a task someone can pick up rather than a shrug someone has to live with.</p>\n","words":1161}],"body":"# Visualise a blast area\n\nA blast map is a decision surface written down. Drawing it is not decoration: a set of\nsurfaces, states and edges that reads as a table of facts reads as a shape the moment it is\nlaid out, and the shape is what a reviewer actually argues with.\n\nThe risk of drawing it is that a diagram looks finished. Whatever the map could not see\ndisappears when it becomes a picture, because absence has no glyph. An inferred edge and a\ncompiler-resolved one arrive at the reader as the same arrow. A node reached by three paths\npicks up three colours and gets reconciled in someone's head, differently each time.\n\nSo this skill renders under a contract: **blind spots occupy space on the page**, changed and\naffected are visually distinct, every edge carries the confidence it was born with, and the\nlayout is fixed so that two renders of the same repository can be put side by side.\n\nIt draws. It does not decide — `blast-area` produced the envelope and this skill does not get\na vote in what went into it.\n\n## What a rendered map must not lose\n\n- **The blind spots.** A map's most valuable section is what it could not see, and that\n  section is exactly the one a diagram silently drops. Rendered as a caption underneath, it is\n  read as a disclaimer. Rendered as nodes inside the surface they belong to, it is read as\n  part of the map — which it is. An unverifiable criterion is a blind spot, not a failure.\n- **The difference between changed and affected.** A diagram that paints both the same colour\n  answers a different question than the one that was asked. The changed set is what someone is\n  about to do; the affected set is what happens to them for it.\n- **One state per node.** Where several paths reach the same node, the most severe already won\n  upstream — `changed` over `affected` over `unknown`. A renderer that re-derives state gets a\n  node in two colours and a reader who has to reconcile it.\n- **Confidence.** An `inferred` edge drawn identically to an `enumerated` one launders a guess\n  into a fact, and the fact travels. Confidence must survive the render, in the label or in the\n  styling, from the same five fixed words the map used: `enumerated`, `measured`, `sampled`,\n  `inferred`, `not checked`. Never a percentage.\n- **Empty surfaces.** A surface that was checked and found empty is a finding. A surface that\n  was never checked is a hole. Both are invisible if the renderer drops empty subgraphs, so it\n  does not drop them.\n\nComposition: **`blast-area`** owns the map and the envelope this skill consumes.\n**`investigate-codebase`** owns the searching underneath it. **`land-complex-change`** turns\nthe same envelope into a touch-set budget rather than a picture. **`derive-codebase-context`**\nbuilds the durable, compiler-resolved index that raises the precision of everything upstream\nof here. Install the companions with `npx skills add crissmoldovan/agent-skills`.\n\n## When to Use\n\n- A blast map exists and has to be reviewed by people who will not read a JSON envelope.\n- A pull request needs a picture of what the change reaches, inline, in a comment.\n- A schema or interface change spans surfaces and the interesting part is the shape: which\n  surfaces are dense, which are empty, where the graph crosses a boundary.\n- Someone needs to explore the map rather than read it — expand a surface, filter to silent\n  breaks, follow an edge to its evidence.\n- A refactor claims \"no behaviour change\" and the claim needs testing against the map's own\n  delta.\n- A removal or deprecation needs a before-and-after that shows what stopped being reachable.\n- The blind spots keep getting lost between the map and the meeting.\n\nDo not use it to produce the map — `blast-area` does that, and a map assembled to render well\nis shaped by the wrong constraint. Do not use it to answer a question about the code; that is\n`investigate-codebase`. Do not use it to draw a picture of a change that already landed —\n`describe-changes` reads the diff and anchors claims to hunks. Do not use it to plan or\ncontain the work: `land-complex-change` converts the envelope into a budget and a gate ladder.\nDo not use it as a review of a diff — `request-blocks-review` and `blocks` own that loop. And\ndo not use it to build a durable architecture diagram that lives in the repository and is\nregenerated in CI; that is `derive-codebase-context`, and its artifacts outlive one change.\n\n## Prerequisites\n\n1. **A validated blast-area envelope.** Not a file list, not prose — the envelope, with\n   `meta`, `surfaces`, `nodes`, `edges`, `blindspots`.\n   **Complete when:** all twelve surface ids are present including the empty ones; every node\n   has exactly one `state` and a `break`; every edge has both `confidence` and `evidence`;\n   every blindspot has a `reason` and a `probe`.\n2. **The audience and the surface it will be read on.** A forge comment, a docs page, a chat\n   message and a browser tab have different limits, and the answer decides whether the\n   interactive file is worth generating at all.\n   **Complete when:** the target surface is named, and whether mermaid alone suffices is\n   decided rather than assumed.\n3. **Tool attendance declared — never installed.** Record which of the optional tools are\n   already present, with versions, and what each absence costs.\n   **Complete when:** each tool is recorded present-with-version or absent, and the degradation\n   for every absent one is written down for the render's metadata line.\n4. **A node budget.** Count the nodes in the envelope against the working cap before laying\n   anything out; a diagram that exceeds the renderer's input limit fails as a blank box, not as\n   an error message.\n   **Complete when:** the node count is counted, and either it is under the cap or a collapse\n   rule is chosen and recorded.\n5. **Comparison mode decided.** Off unless it was asked for and its preconditions hold.\n   **Complete when:** comparison is off, or two envelopes are named with the same resolver and\n   the same surface ids, and both base and head revisions are recorded.\n\n## Procedure\n\n1. **Validate the envelope before drawing a single node.** A renderer inherits every silence in\n   its input and then makes it invisible. Check the validity conditions from the map's own\n   contract: twelve surfaces present; one state and one break per node; a `note` on every\n   `silent` node; confidence and evidence on every edge; every empty surface carrying either a\n   negative with a fired control or a `not checked` confidence; `meta.notScanned` non-empty or\n   explicitly empty. Where the envelope fails, **say so and render the failure** — an empty\n   surface with no negatives is drawn as `not checked`, never as clean. Never invent a node,\n   an edge or a state to make the picture connected.\n\n2. **Take stock of the tools that are already here. Install nothing.** Tiering, and what each\n   absence costs, is in [tool tiering](references/tool-tiering.md).\n\n   - **Tier 1, use if present.** `dependency-cruiser` can emit a mermaid graph of the modules\n     reachable from a change — roughly `depcruise --affected <base-revision> --output-type\n     mermaid` — and `--highlight` takes a regular expression, which is how the **changed** set\n     is separated from the merely **affected** set. `watskeburt` is the rename-aware\n     changed-since-a-revision lister that can produce exactly that expression, and it is\n     usable standalone when dependency-cruiser is not installed. Confirm flag spellings against\n     the installed version's own `--help`; both tools are JavaScript and TypeScript only, so on\n     any other language they contribute nothing and must not be presented as coverage.\n   - **Graphviz `dot` is not assumed.** Do not emit a `.dot` file as the deliverable on the\n     hope that something downstream renders it. If `dot` happens to be present and someone\n     wants a raster, that is a bonus artefact, never the primary one.\n   - **Tier 2 is the envelope alone**, and it is the normal case. The mermaid is built by hand\n     from `nodes` and `edges`. Nothing about the contract below changes; what changes is that\n     module-level edges the tools would have enumerated are absent, and the render's metadata\n     line says so in the same words the map used: `not checked`.\n\n3. **Emit the classic diagram first: mermaid `flowchart LR`.** Always `flowchart`, never\n   `graph` — only `flowchart` permits edges to and from subgraphs, and this diagram needs them\n   for deploy-ordering edges and for blindspots that attach to a whole surface. `LR` because\n   surfaces are read as columns of consequence, left to right, and long labels stay legible.\n   The full template, id scheme and legend are in\n   [the mermaid contract](references/mermaid-contract.md).\n\n   - **Fixed-order surface subgraphs with fixed ids, present even when empty.** The order is\n     the map's order: `callers`, `data-contracts`, `jobs`, `ui`, `tests-and-guards`,\n     `config-and-toolchains`, `deploy-ordering`, `docs-and-data-resident`,\n     `external-consumers`, `second-order`, `reversibility`, `work-in-flight`. The subgraph id\n     is the surface id with hyphens as underscores and an `s_` prefix, so two renders diff\n     cleanly and a reader who has seen one of these diagrams can find a surface without\n     reading the labels.\n   - **An empty subgraph gets one node stating its coverage** — `checked · empty` or\n     `not checked` — because an empty box with nothing in it is read as \"nothing here\", which\n     is a claim the map may not have made.\n   - **Plain `-->` edges.** The kind and the confidence go in the edge label\n     (`-->|calls · measured|`). Dotted and thick arrow variants render inconsistently across\n     mermaid versions and are the first thing lost to minification; a label survives.\n\n4. **Style changed against affected, and let `unknown` look unknown.** One `classDef` per state\n   plus one per break timing, applied from the envelope's own values — never re-derived at\n   render time, because the deepest-touch-wins reconciliation already happened upstream and\n   doing it twice invites two answers. `changed` reads as the strongest; `affected` as\n   secondary; `unknown` as visibly unresolved rather than as absent. Break timing rides along:\n   `silent` must be distinguishable at a glance from `compile`, since the whole reason the map\n   exists is that those two cost different orders of magnitude.\n\n5. **Put the blind spots on the diagram.** Every entry in `blindspots` becomes a node inside\n   the subgraph of its `surface`, styled as its own class, labelled with what is unseen and\n   carrying its `probe` — in the label if it is short, in the accompanying table if it is not.\n   Plus one legend node stating what the styles mean. **Not a caption, not a footnote**: a\n   caption is read as a disclaimer about the diagram, and a node is read as part of the map.\n   A blindspot without a probe should not have left `blast-area`; if one arrives anyway, render\n   it and say the probe is missing.\n\n6. **Respect the node cap. Collapse, never truncate.** Large graphs hit renderer input limits\n   and fail as a blank box rather than as an error, and tool-generated mermaid is often\n   minified by default precisely to stay under those limits. Take **around 120 nodes** as the\n   working ceiling for one diagram: that number is **reasoned, not measured** — it is being\n   pinned by benchmark measurement, so measure it against your own renderer and adjust rather\n   than trusting it. Over the cap, collapse **within a surface** into a count node\n   (`+14 more callers · measured`) that keeps the confidence of what it stands for, or split\n   into one diagram per surface with a fixed index. Never drop nodes silently, and never drop\n   a blindspot to make room.\n\n7. **Optionally emit the interactive file: one HTML file, one literal.** Only when the audience\n   will open a browser and the map is big enough to explore. The rules are absolute and the\n   full skeleton is in [the smart HTML contract](references/smart-html.md).\n\n   - **One file. No build step. No external requests** — no CDN, no font fetch, no telemetry,\n     no fetch of the envelope at runtime. It must render identically opened from a disk with\n     the network off.\n   - **The data arrives as a single generated literal**, `const BLAST = { meta, surfaces,\n     nodes, edges, blindspots }` — the envelope, unedited, so the page and the map cannot\n     disagree. Everything the page shows is derived from `BLAST` at load.\n   - **`meta` pins provenance**: the tool and its version, the renderer version, `baseRevision`,\n     `headRevision`, a fingerprint of the envelope, and `notScanned[]` shown in the interface\n     rather than buried in the source.\n   - **Affordances**: expand and collapse a surface, filter by state, break timing and\n     confidence, and follow an edge to the evidence string that justifies it. Confidence is\n     styled from the same five words. Blindspots are a first-class panel that cannot be\n     filtered away.\n\n8. **Comparison mode: only when asked, only when the preconditions hold, and the delta is a\n   classification.** Default off. Preconditions: two envelopes of the same change shape, same\n   `resolver`, same surface ids, both revisions recorded. The output is **not a second graph** —\n   two graphs side by side are compared by eye and by eye is where differences hide. It is a\n   per-surface classification: **added**, **removed**, **rewired** (same endpoints, different\n   kind, confidence or evidence). Worked cases are in\n   [comparison mode](references/comparison-mode.md). It earns its keep in two situations: a\n   refactor whose claim is \"no behaviour change\", where **a non-empty delta is the finding**;\n   and a removal or deprecation, where the question is precisely what stopped being reachable.\n\n9. **Caption the render with what it is not.** Every artefact carries a metadata line or panel:\n   base and head revision, dirty state, `resolver`, tools used with versions, the envelope\n   fingerprint, `notScanned[]`, and whether collapsing happened and where. A diagram that\n   travels without this is quoted a week later as though it were complete.\n\n10. **Hand both artefacts back with where they render.** Mermaid goes wherever mermaid already\n    renders, and the fenced block is the deliverable — not a screenshot of it. The HTML file is\n    handed back by path with the statement that it needs no server. If comparison mode ran, the\n    classification table travels with them, not instead of them.\n\n11. **Document the run when the branch calls for it.** The convention is below, and it is\n    identical in every skill of this family that supports it.\n\n### The run record\n\n**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as \"document the run\"), at `docs/visualise-blast-area/<UTC-date>-<slug>.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n\nRecords are written per [the run-record convention](references/documenting-the-run.md).\n\n## Usage Examples\n\n```text\nHere is the blast map for the column drop. Draw it — mermaid, one diagram, all twelve surfaces\nincluding the empty ones — and put the blind spots on the diagram itself rather than in a note\nunderneath. I am pasting this into a pull request comment.\n```\n\n```text\nRender this map and make the changed set obvious against the merely affected set. I care most\nabout which of the affected things break silently, so make that visible at a glance rather than\nsomething I have to read the labels for.\n```\n\n```text\nThis map has about three hundred nodes. Give me something I can actually explore — a single\nHTML file I can open from disk with the network off, where I can filter to the silent breaks\nand click an edge to see the evidence behind it.\n```\n\n```text\nWe refactored the ingest path and the claim is no behaviour change. Map it before and after and\ncompare them — but give me the delta as a list of what was added, removed and rewired per\nsurface, not two pictures to squint at.\n```\n\n```text\nDraw this one and document the run (--document), because the diagram is going into the design\nreview and I want the provenance next to it: which tools were available, which surfaces were\nnever checked, and what the picture is not showing.\n```\n\n## Pitfalls\n\n- **Blind spots rendered as a caption.** Underneath the picture they read as a disclaimer about\n  the drawing. Inside it, as nodes, they read as part of the map — which is what they are.\n- **Dropping empty subgraphs to tidy the layout.** Checked-and-empty is a finding and\n  never-checked is a hole; deleting the box makes both look like the same nothing.\n- **Colouring changed and affected the same.** The diagram then answers \"what is involved\",\n  which nobody asked, instead of \"what is about to happen and to whom\".\n- **Re-deriving node state at render time.** The most-severe-wins reconciliation happened\n  upstream. Doing it again produces a second answer, and the two diagrams disagree.\n- **Arrows without confidence.** An inferred edge and an enumerated one are the same\n  arrowhead, and the reader has no way to tell. Put the confidence in the label.\n- **Using `graph` instead of `flowchart`.** It looks equivalent until an edge has to touch a\n  subgraph, and then it silently does not work.\n- **Fancy arrow types carrying meaning.** Dotted and thick variants render inconsistently\n  across versions and are the first casualty of minification. Meaning belongs in labels and in\n  node styling.\n- **Exceeding the node cap.** Past the renderer's input limit the output is a blank box, not an\n  error — so a too-large diagram looks like a rendering bug rather than an oversized graph.\n- **Truncating rather than collapsing.** A silently shortened diagram is a map with a lie in\n  it. A count node that keeps its confidence is honest and takes one line.\n- **Installing a tool to draw a picture.** The tools are used if present. Adding a dependency\n  to the host repository to render a diagram is a side effect nobody asked for, and it changes\n  a lockfile in a branch that was supposed to change nothing.\n- **Presenting JavaScript-only tooling as full coverage.** In a polyglot repository the module\n  graph those tools produce covers one language; the other languages are `not checked`, and the\n  metadata line has to say it.\n- **An HTML file that fetches anything.** One remote font or one CDN script and the artefact\n  stops working on a plane, behind a proxy, or in two years. One file, no requests.\n- **Editing the envelope on the way into the page.** The literal is the map. Reshape it and the\n  picture and the decision surface quietly diverge.\n- **Comparison mode as two graphs.** Side-by-side pictures are compared by eye, and by eye is\n  where a rewired edge hides. The delta is a classification.\n- **Turning comparison on by default.** It doubles the work, needs two valid envelopes, and\n  answers a question that was not asked in most runs.\n- **A diagram that travels without its metadata.** Weeks later it is quoted as complete, and\n  the surfaces nobody checked have become surfaces somebody checked.\n\n## Verification\n\n- [ ] The envelope was validated before rendering, and any failure was rendered rather than\n      smoothed over.\n- [ ] The diagram is `flowchart LR` — not `graph` — and edges are plain `-->` with kind and\n      confidence in the label.\n- [ ] **All twelve surface subgraphs are present in the fixed order with their fixed ids,\n      including the empty ones**, and each empty one states its coverage.\n- [ ] Changed, affected and unknown are visually distinct, and `silent` breaks are\n      distinguishable from `compile` breaks at a glance.\n- [ ] Node states came from the envelope and were not re-derived; no node appears in two states.\n- [ ] **Every blindspot appears as a node on the diagram**, in its own surface, with its probe —\n      not as a caption, and none was dropped to save space.\n- [ ] Every edge on the diagram carries its confidence from the five fixed words, and no\n      percentage appears anywhere in the render.\n- [ ] The node count was checked against the cap; where it was over, nodes were collapsed into\n      labelled count nodes or split across indexed diagrams, and nothing was silently dropped.\n- [ ] No tool was installed. Every optional tool is recorded present-with-version or absent,\n      and each absence has its degradation stated in the render's metadata.\n- [ ] Where module-graph tooling covered only part of a polyglot repository, the uncovered\n      languages are reported as `not checked`.\n- [ ] If the interactive file was produced: one file, no external requests, no build step, and\n      it renders from disk with the network off.\n- [ ] If the interactive file was produced: it carries exactly one generated\n      `const BLAST = { meta, surfaces, nodes, edges, blindspots }` literal, unedited from the\n      envelope, and `meta` pins tool and versions, base and head revisions, fingerprint and\n      `notScanned[]`.\n- [ ] Comparison mode is off unless it was asked for and its preconditions held; where it ran,\n      the delta is a per-surface classification of added, removed and rewired — not a second\n      graph.\n- [ ] Every artefact carries its metadata: revisions, resolver, tools, fingerprint,\n      `notScanned[]`, and whether collapsing happened.\n- [ ] Nothing in the repository was changed, and nothing was committed except a run record that\n      was explicitly asked for.\n- [ ] Where a record was written, it exists at `docs/visualise-blast-area/<UTC-date>-<slug>.md`\n      (or the harness scratch path for an unattended run, named in the final answer), under the\n      five required headings.\n\n## Deeper reading\n\n**Prior art, honestly.** The nearest live tool in this space is **mindwalk**\n(`cosmtrek/mindwalk` on GitHub), and it visualises **agent sessions**, not codebases: a treemap\nof files touched during a run, with **no edges at all**, and a comparison mode that diffs one\nsession against another rather than one state of a repository against another. It is real,\nactively maintained and good at its own job, and it is the wrong tool for this one — a blast map\nis edges, and a treemap has none. Four of its conventions were adopted anyway, because each\nsolves a problem this skill also has:\n\n- **Deepest-touch-wins**, one state per node, resolved once so a node never renders in two\n  colours and never has to be reconciled by the reader.\n- **A first-class \"outcome unknown\" slot.** Unresolved is a result and gets its own styling,\n  rather than being folded into \"unaffected\" where it disappears.\n- **An unverifiable criterion is a blind spot, not a failure.** It occupies space on the page\n  with the probe that would settle it, instead of being dropped for being unprovable.\n- **Findings and verdicts kept separate.** Individual observations are reported as they were\n  found; the summary rolls up from them mechanically. A hand-written summary that does not\n  follow from the findings is the failure mode this separation exists to prevent.\n\n**The detail, one level down.**\n\n- [Tool tiering](references/tool-tiering.md): what each optional tool contributes, the commands\n  and flags, why nothing is installed, and what precisely degrades when each is absent.\n- [The mermaid contract](references/mermaid-contract.md): the full `flowchart LR` template,\n  fixed subgraph ids, classDef styling, edge labels, the legend, blindspot nodes, and the\n  collapse rules for the node cap.\n- [The smart HTML contract](references/smart-html.md): the single-file skeleton, the `BLAST`\n  literal, the `meta` provenance fields, the affordances, and the prohibitions that keep the\n  artefact working offline in two years.\n- [Comparison mode](references/comparison-mode.md): the preconditions, the added / removed /\n  rewired classification, worked deltas for a refactor and a removal, and why it is not a\n  second graph.\n- [A worked render](references/worked-render.md): one envelope taken end to end into a diagram,\n  with the blindspot node, the empty-surface nodes and the metadata line in place.\n- [The run-record convention](references/documenting-the-run.md): when a record is written,\n  where it goes, its five headings, the prohibitions, and a worked record.\n","bodyHtml":"<h2 id=\"visualise-a-blast-area\">Visualise a blast area</h2>\n<p>A blast map is a decision surface written down. Drawing it is not decoration: a set of\nsurfaces, states and edges that reads as a table of facts reads as a shape the moment it is\nlaid out, and the shape is what a reviewer actually argues with.</p>\n<p>The risk of drawing it is that a diagram looks finished. Whatever the map could not see\ndisappears when it becomes a picture, because absence has no glyph. An inferred edge and a\ncompiler-resolved one arrive at the reader as the same arrow. A node reached by three paths\npicks up three colours and gets reconciled in someone&#39;s head, differently each time.</p>\n<p>So this skill renders under a contract: <strong>blind spots occupy space on the page</strong>, changed and\naffected are visually distinct, every edge carries the confidence it was born with, and the\nlayout is fixed so that two renders of the same repository can be put side by side.</p>\n<p>It draws. It does not decide — <code>blast-area</code> produced the envelope and this skill does not get\na vote in what went into it.</p>\n<h3 id=\"what-a-rendered-map-must-not-lose\">What a rendered map must not lose</h3>\n<ul>\n<li><strong>The blind spots.</strong> A map&#39;s most valuable section is what it could not see, and that\nsection is exactly the one a diagram silently drops. Rendered as a caption underneath, it is\nread as a disclaimer. Rendered as nodes inside the surface they belong to, it is read as\npart of the map — which it is. An unverifiable criterion is a blind spot, not a failure.</li>\n<li><strong>The difference between changed and affected.</strong> A diagram that paints both the same colour\nanswers a different question than the one that was asked. The changed set is what someone is\nabout to do; the affected set is what happens to them for it.</li>\n<li><strong>One state per node.</strong> Where several paths reach the same node, the most severe already won\nupstream — <code>changed</code> over <code>affected</code> over <code>unknown</code>. A renderer that re-derives state gets a\nnode in two colours and a reader who has to reconcile it.</li>\n<li><strong>Confidence.</strong> An <code>inferred</code> edge drawn identically to an <code>enumerated</code> one launders a guess\ninto a fact, and the fact travels. Confidence must survive the render, in the label or in the\nstyling, from the same five fixed words the map used: <code>enumerated</code>, <code>measured</code>, <code>sampled</code>,\n<code>inferred</code>, <code>not checked</code>. Never a percentage.</li>\n<li><strong>Empty surfaces.</strong> A surface that was checked and found empty is a finding. A surface that\nwas never checked is a hole. Both are invisible if the renderer drops empty subgraphs, so it\ndoes not drop them.</li>\n</ul>\n<p>Composition: <strong><code>blast-area</code></strong> owns the map and the envelope this skill consumes.\n<strong><code>investigate-codebase</code></strong> owns the searching underneath it. <strong><code>land-complex-change</code></strong> turns\nthe same envelope into a touch-set budget rather than a picture. <strong><code>derive-codebase-context</code></strong>\nbuilds the durable, compiler-resolved index that raises the precision of everything upstream\nof here. Install the companions with <code>npx skills add crissmoldovan/agent-skills</code>.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>A blast map exists and has to be reviewed by people who will not read a JSON envelope.</li>\n<li>A pull request needs a picture of what the change reaches, inline, in a comment.</li>\n<li>A schema or interface change spans surfaces and the interesting part is the shape: which\nsurfaces are dense, which are empty, where the graph crosses a boundary.</li>\n<li>Someone needs to explore the map rather than read it — expand a surface, filter to silent\nbreaks, follow an edge to its evidence.</li>\n<li>A refactor claims &quot;no behaviour change&quot; and the claim needs testing against the map&#39;s own\ndelta.</li>\n<li>A removal or deprecation needs a before-and-after that shows what stopped being reachable.</li>\n<li>The blind spots keep getting lost between the map and the meeting.</li>\n</ul>\n<p>Do not use it to produce the map — <code>blast-area</code> does that, and a map assembled to render well\nis shaped by the wrong constraint. Do not use it to answer a question about the code; that is\n<code>investigate-codebase</code>. Do not use it to draw a picture of a change that already landed —\n<code>describe-changes</code> reads the diff and anchors claims to hunks. Do not use it to plan or\ncontain the work: <code>land-complex-change</code> converts the envelope into a budget and a gate ladder.\nDo not use it as a review of a diff — <code>request-blocks-review</code> and <code>blocks</code> own that loop. And\ndo not use it to build a durable architecture diagram that lives in the repository and is\nregenerated in CI; that is <code>derive-codebase-context</code>, and its artifacts outlive one change.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>A validated blast-area envelope.</strong> Not a file list, not prose — the envelope, with\n<code>meta</code>, <code>surfaces</code>, <code>nodes</code>, <code>edges</code>, <code>blindspots</code>.\n<strong>Complete when:</strong> all twelve surface ids are present including the empty ones; every node\nhas exactly one <code>state</code> and a <code>break</code>; every edge has both <code>confidence</code> and <code>evidence</code>;\nevery blindspot has a <code>reason</code> and a <code>probe</code>.</li>\n<li><strong>The audience and the surface it will be read on.</strong> A forge comment, a docs page, a chat\nmessage and a browser tab have different limits, and the answer decides whether the\ninteractive file is worth generating at all.\n<strong>Complete when:</strong> the target surface is named, and whether mermaid alone suffices is\ndecided rather than assumed.</li>\n<li><strong>Tool attendance declared — never installed.</strong> Record which of the optional tools are\nalready present, with versions, and what each absence costs.\n<strong>Complete when:</strong> each tool is recorded present-with-version or absent, and the degradation\nfor every absent one is written down for the render&#39;s metadata line.</li>\n<li><strong>A node budget.</strong> Count the nodes in the envelope against the working cap before laying\nanything out; a diagram that exceeds the renderer&#39;s input limit fails as a blank box, not as\nan error message.\n<strong>Complete when:</strong> the node count is counted, and either it is under the cap or a collapse\nrule is chosen and recorded.</li>\n<li><strong>Comparison mode decided.</strong> Off unless it was asked for and its preconditions hold.\n<strong>Complete when:</strong> comparison is off, or two envelopes are named with the same resolver and\nthe same surface ids, and both base and head revisions are recorded.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><p><strong>Validate the envelope before drawing a single node.</strong> A renderer inherits every silence in\nits input and then makes it invisible. Check the validity conditions from the map&#39;s own\ncontract: twelve surfaces present; one state and one break per node; a <code>note</code> on every\n<code>silent</code> node; confidence and evidence on every edge; every empty surface carrying either a\nnegative with a fired control or a <code>not checked</code> confidence; <code>meta.notScanned</code> non-empty or\nexplicitly empty. Where the envelope fails, <strong>say so and render the failure</strong> — an empty\nsurface with no negatives is drawn as <code>not checked</code>, never as clean. Never invent a node,\nan edge or a state to make the picture connected.</p>\n</li>\n<li><p><strong>Take stock of the tools that are already here. Install nothing.</strong> Tiering, and what each\nabsence costs, is in <a href=\"references/tool-tiering.md\">tool tiering</a>.</p>\n<ul>\n<li><strong>Tier 1, use if present.</strong> <code>dependency-cruiser</code> can emit a mermaid graph of the modules\nreachable from a change — roughly <code>depcruise --affected &lt;base-revision&gt; --output-type mermaid</code> — and <code>--highlight</code> takes a regular expression, which is how the <strong>changed</strong> set\nis separated from the merely <strong>affected</strong> set. <code>watskeburt</code> is the rename-aware\nchanged-since-a-revision lister that can produce exactly that expression, and it is\nusable standalone when dependency-cruiser is not installed. Confirm flag spellings against\nthe installed version&#39;s own <code>--help</code>; both tools are JavaScript and TypeScript only, so on\nany other language they contribute nothing and must not be presented as coverage.</li>\n<li><strong>Graphviz <code>dot</code> is not assumed.</strong> Do not emit a <code>.dot</code> file as the deliverable on the\nhope that something downstream renders it. If <code>dot</code> happens to be present and someone\nwants a raster, that is a bonus artefact, never the primary one.</li>\n<li><strong>Tier 2 is the envelope alone</strong>, and it is the normal case. The mermaid is built by hand\nfrom <code>nodes</code> and <code>edges</code>. Nothing about the contract below changes; what changes is that\nmodule-level edges the tools would have enumerated are absent, and the render&#39;s metadata\nline says so in the same words the map used: <code>not checked</code>.</li>\n</ul>\n</li>\n<li><p><strong>Emit the classic diagram first: mermaid <code>flowchart LR</code>.</strong> Always <code>flowchart</code>, never\n<code>graph</code> — only <code>flowchart</code> permits edges to and from subgraphs, and this diagram needs them\nfor deploy-ordering edges and for blindspots that attach to a whole surface. <code>LR</code> because\nsurfaces are read as columns of consequence, left to right, and long labels stay legible.\nThe full template, id scheme and legend are in\n<a href=\"references/mermaid-contract.md\">the mermaid contract</a>.</p>\n<ul>\n<li><strong>Fixed-order surface subgraphs with fixed ids, present even when empty.</strong> The order is\nthe map&#39;s order: <code>callers</code>, <code>data-contracts</code>, <code>jobs</code>, <code>ui</code>, <code>tests-and-guards</code>,\n<code>config-and-toolchains</code>, <code>deploy-ordering</code>, <code>docs-and-data-resident</code>,\n<code>external-consumers</code>, <code>second-order</code>, <code>reversibility</code>, <code>work-in-flight</code>. The subgraph id\nis the surface id with hyphens as underscores and an <code>s_</code> prefix, so two renders diff\ncleanly and a reader who has seen one of these diagrams can find a surface without\nreading the labels.</li>\n<li><strong>An empty subgraph gets one node stating its coverage</strong> — <code>checked · empty</code> or\n<code>not checked</code> — because an empty box with nothing in it is read as &quot;nothing here&quot;, which\nis a claim the map may not have made.</li>\n<li><strong>Plain <code>--&gt;</code> edges.</strong> The kind and the confidence go in the edge label\n(<code>--&gt;|calls · measured|</code>). Dotted and thick arrow variants render inconsistently across\nmermaid versions and are the first thing lost to minification; a label survives.</li>\n</ul>\n</li>\n<li><p><strong>Style changed against affected, and let <code>unknown</code> look unknown.</strong> One <code>classDef</code> per state\nplus one per break timing, applied from the envelope&#39;s own values — never re-derived at\nrender time, because the deepest-touch-wins reconciliation already happened upstream and\ndoing it twice invites two answers. <code>changed</code> reads as the strongest; <code>affected</code> as\nsecondary; <code>unknown</code> as visibly unresolved rather than as absent. Break timing rides along:\n<code>silent</code> must be distinguishable at a glance from <code>compile</code>, since the whole reason the map\nexists is that those two cost different orders of magnitude.</p>\n</li>\n<li><p><strong>Put the blind spots on the diagram.</strong> Every entry in <code>blindspots</code> becomes a node inside\nthe subgraph of its <code>surface</code>, styled as its own class, labelled with what is unseen and\ncarrying its <code>probe</code> — in the label if it is short, in the accompanying table if it is not.\nPlus one legend node stating what the styles mean. <strong>Not a caption, not a footnote</strong>: a\ncaption is read as a disclaimer about the diagram, and a node is read as part of the map.\nA blindspot without a probe should not have left <code>blast-area</code>; if one arrives anyway, render\nit and say the probe is missing.</p>\n</li>\n<li><p><strong>Respect the node cap. Collapse, never truncate.</strong> Large graphs hit renderer input limits\nand fail as a blank box rather than as an error, and tool-generated mermaid is often\nminified by default precisely to stay under those limits. Take <strong>around 120 nodes</strong> as the\nworking ceiling for one diagram: that number is <strong>reasoned, not measured</strong> — it is being\npinned by benchmark measurement, so measure it against your own renderer and adjust rather\nthan trusting it. Over the cap, collapse <strong>within a surface</strong> into a count node\n(<code>+14 more callers · measured</code>) that keeps the confidence of what it stands for, or split\ninto one diagram per surface with a fixed index. Never drop nodes silently, and never drop\na blindspot to make room.</p>\n</li>\n<li><p><strong>Optionally emit the interactive file: one HTML file, one literal.</strong> Only when the audience\nwill open a browser and the map is big enough to explore. The rules are absolute and the\nfull skeleton is in <a href=\"references/smart-html.md\">the smart HTML contract</a>.</p>\n<ul>\n<li><strong>One file. No build step. No external requests</strong> — no CDN, no font fetch, no telemetry,\nno fetch of the envelope at runtime. It must render identically opened from a disk with\nthe network off.</li>\n<li><strong>The data arrives as a single generated literal</strong>, <code>const BLAST = { meta, surfaces, nodes, edges, blindspots }</code> — the envelope, unedited, so the page and the map cannot\ndisagree. Everything the page shows is derived from <code>BLAST</code> at load.</li>\n<li><strong><code>meta</code> pins provenance</strong>: the tool and its version, the renderer version, <code>baseRevision</code>,\n<code>headRevision</code>, a fingerprint of the envelope, and <code>notScanned[]</code> shown in the interface\nrather than buried in the source.</li>\n<li><strong>Affordances</strong>: expand and collapse a surface, filter by state, break timing and\nconfidence, and follow an edge to the evidence string that justifies it. Confidence is\nstyled from the same five words. Blindspots are a first-class panel that cannot be\nfiltered away.</li>\n</ul>\n</li>\n<li><p><strong>Comparison mode: only when asked, only when the preconditions hold, and the delta is a\nclassification.</strong> Default off. Preconditions: two envelopes of the same change shape, same\n<code>resolver</code>, same surface ids, both revisions recorded. The output is <strong>not a second graph</strong> —\ntwo graphs side by side are compared by eye and by eye is where differences hide. It is a\nper-surface classification: <strong>added</strong>, <strong>removed</strong>, <strong>rewired</strong> (same endpoints, different\nkind, confidence or evidence). Worked cases are in\n<a href=\"references/comparison-mode.md\">comparison mode</a>. It earns its keep in two situations: a\nrefactor whose claim is &quot;no behaviour change&quot;, where <strong>a non-empty delta is the finding</strong>;\nand a removal or deprecation, where the question is precisely what stopped being reachable.</p>\n</li>\n<li><p><strong>Caption the render with what it is not.</strong> Every artefact carries a metadata line or panel:\nbase and head revision, dirty state, <code>resolver</code>, tools used with versions, the envelope\nfingerprint, <code>notScanned[]</code>, and whether collapsing happened and where. A diagram that\ntravels without this is quoted a week later as though it were complete.</p>\n</li>\n<li><p><strong>Hand both artefacts back with where they render.</strong> Mermaid goes wherever mermaid already\nrenders, and the fenced block is the deliverable — not a screenshot of it. The HTML file is\nhanded back by path with the statement that it needs no server. If comparison mode ran, the\nclassification table travels with them, not instead of them.</p>\n</li>\n<li><p><strong>Document the run when the branch calls for it.</strong> The convention is below, and it is\nidentical in every skill of this family that supports it.</p>\n</li>\n</ol>\n<h4 id=\"the-run-record\">The run record</h4>\n<p><strong>Documenting the run.</strong> Write a full record when the invocation carries <code>--document</code> (or\nan unmistakable phrase such as &quot;document the run&quot;), at <code>docs/visualise-blast-area/&lt;UTC-date&gt;-&lt;slug&gt;.md</code>\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.</p>\n<p>Records are written per <a href=\"references/documenting-the-run.md\">the run-record convention</a>.</p>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Here is the blast map for the column drop. Draw it — mermaid, one diagram, all twelve surfaces\nincluding the empty ones — and put the blind spots on the diagram itself rather than in a note\nunderneath. I am pasting this into a pull request comment.\n</code></pre>\n<pre><code class=\"language-text\">Render this map and make the changed set obvious against the merely affected set. I care most\nabout which of the affected things break silently, so make that visible at a glance rather than\nsomething I have to read the labels for.\n</code></pre>\n<pre><code class=\"language-text\">This map has about three hundred nodes. Give me something I can actually explore — a single\nHTML file I can open from disk with the network off, where I can filter to the silent breaks\nand click an edge to see the evidence behind it.\n</code></pre>\n<pre><code class=\"language-text\">We refactored the ingest path and the claim is no behaviour change. Map it before and after and\ncompare them — but give me the delta as a list of what was added, removed and rewired per\nsurface, not two pictures to squint at.\n</code></pre>\n<pre><code class=\"language-text\">Draw this one and document the run (--document), because the diagram is going into the design\nreview and I want the provenance next to it: which tools were available, which surfaces were\nnever checked, and what the picture is not showing.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>Blind spots rendered as a caption.</strong> Underneath the picture they read as a disclaimer about\nthe drawing. Inside it, as nodes, they read as part of the map — which is what they are.</li>\n<li><strong>Dropping empty subgraphs to tidy the layout.</strong> Checked-and-empty is a finding and\nnever-checked is a hole; deleting the box makes both look like the same nothing.</li>\n<li><strong>Colouring changed and affected the same.</strong> The diagram then answers &quot;what is involved&quot;,\nwhich nobody asked, instead of &quot;what is about to happen and to whom&quot;.</li>\n<li><strong>Re-deriving node state at render time.</strong> The most-severe-wins reconciliation happened\nupstream. Doing it again produces a second answer, and the two diagrams disagree.</li>\n<li><strong>Arrows without confidence.</strong> An inferred edge and an enumerated one are the same\narrowhead, and the reader has no way to tell. Put the confidence in the label.</li>\n<li><strong>Using <code>graph</code> instead of <code>flowchart</code>.</strong> It looks equivalent until an edge has to touch a\nsubgraph, and then it silently does not work.</li>\n<li><strong>Fancy arrow types carrying meaning.</strong> Dotted and thick variants render inconsistently\nacross versions and are the first casualty of minification. Meaning belongs in labels and in\nnode styling.</li>\n<li><strong>Exceeding the node cap.</strong> Past the renderer&#39;s input limit the output is a blank box, not an\nerror — so a too-large diagram looks like a rendering bug rather than an oversized graph.</li>\n<li><strong>Truncating rather than collapsing.</strong> A silently shortened diagram is a map with a lie in\nit. A count node that keeps its confidence is honest and takes one line.</li>\n<li><strong>Installing a tool to draw a picture.</strong> The tools are used if present. Adding a dependency\nto the host repository to render a diagram is a side effect nobody asked for, and it changes\na lockfile in a branch that was supposed to change nothing.</li>\n<li><strong>Presenting JavaScript-only tooling as full coverage.</strong> In a polyglot repository the module\ngraph those tools produce covers one language; the other languages are <code>not checked</code>, and the\nmetadata line has to say it.</li>\n<li><strong>An HTML file that fetches anything.</strong> One remote font or one CDN script and the artefact\nstops working on a plane, behind a proxy, or in two years. One file, no requests.</li>\n<li><strong>Editing the envelope on the way into the page.</strong> The literal is the map. Reshape it and the\npicture and the decision surface quietly diverge.</li>\n<li><strong>Comparison mode as two graphs.</strong> Side-by-side pictures are compared by eye, and by eye is\nwhere a rewired edge hides. The delta is a classification.</li>\n<li><strong>Turning comparison on by default.</strong> It doubles the work, needs two valid envelopes, and\nanswers a question that was not asked in most runs.</li>\n<li><strong>A diagram that travels without its metadata.</strong> Weeks later it is quoted as complete, and\nthe surfaces nobody checked have become surfaces somebody checked.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> The envelope was validated before rendering, and any failure was rendered rather than\nsmoothed over.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The diagram is <code>flowchart LR</code> — not <code>graph</code> — and edges are plain <code>--&gt;</code> with kind and\nconfidence in the label.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <strong>All twelve surface subgraphs are present in the fixed order with their fixed ids,\nincluding the empty ones</strong>, and each empty one states its coverage.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Changed, affected and unknown are visually distinct, and <code>silent</code> breaks are\ndistinguishable from <code>compile</code> breaks at a glance.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Node states came from the envelope and were not re-derived; no node appears in two states.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <strong>Every blindspot appears as a node on the diagram</strong>, in its own surface, with its probe —\nnot as a caption, and none was dropped to save space.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every edge on the diagram carries its confidence from the five fixed words, and no\npercentage appears anywhere in the render.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The node count was checked against the cap; where it was over, nodes were collapsed into\nlabelled count nodes or split across indexed diagrams, and nothing was silently dropped.</li>\n<li><input disabled=\"\" type=\"checkbox\"> No tool was installed. Every optional tool is recorded present-with-version or absent,\nand each absence has its degradation stated in the render&#39;s metadata.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Where module-graph tooling covered only part of a polyglot repository, the uncovered\nlanguages are reported as <code>not checked</code>.</li>\n<li><input disabled=\"\" type=\"checkbox\"> If the interactive file was produced: one file, no external requests, no build step, and\nit renders from disk with the network off.</li>\n<li><input disabled=\"\" type=\"checkbox\"> If the interactive file was produced: it carries exactly one generated\n<code>const BLAST = { meta, surfaces, nodes, edges, blindspots }</code> literal, unedited from the\nenvelope, and <code>meta</code> pins tool and versions, base and head revisions, fingerprint and\n<code>notScanned[]</code>.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Comparison mode is off unless it was asked for and its preconditions held; where it ran,\nthe delta is a per-surface classification of added, removed and rewired — not a second\ngraph.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every artefact carries its metadata: revisions, resolver, tools, fingerprint,\n<code>notScanned[]</code>, and whether collapsing happened.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Nothing in the repository was changed, and nothing was committed except a run record that\nwas explicitly asked for.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Where a record was written, it exists at <code>docs/visualise-blast-area/&lt;UTC-date&gt;-&lt;slug&gt;.md</code>\n(or the harness scratch path for an unattended run, named in the final answer), under the\nfive required headings.</li>\n</ul>\n<h3 id=\"deeper-reading\">Deeper reading</h3>\n<p><strong>Prior art, honestly.</strong> The nearest live tool in this space is <strong>mindwalk</strong>\n(<code>cosmtrek/mindwalk</code> on GitHub), and it visualises <strong>agent sessions</strong>, not codebases: a treemap\nof files touched during a run, with <strong>no edges at all</strong>, and a comparison mode that diffs one\nsession against another rather than one state of a repository against another. It is real,\nactively maintained and good at its own job, and it is the wrong tool for this one — a blast map\nis edges, and a treemap has none. Four of its conventions were adopted anyway, because each\nsolves a problem this skill also has:</p>\n<ul>\n<li><strong>Deepest-touch-wins</strong>, one state per node, resolved once so a node never renders in two\ncolours and never has to be reconciled by the reader.</li>\n<li><strong>A first-class &quot;outcome unknown&quot; slot.</strong> Unresolved is a result and gets its own styling,\nrather than being folded into &quot;unaffected&quot; where it disappears.</li>\n<li><strong>An unverifiable criterion is a blind spot, not a failure.</strong> It occupies space on the page\nwith the probe that would settle it, instead of being dropped for being unprovable.</li>\n<li><strong>Findings and verdicts kept separate.</strong> Individual observations are reported as they were\nfound; the summary rolls up from them mechanically. A hand-written summary that does not\nfollow from the findings is the failure mode this separation exists to prevent.</li>\n</ul>\n<p><strong>The detail, one level down.</strong></p>\n<ul>\n<li><a href=\"references/tool-tiering.md\">Tool tiering</a>: what each optional tool contributes, the commands\nand flags, why nothing is installed, and what precisely degrades when each is absent.</li>\n<li><a href=\"references/mermaid-contract.md\">The mermaid contract</a>: the full <code>flowchart LR</code> template,\nfixed subgraph ids, classDef styling, edge labels, the legend, blindspot nodes, and the\ncollapse rules for the node cap.</li>\n<li><a href=\"references/smart-html.md\">The smart HTML contract</a>: the single-file skeleton, the <code>BLAST</code>\nliteral, the <code>meta</code> provenance fields, the affordances, and the prohibitions that keep the\nartefact working offline in two years.</li>\n<li><a href=\"references/comparison-mode.md\">Comparison mode</a>: the preconditions, the added / removed /\nrewired classification, worked deltas for a refactor and a removal, and why it is not a\nsecond graph.</li>\n<li><a href=\"references/worked-render.md\">A worked render</a>: one envelope taken end to end into a diagram,\nwith the blindspot node, the empty-surface nodes and the metadata line in place.</li>\n<li><a href=\"references/documenting-the-run.md\">The run-record convention</a>: when a record is written,\nwhere it goes, its five headings, the prohibitions, and a worked record.</li>\n</ul>\n","outline":["What a rendered map must not lose","When to Use","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification","Deeper reading"],"words":4027}
