jig-harness/jig
M3

Change-area catalog

Path→implication mapping as SSoT with generated projections
1 · The idearead this first

Every repo constantly answers the same question: “what kind of change is this, and what must happen because of it?” — which CI jobs run, which reviews are mandatory, which deploy tier applies, which tracker labels to set, which post-deploy step to trigger. That mapping usually lives as duplicated path-lists scattered across CI configs, review docs, deploy scripts, and reviewer habits — and the copies quietly disagree, so a change slips through with the wrong gates. This module makes the mapping one machine-readable catalog (path patterns → implications) from which every consumer view is generated, and mechanically keeps any hand-maintained shortcut honest against it.

Invariantthe rule, independent of any tool

One validated catalog file maps path patterns to named change-areas and their implications. Consumers (CI job selection, review-gate tables, tracker labels, deploy tiers, post-deploy actions) are generated projections that reference area names — they never re-hardcode the patterns. Any hand-maintained shortcut (e.g. a fast-path regex in CI) is mechanically checked against the catalog in both directions, and every tracked file the shortcut calls code-bearing must resolve to some area.

Those shortcut checks keep the regex and the catalog in sync; they do not prove the regex complete. A tracked file the regex treats as non-code is invisible to them (classifying it is the resolver’s job), and “resolves to some area” is weaker than “resolves to a code-bearing area”: a regex that leaks a docs-only area’s prefix passes all three checks and runs the heavy build for docs-only changes.

The catalog is a single source of truth (see the glossary): one shared change-area vocabulary, many thin per-consumer projections.

2 · The practicewhat each level asks of your repository

M3 Lite — minimum useful

one catalog file is the single place path→area→implication is written; consumers reference area names (even if some projections are still hand-copied). A schema/structure check validates the file (kebab-case ids, impliedBy refs resolve, no self-implication).

