[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AQT1VB53WWNN3JCXYWFB3Y":3,"skill-same:01M7AQT1VB53WWNN3JCXYWFB3Y":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7AQT1VB53WWNN3JCXYWFB3Y","harness-review",null,"Measures whether the harness is getting better, across several lanes - the user's corrective prompts, facts the agent keeps re-deriving, and errors it silently worked around. Use when asked for a harness retrospective, a correction-rate check, \"is the harness getting better\", \"did that fix help\", \"what keeps going wrong\", or a periodic review of how the agent has been failing the user.","ormequ\u002Fclaude-mem","ormequ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57725831?v=4","01M7AQPDVH41K0QRYM9CETY6R5","Ilya Belokobylsky","01M7AQPDWQAA42TFEPNSDTD3ZK",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fharness-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness-review\nversion: 2.6.3\ndescription: Measures whether the harness is getting better, across several lanes - the user's corrective prompts, facts the agent keeps re-deriving, and errors it silently worked around. Use when asked for a harness retrospective, a correction-rate check, \"is the harness getting better\", \"did that fix help\", \"what keeps going wrong\", or a periodic review of how the agent has been failing the user.\nallowed-tools:\n  - Bash\n  - Read\n  - Write\n  - mcp__plugin_claude-mem_mcp-search__search\n  - mcp__plugin_claude-mem_mcp-search__timeline\n  - mcp__plugin_claude-mem_mcp-search__get_observations\n  - mcp__plugin_claude-mem_mcp-search__get_prompts\n---\n\n# harness-review\n\n**A retrospective that produces no number produces no improvement.** Months of them can feel\nproductive and change nothing measurable, because nothing was counted. Count first, read second,\nand propose only things a machine can enforce.\n\n**Several lanes, because no single one is trustworthy.** The user's prompts are the only signal\ngenerated outside the system being measured — and they only exist where a failure was annoying\nenough to type about, which is a small and shrinking part of what goes wrong. Steps 1–3 read\nthat lane. Step 4 reads what the agent did rather than what the user said, and a review that\nruns only the prompt lane is one lane of one.\n\nRead through the `search` \u002F `timeline` \u002F `get_observations` \u002F `get_prompts` MCP tools. Four\nqueries go straight to the database because `search` caps at 100 results and cannot group —\nthe daily ratio in Step 1 and one per lane in Step 4. Each is marked where it appears.\n\n**All `search` \u002F `timeline` queries must be in English.** The store uses an English-only\nembedding model — a non-English query returns confident but unrelated results. Keep\nidentifiers (file paths, service names, error strings) verbatim; translate only the prose.\n\n**Skill version 2.6.0 — check this line before Step 0.** A plugin update does not reach a session\nthat is already running: the copy of this file put in front of you can be the text from before the\nupdate, and it carries nothing that would give that away — no mtime, no size, and the update was\nannounced in the same conversation. So read the `version:` field of `\u003Cskill dir>\u002FSKILL.md` on disk\nand compare. **They differ → the copy you are reading is stale: read the file on disk and follow\nthat**, and say in the report which version the run was made under. Bump this line and the\nfrontmatter together on every edit to this file; two version numbers that disagree turn the check\ninto noise and it stops being run.\n\n**Nothing measured on one machine belongs in this file.** Counts, dates, week numbers, project\nnames, provider strings, a stack's file patterns — all of it is one person's setup, and shipped\nhere it reads as a norm to everyone else. This file carries rules and shapes; the evidence\nbehind them lives beside the other state, in `~\u002F.claude-mem\u002Fstate\u002Fharness-review-evidence.md`,\nwhich stays local.\n\n## When to use\n\n- A periodic review of how the harness has been failing (fortnightly or monthly).\n- After a harness change landed: did the correction rate move?\n- The user asks what keeps going wrong, or why the same failure repeats.\n\n**Do not use** for reviewing a single session, debugging one failure, or auditing code quality.\nEvery lane here is a comparison across time; one session has no baseline.\n\n**No cursor, no vocabulary file, no series? That is a first run — read `first-run.md` beside this\nfile before Step 2 and do what it says.** It holds the work a first run does and no later run\nrepeats: the pass over the whole store through `session_summaries`, deriving the vocabulary file\nfrom this user's own prompts, and building the baseline every later number is compared against.\nA first run that skips it reports counts with nothing to compare them to and hands the next run a\nbacklog nobody recorded.\n\n**Works without any corrective prompts at all.** If the user only assigns tasks and never\ncorrects — an autonomous run, a fresh setup — Steps 1–3 return near zero and Step 4 carries the\nreview. Read Lane E before reporting anything in that mode.\n\n## Step 0 — score the ledger. A run that skips this is void\n\n**If the ledger file does not exist, create it and say the run established it.** A first run\nhas nothing to score and is not void for that reason — it is void only if a ledger exists and\nwas skipped. Seed it with any harness change already shipped that you can state a prediction\nfor; an empty ledger with a header is better than none, because the next run inherits the\ndiscipline rather than reinventing it.\n\n`~\u002F.claude-mem\u002Fstate\u002Fharness-ledger.md` holds every shipped harness change alongside the\nnumber it predicted would move. **Read it before anything else, and report open rows before\nany other number.** A review that finds new things without checking whether the last fix\nworked is the exact failure this skill exists to prevent.\n\nScore each open row: `moved` \u002F `not moved` \u002F `verified` \u002F `shipped, unproven` \u002F `unexposed` \u002F\n`regressed` \u002F `inconclusive` \u002F `needs its own pass`.\n\n**Collapse a row once it has proven itself.** A row scored `verified` whose signature has not\nreturned for two consecutive runs has done its work; its remaining value is one sentence — do not\npropose this again — so collapse it to a single line that still carries its evidence inline:\n\n```\n2 · fd installed \u003Cdate> · verified · was N failures across M sessions; zero in two runs since\n```\n\nSelf-sufficient without the store, and enough to find the detail there if anyone wants it. Killed\nproposals are already one-liners; leave them alone.\n\n### The other half of the ledger: what the user asked for and nobody shipped\n\n**The ledger above tracks fixes that shipped. Nothing tracks fixes the user proposed.** A\nharness problem the owner identified out loud, which then dropped because the conversation moved\non, is invisible to every lane in this file: it produced no error, no correction, no re-derived\nfact — the work never happened, so there is nothing to measure.\n\nKeep them in `~\u002F.claude-mem\u002Fstate\u002Fharness-open-loops.md`, one row each: the prompt id and date,\nwhat was asked for in one line, and a status — `open` \u002F `shipped` \u002F `declined`. Populate it from\nthe harness-tagged prompts in each window.\n\n**Print the open loops first, before the ledger scores and before any other number.** They are\nthe cheapest work available: the diagnosis is done and the owner has already said what they\nwant.\n\n- **A loop closes only two ways: it ships, or the owner declines it in as many words.** Silence\n  is not a decline — silence is exactly how it was lost the first time.\n- **Carry the age.** A loop still open at its third run is itself a finding, and not a\n  scheduling one: it means the mechanism loses what the owner already found, which is worse\n  than any single defect it might have fixed.\n- A `declined` row keeps the date it was declined and stops being shown.\n- **A shipped loop is a ledger row, not a loop.** On `shipped`, move it to the ledger and remove\n  it from this file; keeping it in both is duplication that every later run reads. `declined`\n  collapses to one line carrying its date. `open` and `agreed` are the only states that occupy\n  space here.\n\n`needs its own pass` is for rows this skill cannot check with the tools it is allowed —\na fix whose verification needs a hook triggered by hand, or queries the owner has to score by\neye. **It is a legitimate outcome and must name what the check requires**, in one line, so the\nnext run inherits the answer instead of improvising one. Without it a run either invents a\nscore or drops the row quietly, and a dropped row is invisible in exactly the way this ledger\nexists to prevent.\n\n- `verified` is for deterministic fixes. Not every fix moves a number; some just correct code,\n  and forcing them to carry a longitudinal metric manufactures a fake one.\n- `shipped, unproven` is for a change that shipped carrying no number to move — a new skill,\n  agent or script. `verified` is the only status that would otherwise fit and it means the wrong\n  thing: a deterministic fix checked by hand. Scoring a thing that has never been used as\n  `verified` reads as evidence it worked, and that inverts the row — \"we built a skill\" where the\n  honest line is \"shipped and still violated\". The row settles on a first use that did not have\n  to rewrite it; until then it stays open and says so.\n- `unexposed` means the mechanism never had an opportunity to fire. **Never record that as\n  `not moved`** — a rule that was never triggered has not failed.\n- A due condition that is a date alone is under-specified. An outage silently eats the sample\n  and the result then reads as \"the fix did not help\". Due is *N eligible events or the date,\n  whichever is later.*\n- Fixes shipped together on one day cannot be scored separately against a shared metric. Score\n  them as one bundle and say so.\n\n## Step 1 — is the store alive? Stop here if it is not\n\n```\nsearch(type=\"prompts\",      dateStart=\"\u003C30 days ago>\", limit=1, orderBy=\"date_desc\")\nsearch(type=\"observations\", dateStart=\"\u003C30 days ago>\", limit=1, orderBy=\"date_desc\")\n```\n\n**`dateStart` is required.** A filterless `search(type=\"prompts\", limit=1)` is rejected with\n`INVALID_SEARCH_REQUEST` — this skill shipped with that call and it never once ran.\n\nPrompts are written by a hook; observations need the generator to reach a model. So **prompts\nkeep flowing while observations stop**, and the gap between those two timestamps is the outage\nsignal.\n\n**If they differ by more than a day: report that as the finding and stop.** Every number below\nwould describe a store that is no longer being written, and a total row count looks identical\nwhether the store is healthy or dead.\n\nThree ways that comparison passes on a dead store. Close all three:\n\n- **Both sides died together.** If the prompt hook and the generator stop at the same moment\n  the two timestamps stay close and the gap reads zero. Compare the newer of them against the\n  **wall clock** as well: a newest prompt older than a day, on a day you worked, means capture\n  is down — not that you were idle.\n- **One live project masks the rest.** The store spans many projects and a single active one\n  keeps the global timestamps fresh. Run the comparison per project.\n- **A partial loss looks whole.** One fresh observation says nothing about the sessions that\n  produced none.\n\n**The generator's log says why, and it costs nothing.** The store can only tell you writing\nstopped; `~\u002F.claude-mem\u002Flogs\u002Fclaude-mem-YYYY-MM-DD.log` tells you what failed. On a measured\noutage the log's error lines described it far more precisely than any query could. Count them\nper day alongside the ratio below:\n\n```bash\ngrep -c \"Generator failed\" ~\u002F.claude-mem\u002Flogs\u002Fclaude-mem-$(date +%F).log\n```\n\n**Find the failure wording in your own log before trusting a zero.** Each provider path logs\nits own phrasing, so a grep written for one setup returns zero on another and the zero reads as\nhealth. Check the log has content, read one real failure, then count that.\n\nThis is the denominator for every observation-side number in the report. Without it, \"no\nfindings that day\" and \"the generator was down that day\" are indistinguishable.\n\nA timestamp comparison catches a stop but not a **fade**. A store writing a tenth of what it\nshould still passes the check above.\n\n**First of the four direct queries** — the daily ratio needs true counts, and `search` caps at\n100 results per call, which silently understates exactly the healthy days:\n\n**Group it by project.** A blended number reads as one project degrading when a dominant project\nis winding down while another starts up — a fade that is not there, hiding a smaller one that\nis. `search` cannot answer \"latest activity per project\" in one call, so this query carries the\nsplit rather than a second one being improvised each run.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nSELECT d, proj, p AS prompts, coalesce(o,0) AS observations, round(coalesce(o,0)*1.0\u002Fp, 1) AS per_prompt\nFROM (SELECT date(up.created_at_epoch\u002F1000,'unixepoch','localtime') d, s.project proj, count(*) p\n      FROM user_prompts up JOIN sdk_sessions s ON s.id = up.session_db_id\n      GROUP BY d, proj)\nLEFT JOIN (SELECT date(created_at_epoch\u002F1000,'unixepoch','localtime') d2, project p2, count(*) o\n           FROM observations GROUP BY d2, p2) ON d = d2 AND proj = p2\nWHERE d >= date('now','-14 days') AND p >= 5 ORDER BY d, p DESC;\"\n```\n\nRead each project's own series. A project falling to zero prompts is you working elsewhere; a\nproject holding its prompt volume while its ratio falls is the store failing that project.\nOnly those two readings justify different actions, and the blended number cannot tell them\napart.\n\nRead the shape, not the value — `per_prompt` varies with how tool-heavy the work is, so no\nabsolute number is healthy or unhealthy. Two rules, so that two runs reach the same verdict\ninstead of two impressions:\n\n- **Falling on three or more consecutive active days → report it as a finding**, and mark every\n  observation-side count for the period *understated*. Say the denominators are unreliable and\n  move on.\n- **Days with fewer than five prompts are idle, not sick.** Exclude them rather than counting\n  them as a dip.\n\n### Check the instrument before trusting the lane\n\nThis lane has already degraded silently once. Pull three prompts and assert: `get_prompts`\nreturns text longer than the search index showed, `session_id` present, timestamps carrying\nseconds.\n\nEach failure is a **loud line in the report** — never a silent best effort.\n\nTwo of the four false-positive rules below (same session within ~60s; one text across many\nsessions within a minute) need a session id and second-resolution timestamps on the search\nresult. Where the tools do not supply them, those rules are uncomputable and any category that\ndepends on ordering within a session cannot be verified. **Every report states which rules were in force** — a run under three of four is\nnot comparable with a run under four.\n\n## Step 2 — read the new prompts and classify them yourself\n\nRead the prompts written since the last run:\n\n```\nsearch(type=\"prompts\", dateStart=\"\u003Clast_run UTC>\", limit=100, orderBy=\"date_asc\")\n```\n\nPage with `offset` until exhausted; a fortnight usually takes a couple of calls. Keep\n`{\"last_run\": \"\u003CUTC, Z suffix>\", \"last_prompt_id\": N}` in\n`~\u002F.claude-mem\u002Fstate\u002Fharness-review.json`.\n\n**Fix the window before reading it.** Note the highest prompt id present at the start of the run\nand treat it as the ceiling; everything at or below `last_prompt_id`, or above the ceiling, is\nout of scope. The ceiling becomes `last_prompt_id` in the cursor when the report is written —\nthat is the whole record the next run needs. **Do not write a per-run window file**; the range\nit held is two numbers that already live in the cursor.\n\n**Then check the seam.** The first id of this window must be `last_prompt_id + 1`. A gap means\nthe cursor moved further than the last run actually\nread, and those prompts will never be looked at by anything: the next run starts from the\ncursor, not from what was covered. `dateStart` is inclusive, so a date-only window recounts\nwhatever sat on the boundary, and paging by date while new rows arrive shifts pages underneath\nyou.\n\n**First, drop what the user did not type.** The prompt table is written by a hook, and on a\nmulti-agent setup it also collects machine traffic: subagent reports relayed back to the\norchestrator, cross-session messages, internal markers. They open with a recognisable envelope —\n`\u003Cagent-message from=`, `\u003Ccross-session-message`, an HTML comment marker — and they are not\nfalse positives to be subtracted later. They are **not prompts at all**, and they must leave the\nwindow before anything is labelled, or every rate in this lane is computed over a denominator\nthat is partly machine.\n\n**The class is wider than the envelope, though: it is every prompt authored by an agent rather\nthan by the user, and it comes in two shapes.** The inbound relay arrives wrapped, so sight\ncatches it. The outbound brief — what one session types into another agent's session — is stored\nthere as that session's own prompt with no wrapper at all: long, imperative, written in English,\nindistinguishable from a hard correction the user typed. Both leave the window before any rate is\ncomputed. Whether this store marks outbound briefs with a literal prefix, and what that prefix\nis, belongs in the vocabulary file — it is a local convention, not a property of the lane.\n\n**A convention has a start date, and a window can reach back past it.** Prompts written before it\ncarry no marker, so they are subtracted by shape — who wrote it, who it was addressed to — and\nthe report **says which part of the window was subtracted by marker and which by shape**. A run\nclaiming a clean marker-based subtraction over a period where no marker existed has not measured\nwhat it claims. The stakes exceed the count: an unmarked agent prompt is not evenly spread noise,\nit is noise shaped like the signal, and it lands in the largest correction bucket rather than\nspreading across all four — so a few rows move the rate further than their number suggests.\n\nCount them and report the number separately: it says how much of the table is not the user, and\nit grows with parallel work. **If it is more than a rounding error, the fix belongs in the\ncapture hook, not in this skill** — a review that quietly filters them each run leaves every\nother consumer of that table reading them as the user's words.\n\n**Every prompt in the window gets exactly one primary label** — and the four must sum to the\nsize of the window:\n\n- **correction** — the user is repairing something the agent did or failed to do.\n- **excluded** — a false positive under Step 3. It looks like a correction and is not.\n- **neutral** — everything else. Instructions, questions, answers, approvals.\n- **a fourth bucket, if this user has one.** Watch for a class of prompt that is neither a\n  correction nor an ordinary instruction and that recurs constantly — the kind of thing a person\n  types dozens of times a week without thinking of it as feedback at all. Give it its own primary\n  bucket and name it in the vocabulary file. Folding such a class into `neutral` merges the\n  largest thing in the dataset with approvals; counting it as a correction inflates the headline\n  by more than every real category combined. Both have happened. Which class it is differs\n  completely between people, so this file names none.\n\nThe distinction that matters is excluded-versus-neutral: an excluded prompt was a candidate that\ngot ruled out and should be reported as such, a neutral one never was. Anything else a prompt\nalso is becomes a tag, not a second primary. A window whose labels do not sum to its size is not\na clean period, it is an invalid instrument, and the period is reported as such.\n\n**`last_run` is UTC.** Writing local time with a `Z` suffix pushes the next window into the\nfuture, which returns zero prompts and reports a clean period.\n\n**Guard: if Step 1 said the store is live and this window returns zero prompts, that is a\ncontradiction, not a clean period.** Suspect the cursor and stop.\n\nAdvance the cursor only after the report is written. A run that dies mid-way must re-read its\nwindow, not skip it.\n\n**Write this run's numbers to `~\u002F.claude-mem\u002Fstate\u002Fharness-review-series.md`** — and write them\nas **one table row, never a report**: window id range · rows in window · the four primary counts\n· harness-attributable vs floor · the S1\u002FS2\u002FS3 vector · skill version · rubric version ·\nLane C method version ·\none short headline per lane. Nothing else. A lane whose numbers live only in the report dies\nwith the chat, and the next run then has nothing to compare against except a frozen baseline —\nnever against the run before it, which is exactly what \"count first\" was supposed to produce.\nA run that writes a table row produces a line; one measured run wrote a report instead. Every\nlater run must read this file before it starts work, so whatever is written here is paid for on\nevery invocation, for ever.\n\n**A run's narrative belongs nowhere on disk, and no run builds per-run files or archives.** The\nreview session is itself captured by claude-mem, and a measured run's own conclusions do reach\n`observations` — so duplicating that narrative into a file produces a reader who does not exist.\nBut the store is not a *reliable* archive either: the generator can fail against a provider for a\nwhole day, and a run on such a day leaves nothing behind. Hence the rule both halves point at —\n**every surviving line carries its own number inline; a pointer to the store is a convenience,\nnever the mechanism.** A `runs\u002F` or `archive\u002F` directory was proposed and rejected.\n\n### A stored conclusion is a hypothesis, and the run that disproves one retracts it in place\n\n**A stored claim about the store's or the harness's own behaviour is a hypothesis, not\nevidence — re-check it against the store before citing it.** The summaries this pass mines were\nwritten by sessions that were frequently mid-way through changing the very thing they describe,\nso a claim that was true the morning it was written can be false by the time a review quotes it\nback — now with a second timestamp on it, which reads as confirmation rather than as a copy.\n\n**Narrow on purpose.** Schema, counts, queries and generator behaviour are cheap to re-run, and\nthose are the claims this covers. What a session was trying to do, or why, cannot be re-checked\nat any sensible cost: that is testimony, cite it as testimony.\n\n**A claim the check disproves is retracted in place, by the run that disproved it.** The run\nholding the disproof is the only one that will ever hold it, and a finding filed only in a report\nleaves the wrong text sitting in the store, still reading as knowledge. Nothing in the store will\ncatch it later: there is no contradiction check and no expiry, so this review is the detector —\nover everything on a first run, and over its window on every run after, which means anything\noutside a later window keeps whatever it claimed.\n\nThe format is required, not advice:\n\n- **Marker first, at the head of the field.** Search truncates, and a leading marker is the only\n  form that survives into a listing — a retraction further down is invisible to exactly the reads\n  that would otherwise re-cite the claim.\n- **The marker names what disproved it: the commit, the query, or the file.** Without that, the\n  next run cannot tell a verified retraction from someone's opinion, and pays to re-check the\n  whole thing from scratch.\n- **The original text stays verbatim below the marker**, never rewritten and never deleted. The\n  claim and the reason it was wrong have to be readable together; an edited field destroys the\n  evidence that the claim was ever made, which is the part a later run needs to see.\n- **Name what is being retracted when the field holds more than one claim**, and leave the rest\n  alone. A blanket marker over a mixed field discards claims nobody disproved.\n- **The report cites the retraction as a finding**, with the same citation as any other.\n\n**This format lives here rather than in a state file.** There may be no edit path for the record\nbeing corrected — a retraction can be hand-written SQL against the store — and a format that\nlives beside one run's notes is a format the next run does not have.\n\n**Any boundary carries its reason in the cursor, written by the run that set it.** Not a note\nadded afterwards, and never a reason reconstructed later from the choice itself: an\nafter-the-fact justification cannot be told apart from a rationalisation, by the next run or by\nanyone. If a run cannot cover something, the cursor records what was left out and why, as\nnumbers the next run can act on rather than a sentence it has to trust.\n\n**Three sources sit in the plugin that no lane here reads.** Named because a run that never\nopens them cannot say what it did not look at:\n\n- `session_summaries` — the medium of the first-run pass (`first-run.md`), unread by every other\n  lane.\n- `session_start_context` — renders exactly what the SessionStart hook injects for a project.\n  It is the only way to see which memory actually reaches a context, as opposed to which memory\n  exists. Use it when a Lane B cluster claims a fact was re-derived that the store already held.\n- the `knowledge-agent` corpus tools — semantic questions across the whole history that SQL\n  cannot express. **Leads, never counts:** anything they surface is a candidate for a dig, and a\n  number that came out of them does not go in the report.\n\n**Search truncates the prompt. Fetch the full text before classifying:**\n\n```\nget_prompts(ids=[...])   → full prompt_text for every id in the window\n```\n\nClassifying on a truncated head is guessing: heads have read as questions where the full text\nwas a correction. If the full text is unavailable, every label in the window is provisional and\nthe report says so.\n\n## The categories are yours to derive, and this file deliberately names none\n\n**A category list is a description of how one person is failed by one harness.** Someone else's\nlist will differ completely — different work, different tolerances, different words, often a\ndifferent language. Copying a list produces counts that balance and mean nothing, and it hides\nthe categories you actually have, because a reader who has been handed four boxes puts\neverything in one of the four.\n\nWhat travels is the method.\n\n**Group corrections by the fix that would have prevented them, not by wording and not by how\nthey feel.** A category earns its place only if every prompt in it would be closed by the same\nmechanism — one hook, one prohibition, one config line, one change to an instruction file. That\ntest does three jobs at once: it keeps categories mutually exclusive, it makes the priority\norder fall out instead of being declared arbitrarily (when a prompt fits two, the primary is the\none whose fix would have prevented it), and it guarantees every category can produce a proposal\nunder the output contract. A category no fix corresponds to is an observation about a mood.\n\n**Declare the order before counting, whatever it is.** Categories overlap — one sentence can\neasily be three things at once — and without a fixed order each run resolves the overlap\ndifferently, which is fatal for a number whose only job is comparison across time.\n\n**The lane's subject is not only failure.** A prompt saying the result should have been\nshorter, or simpler, or that a step was ceremony — where nothing broke and the work was\ndelivered — is a signal about the harness's *shape*, and under a failure-shaped rubric it falls\nstraight into `neutral` and is never read again. It belongs in its own bucket: outside the\ncorrection rate, because nothing failed, and inside the proposals, because the user has just\ntold you what to change.\n\n**This is also how the harness knows what to trim.** There is no absolute standard for how long\na document should be or how many steps a process needs — that depends on the machine, the work\nand the person. The standard is the user's own dissatisfaction: complained about repeatedly,\nit is too long; never mentioned, it is fine. A review that measures artefact size against a\nnumber of its own invention is measuring its own opinion.\n\n**Tag every prompt whose subject is the harness itself.** Not the task — the tooling: the\ninstruction files, hooks, settings, permissions, the sandbox, a skill, or the agent's working\nmethod treated as policy rather than as this task's problem. These are usually not corrections\nat all. \"We should fix X\", \"this rule is wrong\", \"why is this still manual\" — a proposal, not a\ncomplaint, and it lands in `neutral` where nothing ever reads it again.\n\n**Including — especially — a rule stated in passing.** The most easily lost form is not a\nrequest at all: a general policy attached to a specific instruction. *\"Agent docs are English\nonly — send this one to be translated.\"* The user is not asking for a harness change; they are\nannouncing a standing rule and expecting it to hold from now on. It will not, because nothing\nwrote it down, and the next session has never heard of it.\n\nThe tell is a general clause riding along with a particular task: *only*, *always*, *never*,\n*from now on*, *we do it this way here*. The proposal that follows is the same every time and\nneeds no thought — put it in the instruction file, verbatim enough to be checkable. These are\nthe cheapest wins available and the ones a failure-shaped rubric never sees, because nothing\nwent wrong: the user just told you the rules and moved on.\n\n**This is the most valuable prompt in the corpus and the easiest one to lose.** The user has\nalready done the diagnosis, for free, and named the fix. If the conversation then moved on — and\nit usually does, because the person was in the middle of something else — the whole thing\nevaporates. It leaves no trace anywhere else: no tool error, no re-derived fact, no correction,\nnothing for any other lane to find. A run that scores the ledger and never asks what the user\nproposed and nobody shipped is measuring only the fixes that happened to get attention.\n\n**Tag `harness-doubt` when the user questions a harness component itself.** Not *is this claim\nright* — that is the claim-challenge below, and its answer lives in the agent's reply. This one is\n*is this thing worth having*: does that skill do anything, why is this hook still here, is this\nrule earning its injection. They arrive one at a time, each individually minor, and each scores as\nthe lowest severity there is. **Report rule: enumerate every tagged id and name the component each\none is about; never fold them into a severity count.** The aggregate — several prompts doubting\none component across a period — is the finding, and a severity column destroys it. Carry\nthe tag in the vocabulary file so the next run applies it without rediscovering it.\n\n**Sample the neutral bucket, every run, not only when building a baseline.** Everything labelled\nneutral is never read again, so a correction mislabelled neutral disappears permanently and\nsilently — no sum fails, no guard fires. Once the window is labelled, take thirty to forty\nneutral rows by a fixed rule (every Nth, so the choice is not yours) and relabel them cold.\nReport the miss rate next to the correction rate — **including when it is zero**. A clean sample\nis a real result about the instrument, and it is exactly the kind of boring number a run drops\nfor lack of anything to say about it. The misses hiding there have moved a headline further than\nany shipped fix, and nothing else in an ordinary run surfaces them.\n\n**Classify by reading, not by keyword matching.** A baseline run that searched for correction\nwords missed an entire category, because the word its owner actually used was not on the list.\nAny keyword list is a guess at a vocabulary the user extends without telling you.\n\n**When the prompt challenges a claim, open the reply before scoring it.** *\"Where did you get\nthat?\"*, *\"did you actually look?\"* — the prompt records only that the user doubted. **Whether\nthe doubt was founded lives in the agent's answer**, and the answer often names a real source\nthe user had not seen, or turns out to be about a different file, or shows the user's own\nenvironment was confused. Find the session transcript, read the assistant turn that follows,\nand score from that. If the transcript cannot be found, leave the row **unscored** and say so —\ndo not fall back to the prompt alone. This is procedure, not judgement, and it is the largest\nlabelling defect measured so far: correction rows withdraw in numbers once the replies are read,\nand most of the withdrawals are claim-challenges.\n\n**Separate three things that arrive in the same shape**, or a design-heavy period reads as a\nharness collapse: the user correcting the **agent**; the user revising an **artefact** the agent\nis drafting for them; the user reasoning about the **system under study**. All three sound like\n\"no, X, not Y\". Only the first is a harness failure.\n\n**The wordings and the category list live outside this file**, in\n`~\u002F.claude-mem\u002Fstate\u002Fharness-review-vocab.md` — they are one person's prompts, and this skill is\nmeant to be shared. Read it before classifying; any closed list in it is closed, and a run that\nwidens one has changed the instrument and must say so.\n\n**Things that are not prompts cannot be counted from this lane.** An interrupt, a cancelled\ncall, a session abandoned mid-task — these are harness events, and they leave no row here.\nReport them as *not measured*. A silent zero is indistinguishable from \"there were none\", and\nreads as the healthier of the two.\n\n### Then step back: what do the prompts say as a set?\n\nEverything above reads one prompt at a time, and one prompt at a time is the wrong altitude for\nthe most useful question this lane can answer: **taken together, what rule would have made most\nof this unnecessary?** A per-row finding is rarely news to the person who typed the row — they\nwere there. The set is not: nobody sees their own last two hundred prompts at once.\n\nAsk it deliberately, after classifying and before writing proposals, over this window and the\nprevious ones in the series:\n\n- **What did you have to say more than once?** The same instruction re-issued across sessions\n  is a rule that exists in the user's head and nowhere else. Each instance looks like an\n  ordinary instruction; only the repetition makes it a finding, and no single window shows it —\n  this is the one question that requires looking across windows rather than within one.\n- **Where in the work do the corrections cluster?** If they concentrate in one phase — planning,\n  review, hand-off — the defect belongs to that phase, and a rule scoped to it beats a general\n  one about care.\n- **What never has to be said here?** The rules already working. Worth knowing before anyone\n  proposes deleting one for looking inert.\n\n**A rule derived this way is a claim about what the user wants, so put it to them in their own\nwords and let them correct it.** Deriving preferences from behaviour and then enforcing them\nunasked is how a harness acquires rules nobody agreed to.\n\nTwo tests before any of it becomes a proposal, both cheap and both routinely skipped:\n\n- **Grep first.** If the rule is already written somewhere in force, the finding is not \"write\n  this down\" — it is that a written rule is not being followed, which is a different and more\n  serious proposal.\n- **Replay it.** Name the cited prompts and ask whether this rule, in force at the time, would\n  actually have prevented them. A rule that survives this reads like a rule; one that does not\n  reads like \"be more careful\" with extra words.\n\n### Second label: could a harness change have prevented it?\n\n**Not every correction is the harness's fault, and a rate that mixes the two has a floor it can\nnever cross.** The user changing their mind, a brief that was half-formed when it was sent, a\ndecision that could only be made after seeing the work — these produce corrections no\ninstruction file, hook or config would have prevented. Counted together with the rest, they set\na floor under the correction rate, and every run below that floor reads as failure to improve.\n\nThe test is written and binary, applied while reading: **name the change that would have\nprevented this prompt.** A hook, a prohibition, a config value, a line in an instruction file, a\ntool that should exist. If nothing can be named, the correction is not harness-attributable.\n\n- Report the two counts separately, always, and never blend them into one rate.\n- The harness-attributable count is the one a ledger row may predict against.\n- **The other count is not noise — it is the floor**, and its size tells you how much room the\n  harness has left. A period where it dominates is a period where the harness is close to as\n  good as this measurement can show.\n- Naming the change is also the first draft of the proposal, so this costs nothing beyond what\n  the output contract already demands.\n\n### Second label: severity\n\nCounts alone are blind to weight. A handful of prompts about a destroyed working tree matter\nmore than a whole week of friction, and nothing in a count says so. Give every correction a\nseverity in the same reading pass, on three levels defined by consequence:\n\nAll three levels are **classes of consequence**. Do not define one of them by what the prompt\nlooked like — an earlier version defined the lowest level by prompt shape while the other two\ndescribed what the agent's action caused, which put two axes in one scale and made the bottom\nlevel collide with the non-correction bucket above.\n\n- **S1 — irreversible, or it left the session.** Work destroyed that cannot be recovered; an\n  action someone outside the session saw; a claim about the state of a real system, made without\n  looking, that was then acted on.\n- **S2 — the wrong work got done, recoverably.** Scope invented, an instruction acted on that\n  was never given, a process bypassed. The cost is the work itself and the time to undo it.\n- **S3 — the right work, at avoidable cost.** It arrived, but it took a round trip that a\n  working harness would not have needed.\n\n**Write your own anchor incident under each level, in the vocabulary file, taken from what has\nactually happened here.** The levels are general; the incidents are not, and a level without an\nanchor drifts a step every run.\n\n**Report the vector, never a single blended index.** One number invites optimising the number,\nand a fall in S3 would hide a rise in S1. It also gives ledger predictions a shape worth having:\n\"zero S1 this period\" means something, \"the correction rate fell four percent\" does not. The\nlevel numbers are for the state files: in the report each count is named by its consequence, per\nthe output contract.\n\n**Check severity calibration between labellers on identical prompts before reading a difference\nas real.** Two passes reporting very different S1 counts may be using the same bar on different\nperiods — measured, that is exactly what happened once, and the obvious reading would have been\nwrong in the direction that suppresses incidents.\n\n### The other direction: what the user says before the failure, not after\n\n**Every label above is retrospective.** The user says the agent got it wrong, and the lane counts\nit. Nothing so far counts the opposite shape: a constraint loaded into the request *in advance*\nbecause the user has learned that otherwise the agent will get it wrong — \"and don't forget X\",\n\"same as last time\", \"only don't do Y\". Nothing has failed in that prompt, so its primary label\nis `neutral` and stays there. What it carries is a **tag**, and the tag is evidence: the defect\nis alive, and the user is now paying its cost instead of the harness.\n\n**This is the instrument for a trap this file already names and does not measure.** The trap\ntable warns against reading the prompt stream as a stationary instrument — once the user learns\nthe agent drops something, the \"you forgot X\" prompt disappears while the defect does not, and\nthe correction rate falls for the wrong reason. Naming the trap does not detect it. Counting both\nshapes side by side separates the two readings:\n\n- Corrections fall and pre-emptive instructions fall with them — the defect is gone.\n- Corrections fall while pre-emptive instructions rise — the defect survived and moved onto the\n  user. That is not an improvement, and under the correction rate alone it is indistinguishable\n  from one.\n\n**Report the two counts beside each other, never merged into one.** A pre-emptive instruction is\nnot a correction and must not enter the correction rate: it repaired nothing, and folding it in\nwould penalise the user for having learned to work around the defect.\n\n**Only count it when the constraint it carries matches a defect this review has seen elsewhere**\n— a correction in an earlier window, a Lane B fact the agent keeps re-deriving, a Lane D rule\nthat is written and not followed. Without that match a specific instruction is just a specific\ninstruction: people are allowed to be precise about what they want, and reading ordinary\nprecision as harness failure inflates the lane with everything the user happens to spell out.\n\n**Name the tag in the vocabulary file, not here.** What this shape is called, and which\nconstraints count as instances of it, is derived from one person's prompts like every other\ncategory in this lane; this file ships the distinction and the reading it enables, and no\nwording for either.\n\n### The agent side\n\nCorrections only mean something against the volume of work that drew them.\n\n```\nsearch(type=\"observations\", obs_type=\"finding\", dateStart=\"\u003Clast_run UTC>\", limit=100)\nsearch(type=\"observations\", obs_type=\"failed_attempt\", dateStart=\"\u003Clast_run UTC>\", limit=100)\n```\n\n**Both types have a start date — the day the extraction prompt that introduced them shipped\nhere.** Before it they return zero because the type did not exist, not because nothing was\nconcluded. Read the date off `plugin\u002Fmodes\u002Fcode.json`'s version history rather than assuming\nit, and never plot these two against anything earlier.\n\nIf a call returns exactly 100, the real number is \"≥100\"; page with `offset`.\n\n`failed_attempt` near zero is itself suspect — agents that never record a failed approach are\nnot failing less, they are not writing it down.\n\n**Do not divide these two counts by anything while a ledger row targets either of them.** If an\nopen row predicts that the share of one type rises — an extraction-prompt change is the usual\ncase — then that share moves on its own and any ratio built on it measures the experiment, not\nthe harness. Report the counts side by side and say which rows make them untrustworthy.\n\n## Step 3 — subtract the false positives before calling anything a correction\n\n**The test: a false positive is a prompt whose existence is explained by something other than\nthe agent's behaviour.** Typing habits, the transport, several agents addressed at once,\ninfrastructure output pasted in. It reads exactly like a correction to anything short of\nreading it, and the class is large enough to double a correction rate by itself.\n\n**Which classes you have depends on how you work, so derive them and write them down.** Read a\nwindow with this question only: *would this prompt exist if the agent had behaved perfectly?* If\nyes, it is not a correction, whatever it looks like. Record each class you find in the\nvocabulary file with its subtraction rule stated mechanically — a time bound, a session bound, a\ntext relation — so that two runs subtract identically. A rule that has to be re-invented each\nrun is not a rule.\n\n**State which rules were computable.** Subtraction rules need fields the tools may not return —\na session id, timestamps with seconds. A run that could apply three of its four rules is not\ncomparable with a run that applied four, and must say so rather than quietly reporting a lower\nnumber.\n\n**Ask before you subtract a whole category. A correction category is a claim about what the user\nmeant, and the user is available to ask** — cheaper than any amount of arithmetic, and the only\nmethod that can tell you a category is measuring nothing its owner experiences as failure. Two\nversions of this skill computed an elaborate defensible discount where one question settled it\ndifferently.\n\n## Step 4 — the lanes where nobody complains\n\n**The prompt lane has a ceiling, and it is lower than it looks.** A prompt exists only when a\nfailure annoyed the user enough to type about it. Everything the agent wastes silently —\nre-deriving the same fact for the ninth time, working around the same blocked path for two\nmonths — costs tokens and time and produces no prompt at all. Worse, pre-emption degrades the\nlane on its own, which is what the pre-emptive-instruction tag in Step 2 exists to catch.\n\nSo the prompt lane cannot be the whole review, and a falling correction rate means nothing\nuntil a lane below agrees with it. **These lanes read what the agent did, not what the user\nsaid about it**, which is also their weakness: the agent is the judge in its own case, and both\nlanes measure only what the generator happened to write down. Every count here is a **floor**,\nnever a total. Say so in the report.\n\nBoth queries below hit the database directly, for the same reason Step 1 does: `search` caps at\n100 results and cannot group.\n\n### Where the harness keeps its things\n\n**The store is the same everywhere** — claude-mem writes to `~\u002F.claude-mem` whichever runtime it\nwas installed into, so Steps 0–3 and Lanes B and C need no adaptation at all. What differs is\neverything file-shaped: which instruction files are in force, where permissions are configured,\nand where the session transcripts live. **Resolve these by what exists on disk, and name the\nfiles you actually used in the report.** A proposal to edit a file this runtime never reads is\nworse than no proposal.\n\n| | instructions | permissions \u002F settings | session transcripts |\n|---|---|---|---|\n| Claude Code | `~\u002F.claude\u002FCLAUDE.md`, project `CLAUDE.md` \u002F `AGENTS.md` | `~\u002F.claude\u002Fsettings.json` — permissions, hooks, sandbox | `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl`, errors flagged `is_error` on the tool result |\n| Codex | `~\u002F.codex\u002FAGENTS.md`, `~\u002F.codex\u002Frules\u002F`, project `AGENTS.md` | `~\u002F.codex\u002Fconfig.toml`, `~\u002F.codex\u002Fhooks.json` | `~\u002F.codex\u002Fsessions\u002FYYYY\u002FMM\u002FDD\u002Frollout-*.jsonl`, `custom_tool_call` paired with `custom_tool_call_output` |\n| OpenCode | `~\u002F.config\u002Fopencode\u002FAGENTS.md`, project `AGENTS.md` | `~\u002F.config\u002Fopencode\u002Fopencode.json` | not files — `~\u002F.local\u002Fshare\u002Fopencode\u002Fopencode.db`, tables `message` \u002F `part`, plus a `permission` table that records denials directly |\n\nLocations drift between versions. If nothing at the listed path exists, look before concluding\nthe runtime has no transcripts, and say in the report that the lane found none rather than\nreporting zero errors.\n\n### Lane B — facts the agent keeps re-deriving\n\nSame fact, established from scratch, session after session. Nobody complains, so the prompt\nlane is blind to it by construction.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH norm AS (\n  SELECT project, memory_session_id, created_at_epoch,\n         trim(replace(replace(lower(title),'.',''),':','')) t\n  FROM observations\n  WHERE title IS NOT NULL AND trim(title) \u003C> ''\n    AND title NOT LIKE 'Task % status%' AND title NOT LIKE 'Task % completed%'\n    AND title NOT LIKE 'Session continuation%'\n),\ncl AS (\n  SELECT project, t, count(*) times, count(DISTINCT memory_session_id) sessions,\n         count(DISTINCT date(created_at_epoch\u002F1000,'unixepoch','localtime')) days,\n         min(created_at_epoch) a, max(created_at_epoch) b\n  FROM norm GROUP BY project, t\n  HAVING sessions >= 3 AND days >= 3\n)\nSELECT times, sessions,\n       (SELECT count(DISTINCT o.memory_session_id) FROM observations o\n        WHERE o.project = cl.project AND o.created_at_epoch BETWEEN cl.a AND cl.b) exposure,\n       days, date(a\u002F1000,'unixepoch','localtime')||' → '||\n             date(b\u002F1000,'unixepoch','localtime') span,\n       project, substr(t,1,52) title\nFROM cl ORDER BY sessions*1.0\u002Fexposure DESC LIMIT 25;\"\n```\n\n`exposure` counts the project's sessions between the cluster's first and last occurrence, taken\nfrom `observations` — every session, not only the ones whose titles survived the filter above.\n**It is still not every session the project had.** A session the generator never wrote for is\ninvisible here, so an outage inflates every share, and the gap grows exactly when Step 1 reports\na fade — read the two together. `sdk_sessions` looks like the right source and is not: it can\nhold a fraction of the sessions `observations` knows for the same project, which puts shares\ncomputed against it above 100%. Check that before trusting it.\n\nThe share and `sessions\u002Fexposure` is the only honest reading of how often the fact was\nre-derived. Three sessions out of five and three out of five hundred are the same number in the\n`sessions` column and nothing alike in reality — ranking by raw count puts the smaller, denser\ncluster below the bigger, sparser one.\n\n**The share is not a gate — but `HAVING` and `LIMIT` are, and pretending otherwise is a lie\nthis file told.** Nothing is dropped *for being rare in share terms*: rarity decides where the\nfact goes, not whether it is worth writing. But the query never shows a cluster below three\nsessions or past rank 25, so those are decided before any reading happens. Say in the report\nwhat the cutoffs were.\n\nFor the watchlist, drop the threshold by one step and keep the extra rows in the decisions file\nrather than the report — otherwise \"sub-threshold clusters worth watching\" asks you to record\nclusters the query never returned. They earn their place because a fact sitting just under the\nthreshold is invisible until it silently becomes news, and the growth is the thing worth\nreacting to. **Check the size before committing to this**: one step down can multiply the list\nseveral times over, and a decisions file that grows by hundreds of rows a run is one nobody\nreads. If that is what happens, record only the sub-threshold clusters that grew since the last\nrun.\n\n**What the share decides is where the fact goes, not whether it is worth writing.** Places cost\ndifferently: a line in `CLAUDE.md` is paid on every session for ever, a comment at the point in\nthe code where the fact keeps being re-derived costs nothing until someone arrives there, a doc\nbeside the code costs nothing until it is opened. Frequent and concentrated → permanent\ncontext. Rare but stable → put it where the agent will already be standing. Too rare to justify\neither → propose nothing and record that you decided so.\n\n**Matching on the exact title is a floor and a crude one.** Two sessions that word the same\ndiscovery differently do not cluster, and no number here can tell you how many were missed.\nReport what the clusters show; never report the total as \"the amount of re-derivation\".\n\n**The miss is not uniform, and its shape is known.** What survives exact matching is what the\nsummariser words the same way every time — repo layout, where a constant lives, a path. What\ngets shredded is a fact stated in prose that varies: the flags that make one CLI print what is\nwanted, the order two commands have to run in, the argument an API rejects silently. Those are\nalso the facts whose re-derivation costs the most per occurrence, so this lane is blind\nprecisely where its yield would be highest. **Do not wait for that class to cluster here** — it\nhas its own intake, keyed to the failures it ends rather than to the words it is written in;\nsee \"The intake nobody types\" below.\n\n**Group by project.** The fix is a file in one repo, so a cluster spanning projects is usually\ntwo different facts colliding on a generic title.\n\n**Then read the titles, because most of the list is not waste.** The query cannot tell a fact\nthat stays true from one that was true for a minute, and the second kind *should* be\nre-established every session:\n\n- **Volatile — expected, drop it.** Branch names and SHAs, task or ticket status, session\n  bootstrap, \"command produced no output\". Re-deriving these is correct behaviour.\n- **Stable — this is the lane's subject.** Repository layout, a symlink, where a constant\n  lives, how a flow is wired, which tool a repo does or does not have indexed. True last month,\n  true next month, and re-derived anyway.\n\n**Before proposing to write a stable fact down, check whether it is already written.** Grep the\ninstruction files in force for this runtime — the table above — and the docs beside the code. If it is there and was\nstill re-derived, the proposal is not \"document it\" — it is a defect in what gets read or\ninjected, and it is a much more serious finding than the cluster it came from.\n\n**Never propose consolidating the fact back into the store.** A consolidated row outranks its\nsources in retrieval by construction, so it would appear in every later measurement as a\nsuccess it did not earn, and would poison every observation-side number in this file.\n\n**This lane cannot use the prompt cursor, and must not try.** A cluster is multi-session by\ndefinition, and measured clusters have spanned a month, so a fortnight's window cuts them below\nany threshold and the span, which is the finding, would disappear. The query runs over all\nhistory every time; that costs nothing in context because it returns two dozen aggregate rows,\nnot the tens of thousands it scanned.\n\n**What keeps the report short instead is the split.** Clusters with a hit since the previous\nrun are live and are the work list. Clusters that went silent go to the ledger rather than the\nproposals.\n\n**A span that ends is a candidate for \"the fix worked\", not proof of it.** It reads identically\nwhen the project simply went quiet, when the generator stopped writing, when the extraction\nprompt started phrasing the same discovery differently, or when the work moved on and the fact\nstopped being needed. Before crediting a fix: check the project had sessions after the span\nended, check Step 1 shows no fade over that period, and name the change you think caused it\nwith its date. Without all three it is `inconclusive`.\n\n**Record every decision in `~\u002F.claude-mem\u002Fstate\u002Fharness-clusters.md`**, one line per cluster:\ntitle, project, the run that raised it, and what was decided — written to `\u003Cfile>`, judged\nvolatile, or declined as too rare. **Read it before proposing anything.** Without it each run\nre-proposes what the owner already declined, and the assumption that a bad proposal will be\ncaught next time is false: the next run has no idea a judgement was ever made. Re-raise a\ndeclined cluster only if its share has grown materially, and say by how much.\n\n**A cluster needs a way to stop being reported, or this lane only ever grows.** Lanes B and C\nare cumulative and each cluster's span is declared to be the finding, so nothing ever leaves:\na failure that stopped months ago prints in every run carrying its old span, indistinguishable\nfrom one that happened yesterday. Mirror the rule the ledger already has for `verified` rows —\n**a cluster whose newest occurrence predates the last two runs collapses to a single line**\ncarrying its span, its last date and its count. Collapsed, not deleted: deleting loses the\nevidence that it was ever real, and the report needs to be able to say \"this stopped\" as much\nas it needs to say \"this recurs\". Two guards, because both failure modes are easy to hit:\n\n- **Collapse on recurrence, never on a fix being shipped.** A cluster nobody worked on that\n  simply stopped is still a collapse. A cluster with a shipped fix that keeps recurring is not\n  — that one is the ledger's problem, and collapsing it hides a fix that did not work.\n- **A return reopens it at full size, and the reopening is itself a finding.** A failure class\n  that comes back after two quiet runs says the fix addressed a symptom, and that is worth more\n  than the cluster's own row count.\n\n**This file is on probation, and the condition belongs inside it.** Exact-title matching is too\ncrude to cluster the same discovery worded two ways, and a run can return no stable cluster at\nall — only bootstrap and build-outcome noise above the threshold. Write the condition into the\nfile's own header: if a run again returns no stable cluster, delete the file and say so in the\nreport.\n\nOutput per live cluster: title, project, times \u002F sessions \u002F exposure \u002F days \u002F span, and a\nmechanical proposal naming the exact file to write the fact into.\n\n**Set the thresholds against your own store, and record what you set.** Run the query at two or\nthree settings, count the clusters each returns, and pick the loosest one whose table a person\nwill actually read to the end. Write both the setting and the count into the series file, so a\nlater run knows whether a shorter list means less re-derivation or a tighter threshold. One step\nof loosening can multiply the list several times over: the setting is not a detail.\n\n### Lane C — errors the agent worked around instead of reporting\n\nThe failure mode this lane exists for: the agent hits the same wall for two months, silently\nroutes around it every time, and never once says so.\n\n**What this lane actually measures, so the name does not oversell it:** a tool call the runtime\nmarked as failed whose text matched a signature. It does not establish that the agent then\nrouted around the failure silently, because nothing here reads the following call or checks\nwhether the user was told. Treat a large, long-running signature as *evidence worth opening*,\nand confirm the silence the only way it can be confirmed — no prompt in the same period naming\nit, per the agreement rule below.\n\n**Run the script first — the transcripts are the honest source.** The store holds only the\nerrors the generator chose to write down, which is the agent judging its own case; the\ntranscripts hold every failed call as the runtime recorded it. Measured, the two disagree by\nfar more than rounding — count both once and see the size of your own gap before trusting either\nnumber alone.\n\n```bash\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py                      # no --since: spans need all history\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --since \u003Clast run>   # only for \"what is new\"\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --raw 25             # the tail: group it, do not only match signatures\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --selfcheck          # before trusting a zero\n```\n\n**Run it without `--since` for the table, and with it only to see what is new.** The span is the\nfinding, and a cursor truncates every span at its left edge and hides outright any signature\nthat stopped before the last review — which is precisely the case worth knowing about. The\nscript's `data horizon` line reports the horizon *after* the filter, not how far the transcripts\nactually go back.\n\nIt reads whichever runtimes are present, prints signature \u002F hits \u002F sessions \u002F days \u002F span per\nruntime, and never prints transcript content — a few months of transcripts run to hundreds of\nmegabytes. **Its last line is the honest one:** how many failed calls matched no signature.\nA large number there means the seed list has not yet learned this environment, not that\neverything else was fine — run `--raw` and group the tail (below).\n\nThe formats are not equally honest. Claude Code and OpenCode flag a failed call, so their\ncounts are failures. Codex records no such flag, so its numbers are matches against all tool\noutput and are an upper bound; never put them next to a failure rate.\n\nThen the store-side query below, which covers the same ground more coarsely but reaches back\npast whatever transcript retention this machine has:\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH sig(pat,name) AS (VALUES\n ('%not permitted%','sandbox \u002F permission denied'),\n ('%permission denied%','sandbox \u002F permission denied'),\n ('%command not found%','missing tool'),\n ('%etimedout%','network timeout'),\n ('%could not resolve host%','network blocked'),\n ('%rate limit%','provider rate limit'),\n ('%unknown revision%','dependency fetch'))\nSELECT s.name, count(*) hits, count(DISTINCT o.memory_session_id) sessions,\n       count(DISTINCT date(o.created_at_epoch\u002F1000,'unixepoch','localtime')) days,\n       min(date(o.created_at_epoch\u002F1000,'unixepoch','localtime'))||' → '||\n       max(date(o.created_at_epoch\u002F1000,'unixepoch','localtime')) span\nFROM observations o JOIN sig s\n  ON (lower(o.narrative) LIKE s.pat OR lower(o.facts) LIKE s.pat OR lower(o.title) LIKE s.pat)\nGROUP BY s.name ORDER BY hits DESC;\"\n```\n\n**Drop the rows this review wrote itself — in both sources.** Running this lane produces\nobservations that quote the error strings it searches for, and, worse, reading this file or a\nprevious review inside a session puts those same strings into that session's transcript — a\nmatch count can double with no new failure behind it. Exclude the sessions in which a review\nran, by id, before reading either table.\n\n**Group the whole tail, do not only match signatures.** A hand-maintained list cannot converge on\nthe shape of this data — it matches a minority of the failures, while grouping every failed call\nby normalised text yields far more distinct shapes than any list holds. Run `--raw`, normalise\n(strip paths, digits, ids, whitespace), group, and sort by sessions × days. **The tail is where\nthe useful findings are**, and they never appear in the signature table. The signature list\ntracks known classes over time; the grouping finds the next one.\n\n**The signature list is a seed, not a vocabulary** — the same trap as classifying prompts by\nkeyword. Read the period's `failed_attempt` observations and add the signatures this\nenvironment actually produces, in the run itself; the list lives in this file and in the query\nabove, not in a state file of its own. **Version the method, not the list.** What stays\ncomparable between runs is how the tail was grouped (what was normalised away, what the ranking\nkey was), so record a Lane C method version in the series row and say which version produced a\ncount.\nWidening the seed list changes nothing about comparability as long as the grouping is unchanged;\nchanging the grouping does, and that is what the version is for.\n\n**A span that ends is the most valuable row in this table.** A signature that recurs across many\nsessions and then stops on the day a workaround was written into the instructions file is a\nharness fix proving itself without anyone having predicted it, which is exactly what a ledger row\nwants as evidence. A span that reaches today is the opposite: the same obstruction, still there,\nstill routed around, with no prompt about it.\n\n**The script's table cannot satisfy the citation contract on its own.** A row reading \"path\nguessed wrong\" with a count names no path, and the output contract requires rows. Before proposing anything from this\nlane, take the signature back to the source and pull two or three concrete instances — session\nid, timestamp, and the tool or path involved — and cite those. A proposal that cites only an\naggregate is rejected like any other uncited proposal.\n\nProposals from this lane are usually one config line — a path whitelisted, a host allowed, a\ntool installed.\n\n### Lane D — the rules the harness already has\n\nEvery other lane looks for failures nobody wrote a rule about. This one asks the opposite\nquestion: **of the rules already written, which are actually obeyed?** A prohibition that is\nstated, injected into every session, and ignored is worse than no prohibition — it is paid for\ncontinuously and it manufactures confidence that the question is closed.\n\nRead the instruction files in force for this runtime — see the table above, plus the skills that\nload by default — and pull out the prohibitions that would leave a trace in the data. Rules\nabout files leave one today, in `files_read` and `files_modified`; rules about commands live in\nthe transcripts and are out of reach of this lane.\n\n**The patterns are yours to write — this file deliberately ships none.** A prohibition worth\ncounting is one your own instruction files state, over paths your own stack produces. Copying\nsomeone else's list measures their repository. One `SELECT` per rule, unioned:\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH win(floor) AS (VALUES (strftime('%s','\u003Clast run, YYYY-MM-DD>')*1000)),\n     sess AS (SELECT count(*) n FROM sdk_sessions, win WHERE started_at_epoch > floor)\nSELECT '\u003Cname the rule>' rule, count(*) hits,\n       count(DISTINCT memory_session_id) violating_sessions, (SELECT n FROM sess) window_sessions,\n       round(count(DISTINCT memory_session_id)*100.0\u002F(SELECT n FROM sess),1) pct\nFROM observations, win\nWHERE created_at_epoch > floor\n  AND files_read LIKE '%\u003Cthe prohibited path fragment>%';\"\n```\n\n**Escape an underscore in a pattern** — `LIKE '%_x%'` treats `_` as a single-character wildcard,\nso a rule about `_generated` files silently matches far more than intended. Write\n`LIKE '%\\_x%' ESCAPE '\\'`.\n\n**This lane does use the review window** — unlike Lanes B and C, where the span is the finding.\nA cumulative count can only ever rise, so it says nothing about whether a rule started working.\nThe window is built with `strftime`, **not by pasting the cursor**: the cursor is an ISO string\nand the column is epoch milliseconds, and SQLite compares those without complaining and returns\nzero rows — a clean report produced by a type mismatch.\n\n**Report violating sessions against the window's sessions, never the raw count.** A quiet\nfortnight produces fewer violations of everything, so a rule nobody obeys reads as fixed. If\nthe window holds too few sessions for a rate to mean anything, the honest score for the ledger\nrow is `unexposed`.\n\n**Even the rate measures task mix, not obedience.** A period with no work of the kind a rule\ngoverns scores perfectly on it. The unit this lane cannot compute is the *opportunity* — the sessions\nin which a prohibited file could plausibly have been read — and until something records it,\nevery number here is a floor with a moving denominator. Say that where the number is reported.\n\nTwo more distortions to state rather than smooth over: `files_read` is written by the generator,\nso an outage improves compliance; and one observation naming ten prohibited files counts once,\nwhile ten observations naming one file count ten times.\n\n**This lane asks only half its question.** *Which written rules are obeyed* is the half that is\neasy to count. The productive half is *which rule is missing* — the situation that keeps costing\nsomething and that no rule addresses at all. Nothing above finds it, and when the owner asks\ndirectly (\"what gaps could a rule or a script close?\") a run with no method for it will\nimprovise.\n\nThe method is the error tail and the other lanes, read with that question in mind: a failure\nclass that recurs and that no instruction file mentions is a missing rule, and it is the only\nplace new rules come from. Propose it the same way as any other — mechanically, cited, and\ngrepped first.\n\nTwo outcomes, and the second is the one that gets forgotten:\n\n- **Violated and still stated → propose the mechanism, not a louder sentence.** A hook, a\n  permission rule, a deny entry. The rule has already been tried in prose and the count is the\n  measurement of how that went.\n- **Never violated → do not propose deleting it on that evidence alone.** Two independent\n  reviews warned about this and an earlier version of this file shipped the deletion rule\n  regardless, which is why the warning is written out here rather than assumed. Zero\n  violations reads identically for a rule that is working, a rule that never had the chance to\n  fire, and a safety rule whose whole value is the rare case. Deletion needs *positive* evidence:\n  the situation the rule governs demonstrably occurred in the window and the rule was followed —\n  then it is doing nothing the agent would not do anyway. Absent that, the score is `unexposed`\n  and the proposal is nothing. A harness should shrink as well as grow, but not blindly.\n\n### Lane E — how tasks actually ended\n\n**Not built. Do not improvise it, and do not silently omit it.** The store records what the\nagent did, never whether the result was accepted, sent back, or abandoned. Without that, work\nthat was quietly redone is indistinguishable from work that landed.\n\nThis lane needs a task registry — a spec directory with a status per task that something\nmaintains. Until that exists, the honest line in the report is \"no outcome lane; task outcomes\nwere not measured\", never a favourable silence.\n\n**This is the lane that matters most for autonomous work.** Where the user only assigns tasks\nand never corrects, the prompt lane approaches zero and this file would print \"no corrections\nfound\" while everything burned. In that mode the load-bearing signal is the task outcome, and\nprompts demote to a drift detector: if successive briefs grow new constraints, the defect is\nalive and is being absorbed by the brief instead of being fixed.\n\n### The registry check — beside Lane E, and not Lane E\n\n**Leave the stub above exactly as it stands, and keep the five-lane enumeration in the output\ncontract as it is; this check reports on its own line.** Lane E asks how a task ended — accepted,\nsent back, redone, abandoned. This asks one mechanical question: **does a `DONE` marker mean the\nwork reached the default branch.** Labelling it Lane E would let the next run read \"the outcome\nlane exists\" and stop looking for the real one, which is the favourable silence this file exists\nto prevent.\n\n**Run it where the pipeline keeps durable progress files** — a spec or run directory whose files\ndeclare a status per task, and gate logs carrying a pass\u002Ffail verdict. Both are greppable and\nboth can be checked against git, which is what separates this from asking the store how work\nended. If no such directory exists, say so and stop; do not reconstruct task outcomes from\nobservations.\n\n**Print the size of the sliver, every time.** A registry covers the work that went through the\npipeline, which is a fraction of the work the store holds — and a silent result here reads as\n\"tasks ended fine\", the same favourable silence. State how many tasks the registry carries\nagainst how many the store does, in the same line as any finding.\n\n**The obvious verifier is wrong where the default branch is squash-merged.** Checking whether a\nrecorded commit is an ancestor of the default branch returns *not an ancestor* for every task\nthat landed, because the squash rewrites the commit — a mechanical check that can report a\ntotal failure rate on work that all shipped. Verify through the merge reference instead: the PR\nor merge identifier in the squash subject. Before trusting either result, confirm the branch's\nmerge policy; the check is only as good as that assumption.\n\n**Where the registry does not record where a task landed, say so in three numbers, never a\nverdict**: tasks marked done, tasks verifiable, tasks unverifiable for want of a merge\nreference. That gap is itself the check's first real finding — a registry that cannot verify\nitself needs one line added to its template at merge time, which is a mechanical proposal like\nany other.\n\n### Making the lanes agree\n\nThe prompt lane's number is only as good as another lane's confirmation, and \"confirmation\" has\nto be a procedure or it is a mood. For the period being reported, per signature and per live\ncluster: how many of the period's days did it run, and how many prompts mention it.\n\n**\"Mentions it\" is a judgement unless you write the rule down.** A complaint about a build\nfailing may or may not be about the sandbox denial underneath it, and two runs will split\nexactly on the cell that decides whether the prompt lane is blind. Keep a signature → wordings\nmapping in the vocabulary file, built while reading the window and versioned with it: a prompt\ncounts as mentioning a signature when it names the failure or the blocked resource, not when it\nmerely occurred near one.\n\n- **Active most of the period, zero prompts about it → the prompt lane is blind for that\n  period**, and a fall in the correction rate is not evidence of improvement. Say this in the\n  report next to the rate, not in a footnote.\n- **Active and prompts mention it → the lanes agree**, and the prompt rate can be read at face\n  value for that period.\n- **Nothing active in any lane and the correction rate fell** → the strongest reading available,\n  and still not proof: the pre-emption effect is invisible to every lane here.\n\nThe first case is the common one: a permission denial recurring for months across many sessions,\nno prompt ever complaining about it, and a correction rate over the same period that looks fine.\n\n## A sweep is one pass of two, and the first pass produces candidates\n\nWhenever a lane is worked by fanning agents across slices of history, **what comes back is a\nlead list, not a result**. First-pass findings are wrong often enough that reporting them as\nfindings means reporting a set whose headlines have not been checked — and the ones that do\nsurvive are usually *restated* rather than confirmed, so even \"confirmed\" rarely means \"as\nwritten\". Send each finding back for a dig against the primary evidence before it reaches the\nreport. The dig is cheap enough to be mandatory because the evidence is already on disk: one\nagent per finding, settled in minutes.\n\n**Budget the dig by strength, not by coverage.** One agent per finding, digging the strongest\nfinding of each slice, beats confirming many weak ones — a withdrawal is not wasted work when\nwhat replaces it is better, and in practice the replacement is the smaller, harder, more useful\nclaim.\n\n**Check what the finding's own evidence was authored by.** A withdrawal can invert: a finding\nthat a brief cited something \"that was never in the repo\" has been settled by the tree showing\nthe thing present for years — the absence had been written down by an agent whose search\nmissed, and then cited as fact by everything downstream. When a dig touches a claim of absence,\nsettle it against the tree, and if the claim came from a document rather than the tree, the\nfinding is not the absence but **a failed search promoted to a documented fact** — a different\nand more serious defect than the one reported.\n\n**What the second pass is for is replacement, not confirmation.** The pattern to expect: a\nsweeping headline dies and a narrower mechanism takes its place. \"Many sessions hunting for a\nmodule\" becomes a statement about what a dispatched agent has to re-pay for. \"Merging on red\nbecame routine\" becomes a statement about a gate whose failures carry no information. Write the\nreplacement, not the headline it replaced.\n\n### Every count states which of three levels it is on\n\nA `session_summaries` row is one summarisation checkpoint, roughly one per prompt.\n`memory_session_id` groups checkpoints but is **not** a conversation — one conversation is\nchopped across several groups. The conversation key is the uuid embedded in the\n`memory_session_id` string. Rows overstate conversations heavily, and by a factor that belongs\nto the store being read — compute it, never assume it. A count that does not name its level is\nnot a count: state the level in the finding, rows or groups or conversations.\n\n**`sdk_sessions` is not the way to resolve this.** It holds one row per conversation while\n`session_summaries` holds many groups per conversation, so a join through it silently drops\nmost of the history — and a group under investigation may have no `sdk_sessions` row at all.\nDerive the conversation from the id string instead.\n\nMost first-pass withdrawals trace to this one confusion. \"N consecutive sessions doing X\" is the\nshape it takes, and it dissolves on inspection into one dispatched agent writing many\ncheckpoints in seconds, or one conversation lasting half an hour.\n\n### The summariser has four systematic failure modes; discount for them by name\n\n- **It narrates its own duplicates as repetition.** Re-emitting a still-pending closing line at\n  each checkpoint produces rows that say \"asked for the third time\", \"for the fourth time\". The\n  store manufactured the stall it is now reporting.\n- **`next_steps` renders \"gave a recommendation and offered to proceed\" as \"awaiting user\n  decision\".** Every parked, blocked or awaiting-approval claim is inflated by this. Re-read the\n  rows before counting them, and measure the inflation on your own store if you intend to\n  report the count.\n- **`type` is unreliable inside a burst.** Rows written in quick succession inherit one type,\n  including rows whose subject plainly is not that type. Do not build a count on `type` alone.\n- **A claim about the store's own behaviour is a hypothesis** — a generator's conclusion about\n  the thing that wrote it. Re-check it, and retract a disproved one in place, per Step 2.\n\n### git is the reliable second source; transcripts frequently are not\n\nA claim about code is settled by the tree as it stood on the date in question — `git log -S`,\n`git show`, `git branch --contains`, `git ls-tree` — not by prose about it. Session transcripts\nare not a dependable second source: they may be absent for exactly the period a dig needs, and\nthey carry no retention guarantee. **Write \"no transcript survives for this period\" as a loud\nline; never read its absence as absence of errors.** Where the pipeline writes durable artefacts\n— gate logs, progress files — prefer those over any summary of them.\n\n## What the run costs — price it in tokens, and never in money\n\n**The source needs no instrumentation.** Every dispatched agent writes its own transcript under\n`~\u002F.claude\u002Fprojects\u002F\u003Cproject>\u002F\u003Csession-id>\u002Fsubagents\u002Fagent-\u003Cname>-\u003Cid>.jsonl`, one file per\nagent, and every assistant line carries a `usage` object. Summing usage per file gives a\nper-agent cost after the fact, for any run whose transcripts survive.\n\n**Report `output_tokens` alone, and name the field in the series row.** Cache reads and cache\nwrites dwarf output by orders of magnitude; summing them makes every run look catastrophic and\nmostly measures how much context was re-sent, which tracks conversation length rather than work\ndone. Output tokens track what the agent produced. Name the field, or the next run picks a\ndifferent one and the series stops being a series.\n\n**No dollar figure exists anywhere in the harness.** The transcripts carry no cost field, and a\nrate invented here would be a number with no source that later reads as measured. Prices change\nand would break comparability across a series; token counts do not.\n\n**Four numbers in the series row:** agents dispatched, output tokens, findings that survived the\ndig, and the derived cost per surviving finding.\n\n**One caveat travels with the number:** the lead session's own tokens are not in the subagent\nfiles. For a whole-review figure, add the parent transcript; for comparing fan-out designs, the\nsubagent files alone are the honest unit.\n\n**The cost number only bites when paired with the withdrawal rate.** A run that halves\nwithdrawals while doubling the cost per surviving finding has not improved, and without both in\nthe same row nobody can tell which happened.\n\n## Output contract\n\n**Ledger status first, then the numbers, then the proposals, nothing else.** A report without\nthe ledger section is void — see Step 0.\n\n**Open loops first, then ledger status, then the numbers.** A report that opens with fresh\nfindings while the owner's own unshipped proposals sit unlisted has its priorities backwards.\n\n**The report is written in the owner's words; the bookkeeping names stay in the state files.**\nThe severity levels, the lane letters, the two halves of the correction count, the ledger\nstatuses — each is an index the next run reads, and each is a decode step when it is emitted at a\nperson instead. A report that has to be decoded is a report that does not get read. So, in the\nreport and not in the files:\n\n- The three severity counts stay three counts, never blended into one, and are named by what they\n  cost: irreversible or it left the session · the wrong work got done, recoverably · the right\n  work at avoidable cost.\n- The lanes are all named, the empty ones included, by what each one reads: the user's corrective\n  prompts · facts the agent re-derives every session · errors it worked around · rules already\n  written, and whether they are obeyed · how tasks ended.\n- The two correction counts are what the harness could have prevented and what it could not.\n- A ledger row scored `shipped, unproven` reads as shipped, but never yet tested by real use.\n- **Row ids stay verbatim** — prompt ids, ledger row numbers, queue ids. They are addresses, not\n  vocabulary, and they are how the owner points at a row.\n\n**Do not add a glossary.** Replacing the term is the fix; explaining the term as well only makes\nthe report longer, and a glossary is how the short name gets back in.\n\n**Name the lanes, one line each, including the ones that produced nothing.** Prompts,\nre-derived facts, worked-around errors, rule compliance, task outcomes — five. A lane that was skipped, that came back\nempty, or that does not exist yet reads exactly like a lane that ran clean, and the difference\nis the whole value of the report. \"No outcome lane\" is a result; silence is not.\n\n**The prompt lane reports two counts, side by side and never merged into one:** corrections —\nthe user repairing something the agent did or failed to do — and the constraints the user loaded\ninto a request *before* anything failed, because they had learned the agent would otherwise get\nit wrong. The second is not part of the correction rate and never enters it; reported alone,\neither one can fall for the wrong reason (see the prompt lane, and the trap it is the instrument\nfor). Refer to them by shape here — whatever the vocabulary file calls the second one is that\nstore's business, not this contract's.\n\n**A period with none of the second kind is reported as zero.** An omitted count and a count of\nzero read identically to the next run, and only one of them is evidence: zero says the lane was\nread and the shape was absent, silence says nothing at all. Same rule as the lanes above.\n\n**Report what improved, held to the same evidence standard as everything else.** A report made\nonly of failures describes a harness that has never once got better, and the owner cannot tell a\nperiod where the fixes held from a period where nobody checked. Sources, all already\ncomputed by this run: ledger rows scored `verified`, error signatures whose span ended — a fix\nproving itself — and any count whose share fell against the previous series row. A line here\ncarries its own number like every other line, or it is a mood.\n\n**One more source, and it records the opposite thing: a practice that worked and is worth\nkeeping.** Everything above is pain that stopped, and so is the question put to the owner about\nwhat he did not have to say this period. A method that did work shows up in none of them — it\nleaves no failed rows to fall and no error span to end — so without this source the report can\nonly ever say the harness hurts less, never that it does something well enough to keep.\n\n**Read it out of the harness's own history of itself.** Where the harness is under version\ncontrol, its log over the window is the candidate list: what was created or rewritten there —\na skill, an agent, a hook, a script, a rule added to an instruction file — is exactly the set of\nthings that got built and then went quiet. Where it is not — parts of a harness are routinely\nuntracked, and untracked is where new pieces tend to land first — sweep for modification instead:\nfiles under the harness directories whose mtime falls in the window, read against\n`files_modified` on the window's observations, which says which of those the agent itself wrote\nand in which session. Both routes end at the same list, and every lane above would have missed it\nprecisely because none of it failed.\n\n**Its job is intake, not applause.** A candidate found here goes to the rule on how a skill gets\ncreated — proposed by the agent, ruled by the owner, confirmed by a first use that did not have\nto rewrite it — and it does not also become a finding of its own. Two lists of the same\ncandidates drift apart within a run or two, and the one that is only a report line is the one\nnobody acts on.\n\n**The bar is that rule's bar, and it is not optional here**, because this is the easiest line in\nthe whole report to fill with self-congratulation: every other lane counts artefacts, this one\nrisks counting impressions. Both halves have to hold:\n\n- **It can be written as steps that work with its author out of the loop.** A judgement made in\n  flight is not a procedure — written down it comes out as a retelling of intent, and it will not\n  fire for anyone else.\n- **It is visible in something the agent did not author**, and what counts depends on which kind\n  of candidate it is. A **rule** removes a failure, so its evidence is the failure's absence:\n  a commit, an error span that ended, a prompt from the owner that stopped recurring. A\n  **procedure** — how to drive a build, a deploy, an unfamiliar console — fixes nothing and will\n  never show up that way; its evidence is the external system it drives reporting the outcome\n  (a green job, a created MR, a non-error response) plus a first reuse that did not have to\n  rewrite the steps. Holding a procedure to the rule's evidence discards every candidate of that\n  kind. \"The run went well\" is the agent grading its own work, and it does not qualify however\n  well it reads.\n\n### The intake nobody types\n\nThe sweep above finds what was **built** — a skill, a hook, a rule in a file. It cannot see the\nother kind of thing worth keeping: an incantation worked out in flight and never written down.\nThe flags that make one CLI print what is wanted, the order two commands have to run in, the\nargument an API rejects silently. Nothing failed at the end, nobody complained, no artefact\nexists, and Lane B will not cluster it because the summariser words it differently every time.\nWaiting for the user to notice and say \"make that a skill\" is the same defect this file names\nelsewhere: the harness working only where a human pays attention for it.\n\n**The store already holds the pair, in prose.** A `failed_attempt` and, later in the same\nsession, the observation that says what then worked — the flag that was missing, the step that\nhad to come first, the syntax the shell would accept. `facts` quotes the commands verbatim\n(`Command: …`, `Shell rejected: …`), so the meaning is extracted already and nothing has to be\nreconstructed from argv. This is the one place in this file where the store beats the\ntranscripts: transcripts have every call and no idea which mattered.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH win(floor) AS (VALUES (strftime('%s','\u003Clast run, YYYY-MM-DD>')*1000)),\nfa AS (SELECT memory_session_id s, created_at_epoch t, project, title, facts\n       FROM observations, win\n       WHERE type = 'failed_attempt' AND created_at_epoch > floor\n         AND (facts LIKE '%'||char(96)||'%' OR facts LIKE '%Command%'))\nSELECT fa.project, date(fa.t\u002F1000,'unixepoch','localtime') day,\n       min(o.created_at_epoch), substr(fa.title,1,58) failed,\n       substr(o.title,1,58) resolved, substr(replace(fa.facts,char(10),' '),1,160) evidence\nFROM fa JOIN observations o\n  ON o.memory_session_id = fa.s AND o.created_at_epoch > fa.t\n AND o.type IN ('bugfix','change','discovery','feature')\nGROUP BY fa.s, fa.t ORDER BY fa.t DESC LIMIT 25;\"\n```\n\n`min()` with bare columns picks that row's `resolved` — SQLite guarantees this for `min`\u002F`max`\nand for nothing else. **Match the backtick as `char(96)`**, not as an escaped literal: a backtick\ninside a double-quoted shell string opens command substitution, and the failure is silent.\n\nPer row: does the resolving observation describe a procedure someone would otherwise work out\nagain? If yes, write the candidate as the steps that reproduce the working call, never as a\nretelling of how it was found, and send it through the bar above. The procedure half of the\nevidence rule is the half that applies.\n\n**Then cross-check against the spans**, the same way Lane C plays the script against the store: a\n`tool-errors.py` signature that went silent in the window with no store pair to explain it is a\nresolution the summariser did not write down. Report that count. It is the honest measure of how\nmuch of this class the query above cannot see.\n\n**Three ceilings, and they are not small.** Only what the summariser chose to record exists here,\nwhich is the agent judging its own case. A resolution in the same session proves something\nchanged after the failure, not that it was the fix. And an incantation that worked on the first\ntry produces no `failed_attempt` at all and is invisible to both instruments — the count is\ncandidates found, never \"everything worth harvesting\".\n\n**Nothing in the practitioner corpus does this, and a later run should not go hunting for a\nprecedent.** Harvesting a successful procedure is missing from the systems that have been looked\nat, retiring one is rarer, and a lane whose subject is what worked rather than what failed is\nrarer still. This is invention, not catching up — which is exactly why it carries the same\nevidence standard as every other line here: nothing outside this file validates it.\n\nEvery proposal must be **mechanical** — a hook, a prohibition, a config field, a settings\nentry, a schema change, an edit to a prompt file — and must **cite the specific evidence that\nproduced it**, by row: prompt ids, observation ids, or log lines.\n\n- No citation → rejected.\n- Citing prompts is not required. The whole point of the non-prompt lanes is that the worst\n  failures draw no complaint at all — the accepted example below is built on observations and\n  zero prompts. Demanding prompt citations would reject it.\n- The citation must **support** the claim, not merely be adjacent to it. Check the cited rows\n  say what the proposal says they say.\n- \"Build the habit of…\", \"add an explicit step\", \"consider surfacing…\" → rejected. Nothing\n  enforces them and nothing verifies they happened.\n- **Grep the instruction files before proposing anything, every time.** A proposal to write down\n  a rule that is already written is a no-op that closes a serious finding: the rule exists and\n  is not being followed, which needs enforcement, not restatement. Restating a rule already in\n  force is the single commonest defect in a proposal set, so this is a precondition on every\n  proposal, not a step belonging to one lane.\n- Nothing mechanical found → report **\"no new fixable failures this period\"**. Do not invent\n  one. A clean period is a legitimate result and the whole point of counting.\n\n**Rank by consequence, with the count as a second column.** The obvious ordering — how many rows\na proposal would close — puts the cheapest, most frequent friction on top and buries the group\nthat took something down, which typically sits near the bottom by row count while owning most of\nthe S1 rows. Sort by the worst outcome in the group; break ties by rows closed.\n\n**Split the proposals by whether they need you.** Reversible, narrowly scoped, and verifiable\ninside this run — a config line, an allowlist entry, a tool install — **the run applies itself**,\nwith a live probe before and after as the evidence, and writes its own ledger row. Everything\nelse — policy, anything that costs money, anything irreversible — goes to the owner as now.\nWithout this split the throughput of the whole exercise is however many fixes fit in one\nconversation before the person gets bored: one measured run proposed twenty-one groups and\nshipped two, both only because the owner happened to be sitting there. The line is drawn by the\nagent, so state which side each proposal was put on and why.\n\n**Track the review's own unshipped proposals.** The owner's asks have a file; the review's\nproposals have nothing, so they live in one report and the next run re-derives them from scratch\nand calls them new. Same file, same statuses, other direction: keep them beside the open loops\nand score them the same way.\n\n**Close the run with a state audit.** A run leaves seven artefacts on disk: the **five mandated\nstate files** — ledger, open loops, series, vocabulary, cursor — plus the local evidence file,\nplus `harness-clusters.md` for as long as it is on probation. Print a table at the end: each file,\n**its size**, whether it exists, and whether this run touched it. A run that reports numbers and\nwrote nothing has produced an impression, and the next run inherits nothing to compare against\n— which is the failure this whole file exists to prevent. The size column is what makes growth\nvisible a run or two before it starts eating the context budget every later run pays. It costs a\ndirectory listing.\n\n**A file earns its place only if it is a mandated read at a moment when the store cannot be\nrelied on.** Anything else that was written here has been retired: a per-run window file (the\ncursor holds both numbers), and a signature list kept as state (the method is versioned in the\nseries row instead). Do not reintroduce them, and do not add a file without stating which\nmandated read it serves.\n\n**Ask the owner what they already knew — but only about the findings that could be news.**\nAgainst each, one of three answers: *knew* \u002F *did not know* \u002F *wrong*. Nothing else separates\nthis from the thirtieth retrospective, because a review that tells you what you already knew\nfeels productive and changes nothing. Record the answers in the series file.\n\n**Do not spend the question on a single prompt.** Every row in the prompt lane is a sentence the\nowner typed and remembers; asking whether it is news is close to tautological, and the answer is\nalways *knew*. Spend it on the aggregates — what had to be repeated, what preamble appeared,\nwhere corrections cluster — and on the lanes the owner cannot see from inside a conversation.\nOn one measured run, both genuine discoveries came from outside the prompt lane, and that is\nstructural rather than luck.\n\nIf almost everything still comes back *knew*, the lanes are confirming rather than discovering,\nand the next run should change where it looks rather than how it counts.\n\n**Ask what worked, in the same breath.** *Knew \u002F did not know \u002F wrong* grades the findings and\nnothing else; it never asks what the harness stopped doing to the owner. One more question — what\ndid you not have to say this period, what is working now that used to need repeating — recorded in\nthe series file beside the verdicts. No query reaches this: relief is not an event, so a fix that\nsucceeded leaves the store looking exactly like a period nobody worked on. The answer is also the\nonly defence against removing something that is quietly holding, which is the one mistake this\nwhole file's deletion bias can produce.\n\n**Have the citations checked by someone who did not write them.** The rule above — the citation\nmust support the claim, not merely sit near it — is the one part of this contract with nothing\nenforcing it, and the author of a proposal is the worst possible checker of its evidence. Hand\na subagent the proposals and the cited row ids **only**, with no reasoning attached, and ask it\nto refute each one. Drop what it refutes. **If this runtime has no subagents, say in the report\nthat citations went unverified** — do not quietly self-check and present it as the same thing. This is the one place in the review where a subagent\nearns its cost: the lanes themselves return two dozen aggregate rows and belong in one context,\nand independent agents given the same judgement task have been measured agreeing on a small\nfraction of findings — they diverge rather than cover.\n\n| Rejected | Accepted |\n|---|---|\n| \"Consider a lighter-weight surfacing habit on scope-changing calls\" | \"Whitelist these two cache paths in the sandbox config — N observations across the period hit `Operation not permitted` on them, and twice the agent's fallback was to disable the sandbox entirely\" |\n\n## Retiring this file's own rules\n\nEvery rule here was written in response to a measured failure class, and nothing here takes one\nout again. A review whose only available move is to add a prohibition grows in one direction\nuntil it stops being read in full — and a rule nobody reads enforces nothing, whatever it says.\n\n**Record the failure class beside the rule, in the run that writes the rule.** Not afterwards and\nnot reconstructed later: the run that adds a rule is the only one that holds what it was reacting\nto, and a rule whose class cannot be named was never grounded in anything measurable in the first\nplace.\n\n**Then use the mechanism this file already has, pointed at a different subject.** Lane B collapses\na cluster whose newest occurrence predates the last two runs. Apply that same bookkeeping to the\nrules: a class that has not recurred across the same two quiet runs makes its rule a candidate for\nremoval. This is deliberately not a second scheme — one quiet-period convention with two subjects,\nso the runs that count for a cluster are the runs that count for a rule, and neither needs a\ncounter of its own.\n\n**A candidate is confirmed by one ablation, and never by the counter.** The quiet period only\nnominates; nothing is removed because a period expired. It is removed after a single run performed\nwithout the rule: if the finding the rule exists to produce still comes out, the rule was not doing\nthe work. This is the local substitute for the published signal — the base model passing a skill's\nevals with the skill unloaded — which is unavailable here because there are no evals to pass. A\nlater run should know which of the two it is holding: the same logic on a weaker instrument.\n\n**The weakness belongs in the rule, not in whatever a reader works out later: a rule that is\nworking looks exactly like a rule that is unnecessary.** Neither produces failures — not producing\nfailures is what a working rule does. No count separates them, and the ablation is the only thing\nthat can:\n\n- **One suspect at a time.** A run performed without several rules cannot attribute its result to\n  any one of them, so the tempting cleanup — drop the whole quiet set, see whether anything breaks\n  — produces an answer that cannot be read. A batch ablation is not a cheaper version of this\n  check; it is not the check.\n- **It costs a whole run**, and that is the price of the only honest answer available here. A\n  candidate waits its turn, and a run carrying an ablation says so in its report, because every\n  number it produces was measured under a different rule set than the run before it.\n- **A returning failure class reopens the rule, and the reopening is a finding** — the mirror of\n  the cluster rule's own return, and load-bearing rather than tidy. Removal rests on a single\n  run, so a class coming back is the only evidence that run was read wrong, and without this half\n  retirement is one-directional: nothing catches a rule removed for the wrong reason. Report it\n  rather than quietly restoring the rule, or the file re-grows with no record of why anything left\n  it or came back. **The ablation that authorised the removal is retired along with it** — it is\n  now known to have been misread, and it does not count as evidence for removing that same rule\n  again, or the rule gets ablated away run after run on a result already shown to be misleading.\n  **The restored rule carries the round trip in its own text**: removed, class returned, restored.\n  A rule with no history cannot be told apart by the next run from one that was never questioned,\n  which is the retraction format's reasoning applied to a rule — the record and the reason it\n  moved stay together.\n\n## Common mistakes\n\nEach was observed in baseline runs of this exact task, three of three agents unless noted.\n\n| Mistake | What it costs |\n|---|---|\n| Reading prompts first, counting later or never | The retro becomes an impression. No number moves, so no fix can be shown to have worked. |\n| Reporting a total row count as evidence the store is fine | A dead store and a healthy one have identical totals. Three of three missed a three-day outage this way. |\n| Classifying by keyword search | One run searched for two reason-demanding phrasings and never saw the period's largest category at all, because its owner's word for it was not on the list. |\n| Counting label frequency in observations instead of prompts | Observation labels track the extraction prompt, not reality; one type has been measured mistyped for months on end. Prompts are the user's own words — but see the row below before treating them as stable. |\n| Treating the prompt stream as a stationary instrument | The words do not drift; the *behaviour* does. Once the user learns the agent drops items, they write \"and don't forget X\" in advance. The \"you forgot X\" prompt disappears, the defect does not. A falling correction rate is not evidence of improvement until a non-prompt lane agrees. The instrument that tells the two apart is the pre-emptive-instruction tag in the prompt lane; count it, do not just avoid the trap. |\n| Presenting claude-mem's own audit findings as new discoveries | The audits wrote their conclusions into `observations`, so a retro will \"find\" them. Ask whether a finding is about the work or about a previous review of the work. |\n| Proposing prose habits | See the contract above. |\n| Running the prompt lane and calling it the review | The lane goes quiet as the user adapts around a defect, and it never held the silent failures at all. A correction rate that fell while Lane C shows the same denial for two months has not measured an improvement. |\n| Reading a re-derivation cluster as waste without checking the type | Half the list is branch SHAs and task status, which *should* be re-derived every session. Proposing to write those down produces instructions that rot within a day. |\n| Proposing \"document this\" without grepping the docs first | If the fact is already in `CLAUDE.md` and was still re-derived nine times, the defect is in what gets read, and the proposal as written would close a serious finding with a no-op. |\n| Trusting an instruction in this file over what the tool actually returns | Every defect in the row below shipped inside this skill and survived two GREEN runs. Check the instrument, then the data, then the claim. |\n| Reporting a clean period without saying which lanes were degraded | A rejected liveness call, a classification step reading truncations, false-positive rules that cannot be computed — a report that hides any of it reads exactly like a healthy one. |\n","# harness-review\n\n**A retrospective that produces no number produces no improvement.** Months of them can feel\nproductive and change nothing measurable, because nothing was counted. Count first, read second,\nand propose only things a machine can enforce.\n\n**Several lanes, because no single one is trustworthy.** The user's prompts are the only signal\ngenerated outside the system being measured — and they only exist where a failure was annoying\nenough to type about, which is a small and shrinking part of what goes wrong. Steps 1–3 read\nthat lane. Step 4 reads what the agent did rather than what the user said, and a review that\nruns only the prompt lane is one lane of one.\n\nRead through the `search` \u002F `timeline` \u002F `get_observations` \u002F `get_prompts` MCP tools. Four\nqueries go straight to the database because `search` caps at 100 results and cannot group —\nthe daily ratio in Step 1 and one per lane in Step 4. Each is marked where it appears.\n\n**All `search` \u002F `timeline` queries must be in English.** The store uses an English-only\nembedding model — a non-English query returns confident but unrelated results. Keep\nidentifiers (file paths, service names, error strings) verbatim; translate only the prose.\n\n**Skill version 2.6.0 — check this line before Step 0.** A plugin update does not reach a session\nthat is already running: the copy of this file put in front of you can be the text from before the\nupdate, and it carries nothing that would give that away — no mtime, no size, and the update was\nannounced in the same conversation. So read the `version:` field of `\u003Cskill dir>\u002FSKILL.md` on disk\nand compare. **They differ → the copy you are reading is stale: read the file on disk and follow\nthat**, and say in the report which version the run was made under. Bump this line and the\nfrontmatter together on every edit to this file; two version numbers that disagree turn the check\ninto noise and it stops being run.\n\n**Nothing measured on one machine belongs in this file.** Counts, dates, week numbers, project\nnames, provider strings, a stack's file patterns — all of it is one person's setup, and shipped\nhere it reads as a norm to everyone else. This file carries rules and shapes; the evidence\nbehind them lives beside the other state, in `~\u002F.claude-mem\u002Fstate\u002Fharness-review-evidence.md`,\nwhich stays local.\n\n## When to use\n\n- A periodic review of how the harness has been failing (fortnightly or monthly).\n- After a harness change landed: did the correction rate move?\n- The user asks what keeps going wrong, or why the same failure repeats.\n\n**Do not use** for reviewing a single session, debugging one failure, or auditing code quality.\nEvery lane here is a comparison across time; one session has no baseline.\n\n**No cursor, no vocabulary file, no series? That is a first run — read `first-run.md` beside this\nfile before Step 2 and do what it says.** It holds the work a first run does and no later run\nrepeats: the pass over the whole store through `session_summaries`, deriving the vocabulary file\nfrom this user's own prompts, and building the baseline every later number is compared against.\nA first run that skips it reports counts with nothing to compare them to and hands the next run a\nbacklog nobody recorded.\n\n**Works without any corrective prompts at all.** If the user only assigns tasks and never\ncorrects — an autonomous run, a fresh setup — Steps 1–3 return near zero and Step 4 carries the\nreview. Read Lane E before reporting anything in that mode.\n\n## Step 0 — score the ledger. A run that skips this is void\n\n**If the ledger file does not exist, create it and say the run established it.** A first run\nhas nothing to score and is not void for that reason — it is void only if a ledger exists and\nwas skipped. Seed it with any harness change already shipped that you can state a prediction\nfor; an empty ledger with a header is better than none, because the next run inherits the\ndiscipline rather than reinventing it.\n\n`~\u002F.claude-mem\u002Fstate\u002Fharness-ledger.md` holds every shipped harness change alongside the\nnumber it predicted would move. **Read it before anything else, and report open rows before\nany other number.** A review that finds new things without checking whether the last fix\nworked is the exact failure this skill exists to prevent.\n\nScore each open row: `moved` \u002F `not moved` \u002F `verified` \u002F `shipped, unproven` \u002F `unexposed` \u002F\n`regressed` \u002F `inconclusive` \u002F `needs its own pass`.\n\n**Collapse a row once it has proven itself.** A row scored `verified` whose signature has not\nreturned for two consecutive runs has done its work; its remaining value is one sentence — do not\npropose this again — so collapse it to a single line that still carries its evidence inline:\n\n```\n2 · fd installed \u003Cdate> · verified · was N failures across M sessions; zero in two runs since\n```\n\nSelf-sufficient without the store, and enough to find the detail there if anyone wants it. Killed\nproposals are already one-liners; leave them alone.\n\n### The other half of the ledger: what the user asked for and nobody shipped\n\n**The ledger above tracks fixes that shipped. Nothing tracks fixes the user proposed.** A\nharness problem the owner identified out loud, which then dropped because the conversation moved\non, is invisible to every lane in this file: it produced no error, no correction, no re-derived\nfact — the work never happened, so there is nothing to measure.\n\nKeep them in `~\u002F.claude-mem\u002Fstate\u002Fharness-open-loops.md`, one row each: the prompt id and date,\nwhat was asked for in one line, and a status — `open` \u002F `shipped` \u002F `declined`. Populate it from\nthe harness-tagged prompts in each window.\n\n**Print the open loops first, before the ledger scores and before any other number.** They are\nthe cheapest work available: the diagnosis is done and the owner has already said what they\nwant.\n\n- **A loop closes only two ways: it ships, or the owner declines it in as many words.** Silence\n  is not a decline — silence is exactly how it was lost the first time.\n- **Carry the age.** A loop still open at its third run is itself a finding, and not a\n  scheduling one: it means the mechanism loses what the owner already found, which is worse\n  than any single defect it might have fixed.\n- A `declined` row keeps the date it was declined and stops being shown.\n- **A shipped loop is a ledger row, not a loop.** On `shipped`, move it to the ledger and remove\n  it from this file; keeping it in both is duplication that every later run reads. `declined`\n  collapses to one line carrying its date. `open` and `agreed` are the only states that occupy\n  space here.\n\n`needs its own pass` is for rows this skill cannot check with the tools it is allowed —\na fix whose verification needs a hook triggered by hand, or queries the owner has to score by\neye. **It is a legitimate outcome and must name what the check requires**, in one line, so the\nnext run inherits the answer instead of improvising one. Without it a run either invents a\nscore or drops the row quietly, and a dropped row is invisible in exactly the way this ledger\nexists to prevent.\n\n- `verified` is for deterministic fixes. Not every fix moves a number; some just correct code,\n  and forcing them to carry a longitudinal metric manufactures a fake one.\n- `shipped, unproven` is for a change that shipped carrying no number to move — a new skill,\n  agent or script. `verified` is the only status that would otherwise fit and it means the wrong\n  thing: a deterministic fix checked by hand. Scoring a thing that has never been used as\n  `verified` reads as evidence it worked, and that inverts the row — \"we built a skill\" where the\n  honest line is \"shipped and still violated\". The row settles on a first use that did not have\n  to rewrite it; until then it stays open and says so.\n- `unexposed` means the mechanism never had an opportunity to fire. **Never record that as\n  `not moved`** — a rule that was never triggered has not failed.\n- A due condition that is a date alone is under-specified. An outage silently eats the sample\n  and the result then reads as \"the fix did not help\". Due is *N eligible events or the date,\n  whichever is later.*\n- Fixes shipped together on one day cannot be scored separately against a shared metric. Score\n  them as one bundle and say so.\n\n## Step 1 — is the store alive? Stop here if it is not\n\n```\nsearch(type=\"prompts\",      dateStart=\"\u003C30 days ago>\", limit=1, orderBy=\"date_desc\")\nsearch(type=\"observations\", dateStart=\"\u003C30 days ago>\", limit=1, orderBy=\"date_desc\")\n```\n\n**`dateStart` is required.** A filterless `search(type=\"prompts\", limit=1)` is rejected with\n`INVALID_SEARCH_REQUEST` — this skill shipped with that call and it never once ran.\n\nPrompts are written by a hook; observations need the generator to reach a model. So **prompts\nkeep flowing while observations stop**, and the gap between those two timestamps is the outage\nsignal.\n\n**If they differ by more than a day: report that as the finding and stop.** Every number below\nwould describe a store that is no longer being written, and a total row count looks identical\nwhether the store is healthy or dead.\n\nThree ways that comparison passes on a dead store. Close all three:\n\n- **Both sides died together.** If the prompt hook and the generator stop at the same moment\n  the two timestamps stay close and the gap reads zero. Compare the newer of them against the\n  **wall clock** as well: a newest prompt older than a day, on a day you worked, means capture\n  is down — not that you were idle.\n- **One live project masks the rest.** The store spans many projects and a single active one\n  keeps the global timestamps fresh. Run the comparison per project.\n- **A partial loss looks whole.** One fresh observation says nothing about the sessions that\n  produced none.\n\n**The generator's log says why, and it costs nothing.** The store can only tell you writing\nstopped; `~\u002F.claude-mem\u002Flogs\u002Fclaude-mem-YYYY-MM-DD.log` tells you what failed. On a measured\noutage the log's error lines described it far more precisely than any query could. Count them\nper day alongside the ratio below:\n\n```bash\ngrep -c \"Generator failed\" ~\u002F.claude-mem\u002Flogs\u002Fclaude-mem-$(date +%F).log\n```\n\n**Find the failure wording in your own log before trusting a zero.** Each provider path logs\nits own phrasing, so a grep written for one setup returns zero on another and the zero reads as\nhealth. Check the log has content, read one real failure, then count that.\n\nThis is the denominator for every observation-side number in the report. Without it, \"no\nfindings that day\" and \"the generator was down that day\" are indistinguishable.\n\nA timestamp comparison catches a stop but not a **fade**. A store writing a tenth of what it\nshould still passes the check above.\n\n**First of the four direct queries** — the daily ratio needs true counts, and `search` caps at\n100 results per call, which silently understates exactly the healthy days:\n\n**Group it by project.** A blended number reads as one project degrading when a dominant project\nis winding down while another starts up — a fade that is not there, hiding a smaller one that\nis. `search` cannot answer \"latest activity per project\" in one call, so this query carries the\nsplit rather than a second one being improvised each run.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nSELECT d, proj, p AS prompts, coalesce(o,0) AS observations, round(coalesce(o,0)*1.0\u002Fp, 1) AS per_prompt\nFROM (SELECT date(up.created_at_epoch\u002F1000,'unixepoch','localtime') d, s.project proj, count(*) p\n      FROM user_prompts up JOIN sdk_sessions s ON s.id = up.session_db_id\n      GROUP BY d, proj)\nLEFT JOIN (SELECT date(created_at_epoch\u002F1000,'unixepoch','localtime') d2, project p2, count(*) o\n           FROM observations GROUP BY d2, p2) ON d = d2 AND proj = p2\nWHERE d >= date('now','-14 days') AND p >= 5 ORDER BY d, p DESC;\"\n```\n\nRead each project's own series. A project falling to zero prompts is you working elsewhere; a\nproject holding its prompt volume while its ratio falls is the store failing that project.\nOnly those two readings justify different actions, and the blended number cannot tell them\napart.\n\nRead the shape, not the value — `per_prompt` varies with how tool-heavy the work is, so no\nabsolute number is healthy or unhealthy. Two rules, so that two runs reach the same verdict\ninstead of two impressions:\n\n- **Falling on three or more consecutive active days → report it as a finding**, and mark every\n  observation-side count for the period *understated*. Say the denominators are unreliable and\n  move on.\n- **Days with fewer than five prompts are idle, not sick.** Exclude them rather than counting\n  them as a dip.\n\n### Check the instrument before trusting the lane\n\nThis lane has already degraded silently once. Pull three prompts and assert: `get_prompts`\nreturns text longer than the search index showed, `session_id` present, timestamps carrying\nseconds.\n\nEach failure is a **loud line in the report** — never a silent best effort.\n\nTwo of the four false-positive rules below (same session within ~60s; one text across many\nsessions within a minute) need a session id and second-resolution timestamps on the search\nresult. Where the tools do not supply them, those rules are uncomputable and any category that\ndepends on ordering within a session cannot be verified. **Every report states which rules were in force** — a run under three of four is\nnot comparable with a run under four.\n\n## Step 2 — read the new prompts and classify them yourself\n\nRead the prompts written since the last run:\n\n```\nsearch(type=\"prompts\", dateStart=\"\u003Clast_run UTC>\", limit=100, orderBy=\"date_asc\")\n```\n\nPage with `offset` until exhausted; a fortnight usually takes a couple of calls. Keep\n`{\"last_run\": \"\u003CUTC, Z suffix>\", \"last_prompt_id\": N}` in\n`~\u002F.claude-mem\u002Fstate\u002Fharness-review.json`.\n\n**Fix the window before reading it.** Note the highest prompt id present at the start of the run\nand treat it as the ceiling; everything at or below `last_prompt_id`, or above the ceiling, is\nout of scope. The ceiling becomes `last_prompt_id` in the cursor when the report is written —\nthat is the whole record the next run needs. **Do not write a per-run window file**; the range\nit held is two numbers that already live in the cursor.\n\n**Then check the seam.** The first id of this window must be `last_prompt_id + 1`. A gap means\nthe cursor moved further than the last run actually\nread, and those prompts will never be looked at by anything: the next run starts from the\ncursor, not from what was covered. `dateStart` is inclusive, so a date-only window recounts\nwhatever sat on the boundary, and paging by date while new rows arrive shifts pages underneath\nyou.\n\n**First, drop what the user did not type.** The prompt table is written by a hook, and on a\nmulti-agent setup it also collects machine traffic: subagent reports relayed back to the\norchestrator, cross-session messages, internal markers. They open with a recognisable envelope —\n`\u003Cagent-message from=`, `\u003Ccross-session-message`, an HTML comment marker — and they are not\nfalse positives to be subtracted later. They are **not prompts at all**, and they must leave the\nwindow before anything is labelled, or every rate in this lane is computed over a denominator\nthat is partly machine.\n\n**The class is wider than the envelope, though: it is every prompt authored by an agent rather\nthan by the user, and it comes in two shapes.** The inbound relay arrives wrapped, so sight\ncatches it. The outbound brief — what one session types into another agent's session — is stored\nthere as that session's own prompt with no wrapper at all: long, imperative, written in English,\nindistinguishable from a hard correction the user typed. Both leave the window before any rate is\ncomputed. Whether this store marks outbound briefs with a literal prefix, and what that prefix\nis, belongs in the vocabulary file — it is a local convention, not a property of the lane.\n\n**A convention has a start date, and a window can reach back past it.** Prompts written before it\ncarry no marker, so they are subtracted by shape — who wrote it, who it was addressed to — and\nthe report **says which part of the window was subtracted by marker and which by shape**. A run\nclaiming a clean marker-based subtraction over a period where no marker existed has not measured\nwhat it claims. The stakes exceed the count: an unmarked agent prompt is not evenly spread noise,\nit is noise shaped like the signal, and it lands in the largest correction bucket rather than\nspreading across all four — so a few rows move the rate further than their number suggests.\n\nCount them and report the number separately: it says how much of the table is not the user, and\nit grows with parallel work. **If it is more than a rounding error, the fix belongs in the\ncapture hook, not in this skill** — a review that quietly filters them each run leaves every\nother consumer of that table reading them as the user's words.\n\n**Every prompt in the window gets exactly one primary label** — and the four must sum to the\nsize of the window:\n\n- **correction** — the user is repairing something the agent did or failed to do.\n- **excluded** — a false positive under Step 3. It looks like a correction and is not.\n- **neutral** — everything else. Instructions, questions, answers, approvals.\n- **a fourth bucket, if this user has one.** Watch for a class of prompt that is neither a\n  correction nor an ordinary instruction and that recurs constantly — the kind of thing a person\n  types dozens of times a week without thinking of it as feedback at all. Give it its own primary\n  bucket and name it in the vocabulary file. Folding such a class into `neutral` merges the\n  largest thing in the dataset with approvals; counting it as a correction inflates the headline\n  by more than every real category combined. Both have happened. Which class it is differs\n  completely between people, so this file names none.\n\nThe distinction that matters is excluded-versus-neutral: an excluded prompt was a candidate that\ngot ruled out and should be reported as such, a neutral one never was. Anything else a prompt\nalso is becomes a tag, not a second primary. A window whose labels do not sum to its size is not\na clean period, it is an invalid instrument, and the period is reported as such.\n\n**`last_run` is UTC.** Writing local time with a `Z` suffix pushes the next window into the\nfuture, which returns zero prompts and reports a clean period.\n\n**Guard: if Step 1 said the store is live and this window returns zero prompts, that is a\ncontradiction, not a clean period.** Suspect the cursor and stop.\n\nAdvance the cursor only after the report is written. A run that dies mid-way must re-read its\nwindow, not skip it.\n\n**Write this run's numbers to `~\u002F.claude-mem\u002Fstate\u002Fharness-review-series.md`** — and write them\nas **one table row, never a report**: window id range · rows in window · the four primary counts\n· harness-attributable vs floor · the S1\u002FS2\u002FS3 vector · skill version · rubric version ·\nLane C method version ·\none short headline per lane. Nothing else. A lane whose numbers live only in the report dies\nwith the chat, and the next run then has nothing to compare against except a frozen baseline —\nnever against the run before it, which is exactly what \"count first\" was supposed to produce.\nA run that writes a table row produces a line; one measured run wrote a report instead. Every\nlater run must read this file before it starts work, so whatever is written here is paid for on\nevery invocation, for ever.\n\n**A run's narrative belongs nowhere on disk, and no run builds per-run files or archives.** The\nreview session is itself captured by claude-mem, and a measured run's own conclusions do reach\n`observations` — so duplicating that narrative into a file produces a reader who does not exist.\nBut the store is not a *reliable* archive either: the generator can fail against a provider for a\nwhole day, and a run on such a day leaves nothing behind. Hence the rule both halves point at —\n**every surviving line carries its own number inline; a pointer to the store is a convenience,\nnever the mechanism.** A `runs\u002F` or `archive\u002F` directory was proposed and rejected.\n\n### A stored conclusion is a hypothesis, and the run that disproves one retracts it in place\n\n**A stored claim about the store's or the harness's own behaviour is a hypothesis, not\nevidence — re-check it against the store before citing it.** The summaries this pass mines were\nwritten by sessions that were frequently mid-way through changing the very thing they describe,\nso a claim that was true the morning it was written can be false by the time a review quotes it\nback — now with a second timestamp on it, which reads as confirmation rather than as a copy.\n\n**Narrow on purpose.** Schema, counts, queries and generator behaviour are cheap to re-run, and\nthose are the claims this covers. What a session was trying to do, or why, cannot be re-checked\nat any sensible cost: that is testimony, cite it as testimony.\n\n**A claim the check disproves is retracted in place, by the run that disproved it.** The run\nholding the disproof is the only one that will ever hold it, and a finding filed only in a report\nleaves the wrong text sitting in the store, still reading as knowledge. Nothing in the store will\ncatch it later: there is no contradiction check and no expiry, so this review is the detector —\nover everything on a first run, and over its window on every run after, which means anything\noutside a later window keeps whatever it claimed.\n\nThe format is required, not advice:\n\n- **Marker first, at the head of the field.** Search truncates, and a leading marker is the only\n  form that survives into a listing — a retraction further down is invisible to exactly the reads\n  that would otherwise re-cite the claim.\n- **The marker names what disproved it: the commit, the query, or the file.** Without that, the\n  next run cannot tell a verified retraction from someone's opinion, and pays to re-check the\n  whole thing from scratch.\n- **The original text stays verbatim below the marker**, never rewritten and never deleted. The\n  claim and the reason it was wrong have to be readable together; an edited field destroys the\n  evidence that the claim was ever made, which is the part a later run needs to see.\n- **Name what is being retracted when the field holds more than one claim**, and leave the rest\n  alone. A blanket marker over a mixed field discards claims nobody disproved.\n- **The report cites the retraction as a finding**, with the same citation as any other.\n\n**This format lives here rather than in a state file.** There may be no edit path for the record\nbeing corrected — a retraction can be hand-written SQL against the store — and a format that\nlives beside one run's notes is a format the next run does not have.\n\n**Any boundary carries its reason in the cursor, written by the run that set it.** Not a note\nadded afterwards, and never a reason reconstructed later from the choice itself: an\nafter-the-fact justification cannot be told apart from a rationalisation, by the next run or by\nanyone. If a run cannot cover something, the cursor records what was left out and why, as\nnumbers the next run can act on rather than a sentence it has to trust.\n\n**Three sources sit in the plugin that no lane here reads.** Named because a run that never\nopens them cannot say what it did not look at:\n\n- `session_summaries` — the medium of the first-run pass (`first-run.md`), unread by every other\n  lane.\n- `session_start_context` — renders exactly what the SessionStart hook injects for a project.\n  It is the only way to see which memory actually reaches a context, as opposed to which memory\n  exists. Use it when a Lane B cluster claims a fact was re-derived that the store already held.\n- the `knowledge-agent` corpus tools — semantic questions across the whole history that SQL\n  cannot express. **Leads, never counts:** anything they surface is a candidate for a dig, and a\n  number that came out of them does not go in the report.\n\n**Search truncates the prompt. Fetch the full text before classifying:**\n\n```\nget_prompts(ids=[...])   → full prompt_text for every id in the window\n```\n\nClassifying on a truncated head is guessing: heads have read as questions where the full text\nwas a correction. If the full text is unavailable, every label in the window is provisional and\nthe report says so.\n\n## The categories are yours to derive, and this file deliberately names none\n\n**A category list is a description of how one person is failed by one harness.** Someone else's\nlist will differ completely — different work, different tolerances, different words, often a\ndifferent language. Copying a list produces counts that balance and mean nothing, and it hides\nthe categories you actually have, because a reader who has been handed four boxes puts\neverything in one of the four.\n\nWhat travels is the method.\n\n**Group corrections by the fix that would have prevented them, not by wording and not by how\nthey feel.** A category earns its place only if every prompt in it would be closed by the same\nmechanism — one hook, one prohibition, one config line, one change to an instruction file. That\ntest does three jobs at once: it keeps categories mutually exclusive, it makes the priority\norder fall out instead of being declared arbitrarily (when a prompt fits two, the primary is the\none whose fix would have prevented it), and it guarantees every category can produce a proposal\nunder the output contract. A category no fix corresponds to is an observation about a mood.\n\n**Declare the order before counting, whatever it is.** Categories overlap — one sentence can\neasily be three things at once — and without a fixed order each run resolves the overlap\ndifferently, which is fatal for a number whose only job is comparison across time.\n\n**The lane's subject is not only failure.** A prompt saying the result should have been\nshorter, or simpler, or that a step was ceremony — where nothing broke and the work was\ndelivered — is a signal about the harness's *shape*, and under a failure-shaped rubric it falls\nstraight into `neutral` and is never read again. It belongs in its own bucket: outside the\ncorrection rate, because nothing failed, and inside the proposals, because the user has just\ntold you what to change.\n\n**This is also how the harness knows what to trim.** There is no absolute standard for how long\na document should be or how many steps a process needs — that depends on the machine, the work\nand the person. The standard is the user's own dissatisfaction: complained about repeatedly,\nit is too long; never mentioned, it is fine. A review that measures artefact size against a\nnumber of its own invention is measuring its own opinion.\n\n**Tag every prompt whose subject is the harness itself.** Not the task — the tooling: the\ninstruction files, hooks, settings, permissions, the sandbox, a skill, or the agent's working\nmethod treated as policy rather than as this task's problem. These are usually not corrections\nat all. \"We should fix X\", \"this rule is wrong\", \"why is this still manual\" — a proposal, not a\ncomplaint, and it lands in `neutral` where nothing ever reads it again.\n\n**Including — especially — a rule stated in passing.** The most easily lost form is not a\nrequest at all: a general policy attached to a specific instruction. *\"Agent docs are English\nonly — send this one to be translated.\"* The user is not asking for a harness change; they are\nannouncing a standing rule and expecting it to hold from now on. It will not, because nothing\nwrote it down, and the next session has never heard of it.\n\nThe tell is a general clause riding along with a particular task: *only*, *always*, *never*,\n*from now on*, *we do it this way here*. The proposal that follows is the same every time and\nneeds no thought — put it in the instruction file, verbatim enough to be checkable. These are\nthe cheapest wins available and the ones a failure-shaped rubric never sees, because nothing\nwent wrong: the user just told you the rules and moved on.\n\n**This is the most valuable prompt in the corpus and the easiest one to lose.** The user has\nalready done the diagnosis, for free, and named the fix. If the conversation then moved on — and\nit usually does, because the person was in the middle of something else — the whole thing\nevaporates. It leaves no trace anywhere else: no tool error, no re-derived fact, no correction,\nnothing for any other lane to find. A run that scores the ledger and never asks what the user\nproposed and nobody shipped is measuring only the fixes that happened to get attention.\n\n**Tag `harness-doubt` when the user questions a harness component itself.** Not *is this claim\nright* — that is the claim-challenge below, and its answer lives in the agent's reply. This one is\n*is this thing worth having*: does that skill do anything, why is this hook still here, is this\nrule earning its injection. They arrive one at a time, each individually minor, and each scores as\nthe lowest severity there is. **Report rule: enumerate every tagged id and name the component each\none is about; never fold them into a severity count.** The aggregate — several prompts doubting\none component across a period — is the finding, and a severity column destroys it. Carry\nthe tag in the vocabulary file so the next run applies it without rediscovering it.\n\n**Sample the neutral bucket, every run, not only when building a baseline.** Everything labelled\nneutral is never read again, so a correction mislabelled neutral disappears permanently and\nsilently — no sum fails, no guard fires. Once the window is labelled, take thirty to forty\nneutral rows by a fixed rule (every Nth, so the choice is not yours) and relabel them cold.\nReport the miss rate next to the correction rate — **including when it is zero**. A clean sample\nis a real result about the instrument, and it is exactly the kind of boring number a run drops\nfor lack of anything to say about it. The misses hiding there have moved a headline further than\nany shipped fix, and nothing else in an ordinary run surfaces them.\n\n**Classify by reading, not by keyword matching.** A baseline run that searched for correction\nwords missed an entire category, because the word its owner actually used was not on the list.\nAny keyword list is a guess at a vocabulary the user extends without telling you.\n\n**When the prompt challenges a claim, open the reply before scoring it.** *\"Where did you get\nthat?\"*, *\"did you actually look?\"* — the prompt records only that the user doubted. **Whether\nthe doubt was founded lives in the agent's answer**, and the answer often names a real source\nthe user had not seen, or turns out to be about a different file, or shows the user's own\nenvironment was confused. Find the session transcript, read the assistant turn that follows,\nand score from that. If the transcript cannot be found, leave the row **unscored** and say so —\ndo not fall back to the prompt alone. This is procedure, not judgement, and it is the largest\nlabelling defect measured so far: correction rows withdraw in numbers once the replies are read,\nand most of the withdrawals are claim-challenges.\n\n**Separate three things that arrive in the same shape**, or a design-heavy period reads as a\nharness collapse: the user correcting the **agent**; the user revising an **artefact** the agent\nis drafting for them; the user reasoning about the **system under study**. All three sound like\n\"no, X, not Y\". Only the first is a harness failure.\n\n**The wordings and the category list live outside this file**, in\n`~\u002F.claude-mem\u002Fstate\u002Fharness-review-vocab.md` — they are one person's prompts, and this skill is\nmeant to be shared. Read it before classifying; any closed list in it is closed, and a run that\nwidens one has changed the instrument and must say so.\n\n**Things that are not prompts cannot be counted from this lane.** An interrupt, a cancelled\ncall, a session abandoned mid-task — these are harness events, and they leave no row here.\nReport them as *not measured*. A silent zero is indistinguishable from \"there were none\", and\nreads as the healthier of the two.\n\n### Then step back: what do the prompts say as a set?\n\nEverything above reads one prompt at a time, and one prompt at a time is the wrong altitude for\nthe most useful question this lane can answer: **taken together, what rule would have made most\nof this unnecessary?** A per-row finding is rarely news to the person who typed the row — they\nwere there. The set is not: nobody sees their own last two hundred prompts at once.\n\nAsk it deliberately, after classifying and before writing proposals, over this window and the\nprevious ones in the series:\n\n- **What did you have to say more than once?** The same instruction re-issued across sessions\n  is a rule that exists in the user's head and nowhere else. Each instance looks like an\n  ordinary instruction; only the repetition makes it a finding, and no single window shows it —\n  this is the one question that requires looking across windows rather than within one.\n- **Where in the work do the corrections cluster?** If they concentrate in one phase — planning,\n  review, hand-off — the defect belongs to that phase, and a rule scoped to it beats a general\n  one about care.\n- **What never has to be said here?** The rules already working. Worth knowing before anyone\n  proposes deleting one for looking inert.\n\n**A rule derived this way is a claim about what the user wants, so put it to them in their own\nwords and let them correct it.** Deriving preferences from behaviour and then enforcing them\nunasked is how a harness acquires rules nobody agreed to.\n\nTwo tests before any of it becomes a proposal, both cheap and both routinely skipped:\n\n- **Grep first.** If the rule is already written somewhere in force, the finding is not \"write\n  this down\" — it is that a written rule is not being followed, which is a different and more\n  serious proposal.\n- **Replay it.** Name the cited prompts and ask whether this rule, in force at the time, would\n  actually have prevented them. A rule that survives this reads like a rule; one that does not\n  reads like \"be more careful\" with extra words.\n\n### Second label: could a harness change have prevented it?\n\n**Not every correction is the harness's fault, and a rate that mixes the two has a floor it can\nnever cross.** The user changing their mind, a brief that was half-formed when it was sent, a\ndecision that could only be made after seeing the work — these produce corrections no\ninstruction file, hook or config would have prevented. Counted together with the rest, they set\na floor under the correction rate, and every run below that floor reads as failure to improve.\n\nThe test is written and binary, applied while reading: **name the change that would have\nprevented this prompt.** A hook, a prohibition, a config value, a line in an instruction file, a\ntool that should exist. If nothing can be named, the correction is not harness-attributable.\n\n- Report the two counts separately, always, and never blend them into one rate.\n- The harness-attributable count is the one a ledger row may predict against.\n- **The other count is not noise — it is the floor**, and its size tells you how much room the\n  harness has left. A period where it dominates is a period where the harness is close to as\n  good as this measurement can show.\n- Naming the change is also the first draft of the proposal, so this costs nothing beyond what\n  the output contract already demands.\n\n### Second label: severity\n\nCounts alone are blind to weight. A handful of prompts about a destroyed working tree matter\nmore than a whole week of friction, and nothing in a count says so. Give every correction a\nseverity in the same reading pass, on three levels defined by consequence:\n\nAll three levels are **classes of consequence**. Do not define one of them by what the prompt\nlooked like — an earlier version defined the lowest level by prompt shape while the other two\ndescribed what the agent's action caused, which put two axes in one scale and made the bottom\nlevel collide with the non-correction bucket above.\n\n- **S1 — irreversible, or it left the session.** Work destroyed that cannot be recovered; an\n  action someone outside the session saw; a claim about the state of a real system, made without\n  looking, that was then acted on.\n- **S2 — the wrong work got done, recoverably.** Scope invented, an instruction acted on that\n  was never given, a process bypassed. The cost is the work itself and the time to undo it.\n- **S3 — the right work, at avoidable cost.** It arrived, but it took a round trip that a\n  working harness would not have needed.\n\n**Write your own anchor incident under each level, in the vocabulary file, taken from what has\nactually happened here.** The levels are general; the incidents are not, and a level without an\nanchor drifts a step every run.\n\n**Report the vector, never a single blended index.** One number invites optimising the number,\nand a fall in S3 would hide a rise in S1. It also gives ledger predictions a shape worth having:\n\"zero S1 this period\" means something, \"the correction rate fell four percent\" does not. The\nlevel numbers are for the state files: in the report each count is named by its consequence, per\nthe output contract.\n\n**Check severity calibration between labellers on identical prompts before reading a difference\nas real.** Two passes reporting very different S1 counts may be using the same bar on different\nperiods — measured, that is exactly what happened once, and the obvious reading would have been\nwrong in the direction that suppresses incidents.\n\n### The other direction: what the user says before the failure, not after\n\n**Every label above is retrospective.** The user says the agent got it wrong, and the lane counts\nit. Nothing so far counts the opposite shape: a constraint loaded into the request *in advance*\nbecause the user has learned that otherwise the agent will get it wrong — \"and don't forget X\",\n\"same as last time\", \"only don't do Y\". Nothing has failed in that prompt, so its primary label\nis `neutral` and stays there. What it carries is a **tag**, and the tag is evidence: the defect\nis alive, and the user is now paying its cost instead of the harness.\n\n**This is the instrument for a trap this file already names and does not measure.** The trap\ntable warns against reading the prompt stream as a stationary instrument — once the user learns\nthe agent drops something, the \"you forgot X\" prompt disappears while the defect does not, and\nthe correction rate falls for the wrong reason. Naming the trap does not detect it. Counting both\nshapes side by side separates the two readings:\n\n- Corrections fall and pre-emptive instructions fall with them — the defect is gone.\n- Corrections fall while pre-emptive instructions rise — the defect survived and moved onto the\n  user. That is not an improvement, and under the correction rate alone it is indistinguishable\n  from one.\n\n**Report the two counts beside each other, never merged into one.** A pre-emptive instruction is\nnot a correction and must not enter the correction rate: it repaired nothing, and folding it in\nwould penalise the user for having learned to work around the defect.\n\n**Only count it when the constraint it carries matches a defect this review has seen elsewhere**\n— a correction in an earlier window, a Lane B fact the agent keeps re-deriving, a Lane D rule\nthat is written and not followed. Without that match a specific instruction is just a specific\ninstruction: people are allowed to be precise about what they want, and reading ordinary\nprecision as harness failure inflates the lane with everything the user happens to spell out.\n\n**Name the tag in the vocabulary file, not here.** What this shape is called, and which\nconstraints count as instances of it, is derived from one person's prompts like every other\ncategory in this lane; this file ships the distinction and the reading it enables, and no\nwording for either.\n\n### The agent side\n\nCorrections only mean something against the volume of work that drew them.\n\n```\nsearch(type=\"observations\", obs_type=\"finding\", dateStart=\"\u003Clast_run UTC>\", limit=100)\nsearch(type=\"observations\", obs_type=\"failed_attempt\", dateStart=\"\u003Clast_run UTC>\", limit=100)\n```\n\n**Both types have a start date — the day the extraction prompt that introduced them shipped\nhere.** Before it they return zero because the type did not exist, not because nothing was\nconcluded. Read the date off `plugin\u002Fmodes\u002Fcode.json`'s version history rather than assuming\nit, and never plot these two against anything earlier.\n\nIf a call returns exactly 100, the real number is \"≥100\"; page with `offset`.\n\n`failed_attempt` near zero is itself suspect — agents that never record a failed approach are\nnot failing less, they are not writing it down.\n\n**Do not divide these two counts by anything while a ledger row targets either of them.** If an\nopen row predicts that the share of one type rises — an extraction-prompt change is the usual\ncase — then that share moves on its own and any ratio built on it measures the experiment, not\nthe harness. Report the counts side by side and say which rows make them untrustworthy.\n\n## Step 3 — subtract the false positives before calling anything a correction\n\n**The test: a false positive is a prompt whose existence is explained by something other than\nthe agent's behaviour.** Typing habits, the transport, several agents addressed at once,\ninfrastructure output pasted in. It reads exactly like a correction to anything short of\nreading it, and the class is large enough to double a correction rate by itself.\n\n**Which classes you have depends on how you work, so derive them and write them down.** Read a\nwindow with this question only: *would this prompt exist if the agent had behaved perfectly?* If\nyes, it is not a correction, whatever it looks like. Record each class you find in the\nvocabulary file with its subtraction rule stated mechanically — a time bound, a session bound, a\ntext relation — so that two runs subtract identically. A rule that has to be re-invented each\nrun is not a rule.\n\n**State which rules were computable.** Subtraction rules need fields the tools may not return —\na session id, timestamps with seconds. A run that could apply three of its four rules is not\ncomparable with a run that applied four, and must say so rather than quietly reporting a lower\nnumber.\n\n**Ask before you subtract a whole category. A correction category is a claim about what the user\nmeant, and the user is available to ask** — cheaper than any amount of arithmetic, and the only\nmethod that can tell you a category is measuring nothing its owner experiences as failure. Two\nversions of this skill computed an elaborate defensible discount where one question settled it\ndifferently.\n\n## Step 4 — the lanes where nobody complains\n\n**The prompt lane has a ceiling, and it is lower than it looks.** A prompt exists only when a\nfailure annoyed the user enough to type about it. Everything the agent wastes silently —\nre-deriving the same fact for the ninth time, working around the same blocked path for two\nmonths — costs tokens and time and produces no prompt at all. Worse, pre-emption degrades the\nlane on its own, which is what the pre-emptive-instruction tag in Step 2 exists to catch.\n\nSo the prompt lane cannot be the whole review, and a falling correction rate means nothing\nuntil a lane below agrees with it. **These lanes read what the agent did, not what the user\nsaid about it**, which is also their weakness: the agent is the judge in its own case, and both\nlanes measure only what the generator happened to write down. Every count here is a **floor**,\nnever a total. Say so in the report.\n\nBoth queries below hit the database directly, for the same reason Step 1 does: `search` caps at\n100 results and cannot group.\n\n### Where the harness keeps its things\n\n**The store is the same everywhere** — claude-mem writes to `~\u002F.claude-mem` whichever runtime it\nwas installed into, so Steps 0–3 and Lanes B and C need no adaptation at all. What differs is\neverything file-shaped: which instruction files are in force, where permissions are configured,\nand where the session transcripts live. **Resolve these by what exists on disk, and name the\nfiles you actually used in the report.** A proposal to edit a file this runtime never reads is\nworse than no proposal.\n\n| | instructions | permissions \u002F settings | session transcripts |\n|---|---|---|---|\n| Claude Code | `~\u002F.claude\u002FCLAUDE.md`, project `CLAUDE.md` \u002F `AGENTS.md` | `~\u002F.claude\u002Fsettings.json` — permissions, hooks, sandbox | `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl`, errors flagged `is_error` on the tool result |\n| Codex | `~\u002F.codex\u002FAGENTS.md`, `~\u002F.codex\u002Frules\u002F`, project `AGENTS.md` | `~\u002F.codex\u002Fconfig.toml`, `~\u002F.codex\u002Fhooks.json` | `~\u002F.codex\u002Fsessions\u002FYYYY\u002FMM\u002FDD\u002Frollout-*.jsonl`, `custom_tool_call` paired with `custom_tool_call_output` |\n| OpenCode | `~\u002F.config\u002Fopencode\u002FAGENTS.md`, project `AGENTS.md` | `~\u002F.config\u002Fopencode\u002Fopencode.json` | not files — `~\u002F.local\u002Fshare\u002Fopencode\u002Fopencode.db`, tables `message` \u002F `part`, plus a `permission` table that records denials directly |\n\nLocations drift between versions. If nothing at the listed path exists, look before concluding\nthe runtime has no transcripts, and say in the report that the lane found none rather than\nreporting zero errors.\n\n### Lane B — facts the agent keeps re-deriving\n\nSame fact, established from scratch, session after session. Nobody complains, so the prompt\nlane is blind to it by construction.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH norm AS (\n  SELECT project, memory_session_id, created_at_epoch,\n         trim(replace(replace(lower(title),'.',''),':','')) t\n  FROM observations\n  WHERE title IS NOT NULL AND trim(title) \u003C> ''\n    AND title NOT LIKE 'Task % status%' AND title NOT LIKE 'Task % completed%'\n    AND title NOT LIKE 'Session continuation%'\n),\ncl AS (\n  SELECT project, t, count(*) times, count(DISTINCT memory_session_id) sessions,\n         count(DISTINCT date(created_at_epoch\u002F1000,'unixepoch','localtime')) days,\n         min(created_at_epoch) a, max(created_at_epoch) b\n  FROM norm GROUP BY project, t\n  HAVING sessions >= 3 AND days >= 3\n)\nSELECT times, sessions,\n       (SELECT count(DISTINCT o.memory_session_id) FROM observations o\n        WHERE o.project = cl.project AND o.created_at_epoch BETWEEN cl.a AND cl.b) exposure,\n       days, date(a\u002F1000,'unixepoch','localtime')||' → '||\n             date(b\u002F1000,'unixepoch','localtime') span,\n       project, substr(t,1,52) title\nFROM cl ORDER BY sessions*1.0\u002Fexposure DESC LIMIT 25;\"\n```\n\n`exposure` counts the project's sessions between the cluster's first and last occurrence, taken\nfrom `observations` — every session, not only the ones whose titles survived the filter above.\n**It is still not every session the project had.** A session the generator never wrote for is\ninvisible here, so an outage inflates every share, and the gap grows exactly when Step 1 reports\na fade — read the two together. `sdk_sessions` looks like the right source and is not: it can\nhold a fraction of the sessions `observations` knows for the same project, which puts shares\ncomputed against it above 100%. Check that before trusting it.\n\nThe share and `sessions\u002Fexposure` is the only honest reading of how often the fact was\nre-derived. Three sessions out of five and three out of five hundred are the same number in the\n`sessions` column and nothing alike in reality — ranking by raw count puts the smaller, denser\ncluster below the bigger, sparser one.\n\n**The share is not a gate — but `HAVING` and `LIMIT` are, and pretending otherwise is a lie\nthis file told.** Nothing is dropped *for being rare in share terms*: rarity decides where the\nfact goes, not whether it is worth writing. But the query never shows a cluster below three\nsessions or past rank 25, so those are decided before any reading happens. Say in the report\nwhat the cutoffs were.\n\nFor the watchlist, drop the threshold by one step and keep the extra rows in the decisions file\nrather than the report — otherwise \"sub-threshold clusters worth watching\" asks you to record\nclusters the query never returned. They earn their place because a fact sitting just under the\nthreshold is invisible until it silently becomes news, and the growth is the thing worth\nreacting to. **Check the size before committing to this**: one step down can multiply the list\nseveral times over, and a decisions file that grows by hundreds of rows a run is one nobody\nreads. If that is what happens, record only the sub-threshold clusters that grew since the last\nrun.\n\n**What the share decides is where the fact goes, not whether it is worth writing.** Places cost\ndifferently: a line in `CLAUDE.md` is paid on every session for ever, a comment at the point in\nthe code where the fact keeps being re-derived costs nothing until someone arrives there, a doc\nbeside the code costs nothing until it is opened. Frequent and concentrated → permanent\ncontext. Rare but stable → put it where the agent will already be standing. Too rare to justify\neither → propose nothing and record that you decided so.\n\n**Matching on the exact title is a floor and a crude one.** Two sessions that word the same\ndiscovery differently do not cluster, and no number here can tell you how many were missed.\nReport what the clusters show; never report the total as \"the amount of re-derivation\".\n\n**The miss is not uniform, and its shape is known.** What survives exact matching is what the\nsummariser words the same way every time — repo layout, where a constant lives, a path. What\ngets shredded is a fact stated in prose that varies: the flags that make one CLI print what is\nwanted, the order two commands have to run in, the argument an API rejects silently. Those are\nalso the facts whose re-derivation costs the most per occurrence, so this lane is blind\nprecisely where its yield would be highest. **Do not wait for that class to cluster here** — it\nhas its own intake, keyed to the failures it ends rather than to the words it is written in;\nsee \"The intake nobody types\" below.\n\n**Group by project.** The fix is a file in one repo, so a cluster spanning projects is usually\ntwo different facts colliding on a generic title.\n\n**Then read the titles, because most of the list is not waste.** The query cannot tell a fact\nthat stays true from one that was true for a minute, and the second kind *should* be\nre-established every session:\n\n- **Volatile — expected, drop it.** Branch names and SHAs, task or ticket status, session\n  bootstrap, \"command produced no output\". Re-deriving these is correct behaviour.\n- **Stable — this is the lane's subject.** Repository layout, a symlink, where a constant\n  lives, how a flow is wired, which tool a repo does or does not have indexed. True last month,\n  true next month, and re-derived anyway.\n\n**Before proposing to write a stable fact down, check whether it is already written.** Grep the\ninstruction files in force for this runtime — the table above — and the docs beside the code. If it is there and was\nstill re-derived, the proposal is not \"document it\" — it is a defect in what gets read or\ninjected, and it is a much more serious finding than the cluster it came from.\n\n**Never propose consolidating the fact back into the store.** A consolidated row outranks its\nsources in retrieval by construction, so it would appear in every later measurement as a\nsuccess it did not earn, and would poison every observation-side number in this file.\n\n**This lane cannot use the prompt cursor, and must not try.** A cluster is multi-session by\ndefinition, and measured clusters have spanned a month, so a fortnight's window cuts them below\nany threshold and the span, which is the finding, would disappear. The query runs over all\nhistory every time; that costs nothing in context because it returns two dozen aggregate rows,\nnot the tens of thousands it scanned.\n\n**What keeps the report short instead is the split.** Clusters with a hit since the previous\nrun are live and are the work list. Clusters that went silent go to the ledger rather than the\nproposals.\n\n**A span that ends is a candidate for \"the fix worked\", not proof of it.** It reads identically\nwhen the project simply went quiet, when the generator stopped writing, when the extraction\nprompt started phrasing the same discovery differently, or when the work moved on and the fact\nstopped being needed. Before crediting a fix: check the project had sessions after the span\nended, check Step 1 shows no fade over that period, and name the change you think caused it\nwith its date. Without all three it is `inconclusive`.\n\n**Record every decision in `~\u002F.claude-mem\u002Fstate\u002Fharness-clusters.md`**, one line per cluster:\ntitle, project, the run that raised it, and what was decided — written to `\u003Cfile>`, judged\nvolatile, or declined as too rare. **Read it before proposing anything.** Without it each run\nre-proposes what the owner already declined, and the assumption that a bad proposal will be\ncaught next time is false: the next run has no idea a judgement was ever made. Re-raise a\ndeclined cluster only if its share has grown materially, and say by how much.\n\n**A cluster needs a way to stop being reported, or this lane only ever grows.** Lanes B and C\nare cumulative and each cluster's span is declared to be the finding, so nothing ever leaves:\na failure that stopped months ago prints in every run carrying its old span, indistinguishable\nfrom one that happened yesterday. Mirror the rule the ledger already has for `verified` rows —\n**a cluster whose newest occurrence predates the last two runs collapses to a single line**\ncarrying its span, its last date and its count. Collapsed, not deleted: deleting loses the\nevidence that it was ever real, and the report needs to be able to say \"this stopped\" as much\nas it needs to say \"this recurs\". Two guards, because both failure modes are easy to hit:\n\n- **Collapse on recurrence, never on a fix being shipped.** A cluster nobody worked on that\n  simply stopped is still a collapse. A cluster with a shipped fix that keeps recurring is not\n  — that one is the ledger's problem, and collapsing it hides a fix that did not work.\n- **A return reopens it at full size, and the reopening is itself a finding.** A failure class\n  that comes back after two quiet runs says the fix addressed a symptom, and that is worth more\n  than the cluster's own row count.\n\n**This file is on probation, and the condition belongs inside it.** Exact-title matching is too\ncrude to cluster the same discovery worded two ways, and a run can return no stable cluster at\nall — only bootstrap and build-outcome noise above the threshold. Write the condition into the\nfile's own header: if a run again returns no stable cluster, delete the file and say so in the\nreport.\n\nOutput per live cluster: title, project, times \u002F sessions \u002F exposure \u002F days \u002F span, and a\nmechanical proposal naming the exact file to write the fact into.\n\n**Set the thresholds against your own store, and record what you set.** Run the query at two or\nthree settings, count the clusters each returns, and pick the loosest one whose table a person\nwill actually read to the end. Write both the setting and the count into the series file, so a\nlater run knows whether a shorter list means less re-derivation or a tighter threshold. One step\nof loosening can multiply the list several times over: the setting is not a detail.\n\n### Lane C — errors the agent worked around instead of reporting\n\nThe failure mode this lane exists for: the agent hits the same wall for two months, silently\nroutes around it every time, and never once says so.\n\n**What this lane actually measures, so the name does not oversell it:** a tool call the runtime\nmarked as failed whose text matched a signature. It does not establish that the agent then\nrouted around the failure silently, because nothing here reads the following call or checks\nwhether the user was told. Treat a large, long-running signature as *evidence worth opening*,\nand confirm the silence the only way it can be confirmed — no prompt in the same period naming\nit, per the agreement rule below.\n\n**Run the script first — the transcripts are the honest source.** The store holds only the\nerrors the generator chose to write down, which is the agent judging its own case; the\ntranscripts hold every failed call as the runtime recorded it. Measured, the two disagree by\nfar more than rounding — count both once and see the size of your own gap before trusting either\nnumber alone.\n\n```bash\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py                      # no --since: spans need all history\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --since \u003Clast run>   # only for \"what is new\"\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --raw 25             # the tail: group it, do not only match signatures\npython3 \u003Cskill dir>\u002Fscripts\u002Ftool-errors.py --selfcheck          # before trusting a zero\n```\n\n**Run it without `--since` for the table, and with it only to see what is new.** The span is the\nfinding, and a cursor truncates every span at its left edge and hides outright any signature\nthat stopped before the last review — which is precisely the case worth knowing about. The\nscript's `data horizon` line reports the horizon *after* the filter, not how far the transcripts\nactually go back.\n\nIt reads whichever runtimes are present, prints signature \u002F hits \u002F sessions \u002F days \u002F span per\nruntime, and never prints transcript content — a few months of transcripts run to hundreds of\nmegabytes. **Its last line is the honest one:** how many failed calls matched no signature.\nA large number there means the seed list has not yet learned this environment, not that\neverything else was fine — run `--raw` and group the tail (below).\n\nThe formats are not equally honest. Claude Code and OpenCode flag a failed call, so their\ncounts are failures. Codex records no such flag, so its numbers are matches against all tool\noutput and are an upper bound; never put them next to a failure rate.\n\nThen the store-side query below, which covers the same ground more coarsely but reaches back\npast whatever transcript retention this machine has:\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH sig(pat,name) AS (VALUES\n ('%not permitted%','sandbox \u002F permission denied'),\n ('%permission denied%','sandbox \u002F permission denied'),\n ('%command not found%','missing tool'),\n ('%etimedout%','network timeout'),\n ('%could not resolve host%','network blocked'),\n ('%rate limit%','provider rate limit'),\n ('%unknown revision%','dependency fetch'))\nSELECT s.name, count(*) hits, count(DISTINCT o.memory_session_id) sessions,\n       count(DISTINCT date(o.created_at_epoch\u002F1000,'unixepoch','localtime')) days,\n       min(date(o.created_at_epoch\u002F1000,'unixepoch','localtime'))||' → '||\n       max(date(o.created_at_epoch\u002F1000,'unixepoch','localtime')) span\nFROM observations o JOIN sig s\n  ON (lower(o.narrative) LIKE s.pat OR lower(o.facts) LIKE s.pat OR lower(o.title) LIKE s.pat)\nGROUP BY s.name ORDER BY hits DESC;\"\n```\n\n**Drop the rows this review wrote itself — in both sources.** Running this lane produces\nobservations that quote the error strings it searches for, and, worse, reading this file or a\nprevious review inside a session puts those same strings into that session's transcript — a\nmatch count can double with no new failure behind it. Exclude the sessions in which a review\nran, by id, before reading either table.\n\n**Group the whole tail, do not only match signatures.** A hand-maintained list cannot converge on\nthe shape of this data — it matches a minority of the failures, while grouping every failed call\nby normalised text yields far more distinct shapes than any list holds. Run `--raw`, normalise\n(strip paths, digits, ids, whitespace), group, and sort by sessions × days. **The tail is where\nthe useful findings are**, and they never appear in the signature table. The signature list\ntracks known classes over time; the grouping finds the next one.\n\n**The signature list is a seed, not a vocabulary** — the same trap as classifying prompts by\nkeyword. Read the period's `failed_attempt` observations and add the signatures this\nenvironment actually produces, in the run itself; the list lives in this file and in the query\nabove, not in a state file of its own. **Version the method, not the list.** What stays\ncomparable between runs is how the tail was grouped (what was normalised away, what the ranking\nkey was), so record a Lane C method version in the series row and say which version produced a\ncount.\nWidening the seed list changes nothing about comparability as long as the grouping is unchanged;\nchanging the grouping does, and that is what the version is for.\n\n**A span that ends is the most valuable row in this table.** A signature that recurs across many\nsessions and then stops on the day a workaround was written into the instructions file is a\nharness fix proving itself without anyone having predicted it, which is exactly what a ledger row\nwants as evidence. A span that reaches today is the opposite: the same obstruction, still there,\nstill routed around, with no prompt about it.\n\n**The script's table cannot satisfy the citation contract on its own.** A row reading \"path\nguessed wrong\" with a count names no path, and the output contract requires rows. Before proposing anything from this\nlane, take the signature back to the source and pull two or three concrete instances — session\nid, timestamp, and the tool or path involved — and cite those. A proposal that cites only an\naggregate is rejected like any other uncited proposal.\n\nProposals from this lane are usually one config line — a path whitelisted, a host allowed, a\ntool installed.\n\n### Lane D — the rules the harness already has\n\nEvery other lane looks for failures nobody wrote a rule about. This one asks the opposite\nquestion: **of the rules already written, which are actually obeyed?** A prohibition that is\nstated, injected into every session, and ignored is worse than no prohibition — it is paid for\ncontinuously and it manufactures confidence that the question is closed.\n\nRead the instruction files in force for this runtime — see the table above, plus the skills that\nload by default — and pull out the prohibitions that would leave a trace in the data. Rules\nabout files leave one today, in `files_read` and `files_modified`; rules about commands live in\nthe transcripts and are out of reach of this lane.\n\n**The patterns are yours to write — this file deliberately ships none.** A prohibition worth\ncounting is one your own instruction files state, over paths your own stack produces. Copying\nsomeone else's list measures their repository. One `SELECT` per rule, unioned:\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH win(floor) AS (VALUES (strftime('%s','\u003Clast run, YYYY-MM-DD>')*1000)),\n     sess AS (SELECT count(*) n FROM sdk_sessions, win WHERE started_at_epoch > floor)\nSELECT '\u003Cname the rule>' rule, count(*) hits,\n       count(DISTINCT memory_session_id) violating_sessions, (SELECT n FROM sess) window_sessions,\n       round(count(DISTINCT memory_session_id)*100.0\u002F(SELECT n FROM sess),1) pct\nFROM observations, win\nWHERE created_at_epoch > floor\n  AND files_read LIKE '%\u003Cthe prohibited path fragment>%';\"\n```\n\n**Escape an underscore in a pattern** — `LIKE '%_x%'` treats `_` as a single-character wildcard,\nso a rule about `_generated` files silently matches far more than intended. Write\n`LIKE '%\\_x%' ESCAPE '\\'`.\n\n**This lane does use the review window** — unlike Lanes B and C, where the span is the finding.\nA cumulative count can only ever rise, so it says nothing about whether a rule started working.\nThe window is built with `strftime`, **not by pasting the cursor**: the cursor is an ISO string\nand the column is epoch milliseconds, and SQLite compares those without complaining and returns\nzero rows — a clean report produced by a type mismatch.\n\n**Report violating sessions against the window's sessions, never the raw count.** A quiet\nfortnight produces fewer violations of everything, so a rule nobody obeys reads as fixed. If\nthe window holds too few sessions for a rate to mean anything, the honest score for the ledger\nrow is `unexposed`.\n\n**Even the rate measures task mix, not obedience.** A period with no work of the kind a rule\ngoverns scores perfectly on it. The unit this lane cannot compute is the *opportunity* — the sessions\nin which a prohibited file could plausibly have been read — and until something records it,\nevery number here is a floor with a moving denominator. Say that where the number is reported.\n\nTwo more distortions to state rather than smooth over: `files_read` is written by the generator,\nso an outage improves compliance; and one observation naming ten prohibited files counts once,\nwhile ten observations naming one file count ten times.\n\n**This lane asks only half its question.** *Which written rules are obeyed* is the half that is\neasy to count. The productive half is *which rule is missing* — the situation that keeps costing\nsomething and that no rule addresses at all. Nothing above finds it, and when the owner asks\ndirectly (\"what gaps could a rule or a script close?\") a run with no method for it will\nimprovise.\n\nThe method is the error tail and the other lanes, read with that question in mind: a failure\nclass that recurs and that no instruction file mentions is a missing rule, and it is the only\nplace new rules come from. Propose it the same way as any other — mechanically, cited, and\ngrepped first.\n\nTwo outcomes, and the second is the one that gets forgotten:\n\n- **Violated and still stated → propose the mechanism, not a louder sentence.** A hook, a\n  permission rule, a deny entry. The rule has already been tried in prose and the count is the\n  measurement of how that went.\n- **Never violated → do not propose deleting it on that evidence alone.** Two independent\n  reviews warned about this and an earlier version of this file shipped the deletion rule\n  regardless, which is why the warning is written out here rather than assumed. Zero\n  violations reads identically for a rule that is working, a rule that never had the chance to\n  fire, and a safety rule whose whole value is the rare case. Deletion needs *positive* evidence:\n  the situation the rule governs demonstrably occurred in the window and the rule was followed —\n  then it is doing nothing the agent would not do anyway. Absent that, the score is `unexposed`\n  and the proposal is nothing. A harness should shrink as well as grow, but not blindly.\n\n### Lane E — how tasks actually ended\n\n**Not built. Do not improvise it, and do not silently omit it.** The store records what the\nagent did, never whether the result was accepted, sent back, or abandoned. Without that, work\nthat was quietly redone is indistinguishable from work that landed.\n\nThis lane needs a task registry — a spec directory with a status per task that something\nmaintains. Until that exists, the honest line in the report is \"no outcome lane; task outcomes\nwere not measured\", never a favourable silence.\n\n**This is the lane that matters most for autonomous work.** Where the user only assigns tasks\nand never corrects, the prompt lane approaches zero and this file would print \"no corrections\nfound\" while everything burned. In that mode the load-bearing signal is the task outcome, and\nprompts demote to a drift detector: if successive briefs grow new constraints, the defect is\nalive and is being absorbed by the brief instead of being fixed.\n\n### The registry check — beside Lane E, and not Lane E\n\n**Leave the stub above exactly as it stands, and keep the five-lane enumeration in the output\ncontract as it is; this check reports on its own line.** Lane E asks how a task ended — accepted,\nsent back, redone, abandoned. This asks one mechanical question: **does a `DONE` marker mean the\nwork reached the default branch.** Labelling it Lane E would let the next run read \"the outcome\nlane exists\" and stop looking for the real one, which is the favourable silence this file exists\nto prevent.\n\n**Run it where the pipeline keeps durable progress files** — a spec or run directory whose files\ndeclare a status per task, and gate logs carrying a pass\u002Ffail verdict. Both are greppable and\nboth can be checked against git, which is what separates this from asking the store how work\nended. If no such directory exists, say so and stop; do not reconstruct task outcomes from\nobservations.\n\n**Print the size of the sliver, every time.** A registry covers the work that went through the\npipeline, which is a fraction of the work the store holds — and a silent result here reads as\n\"tasks ended fine\", the same favourable silence. State how many tasks the registry carries\nagainst how many the store does, in the same line as any finding.\n\n**The obvious verifier is wrong where the default branch is squash-merged.** Checking whether a\nrecorded commit is an ancestor of the default branch returns *not an ancestor* for every task\nthat landed, because the squash rewrites the commit — a mechanical check that can report a\ntotal failure rate on work that all shipped. Verify through the merge reference instead: the PR\nor merge identifier in the squash subject. Before trusting either result, confirm the branch's\nmerge policy; the check is only as good as that assumption.\n\n**Where the registry does not record where a task landed, say so in three numbers, never a\nverdict**: tasks marked done, tasks verifiable, tasks unverifiable for want of a merge\nreference. That gap is itself the check's first real finding — a registry that cannot verify\nitself needs one line added to its template at merge time, which is a mechanical proposal like\nany other.\n\n### Making the lanes agree\n\nThe prompt lane's number is only as good as another lane's confirmation, and \"confirmation\" has\nto be a procedure or it is a mood. For the period being reported, per signature and per live\ncluster: how many of the period's days did it run, and how many prompts mention it.\n\n**\"Mentions it\" is a judgement unless you write the rule down.** A complaint about a build\nfailing may or may not be about the sandbox denial underneath it, and two runs will split\nexactly on the cell that decides whether the prompt lane is blind. Keep a signature → wordings\nmapping in the vocabulary file, built while reading the window and versioned with it: a prompt\ncounts as mentioning a signature when it names the failure or the blocked resource, not when it\nmerely occurred near one.\n\n- **Active most of the period, zero prompts about it → the prompt lane is blind for that\n  period**, and a fall in the correction rate is not evidence of improvement. Say this in the\n  report next to the rate, not in a footnote.\n- **Active and prompts mention it → the lanes agree**, and the prompt rate can be read at face\n  value for that period.\n- **Nothing active in any lane and the correction rate fell** → the strongest reading available,\n  and still not proof: the pre-emption effect is invisible to every lane here.\n\nThe first case is the common one: a permission denial recurring for months across many sessions,\nno prompt ever complaining about it, and a correction rate over the same period that looks fine.\n\n## A sweep is one pass of two, and the first pass produces candidates\n\nWhenever a lane is worked by fanning agents across slices of history, **what comes back is a\nlead list, not a result**. First-pass findings are wrong often enough that reporting them as\nfindings means reporting a set whose headlines have not been checked — and the ones that do\nsurvive are usually *restated* rather than confirmed, so even \"confirmed\" rarely means \"as\nwritten\". Send each finding back for a dig against the primary evidence before it reaches the\nreport. The dig is cheap enough to be mandatory because the evidence is already on disk: one\nagent per finding, settled in minutes.\n\n**Budget the dig by strength, not by coverage.** One agent per finding, digging the strongest\nfinding of each slice, beats confirming many weak ones — a withdrawal is not wasted work when\nwhat replaces it is better, and in practice the replacement is the smaller, harder, more useful\nclaim.\n\n**Check what the finding's own evidence was authored by.** A withdrawal can invert: a finding\nthat a brief cited something \"that was never in the repo\" has been settled by the tree showing\nthe thing present for years — the absence had been written down by an agent whose search\nmissed, and then cited as fact by everything downstream. When a dig touches a claim of absence,\nsettle it against the tree, and if the claim came from a document rather than the tree, the\nfinding is not the absence but **a failed search promoted to a documented fact** — a different\nand more serious defect than the one reported.\n\n**What the second pass is for is replacement, not confirmation.** The pattern to expect: a\nsweeping headline dies and a narrower mechanism takes its place. \"Many sessions hunting for a\nmodule\" becomes a statement about what a dispatched agent has to re-pay for. \"Merging on red\nbecame routine\" becomes a statement about a gate whose failures carry no information. Write the\nreplacement, not the headline it replaced.\n\n### Every count states which of three levels it is on\n\nA `session_summaries` row is one summarisation checkpoint, roughly one per prompt.\n`memory_session_id` groups checkpoints but is **not** a conversation — one conversation is\nchopped across several groups. The conversation key is the uuid embedded in the\n`memory_session_id` string. Rows overstate conversations heavily, and by a factor that belongs\nto the store being read — compute it, never assume it. A count that does not name its level is\nnot a count: state the level in the finding, rows or groups or conversations.\n\n**`sdk_sessions` is not the way to resolve this.** It holds one row per conversation while\n`session_summaries` holds many groups per conversation, so a join through it silently drops\nmost of the history — and a group under investigation may have no `sdk_sessions` row at all.\nDerive the conversation from the id string instead.\n\nMost first-pass withdrawals trace to this one confusion. \"N consecutive sessions doing X\" is the\nshape it takes, and it dissolves on inspection into one dispatched agent writing many\ncheckpoints in seconds, or one conversation lasting half an hour.\n\n### The summariser has four systematic failure modes; discount for them by name\n\n- **It narrates its own duplicates as repetition.** Re-emitting a still-pending closing line at\n  each checkpoint produces rows that say \"asked for the third time\", \"for the fourth time\". The\n  store manufactured the stall it is now reporting.\n- **`next_steps` renders \"gave a recommendation and offered to proceed\" as \"awaiting user\n  decision\".** Every parked, blocked or awaiting-approval claim is inflated by this. Re-read the\n  rows before counting them, and measure the inflation on your own store if you intend to\n  report the count.\n- **`type` is unreliable inside a burst.** Rows written in quick succession inherit one type,\n  including rows whose subject plainly is not that type. Do not build a count on `type` alone.\n- **A claim about the store's own behaviour is a hypothesis** — a generator's conclusion about\n  the thing that wrote it. Re-check it, and retract a disproved one in place, per Step 2.\n\n### git is the reliable second source; transcripts frequently are not\n\nA claim about code is settled by the tree as it stood on the date in question — `git log -S`,\n`git show`, `git branch --contains`, `git ls-tree` — not by prose about it. Session transcripts\nare not a dependable second source: they may be absent for exactly the period a dig needs, and\nthey carry no retention guarantee. **Write \"no transcript survives for this period\" as a loud\nline; never read its absence as absence of errors.** Where the pipeline writes durable artefacts\n— gate logs, progress files — prefer those over any summary of them.\n\n## What the run costs — price it in tokens, and never in money\n\n**The source needs no instrumentation.** Every dispatched agent writes its own transcript under\n`~\u002F.claude\u002Fprojects\u002F\u003Cproject>\u002F\u003Csession-id>\u002Fsubagents\u002Fagent-\u003Cname>-\u003Cid>.jsonl`, one file per\nagent, and every assistant line carries a `usage` object. Summing usage per file gives a\nper-agent cost after the fact, for any run whose transcripts survive.\n\n**Report `output_tokens` alone, and name the field in the series row.** Cache reads and cache\nwrites dwarf output by orders of magnitude; summing them makes every run look catastrophic and\nmostly measures how much context was re-sent, which tracks conversation length rather than work\ndone. Output tokens track what the agent produced. Name the field, or the next run picks a\ndifferent one and the series stops being a series.\n\n**No dollar figure exists anywhere in the harness.** The transcripts carry no cost field, and a\nrate invented here would be a number with no source that later reads as measured. Prices change\nand would break comparability across a series; token counts do not.\n\n**Four numbers in the series row:** agents dispatched, output tokens, findings that survived the\ndig, and the derived cost per surviving finding.\n\n**One caveat travels with the number:** the lead session's own tokens are not in the subagent\nfiles. For a whole-review figure, add the parent transcript; for comparing fan-out designs, the\nsubagent files alone are the honest unit.\n\n**The cost number only bites when paired with the withdrawal rate.** A run that halves\nwithdrawals while doubling the cost per surviving finding has not improved, and without both in\nthe same row nobody can tell which happened.\n\n## Output contract\n\n**Ledger status first, then the numbers, then the proposals, nothing else.** A report without\nthe ledger section is void — see Step 0.\n\n**Open loops first, then ledger status, then the numbers.** A report that opens with fresh\nfindings while the owner's own unshipped proposals sit unlisted has its priorities backwards.\n\n**The report is written in the owner's words; the bookkeeping names stay in the state files.**\nThe severity levels, the lane letters, the two halves of the correction count, the ledger\nstatuses — each is an index the next run reads, and each is a decode step when it is emitted at a\nperson instead. A report that has to be decoded is a report that does not get read. So, in the\nreport and not in the files:\n\n- The three severity counts stay three counts, never blended into one, and are named by what they\n  cost: irreversible or it left the session · the wrong work got done, recoverably · the right\n  work at avoidable cost.\n- The lanes are all named, the empty ones included, by what each one reads: the user's corrective\n  prompts · facts the agent re-derives every session · errors it worked around · rules already\n  written, and whether they are obeyed · how tasks ended.\n- The two correction counts are what the harness could have prevented and what it could not.\n- A ledger row scored `shipped, unproven` reads as shipped, but never yet tested by real use.\n- **Row ids stay verbatim** — prompt ids, ledger row numbers, queue ids. They are addresses, not\n  vocabulary, and they are how the owner points at a row.\n\n**Do not add a glossary.** Replacing the term is the fix; explaining the term as well only makes\nthe report longer, and a glossary is how the short name gets back in.\n\n**Name the lanes, one line each, including the ones that produced nothing.** Prompts,\nre-derived facts, worked-around errors, rule compliance, task outcomes — five. A lane that was skipped, that came back\nempty, or that does not exist yet reads exactly like a lane that ran clean, and the difference\nis the whole value of the report. \"No outcome lane\" is a result; silence is not.\n\n**The prompt lane reports two counts, side by side and never merged into one:** corrections —\nthe user repairing something the agent did or failed to do — and the constraints the user loaded\ninto a request *before* anything failed, because they had learned the agent would otherwise get\nit wrong. The second is not part of the correction rate and never enters it; reported alone,\neither one can fall for the wrong reason (see the prompt lane, and the trap it is the instrument\nfor). Refer to them by shape here — whatever the vocabulary file calls the second one is that\nstore's business, not this contract's.\n\n**A period with none of the second kind is reported as zero.** An omitted count and a count of\nzero read identically to the next run, and only one of them is evidence: zero says the lane was\nread and the shape was absent, silence says nothing at all. Same rule as the lanes above.\n\n**Report what improved, held to the same evidence standard as everything else.** A report made\nonly of failures describes a harness that has never once got better, and the owner cannot tell a\nperiod where the fixes held from a period where nobody checked. Sources, all already\ncomputed by this run: ledger rows scored `verified`, error signatures whose span ended — a fix\nproving itself — and any count whose share fell against the previous series row. A line here\ncarries its own number like every other line, or it is a mood.\n\n**One more source, and it records the opposite thing: a practice that worked and is worth\nkeeping.** Everything above is pain that stopped, and so is the question put to the owner about\nwhat he did not have to say this period. A method that did work shows up in none of them — it\nleaves no failed rows to fall and no error span to end — so without this source the report can\nonly ever say the harness hurts less, never that it does something well enough to keep.\n\n**Read it out of the harness's own history of itself.** Where the harness is under version\ncontrol, its log over the window is the candidate list: what was created or rewritten there —\na skill, an agent, a hook, a script, a rule added to an instruction file — is exactly the set of\nthings that got built and then went quiet. Where it is not — parts of a harness are routinely\nuntracked, and untracked is where new pieces tend to land first — sweep for modification instead:\nfiles under the harness directories whose mtime falls in the window, read against\n`files_modified` on the window's observations, which says which of those the agent itself wrote\nand in which session. Both routes end at the same list, and every lane above would have missed it\nprecisely because none of it failed.\n\n**Its job is intake, not applause.** A candidate found here goes to the rule on how a skill gets\ncreated — proposed by the agent, ruled by the owner, confirmed by a first use that did not have\nto rewrite it — and it does not also become a finding of its own. Two lists of the same\ncandidates drift apart within a run or two, and the one that is only a report line is the one\nnobody acts on.\n\n**The bar is that rule's bar, and it is not optional here**, because this is the easiest line in\nthe whole report to fill with self-congratulation: every other lane counts artefacts, this one\nrisks counting impressions. Both halves have to hold:\n\n- **It can be written as steps that work with its author out of the loop.** A judgement made in\n  flight is not a procedure — written down it comes out as a retelling of intent, and it will not\n  fire for anyone else.\n- **It is visible in something the agent did not author**, and what counts depends on which kind\n  of candidate it is. A **rule** removes a failure, so its evidence is the failure's absence:\n  a commit, an error span that ended, a prompt from the owner that stopped recurring. A\n  **procedure** — how to drive a build, a deploy, an unfamiliar console — fixes nothing and will\n  never show up that way; its evidence is the external system it drives reporting the outcome\n  (a green job, a created MR, a non-error response) plus a first reuse that did not have to\n  rewrite the steps. Holding a procedure to the rule's evidence discards every candidate of that\n  kind. \"The run went well\" is the agent grading its own work, and it does not qualify however\n  well it reads.\n\n### The intake nobody types\n\nThe sweep above finds what was **built** — a skill, a hook, a rule in a file. It cannot see the\nother kind of thing worth keeping: an incantation worked out in flight and never written down.\nThe flags that make one CLI print what is wanted, the order two commands have to run in, the\nargument an API rejects silently. Nothing failed at the end, nobody complained, no artefact\nexists, and Lane B will not cluster it because the summariser words it differently every time.\nWaiting for the user to notice and say \"make that a skill\" is the same defect this file names\nelsewhere: the harness working only where a human pays attention for it.\n\n**The store already holds the pair, in prose.** A `failed_attempt` and, later in the same\nsession, the observation that says what then worked — the flag that was missing, the step that\nhad to come first, the syntax the shell would accept. `facts` quotes the commands verbatim\n(`Command: …`, `Shell rejected: …`), so the meaning is extracted already and nothing has to be\nreconstructed from argv. This is the one place in this file where the store beats the\ntranscripts: transcripts have every call and no idea which mattered.\n\n```bash\nsqlite3 ~\u002F.claude-mem\u002Fclaude-mem.db \"\nWITH win(floor) AS (VALUES (strftime('%s','\u003Clast run, YYYY-MM-DD>')*1000)),\nfa AS (SELECT memory_session_id s, created_at_epoch t, project, title, facts\n       FROM observations, win\n       WHERE type = 'failed_attempt' AND created_at_epoch > floor\n         AND (facts LIKE '%'||char(96)||'%' OR facts LIKE '%Command%'))\nSELECT fa.project, date(fa.t\u002F1000,'unixepoch','localtime') day,\n       min(o.created_at_epoch), substr(fa.title,1,58) failed,\n       substr(o.title,1,58) resolved, substr(replace(fa.facts,char(10),' '),1,160) evidence\nFROM fa JOIN observations o\n  ON o.memory_session_id = fa.s AND o.created_at_epoch > fa.t\n AND o.type IN ('bugfix','change','discovery','feature')\nGROUP BY fa.s, fa.t ORDER BY fa.t DESC LIMIT 25;\"\n```\n\n`min()` with bare columns picks that row's `resolved` — SQLite guarantees this for `min`\u002F`max`\nand for nothing else. **Match the backtick as `char(96)`**, not as an escaped literal: a backtick\ninside a double-quoted shell string opens command substitution, and the failure is silent.\n\nPer row: does the resolving observation describe a procedure someone would otherwise work out\nagain? If yes, write the candidate as the steps that reproduce the working call, never as a\nretelling of how it was found, and send it through the bar above. The procedure half of the\nevidence rule is the half that applies.\n\n**Then cross-check against the spans**, the same way Lane C plays the script against the store: a\n`tool-errors.py` signature that went silent in the window with no store pair to explain it is a\nresolution the summariser did not write down. Report that count. It is the honest measure of how\nmuch of this class the query above cannot see.\n\n**Three ceilings, and they are not small.** Only what the summariser chose to record exists here,\nwhich is the agent judging its own case. A resolution in the same session proves something\nchanged after the failure, not that it was the fix. And an incantation that worked on the first\ntry produces no `failed_attempt` at all and is invisible to both instruments — the count is\ncandidates found, never \"everything worth harvesting\".\n\n**Nothing in the practitioner corpus does this, and a later run should not go hunting for a\nprecedent.** Harvesting a successful procedure is missing from the systems that have been looked\nat, retiring one is rarer, and a lane whose subject is what worked rather than what failed is\nrarer still. This is invention, not catching up — which is exactly why it carries the same\nevidence standard as every other line here: nothing outside this file validates it.\n\nEvery proposal must be **mechanical** — a hook, a prohibition, a config field, a settings\nentry, a schema change, an edit to a prompt file — and must **cite the specific evidence that\nproduced it**, by row: prompt ids, observation ids, or log lines.\n\n- No citation → rejected.\n- Citing prompts is not required. The whole point of the non-prompt lanes is that the worst\n  failures draw no complaint at all — the accepted example below is built on observations and\n  zero prompts. Demanding prompt citations would reject it.\n- The citation must **support** the claim, not merely be adjacent to it. Check the cited rows\n  say what the proposal says they say.\n- \"Build the habit of…\", \"add an explicit step\", \"consider surfacing…\" → rejected. Nothing\n  enforces them and nothing verifies they happened.\n- **Grep the instruction files before proposing anything, every time.** A proposal to write down\n  a rule that is already written is a no-op that closes a serious finding: the rule exists and\n  is not being followed, which needs enforcement, not restatement. Restating a rule already in\n  force is the single commonest defect in a proposal set, so this is a precondition on every\n  proposal, not a step belonging to one lane.\n- Nothing mechanical found → report **\"no new fixable failures this period\"**. Do not invent\n  one. A clean period is a legitimate result and the whole point of counting.\n\n**Rank by consequence, with the count as a second column.** The obvious ordering — how many rows\na proposal would close — puts the cheapest, most frequent friction on top and buries the group\nthat took something down, which typically sits near the bottom by row count while owning most of\nthe S1 rows. Sort by the worst outcome in the group; break ties by rows closed.\n\n**Split the proposals by whether they need you.** Reversible, narrowly scoped, and verifiable\ninside this run — a config line, an allowlist entry, a tool install — **the run applies itself**,\nwith a live probe before and after as the evidence, and writes its own ledger row. Everything\nelse — policy, anything that costs money, anything irreversible — goes to the owner as now.\nWithout this split the throughput of the whole exercise is however many fixes fit in one\nconversation before the person gets bored: one measured run proposed twenty-one groups and\nshipped two, both only because the owner happened to be sitting there. The line is drawn by the\nagent, so state which side each proposal was put on and why.\n\n**Track the review's own unshipped proposals.** The owner's asks have a file; the review's\nproposals have nothing, so they live in one report and the next run re-derives them from scratch\nand calls them new. Same file, same statuses, other direction: keep them beside the open loops\nand score them the same way.\n\n**Close the run with a state audit.** A run leaves seven artefacts on disk: the **five mandated\nstate files** — ledger, open loops, series, vocabulary, cursor — plus the local evidence file,\nplus `harness-clusters.md` for as long as it is on probation. Print a table at the end: each file,\n**its size**, whether it exists, and whether this run touched it. A run that reports numbers and\nwrote nothing has produced an impression, and the next run inherits nothing to compare against\n— which is the failure this whole file exists to prevent. The size column is what makes growth\nvisible a run or two before it starts eating the context budget every later run pays. It costs a\ndirectory listing.\n\n**A file earns its place only if it is a mandated read at a moment when the store cannot be\nrelied on.** Anything else that was written here has been retired: a per-run window file (the\ncursor holds both numbers), and a signature list kept as state (the method is versioned in the\nseries row instead). Do not reintroduce them, and do not add a file without stating which\nmandated read it serves.\n\n**Ask the owner what they already knew — but only about the findings that could be news.**\nAgainst each, one of three answers: *knew* \u002F *did not know* \u002F *wrong*. Nothing else separates\nthis from the thirtieth retrospective, because a review that tells you what you already knew\nfeels productive and changes nothing. Record the answers in the series file.\n\n**Do not spend the question on a single prompt.** Every row in the prompt lane is a sentence the\nowner typed and remembers; asking whether it is news is close to tautological, and the answer is\nalways *knew*. Spend it on the aggregates — what had to be repeated, what preamble appeared,\nwhere corrections cluster — and on the lanes the owner cannot see from inside a conversation.\nOn one measured run, both genuine discoveries came from outside the prompt lane, and that is\nstructural rather than luck.\n\nIf almost everything still comes back *knew*, the lanes are confirming rather than discovering,\nand the next run should change where it looks rather than how it counts.\n\n**Ask what worked, in the same breath.** *Knew \u002F did not know \u002F wrong* grades the findings and\nnothing else; it never asks what the harness stopped doing to the owner. One more question — what\ndid you not have to say this period, what is working now that used to need repeating — recorded in\nthe series file beside the verdicts. No query reaches this: relief is not an event, so a fix that\nsucceeded leaves the store looking exactly like a period nobody worked on. The answer is also the\nonly defence against removing something that is quietly holding, which is the one mistake this\nwhole file's deletion bias can produce.\n\n**Have the citations checked by someone who did not write them.** The rule above — the citation\nmust support the claim, not merely sit near it — is the one part of this contract with nothing\nenforcing it, and the author of a proposal is the worst possible checker of its evidence. Hand\na subagent the proposals and the cited row ids **only**, with no reasoning attached, and ask it\nto refute each one. Drop what it refutes. **If this runtime has no subagents, say in the report\nthat citations went unverified** — do not quietly self-check and present it as the same thing. This is the one place in the review where a subagent\nearns its cost: the lanes themselves return two dozen aggregate rows and belong in one context,\nand independent agents given the same judgement task have been measured agreeing on a small\nfraction of findings — they diverge rather than cover.\n\n| Rejected | Accepted |\n|---|---|\n| \"Consider a lighter-weight surfacing habit on scope-changing calls\" | \"Whitelist these two cache paths in the sandbox config — N observations across the period hit `Operation not permitted` on them, and twice the agent's fallback was to disable the sandbox entirely\" |\n\n## Retiring this file's own rules\n\nEvery rule here was written in response to a measured failure class, and nothing here takes one\nout again. A review whose only available move is to add a prohibition grows in one direction\nuntil it stops being read in full — and a rule nobody reads enforces nothing, whatever it says.\n\n**Record the failure class beside the rule, in the run that writes the rule.** Not afterwards and\nnot reconstructed later: the run that adds a rule is the only one that holds what it was reacting\nto, and a rule whose class cannot be named was never grounded in anything measurable in the first\nplace.\n\n**Then use the mechanism this file already has, pointed at a different subject.** Lane B collapses\na cluster whose newest occurrence predates the last two runs. Apply that same bookkeeping to the\nrules: a class that has not recurred across the same two quiet runs makes its rule a candidate for\nremoval. This is deliberately not a second scheme — one quiet-period convention with two subjects,\nso the runs that count for a cluster are the runs that count for a rule, and neither needs a\ncounter of its own.\n\n**A candidate is confirmed by one ablation, and never by the counter.** The quiet period only\nnominates; nothing is removed because a period expired. It is removed after a single run performed\nwithout the rule: if the finding the rule exists to produce still comes out, the rule was not doing\nthe work. This is the local substitute for the published signal — the base model passing a skill's\nevals with the skill unloaded — which is unavailable here because there are no evals to pass. A\nlater run should know which of the two it is holding: the same logic on a weaker instrument.\n\n**The weakness belongs in the rule, not in whatever a reader works out later: a rule that is\nworking looks exactly like a rule that is unnecessary.** Neither produces failures — not producing\nfailures is what a working rule does. No count separates them, and the ablation is the only thing\nthat can:\n\n- **One suspect at a time.** A run performed without several rules cannot attribute its result to\n  any one of them, so the tempting cleanup — drop the whole quiet set, see whether anything breaks\n  — produces an answer that cannot be read. A batch ablation is not a cheaper version of this\n  check; it is not the check.\n- **It costs a whole run**, and that is the price of the only honest answer available here. A\n  candidate waits its turn, and a run carrying an ablation says so in its report, because every\n  number it produces was measured under a different rule set than the run before it.\n- **A returning failure class reopens the rule, and the reopening is a finding** — the mirror of\n  the cluster rule's own return, and load-bearing rather than tidy. Removal rests on a single\n  run, so a class coming back is the only evidence that run was read wrong, and without this half\n  retirement is one-directional: nothing catches a rule removed for the wrong reason. Report it\n  rather than quietly restoring the rule, or the file re-grows with no record of why anything left\n  it or came back. **The ablation that authorised the removal is retired along with it** — it is\n  now known to have been misread, and it does not count as evidence for removing that same rule\n  again, or the rule gets ablated away run after run on a result already shown to be misleading.\n  **The restored rule carries the round trip in its own text**: removed, class returned, restored.\n  A rule with no history cannot be told apart by the next run from one that was never questioned,\n  which is the retraction format's reasoning applied to a rule — the record and the reason it\n  moved stay together.\n\n## Common mistakes\n\nEach was observed in baseline runs of this exact task, three of three agents unless noted.\n\n| Mistake | What it costs |\n|---|---|\n| Reading prompts first, counting later or never | The retro becomes an impression. No number moves, so no fix can be shown to have worked. |\n| Reporting a total row count as evidence the store is fine | A dead store and a healthy one have identical totals. Three of three missed a three-day outage this way. |\n| Classifying by keyword search | One run searched for two reason-demanding phrasings and never saw the period's largest category at all, because its owner's word for it was not on the list. |\n| Counting label frequency in observations instead of prompts | Observation labels track the extraction prompt, not reality; one type has been measured mistyped for months on end. Prompts are the user's own words — but see the row below before treating them as stable. |\n| Treating the prompt stream as a stationary instrument | The words do not drift; the *behaviour* does. Once the user learns the agent drops items, they write \"and don't forget X\" in advance. The \"you forgot X\" prompt disappears, the defect does not. A falling correction rate is not evidence of improvement until a non-prompt lane agrees. The instrument that tells the two apart is the pre-emptive-instruction tag in the prompt lane; count it, do not just avoid the trap. |\n| Presenting claude-mem's own audit findings as new discoveries | The audits wrote their conclusions into `observations`, so a retro will \"find\" them. Ask whether a finding is about the work or about a previous review of the work. |\n| Proposing prose habits | See the contract above. |\n| Running the prompt lane and calling it the review | The lane goes quiet as the user adapts around a defect, and it never held the silent failures at all. A correction rate that fell while Lane C shows the same denial for two months has not measured an improvement. |\n| Reading a re-derivation cluster as waste without checking the type | Half the list is branch SHAs and task status, which *should* be re-derived every session. Proposing to write those down produces instructions that rot within a day. |\n| Proposing \"document this\" without grepping the docs first | If the fact is already in `CLAUDE.md` and was still re-derived nine times, the defect is in what gets read, and the proposal as written would close a serious finding with a no-op. |\n| Trusting an instruction in this file over what the tool actually returns | Every defect in the row below shipped inside this skill and survived two GREEN runs. Check the instrument, then the data, then the claim. |\n| Reporting a clean period without saying which lanes were degraded | A rejected liveness call, a classification step reading truncations, false-positive rules that cannot be computed — a report that hides any of it reads exactly like a healthy one. |\n",{"name":5,"version":24,"description":7,"allowed-tools":25},"2.6.3",[26,27,28,29,30,31,32],"Bash","Read","Write","mcp__plugin_claude-mem_mcp-search__search","mcp__plugin_claude-mem_mcp-search__timeline","mcp__plugin_claude-mem_mcp-search__get_observations","mcp__plugin_claude-mem_mcp-search__get_prompts","main","0db123aaccc336d1ffa9d077b8c4e7f7675dfd46","plugin\u002Fskills\u002Fharness-review",1,"https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem","https:\u002F\u002Fclaude-mem.ai","https:\u002F\u002Fgithub.com\u002Formequ","Go backend engineer · Kubernetes, distributed systems · LLM agents","2026-11-05 13:51:42",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add ormequ\u002Fclaude-mem --skill harness-review",{"tool":48,"command":49},"bunx","bunx skills add ormequ\u002Fclaude-mem --skill harness-review",{"tool":51,"command":52},"pnpm","pnpm dlx skills add ormequ\u002Fclaude-mem --skill harness-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fharness-review\u002FSKILL.md",true,[56,62,66],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"first-run-example.md","REFERENCE","参考文档",9448,"https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fharness-review\u002Ffirst-run-example.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"first-run.md",5561,"https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fharness-review\u002Ffirst-run.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Ftool-errors.py","SCRIPT","脚本",12915,"https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fharness-review\u002Fscripts\u002Ftool-errors.py",[73,80,87,94,101,108],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7AQWJQES5XXW6116RFKB6KD","wowerpoint","Turn one document into a kawaii NotebookLM slide deck. Use for \"wowerpoint this\", \"make a deck about \u003Cfile>\", \"turn this report into slides\", or any request to render a single document as shareable narrative slides.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwowerpoint\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7AQWGAYXR5XZXX90T9N5FKQ","what-the","What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwhat-the\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AQWA7FTADR4AWJDZR3HPXX","weekly-digests","Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for \"weekly digests\", \"week-by-week story\", \"serial timeline\", or \"narrative chapters\" of a project's history.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fweekly-digests\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7AQW6QN3F1Q00QSP1T929TD","version-bump","Automated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manifests, build verification, git tagging, GitHub releases, and changelog generation. npm publishing is done by the tag-triggered GitHub Actions workflow through npm trusted publishing.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fversion-bump\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7AQW38KM9WJHQYRNGK0P26R","timeline-report","Generate a \"Journey Into [Project]\" narrative report analyzing a project's entire development history from claude-mem's timeline. Use when asked for a timeline report, project history analysis, development journey, or full project report.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Ftimeline-report\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7AQW0D3WTYQ4DKC73X1J75G","standup","Facilitate a read-only standup across git worktrees, branches, or PRs to compare changes and produce one consolidation plan.","https:\u002F\u002Fgithub.com\u002Formequ\u002Fclaude-mem\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fstandup\u002FSKILL.md",[],[]]