Tasks & memory
Tracker taxonomy with process-driving labels; persistent agent memoryTwo everyday things quietly rot a delivery process. First, a task tracker that is just a list does not drive anything: labels accumulate as decoration (a folksonomy — tags people add by habit that mean whatever the reader guesses), so “this touches a database migration” or “this needs a human to merge” is a note someone might notice, not a step that reliably happens. Second, an agent’s knowledge evaporates between sessions: the plan it built, the gotcha it hit, the decision it made all vanish when the window closes, so the next session — or the next agent — starts cold and repeats the work or the mistake. This module makes the tracker drive process (labels that fire gates) and gives agent knowledge a place to live (a tiered memory with a promotion path), plus reusable phase formulas so recurring multi-phase work can’t skip a required step on the way to done.
Issues carry a mandatory label taxonomy — a closed set of types and
statuses, plus flag labels that each fire a process
(a migration flag fires a migration review; an API-change flag fires the
contract gates; a manual-ops flag blocks done until an operator checklist
is complete; a security-sensitive flag fires a security review; a hitl
flag revokes autonomous execution/merge). A label that fires nothing is not
allowed. Work is tiered what (the tracker, which holds all work state) /
how (persistent agent memory about the code) / in-session (the task
list and worktree scratch). What tools share across the worktrees of one
machine lives in a machine-local store outside every worktree, which
holds no work state the tracker lacks, so deleting it costs a rebuild and
no decision. A
durable lesson is promoted from private memory into git-tracked shared
memory through a review point. Recurring multi-phase work runs a formula
whose required phases must be recorded before the item may close (staging
verification before production, say).
Work items follow these rules. An epic closes on an accepted verdict that its designed scope is delivered, or on a recorded human waiver, never on its count of open children. Deferred findings enter the backlog in batches linked to their origin, never as children that enlarge its scope. A flag that fires a gate goes on the item that ships the change, never on its container. Labels carry durable classification only, never mutable operational state. Every issue is filed with its type, priority, size and category already set: the priority from one shared severity mapping, the category chosen and checked against one category list, and the check made inside the tracker write itself. Every copy of the taxonomy’s key sets is checked for exact equality with its source. Prioritization is computed: the ranked shortlist is reproducible from a tracker snapshot and a committed weights file. A person picks from it, or opts the host in to have the dispatcher start work in its order.
Everything below is that one tool-independent statement made mechanical; concrete per-tracker, per-runtime wiring lives in mappings.md.
M9 Lite — minimum useful
a documented issue taxonomy exists (types, statuses, and named flag labels), flag labels are named by convention, and a persistent-memory location is designated (by convention). Enforcement may be prose and habit.
- An issue taxonomy is written down once — a closed set of types and statuses plus named flag labels — and referenced by the instructions.
taxonomy-documentedWhat the audit looks for (2)- a label taxonomy lists types, statuses, and flag labels
- each flag label names the process it is meant to fire
- A persistent, multi-session location for agent memory is designated (the how tier), distinct from the tracker and from in-session task lists.
memory-location-designatedWhat the audit looks for (5)- a memory home is named (a git-tracked dir or a runtime memory feature)
- the what / how / in-session tiering is documented
- work state has one authoritative store, the tracker, with no second task store beside it
- handoffs another worktree, or a person not working in it, needs go on the tracker item, not in worktree scratch; a resumption file for the same worktree may stay there
- state the worktrees of one machine share (locks, leases, a brief several worktrees read) lives in a machine-local store outside every worktree, never in a sibling worktree's scratch, and holds no work state the tracker lacks
M9 Standard — production teams
the taxonomy is a validated SSoT file and the label-taxonomy lint runs mechanically; flag labels actually fire gates (a has-migration label triggers a required check, a hitl label is honoured), each declaring its scope so gate flags sit on the shipping item; epics close on an accepted verdict or a recorded waiver, never on a child count; every filing path sets priority and category at birth; and the memory-promotion path from private to git-tracked shared memory is documented.
- The taxonomy is a single validated source-of-truth file, and the label-taxonomy lint runs mechanically so it can't drift into folksonomy.
taxonomy-validated-ssotWhat the audit looks for (2)- a label-taxonomy file is the SSoT (unique ids, closed types/statuses)
- the label-taxonomy lint runs as a gate on changes to it
- Flag labels actually fire process, not just categorize — e.g. a migration flag triggers a required check and a hitl flag is honoured.
flag-labels-fire-gatesWhat the audit looks for (2)- at least one flag label is wired to a required check or blocking rule
- the wiring is derived where possible from the M3 change-area catalog
- A flag label that fires a gate goes on the work item whose change ships, never on the epic that contains it, the container is identified by an epic flag or native epic type, and every copy of the taxonomy's key sets equals its source.
gate-flags-scoped-to-shipping-itemWhat the audit looks for (4)- the taxonomy or the instructions state, per gate flag, that it goes on the shipping item, not its container (a declared scope field is convention evidence; mechanical needs a check that refuses a gate flag on a container item)
- an epic is marked by a container flag while retaining its work type, or by a native epic type that needs no separate kind
- labels carry durable classification only; pending operational state lives in the tracker's status or a ledger, not a label
- every copy of the taxonomy's key sets (a configuration's type list, an issue template's flag table) is checked for exact equality with the taxonomy; a check over the configuration's copies alone counts for those copies only
- An epic closes when its newest verdict accepts that its designed scope is delivered, or on a recorded human waiver that cannot override a rejection, never on its count of open children; tails it was never scoped to finish are linked back and given a comment naming the epic before they are extracted and it closes.
epic-closure-requires-acceptanceWhat the audit looks for (6)- the instructions or the closing tool name the verdict or waiver an epic needs to close, that only the newest verdict counts, and that a waiver does not override a rejecting verdict
- open children the epic was never scoped to finish (sign-offs, operator steps, review debt) are linked back, given a comment naming the epic, then unparented and moved to a standing destination before closure
- new deferred findings enter the backlog with related links to their originating issue and epic, never as their children; existing parented follow-ups leave as tails at closure
- person-only checks, including plain hitl and ops-pending, move to one standing person-checks list at closure; an epic's own operator step is filed there rather than keeping delivered scope open
- the pull request finishing an epic's designed scope removes its active-plan and roadmap entries where listed
- an on-demand sweep counts as mechanical when it proposes closure without writes, verifies scope and tail prerequisites, and records the person's accepting reply as the waiver before closing
- Every path that files an issue sets its priority and category at creation, the priority from one shared severity mapping and the category supplied with the finding and validated against one category list; it validates the mandatory taxonomy before the write, and appends to an existing container when one fits; the ranked shortlist a person picks from is computed, not hand-kept.
issues-prioritized-at-creationWhat the audit looks for (8)- one severity mapping is the source for the priority every filing path sets (a batched deferral script, an issue template, a scheduled-failure reporter); a deferral batch carries its findings' highest priority
- the filing path requires a category for each issue and checks it against one category list; a category derived from severity is not credited
- the filing path refuses an issue missing a mandatory taxonomy group before writing it
- an issue filed around that check (an issue form, a filing by hand) is caught on a schedule: a sweep lists every open issue missing a type, a priority or a size and moves the ones not yet started back to triage; a repository that keeps these on its tracker and runs no sweep is named (config-fit's suggestion:issue_tracker.sweep)
- the filing path looks up an open container for the same source and type and appends to it, filing a new issue only when none fits
- deferred findings are batched by pull request and issue type on every supported tracker, with the highest priority and the union of categories, and later findings append to the open batch
- the share of filed issues carrying no priority is measured over the issues the filing paths create (by a scheduled report, a tracker query or export, or drive-pr's fractal-metrics.ts for open follow-ups), so a filing path that skips priority shows up
- the ranked shortlist is reproducible from a tracker snapshot and committed priorities: a validated priorities record (`.config/priorities.yaml`, format priorities/v1) the dispatcher ranks from, or a committed weights file; a ranker that is only planned or documented is not credited
- The path that lifts a durable lesson from private per-session memory into git-tracked shared memory through a review point is documented.
memory-promotion-documentedWhat the audit looks for (2)- a private -> promoted -> git-tracked promotion flow is written down
- promotion is a review point (HITL), not an automatic dump
M9 Strict — regulated / compliance posture
both gates run in CI with self-tests (mechanical); required-phase formulas gate item closure mechanically (an item cannot close with a required phase unrecorded); and the hitl flag mechanically revokes autonomous execution/merge (shared with M7).
- The label-taxonomy lint and the required-phases gate each ship a self-test that runs in CI, so a broken tasks/memory gate fails loudly.
taxonomy-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
- Required-phase formulas gate item closure — an item cannot reach a done state with a phase the formula marks required left unrecorded.
required-phases-gate-closureWhat the audit looks for (2)- a phase-formula file marks the required phases for a work class
- the required-phases gate runs at close/merge and blocks on a skipped required phase
- The hitl flag mechanically revokes autonomous execution/merge for the issue and its PR (the same rule M7 and M0 use).
hitl-flag-revokes-autonomyWhat the audit looks for (2)- a hitl label is defined in the taxonomy and revokes autonomous merge
- automation cannot self-merge an item carrying the hitl flag
Adoption steps
- Copy
label-taxonomy.yaml; prune the types and statuses to what your tracker uses and declare, for each flag, the process it fires, which item carries it (scope) and when it applies (apply_when). Declare any other single-select family (a size, a repository) as a group and any prefixed family as a category, with the umbrella each facetrequires. Add the label-taxonomy lint as a CI gate so the taxonomy can’t drift into folksonomy, check every copy of its key sets elsewhere against it, and have every filing path run the label validator before it writes an issue. - Wire each flag to its process: point
has-migration/api-changeat your M3 required-checks projection, and thehitlflag at the same autonomy-revoking rule M7 and M0 use (recipes in mappings.md). - Adopt
ISSUE-TEMPLATES.mdas your tracker’s epic and sub-issue templates so every issue carries the taxonomy, its priority and category, and a tactical plan. - Designate the three memory tiers with
MEMORY-TIERS.md: a git-tracked shared-memory home, the agent-runtime memory feature for the how tier, and the promotion step (kept HITL, wired with M8). - Write the work-item rules into your instructions: the epic closure rule and where its tails go, and the one severity mapping every filing path derives priority from.
- For any recurring multi-phase work, write a
phase-formula.yamland add the required-phases gate at close/merge so a required phase can’t be skipped.
Core piecesOpen
- Flag labels as process triggers, not folksonomy — the label set is a
validated SSoT (
label-taxonomy.yaml) with a closedtypeslist, a closedstatuseslist, andflagswhere every entry declares what it fires. A flag with no trigger is decoration, and the label-taxonomy lint rejects it. Other closed families sit beside them: a label group (one size per issue), and a label category of prefixed labels (area:billing), which may require an umbrella label so a facet never appears alone. The label validator checks each issue’s labels against the file before the issue is written. Many flags are derivable rather than hand-applied: if a change touches a migration path in the M3 change-area catalog, the migration flag can be set automatically. - The three memory tiers — what lives in the tracker (team-visible units
with the taxonomy, plus each item’s tactical plan, decisions and handoffs),
how lives in persistent agent memory (durable knowledge about the code,
private first and promoted into git-tracked docs), and in-session is the
task list and worktree scratch an agent keeps for one focused stretch.
Putting a lasting decision in the ephemeral tier is how knowledge
evaporates; parking a handoff in worktree scratch hides it from every other
worktree; a second store for work state beside the tracker drifts from
it. What tools share across the worktrees of one machine (locks, leases,
a review loop’s records, a working copy of a brief) lives in a
machine-local store outside every worktree: not a fourth tier,
because it must hold no work state the tracker lacks, so that losing it
costs a rebuild and no decision. The
tiers, the machine-local store and the handoff format are spelled out in
MEMORY-TIERS.md. - Memory promotion — private, per-session agent memory becomes reliable for the whole team only when a durable lesson is promoted into git-tracked shared memory through a review point (never an automatic dump). This is the HITL memory-promotion flow shared with M8 — Learning loop, which pairs it with session reflection: M9 owns where memory lives, M8 owns the promote/reflect loop.
- Phase formulas with REQUIRED gates — a
phase-formula.yamlencodes the phases a class of recurring work must pass and marks which arerequired: true. The required-phases gate refuses to let an item reach a done state with a required phase unrecorded — the same validate-then-gate shape as M8’s corpus, applied to a work item’s lifecycle. - Epic / issue templates carrying the taxonomy — copyable, tool-independent
ISSUE-TEMPLATES.mdskeletons for an epic and a sub-issue, each stating its type, status, flags, priority and category, a tactical execution plan, and epic↔sub-issue links both ways, so a reader landing on either reaches the whole picture.
Work-item rulesThe rules below govern how items are filed, labelled and closed.Open
The rules below govern how items are filed, labelled and closed.
An epic closes on an accepted verdict
An epic closes when its newest acceptance verdict says its designed scope is delivered, or when a person records a waiver on the epic. “Designed scope is delivered” is a judgment, not a countable fact, so the count of open children never decides closure. That count fails both ways: review follow-ups keep arriving as children, so an epic that waits for zero open children never closes; and sub-issues marked done whose code never landed would let an epic close on a count that looks complete.
- A waiver answers “nobody ran the review”, never “the review said no”: it cannot override a rejecting verdict. An accepting verdict that a later rejection superseded does not count either.
- Deferred findings go to the backlog with a priority and category, linked
to the originating issue and its epic by the tracker’s native
relatedrelations, never as their children. Batch them by pull request and issue type on every tracker: one open follow-up per key, with the highest priority and the union of its findings’ areas as its category. A later finding for that key appends to the open issue. - At closure, the epic hands off its tails: open
children it was never scoped to finish, such as a legal sign-off, an
operator step, review debt or a person-only check (plain
hitlorops-pending). Each tail is linked back to the epic and given a comment naming where it came from, and only then unparented and moved to the standing destination for its kind. The flag it carries, the link and the comment are what make the unparenting safe: the item still shows where it came from. - An open child that is ordinary scope means the designed scope is not delivered, and the epic stays open.
- Person-only checks move to one standing person-checks list.
An epic that itself owes an operator step files the step on that list and
closes; the step remains owed there. The destination is named by
issue_tracker.person_checksin Jig’s configuration. - The pull request that finishes the epic’s designed scope removes its entry from the active plan and public roadmap where listed. Released history records what changed.
Gate flags go on the shipping item
A flag that fires a gate goes on the work item whose change ships, the
sub-issue whose pull request carries the migration, never on the epic that
contains it. On the epic, the gate fires for every child or for none; on the
child, it fires exactly where the change is. A tracker may mark the container
with an epic flag while retaining its work type, or with a native Epic
issue type that needs no separate work kind. Each flag in the
taxonomy declares its scope
(shipping-item or container) so this rule is checkable per flag.
Labels carry durable classification only
A label records a fact about the item that stays true: what kind of work it is, which process it fires. It never records operational state that changes while the item lives.
- “This change will need an out-of-tree step” is a flag. “That step is pending now” is state, and belongs in the tracker’s status or an operations ledger. Reading the first as the second makes every later sweep re-triage the same items.
- Who can perform a step and who must approve it are separate facts. “Only a person can do this” is durable and can be a label; “a person has to approve this in production” changes as approvals are granted, so it is ledger state, not a label.
- Flags stay on after the step is done: they record that the item owed one.
Priority and category at birth
Every path that files an issue (a person, a review’s deferral, a scheduled
check, an agent) sets its type, its priority, its size and its category when
it files it. The type and the size are issue facets
beside the priority: a value the tracker interface carries on every issue,
whichever field or label the tracker keeps it in. The
priority is derived from one shared severity mapping,
and a finding whose severity is unknown files as medium: ranked in the
middle until someone reads it, never left unranked and never guessed low.
The category is a separate classification, since two findings of the same
severity can be a security issue and a performance one: the filing path takes
it from the finding and checks it against one category list, never derives it
from severity. A finding that came with no category is filed as an explicit
unknown, which the check accepts, rather than with a guessed one. That list
is kept beside the label taxonomy, not in it (the taxonomy’s label
categories are label families, not this classification); where Jig’s
tooling reads it is in
mappings.md. Before
writing, the filing path validates the mandatory taxonomy (type and the other
required groups), and appends to an existing container when one fits instead
of filing a new one.
An issue filed without a priority is not “low priority”; it is unranked, and
an unranked pool cannot be worked in order.
The check is made in one place, inside the tracker write, so every path that files through the tracker interface gets it, a new one included: an issue with no type, no priority, or no size (an epic needs none, since its children carry theirs) is refused before a request is sent, with a message naming what it lacks. A filing that goes around the interface (an issue form, a person in the tracker’s own page) is caught after it: every read of a pool lists an issue that lacks a facet as a gap, rather than ranking it as if it had none to carry.
Taxonomy copies are checked
Any copy of the taxonomy’s key sets outside its source file (the type list a configuration repeats, the label names a skill is configured with, a list in a planning template) is checked for exact equality with the source. Exact, not subset: a key added on one side only fails in both directions. A copy nothing checks drifts the first time someone edits the source.
Computed prioritization
The ranked shortlist of what to work on next is reproducible: the same
tracker snapshot and the same committed weights file give the same ranking. A
judgment layer may reorder it only with a stated reason per deviation; a
deviation that recurs is a weight to retune. A person picks from the
shortlist, or authorizes the host to start work in its order: that opt-in
(priorities.enforce) is the person’s decision, it grants no power beyond the
ready pool dispatch already selects from, and weights of 0 take a lane out of
rotation.
In your toolsThe same rule, wired into a specific CI provider, hook manager or tracker. Shows only your stack.Open
The module invariant — a validated label taxonomy whose flag
labels fire process; the what/how/in-session memory tiers with a promotion path;
phase formulas whose required phases gate closure — is tool-independent. This
file maps its mechanisms onto concrete issue trackers,
persistent-memory homes, and CI providers. Everything here
is an option, not a requirement: pick one row per column. Replace
<placeholders> with your values.
The gates, per rung
| Gate | When it runs | Rung |
|---|---|---|
| label-taxonomy lint | on any change to label-taxonomy.yaml | CI (authority — see M1); cheap enough to pre-commit too |
| label validator | before any tool writes an issue’s labels | the filing path itself (file-issue runs it before every write) |
| required-phases | at item close/merge (or on a status transition) | CI gate, or a tracker status-automation, over the item’s exported phase record |
The label-taxonomy lint and the label validator live in the plugin’s
file-issue skill
(plugin/skills/file-issue/scripts/), with their self-tests, which Jig’s
own CI runs. A CI job runs the lint from a pinned Jig checkout (point JIG
at it); it needs Bun and nothing else, the YAML parser being vendored in
plugin/shared/. The required-phases gate stays in this module: point one
M9 variable at wherever you vendored the module and build its paths from
it (a bare reference/... resolves from the repo root and will not be
found). It imports the shared implementation in lib/module-gates.ts, so
vendor the module together with lib/ (a pinned Jig checkout keeps them in
place).
GitHub Actions
# .github/workflows/tasks-memory.yml
on:
pull_request:
paths: ['label-taxonomy.yaml']
# plus the close/merge check below on the merge path
jobs:
taxonomy:
runs-on: ubuntu-latest
env:
JIG: .jig # where the pinned Jig checkout is
steps:
- uses: actions/checkout@<full-commit-sha> # v4
- uses: actions/checkout@<full-commit-sha> # v4
with: { repository: jig-harness/jig, ref: <pinned-tag>, path: .jig }
- run: bun "$JIG"/plugin/skills/file-issue/scripts/check-label-taxonomy.ts label-taxonomy.yaml
required-phases:
runs-on: ubuntu-latest
env:
M9: modules/M9-tasks-memory
steps:
- uses: actions/checkout@<full-commit-sha> # v4
- run: bun test "$M9"/reference/required-phases/check-formula.test.ts
# export this PR's item phase record from the tracker (see below), then:
- run: |
RECORD=item-phases.txt FORMULA=phase-formula.yaml \
bun "$M9"/reference/required-phases/check-formula.tsGitLab CI
tasks_memory:
variables:
M9: modules/M9-tasks-memory
JIG: .jig # the pinned Jig checkout
script:
- bun "$JIG"/plugin/skills/file-issue/scripts/check-label-taxonomy.ts label-taxonomy.yaml
- bun test "$M9"/reference/required-phases/check-formula.test.ts
- RECORD=item-phases.txt FORMULA=phase-formula.yaml bun "$M9"/reference/required-phases/check-formula.tsIssue trackers — flag labels + required checks, and formula → phases
The flag label wiring has two halves: applying the flag (ideally derived
from the M3 change-area catalog, not by hand) and
firing its process (a required check, a blocking checklist, or an
autonomy-revoking rule). A formula’s required phases map either to tracked
sub-tasks or to a status-automation that runs the required-phases
gate before a transition to done.
| Tracker | Flag label → process | Formula phases → mechanism |
|---|---|---|
| GitHub issues | issue/PR labels; a has-migration/api-change label maps to a required status check via branch protection; a hitl label revokes autonomous merge (shared with M7) | phases as a task-list or linked sub-issues; the merge gate exports a phase record and runs the gate before allowing close |
| GitLab issues | scoped labels (flag::has-migration); required-check + “all threads resolved” rules per label | phases as checklist items or child issues; a pipeline job runs the gate on the merge request |
| Jira | labels or a custom field; a workflow condition/validator ties a label to a mandatory transition or a required linked review | phases as sub-tasks; a workflow validator blocks the Done transition until required sub-tasks resolve (or the gate passes) |
| Linear | issue labels; a hitl label marks a deliverable whose merge stays human; automation rules fire on label add | phases as sub-issues or a project’s stage; a status-transition automation runs the gate |
| Dart | tags for flags; an automation ties a tag to a required review | phases as subtasks; a rule gates the closing transition |
Jig’s do-item skill honours
the hitl and manual-ops flags through its
tracker adapter (Linear’s, GitHub Issues’ and
Jira’s are built), with the label names taken from issue_tracker.labels in the
repository’s configuration.
Its file-issue skill applies
the flags at filing: from the change-area catalog’s tracker labels of the
areas a diff touches directly, else from the description, and through the
same adapter, after the label validator has passed the whole label set
against the taxonomy (issue_tracker.taxonomy).
The tracker-agnostic contract the gate needs is small: a status: and the
completed phase ids, one per line. Any tracker that can export those (a saved
view, an API query) can be gated — the export is the only per-tracker adapter.
Field-only label categories
A taxonomy category marked field_only: true holds values the tracker keeps
in a field it reads as labels but never writes, so a filing sets them on that
field afterwards and never as labels.
| Tracker | Such a field | Mapping |
|---|---|---|
| Jira | a field whose values the adapter reads as prefixed labels, such as Fix versions as fixversion:2.4 | issue_tracker.jira.field_labels: { "Fix versions": "fixversion:" }, with the category’s prefix equal to the mapped prefix |
| GitHub issues, GitLab issues, Linear, Dart | none read this way | no category is field-only; every value is a label |
validate-labels.ts --check-tracker refuses a field-only category whose
prefix the configured tracker maps to no field.
Issue trackers — the work-item rules
The work-item rules need three things from a
tracker: a priority every filing path can set, a marker for the container
(the epic flag), and a place to record an epic’s
acceptance verdict or waiver before it closes.
| Tracker | Priority at birth | Epic marker | Verdict or waiver before close |
|---|---|---|---|
| GitHub issues | no native priority: a single-valued project field (or a priority: label set) written on create | an epic label, or an issue type such as Epic that issue_tracker.labels.epic_types lists; sub-issues for the children | a comment carrying a verdict marker line; a workflow on issues: closed reopens an epic without one |
| GitLab issues | scoped labels (priority::2, a paid tier), single-valued by construction; on the free tier, a priority- label set the filing path keeps to one | epics (a paid tier) or an epic label | a comment marker; a webhook or scheduled job reopens an epic closed without one |
| Jira | the built-in Priority field, required on create by the field configuration | the Epic issue type, read as the epic where issue_tracker.labels.epic_types lists it; it replaces the bug or feature type, so record the real type in a field; or keep the real type and add an epic label | a workflow validator on the closing transition requires the verdict field or a waiver comment |
| Linear | the built-in priority (0 none, 1 urgent to 4 low), set on create | an epic label, keeping the real type label | a comment marker; do-item Step 5a asks for it before extracting tails and closing |
Whatever the tracker, keep the severity mapping in one
committed file, and have each filing path read it or test its own copy against
it. Jig’s deferral path (resolve-review-comments’ defer-batch.ts) does
neither yet. Its priorities are a fixed table in the script, and its tests
compare that table with the skill’s own test fixture, never with a
repository’s committed mapping. So a repository that changes its mapping
changes nothing the deferral path files, and no check fails to say so: keep
the mapping at the table’s values, or check the copy yourself.
The category list works the same way in Jig’s tooling: it is
review.taxonomy.categories in .config/jig.yaml
(configuration reference), and the deferral
path checks every category it files against that list plus unknown. So a
finding the reviewer left uncategorized is filed as unknown even when the
list does not name it, and any other category outside the list is refused
before anything is written.
Persistent-memory homes (the how tier + promotion)
The what tier is the tracker above. The how tier — multi-session agent memory — and the git-tracked shared memory that promotion lands in need a durable home. Any of these works.
| Home | Role |
|---|---|
a git-tracked memory/ directory | the shared, reviewable home promotion lands in; a promotion is an ordinary reviewed commit, so history and blame come free |
agent-runtime memory feature (Claude Code / Codex / Cursor memory files, or a project AGENTS.md/rules file) | the how tier an agent reads/writes across sessions; promote the durable parts into the git-tracked memory/ |
| a tracker comment, document or wiki page on the item or its epic | not a how-tier home: knowledge about one work item (its plan, decisions, handoffs) belongs to the what tier, on the item itself |
Promotion from private to shared memory stays HITL whatever
the home — the reflection/promotion commands live with
M8 (Jig runs promotion as the
promote-memory skill); M9 only
fixes where each tier’s memory lives.
CI providers
Any provider works — both gates run with Bun and TypeScript.
The only provider-specific pieces are (1) the path prefix (M9 above) and (2)
the tracker export that produces the phase record the required-phases gate
consumes, shown per tracker above.
Runnable form
Skills in Jig’s plugin run parts of this practice:
do-itempicks up a work item through a tracker adapter and honours its flag labels:hitlstops it before delegating and keeps the merge human, andmanual-opssurfaces the operator checklist and parks the item until a person completes it. The epic closure sweep proposes closure, records the person’s waiver, and moves outstanding person checks and the epic’s own operator steps to the configured standing list before closure. The label names and the tracker’s state names are configuration (issue_tracker.labels,issue_tracker.statesin the configuration reference); the template’s statuses are the same canonical states.- The tracker interface (
do-item’slib/tracker/) checks every issue filed through it for a type, a priority and a size, and refuses one that lacks any, naming what is missing.work-batchlists a pool’s issue that lacks a priority or a size as a labelling gap, and the dispatcher’s tick record lists the assigned items that lack one. file-issue’s weekly sweep (check-fields.ts check) catches an issue filed around that check, by an issue form or by hand: it moves each one not yet started back to triage with a comment naming what it lacks, and lists the started ones. Its move (check-fields.ts move) carries a repository’s facets from one store to another, labels to the tracker’s own fields or back, with a record that undoes it.resolve-review-commentsbatches deferred review findings into backlog issues on every tracker, linked to the originating issue and its epic, never parented to them, with their type, highest priority from the severity mapping (an unknown severity as medium), union of categories and size. It refuses a type outside the declared taxonomy or a missing mandatory label group, and appends to the open follow-up for the same pull request and type instead of filing another.drive-pr’s scoreboard (fractal-metrics.ts) reads the follow-up ledger through the tracker adapter and reports the share of open follow-ups that carry no priority.- The audit’s configuration check
compares the configured
issue_tracker.labelsandreview.taxonomy.typeswith a repository’s label taxonomy (issue_tracker.taxonomy, else alabel-taxonomy.yamlit finds), so an audit run reports where those copies of the taxonomy have drifted from it. file-issuefiles and plans issues with a durable body, labels derived from the change’s areas or its description, a duplicate search first, and every label set checked by the label validator before it writes; it holds the label-taxonomy lint too.promote-memoryis the promotion step between the memory tiers, shared with M8.
What the module provides
| Piece | What it is |
|---|---|
templates/label-taxonomy.yaml | A generic label taxonomy: closed types and statuses, flags that each declare what they fire, which item carries them and when they apply, and an example group and category |
templates/ISSUE-TEMPLATES.md | Tool-independent epic and sub-issue skeletons carrying the taxonomy, priority and category, and a tactical plan |
templates/phase-formula.yaml | The formula schema: a work class’s phases, with the required ones marked |
templates/MEMORY-TIERS.md | The what / how / in-session tiers and the private → promoted → git-tracked flow |
| label-taxonomy lint | The taxonomy’s invariants as a gate: closed lists, no flag that fires nothing, every flag scoped and conditioned, and every group, category and requires well formed; with its self-test in the skill |
| label validator | One issue’s labels against the taxonomy: one type, one label per group, every facet beside its umbrella, nothing undefined |
reference/required-phases/ | The close-time gate: an item may not reach a done state with a required phase unrecorded |
mappings.md | Issue trackers, persistent-memory homes, CI providers |
| maturity criteria | The criteria the audit skill scores |
The required-phases 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. The label-taxonomy
lint and the label validator run from the plugin, where the file-issue
skill uses them; both read the taxonomy with the plugin’s vendored js-yaml
build, which rejects a repeated key.
Left out by design
- Real label names, trackers and memory tools. A working repository’s label names, its phase catalogue and its choice of tracker and memory store are its own content. The module provides the shapes (a flag fires a process; three memory tiers; a formula’s required phases gate closure) with neutral labels and examples, and lists named trackers and memory stores in mappings.md as options, never requirements.
- The promotion and reflection commands. They belong with M8.
- Tracker-to-gate automation. It is per ecosystem and lives in mappings.md.
Future
- The epic acceptance review. The review that writes an acceptance verdict is planned. The on-demand sweep records human waivers.
The prioritization ranker runs in the dispatcher over a tracker snapshot,
the repository’s priorities record and the host’s weights file, and reports
its shortlist beside what the dispatcher starts. A host that opts in
(priorities.enforce) starts pickups in the shortlist’s order. The
priorities skill validates the
record and shows how a change moves the shortlist.