jig-harness/jig
Jig as a software factory · the scaffolding

What it stands on: three jobs the scaffolding does, and what Jig provides to build it.

Every station of the line and of deciding what to build stands on this. The modules that build each job are on the module map.

The scaffolding, job by jobthree jobs, and the modules that build each

Every station hands its work to an agent session. A session knows only what its context gives it, and follows only what it is told. Only the checks that exist stop it, and it forgets everything when it ends. So the stations produce reliable work only in a repository whose scaffolding does the jobs below. Scaffolding is everything in a repository that exists to guide agents: instruction files, skills, a glossary, checks.

ContextWhat an agent knows as it starts and works: the rules that apply here, this project’s words, what a change implies, the plan for the itemM0: instruction files in layers, rules that load where they apply, a glossary, written dispositions. M3: what each kind of change implies. M4: a docs tree with an index and rules. M9: work items that carry their plan, and memoryEach session guesses the conventions. Context is bloated, or silent exactly where the work happens. Parallel agents invent different words for one thing
VerificationGuides that steer an agent before it acts, and catches that stop what slips through. Each rule sits on a named rung of the enforcement ladderGuides · before an agent actsM0 instructions, M6 templates, M5 decisions, M3’s validation planCatches · stop what slips throughM1 tested gates with CI as the authority, M2 freshness checks, M5 decisions turned into checks, M7 layered review, M10 verification before deploymentPlausible-looking agent output merges because nothing fails. Rules that “we always follow” erode without anyone noticing
KnowledgeDecisions, facts and lessons kept explicit, versioned and findable, so the next session starts where the last one endedM5 decision records. M4 document lifecycle and de-scarring. M8: significant misses answered with checks proven on replayable test cases. M9 memory promoted into shared documents. M0’s glossarySettled questions are argued again, the same mistake recurs, and every session starts cold
  1. 1before the agent acts
    • M0instructions
    • M5decisions, then checks derived from them
  2. 2while it works
    • M6templates
    • M3the validation plan
  3. 3before merge
    • M5decisions, then checks derived from them
    • M1tested gates, CI the authority
    • M2freshness checks
    • M7layered review
  4. 4before deploy
    • M10verification before deployment
When each verification module acts, along one agent session and the change it makes: guides before and while the agent works, catches before the change merges and before it deploys. A module can act at more than one point.
M12M11

Running many agents at once adds two needs: workspaces that do not collide (M12), and measurement of the process itself, so decisions about gates and reviewers rest on data (M11).

What Jig provides to build ita practice per part, sized, measured, fitted, kept current

Building that scaffolding is most of what Jig is. The skills that run the stations are a small part, and they depend on it. They read the repository’s instructions, its checks, its change areas and its tracker’s labels. A repository without them gives the skills little to work from.

  • A practice for each part. A set of modules, each stated as an invariant: a rule that names no tool. Each comes with adoption steps, templates to copy and reference gates with their own tests. Each maps its practice onto the common CI providers, hook managers, trackers and agent runtimes.
  • Sized to the project. Each module has three maturity levels, defined by criteria a reader can observe. Profiles say which modules a project needs at which level: a few at Lite for a one-person project, most at Strict for regulated work. A team climbs one level at a time.
  • Measured, not assumed. The audit scores a repository against every module’s criteria, with file-path evidence. It recommends the next step in the repository’s own tools and, run again, reports what drifted.
  • Fitted to how the organization works. A team adopts one module at a time, and no module needs another at its strictest level. The organization’s own values live in its configuration, read in layers: the command that runs its checks, its reviewers, its tracker’s team and labels. The skills read it when they run, and the audit checks it against the repository. Where a skill needs a named tool, an interface stands between them. The tracker interface has adapters for GitHub Issues, Linear and Jira (how to add another), and the pull-request skills have no forge interface yet. The workspace launcher opens workspaces in Herdr, which Jig’s tooling targets first, in Orca and in Conductor. The skills run in Claude Code and Codex, and the pull-request skills work with GitHub. An organization’s own skills, gates and review lenses live in its own repositories, beside Jig’s.
  • Kept current. The learning loop turns significant misses into proven checks. Jig applies all of this to itself: its own gates, its own audit record, its own review loop.

The principles behind it, in particular AI scaffolding as the spine and enforcement-ladder discipline, say why it is built this way.