Skip to content

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.

Compress rationale across the core and references; small rule additions

Eoghan Henn6c80365c19aa
diff --git a/SKILL.md b/SKILL.md
index bfe64c4..fc8648c 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -32,10 +32,9 @@ and takes the observations with it. **Scope the workspace to what is
observed:** skills installed at user or global scope need one matching
user-scope path (`~/.claude/skill-observations/` or the equivalent outside
any project), shared across projects, tools and agents; keep a per-project
-anchor only for skills that exist in that project alone. "Stable" is not
-the same as "single", and a per-project default silently shards one log
-into many, each of which looks complete from inside. Never place the
-workspace inside a skills-discovery directory. Before creating one, search
+anchor only for skills that exist in that project alone: a per-project
+default silently shards one log into many, each complete from inside. Never
+place the workspace inside a skills-discovery directory. Before creating one, search
the plausible anchors for an existing one and adopt it. Load
`references/environments.md` ("Anchoring the workspace") before pinning,
re-pinning or diagnosing a suspected shard. **The observation log is a
@@ -87,9 +86,8 @@ skill" (some upload paths keep only `SKILL.md`); its episodes do not run.
Protocol detects a legacy log.** Fresh installs never read it.
- `references/starter-principles.md` — an optional, provenance-stripped
seed set of generic cross-cutting principles. **Load only when the
- starter-set reconciliation is due** (Session Start step 1: the
- `starter-principles-reviewed.txt` marker is absent or names an older
- starter set) — never on an ordinary session start.
+ starter-set reconciliation is due** (Session Start step 1: the marker is
+ absent or names an older starter set) — never on an ordinary session start.
## Session Start Protocol
@@ -166,6 +164,10 @@ skill" (some upload paths keep only `SKILL.md`); its episodes do not run.
`scripts/session-start-scan.sh` is the scan (in `<skill directory>`); review
it there, and read its output whole — never through `tail`, `head` or `grep`.
+ In a bridged session where that directory is not on the device, run it from
+ `skill-observations/.bin/` or a digest-matched staged copy — never a per-skill
+ grep instead (`references/environments.md`, "Environment mappings", the
+ paragraph "Where the scripts are not on the device").
**Only the print can be refused, so it runs last** — a refused print is
never an empty log: load `references/observation-log.md` ("A refused
@@ -199,8 +201,8 @@ skill" (some upload paths keep only `SKILL.md`); its episodes do not run.
line) is older than this version's, or absent, is reported in one line
with the paragraphs it lacks; offer the current block, never rewrite the
file unasked. This step runs only once the skill is invoked, so it
- verifies a working setup and cannot detect a missing one — it is not the
- safety net for a never-activated install; outside checks: that reference.
+ verifies a working setup and cannot detect a never-activated install;
+ outside checks: that reference.
5. **Concurrency.** No shared log file to guard: each observation is its
own file; re-read one before changing its *status* (How to Log).
6. **Targets and staged work.** Resolve each distinct `skill:` value in
@@ -212,8 +214,8 @@ skill" (some upload paths keep only `SKILL.md`); its episodes do not run.
you resolved against (this checkout, this install): an unresolved target
is a fact about where you looked, not about the world.
If `skill-updates/` holds anything, reconcile it before announcing it —
- installation happens outside any session, so no session observes it, and
- the session that reads the ledger owns its cleanup. `diff -rq` each staged
+ no session observes an install, so the one that reads the ledger owns
+ its cleanup. `diff -rq` each staged
copy against live and classify it (a bare "differs" is not a verdict),
and name every directory no manifest entry covers. The cases are in
`references/weekly-review.md` ("Staged-work reconciliation gate") — load
@@ -233,8 +235,7 @@ discussion, meta-discussion about skills or methodology, and strategy
conversations about how work should be done. **The observation mindset
does not deactivate when the conversation shifts from doing the work to
discussing it**; review-phase feedback is often the highest-signal input.
-Inactive only for casual conversation and quick factual questions with no
-tools or deliverables involved.
+Inactive only for casual conversation and tool-free factual questions.
## What to Watch For
@@ -271,16 +272,14 @@ start already holds their titles; otherwise `find observation-log -name
finding is the same one restated — the same rule, the same failure shape, a
different example — extend the existing entry instead: append the new
instance to its body, add the session to `session_context`, widen `title:`
-to cover it. Duplication is only visible in aggregate (measured on one log:
-roughly forty of ninety-one open entries were one finding restated), and a
-near-duplicate costs a capture every session and a triage every review.
+to cover it. Duplication is only visible in aggregate, and a near-duplicate
+costs a capture every session and a triage every review.
**Validate the target at write time.** `skill:` names a skill that exists
now and performs the operation the Issue describes, written as its bare
-name (`plugin:name` only where two skills share it). If the
-right home is not a skill — an instructions file, a memory note, the
-register a routine reads — put that path in `target_file:`, not the
-nearest skill; a skill not yet built goes in `proposes_skill:`.
+name (`plugin:name` only where two skills share it). If the right home is
+not a skill — an instructions file, a memory note, the register a routine
+reads — put that path in `target_file:`; a skill not yet built goes in `proposes_skill:`.
**Check the target's siblings at write time, and record that you did.**
Before writing, resolve the target against the family registry
@@ -289,9 +288,9 @@ to `skill:` or say in the body why it does not apply. Fast test: **could
this sentence survive having the tool's or subject's name removed?** If
yes it belongs to every sibling. Record the outcome in the mandatory
`siblings_checked:` field, including the verdict "checked —
-instance-specific, no propagation": a one-entry `skill:` list is
-byte-identical whether the siblings were evaluated or never considered,
-and only the recorded field makes the *absence* of the judgement visible.
+instance-specific, no propagation": a one-entry `skill:` list looks the same
+whether the siblings were evaluated or never considered, and only the
+recorded field makes the *absence* of the judgement visible.
Load `references/observation-log.md` ("Skill families and the sibling
check") for the registry spec, the coherence models and the fallback when
no registry exists.
@@ -301,9 +300,8 @@ instruction file documents is a first-class observation, not an
embarrassment to move past: it is the only evidence that the rule's
*enforcement* is too weak, and nobody but the agent can see it. Log it in
the same turn, and name which protection was actually in play — written
-down, loaded into context, or backed by a checkpoint. The restatement check
-above surfaces the earlier entry when one exists, so the count arrives
-without extra work.
+down, loaded into context, or backed by a checkpoint; the restatement check
+above surfaces the earlier entry, so the count arrives without extra work.
**Second violation of the same rule: stop proposing text.** A rule that has
failed twice with no intervening `actioned` fix has a protection problem,
@@ -324,9 +322,8 @@ of writing is the enforcement mechanism.
the 3rd, 6th, 9th (etc.) item complete you must **write to disk** — not
merely ask yourself whether anything is pending. Write any pending
observation files, or append a one-line `no observations` acknowledgement
-to `skill-observations/checkpoints.log`. The required action is a concrete
-write; a remembered "ask whether" is not enforcement. Roughly every third
-completion is the rule; the count need not be precise. (Exception for a
+to `skill-observations/checkpoints.log`: a remembered "ask whether" is not
+enforcement. Roughly every third completion is the rule. (Exception for a
priced-write workspace: `references/environments.md`.)
**A denied or failed write is not a read-only log.** A transient failure
@@ -334,18 +331,18 @@ priced-write workspace: `references/environments.md`.)
one retry. A permission or classifier denial is authoritative: tell the
user in one line what was denied and why the write mattered, then carry
the observations in report-back or handoff mode (`references/environments.md`).
-Keep at most one identical retry of a classifier denial, told to the user
-as a check for a probabilistic false negative — never a different tool. A
-mode that refuses every write by design is neither: defer, don't retry
+A classifier denial gets at most one identical retry, told to the user as a
+check for a false negative — never a different tool. A mode that refuses
+every write by design is neither: defer, don't retry
(`references/environments.md`, "A mode that forbids every write by design").
**Deliverable-event flush.** Whenever a unit of work is declared complete
to a human — a file handed over, a render, a staged skill file, a
completion notification, a final report, a finished todo batch — write any
-pending observation files at that moment. These checkpoints already
-involve a tool call, so the flush rides on work you were doing anyway.
-(Why both checkpoints are writes rather than questions:
-`references/observation-log.md`.)
+pending observation files at that moment; the flush rides on a tool call
+you were making anyway. (Why both checkpoints are writes rather than
+questions, and why a finding met while resolving another observation gets
+its own file: `references/observation-log.md`.)
**A failed write to an external system is a flush trigger in its own
right** — a tool result carrying `permission stream closed`, `permission
@@ -354,15 +351,13 @@ properties the flush needs: it is a literal string in the tool record
rather than a judgement about whether the moment qualifies, and it lands
where a run has just found something worth reporting and is most likely to
stop instead. Flush before doing anything else with the failure, including
-deciding what to do about it. (Observed: an unattended run completed every
-step, took a permission error on its first external write, and ended with
-no report and no logged observation.)
+deciding what to do about it (observed: an unattended run took a permission
+error on its first external write and ended with no report and no entry).
**Two gaps this pairing still leaves:** the 3rd-completion checkpoint is
-inert in a session using no todos, and "is this a major deliverable?" is a
-self-assessment — so a chat-only session with no todos has no trigger at
-all unless the harness supplies one (a turn-end hook). Before adding or
-changing any enforcement trigger, load `references/observation-log.md`
+inert without todos, and "is this a major deliverable?" is a self-assessment
+— so a chat-only session has no trigger unless the harness supplies one (a
+turn-end hook). Before adding or changing any enforcement trigger, load `references/observation-log.md`
("Two gaps the checkpoint pairing still leaves — and the rule behind both").
**Id and filename.** Each observation is `NNNN-short-slug.md` (zero-padded
@@ -412,9 +407,9 @@ and the id the session-start scan printed is never an input to a write.
Where a helper can run, `bash scripts/new-observation.sh --body <file>
<slug> "[ABSOLUTE PATH]"` is the only write path: it runs this whole snippet,
copies the body in with `__ID__` and `__DATE__` filled and prints the created
-path, so derivation cannot drift from creation (the structural barrier the
-second-violation rule demands). Load `references/observation-log.md` ("Run the
-snippet immediately before every write") when skipping feels reasonable.
+path, so derivation cannot drift from creation. Load
+`references/observation-log.md` ("Run the snippet immediately before every
+write") when skipping feels reasonable.
**Resolve each id at its own write time** — run the snippet before EACH
file, never pre-compute a range, and put the value it printed into both the
@@ -446,20 +441,17 @@ id: 0
title: "Short descriptive title"
status: open # open | actioned | declined | superseded | parked
type: open-source # open-source | internal
-skill: [skill-a, skill-b] # existing skills this improves —
- # always a list, first entry primary, may be
- # empty: []; quote an entry holding a colon
+skill: [skill-a, skill-b] # existing skills this improves — always a
+ # list, first entry primary, may be empty: []
proposes_skill: [] # new skills this argues for, by working
- # name; an observation can fill either
- # list or both
+ # name; either list or both may be filled
target_file: [] # when the right home is not a skill at all:
# the path the fix will be written to
siblings_checked: "family-name: a, b — a added; b excluded (b/SKILL.md §2)"
- # MANDATORY, never blank: the family name,
- # each member's verdict — every exclusion
- # names the section read in it, or the
- # literal assumed; none only where the
- # target belongs to no family
+ # MANDATORY, never blank: the family name and
+ # each member's verdict — every exclusion names
+ # the section read in it, or the literal
+ # assumed; none only where no family exists
area: "which part of the skill or workflow"
date: YYYY-MM-DD
session_context: "what task was being worked on"
@@ -537,11 +529,10 @@ Archival is not a preamble duty to remember before writing — it rides
inside the id-derivation snippet above: the same command that computes the
next id first `mv`s already-resolved files from `observation-log/` to
`observation-log/archive/`, so the sweep runs whenever an id is issued and
-cannot be skipped without failing the write. (The prose form — "on every
-write, first archive" — under-fires: a duty attached as a preamble to
-another action inherits none of that action's enforcement. If a step must
-always accompany a tool call, put it inside the same command.) The
-scheduled review archives too, at Step 1, as an independent backstop. "Already resolved" is read from the file's
+cannot be skipped without failing the write (a duty attached as a preamble
+to another action inherits none of its enforcement; put it inside the same
+command). The scheduled review archives too, at Step 1, as an independent
+backstop. "Already resolved" is read from the file's
own frontmatter: `status: actioned`, `declined` or `superseded` AND a
`resolved:` date **before today**. Files resolved today stay until the next
day, whichever session resolved them — the grace period lives in the file,
@@ -608,10 +599,10 @@ NAMES THE ARTEFACT — "update the X skill", "edit the skill file", "restage
it", "act on observation #N". A statement naming only the behaviour —
"from now on", "stop doing X", "always do Y", "make this part of the
workflow", "leave that out of the process" — is a decision whose carrier
-is the observation, however urgent it sounds: forward scope makes deferral
-feel unsafe, the same disguise the bridge argument wears above. Ambiguous
-wording gets a one-line question, not a guess, since a wrong guess is an
-unrequested artefact to review; log → review → stage → install always wins.
+is the observation, however urgent it sounds (forward scope is the bridge
+disguise again). Ambiguous wording gets a one-line question, not a guess: a
+wrong guess is an unrequested artefact to review; log → review → stage →
+install always wins.
**A harness's own skill-proposal or skill-save control is an install path,
not a staging path.** Where the environment offers to save or propose a
@@ -623,9 +614,8 @@ the staging manifest (`skill-updates/PENDING.md`) and today's
`skill-updates/<date>/` for the same skill: a review running in parallel
may already have staged it, built on the live file plus other changes.
Installing a conversation-side copy over that drops those changes, and
-installing the review's copy afterwards silently reverts the one the
-control installed — a shortcut taken while another session stages the same
-artefact turns a one-line rule into a merge conflict the user has to catch.
+installing the review's copy afterwards silently reverts the control's —
+a one-line rule turned into a merge conflict the user has to catch.
**Read the full body before resolving, dismissing, fixing, or citing** — a
title is an index entry, not content. **A change you did not make resolves
@@ -639,9 +629,9 @@ When acting: small, clearly-additive, low-risk changes (a new rule, a
clarification, a factual fix) may be applied without waiting for the next
review — "directly" means *now*, not *in place*: the edit is still made on
a staged copy based on a fresh read of the live file and handed to the user
-to install, in every environment and every context. Staging-only has no
-interactive exception; an exception the user has to remember is a gate
-that eventually gets left open. Substantial changes (restructuring, new
+to install, in every environment and every context — staging-only has no
+interactive exception, since a gate the user has to remember gets left
+open. Substantial changes (restructuring, new
capabilities, changed methodology) and all new-skill creation: load
`references/skill-authoring.md` first and follow its editing and staging
rules. A principle that applies to skills generally goes to the
@@ -650,21 +640,18 @@ cross-cutting principles file (same reference).
**Set the status in the same turn you act.** An observation acted on
in-session must have its frontmatter updated — `status: actioned`,
`resolved: YYYY-MM-DD`, `resolution: what was done, and where it now lives`
-— before the turn ends. The work and the bookkeeping are two acts, and the
-second is the one that gets dropped; a stale `open` entry then invites
-redoing finished work over a section that has since moved on. The write is
-the enforcement, exactly as it is for logging. **"Acted on" includes a fix
+— before the turn ends. The bookkeeping is the act that gets dropped, and
+a stale `open` entry invites redoing finished work over a section that has
+moved on; the write is the enforcement. **"Acted on" includes a fix
that lands as ordinary work** — the rule written into the instructions file,
the code corrected — with the observation not in mind; and a later session
finding the remedy already in place closes the entry the same way. Neither
-looks like acting on an observation, which is why both are missed (measured
-on one first review: 10 of 27 entries were already applied while `open`).
+looks like acting on an observation, which is why both are missed.
**Acting on only a subset of a multi-skill observation's `skill:` list?**
-Neither plain move is honest — left `open`, the finished portion gets
-re-applied by another session; marked `actioned`, the unfinished portions
-silently leave every future queue. Use the carrier pattern: mark the
-observation `actioned` with a `resolution:` naming the portions applied,
+Neither plain move is honest (`open` re-applies the finished portion;
+`actioned` drops the rest from every queue). Use the carrier pattern: mark
+the observation `actioned` with a `resolution:` naming the portions applied,
then log a carrier holding the remainder, with only the outstanding skills
in its `skill:` list. Full protocol: `references/observation-log.md`.
diff --git a/references/ceilings.txt b/references/ceilings.txt
index 52996e0..7627428 100644
--- a/references/ceilings.txt
+++ b/references/ceilings.txt
@@ -5,7 +5,7 @@
# A ceiling more than 3 lines above its file's count is lowered to the count.
environments.md 1829 2026-10-16 the test branch: first-run probe, stamped activation block, hook count at zero, runs that report back, helper and lookup notes
migration.md 262 2026-10-16 the test branch: the split store, a log.md beside the observation directory
-observation-log.md 1474
+observation-log.md 1472
signals.md 234
skill-authoring.md 1382 2026-10-16 the test branch: rule 4 on sync-maintained copies, placeholder path citations
starter-principles.md 504 2026-10-16 the marker is written after the answer, cited bodies are read, entry 23 covers the unmeasured baseline
diff --git a/references/environments.md b/references/environments.md
index 1686bbd..6276c7b 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -49,13 +49,11 @@ knowingly; do not assume any of the middle ones is a guarantee.
1. **Description matching** (weakest). The skill's frontmatter description
competes with every other skill's for relevance to the opening message.
It loses most often on short, tool-using requests that read like
- questions ("list the files in this repo"), on sessions that open with a
- small well-scoped request and grow, and whenever a domain skill matches
- the opening message strongly — topically matched skills have loaded in
- the same turn that the always-load ones were skipped. On platforms with
- no hook mechanism this is the only tier that survives an unmounted or
- unreachable config file, which is why the description itself carries a
- session-start trigger.
+ questions ("list the files in this repo"), on sessions that open small
+ and grow, and whenever a domain skill matches the opening message
+ strongly. On platforms with no hook mechanism this is the only tier
+ that survives an unmounted or unreachable config file, which is why the
+ description itself carries a session-start trigger.
2. **User-level preferences** (folder-independent, still probabilistic).
Agent settings the user controls that are injected into every session's
system prompt regardless of which folder, if any, is connected (in
@@ -96,6 +94,18 @@ knowingly; do not assume any of the middle ones is a guarantee.
prompt; choosing to invoke a skill remains a model decision. Cowork has
no hook mechanism; there, tiers 1 to 3 are all there is.
+**Porting this skill to another host asks the inverse question first:
+what is the destination's activation model, and can it express an
+always-on artefact?** This skill is ambient — present before the failure
+it watches for, with no moment at which a user asks for it — and a pack
+that routes purely on description cannot express that: there is no
+occasion to request a skill whose job is to notice that the skill in use
+was wrong, and a description written for one collides with the router's
+own. The artefact is then carried by whatever is already ambient there —
+a hook, an injected meta-document, a config file — or not carried at all;
+a port that sends the content and leaves the activation to the host has
+sent half of it, and the half left behind is the half that made it work.
+
**Word the trigger mechanically, not judgementally.** "Task-oriented
session" asks the agent to classify the session at its first turn, before
it knows how the session will develop, and short factual-looking requests
@@ -127,12 +137,9 @@ against that ("the deliverable is advice about X" → load the skill whose
description names X), even though the request arrived as a document to
review. The high-risk shape is an attachment plus an open question — "here
are two files, what do you think?" — which presents as a reading task and
-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 the
-wrong set. The failure is silent by construction, because a skill that
-never loads cannot announce that it was relevant, so the check belongs in
-the checklist rather than in a disposition.
+hides its own domain while the session-start skills load correctly: the
+mechanism works and still selects the wrong set, silently, because a
+skill that never loads cannot announce that it was relevant.
### The activation block
@@ -259,16 +266,14 @@ checkpoint line written by hand in the same batch.
**The first line is the template's stamp, and an upgrade does not move
it.** The block lives in the user's instruction file, outside the bundle,
so upgrading the bundle in place leaves it on whatever template it was
-copied from, and step 4's presence check cannot tell a current block from
-a 3.4-era one: every paragraph added since — the lookup, the subagent
-rule, the script-only write path — is missing from that install without
-any signal. The stamp is bumped whenever the block's text changes, and
+copied from, and a presence check cannot tell a current block from an old
+one: every paragraph added since is missing from that install without any
+signal. The stamp is bumped whenever the block's text changes, and
Session Start step 4 compares it with this version's: a block whose stamp
is older, or has none, is reported in one line with the paragraphs it
lacks, and the current block is offered whole — the file is never
rewritten unasked. On every upgrade, diff the installed block against
-this template; a block copied without its stamp line is read as
-unstamped.
+this template; a block copied without its stamp line is read as unstamped.
**Before writing a user-scope block, list its non-interactive consumers.**
A block in a user-level instruction file reaches every run that file
@@ -276,13 +281,12 @@ loads, not only the sessions a person watches: scripts calling the CLI
(`claude -p …`), LaunchAgent, cron and Task Scheduler jobs, the desktop
app's scheduled tasks. A run with a narrow tool allowlist can write no
file; one in default permission mode stops at the protocol's first
-command and waits for an approval nobody reads. So, before the block is
-written: list every such consumer with its permission mode and tool
-allowlist, and for each that cannot write or get an approval answered,
-put its run-output path into the block's `[RUN OUTPUT PATHS]` line, so
-the review knows where to harvest. A consumer the list missed shows up
-later as a job that stalls at the protocol's first call — a missing
-entry here, not a defect in the block.
+command and waits for an approval nobody reads. So list every such
+consumer with its permission mode and tool allowlist first, and for each
+that cannot write or get an approval answered, put its run-output path
+into the block's `[RUN OUTPUT PATHS]` line, so the review knows where to
+harvest. A consumer the list missed shows up later as a job that stalls
+at the protocol's first call — a missing entry here, not a defect in the block.
On Windows, pin the drive-letter form (`C:/Users/<user>/...`): PowerShell,
cmd and Git Bash all accept it ("Paths handed across a boundary are
@@ -531,13 +535,12 @@ chain silences all observation activity.
Capture is hard-enforced by checkpoints hooked onto tool calls; the review
trigger in the Session Start Protocol is a soft step — read a file, compare
-a date — and it is skipped the same way activation is. The failure is
-self-concealing: capture keeps producing, the log looks healthy and
-growing, and the only artefact recording the miss is a file reading
-`never` that nobody reads. Treat "is the review trigger structurally
-enforced?" as an install-completeness check, and where the harness offers
-a session-start hook, have it compute the state and inject it rather than
-asking the agent to go and look:
+a date — and it is skipped the same way activation is, self-concealingly:
+the log looks healthy and growing, and the only artefact recording the
+miss is a file reading `never` that nobody reads. Treat "is the review
+trigger structurally enforced?" as an install-completeness check, and
+where the harness offers a session-start hook, have it compute the state
+and inject it rather than asking the agent to go and look:
```bash
#!/bin/sh
@@ -562,17 +565,16 @@ The message names the resolved workspace and the whole first batch,
because it is the one pre-skill text the harness delivers on turn 1
("The probe rides inside the first batched call", below): a message that
only says "invoke the skill" leaves the probe to a skill not yet read,
-and a tool whose sessions resolve the root another way (a pin in an
-instruction file only some of its sessions load) keeps writing to its
-own log while the injected count, read from the shared one, looks
+and a tool whose sessions resolve the root another way keeps writing to
+its own log while the injected count, read from the shared one, looks
healthy. A count of zero is printed, never suppressed, with the path it
was read from: the hook is an instrument over the log and gets the same
guard as every scan, and a message that drops the count at zero makes a
mispinned workspace and a clean backlog read the same. Only the offer is
-gated on the count. The path is interpolated into a JSON string, so the last step
-escapes the whole message: a Windows path's backslashes and a `"` in a
-folder name otherwise produce output that does not parse, and a hook
-whose output does not parse injects nothing.
+gated on the count. The path is interpolated into a JSON string, so the
+last step escapes the whole message: a Windows path's backslashes or a
+`"` in a folder name otherwise produce output that does not parse, and a
+hook whose output does not parse injects nothing.
On native Windows, Claude Code runs hook commands through Git Bash, where
a bare `bash` or `python` can resolve to WSL's `System32\bash.exe` or the
@@ -595,9 +597,8 @@ on zero matches while still printing `0`, so `$(grep -c … || echo 0)`
yields two values — capture the output and ignore the exit code; and prove
the reminder branch fires by running the hook against fixtures at `never`,
30 days stale, 2 days stale and an empty log, confirming the third stays
-silent and the fourth still prints "0 open observations in <path>". A nag
-that never fires and a nag that is correctly silent look identical from a
-passing run.
+silent and the fourth still prints "0 open observations in <path>" — a
+nag that never fires and one correctly silent look identical otherwise.
### A stop hook — the per-task backstop as a harness event
@@ -888,19 +889,20 @@ 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 is
+The cause is a contest for one slot: loading the session-start skills is
the one action that genuinely *is* prior to the work, so it recruits the
-same "before anything else" position the probe needs, and it arrives as an
-activation of the agent's own setup rather than as an instruction — which
-feels like preparation, not action, and wins. Stating the precedence more
-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.
+"before anything else" position the probe needs, and feels like
+preparation rather than action. Stating the precedence more firmly does
+not change that, because the load discharges the felt obligation.
So the rule is about the **content of the first call, not its order**: the
-session's first tool call is a single batched call that contains the probe,
-and any session-start skill loads ride in that same batch — never in an
-earlier one. That removes the contest instead of adjudicating it, the
+session's first tool call is a single batched call that contains the probe
+— a listing of the pinned workspace path through the tool that reaches
+that filesystem, a device call in a bridged session; if that tool's server
+is still connecting, a tool search for it in batch 1 and the listing as
+the first call of batch 2 — the target is the test, not the command's
+success — and any session-start skill loads ride in that same batch,
+never in an earlier one. That removes the contest instead of adjudicating it, the
harness's parallel-call guidance already permits it, and it is checkable
after the fact from the transcript (an ordering rule between two "first"
actions is not). SKILL.md step 1 states it that way; the tier-2 preferences
@@ -1199,14 +1201,10 @@ session, and report the result:
- for a hook, confirm the harness lists it, not merely that the file exists.
"The user says they pasted it" is a claim about the world. An install can
-check it, cheaply, and should before declaring itself configured.
-
-**The principle.** When a setup step is delegated to a human because the
-agent is not permitted to perform it, the delegation is not complete when
-the instructions are handed over — it is complete when the agent has
-independently observed the resulting state. An unverified handoff and a
-silently skipped step produce the same artefact: a setup both parties
-believe is done.
+check it, cheaply, and should before declaring itself configured: a
+delegated setup step is complete when the agent has independently observed
+the resulting state, and an unverified handoff and a silently skipped step
+produce the same artefact — a setup both parties believe is done.
### Paths handed across a boundary are resolved from the far side
@@ -1340,12 +1338,11 @@ here rather than guessing a tool name.
**Cowork execution mode — cloud vs local is a user setting.** Cowork can
run a session in two modes with materially different tool surfaces, and
-the platform's default moved to cloud (so installs upgraded from earlier
-versions may silently change mode — users experience that as the tool
-losing abilities). The switch: Settings → Cowork → "Run new tasks in the
-cloud" (plus a "Beta" button at session start). The tell: the
-local-filesystem permission tool (`allow_cowork_file_delete`) present in
-the tool surface ⇒ local session; absent ⇒ cloud. What differs:
+the platform's default moved to cloud, so an upgraded install may silently
+change mode. The switch: Settings → Cowork → "Run new tasks in the cloud"
+(plus a "Beta" button at session start). The tell: the local-filesystem
+permission tool (`allow_cowork_file_delete`) present in the tool surface
+⇒ local session; absent ⇒ cloud. What differs:
| Capability | Local session | Cloud session |
|---|---|---|
@@ -1490,8 +1487,7 @@ multi-device setup that syncs skills through a private repository. It is
an option, not a change to the default: the review still writes the
staging manifest, still never edits the live install, and still presents
the change for a decision. Treat the version-control commands as a
-mutation surface for the observation log (see
-`references/observation-log.md`).
+mutation surface for the observation log (`references/observation-log.md`).
## Claude Code Projects
@@ -1644,9 +1640,8 @@ regimes:
checkpoint but suppress *empty* markers: enforce the check by hanging
it on writes that were going to happen anyway — deliverable events and
task completions — and write only when there is an observation to
- record. An enforcement mechanism has to be priced against its
- environment; a rule that makes writes mandatory-even-when-empty is
- only free where writes are free.
+ record: a rule that makes writes mandatory-even-when-empty is only
+ free where writes are free.
3. **No persistence** — handoff-doc mode, below.
## Bundle manifest
@@ -1689,21 +1684,19 @@ the channel that arrives first.
**The compaction summary's list of previously invoked skills is a lower
bound, never the session's skill set.** A summary preserves what it judged
salient about the *work*; skill loads are infrastructure, not work, so they
-are exactly what a summary drops. The block's own framing — "shown here for
-context only so you remain aware of their guidelines" — describes what the
-block contains and is easily read as what the session has. Re-derive the
+are exactly what a summary drops, and the block's "shown here for context
+only" describes what it contains, not what the session has. Re-derive the
skill set from the task (name the decision, name the artefact type, match
the installed descriptions — "Select on the decision, not on the artefact"
above), and treat any skill the summary lists as loaded-then-forgotten
rather than as the whole set.
-Observations before and after compaction are written as separate files
-under the same `observation-log/` directory, each with its own id (the id
-counter is derived from existing filenames, so it continues seamlessly
-across the compaction boundary). A resumed session's opening message may
-not match the description triggers, which is one reason the structural
-trigger exists — and one reason the protocol re-runs by rule rather than
-by whichever trigger happens to fire.
+Observations before and after compaction are separate files under the
+same `observation-log/`, each with its own id (the counter is derived
+from existing filenames, so it continues across the boundary). A resumed
+session's opening message may not match the description triggers, which
+is one reason the protocol re-runs by rule rather than by whichever
+trigger happens to fire.
## User-facing documentation
diff --git a/references/observation-log.md b/references/observation-log.md
index 02adc8b..bfc4311 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -202,8 +202,8 @@ scan reports the file parsed while every consumer that actually **parses**
— a review reading `status`, a hook counting `skill:`, a validator checking
the header — throws on the file, and a thrown file is usually skipped
rather than reported. 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.
+unparseable, most in `resolution:`, each written from a template that
+carried the value unquoted.
The scan's `suspect` count is the early warning: it reports headers that
look invalid by shape — an unquoted `: `, text after a closing quote
@@ -211,19 +211,15 @@ look invalid by shape — an unquoted `: `, text after a closing quote
double-quoted YAML string does not define (`\x`, `\u`, `\U` need 2, 4
and 8 hex digits) — beside the file count, for the active directory and
for `archive/`, so a log drifting into this state announces itself at
-session start rather than at the review that trips over it. The awk
-program resets its state on each file's first line, so an unterminated
-header cannot leak into the next file under `find -exec … {} +`; it
-allows any number of spaces after the colon and an `&anchor` or `!tag`
-before the value, and it never treats a value opening with `{` or `#`
-as prose, which is what kept the template's own `reference:` comment
-line from being flagged. It is a floor, not a parse: a `[…]` list is
-checked only for a colon in an unquoted entry, a `{…}` mapping not at all,
-and a plain value followed by a `# comment: x` still counts. It also misses an unterminated quote, a tab in
-place of the space after a colon, a value ending in a colon or opening
+session start rather than at the review that trips over it (the rules,
+one per line, are commented in `scripts/session-start-scan.sh`). It is a
+floor, not a parse: a `[…]` list is checked only for a colon in an
+unquoted entry, a `{…}` mapping not at all, and a plain value followed by
+a `# comment: x` still counts. It also misses an unterminated quote, a tab
+in place of the space after a colon, a value ending in a colon or opening
with `: `, a `: ` on a continuation line, a key outside `[a-z_]+`, and an
-empty value under a typed tag (`!!int`). Re-verify by running a real YAML parse over the
-frontmatter of every file, not by re-reading the template.
+empty value under a typed tag (`!!int`). Re-verify by running a real YAML
+parse over the frontmatter of every file, not by re-reading the template.
The typographic quote is the other common break, and it is quieter. A
value that opens with „ or “ is a plain scalar: the quote characters
@@ -249,28 +245,25 @@ implementations of different specifications, so the header is not
portable — and the failure is invisible from either side: a Python
consumer (`migrate-log.py`, `validate-skill-bundle.py`, most hooks) sees a
clean log forever; a consumer on the other rule sees most of it fail to
-load (one 202-file log: 8 suspect by the shipped scan, 0 invalid under
-PyYAML, 127 under Psych, all three right about the same corpus). So the
-rule is the intersection: **quote any list entry that contains a colon**
-— `skill: ["superpowers:test-driven-development", task-observer]` — or
-use a block list, where the colon is legal unquoted. Both forms parse
-identically under both rules (a plugin-scoped name is not a bare
-kebab-case name). `scripts/migrate-log.py` already writes the quoted form,
-so a migrated log is portable; entries written by hand from the template
-are the ones to check.
+load (one log: 8 suspect by the shipped scan, 0 invalid under PyYAML, 127
+under Psych, all three right about the same corpus). So the rule is the
+intersection: **quote any list entry that contains a colon** — `skill:
+["superpowers:test-driven-development", task-observer]` — or use a block
+list, where the colon is legal unquoted. `scripts/migrate-log.py` writes
+the quoted form; entries written by hand from the template are the ones
+to check.
The scan's `suspect` count sees this class through one rule of its own:
in a value opening with `[`, it drops every quoted string and any
-trailing comment and flags what is left if it still holds a colon. So
-`[plugin:name]` counts and `["plugin:name"]` does not. The rule has one
-accepted false positive, `[a: b]` — valid YAML under both readings, a
-one-entry mapping — which the template never produces. The count is
+trailing comment and flags what is left if it still holds a colon, so
+`[plugin:name]` counts and `["plugin:name"]` does not (one accepted false
+positive, `[a: b]`, which the template never produces). The count is
labelled `suspect (awk, a floor)` because it is a shape check by one
instrument and a lower bound: "8 suspect" never means "8 invalid", and
zero says nothing about a parser on the other rule. Re-verify with two
-parsers, not one: a check that agrees
-with the parser you already trust is the one to distrust
-(`skill-authoring.md`, "A verification command that AGREES with you").
+parsers, not one: a check that agrees with the parser you already trust
+is the one to distrust (`skill-authoring.md`, "A verification command
+that AGREES with you").
### A park condition names the result, never your own vehicle
@@ -317,34 +310,30 @@ not preservation.
### Commands inside an observation — run before the file is written
An observation that quotes an executable command carries it onward with a
-first-hand observation's authority, and what was witnessed was the
-experience — the command is usually reconstructed from memory, after the
-fact. Nothing downstream can tell the two apart. The authoring pre-flight
-in `skill-authoring.md` runs when a skill is written, often on another
-machine, another day, without the system the command refers to; at
-logging time the session is standing in front of that system and running
-it costs seconds. So before the file is written, run every command the
-body quotes — literally, and look at its output — and where that is not
-possible, mark the command unverified in the body. Record the outcome in
-`commands_verified:`, one clause per command, and the literal `none` where
-the body quotes no command, for the same reason `siblings_checked:` never
-stays blank: a body with an unrun command is byte-identical whether it was
-checked and trusted or never considered, and only the field makes the
-absence visible. Where the run shows the remembered form is wrong, the
-body quotes the form that ran, never the one it was reconstructed from.
+first-hand observation's authority, while the command itself is usually
+reconstructed from memory after the fact, and nothing downstream can tell
+the two apart. At logging time the session is standing in front of the
+system and running it costs seconds; the authoring pre-flight in
+`skill-authoring.md` runs later, often without that system. So before the
+file is written, run every command the body quotes — literally, and look
+at its output — and where that is not possible, mark the command
+unverified in the body. Record the outcome in `commands_verified:`, one
+clause per command, and the literal `none` where the body quotes no
+command, for the same reason `siblings_checked:` never stays blank: only
+the field makes an unrun command visible. Where the run shows the
+remembered form is wrong, the body quotes the form that ran.
**A predicate the Suggested improvement proposes — a regex, a search
pattern, a condition for a hook or check — is run the same way, against
the positive case the Issue describes and one negative, before the file
is written; record both results in `commands_verified:`.** A predicate is
-not a command, so "run every command" does not reach it, the field
-honestly says `none`, and the entry carries the detector onward with a
-first-hand observation's authority. The input matters as much as the
-run: a detector run over a repository returns some output whether or not
-it catches the case in hand, so the informative run is on the known
-positive — the literal failing string the Issue already holds — and on
-one string that must not match. A predicate that misses its positive or
-matches its negative is corrected in the body before the file is written.
+not a command, so "run every command" does not reach it and the field
+honestly says `none`. The input matters as much as the run: a detector
+run over a repository returns some output whether or not it catches the
+case in hand, so the informative run is on the known positive — the
+literal failing string the Issue already holds — and on one string that
+must not match. A predicate that misses its positive or matches its
+negative is corrected in the body before the file is written.
**A sweep the Suggested improvement prescribes names the behaviour, not
the pattern that found the first instance.** When the improvement tells a
@@ -368,9 +357,8 @@ over the artefact, a validator line, a hook condition, one count held
against another), where it runs, and what it prints on a violation; the
check is then run on this instance like any other predicate and recorded
in `commands_verified:`. An entry that names no check proposes a
-sentence, and the second-violation rule (core) reaches it only after the
-next failure; a check named now makes that escalation a promotion of
-something already written and tested, not a design started from scratch.
+sentence; a check named now makes the second-violation escalation (core)
+a promotion of something already written and tested.
## Scanning cheaply
@@ -394,13 +382,10 @@ token the harness exposes) the project.
The final append is the session-start run's own trace (see "The scan ends
in a write, not only a print"); a review's work-queue pass over the same
frontmatter can drop it. The content print is one `awk` over `*.md`
-inside `( cd "$d" && … )`, never `for f in $(find …)` or a list rebuilt
-with `$(ls … | xargs …)` — both word-split a spaced path ("Snippets take
-a spaced path", above), while a glob in the directory itself hands `awk`
-bare file names that nothing splits. It prints each header followed by
-one `---` line, the output the earlier per-file loop produced, with one
-process for the whole set instead of one per file; `LC_ALL=C` inside the
-subshell sorts the glob the way the loop's `sort` did.
+inside `( cd "$d" && … )`, never `for f in $(find …)` or `$(ls … | xargs
+…)` — both word-split a spaced path ("Snippets take a spaced path",
+above), while a glob in the directory hands `awk` bare names that nothing
+splits; one process for the whole set, not one per file.
**Guard the read, not just the write.** A query that returns nothing is
reporting on two possibilities at once — the data is absent, or the
@@ -418,19 +403,16 @@ means. Empty output has to earn the status of evidence.
Three properties of the scan's form are load-bearing, and each was
learned from a report. The guard's `parsed` count is derived by its own
command, never by a counter incremented inside the printing loop: a
-counter that rides the output stream lives in a subshell the moment the
-loop is piped (`done | grep …`), and the guard then fires "0 headers
-parsed" directly under a screen of correctly printed headers. Files are
-enumerated with `find`, not a glob: under zsh's default `nomatch` an
-unmatched `"$d"/*.md` aborts the whole `for` before its first iteration
-(a fresh install's empty log errored where the answer was "no
-observations", past a dead `[ -e "$f" ] || continue`). And the guard is
-an `if` block, not a trailing `&&` chain: a chain whose last test is
-false leaves the block with exit status 1 on every healthy scan, which a
-harness that surfaces exit codes reported as failure at exactly the step
-whose job is to say whether the log could be read. When adapting a
-snippet, keep the guard out of the stream it guards, enumerate without
-globs, and end on a statement whose status is 0 when nothing is wrong.
+counter riding the output stream lives in a subshell the moment the loop
+is piped, and the guard then fires "0 headers parsed" under a screen of
+correctly printed headers. Files are enumerated with `find`, not a glob:
+under zsh's default `nomatch` an unmatched `"$d"/*.md` aborts the whole
+`for` before its first iteration (a fresh install's empty log errored
+where the answer was "no observations"). And the guard is an `if` block,
+not a trailing `&&` chain, whose false last test exits 1 on every healthy
+scan. When adapting a snippet, keep the guard out of the stream it
+guards, enumerate without globs, and end on a statement whose status is 0
+when nothing is wrong.
**Snippets spanning several tool calls must re-derive their own paths.**
Shell state does not carry between tool calls in most harnesses, so a
@@ -446,12 +428,11 @@ begins with `=` is expanded as a command path.** Both run correctly under
bash, so a snippet pre-flighted there ships them. A list carried in a
variable and looped over (`for f in $names`) runs its body once, over the
whole string, so a membership test built that way is always false or
-always true — and moves no count, because a count guard counts files while
-the defect is in the names. A bare `echo ====` inside a compound command
-aborts it with `=== not found`, and everything after it is lost. Never
-carry a list in a variable: write it to a file under the workspace and
-read it back with `while IFS= read -r`, or compare two such files with
-`comm`; quote any word that starts with `=`.
+always true, and no count guard sees it, because the defect is in the
+names. A bare `echo ====` inside a compound command aborts it with `===
+not found`. Never carry a list in a variable: write it to a file under
+the workspace and read it back with `while IFS= read -r`, or compare two
+such files with `comm`; quote any word that starts with `=`.
### Why the session-start scan does not satisfy the per-skill check
@@ -461,9 +442,8 @@ scope (every skill vs one), different depth (frontmatter vs body),
different moment (session start vs the point the skill's rules are
applied). Both answer "have I looked at the log?", so running this one
discharges the felt obligation and makes the targeted one feel redundant
-while leaving its function unperformed — awareness of a hundred titles does
-not survive as recall of the one relevant body twenty tool calls later.
-Retrieval has to happen where the decision is made.
+while leaving its function unperformed: awareness of a hundred titles is
+not recall of the one relevant body twenty tool calls later.
### An empty scan over a non-empty log is a broken command
@@ -529,54 +509,48 @@ to stop the counter rewinding becomes the thing that rewinds it.
nothing*, one that *ran and broke*, one that *was never permitted to
run* and one that *has not finished* (below) all return the same thing,
and only the first is a fact about the world. The third has no natural
-tell: nothing is broken, so no
-`BROKEN` guard fires, and the refusal message is easy to summarise away as
-"nothing found". Where a command can be refused by a policy layer above the
-shell — see "A refused print is not an empty log" — the guard covers the
-refusal too, and the refusal is reported in its own words.
+tell: nothing is broken, so no `BROKEN` guard fires, and the refusal is
+easy to summarise away as "nothing found". Where a policy layer above the
+shell can refuse a command — "A refused print is not an empty log" — the
+guard covers the refusal too, reported in its own words.
**The guard is scoped by what a command IS, not by what it looks like.**
-Both named instances above — `SCAN COMMAND BROKEN`, `ID COMMAND BROKEN` —
-are log-reading snippets shipped inside this skill, so the rule reads, in
-practice, as being about *those*. It is not, and the gap is where it costs
-most: the one-line environment probes run ad hoc mid-investigation, whose
-empty result goes straight into a runbook or an observation body as a fact
-(`ls /usr/bin/*askpass* …` in an interactive zsh prints `no matches found`
-— a glob error, not an answer — and "no askpass helper present" gets
-written down). Apply it to **any command whose empty or zero output is
-about to become a claim**: pair it with a second probe by different means,
-or state the result as "the probe returned nothing" rather than "there is
-nothing".
+Both named instances above are log-reading snippets shipped inside this
+skill, so the rule reads, in practice, as being about *those*. It is not,
+and the gap is where it costs most: the one-line environment probes run
+ad hoc mid-investigation, whose empty result goes straight into a runbook
+or an observation body as a fact (`ls /usr/bin/*askpass* …` in an
+interactive zsh prints `no matches found` — a glob error, not an answer —
+and "no askpass helper present" gets written down). Apply it to **any
+command whose empty or zero output is about to become a claim**: pair it
+with a second probe by different means, or state "the probe returned
+nothing" rather than "there is nothing".
**When the instrument is an external process, the independent probe
exercises the same code path.** For a literal path the second count is
another read of the same directory by other means. For a CLI invoked
-from a non-interactive shell, "different means" is satisfied to the
-letter by a sibling subcommand — `--version` prints, so the binary
-works — and that proves nothing about whether the subcommand under test
-can report to a pipe at all: a subcommand that renders only through an
+from a non-interactive shell, a sibling subcommand (`--version` prints,
+so the binary works) proves nothing about whether the subcommand under
+test can report to a pipe at all: one that renders only through an
interactive terminal UI prints nothing and exits 0 when piped, for a
-valid result, an invalid one and no result alike, byte-identical to a
-genuine empty answer. So the probe is the same subcommand with a
-known-bad argument. If that also returns empty with a success exit, the
-path is TTY-gated (or otherwise silent under this invocation), the
-instrument cannot answer the question, and the correct output is to
-hand the command to an interactive terminal rather than report "none
-found".
+valid result, an invalid one and no result alike. So the probe is the
+same subcommand with a known-bad argument. If that also returns empty
+with a success exit, the path is TTY-gated, the instrument cannot answer
+the question, and the correct output is to hand the command to an
+interactive terminal rather than report "none found".
**A number read from a file another process is still writing is
provisional until that process is known to have exited.** This is the
fourth state, and a second count by different means reads the same
unfinished source and is just as empty, so two independent probes agree on
a false negative with full confidence. The partial file is not visibly
-partial: `grep`, `awk` and `sed` flush per line to a terminal and per
-block to a file or pipe, so a producer still running that has found
-nothing *yet* is byte-identical to one that finished and found nothing,
-and a harness's interim-read affordance for a backgrounded command is not
-a completeness signal. So for this class the guard is a liveness-and-exit
-check — the producer's exit status, or `pgrep` on its pattern — run before
-the interim output is interpreted at all, never as a cross-check after a
-plausible-looking empty result.
+partial: `grep`, `awk` and `sed` flush per block to a file or pipe, so a
+producer still running that has found nothing *yet* is byte-identical to
+one that finished and found nothing, and a harness's interim read of a
+backgrounded command is not a completeness signal. So for this class the
+guard is a liveness-and-exit check — the producer's exit status, or
+`pgrep` on its pattern — run before the interim output is interpreted at
+all, never as a cross-check after a plausible-looking empty result.
**When the instrument is code written in this session, its input coverage
is unverified by construction — print what it ingested, not only what it
@@ -587,10 +561,9 @@ session-written code is a **coverage assertion before any result**: print
the count of terms, rows or files the instrument read and assert it
against the canonical source's own count (the block's line count, the
directory's file count, the table's row count) — a mismatch fails the step
-rather than degrading to a heuristic. The count is the guard; the hits are
-the finding, green or empty: "0 hits" is a claim about the corpus only
-once the instrument is known to see the corpus (the timelessness scan in
-`skill-authoring.md` records which patterns ran for exactly this reason).
+rather than degrading to a heuristic. "0 hits" is a claim about the
+corpus only once the instrument is known to see the corpus (the
+timelessness scan in `skill-authoring.md` records which patterns ran).
**A populated result gets the guard too, and is questioned less than a
zero because it looks like evidence.** Five shapes pass every
@@ -613,9 +586,8 @@ context. Read termination metadata (`finish_reason`, `done_reason`,
`truncated`, an exit code) next to the content it qualifies, because
looking complete is exactly what truncated output does. Capture an exit
status in the statement right after the command (`cmd; rc=$?`), never
-inside a string that also runs a command substitution: in
-`echo "$(basename "$d") exit=$?"` bash reports the substitution's
-status, not the command's, and other shells differ. And for a new alarm
+inside a string that also runs a command substitution (`echo "$(basename
+"$d") exit=$?"` reports the substitution's status). And for a new alarm
or error branch, count the real inputs that reach it today: zero means
the input is missing or the branch is unnecessary, and a green unit test
does not tell the two apart.
@@ -627,12 +599,10 @@ agent's own reasoning, it is unverified until something outside that
inference returns it. State the mechanism as a hypothesis, name the
observation that would settle it, and when the check costs minutes and
being wrong costs an irreversible action, run the check before answering
-rather than after being challenged. The tell that separates this from ordinary uncertainty is
-**repetition**: a first confident answer is a guess; repeating it under
-implicit doubt without going to look is the moment the guard should fire,
-because repetition feels like consistency and is entrenchment. Being
-accidentally right is not being reliable, and the user cannot tell the
-two apart from outside.
+rather than after being challenged. The tell is **repetition**: a first
+confident answer is a guess; repeating it under implicit doubt without
+going to look is entrenchment, and being accidentally right is not being
+reliable.
### A refused print is not an empty log
@@ -674,34 +644,31 @@ group and a pipe — as unverifiable: it cannot be matched against an
allowlist, so it never runs. Two failure shapes follow, and neither is
visible afterwards: the agent rewrites the snippet into a subtler
compound, is refused again, and gives up; or it concludes the protocol
-is unavailable in this environment and proceeds with the user's task,
-having activated nothing. A skipped protocol leaves exactly the artefact
+is unavailable here and proceeds, having activated nothing — the artefact
a protocol that found nothing leaves.
**The snippet is one implementation of the step; the STEP is the
requirement.** When the harness declines a command as unverifiable, do
not rewrite it into a cleverer compound — the refusal is about shape, and
a cleverer compound is the same shape. This ladder answers a refusal of a
-command's *shape* only, where the flat form is exactly what the policy
-layer can check. A refusal that names the content or the target — the
-print refusal above, a denied path — is a denial: report it in its own
-words and do not fetch the same content another way. Degrade to flat,
-single-purpose
-commands over the absolute path, one per call, and do the combining
-yourself: list the directory and the archive, extract the frontmatter
-fields with one `grep`, read `.id-floor`, and take the maximum by hand
-where a maximum is needed. The guard still applies — a non-empty listing
-with no ids extracted is a broken read, not an empty log — and the
-`checkpoints.log` line is still written. State in the session which form
-ran, so a later reader can tell a degraded run from a skipped one. For a
-write, the flat form already exists: `scripts/new-observation.sh`,
-invoked by absolute path, is one command with no shell operators, and it
-is the only write path wherever it can run. The scan has the same flat
-form, `scripts/session-start-scan.sh` invoked by absolute path, so it is
-the ladder's first rung; the flat reads follow it, for when it is refused
-too or cannot run. Every mandatory step that
-ships a command owns a sentence saying what remains mandatory when the
-command is unavailable; this is that sentence for the scan.
+command's *shape* only. A refusal that names the content or the target —
+the print refusal above, a denied path — is a denial: report it in its
+own words and do not fetch the same content another way. Degrade to flat,
+single-purpose commands over the absolute path, one per call, and do the
+combining yourself: list the directory and the archive, extract the
+frontmatter fields with one `grep`, read `.id-floor`, and take the
+maximum by hand where one is needed. The guard still applies — a
+non-empty listing with no ids extracted is a broken read, not an empty
+log — and the `checkpoints.log` line is still written. State in the
+session which form ran, so a later reader can tell a degraded run from a
+skipped one. For a write, the flat form already exists:
+`scripts/new-observation.sh`, invoked by absolute path, is one command
+with no shell operators, and the only write path wherever it can run.
+The scan's flat form, `scripts/session-start-scan.sh` by absolute path,
+is the ladder's first rung; the flat reads follow it, for when it is
+refused too or cannot run. Every mandatory step that ships a command owns
+a sentence saying what remains mandatory when the command is unavailable;
+this is that sentence for the scan.
The ladder, one command per call, each with no shell operator a shape
classifier could decline:
@@ -738,18 +705,16 @@ default, because each member is maintained only in the sessions that use
it and nobody looks at the set (measured in real libraries: a rule
applicable to every member of a five-skill family present in one; a rule
whose own text says it "applies to any file-writing script" present in
-one of four, while two of the other three break the same way). Nobody
-removed anything; some members grew and others did not.
+one of four). Nobody removed anything; some members grew and others did not.
**Why the check has to be a write-time step rather than a habit.** An
insight found while using one member usually applies to the rest, and
nothing in the ordinary workflow asks — so `skill:` collapses to the one
-skill in front of you, and the divergence has no symptom until someone
-reads two members side by side at a drift audit, months later. The
-`skill:` field is already a list, so multi-skill observations are
-expressible; the mechanism exists, the *check* does not, and a list field
-with no rule to populate it collapses to a single value. Four parts, in
-increasing cost:
+skill in front of you, and the divergence has no symptom until a drift
+audit reads two members side by side, months later. The `skill:` field
+is already a list; the mechanism exists, the *check* does not, and a list
+field with no rule to populate it collapses to a single value. Four
+parts, in increasing cost:
**1. Declare the families and the pattern groups —**
`skill-observations/skill-families.md`. The registry holds two kinds of
@@ -956,14 +921,13 @@ form is valid in every POSIX shell and bash version; the scripts keep it.
`/bin/bash` on macOS, not only under the shell your session happens to have.
`bash -n <file>` proves parsing only (safe against a snippet that would
write to the log); a `set -u` script on bash 3.2 also dies at run time on
-`"${arr[@]}"` of an EMPTY array, which bash 4.4+ passes silently, and it
-dies on the success path — the empty "conflicts" list a green run reports
-unattended. So write every possibly-empty expansion as
-`${arr[@]+"${arr[@]}"}`, wrap a command that must not receive zero
-arguments in `[ ${#arr[@]} -gt 0 ]` (`git reset -q HEAD --` with no paths
-resets everything), and dry-run the empty-array path before the populated
-one. The shipped scripts use no arrays; the rule binds snippets written
-against this skill's guidance.
+`"${arr[@]}"` of an EMPTY array, which bash 4.4+ passes silently — and it
+dies on the success path, the empty list a green run reports unattended.
+So write every possibly-empty expansion as `${arr[@]+"${arr[@]}"}`, wrap
+a command that must not receive zero arguments in `[ ${#arr[@]} -gt 0 ]`
+(`git reset -q HEAD --` with no paths resets everything), and dry-run the
+empty-array path before the populated one. The shipped scripts use no
+arrays; the rule binds snippets written against this skill's guidance.
### The guard line, the sweep's count and the noclobber create
@@ -996,9 +960,7 @@ of `[ -e "$f" ]` — the full path, slug included — cannot catch the
collision that actually happens: two writers deriving the same number with
*different* slugs produce two different paths, both creates succeed, and
two files share one id with no error anywhere. A guard is keyed on the
-invariant it protects; noclobber protects a path, the invariant is a
-unique number, and a guard on the path passes every violation of the
-number that uses a different slug — which is all of them. So the guard
+invariant it protects, and the invariant is a unique number. So the guard
asks whether any file with the derived prefix exists in `observation-log/`
or `archive/` (`find … -name 'NNNN-*.md'`, never a bare glob), and halts
if one does. It fires when the derivation is stale — the id came from
@@ -1019,11 +981,10 @@ for it, and is the state in which skipping feels most reasonable. Those are
evidence 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. If a collision happens anyway it is harmless — distinct files,
-nothing lost — but should be fixed on discovery rather than left for a
-review to notice: derive a correct id with the snippet, `mv` the newer file
-to that prefix, and edit its `id:` frontmatter field to match. Both are
-ordinary single-file operations; no other entry is touched.
+three inputs and the reason the command exists. A collision that happens
+anyway is harmless — distinct files, nothing lost — and is fixed on
+discovery: derive a correct id with the snippet, `mv` the newer file to
+that prefix, and edit its `id:` field to match; no other entry is touched.
**The id printed by the session-start scan is never an input to a write.**
Awareness is the wrong source for a maximum; the script (core) is the
@@ -1048,23 +1009,20 @@ Harnesses commonly instruct the agent to issue independent tool calls in
one block, for latency. Observation writes look independent (different
files, no shared variable) and are not: each one's id depends on the state
the previous one leaves behind, so two writes dispatched in the same block
-both read the same maximum and mint the same number. This is a third source
-of collision, beside a parallel session and a subagent of this session
-(which inherits the same activation instruction and the same log), and the
-only one that lives entirely inside a single agent's own turn, where no
-caution about "other writers" reaches. When several observations are due,
-write them one at a time, each after the previous write has completed.
+both read the same maximum and mint the same number — a third source of
+collision beside a parallel session and a subagent, and the only one that
+lives inside a single agent's own turn. When several observations are
+due, write them one at a time, each after the previous write has completed.
### Floor staleness — the floor below the highest active prefix
`.id-floor` is only a safety net if every issuer updates it. The
max-of-three derivation absorbs a lagging floor without a collision, so the
lag is invisible in ordinary use — until the active directory is archived
-down, when a floor that lags is exactly the precondition for the counter
-restarting over ids already issued. The lag is detectable: **floor < highest
-active prefix means an issuer skipped the floor write**, and whatever wrote
-those files did not run the snippet. The scan may assert it; the check is one
-line, and it belongs after the scan's counts, before the content print:
+down, when a lagging floor is the precondition for the counter restarting
+over ids already issued. **Floor < highest active prefix means an issuer
+skipped the floor write** and did not run the snippet. The check is one
+line, after the scan's counts and before the content print:
```bash
floor=$(sed '1!d; s/[^0-9]//g' "$d/archive/.id-floor" 2>/dev/null)
@@ -1086,19 +1044,17 @@ in a log you know is populated, HALT and re-probe the structure (is there
an `observation-log/`? a `log.md.migrated`?) — a parallel session may have
migrated or reorganised the storage. Never let an append silently recreate
a missing target: that converts a migration signal into corruption (see
-`migration.md` on coexistence with live sessions). A writer's model of
-shared mutable state is only as fresh as its last read. An empty read
-over content you know exists is the same signal ("An empty scan over a
+`migration.md` on coexistence with live sessions). An empty read over
+content you know exists is the same signal ("An empty scan over a
non-empty log is a broken command", above).
### Why this is the entire concurrency story
Because every observation lives in its own file, a new observation never
touches another entry's bytes, so it cannot truncate, overwrite or renumber
-anyone else's work: per-file isolation removes the overwrite and
-lost-write failure modes of a shared file. Two parallel sessions picking
-the same id leave two files sharing a number — harmless as long as the
-slugs differ ("Run the snippet immediately before every write", above);
+anyone else's work. Two parallel sessions picking the same id leave two
+files sharing a number — harmless as long as the slugs differ ("Run the
+snippet immediately before every write", above);
the script's number claim prevents it for runs at the same moment, the
prefix guard catches a stale derivation at write time, the `noclobber`
create refuses the one path an identical id AND slug resolve to, and the
@@ -1293,10 +1249,9 @@ like one. `git checkout -- <path>`, `git stash`, `git reset --hard`, a
branch switch carrying local modifications, a rebase that drops a hunk,
and above all `git clean -fd` destroy observation files as thoroughly as
any edit; the newest files are the most exposed, because a just-written
-observation is an *untracked* file until someone commits it, and `git
-clean` exists to delete exactly those — and these commands get run
-reflexively as housekeeping, when a continuously written log is almost
-always what makes the tree dirty. Rules: before any git operation that can
+observation is an *untracked* file until someone commits it, and these
+commands get run reflexively as housekeeping, when a continuously written
+log is what makes the tree dirty. Rules: before any git operation that can
discard working-tree state, copy `observation-log/` somewhere outside the
repository, and afterwards confirm every file this session wrote still
exists, re-creating from the copy if not. **Prefer committing pending
@@ -1373,9 +1328,19 @@ older_than_today() { # $1 = a YYYY-MM-DD date
```
The archive is flat: the resolution date lives in each file, so no dated
-archive filename is needed. Legacy `log-YYYY-MM-DD.md` files from a
-pre-3.0 install sit beside the per-file archive untouched; they are not
-converted (see `migration.md`) and are not scanned.
+archive filename is needed. The directory has held three generations of
+layout: entries archived before the dated rollups existed, which a review
+cleared in one pass and no file now holds — unrecoverable, so the id
+sequence starts at the first entry a rollup kept, a scar rather than an
+offset; legacy `log-YYYY-MM-DD.md` rollups from a pre-3.0 install, left
+beside the per-file archive untouched, not converted (see `migration.md`)
+and not scanned; and the per-observation `NNNN-slug.md` files the sweep
+writes. Any enumeration of "the whole log" covers BOTH file generations,
+and its count is reconciled against an independent handle — the id range,
+the date range, the directory's byte total — before anything is computed
+over it: a walk keyed on the current filename pattern returns a clean,
+plausible, silently partial set. The review's Step 1 asserts the id
+sequence contiguous across both directories (`weekly-review.md`).
## Referencing observations
@@ -1403,6 +1368,14 @@ action, and riding it on a tool call already being made (presenting a
file, rendering a deck, completing a todo batch) removes the separate act
of memory.
+**A finding met while resolving or discussing another observation gets
+its own file in the same turn.** A `resolution:` field, a summary line or
+a chat aside is never its carrier: nothing scans a resolution for new
+findings, so "worth a look later" written there is a write to the log
+directory that no reader of the log reaches — the rule a fan-out brief
+imposes on delegates ("findings for the parent to log") applies to the
+parent itself.
+
**A claimed write is not a write.** Every rule above binds on the write;
the summary that reports it needs its own rule, because a closing line
can name ids and titles in exactly the form a true one takes, discharge
diff --git a/references/signals.md b/references/signals.md
index 9a01b80..29616ba 100644
--- a/references/signals.md
+++ b/references/signals.md
@@ -2,13 +2,8 @@
Load triggers: unsure whether something is worth logging or generalises; sorting many candidate observations; deciding in a review what a skill should lose; a defect that is not the deliverable takes a second hypothesis; the same rule broken a second time, before proposing a fix; before writing any "later" into a recommendation
-The core skill carries the short trigger list. This file is the full
-catalogue with examples. Load it when you are unsure whether something is
-worth logging, when a session is producing many candidate observations and
-you want to sort them, and during a review when deciding what a skill
-should lose as well as gain.
-Also load it when a defect that is not the deliverable is consuming the
-session, and before writing any "later" into a recommendation.
+The core skill carries the short trigger list; this file is the full
+catalogue with examples, loaded on the triggers above.
## Contents
@@ -49,6 +44,11 @@ problems, positive signals, or neutral gaps. Examples:
- an undocumented use case;
- feedback that generalises;
- a wrong assumption;
+- the skill states something the session's own evidence — tool output, a
+ live page, a file — contradicts: log it even when the user never
+ notices; this is the runtime counterpart of the Timelessness rule
+ (`skill-authoring.md`), catching the current-state claim that slipped
+ through at authoring time;
- new tooling obsoletes a step;
- corrections forming a pattern;
- a principle that applies to other skills too;
diff --git a/references/skill-authoring.md b/references/skill-authoring.md
index e98d854..b657478 100644
--- a/references/skill-authoring.md
+++ b/references/skill-authoring.md
@@ -1,6 +1,6 @@
# Skill Authoring — structure, taxonomy, licensing, confidentiality, editing rules
-Load triggers: writing or substantially changing any skill file, setup work and new skills included; generalising an open-source observation's Principle (confidentiality layers); classifying a skill or observation as open-source or internal; propagating a cross-cutting principle; the feedback pre-flight before drafting a report upstream; the upstream check for a third-party project; a skill target that resolves but may not be able to run
+Load triggers: writing or substantially changing any skill file, setup work and new skills included; generalising an open-source observation's Principle (confidentiality layers); classifying a skill or observation as open-source or internal; propagating a cross-cutting principle; the feedback pre-flight before drafting a report upstream; the upstream check for a third-party project; a skill target that resolves but may not be able to run; designing a routing or behavioural eval, or reading a verification result for a skill change
Load this before creating any skill or making substantial changes to one.
@@ -55,76 +55,66 @@ creating or improving any skill ask: "Does it have rules? Does it have a
mechanism to enforce them?" If not, add one.
**Embedded commands are pre-flight items too — execute before you ship.**
-Prose rules and command snippets fail differently: a prose rule is
-re-interpreted in context on every run, so ambiguity can be caught at
-execution time; an embedded command runs verbatim, unattended, forever —
-and a subtly wrong command can read as correct on every re-read
-(`git log -1 --format=%cI --reverse` returns the NEWEST commit, because
-`-1` applies before `--reverse`, while the plausible reading is "oldest").
-Any command embedded in a skill must be executed once against real data,
-with its output inspected for plausibility, before the skill file is
-saved. An unverified snippet is among the highest-risk lines in a skill:
-it ships bugs that no re-read can catch.
-
-**Run the literal string, from a clean shell.** Verifying a command by
-running something *equivalent* verifies your paraphrase, not the
-artefact. Copy the command out of the skill file and execute that exact
-text — from a separately spawned shell, not the session you did the work
-in: a working session accumulates environment variables, interpreter
-flags, security-policy overrides, PATH entries and a working directory
-that the eventual reader will not have, and a command that passes there
-can fail on first real use from a normal terminal. Where two shells are
-available, pre-flight in the one NOT used for setup. **When the command
-under test is a guard, assert on the mechanism, not the outcome.** A
-negative test passes only when the failure occurs for the intended reason;
-with several guards over one operation, "it was rejected" is satisfied by
-any of them. Match the error text or exit code to the guard under test,
-choose inputs clearly past the threshold, and test the boundary value
-separately. **Confirm a dry-run path exists before pre-flighting anything
-with side effects**; where none exists, add one first — a test of a guard
-rail must not become the incident the guard rail exists to prevent.
+A prose rule is re-interpreted in context on every run, so ambiguity can
+be caught at execution time; an embedded command runs verbatim,
+unattended, forever, and a subtly wrong one reads as correct on every
+re-read (`git log -1 --format=%cI --reverse` returns the NEWEST commit,
+because `-1` applies before `--reverse`). Execute every command embedded
+in a skill once against real data, inspect its output for plausibility,
+and only then save the skill file: an unverified snippet ships bugs that
+no re-read can catch.
+
+**Run the literal string, from a clean shell.** Running something
+*equivalent* verifies your paraphrase, not the artefact: copy the command
+out of the skill file and execute that exact text from a separately
+spawned shell, because a working session accumulates environment
+variables, interpreter flags, security-policy overrides, PATH entries and
+a working directory the eventual reader will not have. Where two shells
+are available, pre-flight in the one NOT used for setup. **When the
+command under test is a guard, assert on the mechanism, not the
+outcome:** with several guards over one operation, "it was rejected" is
+satisfied by any of them, so match the error text or exit code to the
+guard under test, choose inputs clearly past the threshold, and test the
+boundary value separately. **Confirm a dry-run path exists before
+pre-flighting anything with side effects**; where none exists, add one
+first — a test of a guard rail must not become the incident the guard
+rail exists to prevent.
**A verification command that AGREES with you is the one to distrust.**
-Executing a snippet once, as above, does not catch this class: the command
-runs cleanly and returns a plausible number. A check that contradicts a
-strong prior gets investigated; a check that confirms one never does, so a
-right answer from a wrong instrument teaches you to trust the instrument.
-The usual form is an aggregated count, because a count is not a listing and
-a tool that collapses output for readability under-reports without saying
-so: `git status --porcelain --ignored` prints one line for an ignored
-DIRECTORY, so a `grep -c` over it reports "1" where five files are ignored,
-and only `--untracked-files=all` expands it. Before shipping a verification
-step that reports a number, confirm what the number's unit is, and
-enumerate and read the set whenever enumeration is cheap.
-
-**A list of sources is an embedded command too.** The rule above is easy to
-read as being about shell snippets, because those are what "command" looks
-like. It is not: it governs anything the skill instructs a future session to
-*use* unchecked — and a URL, an API endpoint, a database name, a file
-path or a tool invocation is exactly that. A skill whose core is "consult
-these sources" ships its sources the way another ships a command.
-
-Why this is worse than a broken shell command: a broken command fails
-loudly, and the session knows to stop. An unreachable source returns
-*something* — an empty result set, a login page, a shell — and the natural
-reading of an empty result is "nothing matched", which is a finding. The
-skill then teaches a future session to report absence where there was only
-a blocked door. Execute every source once, against real data, before the
-skill file is saved; record which ones were tried and what they returned.
+A check that contradicts a strong prior gets investigated; one that
+confirms it never does, so a right answer from a wrong instrument teaches
+you to trust the instrument. The usual form is an aggregated count,
+because a count is not a listing and a tool that collapses output for
+readability under-reports without saying so: `git status --porcelain
+--ignored` prints one line for an ignored DIRECTORY, so a `grep -c` over
+it reports "1" where five files are ignored, and only
+`--untracked-files=all` expands it. Before shipping a verification step
+that reports a number, confirm what the number's unit is, and enumerate
+and read the set whenever enumeration is cheap.
+
+**A list of sources is an embedded command too.** The rule governs
+anything the skill instructs a future session to *use* unchecked — a
+URL, an API endpoint, a database name, a file path, a tool invocation —
+not only shell snippets. It is worse than a broken command, which fails
+loudly: an unreachable source returns *something* — an empty result set,
+a login page, a shell — and the natural reading of an empty result is
+"nothing matched", so the skill teaches a future session to report
+absence where there was only a blocked door. Execute every source once,
+against real data, before the skill file is saved; record which ones were
+tried and what they returned.
**A verification that cannot come out negative is not a verification.**
Before shipping any check, ask what it would look like if the thing being
checked had failed — and if the answer is "the same", the check is
-decoration. The trap has a characteristic shape: the artefact being
-inspected was produced or touched by the same session doing the inspection.
-
-What distinguishes arrival from non-arrival is a **discriminator** — a
-value only the far side can produce: a server-assigned identifier, an
-upstream timestamp, a digest computed remotely, a field the local copy has
-no way to fabricate. Hash-matching a published artefact against your own
-source is not one, because both sides are yours. Name the discriminator
-when writing the check, and if you cannot name one, say the step is
-unverified rather than writing a check that always passes.
+decoration. The characteristic shape: the artefact being inspected was
+produced or touched by the same session doing the inspection. What
+distinguishes arrival from non-arrival is a **discriminator** — a value
+only the far side can produce: a server-assigned identifier, an upstream
+timestamp, a digest computed remotely, a field the local copy has no way
+to fabricate. Hash-matching a published artefact against your own source
+is not one, because both sides are yours. Name the discriminator when
+writing the check, and if you cannot name one, say the step is unverified
+rather than writing a check that always passes.
## Lean Content
@@ -132,25 +122,27 @@ A skill should contain only content that changes the agent's behaviour at
execution time. Move changelogs, credits beyond the author block, long
backstories, and maintainer notes to supporting docs. Do NOT cut examples,
anti-patterns, or worked scenarios — bare rules get violated more than
-rules with context. Test: would removing it change behaviour? Keep
+rules with context. Two tests per passage: would removing it change
+behaviour, and does the agent already know it? A passage that explains
+what a competent agent does unprompted (what a diff is, how YAML nests)
+is trimmed; the skill carries only what is specific to its method. Keep
per-session rules in the skill body and episodic material in reference
files loaded on demand (progressive disclosure) — a skill loaded every
session is fixed overhead and should be audited like one.
**Declare your own core ceiling, and let it only fall.** A skill opts into
the size ratchet by naming its own bound — `core_max_lines: N` in SKILL.md
-frontmatter, or a `.core-ceiling` file beside it. `validate-skill-bundle.py`
-then fails when the core exceeds it, with the instruction to move content to
-a reference file rather than raise the number. Seed it at whatever the core
-measures today: the point is not that every skill reaches some ideal size,
-it is that no skill silently grows past where it already is. **The ceiling
-follows trims down.** The validator also fails when the declared ceiling
-sits more than 3 lines above the core's count; the fix is to lower
-`core_max_lines` (or `.core-ceiling`) to the current count in the same
-commit as the trim. Every run reports `core N / ceiling M / slack S`. The
-failure shape: a check that only blocks growth leaves each trim as open
-headroom, and the next ordinary additions spend it without anyone
-deciding to.
+frontmatter, or a `.core-ceiling` file beside it — seeded at whatever the
+core measures today: the point is not that every skill reaches some ideal
+size, it is that no skill silently grows past where it already is.
+`validate-skill-bundle.py` then fails when the core exceeds it, with the
+instruction to move content to a reference file rather than raise the
+number. **The ceiling follows trims down:** the validator also fails when
+the declared ceiling sits more than 3 lines above the core's count, and
+the fix is to lower `core_max_lines` (or `.core-ceiling`) to the current
+count in the same commit as the trim — a check that only blocks growth
+leaves each trim as open headroom that the next ordinary additions spend
+without anyone deciding to. Every run reports `core N / ceiling M / slack S`.
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. **A tool one skill ships for the whole library must not carry
@@ -166,13 +158,11 @@ the reference files are not, so content belongs in the body only if it
changes behaviour every time the skill fires. **The split is the target
structure for every NEW or SUBSTANTIALLY REVISED skill, whatever its
size** — episodic material goes to `references/` from the first draft,
-not once the body has grown too big to read. A structure rule that
-switches on a line count gives one skill two shapes and a boundary every
-reader and every tool has to re-derive; starting split costs nothing at
-the small end. The ~500-line figure survives in one role only: as the
-**retrofit trigger** for an existing, not-yet-split skill — a body past
-roughly 500 lines is the point at which retrofitting stops being
-optional. Concretely:
+not once the body has grown too big to read, because a structure rule
+that switches on a line count gives one skill two shapes. The ~500-line
+figure survives in one role only: as the **retrofit trigger** for an
+existing, not-yet-split skill — a body past roughly 500 lines is the
+point at which retrofitting stops being optional. Concretely:
- **SKILL.md keeps** the mental model, the small number of rules that
change behaviour on every invocation, and a pointer list to the
@@ -187,42 +177,40 @@ optional. Concretely:
triggers" — because a pointer without a trigger reads as optional and
gets skipped. An unconditioned list of filenames is not progressive
disclosure, it is a bibliography.
+- **References stay one level deep.** A reference file points back to
+ the core, not onward to another reference — a load that depends on a
+ second load is the one that gets skipped — so a rule two episodes need
+ is routed through the core's pointer list, unless no pointer can carry it.
-Splitting also creates the seams that make a large skill maintainable: a
-monolithic body has no natural edit boundary, so every change touches the
-whole file and every edit risks the rest. Retrofitting existing large
-skills is a separate, lower-priority job — the default binds immediately
-for new work and for any revision substantial enough that the body is
-being rewritten anyway.
+Splitting also creates the edit seams a monolith lacks. Retrofitting
+existing large skills is a separate, lower-priority job — the default
+binds immediately for new work and for any revision substantial enough
+that the body is being rewritten anyway.
**For any skill intended for publication, progressive disclosure is
-mandatory, not the default for large ones.** A readiness check verifies
-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` never
-points at (no pointer list or section map naming a file in it), or a
-`SKILL.md` above the line budget the review sets with nothing loaded on
-demand.** The budget is the review's call; the
-existing cores sit in the 400–750 range and are the reference points. A
-flat skill is a skill that will need a restructure before it can ship, and
-the restructure is done at the live skill through the ordinary
-review-and-install path — never in the repo, where the installed copy and
-the published tree would diverge at once.
+mandatory, not the default for large ones.** Nothing encodes structure
+unless a check is written for it, so define "flat" mechanically: **no
+`references/` directory, or one the `SKILL.md` never points at (no
+pointer list or section map naming a file in it), or a `SKILL.md` above
+the line budget the review sets with nothing loaded on demand.** The
+budget is the review's call; the existing cores sit in the 400–750 range
+and are the reference points. A flat skill needs a restructure before it
+can ship, done at the live skill through the ordinary review-and-install
+path — never in the repo, where the installed copy and the published
+tree would diverge at once.
**A reference file is shaped by its TRIGGERS, not its line count.** The
-core's size ceiling does not transfer to reference files, because their
-cost is conditional: the core is loaded in full every session, so a line
-there taxes every consumer; a reference file loads only when its episode
-fires, so a long file that loads rarely is cheap. The rule: a reference
-file serves one episode, or a set of episodes that reliably co-occur.
-Splitting is indicated when the count of distinct load triggers into one
-file grows, whatever its size — each trigger pays for every other
-episode's content — and a long single-episode file is correctly shaped
-and must not be split to satisfy a size rule. One measurement of this
-skill's own bundle (lines / load triggers declared in each file's
-header), copied from the validator's `reference shape` line — refresh it
-from that line, never by hand:
+core is loaded in full every session, so a line there taxes every
+consumer; a reference file loads only when its episode fires, so a long
+file that loads rarely is cheap and the core's ceiling does not transfer.
+The rule: a reference file serves one episode, or a set of episodes that
+reliably co-occur. Splitting is indicated when the count of distinct load
+triggers into one file grows, whatever its size — each trigger pays for
+every other episode's content — and a long single-episode file is
+correctly shaped and must not be split to satisfy a size rule. One
+measurement of this skill's own bundle (lines / load triggers declared in
+each file's header), copied from the validator's `reference shape` line —
+refresh it from that line, never by hand:
| file | lines | triggers |
|---|---:|---:|
@@ -235,17 +223,16 @@ from that line, never by hand:
| `signals.md` | 234 | 6 |
A line ceiling flags the largest file first — the one that needs no
-change, since a review loads it whole as a unit — and cannot tell it
-from the file that twenty separate moments in a session each pull
-in. So `scripts/validate-skill-bundle.py` prints the per-file trigger
-count on every run, and gates growth only for a skill that opts in with
-per-file ceilings ("Reference-file ceilings — the growth barrier",
-below): there the declared count picks the remedy for a file that
-outgrows its ceiling, split above 12 triggers, trim or a reasoned raise
-at 12 or fewer.
-When a split is made, it needs a load-observation test per moved episode
-(below), and never two structural splits in one test period — a
-regression could not be attributed to either.
+change, since a review loads it whole — and cannot tell it from the file
+that twenty separate moments in a session each pull in. So
+`scripts/validate-skill-bundle.py` prints the per-file trigger count on
+every run, and gates growth only for a skill that opts in with per-file
+ceilings ("Reference-file ceilings — the growth barrier", below): there
+the declared count picks the remedy for a file that outgrows its ceiling,
+split above 12 triggers, trim or a reasoned raise at 12 or fewer. A split
+needs a load-observation test per moved episode (below), and never two
+structural splits in one test period — a regression could not be
+attributed to either.
**The load trigger is a new failure point the monolith did not have.** A
split delivers its saving only if the reference file is actually fetched
@@ -263,21 +250,18 @@ criteria for any split must test the LOADING, not just the content split:
enforcement — a checklist step the episode cannot complete without —
rather than firmer wording, per this file's own pre-flight principle.
-Add a runtime backstop as well: instruct the agent to log an observation
-whenever it notices an episode was handled without its reference loaded.
-Without it the negative case has no recording channel, and the trial
-cannot distinguish "not yet observed" from "not happening" (see Trial
-design below, which governs how such a trial must be instrumented so
-naming the trigger does not become the intervention).
+Add a runtime backstop: instruct the agent to log an observation whenever
+it notices an episode was handled without its reference loaded, or the
+negative case has no recording channel and the trial cannot distinguish
+"not yet observed" from "not happening" (Trial design, below).
## Configuration vs process — the three-container rule
A skill that needs values specific to one person, team or installation —
an identity, an account name, a private blocklist, a set of local
-exclusions — needs **three containers, not two**. With only the skill and
-its invoking prompt available, the specifics must land in one of them: in
-the skill they block publication and generalisation; in the prompt they
-keep it fat and drifting. The third container resolves the tension:
+exclusions — needs **three containers, not two**: in the skill the
+specifics block publication and generalisation; in the prompt they keep
+it fat and drifting. The third container resolves the tension:
1. **The skill** holds the process, and *reads* configuration.
2. **A private config file** holds the specifics. The skill names its
@@ -290,56 +274,54 @@ skill a first-run fallback that asks for the values and offers to write
the file when none exists — those few lines are what make the skill
usable by someone who is not its author. The test for whether a line
belongs in config rather than in the skill: **would a different person
-running this skill need a different value here?** Measured on a real
-conversion, the extraction is smaller than it looks — most identifying
-lines are a proper name where a role noun ("the maintainer") reads
-identically.
+running this skill need a different value here?** The extraction is
+smaller than it looks — most identifying lines are a proper name where a
+role noun ("the maintainer") reads identically.
**When a prompt or config duplicates a skill's rules for safety, replace
the copy with a stop condition, not a shorter copy.** Duplication
defended as insurance is the least audited kind — the argument for
copying it is also an argument against questioning the copy, so the
copies carrying the most important rules are the ones most likely to be
-silently stale.
-A copy of a rule can drift out of agreement with its source; a refusal to
-proceed without the source cannot. "If the skill did not load, stop and
-report — do not proceed from this prompt" is one line and has nothing to
-drift. Keep at most the irreversible invariants stated in both places,
-and say in the prompt that it deliberately carries no fallback copy, so a
-future editor does not helpfully re-add one.
+silently stale. A copy of a rule can drift out of agreement with its
+source; a refusal to proceed without the source cannot. "If the skill did
+not load, stop and report — do not proceed from this prompt" is one line
+and has nothing to drift. Keep at most the irreversible invariants stated
+in both places, and say in the prompt that it deliberately carries no
+fallback copy, so a future editor does not helpfully re-add one.
## Documenting an external tool surface
Applies to any skill that documents a surface someone else owns — an MCP
-server's tools, an API's endpoints, a platform's interface. The value of
-such a skill is that its claims were OBSERVED rather than inferred from
-the vendor's own descriptions, and the first version is almost always
-written after exercising only part of the surface. Documenting the
-untested majority in the same voice as the tested minority silently
-promotes vendor copy into apparent field findings, and a later reader has
-no way to tell which claims carry evidence. Dropping the untested items
-isn't the fix either — they still need listing so the agent knows they
-exist.
+server's tools, an API's endpoints, a platform's interface. Its value is
+that its claims were OBSERVED rather than inferred from the vendor's own
+descriptions, and the first version is almost always written after
+exercising only part of the surface. Documenting the untested majority in
+the same voice as the tested minority promotes vendor copy into apparent
+field findings, and a later reader cannot tell which claims carry
+evidence; dropping the untested items isn't the fix either — they still
+need listing so the agent knows they exist.
1. **Mark every item, not just the exceptions.** Give each documented
tool, endpoint or screen a visible per-item marker for verified-in-
practice versus unexercised, and state the key near the top of the
- inventory so the distinction can't be missed. Marking only the
- unexercised ones fails: an unmarked item reads as absence of
- information rather than as evidence.
+ inventory. Marking only the unexercised ones fails: an unmarked item
+ reads as absence of information rather than as evidence.
2. **Write unexercised items in a different voice.** What the vendor says,
plus what can be safely inferred about risk — "the docs describe X";
"assume this evicts current state" — never as observed behaviour. No
worked examples, no timing or quota claims, no gotchas for something
nobody has run.
-3. **Make the marker a work queue.** Add an explicit instruction that when
- an unexercised item is used, the agent reports back what it actually
- did so the entry can be rewritten and its marker promoted. Without
- that, the markers ossify into a permanent disclaimer and the skill
- never converges on evidence.
+3. **Make the marker a work queue.** Instruct the agent that when an
+ unexercised item is used, it reports back what it actually did so the
+ entry can be rewritten and its marker promoted; otherwise the markers
+ ossify into a permanent disclaimer and the skill never converges.
4. **Promote on revision.** Any substantial edit to the skill re-checks
the markers against what has been exercised since — promotion is part
of the edit, not a separate project.
+5. **Name each MCP tool in the `Server:tool` form** (`Analytics:report`),
+ never bare: two servers can expose a `search`, and the qualified form
+ is the one a reader can resolve to a tool list.
Principle: documentation that covers less but says which claims are tested
is more useful than documentation that blends the two, because the
@@ -386,9 +368,8 @@ with what the skill does: not credits, and not an edge case such as the
feedback offer. Attribution lives where it costs nothing and survives
conversion: the frontmatter (only `name` and `description` load at
discovery, so extra fields are free) and a one-line footer, which survives
-tools that strip frontmatter when converting a skill into another agent's
-rules or instruction format. The feedback offer sits in its own short
-section just before the footer, where it applies.
+tools that strip frontmatter on conversion. The feedback offer sits in
+its own short section just before the footer, where it applies.
```markdown
---
@@ -436,18 +417,16 @@ benchmarked-optimisation tools, which score a skill against a test set,
complement it. Its attribution block carries the canonical-source line,
`metadata.source` as in the template above, which is what lets a
downstream user route a finding upstream. SKILL.md, loaded every session,
-gets at most a one-line pointer to the README section. A "scaffolded with"
-footer was considered and rejected: it serves the author, not the reader,
-and forks strip it.
+gets at most a one-line pointer to the README section. No "scaffolded
+with" footer: it serves the author, not the reader, and forks strip it.
**Distribution-channel note:** the template's feedback routing assumes
-public-repo distribution. Only reference a repository URL once that
-repository actually exists — never write a reference to an artefact before
-the artefact exists. Until publication, route feedback to direct author
-contact only; when the skill is published, inject the repo URL at publish
-time. When an open-source skill is distributed privately (shared directly
-with a client rather than published), keep the direct-author-contact
-routing — a public-repo reference is wrong for that channel.
+public-repo distribution. Reference a repository URL only once that
+repository exists; until publication, route feedback to direct author
+contact only, and inject the repo URL at publish time. An open-source
+skill distributed privately (shared directly with a client rather than
+published) keeps the direct-author-contact routing — a public-repo
+reference is wrong for that channel.
**Feedback pre-flight — run before drafting any issue or PR.** Routing
feedback to a fixed channel skips the two questions that decide whether it
@@ -466,15 +445,14 @@ where PRs are welcome, otherwise as an issue; (3) whenever the report
cites or quotes upstream text — a line number, a count, a rule's wording —
fetch each cited file from upstream HEAD and compare it with the copy you
cite from (`curl` the raw file, then `cmp`), and state the outcome and the
-command in the report: a citation from an unchecked local copy reads
-exactly like one from HEAD, and a clean install is where nobody suspects
-drift; when the copies differ or the local install is modified, re-read
-the defect itself at HEAD, because it may already be fixed; a draft
-written in an earlier session is checked again before it is sent; (4)
-match the repository's house style
-for reports. The pre-flight is where this skill reaches the network, and
-only after the user has asked for a report to be drafted; nothing before
-that point fetches anything.
+command in the report, because a citation from an unchecked local copy
+reads exactly like one from HEAD; when the copies differ or the local
+install is modified, re-read the defect itself at HEAD, because it may
+already be fixed; a draft written in an earlier session is checked again
+before it is sent; (4) match the repository's house style for reports.
+The pre-flight is where this skill reaches the network, and only after
+the user has asked for a report to be drafted; nothing before that point
+fetches anything.
**Pre-send gate — run on the finished draft, after the pre-flight.** The
pre-flight decides whether and where a report goes; nothing reads the
@@ -485,17 +463,14 @@ the project or client name in each participating workspace root, hostnames,
account identifiers — expecting 0 hits, with a positive control on a text
known to contain one. A generic path segment the skill itself names
(`skill-observations`, `observation-log`) is not an identifier and stays
-off the list.
-
-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.
+off the list. 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
-what must not be in the text; neither checks that what the report says
-was observed was observed, and the author is the reader least able to see
+Neither the pre-flight nor the gate checks that what the report says was
+observed was observed, and the author is the reader least able to see
the gap, because the draft reads as a faithful summary of work they
remember. Before sending: number the draft's factual claims, its account
of how its own evidence was produced included; check each against the
@@ -512,12 +487,10 @@ factual-claims rule (`weekly-review.md`) applied where text leaves the
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 the
-draft 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.
-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** — each
+Nothing above reads the draft as a paste source, and two properties
+break in transit that no content check sees: 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** — each
field alone in its own fenced block, the fence longer than any backtick
run inside it and carrying no info string (a selection that starts on the
fence line, or on the label a viewer renders from it, has pasted the
@@ -573,17 +546,44 @@ loosening its description buys discovery at the cost of false loads, each
one a full core read in a session that did not need it.
Two guards where the description is free to change. Every added term must
-be one the author would defend as an accurate description of what the
-skill does — the test is accuracy, not search volume, and a stuffed
-description is read by the very maintainers a project pitches to; every
-added word also spends the character budget the delivery gate measures.
-And directories hold stale copies of the frontmatter, refreshed on their
-own schedule, so a change is measurable only after weeks: record the
-before state (terms searched, result positions) when the change ships, and
-compare then. The failure shape: a field named for one consumer acquires
+be one the author would defend as accurate — the test is accuracy, not
+search volume, and every added word spends the character budget the
+delivery gate measures. And directories hold stale copies of the
+frontmatter, refreshed on their own schedule, so record the before state
+(terms searched, result positions) when the change ships and compare
+weeks later. The failure shape: a field named for one consumer acquires
others once the artefact is published, and nothing in the authoring
workflow reads it from their side.
+**The description is written in the third person** — what the skill does
+and when to load it ("Audits X whenever Y is mentioned"), never addressed
+to "you": it sits beside every other installed description in the
+system prompt, where a second-person sentence reads as an instruction.
+
+**A description is routed among its neighbours, so it is only testable
+against them.** Score it with the other skills installed beside it, never
+in isolation: a trigger prompt that borrows a noun another skill owns
+measures the noun, and a description that reads well alone still loses
+its prompts to the sibling that owns one of its words. Before fixing
+anything, run the no-case control — re-measure with the new skill present
+and its own prompts removed: if the neighbours' prompts still route
+correctly the problem is confined to this skill; if not, the description
+is over-broad and is narrowed first. A negative control must be
+positively owned: a prompt asserted not to reach this skill proves
+nothing unless its declared owner demonstrably scores on it — an owner
+that matches nothing turns the assertion into two misses. Choose the
+name on meaning, then measure it against the neighbours' prompts too: a
+lexical router weights the name double, so a common verb in it
+("improve", "check", "review") steals every prompt that uses the word in
+its ordinary sense — a regression visible only in the other skills'
+prompts, never in the skill's own.
+
+**House naming: a noun-phrase kebab-case name consistent with the
+collection; the gerund form is not used here.** The name matches its
+directory (pre-delivery gate item 4). An existing skill keeps its name: a
+rename is a migration (editing rule 8) that breaks every surface that
+rule enumerates, from the repository URL to companion cross-references.
+
## Confidentiality layers
The open-source/internal boundary is a confidentiality boundary; enforce it
@@ -616,25 +616,23 @@ in layers so any one catches what others miss:
above guard one direction only: other parties' information leaking IN.
An artifact prepared FOR a specific recipient also leaks the author's
own workspace OUT: references to internal working files (analysis
- workbook filenames, private docs) that the recipient never received are
- both confusing (citing sources the reader can't open) and factual
- errors (e.g. describing them as "delivered"). Check: every referenced
- file, document, or source must be either included in the share or
- actually in the recipient's possession; replace internal-artifact
- citations with a plain description of the analysis they came from.
- Test: "can the recipient open or verify every reference in this
- document?"
+ workbook filenames, private docs) the recipient never received are
+ both confusing and factual errors (e.g. describing them as
+ "delivered"). Check: every referenced file, document, or source is
+ either included in the share or actually in the recipient's
+ possession; replace internal-artifact citations with a plain
+ description of the analysis they came from. Test: "can the recipient
+ open or verify every reference in this document?"
7. **Cross-skill reference scan (published skills)** — a skill written
inside a personal library accumulates pointers into sibling skills
- ("see {other-skill}'s Hyperlink markers"). Inside the library they
- help; published, they dangle — the reader cannot resolve them, and
- they leak the existence and naming of the author's internal tooling.
- A published skill must either work standalone or declare its
- dependency on a specific *published* open-source companion. Scan for
- references to other skills by name; each hit is (a) a declared
- published companion — keep, ideally with a repo link; (b) inlineable —
- pull the needed rule into the text; or (c) internal tooling — rephrase
- to capability language ("whatever presentation tooling the subagent
+ ("see {other-skill}'s Hyperlink markers"); published, they dangle and
+ leak the existence and naming of the author's internal tooling. A
+ published skill must either work standalone or declare its dependency
+ on a specific *published* open-source companion. Scan for references
+ to other skills by name; each hit is (a) a declared published
+ companion — keep, ideally with a repo link; (b) inlineable — pull the
+ needed rule into the text; or (c) internal tooling — rephrase to
+ capability language ("whatever presentation tooling the subagent
runs"). Make it mechanical in any publishing workflow: grep the
content against the list of installed-but-unpublished skill names.
Every pointer in a published document must resolve in the reader's
@@ -645,41 +643,35 @@ in layers so any one catches what others miss:
cores don't drift, and those notes are the expected shape of a
violation of this layer: the sync rule and the standalone rule are
each followed correctly and still jointly produce an unpublishable
- skill neither anticipated. When adding a sibling-sync or family note
- to an open-source skill that is published or a publication candidate,
- phrase the family reference in capability language from the start
- ("the sibling skills implementing this methodology for other
- platforms") or point generically at the private family registry —
- never name installed-but-unpublished skills, because the publishing
- workflow's standalone scan blocks those names, the sync itself becomes
- the publication blocker, and the only fix is rewording at the live
- skill. When a maintenance mechanism writes cross-references into an
- artefact, it must respect the publication boundary of the artefact it
+ skill. When adding a sibling-sync or family note to an open-source
+ skill that is published or a publication candidate, phrase the family
+ reference in capability language from the start ("the sibling skills
+ implementing this methodology for other platforms") or point
+ generically at the private family registry — never name
+ installed-but-unpublished skills, because the publishing workflow's
+ standalone scan blocks those names and the only fix is rewording at
+ the live skill. A maintenance mechanism that writes cross-references
+ into an artefact respects the publication boundary of the artefact it
writes into: internal registries can name internal things; public
artefacts reference them by capability, not by name.
8. **Examples are synthetic by construction, not scrubbed afterwards** —
examples, usage strings, default arguments, test fixtures and sample
- payloads are the highest-risk text in a skill and the least reviewed.
- Their whole purpose is to have been real: an example is pasted from a
- working run precisely so that it works, so live data survives a scrub
- there more reliably than anywhere else. Write them synthetic at
- authoring time — a generic label and a round number in the shape the
- argument or payload actually takes, which still teaches the format.
- This layer is prospective, and it has to be, because no term-based
- scan can back it up: a confidentiality scan matches names, domains and
- handles, and a **number** is not one of those. Nor can such a scan
- usefully be keyed on a vertical or category noun — a generic category
- word fires on nearly every file, so adding it to the tripwire list
- trades one failure mode for a worse one. A clean scan is therefore
- evidence about the listed terms only, and says nothing about whether
- an example carries a real allocation, count, date or sample payload.
- This is the house rule that every instrument gets the same guard, in
- its confidentiality form: an empty result from an instrument that
- cannot see the object is not evidence of absence. So the sweep in
- layer 3 reads examples first, not last, and the pre-publication read
- includes a human pass over every example, usage string and fixture in
- the tree — the one check no script can do for the author.
+ payloads are the highest-risk text in a skill and the least reviewed:
+ an example is pasted from a working run precisely so that it works,
+ so live data survives a scrub there more reliably than anywhere else.
+ Write them synthetic at authoring time — a generic label and a round
+ number in the shape the argument or payload actually takes, which
+ still teaches the format. No term-based scan can back this layer up:
+ a confidentiality scan matches names, domains and handles, and a
+ **number** is not one of those, nor can it be keyed on a vertical or
+ category noun without firing on nearly every file. A clean scan is
+ therefore evidence about the listed terms only — the house rule that
+ an empty result from an instrument that cannot see the object is not
+ evidence of absence. So the sweep in layer 3 reads examples first,
+ not last, and the pre-publication read includes a human pass over
+ every example, usage string and fixture in the tree — the one check
+ no script can do for the author.
9. **Justifications are failure shapes, and examples span verticals
(skills published or queued for publication)** — a rule's
justification is stated as a present-tense failure shape ("the failure
@@ -713,86 +705,84 @@ present-tense state verbs near infrastructure nouns. (Internal client
dossiers are exempt: they live in a maintenance loop where current-state
capture is the point.)
+**A superseded method is not kept as a dated `## History` section.**
+State the current method undated and put the old shape, where a reader
+may still meet it, in a collapsed `<details><summary>Old
+patterns</summary>` block beneath it: a lookup, not a revision timeline.
+
**First-party observation dates: prefer verification-based phrasing in
published skills.** Rule (b) above — dated facts stay — holds for
third-party-published facts (vendor changelogs, API announcements,
calendar-date examples). It does NOT extend to dates that reveal when the
AUTHOR observed, verified or reviewed something ("as of April 2026", "a
-June 2026 re-check"): in a published artefact those are metadata about
-the author's process, leak the internal review cadence, and read as
-staleness markers. Replace them with verification-based phrasing — "at
-last verification", "a later re-check found" — plus an explicit
-instruction for how to re-verify against the live source; readers need to
-know how to re-check a claim, not when the author last did. The same rule
-covers commit messages on published repos.
+June 2026 re-check"): in a published artefact those leak the internal
+review cadence and read as staleness markers. Replace them with
+verification-based phrasing — "at last verification", "a later re-check
+found" — plus an explicit instruction for how to re-verify against the
+live source; readers need to know how to re-check a claim, not when the
+author last did. The same rule covers commit messages on published repos.
**The prohibition, stated by what it forbids: no dated first-party
verification claim in any public artefact, in ANY date format.** The
shapes are examples subordinate to that definition, never the definition:
`YYYY-MM-DD`, `DD/MM/YYYY`, `Mon YYYY`, `Month YYYY`, `QN YYYY`, the
bare-year "as of 2026", and the sentence-position forms "on <date>" and
-"run on <date>". The list matters because a scan greps exactly the shapes it was given:
-a reviewer running the example has complied with the
-rule as written, so nothing prompts the question whether the pattern
-covers the rule. So make the check mechanical and
-auditable: any publishing workflow scans public artefacts before
-committing — a scan, not a reminder — with the pattern set in a script
-where it can be extended in one place, and **the scan records WHICH
-patterns 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.
-And a check that has passed every run is evidence about the check, not
-about the artefact — the instrument guard (`observation-log.md`, "Every
-instrument gets the same guard") applies to green results exactly as to
-empty ones. **One paired form is exempt (maintainer decision):** a
-measured fact may carry "Last verified YYYY-MM-DD · Re-test:
-`<one command>`" — the date plus a backticked re-test command, together, because
-for a fact that drifts the age is the useful part and the command keeps it
-from being a bare claim. Every other dated first-party form stays forbidden,
-including the date without its command; a publishing scan encodes the
-exemption as an exclusion in its script, never as prose.
+"run on <date>". The list matters because a scan greps exactly the shapes
+it was given, and a reviewer running the example has complied with the
+rule as written. So make the check mechanical and auditable: any
+publishing workflow scans public artefacts before committing — a scan,
+not a reminder — with the pattern set in a script where it can be
+extended in one place, and **the scan records WHICH patterns ran**; a
+green result whose coverage is unstated is unauditable. A count produced
+by an enumerated set of shapes is a **lower bound**, never a "corrected"
+figure, and a check that has passed every run is evidence about the
+check, not about the artefact — the instrument guard
+(`observation-log.md`, "Every instrument gets the same guard") applies to
+green results exactly as to empty ones. **One paired form is exempt
+(maintainer decision):** a measured fact may carry "Last verified
+YYYY-MM-DD · Re-test: `<one command>`" — the date plus a backticked
+re-test command, together, because for a fact that drifts the age is the
+useful part and the command keeps it from being a bare claim. Every other
+dated first-party form stays forbidden, including the date without its
+command; a publishing scan encodes the exemption as an exclusion in its
+script, never as prose.
**The internal-document exemption assumes a maintenance loop that is only
-prose.** The taxonomy sanctions internal skills that describe one
-installation, and those may legitimately name current state. The unstated
-assumption is that someone re-checks that state — but nothing fires when it
+prose.** Internal skills may legitimately name current state, on the
+unstated assumption that someone re-checks it — but nothing fires when it
drifts, so "internal, therefore dated facts are fine" becomes "internal,
-therefore permanently wrong".
-
-So an internal skill may carry current state only with a **named
-re-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
-re-check exists, do not record the value — record how to obtain it.
+therefore permanently wrong". So an internal skill carries current state
+only with a **named re-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 re-check exists, do not record the value —
+record how to obtain it.
## Editing skills — always start from the live file
1. The live file is the authoritative source: in Claude Code,
`~/.claude/skills/{skill}/SKILL.md`; in Cowork, a read-only mount at
`.claude/skills/{skill}/SKILL.md` (writes fail with EROFS by design).
- **That guard exists in Cowork only.** In Claude Code and most
- local-filesystem environments the same files are ordinary writable
- files and nothing stops the write — the discipline is the only thing
- preventing the overwrite. Assume you are in the unprotected case unless
- you have seen an EROFS yourself. Do not edit a skill's files in place, in
+ **That guard exists in Cowork only**: elsewhere the same files are
+ ordinary writable files and the discipline is the only thing
+ preventing the overwrite, so assume the unprotected case unless you
+ have seen an EROFS yourself. Do not edit a skill's files in place, in
any environment — staging-only is what keeps the autonomous review
- safe, and the way to make it hold where no guard exists is to begin
- every edit with the copy (`mkdir -p` the staging dir, `cp` the live
- file in, `diff -q` to prove it matches), so the live path is never the
- one in hand. **Resolve the live path before copying** (`readlink -f`,
- or `cd` into it and `pwd -P`) and prove the staged file is a distinct
- file, not only an equal one. Where the skills entry is a symlink into
- a checkout — a common dotfiles layout — `cp -R` of the entry copies the
- link, the staged path becomes a second name for the live directory,
- every "staged" edit lands in the live skill, and `diff -rq` passes
- because it compares content through whatever both paths resolve to:
- it verifies the copy is faithful, never that it is a copy. A proving
- step that reports success exactly when staging has silently become
- editing in place is worse than none. So after the copy: the staged
- path is not itself a link (`[ ! -L "$s" ]`), and its `SKILL.md` has a
- different inode from live's (`stat -c %i` on GNU, `stat -f %i` on
- macOS) — refuse to edit when they match. The manifest's install
- instructions name the resolved real path, since that is the file the
- user must overwrite.
+ safe — and begin every edit with the copy (`mkdir -p` the staging dir,
+ `cp` the live file in, `diff -q` to prove it matches), so the live
+ path is never the one in hand. **Resolve the live path before
+ copying** (`readlink -f`, or `cd` into it and `pwd -P`) and prove the
+ staged file is a distinct file, not only an equal one: where the
+ skills entry is a symlink into a checkout — a common dotfiles layout —
+ `cp -R` of the entry copies the link, the staged path becomes a second
+ name for the live directory, every "staged" edit lands in the live
+ skill, and `diff -rq` passes because it compares content through
+ whatever both paths resolve to — it verifies the copy is faithful,
+ never that it is a copy. So after the copy: the staged path is not
+ itself a link (`[ ! -L "$s" ]`), and its `SKILL.md` has a different
+ inode from live's (`stat -c %i` on GNU, `stat -f %i` on macOS) —
+ refuse to edit when they match. The manifest's install instructions
+ name the resolved real path, since that is the file the user must
+ overwrite.
2. Always base edits on a fresh read of the live file — never a workspace
copy, prior draft, or memory.
3. Before overwriting any staged/workspace copy, diff it against the live
@@ -806,20 +796,19 @@ re-check exists, do not record the value — record how to obtain it.
sync: its freshness is its sync mark, and until that mark postdates
the change under test it cannot be checked yet — say so, never
classify it (weekly-review.md, "Staged-work reconciliation gate").
- During multi-pass work in interactive
- sessions, snapshot the staged copy before each pass (weekly-review.md,
- Delivery — an unversioned staging tree keeps no other baseline) and
- re-verify the baseline before interpreting any diff: a diff
- that SHRINKS against a supposedly-fixed baseline means the baseline
- absorbed earlier changes (e.g. the user installed a staged update
- mid-session), not that edits vanished. Treat unexpected diff-stat
- direction as a baseline-moved signal, not an error in the edits.
- Recorded measurements obey the same rule: when a handoff records a
- test-merge result (a conflict count, a diff-stat), record it WITH the
- base commit or install date it was measured against, and re-run the
- test merge against the current base before planning around it — treat
- the old result as a pointer to where conflicts will cluster, not as a
- count. When a change's whole purpose is to make a class of machinery
+ During multi-pass work in interactive sessions, snapshot the staged
+ copy before each pass (weekly-review.md, Delivery — an unversioned
+ staging tree keeps no other baseline) and re-verify the baseline
+ before interpreting any diff: a diff that SHRINKS against a
+ supposedly-fixed baseline means the baseline absorbed earlier changes
+ (e.g. the user installed a staged update mid-session), not that edits
+ vanished — treat unexpected diff-stat direction as a baseline-moved
+ signal. Recorded measurements obey the same rule: when a handoff
+ records a test-merge result (a conflict count, a diff-stat), record it
+ WITH the base commit or install date it was measured against, and
+ re-run the test merge against the current base before planning around
+ it — the old result is a pointer to where conflicts will cluster, not
+ a count. When a change's whole purpose is to make a class of machinery
unnecessary, every conflict hunk in that class resolves the same way
(take the change's side), so classification matters more than the
count.
@@ -835,16 +824,15 @@ re-check exists, do not record the value — record how to obtain it.
presentation/upload tool exists (e.g. Claude Code CLI), present the
staged path and a change summary in chat instead; staging-only applies
in every environment — it's the review loop's safety property, not a
- filesystem constraint. For **every**
- skill, zip the staged directory into a `.skill`
- bundle and present the bundle, never the bare SKILL.md — one delivery
- format regardless of file count: a single-file
- delivery convention applied to a multi-file skill truncates it
- silently (the install succeeds, the skill loads, and the missing
- pieces only surface when a reference load or script call fails
- mid-task), and a convention that switches on file count leaves that
- boundary to be re-derived every time. **Pre-delivery gate — checked at the moment of
- delivery, not just at drafting time.** The item list is the gate in
+ filesystem constraint. For **every** skill, zip the staged directory
+ into a `.skill` bundle and present the bundle, never the bare SKILL.md
+ — one delivery format regardless of file count: a single-file
+ convention applied to a multi-file skill truncates it silently (the
+ install succeeds, the skill loads, and the missing pieces surface only
+ when a reference load or script call fails mid-task), and a convention
+ that switches on file count leaves that boundary to be re-derived
+ every time. **Pre-delivery gate — checked at the moment of delivery,
+ not just at drafting time.** The item list is the gate in
`weekly-review.md`, "Delivering updated skills"; what follows is the
authoring detail for the items numbered the same there: (1) every UNQUALIFIED
`references/`, `scripts/`, `assets/` path in the staged SKILL.md body
@@ -879,10 +867,9 @@ re-check exists, do not record the value — record how to obtain it.
1024 characters, with a soft warning above ~900 so a near-boundary
description gets tightened before it becomes someone else's install
error. Trigger coverage survives compression: the fix is tightening
- phrasing, not dropping triggers. Measure every skill in the delivery
- set, not just the one that failed — the pressure toward trigger-rich
- descriptions puts others near the boundary too, and only measuring the
- set reveals it; (4) `name` is kebab-case and matches the containing
+ phrasing, not dropping triggers; measure every skill in the delivery
+ set, not just the one that failed, since others sit near the boundary
+ too; (4) `name` is kebab-case and matches the containing
directory; the frontmatter parses as YAML with both required keys. A
`description:` (or `name:`) value that contains `: ` or ` #` anywhere,
or that starts or ends with a YAML-special character (`#`, `*`, `&`,
@@ -894,35 +881,31 @@ re-check exists, do not record the value — record how to obtain it.
are cut; `page#section` is not, because the comment needs the space). The
validator reporting "`name` missing" on a frontmatter that visibly has
a `name:` line is the signature of an unparseable block, not of a
- missing field: fix the quoting, not the name. The quoting rule for the
- observation-log frontmatter does not travel here by analogy; it is
- stated here because this is where skill frontmatter is authored;
+ missing field: fix the quoting, not the name;
(5) the packed archive's member paths contain no backslash — read as
RAW central-directory bytes, because CPython's `zipfile` normalises
`0x5C` to `/` on read and reports a malformed archive as clean; Windows
`Compress-Archive` produces exactly this defect for any skill with a
- subdirectory. `scripts/validate-skill-bundle.py` implements that gate's mechanical items as
- assertions and packs a well-formed bundle on any platform; run it where
- Python is available. The gate's one human read, for a published skill,
- is confidentiality layer 9 above — named, not asserted. Generally: any hard limit the consuming platform
- imposes belongs in this gate as a measurement compared to a bound in
- the same step, not as a rule the author is expected to remember — an
- unasserted metric does not merely miss defects, it manufactures
- confidence that none exist. State limits as numbers and label them as
- the consumer's. **A recommended check carries three measured numbers.**
- When proposing an automated check or a new gate rule, run each
- candidate over the existing corpus first and record, per rule: (a)
- hits on today's corpus, (b) true defects among them, (c) the
- normalisation needed to remove the rest. None of that is knowable from
- the idea alone: one candidate class fires mostly on artefacts of the
- corpus, another finds nothing and is a free lock to add today, and a
- third mixes a few real defects with legitimate content a naive rule
- would flag forever. A proposed
- guard is a claim about the future, and the cheapest evidence for it
- already exists in the artefact being audited; a rule with an
- unmeasured false-positive rate is a proposal to make people ignore a
- test. (Reading this rule while drafting does not enforce it
- at delivery; run the gate as the last step before presenting.)
+ subdirectory. `scripts/validate-skill-bundle.py` implements that gate's
+ mechanical items as assertions and packs a well-formed bundle on any
+ platform; run it where Python is available. The gate's one human read,
+ for a published skill, is confidentiality layer 9 above — named, not
+ asserted. Generally: any hard limit the consuming platform imposes
+ belongs in this gate as a measurement compared to a bound in the same
+ step, not as a rule the author is expected to remember — an unasserted
+ metric manufactures confidence that no defects exist. State limits as
+ numbers and label them as the consumer's. **A recommended check
+ carries three measured numbers.** When proposing an automated check or
+ a new gate rule, run each candidate over the existing corpus first and
+ record, per rule: (a) hits on today's corpus, (b) true defects among
+ them, (c) the normalisation needed to remove the rest — one candidate
+ class fires mostly on artefacts of the corpus, another finds nothing
+ and is a free lock to add today, a third mixes a few real defects with
+ legitimate content a naive rule would flag forever, and none of that
+ is knowable from the idea alone; a rule with an unmeasured
+ false-positive rate is a proposal to make people ignore a test.
+ (Reading this rule while drafting does not enforce it at delivery; run
+ the gate as the last step before presenting.)
Packaging hygiene: before zipping, sweep the staged tree for build
artefacts (`__pycache__/`, `*.pyc`, `.DS_Store`, `.~lock.*`) left by
in-session checks and version-control directories (`.git/`, `.hg/`,
@@ -938,14 +921,13 @@ re-check exists, do not record the value — record how to obtain it.
followed by `chmod u+w` (or `cp --no-preserve=mode`) works. For a
DIRECTORY TREE, `cp --no-preserve=mode` is NOT reliable in this
environment: it has failed with "Permission denied" while creating
- files inside copied subdirectories (`references/`, `scripts/`) even
- though top-level files copied. The only verified sequence for trees is:
- `mkdir -p` the directory structure first, then per-file `cp`, then
- `chmod -R u+w` on the staged path. A workaround documented as
- equivalent to another must be re-verified per failure surface — an
- option that works for single files can still fail for directory trees.
- Use the exact snippet in `weekly-review.md` Step 5; its notes explain
- the two details that are easy to get wrong.
+ files inside copied subdirectories even though top-level files copied.
+ The only verified sequence for trees is: `mkdir -p` the directory
+ structure first, then per-file `cp`, then `chmod -R u+w` on the staged
+ path — a workaround documented as equivalent to another must be
+ re-verified per failure surface. Use the exact snippet in
+ `weekly-review.md` Step 5; its notes explain the two details that are
+ easy to get wrong.
7. Match process rigour to the change: complex/open-source/uncertain design
→ use the skill-creator if available; internal skills with requirements
already established in conversation → write directly, flagging
@@ -954,38 +936,37 @@ re-check exists, do not record the value — record how to obtain it.
directory that restate its rules.** A rule's home is a location; its
reach is every artefact that paraphrases it, and those live in
directories the owning skill cannot see, so a grep across the skill
- folder — however thorough — reports clean. The surfaces that matter are
- the ones that execute independently of the skill: scheduled-task prompts
- above all, then activation fragments in CLAUDE.md or its equivalent,
- saved shortcuts, and handoff docs. Enumerate them (a scheduled-task
- listing returns a path per task, so this is one call plus a grep), then
- either update each in the same round or replace the copy with a stop
- condition per "Configuration vs process" above — including the clause
- that says the omission is deliberate, or a later editor helpfully
- restores the summary. The asymmetry is what makes the step
- non-negotiable: a stale copy never fails loudly. It runs, plausibly,
- doing the superseded thing, and the only witness is the user noticing an
- old behaviour reappear weeks after asking for it to stop. And drift is
- fast — it is the source's rate of change that predicts it, not the
- copy's age.
+ folder reports clean. The surfaces that matter execute independently
+ of the skill: scheduled-task prompts above all, then activation
+ fragments in CLAUDE.md or its equivalent, saved shortcuts, and handoff
+ docs. Enumerate them (a scheduled-task listing returns a path per
+ task, so this is one call plus a grep), then either update each in the
+ same round or replace the copy with a stop condition per
+ "Configuration vs process" above — including the clause that says the
+ omission is deliberate, or a later editor helpfully restores the
+ summary. A stale copy never fails loudly: it runs, plausibly, doing
+ the superseded thing, and the only witness is the user noticing an old
+ behaviour reappear weeks after asking for it to stop; the source's
+ rate of change predicts the drift, not the copy's age.
**A rename is a migration, not an edit.** Where skills are hosted by an
- account or an app, a skill under a new name is a new skill. Before the
- rename, grep the old name across the `skill:` fields of the observation
- log (active and archive), `skill-families.md`, the cross-cutting
- principles, scheduled-task prompts, sibling paths (`../<old-name>/`),
- copied script headers and memory notes. Upload the renamed skill, verify
- that it loads, deactivate the old one in the same step, then update
- every surface the grep found. Deleting the old skill is the user's call.
+ account or an app, a skill under a new name is a new skill, and a
+ published one also loses its repository URL and install path. Before
+ the rename, grep the old name across the `skill:` fields of the
+ observation log (active and archive), `skill-families.md`, the
+ cross-cutting principles, scheduled-task prompts and activation lines,
+ sibling and companion paths (`../<old-name>/`), copied script headers
+ and memory notes. Upload the renamed skill, verify that it loads,
+ deactivate the old one in the same step, then update every surface the
+ grep found. Deleting the old skill is the user's call.
9. **Inserting into an ordered structure is a splice, not a replacement.**
String replacement edits text, but a list, a table, a `## Contents`
index, a frontmatter block or a numbered sequence of steps is
structure, and an anchor-relative insert is safe only if you know what
- 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 insertion
- point by a **structural predicate** (the last line matching `^- `, the
- last row before the blank, the key after which the new key sorts),
+ is adjacent to the anchor — which `replace` gives no way to assert, and
+ no validator, scan or review reads shape. So: parse to lines, locate the
+ insertion point by a **structural predicate** (the last line matching
+ `^- `, the last row before the blank, the key after which the new key sorts),
splice, rejoin. Never anchor on the text of a neighbouring paragraph.
Where a replacement is used anyway, assert the neighbour's shape first
— that the line before the anchor is the last list item, that the blank
@@ -994,29 +975,23 @@ re-check exists, do not record the value — record how to obtain it.
catches the list case after the fact; the predicate prevents it.
**Verifying an edit is a separate problem, and the loader works against
-you.** The rules above cover editing safely; nothing covers confirming
-afterwards that the edit took. Three things get conflated — the file on
-disk, the copy the loader injected into this session, and what a fresh
-session would receive — and they can all differ at once.
-
-The obvious remedy fails too: launching a subagent to simulate "a fresh
-session" does not break the freeze. A subagent's context starts cold but
-its skills come from the **same snapshot**, so it reports the same stale
-content with the added authority of an independent-looking check.
-
-So: **verify an edit by reading the file on disk**, never by asking the
-loaded skill what it says and never by asking a subagent. And when the
-question is what a *future* session will receive, only a genuinely new
-session answers it — the installing session structurally cannot.
+you.** Three things get conflated — the file on disk, the copy the loader
+injected into this session, and what a fresh session would receive — and
+they can all differ at once. Launching a subagent to simulate "a fresh
+session" does not help: its context starts cold but its skills come from
+the **same snapshot**, so it reports the same stale content with the
+added authority of an independent-looking check. So: **verify an edit by
+reading the file on disk**, never by asking the loaded skill what it says
+and never by asking a subagent; and when the question is what a *future*
+session will receive, only a genuinely new session answers it — the
+installing session structurally cannot.
## Declaring a block's scope mechanically
A section of an instructions file, a skill, or a shared config often applies
-to only some of the work done on a machine. The usual approach is to trust
-the agent to notice the irrelevance from context. That fails quietly, and it
-fails in the direction that does damage: advice written for one domain is
-applied confidently to another.
-
+to only some of the work done on a machine. Trusting the agent to notice
+the irrelevance from context fails quietly, and in the direction that does
+damage: advice written for one domain is applied confidently to another.
Instead, open the block with a **detectable condition** — something the
agent can check rather than infer:
@@ -1024,14 +999,12 @@ agent can check rather than infer:
> dependency. In every other project, ignore this section entirely.
**State the negative branch explicitly**, because it is the half that gets
-left out. "Applies when X" reads as complete and leaves the agent to decide
-what happens otherwise; "and in every other case ignore this entirely" is
-the sentence that makes the block safe to carry. A condition with no stated
-negative is a preference, not a scope.
-
-Prefer conditions the agent can test cheaply and locally — a file's
-presence, a path segment, a declared dependency — over ones needing
-judgement ("when working on frontend tasks").
+left out: "Applies when X" leaves the agent to decide what happens
+otherwise; "and in every other case ignore this entirely" is the sentence
+that makes the block safe to carry. A condition with no stated negative is
+a preference, not a scope. Prefer conditions the agent can test cheaply
+and locally — a file's presence, a path segment, a declared dependency —
+over ones needing judgement ("when working on frontend tasks").
## Verifying relocations and restructures
@@ -1052,11 +1025,11 @@ source carried, the generic content deliberately left behind, and the
substitutions made. Keep the word-count sanity check per file — it is
cheap and catches wholesale omission. And **the mover of a split section
writes both destinations**: whoever moves material out of a skill also
-writes that skill's remainder for the same sections. Complementarity —
-nothing in both places, nothing fallen between them — cannot be checked
-afterwards as cheaply as it can be produced, and splitting the two halves
-across two authors guarantees the seam nobody owns. The coverage table
-is the artefact a merge is admitted on; a diff is not.
+writes that skill's remainder for the same sections, because
+complementarity — nothing in both places, nothing fallen between them —
+cannot be checked afterwards as cheaply as it can be produced, and two
+authors guarantee the seam nobody owns. The coverage table is the
+artefact a merge is admitted on; a diff is not.
For a verbatim relocation, "nothing was lost" is checkable mechanically —
but only with a two-tier check:
@@ -1093,13 +1066,12 @@ core + 8 reference files with zero content loss): keep the original
section numbers global across the whole file set; move content by
verbatim line-range extraction so nothing is retouched; add a "Section
map" table to the core resolving §N → file; give each reference file a
-one-line header pointing back to the map. The identifier space is an
-interface — keep it stable across the split and add a resolution layer,
-rather than renumbering content to match its new container. Corollaries:
-the map's load triggers must be phrased as mandatory ("read X before
-running Y"), and a core-size overshoot past the ~500-line guideline is
-acceptable when the overage is genuinely per-invocation principle content
-— record that reasoning where the next editor will see it.
+one-line header pointing back to the map — the identifier space is an
+interface, kept stable with a resolution layer added. The map's load
+triggers are phrased as mandatory ("read X before running Y"), and a
+core-size overshoot past the ~500-line guideline is acceptable when the
+overage is genuinely per-invocation principle content — record that
+reasoning where the next editor will see it.
One tier alone either misses losses (substance-only) or cries wolf
(exact-only). **The checker is code too, and the least-tested code in the
@@ -1118,20 +1090,17 @@ rewording diff.
**Build a relocation as a re-runnable derivation, not a one-off patch.** A
relocation verified against the base as it stood at build time is correct
-only for that base. If a concurrent edit lands on the live file before
-delivery — inside the very block being moved — laying the finished target
-files over the new tip **silently reverts it, with no conflict reported**,
-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 a
-patch, so there is nothing to conflict.
-
-So express the relocation as something **re-derivable from whatever the
+only for that base: if a concurrent edit lands on the live file before
+delivery, inside the very block being moved, laying the finished target
+files over the new tip **silently reverts it, with no conflict reported**
+— the relocation is a set of whole files, not a patch, so git has nothing
+to conflict. So express it as something **re-derivable from whatever the
live base currently is** — a script, or a procedure precise enough to
-re-run — and re-derive immediately before delivery rather than trusting the
-earlier verification. Where a manual patch is genuinely the only option,
-diff the moved regions against the live tip at delivery time and stop on
-any difference. The verification that matters is the one against the state
-you are landing on, not the state you started from.
+re-run — and re-derive immediately before delivery. Where a manual patch
+is the only option, diff the moved regions against the live tip at
+delivery time and stop on any difference. The verification that matters
+is the one against the state you are landing on, not the state you
+started from.
## Trial design — measuring whether a behaviour fires unprompted
@@ -1140,66 +1109,100 @@ does something ORGANICALLY (loads a reference file because the work called
for it, applies a rule without being told), record the trial's trigger
condition somewhere the agent under test does not read — a maintainer note
or the review report, never a task file, CLAUDE.md, or a handoff prompt.
-Add an explicit invalidation clause to the trial's definition: any session
-whose priming text names the trigger condition, or instructs the behaviour
-directly, is discarded rather than counted either way. And instrument the
-negative case deliberately — log "substantive work in scope, no organic
-load" as its own data point. Principle: an instruction that names what is
-being measured is an intervention, not a description; priming text and
-measurement apparatus must live in separate channels, or the trial measures
-compliance with the prompt. Corollary: null results need active recording,
-or the trial cannot distinguish "not yet observed" from "not happening".
+Add an explicit invalidation clause: any session whose priming text names
+the trigger condition, or instructs the behaviour directly, is discarded
+rather than counted either way. And instrument the negative case
+deliberately — log "substantive work in scope, no organic load" as its own
+data point. Principle: an instruction that names what is being measured is
+an intervention, not a description; priming text and measurement apparatus
+must live in separate channels, or the trial measures compliance with the
+prompt. Corollary: null results need active recording, or the trial cannot
+distinguish "not yet observed" from "not happening".
+
+**A behavioural eval is measured against a control arm:** the same
+fixture and the same prompt with no skill loaded. An expectation the
+control also satisfies is marked as such, not counted as evidence. The
+prompt withholds the skill's own judgement — if the skill's job is to
+decide that something is a pattern, the prompt does not say it is one;
+if its job is to decide that a fix should be durable, the prompt asks
+only for the immediate fix — since a stated conclusion is reached by
+every arm. At least one case argues against the skill (a deadline, a
+sunk cost, an authority saying it is fine): a discipline measured only
+when nothing pushes against it has not been measured. Record the null
+results: an expectation with zero delta says where the skill is redundant.
+
+**A verification measures the thing the change touched.** A routing
+metric moves with the frontmatter `description` and the name, so it is
+evidence for a description change and for nothing else. A body change is
+demonstrated against the failure it was written for: the behavioural
+case where a fixture is feasible, otherwise the reported failure
+reproduced against the edited text, showing the step that now fires.
+Where neither is possible, state the gap — the measurement not run, and
+why — rather than tick a box that always passes; the tell is that the
+agent can say why the number could not have moved.
+
+**Before trusting a null from a comparison arm, name the path from the
+trigger to the changed bytes:** which user turn, routed by what, loading
+which file, reaching which line — written out, not assumed. A control
+proves the instrument reads the baseline; only the trace proves the
+treatment arm lies on the path the instrument exercises, and a flat
+result from a file nobody opened carries the same number as a real
+non-effect. Where mirrors of a file are hardlinked, diff the arms by
+inode, not by path, or a one-line change shows as several files and a
+zero-line change hides among them. An untraced null is unreported, not a null.
## New skills
**Building next to siblings: separate the inherited steps from the
necessary ones.** A new member of a family inherits its siblings' shape,
and consistency with the family is a legitimate design value — which is
-precisely why the inherited-but-unnecessary step survives review. It does
-not read as wrong; it reads as belonging.
-
-The person who detects this is the one who has to answer an inherited
-question, and
-by then it has shipped. So make it an explicit authoring step: for each
-step copied from a sibling, state **what this skill's output would lose if
-the step were removed**. A step whose answer is "consistency" is inherited,
-not necessary — drop it, or demote it to an optional branch.
+precisely why the inherited-but-unnecessary step survives review: it does
+not read as wrong; it reads as belonging, and the person who detects it
+is the one who has to answer an inherited question, by which time it has
+shipped. So, for each step copied from a sibling, state **what this
+skill's output would lose if the step were removed**. A step whose answer
+is "consistency" is inherited, not necessary — drop it, or demote it to
+an optional branch.
**Before authoring a skill for a library, tool or project, check whether
-the project already ships one.** The reflex on "make a skill for X" is to
-read X's documentation and write a `SKILL.md` from scratch; many projects
-now carry their own agent skill in-repo — commonly under `agent-skill/`,
-`.claude/skills/`, `skills/`, or named in the README — and hand-authoring
-beside it duplicates work, drifts from the maintainers' version and misses
-their updates. One search of the upstream repository (those paths, plus
-"skill" in the README and release notes) settles it — one of the two
-network uses this skill permits, and only once the user has asked for the
-skill. If an official skill
-exists, install it and put only the local delta into a companion, exactly
-as for any other upstream-maintained skill (weekly-review.md, Step 2);
-if it does not, author, and consider offering the result upstream. And
-before authoring any skill from scratch, look for an uninstalled draft
-under `[workspace folder]/skill-updates/*/<skill-name>/` (`find`, as in
+the project already ships one.** Many projects carry their own agent
+skill in-repo — commonly under `agent-skill/`, `.claude/skills/`,
+`skills/`, or named in the README — and hand-authoring beside it
+duplicates work, drifts from the maintainers' version and misses their
+updates. One search of the upstream repository (those paths, plus "skill"
+in the README and release notes) settles it — one of the two network uses
+this skill permits, and only once the user has asked for the skill. If an
+official skill exists, install it and put only the local delta into a
+companion, exactly as for any other upstream-maintained skill
+(weekly-review.md, Step 2); if it does not, author, and consider offering
+the result upstream. And before authoring any skill from scratch, look
+for an uninstalled draft under
+`[workspace folder]/skill-updates/*/<skill-name>/` (`find`, as in
weekly-review.md Step 5): a staged copy that never went live has no live
-file to diff against, so nothing else in the procedure surfaces it, and
-a from-scratch draft beside it drops whatever it carried.
-
-Where the skill-creator is used (editing rule 7), pass the observation(s)
-as its brief.
+file to diff against, so nothing else in the procedure surfaces it, and a
+from-scratch draft beside it drops whatever it carried. Where the
+skill-creator is used (editing rule 7), pass the observation(s) as its
+brief.
+
+**A new skill ships three evaluation scenarios, written before its
+documentation and re-run at every release:** a positive trigger (a
+realistic prompt that must route to it), a negative trigger with its
+declared owner (a prompt a named neighbour must win), and a behavioural
+case with a control arm (Trial design, above) — written first, because a
+description drafted to pass them is the narrower one.
**First decide whether the skill joins a family, and if it does, read the
siblings before drafting.** Intent → interview → draft is right for a
genuinely new skill and wrong for one joining an existing family (the
registry is `skill-observations/skill-families.md`; see
-`observation-log.md`), because the family already contains most
-of the answer, distributed unevenly across its members. Drafting from the
-current session's experience and consulting the siblings only for the
-tool-agnostic parts you happen to remember produces a third divergent
-member. The cost is asymmetric and front-loaded — reading two
-siblings first is minutes; reconciling three divergent skills afterwards
-means re-reading all of them, deciding per rule whether each divergence is
-intentional, and editing in three places, with the divergences hardest to
-spot precisely because each skill reads as coherent on its own.
+`observation-log.md`), because the family already contains most of the
+answer, distributed unevenly across its members; drafting from the
+current session's experience produces a third divergent member. The cost
+is asymmetric and front-loaded — reading two siblings first is minutes;
+reconciling three divergent skills afterwards means re-reading all of
+them, deciding per rule whether each divergence is intentional, and
+editing in three places, with the divergences hardest to spot precisely
+because each skill reads as coherent on its own.
Read every sibling in full, draft against them, and produce a short
**reconciliation note** as part of the deliverable, not as optional
@@ -1218,11 +1221,9 @@ exists. And the general form, which reaches well past skills: **a new
instance is the best available audit of the existing set.** Drafting it
forces the shared material to be restated from scratch, and every place
the fresh statement differs from a sibling's is either an improvement or a
-gap. Whenever a new instance joins a set of parallel implementations, read
-the set first — not because the new instance needs their content, but
-because it is the only moment when the differences between all of them are
-being actively thought about by anyone. Skipping the comparison wastes the
-audit and creates the divergence.
+gap — it is the only moment when the differences between all of them are
+being actively thought about by anyone, so skipping the comparison wastes
+the audit and creates the divergence.
**When the extraction does happen, work brief-first.** Write the split
rule once, before any file is touched — the test that decides where a
@@ -1249,8 +1250,7 @@ caught only by a test built to break it.
2. A negative requirement ("never opens the private names file") needs a
runtime observation mechanism, an assertion that the mechanism
recorded something at all, and one run against a deliberately broken
- version that turns the test red. Otherwise a mis-wired check passes
- vacuously.
+ version that turns the test red, or a mis-wired check passes vacuously.
3. An acceptance fixture ships with its runner (this skill's is
`scripts/validate-skill-bundle.py --selftest`), or it decays into a
one-off that nobody re-runs after the next change.
@@ -1268,16 +1268,14 @@ caught only by a test built to break it.
A skill that drives something outside itself — a CLI binary, a daemon, an
API key, a container runtime — is only as installed as the thing it
-drives: the listing says the files are there, not that they can run.
-
-The failure this produces is specific and expensive: the agent reads a
-full, confident description, selects the skill for the task it names, and
-discovers the missing prerequisite only partway through the work. It reads
-as the agent's error rather than the inventory's, and the task it was
-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.
+drives: the listing says the files are there, not that they can run. The
+agent reads a full, confident description, selects the skill for the task
+it names, and discovers the missing prerequisite partway through the work,
+where it reads as the agent's error rather than the inventory's. 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 the
prerequisites as *checkable facts*, so that something other than a human
@@ -1295,13 +1293,12 @@ nearly everything: `binary:NAME` is a binary that starts (its version
flag exits 0; a flag after the name replaces `--version`, and
`>=VERSION` after the name is the least its output may report),
`env:NAME` is an environment variable that is set and non-empty, and
-`service:URL` is an endpoint that answers. Each is one cheap command.
-Locating the binary is the presence check one level down — a shim or
-launcher on `PATH` that aborts at load is found and cannot run;
-presence in a registry is not capability. Anything that
-cannot be reduced to one of those is a prose note in the skill body, not
-a declaration — a check nobody can run is worse than an honest sentence,
-because it looks like a guarantee.
+`service:URL` is an endpoint that answers. Each is one cheap command, and
+locating the binary is the presence check one level down — a shim or
+launcher on `PATH` that aborts at load is found and cannot run. Anything
+that cannot be reduced to one of those is a prose note in the skill body,
+not a declaration — a check nobody can run is worse than an honest
+sentence, because it looks like a guarantee.
**What consumes it.** Session Start step 6 resolves `skill:` targets and
reports the ones that do not resolve; with this string it can also report the
@@ -1317,27 +1314,27 @@ Before retiring any operational skill tied to that engagement, assess each
section as either transferable methodology or client-specific
configuration. If the transferable share is substantial, extract a
client-agnostic skill FIRST and retire the original afterwards, keeping the
-client dossier for reference. The extraction pattern that works: keep the
-platform mechanics concrete — real interface quirks, DOM patterns, layered
-diagnostics, everything earned through real runs and real corrections — and
-replace the client's answers (account IDs, domains, source rosters,
-criteria) with the intake questions that produced them. The resulting skill
-tells the next agent what to ask, rather than what the previous client
-happened to say. Principle: the methodology in an operational skill and the
-client configuration wrapped around it have very different shelf lives.
-Retiring them together discards the durable half at the moment its cost is
-already sunk, and the loss is invisible because nothing errors.
+client dossier for reference: keep the platform mechanics concrete — real
+interface quirks, DOM patterns, layered diagnostics, everything earned
+through real runs and real corrections — and replace the client's answers
+(account IDs, domains, source rosters, criteria) with the intake questions
+that produced them, so the resulting skill tells the next agent what to
+ask, rather than what the previous client happened to say. The
+methodology and the client configuration wrapped around it have very
+different shelf lives; retiring them together discards the durable half
+at the moment its cost is already sunk, and the loss is invisible because
+nothing errors.
## Principle Propagation
When an observation's Principle applies to skills in general, log it with
`skill: []` and `target_file: [skill-observations/cross-cutting-principles.md]`
and surface it; if the user approves, add it to
-`[workspace folder]/skill-observations/cross-cutting-principles.md`. That
-file is a mandatory checklist during any skill creation or regeneration.
-The user chooses propagation timing: immediate (update all skills now — for
-things like confidentiality rules) or opportunistic (apply at each skill's
-next update).
+`[workspace folder]/skill-observations/cross-cutting-principles.md`, a
+mandatory checklist during any skill creation or regeneration. The user
+chooses propagation timing: immediate (update all skills now — for things
+like confidentiality rules) or opportunistic (apply at each skill's next
+update).
```markdown
# Cross-Cutting Principles
@@ -1370,7 +1367,10 @@ the sidecar present, `validate-skill-bundle.py` fails when:
- a file exceeds its ceiling. The remedy follows its declared trigger
count: more than 12, split it by episode; 12 or fewer, trim it, or raise
the ceiling with a dated one-line reason beside the number
- (`<file.md> <lines> YYYY-MM-DD <why>`);
+ (`<file.md> <lines> YYYY-MM-DD <why>`). The reason names the change
+ that added the lines, in words a reader without the repository
+ understands — the file ships inside the skill — never an issue, PR or
+ observation number;
- a ceiling sits more than 3 lines above its file: lower it in the commit
that trimmed;
- a file has no ceiling line or no `Load triggers:` line.
diff --git a/references/weekly-review.md b/references/weekly-review.md
index 59ca409..ec3dae7 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -16,12 +16,10 @@ input to staged copies — never to live skills. Two modes:
`last-review-date.txt` in 7+ days), AND
`skill-observations/last-review-date.txt` reads `never` or a date 7+
days old (the SKILL.md step 3 boundary, which must match); interactively
- it is only offered (step 3), never gating the user's task.
- Its content scales with the backlog and its frequency never does,
- because a backlog that is never drained fails quietly, by becoming too
- expensive to drain: the per-session behaviour that is correct (never
- block the user) sums to a review nobody accepts. A bounded slice keeps
- the unit of work constant as the backlog grows.
+ it is only offered (step 3), never gating the user's task. Its content
+ scales with the backlog and its frequency never does: a backlog nobody
+ drains fails quietly, by becoming too expensive to drain, so a bounded
+ slice keeps the unit of work constant as the backlog grows.
## Contents
@@ -164,12 +162,8 @@ Given the roots:
particular is a statement about that workspace's config, so an
aggregate run writes one per participant and never a single copy at
the anchor workspace. Integration and staging unify; bookkeeping does
- not.
-
-The principle: when several append-only queues feed edits into shared
-targets, the review that drains them must be unified at the integration
-point even though the queues themselves stay separate — and unification
-needs an identity per queue, or the merged references stop resolving.
+ not, and unification needs an identity per queue, or the merged
+ references stop resolving.
## Approval policy
@@ -200,19 +194,16 @@ the claim unverified. Settle such a premise BEFORE presenting the
option, from what is already local — the checkout or copy the skill was
installed from, a stored baseline, the file's own source and feedback line
(or its frontmatter `metadata.source`, `author:` and `license:`), and the
-tool that generates it, if one does.
-Local provenance answers most of it, and it costs far less than a
-decision made on a false premise plus the re-ask that follows. Where the
-premise is genuinely remote (does the section still exist at upstream
-HEAD, is the PR still open), the review must not depend on reaching the
-network: present the option with that half named as unverified, and
-leave the remote check to the feedback pre-flight in
-`references/skill-authoring.md`, which runs once the user has chosen to
-contribute. Forked files need the check at two levels: file-level
-provenance ("this skill is foreign-maintained") and section-level
-provenance ("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.
+tool that generates it, if one does. Where the premise is genuinely
+remote (does the section still exist at upstream HEAD, is the PR still
+open), the review must not depend on reaching the network: present the
+option with that half named as unverified, and leave the remote check to
+the feedback pre-flight in `references/skill-authoring.md`, which runs
+once the user has chosen to contribute. Forked files need the check at
+two levels: file-level provenance ("this skill is foreign-maintained")
+and section-level provenance ("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.
A declined or dismissed approval prompt is NOT approval — and it is not a
request to skip the asking and proceed either. Treat it as a stop signal
for the gated actions: halt, then ask in plain chat text what the user
@@ -250,8 +241,8 @@ summary for the user to read. Where the spec is partial ("something
like…", "the old rules should probably go"), criterion (3) applies and
it stays escalated. An escalation rule guards against the agent's own
judgement, not against change as such: escalating a decision the user
-already made returns their answer to them as a question, buys no safety,
-and costs a cycle in which the skill stays knowingly wrong.
+already made returns their answer as a question and costs a cycle in
+which the skill stays knowingly wrong.
**The published case is applied too, with its ceremony attached.** A
restructure of a published skill needs a release branch, a test plan and
@@ -312,26 +303,23 @@ observation logs on one machine": logs over the same globally installed
skills are a fork to consolidate, not a second queue to schedule.
"No scheduler available" means the platform's own scheduler was queried
and is absent — cron missing on Windows is not that; Task Scheduler is
-the scheduler there, and a check worded around cron alone marks every
-Windows install as schedulerless and silently never offers the review.
-Before offering, check reachability (see the regimes above): if the platform's
-scheduler runs where it cannot reach the workspace folder (regime 2), do
-NOT offer registration — recommend the calendar-reminder-plus-manual-
-trigger pattern instead, and skip the rest of this step. Otherwise
-offer to set one up. Yes → register it through whatever scheduler the
-environment provides (see the environment table in
-`references/environments.md`), name it
-`weekly-skill-review`, use the draft prompt at
-`skill-observations/scheduled-task-draft.md` if present, then verify the
-registration actually succeeded (the scheduler lists the task, or the
-platform confirmed creation) BEFORE writing today's date **and the absolute
-workspace path the task was registered for** to `scheduler-registered.txt` —
-a marker holding only a date cannot answer the coverage question above, so
-the next session has to go and parse the task definition instead of running
-a comparison. If registration fails or can't be verified, do
-NOT write the marker — the marker would permanently suppress the fallback
-while no review ever runs. Tell the user registration failed and leave the
-fallback active. A listed task is a registration, not a working setup:
+the scheduler there, and a check worded around cron alone silently never
+offers the review on Windows. Before offering, check reachability (the
+regimes above): if the platform's scheduler runs where it cannot reach
+the workspace folder (regime 2), do NOT offer registration — recommend
+the calendar-reminder-plus-manual-trigger pattern instead, and skip the
+rest of this step. Otherwise offer to set one up. Yes → register it
+through whatever scheduler the environment provides (the environment
+table in `references/environments.md`), name it `weekly-skill-review`,
+use the draft prompt at `skill-observations/scheduled-task-draft.md` if
+present, then verify the registration actually succeeded (the scheduler
+lists the task, or the platform confirmed creation) BEFORE writing
+today's date **and the absolute workspace path the task was registered
+for** to `scheduler-registered.txt` — a marker holding only a date cannot
+answer the coverage question above. If registration fails or can't be
+verified, do NOT write the marker — it would permanently suppress the
+fallback while no review ever runs. Tell the user registration failed
+and leave the fallback active. A listed task is a registration, not a working setup:
the registration carries whatever allowed-directory grant the harness's
sandbox needs for the workspace root, the first firing's own report is
the completion check, and a first run that ends with a denial note — the
@@ -380,10 +368,9 @@ edited by nobody, so a restated step drifts behind this file and the run
follows the copy. Record the verdict in `activation-tiers.txt` beside the
scheduled-task tier, and make it evidential: the prompt's first line
verbatim, then each flagged line quoted, or `restates: none (read: <n>
-lines)`. A verdict that quotes nothing cannot be checked by the next
-review, and reads the same as one written from the prompt's intent
-rather than its text. Run the same read over every other scheduled
-prompt that invokes a skill.
+lines)` — a verdict that quotes nothing cannot be checked by the next
+review. Run the same read over every other scheduled prompt that invokes
+a skill.
A third read belongs to the same pass: **did each skill load carry its
lookup in the same batch?** Where session transcripts are available, match
@@ -395,10 +382,9 @@ line from its batch. Without transcripts, compare each session's `loaded`
lines against the skills that session reports loading, and flag a skill
with no line. A batch split recorded in the start-up lines as a deferred
probe tool (`references/environments.md`, "A deferred probe tool moves the
-probe to batch 2") is not a finding. The failure shape: the rule is read
-only after the batch that should carry the lookup is committed, so a late
-lookup looks compliant from every later batch, and the record is the one
-place the mismatch shows.
+probe to batch 2") is not a finding. The failure shape: a late lookup
+looks compliant from every later batch, and the record is the one place
+the mismatch shows.
**Drain the observation inbox before the work queue is built.** Where this
run can read the user-scoped store that sessions without the log park
@@ -406,15 +392,14 @@ observations in (`references/environments.md`, "No link to the user's
computer"), read its inbox file. For each entry, one at a time: run the
normal write path — restatement check, sibling check, id derivation
through the helper — and create the observation file; delete that entry
-from the store only after its file exists on disk. An interrupted run then
-loses nothing: every entry is still in the inbox or already a file, and
-the restatement check catches one whose file was written just before the
-interruption. Never delete the inbox file itself — deleting a memory file
-needs the user's explicit request — leave it empty. Where the store is not
-readable from this run, say so under Log integrity ("inbox not read:
-<reason>"): the log is then not known to be complete. The failure shape: a
-capture fallback the processing step never drains is a second log nobody
-reviews.
+from the store only after its file exists on disk, so an interrupted run
+loses nothing (the restatement check catches an entry whose file was
+written just before the interruption). Never delete the inbox file itself
+— deleting a memory file needs the user's explicit request — leave it
+empty. Where the store is not readable from this run, say so under Log
+integrity ("inbox not read: <reason>"): the log is then not known to be
+complete. The failure shape: a capture fallback the processing step never
+drains is a second log nobody reviews.
**Harvest the run-output notes next.** Runs that cannot write or get an
approval answered end their final message with a `## Task-observer
@@ -429,8 +414,7 @@ writable, the heading becomes `## Task-observer notes (harvested
`skill-observations/harvested.txt`, which the drain reads first. A
section reading `none` is marked without a write. Report under Log
integrity: "run-output notes: N harvested from M files; <path> not
-read: <reason>" — a path the block names that this run cannot reach is a
-gap in the log, said in that line, never a silent zero.
+read: <reason>" — an unreachable path is a gap in the log, never a silent zero.
Then archive observation files resolved in
*previous* sessions — with the sweep as shipped (the sweep block of the id
@@ -461,10 +445,9 @@ no `status` field at all.** Concretely:
`count(files in observation-log/) == count(status-classified files)`. If the
counts differ, the delta is statusless files — surface and triage them (as
OPEN) rather than proceeding as if the backlog were clean. **This is a
-point-in-time assertion, not a standing guarantee.** It proves the scan was
-complete when it ran; the log is multi-writer and a long review is exactly
-when other sessions are logging, so the result decays for the duration of
-the run. Keep the Step 1 file list ON DISK — never in a shell variable,
+point-in-time assertion, not a standing guarantee:** the log is
+multi-writer and a long review is exactly when other sessions are logging,
+so the result decays for the duration of the run. Keep the Step 1 file list ON DISK — never in a shell variable,
which does not survive the next tool call and is not word-split under zsh
(`observation-log.md`, "Under zsh…") — so Step 6 can re-scan against it
before anything is marked:
@@ -481,12 +464,10 @@ refresh 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
-without this check a duplicate could sit indefinitely.
-Worse, it is silently destructive to the review itself: any pass that
-merges per-entry results **keyed by id** — the common shape when the
-reading is fanned out to helpers — collapses the pair into one, and the
-entry that loses is dropped from the review it was waiting for, with no
-error.
+without this check a duplicate could sit indefinitely — and silently
+destroy review work: any pass that merges per-entry results **keyed by
+id** collapses the pair into one, and the entry that loses is dropped
+from the review it was waiting for, with no error.
```bash
d="[ABSOLUTE PATH]/skill-observations/observation-log"
@@ -504,9 +485,7 @@ staleness").
`grep -oE '^[0-9]+'`, not `sed 's/-.*//'`: the archive may hold legacy
`log-YYYY-MM-DD.md` files from a pre-3.0 migration, and stripping at the
-first hyphen turns every one of them into `log`, which then reports as a
-duplicate id. Any install that migrated — the ones most likely to have a
-real collision — would have been sent chasing a phantom. The
+first hyphen turns every one of them into `log`, a phantom duplicate. The
zero-padding strip is the same one the id snippet uses, so `0091` and `91`
are recognised as the same number.
@@ -561,10 +540,9 @@ the duplicate-id check fixes a renumber: one field in one file, with the
filename left alone unless the id is the field at fault.
**And key the merge on the filename, not the id**, wherever a review fans
-reading out and merges results. The filename is unique by construction —
-the noclobber create guarantees it — and the id is exactly the field a
-collision has made ambiguous. A merge keyed on the one field that can
-collide has no way to notice that it did.
+reading out and merges results: the filename is unique by construction
+(the noclobber create guarantees it), and a merge keyed on the one field
+that can collide has no way to notice that it did.
**Parked entries: excluded from the queue, not from view.** `status: parked`
means the observation was judged sound but is blocked on an external
@@ -586,35 +564,30 @@ check for every entry parked on it.
### Staged-work reconciliation gate
-Installation is a manual, per-item
-act that happens outside any session, so no session observes it and
-nothing fires at install time: a ledger whose removal trigger is an event
-no session observes only ever grows. Bind the cleanup to the moment the
+Installation is a manual, per-item act that happens outside any session,
+so nothing fires at install time and a ledger whose removal trigger is an
+unobserved event only ever grows. Bind the cleanup to the moment the
ledger is read — reading is the only reliably recurring event, so the
reading session owns it. The same gate answers a forwarded line: before
treating a pasted summary line about staged, pending or installed state
as a task, run the re-check the line carries (Delivery, "A message
drafted ahead of a delayed send"), or this gate, first — the state it
names was measured in another session and has had every session since
-to change. First hold the tree against the manifest,
-every time: list the top-level entries of `skill-updates/` (everything
-but `PENDING.md`) and report, in one line, every entry no manifest
-entry names — "N staging directories without a manifest entry: …".
-After the four-way classification below, mark in that line each reported
-directory that holds only copies classified (a) or (b) and their
-`.skill` packages — the installed copies keep-two retains — as
-`retained`, so the unmarked names are the ones nothing explains.
-Enumerate the listing rather than matching a date-shaped name:
-discriminated anchors (`<date>-<slug>`, `<date>.2`) and hand-over
-material are valid names, and an index shows only what someone entered,
-so a check that reads only the index reports every unentered item as
-absent. 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 — run `diff -rq`
-of the staged copy
-against the live skill and classify FOUR ways — because live
+to change. First hold the tree against the manifest, every time: list
+the top-level entries of `skill-updates/` (everything but `PENDING.md`)
+and report, in one line, every entry no manifest entry names — "N
+staging directories without a manifest entry: …". After the four-way
+classification below, mark in that line each reported directory that
+holds only copies classified (a) or (b) and their `.skill` packages —
+the installed copies keep-two retains — as `retained`, so the unmarked
+names are the ones nothing explains. Enumerate the listing rather than
+matching a date-shaped name: discriminated anchors (`<date>-<slug>`,
+`<date>.2`) and hand-over material are valid names, and an index shows
+only what someone entered. Then, for each entry in
+`skill-updates/PENDING.md` AND each skill directory under
+`skill-updates/<date>/` — always both, never the manifest alone: an
+absent manifest reads exactly like an empty one — run `diff -rq` of the
+staged copy against the live skill and classify FOUR ways, because live
legitimately moves on, so a bare "differs" is not a verdict. First the
seed check, because equality proves nothing by itself: a round that was
seeded and never edited is byte-identical to live for as long as live
@@ -662,8 +635,7 @@ the user — "<skill> round of <date>: untouched since <t>; release the
claim or resume from the seed?" — and is never released automatically:
a paused session has not released its task (`observation-log.md`,
"Re-check ownership immediately before the first write"). Where a
-hand-kept field disagrees with the mtime,
-print both and trust neither alone.
+hand-kept field disagrees with the mtime, print both and trust neither.
**A live copy that a sync process maintains cannot be checked until its
sync mark postdates the install.** Where the installed skill is a mirror
@@ -763,9 +735,6 @@ that makes the staged copy the base for the next staging, so the next
edit silently reverts what live gained since. The same-day second
staging under Delivery is where this arises — that rule says where the
second copy is written, this one says how the first is then classified.
-A procedure that mandates an N-way classification owes the reader the
-discriminating test, not only the N labels; left to invent one, each
-implementer separates the first case and merges the rest.
**(c) against (d) needs the other difference set.** The per-hunk test
reads only what the staged copy has that live lacks; compute what live
@@ -773,12 +742,10 @@ has that the staged copy lacks too, before naming the case — a non-empty
first set with an empty second is (c), both non-empty is (d). Compare
heading sets in each direction (`grep '^#'` over each file, each list
checked against the other) rather than reading an interleaved line diff,
-which is what invites the shortcut. Categories ordered by "which side is
-ahead" are exhaustive only while exactly one side has moved, and a dated
-staging folder is multi-writer by construction, so both having moved is
-the 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.
+which is what invites the shortcut. A dated staging folder is
+multi-writer by construction, so both sides having moved is the normal
+case; and size does not order them, since the larger file is the one
+that grew, which says nothing about what it lost.
Reconcile in BOTH directions every time: lingering-done (installed but
still listed) and missing-done (staged but never installed) fail
@@ -789,13 +756,11 @@ the same gate whenever it announces staged updates.
**Read the ledger whole before reporting a difference.** An excerpt — the
list lines, the headings, the hits of a pattern — is a valid way to FIND
-an entry and never a valid input for a verdict about one. A
+an entry and never a valid input for a verdict about one: a
hand-maintained file records its exceptions as prose that deliberately
-does not look like an entry: a prune, a resolution, the line that says
-nothing is pending. So a pattern excerpt drops exactly the content that
-would refute a drift and keeps the content that suggests one, and its
-confidence is highest where its input is thinnest.
-Excerpt to search, full text to judge.
+does not look like an entry (a prune, a resolution, the line that says
+nothing is pending), so a pattern excerpt drops exactly the content that
+would refute a drift. Excerpt to search, full text to judge.
**A `release/`-shaped staging with no manifest entry is a GATE FAILURE,
surfaced in the summary's first line — never a copy to reconstruct
@@ -810,15 +775,18 @@ the run reconstructs the entry so the rest of the gate can proceed, the
first line says so and says what was written — a repair the summary does
not mention is the silent reconstruction this rule forbids.
-**Refresh the device copy of this skill's scripts when an install is
-confirmed.** Where the workspace keeps `skill-observations/.bin/` (bridged
+**Refresh the device copy of this skill's scripts whenever its digests
+differ from the installed ones — not only when this gate confirms an
+install.** Where the workspace keeps `skill-observations/.bin/` (bridged
sessions run the scripts from it — `references/environments.md`, "Where the
-scripts are not on the device"), and this gate has just classified a staged
-copy of THIS skill as installed (a), replace `.bin/`'s scripts with that
-copy's `scripts/` and rewrite `.bin/MANIFEST`: the `version:` from its
+scripts are not on the device"), hash the installed `scripts/` and compare
+with `.bin/MANIFEST`; on any difference — a copy this gate classified (a),
+or an install nothing recorded — replace `.bin/`'s scripts with the
+installed ones and rewrite `.bin/MANIFEST`: the `version:` from the
frontmatter, the date, and one `sha256 <file>` line per script. Verify by
re-hashing `.bin/` against the manifest before the summary names it. The
-manifest is the contract sessions check; a `.bin/` without one is not used.
+manifest is the contract sessions check; a `.bin/` without one is not
+used, and a stale one fails its own digest check in every bridged session.
Also read all active cross-cutting principles. If there are no OPEN
observations and no outstanding principles: report "no open observations
@@ -848,33 +816,31 @@ pre-flight in `references/skill-authoring.md` runs at Step 5 — with a
`{skill}-extras` companion only for a delta specific to this install
that upstream would not take; editing the file in place is not on the
menu, however writable it is. Provenance is a property of the artefact
-and is stated in its first lines; install location is a fact about this
-machine and says nothing about who maintains the file, so read the block
-before the path. A generated file is the exception that states nothing:
-its writer is a tool, not an author, so before putting a skill in (a) ask
-what writes the file, not only what refreshes its directory. Where the
-user has adopted a vendored copy on purpose, record it once, one line per
-skill in `skill-observations/forked-skills.txt` (name, date, reason):
-later reviews read the decision instead of re-deriving it from the path,
-and a recorded fork is (a). This skill is the standing example: wherever the user is not its
-maintainer, `task-observer` is (b). Choosing the companion route may mean
-creating the `{skill}-extras` skill in this review, which the Constraints
-allow as the one exception to "no new skills in a review". Grow the (c) list when an update fails for
+and is stated in its first lines; install location says nothing about
+who maintains the file, so read the block before the path. A generated
+file is the exception that states nothing: its writer is a tool, not an
+author, so before putting a skill in (a) ask what writes the file, not
+only what refreshes its directory. Where the user has adopted a vendored
+copy on purpose, record it once, one line per skill in
+`skill-observations/forked-skills.txt` (name, date, reason): later
+reviews read the decision instead of re-deriving it from the path, and a
+recorded fork is (a). This skill is the standing example: wherever the
+user is not its maintainer, `task-observer` is (b). Choosing the
+companion route may mean creating the `{skill}-extras` skill in this
+review, which the Constraints allow as the one exception to "no new
+skills in a review". Grow the (c) list when an update fails for
permissions; grow the (b) list when a change you made has vanished — a
-rule that fires after the damage, so it is the backstop for the
-attribution read, never the test.
+rule that fires after the damage, the backstop for the attribution read.
**Run the validator over the live set while the inventory is in hand.**
Step 1's gate compares staged against live and Step 5 validates what was
-edited, so a skill that is never staged is never checked again, and the
+edited, so a skill that is never staged is never checked again while the
validator's own checks tighten between releases. Run
`scripts/validate-skill-bundle.py` over every category-(a) live skill
directory — seconds for a whole library — and list the failures in the
Step 7 summary under Log integrity ("N installed skills fail the
validator: …"). A failing skill with no observations in the queue gets a
-one-line staging that fixes only the gate failure (the minimal structural
-change). The failure shape: a gate that runs only on what is about to
-change never sees what has already drifted.
+one-line staging that fixes only the gate failure.
**Step 3 — cross-check observations.** Evaluate every OPEN observation
against every skill — not just the skills named in its `skill:` list;
@@ -906,17 +872,16 @@ entries target the same member. Then, before anything is presented:
to the skill that does, or to the non-skill file that does (an
instructions file, an agent definition, a scheduled prompt), which
becomes a `target_file:` bucket whose output is a patch for that file,
- routed by its owner (Delivery) — and note the move in the body ("routed from X to Y: X never
- performs the append") so the resolution carries it. A fix installed
- where it cannot fire closes the entry and leaves the defect standing.
+ routed by its owner (Delivery) — and note the move in the body ("routed
+ from X to Y: X never performs the append"). A fix installed where it
+ cannot fire closes the entry and leaves the defect standing.
- **Presence check, here, against the real target — and against the
Issue, not only the suggestion.** Step 5 greps the staged copy for
- each improvement before writing; run that same
- already-applied / partially-applied / outstanding classification here
- too, before anything is presented. In an interactive review the user
- approves at this step, so Step 5 never sees an entry the user was asked
- to approve twice. A phrase search over hard-wrapped Markdown matches
+ each improvement before writing; run that same already-applied /
+ partially-applied / outstanding classification here too, before
+ anything is presented, so the user is never asked to approve an
+ applied entry. A phrase search over hard-wrapped Markdown matches
within a block with whitespace normalised, never line by line
(`observation-log.md`, "A park condition names the result, never your
own vehicle"). Run it against the file the observation actually
@@ -1013,18 +978,17 @@ staged copies and continue, and save the same record.
**Cluster by decision BEFORE the escalation list is written.** An
append-only log accumulates convergent entries by construction: the same
underlying problem is rediscovered from different task contexts and filed
-against different skills, so grouping by filing category preserves that
-duplication into the escalation list and the user is asked the same
-question more than once. Group the OPEN entries by the DECISION they
-require, not by the skill they are filed against; escalate one decision per
-cluster with the member observation numbers listed under it; cross-reference
-rather than separately escalate any entry whose decision duplicates
-another's. Cheap first pass: scan the Principle lines — convergent
-observations usually have near-identical principles even when their Issues
-describe unrelated tasks. Corollary for in-session behaviour: if you notice
-the overlap strongly enough to offer "this is the same as X" as an answer
-option, that is the answer — take it and tell the user, rather than
-spending a round-trip asking. **Across an ownership fence:** when the
+against different skills, so grouping by filing category asks the user
+the same question more than once. Group the OPEN entries by the DECISION
+they require, not by the skill they are filed against; escalate one
+decision per cluster with the member observation numbers listed under
+it; cross-reference rather than separately escalate any entry whose
+decision duplicates another's. Cheap first pass: scan the Principle lines
+— convergent observations usually have near-identical principles even
+when their Issues describe unrelated tasks. Corollary for in-session
+behaviour: if you notice the overlap strongly enough to offer "this is
+the same as X" as an answer option, that is the answer — take it and tell
+the user. **Across an ownership fence:** when the
backlog is split across parallel sessions and you defer an entry to a
cluster owned by the other session, the deferral is not complete until the
pointer exists on BOTH sides — relay it to that session directly, or
@@ -1045,11 +1009,10 @@ and log the skipped step as an observation.
verdict in the same act.** Where a bundle ships a public,
provenance-stripped extract of the private principles file — this skill's
`references/starter-principles.md` — that extract is derived content, and
-a one-off triage performed once at extraction time is a snapshot: the
-extract starts drifting at the very next edit of the private file, and
-nothing downstream would ever produce a verdict for the entries added
-since. So the step that adds a principle, or changes an existing one
-materially, classifies it in the same act: **`include verbatim`**,
+a one-off triage at extraction time is a snapshot that starts drifting at
+the very next edit of the private file. So the step that adds a
+principle, or changes an existing one materially, classifies it in the
+same act: **`include verbatim`**,
**`include after scrub`** — naming exactly what to strip (provenance,
observation numbers, client or environment specifics) — or **`leave
out`** (personal strategy, or specific to one environment). Append the
@@ -1078,8 +1041,7 @@ the repository's issues and PRs, carry the observed instance alongside
the generalised sentence, and prepare it as an issue from the
repository's "Starter principle" issue template — never a PR. The user
reads the generalised text and submits it; nothing is sent by the skill,
-and the offer fires only in the review that promoted the principle, never
-in an ordinary session.
+and the offer fires only in the review that promoted the principle.
Then run the **family drift audit**: for each family in
`skill-observations/skill-families.md`, grep every member for each rule
@@ -1089,11 +1051,10 @@ for a rule written locally grep the destination Step 2 routed it to (the
`{skill}-extras` companion or the instruction-file entry), and say so in
the audit line. A zero over a population that cannot contain the rule is
a statement about the instrument, not drift (`observation-log.md`,
-"Every instrument gets the same guard"). It is mechanical and takes minutes,
-and it is the only part of the family mechanism that catches drift
-predating the rule or introduced by a skill authored outside the log — a
-registry can go stale, a grep cannot. Two disciplines make the output
-usable: judge each gap against the family's `Member-specific` column
+"Every instrument gets the same guard"). It is mechanical, takes minutes,
+and is the only part of the family mechanism that catches drift predating
+the rule or introduced by a skill authored outside the log. Two
+disciplines make the output usable: judge each gap against the family's `Member-specific` column
before calling it drift (absence is sometimes correct), and resolve it
according to the family's coherence model — `synced-duplicates` means
editing every member, `shared-core` means editing the core and checking
@@ -1106,16 +1067,28 @@ the library has grown or a new family member was authored since the last
audit — a new member always warrants one (see `skill-authoring.md`, New
skills).
+**Promotion pass — periodic, not weekly.** Monthly, or every Nth review:
+extract the candidate rule statements from every installed skill
+(headings and bolded rule sentences suffice), cluster them by substance,
+and report any rule stated in three or more skills with no entry in
+`cross-cutting-principles.md` as a promotion candidate — three independent
+derivations is the operational definition of cross-cutting, countable
+without judgement. Promotion stays the user's decision. Mine the skills,
+not the observation bodies: the skills are the distilled layer, and
+duplication there is already evidence that the review saw the same thing
+more than once and filed it locally each time. Report the method's
+negative control beside its hits — a vocabulary match such as a common
+verb over-clusters, one word carrying opposite rules in two skills — or
+the shortlist is noise with a confident count attached.
+
**Step 5 — apply.** Begin with the copy, not the edit: for each skill
with approved/non-escalated items,
**Verify an observation's factual claims against the live system before
promoting them into a skill.** An observation records what one session
-saw; a skill states what is true. Promoting the first into the second
-verbatim launders a sample into a rule, and the rule then outlives every
-chance to notice.
-
-So before a factual claim about an external system enters a skill — a
+saw; a skill states what is true, and promoting the first into the second
+verbatim launders a sample into a rule that outlives every chance to
+notice. So before a factual claim about an external system enters a skill — a
schema, 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
whatever state the original session happened to be looking at. Where the
@@ -1139,11 +1112,9 @@ record it:** append "applied form differs from the suggestion: <form>" to
the entry's `resolution:` (Step 6), and list the entry under "corrected
on apply" in the summary (Step 7). A trailer key the tool does not take
(`git commit --trailer "BREAKING CHANGE=…"`, which git writes as free
-text) or a filter flag that does not exist (`gh pr diff` has `--exclude`
-and no include form) is applied in the form that works; left unrecorded,
-the entry, which later readers and any upstream report quote, still
-carries the wrong command, and the correction outlives the review only
-if someone wrote it down by hand.
+text) or a filter flag that does not exist is applied in the form that
+works; left unrecorded, the entry, which later readers and any upstream
+report quote, still carries the wrong command.
Where an approved item's destination is an upstream report — an issue or
PR against a skill maintained by someone else — drafting that report IS the
@@ -1151,12 +1122,11 @@ apply step for it, so the feedback pre-flight in
`references/skill-authoring.md` runs here, before the draft is written:
duplicate search across the upstream's issues and pull requests, the
maintainer's preferred channel, upstream-HEAD verification; the pre-send
-gate and the claim check (same file) run on the finished draft. A pre-flight
-with no call site runs at send time, after the draft has been staged and
-listed as an outstanding item, which is when finding the duplicate costs
-the most. An empty duplicate search releases the draft only after a
-positive control: search for a term you know an existing issue contains,
-and if that returns nothing the search is broken, not clean.
+gate and the claim check (same file) run on the finished draft. A
+pre-flight with no call site runs at send time, when finding the
+duplicate costs the most. An empty duplicate search releases the draft
+only after a positive control: search for a term you know an existing
+issue contains, and if that returns nothing the search is broken, not clean.
**The review offers that route for any skill with a declared canonical
source the user does not own.** Where an observation's target declares one
@@ -1183,8 +1153,7 @@ maintainer, not a badge: "Logged by task-observer during live use, N
sessions, observed instance above" followed by
github.com/rebelytics/one-skill-to-rule-them-all. The guards are the
feature: maintainers already receive more generated reports than they can
-read, and a tool name carried on thin reports becomes the name of the
-noise.
+read, and a tool name carried on thin reports becomes the name of the noise.
**Published skills have more inputs than the log and more outputs than
one staged copy.** For any skill published to a public repository, run
@@ -1198,10 +1167,9 @@ the summary carries.
staged on top of the merged result. **A branch merges only when every
change on it has either a week of natural exercise recorded or a
synthetic check with a stated pass criterion run in this review.** The
- test week is the container; the checks are the evidence. A clean week
- is evidence about the changes the week's activity happened to touch
- and silence about the rest, so absence of complaints certifies
- nothing. The merge report lists each change with its evidence —
+ test week is the container; the checks are the evidence, since a clean
+ week is silence about every change its activity did not touch. The
+ merge report lists each change with its evidence —
exercised naturally (where), or check run (fixture and result) — and
a change with neither does not merge; it stays on the branch for
another cycle. The checks themselves come from the branch's test-plan
@@ -1224,37 +1192,31 @@ the summary carries.
folded into a skill edit; folding one in needs an interactive session
with the maintainer's explicit approval per item. In that session,
apply each approved include-now item to the staged copy — **folding in
- the class, not the line numbers.** A report lists the instances its author happened
- to hit, which is the only thing a reporter can measure; completeness
- is a property of the class, visible only to whoever holds the whole
- tree. Before editing, grep the class the report describes across the
- whole bundle and fix every hit: the report supplies the diagnosis, the
- tree supplies the extent. A
+ the class, not the line numbers.** A report lists the instances its
+ author happened to hit; completeness is a property of the class,
+ visible only to whoever holds the whole tree. Before editing, grep the
+ class the report describes across the whole bundle and fix every hit:
+ the report supplies the diagnosis, the tree supplies the extent. A
completeness claim in a report — "exactly those two", "the one site
the earlier fix missed" — is the reporter's scope, not a finding, and
the more carefully it is argued the more it discourages the one grep
that would settle it, so treat the phrase as the prompt to run it.
Record the class and the count in the commit and in the reply
- ("replaced at 4 sites; the report named 1"): it tells the reporter the
- report was read as a class, and gives the next person a search term
- that matches reality — a partial fix under a closed issue leaves the
- rest live and removes the search term that would have found it. Where
- the class is mechanically checkable, leave a check behind — a gate
- line, a lint rule — rather than only a fixed file, so the next instance
- fails at the gate instead of being reported again. When the review REWORDS a
- contribution rather than merging its diff verbatim, the merge report
- lists each reworded point beside the original bullet — the same
- point-by-point relocation verification as a moved file, because a
- rewording is a relocation with a change of words, and "the substance
- was kept" is a feeling, not a check.
- Record in the staging
- manifest both the classification and, per include-now item, the
- reporter's **GitHub login and numeric user ID** — the publishing run
- needs both to write a trailer GitHub can resolve
+ ("replaced at 4 sites; the report named 1"): a partial fix under a
+ closed issue leaves the rest live and removes the search term that
+ would have found it. Where the class is mechanically checkable, leave
+ a check behind — a gate line, a lint rule — rather than only a fixed
+ file, so the next instance fails at the gate instead of being reported
+ again. When the review REWORDS a contribution rather than merging its
+ diff verbatim, the merge report lists each reworded point beside the
+ original bullet — the same point-by-point relocation verification as a
+ moved file, because "the substance was kept" is a feeling, not a check.
+ Record in the staging manifest both the classification and, per
+ include-now item, the reporter's **GitHub login and numeric user ID** —
+ the publishing run needs both to write a trailer GitHub can resolve
(`Co-authored-by: Name <[email protected]>`, or
- `Reported-by:` for a bare report). Credit written as prose in a
- commit body is credit the platform cannot see, and the ids are cheap
- to collect here and awkward to collect at commit time.
+ `Reported-by:` for a bare report); credit written as prose in a commit
+ body is credit the platform cannot see.
3. **Re-derive every numeric and duration claim in the README and user
guide.** Prose counts are derived content with no timestamp: they were
true when written and drift with every week of use and every merged
@@ -1277,12 +1239,10 @@ the summary carries.
rounded one exist; the value, source URL and fetch time go into the
summary beside the other recomputed figures. The failure shape: a cached
read lags on the day a round-number threshold is crossed, which is the
- day the README wording changes.
- Carry the new
- values into the review summary so the maintainer sees what changed.
- Anything of the same class the maintainer alone would notice (a
- "recommended by" list, a supported-platform list) is checked in the
- same pass.
+ day the README wording changes. Carry the new values into the review
+ summary so the maintainer sees what changed; anything of the same class
+ the maintainer alone would notice (a "recommended by" list, a
+ supported-platform list) is checked in the same pass.
4. **Classify every change, and stage twice.** Each change going into
this week's version — community item or observation — is
**safe-to-main** or **needs-test**, by the same test as pass 2. That
@@ -1291,30 +1251,35 @@ the summary carries.
named `release/vX.Y.Z` for the version the branch will become, and it
is the release-branch staging that is installed locally for the test
week. Both are staged copies under `skill-updates/` with their own
- manifest entries; neither is pushed by the review.
+ manifest entries; neither is pushed by the review. For a skill under
+ test the review also writes each round's per-file diff against the
+ branch line beside the staging — `<anchor>/<skill>.round.diff`, every
+ hunk labelled with its class and its observation id — and the
+ PUBLISHING session commits it, one commit per classified change; the
+ review stays clone-free. Where a hunk would mix two observations'
+ lines, write the file so each observation's lines sit in their own
+ hunk (a context-breaking blank line, or the order of the edits) rather
+ than labelling the hunk by its larger half.
**Standing rule — the review that changes a published skill bumps its
version.** When the staged skill is published, or built and awaiting its
first push (however your publication process records that state), the
-review bumps the version as part of the
-staging: patch for wording, minor for new rules or sections, major for
-restructures. Where the skill carries a `version:` in its frontmatter,
-the bump goes into the staged frontmatter; where the version lives only
-in the repo's manifest (a `plugin.json` or equivalent), the review
-records the intended bump in the staging manifest entry (`PENDING.md`)
-so the publishing sync applies it. Where a published skill carries no
-`version:` and no repo manifest holds one, the review adds the field and
-the bump in the same staging — `1.0.0`, or the next minor above what the
-README or the release history implies — never deferring either to the
-publishing run, which cannot bump a version nobody has set: the failure
-shape is a hold that tests "version unchanged", finds it absent both
-times, and stalls the sync while each side expects the other to pick the
-number. Either way the manifest entry states
-the bump. Whoever changes the content owns the bump; the publisher only
-checks that it happened — the sync may not alter skill content, and a
-review that grows a published skill by a hundred lines at an unchanged
-version number ships a changed skill under the one promise a version
-exists to keep.
+review bumps the version as part of the staging: patch for wording,
+minor for new rules or sections, major for restructures. Where the skill
+carries a `version:` in its frontmatter, the bump goes into the staged
+frontmatter; where the version lives only in the repo's manifest (a
+`plugin.json` or equivalent), the review records the intended bump in
+the staging manifest entry (`PENDING.md`) so the publishing sync applies
+it. Where a published skill carries no `version:` and no repo manifest
+holds one, the review adds the field and the bump in the same staging —
+`1.0.0`, or the next minor above what the README or the release history
+implies — never deferring either to the publishing run, which cannot
+bump a version nobody has set: a hold that tests "version unchanged"
+finds it absent both times and stalls the sync. Either way the manifest
+entry states the bump. Whoever changes the content owns the bump; the
+publisher only checks that it happened — the sync may not alter skill
+content, and a changed skill at an unchanged version number breaks the
+one promise a version exists to keep.
**Standing rule — a branch is cut together with its test plan and its
hold, by one command.** The session that cuts a release/test branch
@@ -1336,14 +1301,13 @@ onto `main` as a release; if the cut does not write it, nothing does, and
its 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. Under the second-violation
-rule the remedy is structural: **the cutting act is one scripted command
-whose side effects are the three writes** — the staging anchor with its
-manifest entry, the registry hold, and the parked test-plan observation —
-and which refuses to run if any of the three targets is unwritable. The
-script itself lives in the publishing process, which owns two of the three
-targets; this skill states the contract its output must satisfy, and the
-reader-side rules that give the contract teeth. **An absent hold field is
+performed with the writes it happens to remember, so the remedy is
+structural: **the cutting act is one scripted command whose side effects
+are the three writes** — the staging anchor with its manifest entry, the
+registry hold, and the parked test-plan observation — and which refuses
+to run if any of the three targets is unwritable. The script lives in
+the publishing process, which owns two of the three targets; this skill
+states the contract its output must satisfy. **An absent hold field is
an assertion, not a default**: a row that has ever carried one records
when it was cleared and by which merge, so "no field" is distinguishable
from "nobody wrote the field". The cycle **cross-checks the skill's
@@ -1357,11 +1321,10 @@ on a fixed weekday; the merge review is therefore the publishing session's
weekday that follows the INSTALL of the branch line by at least a few
working 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. The test plan's
-`parked_until:` names that weekday's date explicitly, and every other copy
-of the date — manifest entry, registry row, summary — is derived the same
-way, so they cannot disagree. Where the install lands late in the week
+which is arithmetic on the wrong event. The test plan's `parked_until:`
+names that weekday's date explicitly, and every other copy of the date —
+manifest entry, registry row, summary — is derived the same way, so they
+cannot disagree. Where the install lands late in the week
(fewer than three days before the weekday), the review runs to the second
such weekday; the cutter states which was chosen and why in the test-plan
observation, once, and the other copies follow it.
@@ -1376,9 +1339,9 @@ something must change, say explicitly that the previous version is
superseded 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 cannot
be invalidated by later work — and offer it first, not as the recovery.
-Batch corrections behind the review, never in front of it. Work done while someone is reviewing is not parallelism; it
-is contention for the same object, and every revision spends the
-reviewer's attention again from the beginning.
+Batch corrections behind the review, never in front of it: work done
+while someone is reviewing is contention for the same object, and every
+revision spends the reviewer's attention again from the beginning.
**Enumerate every staged copy of the skill before seeding, whether or
not it exists live.** `find "[workspace folder]/skill-updates" -maxdepth 2
@@ -1419,22 +1382,20 @@ mkdir -p "$s/../.seed"; (cd "$s" && find . -type f -exec sha256sum {} + | LC_ALL
**Seed from the CURRENT state, which for a shared artefact is upstream —
not the local file.** That `diff` proves the staged copy started from live;
-it is silent on whether live is current, and it passes trivially in exactly
-the state it looks like it is guarding. "Edit a copy, not the original"
-answers what you may damage, not what you are building on. For any skill
-with an upstream — a repository it is installed or refreshed from,
-including one the user themselves commits to from several machines or
-sessions — the live directory is itself a copy that does not announce how
-far behind it is, and a stale local file looks exactly like a fresh one.
+it is silent on whether live is current. For any skill with an upstream
+— a repository it is installed or refreshed from, including one the user
+themselves commits to from several machines or sessions — the live
+directory is itself a copy that does not announce how far behind it is,
+and a stale local file looks exactly like a fresh one.
So before seeding, fetch the upstream revision of every file about to be
edited and diff it against live: identical → seed from live and record the
revision; divergent → pull upstream first, seed from that, and re-check
whether the observation is already addressed there, because a maintainer
-who fixed it differently and better is the common case. The session editing
-a skill is a parallel writer like any other, so this is the write-time
-state check the procedure already requires of shared logs, applied to the
-agent's own tools. Name the revision staged from in the Step 7 summary.
+who fixed it differently and better is the common case. This is the
+write-time state check the procedure already requires of shared logs,
+applied to the agent's own tools. Name the revision staged from in the
+Step 7 summary.
Two things fall out of the same fetch. It settles **section-level
provenance** — whether the passage being edited is upstream content or a
@@ -1443,18 +1404,17 @@ between an upstream report and a fork-local edit. And **an unreachable
upstream needs a positive control before it is called unreachable**: fetch
a path known to exist (the repository README) before concluding the network
is the problem, because a 404 on a guessed skill path with a 200 on the
-README means the path assumption is wrong. Without that control the
-honest-looking conclusion is "upstream unreachable, seeding from live",
-which is this same failure reached by a route that feels diligent.
+README means the path assumption is wrong; without that control,
+"upstream unreachable, seeding from live" is the same failure reached by
+a route that feels diligent.
Two details in that snippet are load-bearing and were both wrong in an
earlier version. Strip the prefix **without** a trailing slash — `${d#$live}`,
-not `${d#$live/}`. The pattern with the slash strips correctly for every
-subdirectory and fails on the one path that has no trailing slash to match:
-the top-level directory itself. `mkdir -p` then rebuilds the entire absolute
-live path *inside* the staged directory, once per skill. And keep `IFS=` on
-both `read` loops — workspace paths routinely contain spaces, and without it
-the loop mangles them.
+not `${d#$live/}`: the pattern with the slash fails on the one path with
+no trailing slash to match, the top-level directory itself, and `mkdir -p`
+then rebuilds the entire absolute live path *inside* the staged directory.
+And keep `IFS=` on both `read` loops — workspace paths routinely contain
+spaces, and without it the loop mangles them.
**If the `diff` reports anything, do not edit.** On a mount that denies
`unlink`, `rm -rf` and `rmdir` both fail on the unwanted paths, so the
@@ -1464,9 +1424,8 @@ then delete — never rename into a holding folder.** Then re-run the diff.
A holding folder converts one deletion into a second, deferred task the
user has to remember, and the queue grows silently with no consumer. In a
scheduled or autonomous run, request the grant the same way; if the
-permission stream fails there, leave the files in place, name them in the
-report as "pending deletion — grant needed", and still never rename them
-into a holding folder.
+permission stream fails there, leave the files in place and name them in
+the report as "pending deletion — grant needed".
The sequence exists so the live path is never the target of an edit, the
staged copy provably starts from live, and a stale staged copy from an earlier
@@ -1614,14 +1573,11 @@ minor findings and reads as a completed review.
**The orchestrator owns a merge-time validation pass.** Splitting work
across parallel workers splits the verification surface with it, and the
split is not clean: local checks partition neatly, global invariants do
-not partition at all. Any property defined over the whole deliverable
-becomes unverifiable the moment the work is divided, and stays
-unverifiable no matter how rigorous each worker is — every subagent can
-return a provably clean batch and the merged artefact still be wrong.
-Assume that everything the workers could not see is exactly where the
-defects are. So after the returns are in, and before anything is marked
-actioned or delivered, re-verify globally over the combined result. Three
-checks, at minimum:
+not partition at all — every subagent can return a provably clean batch
+and the merged artefact still be wrong. Assume that everything the
+workers could not see is exactly where the defects are. So after the
+returns are in, and before anything is marked actioned or delivered,
+re-verify globally over the combined result. Four checks, at minimum:
1. **Cross-slice duplicates and collisions** — two subagents handed the
same source signal will independently produce near-identical output,
@@ -1643,16 +1599,14 @@ checks, at minimum:
least where outputs are stated as judgements: a reported conflict,
defect, risk or readiness verdict carries no unit to check against,
and a wrong characterisation is consumed by being *agreed with*,
- leaving no trace — where a wrong value tends to fail loudly when
- something computes with it. Any subagent claim that will reach the
- user as a finding must be spot-checked against the source by the
- parent before it leaves the session, at whatever granularity makes
- the claim falsifiable — one grep is usually enough. The structural
- trigger: the moment you are about to write a sentence attributing a
- problem to something you did not read yourself. Require subagents to
- return the evidence alongside the claim (the file, the line, the
- matched string) so the check is cheap; a claim returned without
- locatable evidence is a claim to verify, not to relay.
+ leaving no trace. Any subagent claim that will reach the user as a
+ finding is spot-checked against the source by the parent before it
+ leaves the session — one grep is usually enough; the structural
+ trigger is the moment you are about to attribute a problem to
+ something you did not read yourself. Require subagents to return the
+ evidence alongside the claim (the file, the line, the matched string)
+ so the check is cheap; a claim without locatable evidence is a claim
+ to verify, not to relay.
Corollary for the brief: require every delegated agent to close with a
"decisions the brief did not cover" section. That section is how brief
@@ -1667,22 +1621,19 @@ re-enumerate `observation-log/` and compare the listing against the file
list built at Step 1. The queue is a snapshot of a shared, append-only
store, and every downstream count and consistency check in this procedure
is computed against the queue rather than the directory — so a stale queue
-produces a summary that is coherent, confident and incomplete, with no
-internal contradiction to trip over. Files in the new listing that were
-not in the Step 1 list arrived during the run: they are OPEN and were
-never triaged. Classify each rather than merely counting them: (a) it
-targets a skill whose staged copy from Step 5 is still open in this run →
-fold it in and action it (this is the common case — a review that has just
-touched a skill runs in the same window as the sessions most likely to be
-using it, and it is the case where a miss costs most, because the next
-review's base is then a staged copy whose provenance nobody re-derived);
-(b) otherwise → leave it OPEN for the next review and list it under the
-"arrived during this run" line of the Step 7 summary. Never let the delta
-pass silently, and never infer it from an id counter — a monotonic id
-surfacing a number above the scan's maximum is a side effect, not a
-detection mechanism. The check is a line-oriented set difference against
-the Step 1 list, with both paths re-derived in this call and a count
-guard on the new listing:
+produces a summary that is coherent, confident and incomplete. Files in
+the new listing that were not in the Step 1 list arrived during the run:
+they are OPEN and were never triaged. Classify each rather than merely
+counting them: (a) it targets a skill whose staged copy from Step 5 is
+still open in this run → fold it in and action it (the common case, and
+the one where a miss costs most, because the next review's base is then
+a staged copy whose provenance nobody re-derived); (b) otherwise → leave
+it OPEN for the next review and list it under the "arrived during this
+run" line of the Step 7 summary. Never let the delta pass silently, and
+never infer it from an id counter — a number above the scan's maximum is
+a side effect, not a detection mechanism. The check is a line-oriented
+set difference against the Step 1 list, with both paths re-derived in
+this call and a count guard on the new listing:
```bash
d="[ABSOLUTE PATH]/skill-observations/observation-log"
@@ -1717,11 +1668,10 @@ suggestion: <form>`. An entry Step 5 classed
`resolution:` and its carrier observation already written (Step 5): a
resolved entry is the one thing no later step re-reads, so the
remainder must live in the queue, never in the resolved file. The
-resolution names the staged path deliberately: `actioned` at this point means "applied to a
-staged copy", and handing an artefact over and having it taken up are two
-different facts — the first must not close the status of the second. The
-staged path is what lets the next review find every observation whose
-work is sitting un-installed (below). The `resolved:` date is load-bearing: archival is
+resolution names the staged path deliberately: `actioned` at this point
+means "applied to a staged copy", not taken up, and the path is what
+lets the next review find every observation whose work is sitting
+un-installed (below). The `resolved:` date is load-bearing: archival is
gated on it (files archive only when it's before today), so a dateless mark
breaks the cross-session grace period. Do NOT archive same-session — the
next write on a later day archives them.
@@ -1805,11 +1755,11 @@ keep-two: [N] copies pruned, [N] kept as uninstalled, [N] pending a grant
**Interactive mode only:** wait for the user to acknowledge before other
work. **In scheduled autonomous mode, do not wait** — there is no user to
-acknowledge, and this is the step a scheduled run must always reach, since
-it is where the run stages its output and records its summary. Finish after
-staging the updated skills, recording the summary, reconciling the
-staged/presented count and writing the Step 8 timestamp. A step that blocks
-on an event that cannot occur turns the run's one deliverable into a hang.
+acknowledge, and this is the step a scheduled run must always reach.
+Finish after staging the updated skills, recording the summary,
+reconciling the staged/presented count and writing the Step 8 timestamp;
+a step that blocks on an event that cannot occur turns the run's one
+deliverable into a hang.
**Step 8 — timestamp.** Bound to the record: written only once Step 7's
`reviews/[date]/REVIEW.md` exists and is non-empty, by one guarded command
@@ -1830,10 +1780,9 @@ file keeps its value; Session Start step 3 reads the same gap when a dated
write whose outcome is unknown — the call timed out, the device bridge
disconnected — is the run's to verify, never the user's: the Step 7
summary and any notification report it as "unconfirmed — verified at the
-next reachable call or by the next session's start", never as a file for
-the user to check. Verify it with one read of both files on the next call
-that reaches the workspace; where the run ends first, Session Start step
-3's read of `last-review-date.txt` and `review-started.txt` is that
+next reachable call or by the next session's start". Verify it with one
+read of both files on the next call that reaches the workspace; where the
+run ends first, Session Start step 3's read of the two files is that
verification.
## Constraints
@@ -1876,24 +1825,22 @@ measured figures beside it.
So in anything drafted for later sending or reading: **state only what is
measured at send 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, or come out. A sentence that was true when written
-is not a safe default — it is the one part of the message nothing
-re-checks. A claim about state other sessions or the user can change —
-an update staged and not installed, a PR open, a run pending — states
-when it was measured and the one command that re-checks it ("as of
-15:19, `PENDING.md` lists the batch as not installed; re-check: `cat
-<workspace>/skill-updates/PENDING.md`"); a claim that cannot carry both
-comes out. The delay can sit in the reading rather than the sending: a
-closing line that was true at 15:19 reads as current when it is pasted
-into a new session an hour later, and that session spends its first
-calls disproving it while a real defect waits under the stale line.
+computes as it sends, or come out — a sentence that was true when written
+is the one part of the message nothing re-checks. A claim about state
+other sessions or the user can change — an update staged and not
+installed, a PR open, a run pending — states when it was measured and
+the one command that re-checks it ("as of 15:19, `PENDING.md` lists the
+batch as not installed; re-check: `cat <workspace>/skill-updates/PENDING.md`");
+a claim that cannot carry both comes out. The delay can sit in the
+reading rather than the sending: a closing line that was true at 15:19
+reads as current when pasted into a new session an hour later, and that
+session spends its first calls disproving it.
Stage and present each updated skill per `references/skill-authoring.md`,
editing rule 5 — the full directory, packed into a `.skill` bundle,
staging-only in every environment; the presentation tool per environment
is in `references/environments.md`, and non-skill files are split by owner
-(below).
-Pre-delivery gate (run as the last step
+(below). Pre-delivery gate (run as the last step
before presenting; the authoring detail for items 1–5 is in
`references/skill-authoring.md`, editing rule 5): (1) every UNQUALIFIED
`references/`, `scripts/`, `assets/` path in the staged SKILL.md body has
@@ -1901,15 +1848,14 @@ its file in the staged set — another skill's file is cited as
`<skill-name>/<path>`, a file in the repository the skill operates on as
`./<path>`, both exempt and neither a disguise; re-wording a genuine
cross-reference until the backtick no longer starts with the prefix is
-disguising a reference to satisfy a linter, not fixing a defect; (2) the artefact presented is the
-bundle — bare file links fail this gate — and every staged bundle is
-presented (Step 7's staged/presented count); the number of cards is never
-a reason to present fewer, since one call carries them all and each card
-is an install decision the user makes either way; (3) each staged skill's
-folded frontmatter description is at most 1024 characters (soft warning
-above ~900); (4) `name`
-is kebab-case, matches the directory, and the frontmatter parses; (5) the
-bundle's member paths use `/`, checked on raw bytes; (6) exactly one frontmatter block
+disguising a reference to satisfy a linter; (2) the artefact presented
+is the bundle — bare file links fail this gate — and every staged bundle
+is presented (Step 7's staged/presented count); the number of cards is
+never a reason to present fewer, since each card is an install decision
+the user makes either way; (3) each staged skill's folded frontmatter
+description is at most 1024 characters (soft warning above ~900); (4)
+`name` is kebab-case, matches the directory, and the frontmatter parses;
+(5) the bundle's member paths use `/`, checked on raw bytes; (6) exactly one frontmatter block
— a second `---` block or stray `name:`/`description:` lines directly
after the first is a duplicated header that every field check passes by
construction; (7) no edit residue in any text file of the bundle,
@@ -1922,9 +1868,8 @@ literal `\1`. The unresolved-slot rule — and only that rule — is waived
for a file whose path contains `template` (case-insensitive) or whose
first line is the marker `<!-- template: slots intentional -->`: in a
reference file that IS a template for a delegate author, the slots are
-the deliverable, not residue. Every other residue rule and every other
-gate item still runs on such a file, so the exemption never becomes the
-hand-zip that skips the checks nobody was questioning. One further item is
+the deliverable, not residue; every other residue rule and gate item
+still runs on such a file. One further item is
a named human read, not an assertion: for a skill that is published or
queued for publication, confidentiality layer 9 in
`references/skill-authoring.md` over every section added since the last
@@ -1934,9 +1879,8 @@ verticals.
asserts all seven and packs a well-formed bundle — run it where Python is
available. It also enforces each skill's own declared core ceiling
(`references/skill-authoring.md`, Lean Content); a ceiling failure is
-fixed by trimming or lowering, never by bypassing the pack step —
-hand-packing a bundle to skirt the validator is the exact failure
-the gate exists to prevent. Where the bundle ships a public extract of a private file
+fixed by trimming or lowering, never by hand-packing a bundle to skirt
+the validator. Where the bundle ships a public extract of a private file
(this skill's `references/starter-principles.md`), run the
confidentiality scan over that extract here too: it is the one file in
the bundle whose content is copied from a private source, so the
@@ -1970,9 +1914,8 @@ prune, list for each skill every staged copy of it under
(a) identical, (b) superseded, (c)/(d) uninstalled; only installed
copies after the second are candidates. The offer shows that per-skill
table, so the user approves the list the rule produced, not a
-description of round directories: the two views agree only while every
-round stages the same skills, and a round that stages a skill for the
-first time in several rounds is where they diverge — its previous copy,
+description of round directories: the two views diverge at a round that
+stages a skill for the first time in several rounds, whose previous copy,
in an older directory, is that skill's only rollback.
**Executable artefacts are staged like skills.** The second-violation rule
@@ -1982,10 +1925,9 @@ under `skill-updates/<date>/hooks/` (or `lint/`, `scripts/`), never at the
path the harness runs; the manifest entry carries the path a staged file
replaces or, for a new one, the configuration line that registers it, so
nothing is live until the user acts. A change to a registered file is
-staged the same way whatever its shape — a new trigger, a dispatcher
-branch, an import: new logic behind an entry point that is already
-registered meets no registration step, so the staging is its only gate.
-Before staging, run the script offline on payloads built from the real
+staged the same way whatever its shape — new logic behind an entry point
+already registered meets no registration step, so the staging is its
+only gate. Before staging, run the script offline on payloads built from the real
tool record (`signals.md`, "Second violation — why a barrier, not a
rewording"); after install, the next session confirms it refuses the real
command and passes a legitimate one.
@@ -2003,8 +1945,7 @@ one of them left by an earlier round is applied the same way by the next
review, not carried forward as an install instruction. A file another
process owns and reads at run time stays staged, as the next paragraph
says. The failure shape: staging a file that has no install step turns
-the review's own write into a manual copy for the user, and every run
-until someone makes it reads the file without the change.
+the review's own write into a manual copy nobody makes.
**State files are staged as a patch, never as a snapshot.** A state file
here is a non-skill file another process owns and reads at run time — a
@@ -2019,9 +1960,8 @@ which the reconciliation gate re-checks before repeating any install
instruction (Step 1, "A staged state file is reconciled by its recorded
hash"). The failure shape: every run writes a state file, so a snapshot
goes stale with the next run, and its "copy it over" instruction becomes
-an overwrite that deletes everything written since staging while reading
-as compliance; a stale patch degrades into a conflict someone has to
-resolve instead.
+an overwrite that deletes everything written since staging; a stale
+patch degrades into a conflict someone has to resolve instead.
**The dated staging folder is multi-writer.** `skill-updates/<date>/` is
a namespace keyed only by date, so a manual session and a scheduled run
@@ -2031,21 +1971,20 @@ a skill, check whether that day's folder already holds a staged copy of
the same skill — if it does, diff and integrate rather than overwrite,
and say so in the manifest. Any consumer choosing the "newest staged
version" (e.g. the publishing pipeline's freshness gate) must resolve it
-by content, not by assuming a single authoritative producer — if two
-same-day copies of one skill diverge, surface the conflict rather than
-letting mtime decide. The manifest entry (below) is the provenance
-marker: who staged it, from which run, applying what.
-The same-day check has a third outcome: the day's folder already holds a copy
-the user has INSTALLED — it diffs clean against live and has no manifest entry
-left, because the install removed it (an entry still present means another
-writer's pending copy: integrate, as above). Do not seed a second round into it: the seed would be
-byte-identical to live, the `diff -rq` gate would pass trivially, and the
-new round would inherit a manifest entry that claims it is installed. Give
-the second round a discriminated anchor (`<date>-<slug>` or `<date>.2`)
-with its own manifest entry, and count rounds rather than days when the
-keep-two rule prunes. The anchor is chosen BEFORE the Step 5 seed — the
-snippet's `s=` line takes the discriminated path — not discovered afterwards
-from this paragraph.
+by content — if two same-day copies of one skill diverge, surface the
+conflict rather than letting mtime decide. The manifest entry (below) is
+the provenance marker: who staged it, from which run, applying what.
+The same-day check has a third outcome: the day's folder already holds a
+copy the user has INSTALLED — it diffs clean against live and has no
+manifest entry left, because the install removed it (an entry still
+present means another writer's pending copy: integrate, as above). Do not
+seed a second round into it: the seed would be byte-identical to live,
+the `diff -rq` gate would pass trivially, and the new round would inherit
+a manifest entry that claims it is installed. Give the second round a
+discriminated anchor (`<date>-<slug>` or `<date>.2`) with its own
+manifest entry, and count rounds rather than days when the keep-two rule
+prunes. The anchor is chosen BEFORE the Step 5 seed — the snippet's `s=`
+line takes the discriminated path.
**The previous staged state is part of the deliverable — snapshot
before any second pass, and never let a reflow ride along with
@@ -2060,12 +1999,11 @@ that rewrites a staged skill, copy the directory beside itself as
sweep and the keep-two prune cannot mistake it for a staged copy; it
goes when its anchor goes. And keep whitespace passes out of content
passes: a re-wrap moves every line, so a plain diff reports total churn
-and the few lines that actually changed are invisible in it. Content first, reviewed; reformat as a separate step whose
-diff can be discarded wholesale; a brief that delegates one says which
-of the two it is and forbids the other. Reviewability is a property of
-the pair of states, not of the final artefact — a process that produces
-a new state without preserving the old one has produced a replacement,
-not a reviewable change.
+and the few lines that actually changed are invisible in it. Content
+first, reviewed; reformat as a separate step whose diff can be discarded
+wholesale; a brief that delegates one says which of the two it is and
+forbids the other. Reviewability is a property of the pair of states,
+not of the final artefact.
**Staging manifest.** Every producer that writes under `skill-updates/`
— a review delivery, an in-session apply, or hand-over material staged
@@ -2108,24 +2046,21 @@ work, and the gate's tree-against-manifest line is what finds it when
the entry is missing. The pointer is provenance for a staging that lives
elsewhere, so it belongs here; it is not follow-up work. Follow-up work
is what the manifest never carries. Anything a review recognises as
-"check next time" — a sibling to
-mirror, an audit to run once the staging is installed — is logged as its own
-observation before the summary is written: created with `status: open`, as the
-file-format rule requires of every new entry, and parked in the same turn —
-`status: parked` plus a named `parked_until:` condition, the same two-field
-edit a review makes on any parked entry. That puts it in the queue the next review
-reads by procedure (Step 1 re-checks every parked condition; Step 7 lists
-every parked entry), and it survives the reconciliation and the prune that remove
-the manifest entry. In an aggregate run, that parked follow-up is written
-to the log of the workspace whose work it concerns — the one whose next
-review will need it — and to the anchor workspace's log only when the
-follow-up is about the shared staging itself; bookkeeping stays local,
-and an id is qualified with its workspace key wherever it is referenced
-from another log. A note in an artefact whose lifetime ends at install
-cannot carry a follow-up: nothing in the review reads manifest notes as a
-queue, and the one place the review is guaranteed to delete is the one
-place it is tempting to write the leftover backlog.
-The gate stays absolute — the fix for a safety gate people are tempted to
-bypass is reducing the friction that creates the temptation, not
-loosening the gate. An optional git-based staging medium is described in
-`references/environments.md`.
+"check next time" — a sibling to mirror, an audit to run once the
+staging is installed — is logged as its own observation before the
+summary is written: created with `status: open`, as the file-format rule
+requires of every new entry, and parked in the same turn — `status:
+parked` plus a named `parked_until:` condition. That puts it in the queue
+the next review reads by procedure (Step 1 re-checks every parked
+condition; Step 7 lists every parked entry), and it survives the
+reconciliation and the prune that remove the manifest entry. In an
+aggregate run, that parked follow-up is written to the log of the
+workspace whose work it concerns, and to the anchor workspace's log only
+when the follow-up is about the shared staging itself; an id is
+qualified with its workspace key wherever it is referenced from another
+log. A note in an artefact whose lifetime ends at install cannot carry a
+follow-up: the one place the review is guaranteed to delete is the one
+place it is tempting to write the leftover backlog. The gate stays
+absolute — the fix for a safety gate people are tempted to bypass is
+reducing the friction, not loosening the gate. An optional git-based
+staging medium is described in `references/environments.md`.