The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.
Python agent-skillsai-skillsaugmented-expertiseawesome-skillsclaudeclaude-codeclaude-code-skillclaude-code-skillsclaude-coworkclaude-skillsmeta-skillrebelyticsskill-automationskill-builderskill-creationskill-improvementskill-managementskills
Cut incident histories that sit beside rules already stated
Eoghan Henn11093cff4bc6
diff --git a/references/environments.md b/references/environments.mdindex c0f99ee..7151469 100644--- a/references/environments.md+++ b/references/environments.md@@ -124,10 +124,9 @@ against that ("the deliverable is advice about X" → load the skill whosedescription names X), even though the request arrived as a document toreview. The high-risk shape is an attachment plus an open question — "hereare two files, what do you think?" — which presents as a reading task and-hides its own domain; observed, it ran for four substantive turns of-domain advice with the domain skill unloaded, while the session-start-skills had loaded correctly. That is what makes this distinct from an-activation-config failure: the mechanism worked and still selected the+hides its own domain while the session-start skills load correctly.+That is what makes this distinct from an+activation-config failure: the mechanism works and still selects thewrong set. The failure is silent by construction, because a skill thatnever loads cannot announce that it was relevant, so the check belongs inthe checklist rather than in a disposition.@@ -256,15 +255,7 @@ chance to get it wrong. Pin the ROOT, and list the derived paths: a pinthat names only the observation-log directory — the place split-brain wasfirst noticed — leaves the staging root, the manifest and the principlesfile to be re-derived by every session, and parallel sessions resolve-them plausibly and differently (observed: two sessions staged under-`skill-observations/skill-updates/`, beside the log, while a third staged-under `skill-updates/` at the root — three writers, two staging roots,-one manifest that saw half the work). Scope the workspace to what is being observed:-skills installed globally are observed from every project, so their log-must be one absolute path shared across projects and tools — a per-project-or per-tool workspace scatters observations about global skills across-every project the user touches, and a review run in one never sees the-others. Where the environment provides a managed persistence directory+them plausibly and differently. Where the environment provides a managed persistence directoryunder the project identity (a memory directory it loads every session),that directory and the identity root are both "stable"; anchor inside themanaged directory when one exists, otherwise on the identity root — never@@ -305,11 +296,8 @@ entries. From inside it looks exactly like a working log: the scan returnsfiles, the review finds work, every instrument reports health. Nothing init can reveal that it is a shard.-And pinning does not settle it. Observed: a workspace pinned in a wired-session-start hook, correctly configured, running beside a second populated-workspace for three days and producing colliding ids. The pin governs the-sessions that read it; it does nothing about a session that resolved its-anchor before the pin, or by another route.+Pinning does not settle it: a pin governs the sessions that read it, not+one that resolved its anchor before the pin or by another route.So the detection has to be positive, and it is nearly free: at the end ofthe session-start scan the agent is already holding the `skill:` values of@@ -340,12 +328,7 @@ agent's equivalent — for an existing `skill-observations/` workspace.any registered session-start hook. Grep the harness settings and theinstalled plugins' hook manifests for the skill's name, then read thepath each hook script derives — a hook that counts observations-somewhere is a pin whether or not the instruction file names it-(observed: the instruction file had no pin, a user-scope hook derived-the workspace from the home directory, the probe checked only the-documented defaults and created a second workspace fifteen minutes-after the real one; the hook kept counting the original, so every-observation written to the new path was invisible to it). Where a+somewhere is a pin whether or not the instruction file names it. Where asystem already reads or writes state, that location is authoritativeand the documented defaults are the fallback; an existence probe overthe defaults alone reports "not found" for every install that deviated@@ -376,10 +359,7 @@ dated staging directory, `cross-cutting-principles.md` and`starter-principles-reviewed.txt` (keep the newer version), and`reviews/` and `checkpoints.log` as history. Step 6 reads `skill-updates/`at the current root only, so staged work left at the old one is-invisible, and an absent `PENDING.md` reads as "nothing staged"-(observed: several rounds of staged updates sat unlanded under an-abandoned root for days and surfaced only in an unrelated filesystem-sweep). Move staged directories whole; at the new root they go through+invisible, and an absent `PENDING.md` reads as "nothing staged". Move staged directories whole; at the new root they go throughthe staging reconciliation like any other entry (`weekly-review.md`,"Staged-work reconciliation gate"). Where a move is not safe — a sessionmay still be writing at the old root — list what the old root's@@ -405,10 +385,7 @@ or any harness that mounts only allowlisted paths writable), anallowlisted path can be mounted writable only if it already exists, andwhen its parent is outside the allowlist nothing inside the sandbox cancreate it: the first `mkdir -p` of the log fails with `Read-only file-system` although the grant is present and correct (observed: a user-scope-workspace under `~/.claude`, `skill-observations` and `skill-updates` both-allowlisted, creation refused until a setup script run outside the-sandbox made the two directories). In such a harness the grant and the+system` although the grant is present and correct. In such a harness the grant and thepath's existence are two install preconditions: create the workspaceroot's `skill-observations/` and the staging root `skill-updates/` atinstall time, from outside the sandbox — by the user or an install step —@@ -424,8 +401,7 @@ instruction — suggest adding it if absent. **Suggest; do not create.** Ifno config file exists at all, offer to add one and let the user say yes:creating a tracked project file changes every future session's behaviour,and the governance-protected fallback below exists precisely because-writing to a shared config is not a free action. SKILL.md step 4 says-"suggest" and these two are read in sequence, so they must not disagree.+writing to a shared config is not a free action.Without filesystem access, check the system prompt / projectinstructions and suggest the user add the instruction there. Keep thesuggestion to a sentence or two. The block above is the propagated@@ -434,24 +410,19 @@ constraints that live only in SKILL.md arrive after the decision they weremeant to govern.**Load is not activation.** The failure the block's wording guards-against, reported from real use: the agent loads the skill per the+against: the agent loads the skill per theconfig instruction, then stops — the Session Start Protocol (log files,scan, review trigger) never runs, and nothing surfaces the omissionbecause a loaded-but-inert skill looks identical to an active one from-the user's side. It moves only when the user explicitly asks "have you-executed the session start protocol?". Hence the two belts above: the+the user's side. Hence the two belts above: theinstruction demands the protocol by name, not just the load, and thepost-task summary line makes silent inactivity visible at the firsttask boundary. If you adopt only one line of the block, adopt the-post-task check — in field use it turned an intermittently-activating-install into a stably-recording one.+post-task check.That check is prose in the same file as the rule it guards, and it failswith it: whatever made a session skip the block's first paragraph makes it-skip the third (observed: seven task boundaries and over a hundred tool-calls with both configured tiers fired, neither the protocol nor the-backstop run, and activation only when a different model read the same-block mid-session). A backstop written in the medium of the rule it+skip the third. A backstop written in the medium of the rule itguards is one layer, not two. The second layer has to hang on an eventthe harness raises, not on the agent re-reading its instructions: wherethe harness offers a stop or turn-end hook, the objective check is cheap —@@ -749,9 +720,7 @@ in a harness that builds its available-skill list once near sessionstart. The honest response on that turn is a disk check and "notinstalled", and that verdict is true only for the turn it was made on;nothing revisits it, so when the listing catches up every tool call in-between went unobserved and the earlier claim stands uncorrected-(observed: the skill appeared in the listing four turns after the-verdict, and the protocol first ran then). So a "not installed" verdict+between went unobserved and the earlier claim stands uncorrected. So a "not installed" verdictnames the probe it came from — the listing lookup, or a disk check of theskill directory — because the two disagree exactly here, and it holds forone turn: re-check the listing on each later turn that makes a tool call,@@ -790,23 +759,19 @@ otherwise absorb the whole explanation.### The probe rides inside the first batched callThe probe line can be present and correct on turn 1 and still not fire-first. Observed twice in one day, in two sessions: the preferences block-carried "before any other tool call, `ls` the workspace path" verbatim, and-the session's first tool call was a batch of `Skill` invocations; the probe-rode in the second batch. No harm either time — the folder was mounted —-which is the point: the failure is only ever detectable in the sessions-where it costs nothing, and it costs everything in the session where the-folder is not there and the agent asserts that it is.+first: the session's first tool call is a batch of `Skill` invocations,+and the probe rides in the second. The failure is detectable only in the+sessions where it costs nothing, and it costs everything in the session+where the folder is not there and the agent asserts that it is.The cause is a contest for one slot. Loading the session-start skills isthe one action that genuinely *is* prior to the work, so it recruits thesame "before anything else" position the probe needs, and it arrives as anactivation of the agent's own setup rather than as an instruction — whichfeels like preparation, not action, and wins. Stating the precedence more-firmly does not change that; in the second instance the agent had loaded-the skill carrying the rule in that same first batch and the rule still-did not register as violated, because the load had discharged the felt-obligation.+firmly does not change that: an agent that loads the skill carrying the+rule in that same first batch still does not register the rule as+violated, because the load discharges the felt obligation.So the rule is about the **content of the first call, not its order**: thesession's first tool call is a single batched call that contains the probe,@@ -896,8 +861,7 @@ Anything that rewrites file modes — a cloud-drive resync switching betweenstream and mirror mode, a restore from an archive, a checkout on afilesystem without permission bits — returns the file as mode 600, and thehook then fails with "permission denied" on every session start with-nothing surfacing the error. Observed: the enforced activation tier was-dead for days. Register the interpreter instead+nothing surfacing the error. Register the interpreter instead(`"command": "bash '/path/to/hooks/…'"`), which does not depend on the execbit, and treat "the Session Start Protocol stopped running" as a prompt tocheck the hook rather than the skill.@@ -1007,9 +971,7 @@ What follows from that:the user's decision with its implications stated: it changes what theharness lets the agent do without asking for the rest of the session,and it takes the classifier out of this write without answering its- objection. Field note: in the reported case the wall was the permission- mode rather than a policy — once the user switched out of auto mode, the- hook tier installed with no friction at all. (3) Leave activation at the+ objection. (3) Leave activation at thedescription layer and say plainly which tier is in place.- **The objection follows the content, not the file.** A documentationpage that quotes the activation text can be refused on the same grounds@@ -1071,14 +1033,6 @@ Every fallback above ends by handing something to the user: paste thisblock, add this hook entry, authorize this edit. The instruction is wherethe hand-off ends today, and that is one step short.-In the reported case the user was given the block, said they had pasted it,-and had not. The file's mtime was unchanged and `task-observer` appeared-nowhere outside the session's own transcript. It surfaced only because the-Session Start Protocol was being run by hand to verify the install —-otherwise the install would have looked complete to both parties, with no-activation layer in place. That is precisely the never-activated install-that step 4 structurally cannot detect.-**So pair every handoff with a check you run yourself**, in the samesession, and report the result:@@ -1122,9 +1076,7 @@ own directory. So: on a packaged host keep the workspace and any hookscript outside `AppData`; resolve every path handed to the user — hookscript, config, workspace — once from the user's side of the boundarybefore handing it over; and make that resolution a step bound to the-hand-off, not a principle consulted while authoring. The third instance-above happened in the same session that had written the principle down,-which is what a rule without a step looks like.+hand-off, not a principle consulted while authoring.**An install is a path handed across the same boundary.** A tool installedfor the user from the agent's shell inside a packaged app — a global npm@@ -1296,9 +1248,7 @@ names through the procedure files.**A scheduled-task prompt's first listed action is its first tool call.**The Session Start Protocol wants the workspace probe (step 1) before anyskill invocation, and a scheduled prompt that opens with "invoke, in this-order: …" makes the first invocation the first call — observed: a scheduled-run loaded every skill it was told to, with the probe-first rule loaded and-correct, and ran the probe third. A rule that wants something before the+order: …" makes the first invocation the first call. A rule that wants something before thefirst listed action has to appear in that list, not in the text the listloads: write the activation pointer in every scheduled prompt as "probe theworkspace folder (one `ls` of its absolute path), then invoke <skills>",@@ -1324,13 +1274,11 @@ marker is always the newer of the two.**The access grant is part of the task definition, not of the path.** Ascheduled session runs in the sandbox the scheduler creates, and that-sandbox can deny a path that exists and is online (observed: a headless-run launched by the OS scheduler was confined to the user profile, the-pinned workspace lived on another drive, and every interface was denied-— file tools, both shells, and a junction inside the profile, because-the sandbox canonicalises the target — down to the skill's own reference-files; the run ended with the offline policy's one-line skip, a config-gap wearing the costume of a transient outage). Registering a scheduled+sandbox can deny a path that exists and is online — through every+interface, a junction inside the allowed area included, because the+sandbox canonicalises the target — and the run ends with the offline+policy's one-line skip: a config gap wearing the costume of a transient+outage. Registering a scheduledreview therefore includes whatever allowed-directory configuration theharness needs for the workspace root — for Claude Code headless,`--add-dir "[ABSOLUTE PATH]"` on the invocation, or the equivalent@@ -1450,11 +1398,7 @@ the next interactive session inherits it; name the caller in`session_context`, and log only what the caller cannot see. Handoff-docmode is the opposite case (a reader, nowhere to write); report-back mode("Anchoring the workspace") is the case with neither a stable path nor a-reader. (Observed from both sides: a subagent with a fixed output schema-ran the protocol correctly and then had nowhere to put four reporting-steps; an orchestrator dispatching eight subagents in a day found each-had resolved the same conflict on its own, differently, in its-"decisions the brief did not cover" section.)+reader.## First-run backfill@@ -1465,9 +1409,7 @@ no procedure says to touch it. Session Start step 7 offers a one-offmining pass over handover, architecture and decision docs, commit historysince the last release, test and verification scripts (which encodehard-won discipline densely), and existing agent-instruction files, which-are largely a record of corrections the user already had to make. One-such pass over seven weeks of history produced twenty-three actionable-observations, eleven of them factual corrections to an existing skill.+are largely a record of corrections the user already had to make.Backfilled entries cite the durable artefact, and one batched writesatisfies the same-turn rule; the pass runs once, and the scheduledreview takes over afterwards.@@ -1486,11 +1428,7 @@ written at its end. Each is cited in `session_context` exactly as abackfilled entry cites CLAUDE.md — the artefact and the section, never asession id, because there is no session to point at. Say which sourceswere read and which were unavailable, so a later reader can tell a thin-session from a thin record. (Observed: a fresh install, the log empty,-the user asking for a retrospective of that day; the agent rebuilt the-day from `git log` and the project's notes directory and logged three-evidenced observations — the right move, improvised because nothing said-where to look.)+session from a thin record.## Storage regimes@@ -1532,19 +1470,11 @@ first turn after any of them the protocol runs again in full — storageprobe, frontmatter scan, review trigger, and the per-skill grep for everyskill the task in front of you needs. Where the CLAUDE.md structuraltrigger reaches the resumed context it re-invokes the skill; do not rely on-it having done so — observed: a session compacted mid-task and the resumed-turn ran no probe, no scan and no per-skill grep, because nothing named the-compaction as a trigger.+it having done so.**The write path has to survive the compaction; the skill body does-not.** Observed: after a compaction the session-start hook printed its-reminder, and before the skill was re-invoked a deliverable flush fired-— two observations were written by copying an existing file's-frontmatter and taking the next number from a directory listing. The id-snippet never ran, the floor stayed two behind the ids issued, and the-sweep, the collision guard and the noclobber create all went-unexercised. The pointer to this section sits in the skill body, which-is exactly what the compaction removed. Between a compaction and the+not.** The pointer to this section sits in the skill body, which+is exactly what a compaction removes. Between a compaction and theskill's re-invocation nothing is written by any other route: a flushthat fires first runs `scripts/new-observation.sh` (it needs no skillbody in context — a slug and the workspace root are its only inputs) or@@ -1559,10 +1489,7 @@ the channel that arrives first.**The compaction summary's list of previously invoked skills is a lowerbound, never the session's skill set.** A summary preserves what it judgedsalient about the *work*; skill loads are infrastructure, not work, so they-are exactly what a summary drops. Observed: the summary named three of at-least six skills loaded before the compaction, the resumed turn read the-list as an inventory, and two domain skills stayed unloaded through a full-data pull until the user asked. The block's own framing — "shown here for+are exactly what a summary drops. The block's own framing — "shown here forcontext only so you remain aware of their guidelines" — describes what theblock contains and is easily read as what the session has. Re-derive theskill set from the task (name the decision, name the artefact type, matchdiff --git a/references/observation-log.md b/references/observation-log.mdindex 83397f3..9ef5dad 100644--- a/references/observation-log.md+++ b/references/observation-log.md@@ -31,7 +31,7 @@ empty.- A refused snippet is a degraded path, never a skipped step- Skill families and the sibling check- Assigning an id- - Shell portability of the id snippet — why the case patterns are parenthesised+ - Shell portability — a `case` pattern inside `$( )` is parenthesised- The guard line, the sweep's count and the noclobber create- Run the snippet immediately before every write- Resolve each id at its own write time@@ -120,13 +120,6 @@ under the pinned root from outside the sandbox — instead of retryingthrough another interface or falling through to the unwritable-log orno-filesystem branches.-**Why a command and not the prose list it replaces.** Observed on a fresh-user-scope install: a session created `skill-observations/` and-`observation-log/` and nothing else. The next session could not tell —-step 1's probe is an `ls` of the pinned path, the path resolved,-`observation-log/` was there, and nothing re-checks the siblings. The-workspace looked set up from outside for as long as nobody looked closer.-The assertion loop is the half that matters, because the four artefactsfail differently and only one of them complains:@@ -186,10 +179,7 @@ the five values — a reader that happens to case-fold hides the defect, itdoes not license it. `id:` is the integer the snippet printed, never thezero-padded filename prefix. A scan that parses every header and checksnone of them against this table touches such an entry on schedule and-reports a clean count (observed: an entry written without the template-sat four days under `skills:`, with `status: OPEN` and no `type:`,-`siblings_checked:` or `area:`, beside a scan that reported every header-parsed). The failure produces a smaller number, never an error, which is+reports a clean count. The failure produces a smaller number, never an error, which iswhy a near-miss name is flagged rather than skipped wherever a check runs.**An entry is UTF-8 without a byte order mark.** Every header reader tests@@ -212,12 +202,9 @@ reading `status`, a hook counting `skill:`, a validator checking the header.Those throw on the file, and a thrown file is usually skipped rather thanreported.-Measured on one live log at last verification: **27 of 292 files-unreadable**, 25 of them in `resolution:` — which is the field most likely-to contain a colon, because a resolution naturally reads "Actioned:-principle #8 extended…". Every one of the 27 had been written by following-the template as it then stood, which carried the value unquoted. The-template taught the defect, and each author complied with it.+Measured on one live log: about one header in ten unparseable, most in+`resolution:` (the field most likely to hold a colon), each written by+following a template that carried the value unquoted.The scan's `suspect` count is the early warning: it reports headers thatlook invalid by shape — an unquoted `: `, text after a closing quote@@ -274,8 +261,7 @@ colon** — `skill: ["superpowers:test-driven-development",task-observer]` — or use a block list, where the colon is legalunquoted. Both forms parse identically under both rules; the cost is twocharacters per scoped entry. A plugin-scoped name is not a bare-kebab-case name, which is why "keep lists bare" stopped being correct-once namespaced skills were observed. `scripts/migrate-log.py` already+kebab-case name. `scripts/migrate-log.py` alreadywrites the quoted form, so a migrated log is portable; entries writtenby hand from the template are the ones to check.@@ -301,9 +287,8 @@ second, sharper test that the first one passes right past.A maintainer folds the change into a commit of their own with a co-authortrailer, cherry-picks it, or rewrites it; the PR stays open or is closed asovertaken, while **the result the entry was waiting for has fully-arrived**. The condition never fires. Observed twice in the same-repository, which suggests it is the normal case for a contribution to a-repository someone else maintains, not the exception.+arrived**. The condition never fires — the normal case for a+contribution to a repository someone else maintains, not the exception.So the test is not only *can this condition occur at all* but **can theresult arrive without the condition firing?** For anything depending on@@ -329,10 +314,7 @@ is accepted, merged or released — none of those changes the copy that isrunning — and nothing observes a re-install. So the entry stays `parked`on a condition read from the installed copy ("the installed `task-observer`carries rule X", or names the version that carries it), and is resolved-when that copy carries the fix. (Observed: an install pinned nineteen days-behind upstream had four of its own reports fixed and released in that-window, and the sessions that read the release notes were still running-the old text — one of them hit a defect the same release had fixed.)+when that copy carries the fix.### Context preservation — the `reference:` field@@ -364,12 +346,7 @@ possible, mark the command unverified in the body. Record the outcome inthe body quotes no command, for the same reason `siblings_checked:` neverstays blank: a body with an unrun command is byte-identical whether it waschecked and trusted or never considered, and only the field makes the-absence visible. (Observed: three observations turned into one skill-carried three wrong commands between them — a flag that does not exist on-the distribution named, `$!` addressed to a wrapper instead of the process-it started, an inventory read from a cache a prior step has to populate —-caught only because that skill happened to be authored where they could-run.)+absence visible.**A sweep the Suggested improvement prescribes names the behaviour, notthe pattern that found the first instance.** When the improvement tells a@@ -578,10 +555,7 @@ known-bad argument. If that also returns empty with a success exit, thepath is TTY-gated (or otherwise silent under this invocation), theinstrument cannot answer the question, and the correct output is tohand the command to an interactive terminal rather than report "none-found". Observed: a session-listing subcommand piped to `head` returned-zero bytes and exit 0; `--version` printed and was read as confirmation-of "no sessions"; the same subcommand with an invalid id also returned-zero bytes and exit 0.+found".**A number read from a file another process is still writing isprovisional until that process is known to have exited.** This is the@@ -597,23 +571,14 @@ for a backgrounded command is not a completeness signal. So for thisclass the guard is not a second count but a liveness-and-exit check —the producer's exit status, or a process check (`pgrep` on itspattern) — run before the interim output is interpreted at all, never as-a cross-check after a plausible-looking empty result. Observed: a-recursive search over a large working tree, moved to a background task-with its output file offered for interim reads, was read twice as zero-hits; its three processes were still running twelve minutes later and-had flushed nothing.+a cross-check after a plausible-looking empty result.**When the instrument is code written in this session, its input coverageis unverified by construction — print what it ingested, not only what itfound.** A shipped snippet has at least been run against the populationit is meant to read; a throwaway parser has been run against whatever its-author's heuristic happened to match. Observed: a scan for a canonical-term list, re-derived at call time from bullets under a plausible heading,-reported "3 terms checked, hits: none" — the list's own machine-readable-block held 24, and the parser had read three incidental bullets from an-adjacent section. A pass from an instrument that saw an eighth of its-input is not evidence of anything, and it was caught only because the-count looked implausibly small. So the guard's form for session-written+author's heuristic happened to match, and a pass from an instrument that+saw a fraction of its input is not evidence of anything. So the guard's form for session-writtencode is a **coverage assertion before any result**: print the count ofterms, rows or files the instrument read and assert it against thecanonical source's own count (the block's line count, the directory's@@ -659,12 +624,7 @@ agent's own reasoning, it is unverified until something outside thatinference returns it. State the mechanism as a hypothesis, name theobservation that would settle it, and when the check costs minutes andbeing wrong costs an irreversible action, run the check before answering-rather than after being challenged. Observed: whether signing a commit-would clear a hosting platform's "unverified" badge decided a force-push-to a public repository; the answer was asserted twice, confidently, with-no evidence, and settled in ninety seconds by two API calls once the user-pushed back with a competing mechanism — which turned out to be the-correct cause. The tell that separates this from ordinary uncertainty is+rather than after being challenged. The tell that separates this from ordinary uncertainty is**repetition**: a first confident answer is a guess; repeating it underimplicit doubt without going to look is the moment the guard should fire,because repetition feels like consistency and is entrenchment. Being@@ -869,10 +829,7 @@ source a project copy is rendered from (a tool-owned directory renderedinto `.claude/skills/`), are invisible from here, so "no installed skillcovers this" is a blind spot of the observer until those scopes havebeen searched — and the failure only runs one way: a narrow scope never-invents a skill, it only misses real ones, which is the costly outcome-(observed: four observations filed as a new-skill proposal for a-workflow that an existing skill in two other repositories already-covered, two of them already applied there). Before writing+invents a skill, it only misses real ones, which is the costly outcome. Before writing`proposes_skill:`, a `none` in `siblings_checked:`, or a target asmissing, search the other scopes by the problem as well as by the name —a proposal is named after the task that surfaced it, and the skill that@@ -915,12 +872,8 @@ writes nothing is the odd one out and should be suspected on that basis.**Recording the verdict is not recording its evidence.** The field makesthe absence of the *ritual* visible; it does nothing for the absence ofthe *grounds*, and once the ritual is habitual the failure moves from the-omitted field to the confidently filled one. Observed: a sibling excluded-with a specific verdict — "selects items by stable id, so this does not-apply" — whose own documentation carried a prominent warning about-exactly the defect under discussion; the verdict read like a checked one-and was an assumption, found only when a later session opened that-sibling for an unrelated reason. The asymmetry decides where the ground+omitted field to the confidently filled one: a specific-sounding verdict+can be an assumption that reads like a checked one. The asymmetry decides where the groundgoes: a sibling wrongly included costs one redundant paragraph at thenext review, where someone reads it and drops it; a sibling wronglyexcluded leaves the family silently and for good, because nothing@@ -995,26 +948,14 @@ by the log. Treat a scan that does not return as a broken instrument, never asa slow one to wait on — the BROKEN guard cannot fire for a command thatnever finished.-### Shell portability of the id snippet — why the case patterns are parenthesised--The single-pass sweep has no `case` statement left, but the loop it-replaced put two inside the command substitution `seen=$( … )`, and the-rule they taught stands for any snippet that does the same: a `case`-pattern inside `$( )` is written `(pattern)`, not `pattern)`. The leading-parenthesis is not style.--Bash 3.2 — which is what `/bin/bash` still is on a stock macOS install — ends-a command substitution at the first unbalanced `)`, and an unparenthesised-case pattern supplies exactly that. The whole block then fails at **parse**-time with `syntax error near unexpected token ';;'` and exits 2. Nothing-inside it runs: no archival sweep, no id, no file, and — the part that makes-it hard to diagnose — neither `ARCHIVAL SWEEP BROKEN` nor `ID COMMAND BROKEN`-can fire, because those guards are inside the block that never started. A-guard cannot report a failure that happens before it exists.+### Shell portability — a `case` pattern inside `$( )` is parenthesised-Parenthesised patterns are valid in every POSIX shell and in every bash-version, so the portable form costs nothing. Keep it in every snippet that-puts a `case` inside `$( )`.+A `case` pattern inside `$( )` is written `(pattern)`, not `pattern)`:+bash 3.2 (`/bin/bash` on stock macOS) ends the substitution at the+unbalanced `)`, the block fails at parse time with `syntax error near+unexpected token ';;'`, and no guard inside it can fire — a guard cannot+report a failure that happens before it exists. The parenthesised form is+valid in every POSIX shell and bash version; the scripts keep it.**If you are porting the snippet or writing a new one:** run it once under`/bin/bash` on macOS, not only under the shell your session happens to have.@@ -1028,9 +969,8 @@ the log": a command that fails to empty rather than to error wouldotherwise propose id 1 in a populated log. It compares the number of idsthe glob listed with `find`'s count of prefixed files in the same twodirectories, so it fires on a partial listing as well as an empty one,-and it runs on the listing alone, before the floor enters — an earlier-form merged the floor into the maximum first, and a listing broken to-nothing then returned the floor and passed. The highest file id is kept+and it runs on the listing alone, before the floor enters — merged into+the maximum first, the floor would let a listing broken to nothing pass. The highest file id is keptapart from the floor for the same reason: the new id is the larger ofthe two plus one, and a file maximum below the floor is a NOTE (idsissued without a file), not a halt, because older snippets left exactly@@ -1051,15 +991,15 @@ same slug resolve to one identical path, where the second writer wouldsilently replace the first. So the snippet creates the file under`noclobber` — write the body only after that create succeeds.-**The collision guard is keyed on the id prefix, not on the path.** An-earlier form tested `[ -e "$f" ]` — the full path, slug included — and-could not catch the collision that actually happens: two writers deriving+**The collision guard is keyed on the id prefix, not on the path.** A+test of `[ -e "$f" ]` — the full path, slug included —+cannot catch the collision that actually happens: two writers derivingthe same number with *different* slugs produce two different paths, bothcreates succeed, and two files share one id with no error anywhere. Aguard has to be keyed on the invariant it protects; noclobber protects apath, the invariant is a unique number, and a guard on the path passesevery violation of the number that uses a different slug — which is all-of them. So the guard now asks whether any file with the derived prefix+of them. So the guard asks whether any file with the derived prefixexists in `observation-log/` or `archive/` (`find … -name 'NNNN-*.md'`,never a bare glob), and halts if one does. It fires when the derivationis stale — the id came from somewhere other than a snippet run@@ -1081,10 +1021,7 @@ for it, and is the state in which skipping feels most reasonable. Those areevidence about the other: a relevance grep returns its highest **matching**entry, not the highest entry, and neither it nor any plain listing of`observation-log/` reads `archive/` or `.id-floor`, which are two of the-three inputs and the reason the command exists. (Observed: a relevance grep-whose top hit was id N was read as meaning the next id was N+1, over an id-already in use, while the true maximum, sitting in the archive, was twenty-higher.) If a collision happens anyway it is harmless — distinct files,+three inputs and the reason the command exists. If a collision happens anyway it is harmless — distinct files,nothing lost — but should be fixed on discovery rather than left for areview to notice: derive a correct id with the snippet, `mv` the newer fileto that prefix, and edit its `id:` frontmatter field to match. Both are@@ -1096,20 +1033,8 @@ barrier, the prefix guard the backstop where it cannot run.### Resolve each id at its own write time-**Every write, not just batched ones.** An earlier version of this rule-opened "when logging more than one observation in a session that may-overlap a scheduled review or another writer" — two scope conditions, and a-single write in a session that looks like it overlaps nothing satisfies-neither. The reported failure was exactly that shape: one observation, the-snippet run in the same shell call printing `next_id=92`, and the heredoc-that followed carrying `91` in both the filename and the `id:` field. A-parallel session had written `0091` in between. The scope conditions are-gone: run the snippet before **each** write, including the first and only-one of a session.--**Write the value the snippet printed.** This is the step the rule never-stated, and it is where that failure actually happened — not in deriving-the id, which was correct, but in the gap between deriving it and typing it.+**Write the value the snippet printed.** The failure lives in the gap+between deriving the id and typing it, not in the derivation.The number the snippet prints goes into the filename **and** the `id:`field, copied, not retyped from memory of what you expected it to be. Ifthe two disagree, the file is the one every later scan believes.@@ -1141,8 +1066,7 @@ lag is invisible in ordinary use — until the active directory is archiveddown, when a floor that lags is exactly the precondition for the counterrestarting over ids already issued. The lag is detectable: **floor < highestactive prefix means an issuer skipped the floor write**, and whatever wrote-those files did not run the snippet (observed: three consecutive ids issued-with the floor left three behind). The scan may assert it; the check is one+those files did not run the snippet. The scan may assert it; the check is oneline, and it belongs after the scan's counts, before the content print:```bash@@ -1165,9 +1089,7 @@ earlier in the session is suddenly missing, or the id check returns emptyin a log you know is populated, HALT and re-probe the structure (is therean `observation-log/`? a `log.md.migrated`?) — a parallel session may havemigrated or reorganised the storage. Never let an append silently recreate-a missing target: that converts a migration signal into corruption-(observed: a stale session recreated the retired `log.md` with a fresh-"Observation 1" after the per-file migration renamed it; see+a missing target: that converts a migration signal into corruption (see`migration.md` on coexistence with live sessions). A writer's model ofshared mutable state is only as fresh as its last read.@@ -1178,12 +1100,8 @@ know exists is the same signal ("Guard the read, not just the write").Because every observation lives in its own file, a new observation nevertouches another entry's bytes, so it cannot truncate, overwrite or renumber-anyone else's work. The single-file log needed a check-then-act-then-verify-numbering ritual, bounded-mutation rules, a structural-invariant check and a-survival check, because one greedy substitution once overwrote sixteen-entries from a Status line to end-of-file, and because a parallel session's-write-back once silently erased entries appended minutes earlier. None of-those failure modes exist when each file is isolated. In the rare case two+anyone else's work: per-file isolation removes the overwrite and+lost-write failure modes of a shared file. In the rare case twoparallel sessions pick the same id, the result is two files sharing anumber — harmless, distinct files, nothing lost, as long as the slugsdiffer; the script's number claim prevents it for runs at the same moment,@@ -1200,7 +1118,7 @@ list, a review report, a manifest. Locate the target by its own boundaries(the item's first line and the next item's first line), never bysurrounding whitespace or a greedy pattern: a `\n\n` "paragraph" boundaryaround one item of a numbered list ran to the end of the list and deleted-every item after it, exactly the shape of the sixteen-entry loss above.+every item after it.Re-read the region after the edit and count what survived against whatwas meant to survive.@@ -1251,14 +1169,6 @@ manifest state, and a session listing. A **paused** session has not releasedits task — it is idle, it reads as idle, and it can resume at any momentwith its own decisions intact.-Observed: a long multi-step review was left paused partway through, its-state saying "waiting on the user's decisions" and the listing showing it-not running. A second session checked both at planning time, correctly-concluded the first was idle, and planned to take over. Before it made its-first write the user resumed the first session, which then recorded its-decisions and completed most of the work. Had the second session written,-it would have re-asked the user decisions they had already made.-So the check belongs immediately before the first write, in the same turn —the same rule as re-reading a file before editing it, for the same reason.Planning-time evidence of idleness has a shelf life of exactly as long as@@ -1322,16 +1232,6 @@ unworkable, and that judgement is a factual claim which can be wrong — inwhich case it silently vetoes the better solution forever, because everylater reader finds the decision already made.-Observed: an entry recorded that a helper had been rejected because it-"would die hard inside a nonfatal wrapper and leak the session it had-started". Plausible, specific, and completely unfalsifiable from the entry-itself — no file, no line, no command. A later session read the helper's-source: it uses the library's return-instead-of-exit form under exactly-that wrapper, so the stated failure could not occur. The premise was simply-false. The helper was adopted and improved both call paths. Between those-two sessions the entry did its job perfectly — it was read, believed, and-honoured.-So a `resolution:` on a declined entry carries **the evidence, not only theverdict**: what was examined (file, line, command, output), and what wouldhave to be true for the decline to be wrong. And re-reading a declined@@ -1418,10 +1318,7 @@ run `git clean` with that directory in scope.read.** The id snippet takes the maximum over the files this install cansee; ids another install has minted and not yet pushed are not unread,they are absent, so both mint from their own maximum and every guard on-either side passes honestly (observed: fourteen colliding ids in one-push after a week of logging on two machines, nine of them invisible to-a bare listing because one side wrote `63-` and the other `0063-` — the-review's duplicate-id check strips the padding and finds them). And+either side passes honestly. And`.id-floor` is one file recording a per-writer fact, so it merges as aconflict between two correct values: resolve it upward, never by pickinga side. Two installs sharing a log through a repository serialise their@@ -1456,10 +1353,7 @@ variable before the first `mv`. Never run a second read of the directory— a `grep` over its files, a separate glob expansion, a listing — whilethe move is in progress: whether that reader hits files the mover hasalready moved depends on which stage is ahead, and its "No such file or-directory" errors have the same shape as data loss. (Observed: a pipeline-whose reading stage and moving stage ran concurrently produced dozens of-such errors; no file was lost, and telling that apart afterwards cost-more than writing the list first would have.)+directory" errors have the same shape as data loss.**Verify a bulk move by conservation**, not by an existence probe: thetotal across `observation-log/` and `archive/` is unchanged by a move.@@ -1530,9 +1424,7 @@ the felt obligation, and leave nothing on disk. That is worse thanforgetting: a forgotten write leaves a gap the next checkpoint catches,a narrated one reads as a checkpoint already passed, and an invented idcan later coincide with a real one and become indistinguishable from it-on audit (observed: a closing summary named two ids that no create had-printed; the gap surfaced only when the next real write's id snippet-reported fewer files than the claimed ids implied). So the Surfacing+on audit. So the Surfacingself-check binds on the narration: each id a summary names is one thesnippet or `scripts/new-observation.sh` printed in this session's toolrecord, and the summary is rendered from a listing of `observation-log/`@@ -1586,11 +1478,7 @@ record, so before it counts as armed, run the literal event string the projectactually produces through it as a positive control, and one known non-eventfrom the real tool record as a negative control — never invented examples,which sample the author's model of the input, the same model that produced-the gap. Record both results next to the trigger. (Observed: a reminder hook-whose six patterns were derived from what the deploy script does internally-never matched the command the project actually types to run it, and had been-inert on its own target since installation; the same day it fired on a-read-only command whose test string merely contained a signal word.)+the gap. Record both results next to the trigger.And a counter bound to a single tool is silently inert in every session that doesnot use it — such triggers always need a second, independent path. Nor may atrigger pre-empt a delivery decision a later layer already owns ("the recipientdiff --git a/references/skill-authoring.md b/references/skill-authoring.mdindex 618811c..8c2c8bd 100644--- a/references/skill-authoring.md+++ b/references/skill-authoring.md@@ -101,13 +101,6 @@ like. It is not: it governs anything the skill instructs a future session topath or a tool invocation is exactly that. A skill whose core is "consultthese sources" ships its sources the way another ships a command.-Observed on one such skill: eight sources, all plausible, all written down-without being tried. **Four were unusable** — two returned 403 even with a-browser user agent, one returned "Making sure you're not a bot!", and one-returned an empty single-page-app shell with no results. Every one of them-read as correct on the page, and would have gone on reading as correct on-every later re-read.-Why this is worse than a broken shell command: a broken command failsloudly, and the session knows to stop. An unreachable source returns*something* — an empty result set, a login page, a shell — and the natural@@ -121,10 +114,6 @@ Before shipping any check, ask what it would look like if the thing beingchecked had failed — and if the answer is "the same", the check isdecoration. The trap has a characteristic shape: the artefact beinginspected was produced or touched by the same session doing the inspection.-Observed: a set of bundles was published to a remote destination and-verified by reading a local extraction folder that the same session had-written the corrected content into. It would have reported "all correct"-had the publication failed completely.What distinguishes arrival from non-arrival is a **discriminator** — avalue only the far side can produce: a server-assigned identifier, an@@ -161,10 +150,7 @@ headroom, and the next ordinary additions spend it without anyonedeciding to.A skill that declares neither has not opted in. The count and the distance to-the 500-line target are still reported; nothing is gated. That is deliberate,-and it is the correction to a real defect: the ceiling was briefly a constant-inside the validator, so one skill's budget failed three unrelated skills that-had not changed. **A tool one skill ships for the whole library must not carry+the 500-line target are still reported; nothing is gated. That is deliberate. **A tool one skill ships for the whole library must not carrythat skill's own constants.** Any threshold in a shared script is either readfrom the subject being checked or is advisory — the tell is a gate that failson input its author never looked at.@@ -208,10 +194,8 @@ being rewritten anyway.**For any skill intended for publication, progressive disclosure ismandatory, not the default for large ones.** A readiness check verifies-what it was written to catch, and structure was agreed by everyone and-encoded by no one — so a ~1,200-line single file passed every-confidentiality, licence and attribution check and shipped, with its-restructure noted as a "standing follow-up" for three runs. Define "flat"+what it was written to catch, and nothing encodes structure unless a check+is written for it. Define "flat"mechanically so the gate is a script line, not a judgement: **no`references/` directory, or a `references/` directory the `SKILL.md` neverpoints at (no pointer list or section map naming a file in it), or a@@ -312,8 +296,7 @@ the copy with a stop condition, not a shorter copy.** Duplicationdefended as insurance is the least audited kind — the argument forcopying it is also an argument against questioning the copy, so thecopies carrying the most important rules are the ones most likely to be-silently stale (found in practice: a third copy of a rule set still-carried a convention its source had superseded, and nothing detected it).+silently stale.A copy of a rule can drift out of agreement with its source; a refusal toproceed without the source cannot. "If the skill did not load, stop andreport — do not proceed from this prompt" is one line and has nothing to@@ -500,13 +483,10 @@ known to contain one. A generic path segment the skill itself names(`skill-observations`, `observation-log`) is not an identifier and staysoff the list.-The failure this prevents: a verification report posted to an upstream-maintainer carried two private project names, because the multi-log block-asks that every id leaving its log carry its workspace key, and in a local-install the key IS the project's directory name. The report complied with-the rule and leaked because of it. A human noticed about ten minutes after-posting; the fix was delete and re-post, because an edit leaves the first-version in the edit history.+Failure shape: the rule that cross-log ids carry their workspace key+leaks project names when the key is a directory name, so a report can+comply with the rule and leak because of it; an edited post keeps its+first version in the history, so the fix is delete and re-post.**The draft's claims about its own runs are checked against the record.**The pre-flight checks the reported problem at HEAD and the gate checks@@ -525,24 +505,14 @@ a test workspace") from the observation into the report; on an existingthread, read all of it first and say only what it lacks; and re-measureversions and other tickets' states at send time. This is Step 5'sfactual-claims rule (`weekly-review.md`) applied where text leaves the-machine. Observed: five drafts from one session's evidence, after a-clean pre-flight and identifier scan, had 3 of 28 numbered claims-refuted, and further rounds on the corrected drafts refuted more — a-result claimed for cases never measured, a dropped precondition, a-constructed fixture told as "we hit", a generalisation over a family of-code pages that two of the four tested contradicted.+machine.**A draft a person will paste is checked the way it will be consumed.**The pre-flight runs before a draft exists and the gate above reads thedraft for what must not be in it; neither reads it as a paste source,and two properties break in transit that no content check sees.-Observed: three issue drafts in one file, each headed `**Title:**-<title>` and hard-wrapped with blank lines between paragraphs, posted by-hand — every published title began with `** ` because the label's-closing asterisks were selected with the value, and every body lost all-of its blank lines, so its paragraphs rendered merged; the pre-flight-had passed, the identifier scan was clean, and a post-publication-comparison that normalised whitespace called the bodies identical. So,+Failure shape: a `**Title:**` label pasted with its asterisks, and+hard-wrapped bodies that lose their blank lines. So,for any report handed over to be posted by hand: (1) **shape** — eachfield alone in its own fenced block, the fence longer than any backtickrun inside it and carrying no info string (a selection that starts on the@@ -757,19 +727,16 @@ verification claim in any public artefact, in ANY date format.** Theshapes are examples subordinate to that definition, never the definition:`YYYY-MM-DD`, `DD/MM/YYYY`, `Mon YYYY`, `Month YYYY`, `QN YYYY`, thebare-year "as of 2026", and the sentence-position forms "on <date>" and-"run on <date>". The list matters because the rule was once specified as-"month-name + year patterns", and every scan thereafter grepped exactly-that shape: a reviewer running the example has complied with the+"run on <date>". The list matters because a scan greps exactly the shapes it was given:+a reviewer running the example has complied with therule as written, so nothing prompts the question whether the pattern-covers the rule, and twelve ISO-dated claims survived — one inside a-reviewed, signed-off release commit. So make the check mechanical and+covers the rule. So make the check mechanical andauditable: any publishing workflow scans public artefacts beforecommitting — a scan, not a reminder — with the pattern set in a scriptwhere it can be extended in one place, and **the scan records WHICHpatterns ran**; a green result whose coverage is unstated is unauditable.Two consequences follow. A count produced by an enumerated set of shapes-is a **lower bound**, never a "corrected" figure: the sweep that reported-eight sites as corrected had missed three the least specific grep found.+is a **lower bound**, never a "corrected" figure.And a check that has passed every run is evidence about the check, notabout the artefact — the instrument guard (`observation-log.md`, "Everyinstrument gets the same guard") applies to green results exactly as to@@ -788,13 +755,6 @@ assumption is that someone re-checks that state — but nothing fires when itdrifts, so "internal, therefore dated facts are fine" becomes "internal,therefore permanently wrong".-Observed: an internal skill opened with a hardcoded version number of the-system it described; the deployed system moved on and the skill's first-paragraph was wrong within a day. It was the second time the same number-had gone stale, and five further copies sat in memory files and handover-notes. The first paragraph is where it does most damage, because it is read-before anything that might contradict it.-So an internal skill may carry current state only with a **namedre-check**: what re-derives the value, and when. "Version X (re-derive from`<command>` at each review)" is acceptable; a bare number is not. Where no@@ -832,10 +792,7 @@ re-check exists, do not record the value — record how to obtain it.2. Always base edits on a fresh read of the live file — never a workspacecopy, prior draft, or memory.3. Before overwriting any staged/workspace copy, diff it against the live- file; if they differ, rebase your edits on the live version. (Observed- failure: an update built on a stale snapshot silently dropped two- sections added to the live skill the same day; only a pre-merge diff- caught it.)+ file; if they differ, rebase your edits on the live version.4. Before any cross-copy sync or publish work (live install, workspacecopies, published repo/branch), enumerate all copies of the artefactand establish freshness PER COPY from evidence — mtime, content@@ -984,10 +941,7 @@ re-check exists, do not record the value — record how to obtain it.doing the superseded thing, and the only witness is the user noticing anold behaviour reappear weeks after asking for it to stop. And drift isfast — it is the source's rate of change that predicts it, not the- copy's age (observed: four days from an anti-drift rule being written to- a live violation of it, in a skill whose rules were under active- rewrite, found only because the prompt happened to be opened for an- unrelated reason).+ copy's age.**A rename is a migration, not an edit.** Where skills are hosted by anaccount or an app, a skill under a new name is a new skill. Before the@@ -1001,13 +955,9 @@ re-check exists, do not record the value — record how to obtain it.String replacement edits text, but a list, a table, a `## Contents`index, a frontmatter block or a numbered sequence of steps isstructure, and an anchor-relative insert is safe only if you know what- is adjacent to the anchor — which `replace` gives no way to assert.- Observed: a list entry prepended to the paragraph that followed the- list, "entry + blank line + anchor", pushed the list's own closing- blank into its middle; rendered, one list became two, and the defect- survived a validator run, a confidentiality scan and a commit review,- because an *unchanged* line had moved relative to its neighbours and- none of the three reads shape. So: parse to lines, locate the insertion+ is adjacent to the anchor — which `replace` gives no way to assert+ (an unchanged line that moved survives a validator, a scan and a+ review, since none reads shape). So: parse to lines, locate the insertionpoint by a **structural predicate** (the last line matching `^- `, thelast row before the blank, the key after which the new key sorts),splice, rejoin. Never anchor on the text of a neighbouring paragraph.@@ -1023,14 +973,6 @@ afterwards that the edit took. Three things get conflated — the file ondisk, the copy the loader injected into this session, and what a freshsession would receive — and they can all differ at once.-Observed, in one session: the loader served a *previous lineage* of a-`SKILL.md`, missing an entire section and stating the opposite rule on a-formatting standard, while the file on disk (hash-verified, edited 45-minutes earlier in that same session) carried the corrected text. Answering-from the injected copy would have given the user exactly the wrong answer-on a normative question. It was caught only because someone grepped the-file on disk for a literal quote.-The obvious remedy fails too: launching a subagent to simulate "a freshsession" does not break the freeze. A subagent's context starts cold butits skills come from the **same snapshot**, so it reports the same stale@@ -1055,11 +997,6 @@ agent can check rather than infer:> Applies ONLY when the project has a `package.json` with a `react`> dependency. In every other project, ignore this section entirely.-Observed working in both directions inside a single session on a machine-serving two unrelated lines of work: the section stayed inert while the-working directory was a documents folder, and governed the whole workflow-once a React project was open.-**State the negative branch explicitly**, because it is the half that getsleft out. "Applies when X" reads as complete and leaves the agent to decidewhat happens otherwise; "and in every other case ignore this entirely" is@@ -1162,12 +1099,6 @@ because nothing in the delivery compares against the tip it is landing on.Git will not save you here: the relocation is a set of whole files, not apatch, so there is nothing to conflict.-Observed: a split of one file into a core plus new reference files, built-and verified three ways (line-range diff against the old base, exact-match-against the new files, word-count check), all of which passed — against the-base from an hour earlier. One line inside a moved block had changed in the-meantime.-So express the relocation as something **re-derivable from whatever thelive base currently is** — a script, or a procedure precise enough tore-run — and re-derive immediately before delivery rather than trusting the@@ -1201,15 +1132,8 @@ and consistency with the family is a legitimate design value — which isprecisely why the inherited-but-unnecessary step survives review. It doesnot read as wrong; it reads as belonging.-Observed: a family whose every member opens by identifying a governing-institution, because every member's output depends on which rulebook-applies. The new member copied that step and required the institution to be-resolved before any work. The user's correction was one line: *don't ask-about the institution — just ask how many items I want of each kind.* They-already knew the numbers. An inherited question had turned a one-line input-into a two-step interrogation.--The person who detects this is the one who has to answer the question, and+The person who detects this is the one who has to answer an inherited+question, andby then it has shipped. So make it an explicit authoring step: for eachstep copied from a sibling, state **what this skill's output would lose ifthe step were removed**. A step whose answer is "consistency" is inherited,@@ -1245,9 +1169,7 @@ registry is `skill-observations/skill-families.md`; seeof the answer, distributed unevenly across its members. Drafting from thecurrent session's experience and consulting the siblings only for thetool-agnostic parts you happen to remember produces a third divergent-member: observed, a new skill carried a category neither sibling had and-omitted two that one sibling had, taking a family from two inconsistent-members to three. The cost is asymmetric and front-loaded — reading two+member. The cost is asymmetric and front-loaded — reading twosiblings first is minutes; reconciling three divergent skills afterwardsmeans re-reading all of them, deciding per rule whether each divergence isintentional, and editing in three places, with the divergences hardest to@@ -1327,16 +1249,10 @@ The failure this produces is specific and expensive: the agent reads afull, confident description, selects the skill for the task it names, anddiscovers the missing prerequisite only partway through the work. It readsas the agent's error rather than the inventory's, and the task it was-chosen for is already half-done. In one reported estate, nine skills for a-single security tool sat in the listing indistinguishable from working-ones; the tool needed Docker, which was absent, and a paid API key outside-the user's subscription. The adopter's only defence was a hand-written-prohibition in `CLAUDE.md` naming all nine — a rule that has to be read and-obeyed, rather than a fact the system knows.--The same estate showed why this has to be a required element rather than-good practice: an audit found 2 of the 9 members declared the prerequisite-in their own `SKILL.md` and 7 did not. Left optional, a family drifts.+chosen for is already half-done. Failure shape: listed skills that cannot+run are indistinguishable from working ones, and the adopter's only+defence is a hand-written prohibition — a rule that has to be read and+obeyed, rather than a fact the system knows; left optional, a family drifts.**Required for any skill that drives an external tool.** Declare theprerequisites as *checkable facts*, so that something other than a humandiff --git a/references/weekly-review.md b/references/weekly-review.mdindex 0b99e12..85d6cf8 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -209,10 +209,7 @@ contribute. Forked files need the check at two levels: file-levelprovenance ("this skill is foreign-maintained") and section-levelprovenance ("the section this observation extends is a local addition")are separate statements — both answerable from the local copy — and-routing to upstream-vs-fork depends on the second. (Observed: an-"upstream contribution" option was offered and chosen for three-observations extending a section that turned out to exist only in the-local fork — the decision had to be re-asked with the corrected facts.)+routing to upstream-vs-fork depends on the second.A declined or dismissed approval prompt is NOT approval — and it is not arequest to skip the asking and proceed either. Treat it as a stop signalfor the gated actions: halt, then ask in plain chat text what the user@@ -270,10 +267,7 @@ the observation `open`, with the staged path in a `reference:` note, sothe next review's presence check closes it once the copy is installedrather than re-applying it. What stays escalated is the decision the runcannot make — cut a branch or ship from main, and when — never the-mechanical work. (Observed: read literally, the old proviso would have-returned a maintainer's own "priority" decision to him as a question and-left the published skill in the shape he had decided against for another-cycle; the run staged it anyway, and this paragraph makes that the rule.)+mechanical work.Escalate one decision per cluster (Step 3).@@ -458,14 +452,13 @@ need no cleanup at Step 7; a Step 6 run against a list Step 1 failed torefresh shows as a delta of dozens, not as a quiet pass.**Duplicate-id check — nothing else in the process looks for one.** The id-rules say a collision is "left for the next review to renumber", and until-now no review step went looking, so a duplicate could sit indefinitely.+rules say a collision is "left for the next review to renumber", and+without this check a duplicate could sit indefinitely.Worse, it is silently destructive to the review itself: any pass thatmerges per-entry results **keyed by id** — the common shape when thereading is fanned out to helpers — collapses the pair into one, and theentry that loses is dropped from the review it was waiting for, with no-error. The collision surfaced, once, only because someone compared a-merged count against a file count.+error.```bashd="[ABSOLUTE PATH]/skill-observations/observation-log"@@ -583,16 +576,11 @@ discriminated anchors (`<date>-<slug>`, `<date>.2`) and hand-overmaterial are valid names, and an index shows only what someone entered,so a check that reads only the index reports every unentered item asabsent — the cost is not lost work but the same work done again by a-less informed session (observed: an inventory and a diff proposal-staged for the next session's documentation pass, no entry written; the-next session inventoried the same places from scratch and missed one-the staged inventory covered). Then, for each entry in+less informed session. Then, for each entry in`skill-updates/PENDING.md`AND each skill directory under `skill-updates/<date>/` — always both,never the manifest alone: it may be missing entries, or missing-entirely, and an absent manifest reads exactly like an empty one-(observed: eight staged skills across three dated folders, invisible for-ten days, because no session had ever created the file) — run `diff -rq`+entirely, and an absent manifest reads exactly like an empty one — run `diff -rq`of the staged copyagainst the live skill and classify FOUR ways — because livelegitimately moves on, so a bare "differs" is not a verdict:@@ -703,10 +691,7 @@ that reads naturally, "any staged-only line means (c)", misclassifiesevery superseded copy, because a modified line appears on both sides ofa diff — and it errs in the harmful direction, since (c) is the branchthat makes the staged copy the base for the next staging, so the next-edit silently reverts what live gained since (observed: a copy staged-in the morning, installed, and superseded by a second same-day staging-was classified (c) on a file-level test; per hunk, both staged-only-lines had been replaced by supersets in live). The same-day second+edit silently reverts what live gained since. The same-day secondstaging under Delivery is where this arises — that rule says where thesecond copy is written, this one says how the first is then classified.A procedure that mandates an N-way classification owes the reader the@@ -724,11 +709,7 @@ ahead" are exhaustive only while exactly one side has moved, and a datedstaging folder is multi-writer by construction, so both having moved isthe normal case, not the exotic one. Size does not order them either:the larger file is the one that grew, which says nothing about what it-lost. (Observed: a staged copy three weeks old with four sections only-it carried, against a live file with seven only it carried; (c) as then-written would have discarded live's seven, and the file-size reading-argued for (b), which would have discarded the staged four. The merge-kept all eleven.)+lost.Reconcile in BOTH directions every time: lingering-done (installed butstill listed) and missing-done (staged but never installed) fail@@ -744,11 +725,7 @@ hand-maintained file records its exceptions as prose that deliberatelydoes not look like an entry: a prune, a resolution, the line that saysnothing is pending. So a pattern excerpt drops exactly the content thatwould refute a drift and keeps the content that suggests one, and its-confidence is highest where its input is thinnest. (Observed: a session-read the manifest as headings and list items, reported a round staged for-two skills and present for one, and told the user the manifest needed-clearing — twenty lines further down, in prose, it recorded the prune-that had removed the copy and the statement that no entries were open.)+confidence is highest where its input is thinnest.Excerpt to search, full text to judge.**A `release/`-shaped staging with no manifest entry is a GATE FAILURE,@@ -758,11 +735,7 @@ a missing entry, but catching it is a finding, not a repair: arelease-branch staging is cut together with its manifest entry, its holdand its test plan (Step 5, standing rule), and the entry's absence means thecutting act skipped its writes, so the hold and the test plan are suspect-too. Observed, twice: a branch staged for install with no manifest entry-and the publishing registry's hold still naming the previous, abandoned-branch — found only because this sweep diffs every recent directory, and-repaired by a later interactive session a day after the cut, so the-reconstruction left no trace that the mechanism had failed. Name the+too. Name thedirectory, name the missing writes, and treat the copy as state (c); ifthe run reconstructs the entry so the rest of the gate can proceed, thefirst line says so and says what was written — a repair the summary does@@ -808,11 +781,7 @@ that upstream would not take; editing the file in place is not on themenu, however writable it is. Provenance is a property of the artefactand is stated in its first lines; install location is a fact about thismachine and says nothing about who maintains the file, so read the block-before the path (observed: a hand-installed, hand-updated copy of this-very skill, byte-identical to its published HEAD, met every clause of-(a) literally, and a review staged ten observations' worth of local-edits to it — the correct output was upstream reports and no local-edit). This skill is the standing example: wherever the user is not its+before the path. This skill is the standing example: wherever the user is not itsmaintainer, `task-observer` is (b). Choosing the companion route may meancreating the `{skill}-extras` skill in this review, which the Constraintsallow as the one exception to "no new skills in a review". Grow the (c) list when an update fails for@@ -890,8 +859,7 @@ entries target the same member. Then, before anything is presented:- **Consolidate new-skill candidates by the problem they solve, not byname.** Independently logged proposals for the same skill will not look- alike, because each is named after the task that surfaced it; eleven- working names have collapsed to four skills on reading. Present merged+ alike, because each is named after the task that surfaced it. Present mergedclusters with their constituent observation ids.- **Existence check before any new-skill cluster is presented.** A`proposes_skill:` or a `siblings_checked: none` is an absence claim@@ -973,10 +941,8 @@ Flag every skill that doesn't yet comply with each active cross-cuttingprinciple. A missing `skill-observations/cross-cutting-principles.md` isabnormal, not empty: Session Start step 1 creates it, and it is the oneartefact of that step nothing reads until this step, so its absence has-had no observable consequence until now — a step that runs without-leaving a trace is indistinguishable from a step that was skipped-(observed: months of daily use, a hundred logged observations, the file-never created). Create it from the template in+no observable consequence before it — a step that runs without+leaving a trace is indistinguishable from a step that was skipped. Create it from the template in`references/skill-authoring.md` now, say so in the summary's first line,and log the skipped step as an observation.@@ -1054,16 +1020,6 @@ saw; a skill states what is true. Promoting the first into the secondverbatim launders a sample into a rule, and the rule then outlives everychance to notice.-Observed: an entry stated as settled fact that a document's `balance`-field "is always 0 in this org", and therefore could not be used to detect-outstanding payments. It was about to be promoted verbatim. One query-against the live API showed the claim was false — `balance` is populated-correctly on documents in `pending` status. The original session had-sampled only `approved` documents, where the vendor's system reports a-full `amountPaid` and a zero `balance` regardless of actual payments. The-observation was honest and the sample was unrepresentative, which is the-normal relationship between the two.-So before a factual claim about an external system enters a skill — aschema, an enum, a field's behaviour, a transition rule, "X is always Y" —re-run the smallest query that would falsify it, and widen the sample past@@ -1160,8 +1116,7 @@ the summary carries.is a property of the class, visible only to whoever holds the wholetree. Before editing, grep the class the report describes across thewhole bundle and fix every hit: the report supplies the diagnosis, the- tree supplies the extent (three reports folded into one release named- one, two and eight sites; the classes had four, three and eleven). A+ tree supplies the extent. Acompleteness claim in a report — "exactly those two", "the one sitethe earlier fix missed" — is the reporter's scope, not a finding, andthe more carefully it is argued the more it discourages the one grep@@ -1178,8 +1133,7 @@ the summary carries.lists each reworded point beside the original bullet — the samepoint-by-point relocation verification as a moved file, because arewording is a relocation with a change of words, and "the substance- was kept" is a feeling, not a check (one such rewording dropped a- single qualifier and was caught by the contributor, not the review).+ was kept" is a feeling, not a check.Record in the stagingmanifest both the classification and, per include-now item, thereporter's **GitHub login and numeric user ID** — the publishing run@@ -1269,13 +1223,7 @@ onto `main` as a release; if the cut does not write it, nothing does, andits absence is indistinguishable from "not under test".Three writes, each specified as its own rule, is how the act gets-performed with the writes it happens to remember (observed twice: first a-branch cut with its test plan and no hold, the hold reconstructed at the-next run from the staging ledger and the parked observation with no trace-in the output that the mechanism had failed; then, two days later, the-next branch cut with its test plan and neither the hold nor the manifest-entry, the registry still naming the previous, abandoned branch, both-repaired by a different session a day later). Under the second-violation+performed with the writes it happens to remember. Under the second-violationrule the remedy is structural: **the cutting act is one scripted commandwhose side effects are the three writes** — the staging anchor with itsmanifest entry, the registry hold, and the parked test-plan observation —@@ -1297,9 +1245,7 @@ weekday that follows the INSTALL of the branch line by at least a fewworking sessions (the maintainer's observed choice: a Monday install →that same week's session, four days later) — not "cut date plus seven",which is arithmetic on the wrong event and lands on whatever day of the-week the arithmetic says (observed: a test plan, a manifest entry, a-registry row and a summary all naming the same date, a Sunday, corrected-by the maintainer to the preceding publishing weekday). The test plan's+week the arithmetic says. The test plan's`parked_until:` names that weekday's date explicitly, and every other copyof the date — manifest entry, registry row, summary — is derived the sameway, so they cannot disagree. Where the install lands late in the week@@ -1317,13 +1263,7 @@ something must change, say explicitly that the previous version issuperseded and name what to re-read. Prefer an immutable review artefact— a diff written to a file is reviewable at the reader's pace and cannotbe invalidated by later work — and offer it first, not as the recovery.-Batch corrections behind the review, never in front of it. (Observed: a-release branch cut, folded, merged, rebased twice, version-corrected and-message-rewritten across one afternoon while the maintainer was trying to-review it; every answer they received described a state that no longer-existed by the time they acted on it, and the branch was deleted unused —-the content survived only because it had been staged to the workspace-separately.) Work done while someone is reviewing is not parallelism; it+Batch corrections behind the review, never in front of it. Work done while someone is reviewing is not parallelism; itis contention for the same object, and every revision spends thereviewer's attention again from the beginning.@@ -1436,12 +1376,7 @@ can still occur, the entry is `partially-applied`, whatever thesuggestion asked for; for an observation about a manual step or amissing automation the test is one question — after this change, doesanyone still have to do the step by hand, and if an automation exists,-what calls it? (Observed: a script that already did the step existed;-the observation asked only that it be documented; the paragraph was-written, the entry marked `actioned`, nothing called the script, and-the backlog it was meant to clear built up again until the user asked-why — the edited skill's own rule that a check started by hand is not a-check sat a few paragraphs from the edit.) An observation closes on its+what calls it? An observation closes on itsproblem, not on its proposal. Mark already-applied entries `actioned`with a resolution noting that a prior session applied them, and leavethe section alone. A `partially-applied` entry names the remainder in@@ -1542,12 +1477,6 @@ wrong when the fix's central claim is about something it did **not**change: an assumption about how a caller behaves, what a default is, whatsome other file guarantees.-Observed: a reviewer could not find the caller whose behaviour the fix-assumed, and had to return its single most important finding — whether the-central assumption held — as "not verifiable". The minor findings came back-fine. The review ran, produced output, and silently failed at the one thing-it was for.-So build the brief from **what the claim depends on**, not from what thechange touched: name the fix's load-bearing assumption in one line, andinclude every file needed to confirm or refute it, changed or not. Ask the@@ -1648,11 +1577,7 @@ any count. A file the review itself archived since Step 1 shows underfinding.Re-run the Step 1 duplicate-id check over the new listing as well: thisre-scan is not redundant with Step 1, because the collisions it exists to-catch are the ones created *during* the run (observed: Step 1 found and-renumbered one collision; Step 6's re-scan found a second, new one —-written mid-run by a parallel interactive session at an id the directory-and the floor had both passed an hour earlier — that no earlier step could-have seen). A run that trims this step as duplicate work removes the only+catch are the ones created *during* the run. A run that trims this step as duplicate work removes the onlycheck positioned after the writes it is checking for.Then, in each applied observation's frontmatter set@@ -1776,10 +1701,7 @@ an event that cannot occur turns the run's one deliverable into a hang.`proposes_skill:` are validated at write time, and that validation canreturn the wrong answer: a session in a stale checkout, or one resolvingagainst the wrong install, judges an existing skill absent and files the- observation under `proposes_skill:` instead. Observed: seven entries- logged with `skill: []` and `proposes_skill: [<name>]` on the honest- judgement that the skill did not exist — it did, in commits the session's- checkout was 160 behind. Left alone, they sit under a new-skill candidate+ observation under `proposes_skill:` instead. Left alone, such entries sit under a new-skill candidatefor a skill that already exists, and every later review re-reads them thesame way. A review that establishes the target does exist may correctthose two fields, and records the correction in `resolution:`. Nothing@@ -1806,12 +1728,6 @@ time naming what some other branch or commit still needs will be sentverbatim, and it reads with exactly the authority of the measured figuresbeside it.-Observed: a template whose line counts, byte counts and evidence figures-were all correct at send time, alongside a fixed paragraph saying a-particular branch was still pending a change and describing what would have-to happen at merge. By the time the automated run sent it, that branch had-landed and the change was already present in the delivered result.-So in anything drafted for later sending: **state only what is measured atsend time, or nothing.** Claims about the state of other branches, commits,tickets or sessions either come from a value the run computes as it sends,@@ -1880,12 +1796,7 @@ until the user installs it. **Keep-two rule** — a fixed Delivery step ofevery review, run after packing and before the Step 8 summary, with thedelete grant requested in the same step: for any skill, keep onlythe two most recent staged copies under `skill-updates/` **that have been-installed** — never prune an uninstalled one. The invariant two lines-above says nothing goes live until the user installs it; the prune-originally counted rounds regardless, so a user who received three staged-updates for one skill and installed none of them — a plausible run when-staging keeps happening and installation waits — lost the oldest, and the-reviewable work in it, to a rule that reads as tidying. Classify each+installed** — never prune an uninstalled one. Classify eachcopy with the reconciliation gate's comparison first ("Compare with theinstaller's frontmatter quoting normalised" — a copy differing only in that quoting is (a)): prune only copiesthat came back **(a) identical** or **(b) superseded**; a copy in state@@ -1971,10 +1882,7 @@ the second round a discriminated anchor (`<date>-<slug>` or `<date>.2`)with its own manifest entry, and count rounds rather than days when thekeep-two rule prunes. The anchor is chosen BEFORE the Step 5 seed — thesnippet's `s=` line takes the discriminated path — not discovered afterwards-from this paragraph. (Observed: a second apply round for one skill started-the same evening the first had been installed; the date-keyed anchor pointed-at the installed copy, and only a manual check of the manifest state-prevented seeding over it.)+from this paragraph.**The previous staged state is part of the deliverable — snapshotbefore any second pass, and never let a reflow ride along with@@ -1989,11 +1897,7 @@ that rewrites a staged skill, copy the directory beside itself assweep and the keep-two prune cannot mistake it for a staged copy; itgoes when its anchor goes. And keep whitespace passes out of contentpasses: a re-wrap moves every line, so a plain diff reports total churn-and the few lines that actually changed are invisible in it (observed:-a delegated density pass cut ~4% of the words and re-wrapped every file-to a uniform width to make its line count honest — two files it changed-by 0% and 1.2% showed as fully rewritten, and no pre-pass baseline-existed). Content first, reviewed; reformat as a separate step whose+and the few lines that actually changed are invisible in it. Content first, reviewed; reformat as a separate step whosediff can be discarded wholesale; a brief that delegates one says whichof the two it is and forbids the other. Reviewability is a property ofthe pair of states, not of the final artefact — a process that produces@@ -2057,10 +1961,7 @@ and an id is qualified with its workspace key wherever it is referencedfrom another log. A note in an artefact whose lifetime ends at installcannot carry a follow-up: nothing in the review reads manifest notes as aqueue, and the one place the review is guaranteed to delete is the one-place it is tempting to write the leftover backlog. (Observed: two sessions-on two days each wrote a follow-up into the manifest; the first was found-only because the manifest happened to be read before the next review, the-second was caught in the same turn and re-filed as a parked observation.)+place it is tempting to write the leftover backlog.The gate stays absolute — the fix for a safety gate people are tempted tobypass is reducing the friction that creates the temptation, notloosening the gate. An optional git-based staging medium is described in