{"name":"new-ux-discovery","title":"Discover UX a codebase can already support","description":"Find UX improvements a codebase can already support, evidence-backed and ranked — across the CLI, the API, MCP tools, notifications and error text as much as the UI. Symptoms: what should we improve next, where does this feel rough, what's low-hanging UX we could ship this week, turn this diff into a follow-up list, roadmap candidates from the code we already have. Not a visual design pass — for look and feel use a design skill.","compatibility":"Any repository the agent can read, with git and a text search tool. Generated registries (routes, tools, jobs) are used where present, built by hand where not. Forge access to open branches and PRs raises both gates sharply; losing it costs the most. Checking who can read what needs a queryable datastore; without one, two signal classes lose their access half and say so. Output is a capped, ranked list with sweep coverage; nothing is designed, built or committed unless a run record is asked for.","allowedTools":"Read Write Grep Glob Bash","license":"MIT","kind":"general","useWhen":"looking for UX improvements this codebase can already support","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill new-ux-discovery"],"asks":["Sweep this repository for UX improvements it could already support. Enumerate the surfaces\nfirst and tell me how many classes you actually got through — and for every candidate, show\nme the not-already-implemented check before you show me the idea.","We just merged the change that splits enrichment into two stages. Ride that change: for each\nsurface it touched, what is newly possible, newly exposed, or newly wrong now? Price anything\noutside the files that change already touched, and do not build any of it.","I suspect we collect a lot of data nobody can see. Find the fields we persist that no screen,\nroute or export reads — and check whether the reader exists but excludes the very people the\nrows are about, because that is the case I keep missing.","Before I write up these three ideas: put each through the gates. Search the whole tree by\nname, search the open pull requests too, and tell me plainly if one of them is already\nshipped behind an admin permission.","Run a discovery sweep and document the run (--document) so the dropped candidates are written\ndown with their reasons. Last time we re-proposed the same two things a month apart because\nnobody recorded why they were dropped."],"commands":[],"documents":[{"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/gates.md","slug":"gates","title":"The two gates","body":"# The two gates\n\nEvery candidate passes gate (a) — **not already implemented** — and then gate (b) — **no\nconfusion** — before it is allowed onto the page. The gates are cheap relative to what they\nprevent: proposing something that already ships, or shipping a second word for a thing the\nproduct already names.\n\nA gate is a **record**, never a claim. The verdict without the record is worth nothing,\nbecause nobody downstream can tell a real check from a confident sentence.\n\n---\n\n## Gate (a) — NOT-ALREADY-IMPLEMENTED\n\nFive steps, in this order, each recorded.\n\n### Step 1 — name it three ways\n\n- **The user's words**: how the person asking would say it.\n- **The domain word**: what this codebase calls the concept, taken from the vocabulary you\n  built for signal class 4.\n- **The identifier form**: the symbol, slug, route segment, or table column it would be.\n\nMost already-built capabilities are missed because the search used exactly one of the three.\nRecord all three names; they are the input to steps 2 to 4.\n\n### Step 2 — sweep every step-0 class, and record \"n of m\"\n\nSearch each of the nine surface classes for all three names. Record the count as **\"n of 9\"**,\nnaming the classes not swept and why. A candidate whose gate record says \"7 of 9\" is still\nadmissible; a candidate whose record says nothing is not.\n\n### Step 3 — search the whole tree by name\n\nUnscoped. No path filter, no directory restriction, all three names.\n\nThis is **the cheapest step in the gate and the one that catches the most embarrassing false\npositive**: the capability exists, registered in a second registry that the class sweep never\nenumerated, or living in a package nobody thought to include. Run it even when steps 1 and 2\ncame back clean — especially then.\n\n### Step 4 — search work in flight\n\nOpen branches and open pull requests. The checked-out tree is the product minus everything\ncurrently being built, and \"not implemented\" is a claim about the product.\n\nWithout forge access this step cannot run, and its absence is the most damaging degradation\nin this skill. Record a **named confidence caveat** on the gate record itself, not in a\nmethods note: *\"work in flight was not searched; this verdict covers the tree at <sha> only.\"*\n\n### Step 5 — check access, not just existence\n\nFor anything found in steps 2 to 4: **can the persona in question reach it?** Walk the access\nrules from class 9 of the inventory. A capability behind an administrator-only rule is not\nimplemented from the end user's side, and skipping this step converts a real finding into a\nwrong drop.\n\n### The three verdicts\n\n| Verdict | What it means | Disposition |\n|---|---|---|\n| **EXISTS-AND-REACHABLE** | it is built and the persona can get to it | **drop**, with one reason line in DROPPED |\n| **EXISTS-BUT-GATED-OR-UNDISCOVERABLE** | built, but behind an access rule or with no path to it | **re-file**: the claim becomes an access or discoverability gap, the evidence becomes the rule or the missing link, and the effort class usually drops |\n| **DOES-NOT-EXIST** | none of the five steps found it | proceed to gate (b) |\n\nThe middle verdict is the one that earns the gate its cost. It is neither a drop nor the\noriginal proposal; it is a different, usually much cheaper finding, and it is invisible to any\nprocess that only asks \"does this exist\".\n\n### The disqualification rule\n\n**An empty gate-(a) record disqualifies the candidate.** Not a caveat, not a lower rank —\nthe candidate does not appear in the ranked rows. \"I checked\" is not a record. The record is:\n\n```text\ngate_a:\n  names:        \"export the audit trail\" | \"activity log\" | \"auditEvents\"\n  classes_swept: 8 of 9 — data-access-rules not enumerated (store not reachable)\n  whole_tree:   git grep -n \"auditEvents\" -- .          → 6 hits, all in one package\n  in_flight:    2 open branches searched, 0 hits; 11 open pull requests searched, 0 hits\n  access:       reader exists at <path:line>; its rule admits operator only\n  verdict:      EXISTS-BUT-GATED-OR-UNDISCOVERABLE\n```\n\n---\n\n## Gate (b) — NO-CONFUSION\n\nThree questions. **Searched, not considered** — every answer carries the query that produced\nit.\n\n### Q1 — is there already a second way to do this?\n\nSearch for the capability's effect, not its name: what else changes the same state, produces\nthe same artifact, answers the same need?\n\n**Failure disposition: CONVERT to a consolidation.** The proposal is re-written as \"these two\npaths do the same thing; here is what reconciling them costs\", and it is **never presented as\nnew**. Adding a third way to do something that already has two is the exact failure this\nquestion exists to prevent, and the proposal that reaches this state is usually a good idea —\nwhich is why it needs a rule rather than judgement.\n\nThis is also where a class-2 orphan meets a class-3 fork and the whole proposal inverts. See\n[a worked discovery](worked-discovery.md).\n\n### Q2 — would this create a conflicting affordance?\n\nTwo controls whose effects overlap or disagree; a new default that contradicts an existing\none; an action available in two places that behaves differently in each. Search the\nsurrounding surface, not just the identifier.\n\n**Failure disposition:** re-scope so the affordances compose, and say what was re-scoped — or\ndrop.\n\n### Q3 — does the name collide?\n\nSearch for the proposed name and its **near-neighbours**: singular and plural, a prefix or\nsuffix of an existing term, the same word already used in another subsystem, the same word in\nuser-facing copy for a different thing. **Include open branches** — this is where the two\nstrongest collisions in one measured sweep were found, both between two open pull requests.\n\n**Failure disposition: DROP, or re-scope while stating what was re-scoped.** A collision that\nis kept and noted in a caveat is **a failed proposal, not a caveated one**. The caveat does not\ntravel: it is dropped by the first person who summarises the report, and the collision ships.\n\n### The shared-word rule\n\nWhen two subsystems already use one word for two things:\n\n1. **Name both subsystems** in the finding. A finding that names one is a finding that will be\n   fixed in one and re-broken in the other.\n2. **Locate the prior written resolution before proposing anything** — a design note, a review\n   comment, a decision record, a migration comment. Somebody has usually already decided this\n   once, and re-deciding it silently is how a repository ends up with three answers instead of\n   two.\n3. If no prior resolution exists, say that explicitly. \"No prior resolution found; control:\n   <query> returns hits for comparable decisions\" is a finding in its own right.\n\n### The DROPPED section\n\nEvery candidate that fails either gate goes into **DROPPED**, with **one reason line each**:\n\n```text\nDROPPED\n- Bulk re-run from the list screen — gate (a): EXISTS-AND-REACHABLE, the row menu already\n  does this (whole-tree search on the handler name, 3 hits, one is the menu item).\n- \"Collections\" for grouped exports — gate (b) Q3: collides with the existing collections\n  concept in the ingest subsystem; different membership. Prior resolution not located.\n```\n\nOne line, the gate, the verdict, the evidence. That section is why the next agent does not\nre-propose these next month, and it is the part of the report most often cut for length. Cut a\nranked row before cutting a dropped reason.\n","bodyHtml":"<h2 id=\"the-two-gates\">The two gates</h2>\n<p>Every candidate passes gate (a) — <strong>not already implemented</strong> — and then gate (b) — <strong>no\nconfusion</strong> — before it is allowed onto the page. The gates are cheap relative to what they\nprevent: proposing something that already ships, or shipping a second word for a thing the\nproduct already names.</p>\n<p>A gate is a <strong>record</strong>, never a claim. The verdict without the record is worth nothing,\nbecause nobody downstream can tell a real check from a confident sentence.</p>\n<hr>\n<h3 id=\"gate-a-not-already-implemented\">Gate (a) — NOT-ALREADY-IMPLEMENTED</h3>\n<p>Five steps, in this order, each recorded.</p>\n<h4 id=\"step-1-name-it-three-ways\">Step 1 — name it three ways</h4>\n<ul>\n<li><strong>The user&#39;s words</strong>: how the person asking would say it.</li>\n<li><strong>The domain word</strong>: what this codebase calls the concept, taken from the vocabulary you\nbuilt for signal class 4.</li>\n<li><strong>The identifier form</strong>: the symbol, slug, route segment, or table column it would be.</li>\n</ul>\n<p>Most already-built capabilities are missed because the search used exactly one of the three.\nRecord all three names; they are the input to steps 2 to 4.</p>\n<h4 id=\"step-2-sweep-every-step-0-class-and-record-n-of-m\">Step 2 — sweep every step-0 class, and record &quot;n of m&quot;</h4>\n<p>Search each of the nine surface classes for all three names. Record the count as <strong>&quot;n of 9&quot;</strong>,\nnaming the classes not swept and why. A candidate whose gate record says &quot;7 of 9&quot; is still\nadmissible; a candidate whose record says nothing is not.</p>\n<h4 id=\"step-3-search-the-whole-tree-by-name\">Step 3 — search the whole tree by name</h4>\n<p>Unscoped. No path filter, no directory restriction, all three names.</p>\n<p>This is <strong>the cheapest step in the gate and the one that catches the most embarrassing false\npositive</strong>: the capability exists, registered in a second registry that the class sweep never\nenumerated, or living in a package nobody thought to include. Run it even when steps 1 and 2\ncame back clean — especially then.</p>\n<h4 id=\"step-4-search-work-in-flight\">Step 4 — search work in flight</h4>\n<p>Open branches and open pull requests. The checked-out tree is the product minus everything\ncurrently being built, and &quot;not implemented&quot; is a claim about the product.</p>\n<p>Without forge access this step cannot run, and its absence is the most damaging degradation\nin this skill. Record a <strong>named confidence caveat</strong> on the gate record itself, not in a\nmethods note: <em>&quot;work in flight was not searched; this verdict covers the tree at <sha> only.&quot;</em></p>\n<h4 id=\"step-5-check-access-not-just-existence\">Step 5 — check access, not just existence</h4>\n<p>For anything found in steps 2 to 4: <strong>can the persona in question reach it?</strong> Walk the access\nrules from class 9 of the inventory. A capability behind an administrator-only rule is not\nimplemented from the end user&#39;s side, and skipping this step converts a real finding into a\nwrong drop.</p>\n<h4 id=\"the-three-verdicts\">The three verdicts</h4>\n<table>\n<thead>\n<tr>\n<th>Verdict</th>\n<th>What it means</th>\n<th>Disposition</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>EXISTS-AND-REACHABLE</strong></td>\n<td>it is built and the persona can get to it</td>\n<td><strong>drop</strong>, with one reason line in DROPPED</td>\n</tr>\n<tr>\n<td><strong>EXISTS-BUT-GATED-OR-UNDISCOVERABLE</strong></td>\n<td>built, but behind an access rule or with no path to it</td>\n<td><strong>re-file</strong>: the claim becomes an access or discoverability gap, the evidence becomes the rule or the missing link, and the effort class usually drops</td>\n</tr>\n<tr>\n<td><strong>DOES-NOT-EXIST</strong></td>\n<td>none of the five steps found it</td>\n<td>proceed to gate (b)</td>\n</tr>\n</tbody></table>\n<p>The middle verdict is the one that earns the gate its cost. It is neither a drop nor the\noriginal proposal; it is a different, usually much cheaper finding, and it is invisible to any\nprocess that only asks &quot;does this exist&quot;.</p>\n<h4 id=\"the-disqualification-rule\">The disqualification rule</h4>\n<p><strong>An empty gate-(a) record disqualifies the candidate.</strong> Not a caveat, not a lower rank —\nthe candidate does not appear in the ranked rows. &quot;I checked&quot; is not a record. The record is:</p>\n<pre><code class=\"language-text\">gate_a:\n  names:        &quot;export the audit trail&quot; | &quot;activity log&quot; | &quot;auditEvents&quot;\n  classes_swept: 8 of 9 — data-access-rules not enumerated (store not reachable)\n  whole_tree:   git grep -n &quot;auditEvents&quot; -- .          → 6 hits, all in one package\n  in_flight:    2 open branches searched, 0 hits; 11 open pull requests searched, 0 hits\n  access:       reader exists at &lt;path:line&gt;; its rule admits operator only\n  verdict:      EXISTS-BUT-GATED-OR-UNDISCOVERABLE\n</code></pre>\n<hr>\n<h3 id=\"gate-b-no-confusion\">Gate (b) — NO-CONFUSION</h3>\n<p>Three questions. <strong>Searched, not considered</strong> — every answer carries the query that produced\nit.</p>\n<h4 id=\"q1-is-there-already-a-second-way-to-do-this\">Q1 — is there already a second way to do this?</h4>\n<p>Search for the capability&#39;s effect, not its name: what else changes the same state, produces\nthe same artifact, answers the same need?</p>\n<p><strong>Failure disposition: CONVERT to a consolidation.</strong> The proposal is re-written as &quot;these two\npaths do the same thing; here is what reconciling them costs&quot;, and it is <strong>never presented as\nnew</strong>. Adding a third way to do something that already has two is the exact failure this\nquestion exists to prevent, and the proposal that reaches this state is usually a good idea —\nwhich is why it needs a rule rather than judgement.</p>\n<p>This is also where a class-2 orphan meets a class-3 fork and the whole proposal inverts. See\n<a href=\"worked-discovery.md\">a worked discovery</a>.</p>\n<h4 id=\"q2-would-this-create-a-conflicting-affordance\">Q2 — would this create a conflicting affordance?</h4>\n<p>Two controls whose effects overlap or disagree; a new default that contradicts an existing\none; an action available in two places that behaves differently in each. Search the\nsurrounding surface, not just the identifier.</p>\n<p><strong>Failure disposition:</strong> re-scope so the affordances compose, and say what was re-scoped — or\ndrop.</p>\n<h4 id=\"q3-does-the-name-collide\">Q3 — does the name collide?</h4>\n<p>Search for the proposed name and its <strong>near-neighbours</strong>: singular and plural, a prefix or\nsuffix of an existing term, the same word already used in another subsystem, the same word in\nuser-facing copy for a different thing. <strong>Include open branches</strong> — this is where the two\nstrongest collisions in one measured sweep were found, both between two open pull requests.</p>\n<p><strong>Failure disposition: DROP, or re-scope while stating what was re-scoped.</strong> A collision that\nis kept and noted in a caveat is <strong>a failed proposal, not a caveated one</strong>. The caveat does not\ntravel: it is dropped by the first person who summarises the report, and the collision ships.</p>\n<h4 id=\"the-shared-word-rule\">The shared-word rule</h4>\n<p>When two subsystems already use one word for two things:</p>\n<ol>\n<li><strong>Name both subsystems</strong> in the finding. A finding that names one is a finding that will be\nfixed in one and re-broken in the other.</li>\n<li><strong>Locate the prior written resolution before proposing anything</strong> — a design note, a review\ncomment, a decision record, a migration comment. Somebody has usually already decided this\nonce, and re-deciding it silently is how a repository ends up with three answers instead of\ntwo.</li>\n<li>If no prior resolution exists, say that explicitly. &quot;No prior resolution found; control:\n<query> returns hits for comparable decisions&quot; is a finding in its own right.</li>\n</ol>\n<h4 id=\"the-dropped-section\">The DROPPED section</h4>\n<p>Every candidate that fails either gate goes into <strong>DROPPED</strong>, with <strong>one reason line each</strong>:</p>\n<pre><code class=\"language-text\">DROPPED\n- Bulk re-run from the list screen — gate (a): EXISTS-AND-REACHABLE, the row menu already\n  does this (whole-tree search on the handler name, 3 hits, one is the menu item).\n- &quot;Collections&quot; for grouped exports — gate (b) Q3: collides with the existing collections\n  concept in the ingest subsystem; different membership. Prior resolution not located.\n</code></pre>\n<p>One line, the gate, the verdict, the evidence. That section is why the next agent does not\nre-propose these next month, and it is the part of the report most often cut for length. Cut a\nranked row before cutting a dropped reason.</p>\n","words":1239},{"path":"references/output-contract.md","slug":"output-contract","title":"The output contract","body":"# The output contract\n\nThree sections, always all three, in this order: **the ranked rows**, **DROPPED**, and\n**NOT SWEPT**. A report missing any of the three is incomplete, and the two most often\nmissing are the two that carry the coverage.\n\n## The cap\n\n**Ten rows, maximum.** Five when model choice was unavailable — depth is what the band buys,\nand a shallower run should say less rather than the same amount with less behind it.\n\nThe cap is a ceiling and never a quota. **A clean result is a valid result**: zero rows, plus a\nfull sweep record, is a complete and deliverable answer. It says the surfaces were walked, the\nsignals were run, and everything that surfaced was already built or would have created\nconfusion — which is genuinely useful and is exactly what a padded list destroys.\n\nIf more than ten survive both gates, rank and cut. Say how many survived and how many were\nshown. Do not spread the overflow into an appendix; the cap exists so the reader reads all of\nit.\n\n## The rank key\n\nStrict, and applied in order. Later keys break ties in earlier ones; they never override them.\n\n```text\n1. evidence strength    measured with a fired control > measured > sampled > inferred\n2. affected population  a number where one is obtainable; \"unknown\" sorts last\n3. harm shape           silent wrong answer > silent nothing > friction > cosmetic\n4. effort               ascending — S, then M, then L\n5. scope                inside-scope before scope-change\n```\n\n**Evidence strength first**, deliberately. A weaker finding that is certain outranks a stronger\nfinding that might not be real, because the reader is going to spend time on row one and the\nworst outcome is spending it on something that turns out not to exist.\n\n**Affected population wants a number.** \"Most users\" is not a number. Where one is obtainable —\na row count, a route's traffic, a registry's size — use it and say where it came from. Where it\nis not, write `unknown`, which sorts last within its evidence tier rather than being guessed\nupward.\n\n**Harm shape** is a fixed four-value ladder. A silent wrong answer beats a silent nothing\nbecause the user acts on it; a silent nothing beats friction because friction is at least\nvisible; friction beats cosmetic because somebody is losing time.\n\nA worked tie, and a deliberately uncomfortable one. Two `measured` findings: A affects an\nunknown population and its harm is a silent wrong answer; B affects a measured 12,000 accounts\nand its harm is friction. They tie on key 1, so key 2 decides — and `unknown` sorts last, so\n**B outranks A**, even though A's harm shape is worse. That is the key working as written: the\nfix is to go and obtain A's number, not to promote it by feel. When an ordering will surprise\nthe reader, **state which key decided the adjacent pair**, so they can see it was applied\nrather than judged.\n\n## The row\n\n```json\n{\n  \"signal_class\": \"orphan\",\n  \"claim\": \"the gap, stated as what is missing or wrong — never the fix\",\n  \"evidence\": \"path:line, or the verbatim query with its tool and hit count\",\n  \"surfaces\": [\"screens\", \"http-routes\"],\n  \"persona\": \"the role affected, from the named list\",\n  \"effort\": \"S | M | L\",\n  \"changes_scope\": \"inside-scope | scope-change\",\n  \"price\": { \"effort_class\": \"M\", \"review_surface\": \"…\", \"runtime_cost\": \"… | none\" },\n  \"gate_a\": { \"names\": [\"…\", \"…\", \"…\"], \"classes_swept\": \"7 of 9\",\n              \"whole_tree\": \"verbatim query → hits\", \"in_flight\": \"…\",\n              \"access\": \"…\", \"verdict\": \"DOES-NOT-EXIST\" },\n  \"gate_b\": { \"q1\": \"…\", \"q2\": \"…\", \"q3\": \"…\",\n              \"disposition\": \"propose | convert | re-scope | drop\" }\n}\n```\n\nField notes:\n\n- **`claim` is the gap, not the fix.** \"The export screen has no way to filter by date\" is a\n  claim. \"Add a date filter to the export screen\" is a design decision taken before anyone\n  agreed the gap existed. The distinction is load-bearing: the gap is checkable, the fix is a\n  preference, and stating the fix as the finding removes the reader's chance to solve it\n  differently or more cheaply.\n- **`evidence` is anchored or the row does not ship.** `path:line`, or a verbatim query with\n  its tool and its hit count. Not a description of a search.\n- **`surfaces`** uses the step-0 class ids, so rows sort by surface and the reader can see when\n  five findings all land on one screen.\n- **`persona`** comes from the named list in the prerequisites. \"Users\" is not a persona.\n- **`price` is required whenever `changes_scope` is `scope-change`**, with all three parts.\n  A scope-change with a missing part is not offered.\n- **`gate_a` and `gate_b` travel with the row.** They are not an appendix. A row whose gate\n  records live somewhere else arrives at the reader as an unverified idea.\n\n## Enforced exclusions\n\nThese are not style preferences. A row that hits one of them is removed, not softened.\n\n- **No redesign essays.** The claim is the gap. A paragraph proposing an information\n  architecture is a different deliverable and belongs to whoever owns the design.\n- **No unanchored findings.** Every claim points at a line or a query. This removes the entire\n  category of plausible-sounding improvement that nobody can check.\n- **No aesthetic critique.** \"Dated\", \"cluttered\", \"inconsistent styling\" — none of these have\n  an anchor or a gate record, and this skill has no method for them.\n- **No \"add a link\" when the target has a duplicate.** The one exclusion with an immediate\n  shipping consequence: if signal class 3 shows the target is one half of a fork, the finding\n  is a consolidation, and proposing the link surfaces the stale half to every persona.\n\n## The DROPPED section\n\nOne line per dropped candidate: what it was, which gate dropped it, the verdict, and the\nevidence in brackets. See [the two gates](gates.md) for the format and an example.\n\nThis section is the most reusable artefact the run produces. It is also the first thing cut\nfor length, which is backwards — **cut a ranked row before cutting a dropped reason**, because\nthe ranked row will be rediscovered and the dropped reason will not.\n\n## The NOT SWEPT section\n\nTwo lists and a sentence:\n\n1. **Surface classes not enumerated**, from the nine, each with its skip reason.\n2. **Signal classes not run**, from the nine, each with its reason — usually \"sequential sweep,\n   not reached in yield order\".\n3. **The degradation rung**, named: which capability was missing and what it cost. Where forge\n   access was unavailable, the named confidence caveat is repeated here as well as on each gate\n   record.\n\nThen the closing sentence of what this run could not see. A reader who does not find this\nsection will assume the sweep was complete, and will be wrong in a direction that costs them.\n\n## Handing it on\n\nHand over all three sections together. A consumer given only the ranked rows reads the\nabsences as checked — the same failure `blast-area` calls the blank cell that was never\nsearched. A chosen row goes to `resolve-problem-report` to be dug into and specced, or to\n`land-complex-change` when it is already understood well enough to budget.\n","bodyHtml":"<h2 id=\"the-output-contract\">The output contract</h2>\n<p>Three sections, always all three, in this order: <strong>the ranked rows</strong>, <strong>DROPPED</strong>, and\n<strong>NOT SWEPT</strong>. A report missing any of the three is incomplete, and the two most often\nmissing are the two that carry the coverage.</p>\n<h3 id=\"the-cap\">The cap</h3>\n<p><strong>Ten rows, maximum.</strong> Five when model choice was unavailable — depth is what the band buys,\nand a shallower run should say less rather than the same amount with less behind it.</p>\n<p>The cap is a ceiling and never a quota. <strong>A clean result is a valid result</strong>: zero rows, plus a\nfull sweep record, is a complete and deliverable answer. It says the surfaces were walked, the\nsignals were run, and everything that surfaced was already built or would have created\nconfusion — which is genuinely useful and is exactly what a padded list destroys.</p>\n<p>If more than ten survive both gates, rank and cut. Say how many survived and how many were\nshown. Do not spread the overflow into an appendix; the cap exists so the reader reads all of\nit.</p>\n<h3 id=\"the-rank-key\">The rank key</h3>\n<p>Strict, and applied in order. Later keys break ties in earlier ones; they never override them.</p>\n<pre><code class=\"language-text\">1. evidence strength    measured with a fired control &gt; measured &gt; sampled &gt; inferred\n2. affected population  a number where one is obtainable; &quot;unknown&quot; sorts last\n3. harm shape           silent wrong answer &gt; silent nothing &gt; friction &gt; cosmetic\n4. effort               ascending — S, then M, then L\n5. scope                inside-scope before scope-change\n</code></pre>\n<p><strong>Evidence strength first</strong>, deliberately. A weaker finding that is certain outranks a stronger\nfinding that might not be real, because the reader is going to spend time on row one and the\nworst outcome is spending it on something that turns out not to exist.</p>\n<p><strong>Affected population wants a number.</strong> &quot;Most users&quot; is not a number. Where one is obtainable —\na row count, a route&#39;s traffic, a registry&#39;s size — use it and say where it came from. Where it\nis not, write <code>unknown</code>, which sorts last within its evidence tier rather than being guessed\nupward.</p>\n<p><strong>Harm shape</strong> is a fixed four-value ladder. A silent wrong answer beats a silent nothing\nbecause the user acts on it; a silent nothing beats friction because friction is at least\nvisible; friction beats cosmetic because somebody is losing time.</p>\n<p>A worked tie, and a deliberately uncomfortable one. Two <code>measured</code> findings: A affects an\nunknown population and its harm is a silent wrong answer; B affects a measured 12,000 accounts\nand its harm is friction. They tie on key 1, so key 2 decides — and <code>unknown</code> sorts last, so\n<strong>B outranks A</strong>, even though A&#39;s harm shape is worse. That is the key working as written: the\nfix is to go and obtain A&#39;s number, not to promote it by feel. When an ordering will surprise\nthe reader, <strong>state which key decided the adjacent pair</strong>, so they can see it was applied\nrather than judged.</p>\n<h3 id=\"the-row\">The row</h3>\n<pre><code class=\"language-json\">{\n  &quot;signal_class&quot;: &quot;orphan&quot;,\n  &quot;claim&quot;: &quot;the gap, stated as what is missing or wrong — never the fix&quot;,\n  &quot;evidence&quot;: &quot;path:line, or the verbatim query with its tool and hit count&quot;,\n  &quot;surfaces&quot;: [&quot;screens&quot;, &quot;http-routes&quot;],\n  &quot;persona&quot;: &quot;the role affected, from the named list&quot;,\n  &quot;effort&quot;: &quot;S | M | L&quot;,\n  &quot;changes_scope&quot;: &quot;inside-scope | scope-change&quot;,\n  &quot;price&quot;: { &quot;effort_class&quot;: &quot;M&quot;, &quot;review_surface&quot;: &quot;…&quot;, &quot;runtime_cost&quot;: &quot;… | none&quot; },\n  &quot;gate_a&quot;: { &quot;names&quot;: [&quot;…&quot;, &quot;…&quot;, &quot;…&quot;], &quot;classes_swept&quot;: &quot;7 of 9&quot;,\n              &quot;whole_tree&quot;: &quot;verbatim query → hits&quot;, &quot;in_flight&quot;: &quot;…&quot;,\n              &quot;access&quot;: &quot;…&quot;, &quot;verdict&quot;: &quot;DOES-NOT-EXIST&quot; },\n  &quot;gate_b&quot;: { &quot;q1&quot;: &quot;…&quot;, &quot;q2&quot;: &quot;…&quot;, &quot;q3&quot;: &quot;…&quot;,\n              &quot;disposition&quot;: &quot;propose | convert | re-scope | drop&quot; }\n}\n</code></pre>\n<p>Field notes:</p>\n<ul>\n<li><strong><code>claim</code> is the gap, not the fix.</strong> &quot;The export screen has no way to filter by date&quot; is a\nclaim. &quot;Add a date filter to the export screen&quot; is a design decision taken before anyone\nagreed the gap existed. The distinction is load-bearing: the gap is checkable, the fix is a\npreference, and stating the fix as the finding removes the reader&#39;s chance to solve it\ndifferently or more cheaply.</li>\n<li><strong><code>evidence</code> is anchored or the row does not ship.</strong> <code>path:line</code>, or a verbatim query with\nits tool and its hit count. Not a description of a search.</li>\n<li><strong><code>surfaces</code></strong> uses the step-0 class ids, so rows sort by surface and the reader can see when\nfive findings all land on one screen.</li>\n<li><strong><code>persona</code></strong> comes from the named list in the prerequisites. &quot;Users&quot; is not a persona.</li>\n<li><strong><code>price</code> is required whenever <code>changes_scope</code> is <code>scope-change</code></strong>, with all three parts.\nA scope-change with a missing part is not offered.</li>\n<li><strong><code>gate_a</code> and <code>gate_b</code> travel with the row.</strong> They are not an appendix. A row whose gate\nrecords live somewhere else arrives at the reader as an unverified idea.</li>\n</ul>\n<h3 id=\"enforced-exclusions\">Enforced exclusions</h3>\n<p>These are not style preferences. A row that hits one of them is removed, not softened.</p>\n<ul>\n<li><strong>No redesign essays.</strong> The claim is the gap. A paragraph proposing an information\narchitecture is a different deliverable and belongs to whoever owns the design.</li>\n<li><strong>No unanchored findings.</strong> Every claim points at a line or a query. This removes the entire\ncategory of plausible-sounding improvement that nobody can check.</li>\n<li><strong>No aesthetic critique.</strong> &quot;Dated&quot;, &quot;cluttered&quot;, &quot;inconsistent styling&quot; — none of these have\nan anchor or a gate record, and this skill has no method for them.</li>\n<li><strong>No &quot;add a link&quot; when the target has a duplicate.</strong> The one exclusion with an immediate\nshipping consequence: if signal class 3 shows the target is one half of a fork, the finding\nis a consolidation, and proposing the link surfaces the stale half to every persona.</li>\n</ul>\n<h3 id=\"the-dropped-section\">The DROPPED section</h3>\n<p>One line per dropped candidate: what it was, which gate dropped it, the verdict, and the\nevidence in brackets. See <a href=\"gates.md\">the two gates</a> for the format and an example.</p>\n<p>This section is the most reusable artefact the run produces. It is also the first thing cut\nfor length, which is backwards — <strong>cut a ranked row before cutting a dropped reason</strong>, because\nthe ranked row will be rediscovered and the dropped reason will not.</p>\n<h3 id=\"the-not-swept-section\">The NOT SWEPT section</h3>\n<p>Two lists and a sentence:</p>\n<ol>\n<li><strong>Surface classes not enumerated</strong>, from the nine, each with its skip reason.</li>\n<li><strong>Signal classes not run</strong>, from the nine, each with its reason — usually &quot;sequential sweep,\nnot reached in yield order&quot;.</li>\n<li><strong>The degradation rung</strong>, named: which capability was missing and what it cost. Where forge\naccess was unavailable, the named confidence caveat is repeated here as well as on each gate\nrecord.</li>\n</ol>\n<p>Then the closing sentence of what this run could not see. A reader who does not find this\nsection will assume the sweep was complete, and will be wrong in a direction that costs them.</p>\n<h3 id=\"handing-it-on\">Handing it on</h3>\n<p>Hand over all three sections together. A consumer given only the ranked rows reads the\nabsences as checked — the same failure <code>blast-area</code> calls the blank cell that was never\nsearched. A chosen row goes to <code>resolve-problem-report</code> to be dug into and specced, or to\n<code>land-complex-change</code> when it is already understood well enough to budget.</p>\n","words":1185},{"path":"references/reason-codes.md","slug":"reason-codes","title":"Reason codes are a UX surface","body":"# Reason codes are a UX surface\n\nA recurring proposal shape, across at least three signal classes — collected-but-unsurfaced,\nsilent failure, and cannot-describe-itself — is *\"make this absence explain itself\"*. The\nsystem did nothing, or refused, or returned empty, and the proposal is to have it say why.\n\nIt is a good proposal. It is also **the most frequently botched fix in this whole skill**, and\nit fails in the same four ways every time. A reason code is a UX surface: it is a short string\na persona reads and acts on, and it can be wrong exactly the way a screen can be wrong —\nexcept that nothing renders it visibly enough for anyone to notice.\n\nFour requirements. All four, or the proposal is not gated and does not ship as a row.\n\n## 1. Cite an existing precedent enum and extend it\n\nBefore proposing a vocabulary, **find the one that already exists**. Search for the shapes:\na status enum, a skip-reason column, an error-code union, a set of string literals compared in\na switch. Nearly every codebase past a certain age already has one for the same *kind* of\nabsence.\n\nCite it by `path:line` in the finding, and propose an **extension** to it: the new members, and\nwhat predicate produces each.\n\n**Never introduce a second vocabulary for the same kind of absence.** Two vocabularies for one\nabsence is signal class 4 — competing vocabulary — created deliberately by the person who came\nto fix a UX problem. Downstream, every consumer now has to know both, and the two drift because\nnothing forces them together.\n\nIf no precedent exists, say so with the control: *\"no precedent enum found; control: <query>\nreturns hits for comparable enums elsewhere in the tree, so the search shape works.\"* An absent\nprecedent is a finding, not a licence to invent quietly.\n\n## 2. State the not-attempted vs ran-no-result distinction\n\nTwo facts that a single code will conflate, and they are not close:\n\n- **Not attempted** — the work never ran. A precondition failed, a gate refused, a queue never\n  dispatched, the input was empty.\n- **Ran, no result** — the work ran to completion and found nothing.\n\nA vocabulary that merges them produces confident wrongness. The persona reads \"no results\" and\nconcludes the answer is no, when the truth is that nobody asked the question. In one measured\ncase this exact conflation kept an absence unexplained for weeks, because every consumer of the\ncode treated it as \"checked and empty\".\n\nThe proposal states which existing members are which, and whether the extension needs one\nmember or two.\n\n## 3. Supply negative controls known in advance\n\nFor each proposed code, name a case whose expected code **you can state before running it**.\nWrite the expectation down first, then check.\n\nThis is what makes a silent vocabulary detectable. A code that is defined, wired, documented,\nand **never actually emitted** looks identical from the outside to one that is working\nperfectly — nothing errors, the enum is complete, the tests pass. The advance-declared negative\ncontrol is the only thing that catches it, and it must be declared in advance or it becomes a\npost-hoc rationalisation of whatever came out.\n\nInclude at least one control per member, and one for the merged case in requirement 2: an input\nyou know was never attempted, and an input you know ran and found nothing.\n\n## 4. Check the code NAME is true under the predicate that produces it\n\nRead the branch that emits each code, and ask whether the code's name is a true statement about\nevery path that reaches it.\n\nThe canonical failure: a code called `no-match` emitted by a branch that also fires on a\ntimeout, on a malformed input, and on a downstream refusal. The name is a lie in three of the\nfour cases, and the persona acts on the lie because the name is the only thing they see.\n\nTwo questions per code:\n\n- **Is the name true on every path into the branch?** If not, either narrow the branch or\n  rename the code — and prefer narrowing, because a code named around its implementation\n  (\"handler-returned-null\") is a leak, not a fix.\n- **Is the name true only under an assumption?** Then the assumption belongs in the finding,\n  marked, with the direction the answer would move things if it turned out false.\n\n## What the finding looks like\n\n```text\nclaim:     A refused enrichment returns an empty result with no code; the persona cannot\n           distinguish \"not eligible\" from \"ran and found nothing\".\nevidence:  <path:line> — the empty return; <path:line> — the eligibility branch above it\nprecedent: existing skip-reason enum at <path:line>, 6 members, extended not replaced\ndistinction: needs two members — not-attempted (eligibility failed) and ran-no-result\ncontrols:  an ineligible input, expected `not-eligible`; an eligible input with no matches,\n           expected `no-matches`; declared before running\nname check: `no-matches` is true only on the post-fetch branch; the timeout path must not\n           reach it — narrow the branch rather than widening the name\n```\n\nAnything short of that is a proposal to add a string, and a string that gets added without\nthese four is a new surface that is confidently wrong to a persona who has no way to check it.\n","bodyHtml":"<h2 id=\"reason-codes-are-a-ux-surface\">Reason codes are a UX surface</h2>\n<p>A recurring proposal shape, across at least three signal classes — collected-but-unsurfaced,\nsilent failure, and cannot-describe-itself — is <em>&quot;make this absence explain itself&quot;</em>. The\nsystem did nothing, or refused, or returned empty, and the proposal is to have it say why.</p>\n<p>It is a good proposal. It is also <strong>the most frequently botched fix in this whole skill</strong>, and\nit fails in the same four ways every time. A reason code is a UX surface: it is a short string\na persona reads and acts on, and it can be wrong exactly the way a screen can be wrong —\nexcept that nothing renders it visibly enough for anyone to notice.</p>\n<p>Four requirements. All four, or the proposal is not gated and does not ship as a row.</p>\n<h3 id=\"1-cite-an-existing-precedent-enum-and-extend-it\">1. Cite an existing precedent enum and extend it</h3>\n<p>Before proposing a vocabulary, <strong>find the one that already exists</strong>. Search for the shapes:\na status enum, a skip-reason column, an error-code union, a set of string literals compared in\na switch. Nearly every codebase past a certain age already has one for the same <em>kind</em> of\nabsence.</p>\n<p>Cite it by <code>path:line</code> in the finding, and propose an <strong>extension</strong> to it: the new members, and\nwhat predicate produces each.</p>\n<p><strong>Never introduce a second vocabulary for the same kind of absence.</strong> Two vocabularies for one\nabsence is signal class 4 — competing vocabulary — created deliberately by the person who came\nto fix a UX problem. Downstream, every consumer now has to know both, and the two drift because\nnothing forces them together.</p>\n<p>If no precedent exists, say so with the control: <em>&quot;no precedent enum found; control: <query>\nreturns hits for comparable enums elsewhere in the tree, so the search shape works.&quot;</em> An absent\nprecedent is a finding, not a licence to invent quietly.</p>\n<h3 id=\"2-state-the-not-attempted-vs-ran-no-result-distinction\">2. State the not-attempted vs ran-no-result distinction</h3>\n<p>Two facts that a single code will conflate, and they are not close:</p>\n<ul>\n<li><strong>Not attempted</strong> — the work never ran. A precondition failed, a gate refused, a queue never\ndispatched, the input was empty.</li>\n<li><strong>Ran, no result</strong> — the work ran to completion and found nothing.</li>\n</ul>\n<p>A vocabulary that merges them produces confident wrongness. The persona reads &quot;no results&quot; and\nconcludes the answer is no, when the truth is that nobody asked the question. In one measured\ncase this exact conflation kept an absence unexplained for weeks, because every consumer of the\ncode treated it as &quot;checked and empty&quot;.</p>\n<p>The proposal states which existing members are which, and whether the extension needs one\nmember or two.</p>\n<h3 id=\"3-supply-negative-controls-known-in-advance\">3. Supply negative controls known in advance</h3>\n<p>For each proposed code, name a case whose expected code <strong>you can state before running it</strong>.\nWrite the expectation down first, then check.</p>\n<p>This is what makes a silent vocabulary detectable. A code that is defined, wired, documented,\nand <strong>never actually emitted</strong> looks identical from the outside to one that is working\nperfectly — nothing errors, the enum is complete, the tests pass. The advance-declared negative\ncontrol is the only thing that catches it, and it must be declared in advance or it becomes a\npost-hoc rationalisation of whatever came out.</p>\n<p>Include at least one control per member, and one for the merged case in requirement 2: an input\nyou know was never attempted, and an input you know ran and found nothing.</p>\n<h3 id=\"4-check-the-code-name-is-true-under-the-predicate-that-produces-it\">4. Check the code NAME is true under the predicate that produces it</h3>\n<p>Read the branch that emits each code, and ask whether the code&#39;s name is a true statement about\nevery path that reaches it.</p>\n<p>The canonical failure: a code called <code>no-match</code> emitted by a branch that also fires on a\ntimeout, on a malformed input, and on a downstream refusal. The name is a lie in three of the\nfour cases, and the persona acts on the lie because the name is the only thing they see.</p>\n<p>Two questions per code:</p>\n<ul>\n<li><strong>Is the name true on every path into the branch?</strong> If not, either narrow the branch or\nrename the code — and prefer narrowing, because a code named around its implementation\n(&quot;handler-returned-null&quot;) is a leak, not a fix.</li>\n<li><strong>Is the name true only under an assumption?</strong> Then the assumption belongs in the finding,\nmarked, with the direction the answer would move things if it turned out false.</li>\n</ul>\n<h3 id=\"what-the-finding-looks-like\">What the finding looks like</h3>\n<pre><code class=\"language-text\">claim:     A refused enrichment returns an empty result with no code; the persona cannot\n           distinguish &quot;not eligible&quot; from &quot;ran and found nothing&quot;.\nevidence:  &lt;path:line&gt; — the empty return; &lt;path:line&gt; — the eligibility branch above it\nprecedent: existing skip-reason enum at &lt;path:line&gt;, 6 members, extended not replaced\ndistinction: needs two members — not-attempted (eligibility failed) and ran-no-result\ncontrols:  an ineligible input, expected `not-eligible`; an eligible input with no matches,\n           expected `no-matches`; declared before running\nname check: `no-matches` is true only on the post-fetch branch; the timeout path must not\n           reach it — narrow the branch rather than widening the name\n</code></pre>\n<p>Anything short of that is a proposal to add a string, and a string that gets added without\nthese four is a new surface that is confidently wrong to a persona who has no way to check it.</p>\n","words":873},{"path":"references/riding-a-change.md","slug":"riding-a-change","title":"Riding a change","body":"# Riding a change\n\nThe second mode. Same gates, same output contract — only the seed set differs. Instead of\nsweeping the whole surface inventory, the seed is **a blast map**: `blast-area`'s envelope,\nwith its surfaces, nodes, edges and blindspots.\n\nThe question this mode answers is narrow and useful: *the change is happening anyway — what\ndid it just make possible, and what did it just make wrong?*\n\n## The input\n\nTake the envelope whole, including its `blindspots`. A blindspot in the map is a class the\nchange may have affected in a way nobody can see; it becomes a **NOT SWEPT** line in this\nreport, carried across rather than quietly dropped.\n\nDo not re-derive the map. If there is no map, ask for one or run `blast-area` first. A\nriding-a-change run seeded by a guess at what the change touches is a pure-analysis run\nwearing the wrong header.\n\n## The five questions, per affected surface\n\nFor each surface the map marks as affected — not just the ones marked changed:\n\n1. **Newly possible.** The change added a value, a relation, a state, or a capability that\n   some surface could now use and does not. This is the class of finding this mode exists for.\n2. **Newly exposed.** Something is now reachable by a persona who could not reach it before —\n   through a widened access rule, a new route, a new field on an existing response. Newly\n   exposed is not automatically good; it is automatically worth naming.\n3. **Newly asymmetric.** The change updated one of a pair and not the other: one registry and\n   not its sibling, the read path and not the write path, one of two screens that mirror each\n   other. Run signal class 5's set difference against the pair.\n4. **Newly wrong.** Copy, help text, an error message, a reason code, a documented default — a\n   statement that was true before the change and is now false. This is the highest-yield of the\n   five and the least often checked, because nothing fails when help text goes stale.\n5. **Newly orphaned or duplicated.** The change removed the last link to a surface, or created\n   a second path to something that already had one. Run signal classes 2 and 3 against the\n   nodes the map touched.\n\nEach answer goes through both gates exactly as in pure-analysis mode. A newly-possible finding\nis still routinely already implemented somewhere else.\n\n## Scope pricing is mechanical\n\nThe temptation in this mode is to let a good adjacent idea ride along inside the change,\nbecause the files are open and the context is loaded. That is how a bounded change becomes an\nunbounded one, so the test is mechanical rather than judgemental.\n\n### INSIDE-SCOPE — all five must hold\n\n1. Only files **the change already touches**.\n2. **No new surface** — no new route, screen, tool, job, channel or command.\n3. **No new user-visible name** — no new term in copy, no new identifier a persona will see.\n4. **No migration** — no schema change, no data backfill, no format change to persisted data.\n5. **No new spend path** — nothing that adds a call to a metered or billed dependency.\n\nFail any one and it is a **SCOPE-CHANGE**. There is no middle.\n\n### SCOPE-CHANGE — the three-part price, or it is not offered\n\nEvery scope-change carries all three parts. A scope-change with a missing part is **not\noffered at all** — it does not appear as a row with a caveat.\n\n| Part | What it states |\n|---|---|\n| **Effort class** | S, M or L, on the same scale as the ranked rows |\n| **Added review surface** | what a reviewer now has to read that they otherwise would not — the files, the surfaces, the second gate that has to be re-run |\n| **Runtime cost** | if it is spend-bearing: what it adds per invocation and per period, or the word `none` if it is not spend-bearing at all |\n\nThe runtime cost part is not optional decoration. A discovery finding that adds a per-row model\ncall to a batch path is a different proposal at ten rows than at ten million, and the row is\nwhere that gets said.\n\n## Offered, never taken\n\nState this sentence **verbatim** in the output header of every riding-a-change run:\n\n```text\nScope proposals in this report are offered, never taken: nothing here has been\nimplemented, and the run that produced it will not implement it.\n```\n\nThe reason it is verbatim rather than paraphrased: an agent that has just found a good,\ncheap, obviously-correct improvement while already holding the relevant files open is exactly\nthe agent that will implement it — and an implementation that arrives inside a discovery\nreport is an unreviewed change wearing a research paper's clothes. The header sentence is the\nprohibition stated where the person reading the report can hold the run to it.\n\nIf the user asks for one of the rows to be built, that is a new instruction and a different\nskill: `land-complex-change` for the landing, or `resolve-problem-report` when it needs\ndigging into first. The discovery run does not roll into a build because the build looks\nsmall.\n\n## What this mode does not do\n\n- It does not re-map the change. The map is input.\n- It does not judge whether the change should have been made.\n- It does not widen the change's own scope by implication. A newly-asymmetric finding is a\n  finding; deciding to fix it inside the same branch is the author's call, priced.\n","bodyHtml":"<h2 id=\"riding-a-change\">Riding a change</h2>\n<p>The second mode. Same gates, same output contract — only the seed set differs. Instead of\nsweeping the whole surface inventory, the seed is <strong>a blast map</strong>: <code>blast-area</code>&#39;s envelope,\nwith its surfaces, nodes, edges and blindspots.</p>\n<p>The question this mode answers is narrow and useful: <em>the change is happening anyway — what\ndid it just make possible, and what did it just make wrong?</em></p>\n<h3 id=\"the-input\">The input</h3>\n<p>Take the envelope whole, including its <code>blindspots</code>. A blindspot in the map is a class the\nchange may have affected in a way nobody can see; it becomes a <strong>NOT SWEPT</strong> line in this\nreport, carried across rather than quietly dropped.</p>\n<p>Do not re-derive the map. If there is no map, ask for one or run <code>blast-area</code> first. A\nriding-a-change run seeded by a guess at what the change touches is a pure-analysis run\nwearing the wrong header.</p>\n<h3 id=\"the-five-questions-per-affected-surface\">The five questions, per affected surface</h3>\n<p>For each surface the map marks as affected — not just the ones marked changed:</p>\n<ol>\n<li><strong>Newly possible.</strong> The change added a value, a relation, a state, or a capability that\nsome surface could now use and does not. This is the class of finding this mode exists for.</li>\n<li><strong>Newly exposed.</strong> Something is now reachable by a persona who could not reach it before —\nthrough a widened access rule, a new route, a new field on an existing response. Newly\nexposed is not automatically good; it is automatically worth naming.</li>\n<li><strong>Newly asymmetric.</strong> The change updated one of a pair and not the other: one registry and\nnot its sibling, the read path and not the write path, one of two screens that mirror each\nother. Run signal class 5&#39;s set difference against the pair.</li>\n<li><strong>Newly wrong.</strong> Copy, help text, an error message, a reason code, a documented default — a\nstatement that was true before the change and is now false. This is the highest-yield of the\nfive and the least often checked, because nothing fails when help text goes stale.</li>\n<li><strong>Newly orphaned or duplicated.</strong> The change removed the last link to a surface, or created\na second path to something that already had one. Run signal classes 2 and 3 against the\nnodes the map touched.</li>\n</ol>\n<p>Each answer goes through both gates exactly as in pure-analysis mode. A newly-possible finding\nis still routinely already implemented somewhere else.</p>\n<h3 id=\"scope-pricing-is-mechanical\">Scope pricing is mechanical</h3>\n<p>The temptation in this mode is to let a good adjacent idea ride along inside the change,\nbecause the files are open and the context is loaded. That is how a bounded change becomes an\nunbounded one, so the test is mechanical rather than judgemental.</p>\n<h4 id=\"inside-scope-all-five-must-hold\">INSIDE-SCOPE — all five must hold</h4>\n<ol>\n<li>Only files <strong>the change already touches</strong>.</li>\n<li><strong>No new surface</strong> — no new route, screen, tool, job, channel or command.</li>\n<li><strong>No new user-visible name</strong> — no new term in copy, no new identifier a persona will see.</li>\n<li><strong>No migration</strong> — no schema change, no data backfill, no format change to persisted data.</li>\n<li><strong>No new spend path</strong> — nothing that adds a call to a metered or billed dependency.</li>\n</ol>\n<p>Fail any one and it is a <strong>SCOPE-CHANGE</strong>. There is no middle.</p>\n<h4 id=\"scope-change-the-three-part-price-or-it-is-not-offered\">SCOPE-CHANGE — the three-part price, or it is not offered</h4>\n<p>Every scope-change carries all three parts. A scope-change with a missing part is <strong>not\noffered at all</strong> — it does not appear as a row with a caveat.</p>\n<table>\n<thead>\n<tr>\n<th>Part</th>\n<th>What it states</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>Effort class</strong></td>\n<td>S, M or L, on the same scale as the ranked rows</td>\n</tr>\n<tr>\n<td><strong>Added review surface</strong></td>\n<td>what a reviewer now has to read that they otherwise would not — the files, the surfaces, the second gate that has to be re-run</td>\n</tr>\n<tr>\n<td><strong>Runtime cost</strong></td>\n<td>if it is spend-bearing: what it adds per invocation and per period, or the word <code>none</code> if it is not spend-bearing at all</td>\n</tr>\n</tbody></table>\n<p>The runtime cost part is not optional decoration. A discovery finding that adds a per-row model\ncall to a batch path is a different proposal at ten rows than at ten million, and the row is\nwhere that gets said.</p>\n<h3 id=\"offered-never-taken\">Offered, never taken</h3>\n<p>State this sentence <strong>verbatim</strong> in the output header of every riding-a-change run:</p>\n<pre><code class=\"language-text\">Scope proposals in this report are offered, never taken: nothing here has been\nimplemented, and the run that produced it will not implement it.\n</code></pre>\n<p>The reason it is verbatim rather than paraphrased: an agent that has just found a good,\ncheap, obviously-correct improvement while already holding the relevant files open is exactly\nthe agent that will implement it — and an implementation that arrives inside a discovery\nreport is an unreviewed change wearing a research paper&#39;s clothes. The header sentence is the\nprohibition stated where the person reading the report can hold the run to it.</p>\n<p>If the user asks for one of the rows to be built, that is a new instruction and a different\nskill: <code>land-complex-change</code> for the landing, or <code>resolve-problem-report</code> when it needs\ndigging into first. The discovery run does not roll into a build because the build looks\nsmall.</p>\n<h3 id=\"what-this-mode-does-not-do\">What this mode does not do</h3>\n<ul>\n<li>It does not re-map the change. The map is input.</li>\n<li>It does not judge whether the change should have been made.</li>\n<li>It does not widen the change&#39;s own scope by implication. A newly-asymmetric finding is a\nfinding; deciding to fix it inside the same branch is the author&#39;s call, priced.</li>\n</ul>\n","words":924},{"path":"references/signal-classes.md","slug":"signal-classes","title":"The nine signal classes","body":"# The nine signal classes\n\nEach class is a recipe plus a **named false-positive check that runs before the finding is\nwritten**. The order matters: a finding drafted first and checked second gets defended\nrather than withdrawn, and the check stops being a check and becomes a formality.\n\nEvery recipe below is repo-agnostic. Substitute the repository's own conventions for the\nsearch patterns; keep the control, the ordering and the check.\n\n**Yield order**, for sequential sweeps when no subagents are available: **2, 5, 1**, then\n3, 4, 7, 6, 8, 9. Classes 2 and 5 are cheap and productive; class 1 is the one users care\nabout most. Classes not reached are declared **unswept**, never implied as empty.\n\n---\n\n## 1. Collected-but-unsurfaced (`unsurfaced`)\n\n**Recipe.** Take the persisted fields — columns, document keys, event properties. For each,\nsearch for a reader on any enumerated surface: a select, a projection, a serialiser, an\nexport, a screen binding. Fields with no reader are candidates.\n\n**The subtle form, which is the valuable one.** A reader exists, and its **access rule\nexcludes the persona the rows are about**. The data is collected from a person who cannot\nsee it; an operator can. This reads as \"surfaced\" to a code search and as \"invisible\" to the\npersona, and only the class 9 inventory — the access rules — distinguishes them.\n\n**False-positive check, run first:** does a reader exist that your search's shape cannot\nsee? Fields are read through `SELECT *`, through spread operators, through generic\nserialisers that project whole rows, and through data-resident definitions — a saved query\nor a report template stored as a row. Check for the wildcard read before claiming no reader.\nThen check reach: for each reader found, which personas pass its access rule?\n\n**Degradation.** Without a queryable store, the access half is unchecked. Say that; do not\nreport the code half as the whole answer.\n\n---\n\n## 2. Orphan surface / single entry point (`orphan`)\n\n**Recipe.** For each screen or route in the inventory, search the whole tree for its path:\n\n- as a literal in **both quote styles** the language allows;\n- as a **template prefix** — the static head of an interpolated path, because a route built\n  as a template literal never appears whole anywhere;\n- in non-code surfaces: navigation definitions, mail and chat templates, documentation.\n\nThen **re-classify** every zero into one of three, never leaving it as \"orphan\":\n\n| Class | Meaning |\n|---|---|\n| **linked** | a real destination somewhere a persona can reach |\n| **mentioned-only** | the path appears — in a test, a comment, a changelog — but nothing navigates to it |\n| **reachable-by-design** | deliberately unlinked: a deep link sent by mail, an operator tool, a debug page |\n\n**CONTROL, and it is mandatory:** before trusting any zero, **assert the route walk found a\nplausible count.** Take a screen you know is linked and run the identical search; it must\nreturn hits. A walk that returns zero for everything is a broken walk, and a broken walk\nreads exactly like a repository full of orphans. In one measured sweep this control is what\nseparated four genuine orphans from a search that was silently matching nothing.\n\n---\n\n## 3. Duplicate surface (`duplicate`)\n\n**Recipe.** Group by sibling basename and by near-identical path segments. For each group,\n**hash the contents** of the members and compare.\n\n- Identical hashes: a copy. Low-value unless one is dead.\n- **Divergent hashes: a fork**, and this is the finding.\n\n**False-positive check, run first — and it is the one that inverts proposals:** **the linked\none is not necessarily the newer one.** Do not infer recency from linkage. Compare last-change\ndates from history, and compare the two contents for features present in one and absent in the\nother. A fork whose orphan half is the newer, richer half is common enough that assuming the\nopposite is how \"add a nav link\" ships the stale copy to everyone.\n\n**Interaction with class 2.** A class-2 orphan whose sibling is a fork **converts** from\n\"surface it\" to \"consolidate it\". This conversion happens at gate (b) Q1, and it is the\nsingle most valuable interaction in this skill.\n\n---\n\n## 4. Competing vocabulary (`vocabulary`)\n\n**Recipe.** For each domain concept, list the words the codebase uses for it: identifiers,\nroute segments, table and column names, user-facing copy, tool names, error strings. Two\nwords for one concept is the obvious form.\n\n**Search INCLUDING open branches and pull requests.** This class hides in work in flight\nmore than in the tree: two people name the same new concept differently, in parallel, and\nneither branch can see the other. In one measured sweep, the two strongest collisions found\nwere both between two open pull requests and were invisible in the checked-out tree.\n\n**False-positive check, run first:** are the two words actually one concept, or two concepts\nwith overlapping copy? Compare **membership**: what set does each word denote? And note the\nranking that matters — **a shared word with different membership is worse than two disjoint\nwords.** Two words for one thing is friction. One word for two things is a wrong answer that\nlooks correct, in a surface, to someone who cannot tell.\n\n---\n\n## 5. Surface asymmetry (`asymmetry`)\n\n**Recipe.** Take two registries, or two surfaces that ought to mirror each other — read tools\nversus write tools, list endpoints versus detail endpoints, screens versus their exports —\nand compute the **set difference in both directions**. Both directions: the missing member is\nas often on the side you assumed was complete.\n\n**The critical false positive, checked first:** **the item may exist in a registry you did not\nenumerate.** Before writing \"X has no Y\", **re-search the whole tree by name**, unscoped. This\nis the same step as gate (a) step 3, and it is cheap; run it here so the candidate does not\nreach the gate already wrong. In one measured sweep, three slugs that looked unregistered were\nabsent only from the registry that had been walked.\n\n---\n\n## 6. Measured-but-unrouted (`unrouted`)\n\n**Recipe.** Find values the system computes or scores for a decision — a score, a status, a\nhealth signal, a cost total — and trace each to a decision point: a route, a screen, an alert,\na gate, a report. A value computed and stored with no route to anyone deciding anything is the\nfinding.\n\nDistinguish from class 1: class 1 is data **collected** and never shown; class 6 is a\nmeasurement **produced for a decision** that never reaches one.\n\n**False-positive check, run first:** the consumer may be **data-resident** — a saved query, a\ndashboard definition, an alert rule stored as a row rather than as code. No code search returns\nthose. Query the store, or record the class as half-checked.\n\n---\n\n## 7. Silent failure (`silent-failure`)\n\n**Recipe.** Three shapes, searched deliberately:\n\n- **Success-shaped non-events.** A send with no configured recipient; a batch with an empty\n  input that logs \"complete\"; a sync whose zero-row result is indistinguishable from success.\n- **Write-then-act orderings.** State committed before the action it describes is attempted,\n  so a failure leaves a record claiming the action happened.\n- **Swallowed errors on the asked-for path.** A catch that logs and continues is defensible on\n  a background path and is a wrong answer on the path the user just asked for.\n\n**False-positive check, run first:** is the swallow deliberate and correct here? Fail-soft is\na real design choice on a non-critical path. The finding is fail-soft **on the path the persona\nis waiting on**, or fail-soft with no signal anywhere.\n\n**The second-order finding, which travels with this class:** fail-soft makes its own tests\ndecorative. A test that asserts the function \"did not throw\" against a swallow-by-design path\npasses whether or not the inner call ever fired. When you find one, say so: the test is not\ncovering what its name claims, and that is a separate finding with its own persona — the next\nengineer.\n\n---\n\n## 8. Cannot-describe-itself (`cannot-describe-itself`)\n\n**Recipe.** Four questions, each of which should be answerable **in one call** by any persona\nusing the surface:\n\n1. **Identity** — what am I talking to, and at what version?\n2. **Principal** — who am I authenticated as, and with what role?\n3. **Capabilities** — what can I do here? Is there a list, and is it the list the runtime\n   actually reads?\n4. **Refusal reason** — when something is denied, does the surface say why, in terms the\n   persona can act on?\n\nAny of the four that takes more than one call, or is unanswerable, is a candidate.\n\n**The inverse, which is the sharper finding:** a **predictor using a rule the executor does not\napply**. A preview, a dry run, a \"can I do this\" check that computes eligibility with one rule\nwhile the executor applies another. The preview says yes and the run refuses — or worse, the\npreview says no and the capability was available all along. Compare the two predicates\ndirectly; do not compare their names.\n\n**False-positive check, run first:** the answer may exist on a surface you did not enumerate —\na health endpoint, a CLI subcommand, a header. Re-search the whole tree by name before claiming\nthe system cannot describe itself.\n\n---\n\n## 9. Stale deferral markers (`stale-deferral`)\n\n**Recipe.** Never a raw grep for deferral markers. A raw marker grep in a large repository\nreturns four figures, is unrankable, and is useless as a finding. Three narrowing filters, in\nthis order:\n\n1. **Reachability** — the marker sits on a path reachable from an enumerated surface. A\n   deferral inside a fixture, a build script or dead code is not a UX finding.\n2. **The condition has expired** — the marker defers on something that has since happened, or\n   names a blocker that no longer exists. This filter is the one that produces genuine\n   findings: the deferral was correct when written and is now simply stale.\n3. **Age** — the line is older than a staleness threshold read from blame. Recent markers are\n   live work.\n\n**False-positive check, run first:** read the surrounding code. A marker whose text is stale\nwhile the code beneath it was rewritten is a comment defect, not a deferred capability.\n\n**Thresholds.** The age threshold and the minimum reachability depth are currently **reasoned\nrather than measured**, and are awaiting benchmark calibration. **State the values you used**\nin the coverage record, so a later run can compare like with like.\n","bodyHtml":"<h2 id=\"the-nine-signal-classes\">The nine signal classes</h2>\n<p>Each class is a recipe plus a <strong>named false-positive check that runs before the finding is\nwritten</strong>. The order matters: a finding drafted first and checked second gets defended\nrather than withdrawn, and the check stops being a check and becomes a formality.</p>\n<p>Every recipe below is repo-agnostic. Substitute the repository&#39;s own conventions for the\nsearch patterns; keep the control, the ordering and the check.</p>\n<p><strong>Yield order</strong>, for sequential sweeps when no subagents are available: <strong>2, 5, 1</strong>, then\n3, 4, 7, 6, 8, 9. Classes 2 and 5 are cheap and productive; class 1 is the one users care\nabout most. Classes not reached are declared <strong>unswept</strong>, never implied as empty.</p>\n<hr>\n<h3 id=\"1-collected-but-unsurfaced-unsurfaced\">1. Collected-but-unsurfaced (<code>unsurfaced</code>)</h3>\n<p><strong>Recipe.</strong> Take the persisted fields — columns, document keys, event properties. For each,\nsearch for a reader on any enumerated surface: a select, a projection, a serialiser, an\nexport, a screen binding. Fields with no reader are candidates.</p>\n<p><strong>The subtle form, which is the valuable one.</strong> A reader exists, and its <strong>access rule\nexcludes the persona the rows are about</strong>. The data is collected from a person who cannot\nsee it; an operator can. This reads as &quot;surfaced&quot; to a code search and as &quot;invisible&quot; to the\npersona, and only the class 9 inventory — the access rules — distinguishes them.</p>\n<p><strong>False-positive check, run first:</strong> does a reader exist that your search&#39;s shape cannot\nsee? Fields are read through <code>SELECT *</code>, through spread operators, through generic\nserialisers that project whole rows, and through data-resident definitions — a saved query\nor a report template stored as a row. Check for the wildcard read before claiming no reader.\nThen check reach: for each reader found, which personas pass its access rule?</p>\n<p><strong>Degradation.</strong> Without a queryable store, the access half is unchecked. Say that; do not\nreport the code half as the whole answer.</p>\n<hr>\n<h3 id=\"2-orphan-surface-single-entry-point-orphan\">2. Orphan surface / single entry point (<code>orphan</code>)</h3>\n<p><strong>Recipe.</strong> For each screen or route in the inventory, search the whole tree for its path:</p>\n<ul>\n<li>as a literal in <strong>both quote styles</strong> the language allows;</li>\n<li>as a <strong>template prefix</strong> — the static head of an interpolated path, because a route built\nas a template literal never appears whole anywhere;</li>\n<li>in non-code surfaces: navigation definitions, mail and chat templates, documentation.</li>\n</ul>\n<p>Then <strong>re-classify</strong> every zero into one of three, never leaving it as &quot;orphan&quot;:</p>\n<table>\n<thead>\n<tr>\n<th>Class</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>linked</strong></td>\n<td>a real destination somewhere a persona can reach</td>\n</tr>\n<tr>\n<td><strong>mentioned-only</strong></td>\n<td>the path appears — in a test, a comment, a changelog — but nothing navigates to it</td>\n</tr>\n<tr>\n<td><strong>reachable-by-design</strong></td>\n<td>deliberately unlinked: a deep link sent by mail, an operator tool, a debug page</td>\n</tr>\n</tbody></table>\n<p><strong>CONTROL, and it is mandatory:</strong> before trusting any zero, <strong>assert the route walk found a\nplausible count.</strong> Take a screen you know is linked and run the identical search; it must\nreturn hits. A walk that returns zero for everything is a broken walk, and a broken walk\nreads exactly like a repository full of orphans. In one measured sweep this control is what\nseparated four genuine orphans from a search that was silently matching nothing.</p>\n<hr>\n<h3 id=\"3-duplicate-surface-duplicate\">3. Duplicate surface (<code>duplicate</code>)</h3>\n<p><strong>Recipe.</strong> Group by sibling basename and by near-identical path segments. For each group,\n<strong>hash the contents</strong> of the members and compare.</p>\n<ul>\n<li>Identical hashes: a copy. Low-value unless one is dead.</li>\n<li><strong>Divergent hashes: a fork</strong>, and this is the finding.</li>\n</ul>\n<p><strong>False-positive check, run first — and it is the one that inverts proposals:</strong> <strong>the linked\none is not necessarily the newer one.</strong> Do not infer recency from linkage. Compare last-change\ndates from history, and compare the two contents for features present in one and absent in the\nother. A fork whose orphan half is the newer, richer half is common enough that assuming the\nopposite is how &quot;add a nav link&quot; ships the stale copy to everyone.</p>\n<p><strong>Interaction with class 2.</strong> A class-2 orphan whose sibling is a fork <strong>converts</strong> from\n&quot;surface it&quot; to &quot;consolidate it&quot;. This conversion happens at gate (b) Q1, and it is the\nsingle most valuable interaction in this skill.</p>\n<hr>\n<h3 id=\"4-competing-vocabulary-vocabulary\">4. Competing vocabulary (<code>vocabulary</code>)</h3>\n<p><strong>Recipe.</strong> For each domain concept, list the words the codebase uses for it: identifiers,\nroute segments, table and column names, user-facing copy, tool names, error strings. Two\nwords for one concept is the obvious form.</p>\n<p><strong>Search INCLUDING open branches and pull requests.</strong> This class hides in work in flight\nmore than in the tree: two people name the same new concept differently, in parallel, and\nneither branch can see the other. In one measured sweep, the two strongest collisions found\nwere both between two open pull requests and were invisible in the checked-out tree.</p>\n<p><strong>False-positive check, run first:</strong> are the two words actually one concept, or two concepts\nwith overlapping copy? Compare <strong>membership</strong>: what set does each word denote? And note the\nranking that matters — <strong>a shared word with different membership is worse than two disjoint\nwords.</strong> Two words for one thing is friction. One word for two things is a wrong answer that\nlooks correct, in a surface, to someone who cannot tell.</p>\n<hr>\n<h3 id=\"5-surface-asymmetry-asymmetry\">5. Surface asymmetry (<code>asymmetry</code>)</h3>\n<p><strong>Recipe.</strong> Take two registries, or two surfaces that ought to mirror each other — read tools\nversus write tools, list endpoints versus detail endpoints, screens versus their exports —\nand compute the <strong>set difference in both directions</strong>. Both directions: the missing member is\nas often on the side you assumed was complete.</p>\n<p><strong>The critical false positive, checked first:</strong> <strong>the item may exist in a registry you did not\nenumerate.</strong> Before writing &quot;X has no Y&quot;, <strong>re-search the whole tree by name</strong>, unscoped. This\nis the same step as gate (a) step 3, and it is cheap; run it here so the candidate does not\nreach the gate already wrong. In one measured sweep, three slugs that looked unregistered were\nabsent only from the registry that had been walked.</p>\n<hr>\n<h3 id=\"6-measured-but-unrouted-unrouted\">6. Measured-but-unrouted (<code>unrouted</code>)</h3>\n<p><strong>Recipe.</strong> Find values the system computes or scores for a decision — a score, a status, a\nhealth signal, a cost total — and trace each to a decision point: a route, a screen, an alert,\na gate, a report. A value computed and stored with no route to anyone deciding anything is the\nfinding.</p>\n<p>Distinguish from class 1: class 1 is data <strong>collected</strong> and never shown; class 6 is a\nmeasurement <strong>produced for a decision</strong> that never reaches one.</p>\n<p><strong>False-positive check, run first:</strong> the consumer may be <strong>data-resident</strong> — a saved query, a\ndashboard definition, an alert rule stored as a row rather than as code. No code search returns\nthose. Query the store, or record the class as half-checked.</p>\n<hr>\n<h3 id=\"7-silent-failure-silent-failure\">7. Silent failure (<code>silent-failure</code>)</h3>\n<p><strong>Recipe.</strong> Three shapes, searched deliberately:</p>\n<ul>\n<li><strong>Success-shaped non-events.</strong> A send with no configured recipient; a batch with an empty\ninput that logs &quot;complete&quot;; a sync whose zero-row result is indistinguishable from success.</li>\n<li><strong>Write-then-act orderings.</strong> State committed before the action it describes is attempted,\nso a failure leaves a record claiming the action happened.</li>\n<li><strong>Swallowed errors on the asked-for path.</strong> A catch that logs and continues is defensible on\na background path and is a wrong answer on the path the user just asked for.</li>\n</ul>\n<p><strong>False-positive check, run first:</strong> is the swallow deliberate and correct here? Fail-soft is\na real design choice on a non-critical path. The finding is fail-soft <strong>on the path the persona\nis waiting on</strong>, or fail-soft with no signal anywhere.</p>\n<p><strong>The second-order finding, which travels with this class:</strong> fail-soft makes its own tests\ndecorative. A test that asserts the function &quot;did not throw&quot; against a swallow-by-design path\npasses whether or not the inner call ever fired. When you find one, say so: the test is not\ncovering what its name claims, and that is a separate finding with its own persona — the next\nengineer.</p>\n<hr>\n<h3 id=\"8-cannot-describe-itself-cannot-describe-itself\">8. Cannot-describe-itself (<code>cannot-describe-itself</code>)</h3>\n<p><strong>Recipe.</strong> Four questions, each of which should be answerable <strong>in one call</strong> by any persona\nusing the surface:</p>\n<ol>\n<li><strong>Identity</strong> — what am I talking to, and at what version?</li>\n<li><strong>Principal</strong> — who am I authenticated as, and with what role?</li>\n<li><strong>Capabilities</strong> — what can I do here? Is there a list, and is it the list the runtime\nactually reads?</li>\n<li><strong>Refusal reason</strong> — when something is denied, does the surface say why, in terms the\npersona can act on?</li>\n</ol>\n<p>Any of the four that takes more than one call, or is unanswerable, is a candidate.</p>\n<p><strong>The inverse, which is the sharper finding:</strong> a <strong>predictor using a rule the executor does not\napply</strong>. A preview, a dry run, a &quot;can I do this&quot; check that computes eligibility with one rule\nwhile the executor applies another. The preview says yes and the run refuses — or worse, the\npreview says no and the capability was available all along. Compare the two predicates\ndirectly; do not compare their names.</p>\n<p><strong>False-positive check, run first:</strong> the answer may exist on a surface you did not enumerate —\na health endpoint, a CLI subcommand, a header. Re-search the whole tree by name before claiming\nthe system cannot describe itself.</p>\n<hr>\n<h3 id=\"9-stale-deferral-markers-stale-deferral\">9. Stale deferral markers (<code>stale-deferral</code>)</h3>\n<p><strong>Recipe.</strong> Never a raw grep for deferral markers. A raw marker grep in a large repository\nreturns four figures, is unrankable, and is useless as a finding. Three narrowing filters, in\nthis order:</p>\n<ol>\n<li><strong>Reachability</strong> — the marker sits on a path reachable from an enumerated surface. A\ndeferral inside a fixture, a build script or dead code is not a UX finding.</li>\n<li><strong>The condition has expired</strong> — the marker defers on something that has since happened, or\nnames a blocker that no longer exists. This filter is the one that produces genuine\nfindings: the deferral was correct when written and is now simply stale.</li>\n<li><strong>Age</strong> — the line is older than a staleness threshold read from blame. Recent markers are\nlive work.</li>\n</ol>\n<p><strong>False-positive check, run first:</strong> read the surrounding code. A marker whose text is stale\nwhile the code beneath it was rewritten is a comment defect, not a deferred capability.</p>\n<p><strong>Thresholds.</strong> The age threshold and the minimum reachability depth are currently <strong>reasoned\nrather than measured</strong>, and are awaiting benchmark calibration. <strong>State the values you used</strong>\nin the coverage record, so a later run can compare like with like.</p>\n","words":1731},{"path":"references/surface-inventory.md","slug":"surface-inventory","title":"The surface inventory — step 0","body":"# The surface inventory — step 0\n\nA discovery sweep that begins with an idea finds evidence for that idea. A sweep that begins\nwith the inventory finds what is there. That is the whole reason step 0 is mandatory and\ncomes before any signal class is run.\n\nThe inventory answers one question per class: **what can a persona actually reach, and see\nsomething?** A route that exists and returns nothing is not a surface. A screen that renders\nan empty state is. A job that is never registered is not a surface — it is a silent nothing,\nand it belongs to signal class 7, not to this list.\n\n## The rule about generators\n\nWhere the repository already generates a registry — a route index, a tool catalogue, a job\nlist, an API schema — **read it, and do not re-derive it by search.** A generator that runs\nin CI has already resolved what a grep can only approximate, and re-deriving it produces a\nsecond answer that will disagree with the first for reasons nobody will chase. Record which\ngenerated artifact you read and at which revision.\n\nWhere none exists, build the minimum inventory by hand from the recipes below, note that the\ninventory is hand-built, and recommend `derive-codebase-context` as a follow-up. **Never\nblock on the absence of a generator.** A hand-built inventory with a stated coverage is a\nworking step 0; a refusal to start is not.\n\n## Recording coverage\n\nThe output records the inventory as **\"n of 9\"**, with a **skip reason per omitted class**.\nThis is not bookkeeping. Gate (a) step 2 sweeps \"every step-0 class\", so a class that was\nnever enumerated is a hole in every gate record in the report, and the report has to say so\nwhere a reader will see it rather than in a methods note at the end.\n\n## The nine classes\n\n### 1. HTTP routes (`http-routes`)\n\nEnumerate every endpoint and the methods it answers. Read the generated route index if there\nis one; otherwise walk the routing convention — file-system routing, a router table, or\ndecorator/annotation registration — and count.\n\nReachability test: does it return a body, a redirect, or a meaningful status to some persona?\nAn endpoint that answers only to an internal caller is a surface for the *integrator*\npersona, not for the end user, and it gets recorded as such.\n\n### 2. Pages and screens (`screens`)\n\nEnumerate every screen **and what links to it**. Linkage is the surface, not the file. Build\ntwo columns: the screen's path, and every place that path appears as a destination —\nnavigation definitions, in-page links, redirects, buttons that push a route, deep links in\nmail or chat templates.\n\nThis class is where the inventory and signal class 2 meet. Do not classify orphans here;\njust record the linkage column honestly, including \"no linkage found\", and let class 2 run\nits own control before anything is called an orphan.\n\n### 3. Tool registries (`tool-registries`)\n\n**Plural is load-bearing.** Enumerate every registry first, then every tool inside each. A\nrepository that exposes capabilities to agents frequently has more than one — one measured\nmonorepo has two, registered by different mechanisms, and the second is where most of this\nskill's false positives live: the capability \"does not exist\" in the registry you walked and\nexists in the one you did not.\n\nFind registries by their registration call, not by their file name. Then, for each registry,\nrecord: what registers into it, what reads it at runtime, and whether the two lists agree.\nA disagreement between them is a signal class 5 finding waiting to happen.\n\n### 4. CLI entry points (`cli`)\n\nEnumerate declared binaries, subcommands, and the script targets a human is actually told to\nrun — the ones in the package manifest, the ones in the contributing guide, the ones in the\nCI configuration. A script that exists in the manifest and appears in no documentation is\nreachable and undiscoverable, which is a real finding with a real persona.\n\n### 5. Background jobs (`jobs`)\n\nEnumerate tasks, queues, crons and workers — **and the registry each must appear in to run at\nall.** Two lists: defined, and registered. The difference between them is the finding.\n\nAn unregistered job produces the most expensive kind of nothing: no error, no output, no\nalert, and a downstream surface that quietly shows stale data forever.\n\n### 6. Outbound notification channels (`notifications-out`)\n\nEnumerate mail, chat, push, and outbound webhooks — with, for each, **what triggers it** and\n**who is configured to receive it**. A channel wired to an unset recipient is the canonical\nsuccess-shaped non-event: the send call returns, the log line says \"sent\", and nothing was\ndelivered. Record the recipient configuration as part of the inventory so class 7 has\nsomething to check against.\n\n### 7. Inbound webhooks (`webhooks-in`)\n\nEnumerate every receiver, its verification step, and **what it does on receipt**. A receiver\nthat verifies a signature and then drops the payload is a surface that returns nothing; a\nreceiver with no verification is a different kind of finding and not this skill's, but it\nshould be handed on rather than swallowed.\n\n### 8. Docs and help text (`docs-and-help`)\n\nEnumerate in-product help, error copy, command help output, and the READMEs a persona is\npointed at. Help text is a surface with a persona attached, and stale help is a defect rather\nthan a typo: it makes a confident, wrong claim to the person least able to check it.\n\nWhere a change has just landed, this is the class that goes stale first and is checked last.\n\n### 9. Data access rules (`data-access-rules`)\n\nEnumerate **the rules, not the tables**: who may read which rows, per persona. Row-level\npolicies, permission checks in the reading path, role grants, tenant scoping, feature gates\non a route.\n\nThis is the class that turns \"missing\" into \"gated\", and it is the reason gate (a) has a\nfifth step. Existence is not reach. A capability that exists and is unreachable by the\npersona who needs it is a finding — a different, usually cheaper one than building it.\n\nWhere the store cannot be queried from this run, record the class as **enumerated from code\nonly**, and carry that limit into signal classes 1 and 6, which each lose their access half\nwithout it.\n\n## What the inventory is not\n\n- It is not a file census. Two hundred component files can be four screens.\n- It is not a list of things that could be surfaces. Only what a persona can reach today.\n- It is not a place to record findings. The inventory is the denominator; the signal classes\n  produce the numerator, and mixing them makes the coverage number meaningless.\n","bodyHtml":"<h2 id=\"the-surface-inventory-step-0\">The surface inventory — step 0</h2>\n<p>A discovery sweep that begins with an idea finds evidence for that idea. A sweep that begins\nwith the inventory finds what is there. That is the whole reason step 0 is mandatory and\ncomes before any signal class is run.</p>\n<p>The inventory answers one question per class: <strong>what can a persona actually reach, and see\nsomething?</strong> A route that exists and returns nothing is not a surface. A screen that renders\nan empty state is. A job that is never registered is not a surface — it is a silent nothing,\nand it belongs to signal class 7, not to this list.</p>\n<h3 id=\"the-rule-about-generators\">The rule about generators</h3>\n<p>Where the repository already generates a registry — a route index, a tool catalogue, a job\nlist, an API schema — <strong>read it, and do not re-derive it by search.</strong> A generator that runs\nin CI has already resolved what a grep can only approximate, and re-deriving it produces a\nsecond answer that will disagree with the first for reasons nobody will chase. Record which\ngenerated artifact you read and at which revision.</p>\n<p>Where none exists, build the minimum inventory by hand from the recipes below, note that the\ninventory is hand-built, and recommend <code>derive-codebase-context</code> as a follow-up. <strong>Never\nblock on the absence of a generator.</strong> A hand-built inventory with a stated coverage is a\nworking step 0; a refusal to start is not.</p>\n<h3 id=\"recording-coverage\">Recording coverage</h3>\n<p>The output records the inventory as <strong>&quot;n of 9&quot;</strong>, with a <strong>skip reason per omitted class</strong>.\nThis is not bookkeeping. Gate (a) step 2 sweeps &quot;every step-0 class&quot;, so a class that was\nnever enumerated is a hole in every gate record in the report, and the report has to say so\nwhere a reader will see it rather than in a methods note at the end.</p>\n<h3 id=\"the-nine-classes\">The nine classes</h3>\n<h4 id=\"1-http-routes-http-routes\">1. HTTP routes (<code>http-routes</code>)</h4>\n<p>Enumerate every endpoint and the methods it answers. Read the generated route index if there\nis one; otherwise walk the routing convention — file-system routing, a router table, or\ndecorator/annotation registration — and count.</p>\n<p>Reachability test: does it return a body, a redirect, or a meaningful status to some persona?\nAn endpoint that answers only to an internal caller is a surface for the <em>integrator</em>\npersona, not for the end user, and it gets recorded as such.</p>\n<h4 id=\"2-pages-and-screens-screens\">2. Pages and screens (<code>screens</code>)</h4>\n<p>Enumerate every screen <strong>and what links to it</strong>. Linkage is the surface, not the file. Build\ntwo columns: the screen&#39;s path, and every place that path appears as a destination —\nnavigation definitions, in-page links, redirects, buttons that push a route, deep links in\nmail or chat templates.</p>\n<p>This class is where the inventory and signal class 2 meet. Do not classify orphans here;\njust record the linkage column honestly, including &quot;no linkage found&quot;, and let class 2 run\nits own control before anything is called an orphan.</p>\n<h4 id=\"3-tool-registries-tool-registries\">3. Tool registries (<code>tool-registries</code>)</h4>\n<p><strong>Plural is load-bearing.</strong> Enumerate every registry first, then every tool inside each. A\nrepository that exposes capabilities to agents frequently has more than one — one measured\nmonorepo has two, registered by different mechanisms, and the second is where most of this\nskill&#39;s false positives live: the capability &quot;does not exist&quot; in the registry you walked and\nexists in the one you did not.</p>\n<p>Find registries by their registration call, not by their file name. Then, for each registry,\nrecord: what registers into it, what reads it at runtime, and whether the two lists agree.\nA disagreement between them is a signal class 5 finding waiting to happen.</p>\n<h4 id=\"4-cli-entry-points-cli\">4. CLI entry points (<code>cli</code>)</h4>\n<p>Enumerate declared binaries, subcommands, and the script targets a human is actually told to\nrun — the ones in the package manifest, the ones in the contributing guide, the ones in the\nCI configuration. A script that exists in the manifest and appears in no documentation is\nreachable and undiscoverable, which is a real finding with a real persona.</p>\n<h4 id=\"5-background-jobs-jobs\">5. Background jobs (<code>jobs</code>)</h4>\n<p>Enumerate tasks, queues, crons and workers — <strong>and the registry each must appear in to run at\nall.</strong> Two lists: defined, and registered. The difference between them is the finding.</p>\n<p>An unregistered job produces the most expensive kind of nothing: no error, no output, no\nalert, and a downstream surface that quietly shows stale data forever.</p>\n<h4 id=\"6-outbound-notification-channels-notifications-out\">6. Outbound notification channels (<code>notifications-out</code>)</h4>\n<p>Enumerate mail, chat, push, and outbound webhooks — with, for each, <strong>what triggers it</strong> and\n<strong>who is configured to receive it</strong>. A channel wired to an unset recipient is the canonical\nsuccess-shaped non-event: the send call returns, the log line says &quot;sent&quot;, and nothing was\ndelivered. Record the recipient configuration as part of the inventory so class 7 has\nsomething to check against.</p>\n<h4 id=\"7-inbound-webhooks-webhooks-in\">7. Inbound webhooks (<code>webhooks-in</code>)</h4>\n<p>Enumerate every receiver, its verification step, and <strong>what it does on receipt</strong>. A receiver\nthat verifies a signature and then drops the payload is a surface that returns nothing; a\nreceiver with no verification is a different kind of finding and not this skill&#39;s, but it\nshould be handed on rather than swallowed.</p>\n<h4 id=\"8-docs-and-help-text-docs-and-help\">8. Docs and help text (<code>docs-and-help</code>)</h4>\n<p>Enumerate in-product help, error copy, command help output, and the READMEs a persona is\npointed at. Help text is a surface with a persona attached, and stale help is a defect rather\nthan a typo: it makes a confident, wrong claim to the person least able to check it.</p>\n<p>Where a change has just landed, this is the class that goes stale first and is checked last.</p>\n<h4 id=\"9-data-access-rules-data-access-rules\">9. Data access rules (<code>data-access-rules</code>)</h4>\n<p>Enumerate <strong>the rules, not the tables</strong>: who may read which rows, per persona. Row-level\npolicies, permission checks in the reading path, role grants, tenant scoping, feature gates\non a route.</p>\n<p>This is the class that turns &quot;missing&quot; into &quot;gated&quot;, and it is the reason gate (a) has a\nfifth step. Existence is not reach. A capability that exists and is unreachable by the\npersona who needs it is a finding — a different, usually cheaper one than building it.</p>\n<p>Where the store cannot be queried from this run, record the class as <strong>enumerated from code\nonly</strong>, and carry that limit into signal classes 1 and 6, which each lose their access half\nwithout it.</p>\n<h3 id=\"what-the-inventory-is-not\">What the inventory is not</h3>\n<ul>\n<li>It is not a file census. Two hundred component files can be four screens.</li>\n<li>It is not a list of things that could be surfaces. Only what a persona can reach today.</li>\n<li>It is not a place to record findings. The inventory is the denominator; the signal classes\nproduce the numerator, and mixing them makes the coverage number meaningless.</li>\n</ul>\n","words":1117},{"path":"references/worked-discovery.md","slug":"worked-discovery","title":"A worked discovery — the candidate the gates inverted","body":"# A worked discovery — the candidate the gates inverted\n\nOne candidate, taken from raw signal to final disposition. Anonymised from a sweep run cold\nagainst a large monorepo — roughly 2,500 TypeScript files and 592k lines — which produced four\norphan screens, one divergent duplicate fork, three tool slugs missing from the registry that\nhad been walked, and a vocabulary collision that existed only between two open pull requests.\n\nThis is the fork one, because it is the case that shows the gates doing the thing they are\nactually for.\n\n## The raw signal\n\nSignal class 2, orphan surface. The route walk enumerated the screens and searched each path\nliterally, in both quote styles and as a template prefix.\n\n```text\nscreen path:  /workspace/insights/summary\nsearches:     \"…/insights/summary\"          → 0\n              '…/insights/summary'          → 0\n              template prefix \"…/insights/\" → 4 hits, none resolving to /summary\n              navigation definitions        → 0\n              mail and chat templates       → 0\n```\n\n**Control, run before the zero was trusted:** the identical search shape against a screen known\nto be linked from the primary navigation returned 3 hits. The apparatus works; the zero is\nreal. (Without this the finding would have been worthless — a walk that returns zero for\neverything reads exactly like a repository full of orphans.)\n\nRe-classification: not *mentioned-only* — the only appearances were the screen's own definition\nand one snapshot test. Not *reachable-by-design* — nothing in the surrounding code marked it as\na deep-link or operator target.\n\n**Candidate as first drafted:** *\"The insights summary screen exists and nothing links to it.\nAdd it to the workspace navigation.\"*\n\nThat is the proposal that would have shipped without the gates. Hold on to it.\n\n## Gate (a) — NOT-ALREADY-IMPLEMENTED\n\n### Step 1 — three names\n\n| Form | Name |\n|---|---|\n| user's words | \"the summary view of workspace insights\" |\n| domain word | \"insights summary\" |\n| identifier form | `InsightsSummary`, route segment `insights/summary` |\n\n### Step 2 — sweep every step-0 class\n\n**8 of 9.** The data-access-rules class was enumerated from code only; the store was not\nqueryable from this run, and that limitation is carried into the record rather than left out.\n\nScreens: one hit, the orphan itself. Routes: one. Everything else: zero.\n\n### Step 3 — search the whole tree by name\n\nThis is the cheap step, and this is where the run turned.\n\n```text\ngit grep -rn \"InsightsSummary\" -- .   → 6 hits across 3 files\n```\n\nTwo of those hits were in a **second screen**, at a near-identical path — one segment\ndifferent, under an administrative area — which imported the same component name from a\ndifferent module. That screen **was** linked: it appeared in an administrator navigation\ndefinition, and the control-verified route walk had found it as *linked* earlier in the same\nsweep without anyone connecting the two.\n\n### Step 4 — work in flight\n\nTwo open branches and eleven open pull requests searched for all three names. Zero hits. No\nin-flight work touched either screen.\n\n### Step 5 — access\n\nThe linked sibling sits behind an administrator-only rule. The orphan sits behind nothing: any\nauthenticated persona who knew the URL could open it.\n\n### Verdict\n\n**EXISTS-BUT-GATED-OR-UNDISCOVERABLE.** A summary of workspace insights exists and is\nreachable — by administrators. Not by the persona the original candidate was about.\n\nAt this point the candidate has already changed shape once: it is no longer \"this does not\nexist\", it is \"this exists and the end-user persona cannot reach it\". Effort drops, and the\nclaim gets more specific.\n\n## Gate (b) — NO-CONFUSION\n\n### Q1 — is there already a second way to do this?\n\nYes: the administrator screen. Which makes this a class-3 question, so the recipe from\n[the nine signal classes](signal-classes.md) applies — hash the pair.\n\n```text\norphan  /workspace/insights/summary   sha256 6f2c…  last change: 4 months ago\nsibling /admin/insights/summary       sha256 a417…  last change: 3 weeks ago\n```\n\n**Divergent.** A fork, not a copy. And then the check that this class exists to force — **the\nlinked one is not necessarily the newer one** — run in the direction that would have been\nskipped by an assumption: the *sibling* is the newer half. It carries two filters and an export\ncontrol the orphan does not have; the orphan carries one panel the sibling dropped.\n\nSo the orphan is the **stale** half.\n\n### Q2 — conflicting affordance?\n\nYes, latent: two screens with the same name, differing feature sets, one export control present\nin only one of them. Anyone linked to both would get different answers depending on which they\nopened.\n\n### Q3 — naming collision?\n\nThe identifier is shared by both halves, deliberately. Near-neighbour search returned no third\nuse. No prior written resolution of the fork was located — searched, and recorded as not found\nwith a control that returned comparable decisions elsewhere.\n\n### Disposition\n\n**CONVERT** to a consolidation. Not \"propose with a caveat\".\n\n## The inversion\n\nThe proposal that entered the gates was *\"add a nav link\"*. Executed, it would have taken the\n**stale** half of a diverged fork and surfaced it to every user of the product — a screen four\nmonths behind its sibling, missing an export control, carrying one panel that had been\ndeliberately removed. It would have looked like a small, obviously-correct improvement in\nreview, and it would have been shipped by someone with no reason to hash two files.\n\nWhat the gates produced instead:\n\n```text\nsignal_class:  duplicate\nclaim:         Two diverged copies of the workspace insights summary exist; the linked copy is\n               administrator-only and the unlinked copy is four months stale. No end-user\n               persona can reach a current summary, and any link added to the unlinked copy\n               would surface the stale one.\nevidence:      route walk → 0 links (control: linked screen → 3 hits);\n               git grep -rn \"InsightsSummary\" -- . → 6 hits / 3 files;\n               sha256 6f2c… vs a417…, divergent; last-change 4 months vs 3 weeks\nsurfaces:      screens, data-access-rules\npersona:       end user (workspace member)\neffort:        M\nchanges_scope: scope-change\nprice:         effort M; adds review surface across both screens and the admin access rule;\n               runtime cost none\ngate_a:        8 of 9 classes; whole-tree search found the admin-gated sibling;\n               in-flight clean; verdict EXISTS-BUT-GATED-OR-UNDISCOVERABLE\ngate_b:        Q1 fail → convert to consolidation; Q2 latent conflict; Q3 no third use,\n               no prior resolution located\n```\n\nAnd in DROPPED, one line, because the original framing is worth recording as dead:\n\n```text\n- \"Add the insights summary to the workspace navigation\" — gate (b) Q1: the target is the\n  stale half of a divergent fork (sha256 6f2c… vs a417…). Converted to a consolidation.\n```\n\n> The gates did not merely filter this candidate, they inverted it, and that is the normal\n> case.\n\n## What to take from it\n\n- **Step 3 of gate (a) — the unscoped whole-tree search — is the cheapest step and it did the\n  work.** The class sweep had already walked screens and found nothing; one unfiltered search\n  on the identifier found the sibling in seconds.\n- **The class-2 control is what made the finding admissible at all.** A zero from a broken walk\n  is indistinguishable from a zero from a real orphan.\n- **The hash comparison is not a formality.** Linkage was the intuitive proxy for currency, and\n  it pointed the wrong way. Two commands settled it.\n- **The most dangerous proposals are the small, obviously-correct ones.** Nobody reviews a nav\n  link. That is precisely why it needed both gates.\n","bodyHtml":"<h2 id=\"a-worked-discovery-the-candidate-the-gates-inverted\">A worked discovery — the candidate the gates inverted</h2>\n<p>One candidate, taken from raw signal to final disposition. Anonymised from a sweep run cold\nagainst a large monorepo — roughly 2,500 TypeScript files and 592k lines — which produced four\norphan screens, one divergent duplicate fork, three tool slugs missing from the registry that\nhad been walked, and a vocabulary collision that existed only between two open pull requests.</p>\n<p>This is the fork one, because it is the case that shows the gates doing the thing they are\nactually for.</p>\n<h3 id=\"the-raw-signal\">The raw signal</h3>\n<p>Signal class 2, orphan surface. The route walk enumerated the screens and searched each path\nliterally, in both quote styles and as a template prefix.</p>\n<pre><code class=\"language-text\">screen path:  /workspace/insights/summary\nsearches:     &quot;…/insights/summary&quot;          → 0\n              &#39;…/insights/summary&#39;          → 0\n              template prefix &quot;…/insights/&quot; → 4 hits, none resolving to /summary\n              navigation definitions        → 0\n              mail and chat templates       → 0\n</code></pre>\n<p><strong>Control, run before the zero was trusted:</strong> the identical search shape against a screen known\nto be linked from the primary navigation returned 3 hits. The apparatus works; the zero is\nreal. (Without this the finding would have been worthless — a walk that returns zero for\neverything reads exactly like a repository full of orphans.)</p>\n<p>Re-classification: not <em>mentioned-only</em> — the only appearances were the screen&#39;s own definition\nand one snapshot test. Not <em>reachable-by-design</em> — nothing in the surrounding code marked it as\na deep-link or operator target.</p>\n<p><strong>Candidate as first drafted:</strong> <em>&quot;The insights summary screen exists and nothing links to it.\nAdd it to the workspace navigation.&quot;</em></p>\n<p>That is the proposal that would have shipped without the gates. Hold on to it.</p>\n<h3 id=\"gate-a-not-already-implemented\">Gate (a) — NOT-ALREADY-IMPLEMENTED</h3>\n<h4 id=\"step-1-three-names\">Step 1 — three names</h4>\n<table>\n<thead>\n<tr>\n<th>Form</th>\n<th>Name</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>user&#39;s words</td>\n<td>&quot;the summary view of workspace insights&quot;</td>\n</tr>\n<tr>\n<td>domain word</td>\n<td>&quot;insights summary&quot;</td>\n</tr>\n<tr>\n<td>identifier form</td>\n<td><code>InsightsSummary</code>, route segment <code>insights/summary</code></td>\n</tr>\n</tbody></table>\n<h4 id=\"step-2-sweep-every-step-0-class\">Step 2 — sweep every step-0 class</h4>\n<p><strong>8 of 9.</strong> The data-access-rules class was enumerated from code only; the store was not\nqueryable from this run, and that limitation is carried into the record rather than left out.</p>\n<p>Screens: one hit, the orphan itself. Routes: one. Everything else: zero.</p>\n<h4 id=\"step-3-search-the-whole-tree-by-name\">Step 3 — search the whole tree by name</h4>\n<p>This is the cheap step, and this is where the run turned.</p>\n<pre><code class=\"language-text\">git grep -rn &quot;InsightsSummary&quot; -- .   → 6 hits across 3 files\n</code></pre>\n<p>Two of those hits were in a <strong>second screen</strong>, at a near-identical path — one segment\ndifferent, under an administrative area — which imported the same component name from a\ndifferent module. That screen <strong>was</strong> linked: it appeared in an administrator navigation\ndefinition, and the control-verified route walk had found it as <em>linked</em> earlier in the same\nsweep without anyone connecting the two.</p>\n<h4 id=\"step-4-work-in-flight\">Step 4 — work in flight</h4>\n<p>Two open branches and eleven open pull requests searched for all three names. Zero hits. No\nin-flight work touched either screen.</p>\n<h4 id=\"step-5-access\">Step 5 — access</h4>\n<p>The linked sibling sits behind an administrator-only rule. The orphan sits behind nothing: any\nauthenticated persona who knew the URL could open it.</p>\n<h4 id=\"verdict\">Verdict</h4>\n<p><strong>EXISTS-BUT-GATED-OR-UNDISCOVERABLE.</strong> A summary of workspace insights exists and is\nreachable — by administrators. Not by the persona the original candidate was about.</p>\n<p>At this point the candidate has already changed shape once: it is no longer &quot;this does not\nexist&quot;, it is &quot;this exists and the end-user persona cannot reach it&quot;. Effort drops, and the\nclaim gets more specific.</p>\n<h3 id=\"gate-b-no-confusion\">Gate (b) — NO-CONFUSION</h3>\n<h4 id=\"q1-is-there-already-a-second-way-to-do-this\">Q1 — is there already a second way to do this?</h4>\n<p>Yes: the administrator screen. Which makes this a class-3 question, so the recipe from\n<a href=\"signal-classes.md\">the nine signal classes</a> applies — hash the pair.</p>\n<pre><code class=\"language-text\">orphan  /workspace/insights/summary   sha256 6f2c…  last change: 4 months ago\nsibling /admin/insights/summary       sha256 a417…  last change: 3 weeks ago\n</code></pre>\n<p><strong>Divergent.</strong> A fork, not a copy. And then the check that this class exists to force — <strong>the\nlinked one is not necessarily the newer one</strong> — run in the direction that would have been\nskipped by an assumption: the <em>sibling</em> is the newer half. It carries two filters and an export\ncontrol the orphan does not have; the orphan carries one panel the sibling dropped.</p>\n<p>So the orphan is the <strong>stale</strong> half.</p>\n<h4 id=\"q2-conflicting-affordance\">Q2 — conflicting affordance?</h4>\n<p>Yes, latent: two screens with the same name, differing feature sets, one export control present\nin only one of them. Anyone linked to both would get different answers depending on which they\nopened.</p>\n<h4 id=\"q3-naming-collision\">Q3 — naming collision?</h4>\n<p>The identifier is shared by both halves, deliberately. Near-neighbour search returned no third\nuse. No prior written resolution of the fork was located — searched, and recorded as not found\nwith a control that returned comparable decisions elsewhere.</p>\n<h4 id=\"disposition\">Disposition</h4>\n<p><strong>CONVERT</strong> to a consolidation. Not &quot;propose with a caveat&quot;.</p>\n<h3 id=\"the-inversion\">The inversion</h3>\n<p>The proposal that entered the gates was <em>&quot;add a nav link&quot;</em>. Executed, it would have taken the\n<strong>stale</strong> half of a diverged fork and surfaced it to every user of the product — a screen four\nmonths behind its sibling, missing an export control, carrying one panel that had been\ndeliberately removed. It would have looked like a small, obviously-correct improvement in\nreview, and it would have been shipped by someone with no reason to hash two files.</p>\n<p>What the gates produced instead:</p>\n<pre><code class=\"language-text\">signal_class:  duplicate\nclaim:         Two diverged copies of the workspace insights summary exist; the linked copy is\n               administrator-only and the unlinked copy is four months stale. No end-user\n               persona can reach a current summary, and any link added to the unlinked copy\n               would surface the stale one.\nevidence:      route walk → 0 links (control: linked screen → 3 hits);\n               git grep -rn &quot;InsightsSummary&quot; -- . → 6 hits / 3 files;\n               sha256 6f2c… vs a417…, divergent; last-change 4 months vs 3 weeks\nsurfaces:      screens, data-access-rules\npersona:       end user (workspace member)\neffort:        M\nchanges_scope: scope-change\nprice:         effort M; adds review surface across both screens and the admin access rule;\n               runtime cost none\ngate_a:        8 of 9 classes; whole-tree search found the admin-gated sibling;\n               in-flight clean; verdict EXISTS-BUT-GATED-OR-UNDISCOVERABLE\ngate_b:        Q1 fail → convert to consolidation; Q2 latent conflict; Q3 no third use,\n               no prior resolution located\n</code></pre>\n<p>And in DROPPED, one line, because the original framing is worth recording as dead:</p>\n<pre><code class=\"language-text\">- &quot;Add the insights summary to the workspace navigation&quot; — gate (b) Q1: the target is the\n  stale half of a divergent fork (sha256 6f2c… vs a417…). Converted to a consolidation.\n</code></pre>\n<blockquote>\n<p>The gates did not merely filter this candidate, they inverted it, and that is the normal\ncase.</p>\n</blockquote>\n<h3 id=\"what-to-take-from-it\">What to take from it</h3>\n<ul>\n<li><strong>Step 3 of gate (a) — the unscoped whole-tree search — is the cheapest step and it did the\nwork.</strong> The class sweep had already walked screens and found nothing; one unfiltered search\non the identifier found the sibling in seconds.</li>\n<li><strong>The class-2 control is what made the finding admissible at all.</strong> A zero from a broken walk\nis indistinguishable from a zero from a real orphan.</li>\n<li><strong>The hash comparison is not a formality.</strong> Linkage was the intuitive proxy for currency, and\nit pointed the wrong way. Two commands settled it.</li>\n<li><strong>The most dangerous proposals are the small, obviously-correct ones.</strong> Nobody reviews a nav\nlink. That is precisely why it needed both gates.</li>\n</ul>\n","words":1230}],"body":"# Discover UX a codebase can already support\n\nAsk for UX improvements and you get a wish list: ideas that are plausible, unanchored,\nand — often enough to be the default — already built. The expensive failures are not the\nbad ideas. They are the good ones that duplicate something already shipped behind a\npermission, or that add a second word for a thing the codebase already names, or that put\na link on the stale half of a fork nobody noticed had two halves.\n\nThis skill finds opportunities the way a search finds evidence. It enumerates the surfaces\nfirst, sweeps nine signal classes that each have a recipe and a named false-positive check,\nand then puts every survivor through two gates before it is allowed onto the page: **has\nthis already been implemented**, and **would proposing this create confusion**. Candidates\nthat fail are not deleted — they go into a DROPPED section with one reason line each,\nbecause the reason is what stops the next agent proposing them again next month.\n\nTwo modes share one gate stack and one output contract, differing only in the seed set:\n**pure analysis**, which sweeps the whole surface inventory, and **riding a change**, which\ntakes a blast map and asks what the change just made newly possible. Neither mode builds\nanything. A discovery run that starts editing files has failed at its own job.\n\n## What separates an opportunity from an idea\n\n- **An anchor.** Every claim points at `path:line`, or at a verbatim query and its result\n  count. A finding with no anchor is an opinion with a confident tone.\n- **A gate record, not a gate claim.** \"I checked whether this exists\" is not a record. The\n  record is the three names it was searched under, the count of surface classes swept, the\n  whole-tree search, the work-in-flight search, and the access check — written down. An\n  empty gate record disqualifies the candidate, however good the idea is.\n- **A stated sweep coverage.** Which surface classes were enumerated and which were not.\n  An unenumerated class is a hole in gate (a), and a report that hides it is claiming a\n  completeness it did not buy.\n- **A clean result is a valid result.** Zero survivors, with a sweep record showing what was\n  checked, is a better deliverable than a padded list. The cap is a ceiling, never a quota.\n- **Offered, never taken.** Nothing here gets implemented by the run that found it. An agent\n  that has just found a good idea is exactly the agent that will implement it, which is why\n  the prohibition is written into the output header rather than left to judgement.\n\nComposition: **`investigate-codebase`** owns the searching — the control rule on every\nnegative, the contradiction table, the child briefs — and this skill calls it rather than\nimprovising searches. **`blast-area`** produces the map that seeds riding-a-change mode, and\nthis skill **consumes** it rather than redoing it. **`derive-codebase-context`** builds the\ngenerated registries that make step 0 cheap; where they exist, read them instead of\nre-deriving what a generator already emits. **`resolve-problem-report`** and\n**`land-complex-change`** own building a chosen candidate. Install the companions with\n`npx skills add crissmoldovan/agent-skills`.\n\n## When to Use\n\n- Someone wants to know what the product could do better that the code can already support.\n- A change just landed or is about to, and the question is what it made newly possible,\n  newly exposed, or newly wrong.\n- A roadmap needs candidates anchored in the codebase rather than in a workshop.\n- A surface feels incoherent — two ways to do one thing, a word that means two things — and\n  the incoherence needs locating before it is designed around.\n- Data is being collected and somebody suspects nobody can see it, or that a capability\n  exists but nobody can reach it.\n- A previous list of \"improvements\" turned out to be half-implemented already, and the next\n  list needs to survive the check the last one skipped.\n\nDo not use it for greenfield design — there is no codebase to sweep, and the gates have\nnothing to search. Do not use it for visual or aesthetic critique: nothing here judges\nwhether a screen looks good, and a finding of the form \"this feels dated\" has no anchor and\nno gate record. Do not use it to design or evaluate an experiment; A/B strategy is a\ndifferent discipline with different evidence. Do not use it to prioritise someone else's\nbacklog — this skill discovers candidates from the code, it does not rank items somebody\nelse wrote. Do not use it to answer a question about how the code works; that is\n`investigate-codebase`, which this skill calls. Do not use it to map what a change would\naffect: that is `blast-area`, whose output this skill consumes as a seed set. Do not use it\nto build the fix — `resolve-problem-report` owns the report-to-resolution pipeline and\n`land-complex-change` owns landing the change inside a budget.\n\n## Prerequisites\n\n1. **A mode, chosen and stated.** Pure analysis sweeps the inventory; riding a change takes\n   a blast map as its seed and asks the five newly-questions against it. The modes share the\n   gates and the output contract, so this is a choice of seed set, not of rigour.\n   **Complete when:** the mode is named in the output header, with its seed.\n2. **The repository at a stated revision, with its dirty state.** Findings rot. A candidate\n   that does not exist at this sha may exist at the next one, and half the false positives\n   this skill catches live in work that is in flight rather than in the tree.\n   **Complete when:** sha and dirty state are recorded in the header.\n3. **Forge reach declared.** Whether open branches and open pull requests are searchable\n   from here. This is not a nicety: in one measured sweep, both of the strongest naming\n   collisions found were between two open pull requests and were invisible in the tree.\n   **Complete when:** forge access is recorded as available, or its absence is recorded as a\n   named confidence caveat.\n4. **Datastore reach declared.** Whether the access rules — who may read which rows — can be\n   queried. Two signal classes depend on it, and a missing store makes them half-answerable\n   rather than unanswerable.\n   **Complete when:** each store is queryable and queried, or named as out of reach.\n5. **The personas named.** Who the surfaces serve: end user, operator, administrator,\n   integrator, agent. Every finding names one. \"Users\" as a single undifferentiated noun is\n   what hides the most common form of the first signal class — a reader whose access rule\n   excludes the very persona the rows are about.\n   **Complete when:** the persona list is written down, and each is one somebody could be.\n\n## Procedure\n\n1. **Step 0, mandatory: build the surface inventory before looking for anything.** Nine\n   classes. A sweep that starts from an idea and searches for support for it finds support\n   for it; a sweep that starts from the inventory finds what is there. Consume generated\n   registries where they exist — a route index, a tool catalogue, a job list — and never\n   re-derive by grep what a generator emits. **Record which classes were enumerated and\n   which were not**, as \"n of 9\", with a skip reason per omission. An unenumerated class is\n   a hole in gate (a) and the report says so on the page. Recipes per class are in\n   [the surface inventory](references/surface-inventory.md).\n\n   | # | Class (id) | Enumerate | The trap it exists to catch |\n   |---|---|---|---|\n   | 1 | **HTTP routes** (`http-routes`) | every endpoint and the methods it answers | a route that exists and returns nothing is not a surface |\n   | 2 | **Pages and screens** (`screens`) | every screen **and what links to it** | linkage is the surface; a screen nothing links to is class-2 signal, not inventory |\n   | 3 | **Tool registries** (`tool-registries`) | every registry, then every tool in each | **plural is load-bearing** — one measured monorepo has two, and the second one is where the false positives live |\n   | 4 | **CLI entry points** (`cli`) | binaries, subcommands, and script targets a human is told to run | a script in the manifest nobody documents is reachable and undiscoverable |\n   | 5 | **Background jobs** (`jobs`) | tasks, queues, crons — and the registry each must appear in to run | an unregistered job is not a surface; it is a silent nothing |\n   | 6 | **Outbound notification channels** (`notifications-out`) | mail, chat, push, webhooks out — and what triggers each | a channel with no configured recipient delivers nowhere and reports success |\n   | 7 | **Inbound webhooks** (`webhooks-in`) | every receiver, its verification, and what it does on receipt | a receiver that verifies and drops is a surface that returns nothing |\n   | 8 | **Docs and help text** (`docs-and-help`) | in-product help, error copy, READMEs, command help | help text is a surface with a persona; stale help is a defect, not a typo |\n   | 9 | **Data access rules** (`data-access-rules`) | who may read which rows, per persona — the rules, not the tables | existence is not reach; this class is what turns \"missing\" into \"gated\" |\n\n   The rule that makes the inventory honest: **a surface that renders and returns nothing is\n   not a surface.** Count what a persona can actually reach and see.\n\n2. **Sweep the nine signal classes, each with its false-positive check run BEFORE the\n   finding is written.** The check is not review; it is part of the recipe, and a finding\n   written before its check is a finding that will be withdrawn. Full recipes, the exact\n   searches, and the measured failure behind each check are in\n   [the nine signal classes](references/signal-classes.md).\n\n   | # | Signal (id) | Recipe, in one line | False-positive check, run first |\n   |---|---|---|---|\n   | 1 | **collected-but-unsurfaced** (`unsurfaced`) | persisted fields with no reader on any enumerated surface | the subtle form: a reader exists but its **access rule excludes the persona the rows are about** — check reach, not existence |\n   | 2 | **orphan surface** (`orphan`) | for each screen or route, search for its path **in both quote styles and as a template prefix** | re-classify into linked / **mentioned-only** / reachable-by-design. CONTROL: assert the route walk returned a plausible count before trusting any zero |\n   | 3 | **duplicate surface** (`duplicate`) | sibling basenames, then **content hashes** of the pair | divergent hashes mean forks — and **the linked one is not necessarily the newer one**. Converts class-2 findings into consolidations |\n   | 4 | **competing vocabulary** (`vocabulary`) | one concept, two words — searched **including open branches and pull requests** | this class hides in work in flight; and **a shared word with different membership is worse than two disjoint words** |\n   | 5 | **surface asymmetry** (`asymmetry`) | set difference **in both directions** between two registries or two surfaces | the item may exist in a registry you did not enumerate — **re-search the whole tree by name** before calling it missing |\n   | 6 | **measured-but-unrouted** (`unrouted`) | values computed or scored, with no route to a decision point | the consumer may be **data-resident** — a saved query, a dashboard row — which no code search returns |\n   | 7 | **silent failure** (`silent-failure`) | success-shaped non-events, write-then-act orderings, swallowed errors **on the asked-for path** | fail-soft makes its own tests decorative — a test asserting \"did not throw\" proves nothing; assert the inner call fired |\n   | 8 | **cannot-describe-itself** (`cannot-describe-itself`) | identity, principal, capability list, refusal reason — each answerable in one call? | and the inverse: a **predictor using a rule the executor does not apply**, so the preview says yes and the run refuses |\n   | 9 | **stale deferral markers** (`stale-deferral`) | three narrowing filters, never a raw marker grep | a raw grep for deferral markers returns four figures and is useless; the filters are reachability, the named blocker being gone, and age |\n\n   The three narrowing filters for class 9, in order: the marker sits on a path reachable\n   from an enumerated surface; the condition it defers on **has since become true** or the\n   blocker it names no longer exists; and the line is older than a staleness threshold read\n   from blame. The threshold is currently reasoned rather than measured and is awaiting\n   benchmark calibration — state the value you used.\n\n3. **Run gate (a), NOT-ALREADY-IMPLEMENTED, in five ordered steps, and record each one.**\n   This is the gate that pays for itself. Steps are ordered by cost, and step 3 is the\n   cheapest thing in this skill and the one that catches the most embarrassing failure.\n\n   1. **Name it three ways** — the user's words, the domain word this codebase uses, and the\n      identifier form (the symbol, the slug, the route segment). Most already-built things\n      are missed because they were searched under one of the three.\n   2. **Sweep every step-0 class** for it, and record **\"n of m\"**. Not \"I looked\" — the\n      count, with the classes named.\n   3. **Search the whole tree by name.** Unscoped, no path filter. This is the step that\n      catches the second-registry false positive: the capability exists, registered\n      somewhere the class sweep never enumerated.\n   4. **Search work in flight** — open branches and open pull requests. The tree is not the\n      product; it is the product minus everything currently being built.\n   5. **Check access, not just existence.** A capability nobody can reach is not implemented\n      from the persona's side, and this step is what turns a wrong drop into a real finding.\n\n   Three verdicts, one per candidate:\n\n   | Verdict | Disposition |\n   |---|---|\n   | **EXISTS-AND-REACHABLE** | drop, with its reason line in DROPPED |\n   | **EXISTS-BUT-GATED-OR-UNDISCOVERABLE** | **re-file** as an access or discoverability opportunity — the claim changes and the effort usually drops a class |\n   | **DOES-NOT-EXIST** | proceed to gate (b) |\n\n   **An empty gate-(a) record disqualifies the candidate.** Not \"flags\", not \"caveats\" —\n   disqualifies. A claim of having checked is not a record of a check.\n\n4. **Run gate (b), NO-CONFUSION, as three searched questions.** Searched, not considered:\n   each answer carries the query that produced it. Dispositions and the worked searches are\n   in [the two gates](references/gates.md).\n\n   - **Q1 — is there already a second way to do this?** If yes, the proposal is **converted\n     into a consolidation** and is never presented as new. Adding a third way to do a thing\n     that already has two is the failure this question exists to prevent.\n   - **Q2 — would this create a conflicting affordance?** Two controls whose effects\n     overlap, disagree, or shadow each other; a new default that contradicts an existing\n     one.\n   - **Q3 — does the name collide?** Including **near-neighbours** — singular/plural, a\n     prefix of an existing term, the same word in another subsystem — and including open\n     branches. A failure here means **drop, or re-scope while stating what was re-scoped**.\n     A collision that is kept and noted in a caveat is a failed proposal, not a caveated one.\n\n   **Special rule for a shared word:** when two subsystems already use one word for two\n   things, name **both** subsystems in the finding, and **locate the prior written\n   resolution before proposing anything**. Somebody has usually already decided this, and\n   re-deciding it silently is how a repository ends up with three answers.\n\n   Every candidate that fails either gate goes into the **DROPPED** section with one reason\n   line. That section is the most reusable part of the report.\n\n5. **Expect the gates to invert a candidate, not merely filter it.** In one measured sweep,\n   an orphan screen — no link anywhere in the tree — looked like a clean \"add it to the\n   navigation\". Gate (a) step 3, the whole-tree search by name, found a sibling screen at a\n   near-identical path that *was* linked, behind an administrator-only rule. Gate (b) Q1\n   then compared content hashes: the two had diverged, and the orphan was the **stale** half\n   of the fork. The proposal that would have shipped was \"add a nav link\", and it would have\n   surfaced the stale fork to every user of the product. What shipped instead was a\n   consolidation: reconcile the fork, keep one, and decide the access rule deliberately.\n\n   > The gates did not merely filter this candidate, they inverted it, and that is the\n   > normal case.\n\n   The full run, with its searches and its hash comparison, is in\n   [a worked discovery](references/worked-discovery.md).\n\n6. **Riding a change: seed from the blast map and ask five questions per affected surface.**\n   The input is `blast-area`'s envelope — surfaces, nodes, edges, blindspots. For each\n   affected surface ask: what is **newly possible** that was not before; what is **newly\n   exposed** to a persona who could not see it; what is **newly asymmetric** against its\n   sibling surface; what is **newly wrong** — copy, help text, an error message, a reason\n   code that has stopped being true; and what is **newly orphaned or duplicated** by the\n   change. Then price the scope, mechanically — the questions and the pricing worked through\n   are in [riding a change](references/riding-a-change.md).\n\n   **INSIDE-SCOPE** means all five of: only files the change already touches; no new\n   surface; no new user-visible name; no migration; and no new spend path. Anything else is\n   a **SCOPE-CHANGE** and carries a **three-part price** — effort class (S/M/L), the review\n   surface it adds, and the runtime cost if it is spend-bearing — **or it is not offered at\n   all**. There is no unpriced middle.\n\n   State this sentence verbatim in the output header of a riding-a-change run:\n\n   ```text\n   Scope proposals in this report are offered, never taken: nothing here has been\n   implemented, and the run that produced it will not implement it.\n   ```\n\n7. **Apply the reason-code vocabulary rule to any \"make this absence explain itself\"\n   proposal.** This shape recurs across at least three of the signal classes and is the most\n   frequently botched fix: the proposal is to have the system say *why* nothing happened,\n   and the implementation invents a fresh vocabulary next to the one already there. Four\n   requirements, all four or the proposal is not gated:\n\n   - **Cite an existing precedent enum and extend it.** Never introduce a second vocabulary\n     for the same kind of absence.\n   - **State the not-attempted vs ran-no-result distinction.** \"We never ran it\" and \"we ran\n     it and found nothing\" are different facts, and a code that conflates them is worse than\n     no code, because it is confidently wrong.\n   - **Supply negative controls known in advance** — cases whose expected code you can state\n     before running, so a vocabulary that is silently never emitted is detectable.\n   - **Check the code NAME is true under the predicate that actually produces it.** A code\n     called `no-match` emitted by a branch that also fires on a timeout is a lie shipped in a\n     surface. A reason code is a UX surface and can be wrong exactly the way a screen can.\n\n8. **Rank, cap at ten, and attach the coverage.** The rank key is strict and applied in\n   order — later keys break ties in earlier ones, never override them:\n\n   ```text\n   1. evidence strength    measured with a fired control > measured > sampled > inferred\n   2. affected population   a number where one is obtainable; \"unknown\" sorts last\n   3. harm shape            silent wrong answer > silent nothing > friction > cosmetic\n   4. effort                ascending — S, then M, then L\n   5. scope                 inside-scope before scope-change\n   ```\n\n   Three sections, always all three, defined in [the output contract](references/output-contract.md):\n   the **ranked rows** (at most ten), **DROPPED** (one reason line each), and **NOT SWEPT**\n   (which surface and signal classes were not covered, and why). Per-row required fields:\n\n   ```json\n   {\n     \"signal_class\": \"orphan\",\n     \"claim\": \"the gap, stated as what is missing or wrong — never the fix\",\n     \"evidence\": \"path:line, or the verbatim query with its tool and hit count\",\n     \"surfaces\": [\"screens\", \"http-routes\"],\n     \"persona\": \"the role affected, from the named list\",\n     \"effort\": \"S | M | L\",\n     \"changes_scope\": \"inside-scope | scope-change\",\n     \"price\": { \"effort_class\": \"M\", \"review_surface\": \"…\", \"runtime_cost\": \"… | none\" },\n     \"gate_a\": { \"names\": [\"…\", \"…\", \"…\"], \"classes_swept\": \"7 of 9\",\n                 \"whole_tree\": \"verbatim query → hits\", \"in_flight\": \"…\",\n                 \"access\": \"…\", \"verdict\": \"DOES-NOT-EXIST\" },\n     \"gate_b\": { \"q1\": \"…\", \"q2\": \"…\", \"q3\": \"…\",\n                 \"disposition\": \"propose | convert | re-scope | drop\" }\n   }\n   ```\n\n   **Enforced exclusions.** No redesign essays — the claim is the gap, and the fix belongs to\n   whoever builds it. No unanchored findings. No aesthetic critique. And no \"add a link to\n   this\" when the target has a duplicate, which is the exact failure step 5 describes.\n   **A clean result is a valid result:** zero rows plus a full sweep record is a complete,\n   deliverable answer, and padding to the cap is the failure the cap was meant to prevent.\n\n9. **Degrade explicitly, and say which rung you are on.** Every rung below changes the\n   answer's reach and belongs in the output, not in a footnote.\n\n   | Missing | What happens |\n   |---|---|\n   | **Subagents** | sweep sequentially **in yield order** — classes 2, 5, 1 first — and declare the rest **unswept** rather than rushing them |\n   | **Model choice** | the cap drops from ten rows to **five**; depth is what the band was buying |\n   | **Datastore** | classes 1 and 6 lose their access-rule half; report that half unchecked, never empty |\n   | **Git or forge access** | the **most damaging** degradation — both of the strongest collisions in one measured sweep were between two open pull requests. A named confidence caveat is required on every gate-(a) and gate-(b) record |\n   | **Generated registries** | build the minimum inventory by hand, recommend `derive-codebase-context` as a follow-up, and **never block on it** |\n\n10. **Hand the report on, unbuilt.** A chosen candidate goes to `resolve-problem-report` to\n    be dug into and specced, or straight to `land-complex-change` when it is already well\n    enough understood to budget. Hand over the rows **with** the DROPPED and NOT-SWEPT\n    sections: a consumer given only the ranked rows will read the absences as checked.\n\n11. **Document the run when the branch calls for it.** The convention is below, identical in\n    every skill of this family that supports it; what a discovery run puts under those\n    headings is the **sweep ledger** described next.\n\n### The sweep ledger\n\nUnder the five fixed headings, a `new-ux-discovery` record carries these required bullets:\n\n- **What was searched** — the surface inventory as enumerated, **with a skip reason per\n  omitted class**; then the per-signal-class commands verbatim with their raw counts,\n  **including the classes that yielded nothing**. A zero-yield class that is missing from the\n  ledger reads as a class that was never run.\n- **Who searched it** — one line per child: role, tier band, the class or surface it was\n  given, and what was withheld. Sequential passes are recorded as sequential.\n- **What each found** — the raw hits per class, and the **control assertions**: for class 2,\n  that the route walk returned a plausible count; for every zero, the positive variant that\n  fired.\n- **How it reconciled** — the re-classifications (mentioned-only versus linked,\n  fork-versus-duplicate), and the contradiction table where two classes disagreed about the\n  same artefact.\n- **What was decided and why** — **every per-candidate gate record verbatim, including the\n  dropped ones.** This is the most valuable section in the file: the dropped records are why\n  the next agent does not re-propose them. Then the ranked output, and the closing paragraph\n  of what was not swept.\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/new-ux-discovery/<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\nSweep this repository for UX improvements it could already support. Enumerate the surfaces\nfirst and tell me how many classes you actually got through — and for every candidate, show\nme the not-already-implemented check before you show me the idea.\n```\n\n```text\nWe just merged the change that splits enrichment into two stages. Ride that change: for each\nsurface it touched, what is newly possible, newly exposed, or newly wrong now? Price anything\noutside the files that change already touched, and do not build any of it.\n```\n\n```text\nI suspect we collect a lot of data nobody can see. Find the fields we persist that no screen,\nroute or export reads — and check whether the reader exists but excludes the very people the\nrows are about, because that is the case I keep missing.\n```\n\n```text\nBefore I write up these three ideas: put each through the gates. Search the whole tree by\nname, search the open pull requests too, and tell me plainly if one of them is already\nshipped behind an admin permission.\n```\n\n```text\nRun a discovery sweep and document the run (--document) so the dropped candidates are written\ndown with their reasons. Last time we re-proposed the same two things a month apart because\nnobody recorded why they were dropped.\n```\n\n## Pitfalls\n\n- **Searching for support for an idea instead of sweeping the inventory.** A sweep seeded by\n  a hypothesis returns the hypothesis. Step 0 exists to make the seed the codebase.\n- **One tool registry.** Plural is load-bearing. The capability you are about to propose is\n  registered in the second registry, and gate (a) step 3 is the only thing that finds it.\n- **\"I checked that it doesn't exist.\"** That sentence is not a record and does not satisfy\n  gate (a). Three names, n-of-m classes, the whole-tree query, work in flight, access.\n- **A zero-hit search read as absence.** The route walk that returns nothing may have been\n  broken. Assert a plausible count first; a control that fires proves the apparatus worked.\n- **Assuming the linked copy is the current one.** Divergent hashes mean a fork, and forks do\n  not label their halves. The orphan is the newer one often enough to matter.\n- **Proposing \"add a link\" to a surface with a duplicate.** That is the one enforced\n  exclusion with a shipping consequence: the link surfaces the stale half to everybody.\n- **Searching only the tree.** Half the naming collisions live in open pull requests. Without\n  forge access this skill is on its worst rung and has to say so.\n- **Treating a shared word as a smaller problem than two words.** One word with two\n  memberships is the harder failure; disjoint vocabularies at least sort.\n- **A second reason-code vocabulary.** Extend the enum that exists. And check the code's name\n  is true under the branch that emits it — a code that fires on a timeout and says \"no match\"\n  is a wrong answer with a confident label.\n- **Conflating not-attempted with ran-and-found-nothing.** Two different facts, one code, and\n  everyone downstream now believes something false.\n- **Padding to the cap.** Ten is a ceiling, never a quota. A one-row report with a full sweep\n  record beats a ten-row report with four unanchored fillers.\n- **Presenting the fix as the claim.** \"Add a filter to the export screen\" is a design\n  decision taken before the gap was agreed. The claim is the gap.\n- **Taking a scope proposal instead of offering it.** The run that finds a good idea is the\n  run most likely to implement it, and implementing it silently converts a discovery report\n  into an unreviewed change.\n- **Dropping candidates quietly.** A drop with no reason line is work that will be redone.\n\n## Verification\n\n- [ ] The mode is stated with its seed set, and the revision and dirty state are in the header.\n- [ ] Step 0 ran first, and the output records the surface inventory as **\"n of 9\"** with a\n      skip reason for every class not enumerated.\n- [ ] Generated registries were consumed where they exist rather than re-derived by search.\n- [ ] Every one of the nine signal classes appears in the coverage record, **including those\n      that yielded nothing**.\n- [ ] Each finding's false-positive check was run **before** the finding was written, and the\n      check is recorded with it.\n- [ ] Class 2's control assertion — that the route walk returned a plausible count — fired\n      and is recorded.\n- [ ] Every candidate carries a **gate (a) record** with all five steps: three names, the\n      n-of-m class sweep, the whole-tree query, the work-in-flight search, and the access\n      check. No candidate with an empty record appears in the ranked rows.\n- [ ] Every gate-(a) verdict is one of EXISTS-AND-REACHABLE, EXISTS-BUT-GATED-OR-\n      UNDISCOVERABLE, or DOES-NOT-EXIST, and a gated verdict was **re-filed** rather than\n      dropped.\n- [ ] Every surviving candidate carries a **gate (b) record** answering Q1, Q2 and Q3, each\n      with the query that answered it.\n- [ ] Any Q1 failure was **converted to a consolidation**, not presented as new; any Q3\n      failure was dropped or re-scoped **with the re-scope stated**. No collision is carried\n      in a caveat.\n- [ ] A shared word names **both** subsystems, and the prior written resolution was located\n      before anything was proposed.\n- [ ] The **DROPPED** section exists with one reason line per dropped candidate, and the\n      **NOT SWEPT** section names the classes not covered.\n- [ ] The ranked list is capped at ten (five where model choice was unavailable) and sorted by\n      the strict key in order.\n- [ ] Every row carries all required fields, and every claim states the **gap** rather than a\n      fix, anchored to `path:line` or a verbatim query and count.\n- [ ] Riding-a-change runs price every SCOPE-CHANGE with all three parts, and the\n      offered-never-taken sentence appears **verbatim** in the output header.\n- [ ] Any \"make this absence explain itself\" proposal cites an existing enum, distinguishes\n      not-attempted from ran-no-result, names its negative controls, and checks the code name\n      against its predicate.\n- [ ] The degradation rung is named in the output where any capability was missing, and the\n      forge-access caveat is on every gate record when the forge was unreachable.\n- [ ] Nothing was designed, nothing was built, no file in the repository was changed, and\n      nothing was committed except a run record that was explicitly asked for.\n- [ ] Where a record was written, it exists at `docs/new-ux-discovery/<UTC-date>-<slug>.md`\n      (or the harness scratch path for an unattended run, named in the final answer), under\n      the five required headings, carrying the sweep ledger's required bullets.\n\n## Deeper reading\n\n- [The surface inventory](references/surface-inventory.md): all nine classes with their\n  enumeration recipes, what counts as reachable, the registries-are-plural rule, and how to\n  build the inventory by hand when nothing generates it.\n- [The nine signal classes](references/signal-classes.md): each class with its full recipe,\n  its named false-positive check, the measured failure the check exists to prevent, and the\n  yield order to sweep them in when the passes are sequential.\n- [The two gates](references/gates.md): gate (a)'s five steps with worked searches and the\n  three verdicts, gate (b)'s three questions with their dispositions, the shared-word rule,\n  and what a complete gate record looks like written out.\n- [Riding a change](references/riding-a-change.md): the five newly-questions applied per\n  surface, the mechanical inside-scope test, the three-part price, and why scope proposals\n  are offered and never taken.\n- [The output contract](references/output-contract.md): the three sections, the rank key\n  applied to a worked tie, every row field defined, the enforced exclusions, and what a clean\n  result looks like on the page.\n- [Reason codes as a UX surface](references/reason-codes.md): the precedent-enum rule, the\n  not-attempted distinction, negative controls known in advance, and the name-versus-predicate\n  check with its failure modes.\n- [A worked discovery](references/worked-discovery.md): one candidate taken from orphan screen\n  to consolidation, with the searches, the hash comparison, and the inverted proposal.\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=\"discover-ux-a-codebase-can-already-support\">Discover UX a codebase can already support</h2>\n<p>Ask for UX improvements and you get a wish list: ideas that are plausible, unanchored,\nand — often enough to be the default — already built. The expensive failures are not the\nbad ideas. They are the good ones that duplicate something already shipped behind a\npermission, or that add a second word for a thing the codebase already names, or that put\na link on the stale half of a fork nobody noticed had two halves.</p>\n<p>This skill finds opportunities the way a search finds evidence. It enumerates the surfaces\nfirst, sweeps nine signal classes that each have a recipe and a named false-positive check,\nand then puts every survivor through two gates before it is allowed onto the page: <strong>has\nthis already been implemented</strong>, and <strong>would proposing this create confusion</strong>. Candidates\nthat fail are not deleted — they go into a DROPPED section with one reason line each,\nbecause the reason is what stops the next agent proposing them again next month.</p>\n<p>Two modes share one gate stack and one output contract, differing only in the seed set:\n<strong>pure analysis</strong>, which sweeps the whole surface inventory, and <strong>riding a change</strong>, which\ntakes a blast map and asks what the change just made newly possible. Neither mode builds\nanything. A discovery run that starts editing files has failed at its own job.</p>\n<h3 id=\"what-separates-an-opportunity-from-an-idea\">What separates an opportunity from an idea</h3>\n<ul>\n<li><strong>An anchor.</strong> Every claim points at <code>path:line</code>, or at a verbatim query and its result\ncount. A finding with no anchor is an opinion with a confident tone.</li>\n<li><strong>A gate record, not a gate claim.</strong> &quot;I checked whether this exists&quot; is not a record. The\nrecord is the three names it was searched under, the count of surface classes swept, the\nwhole-tree search, the work-in-flight search, and the access check — written down. An\nempty gate record disqualifies the candidate, however good the idea is.</li>\n<li><strong>A stated sweep coverage.</strong> Which surface classes were enumerated and which were not.\nAn unenumerated class is a hole in gate (a), and a report that hides it is claiming a\ncompleteness it did not buy.</li>\n<li><strong>A clean result is a valid result.</strong> Zero survivors, with a sweep record showing what was\nchecked, is a better deliverable than a padded list. The cap is a ceiling, never a quota.</li>\n<li><strong>Offered, never taken.</strong> Nothing here gets implemented by the run that found it. An agent\nthat has just found a good idea is exactly the agent that will implement it, which is why\nthe prohibition is written into the output header rather than left to judgement.</li>\n</ul>\n<p>Composition: <strong><code>investigate-codebase</code></strong> owns the searching — the control rule on every\nnegative, the contradiction table, the child briefs — and this skill calls it rather than\nimprovising searches. <strong><code>blast-area</code></strong> produces the map that seeds riding-a-change mode, and\nthis skill <strong>consumes</strong> it rather than redoing it. <strong><code>derive-codebase-context</code></strong> builds the\ngenerated registries that make step 0 cheap; where they exist, read them instead of\nre-deriving what a generator already emits. <strong><code>resolve-problem-report</code></strong> and\n<strong><code>land-complex-change</code></strong> own building a chosen candidate. Install the companions with\n<code>npx skills add crissmoldovan/agent-skills</code>.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>Someone wants to know what the product could do better that the code can already support.</li>\n<li>A change just landed or is about to, and the question is what it made newly possible,\nnewly exposed, or newly wrong.</li>\n<li>A roadmap needs candidates anchored in the codebase rather than in a workshop.</li>\n<li>A surface feels incoherent — two ways to do one thing, a word that means two things — and\nthe incoherence needs locating before it is designed around.</li>\n<li>Data is being collected and somebody suspects nobody can see it, or that a capability\nexists but nobody can reach it.</li>\n<li>A previous list of &quot;improvements&quot; turned out to be half-implemented already, and the next\nlist needs to survive the check the last one skipped.</li>\n</ul>\n<p>Do not use it for greenfield design — there is no codebase to sweep, and the gates have\nnothing to search. Do not use it for visual or aesthetic critique: nothing here judges\nwhether a screen looks good, and a finding of the form &quot;this feels dated&quot; has no anchor and\nno gate record. Do not use it to design or evaluate an experiment; A/B strategy is a\ndifferent discipline with different evidence. Do not use it to prioritise someone else&#39;s\nbacklog — this skill discovers candidates from the code, it does not rank items somebody\nelse wrote. Do not use it to answer a question about how the code works; that is\n<code>investigate-codebase</code>, which this skill calls. Do not use it to map what a change would\naffect: that is <code>blast-area</code>, whose output this skill consumes as a seed set. Do not use it\nto build the fix — <code>resolve-problem-report</code> owns the report-to-resolution pipeline and\n<code>land-complex-change</code> owns landing the change inside a budget.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>A mode, chosen and stated.</strong> Pure analysis sweeps the inventory; riding a change takes\na blast map as its seed and asks the five newly-questions against it. The modes share the\ngates and the output contract, so this is a choice of seed set, not of rigour.\n<strong>Complete when:</strong> the mode is named in the output header, with its seed.</li>\n<li><strong>The repository at a stated revision, with its dirty state.</strong> Findings rot. A candidate\nthat does not exist at this sha may exist at the next one, and half the false positives\nthis skill catches live in work that is in flight rather than in the tree.\n<strong>Complete when:</strong> sha and dirty state are recorded in the header.</li>\n<li><strong>Forge reach declared.</strong> Whether open branches and open pull requests are searchable\nfrom here. This is not a nicety: in one measured sweep, both of the strongest naming\ncollisions found were between two open pull requests and were invisible in the tree.\n<strong>Complete when:</strong> forge access is recorded as available, or its absence is recorded as a\nnamed confidence caveat.</li>\n<li><strong>Datastore reach declared.</strong> Whether the access rules — who may read which rows — can be\nqueried. Two signal classes depend on it, and a missing store makes them half-answerable\nrather than unanswerable.\n<strong>Complete when:</strong> each store is queryable and queried, or named as out of reach.</li>\n<li><strong>The personas named.</strong> Who the surfaces serve: end user, operator, administrator,\nintegrator, agent. Every finding names one. &quot;Users&quot; as a single undifferentiated noun is\nwhat hides the most common form of the first signal class — a reader whose access rule\nexcludes the very persona the rows are about.\n<strong>Complete when:</strong> the persona list is written down, and each is one somebody could be.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><p><strong>Step 0, mandatory: build the surface inventory before looking for anything.</strong> Nine\nclasses. A sweep that starts from an idea and searches for support for it finds support\nfor it; a sweep that starts from the inventory finds what is there. Consume generated\nregistries where they exist — a route index, a tool catalogue, a job list — and never\nre-derive by grep what a generator emits. <strong>Record which classes were enumerated and\nwhich were not</strong>, as &quot;n of 9&quot;, with a skip reason per omission. An unenumerated class is\na hole in gate (a) and the report says so on the page. Recipes per class are in\n<a href=\"references/surface-inventory.md\">the surface inventory</a>.</p>\n<table>\n<thead>\n<tr>\n<th>#</th>\n<th>Class (id)</th>\n<th>Enumerate</th>\n<th>The trap it exists to catch</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td><strong>HTTP routes</strong> (<code>http-routes</code>)</td>\n<td>every endpoint and the methods it answers</td>\n<td>a route that exists and returns nothing is not a surface</td>\n</tr>\n<tr>\n<td>2</td>\n<td><strong>Pages and screens</strong> (<code>screens</code>)</td>\n<td>every screen <strong>and what links to it</strong></td>\n<td>linkage is the surface; a screen nothing links to is class-2 signal, not inventory</td>\n</tr>\n<tr>\n<td>3</td>\n<td><strong>Tool registries</strong> (<code>tool-registries</code>)</td>\n<td>every registry, then every tool in each</td>\n<td><strong>plural is load-bearing</strong> — one measured monorepo has two, and the second one is where the false positives live</td>\n</tr>\n<tr>\n<td>4</td>\n<td><strong>CLI entry points</strong> (<code>cli</code>)</td>\n<td>binaries, subcommands, and script targets a human is told to run</td>\n<td>a script in the manifest nobody documents is reachable and undiscoverable</td>\n</tr>\n<tr>\n<td>5</td>\n<td><strong>Background jobs</strong> (<code>jobs</code>)</td>\n<td>tasks, queues, crons — and the registry each must appear in to run</td>\n<td>an unregistered job is not a surface; it is a silent nothing</td>\n</tr>\n<tr>\n<td>6</td>\n<td><strong>Outbound notification channels</strong> (<code>notifications-out</code>)</td>\n<td>mail, chat, push, webhooks out — and what triggers each</td>\n<td>a channel with no configured recipient delivers nowhere and reports success</td>\n</tr>\n<tr>\n<td>7</td>\n<td><strong>Inbound webhooks</strong> (<code>webhooks-in</code>)</td>\n<td>every receiver, its verification, and what it does on receipt</td>\n<td>a receiver that verifies and drops is a surface that returns nothing</td>\n</tr>\n<tr>\n<td>8</td>\n<td><strong>Docs and help text</strong> (<code>docs-and-help</code>)</td>\n<td>in-product help, error copy, READMEs, command help</td>\n<td>help text is a surface with a persona; stale help is a defect, not a typo</td>\n</tr>\n<tr>\n<td>9</td>\n<td><strong>Data access rules</strong> (<code>data-access-rules</code>)</td>\n<td>who may read which rows, per persona — the rules, not the tables</td>\n<td>existence is not reach; this class is what turns &quot;missing&quot; into &quot;gated&quot;</td>\n</tr>\n</tbody></table>\n<p>The rule that makes the inventory honest: <strong>a surface that renders and returns nothing is\nnot a surface.</strong> Count what a persona can actually reach and see.</p>\n</li>\n<li><p><strong>Sweep the nine signal classes, each with its false-positive check run BEFORE the\nfinding is written.</strong> The check is not review; it is part of the recipe, and a finding\nwritten before its check is a finding that will be withdrawn. Full recipes, the exact\nsearches, and the measured failure behind each check are in\n<a href=\"references/signal-classes.md\">the nine signal classes</a>.</p>\n<table>\n<thead>\n<tr>\n<th>#</th>\n<th>Signal (id)</th>\n<th>Recipe, in one line</th>\n<th>False-positive check, run first</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td><strong>collected-but-unsurfaced</strong> (<code>unsurfaced</code>)</td>\n<td>persisted fields with no reader on any enumerated surface</td>\n<td>the subtle form: a reader exists but its <strong>access rule excludes the persona the rows are about</strong> — check reach, not existence</td>\n</tr>\n<tr>\n<td>2</td>\n<td><strong>orphan surface</strong> (<code>orphan</code>)</td>\n<td>for each screen or route, search for its path <strong>in both quote styles and as a template prefix</strong></td>\n<td>re-classify into linked / <strong>mentioned-only</strong> / reachable-by-design. CONTROL: assert the route walk returned a plausible count before trusting any zero</td>\n</tr>\n<tr>\n<td>3</td>\n<td><strong>duplicate surface</strong> (<code>duplicate</code>)</td>\n<td>sibling basenames, then <strong>content hashes</strong> of the pair</td>\n<td>divergent hashes mean forks — and <strong>the linked one is not necessarily the newer one</strong>. Converts class-2 findings into consolidations</td>\n</tr>\n<tr>\n<td>4</td>\n<td><strong>competing vocabulary</strong> (<code>vocabulary</code>)</td>\n<td>one concept, two words — searched <strong>including open branches and pull requests</strong></td>\n<td>this class hides in work in flight; and <strong>a shared word with different membership is worse than two disjoint words</strong></td>\n</tr>\n<tr>\n<td>5</td>\n<td><strong>surface asymmetry</strong> (<code>asymmetry</code>)</td>\n<td>set difference <strong>in both directions</strong> between two registries or two surfaces</td>\n<td>the item may exist in a registry you did not enumerate — <strong>re-search the whole tree by name</strong> before calling it missing</td>\n</tr>\n<tr>\n<td>6</td>\n<td><strong>measured-but-unrouted</strong> (<code>unrouted</code>)</td>\n<td>values computed or scored, with no route to a decision point</td>\n<td>the consumer may be <strong>data-resident</strong> — a saved query, a dashboard row — which no code search returns</td>\n</tr>\n<tr>\n<td>7</td>\n<td><strong>silent failure</strong> (<code>silent-failure</code>)</td>\n<td>success-shaped non-events, write-then-act orderings, swallowed errors <strong>on the asked-for path</strong></td>\n<td>fail-soft makes its own tests decorative — a test asserting &quot;did not throw&quot; proves nothing; assert the inner call fired</td>\n</tr>\n<tr>\n<td>8</td>\n<td><strong>cannot-describe-itself</strong> (<code>cannot-describe-itself</code>)</td>\n<td>identity, principal, capability list, refusal reason — each answerable in one call?</td>\n<td>and the inverse: a <strong>predictor using a rule the executor does not apply</strong>, so the preview says yes and the run refuses</td>\n</tr>\n<tr>\n<td>9</td>\n<td><strong>stale deferral markers</strong> (<code>stale-deferral</code>)</td>\n<td>three narrowing filters, never a raw marker grep</td>\n<td>a raw grep for deferral markers returns four figures and is useless; the filters are reachability, the named blocker being gone, and age</td>\n</tr>\n</tbody></table>\n<p>The three narrowing filters for class 9, in order: the marker sits on a path reachable\nfrom an enumerated surface; the condition it defers on <strong>has since become true</strong> or the\nblocker it names no longer exists; and the line is older than a staleness threshold read\nfrom blame. The threshold is currently reasoned rather than measured and is awaiting\nbenchmark calibration — state the value you used.</p>\n</li>\n<li><p><strong>Run gate (a), NOT-ALREADY-IMPLEMENTED, in five ordered steps, and record each one.</strong>\nThis is the gate that pays for itself. Steps are ordered by cost, and step 3 is the\ncheapest thing in this skill and the one that catches the most embarrassing failure.</p>\n<ol>\n<li><strong>Name it three ways</strong> — the user&#39;s words, the domain word this codebase uses, and the\nidentifier form (the symbol, the slug, the route segment). Most already-built things\nare missed because they were searched under one of the three.</li>\n<li><strong>Sweep every step-0 class</strong> for it, and record <strong>&quot;n of m&quot;</strong>. Not &quot;I looked&quot; — the\ncount, with the classes named.</li>\n<li><strong>Search the whole tree by name.</strong> Unscoped, no path filter. This is the step that\ncatches the second-registry false positive: the capability exists, registered\nsomewhere the class sweep never enumerated.</li>\n<li><strong>Search work in flight</strong> — open branches and open pull requests. The tree is not the\nproduct; it is the product minus everything currently being built.</li>\n<li><strong>Check access, not just existence.</strong> A capability nobody can reach is not implemented\nfrom the persona&#39;s side, and this step is what turns a wrong drop into a real finding.</li>\n</ol>\n<p>Three verdicts, one per candidate:</p>\n<table>\n<thead>\n<tr>\n<th>Verdict</th>\n<th>Disposition</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>EXISTS-AND-REACHABLE</strong></td>\n<td>drop, with its reason line in DROPPED</td>\n</tr>\n<tr>\n<td><strong>EXISTS-BUT-GATED-OR-UNDISCOVERABLE</strong></td>\n<td><strong>re-file</strong> as an access or discoverability opportunity — the claim changes and the effort usually drops a class</td>\n</tr>\n<tr>\n<td><strong>DOES-NOT-EXIST</strong></td>\n<td>proceed to gate (b)</td>\n</tr>\n</tbody></table>\n<p><strong>An empty gate-(a) record disqualifies the candidate.</strong> Not &quot;flags&quot;, not &quot;caveats&quot; —\ndisqualifies. A claim of having checked is not a record of a check.</p>\n</li>\n<li><p><strong>Run gate (b), NO-CONFUSION, as three searched questions.</strong> Searched, not considered:\neach answer carries the query that produced it. Dispositions and the worked searches are\nin <a href=\"references/gates.md\">the two gates</a>.</p>\n<ul>\n<li><strong>Q1 — is there already a second way to do this?</strong> If yes, the proposal is <strong>converted\ninto a consolidation</strong> and is never presented as new. Adding a third way to do a thing\nthat already has two is the failure this question exists to prevent.</li>\n<li><strong>Q2 — would this create a conflicting affordance?</strong> Two controls whose effects\noverlap, disagree, or shadow each other; a new default that contradicts an existing\none.</li>\n<li><strong>Q3 — does the name collide?</strong> Including <strong>near-neighbours</strong> — singular/plural, a\nprefix of an existing term, the same word in another subsystem — and including open\nbranches. A failure here means <strong>drop, or re-scope while stating what was re-scoped</strong>.\nA collision that is kept and noted in a caveat is a failed proposal, not a caveated one.</li>\n</ul>\n<p><strong>Special rule for a shared word:</strong> when two subsystems already use one word for two\nthings, name <strong>both</strong> subsystems in the finding, and <strong>locate the prior written\nresolution before proposing anything</strong>. Somebody has usually already decided this, and\nre-deciding it silently is how a repository ends up with three answers.</p>\n<p>Every candidate that fails either gate goes into the <strong>DROPPED</strong> section with one reason\nline. That section is the most reusable part of the report.</p>\n</li>\n<li><p><strong>Expect the gates to invert a candidate, not merely filter it.</strong> In one measured sweep,\nan orphan screen — no link anywhere in the tree — looked like a clean &quot;add it to the\nnavigation&quot;. Gate (a) step 3, the whole-tree search by name, found a sibling screen at a\nnear-identical path that <em>was</em> linked, behind an administrator-only rule. Gate (b) Q1\nthen compared content hashes: the two had diverged, and the orphan was the <strong>stale</strong> half\nof the fork. The proposal that would have shipped was &quot;add a nav link&quot;, and it would have\nsurfaced the stale fork to every user of the product. What shipped instead was a\nconsolidation: reconcile the fork, keep one, and decide the access rule deliberately.</p>\n<blockquote>\n<p>The gates did not merely filter this candidate, they inverted it, and that is the\nnormal case.</p>\n</blockquote>\n<p>The full run, with its searches and its hash comparison, is in\n<a href=\"references/worked-discovery.md\">a worked discovery</a>.</p>\n</li>\n<li><p><strong>Riding a change: seed from the blast map and ask five questions per affected surface.</strong>\nThe input is <code>blast-area</code>&#39;s envelope — surfaces, nodes, edges, blindspots. For each\naffected surface ask: what is <strong>newly possible</strong> that was not before; what is <strong>newly\nexposed</strong> to a persona who could not see it; what is <strong>newly asymmetric</strong> against its\nsibling surface; what is <strong>newly wrong</strong> — copy, help text, an error message, a reason\ncode that has stopped being true; and what is <strong>newly orphaned or duplicated</strong> by the\nchange. Then price the scope, mechanically — the questions and the pricing worked through\nare in <a href=\"references/riding-a-change.md\">riding a change</a>.</p>\n<p><strong>INSIDE-SCOPE</strong> means all five of: only files the change already touches; no new\nsurface; no new user-visible name; no migration; and no new spend path. Anything else is\na <strong>SCOPE-CHANGE</strong> and carries a <strong>three-part price</strong> — effort class (S/M/L), the review\nsurface it adds, and the runtime cost if it is spend-bearing — <strong>or it is not offered at\nall</strong>. There is no unpriced middle.</p>\n<p>State this sentence verbatim in the output header of a riding-a-change run:</p>\n<pre><code class=\"language-text\">Scope proposals in this report are offered, never taken: nothing here has been\nimplemented, and the run that produced it will not implement it.\n</code></pre>\n</li>\n<li><p><strong>Apply the reason-code vocabulary rule to any &quot;make this absence explain itself&quot;\nproposal.</strong> This shape recurs across at least three of the signal classes and is the most\nfrequently botched fix: the proposal is to have the system say <em>why</em> nothing happened,\nand the implementation invents a fresh vocabulary next to the one already there. Four\nrequirements, all four or the proposal is not gated:</p>\n<ul>\n<li><strong>Cite an existing precedent enum and extend it.</strong> Never introduce a second vocabulary\nfor the same kind of absence.</li>\n<li><strong>State the not-attempted vs ran-no-result distinction.</strong> &quot;We never ran it&quot; and &quot;we ran\nit and found nothing&quot; are different facts, and a code that conflates them is worse than\nno code, because it is confidently wrong.</li>\n<li><strong>Supply negative controls known in advance</strong> — cases whose expected code you can state\nbefore running, so a vocabulary that is silently never emitted is detectable.</li>\n<li><strong>Check the code NAME is true under the predicate that actually produces it.</strong> A code\ncalled <code>no-match</code> emitted by a branch that also fires on a timeout is a lie shipped in a\nsurface. A reason code is a UX surface and can be wrong exactly the way a screen can.</li>\n</ul>\n</li>\n<li><p><strong>Rank, cap at ten, and attach the coverage.</strong> The rank key is strict and applied in\norder — later keys break ties in earlier ones, never override them:</p>\n<pre><code class=\"language-text\">1. evidence strength    measured with a fired control &gt; measured &gt; sampled &gt; inferred\n2. affected population   a number where one is obtainable; &quot;unknown&quot; sorts last\n3. harm shape            silent wrong answer &gt; silent nothing &gt; friction &gt; cosmetic\n4. effort                ascending — S, then M, then L\n5. scope                 inside-scope before scope-change\n</code></pre>\n<p>Three sections, always all three, defined in <a href=\"references/output-contract.md\">the output contract</a>:\nthe <strong>ranked rows</strong> (at most ten), <strong>DROPPED</strong> (one reason line each), and <strong>NOT SWEPT</strong>\n(which surface and signal classes were not covered, and why). Per-row required fields:</p>\n<pre><code class=\"language-json\">{\n  &quot;signal_class&quot;: &quot;orphan&quot;,\n  &quot;claim&quot;: &quot;the gap, stated as what is missing or wrong — never the fix&quot;,\n  &quot;evidence&quot;: &quot;path:line, or the verbatim query with its tool and hit count&quot;,\n  &quot;surfaces&quot;: [&quot;screens&quot;, &quot;http-routes&quot;],\n  &quot;persona&quot;: &quot;the role affected, from the named list&quot;,\n  &quot;effort&quot;: &quot;S | M | L&quot;,\n  &quot;changes_scope&quot;: &quot;inside-scope | scope-change&quot;,\n  &quot;price&quot;: { &quot;effort_class&quot;: &quot;M&quot;, &quot;review_surface&quot;: &quot;…&quot;, &quot;runtime_cost&quot;: &quot;… | none&quot; },\n  &quot;gate_a&quot;: { &quot;names&quot;: [&quot;…&quot;, &quot;…&quot;, &quot;…&quot;], &quot;classes_swept&quot;: &quot;7 of 9&quot;,\n              &quot;whole_tree&quot;: &quot;verbatim query → hits&quot;, &quot;in_flight&quot;: &quot;…&quot;,\n              &quot;access&quot;: &quot;…&quot;, &quot;verdict&quot;: &quot;DOES-NOT-EXIST&quot; },\n  &quot;gate_b&quot;: { &quot;q1&quot;: &quot;…&quot;, &quot;q2&quot;: &quot;…&quot;, &quot;q3&quot;: &quot;…&quot;,\n              &quot;disposition&quot;: &quot;propose | convert | re-scope | drop&quot; }\n}\n</code></pre>\n<p><strong>Enforced exclusions.</strong> No redesign essays — the claim is the gap, and the fix belongs to\nwhoever builds it. No unanchored findings. No aesthetic critique. And no &quot;add a link to\nthis&quot; when the target has a duplicate, which is the exact failure step 5 describes.\n<strong>A clean result is a valid result:</strong> zero rows plus a full sweep record is a complete,\ndeliverable answer, and padding to the cap is the failure the cap was meant to prevent.</p>\n</li>\n<li><p><strong>Degrade explicitly, and say which rung you are on.</strong> Every rung below changes the\nanswer&#39;s reach and belongs in the output, not in a footnote.</p>\n<table>\n<thead>\n<tr>\n<th>Missing</th>\n<th>What happens</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>Subagents</strong></td>\n<td>sweep sequentially <strong>in yield order</strong> — classes 2, 5, 1 first — and declare the rest <strong>unswept</strong> rather than rushing them</td>\n</tr>\n<tr>\n<td><strong>Model choice</strong></td>\n<td>the cap drops from ten rows to <strong>five</strong>; depth is what the band was buying</td>\n</tr>\n<tr>\n<td><strong>Datastore</strong></td>\n<td>classes 1 and 6 lose their access-rule half; report that half unchecked, never empty</td>\n</tr>\n<tr>\n<td><strong>Git or forge access</strong></td>\n<td>the <strong>most damaging</strong> degradation — both of the strongest collisions in one measured sweep were between two open pull requests. A named confidence caveat is required on every gate-(a) and gate-(b) record</td>\n</tr>\n<tr>\n<td><strong>Generated registries</strong></td>\n<td>build the minimum inventory by hand, recommend <code>derive-codebase-context</code> as a follow-up, and <strong>never block on it</strong></td>\n</tr>\n</tbody></table>\n</li>\n<li><p><strong>Hand the report on, unbuilt.</strong> A chosen candidate goes to <code>resolve-problem-report</code> to\nbe dug into and specced, or straight to <code>land-complex-change</code> when it is already well\nenough understood to budget. Hand over the rows <strong>with</strong> the DROPPED and NOT-SWEPT\nsections: a consumer given only the ranked rows will read the absences as checked.</p>\n</li>\n<li><p><strong>Document the run when the branch calls for it.</strong> The convention is below, identical in\nevery skill of this family that supports it; what a discovery run puts under those\nheadings is the <strong>sweep ledger</strong> described next.</p>\n</li>\n</ol>\n<h4 id=\"the-sweep-ledger\">The sweep ledger</h4>\n<p>Under the five fixed headings, a <code>new-ux-discovery</code> record carries these required bullets:</p>\n<ul>\n<li><strong>What was searched</strong> — the surface inventory as enumerated, <strong>with a skip reason per\nomitted class</strong>; then the per-signal-class commands verbatim with their raw counts,\n<strong>including the classes that yielded nothing</strong>. A zero-yield class that is missing from the\nledger reads as a class that was never run.</li>\n<li><strong>Who searched it</strong> — one line per child: role, tier band, the class or surface it was\ngiven, and what was withheld. Sequential passes are recorded as sequential.</li>\n<li><strong>What each found</strong> — the raw hits per class, and the <strong>control assertions</strong>: for class 2,\nthat the route walk returned a plausible count; for every zero, the positive variant that\nfired.</li>\n<li><strong>How it reconciled</strong> — the re-classifications (mentioned-only versus linked,\nfork-versus-duplicate), and the contradiction table where two classes disagreed about the\nsame artefact.</li>\n<li><strong>What was decided and why</strong> — <strong>every per-candidate gate record verbatim, including the\ndropped ones.</strong> This is the most valuable section in the file: the dropped records are why\nthe next agent does not re-propose them. Then the ranked output, and the closing paragraph\nof what was not swept.</li>\n</ul>\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/new-ux-discovery/&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\">Sweep this repository for UX improvements it could already support. Enumerate the surfaces\nfirst and tell me how many classes you actually got through — and for every candidate, show\nme the not-already-implemented check before you show me the idea.\n</code></pre>\n<pre><code class=\"language-text\">We just merged the change that splits enrichment into two stages. Ride that change: for each\nsurface it touched, what is newly possible, newly exposed, or newly wrong now? Price anything\noutside the files that change already touched, and do not build any of it.\n</code></pre>\n<pre><code class=\"language-text\">I suspect we collect a lot of data nobody can see. Find the fields we persist that no screen,\nroute or export reads — and check whether the reader exists but excludes the very people the\nrows are about, because that is the case I keep missing.\n</code></pre>\n<pre><code class=\"language-text\">Before I write up these three ideas: put each through the gates. Search the whole tree by\nname, search the open pull requests too, and tell me plainly if one of them is already\nshipped behind an admin permission.\n</code></pre>\n<pre><code class=\"language-text\">Run a discovery sweep and document the run (--document) so the dropped candidates are written\ndown with their reasons. Last time we re-proposed the same two things a month apart because\nnobody recorded why they were dropped.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>Searching for support for an idea instead of sweeping the inventory.</strong> A sweep seeded by\na hypothesis returns the hypothesis. Step 0 exists to make the seed the codebase.</li>\n<li><strong>One tool registry.</strong> Plural is load-bearing. The capability you are about to propose is\nregistered in the second registry, and gate (a) step 3 is the only thing that finds it.</li>\n<li><strong>&quot;I checked that it doesn&#39;t exist.&quot;</strong> That sentence is not a record and does not satisfy\ngate (a). Three names, n-of-m classes, the whole-tree query, work in flight, access.</li>\n<li><strong>A zero-hit search read as absence.</strong> The route walk that returns nothing may have been\nbroken. Assert a plausible count first; a control that fires proves the apparatus worked.</li>\n<li><strong>Assuming the linked copy is the current one.</strong> Divergent hashes mean a fork, and forks do\nnot label their halves. The orphan is the newer one often enough to matter.</li>\n<li><strong>Proposing &quot;add a link&quot; to a surface with a duplicate.</strong> That is the one enforced\nexclusion with a shipping consequence: the link surfaces the stale half to everybody.</li>\n<li><strong>Searching only the tree.</strong> Half the naming collisions live in open pull requests. Without\nforge access this skill is on its worst rung and has to say so.</li>\n<li><strong>Treating a shared word as a smaller problem than two words.</strong> One word with two\nmemberships is the harder failure; disjoint vocabularies at least sort.</li>\n<li><strong>A second reason-code vocabulary.</strong> Extend the enum that exists. And check the code&#39;s name\nis true under the branch that emits it — a code that fires on a timeout and says &quot;no match&quot;\nis a wrong answer with a confident label.</li>\n<li><strong>Conflating not-attempted with ran-and-found-nothing.</strong> Two different facts, one code, and\neveryone downstream now believes something false.</li>\n<li><strong>Padding to the cap.</strong> Ten is a ceiling, never a quota. A one-row report with a full sweep\nrecord beats a ten-row report with four unanchored fillers.</li>\n<li><strong>Presenting the fix as the claim.</strong> &quot;Add a filter to the export screen&quot; is a design\ndecision taken before the gap was agreed. The claim is the gap.</li>\n<li><strong>Taking a scope proposal instead of offering it.</strong> The run that finds a good idea is the\nrun most likely to implement it, and implementing it silently converts a discovery report\ninto an unreviewed change.</li>\n<li><strong>Dropping candidates quietly.</strong> A drop with no reason line is work that will be redone.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> The mode is stated with its seed set, and the revision and dirty state are in the header.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Step 0 ran first, and the output records the surface inventory as <strong>&quot;n of 9&quot;</strong> with a\nskip reason for every class not enumerated.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Generated registries were consumed where they exist rather than re-derived by search.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every one of the nine signal classes appears in the coverage record, <strong>including those\nthat yielded nothing</strong>.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Each finding&#39;s false-positive check was run <strong>before</strong> the finding was written, and the\ncheck is recorded with it.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Class 2&#39;s control assertion — that the route walk returned a plausible count — fired\nand is recorded.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every candidate carries a <strong>gate (a) record</strong> with all five steps: three names, the\nn-of-m class sweep, the whole-tree query, the work-in-flight search, and the access\ncheck. No candidate with an empty record appears in the ranked rows.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every gate-(a) verdict is one of EXISTS-AND-REACHABLE, EXISTS-BUT-GATED-OR-\nUNDISCOVERABLE, or DOES-NOT-EXIST, and a gated verdict was <strong>re-filed</strong> rather than\ndropped.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every surviving candidate carries a <strong>gate (b) record</strong> answering Q1, Q2 and Q3, each\nwith the query that answered it.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Any Q1 failure was <strong>converted to a consolidation</strong>, not presented as new; any Q3\nfailure was dropped or re-scoped <strong>with the re-scope stated</strong>. No collision is carried\nin a caveat.</li>\n<li><input disabled=\"\" type=\"checkbox\"> A shared word names <strong>both</strong> subsystems, and the prior written resolution was located\nbefore anything was proposed.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The <strong>DROPPED</strong> section exists with one reason line per dropped candidate, and the\n<strong>NOT SWEPT</strong> section names the classes not covered.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The ranked list is capped at ten (five where model choice was unavailable) and sorted by\nthe strict key in order.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every row carries all required fields, and every claim states the <strong>gap</strong> rather than a\nfix, anchored to <code>path:line</code> or a verbatim query and count.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Riding-a-change runs price every SCOPE-CHANGE with all three parts, and the\noffered-never-taken sentence appears <strong>verbatim</strong> in the output header.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Any &quot;make this absence explain itself&quot; proposal cites an existing enum, distinguishes\nnot-attempted from ran-no-result, names its negative controls, and checks the code name\nagainst its predicate.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The degradation rung is named in the output where any capability was missing, and the\nforge-access caveat is on every gate record when the forge was unreachable.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Nothing was designed, nothing was built, no file in the repository was changed, and\nnothing was committed except a run record that was explicitly asked for.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Where a record was written, it exists at <code>docs/new-ux-discovery/&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\nthe five required headings, carrying the sweep ledger&#39;s required bullets.</li>\n</ul>\n<h3 id=\"deeper-reading\">Deeper reading</h3>\n<ul>\n<li><a href=\"references/surface-inventory.md\">The surface inventory</a>: all nine classes with their\nenumeration recipes, what counts as reachable, the registries-are-plural rule, and how to\nbuild the inventory by hand when nothing generates it.</li>\n<li><a href=\"references/signal-classes.md\">The nine signal classes</a>: each class with its full recipe,\nits named false-positive check, the measured failure the check exists to prevent, and the\nyield order to sweep them in when the passes are sequential.</li>\n<li><a href=\"references/gates.md\">The two gates</a>: gate (a)&#39;s five steps with worked searches and the\nthree verdicts, gate (b)&#39;s three questions with their dispositions, the shared-word rule,\nand what a complete gate record looks like written out.</li>\n<li><a href=\"references/riding-a-change.md\">Riding a change</a>: the five newly-questions applied per\nsurface, the mechanical inside-scope test, the three-part price, and why scope proposals\nare offered and never taken.</li>\n<li><a href=\"references/output-contract.md\">The output contract</a>: the three sections, the rank key\napplied to a worked tie, every row field defined, the enforced exclusions, and what a clean\nresult looks like on the page.</li>\n<li><a href=\"references/reason-codes.md\">Reason codes as a UX surface</a>: the precedent-enum rule, the\nnot-attempted distinction, negative controls known in advance, and the name-versus-predicate\ncheck with its failure modes.</li>\n<li><a href=\"references/worked-discovery.md\">A worked discovery</a>: one candidate taken from orphan screen\nto consolidation, with the searches, the hash comparison, and the inverted proposal.</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 separates an opportunity from an idea","When to Use","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification","Deeper reading"],"words":5431}
