jig-harness/jig
M8

Learning loop

Miss→lens flywheel, eval corpus, reflection, memory promotion
1 · The idearead this first

Checklists, 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.

Invariantthe rule, independent of any tool

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.

2 · The practicewhat each level asks of your repository

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.

What the audit checks at Lite convention-only is enough must be mechanically enforced
  1. 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
  2. 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
  3. 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.

What the audit checks at Standard convention-only is enough must be mechanically enforced
  1. 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
  2. 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
  3. 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
  4. 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.

What the audit checks at Strict convention-only is enough must be mechanically enforced
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

  1. Copy FLYWHEEL.md and miss-taxonomy.yaml; prune the taxonomy to the miss classes your system actually produces.
  2. 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).
  3. Add corpus-lint as a CI gate so the corpus can’t drift (duplicate levers, unknown categories, unvalidated fixtures promoted).
  4. Once you measure reviewers against oracles, feed the tallies to the parity report and let missed_blockers / precision drive the M7 promotion decisions.
  5. Turn on session reflection. With Jig’s plugin, add a reflection section to the user configuration (~/.jig/jig.yaml, see the plugin’s configuration): the review loop then asks for /jig:reflect after a hard review, and /jig:review-reflections turns the store into approved changes. Without the plugin, copy reflection-inbox.md and 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. Tune ROUND_THRESHOLD once you have seen a few fire.
  6. Wire the reflection + memory-promotion steps to your runtime (recipes in mappings.md), keeping the human-approval checkpoint.
  7. Copy AUDIT-CATALOG.md and list the areas that drift without a gate noticing, each with an owner, a cadence and a last-audited date (never for an area not yet audited, which makes its first audit due at once); file one issue per manual row 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.
3 · The mechanicsopen what you need
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:

  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. Validate, then gate — run the reviewer against the new fixture live. Only once it demonstrably catches the miss does the fixture flip to required: true and join the regression corpus — the set that must keep passing forever. An unvalidated fixture in the blocking gate is theater.
  6. Measure — track recall / precision / cost of the lens marginally against oracles (the parity report), including a missed_blockers count. 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 (see HITL-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 as reflect and review-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 as promote-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, quarterly or ad 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

GateWhen it runsRung
corpus-linton any change to the corpus / taxonomyCI (authority); cheap enough to pre-commit too
parity reporton a schedule (a weekly parity snapshot)CI on a cron; its failure reopens a lever + feeds M7 promotion
reflection triggerat the end of a review loop, once it convergesnot 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

yaml
# .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.tsv

GitLab CI

yaml
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.tsv

Issue 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.

TrackerWiring
Linear / Jiraone 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 issuesone issue per lever; the issue number is the L-NNNN; a lever label. Guard next-number races the same way as ADR numbering
Flat filea 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).

RuntimeReplay shape
Claude Code / Codex / Cursora skill/command that checks out pinned_commit, runs the reviewer with the current lens set, and asserts the expected finding appears
A test harnesseach 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.

ToolRole
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 snapshota 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.

RuntimeReflectionMemory promotion
Claude CodeJig’s /jig:reflect records a session’s findings in the shared reflection store; /jig:review-reflections proposes scaffolding changes for human approvalJig’s /jig:promote-memory lifts private memory into the git-tracked docs, after checking it still holds
Codexthe same two skills, from the Jig pluginthe same promote-memory skill, from the Jig plugin
Cursor / otheran end-of-session hook writing to the inbox (or, through the plugin’s scripts, to the store); a periodic review stepa 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.

Storereflection.storeFits
A folder of JSONL files, one file per writefilesystem (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 pagenotionA team that triages in Notion and wants the findings filterable and sortable there
Any command that answers the contractcommandA store a repository or a person already runs: a database, an internal service
Without the plugin: the markdown inbox the reflection trigger appends ton/aA 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:

sh
# 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" ;;
esac

Only 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.

RuntimeWhere the trigger sits
Claude Code / Codex / Cursorinside 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 loopa step after the convergence check; on PROMPT, open an issue or post the record so the prompt survives the job ending
A session hookpass 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).

CadenceWhere the reminder lives
continuousNowhere: a gate or a schedule runs the audit, and its failure is the reminder. A continuous row with no such check is mislabelled.
per releaseA 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, quarterlyA 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 hocThe 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.

Source: modules/M8-learning-loop/mappings.md

4 · Statuswhat is built, and what is left out on purpose

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

PieceWhat it is
templates/FLYWHEEL.mdThe copyable process doc: the flywheel and its two companion cycles, with the human-approval boundary
templates/miss-taxonomy.yamlA neutral, generic miss taxonomy to prune and grow
templates/corpus.yamlThe eval-corpus schema, with a validated and an unvalidated example
templates/reflection-inbox.mdThe inbox the reflection trigger appends aggregable records to
templates/AUDIT-CATALOG.mdThe audit catalog: one row per drift-prone area no gate covers, with owner, cadence, tooling, last audited and open work
templates/deep-review-tracker.mdOptional: 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.mdTrackers for lever ids, eval runners, telemetry, per-runtime reflection and memory commands, audit-cadence reminders
maturity criteriaThe 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 manual row 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-fix and deferred are true positives, rejected a false positive, and moot neither. A blocker the reviewer never raised has no reply, so the report’s missed_blockers come 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.