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.

Run a proposed predicate and record the corrected form on apply

Eoghan Henn48c4260e0424
diff --git a/references/observation-log.md b/references/observation-log.md
index 5baa1b9..ceb147d 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -173,7 +173,7 @@ promise about the rest.
| `resolved` | Resolution date; set only when status is `actioned`, `declined` or `superseded`. Archival is gated on it. |
| `resolution` | What was done, or why declined. When the fix is a prescription (a rule, a check, a form to use), an `actioned` resolution names where it now lives — a file and section, a staged skill copy, or a registered backlog entry. If no such place can be named, the prescription has been described, not applied: leave the entry `open`, or resolve the part that landed and carry the rest in a carrier observation (below). A review's own resolution already names the staged copy (`weekly-review.md`, Step 6); this is the rule for a resolution set outside a review. |
| `reference` | Optional path to saved session-local evidence. |
-| `commands_verified` | One clause per executable command the body quotes: `run`, with what it returned, or `NOT RUN` with why; the literal `none` where the body quotes no command. Blank on a body that quotes a command means the command was never run. See "Commands inside an observation" below. |
+| `commands_verified` | One clause per executable command, and per predicate (a regex, a search pattern, a hook or check condition), the body quotes: `run`, with what it returned — for a predicate, whether it matched the positive case and the negative — or `NOT RUN` with why; the literal `none` where the body quotes neither. Blank on a body that quotes a command or predicate means it was never run. See "Commands inside an observation" below. |
| `skill_qualifiers` | Optional map: skill name → the section or part of that skill meant. |
| `migration_note` | Present only on files converted from a legacy log where the converter refused to guess; clear it once reviewed. |
@@ -352,7 +352,21 @@ possible, mark the command unverified in the body. Record the outcome in
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.
+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.
+
+**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.
**A sweep the Suggested improvement prescribes names the behaviour, not
the pattern that found the first instance.** When the improvement tells a
@@ -1097,10 +1111,9 @@ 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.
-
-**This covers reads as well as writes**: an empty read over content you
-know exists is the same signal ("Guard the read, not just the write").
+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
+non-empty log is a broken command", above).
### Why this is the entire concurrency story
@@ -1161,6 +1174,18 @@ resolved.
Core rule (How to Log); re-read first — a parallel review may have
resolved it — and never rewrite a file you don't own.
+**An appended instance is a test input for the entry's predicate.** The
+restatement path (core, "Check for a restatement before writing") is the
+one moment a session holds the literal failing string together with the
+fix the entry proposes; nothing else puts the two against each other, so
+each appended instance re-cites the fix with the weight of one more
+confirmation while the number of times it was run stays at zero. When
+you append an instance and the entry proposes a predicate, or quotes a
+command, run it on the new instance's literal string and note in the
+appended text whether it matched. A miss is the finding: correct the
+Suggested improvement in the same edit, and add the run to
+`commands_verified:`. Repeating a prescription is not testing it.
+
When a backlog is split between parallel sessions, the mechanical safety
above cannot stop two sessions legitimately resolving the *same* file in
different ways. A handoff that splits work must therefore carry an
diff --git a/references/weekly-review.md b/references/weekly-review.md
index 75c08fa..df25568 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -915,10 +915,10 @@ entries target the same member. Then, before anything is presented:
frontmatter alone, and open each such sibling before actioning the
entry: an exclusion grounded on `assumed` is a review item, not a
verdict (`observation-log.md`, "Record the verdict"). Check
- `commands_verified:` in the same pass: a body that quotes a command
- with the field missing or blank quotes a command nobody ran — run it
- now, or record `NOT RUN` with why, before the entry is actioned or
- cited.
+ `commands_verified:` in the same pass: a body that quotes a command or
+ proposes a predicate with the field missing or blank quotes one nobody
+ ran — run it now, on the instance the entry describes, or record
+ `NOT RUN` with why, before the entry is actioned or cited.
- **Confidentiality pass over the log itself.** For every OPEN
`open-source` observation, check the Issue and Improvement fields for
client-identifying specifics no longer needed for context and strip
@@ -1057,7 +1057,20 @@ verification"), because a dated first-party claim is forbidden there
The cost is one query; the alternative is a rule that is wrong in exactly
the cases nobody sampled.
A command the entry quotes is a claim of this kind; its `commands_verified:`
-clause (`observation-log.md`) says whether anyone has run it.
+clause (`observation-log.md`) says whether anyone has run it. A predicate
+the entry proposes — a regex, a hook condition — is one too, and a
+predicate never run at write time gets its first run here, on the
+instance the entry describes. **When running a quoted command, flag or
+predicate shows the suggested form is wrong, apply the form that ran and
+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 8). 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.
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
@@ -1608,13 +1621,15 @@ any count. A file the review itself archived since Step 1 shows under
finding.
Re-run the Step 1 duplicate-id check over the new listing as well: this
re-scan is not redundant with Step 1, because the collisions it exists to
-catch are the ones created *during* the run. A run that trims this step as duplicate work removes the only
-check positioned after the writes it is checking for.
+catch are the ones created *during* the run.
Then, in each applied observation's frontmatter set
`status: actioned`, `resolved: YYYY-MM-DD` (today), and
`resolution: "Staged for [skill-name] at skill-updates/<anchor>/[skill-name] (weekly review)"`
-— editing only those fields, in that one file. An entry Step 5 classed
+— editing only those fields, in that one file. An entry whose quoted
+command or predicate the Step 5 run disproved carries the correction in
+the same field: `… (weekly review); applied form differs from the
+suggestion: <form>`. An entry Step 5 classed
`partially-applied` is marked the same way, with the remainder named in
`resolution:` and its carrier observation already written (Step 5): a
resolved entry is the one thing no later step re-reads, so the
@@ -1673,6 +1688,7 @@ files are split by owner"); or "none"
### Observations Actioned
[numbers and titles]
+[corrected on apply: #id — suggested form → form that ran; or "none"]
### Family coherence
[each multi-skill observation: applied to all listed skills, or partially