What the audit checks at Lite convention-only is enough must be mechanically enforced
  1. One catalog file is the single place that maps path patterns to named change-areas and their implications; consumers reference area names rather than re-listing the path patterns.
    catalog-is-single-sourceWhat the audit looks for (2)
    • a single catalog file (yaml/json/toml) lists areas with their path globs
    • at least one consumer (CI, review docs, deploy) refers to area names, not copied globs
  2. A check validates the catalog's structure: area ids are well-formed, every implied-by reference names an existing area, and no area implies itself. That check must run independently of catalog-derived selection — unconditionally on every CI event, or behind a literal, hand-written path match on the catalog file — never resolved through the catalog itself, or a change that deletes the catalog's own paths resolves to nothing and skips the very check meant to catch that (see the module README's § self-check paradox).
    catalog-schema-validatedWhat the audit looks for (4)
    • a script/schema validates area-id format and rejects unknown fields
    • a check fails on a dangling impliedBy reference or a self-implication
    • running the change-areas skill's `scripts/check.ts`, or a composer's `runCheck`, in CI counts as this check: it validates the ids, rejects unknown fields and fails on a dangling or self-referencing impliedBy
    • this check runs unconditionally or behind a literal path match on the catalog file itself, never behind a resolver lookup — a fixture that deletes the catalog file's own path from the catalog still runs this check rather than silently resolving to no seeded areas and skipping it, and a separate fixture with a real schema or graph defect (a dangling reference, a self-implication) proves the check fails

M3 Standard — production teams

the catalog is schema-validated and graph-validated (referential integrity, no cycles) in CI; at least one consumer view (CI selection or the review-gate table) is a generated projection with a freshness gate; workspace-coverage is gated.

What the audit checks at Standard convention-only is enough must be mechanically enforced
  1. A CI check enforces the graph invariants of the implied-by relation (referential integrity, no cycles) and, for any area declaring `generated:`, that each `generated[].source` glob resolves to a real on-disk path — a mistyped source path silently disables a freshness coupling (see M3's `reference/catalog/README.md`'s § Graph validation, point 7) and is otherwise invisible to a checker that only validates the `impliedBy` graph. If the repo wires an agent-gate-depth consumer at all — whether or not any area currently declares `validation:` — a schema check alone is not enough either: the safety-critical part is the *computation*, not the shape — an implementation that parses the block correctly but silently drops the fail-closed default to the deepest declared profile (unmatched file, missing `validation.profile`), or, where the repository computes a remote-machine requirement, derives it from the seeds instead of their closure, would still pass a schema-only check while under-validating (see M3's `reference/catalog/README.md` § Agent gate depth).
    catalog-graph-validatedWhat the audit looks for (6)
    • a CI job runs the catalog checker (referential integrity + cycle detection); the change-areas skill's `scripts/check.ts`, or a composer's `runCheck`, counts, and also checks each `generated[].source` against the repository's files
    • a cycle or dangling reference fails the build
    • if any area declares `generated:`, the checker also expands each `generated[].source` glob and fails the build when it matches no on-disk path — and this expansion runs on every CI event (or is triggered by a match against any declared `generated[].source` glob, not just the catalog file), so deleting the last file a glob matches without touching the catalog still re-validates the now-broken declaration
    • if any area declares `generated:`, a test fixture proves activation, not just glob resolution: a change touching only a `generated[].source` path seeds the *owning* area, as a `paths` match would (M3's `reference/catalog/README.md`'s § Generated-output coupling, Activation), so that area's freshness check is in the change's validation plan, and the test fails if that source-only change does not select it
    • if the repo wires an agent-gate-depth consumer at all — whether or not any area currently declares `validation:` — a test fixture proves the computed profile: an unmatched file and a seeded area with no `validation:` block or no `validation.profile` both select the deepest declared profile as the fail-closed default; where the repository's composer computes a remote-machine requirement, a fixture proves it is read from the seeds' `impliedBy` closure, not from the seeds alone; a resolver relying entirely on the documented defaults (no area declares `validation:` yet) must still be exercised, not skipped just because there's no explicit block to point the fixture at
    • for each of deploy tiers, post-deploy actions, mandatory reviews (`review.skills` and the review-gate table), and tracker labels and flags (`tracker.labels`, `tracker.flags`) that the repo actually generates a consumer view for, a test fixture proves that projection reads the correct side of § Seeds vs. closure (deploy tiers, post-deploy actions and `review.skills` from the seeded areas' `impliedBy` closure; tracker labels and flags from the seeds alone) — a fixture where a seed's closure differs from the seed set catches a projection reading the wrong side (e.g. a `core-lib` change whose closure reaches `api-service` must not skip `api-service`'s `review.skills`); a repo that generates none of these has nothing to fixture and is unaffected
  2. Every workspace directory on disk maps to at least one area, and each area's declared workspace exists and is matched by one of its own globs; a new unmapped workspace fails CI.
    workspace-coverage-gatedWhat the audit looks for (2)
    • a check maps each apps/* and packages/* dir to an area's workspace
    • a check fails when a workspace is absent, unglobbed, or uncovered
  3. At least one consumer view (CI job selection, review-gate table, or component directory) is a projection generated from the catalog: either derived on every run, so no copy exists to go stale, or committed with a freshness gate that fails when the copy is stale.
    consumer-view-generatedWhat the audit looks for (2)
    • a generator emits a consumer view from the catalog
    • the view is derived at run time (for example CI area flags written by the resolver on every run), or a CI drift check fails when the committed projection is out of date

M3 Strict — regulated / compliance posture

every consumer is a generated projection with a freshness gate; the resolver drives CI job selection mechanically; and any hand-maintained CI shortcut is checked against the catalog in both directions and for tracked-file coverage (checkFilterFileCoverage) — bidirectional sync checks alone permit a code-bearing file to stay unmapped while still passing, so a shortcut retained at Strict is not fully sync-checked without the third check. A shortcut that gates deployment instead runs the catalog → regex direction against the deploy-critical area class (not the general code-area class) and adds checkFilterCodeAreaCoverage — see reference/regex-mirror/README.md for why the area class must change, not just the check count. In addition, every general code-shortcut-positive file must reach a separately corroborated code-bearing anchor through the union of its matched areas’ closures. Anchors need a source-controlled deployment, publish, or enabled heavy-gate reference outside the catalog; see the anchor protocol.

What the audit checks at Strict convention-only is enough must be mechanically enforced
  1. CI job selection is driven by the resolver (seed match + implied-by closure), so a change to a shared area mechanically triggers the jobs of every area that depends on it.
    ci-selection-resolver-drivenWhat the audit looks for (2)
    • a CI setup step resolves changed files to areas and gates downstream jobs on the result; the change-areas skill's `--format gha` outputs (`<area>=` for the closure), or a composer's, written by that step and read by the jobs' conditions, count
    • a shared-area change triggers dependent-area jobs whose own paths did not change
  2. Every consumer view is a generated projection with a freshness gate; no consumer re-hardcodes the catalog's path patterns.
    all-consumers-generatedWhat the audit looks for (2)
    • each consumer (CI, review table, labels, deploy tiers, post-deploy) is generated and drift-gated
    • no consumer file contains a hand-maintained copy of the area path globs
  3. Any hand-maintained CI shortcut regex is checked against the catalog in both directions and against the union of files tracked at the current and base refs (the two directional checks alone can pass while a whole unmapped tracked file still slips through — see M3's reference/regex-mirror/README.md). If no shortcut exists, score this expected-absent: there is no duplicate classification to keep in sync.
    regex-shortcut-sync-checkedWhat the audit looks for (5)
    • no hand-maintained CI shortcut regex exists — CI job selection is driven entirely by the resolver (see ci-selection-resolver-driven) — in which case this criterion is expected-absent
    • checkFilterSegmentCoverage asserts every regex alternative's prefix matches a component-boundary literal head of some area's parsed paths: value — never a substring scan of the catalog file's raw text, which a notes: field's prose could satisfy
    • checkFilterCoverage asserts every non-denied code area (or, for a deploy shortcut, every area whose closure reaches a deploy-critical area) has its paths: glob matched by some regex alternative, compared the same parsed-values way
    • a check asserts every tracked file the regex calls code-bearing matches at least one catalog area, checked against the union of current- and base-ref tracked files (checkFilterFileCoverage)
    • if the shortcut gates deployment specifically rather than answering the general "did any code change?" question, a check also asserts every matching tracked file's area closure reaches a deploy-critical area (checkFilterCodeAreaCoverage)
  4. Where no general code shortcut exists, score this expected-absent. Otherwise, every file the regex shortcut classifies as code must resolve, through the union of the `impliedBy` closures of every area it directly matches, to the checker's **code-bearing anchor set** — a second, externally-corroborated, deliberately narrower list, kept independent of the code-bearing deny-list `regex-shortcut-sync-checked` uses, since testing against that same default-inclusive list would be tautological (closure is reflexive). Full rationale, the multi-area quantifier, and the anchor-corroboration protocol are in M3's `reference/regex-mirror/README.md` § Matching an area is not the same as being code-bearing.
    area-class-resolvedWhat the audit looks for (4)
    • a check computes, for each regex-classified-as-code file, whether the union of the impliedBy closures of every area it directly matches reaches the anchor set — not any single matched area's closure alone, and not merely avoidance of the deny-list
    • a fixture proves the anchor set and the deny-list are checked as two distinct lists (an area off the deny-list but not anchored still fails)
    • an overlapping-match fixture proves the union quantifier: a file matched by two areas, where only one reaches an anchor, passes — a file matched only by the non-reaching area fails
    • every anchor has a source-controlled deployment/release *reference* — a checked-in Kubernetes/Terraform/CI/package-publish artifact naming its build output — **or**, for a non-shipping code-bearing anchor (a repo-owned test harness, linter, or build tool), a reference to an enabled heavy-gate/build CI job running on its own paths, per M3's reference/regex-mirror/README.md's baseline-recipe protocol — not a catalog-derived signal, and not a mere textual mention (a comment, a disabled job) of the workspace; this proves the reference exists outside the catalog, not that the anchor is currently live in production

Adoption steps

  1. Write one catalog file from templates/catalog.yaml (a copyable one-area starter) or reference/catalog/catalog.example.yaml (exercises every field); validate it against the schema and graph invariants in reference/catalog/README.md with /jig:change-areas (its scripts/check.ts). This is Lite — consumers can still reference area names by hand.
  2. Run that check in CI and generate at least one consumer projection from the catalog: CI job selection with the skill’s --format gha (per-event outputs) or --format dorny (a path-filter spec, committed with a freshness gate, M2), or the review-gate table; gate workspace-coverage so a new, unmapped workspace fails CI. This is Standard.
  3. Generate every remaining consumer as a projection, drive CI job selection from the resolver itself, and — if you keep a hand-written CI shortcut regex — wire it to the regex-mirror guard (reference/catalog/README.md#the-regex-mirror-guard), using reference/regex-mirror/’s runnable checkFilterSegmentCoverage script as the regex → catalog half. A general “did any code change?” shortcut needs three of the guard’s four checks, run against the code-area class (the two directional prefix checks plus checkFilterFileCoverage), together with the independent anchor reachability check described below; a shortcut that instead gates a deploy needs all four, with the catalog → regex direction re-scoped to the deploy-critical area class instead of the code-area class — running it against the code-area class while also running the fourth check, checkFilterCodeAreaCoverage, is unsatisfiable whenever a code-bearing area isn’t deploy-critical (deployTier: none). This is Strict.
3 · The mechanicsopen what you need
Core piecesOpen
  1. The catalog — one YAML file. Each entry is a named change-area (a kebab-case id) with the globs that define its membership plus its implications: owning workspace(s), deploy tier, review skills, tracker labels, post-deploy actions, whether its pull requests must land one at a time (serialize), and an impliedBy list — the one relation that encodes dependencies between areas.

  2. The resolver — pure function: a set of changed file paths → the seed areas, those whose paths or a generator’s source globs match a changed file → the transitive closure over impliedBy → the union of all their implications. One directed relation expresses both fan-out (one shared library implies every app that lists it) and fan-in (one aggregator area lists many sources in its own impliedBy).

  3. Projections (generated) — the per-consumer views emitted from the catalog: a CI path-filter, per-event CI outputs (one for the closure and one for the seeds of each area), a review-gate table, a component directory, a post-deploy checklist, tracker labels and flags, and a JSON resolution with the change’s validation plan for other tooling. Each committed one is freshness-gated (see M2): a committed projection that no longer matches the catalog fails CI.

  4. The regex-mirror guard — when a repo keeps a fast hand-written CI regex (“did any code change?”) to avoid running the full resolver on every event, checks in both directions keep the regex’s literal prefixes and the catalog’s glob heads from drifting apart. That’s narrower than “the shortcut can never claim a path the catalog doesn’t declare”: with ^apps/ and a catalog declaring only apps/web/**, both directional checks pass, yet the shortcut still claims an as-yet-untracked path like apps/mobile/main.ts as code, since neither check can see a path that doesn’t exist as a tracked file yet. A third check, checkFilterFileCoverage, closes that gap for every currently tracked file — the two directional checks alone don’t prove every tracked file the shortcut calls code-bearing actually maps to an area — but even all three together don’t prove a regex-positive file maps to a code-bearing area specifically, only some area, nor say anything about a path no file has been added at yet — see reference/regex-mirror/README.md for the gap this leaves. Matching must run against the catalog’s parsed values, not a substring scan of its text.

  5. Coverage gates — every workspace on disk (apps/*, packages/*) must map to at least one area, and every area’s declared workspace must exist and be covered by one of its own globs. A new, unmapped workspace fails CI in the same PR that introduces it, instead of silently skipping all its gates. Brownfield adopters grandfather existing gaps instead of blocking on day one — see the pattern in adoption/brownfield.md and its catalog-specific mechanism in reference/catalog/README.md.

  6. Agent gate depth (validation:) — a projection answering “what must a coding agent run before commit and push.” The catalog declares its validation profiles under profiles:, shallowest first; an area may name one, and an area that names none, like a changed file no area matches, gets the deepest. The depth is read from the seeds, like tracker labels. A repository whose agents must also run on a CI-identical remote machine computes that requirement in its own composer, from the seeds’ closure, so it still protects a dependent the change did not touch. Cross-cuts M1 (which gate rung runs) and M12 (a shallow-enough answer can skip the cross-worktree heavy-run mutex).

  7. Generated-output coupling (generated:) — an area declares the derived files it owns, in M2’s inventory format (outputs, source, regenerate command, check), so a shallow-profile area can carry one specific freshness gate without escalating to full validation, the regenerate command isn’t triplicated across a hook, CI, and prose, and M2’s generic runner reads the catalog as the inventory and runs every declared check. A change to a generator’s source seeds its owning area, even where the source lies under another area’s paths, so the generator and its check are in that change’s plan.

  8. Serialized areas (serialize: true) — an area whose pull requests conflict with each other whenever two of them move at once (a migrations folder, a schema, a generated client) says so, and the tool that drives pull requests unattended drives the ones that touch it one at a time: the one closest to merge first, the rest held until it merges. Without it, every pull request in the area is driven at once, and each merge leaves the others conflicting again. Jig’s dispatcher reads it; which areas to serialize comes from the measured conflict hotspots, which the conflict history report of resolve-conflicts proposes, and a person adds the line.

Design rulesOpen
  • impliedBy is one directed relation, read one way: “a change to Y also implies X” is written by listing Y in X’s impliedBy. Fan-out and fan-in are just its two shapes — don’t add a reverse relation.
  • Membership is multi-valued by design: globs may overlap; one file can seed several areas (a subset area, a generated file matching two areas).
  • Conservative over-trigger, never under-trigger: when unsure whether a dependency exists, add the impliedBy edge. A redundant CI job is cheap; a skipped mandatory review is not.
  • category is a grouping tag only — never a build or deploy lane. Lanes are deployTier and the projections.
  • Don’t populate a projection block before its consumer exists — an empty review/postDeploy/tracker-label block is drift waiting to happen.
  • Every projection reads one side of impliedBy, and must say which: the closure answers “what are the consequences?” (deploy tiers, post-deploy actions, mandatory reviews in review.skills); the seeds answer “what did this change touch?” (tracker labels and flags, validation:, generated:, serialize). Reviews fail toward coverage: a missed review is a defect, an extra one costs one run. Labels and flags fail toward accuracy: they are lasting claims on the issue record, so an over-derived one is a lasting false statement. A flag that must fire for a change goes on an area that change seeds directly. See the table in reference/catalog/README.md.
  • The catalog’s own structural check needs one required hand-written shortcut: a self-check cannot ask its subject whether it should run, so the CI step that validates the catalog’s own structure must run independently of catalog-derived selection — unconditionally on every CI event, or behind a literal, hand-written path match on the catalog file — never by resolving through the catalog itself, or a change that deletes the catalog’s own paths would resolve to nothing and skip the very check meant to catch that. Where a trigger is used, it is the one hand-maintained shortcut this module treats as required, not debt; see reference/catalog/README.md.
In your toolsThe same rule, wired into a specific CI provider, hook manager or tracker. Shows only your stack.Open

The module invariant — one validated catalog, generated projections, referenced by name — is tool-independent. This file maps its consumer projections onto concrete CI providers, issue trackers, and deploy systems. Replace <placeholders> with your repo’s values.

CI job selection (the primary consumer)

The resolver turns changed files into a set of affected areas; CI uses that set to decide which jobs run. The commands below are the plugin’s change-areas skill (<skill-dir> is its directory: in the installed plugin, or in a pinned Jig checkout where CI has no plugin; a repository with a composer runs that instead). The idioms:

ApproachHowWhen
Native path-filter (static projection)generate the provider’s path-filter config from the catalog (each area’s globs ∪ the globs of everything that transitively implies it); the provider decides per-jobsimplest; no resolver at runtime; good when “affected = paths changed” is enough
Resolver outputs (dynamic projection)run the resolver in a setup job, emit area=true/false outputs for the closure and area-seed=true/false for the direct match, and gate downstream jobs on themneeded when impliedBy closure matters (a shared-lib change must trigger app jobs whose own paths didn’t change)

GitHub Actions

yaml
# Dynamic: a setup job resolves areas, downstream jobs read its outputs.
jobs:
  resolve:
    runs-on: ubuntu-latest
    outputs:
      web-app: ${{ steps.r.outputs.web-app }}
      api-service: ${{ steps.r.outputs.api-service }}
    steps:
      - uses: actions/checkout@<full-commit-sha> # v4
        with: { fetch-depth: 0 }   # resolver needs the base..HEAD diff
      - id: r                    # appends <area>= and <area>-seed= lines to $GITHUB_OUTPUT
        run: bun <skill-dir>/scripts/resolve.ts --format gha
  build-web:
    needs: resolve
    if: needs.resolve.outputs.web-app == 'true'
    runs-on: ubuntu-latest
    steps: [ ... ]

The per-area outputs say nothing about a changed file that matches no area, which should select every job (M13). Add that signal through the repository’s composer (ghaOutputs, for instance a code= line from hasUnmatchedFile, as Jig’s own scripts/change-areas.ts writes one), or keep every file covered with a coverage check (uncoveredFiles) so there is no unmatched file to miss.

yaml
# Static: a generated dorny/paths-filter config (committed, freshness-gated).
# Regenerate with `bun <skill-dir>/scripts/resolve.ts --format dorny
# --output .github/change-area-filters.yml`; a drift check (see M2) fails when
# it is stale.
- uses: dorny/paths-filter@<full-commit-sha> # v3
  id: filter
  with: { filters: .github/change-area-filters.yml }   # generated projection

GitLab CI

yaml
# Static projection -> rules:changes per job. Generate this block; gate freshness.
build-web:
  rules:
    - changes: ['apps/web-app/**', 'packages/core-lib/**']   # own ∪ implied paths
  script: [ ... ]

Any CI that can run a script can run the resolver and consume its outputs (--format json for anything other than GitHub’s output syntax); any CI with a path-filter primitive can consume the static projection. The only provider-specific choices are the diff range the resolver reads (pull_request base…HEAD, merge-commit parent union; the skill’s --base, --event and --since) and the outputs syntax.

Issue trackers (label / flag projection)

Each area’s tracker.labels and process-driving tracker.flags (see the flag-label concept and M9) become tracker labels/flags applied to the PR/issue, both from the seeded areas only: a label or flag is a lasting claim about what changed, so an over-derived one is a lasting false statement. A flag that must fire for a change goes on an area that change seeds directly; mandatory reviews, which must reach dependents, are review.skills and read the closure. The resolver’s JSON carries both sets under linear. See § Seeds vs. closure for the full rule.

TrackerApply labels/flags
GitHubgh pr edit --add-label in a CI step, or actions/labeler fed the generated area→label map
GitLabscoped labels via the API in a job, or /label quick-actions in an MR note
Linear / Jirathe tracker’s API/automation, mapping seed area → label and flag; a flag label (e.g. has-migration) can trigger a process step, and sits on an area whose paths cover exactly the trigger files

Deploy tiers & post-deploy actions

deployTier groups areas into deploy lanes; postDeploy actions are collected for the affected areas into a checklist the promote step runs. This is a data projection — the deploy system stays generic:

SystemConsume the projection
GitHub Actions deploy workflowread the resolved postDeploy JSON (or the --format checklist Markdown) and the affected areas’ deployTier to pick the environment and the post-deploy step
Argo / Flux / other GitOpsmap deployTier to a sync wave or a target cluster; post-deploy actions as post-sync hooks
Manual runbookrender the post-deploy checklist (Markdown projection) into the release notes / PR body

Agent gate depth (validation:) wiring

The validation: field (see reference/catalog/README.md) projects to the local hook layer, not CI job selection:

Hook managerWire it
lefthook / husky / pre-commitin the pre-push hook, pipe the changed files separated by null bytes (git diff -z --name-only) to bun <skill-dir>/scripts/resolve.ts --files - -z --format json under set -o pipefail, so a path git would quote keeps its name, and run its validation.verificationChecks. A changed file matching no area, and a seeded area with no validation.profile, both select the deepest profile (the fail-closed default the catalog defines — see § Agent gate depth); an empty list selects no checks, because it means nothing changed, so a git command that fails must fail the hook rather than hand the resolver an empty list. Where the repository’s composer computes a remote-machine requirement (validation.testbox.required, from the seeds’ closure), fail closed to that machine when it is set; skip the cross-worktree mutex (M12’s with-resource-lock.ts) only when the plan selects no heavy profile and requires no remote machine — profile depth alone is seed-only and can’t see a dependent reached only through the closure
CIre-run the deepest profile’s full gate set regardless of what the local hook skipped — CI stays the authority (M1)

Regex-mirror guard (optional optimization)

Only relevant if you keep a fast hand-written CI regex for “did code change?”. The runnable regex→catalog check (reference/regex-mirror/) needs only Bun and runs in any CI. The catalog→regex direction needs the resolver’s closure, which the change-areas skill’s library exports — build it there and wire it into the same job that runs the catalog check (bun <skill-dir>/scripts/check.ts).

Anchor corroboration recipe

Only relevant alongside the regex-mirror guard’s area-class-resolved check (see reference/regex-mirror/README.md): for each anchor area, prove its workspace has a source-controlled deployment/release reference — a deployment manifest or a package-publish step, external to catalog.yaml — not merely a textual mention of the path. An anchor with an empty workspace (the schema permits this for a path-only area) has nothing there to start from — use the area’s own paths glob(s) as the starting evidence in the recipes below instead; the artifact/reference column is otherwise unchanged. A code-bearing area that never ships (a repo-owned test harness, linter, or build tool) instead needs an active heavy-gate/build CI job reference (the last table row) — same externality requirement, different target, and the same path-only substitution when it has no workspace. These recipes certify that the reference exists and was reviewed, not that it is currently live — see the reference doc’s “This is a baseline, not a formal liveness proof” note for what’s out of scope and how to strengthen the evidence when your ecosystem’s tooling supports it (a rendered/applied inventory, an evaluated plan/state, real trigger analysis).

EcosystemWorkspace → artifactArtifact → deployment/release referenceKnown gap in this baseline
Docker / Kubernetesread the image name from the workspace’s Dockerfile build args or a package.json/build.yaml image fieldgrep workload resources only (Deployment, StatefulSet, DaemonSet — resources that own a pod template; not Service, which has no image) for that image name in an image: field, under an enabled (non-disabled/, non-.bak, non-commented) pathpresence in the repo isn’t proof the manifest is applied to a live cluster — strengthen with a rendered/applied inventory (e.g. kubectl diff against a GitOps source of truth) if you need that guarantee
Terraformsame image/artifact identifier, or the resource name declared in the workspace’s own IaC snippet if it owns onethe identifier appears in a Terraform resource block that is not inside a count = 0 / commented-out blockcount/for_each driven by a variable, a conditional module, or config that’s never planned/applied all evade a source-text check — strengthen with an evaluated terraform plan/state JSON if you need that guarantee
GitHub Actions / CD pipelinethe workspace path itself, if the pipeline builds directly from source (no separate artifact step)the path appears in a step of a job that (a) belongs to a workflow with at least one on: trigger declared — workflow_dispatch counts as real (a manual-gated production promotion is a legitimate release reference, see M10’s manual-promotion model), only a workflow with no trigger at all is orphaned — and (b) has no job- or step-level condition that is a literal, always-false expression (if: false)full trigger reachability (event/path filters, job dependency graphs, non-literal always-false expressions) is a static-analysis problem this baseline doesn’t attempt — strengthen with a workflow-reachability linter if you need that guarantee
Package registry (library-shaped repos)the workspace’s package manifest (package.json, pyproject.toml, Cargo.toml, etc.) name/versionthe package name appears in a publish step of an enabled CI job (npm publish, twine upload, cargo publish, …) — same enabled/non-dead conditions as the CD pipeline rowthis baseline doesn’t verify the publish step has ever actually succeeded; strengthen with registry-API confirmation (does the version exist on the registry) if you need that guarantee
Internal tooling (non-shipping, code-bearing — test harness, linter, build tool)the workspace path itselfthe path appears as the working directory, target, or invoked command of a step in an enabled job that runs that area’s heavy build/test gate — same enabled/non-dead conditions as the CD pipeline row, but the target is the gate running, not a deploy or publishthis doesn’t prove the job’s result actually gates anything (blocks merge on failure) — strengthen with a branch-protection/required-check lookup if you need that guarantee

The negative fixtures every implementation needs, regardless of ecosystem: a commented-out reference, a disabled: true / if: false job, and an orphaned workflow file with no real trigger — all of these must fail corroboration even though the workspace path or artifact name textually appears in the file.

Source: modules/M3-change-area-catalog/mappings.md

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

What this module provides:

  • templates/catalog.yaml — a copyable one-area catalog starter.
  • reference/catalog/catalog.example.yaml — a valid generic catalog that exercises every field and both shapes of impliedBy.
  • reference/catalog/README.md — the language-neutral specification: entry schema, schema and graph validation, the resolver algorithm, the projections, and the four checks of the regex-mirror guard with each one’s inputs, algorithm and failure condition.
  • reference/regex-mirror/ — the runnable regex → catalog check (checkFilterSegmentCoverage) as a Bun + TypeScript gate that matches against parsed paths: values, with its self-test and fixtures.
  • mappings.md (CI path filters, tracker labels, deploy tiers) and the module’s maturity criteria.

The runnable form is the plugin’s change-areas skill: the schema validation, the graph and repository invariants, the resolver with its git layer, and the projections (CI outputs, a path-filter spec, JSON with the validation plan, the post-deploy checklist, the review-gate table). reference/catalog/README.md is the specification it implements; a repository that implements the resolver in another language holds it to the same file. A repository whose catalog needs more than the generic schema runs the skill through a composer. Jig’s own catalog (.config/change-areas.yaml) does: scripts/change-areas.ts adds Jig’s own field, its outputs and the policy that every file belongs to an area.

How CI uses the resolver (one resolver job per run, gates selected by their own area, an unmatched file selecting everything) is M13 pipeline economy.

Deliberately left out: of the regex-mirror guard’s checks, only the regex → catalog one is runnable here; the others are documented recipes rather than runnable gates. All area names, deploy tiers and post-deploy actions are neutral examples.

Future: a lint that checks the path lists in agent rules, hook configuration and CI workflow triggers against the catalog, so a consumer that restates the catalog’s globs is caught when they drift.