Learning loop
Miss→lens flywheel, eval corpus, reflection, memory promotionChecklists, reviewers, and gates freeze on the day they were written. Something slips through — a reviewer misses a bug, a gate has a blind spot, an agent repeats a mistake — and without a loop, the same class of miss recurs, because nothing turned that miss into a durable check. The usual failure mode is a Slack post-mortem, a nod, and no change to the system. This module packages the loop that converts a miss into a permanent improvement — the miss→lens flywheel — plus the two companion cycles (session reflection and memory promotion) that keep the scaffolding itself learning, and a catalog of the areas that drift without any miss to learn from. It is the most transferable practice in jig: it applies to any evaluable agent behavior, not just review.
Every significant miss (by a reviewer, gate, or agent) is classified
against a taxonomy, filed with a durable identifier, reconstructed as a
replayable eval fixture that pins the pre-fix state,
and answered with an additive lens (a check appended,
never a rewrite). A fixture joins the regression corpus only after a live
run validates it (required: false until then). Lenses are kept or
killed by measurement, not opinion. Reflection records are
append-only, carry an id, and their state is computed from them, never
stored beside them. And scaffolding changes proposed by reflection
require human approval (HITL) — the system may
suggest changes to its own rules, but a person approves them. And every
drift-prone area that no gate fully covers has a named cadence, an owner
and a last-audited date in an audit catalog, an area audited only by hand
being tracked as a gap in tooling.
Concrete per-runtime, per-tracker wiring is in mappings.md.
M8 Lite — minimum useful
the flywheel is written down (FLYWHEEL.md) and misses are actually captured somewhere durable with a lever id and a taxonomy category; a reflection habit exists. Enforcement may be convention.
- The miss->lens flywheel is written down (classify, file with a durable id, pre-fix fixture, additive lens, validate, measure) and referenced by the instructions.
flywheel-documentedWhat the audit looks for (2)- a flywheel/learning-loop doc states the full loop end to end
- it names the pre-fix fixture and validate-then-gate steps
- A closed miss taxonomy exists and misses are classified against it, so recurring classes are countable rather than anecdotal.
miss-taxonomy-existsWhat the audit looks for (2)- a miss-taxonomy file enumerates categories with stable ids
- filed misses carry one of those categories
- A session-reflection step captures end-of-session feedback into an inbox for later processing (not lost at session end).
reflection-habitWhat the audit looks for (4)- a reflect step / command appends feedback to a durable inbox
- with Jig's plugin: a `reflection` section in a configuration layer, and `/jig:reflect` contributing to the store it names
- say whose habit it is: a `reflection` section in the user layer (`~/.jig/jig.yaml`, so ask the person) turns it on for that person only; one in the repository's `.config/jig.yaml` turns it on for everyone working in the repository
- a recommendation to add the section to the repository's file names that it is a team decision, since it turns reflection on for everyone working there; the per-person alternative is the user layer
M8 Standard — production teams
misses live in a machine-readable corpus where every entry has a unique lever id, a valid taxonomy category, and a pinned pre-fix commit, validated by corpus-lint in CI; lenses are additive and numbered; reflection-proposed scaffolding changes require human approval; an audit catalog gives every drift-prone area no gate covers a cadence, an owner and a last-audited date.
- Misses live in a machine-readable corpus where every entry has a unique lever id, a valid taxonomy category, and a pinned pre-fix commit, and a lint validates it in CI.
corpus-machine-readableWhat the audit looks for (2)- a corpus file lists fixtures with lever id + category + pinned_commit
- a corpus-lint check runs in CI and fails on a duplicate/unknown/unpinned entry
- New coverage is added as numbered, additive lenses each linked to the lever that motivated it; existing lenses are not silently rewritten away.
lenses-additiveWhat the audit looks for (2)- lenses are numbered and reference a lever id
- the convention states the lens list is append-only
- Scaffolding / meta-spec changes proposed by reflection require human approval before they are applied.
scaffolding-changes-approvedWhat the audit looks for (3)- reflection feedback becomes PROPOSED changes, gated on a human approval step
- the approval is listed as a HITL decision (see M7 registry)
- with Jig's plugin: `/jig:review-reflections` proposes a change per group of findings and records a decision only after a person approves it
- Every drift-prone area that no gate fully covers is a row in an audit catalog with an owner, a cadence, a last-audited date and its open work, and an area audited only by hand names the issue that tracks the gap in tooling or states why the audit cannot be automated (expected-absent for a repository whose every area a gate fully covers).
audit-catalog-maintainedWhat the audit looks for (6)- an audit catalog file lists each area with owner, cadence (continuous, per release, monthly, quarterly or ad hoc), tooling or manual, last-audited date and open work
- every `ad hoc` row names its trigger (for example, "when the schema changes") in its tooling or open-work cell, and every `continuous` row names a gate or schedule that actually runs; a row without one has no operational cadence and fails this observation
- every manual row's open-work cell names a tracker issue for the tooling gap, or states why none is possible
- no row is overdue by the template's own reading without an open issue that says why: a `monthly` or `quarterly` row is overdue when today is later than its last-audited date plus a month or a quarter; `continuous` and `ad hoc` rows are never overdue by date
- a `per release` row's last-audited cell names the release its audit followed, and that release is the latest one or the one before it (an audit after release A is what permits cutting B, so the row still names A once B ships); before the repository's first release, any finished audit date counts
- a row whose last-audited cell is `never` (an area listed but not yet audited) is due at once and names the open issue for its first audit; `never` is not a missing date
M8 Strict — regulated / compliance posture
the validate-then-gate promotion is mechanical (a fixture is required: true only with a recorded validation); a parity report measures recall / precision / missed_blockers and gates reviewer promotion (M7); reflection fires from an observable — a review-round threshold — rather than from the author remembering, and the record carries the measurement that triggered it; the gates ship self-tests run in CI; memory promotion lands in git-tracked shared memory.
- A fixture may enter the blocking regression corpus (required: true) only with a recorded live validation, enforced by the corpus lint.
validate-then-gate-enforcedWhat the audit looks for (2)- corpus-lint fails a required: true fixture that lacks a dated validated record
- the check runs in CI
- A parity report measures recall / precision / missed_blockers against oracles on a schedule; a missed blocker fails loudly and reviewer promotion to blocking is gated on measured precision.
parity-measuredWhat the audit looks for (2)- a scheduled parity job emits per-reviewer tallies and runs the parity gate
- a missed blocker fails the gate; precision feeds the M7 promotion decision
- The corpus lint and the parity report each ship a self-test that runs in CI, so a broken learning-loop gate fails loudly.
learning-gates-self-testedWhat the audit looks for (2)- each gate has a paired self-test exercising a known pass and a known fail
- CI runs the self-tests
- Durable lessons are promoted from an agent's private memory into git-tracked, shared memory through a review point, not an automatic dump.
memory-promotion-trackedWhat the audit looks for (2)- a promote-memory step lifts private memory into a git-tracked shared store
- promotion is a review point, not unattended
- Session reflection is prompted by an observable signal — such as a review whose FINAL round count, at convergence, met a threshold — rather than by the author remembering, and the signal is recorded so entries can be ranked.
reflection-triggered-on-an-observableWhat the audit looks for (7)- the trigger fires on a converged review whose final round count met the threshold — not mid-loop, where the count is not yet the answer
- the trigger runs as a step in the review loop, not as an instruction to remember
- the reflection record carries the triggering measurement — the change id and the count — written by the trigger rather than by hand
- the threshold is configurable, and firing on every change is not the default
- a record already filed for that change and count is not filed again, including after the inbox entry has been processed
- with Jig's plugin and reflection on: the review loop's wind-down notes the round count in the reflection journal under an id derived from the pull request, and asks for `/jig:reflect`
- with Jig's dispatcher and reflection on: a `jig dispatch --apply` tick records each recurring class of its outcome log as a finding about the dispatcher, under an id derived from the repository, the stage, the class and the week, so one recurrence is filed once a week and each further week of it counts toward escalation
Adoption steps
- Copy
FLYWHEEL.mdandmiss-taxonomy.yaml; prune the taxonomy to the miss classes your system actually produces. - Start a
corpus.yaml: every time an oracle catches a miss, add an entry (lever id, taxonomy category, pinned pre-fix commit, the lens that answers it,required: false). - Add corpus-lint as a CI gate so the corpus can’t drift (duplicate levers, unknown categories, unvalidated fixtures promoted).
- Once you measure reviewers against oracles, feed the tallies to the
parity report and let
missed_blockers/ precision drive the M7 promotion decisions. - Turn on session reflection. With Jig’s plugin, add a
reflectionsection to the user configuration (~/.jig/jig.yaml, see the plugin’s configuration): the review loop then asks for/jig:reflectafter a hard review, and/jig:review-reflectionsturns the store into approved changes. Without the plugin, copyreflection-inbox.mdand put the reflection trigger at the end of M7’s review loop, so a hard review prompts reflection at convergence rather than whenever someone thinks of it. TuneROUND_THRESHOLDonce you have seen a few fire. - Wire the reflection + memory-promotion steps to your runtime (recipes in mappings.md), keeping the human-approval checkpoint.
- Copy
AUDIT-CATALOG.mdand list the areas that drift without a gate noticing, each with an owner, a cadence and a last-audited date (neverfor an area not yet audited, which makes its first audit due at once); file one issue permanualrow for the gap in tooling, or record in the row why its audit cannot be automated. Add the deep-review tracker if you run deep reviews. mappings.md shows how to remind owners when a row goes overdue.
The flywheel, step by stepAn oracle (an external reviewer or a human) catches what the automated system missed. Then:Open
An oracle (an external reviewer or a human) catches what the automated system missed. Then:
- Classify — bucket the miss against a fixed miss taxonomy (a closed vocabulary, so patterns are countable — “we miss error-path bugs a lot” becomes visible).
- File with a durable id — record it with a stable lever number
(
L-NNNN) in a tracker, so it can be referenced forever. Lever numbers are unique — the same collision problem as ADRs (parallel authors pick the same next number), solved the same way. - Reconstruct as a pre-fix fixture — capture the miss as a replayable eval fixture pinning the commit before the fix, with the finding it should have produced. Pre-fix, because a fixture pinned after the fix proves nothing.
- Answer with an additive lens — add one numbered review lens (or checklist bullet, or gate) that would have caught it. Additive: the lens list only grows, so a fix for today’s miss never silently deletes yesterday’s coverage. The lens links back to its lever.
- Validate, then gate — run the reviewer against the new fixture live. Only
once it demonstrably catches the miss does the fixture flip to
required: trueand join the regression corpus — the set that must keep passing forever. An unvalidated fixture in the blocking gate is theater. - Measure — track recall / precision / cost of the lens marginally against
oracles (the parity report), including a
missed_blockerscount. Measurement decides whether a lens is promoted to blocking (feeds M7’s precision bar), kept advisory, or killed.
The two companion cyclesBoth cycles are the same shape as the flywheel — observe → durable record → validate → adopt — applied to process feedback and to memory instead of to review misses.Open
- Session reflection — a
/reflect-style step accumulates end-of-session feedback into a shared store; a separate step processes it into proposed scaffolding changes with mandatory human approval before anything is edited. Changing the rules the agents follow is self-modifying, so it is HITL by construction (seeHITL-REGISTRY). The records are an append-only log of events (a finding, a decision about it), each with an id fixed before it is first written, so a retried or concurrent write never counts a finding twice; a finding’s status, and how often its class recurred, are computed from the log when it is read. That is what lets every repository and worktree write to one store, a plain folder included, without locks or conflicts. Jig’s plugin runs this cycle asreflectandreview-reflections. - Memory promotion — an agent’s private, per-session memory is periodically
promoted (via a
/promote-memory-style step) into git-tracked, shared team memory, so a lesson one agent learned survives the session and reaches the others. Promotion is a review point, not an automatic dump. Jig’s plugin runs this step aspromote-memory.
Both cycles are the same shape as the flywheel — observe → durable record → validate → adopt — applied to process feedback and to memory instead of to review misses.
Triggering reflection on evidence, not goodwill
Session reflection only compounds if it actually happens, and “reflect when it felt hard” reliably under-fires: the sessions with the most to say are the ones that end tired and late.
So trigger it on an observable instead. The strongest one available is the number of review rounds a change took to converge (M7 core piece 7). A change that needed many rounds is rarely evidence of a noisy reviewer; it usually means the scaffolding under-served it — an instruction that did not land, a rule the reviewer had to teach repeatedly, a convention that should have been mechanised, or a reviewer config that let a known class through. Each of those is a lever, which is exactly what this module’s flywheel consumes.
Two properties make the trigger work:
- Emit at convergence, not afterwards. The detail is richest at the moment the loop ends and decays quickly once the session closes. A prompt that arrives the next day gets a summary; one that arrives at convergence gets the specifics.
- Carry the round count and the change identifier into the record. A reflection entry that cannot be aggregated is an anecdote. With the count attached, the inbox answers “which changes fought the scaffolding hardest”, which is the question that ranks the levers.
The threshold is a local calibration — set it where it fires on the genuinely hard reviews and not on ordinary ones, and keep it adjustable. “The reviewer was wrong repeatedly” is itself a finding, and routes to the reviewer’s config or its eval corpus rather than to the instruction files.
Both properties are mechanical in the
reflection trigger: it fires only on M7’s
CONVERGED decision, and it writes the change id and round count into the
inbox record itself rather than trusting anyone
to remember them. What it deliberately leaves to a person is the judgement —
which lever, or whether the reviewer was the thing that was wrong. Jig’s
plugin applies the same trigger in its own review loop, recording the round
count as a finding in the reflection journal at convergence. Its
dispatcher treats a class of outcome
that keeps recurring the same way: it records the class once a week as a
finding, with the days, the row count and the reasons attached, and leaves
the judgement to the person who reviews it.
The audit catalog: areas no gate coversThe flywheel answers misses that have already happened. Some parts of a repository drift without producing one: a diagram that no longer matches the code, settings kept in a hosted…Open
The flywheel answers misses that have already happened. Some parts of a
repository drift without producing one: a diagram that no longer matches the
code, settings kept in a hosted service, a policy that no lockfile can express,
runbooks that were never rehearsed. No gate fails, so nobody looks, and the
first sign is the incident. Jig’s own /jig:audit
does not cover this: it scores whether a repository has adopted Jig’s
practices, not the health of its code or its systems.
The practice is a single list, the audit catalog, with one row for every drift-prone area that no gate fully covers. Each row carries:
- an owner, one person or team, who sees that the audit happens;
- a cadence:
continuous,per release,monthly,quarterlyorad hoc(the last only with a named trigger, or the area has no cadence at all); - the tooling that performs or supports the audit, or
manual; - the date the area was last audited, advanced when an audit finishes whether or not it found anything;
- the open work the last audit left, as tracker keys.
An area audited only by hand is tracked as a gap in tooling: its open-work cell names the issue that would replace the manual step with a check, or says why the step cannot be automated. Manual audits are right while an area’s rules are still being found; the row keeps the repeating cost visible instead of letting it become permanent.
The catalog is the learning loop’s second entry point. A miss the flywheel classifies often turns out to be an area the catalog did not list, and a manual row that keeps finding the same class of problem is the strongest case for the gate that would replace it (M1). The periodic wiki lint of M4 is one row of such a catalog: the documentation tree, audited on a schedule.
Where audits are deep reviews of a whole area along a fixed list of dimensions, an optional deep-review tracker keeps the list versioned and queues a re-review of every area last reviewed under an older version.
In your toolsThe same rule, wired into a specific CI provider, hook manager or tracker. Shows only your stack.Open
The module invariant — classify, file with a durable id,
reconstruct as a pre-fix fixture, answer with an additive lens, validate before
gating, then measure — is tool-independent. This file maps its mechanisms onto
concrete issue trackers, eval runners, telemetry, and agent
runtimes. Replace <placeholders> with your values.
The gates, per rung
| Gate | When it runs | Rung |
|---|---|---|
| corpus-lint | on any change to the corpus / taxonomy | CI (authority); cheap enough to pre-commit too |
| parity report | on a schedule (a weekly parity snapshot) | CI on a cron; its failure reopens a lever + feeds M7 promotion |
| reflection trigger | at the end of a review loop, once it converges | not a gate — a loop step whose exit code says whether to prompt (see § Reflection below) |
The recipes run the gates from a pinned Jig checkout: each gate imports
the shared implementation in lib/module-gates.ts, so keep the module and
lib/ together and set M8 to the module’s path inside that checkout. The
reflection trigger also uses plugin/shared/cleanup.ts from that checkout
to release its lock through the shared process registry.
GitHub Actions
# .github/workflows/learning-loop.yml
on:
pull_request:
paths: ['corpus.yaml', 'miss-taxonomy.yaml']
schedule:
- cron: '0 9 * * 1' # weekly parity snapshot
jobs:
corpus:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
M8: <jig-checkout>/modules/M8-learning-loop
steps:
- uses: actions/checkout@<full-commit-sha> # v4
- run: bun test "$M8"/reference/corpus-lint/check-corpus.test.ts
- run: CORPUS=corpus.yaml bun "$M8"/reference/corpus-lint/check-corpus.ts
parity:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
env:
M8: <jig-checkout>/modules/M8-learning-loop
steps:
- uses: actions/checkout@<full-commit-sha> # v4
- run: ./scripts/parity-snapshot > parity.tsv # from your telemetry
- run: MIN_PRECISION=0.90 bun "$M8"/reference/parity-report/check-parity.ts parity.tsvGitLab CI
variables:
M8: <jig-checkout>/modules/M8-learning-loop
corpus-lint:
rules: [{ changes: ['corpus.yaml', 'miss-taxonomy.yaml'] }]
script:
- bun test "$M8"/reference/corpus-lint/check-corpus.test.ts
- CORPUS=corpus.yaml bun "$M8"/reference/corpus-lint/check-corpus.ts
parity:
rules: [{ if: '$CI_PIPELINE_SOURCE == "schedule"' }]
script:
- ./scripts/parity-snapshot > parity.tsv
- MIN_PRECISION=0.90 bun "$M8"/reference/parity-report/check-parity.ts parity.tsvIssue trackers (durable lever ids)
The lever id (L-NNNN) is the spine — a lens, a fixture, and a metric all point
at it. It needs a home that outlives a PR.
| Tracker | Wiring |
|---|---|
| Linear / Jira | one issue per lever with a stable key; a learning-loop label; the corpus lever: is the issue key. Uniqueness is free (the tracker assigns keys) |
| GitHub issues | one issue per lever; the issue number is the L-NNNN; a lever label. Guard next-number races the same way as ADR numbering |
| Flat file | a levers.md ledger if you have no tracker; corpus-lint enforces uniqueness within the corpus regardless |
Eval runners (replaying the corpus)
The corpus is data; running a fixture — replay the pinned commit through the reviewer and diff its findings against the expected — is a job in your own stack, not shipped here (see the README).
| Runtime | Replay shape |
|---|---|
| Claude Code / Codex / Cursor | a skill/command that checks out pinned_commit, runs the reviewer with the current lens set, and asserts the expected finding appears |
| A test harness | each required: true fixture becomes a case in your normal test runner; the corpus is the case list |
Only a fixture whose live replay passes flips to required: true — corpus-lint
enforces that a required fixture carries the validation record, but the
running is the runner’s job.
Telemetry (the measure step)
The parity report consumes tallies; producing them is a telemetry job.
| Tool | Role |
|---|---|
| An event or product-analytics store (PostHog, Amplitude, a warehouse table; M11 maps the options) | per-review events (was a finding real? was it acted on?) aggregate into the <reviewer> tp fp missed rows |
| Weekly snapshot | a scheduled query emits parity.tsv; the parity gate turns it into keep/promote/kill + missed_blockers |
Wire the actual metric events under M11 (process observability) — M8 only defines what the numbers mean for the loop.
Reflection & memory-promotion commands
The two companion cycles are runtime commands with a human-approval checkpoint.
| Runtime | Reflection | Memory promotion |
|---|---|---|
| Claude Code | Jig’s /jig:reflect records a session’s findings in the shared reflection store; /jig:review-reflections proposes scaffolding changes for human approval | Jig’s /jig:promote-memory lifts private memory into the git-tracked docs, after checking it still holds |
| Codex | the same two skills, from the Jig plugin | the same promote-memory skill, from the Jig plugin |
| Cursor / other | an end-of-session hook writing to the inbox (or, through the plugin’s scripts, to the store); a periodic review step | a scripted promote step over the agent’s memory store |
Reflection stores
Where the reflection records live. Every store answers the same contract
(check, append, list, diagnose; see the
reflect skill), and
its conformance suite checks any of them.
| Store | reflection.store | Fits |
|---|---|---|
| A folder of JSONL files, one file per write | filesystem (the default) | One person’s machine, or a team folder synced by a cloud drive or committed to a git repository |
| A Notion database, one page per change, with each event kept on its page | notion | A team that triages in Notion and wants the findings filterable and sortable there |
| Any command that answers the contract | command | A store a repository or a person already runs: a database, an internal service |
| Without the plugin: the markdown inbox the reflection trigger appends to | n/a | A repository that does not use Jig’s plugin |
Reflection: firing it on the round count
Whether to reflect is the part that decays. The reflection trigger reads M7’s convergence decision — which already carries the round count — and fires only at convergence, only at or above the threshold. Its exit 3 (“nothing to do”) is not a failure, so wire it as a condition rather than a bare step:
# last step of the review loop, after check-round-converged.ts wrote decision.txt
CHANGE="$PR" INBOX=docs/reflection-inbox.md ARCHIVE=docs/reflection-archive.md \
ROUND_THRESHOLD=3 bun "$M8"/reference/reflection-trigger/reflection-trigger.ts decision.txt \
&& trigger_rc=0 || trigger_rc=$?
case "$trigger_rc" in
0) <your runtime's reflect command> ;; # /reflect, an end-of-session hook, …
3) : ;; # SKIP — ordinary review, nothing to do
*) echo "reflection trigger failed (exit $trigger_rc)" >&2; exit "$trigger_rc" ;;
esacOnly 3 means “nothing to do”. A bare if …; then reflect; fi treats exit 2 —
a malformed or self-contradictory decision.txt — as an ordinary skip, so a
broken producer silently stops reflection from ever firing and nothing reports it.
Re-raise every status except 3.
| Runtime | Where the trigger sits |
|---|---|
| Claude Code / Codex / Cursor | inside the skill or command that drives the review loop, as its final step — the same place that decided the loop was done |
| A CI-driven loop | a step after the convergence check; on PROMPT, open an issue or post the record so the prompt survives the job ending |
| A session hook | pass the decision file through; a hook that fires on every session end is the under-firing problem again, just inverted |
CHANGE is the source-change key — a PR number, branch, or ticket key. It is
not a lever id, and conflating the two breaks the join rather than making it:
levers are L-NNNN in the lever ledger, one
change can produce several levers or none, and the lever does not exist yet at the
moment the trigger fires. Keep change as the source-change key and record the
lever separately, in the record’s disposition: field — that field is the foreign
key from a reflection to the lever it became, and it is what lets you ask both
“which changes fought the scaffolding hardest” and “which levers came from them”.
ARCHIVE is optional but wanted in practice: the inbox is worked down as entries
become levers, and the trigger’s duplicate guard reads the archive too. Move
processed entries there rather than deleting them, or a later re-run of the same
change re-appends a record that was already handled.
On isolated runners the lock is not the guard. The trigger’s $INBOX.lock
serializes processes sharing a filesystem; two CI jobs on separate runners each
have their own checkout and their own lock, so both will append and both will
prompt. What actually deduplicates across runners is that the inbox is
git-tracked: the second job’s push loses the race, has to rebase, and on the
retry the trigger finds the marker and skips. So commit the inbox as part of the
job, and key anything the prompt causes — an issue, a post, a notification — on
change+rounds, because the trigger can promise one record per change and round
but not one side effect.
The human-approval step on reflection-proposed scaffolding changes is HITL (see M7’s registry) — a system editing its own rules must stop for a person, whatever the runtime.
Audit cadence reminders
The audit catalog records when an audit is due; something still has to say so. Pick the reminder by cadence, and put the catalog’s own file under the same review as any document (an M4 owner and freshness date).
| Cadence | Where the reminder lives |
|---|---|
continuous | Nowhere: a gate or a schedule runs the audit, and its failure is the reminder. A continuous row with no such check is mislabelled. |
per release | A step in the release procedure (M10): the release is not cut until the area’s Last audited names the previous release as the one its audit followed. |
monthly, quarterly | A scheduled job that reads the table and opens or updates one issue per overdue area, assigned to the row’s owner: GitHub Actions on: schedule (cron), a GitLab CI pipeline schedule, or a recurring item in your tracker or calendar. One open issue per area, never a new one each run. |
ad hoc | The named trigger: a path filter on the change that should prompt the audit, or the checklist of the process that changes the area. |
A manual row’s gap in tooling is an ordinary tracker issue (label it as you
label other tooling work); the catalog row links to it, and closing the issue
is the moment the row’s Tooling cell changes.
Runnable form
Memory promotion runs as the
promote-memory skill in
Jig’s plugin: it checks that a private memory
still holds before lifting it into the team’s git-tracked docs. The review
loop that feeds the reflection trigger runs as
drive-pr (see
M7). Session reflection runs as
reflect, which records a session’s
findings in a shared store, and
review-reflections,
which turns them into changes a person approves. The store sits behind a
contract with a conformance suite; the plugin ships a filesystem store and a
Notion store, and runs any other store command. The reflection trigger and its markdown inbox
below remain the option for repositories without the plugin.
What the module provides
| Piece | What it is |
|---|---|
templates/FLYWHEEL.md | The copyable process doc: the flywheel and its two companion cycles, with the human-approval boundary |
templates/miss-taxonomy.yaml | A neutral, generic miss taxonomy to prune and grow |
templates/corpus.yaml | The eval-corpus schema, with a validated and an unvalidated example |
templates/reflection-inbox.md | The inbox the reflection trigger appends aggregable records to |
templates/AUDIT-CATALOG.md | The audit catalog: one row per drift-prone area no gate covers, with owner, cadence, tooling, last audited and open work |
templates/deep-review-tracker.md | Optional: a versioned list of review dimensions and the re-reviews queued when it changes |
reference/corpus-lint/ | The corpus invariants as a gate: unique lever ids, known categories, pinned commits, validate-then-gate |
reference/parity-report/ | Recall, precision and missed_blockers per reviewer, failing on a missed blocker |
reference/reflection-trigger/ | Fires reflection from M7’s convergence line when a change took many rounds, and writes the record |
mappings.md | Trackers for lever ids, eval runners, telemetry, per-runtime reflection and memory commands, audit-cadence reminders |
| maturity criteria | The criteria the audit skill scores |
Each reference gate ships with a self-test and fixtures, and delegates to the
shared implementation in lib/module-gates.ts;
keep the module and lib/ together when you vendor them.
Left out by design
- A real taxonomy. Miss categories and reviewer-tier names are one repository’s tuned, product-specific content; the module ships a neutral taxonomy instead. Grow your own categories from your own misses.
- An eval runner. The code that replays a fixture through a model-based reviewer and diffs its findings is a model job best written in the target repository’s own language, so the module specifies the corpus contract and ships only the pieces that are portable gates: the corpus invariants, the parity arithmetic and the reflection trigger.
- Eval fixtures. Real fixtures are product-specific and unproven until a live run validates them, so none are included.
- A check on the catalog. A script that flags an overdue row, or a
manualrow without an issue for its gap, is future: it is worth writing once a repository has kept a catalog long enough to show which failures recur, so the template states the rule and leaves the dates to the owners. - Counting review outcomes. The outcome each settling review reply opens with
(resolve-review-comments)
is the parity report’s natural input: per reviewer,
accepted,wont-fixanddeferredare true positives,rejecteda false positive, andmootneither. A blocker the reviewer never raised has no reply, so the report’smissed_blockerscome from comparing it with an independent oracle, never from the outcomes. The script that collects the outcomes across pull requests and writes the report’s rows is future: it is worth writing once a repository has scored reviewers from its own replies and shown which counts it acts on. - Telemetry wiring. Event names and dashboards belong with M11.