jig-harness/jig
Adopt · the plugin · configuration

Configuration reference: .config/jig.yaml

The Jig skills hold the procedure; each repository holds its own values. Without one place listing those values, a repository adopts a skill by trial and error: an agent improvises what the repository never stated (how to name a branch, whether pull requests may stack), and a misspelt field silently keeps its default. This document lists every field the skills read, its type, what it does, what happens when it is absent, and which skill reads it. It is the complete reference; the skill READMEs explain the behaviour behind each field.

The file is the repository’s consumer overlay: its own values, laid over the shared procedure. Values that belong to a person or a machine rather than to one repository go in a user file instead, and a single run can override either through environment variables: see configuration layers. Every field is optional unless its row says otherwise. Add a field only when its default does not fit.

Contents: the file · configuration layers · what is derived, not declared · gates · review · repository · pull_requests · drive · autonomy · ci · issue_tracker · do_item · specs · work_batch · file_issue · routing · fleet_health · verify · reflection · changelog · code_stats · followup · gc · dispatch · procedure skills · environment variables · complete example

The file

  • Location. .config/jig.yaml at the root of the repository. The root is the nearest folder above the working directory that holds .git; JIG_CONSUMER_ROOT overrides it, and JIG_OVERLAY points the skills at a different file altogether.
  • Format. YAML. JSON is valid YAML, so a JSON file works too.
  • Missing file. resolve-review-comments and the tracker scripts of do-item refuse to run: an installed skill in a repository that has not adopted it says so rather than guessing. drive-pr, the pull-request policy and the procedure skills run on their defaults.
  • Unknown fields are ignored at the top level and inside most sections, so other tooling can share the file. The maps whose keys the skills look up are strict instead: there a misspelt key would silently keep the default it was written to change, so it is an error. They are pull_requests, issue_tracker.states (keys are canonical states), issue_tracker.labels (keys are label roles), review.lenses (including each triggers entry), resolve_conflicts (including each generated entry), reflection, specs, verify and code_stats (including each areas entry, and kinds, whose keys are kinds). In review.taxonomy every key other than provenance_label and epic_label is read as a list of distinct, nonempty strings, so an unrelated key there is an error too.
  • Retired sections are ignored like unknown fields, and the audit’s configuration check notes each one once, so the section can be removed: workspace_name, which named a workspace after the stage its work was at, has no effect, since no skill renames a workspace.
  • Wrong types are refused with an error that names the field, except by a few best-effort drive-pr readers, which treat a wrong-typed value as absent and use the default instead: review.bots when it is not a list (entries that are neither a login nor a mapping with a login are dropped), drive.escape_baseline_doc, and the fleet_health fields. The checks below report refused values only, and only for the fields they print.
  • Check it. bun <plugin>/skills/resolve-review-comments/scripts/jig-config.ts prints every field set in any layer, its value and the file or variable that set it (jig-config.ts review narrows it to one section, --json for a script); bun <plugin>/skills/audit/scripts/config-fit.ts checks the repository’s file against the plugin’s machine-readable schema and against the repository: unknown, refused, deprecated and mistyped fields, commands and paths that do not exist, required checks that never run, and declared values the repository contradicts; with --draft it prints a starter file instead, each value the repository implies with the fact it came from; bun <plugin>/skills/resolve-review-comments/scripts/consumer-config.ts prints the review skill’s values or what is missing; bun <plugin>/skills/do-item/scripts/pr-plan.ts open prints the pull-request policy as it applies to the current branch.
  • One list of fields. The schema and this document list the same fields with the same readers, and the schema’s value sets are the ones the reading skills accept; the audit skill’s tests fail when they differ. A field added to a skill is added to both in the same pull request, with since: the plugin version that adds it, so an audit can report it as new. The pull request writes since: next, and Jig’s release step replaces it with the version it releases.
  • The audit record. /jig:audit keeps what it found in .config/jig-audit.yaml beside this file; it is not configuration, and no other skill reads it.

Configuration layers

The skills read their values from up to three configuration layers. A higher layer overrides a lower one:

LayerWhereHolds
1. User~/.jig/jig.yaml; JIG_HOME moves the ~/.jig folderOne person’s or one machine’s values, for every repository: a personal default, a folder shared by all repositories, how far this host trusts a drive’s passes
2. Repository.config/jig.yaml (the file); JIG_OVERLAY names a different fileThe repository’s own values
3. EnvironmentJIG__<SECTION>__<FIELD> variablesOne run’s values

Command-line flags, where a script has them, override all three.

  • Merging. Sections merge field by field: a user file that sets review.sticky_marker and a repository file that sets review.bots give both. Any other value (text, a number, a date, a list, null) replaces the lower layer’s value whole. Reflection’s class vocabulary combines entries from the active layers as described under reflection.
  • Environment variables. Two underscores separate the levels and the names are read in lower case: JIG__ISSUE_TRACKER__TEAM=ENG sets issue_tracker.team. true, false, null, decimal numbers (400, +400, -0.5, .5, 1e3), and lists or maps written in YAML’s bracket form ([a, "b[bot]"]) take their type; anything else is text as written. A value in quotes is the text inside them (JIG__REPOSITORY__BASE_BRANCH="'1.10'"), which keeps a value that looks like a number, true or a bracketed shell command as text; a field given the wrong type refuses it and names the variable. An empty variable is not set. Two variables for one field, or one that sets a value and another that sets a field inside it (JIG__DRIVE beside JIG__DRIVE__REVIEWS_DRAFTS, whatever JIG__DRIVE holds), are an error. The older per-field variables (DRIVE_PR_BASE_BRANCH and the others under environment variables) still work and override all three layers.
  • Fields only a repository sets. gates.command, repository.base_branch, issue_tracker.team, issue_tracker.jira.site, issue_tracker.jira.api_base, review.repo_slug, review.repo_label, ci.required_checks, ci.hold_sentinels, ci.advisory_checks, ci.rerun_failed_once, ci.log_command, docs.root, docs.schema, autonomy.max_level, autonomy.park_classes, every changelog, code_stats and specs field describe one repository. Set in the user file they would apply to every repository on the machine, so the user file refuses them with an error naming the field. An environment variable may still override them for one run, except the changelog fields, which the changelog skill reads from the repository’s own file alone and refuses from any other layer (changelog), ci.hold_sentinels and ci.advisory_checks, which a running drive reads from the base branch’s snapshot without consulting the environment layer, and autonomy.max_level and autonomy.park_classes, the ceiling a person’s level is capped by and the classes a drive may park on, which an environment variable is refused for too (autonomy).
  • Fields only a user file sets. clones describes one machine, and drive.pass_args, drive.codex_pass_args and drive.codex_bypass say how far this host trusts a drive’s passes. A repository’s file refuses these fields with an error naming the field, whatever it sets them to (an empty list and null included), and so does a file JIG_OVERLAY names, which is the repository’s layer. A drive section in that layer that is not a mapping (drive: null, or drive: with nothing under it) is refused the same way, since it would replace the host’s whole section. An environment variable may still set them for one run.
  • Adoption is the repository’s file. A user file alone does not make a repository look adopted: resolve-review-comments and the tracker scripts still refuse to run without .config/jig.yaml. The skills that run on their defaults read the user file and the environment either way.
  • Paths in any layer are relative to the repository root, as in the repository’s file, except the clone paths of clones, which are absolute.
  • Errors name the file or variable that set the field at fault, and jig-config.ts shows which layer set each field. It writes a key that holds a dot in quotes (do_item.agents.title_keywords."node.js"), and accepts a field written the same way.
  • Shape. No layer may hold a __proto__ key, a value that contains itself (a recursive YAML alias), or more than 10,000 values once its aliases are expanded; each is an error naming the file or variable. The environment layer is every JIG__* variable together, so the bound holds for them combined as well as for each one.
  • Leaving the user layer out. JIG_USER_LAYER=off reads the repository file and the environment only. The independent review sets it, so its policy comes from the base branch’s file alone.

What is derived, not declared

Jig reads a fact from the repository when the repository already states it, instead of asking for it twice. These have no field, or have a field only to override the derivation:

FactWhere it is readUsed forOverride
Integration branch (the branch pull requests land on)The clone’s origin/HEAD (drive-pr and do-item: the HEAD of repository.remote), else GitHub’s default branchPull-request base, round diffs, CI policyrepository.base_branch, DRIVE_PR_BASE_BRANCH
Pull-request templatepull_request_template.md (or .txt, any letter case) in the root, .github/ or docs/, and the files of a PULL_REQUEST_TEMPLATE/ folder thereThe body an agent fills innone: edit the template
Title conventionA commitlint configuration (commitlint.config.*, .commitlintrc*, commitlint in package.json) that names the Conventional Commits rules, such as @commitlint/config-conventional; else at least 80% of the last 30 non-merge trunk commit subjects following Conventional Commits, and at least five such subjects to judge fromWhether titles take type(scope): summarypull_requests.title_format
Delete head branches on mergeGitHub repository settingsWarning for branch stacking: without it GitHub does not retarget the layer above a merged onenone: change the setting
Code owners.github/CODEOWNERS, CODEOWNERS or docs/CODEOWNERSReported only: GitHub requests those reviewers itselfnone
Required checksThe protection and rulesets of the branch the pull request (or its stack) lands onWhich checks certify a converged headci.required_checks
Draft or Ready on openingdrive.reviews_drafts: false means ReadyHow a pull request openspull_requests.open_as
Agent runtimeThe variables the runtime sets (CLAUDECODE for Claude Code, CODEX_… for Codex)Which row of routing.models and routing.efforts a route is translated throughnone

gates

FieldTypeWhen absentRead byWhat it does
gates.commandshell commandRequired by resolve-review-comments, which refuses without it. drive-pr then has no local checks unless drive.validation_plan_command is setresolve-review-comments, drive-pr, fix-ci, resolve-conflicts, descarThe repository’s complete local checks, run before every push; a session the dispatcher starts may run fewer, as gates.dispatch_fast says. The repository commands chapter gives its invocation, input, answer, exits and deadline.
gates.dispatch_fastbooleanFull local gatesjig-gatesJig’s repository gate command runs fast checks and targeted tests in the sessions the dispatcher starts when this repository-only setting is true. CI retains the full gate set. Other repositories can opt in by implementing this setting in their own gate command, using the dispatch launch identifier in JIG_LAUNCH or, in a drive a dispatched session armed, in JIG_DISPATCHED_FROM.

review

How review threads are resolved, how the drive recognises its AI reviewer, and which review lenses the review skill’s semantic tier runs.

Deferred findings file through issue_tracker.adapter on GitHub, Linear and Jira. The scripts keep one open backlog issue per repository, pull request and issue type, append later findings to it, set its highest priority and union of categories, and add native related links to the originating issue and epic without parenting it. defer-in-pr.ts route returns defer-batch when the configured adapter can file; otherwise the pull request’s ## Deferred section retains the entry until file-deferred.ts can file it under the same key. The epic closure sweep uses issue_tracker.person_checks for checks that still need a person.

FieldTypeWhen absentRead byWhat it does
review.botslist of logins, or of {login, confirmation_marker, chat_marker}The known reviewer app’s bot login, when availableresolve-review-comments, drive-pr, review, dispatchReviewer accounts (for example example-review[bot]). An explicit list replaces the known app’s default, including an empty list. Quote logins that contain brackets in YAML flow lists, as in bots: ["example-review[bot]"]. The review skill works every unresolved thread whether or not it is set; --bots-only keys on GitHub App authorship, not on this list. Without review.reviewer_app, the drive accepts the reviewer’s summary comment only from these logins. Dispatch uses these logins for sticky-evidence recovery when no reviewer app is configured; review-object recovery uses the app profile. A comment posted after a held reply is transparent, resolved with the hold and never triaged or answered, when no line of it opens with an outcome token and it carries its author’s confirmation_marker, or, for a bot this list names, its chat_marker and no severity line of the bot’s finding shape (its severity formats); anything else is triaged. A bot absent from the list, or one without a severity format known to be its own (one review.severity_formats declares, or a built-in one; not the Jig format assumed for the configured reviewer, whether named by review.reviewer_app or by this list), gets no transparent chat follow-ups, while a confirmation marker measured on that bot’s own comments still applies: the CodeRabbit mapping names its login and markers, with confirmations read listed or not and chat markers when the effective list includes that login. CodeRabbit V2 can disable chat replies at the source with chat.auto_reply: false in .coderabbit.yaml; V3 keeps automatic replies on and rejects that unknown key.
review.job_patternregular expression, or nullReviewer checks recognised by nameresolve-review-commentsWhich check runs the review skill waits on. Setting it requires review.required_checks. --job-pattern overrides it
review.required_checkslist of distinct check namesnoneresolve-review-commentsReviewer checks that must each complete before a round is judged. Required when review.job_pattern is set. Unrelated to ci.required_checks
review.deferral_teamteam keyissue_tracker.teamresolve-review-commentsLinear team that deferred findings are filed into, falling back to issue_tracker.team. --team overrides it on Linear and is refused on other adapters
review.repo_labellabelRepository slug becomes the batch key’s repository valueresolve-review-comments, work-batch, dispatchRepository label put on filed follow-ups, and the one a batch item must carry; dispatch also leaves a served item that carries another label of review.taxonomy.repos and not this one to that repository’s checkout (an item with no repository label is started only by its tracker namespace’s default repository, serve_defaults in the machine file, on a Linear or Jira tracker, and reported once as needing a repository label where there is none; a GitHub repository reading its own issues is not affected); must be one of review.taxonomy.repos. work-batch does not ask an issue to carry it where the tracker is the GitHub adapter and review.taxonomy.repos names no repository besides this label, since every issue in that tracker belongs to the repository already. Only letters, digits and . _ : @ + / -: the label is part of a deferral batch’s key, which the review skill refuses to write otherwise
review.repo_slugowner/nameDerived from the pull request’s forge URLresolve-review-commentsRepository whose links a deferred finding must point into
review.taxonomy.typeslist of labelsnoneresolve-review-comments, work-batchType labels a follow-up may carry, one of which a batch item must carry. Requires ownership_prefixes. Only letters, digits and . _ : @ + / -: the label is part of a deferral batch’s key, which the review skill refuses to write otherwise
review.taxonomy.reposlist of labelsnoneresolve-review-comments, drive-pr (fleet health), work-batch, dispatchRepository labels a follow-up may carry, and the labels by which dispatch tells another repository’s served item from this one’s (with review.repo_label). Requires ownership_prefixes. Only letters, digits and . _ : @ + / -: the label is part of a deferral batch’s key, which the review skill refuses to write otherwise
review.taxonomy.sizeslist of labels[xs, small]resolve-review-comments, work-batchSize labels a batch of follow-ups may carry
review.taxonomy.categorieslist of namesonly unknownresolve-review-commentsAllowed finding categories
review.taxonomy.context_prefixeslist of prefixesnoneresolve-review-comments, work-batchPrefixes of labels carried from the pull request onto its follow-ups. Requires ownership_prefixes
review.taxonomy.ownership_prefixeslist of prefixesnoneresolve-review-commentsPrefixes of ownership labels retained as context; the batch key remains pull request and type. Required when types, repos or context_prefixes is set
review.taxonomy.provenance_labellabelpr-followupresolve-review-comments, drive-pr (fleet health)Older name for issue_tracker.labels.followup, still read when that is unset; the two may not disagree
review.taxonomy.epic_labellabelepicresolve-review-comments, drive-pr (fleet health)Older name for issue_tracker.labels.epic, still read when that is unset; the two may not disagree
review.scanner_appslist of GitHub App slugs[sonarqubecloud]resolve-review-commentsApps whose check-run annotations are findings to triage: a static-analysis app that decorates the pull request with annotations instead of review threads (SonarQube Cloud does). Listed by list-scanner-annotations.ts, which waits for each configured app to report on the head; the default app is read only where it runs
review.reviewer_appGitHub App slugnonedrive-pr, dispatchApp whose check runs and <app>[bot] summary comment or pull-request reviews are the AI reviewer’s evidence. Setting it, or review.reviewer_check_pattern, is what makes the drive expect an AI reviewer; with neither, the drive waits for none and converges on threads and CI. An app Jig knows brings its own check name, evidence and default bot login, so naming it is enough: coderabbitai (CodeRabbit) implies reviewer_check_pattern: "^CodeRabbit$", reviewer_evidence: review_object and bots: ["coderabbitai[bot]"] when review.bots is omitted. DRIVE_PR_REVIEWER_APP overrides it
review.reviewer_check_patternanchored regular expressionThe known app’s own (^CodeRabbit$ for coderabbitai), else ^ai[ _-]?review(\s*\(.+\))?$, used once a reviewer is expecteddrive-pr, dispatchName of the posting reviewer’s check run. Matched case-insensitively, so ^ai review$ also matches AI Review; POSIX classes such as [[:space:]] are accepted. Without review.reviewer_app, reviewer checks are recognised by name from any app and the summary comment is accepted only from review.bots. DRIVE_PR_REVIEWER_CHECK overrides it
review.reviewer_evidencesticky or review_objectThe known app’s own (review_object for coderabbitai), else stickydrive-pr, dispatchWhere the reviewer records the commit it reviewed. sticky: a summary comment carrying review.sticky_marker, stamped with review.reviewed_sha_marker. review_object: the pull-request reviews <app>[bot] submits, each naming its commit, read with the reviewer’s check run on the head: a review naming the head, or a run completed on the head with no later review, is a review of it, and the findings in those reviews’ bodies that no thread carries (CodeRabbit’s outside-diff, nitpick, duplicate and follow-up comments) are summary-only findings the drive answers before it converges (only for a reviewer whose built-in profile names a body format, today coderabbitai; another review-object reviewer’s bodies are not read); a run titled Review paused… or Review skipped… stops the drive with REVIEW_SKIPPED, except a draft skip, which on a draft the drive marks Ready and waits on, and on a Ready PR waits on. With no check run, CodeRabbit’s current skip comment from <app>[bot] is a draft skip only when it includes the Draft PR not reviewed heading. review_object needs review.reviewer_app, and where a reviewer is expected (review.reviewer_app or a check-run pattern is set), arm-drive.ts refuses it without an app, or sticky for an app known to submit reviews. DRIVE_PR_REVIEWER_EVIDENCE overrides it
review.draft_skipping_reviewerslist of GitHub App slugsnonedrive-prReviewers that skip draft pull requests. The merge-ready announcement (announce-merge-ready.ts) waits, exiting 4, until each has a check run on the head that started after the pull request was last marked Ready (the newest ready_for_review event on its timeline): a known app’s run recognised by its check name, any other by its app. This can delay the announcement after convergence when another reviewer decides convergence. Listing the app that supplies the review_object evidence is redundant when convergence already waited for its run after the latest Ready mark. If the same commit is marked Ready again, the announcement still needs a run after the new Ready mark. Read only from the base branch’s .config/jig.yaml (the commit in $DRIVE_PR_POLICY_BASE, which the announcement resolves itself when run standalone), so the user file, JIG_OVERLAY, JIG__ variables and the pull request’s own file never set it; a stacked layer’s list adds to the integration branch’s
review.reviewer_poll_max_secondspositive integer300drive-prCeiling for the wait between polls on the same head in AWAITING_REVIEWER or STALE_REVIEW. It starts at --interval (30 seconds by default) and doubles after each poll until it reaches the ceiling. Set the ceiling at or below --interval to keep a fixed interval
review.sticky_markertextThe reviewer markersdrive-pr, dispatchText identifying the reviewer’s summary comment. Read only when a reviewer is expected. DRIVE_PR_STICKY_MARKER overrides it
review.reviewed_sha_markertextai-reviewed-shadrive-pr, dispatchMarker for the commit the reviewer reviewed, inside that comment. Read only when a reviewer is expected. DRIVE_PR_SHA_MARKER overrides it
review.skip_notice_markertextai-review-skip-noticedrive-pr, dispatchMarker around the reviewer’s notice, inside that comment, that it did not review a pushed commit: <!-- <marker> -->, the notice naming the commit, then <!-- /<marker> -->. A skipped head whose pull-request diff equals the reviewed one’s converges on that review. A skip without a stamp or an earlier selected review stamp uses review.skip_excluded_paths. A current-head skip without sufficient review evidence stops the drive with REVIEW_SKIPPED. Read only when a reviewer is expected. DRIVE_PR_SKIP_NOTICE_MARKER overrides it
review.skip_excluded_pathslist of pathsunsetdrive-prExact, case-sensitive file paths relative to the repository root that the reviewer excludes (non-empty, no . or .. segments, no leading / or \, no drive prefix, and no null byte, carriage return, line feed, U+2028 or U+2029 character; a list with any other path is rejected whole), read from the pull request’s base commit (or the reviewed integration-branch commit for a stacked pull request). Jig accepts a current-head skip without a stamp only when this list is configured and covers every path in the pull request’s diff. Use [] to accept only an empty diff. Missing configuration, an unreadable diff, or a remaining path stops the drive with REVIEW_SKIPPED.
review.severity_formatslist of {login, shape, severities}none: the built-in formats onlydrive-pr, resolve-review-commentsHow a reviewer writes a finding’s severity, so the decline ladder can use it: a reviewer with no built-in format, or words or a shape a built-in format does not read. login is the reviewer’s GitHub login ([bot] optional); shape is bold-token (🟡 **Major**), badge (a ![P1 Badge] image), html-badge (an <img alt="P1"> image), pipe-fields (**category** | **Major** | **effort**) or icon-fields (**<picture>…</picture> Major** · **category** · **effort**); severities maps each of the reviewer’s words to blocker, high, medium or low. Read before the built-in formats, which still apply to a comment no entry reads, and only on comments that login posted. null means not set
review.code_scanning_severitiesmap of alert level to Jig severitycritical: blocker, high: high, medium: medium, low: low, error: high, warning: medium, note: lowdrive-pr, resolve-review-commentsPartial overrides of GitHub code-scanning alert rule levels to blocker, high, medium or low. A recognized rule.security_severity_level takes precedence over rule.severity. Code-scanning threads take severity from their linked alert, not review.severity_formats; unreadable alerts stay unknown. The same mapping feeds thread triage and loop metrics. null means defaults
review.lenses.dirpathnone: only the plugin’s seed lenses runreview, do-itemFolder of the repository’s own lens files, one Markdown file per lens in the plugin’s lens format, read from the base branch. A repository lens keeps its LENS-NNN number; the jig. prefix is the seed lenses’. A lens file the change under review adds is reported as proposed and not run
review.lenses.offlist of lens idsnonereview, do-itemLenses not to run. --lens=<id> still runs one. An id that names no lens stops the review
review.lenses.triggersmap from lens id to {paths, exclude, added_lines, removed_lines}, each a listnonereview, do-itemPatterns appended to a lens’s own trigger, never replacing them, so a repository fits a seed lens to its languages and layout: paths and exclude are globs, added_lines and removed_lines regular expressions matched against one changed line at a time. An unknown id, an unknown key or a pattern that is not a regular expression stops the review

The resolve-review-comments README and the drive-pr README explain how these are used.

The review-triage file

In late review rounds, resolve-review-comments can decline a finding it would otherwise fix, because every pushed fix summons the reviewers for another full round. This is the decline ladder. Which rounds decline what is the repository’s choice, in its own file: .config/review-triage.yaml (JIG_REVIEW_TRIAGE_CONFIG names another file). Without the file the ladder is off and every finding the rubric accepts is fixed. A file that cannot be read, or that fails the checks below, also leaves the ladder off, and each verdict reports why. An unknown key is an error.

FieldTypeRequiredWhat it does
version1yesSchema version
severity_orderexactly [low, medium, high, blocker]yesThe reviewer severities, weakest first
categoriesnon-empty list of distinct names, not unknownyesThe finding categories that --category and the bands’ clauses use
fail_open.inert_when_unknownlist drawn from severity, category, tier, self_inflicted; may be emptyyesInputs whose unknown value turns the ladder off for that finding
bandsnon-empty list of {id, from_round, through_round, minimal_diff, accept_if}yesRound ranges, contiguous from round 1; the last one has through_round: null. A finding is kept when it meets any clause of its band’s accept_if (unconditional, min_severity, categories, max_tier, self_inflicted) and declined otherwise. minimal_diff: true limits the fix of a kept finding to the smallest change
reply.marker, reply.wont_fix, reply.deferredtextyesThe reply posted on a declined thread. Each template ends with a <!-- {marker} --> line, which the loop-cost reports look for
severity_mappingmap from each severity, and unknown, to {priority, acceptance}noThe tracker priority (1 urgent to 4 low) and acceptance tier each severity corresponds to; checked when present, not used by the ladder. unknown is 3: a finding of unknown severity files as medium (0, written before, is still accepted, and the finding still files as medium). linear_priority is accepted as an alias of priority
calibrationanynoNotes for people; not read

The test fixture review-triage.yaml is a complete example.

repository

FieldTypeWhen absentRead byWhat it does
repository.base_branchbranch name, without the remote’s prefix (origin/)Derived: the clone’s origin/HEAD (drive-pr, do-item and gc: the HEAD of repository.remote), else GitHub’s default branchdrive-pr, do-item, review, descar, changelog, docsThe integration branch: where pull requests land, unless pull_requests.base_rules names another base for an item. A round diffs against its pull request’s own base, so a stacked layer’s round covers that layer alone; it diffs against this branch only on a branch with no pull request, and refuses when the pull request’s base cannot be read or fetched, or the remote (repository.remote) is not the pull request’s repository. The required checks come from the protection of the pull request’s base and, for a stacked layer, of the branch the stack’s bottom layer targets; a walk down the stack stops at this branch, and an unknown integration branch is an error. Set it when that is not the default branch (a develop flow). DRIVE_PR_BASE_BRANCH overrides it. changelog: the integration branch its release, tag plan, status and release-access.ts work on. docs: the base its last_updated check compares a branch with, and against which it finds the documents a branch adds; a value that resolves neither as origin/<branch> nor as <branch> stops the pass (exit 2). Without the field docs does not ask GitHub for the default branch: it takes the first of origin/HEAD, origin/main, main, origin/master and master that resolves, and skips the last_updated check when none does, so set the field when the default branch is named otherwise and origin/HEAD is unset
repository.remotegit remote name: ASCII letters, digits, ., _, - and /; no leading -, and none of the sequences a ref name refuses (.., //, a leading or trailing /, a trailing ., a component starting with . or ending in .lock)origindrive-pr, do-item, fix-ci, resolve-conflicts, work-batch, file-issue, reflect, gc, jigThe git remote of the clone the skills push to and fetch from. drive-pr: it fetches the pull request’s head branch from it to attach the pull request to a working tree (and to place one), fetches the pull request’s base from it, diffs against <remote>/<base>, derives the integration branch from <remote>/HEAD, pushes the round’s commits to it, and refuses to fetch or push when the remote’s addresses do not name the pull request’s repository; the conflict fix it prints names it. do-item: pr-plan.ts open measures the change against <remote>/<base> and prints the remote (remote:) the branch is pushed to. fix-ci: the default of probe-base.ts --remote. resolve-conflicts: <remote>/HEAD names the default branch, and its merge commands fetch from it. gc: the worktrees kind reads a worktree’s pull requests and its integration branch (<remote>/HEAD) through it, and a detached tree a drive attached through the remote its record names. do-item, work-batch, file-issue, reflect: with GitHub Issues and no issue_tracker.github.repository, the remote’s address names the repository. Set it when the clone names that remote otherwise (upstream, or a fork setup where origin is the fork). A person may set it in the user file for every clone; an unusable name, null included, is an error naming where it was set, and so is a repository section that is null or not a mapping

pull_requests

How agents open and stack pull requests. do-item applies it through scripts/pr-plan.ts when it opens a pull request; drive-pr applies mark_ready as a drive runs, and drive-pr, fix-ci, resolve-conflicts and do-item apply commit_prefix before they push. Merging is not configurable: a person merges. Without the section the policy is: one pull request per change against the integration branch, branch named {key_lower}-{slug}, opened as a draft, marked Ready after the first review round, closing its issue on merge, merged by a human.

FieldValuesWhen absentWhat it does
pull_requests.stackingnone, native, branchnoneWhether a pull request may be based on another open pull request’s branch instead of the integration branch. See stacking
pull_requests.max_stack_depthwhole number ≥ 1no capMost pull requests one stack may hold, the new one included. Needs stacking other than none
pull_requests.open_asdraft, readyready when drive.reviews_drafts is false, else draftHow a new pull request opens
pull_requests.mark_readywhole number ≥ 1, converged, never1When drive-pr marks a draft Ready for review: after round N completes, only once the draft-reviewing reviewer has nothing left (converged), or never (a person marks it). A draft that converges before round N is marked at convergence, since reviewers that skip drafts would otherwise never see it. Marking Ready summons those reviewers, so a later number spends their review on a cleaner head
pull_requests.branch_namepattern{key_lower}-{slug}Branch name for an issue. Placeholders: {key} (ENG-12), {key_lower} (eng-12), {slug} (the issue title in lowercase words joined by -, at most 40 characters). Must contain {key} or {key_lower}: the issue key in the branch name is what links the pull request to its issue. Placeholders must be separated by at least one character, the key must not have a digit beside it, and {slug} may appear once, or the key cannot be read back from a branch. Example: feature/{key_lower}-{slug}. do-item and dispatch both read it
pull_requests.issue_linkcloses, refs, noneclosesThe line linking the pull request to its issue: Closes ENG-12 (merging closes the issue), Refs ENG-12 (linked, left open), or none
pull_requests.size_budgetwhole number ≥ 1no budgetMost changed lines (added plus deleted, against the pull request’s base) one pull request may carry; the audit record .config/jig-audit.yaml, which every audit rewrites whole, is not counted, and pr-plan.ts names it beside the size. Over it, pr-plan.ts refuses: split the change (into a stack when stacking is allowed), or state why it cannot be split with --accept-oversize <reason> and put the reason in the body
pull_requests.labelslist of label namesnoneFixed labels added when the pull request opens, such as agent-authored. With drive.change_areas_catalog, pr-plan.ts also adds tracker.labels and tracker.flags from the areas the diff directly touches (including generated sources), deduplicated with this list; implied areas add none. Each label must already exist in the repository
pull_requests.labels_from_issuemap from an issue label to a label namenoneLabels the pull request carries for the issue’s own labels, so branch protection, CODEOWNERS or a merge rule can enforce what the issue’s kind of change needs, such as { "kind:db-migration": needs-dba-review }. pr-plan.ts open --issue-json <file> reads the issue’s labels from the issue JSON do-item writes when it picks the item up and adds the label each matching key maps to (matched as rule matchers say: a lookup over the item’s labels); a touched change area’s pr.labels add theirs. Each label must already exist in the repository: pr-plan.ts stops naming a missing one, and the audit reports it
pull_requests.reviewers_from_issuemap from an issue label to a list of reviewersnoneReviewers requested for the issue’s own labels (gh pr create --reviewer), matched as rule matchers say (a lookup over the item’s labels), beside a touched change area’s pr.reviewers. A reviewer is a login or org/team, with or without @. See reviewers on a draft
pull_requests.title_formatconventional, free, patternDerived (see above)Whether titles follow Conventional Commits, a pattern of your own, or no convention. With squash merges the title becomes the trunk commit, so it matters. pattern needs pull_requests.title_pattern, and is never derived
pull_requests.title_patternpatternnoneThe title a pull request takes under title_format: pattern, for a repository whose protected branches require the tracker key in every commit. The pattern is one line. Placeholders: {key} (the issue key as the tracker writes it: ENG-12, or #12 on GitHub Issues) and {summary}, each exactly once, such as {key}: {summary}. pr-plan.ts open prints the title with the key filled in and <summary> left for the title (ENG-12: <summary>), or, given --issue-json <file> too, with the issue’s title as the summary (ENG-12: Fix the export); the audit checks the pattern against the integration branch’s last 30 commit subjects, a squash merge’s (#n) suffix aside, warning when fewer than 80% follow it (a pattern ending in a GitHub (#n) key is left unchecked, as is a history the clone cannot establish, since a squash merge’s suffix looks the same). Set only with title_format: pattern
pull_requests.base_ruleslist of {when: {labels}, base}none: every pull request is based on the integration branchThe base branch a pull request is cut from and opened against, chosen by the item’s labels, for a product whose fixes land on a maintained release line. Each when is a rule over the item’s labels, and the first rule that matches (as rule matchers say) names its base, a branch name without the remote’s prefix; with none, the base is the integration branch (repository.base_branch). A label may be one an issue_tracker.jira.field_labels entry reads from a field: Jira’s Fix versions behind fixversion: gives fixversion:2.4 for an item targeted at 2.4. pr-plan.ts branch prints the base to cut the branch from, pr-plan.ts open opens against it, names the rule and label that chose it in the matcher’s wording (pull_requests.base_rules[0], for the item's label hotfix), and refuses a base the remote does not have; both need --issue-json while rules are declared. The drive already reviews each pull request against its own base. The audit warns of a base the repository does not have. Example: [{ when: { labels: ["fixversion:2.4"] }, base: release/2.4 }]
pull_requests.commit_prefixpatternnone: commit messages are not checkedWhat every commit message on the pull request’s branch starts with, for an organisation that refuses commits without a tracker key on its protected branches. Placeholder, required: {key}, the key the branch name carries under branch_name (ENG-12 on eng-12-fix-the-export). Example: "{key}: ". drive-pr’s finish-round.ts runs drive-pr/scripts/commit-prefix.ts itself before every round’s push (refusing the push, exit 9, when the check cannot run), and fix-ci and resolve-conflicts (before a push) and do-item (before the first push) run it, which rewords each unpushed commit that lacks the prefix, merge commits included, keeping its tree and author, and reports one already pushed (exit 4): rewriting that needs a force-push a person decides on. A reworded commit loses a signature it had
pull_requests.trusted_automationlist of bot logins, or of {login, paths, update_types, signed, committers}none: no trusted-automation exception (a pull request’s own author association still counts)Bots whose converged pull requests count as the repository’s own for the Ready predicate’s condition 8, under the rules in Trusted automation. Read from the default branch only, by drive-pr’s merge-ready announcement, the dispatcher and jig ask. A list that does not read trusts nobody, and each bot’s card says why

Before opening, pr-plan.ts warns when a merge commit brings in commits from a parent outside the planned base, naming those commits. Merges of the base produce no warning. A failed history or configured catalog read stops planning.

Trusted automation

A dependency bot’s pull request (Renovate, Dependabot) is usually an outside author’s to the Ready predicate: its association is typically neither OWNER, MEMBER nor COLLABORATOR. Without a qualifying approval or a trusted-automation exception, an outside author adds an approval requirement, so a converged pull request waits in approve first (when the rest of the predicate permits it), even where the forge requires no approval. A repository can name the bots it trusts, so that their converged pull requests can reach merge now when the rest of the predicate permits it (the rules below say what else it needs), where a person still merges:

yaml
pull_requests:
  trusted_automation:
    - login: renovate[bot]
      update_types: [patch, minor, pin, lockfile]
    - dependabot[bot]

A listed bot’s pull request meets condition 8 only when all of these hold. Any fact that does not read withholds the exception, and the card’s fact names the rule. Where an own author association or a person’s qualifying approval already satisfies condition 8, the pull request is placed on that evidence, and the other rows (a draft, a branch behind its base, branch protection) still decide its lane:

  1. Its head is in the repository, not a fork.

  2. Every commit’s author, as the forge links it, is the bot or one of committers (by default the people dispatch.adopt.authors names, whose sessions push a drive’s repairs). Unless signed: false, each such commit must also carry a valid signature and name the same account as its committer, so a signature is bound to the account the commit is attributed to. The forge verifies the commits an app makes through its API only when the request is authenticated as that app and sets no custom author, committer or signature: confirm that your bot’s commits show as verified before you list it, or set signed: false for a bot that commits unsigned, which trusts the author attribution alone.

  3. Every changed file, and the original path of a file the forge reports as renamed or copied, matches one of paths. By default those are package.json and the JavaScript lockfiles (bun.lock, bun.lockb, pnpm-lock.yaml, yarn.lock, package-lock.json, npm-shrinkwrap.json) anywhere in the repository; a repository in another ecosystem lists its own. The default gives a bot authority over executable configuration and dependency resolution: package.json can declare lifecycle scripts that run on install, and a lockfile decides which packages resolve. Without update_types, a bare login is not restricted to the dependency fields of those files, so set update_types to bind the manifest diff to dependency updates. Listing CI definitions (.github/workflows/**) lets a merged change run with the repository’s secrets: do it only on purpose.

  4. Where update_types is set, every dependency change the manifest diff shows is one of them, so a pull request grouping a minor and a patch update needs both listed: major, minor or patch by the version numbers before and after (with the same range operator), pin for a range made exact with a full version (a bare partial version such as 1.3 is a range of its own and never equals an exact one), lockfile when only lockfiles changed. A change inside a section other than the dependency sections, a hunk that does not show the root-level section opener with no closing brace before the line, a patch the forge cut short (its added and removed line counts differ from the file’s), a file the forge reports as moved or copied to a lockfile name from a name that is not a recognized lockfile (a copy the forge lists as a plain addition is judged on its destination alone), a decrease, a prerelease version, or a range change that moves the operator with the numbers does not read. The branch, title and description are not read: they are text the bot or the upstream wrote. A manifest other than package.json, a dependency added or removed, or a range that is not a version does not read.

    A lockfile may accompany an allowed manifest update without lockfile being listed; lockfile is needed only when lockfiles alone change. The Ready predicate never validates a lockfile’s contents, whether it accompanies a manifest update or is the only change, and never checks it against the manifest. Every changed package.json, a renamed or copied one included, must show at least one classifiable change to an existing dependency’s version or range; a formatting-only edit to one manifest withholds the exception for the whole pull request even when another manifest holds an allowed bump. An edit outside the recognized dependency-line shape, a version change it cannot classify, or a dependency added or removed, also disqualifies the whole manifest. The classifier reads only the manifest’s textual patch, so these limits rest on the operator:

    • It does not compare file modes: review a file-mode change separately.
    • It cannot determine the effective value of a duplicate. Keep the top-level dependency section names, and the keys within each section, unique.
    • It needs the patch to show the root-level dependency section’s opener at the manifest’s own indentation. Two-space and one-tab layouts are supported; a layout whose opener reads as nested (three or more leading spaces, such as four-space indentation) withholds the exception. The card then says the dependency “sits in a hunk that does not show its section, so its containing object is not proven”, or, for a dependency line indented too little to be inside a section, that it is “not inside a dependency section”. Unchanged hunk context outside the patch grammar the classifier reads (such as an inline array, "files": ["dist"],) withholds it too, and the card then says “the forge gives no diff”, the same reason as for a patch the forge did not return: read the manifest’s patch before concluding the forge withheld it.
    • It judges a moved or copied manifest by the patch alone, so review the effective install configuration at both locations, and the destination’s whole contents: unchanged fields such as packageManager can change their effect at the new location (a manifest moved to the repository root can start to govern root lockfile selection) and moving a manifest away can remove the preference from its former directory. A lockfile-only change can qualify when update_types is unset or includes lockfile, subject to the other trust rules.
    • A withheld exception changes only the exception; a qualifying approval can still allow merge now, and the ordinary placement rules still apply to a behind branch or another blocker, and to forge facts that are incomplete or a mergeability not yet known.

The drive can install dependencies before the Ready decision. To review install inputs before a listed bot’s drive starts, set dispatch.adopt.trusted_automation: false and start each drive after review. Pause dispatch on every host that dispatches this repository, including ticks the change probe starts, and let each host’s active ticks finish first (a tick that already passed its fresh read can still launch a first drive under a label removed afterwards, and a tick on a host left running keeps its old policy), then stop any running drives, retire every outstanding drive and rearm request (remove the labels) and resume dispatch once the policy is in effect: a request made before the switch can still start a drive without a new review. Start from a trusted baseline: the base branch’s installer configuration, manifests and lockfiles, not the bot’s branch. Compare every effective install input of the merged tree (or resolved index) against that baseline, since an edit already on the bot’s branch is identical in the merge and its first parent. Then, for a clean base merge, compare the merged tree with its first parent (the pre-merge branch), or for a conflict resolution the resolved index with that branch, to isolate what the merge or resolution adds. Before preparing any checkout or merge, review the Git hooks they run, the merge drivers and the checkout and clean filters (smudge, process and clean) the host configures and the branch’s path attributes can select; or use an isolated checkout that carries no unreviewed executable Git configuration. Then prepare and review the actual merge before the drive starts, in the drive’s own worktree: the drive merges there and installs right after, so a filter that depends on local state can produce different bytes under identical commits and configuration. Use a scratch checkout instead only when you can establish that it resolves the same effective merge drivers, filters and hooks as the drive’s worktree and produces the same effective install inputs; otherwise prepare the worktree first and start the drive in it. The drive installs right after its own clean merge and cannot wait for a recheck, so keep the base branch from moving between that review and the install, and when the head or base has moved since the review, repeat it before starting the drive. Keep the pull request’s head fixed from the review through the drive’s attachment and installation: the attach advances a checkout to a newer head of the same branch, so start the drive in the reviewed worktree with the head you reviewed, and review again if the head differs when the drive attaches. Recheck when the head, base or resolution changes the inputs. Review the contents of any newly selected lockfile, including an unchanged lockfile selected after a manifest edit or after a lockfile is added, removed, moved or copied. Verify the executable, version and source the host resolves for the install command, including any shim or override. For the built-in Yarn command, the presence of .yarnrc.yml selects --immutable, with --frozen-lockfile used otherwise. Verify that the resolved Yarn supports the selected flag.

Review the commands, not only the inputs. The opt-out controls automatic starts only. A drive the operator starts resolves its policy from its bound or base configuration when present, otherwise from layered configuration in the checkout and environment it runs in, so verify the actual checkout, environment and effective policy the drive will use, and repeat the review if they differ from the ones reviewed. The environment, an overlay and catalogs read from disk can select a command neither repository snapshot holds. Before any drive that can install, review each selected install job’s full command, working directory, executable and effective environment, whether it comes from a drive.dependency_install override or from the built-in command for the lockfile’s own directory. Before any start or restart that can enter conflict repair (a first drive included, whatever a restarted drive stopped on, a parked drive whose pull request conflicts included), review the effective inputs of every command the resolution would run, before that command runs (a regeneration can run before its result is staged, and a conflicted lockfile is an input): a migration sequence’s command, a resolve_conflicts.generated entry, the change-area catalog’s generator, the built-in lockfile table, or a generator the operator finds and records for a derived path, with its working directory, against the base’s configuration and the staged configuration both. Also review the Git hooks a merge or commit runs, and the obligation commands and the validation plan or gate that validation runs. A drive does not pause between a regeneration and the install that follows it during validation. To review a regenerated lockfile and the effective tree before anything installs, resolve the conflict and regenerate yourself, push, and only then start the drive.

Restart a stopped drive by the procedure for its stop (answer every parked decision; for a usage-limit stop, follow “Picking up a stopped drive” in the drive-pr skill: a pass that bills a known account different from the account recorded on the stop may pick the drive up now, while the same account, or one that either side cannot identify, is admitted once the recorded reset has passed. When no reset was recorded, or earlier than the reset, a person who knows the window reopened passes --window-reopened; grant a spent round budget). What needs a restart depends on how the drive ended:

  • A drive a person stopped stays stopped.
  • A drive that stopped TAKEN_OVER stays stopped: its successor’s ledger says whether it can restart.
  • A drive converged on a head that is still its verified head and mergeable needs no restart. A base that merely advanced does not stale it.
  • A head the dispatcher proves moved only by a clean base merge is refreshed, not restarted, once the refresh records the convergence: it needs the merge proof, an applicable review witness, passing checks on the new head and a standing announcement on the previously verified head. The refresh runs only while the pull request is open, not a draft, mergeable, and neither held nor busy, in a repository listed on the owning host with the rearm stage enabled, from an apply tick of that host’s dispatcher that reads the forge successfully; it skips disputed and out-of-scope pull requests. Check that scope before waiting for a refresh. The refresh also needs the stopped ledger’s generation to be above every takeover claim in the ledger snapshot (launch records and merge-ready announcements are not generation blockers), and the merge-ready announcement to succeed, so a pull request with another Ready blocker (one outside the merge-now and approve-first lanes) falls back. When the pull request is held or busy, release the hold or wait for the busy drive; when mergeability reads UNKNOWN or cannot be read, recheck it. A CONFLICTING result is not a wait, and not a new stop either: once the ledger reading identifies the head and base, a previously converged drive reads stale while its ledger still records CONVERGED. Review the effective conflict-resolution inputs, then re-drive that stale convergence by hand. A drive whose head or base cannot be identified stays unplaced (recheck it). A MERGEABLE head that differs from the verified head reads stale: when the refresh has fallen back, restart it by hand as the next bullet says. Until the refresh records the convergence the head is stale, and dispatch can withhold a re-drive while verification of the new head is pending. A refresh that is still unresolved (verification pending, a held drive slot, an unconfirmed ledger write) can show as unplaced, but so can a fallback that leaves the drive stale: read the row’s reason and check the canonical ledger before choosing between waiting and a manual restart.
  • When a refresh falls back, check the canonical ledger before restarting: a fallback can follow a ledger that already carries the new verified head, in which case the convergence holds. When the ledger still shows the old head, the pull request stays stale, which under the opt-out waits for a manual restart.
  • Any other moved head is a new stop to restart, or a ledger recovery when the ledger reading shows the prior convergence no longer settles the pull request. A new conflict on a converged drive is not a stop the ledger records: the ledger still says CONVERGED and the drive reads stale, so re-drive it by hand as above; only a drive that actually stopped with PR_CONFLICTING is a stop to restart.

An entry without update_types skips manifest classification, so such an edit can still qualify for the exception and approval is not owed on that ground; an entry with update_types set withholds the exception for a direct edit to the top-level packageManager field, which fails classification.

For trusted automation the review of the head must still be witnessed by the reviewer app’s check run, so where review.reviewer_app names none, a person’s approval is still the witness and the setting changes nothing for the approval requirement. The list is read from the default branch by the board, jig ask and the drive’s merge-ready announcement alike, never from the pull request’s own configuration; for a listed bot the announcement takes the reviewer app, its check pattern and both hold labels from the default branch too. The commits and files are read from the pull request’s own commit and file listings, with the pull request read before and after: the read counts only when its head and base are unchanged both times and its commit and file counts equal what the listings hold. Each page is checked as it arrives for its shape, its count, duplicates and the final commit’s head; the records themselves are parsed once the closing read is confirmed, so a malformed record is refused after the listings are read. A count no single listing page can hold is refused before any listing is requested. The requests share one deadline, and none starts once the enclosing bound has ended. They are made only for a pull request by a listed bot whose condition 8 nothing else satisfies and where a reviewer app is named; a pull request with a full page of either does not read whole. The dispatcher keeps the read between ticks, keyed by the head and the base commit, and the drive’s announcement keeps it for the run.

With dispatch.adopt on and its trusted automation option enabled, a listed bot’s pull request is adopted even if adopt.authors omits the bot. It is driven to convergence while healthy and again when its head moves, so the board can place it. Adoption needs a head known to be in the repository, a recent update and no hold; the commit, path and update-type rules apply only afterwards, when the board places it, so a listed pull request can be driven and still not reach merge now. The review prompt still reads its description as data.

Reviewers on a draft

GitHub notifies the reviewers requested on a draft pull request only when it is marked Ready. Under the default policy a pull request opens as a draft and drive-pr marks it Ready after the round pull_requests.mark_ready names, so the reviewers that reviewers_from_issue or an area’s pr.reviewers request are notified then; with mark_ready: never they are notified when a person marks it Ready, and with open_as: ready at once. pr-plan.ts says so in its warnings when it plans reviewers for a draft. A label is on the pull request from the start, so a merge rule that reads it holds while the pull request is still a draft.

Stacking

A stacked pull request is based on another open pull request’s branch rather than the integration branch, so dependent work can be reviewed before what it builds on merges. Stacks have a cost: any tool that reads its settings from a pull request’s base (an AI reviewer that loads its policy from the integration branch, branch-protection rules, deploy previews) has to work out where the stack finally lands, and a stack built by hand gives it nothing to work from but the chain of branches.

  • none: every pull request targets the integration branch. pr-plan.ts open --stack-on <branch> refuses. Dependent work waits for its predecessor to merge, or goes into the same pull request.
  • native: dependent pull requests form a GitHub stack, which records each pull request’s final target in GitHub’s own stack metadata. The agent opens the pull request against its predecessor’s branch, then links it with the gh-stack extension. pr-plan.ts reads the stacks GitHub already records (its Stacks API) and prints the link command: when the predecessor is the top of an existing stack, gh stack link <stack number> <new>, which appends and lets the extension carry every existing member forward, merged ones included; when no layer is in a stack yet, gh stack link --base <integration branch> <bottom> … <predecessor> <new>. Every pull request is given by its URL, never its number: the extension reads a number that is also a local branch’s name as that branch, and pushes it. It refuses a predecessor below a stack’s top (the extension only appends), a stack that lands on another branch, a chain that disagrees with the stack (its open members, bottom to top, must be exactly the chain of bases), a layer the extension will not add to a new stack (auto-merge enabled, or queued for merge), an append when a local branch has the stack’s number as its name (the extension would read the number as that branch), and a missing extension; it fails when the Stacks API, the layers’ eligibility, or whether such a local branch exists cannot be read. These are the checks the extension makes only after the pull request exists, so a refusal here keeps it from being created outside the stack. max_stack_depth counts every member the stack keeps, merged ones included, because the extension carries them all forward.
  • branch: plain base-branch chaining, with no stack metadata. Tools must walk the chain themselves. pr-plan.ts warns when the repository does not delete head branches on merge, because then GitHub does not retarget the layer above a merged one, and the walk breaks at the merged layer until someone retargets it by hand.

For native and branch, --stack-on must name the head branch of exactly one open pull request from this repository, whose chain of bases reaches the integration branch; anything else is refused, because base-scoped tools could not resolve it either.

drive

FieldTypeWhen absentRead byWhat it does
drive.validation_plan_commandshell commandThe plan is gates.command alonedrive-pr, fix-ci, resolve-conflicts, review, descarSays which checks and reviews a change needs. The repository commands chapter gives its invocation, input, answer, exits and deadline. The change-areas resolver supplies one implementation; a repository may compose its own plan around it.
drive.load_guard_commandshell commandNo load guarddrive-prWaits until the machine can take a round’s heavy checks. The repository commands chapter gives its invocation, input, answer, exits and deadline.
drive.dependency_installmap of recognized lockfile names to shell commandsUse the built-in frozen install for each recognized lockfiledrive-pr, resolve-conflictsReplaces the command run from the lockfile’s directory before validating a base merge that changed dependency inputs. Use a command that fails if the lockfile would need rewriting. A driver pass reads this setting from its trusted policy. The repository commands chapter gives the invocation and deadline.
drive.change_areas_catalogpath, relative to the root or absoluteNo catalog: --area unchecked, no area-based agent routing, no serialized areasdrive-pr, do-item, review, decide, work-batch, change-areas, resolve-conflicts, resolve-review-comments, dispatchThe repository’s change-area catalog (YAML with an areas: map). The change-areas skill validates the whole catalog against its schema and resolves a change against it. The plugin reads each area’s paths and generated[].source globs, labels, tracker.labels and tracker.flags (linear: is the older spelling of the tracker: block), serialize and agent, through one reader that refuses an area whose globs, labels, tracker block or serialize are malformed, with the field at fault; agent and the rest of the area are passed through unchecked. resolve-conflicts also reads each area’s generated[].outputs and command (see resolve_conflicts.generated), and its history report proposes serialize for the areas its conflict hotspots lie in (history.ts --propose-serialize). The dispatcher reads the catalog from the default branch as the forge holds it, as it reads its dispatch section, so it must be a repository-relative path there; an area marked serialize: true has its pull requests driven one at a time, and no pickup whose footprint reaches it starts while other work in flight touches it (dispatch). file-deferred.ts (resolve-review-comments) reads each area’s tracker.labels for the label of each group the label taxonomy requires beyond the size, from the areas covering the file a deferred finding’s review thread is on. determine_agent.ts --catalog overrides it for one run
drive.status_poll.waiting_sharenumber from 0 to 10.25drive-prFraction of each GitHub quota below which waiting reads slow down. The status probe and the driver’s optional final-CI and takeover polls use the more restrictive of REST core and GraphQL in the quota owner’s local budget. Below the share, polling slows. At or below one fifth of the share (5% of either quota by default), optional polls wait for reset within their existing deadlines. Set the share to 0 to disable budget-based delays. The outbound cost ledger attributes the delay to the limiting window. Without a usable balance, unchanged evidence still backs off.
drive.status_poll.max_interval_secondswhole number of seconds from 5 to 3600300drive-prMaximum interval for an unchanged pull request or a low balance, subject to the base interval set by --interval. A change in the observed head, checks, review or threads restores the base cadence, subject to the budget. A pause for a nearly exhausted budget may last longer, within the probe’s wall-clock timeout.
drive.reviews_draftstrue, falseUnknowndrive-pr, do-itemWhether the AI reviewer reviews draft pull requests. The drive uses it to explain a draft waiting for a review; false also makes new pull requests open Ready unless pull_requests.open_as says otherwise
drive.max_roundswhole number ≥ 110drive-prThe default round budget of a drive: how many review rounds it runs before it stops with MAX_ROUNDS. The --max-rounds flag overrides it for one run. A re-arm a person asks for after a MAX_ROUNDS stop (jig send … rearm, or --rearm-budget) grants one more budget of this size, never past the pull request’s round ceiling (drive.max_total_rounds); the steward’s and the tick’s re-drives never do. A value that is not a whole number of at least 1 stops the drive, unless the flag names the budget
drive.max_total_roundswhole number from 1 to 508drive-prThe pull request’s round ceiling: the most distinct reviewed heads it may spend across every launch, re-arm and takeover. A drive enforces the smaller of its round budget and this ceiling, and a re-arm’s grant never reaches past it. Reaching it stops the drive with HITL_PARKED on a round-ceiling decision that states the rounds spent, the hours since the first launch and the ceiling, and refuses automatic re-arming. Only a person raises it, by one --max-rounds block, recorded in the drive state and its ledger: by answering the decision with its override option and re-arming, or by arming with --past-ceiling. The dispatcher’s re-drives never pass that flag. A value that is not a whole number from 1 to 50 stops the drive with a message naming the field
drive.max_wall_clock_hoursnumber of hours, at least 0.1No capdrive-prA cap on how long a pull request is driven, measured from its first launch, which the drive state records once and never resets on a re-arm or takeover. Reaching it stops the drive with the same round-ceiling decision, naming the cap; a person’s override moves it on by one more cap from then. A cap on reviewer cost is not supported: the drive state records no reviewer cost. A value below 0.1 or that is not a number stops the drive with a message naming the field
drive.churn_rounds0, or a whole number from 2 to 124drive-prThe structural-churn brake: how many consecutive rounds one file may draw findings, none of them high or blocker, and change between each pair of consecutive reviewed heads, before the drive parks itself under the structural-churn class with HITL_PARKED. The same brake parks a file that returns to an earlier content. 0 turns the brake off, both kinds. At most 12, the longest streak the drive’s state can hold. DRIVE_PR_CHURN_ROUNDS sets it for one run and wins over the file. Any other value stops the round as INDETERMINATE (the structural-churn park)
drive.pass_deadline_retrieswhole number ≥ 02drive-prHow many passes one drive restarts, whether a pass was killed at its deadline or exited with a process it started still running in the background, whether or not it left work in the tree (the driver stops the process first). The count is kept in the drive state across re-arms and takeovers until the drive converges or the pull request closes: the driver reports what the pass left in the tree, leaves it there and starts the next round. Past this many a pass killed at its deadline stops the drive with PASS_DEADLINE, saying the budget is spent, and a pass that left a background process is taken as finished once the process is stopped; 0 stops at the first. A value that is not a whole number of at least 0 stops the drive
drive.ci_repair_roundswhole number ≥ 02drive-prHow many CI-repair passes a drive spends per head and failing check once the final CI on the converged head comes back red; 0 disables repair and diagnosis. Spending a positive budget starts one diagnosing session on the head. The repository’s CI cost and flake posture, so every host that drives it spends the same. DRIVE_PR_CI_REPAIR_ROUNDS sets it for one run and wins over the file. A failed-job retry (ci.rerun_failed_once) and an infrastructure re-run spend none of it
drive.pass_modelone word: a model id, a Claude Code alias, or a complexity tier (simple, standard, complex; execution and strategic read as standard and complex)sonnet, Claude Code’s alias for the latest Sonnetdrive-pr, do-itemThe model each pass of a drive runs on: the arm command both skills build carries it as claude --model <model> -p …, and drive.ts adds it after claude to a pass command that names no model of its own. A tier resolves through the same tier-to-model table as the implementer’s route (routing.models, row claude-code). The --pass-model flag of drive.ts and of arm-drive.ts overrides it for one drive. The driver log and the drives.ts listing name the model. The setting is Claude Code’s; --pass-model also overrides a Codex pass and resolves tiers through routing.models.codex. Without that flag, a Codex pass runs on its own -m, else the standard tier of routing.models.codex (by default terra, given as gpt-5.6-terra), and any other pass command chooses its own model. A value must not start with a dash or contain whitespace, commas, semicolons, equals signs or NUL; otherwise the drive stops
drive.pass_argslist of words, each a string without spaces, such as [--permission-mode, bypassPermissions]. Only the host’s user file or one run’s environment sets it[]: the pass command carries no extra argumentsdrive-pr, do-item, dispatchExtra arguments for a Claude Code pass command on this host: the arm command both skills build carries them before -p (claude --model <model> <words> -p …), and drive.ts adds them before -p to a pass command that carries no arguments of its own, as the dispatcher’s wrapper does to a follow-up’s headless pass. A command that carries its own (the arm command, or a re-arm or takeover command a stopped drive printed) is kept as written. The --pass-args "<words>" flag of drive.ts and of arm-drive.ts overrides it for one drive: one value, split on spaces, and empty for none. The driver log and the drives.ts listing name the permission mode each pass runs in (inherited when the command sets none: Claude Code’s own settings decide). A headless Claude pass can commit only where its approval source allows it: a permission mode drive.pass_args names, or an allow rule of Claude Code’s own settings (--allowedTools, permissions.allow). Where nothing allows the commit, a conflict re-drive stops with PR_CONFLICTING again at the same change and the dispatcher notifies a person. A repository’s file that sets it, an empty list included, stops the drive with an error naming the field; a host’s opt-in says why, and what the setting risks. It cannot hold --model (set drive.pass_model) or -p/--print (the drive writes the prompt), and it cannot end in an option that needs a value, such as --permission-mode, since the drive’s -p would be read as that value; --pass-args follows the same rules. A Codex pass takes drive.codex_pass_args instead; a pass command of any other tool ignores both fields, and the driver log says so. A value that is not a list of words stops the drive with a message naming the field
drive.codex_pass_argslist of words, each a string without spaces, such as [--dangerously-bypass-hook-trust]. Only the host’s user file or one run’s environment sets it[]: a Codex pass command carries no extra argumentsdrive-pr, do-item, dispatchExtra arguments for a Codex pass command on this host, after codex exec (after --dangerously-bypass-approvals-and-sandbox when drive.codex_bypass adds it) and before the prompt. An arm from a Codex session writes them into the pass command; drive.ts adds them to a Codex pass command that carries no arguments of its own (codex exec, its -m, the bypass and the prompt) and keeps one that carries its own as written, so a re-arm or takeover command a stopped drive printed runs the arguments it shows; words the command already carries are not added twice. The dispatcher reads it with drive.codex_bypass, and the launch record keeps what the run read, so the drive, follow-up, pickup or steward pass it launches on a Codex account carries those words. There is no flag for one drive: --pass-args is Claude Code’s, and its empty value means no extra arguments for either. A repository’s file that sets it, an empty list included, stops the drive with an error naming the field (a host’s opt-in). It cannot hold -m/--model or -c model=… (routing.models.codex sets the model), --dangerously-bypass-approvals-and-sandbox (drive.codex_bypass adds it), -i/--image (it would read the prompt as an image), - or --, or a word that is neither an option nor an option’s value, which Codex would read as the prompt or a subcommand such as exec; and it cannot end in an option that needs a value, such as --sandbox, since the prompt would be read as that value. A value that is not such a list stops the drive, fails an arm from a Codex session and keeps the dispatcher from admitting a Codex account, naming the field
drive.codex_bypasstrue, false. Only the host’s user file or one run’s environment sets itfalse: a Codex pass carries no bypass, and Codex’s own configuration decidesdrive-pr, do-item, dispatchWhether a Codex pass on this host runs with --dangerously-bypass-approvals-and-sandbox, which means no sandbox and no approvals. An arm from a Codex session writes it into the pass command. The dispatcher admits a Codex account only where it is true, for any launch, and says why on every run where it is not (the machine’s dispatch file); the launch record keeps what the run judged, so the launched pass does what was admitted. drive.ts adds no bypass to a Codex pass command, so one armed without the setting still starts and its driver log says inherited. A repository’s file that sets it stops the drive with an error naming the field (a host’s opt-in). A value that is neither true nor false fails an arm from a Codex session and keeps the dispatcher from admitting a Codex account, naming the field
drive.escape_baseline_docpath, relative to the rootdocs/review-loop-baseline.mddrive-prDocument recording the human-judged defect-escape baseline that the loop-cost reports compare against

A host’s opt-in to bypass

A drive’s pass, and a follow-up’s pass the dispatcher starts, runs with nobody at a terminal, so whatever would ask a person is denied instead. Under Claude Code’s prompting modes that includes every write under a protected path such as .claude/skills/**; under Codex’s sandbox it includes a push and a write to the worktree’s git directory. A host lets its passes skip those checks in its own user file, and nowhere else:

yaml
# ~/.jig/jig.yaml
drive:
  pass_args: [--permission-mode, bypassPermissions]   # a Claude Code pass
  codex_bypass: true                                  # a Codex pass
  codex_pass_args: [--dangerously-bypass-hook-trust]  # a Codex pass's hooks

What you accept. With bypass on, a pass can do anything this host’s account can: use every credential it holds, push wherever those credentials may push, change any other checkout on the machine, and call anything the network lets it reach. So opt in after checking what that account reaches. Claude Code’s bypassPermissions still honours explicit ask rules, tools that need a person and the checks before removing critical paths; Codex’s flag runs with no sandbox and no approvals at all. What steers a pass from there is the instructions the drive gives it (guarded-push.ts pushes to the pull request’s branch only, and the bots-only rule keeps it to bot threads), which a pass follows but nothing stops it from ignoring. A host that needs a mechanical limit puts Claude Code permissions.deny rules or hooks in that account’s own settings, since a pull request can edit the checkout’s.

Hook trust under Codex. A pass’s codex exec runs only the hooks Codex has been told to trust, and it cannot ask. The turn-budget guard jig upgrade registers needs one approval per Codex home (/hooks), after which it keeps it across releases (Codex notes). A host that cannot approve sets codex_pass_args: [--dangerously-bypass-hook-trust], which every Codex pass the host arms or the dispatcher launches then carries: Codex runs the enabled hooks without persisted trust, skipping its review of every hook source, the user’s and a repository’s among them. So the host first vets the hooks its Codex home loads. It is separate from drive.codex_bypass, which neither sets nor implies it.

Why a repository’s file cannot say. It is shared by everyone who clones it, so it cannot know what a host’s account reaches, and a drive reads it from the pull request’s own checkout, so a pull request could give its own passes bypass or cancel the host’s choice. The whole field is refused, not only its permission words, because other options widen a pass as well (Claude Code’s --settings, --allowedTools, --mcp-config, --add-dir, --plugin-dir; Codex’s -c, --add-dir, --enable).

For one drive. --pass-args on arm-drive.ts and drive.ts (Claude Code’s words, or none for either tool), and a pass command given after drive.ts’s --, are a person or an agent on the host choosing for that drive. A re-arm or takeover command a drive prints carries the words the drive itself started with.

What this does not cover. A checkout’s own .claude/settings.json is the pull request’s to edit too, and Claude Code reads it in a pass whatever the host chose. As of Claude Code 2.1.311, in a directory it has not been told to trust, hooks there run and a permissions.defaultMode of acceptEdits applies, while bypassPermissions there and allow rules do not. Treat a drive of a pull request you do not trust as running that pull request’s code on this host.

autonomy

How far an agent may decide without asking a person. The level changes nothing the repository’s human-in-the-loop registry reserves: a park is refused outside park_classes at every level, and every decision an agent takes is recorded where a person can reverse it. The effective level is read at each decision point, so a change applies to the next decision; the drive prints it, with where it came from, at the start of every round (bun <plugin>/shared/autonomy.ts prints the same line).

The repository sets level and the ceiling max_level. A person’s user file or the environment (JIG__AUTONOMY__LEVEL) may choose a level up to the ceiling, never above it; a level above it is capped, and the printed line says by what. A session with a person in it, rather than a drive’s pass ($DRIVE_PR_TARGET unset), reads attended unless that person set a level in their own file or the environment.

In a drive, the policy comes from the base branch. max_level and park_classes bound what every agent in the repository may decide, so a drive’s pass reads them from .config/jig.yaml on the branch the pull request targets (its base branch), not from the pull request’s own checkout. An edit to either field therefore applies to a pull request’s drive once the edit is on that branch, never through the pull request that makes it. For a stacked layer the branch it targets is the layer below, whose policy no one has reviewed yet, so the integration branch’s policy bounds it (the branch the default branch’s committed repository.base_branch names, else the default branch; the pull request’s own checkout never names it): the ceiling is the lower of the two, and the park classes are the union of the two lists. A layer below can narrow what the integration branch allows and never widen it. The ceiling’s fallback comes from the base too: the base’s max_level, else the base’s own level, else attended; the pull request’s level is still the level chosen, capped by that ceiling. JIG_OVERLAY does not redirect these fields in a drive. The driver resolves the base branch’s commit at its start and before every round, so a pull request retargeted at another base is read from the new one at the next round. When that commit or its file cannot be read (the base is not in the clone, git fails, the file does not parse or names an invalid ceiling or class list), the policy fails closed: the ceiling is attended, the only park classes are escalated, human-decision and human-thread, and the printed line tells the pass to park every new decision under human-decision until the policy reads; a deferral already decided is carried out without confirmation. A default class list could be weaker than the repository’s own, so none stands in for it. A session with a person in it reads both fields from the working tree.

off_hours widens the level during the hours nobody is there to ask: inside one of its schedule’s windows, a drive’s pass runs at off_hours.level instead, capped by max_level like any other choice, and the printed line names the effective level and records the off-hours choice and the cap; outside every window the base level stands. A person’s session never runs at the off-hours level.

yaml
autonomy:
  level: unattended
  max_level: wide
  off_hours:
    level: wide
    schedule:              # the default once off_hours.level is set
      - "Mon-Fri 20:00-07:00"
      - "Sat-Sun"
      - "Mon 00:00-07:00"

What each level permits:

Decisionattendedunattendedwide
File any other tracker issue a skill needs, such as a follow-up or reflection escalationConfirm firstFile it with the filed-by lineSame
Carry out a deferral ruled by the triage rubric or Review ArbiterFollow the deferral protocol without confirmationSameSame
A choice decide rules reversible inside one pull requestDecide and recordSameSame
A choice decide would rule underdeterminedRule it underdetermined, naming the missing evidence in a spike issue (or a comment on the existing issue)Gather the missing evidence, then apply the ladder, escalating a call it still cannot settleSame
A choice decide’s last row would escalate, with no sensitivity flag, no stakeholder category and no persisted-data or published-contract consequenceEscalateEscalateDecide it, marked provisional
A review thread the arbiter rules escalate with the class escalated and no recorded human decision behind itPark itSameReply with a provisional rejected, wont-fix or deferred, never a fix; resolve it; list it in the morning report
Re-arm after HITL_PARKED with items unansweredNeverNeverOnce every unanswered item is of the class escalated, handed on to be decided provisionally

No level decides a class the registry reserves. A person reverses a provisional decision by commenting on its thread (or on the pull request with a line answer <key>: …) as an owner, member or collaborator; the drive then parks it under human-thread. An unresolve alone reverses nothing.

wide and off_hours are not yet validated. They ship opt-in as a recorded exception to Jig’s rule against shipping unvalidated dials, to be revisited once a working repository has run them for a month with at least ten counted provisional decisions and fewer than one in ten of them reversed before the merge (loop-metrics.ts reports the share per pull request). A decision counts once its pull request has merged or closed, since only then has a person had the chance to reverse it. Until then, opt in only to take part in that measurement.

FieldTypeWhen absentRead byWhat it does
autonomy.levelattended, unattended or wideattended, today’s behaviourdrive-pr, resolve-review-comments, file-issue, decideThe level a drive’s pass decides at outside the off-hours windows, per the table above. wide is not yet validated (above)
autonomy.max_levelattended, unattended or wideThe repository’s own level, else attendeddrive-pr, resolve-review-comments, file-issue, decideThe highest level any layer may choose. Only the repository’s file sets it: the user file refuses it, and an environment variable for it is an error. A drive reads it, and the level it falls back on, from the pull request’s base branch (above)
autonomy.off_hours.levelattended, unattended or wideOff-hours is offdrive-pr, resolve-review-comments, file-issue, decideThe level a drive’s pass decides at inside a window of off_hours.schedule, capped by max_level. Any layer may set it; the repository’s ceiling still bounds it. Not yet validated (above)
autonomy.off_hours.schedulenonempty list of windowsMon-Fri 20:00-07:00, Sat-Sun and Mon 00:00-07:00, once off_hours.level is setdrive-pr, resolve-review-comments, file-issue, decideWhen off-hours applies, in the machine’s local time zone. A window is <days> [HH:MM-HH:MM]: a day (Mon), a range (Mon-Fri; Fri-Mon wraps across the end of the week) or a comma list of those, then optionally times; without times it is those days whole; times alone (22:00-06:00) mean every day. An end at or before the start closes the next day, so a window crosses midnight; the days name the day it opens, which is why the default names Sunday night’s end, Mon 00:00-07:00, on its own. A schedule without a level is an error
autonomy.park_classeslist of distinct class names (lower-case words joined by hyphens)ready, merge, release, scope, human-thread, reviewer-posture, next-item, reopen-or-waive, dark-dial, rules, destructive, legal, copy, escalated, human-decision, structural-churndrive-prThe decision classes a drive may park on: the rows of the repository’s human-in-the-loop registry, by default the template’s. Set, it replaces the default list; escalated and human-decision, which the review arbiter emits, human-thread, which a reversed provisional decision is parked under, and structural-churn, the drive’s own brake (drive.churn_rounds), are kept whatever it lists. Only the repository’s file sets it: the user file refuses it, and an environment variable for it is an error. A drive reads it from the pull request’s base branch (above)

ci

FieldTypeWhen absentRead byWhat it does
ci.rerun_failed_oncebooleantruedrive-prBefore charging a CI-repair pass, retry a failing code check’s failed workflow jobs once per head and check name. A second failure on that head uses the repair budget, which also belongs to each head and check. false disables this retry independently of drive.ci_repair_rounds: 0 (or DRIVE_PR_CI_REPAIR_ROUNDS=0 for one run), which disables repairs. The forge must confirm an open, unheld pull request and a completed run on the same head. Held events, unreadable provenance and commit statuses are not retried. Infrastructure failures retain their separate recovery bounds and CI_INFRA_PERSISTED. Counts live in the driver process; a new drive receives fresh allowances. The user file cannot set it
ci.required_checkslist of distinct check names; [] means noneDerived from the protection and rulesets of the pull request’s base, and of the branch its stack lands on; for changelog, of the integration branchdrive-pr, changelogdrive-pr: checks that must complete on the converged head before the drive certifies it. Required, and not empty, when ci.hold_label is set. changelog (tag.ts, status.ts): checks that must pass on a releasing commit before its version is tagged, [] tagging without any, read from the integration branch’s .config/jig.yaml only, never from a person’s file or the environment. Set, it wins over the branch’s rules for both. Unset, and with no check the integration branch’s rules require, tagging fails closed: no required checks known. Name only checks that run on the integration branch: one that runs only on pull requests never reports there, and its versions would wait for their tag forever
ci.hold_labellabelNo hold: every push runs full CIdrive-prA label the repository’s workflows honour by skipping expensive jobs on intermediate pushes; the drive removes it once review converges. See the drive-pr README; the workflow side is M13’s CI hold
ci.hold_sentinelslist of distinct check names[]drive-prAdditional held-head checks whose failure means CI is held while ci.hold_label is present. The drive also recognises M13’s held-head check shape. Held failures spend no repair pass; after the label is removed, the checks are judged normally. Read from the pull request’s base branch; only the repository’s file sets it
ci.advisory_checkslist of distinct check names[]drive-prWhen every failing check on the converged head is listed, the drive spends no repair pass and parks once under reviewer-posture, offering Fix the finding, Waive it, or Leave it to me. A mixed failure still repairs the non-advisory checks. The key has no effect when autonomy.park_classes omits reviewer-posture; the configuration check warns. Read from the pull request’s base branch; only the repository’s file sets it
ci.log_commandshell commandnone: a failing commit status’s log is read by hand from the page it links tofix-ciReads the failed log of a commit status, for a CI service that reports as commit statuses and keeps its logs where only the repository knows how to reach them. The repository commands chapter gives its invocation, input, answer, exits and deadline. Its temporary default-branch copy holds tracked files only, so a command needing dependencies must install them or be self-contained; give gh an explicit repository because the copy has no Git directory. Repository file only.
ci.repair_skillskill name, bare or with its plugin (ci-support, plugin:skill)none: the pass repairs with fix-ci’s proceduredrive-prThe skill a drive’s CI-repair pass loads before it repairs, such as the repository’s own skill for its CI service; the pass receives it in DRIVE_PR_ROUND_REPAIR_SKILL. The audit reports a name that resolves to no skill installed for the repository or on the machine

issue_tracker

FieldTypeWhen absentRead byWhat it does
issue_tracker.adapteradapter namegithubdo-item, drive-pr, decide, work-batch, dispatchWhich tracker adapter answers: github, linear or jira. github (GitHub Issues) uses the signed-in gh command-line client, which also reads GH_TOKEN or GITHUB_TOKEN; with JIG_GITHUB_GRAPHQL_URL set it sends requests to that GraphQL endpoint (a GitHub Enterprise Server) with the token from GH_TOKEN or GITHUB_TOKEN. linear reads LINEAR_API_KEY or LINEAR_API_TOKEN, or uses a signed-in linear command-line client; with neither, the first call fails as unauthorized with “no Linear key configured” and the process sends Linear nothing more, and a dispatcher tick then says so once on its receipt and, when nothing else failed, exits 9. The process asks the client again after five minutes, so a login made meanwhile is found. jira (Jira Cloud, through its REST API version 3) signs every request with the first credential the environment holds: JIRA_BEARER_TOKEN, then JIRA_TOKEN_COMMAND, then JIRA_EMAIL and JIRA_API_TOKEN (environment variables); its settings are under issue_tracker.jira. A file that sets issue_tracker.team without issue_tracker.adapter (or with it empty) is refused, since the default adapter has no team: add adapter: linear or adapter: jira
issue_tracker.teamteam key such as ENGRequired by the Linear and Jira adapters; refused unless issue_tracker.adapter is set toodo-item, drive-pr, review, work-batch, dispatch, jigThe key issue identifiers carry (ENG for ENG-123): the Linear team’s key, or the Jira project’s key. A Jira project key with _ in it cannot be used, since a key is a capital letter followed by capital letters and digits. GitHub Issues keys are #123, of the repository issue_tracker.github.repository names
issue_tracker.statesmap from state key to the tracker’s nameEach key title-cased (in_progress → In Progress), except pr_open and blocked, which stay unsetdo-item (status moves, which sub-issue states count as parked, and how a sub-issue state with no category is read), drive-pr, work-batch, dispatchThe tracker’s own names for the workflow states. Keys: triage, backlog, todo, in_progress, pr_open, blocked, in_review, ops_pending, done, canceled, duplicate; any other key is an error. pr_open is optional: an item whose pull request is open, waiting for review, is active work, unlike in_review, which is merged and parked. With it set, do-item and work-batch move an item there once its pull request opens, before the drive arms, and the dispatcher’s tick, on the host that owns the repository, moves a claimed item with no running session there from in_progress when an open pull request whose head is the branch of that host’s launch of the item links it (Closes <KEY> or Refs <KEY> in its description), with a comment naming the pull request; the parent roll-up reads it like in_progress; the dispatcher’s stall and double-claim watch counts it as claimed; a claim refuses an item in it; and dispatch.states may not list it. Unset, nothing ever moves an item there. blocked is optional too: an item whose pull request’s drive stopped with only parked work left (the jig:parked state label), waiting on a person. With it set, and the pull request state labels on (dispatch.labels.enabled), the projection that writes those labels moves each item the pull request links (Closes <KEY> or Refs <KEY> in its description, as pull_requests.issue_link writes it; a pull request that links several items moves each, one that links none moves nothing) to blocked, with a comment naming each park’s class from autonomy.park_classes and its reason, or the stop’s own where no park framed it, and a hidden marker recording the pull request, the stop and the state the item left; on Jira it writes issue_tracker.jira.blocked_fields. Once the ledger reads driving, converged or stale again (the park answered and the drive re-armed), it returns the item to the state the marker recorded and clears those fields. It writes from the drive when its ledger changes and from the dispatcher’s tick, only where the tracker disagrees, best effort, never on a pull request carrying jig:hold or jig:held; a stop blocks an item once, so an item a person moves out of blocked stays where they put it, and an item a person moved into blocked is never moved out by the projection. blocked is never a claim’s start: a claim (do-item’s, a served person’s) refuses an item in it, a served queue never offers one, work-batch reads it as started work, the parent roll-up reads it like in_progress, and dispatch.states may not list it. Unset, nothing reads or moves anything. Each state needs its own name (blocked shares none), except that triage, backlog and todo may share one, and so may in_review and ops_pending (a tracker with no operations state holds a merged issue in review), and canceled and duplicate. pr_open may share its name with in_review (and with ops_pending when that shares it too): a tracker with one review status, used while the pull request is open and after the merge. That shared name reads back as pr_open, since the tracker cannot say whether the pull request merged. The parent roll-up (do-item Step 5a, which work-batch and the post-merge follow-up run too) tells the two waits apart by each child’s linked pull request, read from the code host: a child whose pull request merged into the integration branch reads as in_review, merged and parked; one whose pull request is open, that has none, or whose pull request cannot be read reads as pr_open, and keeps its epic in_progress. So with do_item.post_merge_state: in_review, an epic whose children have all merged rolls up to in_review. The pull request is found through the link in the item’s comments or through its issue-link line (Closes <KEY>, Refs <KEY>). Under distinct names nothing is read from the code host. The dispatcher’s stall and double-claim watch leaves a shared name out, since merged items wait under it too. On GitHub Issues, done, canceled and duplicate are an issue closed as completed, not planned or duplicate, and each open state is the label (or, with issue_tracker.github.states_from: project, the board option) of that name; todo carries no label, so a new issue is in todo. On Jira, each name is matched to a status name ignoring case, and a status no name matches is read by its status category (To Do: not started, In Progress: started, Done: completed); done, canceled and duplicate may share one status when issue_tracker.jira.resolutions gives each its own resolution. A move takes one transition: the one out of the issue’s current status into a status of the state’s name, refused (naming the transitions there are) when none or several match. A Jira workflow suits this with a status per state the repository uses, transitions into In Progress, In Review and Done that any status can take, and a resolution field on the Done transition’s screen
issue_tracker.github.repositoryowner/nameThe repository the git remote (repository.remote, else origin) points to on github.comdo-item, drive-pr, file-issue, reflect, work-batch, dispatchGitHub Issues only: the repository whose issues the skills work on
issue_tracker.github.states_fromlabels or projectlabelsdo-item, drive-pr, file-issue, reflect, work-batch, dispatchGitHub Issues only: where an open issue’s workflow state is kept. labels: a label per state, named by issue_tracker.states. project: the option of a Projects board’s single-select field; an open issue with no option is in todo, and one whose option names no open state is refused; the token then needs the project scope (gh auth refresh -s project)
issue_tracker.github.projecta board’s web address, https://github.com/orgs/<org>/projects/<n> or https://github.com/users/<user>/projects/<n>Required when states_from is projectdo-item, drive-pr, file-issue, reflect, work-batch, dispatchGitHub Issues only: the board whose field holds the state. Moving an issue to an open state adds it to the board when it is not there
issue_tracker.github.status_fieldfield nameStatusdo-item, drive-pr, file-issue, reflect, work-batch, dispatchGitHub Issues only: the board’s single-select field that holds the state
issue_tracker.github.priority_labelsmap from urgent, high, medium, low to a label, or to a list of labelspriority: urgent, priority: high, priority: medium, priority: lowdo-item, drive-pr, file-issue, reflect, work-batch, dispatch, resolve-review-commentsGitHub Issues only: the label that carries each priority (1 to 4); an issue with none has no priority. A list is read in any of its labels and written as its first (urgent: [P0, "sev: 1"]); setting a priority takes the others off. Each priority needs its own labels, none repeated across two, which with states_from: labels is also no state’s label. These are the priority facet’s labels: set, they keep priority in labels until issue_tracker.facets.priority names another store, and labels named there must be the same ones
issue_tracker.jira.sitethe site’s address, starting with https://, such as https://example.atlassian.netRequired by the Jira adapterdo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the Jira Cloud site whose project issue_tracker.team names. The address has no port. The host must end in .atlassian.net, since the credential is sent to it; the environment variable JIRA_ALLOWED_HOSTS (comma separated) names other hosts, and redirects are never followed. Every field of issue_tracker.jira is checked whatever the adapter, and a field the section does not have is refused
issue_tracker.jira.api_basehttps://api.atlassian.com/ex/jira/<cloud id>None: requests go to sitedo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: sends every request through Atlassian’s API gateway for the site instead of to the site itself, which an API token with scopes and an OAuth access token require. The cloud id must be the one of site: Atlassian documents https://<site>/_edge/tenant_info for finding it without signing in, but does not present that address as a versioned REST API contract; an OAuth app reads it from GET https://api.atlassian.com/oauth/token/accessible-resources with its access token. Only that host and that path, with one cloud id of letters, digits and hyphens, are accepted: no port, no further path, no query; JIRA_ALLOWED_HOSTS does not widen it, and redirects are never followed. site stays required, since issue links still point at the site
issue_tracker.jira.states_by_typemap from native issue type name to state mapnone: every type uses issue_tracker.statesdo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: overlay each type’s entry on the repository’s state map, including its defaults. Type names match ignoring case and outer whitespace; a missing or unknown type uses the repository map. Each state takes a nonempty status name or null, which marks it absent from that type’s workflow: a move to it is skipped and reported without choosing another state. Ambiguity checks apply to each effective map. Reads and transitions use the issue’s native Jira type; population queries include every type’s names, then check each issue against its own map. The parent roll-up recognizes each child’s workflow and resolves its target in the parent’s workflow. tracker.ts states keeps the repository map at the top level and adds states_by_type with every configured type’s effective map. Example: {Epic: {in_progress: In Delivery, in_review: null}, Story: {in_review: Dev Complete}}
issue_tracker.jira.issue_typeissue type nameTaskdo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the issue type a new issue gets, and an issue created under an Epic (or another parent above the standard level). Where issue_tracker.facets.type keeps type in the issue types, it is the issue type of a new issue whose type has no standard issue type of its own name (and no other name in values), and of one created under an Epic, each keeping its type in its label; a type label wins over this issue type when the issue is read
issue_tracker.jira.subtask_typeissue type nameThe project’s one sub-task issue type; refused when it has none or severaldo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the type of an issue created under a standard issue. Creating an issue under a sub-task is refused. Where issue_tracker.facets.type keeps type in the issue types (store: native), a sub-task keeps its type in its label, and a type label wins over a sub-task type when the issue is read; where it keeps type in a custom field, a sub-task keeps its type in that field like any other issue
issue_tracker.jira.prioritiesmap from urgent, high, medium, low to a Jira priority name, or to a list of themHighest, High, Medium, Lowdo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the priority that carries each of Jig’s priorities (1 to 4). A list is read in any of its names and written as its first, so a site with more priorities than four reads each as one of Jig’s (urgent: [Blocker, Critical, Highest]). An issue with a priority no list names has none (0). No name may stand for two priorities. A Jira issue always has a priority, so moving one to no priority is refused, and a new issue with none is created with the project’s default. These are the priority facet’s values: issue_tracker.facets.priority.values may name them instead, and where both are set they must agree. A name is resolved to its id through priority/search, or through GET priority where the gateway refuses a scoped or OAuth token the search; tracker.ts facet-stores and the audit check, for a native priority store, that every name of every list is one of the site’s priorities, and that the first name of each list, the one a write uses, is among the values of the priority field on the create screen of each issue type a filing uses (issue_tracker.jira.issue_type, the subtask_type where it is named, the project’s one sub-task type where it is not, and the issue types a native type is kept as). The other names are checked against the site only: with urgent: [Highest, Critical], a Critical the site has but no screen offers still reads healthy
issue_tracker.jira.resolutionsmap from done, canceled, duplicate to a resolution name, or to a list of themDone, Won't Do, Duplicatedo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the resolution set when an issue moves into one of these states, where the transition’s screen has a resolution field, and read back to tell the three apart when they share one status. A list is read in any of its names and written as its first (canceled: ["Won't Do", "Won't Fix", Declined]); an issue whose resolution no list names reads as done, unless its status alone identifies a closed state (a uniquely configured Canceled status stays canceled). No name may stand for two states
issue_tracker.jira.link_typesmap from blocks, related, duplicate to an issue link type name, or to a list of them, each a name or { name, inverted }Blocks, Relates, Duplicatedo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the issue link types that carry each relation between issues; links of any other type are ignored. A list such as blocks: [Blocks, { name: "Depends", inverted: true }] lets several link types carry one relation, for a site whose planning app records dependencies on a link type of its own: every listed type is read, an edge two types carry is reported once, and a new link is written with the first. inverted: true reads a type whose outward side means the relation’s inverse (“depends on” for blocks, meaning “is blocked by”), and a new link of that type is written the other way round. Read a planning app’s type before marking it: one whose outward side means “has to be done before”, such as a Gantt app’s “Gantt End to Start”, reads as Blocks does and takes no inverted. related has no direction, so it takes no inverted. A plain name means what it always has. Each name is resolved against the site’s link types, ignoring case, the first time a relation is read or written, and one that matches none or several is refused; a name may appear only once across all relations
issue_tracker.jira.field_labelsmap from a field’s name or id to a label prefix, such as { Size: "size:" }No field is read as labelsdo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: fields whose values the skills read as labels beside the issue’s own, each behind its prefix: a select field Size holding M gives the label size:M, and a multi-select gives one label per value. Single-line text, number, select, checkbox, labels and version fields qualify; a version field (Fix versions, Affects versions, a version picker) gives one label per version, by its name, so { "Fix versions": "fixversion:" } reads an issue targeted at 2.4 as fixversion:2.4 (a multiline text field, the description and the environment hold rich text and are refused); a field of another type, or a name that matches no field of the site or several (name one by its id, customfield_10050), is refused, by the first read that needs the fields and by the audit, which resolves each entry against the site when it reaches the tracker. Values are trimmed. A pool, a population or a ledger selected by such a label is selected by the field in JQL, except a text field’s, which JQL matches only by words and is refused; an option whose value carries surrounding spaces is matched in JQL only by its exact value, so trim the option on the site. An entry whose labels are a facet’s values, such as a Size field behind size: where the label taxonomy’s sizes are size:S, size:M and size:L, is that facet’s field store (where issue_tracker.facets names no other store for it): the facet is written to the field when an issue is filed or changed, each value as the field’s value behind the prefix, and its values still show as labels. The adapter never writes another entry’s field, and adding a label behind any prefix is refused, pointing at the facet where the field keeps one. An update may remove a real Jira label behind a prefix when the issue’s own labels carry it, even when the field presents the same value as a label; removing a value represented only by the field stays refused. A prefix has no whitespace, and no prefix may begin another; choose prefixes no Jira label of the project starts with, since a label behind a prefix is taken for the field’s value. In the label taxonomy, a category whose prefix is an entry’s that keeps no facet is declared field_only: true (file-issue’s label taxonomy): validate-labels.ts then knows its values instead of refusing them as unknown, warns that each is set on the field after filing, and leaves them out of the labels it checks against the tracker and a filing writes
issue_tracker.jira.pool_issue_typeslist of issue type namesEvery issue typedo-item, drive-pr, file-issue, reflect, work-batch, dispatchJira only: the issue types every candidate pool and population is limited to, such as [Task, Bug], for a shared project whose other issue types belong to other teams or other lanes. It limits the pools work-batch, jig dispatch and the queues pick from, the issues assigned to an identity, the unassigned items of the dispatcher’s ready pool (dispatch.pool), the open population the facet census and file-issue’s sweep count, and the fleet metrics’ read of every issue created or completed in a window. Reads of an issue by its key, an issue’s children, and the fleet metrics’ reads a label defines (a ledger, an epic’s activity, a labelled window) are not limited, so an epic of another type is still followed through its children. Each name is matched to one of the project’s issue types, ignoring case, when the tracker is first reached (tracker.ts reach, the audit’s tracker check) or before the first limited read, and a name the project lacks is refused. The project’s issue types are read from its create metadata, so the credential must be allowed to create issues of each named type. There is no free JQL clause: a query from the configuration could not be checked before it runs
issue_tracker.jira.blocked_fieldsmap of reason and since to a field’s name or id, such as { reason: "Blocked Reason", since: "Blocked Since" }No field is writtendo-item, drive-pr, dispatchJira only: the fields an item gets when the projection moves it to blocked (issue_tracker.states.blocked), and that it clears (writes empty) when the item returns. reason gets each park’s class and reason on one line, in a single-line text field (cut at 255 characters) or a multi-line one; since gets the time of the move, in a date, date-time or text field. Either may be left out. Each is resolved against the site’s fields by id, else by name ignoring case, the first time it is written; a name matching none or several, one field named for both, or a field of another type, is refused, and the move itself stands without the fields unless its transition requires them. A field the transition into the blocked status carries on its screen is sent with the move, so a validator on that transition that requires it passes; the rest are written by an update after the move. A field the transition requires must therefore be on the transition’s screen. A move Jira still refuses is reported with the transition’s name, Jira’s message, and which fields went with it and which were not on its screen. The return move takes its transition first, then clears the fields with an update
issue_tracker.labels.epiclabelreview.taxonomy.epic_label, else epicdo-item, resolve-review-comments, drive-pr (fleet health), work-batch, file-issue, reflect, dispatchMarks an issue whose sub-issues are each delivered as their own pull request: a do-item session takes one of them, and the dispatcher starts them in parallel alongside other ready work
issue_tracker.labels.epic_typeslist of issue type namesNone: only the label marks an epicdo-item, resolve-review-comments, drive-pr (fleet health), work-batch, file-issue, reflect, dispatchJira and GitHub: an issue whose own issue type is one of these, such as [Epic], is an epic wherever the skills ask, as if it carried issue_tracker.labels.epic: it needs no size, a batch never takes it, a claim walks its children and its closing waits for an acceptance verdict. Names are matched ignoring case. A read of the issues carrying the epic label takes the issues of these types too (on Jira labels = "epic" OR issuetype in (…), on GitHub a second read by issue type), and the label is never written on them. get_issue.ts prints isEpic, and tracker.ts labels prints the list beside epic. A name the tracker lacks is refused: on Jira by every read by the epic label, which Jira refuses; on GitHub by a ledger of the epic label, while its other reads by that label find nothing of that type. Where fleet health’s own labels.epic names another label, its tracker reads by that label leave the listed types out. Linear has no issue types, so there it marks nothing
issue_tracker.labels.hitllabelhitldo-item, decide, work-batchThe human-in-the-loop flag; its facets are <hitl>:<stakeholder>
issue_tracker.labels.manual_opslabelmanual-opsdo-item, work-batch, dispatchA step a person performs outside the code. The ordinary parent roll-up parks an epic at ops_pending. The epic closure sweep transfers outstanding operator steps to the person-checks list before closing. With the dispatch labels on, the dispatcher also puts it on a pull request whose ## Out-of-tree follow-ups section lists a step not yet checked off; it then must hold no comma and be none of the dispatcher’s own labels (under dispatch.labels.prefix, automation or automation:…), or the dispatcher writes no owed-steps label and says so
issue_tracker.labels.followuplabelreview.taxonomy.provenance_label, else pr-followupdo-item, resolve-review-comments, drive-pr (fleet health), work-batchMarks an issue filed from a review finding
issue_tracker.labels.buglist of labels[bug, type:bug]do-item, drive-pr, file-issue, reflect, work-batch, dispatch, resolve-review-commentsAny of these marks a bug
issue_tracker.labels.pattern_prefixtextpattern:do-item, reflect, review-reflectionsA recurring pattern’s label is <prefix><slug>; a reflection class’s issue is <prefix><class>
issue_tracker.labels.batch_sizeslist of sizes[xs, small, medium]do-item, work-batchSizes whose issues the batch check may group into one pull request. Each entry is read as a size value or as the label of one, so the list keeps working whatever store the size facet is in
issue_tracker.labels.extractable_tailslist of labels<hitl>, <hitl>:legal, <hitl>:tactical, <manual_ops>, <followup>do-itemLabels on open sub-issues an epic may hand off at closure. A configured list replaces the label defaults. The configured ops_pending state also identifies a person check
issue_tracker.person_checksissue keyThe sweep refuses to transfer person checksdo-itemKey of the standing open issue that receives person-only checks and outstanding operator steps at epic closure
issue_tracker.typesmap from a work type to a list of labelsbug, feature, improvement, task and spike; bug marked by issue_tracker.labels.bug, each other type by <type> and type:<type>do-item, drive-pr, file-issue, reflect, work-batch, dispatch, resolve-review-commentsThe repository’s work types and the labels that mark each. Its keys are the type set: a default type left out is dropped with its row in do_item.work_types, and a type outside the default list needs a complete row there. A type name is lowercase letters, digits, - and _; unknown is never one. Refused: a label listed under two types (ignoring case), a label the GitHub adapter uses for a workflow state or a priority (it removes those from an issue’s labels), an empty map, and bug naming other labels than issue_tracker.labels.bug when both are set. determine_type.ts types an item by the first of: its type facet, as the work type whose entry lists it (or that it names); the tracker’s own issue type matched to a type name ignoring case (GitHub’s issue types; Linear has none); the title’s Conventional Commits prefix where pull_requests.title_format is conventional (fix bug, feat feature, chore and docs task, refactor and perf improvement); else the item is unknown. Labels of two types on one item read as no type facet. The type facet reads them too: with a label taxonomy its types are the type values, each kept as the label of its own name, and an entry’s other labels read as the type of its key; without one, each type here is a type value, written as its first label and read from any of them. Set, it keeps type in labels until issue_tracker.facets.type names another store
issue_tracker.facetsmap from type, priority and size to { store, values, field, labels, prefix }On Jira and Linear, type and size as labels and priority in the tracker’s own priority field; on Jira, a type or a size whose labels an issue_tracker.jira.field_labels entry gives in that entry’s field. On GitHub Issues, each facet where detection finds it: in labels where a key above names its labels or any issue carries one; in the repository’s own field where an issue has a value there (the issue type, the organization’s Priority field, an Effort field whose options are the sizes); with neither, in that field where the organization has it, else in labelsdo-item, drive-pr, file-issue, reflect, work-batch, dispatch, resolve-review-commentsWhere the tracker keeps each issue facet, an issue’s type, priority and size. store is native (the tracker’s own field: GitHub’s or Jira’s issue type; on GitHub the organization’s Priority issue field, on Jira and Linear the priority field; Linear’s estimate for size), field (a field that field names: on GitHub an issue field of the repository’s organization, single-select, number or text; on Jira a custom field of the site by its name or its id, such as customfield_10016, single-line text, number, select, multi-select, checkbox or labels) or label (a label per value). values maps a canonical value (a type of the label taxonomy, urgent to low, a size of its size group) to the issue type, option or number that holds it, or to a list of them, read in any and written as the first (feature: [Story, Improvement]); a value it leaves out is kept under its own name, matched ignoring case. labels maps a value to its label, or to a list read in any and written as the first, or prefix makes each value’s label the prefix followed by the value; by default a value’s label is its own name, and on GitHub a priority’s is priority: <name>. Which stores each adapter holds for each facet, and why it refuses the others, is in the Jig Protocol’s tracker facets chapter; outside GitHub a priority kept in labels names its labels or a prefix. On Jira, a type kept in the issue types is filed as the standard issue type of its name, or the one values names (feature: Story); a type with no such issue type and no other name in values, an issue created under an Epic and a sub-task keep the type in its label beside issue_tracker.jira.issue_type or the sub-task type, and a type label wins over that fallback issue type, while any other two different values read as no type. A Jira issue always has an issue type, so a type its issue type holds cannot be removed. Jira changes an issue type by an edit only between issue types of one workflow and field configuration, so a type change crosses workflows only by a move in Jira: a change is refused before anything is written when the issue’s edit screen lists the issue type choices and the new issue type is not among them, naming both issue types and the remedies (move the issue in Jira, or keep type in labels or a field); where the screen omits the issue type choice list, Jira decides and its rejection is explained afterward, while a screen that offers an empty list refuses every target. An issue whose type has no context for a facet’s Jira field, which Jira leaves out of the issue, reads as having no value in it. A Jira field named by a name several fields of the site share is refused, naming each one’s id, as is one field for two facets; before anything is written, a filing or a change whose field is not on the create or edit screen of the issue’s type is refused, naming the facet, the field and the issue type, and an option is checked against the options of that screen. tracker.ts facet-stores, and the audit with it, reads the create screens of issue_tracker.jira.issue_type, the sub-task type (issue_tracker.jira.subtask_type, or the project’s only one), each issue type a type is kept as and issue_tracker.jira.pool_issue_types, and names each one that lacks a facet’s field, leaving out for size the issue types issue_tracker.labels.epic_types lists, which are asked no size. On Jira, filing can omit a facet kept in a custom field absent from the selected issue type’s create screen. Supplying that facet still produces the screen diagnostic. The weekly sweep passes over a missing facet when its field is absent from both the create and edit screens, and reports the count by facet. check-fields.ts move refuses a destination with a create-screen gap. On Linear, a size kept in the estimate maps the sizes in order, smallest first, onto the team’s estimate scale from 1 (exponential 1, 2, 4, 8, 16; Fibonacci 1, 2, 3, 5, 8; linear 1 to 5; T-shirt XS, S, M, L, XL, kept as 1, 2, 3, 5, 8; an extended scale adds two points, and a team that allows zero has 0), unless values names every size’s point, as a number or on a T-shirt scale as its name (a list reads each point as the size and writes the first); a team with estimates off, a scale with fewer points than the sizes and a value that is no point of the scale are refused at the first read or write that needs the estimate, and an estimate no size has reads as no size. Refused when read: another facet or key, an entry with no store, a store the adapter cannot hold, a values or labels key outside the facet’s values, an empty list, a name listed twice, two values given one tracker value or one label (counting every name in every list), a list for Linear’s native priority, labels beside prefix, a label that is also a state’s or another facet’s, a store for size when the taxonomy has no size group, and labels or priorities that disagree with issue_tracker.types, issue_tracker.github.priority_labels or issue_tracker.jira.priorities where those are set too. When the taxonomy fails its lint, explicit type and size stores remain available for recovery reads such as facet-stores and listLabels; their facet slots are unreadable, facet writes are refused, and filing is refused. A value that names nothing in its store (an issue type the organization lacks, an option the field lacks) is refused at the write, before anything is written. tracker.ts create and update take type, priority and size and write each to its store, and refuse a label a label store owns among the labels they add, pointing at the facet. Every filing through the tracker requires the applicable facets and a label of each required taxonomy group. Priority is 1 to 4. An epic needs no size, whether it carries issue_tracker.labels.epic or its issue type appears in issue_tracker.labels.epic_types. A refusal names what the filing lacks before anything is written; an issue filed around that check (an issue form, gh issue create) is caught by file-issue’s weekly sweep (check-fields.ts check), and check-fields.ts move carries a repository’s facets from one store to another, after which this section names the new stores. The skills read the facets, never the labels behind them. On GitHub, a facet this section does not name waits on detection before its first read or write: detection reads which of the facet’s labels and native values the repository’s issues carry and what its organization offers, answered from a cache on this machine for an hour (JIG_FACET_CACHE_DIR, or JIG_FACET_CACHE=off), keyed by repository and a salted hash of the credential. A facet whose issues carry both its labels and native values is in conflict: its reads and writes fail, naming both stores, until this section names one; a failed detection read fails them too, and never falls back to labels. A repository whose credential cannot read its organization’s issue types and fields, or whose issue forms or people set native values beside labels, names every store here. tracker.ts facet-stores prints each facet’s store and why it is in force (the reasons are in the tracker facets chapter), the field a facet kept in labels could move to, a named store’s health, and what detection and the organization’s discovery saw, without moving any facet
issue_tracker.file_commandtextAsk the user to file the issuedo-item, decide, resolve-review-comments, descar, github-actions, promote-memory, reflect, review-reflectionsHow an agent files a new issue by hand, such as a slash command. /jig:file-issue files it through the tracker scripts, with its labels checked against the label taxonomy
issue_tracker.taxonomypath, relative to the root or absolutelabel-taxonomy.yamlfile-issue, do-item, drive-pr, reflect, work-batch, dispatch, resolve-review-commentsThe repository’s label taxonomy: every label an issue may carry, in families, with the rules between them. file-issue checks each issue’s labels against it before writing, and refuses to file while it is missing or fails its lint. Every skill that opens the tracker reads its types as the type facet’s values and its size group as the size facet’s: with no taxonomy the work types are the types and there is no size facet, and a taxonomy that fails its lint leaves type and size unread (none) and refuses a write that sets them

do_item

A section named do_issue (the skill’s former name) is refused, not ignored: do-item stops and asks for it to be renamed do_item (the fields are the same), rather than running without the repository’s routing and gates.

FieldTypeWhen absentRead byWhat it does
do_item.agents.defaultagent namegeneral-purposedo-itemAgent that implements an issue no rule routes
do_item.agents.integratoragent namedo_item.agents.defaultdo-itemAgent that coordinates when more than two agents match
do_item.agents.catalogmap from catalog agent name to agentnonedo-itemTranslates the change-area catalog’s agent values into the repository’s agent names
do_item.agents.codearea_areasmap from issue label to area keynonedo-item, work-batchRoutes an issue to a change area by label, matched as rule matchers say; these labels name the area a batch is drawn from
do_item.agents.labelsmap from issue label to agentnonedo-item, work-batchLabel routing when the catalog gives no answer, matched as rule matchers say
do_item.agents.title_keywordsmap from keyword to agentnonedo-itemLast-resort routing on a keyword in the title, matched as rule matchers say
do_item.scoutsmap from agent to a list of scoutsnonedo-itemScouts that run before each agent. The key is the agent, not a label
do_item.gateslist of {labels, paths, skill}nonedo-itemReview skills that must approve a change before it is pushed. Each entry’s labels and paths are a rule; every gate whose rule matches the issue or its change applies, as rule matchers say. determine_agent.ts prints the gates that apply, and those only the change’s paths could, under gates
do_item.guidancelist of {labels, paths, skills, notes}nonedo-itemImplementation guidance: skills and notes the implementing agent is given. Each entry’s labels and paths are a rule; every entry whose rule matches applies, as rule matchers say. Each entry names labels or paths, and skills or notes. determine_agent.ts prints the union of the matching entries and of the matched change areas’ implementation blocks and own notes, in entry order and then catalog order, and do-item’s delegation prompt lists them under ## Implementation guidance. An area is matched by a label do_item.agents.codearea_areas maps to it, one of its tracker.labels, or a path its globs claim among those --paths names. Separate from do_item.gates, which it never replaces; a label may appear in both. Guidance every item needs belongs in the repository’s own agent instructions. A skill that resolves to nothing installed (the repository’s .claude/skills or .agents/skills, the user’s skills, this plugin’s, or another plugin’s as <plugin>:<skill>) is named in do-item’s status message, and the audit refuses it
do_item.execution_plan_blocknameexecution-plan-v1do-item, dispatchName of the fenced block in an epic’s description that holds its machine-readable execution plan. A claim that pulls a blocker forward (claim with a person and --blocking) reads it from the default branch, as do_item.claim_from is: a branch cannot select another block until the change merges, and when that branch cannot be read the claim is refused whatever the working tree sets. Any other claim never reads the plan block. Dispatch reads it from the default branch too, for its queue and its launch checks, so changing it in a working tree does not change what dispatch selects until the change merges; the other readers of the plan use the working tree’s value
do_item.arm_driveauto, tab, background, printautodo-item, drive-prHow /jig:do-item’s § Arm the drive and /jig:drive-pr’s § Arm start the drive (both through drive-pr’s arm-drive.ts). auto: in a terminal tab of the pull request’s workspace where the session can open one (in an Orca workspace on a macOS or Linux host), and with the session’s background execution elsewhere, falling back to the background, and saying why, when Orca refuses the tab or the tab’s drive is not listed in time. tab: a terminal tab, or a reported failure. background: the session’s background execution. print: the command only, for a person to run. The tab is a fresh login shell of the user’s, so bun, the agent’s command (claude or codex) and the account or profile come from it, not from the session. The tab closes when the drive ends with nothing for a person, and stays open after a park or a failure until the pull request is armed again. A Windows host opens no tab, since Orca’s tab there can run cmd.exe or PowerShell and the drive’s command is quoted for a POSIX shell: auto arms in the background, and tab fails. The drive’s pass command is the one of the agent tool the session runs in: a Codex session arms Codex’s pass command in a tab or through its managed background command tool. Without that tool, the caller prints the command and reports the limitation; when the host ends children with the session, keep it alive until the drive ends or use an external terminal. A session of any other tool prints Claude Code’s command whatever the setting, and so does a human checkpoint the run has no clearance for. A pickup under the process runtime returns owed and requests a drive from the dispatcher. A pass jig dispatch started runs with background tasks off and cannot spawn: where the setting leads to the background, it starts no drive, records its result with the pull request and reports the unstarted command. The dispatcher drives a completed process pickup through its ordinary admission checks; dispatch.adopt and the drive label remain the background fallback, subject to dispatch.labels.only_labeled
do_item.preflight_commandshell commandnonedo-item, work-batch, dispatchThe repository’s own start rules, run by every claim of an item: by do-item, by work-batch for each member, and by a dispatched pickup. The repository commands chapter gives its invocation, input, answer, exits and deadline. A person clears a refusal by changing the item or command; a refusal for open blockers alone, which the command tags with a second output line kind: blockers, a person may also start ahead of with claim --override-blockers "<reason>" in an interactive session (see do_item.override_label). The dispatcher retries after the item’s updatedAt moves; in a batch, only refused members are held, each at its own timestamp.
do_item.claim_fromlist of canonical statesnone: the claim’s own restrictions apply (no in_progress or pr_open item; a served claim needs a triage, backlog or unstarted item)do-item, work-batch, dispatchThe states a claim may start work from. A claim of an item in any other state, or in a tracker status that maps to no canonical state (a side state such as a blocked or reopened status with its own name), is refused: nothing is written, and claim exits 3 with "why": "state", naming the state and the allowed ones. It applies to /jig:do-item, /jig:work-batch and served claims alike. Unset, a claim keeps those own restrictions and is not limited to dispatch.states; /jig:audit warns when both are set and differ. It cannot list in_progress or pr_open: an item there is already someone’s. Read from the default branch, as do_item.preflight_command is: a branch cannot change it until the change merges; when that branch cannot be read, a working tree that sets it refuses the claim. Repository file only
do_item.claim_markertrue, falsefalsedo-item, work-batch, dispatchA claim posts the claim marker on the item before it writes the item’s assignee or state: a comment carrying the tracker-claim marker and its record (the attempt, the session, the host as a digest, the branch and the claimant; see RECORDS.md) and one line a person reads. It reads the item’s markers back, and of the trusted markers posted within 10 minutes of its own the earliest wins: a claim that finds an earlier one, or cannot post or read back its own, removes its marker and refuses (exit 3, "why": "marker") with nothing written to the item, and one that finds an earlier one after writing, or no longer finds its own, settles who holds the item from the chapter’s outcome record each attempt posts when it ends (claimed, released or unresolved), without undoing its writes: it keeps the claim when its own marker still shows and every earlier attempt released ("recovery": "reclaimed"), stands down when one claimed ("held", exit 4), and stands down "unresolved" (exit 4), leaving the item for a person, when no outcome shows within 90 seconds, its own marker is gone, or the markers cannot be read. Each attempt’s outcome comment stays on the item. Set it wherever more than one host picks up from one queue: unset, claims serialize on one host only. Two claims whose read-backs each miss the other’s marker can still both win. Read from the default branch, as do_item.claim_from is. Repository file only
do_item.override_labellabelnone: no labeldo-itemThe label a claim adds when a person starts the item ahead of its open blockers. A claim in an interactive session (JIG_LAUNCH unset), without --for, --factory-ancestor or --work-batch, refuses an item with an open blocked_by relation, or one whose blocker cannot be read (exit 3, "why": "blockers", nothing written, the blockers and the consequence in its JSON; a dispatched claim reads no blockers); a person who decides to start it anyway claims again with --override-blockers "<reason>", which only an interactive session takes (never with JIG_LAUNCH set, --for, --factory-ancestor or --work-batch). That clears the blocker refusal and a preflight refusal tagged kind: blockers, nothing else. Before it writes, the claim prints the open blockers and the consequence; once it lands, one comment records the person, the reason and the blockers, the claim marker carries them with do_item.claim_marker, the claim’s JSON prints them as "override", and this label is added where it is set. Jig never removes the label and never creates it: a label the repository does not have is reported and the claim stands. Read from the default branch, as do_item.claim_from is. Repository file only
do_item.post_merge_statedone, ops_pending, in_reviewdonedo-item, work-batchThe last state the post-merge rule moves a merged item to, for a team whose done means merged and verified by someone else. It applies wherever the rule applies: a standalone item, each sub-issue, an epic’s roll-up (a parent whose children are all done is capped there), /jig:work-batch after-merge, and the post-merge follow-up. An item carrying the manual-operations label still parks at ops_pending. A value other than done needs pull_requests.issue_link: refs, since with closes the forge closes the item on merge whatever the skills do; the configuration reader refuses any other combination before a claim writes. A post-merge move to done (tracker.ts transition <key> done --post-merge) is then refused; a person’s own tracker.ts transition without the flag still works
do_item.post_merge_closertextA sentence saying a person closes the itemdo-item, work-batchWho closes an item the post-merge rule leaves short of done (a role such as “the release lead”), for the closing comment. Checked whenever the section is read (a blank value is refused even under done), and used only when do_item.post_merge_state is not done
do_item.work_typesmap from a work type to fields of its row in the depth table belowThe table’s defaultsdo-itemHow much each delivery station does for an item of each type. An entry overrides single fields and keeps the rest of the row; a type outside the default list must set every field. Refused: an entry for a type outside issue_tracker.types, an entry for unknown, a field the table does not have, and a value outside a field’s set. do-item prints the type and its row when it picks up an item

The routing order and the gates are explained in do-item’s SKILL.md.

The depth table

Each row says how much the delivery stations do for one work type. A type lowers depth only where nothing else raises it: a flag label, a mandatory review the change-area catalog names, a gate in do_item.gates and the hitl label keep their force whatever the type. In this version do-item derives an item’s type and prints its row when it picks the item up; what each station does is otherwise unchanged (design).

FieldValuesbugfeatureimprovementtaskspike
pre_scoutslist of pattern (the pattern pre-scout), spec (the item’s linked requirements)[pattern][spec][spec][][]
test_firstrequired (a failing test before the change), new_behaviour (required for new behaviour), as_needed, nonerequirednew_behaviouras_needednonenone
review_tierslist of review tiers 1, 2, 3[1, 3][1, 2, 3][1, 2, 3][1][]
review_skip_linesthe most changed lines at which the review is skipped, never, or none (no review to skip)20never2050none
change_noterequired (where the repository keeps a changelog), not_requiredrequiredrequiredrequirednot_requirednot_required
batchableyes, within_batch_sizes (sizes in issue_tracker.labels.batch_sizes), nowithin_batch_sizesnowithin_batch_sizesyesno
autonomyfull, hitl (a person decides the deliverable)fullfullfullfullhitl
pr_body_sectionslist of section names[reproduction, cause, fix][requirements_covered, left_out][before_and_after][what_changed][findings, recommendation]

An item whose type cannot be derived is unknown, which is not a row a repository sets: it is computed from the effective rows as the strictest value of each field. Its pre-scouts, review tiers and body sections are the union of every row’s, each default type’s default row included, test_first is required, the review is never skipped, the change note is required, it is not batchable, and its autonomy is hitl, since failing to derive a type does not show the item is not a spike. An override that lightens one type cannot lighten unknown.

specs

Where a repository keeps the requirements and acceptance criteria its work items link, read by the spec resolver (shared/spec/resolve.ts), which do-item runs after it fetches an item. The resolver reads, never writes, through one adapter per layout; the body adapter, which reads the item’s own body, is the one built so far. Every field is repository-only, and an unknown key is refused.

FieldTypeWhen absentRead byWhat it does
specs.adapterslist of adapter names, in order: bodyEvery adapter whose layout the repository holds, then bodydo-itemOrders or restricts the adapters: only those listed run, in this order, and the first whose path patterns claim a referenced path reads it. Leaving body out stops the item’s own sections from being read
specs.body_sectionheading text, without the #Specdo-itemThe heading of the body section that names the item’s spec, by link or path, and may carry its requirements, criteria and tasks inline. Matched at any heading level, ignoring case, emphasis and a trailing colon. Must differ from Requirements, Acceptance criteria and the verification heading. Headings and entries inside code (a fence, or an indented code block) are not read as requirements, criteria or tasks
specs.verification_sectionheading text, without the #Verificationdo-itemThe heading of the body section that carries proposed verification commands. Uses the same heading rules as body_section and must differ from it, Requirements and Acceptance criteria. Each nonempty content line is one command, including lines in fenced or indented code. List markers and code spans around a whole text line are removed; headings, fence delimiters and quoted text are skipped. Commands keep their internal spacing and receive source-qualified keys in the verification list and summary. They are untrusted tracker text: the resolver never runs them. The implementer reviews each command before choosing to run it through the evidence recorder

orca

How the skills show a piece of work on Orca’s workspace board, where the session runs in a terminal Orca opened. Each stage of the execution line moves the worktree’s card: do-item to the in_progress stage at pickup and to in_review when it opens the pull request, and drive-pr to in_review when it marks the pull request Ready; completed is the stage a post-merge step moves it to. A drive that stops where a person must look (a park, a usage-limit stop, a failure stop) marks the card unread with the stop’s one-line reason as its comment, and moves no column. A comment never replaces one a person has not read: while the card is unread, the new line is appended to its comment, which Jig’s dispatcher notifications do too, under one lock per card. Outside Orca nothing is read or called, and an Orca failure only warns.

FieldTypeWhen absentRead byWhat it does
orca.boardmap from a stage (in_progress, in_review, completed) to a board status idOrca’s own columns, {in_progress: in-progress, in_review: in-review, completed: completed}do-item, drive-prThe column each stage moves the card to, for a board with custom columns. An entry overrides one stage and keeps the rest; a stage outside this set, or a value that is not a status id (letters, digits, - and _), only warns and moves nothing

From the repository root, bun "<plugin>/shared/orca-board.ts" [in-progress|in-review|completed] [--pr <number>] [--unread] [--comment <text>] moves the card by hand, <plugin> being the installed plugin’s directory. The stage is written with a hyphen there, as Orca’s default column is named.

work_batch

How work-batch sizes and ranks a batch of small issues for one pull request. The labels it reads come from the sections above: the batchable sizes and label roles from issue_tracker.labels, the repository, type and context labels from review, the labels that name an area from do_item.agents.codearea_areas, and the catalog’s flags from drive.change_areas_catalog.

FieldTypeWhen absentRead byWhat it does
work_batch.point_budgetwhole number ≥ 116work-batchThe main limit: the points a batch may cost. --budget overrides it for one run
work_batch.size_pointsmap from batchable size to a whole number ≥ 1{xs: 1, small: 2, medium: 6}work-batchWhat each batchable size costs. Its keys must be exactly issue_tracker.labels.batch_sizes; set it whenever those differ from the default sizes
work_batch.max_itemswhole number ≥ 16work-batchThe item limit: how many issues one review round holds. --limit overrides it for one run
work_batch.solo_flagslist of labelsnonework-batchLabels added to the solo-only flags, which are otherwise derived: issue_tracker.labels.hitl and its facets, issue_tracker.labels.manual_ops, and every catalog area’s tracker.flags. No setting removes a derived one. The flags are one rule over the item’s labels, matched as rule matchers say
work_batch.sizeslist of sizesnone: where the label taxonomy has a size group, the size facet’s values; otherwise the labelling-gap report for issues with no size is off, and the known sizes are the batchable sizes and review.taxonomy.sizeswork-batchEvery size, batchable or not, each a size value or the label of one. Where the label taxonomy has a size group, work-batch reads the size facet: the pool is the issues whose size is batchable, and an issue with no size or no priority is a labelling gap, with no list needed. Without a size group, it reads size labels: the list lets an issue with no size label be told from one too large to batch, and two sizes on one issue be caught, and without it a size label named nowhere (a large the repository never lists) is not recognised as a size. Must include every batchable size; review.taxonomy.sizes is always added to it
work_batch.ranking.sizesmap from batchable size to a whole number ≥ 0{xs: 2, small: 1, medium: 0}work-batchThe score of each batchable size; a size it leaves out scores 0
work_batch.ranking.provenancewhole number ≥ 03work-batchThe score of the follow-up label (issue_tracker.labels.followup)
work_batch.ranking.shared_area_labelwhole number ≥ 01work-batchThe score of each shared area label an issue carries

dispatch reads work_batch.size_points, point_budget, max_items and solo_flags to form fixed batches of served items. An urgent item, and one with no priority, which the proposal holds back as a labelling gap, never joins a fixed batch; a member whose priority is cleared after the batch is formed is left for its own pickup by the batch’s pass. When fewer than two members remain, whether such a member may be the one the pass starts is dispatch.missing_priority as the dispatcher read it from the default branch: the batch’s launch record carries that value, and the pass hands it to its proposal rather than reading the workspace’s configuration. The most expensive batchable size (medium by default; none when every size costs the same) needs a person’s verdict to stay in a batch, so it never joins a fixed batch: such an item is picked up on its own, with no question, and the other items go on as the batch. When fewer than two remain, each is its own pickup. A member that reaches that size after the batch is formed, or whose size no longer fits a batch, is left out the same way by the batch’s pass. A run with a person at the keyboard still asks for the verdict.

An unknown field in work_batch or work_batch.ranking is refused. The work-batch README explains the budget, the ranking and the solo-only flags.

file_issue

How file-issue’s weekly sweep (check-fields.ts check --yes, in the file-issue skill) treats an open issue outside triage that lacks a type, a priority or a size.

FieldTypeWhen absentRead byWhat it does
file_issue.sweep.movetrue or falsetruefile-issueWhether the sweep moves each such issue not yet started back to triage. false is for a lane where only a person may move a ready issue back: the sweep posts its comment, with its marker, and leaves the issue in its state. The issue then stays in every later listing, so one that already carries the marker for what it lacks is passed over before the 50-a-run budget is counted, and is never commented on twice. Run it with check-fields.ts check --yes --position <file>, the file kept between runs, so each run resumes where the last one left off in creation order and a population past the read cap of 20 pages of 100 is reached in turn; without the option every run reads from the oldest issue

An unknown field in file_issue or file_issue.sweep is refused.

routing

Which complexity tier, which model and which effort the agent that implements an item runs on: its route, derived from the item’s work type, its size, its labels and the change-area catalog by rules kept here as data. Routing is opt-in: without a routing section, do-item derives and prints each route and applies none, so a repository sees what the rules would choose before it turns them on. routing: {} declares the section and accepts every default; a routing key left empty (YAML’s null) reads as absent. No route writes a model or a tier onto the issue. In this version do-item prints the route and forwards it only in a pass jig dispatch started, whose prompt carries the route: rules line: there the implementer it delegates to runs on the route’s model and effort, and the pass itself keeps the agent’s own (design).

FieldTypeWhen absentRead byWhat it does
routing.complex_flagslist of labels[has-migration, api-change, dpa-relevant], the sensitivity names decide usesdo-itemLabels that make an item complex at any type and size, matched as rule matchers say: one the item carries, or one an area it seeds (through do_item.agents.codearea_areas, and their impliedBy closure) declares under tracker.flags. [] turns the rule off. A catalog that is declared and cannot be read is taken to carry one
routing.typesmap from a work type to {tier, effort}The table belowdo-itemEach type’s effort (low, medium, high, max), and a tier (simple, standard, complex) that replaces the complexity table’s for that type; a complex flag still sets complex. An entry overrides single fields and keeps the rest of the row; a type outside the default list must set both. execution and strategic, the tier names of earlier releases, read as standard and complex. Refused: an entry for a type outside issue_tracker.types, an entry for unknown, and a value outside the lists
routing.raise.flagslist of labels, or catalogcatalog: every flag the catalog’s areas declare under tracker.flagsdo-itemFlag labels that move the effort up one step, matched as rule matchers say
routing.raise.sizeslist of sizesThe known sizes (the size facet’s values where the label taxonomy has a size group, with work_batch.sizes, else issue_tracker.labels.batch_sizes, and review.taxonomy.sizes) outside issue_tracker.labels.batch_sizes; [large] where that leaves nonedo-itemSizes that move the effort up one step, matched as rule matchers say: against the item’s size facet where the repository has one, else against its labels. A batchable size never raises by default
routing.raise.reviewstrue or falsetruedo-itemWhether an area with a mandatory review (review.skills naming a skill) among the areas the item’s labels reach through do_item.agents.codearea_areas, and every area their impliedBy closure adds, moves the effort up one step
routing.modelsmap from a runtime (claude-code, codex, or any other runtime name) to {simple, standard, complex}, each a model the runtime takes: a family alias or any other model identifier, which for a runtime with a list of families must have its tier declared in routing.model_tiers (or its older spelling routing.family_tiers) unless the list already names it (a family alias or a cataloged release ID such as gpt-5.6-terra)claude-code: {simple: sonnet, standard: sonnet, complex: opus}, codex: {simple: terra, standard: terra, complex: sol}do-item, drive-pr, dispatchWhere a complexity tier becomes a model: a route names a tier, never a model, and drive.pass_model set to a tier resolves here too (that field may also name a model directly). The dispatcher reads the row of the agent a session runs in, which the account’s vendor picks: a repository names a model per runtime here, never an agent. A cell a row leaves out keeps its runtime’s default; a runtime with no defaults names every tier, and a runtime with no row gets no model, its routes recorded and not applied. Claude Code is given the alias; Codex is given the model the family names today (terra runs as gpt-5.6-terra), from the plugin’s one list of families (plugin/shared/model-families.ts); a model outside the list is given as written. A Codex pass of a drive with no model of its own runs on the codex row’s standard model. The legacy keys execution and strategic read as standard and complex, and an execution model is also simple’s unless the row names simple; a row naming a legacy key and its new key with different models is refused. This row is the all-stages one; routing.stages replaces a cell for one stage
routing.model_tiersmap from a runtime to a map from a model identifier or family alias to {tier, reason}, the tier one of M0’s scout, execution, strategic, judgmentEach listed family’s tier from the plugin’s listdo-item, drive-pr, dispatchThe M0 tier of a model the list does not name, which a route needs before it may use the model on a runtime that has a list of families (a runtime with none accepts any name), or of a listed family whose tier differs in this repository. Refused without a reason. The audit reports each surviving configured entry, not a list of live consumers: an all-stages entry may be inherited by a stage, and a stage entry is reported even before a launch reads it. Where routing.family_tiers declares the same model with the same tier, the model_tiers entry’s reason is the one reported. The open model vocabulary says how the layers combine
routing.family_tiersthe same shape as routing.model_tiersnonedo-item, drive-pr, dispatchThe older spelling of routing.model_tiers; its entries are read as that key’s, and a configuration that sets only this one keeps its tier classification, but each selected model must now meet the operand rule, so a selection that starts with a dash or holds a control character is refused. One model declared under both keys with different tiers is refused
routing.stagesmap from a stage (pickup, rearm, followup, steward) to {models: {<runtime>: {simple, standard, complex}}}, each cell a model as in routing.modelsnone: every stage runs on the routing.models rowdo-item, dispatchOne launch stage’s model for a tier, in place of the all-stages cell. A cell a stage leaves out falls through to routing.models. The checks of routing.models apply to a stage’s cells beside the row they replace. The steward reads its row today; a stage’s other passes read theirs as each learns its stage
routing.effortsmap from a runtime to a map from an effort to the runtime’s name for itEach effort as writtendo-item, dispatchWhere a runtime spells an effort differently. A dispatched Codex session takes its effort as Codex’s model_reasoning_effort

The families each runtime knows, with the tier M0’s mappings give them:

M0 tierclaude-codecodex
Scouthaikuluna (gpt-6-luna)
Executionsonnetterra (gpt-5.6-terra)
Strategicopussol (gpt-6.2-sol)
Judgmentfableastra (gpt-6-astra)

The open model vocabulary

The list of families above is the default, not an allowlist: configuration maps any model identifier to an M0 tier, for the host and for a repository (routing.model_tiers, one table per runtime, the same for every stage), and names the model a tier runs on for the host, a repository and a stage (routing.models, routing.stages). A route still names a tier, never a model.

  • Naming a model. routing.models.<runtime>.<tier> and routing.stages.<stage>.models.<runtime>.<tier> take any model the selected launch can pass to its runtime, one word with no control, bidirectional-control or lone-surrogate characters, no whitespace, comma, semicolon or equals sign, and not beginning with a dash. Every declaration key must also be nonempty and hold no whitespace, comma, semicolon or equals sign. Beyond that, a routing.family_tiers key keeps the older grammar: it may begin with a dash or hold NUL or a lone surrogate. A routing.model_tiers key may also begin with a dash, but may not contain NUL or a lone surrogate. Selected values use the stricter operand rule, so a dormant legacy key can stay while a selection of the same string is refused. A declaration key, unlike a model value, may not be __proto__: the shared loader rejects that mapping key before routing reads it. For a runtime with a list (claude-code, codex) a name outside the list is refused until routing.model_tiers.<runtime>.<model> (the recommended spelling; the older routing.family_tiers supplies the same declaration) says which M0 tier it is, so a typo never routes silently; the message names that key. A runtime with no list accepts every name that meets the operand rule as written, and the checks below apply to a name once its tier is declared. For a runtime that takes the alias itself (claude-code), a cataloged release ID (the pinned spelling of a known family) is accepted for its compatible CLI launch without model_tiers. A delegated Agent-tool invocation is stricter: its open model field accepts only a family alias, so an exact identifier is refused before delegation rather than silently falling back. Codex also has a list of aliases but its CLI accepts the release ID the family names, so its cataloged IDs are accepted as written. The same holds in both tables. A run’s environment variable segment allows only letters, digits and single underscores, and is lowercased, so a model ID with a dot, a slash, a capital letter or a double underscore, or the runtime claude-code, cannot be a leaf override; set the parent key to a flow-style mapping instead. The model must also be declared when its runtime has a list of families, for example JIG__ROUTING__STAGES='{steward: {models: {codex: {complex: my/model-1.2}}}}' with JIG__ROUTING__MODEL_TIERS='{codex: {my/model-1.2: {tier: strategic, reason: "pinned for this host"}}}'.
  • Layers. A host sets any of these keys in its user file and a repository in .config/jig.yaml; the layers merge cell by cell before the loader reads them, so the repository’s value for a cell replaces the host’s, and a cell only the host sets serves every repository. The merge is by the literal key: a host’s declaration of sol and a repository’s of gpt-6.2-sol both survive, and are refused if their tiers differ, so re-tiering an inherited declaration means using its exact key, spelling included. Two spellings of one family that survive in different layers (routing.family_tiers.codex.sol in one, routing.model_tiers.codex.sol or gpt-6.2-sol in another) must agree on the tier, so an override matches the full declaration path and every surviving spelling of the family. A routing: null in a higher layer resets the whole section to its defaults, protected declarations included; to keep inherited cells, omit the key. A run’s JIG__ROUTING__… variable wins for the paths it sets. Layers combine by mapping: when both values at a path are mappings their cells merge, and otherwise the higher value replaces the lower whole, descendants included. So a leaf variable leaves the file layers’ other cells in place, but a variable that sets a parent key to a non-mapping (JIG__ROUTING__MODELS=null) replaces everything below it, and the loader refuses a null only when it is the value that survives the merge. The paths routing.model_tiers, routing.stages and a stage’s models map have dedicated null messages (routing.models accepts a null and restores the default rows); a null deeper down, such as a stage, a runtime’s row or a tier’s cell, fails the mapping or model-token check that field requires. A higher layer can replace any of these nulls with a value valid for the field (a mapping for a mapping-valued path, a model string for a model cell). The audit’s null_refused check names exact paths and covers only routing.model_tiers and routing.stages of those discussed here; a stage’s models: null is reported by the separate routing validation, which parses the repository file on its own, so it can flag that file’s null where a higher runtime layer masks it and the loader accepts the merged result. A null only in the host file is outside both checks. A segment that ends in an underscore immediately before a __ separator cannot be addressed by a variable, whether it is a model or a runtime name. An underscore inside a segment (my_model) works in either position. For a model, JIG__ROUTING__MODEL_TIERS__CODEX__MODEL_ addresses the key model_ and can take the whole {tier, reason} mapping, while appending __TIER addresses model._tier instead; set an affected model’s whole entry as a mapping. For a runtime named custom_ holding the model model, the variable JIG__ROUTING__MODEL_TIERS__CUSTOM___MODEL splits into custom and _model (a literal key custom___model in a file is a different, valid key), so set JIG__ROUTING__MODEL_TIERS__CUSTOM_ to the whole runtime mapping, with the model entries inside it. Likewise set such a runtime’s whole row under routing.models or a stage’s models table as one mapping.
  • Precedence. For a stage, a runtime and a tier, the first of: the stage’s cell (highest layer that sets it), the all-stages routing.models cell (highest layer that sets it), the runtime’s default. A stage’s cell is more specific than the all-stages one whichever layer set each, so a host that sets the steward’s model in its user file has it in every repository unless a higher layer overrides that cell or resets a section that contains it.
  • routing.family_tiers is kept: its entries are read as routing.model_tiers entries, and a configuration that sets only it keeps its tier classification and precedence; selecting a model follows the selected-model rules above, which refuse some strings (one starting with a dash, for example) that were accepted before. The two keys are one table; a model declared under both with different tiers is refused.
  • Which stages read their row today. The dispatcher’s steward launch. The other stages (pickup, rearm, followup) are accepted and checked, and a pass reads its row as it learns its stage.

Loading routing.models and routing.stages refuses, for a runtime with a list, a model outside it whose tier neither routing.model_tiers nor routing.family_tiers declares. It also refuses: any tier mapped to a Scout model (haiku, luna), by default or by configuration, where the runtime has a catalog that identifies it (a runtime without one can use the name luna undeclared, while routing a model an explicit declaration classifies as scout is refused on any runtime), which no routing.model_tiers or routing.family_tiers entry waives, since M0 keeps that tier read-only (an implementer may still hand it simple sub-steps); and a row in which a stricter complexity tier runs on a model of a lower M0 tier than a lighter one (a stage’s cells are checked beside the row they replace; the check skips a pair when either model has no classification). A Judgment model (fable, astra) is no tier’s default and is accepted where a repository configures it; the audit reports each such mapping.

Refused besides: an unknown field in routing, routing.raise or a routing.models row, a name that is more than one word (it would not read back from the route record), and, where the repository has a label taxonomy its label lint accepts, a declared raise list naming a label the taxonomy does not declare. A default list is never refused: a default label no item carries raises nothing. A refused routing section stops do-item and says why; it is never read as absent.

The complexity table

The itemTier
a spike, or any item carrying one of routing.complex_flagscomplex, at any size
a bug, an improvement or a featurestandard up to M, complex from L
a task, the mechanical typesimple up to L, standard at XL
an unknown typecomplex

The type and the size are the issue’s facets. A size reads as its step whatever its spelling (xs, s or small, m or medium, l or large, xl), a size: prefix included; an item with no size, or one the table does not know, reads as M.

The effort table

Fieldbugfeatureimprovementtaskspike
effortmediumhighmediumlowhigh

An item whose type is unknown, or whose type has no row while routing is undeclared, takes the complex tier and the highest effort any row names, each default type’s default row included, so an override that lowers one type cannot lower it.

The raises, each class moving the effort up one step at most once however many labels of the class the item carries, in this order: a flag label, a mandatory review, a size label, and the human-in-the-loop label (issue_tracker.labels.hitl) or one of its facets, counted once even where the catalog also lists it as a flag. A catalog that is declared and cannot be read is taken to flag the item where routing.raise.flags is catalog, and to hold a mandatory review where routing.raise.reviews is on. The effort stops at max, and a raise never moves the tier: a type that keeps needing max is a row a person moves to a stricter tier, or a flag a person adds to routing.complex_flags, with the route records showing it.

fleet_health

FieldTypeWhen absentRead byWhat it does
fleet_health.configpath, relative to the root or absolute.config/fleet-health.yamldrive-prThe fleet-health settings file, described below
fleet_health.snapshot_dirfolder; ~ is expanded, relative paths resolve against the root~/.local/state/jig/dashboarddrive-prWhere the fleet-health snapshot is read from. DEV_DASHBOARD_DIR overrides it

The fleet-health file

The fleet-health sensor (drive-pr’s fleet-health.ts, and the fractal-metrics.ts ledger and baselines) compares a window’s ceremony (review rounds, follow-ups, delivery-process issues) with its progress (merged product work, closed acceptance criteria, accepted epics) and raises suspicions when one outweighs the other. Its definitions and thresholds are the repository’s, in their own file, because a built-in threshold nobody chose would be a confident answer to an unasked question. So this file is stricter than the overlay: it must exist for the sensor to run, every key below marked required must be present, and an unknown key is an error.

FieldTypeRequiredWhat it does
version1yesSchema version
window.dayswhole number, 1–366yesDefault window length in days (--days overrides it)
progress.product_areasnon-empty list of distinct change-area keysyesChange areas whose merged work counts as product progress
progress.weights.merged_product_prnumber ≥ 0yesProgress units per merged pull request in a product area
progress.weights.criterion_closednumber ≥ 0yesProgress units per closed acceptance criterion
progress.weights.epic_acceptednumber ≥ 0yesProgress units per accepted epic
ceremony.free_roundswhole number ≥ 0yesReview rounds per pull request that count as normal, not ceremony
ceremony.weights.rounds_beyond_freenumber ≥ 0yesCeremony units per review round beyond the free ones
ceremony.weights.followups_mintednumber ≥ 0yesCeremony units per review follow-up issue filed
ceremony.weights.sdlc_issues_openednumber ≥ 0yesCeremony units per issue opened against the delivery process itself
ceremony.weights.drive_rearmsnumber ≥ 0no; default 1Ceremony units per re-arm event in the pull request’s drive ledger, inside the report window
ceremony.unmeasuredmap from unit name to reasonyes (may be {})Ceremony the sensor cannot measure, each with the reason stated
signals.stuck_epic.dayswhole number, 1–366yesDays without activity before a started epic counts as stuck
signals.tail_blocked.done_sharenumber 0–1no; default 0.8Share of an epic’s children (abandoned ones left out) that must be delivered for it to count as tail-blocked
signals.tail_blocked.max_openwhole number ≥ 1no; default 2Most children that may still be open on a tail-blocked epic
signals.ceremony_ratio.suspect_atnumber ≥ 0yesCeremony-to-progress ratio at which an epic is suspected
signals.ceremony_ratio.high_atnumber ≥ suspect_atyesRatio at which the suspicion is high. An epic with ceremony and no progress is raised at maximum severity
signals.ceremony_ratio.min_ceremonywhole number ≥ 1yesLeast weighted ceremony before an epic can be raised at all
signals.followup_depth.suspect_atwhole number ≥ 1yesFollow-up chain depth (a follow-up of a follow-up …) at which a pull request is suspected
signals.followup_depth.max_walkwhole number, 1–20yesDeepest chain walked
signals.delivery_system_share.suspect_atnumber 0–1, or nullyesShare of merged change in delivery-system areas at which to raise; null reports it without raising
signals.review_carousel.min_roundswhole number, above ceremony.free_roundsyesReviewed heads at which a pull request can be a review carousel
signals.review_carousel.high_roundswhole number ≥ min_roundsyesReviewed heads at which the suspicion is high
signals.review_carousel.min_post_review_sharenumber 0–1yesShare of the change made after review began that marks a carousel
lifecycle.cooldown_dayswhole number ≥ 0yesDays a suspicion that a diagnosis comment closed stays closed before it can be raised again
labels.epiclabel, or nullno; default the overlay’s epic label (issue_tracker.labels.epic or review.taxonomy.epic_label), else epicLabel marking an epic
labels.followuplabel, or nullno; default the overlay’s explicitly declared follow-up label (issue_tracker.labels.followup or review.taxonomy.provenance_label); explicit null, or no label declared in either file, means follow-ups are not measuredLabel marking a review follow-up
labels.delivery_systemlabel, or nullno; unset means not measuredLabel a delivery-system change area and its issues carry
labels.repositorieslist of labelsno; default the overlay’s review.taxonomy.repos; none declared means orphan-risk is not measuredLabels that name a repository; an epic carrying none of them, with no children, project or owner, is an orphan risk
ledger.labellabel, or nullno; default labels.followupLabel of the debt ledger fractal-metrics.ts reports
ledger.projecttracker project, or nullnoA project whose issues also belong to the ledger
ledger.closed_state_typesnon-empty list of state typesno; default [completed, canceled, duplicate]Tracker state types that close a ledger issue
merge_conflicts.coverage_floornumber 0–1no; default 0.9Minimum observed share of the scoreboard’s forge-listed merged PR cohort before drive-pr judges merge_conflict_share; unknown PRs must also leave both whole-cohort bounds at the same verdict
baselines.<metric>.valuenumberper baselineA recorded baseline for one scoreboard metric
baselines.<metric>.source{file, needle}noThe document recording that number and a substring that must still appear in it, so a stale baseline is caught

Re-arms are read from the trusted forge ledger even on pull requests with no review rounds. An unreadable ledger or one written before event history was recorded leaves a report gap. The obsolete drive_rearms entry in ceremony.unmeasured is ignored. Handoff narratives do not record a dated history, so handoffs remain unmeasured. A ratio is called a lower bound only when ceremony.unmeasured contains other units.

baselines.merge_conflict_share.value records the share of observed merged pull requests that met a conflict, using the scoreboard’s PR window. Replay of the PR’s own merge ancestry and this clone’s live events establish conflicts. A clean observation additionally needs complete replay coverage and a forge timeline without force-pushes; silence in the live record does not establish it. The report states the unknown share and whole-cohort bounds, and withholds a verdict when their endpoints disagree. The default coverage floor keeps older fleet-health files readable.

Beside stuck-epic the sensor reports an epic census of the started epics, read-only and never commented on an epic: finished-but-open (every child closed, the epic open; it replaces stuck-epic for that epic), tail-blocked (at least signals.tail_blocked.done_share delivered with at most signals.tail_blocked.max_open children open; canceled and duplicate children are left out of the share) and orphan-risk (no children, no project, no assignee and none of labels.repositories). Each states that closing an epic requires an accepting acceptance verdict or a recorded waiver.

The team key comes from issue_tracker.team and the change-area catalog from drive.change_areas_catalog. The signal lifecycle and what a diagnosis comment looks like are described in the header of skills/drive-pr/scripts/fleet-health.ts.

verify

The evidence record (shared/evidence.ts): a check run through it is recorded against the exact tree it ran on, with its exit, the test counts from its JUnit report and the start and end of its output, so a claim that the check passed points at a run. bun <plugin>/shared/evidence.ts run -- <command> records a run and bun <plugin>/shared/evidence.ts list prints the records for the tree as it is now; the script’s header lists every flag. The verify skill, once built, reads the same fields. Records and their output never leave the machine, and only their owner can read them; the short block the script prints names the command by a display name, never by its arguments, and gives the report’s counts, never its suite or case names. An unknown field in verify is refused.

FieldTypeWhen absentRead byWhat it does
verify.storefolder; ~ is expanded, relative paths resolve against the root~/.local/state/jig/evidenceevidence (shared/evidence.ts; the verify skill when built)Where the records are kept: <store>/<repository>/<tree hash>/<command hash>/<run id>.json, with the full output beside each; <repository> is the clone’s folder name and a hash of its Git directory, so two clones of one name keep apart. A machine-local store: deleting it costs a re-run, never a decision, so it usually belongs in the user file. A folder inside the repository must be one Git ignores, or each run would change the tree it records
verify.output_lineswhole number ≥ 160evidence (shared/evidence.ts; the verify skill when built)How many lines from the start and from the end of the output the record keeps
verify.timeout_minuteswhole number from 1 to 35791 (the longest a timer holds)30evidence (shared/evidence.ts; the verify skill when built)The deadline of a run that --timeout does not set; a run that reaches it is ended with its whole process tree and recorded as timed out, never as a pass or a failure
verify.retention_dayswhole number ≥ 130evidence (shared/evidence.ts; the verify skill when built)How long records are kept. Checked when a record is written; removing older records is to be a kind of the resource collection runner (gc), which does not collect them yet, so until then nothing is removed

reflection

Session reflection (reflect and review-reflections). The section’s presence in any layer turns reflection on; without it, the journal takes no notes and no skill asks for a reflection. Since every repository writes to the same store, it normally lives in the user layer (~/.jig/jig.yaml), which turns reflection on for every repository on the machine; a repository’s own file can turn it on for everyone working in it, override the store, or turn it off with enabled: false. The dispatcher reads the section for each repository it ticks, the repository’s layer from its default branch as it reads its dispatch section, and records each reflection class that recurs on the repository.

yaml
reflection:
  path: ~/.jig/reflections
FieldTypeWhen absentRead byWhat it does
reflectionmappingReflection is offreflect, review-reflections, drive-pr, resolve-review-comments, do-item, dispatchIts presence turns reflection on
reflection.enabledtrue, falsetrue when the section existsreflect, review-reflections, drive-pr, resolve-review-comments, dispatchfalse turns reflection off: in a repository’s file for that repository, or JIG__REFLECTION__ENABLED=false for one run
reflection.storefilesystem, notion, github, commandfilesystemreflect, review-reflections, dispatchWhich store answers: the filesystem store, the Notion store, the GitHub store, or reflection.command
reflection.pathfolder; ~ is the home directory, a relative path is the repository’s~/.jig/reflections (under JIG_HOME)reflect, review-reflections, dispatchThe filesystem store’s folder
reflection.commanda command line, or a list of wordsRequired with store: commandreflect, review-reflections, dispatchThe reflection store, where reflection.store is command: it keeps the findings sessions record with the reflect skill. The repository commands chapter gives its invocation, input, answer, exits and deadline. See the store contract for the operations and their guarantees.
reflection.notion.databasea Notion database id, or a link to itRequired with store: notionreflect, review-reflections, dispatchThe database notion-store.ts init created. The integration’s secret is read from the NOTION_TOKEN environment variable, never from a file
reflection.github.repositoryowner/nameRequired with store: githubreflect, review-reflections, dispatchThe repository whose issues hold the reflections, often a private one kept for them. Requests go through gh, signed in as it is; the account needs write access, and the repository a jig-reflection label (check names the command that creates it)
reflection.journalfile path<git-dir>/jig/reflection-journal.jsonlreflect, resolve-review-commentsThe worktree’s journal; a path git would track, or a file it already tracks, is refused. Parking still uses it when the section says enabled: false
reflection.classeslist of class entriesemptyreflectClass names to reuse, each with a slug, a shape and an optional non-empty text source
reflection.classes_fromlocal YAML or JSON file pathunsetreflectA top-level list of class entries, at most 500 and in a file of at most 256 KiB. A .json file is parsed as JSON, any other as YAML. Paths expand ~ to the home directory and resolve relative to the repository root; a URL, a network share path (\\host\share, //host/share), a path with a NUL character and a path whose last component is a link are refused
reflection.escalate_afterwhole number, at least 13reflect, review-reflectionsThe recurrence count at which a class is escalated to one tracker issue
reflection.timeout_secwhole number of seconds, at most 86400120reflect, review-reflections, dispatchThe deadline for one store operation; list and diagnose get five times as long
reflection.modequick, comprehensivequickreflectThe reflection’s default depth: what went wrong only, or also what worked and what could improve

Use the class vocabulary to share class names across repositories or to reuse a class before the first finding is stored. Each entry’s slug uses lowercase letters and digits in hyphen-separated groups. Its shape is a non-empty description on one line and source can name the reference it came from.

yaml
reflection:
  classes_from: ~/.jig/reflection-classes.yaml
  classes:
    - slug: missing-guard
      shape: A required check is absent from a reusable workflow.
      source: Team reflection register

reflect gather combines vocabularies from the user, repository and environment layers. For duplicate slugs, the higher layer supplies the whole entry. Within a layer, an inline entry takes precedence over the file. Missing or unreadable files produce a warning and gathering continues. Malformed entries, a slug repeated within one list and invalid YAML or JSON are configuration errors; so is a list over the entry limit, while a file over the size limit is a warning and is not read. Only reflect gather validates and reads the vocabularies, so a mistake in a vocabulary entry or file never stops the journal or the review of stored findings. The configuration check validates the merged setting and does not read the vocabulary files. Every command’s settings reader still loads and parses all configuration layers, so a configuration layer that cannot be parsed at all stops every command, vocabularies aside. A seed’s shape supplies the example, and the store still supplies the finding count. When a store read fails, store_error reports the failure and any available seeds appear with zero findings. Escalation and review count actual findings.

Escalation reads issue_tracker.labels.pattern_prefix (a class’s issue is labelled <prefix><class> and carries an owner marker, a Jig owner: <owner> line with the owner percent-encoded, in its description, which the lookup requires) and issue_tracker.file_command.

changelog

Change notes and the changelog (changelog). The skill is on in a repository whose own .config/jig.yaml sets changelog.file; without it every command says not configured and writes nothing, and no skill asks for a note. Every field is repository-only, and the skill reads the whole section from the repository’s file alone: a value from the user file or from a JIG__CHANGELOG__* variable is refused, never merged, so neither can turn the skill on, or change what it enforces, in a repository that did not adopt it. The branch check reads the section from the branch it compares with (git show <base>:.config/jig.yaml), not from the branch’s own tree, and checks a branch that edits it against the section it proposes as well.

yaml
changelog:
  file: CHANGELOG.md
  release_paths: [src/]
  version:
    files:
      - { path: package.json, key: version }
FieldTypeWhen absentRead byWhat it does
changelog.filepath of a file, relative to the rootRequired: absent, the skill is offchangelogThe changelog. Setting it turns the skill on. It must exist; the root itself, a folder path (docs/) and a path with a .. segment are refused
changelog.formatkeep-a-changelog, common-changelogDetected from the file: an ## [Unreleased] heading or a link to keepachangelog.com is Keep a Changelog, a link to common-changelog.org is Common Changelog; anything else, an empty file included, is refused with a request to set the field. A Common Changelog file holds only its title and its releases, so it cannot name its format: set the field for itchangelogThe changelog’s format: which change types a note lists, whether it has an Unreleased section, how an entry ends, and which format’s rules lint.ts holds the whole file to
changelog.notes_dirfolder, relative to the rootchangeschangelogThe folder of change notes: the Markdown files directly in it, other than its README.md. The root itself (., ./) is refused
changelog.version{ files: [{ path, key }] } or { tags: true }Derived: package.json version, pyproject.toml project.version (else tool.poetry.version) and Cargo.toml package.version, each only where it sits at the root and holds a written version; none left is an error asking for the fieldchangelogWhere the released version lives. files: JSON, TOML or YAML files each with the dotted key that holds the version (a plain VERSION file takes no key); all must agree. tags: the version is the changelog’s newest release heading, before the first release the highest <tag_prefix>x.y.z tag, else 0.0.0
changelog.release_pathslist of paths[]changelogA change under one of these ships only in a release: its branch must carry a note that asks for one. A path ending in / is a folder; one without is that file or folder and what is under it, never another name that starts the same (plugin holds plugin/x, not plugin-docs/x). A file moved out of a path counts as a change to it
changelog.note_pathslist of paths[]changelogA change under one of these must carry a note, with or without a release. Matched as release_paths are
changelog.placeholderslist of { files, from, to }[]changelogText a file holds until the release knows its version: the release replaces from (one line) with to, with {version} filled in, in the files the files globs match. A glob that could match a file under .github/workflows/ is refused
changelog.after_versionshell commandNo commandchangelogUpdates the files that repeat the version, such as a lock file, for the release commit. The repository commands chapter gives its invocation, input, answer, exits and deadline.
changelog.unreleasedwrite, waitwrite; wait with release.push: pull-requestchangelogKeep a Changelog only: whether a note without release is written under Unreleased after its own merge (write) or waits for the next release (wait), which saves a commit and a CI run per merge. release.push: pull-request refuses write
changelog.authorstrue, falsetruechangelogCommon Changelog only: false leaves the authors out of each entry
changelog.tag_prefixtextvchangelogWhat a version’s tag puts before it
changelog.release.pushdirect, pull-requestdirectchangelogHow the release reaches the integration branch: the workflow template’s push job pushes the release commit onto it (direct) or force-pushes it to release.branch and opens or updates the release pull request (pull-request, which refuses unreleased: write). The branch check reads it from the base to recognise a release pull request; release-access.ts checks what the mode needs of the branch rules; release.ts --json prints it for the workflow
changelog.release.branchbranch namechangelog-releasechangelogpull-request mode: the branch the release pull request comes from, regenerated from scratch on every push to the integration branch. A pull request from it is checked as a release pull request (the base’s value counts); release-access.ts checks that the App can create and force-push it
changelog.release.rerun_failed_gatesnonnegative integer1changelog, dispatchHow many times tag.ts --rerun may re-run failed required checks on each releasing commit, using the workflow run attempt as its budget. 0 disables failed-check retries, and also makes the dispatcher’s release decision offer no re-run and recommend Tag it by hand. Cancelled checks retain their single retry. Read from the integration branch’s repository configuration
changelog.release.tagged_byworkflow, personworkflowchangelog, dispatchWho creates a release’s tag under the repository’s release procedure: the workflow template’s tag job (workflow), or a person (person). The dispatcher’s release decision reads it: under person it offers no re-run of the failed gates and recommends Tag it by hand, whatever the releasing commit’s checks say. Unset, the dispatcher recommends the re-run only for a version whose follow-up recorded it failed in the tag plan (or recorded no state), and changelog.release.rerun_failed_gates: 0 offers no re-run either. The tag plan (tag.ts) lists the versions owed a tag either way, and person does not stop the workflow’s tag job from tagging ready versions. Read from the repository’s own configuration
changelog.consumer_actionstrue, falsefalsechangelogtrue: the branch check requires every breaking entry of a note the branch adds (one marked **Breaking:**, **Breaking** or **Breaking.**, in any case) to declare a consumer action with **Consumer action:**, none included (the form). It also refuses a near-miss marker (**Consumer Action:**, **Consumer action**:) and a **Detect:** with no declaration, which a repository with the field off reads as text. A declaration’s form is checked wherever a note carries one, whatever this field says
changelog.consumer_actions_recordpath of a file, relative to the rootNo recordchangelogWhere the consumer-actions record is derived: the JSON list of every consumer action the changelog’s released sections declare, with its id. The release step rewrites it in the release commit, and the skill’s scripts/consumer-actions-record.ts --check fails when the committed file is not what the changelog derives (--write regenerates it). Keep a Changelog only: Common Changelog appends a reference and authors to each entry, so the field is refused there. It may not be the changelog, a version file or a workflow, and a placeholder’s globs may not reach it

The integration branch is not a field of this section: it is repository.base_branch, else the hosting service’s default branch (in a CI job from the event that started it; elsewhere from origin/HEAD, then gh repo view). The branch check’s comparison base is never repository.base_branch; see the skill’s scripts reference.

code_stats

How the code-stats skill classifies the repository’s files. Every field is optional: without the section the skill uses its built-in detection, the test files its test runners’ configuration names (read before this section: jest, vitest, pytest, Gradle and Maven), and the default areas, and the fields fix what those get wrong. Every field is repository-only. A value the skill cannot use (an unknown kind, a malformed glob, an empty or repeated area name, a value of the wrong type, an unknown key) is refused with a message naming the field.

yaml
code_stats:
  areas:
    - name: product
      description: The shipped applications and their packages
      paths: ["apps/**", "packages/**"]
    - name: content
      paths: ["content/**"]
      content: true
  default_area: production
  kinds:
    test: ["scripts/smoke-*.sh"]
  modules: ["apps/*", "packages/*"]
FieldTypeWhen absentRead byWhat it does
code_stats.areaslist of {name, description?, paths: [globs], content?: true or false}; globs are relative to the root (**, *, ?, {a,b}, [...])The default areas belowcode-statsWhat each file is for, in order: the first rule whose glob matches names a file’s area. The list replaces the default areas whole. content: true makes YAML, JSON and other configuration files in that area count as data. A name holds no /
code_stats.default_areaarea nameproductioncode-statsThe area of a file no rule matches; such a file counts as unclassified
code_stats.kindsmap of kind (code, test, docs, config, data, generated, fixture, asset, vendored, other) to a list of globsnone: built-in detection and the test runners’ configurationcode-statsKinds checked before built-in detection and the test runners’ configuration, in the order written; the first glob that matches decides
code_stats.moduleslist of globs naming module foldersDetected from the workspace manifests (pnpm, npm, Yarn or Bun workspaces, go.work, Cargo, Gradle, uv), else the top folderscode-statsThe module folders; a file belongs to the deepest one that holds it
code_stats.classify_commandshell commandnonecode-statsThe last layer of code-stats’ classification of the repository’s files. The repository commands chapter gives its invocation, input, answer, exits and deadline. See the classify command for examples.

The default areas, in order:

AreaWhat it holds
scaffoldingAI agent scaffolding: agent instructions, skills, rules and agent tool settings
ciCI pipelines: workflow and pipeline definitions
buildBuild definitions and build tooling: the files of a dedicated build tool (see the build tool table)
databaseDatabase schema and migrations, by the tool or convention that writes them (see the database table)
opsDeployment and infrastructure: Terraform, Helm, Kubernetes, Ansible, containers and compose files
toolsInternal developer tooling that does not ship: tools/, scripts/, bin/, hack/
docsDocumentation: docs/, doc/, root-level documents and licence files
repo-configRepository configuration: root-level files that are not code (manifests, lockfiles, linter and editor settings) and the .github/ files no other area takes (CODEOWNERS, issue templates, dependency-update settings)
productionEverything no other area takes (the default area)

The skill’s README lists each area’s paths, the build tools and the database conventions.

followup

How the followup skill settles what a merge still owes. Without the section the skill runs every core arm that applies and the fixed authority table. The skill reads the section from the integration branch’s committed .config/jig.yaml when the clone has that branch (the working tree’s otherwise), so a pull request’s own change to it does not decide that pull request’s preview. The exception is a clone whose integration branch cannot be read: the skill then falls back to the layered configuration including the working tree, and a preview branch’s own followup section can govern its own preview. An unknown key, arm, act or level is refused with a message naming the field, and so is a level that would loosen the fixed table.

yaml
followup:
  off: [workspace-board]
  authority:
    file-items: ask
  arms:
    - id: docs-site
      title: The documentation site
      when: [docs]                                 # change areas; absent: every merge
      instructions: .config/followup/docs-site.md  # read from the integration branch
    - id: ops-ledger
      check_command: bun scripts/ledger-check.ts   # read-only; prints a verdict JSON
    - id: verify
      skill: /team:verify                          # a skill from any source

Repository arms (followup.arms) are the obligations this repository has after a merge and no other does. Each entry has:

KeyWhat it holds
idThe arm’s name in the report and in record: lowercase words joined by hyphens, not the id of a core arm
titleWhat the report calls it; the id when absent
whenThe change areas it applies to; absent, it applies to every merge. A merge that touches none of them reports the arm skipped with that reason, and change areas that could not be read skip no arm
instructionsA path from the repository root to an instructions (prompt) file the agent carries out. It is read from the integration branch alone, never the pull request’s tree, so a pull request cannot rewrite the arm that follows it up; a path the integration branch does not hold is refused
check_commandA read-only command that reads the merge facts as JSON on standard input and prints one verdict, {"verdict": "owed"|"not-owed"|"pending"|"unread", "items": [...], "evidence": "..."}. It runs as the integration branch’s configuration names it (no environment variable replaces the arms), from a copy of that branch’s tracked files, so a pull request’s edit of the program it names never runs; never when that branch cannot be read or followup.authority.read-only-checks is not own, without the tracker and forge tokens, within 60 seconds (JIG_FOLLOWUP_CHECK_TIMEOUT_SEC) and 64 KiB of output; a run past either, any other exit, or output that is not a verdict is recorded unread with the reason, never not-owed (contract)
skillA skill’s slash command (/team:verify), from the repository, the user’s home or an installed plugin, which the agent runs after the merge; a preview runs none

An arm has an instructions file, a check_command, both (the check reads the verdict, the instructions say what to carry out), or a skill alone. An unknown key (a form the skill does not know), an arm with nothing to run, an id used twice and an id of a core arm are refused. A repository arm acts only within the fixed authority table: what it carries out is an act of that table, and no arm widens it.

FieldTypeWhen absentRead byWhat it does
followup.offlist of core arm ids: tracker, deferred-findings, out-of-tree, release, scaffolding, live-verification, next-step, workspace-boardEvery core arm that applies runsfollowupThe core arms this repository does not run; each is reported as skipped, with this field as the reason. Repository-only
followup.armslist of repository arms, each {id, title?, when?, instructions?, check_command?, skill?}No repository arms: the core arms alonefollowupThe repository’s own arms, settled under the same record-and-settle rules as the core arms and placed before the next step; see the table above. Repository-only
followup.authoritymap of act id (tracker-status, file-items, read-only-checks, board-card, release-workflow, deploy-rerun, post-deploy-action, stop-driver, other-repository, origin-boundary, merge) to a level (own, ask, person, never)The fixed table (the skill’s README)followupMoves an act to a stricter level: file-items: ask makes the follow-up ask before it files. A looser level than the fixed table’s is refused, so no value lets a follow-up merge, act in another repository or cross the origin-reference boundary

Procedure skills

The procedure skills (review, fix-ci, github-actions, adr, descar, docs, promote-memory, programmatic-execution, design-brief-builder, decide, explain, red-team, resolve-conflicts, audit, jig, operator, orchestrate, priorities) detect what they need from the repository; set a field only when detection picks the wrong thing. programmatic-execution, red-team, audit, jig and operator read no field of their own (operator runs jig ask and jig send, whose own reads are in their sections of the README); audit checks all the others, and jig’s bug-report draft reads repository.remote and issue_tracker.team to know which of the repository’s names to replace. red-team reads a document’s kind from its frontmatter type: or its headings (--kind overrides) and takes the agent command for its fresh runs on the command line.

orchestrate adds no configuration fields. It uses the repository and host’s existing plan review surface, with chat review as the fallback, and keeps each topic’s record in an orchestration notebook, the host-local folder $JIG_HOME/orchestrate/<topic>/ (~/.jig/orchestrate/<topic>/ by default). The folder is named after the topic in lowercase Latin letters and digits joined by hyphens, accents dropped (a topic with none of these is refused), and holds state.md, the current state rewritten whole, and journal/YYYY-MM-DD.md, one append-only file a day (UTC). It is never written inside a Git working tree: when the notebook’s resolved destination lies in one (JIG_HOME there, or a symbolic link into one), the skill refuses the notebook and falls back to a plain file outside the repository. Nothing in it depends on the agent tool that writes it. Fresh filing sessions use the existing file_issue and issue_tracker settings; starting work on a dispatcher host uses dispatch.identity and the host’s configured start procedure. Missing start configuration is a question for the person, not an identity or command the session invents. Its procedure names the runtime fallbacks.

priorities reads no field of .config/jig.yaml. It reads the repository’s .config/priorities.yaml, the host’s weights file and the dispatcher’s newest ranking (Priorities), and asks work-batch’s eligibility mode, under that skill’s own settings, which issues may be batched.

FieldTypeWhen absentRead byWhat it does
adr.directoryfolder, relative to the rootDetected: the first existing of docs/adr, docs/adrs, doc/adr, docs/decisions, docs/architecture/decisions, doc/architecture/decisions, adr, decisions; none means no records yet, and decide and explain then use docs/adradr, review, decide, explain, docsWhere the decision records live. decide searches them for precedent, and decide and explain resolve a bare ADR-NNNN citation there when they check a sheet’s freshness; docs counts the folder as the project’s decision records when it plans missing documents. adr, review and docs require a configured folder to exist; decide and explain do not check, and find no records in a missing one
adr.rules_filepath, relative to the rootDetected: the one tracked adr-rules.yaml, adr-rules.yml, .adr-rules.yaml or adr-rules/rules.yaml (or .yml), outside test fixtures and templates; several matches are an erroradr, reviewThe machine-readable decision-rules catalog. A configured file must exist
descar.lint_commandshell command taking document pathsDetected: the repository’s copy of M4’s scar lint; else the scar lint the docs skill holdsdescarFinds review scars in documents. The repository commands chapter gives its invocation, input, answer, exits and deadline.
docs.rootfolder, relative to the rootDetected: the first existing of docs, doc, documentation; none means the repository has no docs tree, and the checks that need one are skippeddocsThe governed docs tree. A configured path must name an existing folder, not a file. Configured or detected, it must lie inside the repository once symbolic links are followed. Repository-only
docs.schemapath, relative to the repository rootDetected: the shallowest frontmatter-schema.yaml or .frontmatter-schema.yaml (or .yml) under the docs tree; none skips the frontmatter checkdocsThe frontmatter schema the documents are checked against. A configured path must name an existing file, not a folder. Configured or detected, it must lie inside the repository once symbolic links are followed. Repository-only
docs.stale_after_dayswhole number, 1 or more180docsA status: draft document whose last_updated is more than this many days old is reported as a stale draft (a warning)
docs.promoted_statusesnonempty list of distinct one-word status values[approved]docsThe statuses whose documents the scar lint holds to no review scars. A repository whose lifecycle ends in another status (a legal corpus that ends in active, say) lists it, with approved when both are in use; a document with any other status is reported as not scanned when it is named explicitly. The lint also reads the PROMOTED_STATUSES environment variable (space-separated), which wins over this field
docs.index.preamblepath, relative to the root, to a filenonedocsA file kept verbatim above the generated INDEX.md’s listing, after its title: a “start here” section. A configured path must name an existing file inside the repository. Repository-only
docs.index.descriptionsmapping of category name to one line of textnonedocsA line under a category’s heading in the generated index, by the category’s folder name ((root) for loose files). Wins over docs.index.descriptions_from_readme
docs.index.descriptions_from_readmetrue or falsefalsedocsA category with no configured description takes the description in the frontmatter of its folder’s README.md
docs.index.ordername, count, or a list of distinct category namesnamedocsThe order of the index’s categories: byte order of the name, most documents first, or the listed categories first in that order and the rest by name
docs.index.frontmattermapping of field to one line of text (or a list of words)none, the index has no frontmatterdocsFrontmatter written at the top of the generated index, so the index passes the frontmatter check like any page. last_updated is stamped with the sticky date and cannot be set here. With none of the docs.index.* fields the index is the bare listing
promote_memory.lint_commandshell command; {dir} and {file} stand for the memory folder and filenone: the check is done by handpromote-memoryChecks one agent memory against the repository. The repository commands chapter gives its invocation, input, answer, exits and deadline.
promote_memory.target_dirfolder, relative to the rootdocs/retrospectionpromote-memoryWhere promoted pages go, in YYYY/MM/ below it
fix_ci.regenerate_commandslist of shell commandsnone: the agent finds the commandfix-ciEach regenerates committed generated files a CI check compares; a list of commands. The repository commands chapter gives its invocation, input, answer, exits and deadline.
resolve_conflicts.generatedlist of {paths: [globs relative to the root], command: shell command}; globs match as the change-area catalog’s do (**, *, ?, {a,b}, [...])none: the change-area catalog’s generated[].outputs (when drive.change_areas_catalog is set), then the built-in lockfile table applyresolve-conflictsRebuilds files that are regenerated, never merged by hand, when they conflict. The repository’s .config/jig.yaml and catalog are read from the git index, so staged changes take effect; an in-repository JIG_OVERLAY is read the same way, while user and environment layers and configured paths outside the repository are read as they are. An index link leaving the repository is refused. Paths belonging to a migration sequence use its rule first. Other paths use the first matching entry here, then the catalog, then the built-in lockfile table. Unknown keys are refused. The repository commands chapter gives its invocation, input, answer, exits and deadline.
resolve_conflicts.sequenced_migrationslist of {directory, journal, snapshots?, command} with repository-relative paths and a shell commandempty list. A tracked legacy Drizzle meta/_journal.json identifies its directory and default snapshot template, with no regeneration commandresolve-conflictsProtects direct-child SQL migration files with a leading decimal sequence and an optional suffix starting with _, - or .. Use . for the root directory. The journal is an ordered JSON list of SQL filenames or legacy Drizzle’s entries with tag, idx and when. The integration journal’s entries stay at its start as committed, in their own order, and the staged migrations the integration side does not commit follow in sequence order; in a Drizzle journal, appended timestamps increase strictly and exceed every integration entry’s. Omit snapshots when the tool writes none. Each snapshot path contains {sequence} (including leading zeros) or {tag} (the filename stem). The command runs from the repository root after the migration sources are in place and receives the plan JSON on standard input. It rebuilds the required journal and snapshots while preserving integration snapshots. Explicit configuration overrides detection for that directory. Read from the same configuration layers as generated. The repository commands chapter describes the command contract.
resolve_conflicts.hotspot_min_mergeswhole number, 1 or more3resolve-conflictsThe history report (history.ts) names a path a conflict hotspot when it conflicted in at least this many of the merges it replayed in its range
resolve_conflicts.obligationslist of {check: nonempty text, command?: nonempty shell command}noneresolve-conflictsChecks the agent applies to the entire resolved staged diff, including auto-merged hunks. Optional commands run from the repository root during validation, only while every tracked file matches the staged tree; failure, or a command changing the staged tree or a tracked file (which also stops the commands after it), blocks completion and is included in the report. Text still requires agent inspection when a command passes. Unknown keys are refused. Each command has a 120-second deadline, overridden by the positive whole-second RESOLVE_CONFLICTS_COMMAND_TIMEOUT environment variable
github_actions.conventions_docpath, relative to the rootSearched for in the instructions and docs; else generic guidancegithub-actionsThe document describing the repository’s workflows and their conventions
design_brief.kitfolder, relative to the rootDetected: a tracked folder ending in design-kit or design_kitdesign-brief-builderThe design kit: voice, colours and type, rubric, component previews, logo
design_brief.design_languagepath, relative to the rootDetected: the first tracked *design-language*.md or *design-system*.mddesign-brief-builderThe written design canon
design_brief.prototypesfolder, relative to the rootnone: the agent asksdesign-brief-builderWhere finished design bundles land, one folder per flow
design_brief.handback.forbidden_termslist of literal strings[]design-brief-builderForbidden or retired text; the bundle README may extend it. Matching is case-insensitive
design_brief.handback.widthsnonempty list of distinct positive integer widths in pixelsrequired for handbackdesign-brief-builderViewport widths at which every bundle scenario is rendered and checked for horizontal overflow
design_brief.handback.rubricpath, relative to the rootrequired for handbackdesign-brief-builderThe consumer’s scoring rubric; must exist
design_brief.handback.scorecardpath, relative to the rootrequired for handbackdesign-brief-builderThe review scorecard; must exist, state one bar outcome and name the export base it reviewed
design_brief.handback.browser_executableexecutable path, relative to the root or absoluterequired for handbackdesign-brief-builderInstalled Chrome or Chromium used for headless rendering; a missing browser fails the checklist
sheets.repositoriesmap of repository name to folder, relative to the root or absolute; names are lowercase letters, digits, - and _, starting with a letternone: a citation qualified with a repository name (beta:ADR-0002) is refuseddecide, explainThe clones of the other repositories a sheet cites. A sheet qualifies such a citation with the name (beta:apps/api/auth.ts, beta:ADR-0002) and records the commit its facts were checked at in verifiedAt.repositories; the freshness guard compares the cited file at that commit with the clone’s working tree, finds that repository’s ADRs in the clone as it finds this repository’s when adr.directory is not set (the first candidate folder that exists, else docs/adr), and refuses a name with no entry here, no recorded commit, or a folder that is not the top of a git clone. A bare ADR-NNNN always means this repository. Where the clones sit differently on each machine, leave the name out of the repository file and set it in the user layer (~/.jig/jig.yaml, absolute paths): a name the repository file sets overrides the user layer’s
decide.policy_fileslist of paths, relative to the root[AGENTS.md]decideInstruction files whose ## sections are standing policy
decide.rules_directoryfolder, relative to the root.claude/rulesdecideConditional rules, one rule per .md file
decide.glossary_filepath, relative to the rootCONTEXT.mddecide, explainThe canonical vocabulary, as **Term**: lines each followed by an _Avoid_: line
decide.architect_agentagent nameA briefed general-purpose subagentdecideThe subagent that rules on a dilemma; a name the agent tool does not know falls back to the default
decide.escalation_labelslist of labelsnonedecideLabels added beside issue_tracker.labels.hitl and its facets when a call is escalated
explain.figure_build_commandshell command; the figure’s stem is appendednone: explainers have no figuresexplainBuilds one explainer figure. The repository commands chapter gives its invocation, input, answer, exits and deadline.

Each skill’s SKILL.md explains how its fields are used.

Environment variables

These are set per machine or per run, not committed:

VariableWhat it does
JIG_OVERLAYPath of the configuration file to read instead of the repository’s own
JIG_CONSUMER_ROOTThe repository root, instead of the nearest folder holding .git
JIG_HOMEThe folder holding the user layer’s jig.yaml and the host-local files beside it (the dispatcher’s dispatch.yaml, orchestration notebooks under orchestrate/), instead of ~/.jig
JIG_USER_LAYERoff leaves the user layer out (see configuration layers)
JIG_FORGE_BUDGEToff leaves the forge’s calls out of the machine’s budget record (see outbound_share), the gh client’s runs and the GraphQL requests sent over HTTPS to JIG_GITHUB_GRAPHQL_URL alike: nothing is admitted against it, nothing it answers is recorded, and gh api runs without --include; a fresh paged read, or a whole read that falls back, is then left to gh: one process under the whole-read bound (four times GH_CALL_TIMEOUT for a check-runs listing) and no page bound, while a listing read through the cache still goes a page at a time with the page bound. Unset, every call is governed
JIG_GITHUB_INSTALLATION_IDThe GitHub App installation the gh client’s installation token (ghs_) belongs to, a positive integer, set by whatever issues the token. GitHub counts an installation’s primary limits across all its tokens, and a token cannot name its own installation, so this declaration is what lets two tokens of one installation, a replacement after expiry included, share one record in the machine’s budget record (see outbound_share) and its hold. Unset or unreadable, the token shares the record every credential on the host whose owner is unknown shares. Read only for an installation token. A machine that works for several GitHub accounts needs no setting: a token or a client configuration directory per repository is its own credential, and a stored login whose client picks the account per repository has its owner asked per repository a call addresses (-R, a positional repository URL, a repos/<owner>/<repo> route, GH_REPO, else the working directory’s gh repo set-default remote or origin remote), with GH_REPO set for the question
JIG_AFTER_VERSION_IN_CI1 lets changelog.after_version run inside a CI job (CI, GITHUB_ACTIONS, GITLAB_CI, BUILDKITE, CIRCLECI, TF_BUILD or JENKINS_URL set); set it only in a job that holds no secret
JIG_CODE_STATS_COMMAND_TIMEOUT_SECSeconds code_stats.classify_command may run before it is stopped and the report fails; 300 by default
JIG_FIX_CI_LOG_COMMAND_TIMEOUT_SECSeconds ci.log_command may run for one commit status before it is stopped and the log read fails; 300 by default
JIG_DO_ITEM_PREFLIGHT_TIMEOUT_SECSeconds do_item.preflight_command may run before it is stopped and the claim is refused; 60 by default
JIG_FOLLOWUP_CHECK_TIMEOUT_SECSeconds the check command of a followup.arms entry may run before it is stopped and its arm recorded unread; 60 by default
JIG_AFTER_VERSION_TIMEOUT_SECSeconds changelog.after_version may run before it is stopped and the release fails; 1800 by default
JIG__<SECTION>__<FIELD>Sets one field for this run, over every file (see configuration layers)
LINEAR_API_KEY, LINEAR_API_TOKENCredentials for the Linear adapter
JIRA_EMAIL, JIRA_API_TOKENCredentials for the Jira adapter, sent as HTTP Basic authentication: an Atlassian account’s email address and an API token made for it. A token with scopes is used the same way, with issue_tracker.jira.api_base set, since Atlassian accepts it only through its API gateway. Used when neither of the two below is set
JIRA_BEARER_TOKENA token for the Jira adapter, sent as Authorization: Bearer: an OAuth 2.0 access token, or an API token with scopes, which Atlassian’s API gateway accepts this way as well as in the JIRA_EMAIL pair. Set issue_tracker.jira.api_base with it, since Atlassian accepts both only through its API gateway; on an Atlassian Cloud site without it the adapter refuses the token before any request. The adapter verifies the authenticated account through Jira’s myself endpoint before reading issues or searches, so the token needs the classic read:jira-user scope, or all of the granular read:application-role:jira, read:group:jira, read:user:jira and read:avatar:jira scopes, as well as the scopes its issue operations need. Add the applicable set before upgrading a token that previously only read issues. Wins over JIRA_TOKEN_COMMAND and the JIRA_EMAIL pair
JIRA_TOKEN_COMMANDA command that prints such a token, and nothing else, on its standard output, as gh auth token does, so a company’s credential broker or vault holds the token and the environment holds only the command. It is split into words at spaces, with quotes keeping a word whole, and run without a shell (name one, sh -c "...", if it needs one), from the home directory rather than the repository, so a program found by name is never the repository’s. The adapter verifies the authenticated account through Jira’s myself endpoint before reading issues or searches, so the token needs the classic read:jira-user scope, or all of the granular read:application-role:jira, read:group:jira, read:user:jira and read:avatar:jira scopes, as well as the scopes its issue operations need. The adapter runs it once per process, within 30 seconds, and keeps the token in memory; when Jira answers 401 it runs it once more and sends the request again once with the new token. If Jira refuses that replacement too, the process stops renewing the command and subsequent requests fail with credential guidance; restart the process after fixing the credential. A command that overruns either its own deadline or the request deadline is reported as unavailable and names JIRA_TOKEN_COMMAND; a caller cancellation remains a cancellation. A run that fails, prints nothing or more than a token, or overruns fails the request with an error naming the variable; the error shows the last line of the command’s error output, never what it printed on standard output, so keep a broker’s secrets off its error output. Wins over the JIRA_EMAIL pair
DRIVE_PR_BASE_BRANCH, DRIVE_PR_REVIEWER_APP, DRIVE_PR_REVIEWER_CHECK, DRIVE_PR_REVIEWER_EVIDENCE, DRIVE_PR_STICKY_MARKER, DRIVE_PR_SHA_MARKEROverride the matching field for one run
DRIVE_PR_CHURN_ROUNDSOverrides drive.churn_rounds for one run: 0, or a whole number from 2 to 12; any other value stops the round as INDETERMINATE
DRIVE_PR_ATTACHoff makes drive.ts drive the working tree as it stands, without attaching the pull request to it first (for a harness that prepares its own trees), and attach-pr.ts --place choose the tree without attaching; on or unset attaches (which tree drives a PR)
DRIVE_PR_HANDOFF_TELLS_REFUSEDSet by the driver, never by a person: 1 makes drive-state.ts handoff exit 76 (LEDGER_REFUSED_EXIT) when its guards refused the ledger write (a lost acquisition, a newer takeover claim, a ledger that is not the stopped driver’s) instead of 0, so the drive labels its pull request’s state only after a ledger write of its own; unset, a refused write exits 0 as a landed one does. A write that was attempted and did not land exits 75 (LEDGER_NOT_WRITTEN_EXIT) either way
DRIVE_PR_LEDGERoff makes drive.ts drive without the drive ledger on the pull request: no seeding from it, no check for another clone’s driver, no writes; on or unset uses it (where its state lives)
DRIVE_PR_POLICY_BASESet by the driver, never by a person: the commit of the pull request’s base branch whose .config/jig.yaml the driver and its passes read autonomy.max_level and autonomy.park_classes from (autonomy); empty when the base cannot be resolved, which fails closed. The driver overwrites any inherited value
DRIVE_PR_POLICY_BOUNDSet by the driver, never by a person, only when the pull request’s base is not the integration branch (a stacked layer): the integration branch’s commit whose policy bounds the base’s. Unset otherwise; the driver removes any inherited value
DRIVE_PR_STATE_DIRState root: rounds, locks and leases live in its database, state.sqlite, keyed by clone, and each clone’s log and kept files in its <clone-key>/ subdirectory. An inherited resolved clone directory is also accepted. A root holding a drive’s files directly refuses until they are relocated.
JIG_VERIFICATION_FIT_LOGWhere verification-fit verdicts are logged
DEV_DASHBOARD_DIROverrides fleet_health.snapshot_dir
JIG_REVIEW_TRIAGE_CONFIGThe review-triage file to read instead of .config/review-triage.yaml
JIG_GH_CACHE_DIRWhere cached GitHub answers are kept, which conditional requests revalidate; default ~/.cache/jig/gh-cache. drive-pr’s polls keep up to 256 entries there and stop reusing them after 7 days; a later cache read or write deletes expired entries. The comment pages a dispatch tick lists keep up to 1,024 in its comment-pages/ directory. Each prunes the entries least recently written or reused first (a repository-view answer reused within its time to live counts as used, as does a page or answer revalidated by a 304)
JIG_GH_CACHEoff disables that cache: those reads are then sent whole every time
GH_CALL_TIMEOUTSeconds one gh call may take; default 30. A drive reads a head’s check-runs listing a page at a time: each page has this long, and the whole listing four times this (with JIG_FORGE_BUDGET=off a fresh listing is paged by gh itself, under the whole-read bound only). Must be a positive whole number no greater than 2147483
JIG_MARKETPLACEThe marketplace jig upgrade (and tools/plugin/setup.ts) installs the plugin from in an agent tool that lacks it, instead of Jig’s repository; a tool registered from another source is then refused
JIG_SETUP_TIMEOUT_SECONDSSeconds one agent-tool command run by jig upgrade or jig doctor (and tools/plugin/setup.ts) may take before it is stopped; default 300
JIG_LOGHow much the scripts’ diagnostics say on standard error: error, warn (the default), info or debug. At debug a failing script also prints the stack of the failure and its causes, with the last 4,096 bytes of a failed command’s error output where the failure carries it (resolve-review-comments’ gh calls), and an error dropped on purpose is printed with the reason
JIG_LOG_FORMATtext (the default) writes <script>: <message>; json writes one JSON object per line with the time, level, script, message and fields
JIG_TRACE1 enables trace spans for drive passes, waits and commands; files are written under ~/.local/state/jig/traces/<date>/ and reap-state.ts reaps trace days older than 14 days
JIG_TRACE_FILEEnables tracing to this JSON lines file instead of the default trace directory; child processes inherit the same destination
TRACEPARENTCarries the active trace and parent span to child processes; set by the runtime when tracing is enabled
AWAIT_ROUND_CHECKS_MAX_AGESeconds a still-waiting read of a pull request’s checks may be reused while nothing on GitHub changed; default 300, 0 always reads
JIG_TURN_BUDGET, JIG_TURN_BUDGET_MARGIN, JIG_TURN_BUDGET_REFIREThe turn-budget hook’s cap (default 1000; 0 turns the hook off), the margin before it at which the hook warns (default 50), and how often it warns again (unset or 0: once more when half the margin remains)
JIG_TURN_BUDGET_STATE_DIRWhere the turn-budget hook keeps its per-session state; default jig-turn-budget under the temporary directory
JIG_LAUNCHER_ROLESet by the line, never by a person: command in the jig command’s script and wake for a woken dispatcher tick, so the launcher does not upgrade the plugin first; unset, the launcher upgrades first when the job is gc --scheduled or dispatch --apply (upgrade)
JIG_SCHEDULED_UPGRADESet by the line, never by a person: the launcher passes a timer’s job what its scheduled upgrade came to, a line of JSON of at most 8 KiB (its detail shortened to 2,000 characters), which the job writes into its receipt as upgrade; a line that does not read is recorded as a failed upgrade quoting it
JIG_STARTED_BYWhat started a dispatcher tick, which its receipt records as startedBy: the launcher sets it for a dispatch job only, to timer for a timer’s job or to its own role (command, wake), and Jig’s wake waiter sets wake; a launcher outside Jig that starts ticks may set its own name (up to 100 characters), which is kept. Unset, a tick that got a scheduled upgrade’s result (JIG_SCHEDULED_UPGRADE) records timer, and any other records none. The tick takes it out of its environment, so the sessions it launches do not carry it
JIG_UPGRADE_SCHEDULEDSet by the line, never by a person: 1 tells the installed copy’s jig upgrade --jobs-only that a timer’s job runs it, so it leaves a loaded launchd job’s file for the next jig upgrade a person runs
JIG_LAUNCHSet by the line, never by a person: the launch record a dispatched session runs under (the dispatcher’s wrapper sets it), or the driver a drive’s pass belongs to. While it is set, jig send refuses the commands that are a person’s
JIG_DISPATCHED_FROMSet by the line, never by a person: the launch record of the dispatched session that armed a drive, which a drive armed in a terminal tab does not run under. The driver hands it to every pass; what a pass reports as its launch stays JIG_LAUNCH
JIG_REFOCUS1 or 0 puts do-item’s intent-chain snapshot in the Refocus calibration’s on or off arm; unset, odd issue numbers are on
BASH_MAX_TIMEOUT_MSClaude Code’s own variable, not Jig’s: the longest timeout an agent may give a background command in an unattended session, 2 hours unless raised. Set it to 28800000 so a drive can outlast 2 hours (see the background time limit)
DRIVE_PR_* (others)Round limits, timeouts and repair budgets; listed in the drive-pr README
OthersA few knobs of a single skill, such as REFLECT_THRESHOLD of resolve-review-comments, are described where that skill’s SKILL.md uses them

clones (user file only)

Where this machine keeps a clone of another repository, so a session in one repository can arm the drive of a pull request in another (/jig:drive-pr owner/name#N, or the pull request’s URL). Only the user file (~/.jig/jig.yaml) or an environment variable may set it: a repository’s own file, shared by everyone who clones it, cannot know where this machine keeps anything, and refuses the field with an error naming it.

yaml
clones:
  example/api: ~/work/api
  example/web: /srv/checkouts/web
FieldTypeWhen absentRead byWhat it does
clonesmap of owner/name to a local clone path, absolute or starting with ~/No clone is known: arming another repository’s pull request prints the command to run in a checkout of itdrive-prThe drive is armed in that clone’s primary checkout, as for a pull request with no working tree: in the tree that holds the pull request, else in a new one under that repository’s gc.worktree_roots. The clone must be a checkout of the repository its key names. Keys compare without regard to case

upgrade (user file only)

Whether this machine’s timers keep the plugin current, and how often at most (automatic updates). Before collection’s run and each dispatcher tick, the job’s launcher runs jig upgrade --scheduled from the installed plugin copy; with no upgrade section it does, at most once an hour whichever timer fires first. Only the user file (~/.jig/jig.yaml, or $JIG_HOME/jig.yaml) sets it: it describes one machine, and a repository’s file or the environment is not read for it.

yaml
upgrade:
  every: 6h

upgrade: off (or false) opts the machine out, as does jig install --no-upgrade, which writes upgrade.enabled: false and keeps the section’s other settings. A section that does not read fails the timers’ upgrades and jig doctor’s upgrade check, naming the file; the jobs still run.

Setting in the user file’s upgrade sectionDefault / meaning
every1h; the shortest time between two scheduled upgrades, as a whole number of minutes, hours or days (30m, 1h, 2d). An attempt, whatever it came to, withholds the next one for this long: two timers firing within it upgrade once, and a failed upgrade, or one whose process died before it finished, is not tried again inside it. One still running withholds the next for as long as it runs. Read by jig upgrade --scheduled and jig doctor
enabledtrue; false opts the machine out, as upgrade: off does. Written by jig install --no-upgrade; read by jig upgrade --scheduled and jig doctor

The latest attempt is kept under ~/.local/state/jig/upgrade/: when it ran, what it came to and the process that made it. An attempt still running withholds the next one while its process lives, however long it takes. One whose process died before it finished (stopped at the launcher’s deadline, say) counts as a failed attempt: the next is withheld until every has passed since it started. A jig upgrade you run that succeeds counts as the interval’s upgrade too. A machine whose marketplace is pinned to a tag or another ref receives nothing, and a plugin Claude Code loads in place from a local marketplace folder is skipped; each says so in the job’s receipt.

gc

The resource collector reads repository declarations separately from machine policy. The audit uses the same declaration validator as jig gc. No shell command can be registered as a collection kind.

FieldTypeDefault / meaningRead by
gc.kindsdistinct string listEmpty; supported repository kinds: tool-state, scratch, worktreesaudit, gc
gc.worktree_rootsdistinct path listEmpty; roots containing the tool’s worktrees, relative to the repository or absolute. drive-pr creates the working tree for a pull request that has none under the first root. A root that does not exist on the machine that runs the audit is not reported: a repository names the roots of every machine it is worked on. The agent tool’s directory in the primary checkout (.claude/worktrees) is inspected whatever this lists, and needs no entry. The process opener’s clone-specific root under $JIG_HOME/worktrees is also derived and inspected whenever present, even after switching runtimesaudit, gc, drive-pr
gc.scratch_prefixesdistinct path listEmpty; path prefixes of scratch directory names, relative to the repository or absolute; a filesystem root is refusedaudit, gc
gc.regenerable_pathsdistinct literal relative path list[.fallow]; ignored paths that can be rebuilt, relative to each worktree. A path covers itself and its descendants only, never a similarly named sibling or a symbolic link. Trailing / is optional. No absolute paths, traversal, glob characters or .context/ content outside .context/scratch/; Git metadata is refused. An explicit list replaces the default; [] disables it. The receipt names each path with rule regenerable-pathaudit, gc

A collecting run fetches .config/jig.yaml from the remote URL and base branch recorded at install. It intersects that declaration with the confirmed kinds, roots, prefixes and regenerable paths. Changes in a checkout, environment overrides, a changed remote URL, and newly widened base declarations cannot grant deletion authority. A report reads the checkout and names that source. An uninstalled repository can be reported but cannot be collected. After adding regenerable paths, refresh the installed collector to confirm the widened bounds. Existing installations must also refresh after upgrading to a version that adds the default, even when their declaration does not change: older installed bounds deliberately exclude new deletion authority. The default .fallow covers the unused-code tool cache Jig’s gates create; an output such as dist needs an explicit declaration when it is safe to rebuild.

--kind scratch does not discover undeclared temporary directories. To inventory Jig’s test scopes, include scratch in gc.kinds and declare the system temporary directory plus the jig-test-tmp. name prefix in gc.scratch_prefixes (for example, /tmp/jig-test-tmp. on a host using /tmp). Refresh the installed collector after changing its bounds. Persistent test registrations permit collection only where they prove the scope’s holders gone. Unresolved child launches and legacy scratch remain retained. See test scratch for the ownership checks.

The machine’s test fixture registry admits at most 100,000 registrations by default. Set JIG_TEST_FIXTURE_REGISTRY_LIMIT to a positive safe integer to override the limit. Other values use the default. Installing the scheduled collector and dispatcher records the value from the installing shell, so set it there as well as for test runners and jig doctor, and every participant uses the same limit. jig upgrade keeps the value an installed job already recorded, so after changing the limit run jig install gc --yes and jig install dispatch --yes again from the shell that sets it. Every fixture writer on that host must use the admission check for the limit to apply across test runs.

jig doctor gc reports the registry count, the free inode share of the filesystem containing Jig’s state directory and any admission token that blocks collection and that gc cannot prove its holder gone. An inode is a filesystem record needed for each file or directory. An over-limit registry, less than 10% free inodes or an unprovable admission token fails its check and raises a host need in the dispatch dashboard. The inode check is skipped when the filesystem does not report an inode count. A scheduled collector that can only report an over-limit registry exits with a failure receipt.

The worktrees kind bounds each pull request lookup with GH_CALL_TIMEOUT, including lookups by branch, recorded pull request number and detached commit. A lookup that exceeds its deadline is reported as unavailable, so the tree is retained without verified pull request evidence.

The machine’s collection policy

These settings live only in the user file ($JIG_HOME/jig.yaml, default ~/.jig/jig.yaml); they cannot be set by a repository or environment override. Run jig install gc to review the proposed entry, then repeat with --yes to confirm it and install the scheduler (before jig is on PATH, run bun --no-env-file --config=<plugin>/gc/bunfig.toml <plugin>/jig.ts install gc from the installed plugin copy; see the jig command). Installation must run from the installed plugin copy, outside a Git checkout.

Setting in the user file’s gc sectionDefault / meaning
repositoriesEmpty; installer-written entries containing path, remote, remote_url, base_branch, and bounds (the confirmed declaration)
disabledEmpty; kinds the machine will skip, the machine kinds receipts and orca-terminals included; cannot enable undeclared repository kinds
idle_daysMapping of repository kind to idle guard, default 7 days; allowed range 7–365, so machine policy can only tighten the default
receiptsfalse; enable collection of old receipts
receipts_days30; positive days to retain receipts; each kind’s latest receipt is always kept
hour4; local hour (0–23) for the daily scheduled run
collect_day0; local weekday (Sunday 0 through Saturday 6) on which the daily run collects
min_free_bytes0, disabled; collect on other days when available space in the home filesystem falls below this threshold
archive_max_bytes67108864 (64 MiB); the most the one-time archive of one worktree’s ignored content may hold, for a worktree made before marking began (the collector’s README); 0 archives nothing, so that content keeps vetoing
orca.commandUnset; the absolute path of Orca’s command (orca, or orca-ide on Linux). When set, the worktrees kind tells worktrees Orca manages from plain ones and collects them through Orca (the collector’s README), and the machine kind orca-terminals closes idle run tabs
orca.terminal_idle_hours24; hours since a run tab’s last output (or its opening, when Orca reports no output time) before the orca-terminals kind may close it, and only while no command is running in it at collection time; a command that finished moments ago earns no further grace. Allowed range 24–8760, so machine policy can only lengthen the guard

The job records Bun’s executable, the installed command’s path, HOME, PATH, JIG_HOME, and any explicit TMPDIR, LOCK_ROOT or LOCK_NAME. jig upgrade keeps what the job records when it rewrites it for a new release; jig install gc --yes records them afresh. Collection uses the same machine-wide heavy-run lock as gate runs. Scheduled and child Bun invocations use the plugin’s trusted configuration and disable checkout environment files and preloads. Report-only runs also write receipts, under ~/.local/state/jig/gc/<date>/<run-id>.json. jig receipts gc lists them; jig receipts gc <date> lists a day and jig receipts gc <run-id> prints a run. Use jig gc --json for the receipt schema on standard output.

The available collectors and remaining rollout work are in the collector’s README.

dispatch

What the dispatcher (jig dispatch) starts for this repository: a program on the machine that runs the agent sessions, which looks at the tracker, the pull requests’ drive ledgers and the running sessions, and reports each stage that should be running and is not. It reads this section from the repository’s default branch as the forge holds it, fresh at every run, never from a checkout: a change to it takes effect once it merges, and a section that cannot be read plans nothing for the repository. What a run may start is the machine’s to say, in the machine’s dispatch file; see the plugin’s README.

A configuration the tick refuses fails the repository’s every turn on the host until a person fixes it, so check it before it merges, in the repository’s CI. jig dispatch check [--repo <path>] reads the checkout’s .config/jig.yaml with the tick’s own readers: this section, the tracker issue_tracker names with its issue facets (resolved against the checkout’s label taxonomy, as the tick resolves them against the host’s checkout, which holds the merged taxonomy only once the host has updated), and the change-area catalog drive.change_areas_catalog names. It prints each reading the tick would refuse, with the tick’s own message, and exits 1; it exits 0 when the tick reads the configuration whole. Where a message names a file, the check names it by its path in the checkout and the tick by the repository and branch it read it from. Run on a pull request’s tree, it checks what the default branch will hold once the pull request merges; the label taxonomy is the exception a host must receive too, since the tick reads it from the host’s own checkout. The command refuses a --repo path (or an implicit root) that is not a git checkout, reads only files inside it, and refuses a file larger than the forge’s inline content limit (1 MiB, measured on the committed blob), which the tick could not read either; the label taxonomy must be a path inside the checkout. It reads files only and sends nothing to the tracker or the forge, so what only they can say (a field the organization lacks, the store detection finds for a facet) is still the tick’s to find. The readers take the environment the tick takes: a dispatch host that sets JIRA_ALLOWED_HOSTS for a Jira site outside Atlassian Cloud needs the same value in the CI job. The plugin runs from any copy of its directory with Bun alone, so a CI job can run a release the hosts run that includes the command. Name the Bun version in the workflow itself, since the action otherwise reads it from the checkout under review. Run Bun from the plugin’s own copy, so the checkout under review cannot supply its Bun configuration or preloads, and name the checkout with --repo:

yaml
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
  with:
    bun-version: "X.Y.Z" # replace with the Bun version the chosen Jig release pins (`packageManager` in its root `package.json`); set it here, never from the checkout under review
- name: Check what the dispatcher reads
  env:
    JIG_VERSION: "X.Y.Z" # replace with a plugin version that includes `dispatch check`, the one the dispatch hosts run
  run: |
    git clone --quiet --depth 1 --branch "v$JIG_VERSION" https://github.com/jig-harness/jig "$RUNNER_TEMP/jig"
    cd "$RUNNER_TEMP/jig"
    bun --no-env-file plugin/jig.ts dispatch check --repo "$GITHUB_WORKSPACE"
FieldTypeDefault / meaningRead by
dispatch.identitystring: a GitHub login; a Linear user’s email or display name; or, on Jira, an Atlassian account id, or an email or display name that matches exactly one user (more or fewer matches are refused)None: the repository has no pickups. A factory-inherited do-item claim requires the identity on the default branch and refuses when it is absent or unreadabledispatch, do-item
dispatch.personforge loginNone: a parked question routes to the owner of its anchor’s change area, else this login when configured, else the pull request’s author. Only owners that are forge logins are recipients; other owner values are ignored. Overlapping areas with different person owners and unreadable catalogs use the fallback. This routes the question and changes no answer permissions; dispatch and ask read the recorded persondrive-pr
dispatch.statesnonempty list of canonical states, without in_progress (the state do-item’s claim moves an item to), pr_open, blocked, or a state whose configured tracker name shares pr_open’s name[todo]dispatch
dispatch.followup_commandstring/jig:followup, the plugin’s followup skill, on a host whose machine file lists followup among the repository’s stages; on any other host, none: no follow-ups, and no merged pull request read for them. A repository may name another command instead: the dispatcher hands it to the agent as the first line of the pass’s prompt, so it can be a skill in the repository, in the user’s home or from another plugin, or a procedure the agent carries out from a script or a prompt file the repository keeps; it claims the follow-up with jig dispatch marker as the plugin’s README saysdispatch
dispatch.stalled_afterduration (90s, 30m, 1h)30m: a claimed item (assigned to identity in in_progress, or in a distinctly named pr_open state) with no running session for longer is a stalled pickup: reported, never started afresh, unless stalled_relaunch relaunches it in its own tree. A served person’s item in those states is watched only when a pickup of this host claimed it: the rest is their own work. A pr_open state that shares a name with in_review is not watched, because that name also holds merged itemsdispatch
dispatch.stalled_scopeclaimed, assignedclaimed: the stall watch (stalled_after) reads one of identity’s claimed items as a pickup only when a launch record of this host took it, or a trusted claim marker (do_item.claim_marker) is on it; any other is quiet, its idle clock never starts. assigned watches every item assigned to identity in those states, for a repository whose identity nobody else uses. Each item’s claim markers are read once per change of the item. A double claim is reported either waydispatch
dispatch.stalled_relaunchfinish-once, neverfinish-once: a stalled pickup whose latest pass, a headless pickup of one item, left unpushed commits or uncommitted edits in its tree, or recorded no result, is relaunched once per item and head in that same tree, never a fresh one, with a fixed prompt to commit and push the work and record the pickup’s result; it makes no second claim. A second stall at the same head, a tree no open workspace on the host holds, or a batch’s pickup is reported as a stall for a person. A pass of one item stopped by a fault of its host rather than of its work (its result or exit could not be written, the question it stopped on reports space or inodes run out or a file system or state directory that cannot be written, or its closing report gives the cause environment and it asked nothing else) is relaunched in its tree to resume the pickup, whatever its tree holds, as soon as it is idle and the host’s health check passes, without waiting for stalled_after, and asks no person; while the check fails it is held with the fault named, as every relaunch waits. Such a pass that never claimed its item leaves the item to be picked up afresh once the check passes, whatever this setting says, since that starts no second implementer. A relaunch or fresh pickup that stops on a host fault again is not restarted a second time: it is one need, for the steward or a person to diagnose. A pass that recorded done handed its item on and is never relaunched, and neither is one that left a question for a person about its work (a trailing question, a closing-report question or a failed result’s decision): that waits for the person’s answer, whether or not it recorded a result or has unpushed work. Untracked files do not count as work. never relaunches nothingdispatch
dispatch.missing_priorityhold, starthold: an item with no priority, assigned or from the ready pool (dispatch.pool), which the queue would place after every low-priority item, is not started. The line lists it in its queue with the priority it lacks, and the next tick ranks and starts it once a person sets one on the item, or, for an assigned item on a host that runs the steward, the steward’s facet record fills it with a comment saying why. A blocker pulled forward for another item starts whatever its priority, since the item it blocks carries the rank, and so does an item whose tracker holds a priority the configuration maps to none of Jig’s. A Jira priority no issue_tracker.jira.priorities list names is not the missing-priority case: the item is treated as ranked, with its priority placing it after every listed one, so list every priority the project uses there to order its items; an item with no priority at all is the one held. start starts an item with no priority, ranked after every low-priority one. Either way, an item with no priority never joins a fixed batch of served items (work_batch)dispatch, work-batch
dispatch.blocked_afterduration30m: a session the dispatcher started that its runtime reports waiting (on a question or a permission prompt) for longer is reported; it keeps its slotdispatch
dispatch.drive_rounds_flatpositive whole number3: a drive the dispatcher launched drifts when its unresolved review threads at the latest round the dispatcher recorded are not below the count this many recorded rounds earlierdispatch
dispatch.pickup_withinduration2h: a pickup the dispatcher launched that has opened no pull request by then driftsdispatch
dispatch.pickup_deadlineduration3h: the deadline a pickup’s headless do-item pass runs under; the wrapper stops the pass when it passes, as a follow-up’s pass is stopped at the pass deadline. An implementation outruns a review pass, so a pickup has a deadline of its owndispatch
dispatch.allowed_providerslist of provider names (lowercase letters, digits and dashes), each onceNone: an omitted or null setting keeps the default, its Claude and OpenAI subscription accounts only, while an empty list [] allows no provider and every account is refused. The model providers this repository’s code and tracker text may be sent to, spelled as a provider account’s provider is, with anthropic for Claude Code’s subscription accounts and openai for Codex’s. Read with the rest of this section from the default branch, so a checkout, a pull request’s branch, the user file and the environment cannot set or widen it, and the machine file cannot add a provider it lacks. Before every launch that sends the repository’s text to a provider (a pickup, a re-arm or takeover, a follow-up, a steward pass), the dispatcher checks the chosen account’s provider against it: an account it refuses is passed over for the next one (a takeover whose replaced account still serves the stage is the exception: it stays bound to that account and waits when the list refuses it), and with none left the launch starts nothing, reserves nothing and is reported with the reason provider-not-allowed (a takeover bound to its replaced account whose launch weight is zero reports the weight blocker only), naming the repository, the account and the provider; no need is raised per launch. A provider account is never admitted by an absent list, even one whose provider is anthropic or openai, and a list that leaves out anthropic keeps the repository off its Claude subscription accounts too. A provider that routes onward (OpenRouter forwards to the model’s own provider) is allowed by the name the list holdsdispatch
dispatch.epic_widthretiredAccepted with any value and ignored. The dispatch receipt points to dispatch.overlap. For one child at a time, use execution plan dependency edges or a serialized areadispatch
dispatch.overlap.max_per_filewhole number, 0 or more4: the overlap bound. A planned pickup is in tier 3 when starting it would put more than this many pieces of work in flight (open pull requests and pickups with no pull request yet) that change one of its files; only files count, never a directory or an area, a quiet pull request (quiet_after) does not, nor does an ignored or generated path. 0 turns the bound off. The tick tries tier 3 after tiers 1 and 2, and promotes an aged tier-3 pickup ahead of new tier-1 workdispatch
dispatch.overlap.patiencemapping of urgent, high, medium, low and none to a duration, or 0urgent 0, high 30m, medium 2h, low and none 6h: how long a planned pickup of that priority that overlaps the work in flight waits, for each conflict resolution round it is expected to cause, before it returns to tier 1, counted from the first tick that put it in tier 2 or 3 (the state database’s overlap_waits). A key left out keeps its defaultdispatch
dispatch.overlap.file_ratenumber from 0 to 10.5: a file’s chance of a conflict before it merges while fewer than 5 merged pull requests that changed it were observed, or while the repository’s conflict rates are missing or staledispatch
dispatch.overlap.area_ratenumber from 0 to 10.2: the chance counted for the one unit that every directory or area match holding no file match makes together, the weaker predictiondispatch
dispatch.overlap.unknown_costnumber from 0 to 1000.5: the overlap cost of a pickup whose footprint is unknown (no footprint record and no area label, or a footprint that did not read), counted once whatever is in flight, so known work that collides with nothing comes firstdispatch
dispatch.overlap.ignorelist of path globsNone: the paths, beside those the change-area catalog marks generated (generated[].outputs), that count toward neither the overlap cost nor the bound, such as a file every pull request appends todispatch
dispatch.overlap.quiet_afterduration336h (14 days): an open pull request not updated for this long counts toward the overlap cost but not toward the bounddispatch
dispatch.overlap.bound_patienceduration24h: a pickup that has waited in tier 3 longer than this is promoted to tier 1, ahead of every pickup that has not, the longest waiter first, until it starts or is no longer wanteddispatch
dispatch.followup_withinduration1h: a follow-up the dispatcher launched that has not ended by then drifts; and a follow-up whose passes record waits --reason pending (an arm still pending) is notified as a failed follow-up naming the arm once a pass still finds it pending this long after the first pass that found that arm so (a pass naming newer release tags or a newer deploy run starts the window again, up to three windows after the run’s first pending pass), unless the release tags the arm names all exist and the deploy runs it links to have all finished, none cancelled, when the tick reads them again, within 15 minutes of the pass’s end, which runs the follow-up once moredispatch
dispatch.followup_stale_afterduration24h: a follow-up claim no run will finish (a person’s run’s marker not marked done, or another host’s with no answer) that is older than this, with no session joined to its pull request, is released: the host that owns the repository deletes the marker, once per pull request, and the follow-up starts again. A claim on it that goes stale again after that is notified to a person, never released twicedispatch
dispatch.followup_routinelist of local-leftover, person-owed, drafted-items, each onceEvery class: the routine question classes a follow-up’s pass may settle unattended, with the class’s standing answer. A class left out is not offered to the pass, its unattended rule is left out of the pass’s prompt (with drafted-items left out, the pass asks before it files the items it drafted), and a question tagged with it is a person’s, notified and never run again. Routine local housekeeping is an exception: it remains periodic cleanup rather than a question. The classes, their coverage and their answers are the dispatcher’s; this only selects among them, and a class it does not list is refuseddispatch
dispatch.notices_lingerduration, or 0s1h: the repository’s notices workspace, once read, is removed this long after the first tick that finds it read; 0s removes it at that tick. An unread one is removed once every cause it carries is gonedispatch
dispatch.notices_branchbranch name, with no spaceNone: every notification for the repository goes to its notices workspace. A branch names the workspace a person watches instead: every notification goes to the workspace on that branch, never to the one joined to the pull request or item. The dispatcher never opens or removes it, and a notification waits, reported, while no workspace on it is open or its comment is a person’s. Naming jig-dispatch-notices, the notices workspace’s own branch, is the same as naming nonedispatch
dispatch.renotify_afterduration, or 0s24h: a notification whose cause still stands this long after it was last sent is sent again, saying since when it has waited, until the cause goes. 0s sends each one oncedispatch
dispatch.reviewer_failures_before_escalationpositive whole number3: how many times a drive can stop on the same pull request head after the configured reviewer says it did not complete the review. At that count the dispatcher raises one need naming the reviewer and holds automatic re-arms until the reviewer reviews that head or the head changesdispatch
dispatch.labels.enabledtrue or falsefalse: no label is read or written. true turns the pull request state labels on (below), for every writer (the drive, the follow-up through jig dispatch marker and the dispatcher’s wrapper, and the dispatcher’s tick): a repository with no dispatcher turns them on here toodispatch, drive-pr
dispatch.labels.prefixstring of at most 35 characters, with no comma and no space at either endjig:: put before every label name (jig:driving, jig:hold). A repository whose label taxonomy has a convention of its own picks one that fits itdispatch, drive-pr
dispatch.labels.only_labeledtrue or falsefalse: every open pull request is read for a drive ledger. true limits the dispatcher to the pull requests that carry a label of the set: one that carries none is never read, re-armed or followed up. A drive labels its own pull request (driving once it arms), so a drive a person arms by hand comes into the dispatcher’s scope with its first label, and the dispatcher re-arms, re-drives and follows it up from then on; a person keeps one out with hold. Refused unless enabled is truedispatch
dispatch.adopt.enabledtrue or falsefalse: a pull request with no drive ledger is not adopted by its author; its first drive starts when a person labels it drive, arms it by hand, or when a completed process pickup arms its own same-repository pull request (the pickup handoff is closed to a listed bot’s pull request by adopt.trusted_automation: false). true turns the adoption rule on (below). Refused beside labels.only_labeled: truedispatch
dispatch.adopt.authorsnonempty list of forge logins (a GitHub App’s as <name>[bot])The login the dispatcher reads the forge as, the one the host’s sessions open pull requests under: the authors whose pull requests the rule adoptsdispatch
dispatch.adopt.withinduration168h (a week): how recently a pull request must have been updated for the rule to adopt itdispatch
dispatch.adopt.trusted_automationtrue or falsetrue: the rule can adopt same-repository pull requests from bots listed in pull_requests.trusted_automation. Set false to require a manual drive or rearm for those bots, including bots also named in adopt.authorsdispatch
dispatch.pool.statesnonempty list of canonical states, under the same restrictions as dispatch.statesNone: no ready pool. Set, the unassigned open items in these states (inside issue_tracker.jira.pool_issue_types on Jira) are pickups too, when a person who can write to the repository made each ready (below). Refused without dispatch.identity and without do_item.claim_marker: truedispatch

A repository whose lane is a ready pool (validated items left unassigned for whoever takes them first) sets dispatch.pool.states instead of assigning each item to identity. An unassigned open item in one of those states is a pickup when the latest move into its state was made by a person who can write to the repository, by the same rule as an assignment below; an item that was created in the state counts as moved there by its creator. On GitHub that move is the latest effective transition into the state the issue is in now (the state its furthest-along state label gives): the labelling that put that label in force, the removal of a label that exposed it, or a reopening; on a board, the newest change of the Status field to the state’s option, a project workflow’s never trusted, and an item with no option is not picked up. An item made ready by anyone else, or whose mover cannot be read, is shown in the queue with why and never planned. The holds a served item meets (hitl, manual-ops, jig:hold) and the repository labels apply too, and an item one of whose blockers (a blocked_by relation; on Jira, any link type issue_tracker.jira.link_types names for it) is open, or cannot be read, waits, its queue row naming the blocker, until that blocker closes. The pool’s items are ranked by the queue’s rules after the items assigned to identity. The pickup’s claim assigns the item to identity, so the pool requires the claim marker (do_item.claim_marker), which decides between hosts that take the same item, and the claim’s other start rules (do_item.preflight_command, do_item.claim_from) apply as to any claim.

An item is a pickup when it is assigned to identity and in one of states, and the person who made that assignment can write to the repository (GitHub: the one issue_tracker.github.repository names, which is the dispatched repository unless that field says otherwise), is a non-guest member of the team (Linear), or is a person’s Atlassian account, not a guest, that can be assigned issues in the project (Jira); an item assigned by anyone else is reported and never planned. On Jira an app’s account, Jira Automation’s own included, is never trusted, so a Jira Automation rule that assigns an item starts a pickup only when it runs as a person. The sessions dispatched for a Jira repository run with the Jira credential of the account identity names: its JIRA_BEARER_TOKEN, its JIRA_TOKEN_COMMAND, or its JIRA_EMAIL and JIRA_API_TOKEN. A dispatched do-item session claims its item with that identity’s credentials (assigned to it, moved to in_progress), so the tick then watches the item among the claimed ones: one more than one running session joins to is a double claim, and one idle past stalled_after a stalled pickup; both are reported and nothing is started for them. A pickup whose session ended without claiming the item is not started again until the item leaves the dispatch states or its assignment for one run and comes back, or a person answers the need it raises (pick it up again, or leave it); a batch pickup that ended after claiming some of its members holds only those, so the members it never claimed are wanted again at once; one that ended on a question holds the members the question names, and releases the unclaimed rest at once, whether or not it claimed any. A question that names no member is about the whole batch: it is one need, on the batch’s anchor, the other members wait on it with no need of their own, and answering it releases every member the pass never claimed. A person’s label (jig:hold, the human-in-the-loop or manual-operations label) that holds the item, in a served person’s queue or the ready pool, while it is not claimed releases its record too: once the label is off, the item is picked up again, unless its pickup recorded done, which a hold never releases. A pull request merged since the follow-up stage’s start wants followup_command (/jig:followup where the repository names none and the host runs the stage). That start (followup_since) is the machine’s, not the repository’s: jig dispatch --followup-since <date> sets it, and otherwise each run keeps the start the previous run’s receipt recorded (the first run starts it at its own time), unless the machine file’s entry for the repository names one.

The expectation fields (drive_rounds_flat, pickup_within and followup_within) govern the stages’ expectations. A stage outside its expectation is reported as drifting, and, where the machine file enables notify and the run applies, notified once and written to the outcome log (a run that only reports writes no row for it); the dispatcher never acts on drift, and never changes these values itself: a class that keeps recurring is recorded as a reflection finding where reflection is on, and the change is a person’s, through review-reflections (see the plugin’s README).

The pull request state labels (dispatch.labels) show where each driven pull request stands, where a person sees it from any forge client, and take commands from a person. They are written by the drives, the follow-ups and the dispatcher, wherever each runs: a repository that drives pull requests with no dispatcher installed gets them too. The pull-request labels chapter gives the state and command labels, their writers and their meanings. Read it when choosing labels for a forge client or automation; the settings here choose whether those labels are used and what prefix they carry.

Beside the set, the dispatcher keeps marker labels that carry no prefix, on every pull request it reads. None is a label of the set, so none puts a pull request in scope under only_labeled:

LabelWho writes itMeaning
manual-ops (the repository’s issue_tracker.labels.manual_ops)the dispatcherthe pull request owes steps a person takes outside the code: its description’s ## Out-of-tree follow-ups section lists a step not yet checked off. Set from the description at every run, on open pull requests and on the merged ones the run reads (those merged since the follow-up stage’s start, read only where followup_command is set or the host runs the repository’s followup stage): one that lists none, or only the explicit “None”, loses it, so a label added or removed by hand is corrected. A merged pull request keeps it until every step is checked off or its follow-up is done, which reports each step done or filed; one whose follow-up the run cannot place (its markers do not read) keeps the label exactly as it is
automationthe dispatchera bot or a workflow opened the pull request. Put on a bot’s pull request that carries no label of the automation: family, unless the bot is one of the host’s own authors (below), which a repository’s workflows apply to say which job opened it (automation:docs-sync); never put on a person’s, and never removed, nor is any automation: label

A pull request that carries automation or an automation: label, or that a bot opened, is an automation pull request, except a bot’s that is one of the host’s own authors (dispatch.adopt.authors where the adoption rule is on, else the login the dispatcher reads the forge as): that bot is the identity the host’s own sessions work under, and its pull request is an automation pull request only when it carries an automation label. The dispatcher drives an automation pull request only while it needs work: a check on its head failed (FAILURE, ERROR, TIMED_OUT or a run that failed to start; a run cancelled on a superseded head or one waiting for a person’s approval is no failure), it conflicts with its base, or a review thread is unresolved. That holds for its adoption (below) and for every re-drive, takeover and re-arm the dispatcher would start of itself, a converged drive whose head moved among them: a healthy one is reported and left for a person to merge, unless pull_requests.trusted_automation lists the bot that opened it, which is driven to convergence. A person’s jig:drive label or bound jig send … rearm request still starts one.

A serialized change area (serialize: true on an area of the change-area catalog that drive.change_areas_catalog names, read from the default branch) holds every dispatched pull request that touches it but one: the one closest to merge, which the dispatcher drives as any other. The rest get no re-arm, takeover or re-drive while they wait, are reported as held: serialized behind #N in <area> (and, with the dispatch labels on, carry jig:held), and each hold’s start and end is an event row in the outcome log, the end with how long it lasted. The order is mechanical, from the ledger and the forge: converged and mergeable first, then a drive in progress, then the fewest unresolved review threads, then the most rounds, then the oldest. When the leader merges or stops touching the area, the next run promotes the next. A pull request in two serialized areas waits unless it leads both. Only the dispatcher’s own launches wait: a drive a person arms on a held pull request is not stopped, and the run reports that the area has two drives. A pull request whose files, threads or ledger do not read this run, or a catalog that does not read, leaves its group unplaced for the run, with no re-arm and no label written, and the next run reads it again.

The ledger is the truth, and one projection maps it to the state label, which every writer shares (shared/pr-labels/). The pull-request labels chapter gives the states each writer owns; the drive exits chapter gives the stops the dispatcher reads to decide whether to re-arm a drive, re-drive its pull request or wait for a person.

The same projection has one output on the tracker where the repository names issue_tracker.states.blocked: each item the pull request links goes to blocked while its state label is jig:parked, and back to the state it left once the label is jig:driving, jig:converged or jig:stale (issue_tracker.states says what it writes). The drive moves them when it writes its own label, and the dispatcher’s --apply run corrects them for each managed pull request it writes labels for, after the ledger re-read below, leaving a pull request serialization holds; each move is a blocked line of the run’s receipt, and a refused one is tried again at the next run. A run without --apply reads nothing from the tracker.

A follow-up writes jig:followed-up or jig:followup-failed when it ends, whoever runs it: the dispatcher’s wrapper once the pass’s exit is recorded, and a person’s run through jig dispatch marker done or jig dispatch marker failed (which leaves the run’s marker claiming the follow-up, and exits 1 when its label is not written, since nothing else records that failure; with the labels off it says it recorded nothing).

Every writer reads dispatch.labels from the repository’s default branch, as the dispatcher’s tick and the label setup do, never from a checkout’s copy, so a pull request that changes the prefix does not get a state label under each. A drive’s and a follow-up’s write follows only a ledger or an end it wrote itself (a ledger write the guards refused, such as one a newer takeover claim stopped, gets no label), writes in one forge call only where the labels disagree, never writes jig:stale or jig:held, and is best effort (a drive also leaves a pull request carrying jig:hold or jig:held as it is): a refused write is one line on the drive’s or the command’s output and never changes the drive’s exit; a dispatcher’s next run corrects it where one runs, and otherwise jig dispatch labels --yes creates a missing label, or a person sets it by hand.

Each --apply run of the dispatcher sets each managed pull request’s state label from its ledger again (jig:held from the serialized areas, a merged pull request’s from its follow-up’s end) and each marker label from the pull request itself, one forge call per pull request whose state label disagrees and one whose marker labels do (so a marker label the repository lacks never holds a state back), so a state label a person changed comes back at the next run, and no writer ever reads a state label to decide what to start. Just before a state write the run reads the pull request’s ledger again and leaves the pull request to a later run when the ledger changed since it read it, so a drive’s label written for a newer ledger is not replaced from the older one the run planned from. A run without --apply, or for a repository the machine file does not list, writes nothing and reports what it would write. A write the forge refuses is reported and tried again at the next run; it does not fail the run. A write refused for a label of the set or a marker label the repository does not have yet creates the label as jig dispatch labels --yes does and writes again in the same run; a create the forge refuses is counted once for the repository, keyed by the label (label create <name> in the failure ledger), so past failures.notify_after a person is told once, with the command that creates it, and the writes that add it wait while it backs off. With only_labeled off, a drive a person armed by hand on a pull request with no label gets its label from the drive itself.

The labels should exist before anything writes them, and only the dispatcher’s run creates a missing one: setting them up is a one-time step,

sh
jig dispatch labels [--repo <path>]... [--yes]

which installs no job and needs no machine file. For each repository whose dispatch.labels (read from its default branch) is on it lists the labels of the set it lacks, with the marker labels, and the labels of the set it has whose description or color is not the one this release gives them, as when a release changes what a label means or settles its colors; with --yes it names each one it created or updated and lists, each with the gh label create or gh label edit command, those the signed-in account may not create or edit, for a person who may. An update sets only what differs, so every repository that installed the labels earlier comes to this release’s colors; a marker label’s description and color, the repository’s own, are never compared. A state that signals a problem (jig:parked, jig:followup-failed) has a red-to-orange color no other label of the set shares, and green is jig:converged’s alone. jig install dispatch --repo <path> --yes does the same beside the dispatcher’s timer.

An optional workflow clears jig:converged when the head moves, without waiting for a run: copy drive-pr’s templates/github/state-labels.yml to .github/workflows/, set its PREFIX to dispatch.labels.prefix, and on each push to a pull request carrying jig:converged it replaces the label with jig:stale; a pull request without jig:converged is left as it is. It runs on pull_request_target with a token that may write pull request labels, and checks out and runs nothing from the pull request.

The adoption rule (dispatch.adopt) drives a repository’s own recent pull requests without anyone labelling them. With it on, an open pull request with no drive ledger is armed as if a person had put jig:drive on it when its author is one of adopt.authors (by default the login the dispatcher reads the forge as, which is the identity the host’s sessions open pull requests under) and it was updated within adopt.within. A draft is adopted like any other, since a drive marks its pull request ready. A bot’s pull request (a dependency update, say) is adopted only when authors names the bot or pull_requests.trusted_automation lists it, and one carrying jig:hold never is. Set adopt.trusted_automation: false to leave starts and restarts for the listed bots to a person, including those also named in adopt.authors. This restart rule applies even with adoption off. An automation pull request (above) is adopted only while it needs work, except a listed bot’s, which is driven while healthy too; a healthy one is otherwise left for a person to merge, and jig:drive still drives one on a person’s word. A bot the rule names is the host’s own identity, so its pull requests are adopted as any own pull request unless they carry an automation label. A check that failed on the CI service’s infrastructure is re-run by the drive rather than repaired. From there the drive label’s rules apply unchanged: armed once per head commit, on an admitted account, behind a serialized area’s hold, and a drive a person stopped is never re-armed, since its ledger records the stop. Each run’s report names every pull request the rule adopted, with its author, its last update and the window, and the forge line counts them. It needs labels.enabled, since the hold label is read only with the labels on; under labels.only_labeled it is refused, since a pull request with no label of the set is never read.

The machine’s dispatch file

The steward’s hourly cap is shared across the host’s repositories. Missing field writes re-read the field immediately before updating it and preserve values found nonempty. A simultaneous external edit can still race these separate tracker requests; see the steward’s concurrency limit.

What this machine dispatches, and on whose accounts, lives only in $JIG_HOME/dispatch.yaml (default ~/.jig/dispatch.yaml); a repository cannot set it, and environment variables cannot override settings inside it. JIG_HOME selects the directory that contains it. jig dispatch --apply, and the timer jig install dispatch writes, start only what this file enables; a run without --apply reads it for the repositories to report on, and works without it. The file is also the dispatcher’s opt-in: jig install with no component named installs its timer only once the file exists. An unknown key anywhere in the file is refused.

yaml
repositories:
  - path: /home/me/dev/web          # absolute; ~/ is expanded
    stages: [rearm]                  # rearm, pickup, followup, notify, steer, steward
    followup_since: 2026-10-30T00:00:00Z
    owner: true                      # false on every other host that lists it
accounts:
  - name: work
    vendor: claude
    config_dir: /home/me/.claude-work
    identity: me@example.com
    max_per_account: 2
    # stages: [pickup, followup]     # the launching stages it serves; every one when left out
  - name: router                     # a provider account: the host's own key with a model provider
    kind: provider
    harness: claude-code             # the program its passes run in: claude-code or codex
    provider: openrouter             # as a repository's dispatch.allowed_providers spells it
    base_url: https://openrouter.ai/api
    credential: op://Jig/router/credential   # a reference, never the key
    billing: pay-per-token           # or flat-rate, which takes no spend_cap
    spend_cap: {daily: "20.00", per_run: "2.50", timezone: UTC}
    stages: [rearm]
credential_command: [op, read, --no-newline]   # prints a provider account's credential for its reference
credential_timeout: 10s
credential_env: [OP_SERVICE_ACCOUNT_TOKEN]   # the host's variables that command needs; no pass gets them
provider_hosts:                      # hosts a base_url may name beyond the provider's own API
  openrouter: [llm-proxy.internal.example]
serve:
  - name: maintainer
    forge: [maintainer-login, maintainer-work-login]
    tracker: { github: maintainer-login, linear: maintainer@example.com }
interval: 5m
wall_backoff: 1h
runtime: orca
runtime_timeout: 1m
opens_per_tick: 4
followup_opens_per_tick: 2          # the follow-ups' own opens, beside opens_per_tick
followup_concurrency: 2             # follow-up passes running at once on this host
receipts_days: 30
unclaimed_after: 15m                # a started launch no wrapper claimed by then needs a person
failures:
  backoff: 2m                       # the wait after an action's second failure in a row, doubled after each one
  backoff_max: 1h
  notify_after: 3                   # failures in a row at which a person is told
  rerun_died: 1                     # 0: no follow-up runs again after a death or an unwritten result
  group: cause                      # this host's own failures told once per cause; scope: once per scope
dashboard:
  listen: 100.64.0.7:8765           # jig dispatch dashboard; private or loopback only
  # require_token: false            # only with a loopback listen: a front authenticates
  # allowed_hosts: [host.example.ts.net]  # names that front forwards under
  # front: https://host.example.ts.net:8443/  # that front's token-free address, which --access prints
  # socket: /run/user/1000/jig-dashboard.sock  # a second listener, mode 0600, that a front targets
records:
  shared: forge                     # where another host reads this host's launches
send: true                          # false refuses every jig send from this machine
change_probe: true                  # false turns off the minute-by-minute change probe
detach_idle_holders: false          # true: detach an unused, pushed checkout that holds a launch's branch, changes and all
rescue_unpushed: false              # true (with detach_idle_holders): keep its unpushed commits on a rescue branch, then detach it
outbound_share: 0.5                 # share of each credential's rate limit, a tracker's or the forge's, the tick's calls may use
preflight: [tracker]                # checks on each account before a tracker stage launches; [] runs none
notify:
  channels:                         # where notices go beside the Orca card; one is needed for notify on runtime: process
    - name: phone
      kind: webhook
      url_env: JIG_NOTIFY_PHONE_URL # the variable holding the webhook's address, never the address
      format: text                  # text (ntfy), slack or discord
steward:
  enabled: false                    # true enables the stage on the owner host
  every: 20m                        # read and ignored: the judgment backlog starts a pass
priorities:
  enforce: false                    # true starts pickups in the priorities ranking's order
load:
  enforce: false                    # true holds what a gauge refuses; false only reports it
  memory_free: 0.15                 # share of the host's memory kept free after a launch
  load_per_core: 0.9                # one-minute load per core
  lock_waiters: 2                   # runs waiting on the test lock that stop pickups and drive passes
  validation: 1                     # share of forecast validation capacity a launch may commit
  disk_free_gb: 10                  # free space kept on the workspaces' filesystem
  forge_floor: 0.1                  # share of the forge's budget kept
  reservations_gb:                  # each kind's memory until it has five samples of its own
    pickup: 2
    drive: 1.5
    followup: 1
    steward: 1

For serve_defaults, a tracker namespace is linear:<team> or jira:<site>:<project>, the site written as its https:// address (jira:https://example.atlassian.net:ENG); the machine file rejects any other form.

SettingDefault / meaning
serve[]Empty; the people this host serves, beside any repository’s factory identity. Each entry has a name, forge logins and a tracker map from adapter name (github, linear, jira) to that person’s identity. Only this machine file can name served people; repository configuration cannot widen the list. Their forge logins join the adoption authors. With pickup enabled, an open, not-started assignment from a repository writer is wanted without a dispatch-state requirement. Who made the assignment is read from the tracker’s history, which on Linear leaves out changes made in an issue’s first three minutes: assign an item at least three minutes after its creation (or unassign it and assign it again after them), and the next tick after that assignment considers it, subject to the usual holds and admission checks. jig send … assign and /jig:file-issue’s hand-off wait for that window themselves. Unassigned descendants of an assigned epic inherit that person. Holds and open blockers stay visible in the Queue view with their reason
serve_defaultsEmpty; a mapping from a tracker namespace to the checkout path of the one repository, listed under repositories, that starts the served items no repository label places. The namespace is linear:<team> or jira:<site>:<project>, case ignored. Repositories that share a tracker namespace read the same assignments, so without it every one of them would start an unlabelled item; with it the others leave the item alone, and a namespace it does not name has its unlabelled items reported once as needing a repository label (shown in the Queue view with that reason) and started by no repository. Needs review.repo_label and review.taxonomy.repos in the repositories’ configuration, which is how an item’s repository is read; a GitHub repository reading its own issues is not affected. Every repository that reads the namespace needs that scope, and a repository the namespace’s default names must read it with pickup enabled, or its items start nowhere. The file is read per host: a host lists the default among its own repositories, so name one default per tracker namespace on each host that serves it. A path not listed under repositories, or a namespace written twice, is refused
steward.enabledfalse; enables the owner host’s headless steward for repositories whose stages include steward. The pass reads a digest and submits closed records for the next tick; it never launches work itself. It shares account slots and load admission, uses the admitted vendor’s complex-tier model, has a 15-minute deadline and starts at most three times in a rolling hour. The tick rechecks every effect against current facts and preserves human stops, holds and registry-class parks. It also records the cause of a pickup’s or a follow-up’s run that left no closing report, from an excerpt of the run’s transcript
steward.everynone; still read as a duration, so a file that sets it keeps loading, and ignored. A pass starts when the repository’s judgment backlog holds a member no earlier pass saw (a stalled pickup or failed follow-up with no running session, a stopped drive a re-arm could resolve, an ended pass recommending a resume, a queued item missing a facet, a need with no framing), at once and within the hourly budget; an empty or already judged backlog starts none. Digests, once-only recovery records and submitted queue ordering remain in the owner host’s state database
repositories[].pathRequired; the repository’s local checkout. Several hosts may list one repository, each in its own machine file, with one of them its owner (owner)
repositories[].ownertrue; whether this host owns the repository’s notifications, dispatch labels and outcome-log rows, its board and its reflection findings. Set it false on every host but one that lists the repository: such a host launches, re-arms, re-drives and takes over through the shared records (records.shared) as the owner does, and never notifies for the repository, never writes its labels, never writes outcome-log rows for stops it did not launch and never records a recurring class as a reflection finding, so each is written once. A session it launched that waits or drifts is reported on that host, not notified. Every run’s report names the host that owns the repository, and says so when another host’s claims say they own it too
repositories[].stagesEmpty; the stages --apply starts for it. rearm starts re-arms and takeovers of drives, and a re-drive, once per change, of a converged drive whose pull request now conflicts with its base or whose head moved past the head the drive verified, and of a drive that stopped on a conflict. pickup starts a headless do-item pass per item the repository’s dispatch section makes a pickup, bound to an admitted account through its configuration directory as a follow-up’s pass is, under dispatch.pickup_deadline and with the host’s drive.pass_args (or, on a Codex account, only where drive.codex_bypass is set, with the host’s drive.codex_pass_args). The pass keeps the agent’s own model and effort, and do-item forwards the item’s route to the implementer it delegates to. A pass that cannot finish without a person stops on a Question: line and records the decision it framed with its result, which is notified as a need; nothing is started for the item again until a person’s answer to that decision releases it, or it leaves the dispatch states and comes back. A pass whose claim do_item.preflight_command refused is held, with the reason, until the item’s updatedAt moves past the one the command saw; a batch pass holds only the members the command refused, each on its own updatedAt. followup starts a headless pass running dispatch.followup_command per merged pull request, bound to an admitted account through its configuration directory as a drive’s pass is, under the pass deadline and with the host’s drive.pass_args (or, on a Codex account, drive.codex_bypass and drive.codex_pass_args). Follow-ups open their workspaces in a lane of their own (followup_opens_per_tick, followup_concurrency), so they never wait for a drive’s launch, nor a drive’s launch for them; they still share the accounts’ slots. A step the merge owes that only a person can take (a live check, a rollout to another repository, an organization’s setting, an operational action, a failed release gate) is reported as owed and filed, and does not stop the pass. A pass that stops on a routine question (one of the dispatcher’s fixed classes, which the pass tags itself: local-leftover, a local branch or worktree it may not delete without asking; person-owed, who takes such a step; drafted-items, whether to file the follow-up items it drafted) is run again once with the class’s standing answer (keep and list the leftover; report and file the owed step; file the drafted items; then finish the rest and record done), as is a follow-up that failed before passes tagged their questions, which needs its launch record still on the host only when no retry evidence was kept with its outcome; a pass that stops on any other question, or fails again after that run, is notified with its question and its framed decision, or the dispatcher’s own framing of the failure, and a person’s answer to it is carried out once by the tick (Every need is a decision). notify sends each notification once (with Orca, the workspace’s comment, marked unread), and through every channel notify.channels names. steer sends the one nudge, Your usage limit has reset. Continue, once to an interactive session the runtime reports waiting after its account’s wall reset; no other stage implies it
repositories[].followup_sinceNone; when the follow-up stage started for it. Without it, the previous run’s receipt keeps the start
accounts[].nameRequired; the account’s name here, which launch records and walls are kept under
accounts[].vendorRequired; the agent tool the account bills, which every session on it runs in: claude (Claude Code) or codex (Codex), the tools the drive documents a pass command for. A drive’s pass on a codex account runs Codex’s pass command, on the standard tier of the repository’s routing.models.codex (by default terra, given as gpt-5.6-terra), and it and a follow-up’s pass are admitted only while the pass deadline the run reads (DRIVE_PR_PASS_TIMEOUT, else 90 minutes) is positive, since a Codex pass has no turn cap of its own. A codex account is admitted for any launch only on a host that set drive.codex_bypass, since a pass needs that bypass to push and to write its worktree’s git directory, a pickup’s session goes on to arm such a pass, and nobody is there to approve; every run reports why otherwise. Any other name (lowercase letters, digits and dashes) is accepted, reported on every run as accepted and not admitted, and never launched on
accounts[].kindsubscription; what the account bills. A subscription account is a vendor’s plan, signed in inside config_dir, with the accounts[] keys this table lists. A provider account bills a model provider with the host’s own key: see provider accounts for its keys, which leave out vendor and identity
accounts[].harnessThe vendor’s own program; on a subscription account, the program its sessions run in, which may only be the vendor’s own (claude-code for claude, codex for codex), so a Claude login never reaches another program. On a provider account, required: claude-code or codex
accounts[].config_dirRequired on a subscription account, and on a provider account ~/.local/state/jig/harness/<name>; the configuration directory of the account’s profile, set as CLAUDE_CONFIG_DIR (claude) or CODEX_HOME (codex) for each session it bills. The session starts with the other variable and CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY and OPENAI_API_KEY removed, whatever their letter case, so only this directory decides the account. A provider account’s directory is its own: no other account of either kind may name it
accounts[].identityRequired on a subscription account, and never written on a provider account, whose identity is derived (account identities); the email address or account id the drive’s identity resolver reads from that directory. A launch whose directory resolves to anything else, or to nothing, starts nothing and is reported. For Claude Code, the dispatcher then checks the sign-in with a bounded Haiku request. It asks the shared budget first and records any cost in the outbound ledger. A successful answer is reused for ten minutes. A refused login backs off the account for wall_backoff and raises one host need to sign in again. If the check cannot answer, the tick reports the fallback and keeps the identity check and startup breaker in effect
accounts[].max_per_account2; the sessions the dispatcher may hold on the account at once (its slots). Every live driver on the host counts against the account its passes bill, whoever started it (the dispatcher, a pickup, a person or a repair session); other sessions a person starts on the same account are not counted, so lower it when you share the account
accounts[].stagesEvery launching stage; the stages whose sessions the account takes, a list of distinct names from pickup, rearm, followup and steward. A re-arm, a takeover and a re-drive (a conflict re-drive among them) are the rearm stage’s. Admission passes over an account that does not serve an action’s stage before it weighs anything else, as it does an account the preflight holds back, and the account is not probed for that action; weights, turns, walls and slots then decide among the accounts that remain. A takeover runs in the slot of the launch record it replaces only while that record’s account serves rearm; otherwise it is admitted as a new re-arm would be, on a free slot of an account that serves rearm, where it holds a slot of its own beside the replaced record’s until that record ends, and it waits with the usual reasons when none has one. A launch already recorded and retried after a lost answer stays on its own account. The load factor’s accounts gauge (load.enforce) still counts the slots of every listed account, whatever stages each serves, so the free slot it keeps for a drive or a follow-up may be on an account that serves neither. When no listed account serves a stage, its launches wait with a reason that names the stage and says no account serves it, not that no account has a free slot. The receipt, the terminal report and the dashboard’s account view show an account’s stages when this narrows them, and a run without --apply names, under each planned launch, the accounts that serve its stage. The file is refused, naming the account and the value, for an unknown stage, a stage written twice, an empty list, or notify or steer, which launch no session
credential_commandNone; the argument list that prints a provider account’s credential for its reference, run without a shell, the reference appended as one last argument (so a quote or other shell character in it is never interpreted; a reference holds no whitespace). On Windows, a .cmd or .bat shim runs through cmd; use a direct executable to retain the no-shell argument guarantee. It runs with a small base of the host’s environment (PATH, the home, the user, the locale and the temporary directory) and the variables credential_env names, never the pass’s, the same in the dispatcher’s check before a launch and in the launch’s wrapper, except that under runtime: process the wrapper starts from the process environment’s allowlist: it keeps LOGNAME only if process.env_keep says so and takes PATH from process.path when it is set, which must list absolute entries (a relative entry is refused); with none set the wrapper removes relative entries from the inherited PATH and uses a platform fallback if none remain, while the dispatcher’s own check uses the tick’s inherited PATH unchanged, so list there what the command needs. The two sources also differ in TMPDIR (the tick forwards a nonempty relative value unchanged; the process runtime resolves it first) and in name matching (the tick matches base names in any letter case; the wrapper copies only the exact names USER and LANG and the uppercase LC_ prefix, unless process.env_keep keeps a spelling), so a command should not depend on either. Its standard output is the value, one trailing line ending removed; an empty value, one with a line break or a null character inside it, one containing the Unicode replacement character (including a literal one), one under 8 characters, counted as UTF-16 code units as the masking counts them (too short to be replaced reliably wherever text is recorded) or one over 4 KiB is refused, as is one that is part of the text of a redaction marker (<redacted>, [redacted], [launch token], [redacted: oversized line dropped] or the omitted-line text), such as redacted, or contains the whole of one, which masking could not tell from redacted output. Both comparisons are case-sensitive, as the sinks match, so REDACTED is accepted. On POSIX, a command that leaves a member of its original process group running is refused; on Windows Jig can detect and stop only descendants registered with its cooperating runner. Eligible captured standard-output values are remembered on buffer overflow, timeout, a nonzero exit, a surviving process group or a refused value, while replacement markers themselves are not; a command that cannot start has no output to remember. 1Password’s op read --no-newline is one implementation; any command that prints a value for a reference is another. Read only from this file, so a repository cannot choose what runs on the host; a provider account with no command is refused when the file loads
credential_timeout10s; how long the credential command may take before it is stopped, a positive whole number followed by s, m or h, at most 24d (576h is the longest; 600h is refused); 1s is the shortest. A command that does not answer in time is unreachable and nothing is held: in the dispatcher’s check before a launch, the launch waits for the next tick; in the launch’s wrapper, the launch ends without starting its pass (exit 2) and its claim is settled
credential_envNone; the names of the host’s environment variables the credential command needs beside its base, such as a vault’s session or service-account token (OP_SERVICE_ACCOUNT_TOKEN). They reach the command and no pass: every pass’s environment, a subscription account’s included, removes them whatever their letter case, and under runtime: process the runtime hands them only to a provider account’s wrapper. A base variable, or a name process.env_keep keeps, is refused
provider_hostsNone; a mapping from a provider’s name to the host names a provider account’s base_url may name beyond the provider’s own API. A loopback or private-network address is never a provider’s own, so it needs an entry here too. Each entry is read in lowercase, so an uppercase spelling is accepted; a port, or an IPv6 literal not written in the form the URL parser gives (compressed, in brackets: [::1], not [0:0:0:0:0:0:0:1]), is refused
interval5m; how often the installed timer runs the tick, in whole minutes (jig dispatch install --interval overrides it)
wall_backoff1h; how long an account stays out of admission after a pass stops on QUOTA_PARKED when the drive recorded no reset, and after an unsuccessful Claude Code follow-up, pickup or steward startup that writes no transcript, result or question within its first minute. A startup whose output holds a recognized usage-limit notice is walled until the reset the notice states instead, read in the zone it names (the host’s when it names none) and at most eight days out; the backoff applies when that reset cannot be read, and to a startup with no such notice
runtimeorca; on Linux and macOS, set process to dispatch headless runs through the host’s service manager and open plain git worktrees. The machine file is the only runtime selector. The process runtime writes no Orca card, so a repository’s notify stage on it needs a channel under notify.channels, and a file that enables the stage with none is refused, naming the field; it starts the first drive for a finished pickup through the usual drive admission checks, including dispatch.labels.only_labeled. A person follows a process run, or takes it over, with jig dispatch attach <record> [--take-over] (the plugin page)
process.pathThe scheduled tick’s PATH, recorded by jig install. Overrides the path supplied to the run and its account identity check
process.env_keep[]. Names of additional environment variables to pass through. The run keeps the home, user, locale and temporary-directory settings, JIG_HOME when set, and the selected account’s configuration directory. The allowlist refuses vendor credentials, account directory overrides, CODEX_* harness variables, ENV, BASH_ENV, and loader variables beginning with LD_ or DYLD_. List a forge token variable here to pass it through
runtime_timeout1m; the deadline of each session-runtime call but opening a workspace. An answer past it counts as lost
workspace_timeoutThe Orca workspace tool’s own limit on opening a workspace (a clone, the create hook and the calls around them); the deadline of opening a pull request’s or an item’s workspace. opens_per_tick plus followup_opens_per_tick, times this, plus eight times runtime_timeout is one tick’s budget, and the dispatch configuration is refused when that budget exceeds 2,147,483,647 milliseconds (about 24.86 days, the longest a timer holds; each duration alone may be at most 24 days). The installed tick deadline covers that budget, with a six-hour minimum
opens_per_tick4; positive whole number of workspace opens allowed in one tick, limited further by the accounts’ free slots. One open is kept for the notices workspace when the machine file enables notify for any repository; the budget must then be at least 2, so launches can still proceed. A launch that needs another open waits for the next tick, with its receipt naming the budget or account constraint. A value whose workspace opens and runtime calls exceed the timer range is refused, naming opens_per_tick. Follow-ups never draw on it: they open from followup_opens_per_tick
followup_opens_per_tick2; positive whole number of workspace opens the follow-ups’ own lane may make in one tick, beside opens_per_tick: a follow-up never spends the launches’ allowance or the notices workspace’s reserved open, and a follow-up whose pull request already has a workspace joined to it opens none. A follow-up that needs another open waits for the next tick, its receipt entry and the dashboard’s queue naming the lane’s budget (waitsOn: lane-budget). Two allows at most two follow-up workspace opens a tick (24 an hour at the default interval), an upper bound reached only while followup_concurrency and the accounts’ slots leave room, and adds only two opens to the tick’s budget (workspace_timeout). The lane’s opens count in the tick’s budget, so the installed tick deadline grows with them: at the defaults it is about 8h50m (six opens of the default workspace_timeout and eight runtime calls) rather than the six-hour minimum. A value whose opens take that budget past the timer range (2,147,483,647 milliseconds) is refused, naming followup_opens_per_tick
followup_concurrency2; positive whole number of follow-up passes that may run on this host at once, counted from the launch records still holding (pending, alive or unknown). A pending record the tick reports stuck (notified to a person, held until jig dispatch clear) keeps its account’s slot but is not counted while the runtime shows no session running on its target, so a launch that never started does not hold the lane; one whose target has a session running, or whose sessions cannot be read, is counted, since that wrapper may be running its stage without having claimed the record; a record whose state is unknown (claimed on another host, or an unreadable process table) is counted until it resolves or a person clears it. A follow-up past it waits for the next tick, named as waiting on the lane’s cap (waitsOn: lane-cap). It is the lane’s own cap: a follow-up still needs an admitted account with a free slot (accounts[].max_per_account), and one that finds none is named as waiting on the accounts (waitsOn: accounts). Two matches the lane’s per-tick budget, so every follow-up one tick opens a workspace for can start; on a host whose accounts have few slots, lower it to leave slots for drives
receipts_days30; days receipts, ended launch records and the transcript copies of runs that left no closing report are kept (a copy goes seven days after the steward records its run’s cause, if that is sooner). One record carrying the greatest cumulative launch count per stable account identity is retained beyond this window so weighted allocation cannot restart. The outcome log is never removed
unclaimed_after15m; how long after the session runtime answered a launch as started its launch record may stay pending, with no wrapper’s claim, before the tick reports it stuck: notified to a person as needing them (once, then on dispatch.renotify_after) and shown on the dashboard as needing a person, holding its stage and slot until jig dispatch clear <record>. A record claimed within it is never flagged. The wrapper claims its record as its first act, seconds after its terminal starts, and the workspace is opened before the launch, so fifteen minutes is many times a slow start and three ticks at the default interval. While the runtime cannot say which sessions run, the tick waits; a session it joins to the record’s target is named in the notice, since that wrapper may have started its stage without claiming the record
failures.backoff2m; how long the tick waits before trying again an action that failed twice in a row, doubled with each failure in a row after that, up to failures.backoff_max. A first failure is tried again at the next tick. The actions it paces are the ones a tick tries again on its own, with no record of their own that counts attempts: each pull request’s dispatch label write, each notification’s delivery, each nudge the runtime refused, and the end of this host’s launch claim or the follow-up’s answer on its marker. Launches are not among them: a launch record counts its own attempts, one lost twice is stuck (unclaimed_after and the records it names), and a refusal that did not change is not tried again. While an action waits, the receipt reports it waiting, with its failures in a row and its next try. The count is this host’s, kept in its state database (the failures table), and only a tick with --apply keeps it. Two minutes is one tick at the interval a sweep is meant to run at; doubling reaches the hour after seven failures in a row
failures.backoff_max1h; the longest wait between two tries of an action that keeps failing. It may not be shorter than failures.backoff
failures.notify_after3; positive whole number of failures in a row at which the tick tells a person, once and then on dispatch.renotify_after, through the repository’s notifications: an action that kept failing (cause action-failing); a repository whose turn was refused, stopped by a defect, or found a record that did not read (repository-failing); and this host’s ticks of one scope that exited 1 (ticks-failing; each single-repository tick, such as a wake-up, has its own scope, and every tick of several repositories shares one). The notice names what failed, how many times in a row, since when, and the last reason. An action’s notice goes to its own repository; a repository’s and the ticks’ go to this host’s first repository listed here that it owns with notify enabled and whose turn is not failing (the first of them when all are failing); a host failure’s notice is the same one wherever it is told, so the destination moving does not send it again. Only the host that owns a repository notifies for it. A row is removed, and its notice retires, when the action succeeds, the repository is read whole or a tick of that scope exits 0, or when the action is no longer wanted. A single-repository tick’s row also goes quiet, and its notice retires, when a tick that read that repository whole exits 0: the row keeps its count and is told again, as a new notice, only if a tick of its own scope fails again. Three in a row is past a passing outage and, at the default interval, within about a quarter of an hour of a cause that stands. A repository whose every failed read is of a failure class that clears by waiting does not fail the tick below this count, and a parked drive’s thread the forge answers not-found never does (when an outside system refuses or does not answer). How a repository’s and the ticks’ rows are told is failures.group’s
failures.rerun_died1; 0 or 1: whether a follow-up of this host’s whose pass died during its work (no result and no question, within the 6-hour session lease) or whose result or exit this host could not write (jig dispatch result exits 4, whatever the pass said and however long ago) is run again once, within the pull request’s recovery budget. The run again waits for the host’s health check: the tick releases the follow-up’s marker, and starts it again, only while the dispatcher’s last run passed (jig doctor dispatch’s dispatch:last-run). While it fails, every such follow-up that is not itself a run again is held, whatever its age, with nothing released or notified, and the host’s own host-failing notice is what a person sees by default (ticks-failing or repository-failing when failures.group is scope); once it passes, the 6-hour window applies again, and a plain death older than it goes to a person. A run again never earns another, so no other bound is taken. 0 hands each such follow-up to a person as a failed follow-up. Read when the follow-up is launched, as wall_backoff is. A pass whose result could not be written raises no question of its own, a pickup’s included: what it asked is the host’s fault
failures.startup_threshold3; consecutive unsuccessful Claude Code startups of the same class before the dispatcher backs off the account. A successful startup resets the count. A recognized sign-in refusal backs off the account immediately
failures.groupcause; how this host’s own failing rows (a repository’s turn, a tick scope) are told. cause tells one notice per cause (host-failing), naming every scope that cause fails, each with its failures in a row, since when and its last reason, so one fault (the session runtime failing for every repository, an unreadable catalog) is told once rather than once for each repository and tick scope it touches; a scope failing with another cause is told under that cause. A row’s cause is read from its last reason against a closed list: the session runtime, the state database, the configuration, the tracker, the forge, or other; a record that did not read names its system, and otherwise the first system the reason names decides, the configuration only when none failed. The notice is sent once a row of its cause reaches failures.notify_after, keeps its identity while another scope joins or leaves, and retires once none of its rows fails. scope tells each row on its own (repository-failing, ticks-failing). Either way each row counts and clears as its own, and an action’s row (which does back off) is told at its own repository
records.sharedforge, the only value; where this host publishes the records another host dispatching the same repository reads: a claim per drive launch on the pull request it concerns (its launch record, its host and, once it ended, its end), and the follow-up marker with the follow-up’s answer. A value this version does not know is refused. The claims coordinate launches and never authorize anything a person does; the forge cannot create a comment only if none exists, so two hosts can each read themselves the holder of one launch, and the stage’s own refusal (the drive’s lock and ledger claim, do-item’s claim) is the backstop
sendtrue; whether jig send may write a request from this machine. false refuses every send, --dry-run included, so a machine whose sessions should only ask the line can say so once. Read by jig send alone; the dispatcher ignores it
detach_idle_holdersfalse; whether a workspace open detaches, without asking a person, a checkout the workspace runtime does not list that holds the launch’s branch and is busy only with changes in its tree or index: no process works in it, no drive or session lease holds it, no git operation is unfinished and every commit it holds is on the remote. The detach moves only its HEAD, at the same commit, so its files and changes stay where they are. A checkout with none of those changes is detached whatever this says. Off, such a checkout refuses the launch and a person is asked (Detach the checkout, I’ll handle it — hide this card). Read by the dispatcher’s workspace opens, on both runtimes
rescue_unpushedfalse; with detach_idle_holders on, whether the open also detaches such a checkout when its only other reason is commits the remote lacks. It first keeps those commits on a rescue branch: a local branch of the clone, jig-rescue/<tree>-<time> (the tree’s directory name and the UTC moment), which the dispatcher never pushes and jig gc never collects. Where the remote has the branch, the branch is then moved back to the remote’s copy, so the open can check it out. The launch’s receipt names the rescue branch and the clone, and so does a comment on the pull request (one forge call per rescue). A rescue that cannot be made, or read back, leaves the checkout as it was and asks a person. true without detach_idle_holders is refused. Read by the dispatcher’s workspace opens, on both runtimes
change_probetrue; whether the change probe runs: every minute, jig dispatch probe --apply (its own timer, which jig install dispatch writes beside the tick’s) reads the forge once for the pull requests of every repository listed here with a stage, and wakes the tick of each repository where one was updated or its checks changed since the last probe. false makes a probe read and wake nothing, and the next jig install dispatch --yes removes its timer. Read by jig dispatch probe and the dispatcher’s install
outbound_share0.5; the share of each rate-limit window, a tracker credential’s or the forge’s, the tick’s own calls may use, a number above 0 and at most 1. tracker_share, its older name, still reads; a file that names both is refused. Every process on the host shares one record of each quota owner’s budget (~/.local/state/jig/tracker/budget.sqlite, keyed by the system and a hash of the quota owner: a tracker’s credential itself, or for the forge the owner its credential belongs to, below): each answer updates it, and while the system refuses the credential (Linear’s RATELIMITED, an HTTP 429, GitHub’s primary or secondary limit) no request leaves the host before the reset the answer named. The tick’s calls stop, with the same wait, once a window has no more than 1 - outbound_share of its limit left, which keeps the rest for the passes it starts and for people; Linear’s windows refill continuously, so the reads resume once the refill brings the window back above that floor (seconds when it is only a little below, minutes when a pass has left a larger deficit), where a window that resets whole (GitHub’s) waits for its reset. A tick that meets the limit reports the tracker once as rate limited until the reset, keeps showing the served queue it last read, and its pickups wait; a pickup pass the limit stops before it has claimed the item records waits and starts again after the reset; one that meets it after the claim waits within its deadline or records failed. Linear’s request and complexity windows and Jira’s Retry-After are read. GitHub’s core, GraphQL and search limits are each a window of the record of the forge credential’s quota owner, since GitHub counts them per user across all of a user’s personal tokens and per installation across all of its tokens: the gh client’s token or its stored login is asked once who it is (gh api user, kept for a week for a token and a day for a stored login, tried again after 15 minutes when it fails), an installation token’s owner is the installation JIG_GITHUB_INSTALLATION_ID declares, and a credential whose owner cannot be established shares one record per host with every other such credential, so they can only spend less together, and a hold on one holds them all. A record an earlier release kept under the credential’s own key seeds the owner’s, its hold kept. Each run is recorded there: a gh api call reads the rate-limit headers of its answer, a GraphQL answer that selects rateLimit its GraphQL balance, and the other subcommands, which show no headers, each reserve a point of the GraphQL balance, the least a query costs, and are accounted from the rate_limit endpoint, which the tick reads at most once and only when no answer reported the core window in the last minute, and from their refusals. A GitHub primary limit whose headers name a limit the record keeps a window for and say it is spent holds that limit until its reset; a secondary limit, or a refusal that shows no headers, holds the credential until its retry-after, else for a minute, doubled for each refusal in a row up to fifteen, the refusals of one burst counting once. The rate_limit endpoint’s answer replaces the balances the record holds, and a conditional request (If-None-Match, which GitHub does not charge when nothing changed) whose answer’s headers are read reserves nothing, while one run with --silent, or whose output is not captured, reserves a request, since its headers cannot say whether GitHub charged it. A REST call is admitted against the window it spends, a GraphQL call against the GraphQL window, and another subcommand against both; a read of rate_limit costs nothing and is refused only while the credential is held. The tick’s forge budget, its optional reads and load.forge_floor read the same record, and the tick report’s outbound github line shows its core and GraphQL balances
preflight[tracker]; the checks the tick runs on each account before it launches a stage that touches the tracker (a follow-up, a pickup, or the steward’s resume of one), a list of distinct names; [] runs none. tracker reads the repository’s tracker headless through the tracker port (Tracker.reach, which reads no issue), in the repository’s checkout and the environment a pass billed to the account runs in, so it reads the credential such a pass would; each account is asked at most once per tick for each tracker, within runtime_timeout. An account the tracker refuses, or whose read gives no answer by that deadline (a credential waiting on an approval), takes none of the repository’s tracker stages that tick: each launch tries another account, or waits naming the answers, and the dashboard shows one need per account for the whole host, tracker-unreachable, act Authorize, its repository host, naming every repository it holds and the answer. A rate limit, a server error or the network holds nothing and leaves the stage to its own handling of them (outbound_share); neither does a configuration that opens no tracker, which the stage’s own failure reports. A later tick whose answer passes clears the need; the probe runs only in a tick that has a tracker launch to start. A drive’s re-arm or takeover and the steward’s own pass are not checked. A value other than a list of known checks is refused. Read by the dispatcher’s tick
notify.channels[]Empty; the notification channels the tick sends each notification through, beside the Orca card it writes on runtime: orca. Each keeps its own records: a notification is sent once on each channel, again after dispatch.renotify_after while its cause stands, and a delivery that keeps failing backs off in the failure ledger under notice <name> <key> and, past failures.notify_after, is notified as failing through a channel that still delivers. A channel starts from what stands on each repository separately: on the first tick it can send there, that repository’s standing causes are recorded as known without sending (the tick’s receipt says once how many), so only a cause that appears or changes afterwards is sent. A repository first reached on a later tick starts the same way, silently. A repository’s start is written only once its causes are recorded and its records were read whole, so a tick that fails part way starts it again. After the start the usual rules apply: a cause is repeated on dispatch.renotify_after while it stands and dropped when it leaves. A lasting cause (drifting, ready, a stopped drive with no cause read, a failed re-arm, a reviewer failure, a usage refusal) is never repeated, and one recorded as known without sending stays suppressed on that channel, even if it leaves and returns under the same key; only a new key sends it. With dispatch.renotify_after at 0s no cause is repeated. A renamed channel is a new one, as is one whose records were dropped or that has none (a channel upgraded from a release that kept none starts silently too, whatever its earlier delivery failures); orca-card is never started this way. On runtime: process, which writes no card, a repository’s notify stage needs at least one. Read by the dispatcher’s tick
notify.channels[].nameRequired; the channel’s name, lowercase letters, digits and hyphens starting with a letter, and not another channel’s. orca-card, the Orca card’s name, is refused. Its records and failure-ledger rows are kept under it, so renaming a channel starts it anew on every repository: it starts as any new channel does (see notify.channels[])
notify.channels[].kindRequired; webhook, the one kind: an incoming webhook that takes one HTTP POST per notification (ntfy, a Slack incoming webhook, a Discord webhook). A 2xx answer counts as delivered. A webhook cannot be read back, so a notification whose answer was lost after it was sent may arrive twice once its back-off allows the next try, and it cannot tell whether a notification was read: the notices_read observation is the Orca card’s alone
notify.channels[].url_envRequired; the name of the environment variable, in the tick’s environment, that holds the webhook’s address. The address is a credential: the file names the variable, never the address, and a value that is not a variable’s name is refused without being shown. The address must be https:, or http: on the loopback host for a relay on the same machine. The scheduled tick does not read a shell profile, so the variable reaches it through the job’s own environment: on Linux a systemd drop-in for the dispatch service (Environment= or, better for a secret, EnvironmentFile= naming a file only the host’s user can read), on macOS the launch agent’s EnvironmentVariables, which jig install dispatch --env <name> writes and a reinstall keeps (the scheduled tick’s environment), or a wrapper that exports it and then runs the launcher. An ntfy topic’s name is its only secret on a public server: make it long and random (32 or more random characters), as for any password. Unset, empty or refused, the channel is unreachable: every notification on it waits, counting no failure, and the tick reports the channel once each tick in its receipt as the host’s fault, naming the variable and never its value. The address never appears in a notification, the receipt, the outcome log or the outbound cost ledger, which keys the channel’s requests by a hash of it
notify.channels[].formattext; how a notification is posted. text posts plain text with Title and, for a pull request, Click headers, which ntfy shows as a phone push (any endpoint that takes plain text reads the body). slack posts a Slack incoming webhook’s {"text": …}, links not unfurled. discord posts a Discord webhook’s {"content": …} with every mention off. Each notification opens with its key line, then the framed decisions, the acts that settle it, its address and its pull request’s link, cut to what the destination takes (4,000 bytes for text, 3,900 characters for slack, 2,000 for discord). Each post has a 10-second deadline within the tick’s remaining time. A 2xx answer is delivered. A 429 is not a failure: the notification waits, and the address is held in the host’s budget record (~/.local/state/jig/tracker/budget.sqlite) until the answer’s Retry-After, or, naming none, for a minute doubled with each 429 in a row up to fifteen; until then no repository’s tick on this host posts to it, and its notifications wait. Any other refusal (4xx, 5xx, a redirect, which is never followed) or no answer within the deadline is a failed delivery, counted in the failure ledger. After a 5xx, a 429 or no answer, the tick’s remaining notifications on that channel wait for the next tick, and a destination that did not answer is asked once before the rest the next tick
priorities.enforcefalse; whether the owner host’s pickups start in the order the declared priorities ranking gives. With false the ranking is reported beside dispatch’s own selection and changes nothing it starts. With true the ranking places every pickup the tick plans to start (a pickup a session or launch record holds, or one waiting on a person, takes no place), and its order ranks pickups within their overlap tiers: the shortlist’s eligible positions (Urgent issues, then High bugs, then the weighted lanes by weight and the peripheral floor), then the unallocated work, then any pickup the ranking did not place (an epic, an allocation conflict, an item whose ancestry did not read). The order holds within one repository: on a host that dispatches several, the repositories still take their turns as before, so one repository’s Urgent issue can wait behind another’s pickups until its turn comes. The weights divide starts, never slots: how many pickups start is still the load factor’s, each account’s free slots and walls’, and max_per_account stays a ceiling. A pickup that cannot start now (its fresh read changed or no account is free) passes its start to the next, so no lane keeps a start free while other ready work could take it. A pickup whose lane is out of rotation (weight 0, or a weights file that fails closed) is withheld and listed as quiet (lane-paused); a batch member in such a lane leaves its batch, and a batch whose first item is in one is withheld whole. A ranking that fails leaves the plan’s own order for that tick and says so. The report names, for each start, the lane and objective it is charged to and why, each pickup that passed its start on with the reason, and each one withheld. Turning it on is a person’s call, made after reading the ranking’s reports
load.enforcefalse; whether the load factor holds a launch one of the host’s gauges refuses. Each tick reads the gauges once, under the act lock, when it builds what it launches against: memory (MemAvailable on Linux, the free memory the platform reports on Windows, not read on macOS), the one-minute load per core (not read on Windows), the test lock’s holders and waiters, the least free space among the filesystems of the running workspaces and the repositories, the forge’s budget the tick read at its start, and the accounts’ free slots. Each gauge’s fill against its line, and the fullest of them as the load factor with the gauge that binds (“82% · memory binds”), are on every receipt (load), the dashboard’s line and the Running view; a gauge the host cannot read is left out and says why. A launch fits while every gauge stays under its line with its kind’s memory reservation and every reservation the tick already admitted counted; the test lock’s waiters stop only pickups and drive passes; and a pickup also keeps room for a drive or follow-up after it (the larger of their reservations above the memory floor, and one account slot free). With false a launch that does not fit still starts and the receipt lists it under load.holds as one the load factor would hold (held: false); with true it waits for a later tick, its launch naming the gauge, and is listed with held: true. The relaunch of a pickup whose push the host’s test lock held past the pre-push hook’s wait (waits --reason test-lock) waits on the validation and test-lock gauges with either value, and is listed with held: true; a gauge that does not read holds it with neither. A pickup is first asked whether any account has a free slot for it and, with true, whether the gauges hold it, before its fresh tracker reads: a pickup either holds sends the tracker no request, and its item is not read again that tick, so its hold says nothing of whether the item still qualifies. Turning it on is a person’s call, made after reading a week of those receipts
load.memory_free0.15; the share of the host’s memory a launch must leave available after its reservation, above 0 and below 1
load.load_per_core0.9; the one-minute load per core the processors stay under
load.lock_waiters2; the runs waiting on the machine-wide test lock (LOCK_ROOT, else the temporary directory; LOCK_NAME, else heavy, as a launch’s environment sets them: the dispatcher’s own for an Orca launch, what process.env_keep keeps for a process launch) at which no pickup or drive pass starts
load.validation1; the share of forecast test-lock capacity that each pickup or drive may commit, above 0 and at most 1. The gauge counts holders, waiters and the runs still expected from in-flight passes. It places the first run of each in-flight pass yet to make one at its launch plus its kind’s measured time to validation and serves the lock’s requests in arrival order, so a run expected to finish before the new pass reaches the lock is credited as served, not counted ahead. A pass with no estimate (its kind’s time is still the default, its launch time does not read, that time has passed, or it has made a run already) and the runs admitted in the same tick are counted ahead, and the reason names both counts. A pickup leaves room for a drive’s expected runs in the pickup’s wait window. The drive must also fit the work already committed within the drive’s own wait window. The wait window is the wait a pass’s test stage gives the lock, LOCK_TIMEOUT from the dispatcher’s environment, as a pass’s launch environment holds it (an hour, the test stage’s wait, when it is unset), limited by the pass deadline; the reason names the window and where it came from. A pass’s own runs follow one another, so its earlier runs are never a wait for its later ones; a run in flight that reaches the lock between them can be, and the forecast takes the longest wait of any of its runs. The hour is the wait of Jig’s own test stage; a host whose repositories’ test stages wait another time sets that LOCK_TIMEOUT on the dispatcher’s job. Process launches keep only the variables process.env_keep names, so a runtime: process host also lists LOCK_TIMEOUT (and a non-default LOCK_ROOT or LOCK_NAME) there; Orca launches are given the dispatcher’s own LOCK_TIMEOUT, LOCK_ROOT and LOCK_NAME. Until the last seven days of release samples supply a measurement, the gauge uses a 15-minute run, one concurrent run, one run per pass and one hour from launch to the first lock request. With load.enforce: false, the receipt shows which launches the gauge would hold.
load.disk_free_gb10; the free space, in GiB, kept on the filesystems of the workspaces and the repositories
load.forge_floor0.1; the share of the forge’s core budget kept, the share below which the tick already skips its optional reads; above 0 and below 1
load.reservations_gb.<kind>pickup 2, drive 1.5 (a re-arm, takeover or re-drive pass), followup 1, steward 1; each kind’s memory reservation in GiB until it is measured. On Linux each --apply tick records, per running session, the memory of the processes whose working directory is in its workspace, and keeps each kind’s newest 20 samples in the state database; once a kind has 5, its reservation is their 90th percentile. Elsewhere no process’s working directory is shown, and the defaults stand
dashboard.listenNone; the address jig dispatch dashboard listens on: a numeric address in the loopback or private ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, ::1, fc00::/7, fe80::/10) with an optional port (8765 when none is named; --port overrides it). A host name or any other address is refused. Without it, the dashboard does not start
dashboard.require_tokentrue; whether a request needs the token the command prints. false serves the page with no token and is accepted only when dashboard.listen is a loopback address (127.0.0.0/8, ::1), so the only way in from another machine is a front on the host (Tailscale Serve, a reverse proxy) that authenticates the person first. The page is read-only either way
dashboard.allowed_hostsNone; the host names a front forwards requests under (the Host header), read only with require_token: false. A tokenless dashboard answers localhost, 127.0.0.0/8 and ::1 and these names, and refuses any other Host with 403, so a page on another origin cannot read it by pointing its own name at this address
dashboard.frontNone; the token-free HTTPS address a private-network front (Tailscale Serve, a reverse proxy that signs the person in) publishes for the dashboard, such as https://host.example.ts.net:8443/. With it, jig dispatch dashboard --access prints this address in place of the reader’s own URL and, on a terminal, a QR code (a square barcode a phone camera reads) of the same address. Accepted only with require_token: false or dashboard.socket, and only as an https: address with no user name, password, query or fragment, and no %3F, %23 or ; in its path, whose host is a name or an address in the private ranges other than loopback and link-local; localhost and the other names for this machine are refused. It is printed exactly as configured, so it must not carry a token anywhere, its path included. A refusal shows only its scheme, host and path. Jig never resolves the name. Without dashboard.socket, the front’s name normally belongs in allowed_hosts too, unless the front sends a Host the dashboard already allows; --access says so when it is missing. The page the reader serves is the same with or without it
dashboard.socketNone; an absolute path (at most 100 bytes) of a Unix socket the dashboard also listens on, beside dashboard.listen, which it needs. The reader creates it mode 0600, owned by the user it runs as, so only that user and root can open it, and replaces a socket file a stopped reader left behind; a path holding anything else is refused and left alone. It answers the same read routes and 405 to every request that is not a read, as the address does, and asks for neither the token nor a Host name: no browser can open a Unix socket. A front points at it (tailscale serve --bg --https=8443 unix:<path>), as the phone guide says. Changing it restarts the installed reader. --status fails when the socket is missing, is not a socket, is not mode 0600 and the reader’s own, or does not answer, and when Tailscale Funnel publishes a route to the socket or to the dashboard’s port

The same dashboard settings apply to the foreground command and to jig dispatch dashboard --install --yes. The installed reader has its own retry timer and requires a fixed listen port. Linux systemd requires user lingering, which keeps the account’s service manager running without a login; Linux cron is also supported. macOS LaunchAgents tied to a login cannot keep a reader through logout, so installation refuses them. No Orca install is needed. --status reports availability and diagnosis (and the private socket’s and Funnel’s state, below); --access alone prints the installed reader’s private URL, or the front’s address and its QR code when dashboard.front names one; --uninstall --yes removes it. See the dashboard’s availability and host checks and opening it from a phone.

The dashboard only reads. Besides the page, GET /state, GET /rows, GET /receipt and GET /pr, it answers two reads over what the host recorded, each as {ok: true, value} or a coded failure, under the same token and host checks:

  • GET /scoreboard[?window=7d|30d]: six numbers per release that ran something in the window (merged pull requests, answers per merge, median need age, session-hours not converged, idle slot-hours, median rounds), the newest release first, and the end causes new under a release (absent for 14 days, then three runs under one release). A record counts under the release it names; those that name none count under null. Idle slot-hours are an estimate from the accounts’ caps in the newest line.
  • GET /checks: the live-check report, or the failure checks-unavailable while this release has none.

Durations are a whole number with s, m or h. What a run keeps lives under ~/.local/state/jig/dispatch/. The files there are receipts/ (one per run), walls/ (each account’s usage-limit wall, which lifts at its latest recorded reset), the tick’s locks (tick.lock, which one tick acts under at a time, and observe/, one per repository a tick is reading), the rotation cursor (tick-index), wake/ (each repository’s pending wakes and their log), probe/ (the change probe’s state, state.json, and its timer’s launcher copy), the outcome log’s text copy, log-<year>-<month>.jsonl, which nothing removes, and dashboard/ (the installed reader’s enabled record, its access.json with the access credentials, its reader.<digest>.lock, and the scheduler’s launcher copy), and unanswered.json (the outside systems the last tick held because they did not answer, which the next tick probes once). Everything else is one SQLite database, state.sqlite: the launch records (one per launch, written before it, with a pickup session’s own result), since when each claimed item has had no running session (for stalled_after), each dispatched follow-up’s outcome (done or failed, with the question its pass stopped on and that question’s routine class, kept whatever receipts_days says), a record per notification sent (dropped once its cause is gone, except a drift’s, which stays for the life of its launch and expectation so a launch that recovers and drifts again does not notify twice), a record per nudge attempted (with whether it arrived), and the outcome log (a row per launch that ended, per notification delivered and per nudge attempted, which nothing removes; a notification about the stop of a launch it started has no row of its own, because that launch’s ended row covers it). A database a newer plugin wrote is refused, with its version named, until the plugin is updated. A launch record a run cannot check (claimed on another host, or while the process table cannot be read) holds its account’s slot until a person clears it with jig dispatch clear <record>; one claimed on this host before it last restarted has died and frees its slot.

Provider accounts

A provider account (kind: provider) bills a model provider with the host’s own key, beside the subscription accounts; its passes run in the harness it names. Its keys are below; any other key is refused, as anywhere in the file. Until the spend cap, the endpoint routing, the redaction and the original-transcript handling are in place, a provider account is read, checked and reported as configured and not admitted, and nothing is launched on it.

KeyDefault / meaning
accounts[].name, accounts[].max_per_account, accounts[].stagesAs for a subscription account
accounts[].kindRequired: provider
accounts[].harnessRequired; the program its passes run in: claude-code or codex
accounts[].providerRequired; the provider it bills, in lowercase letters, digits and dashes, spelled as a repository’s dispatch.allowed_providers spells it (openrouter, gemini, anthropic)
accounts[].base_urlRequired unless the provider is the harness’s own default (anthropic on claude-code, openai on codex), whose program default is used. Where the harness sends its requests, as the URL parser normalizes it (a path keeps its final slash and only the root path’s is dropped), written plainly: a path with a . or .. segment, a backslash, a space or a control character is refused, and so the whole machine file fails to load. An https:// URL (plain http:// only on a loopback address) with no user name, password, query or fragment, a path with no percent escape (%) and no credential-shaped value, on a host the provider’s own API answers on (api.anthropic.com for anthropic, api.openai.com for openai, openrouter.ai for openrouter, generativelanguage.googleapis.com for gemini) or one provider_hosts names for the provider
accounts[].credentialRequired; a credential reference, never the credential: a scheme, :// and a path with no whitespace (op://Vault/item/field), in which nothing reads as a credential. A key written here is refused when the file loads, and the reason withholds it
accounts[].billingpay-per-token; how the account is billed. A pay-per-token key carries spend_cap. A flat-rate plan (one whose vendor sells usage windows for a fixed fee) takes no spend_cap: its own windows bound it, through the account’s wall and max_per_account, as a subscription account’s do
accounts[].spend_cap.dailyRequired for pay-per-token; the day’s spend cap in US dollars, written as a quoted decimal string ("20.00"), more than zero
accounts[].spend_cap.per_runNone; the ceiling of one pass, in the same form
accounts[].spend_cap.timezoneUTC; the time zone name (Europe/Amsterdam) whose midnight starts the cap’s day
accounts[].modelsNone, any model the harness accepts; the models the account may run (accepted configuration; enforcement and the fallback prices come with the spend-cap work, and no launch runs while the admission hold stands), a list of {id, price}, where price is optional (an entry with only id loads) and, when given, carries both price.input and price.output, what each costs in US dollars per million tokens, as quoted decimal strings, where the provider reports no cost

At each launch on a provider account the dispatcher resolves its credential through credential_command, which can run three times for one new workspace: in the dispatcher’s check before it opens the workspace, again when the opened workspace is confirmed unchanged, and in the launch’s wrapper, which keeps the value in its own memory and the pass’s environment only. A command that exits non-zero, or prints a value it refuses, is unauthorized: nothing starts, the account is held for wall_backoff with the reason, and one host need asks a person to make the reference resolve, which clears once it does; an account on another provider keeps launching. The pass’s environment starts from the one a subscription account’s pass starts from, has every other model provider’s key and endpoint variable removed (GEMINI_API_KEY, OPENROUTER_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL and the like, whatever their letter case and whatever process.env_keep keeps), and gains the account’s credential under the variable its harness reads (ANTHROPIC_API_KEY for claude-code, OPENAI_API_KEY for codex), its base URL (ANTHROPIC_BASE_URL, OPENAI_BASE_URL) where it names one, and its identity (JIG_PROVIDER_IDENTITY). The value never reaches a launch record, a receipt, the outcome log, the state database, an error message or a command line: the wrapper masks the exact value in the output it keeps of the pass (the transcript copy it keeps masks the exact value wherever it is written, object keys included, but a field that ends partway through the credential, can still hold a part of it, and the original transcript’s retention is pending work, so the guarantee is not yet complete), and a provider account’s transcript is copied only by the process that holds its credential.

Account identities

An account’s identity is what the dispatcher compares a launch’s account with before it starts anything, and what a drive’s lock and quota records name. The drive’s identity resolver gives each kind of account one form:

AccountIdentity
Claude subscriptionThe login email in config_dir’s .claude.json
Codex subscriptionThe login email in the id_token of config_dir’s auth.json, else its account_id
Codex with a keyapi-key:<fingerprint>, from OPENAI_API_KEY, or from an auth.json in the auth_mode: apikey form, as codex login --with-api-key writes when it stores credentials in that file. The fingerprint is the first 12 hexadecimal characters of the SHA-256 of the key: it names the key, and the key cannot be recovered from it. Claude Code has the same form for ANTHROPIC_API_KEY, and token:<fingerprint> for CLAUDE_CODE_OAUTH_TOKEN; a dispatched launch never meets these, since it removes those variables
Provider accountprovider:<provider>:<fingerprint>, derived and never written in the file: the first 12 hexadecimal characters of the SHA-256 of the credential reference and the base URL (empty when the entry names none), joined by a newline. Rotating the key behind a reference keeps the identity, and resolving it needs no secret

A drive keys a quota wall by a hash of the identity, except for a token: or api-key: fingerprint, which never proves which account a wall belongs to; a provider account’s identity is the account the file declares, so it is hashed.

The scheduled tick’s environment

The scheduled tick, and the change probe beside it, read no shell profile: a variable their runs need reaches them only through the installed job’s own environment. That holds for the tracker credentials (JIRA_TOKEN_COMMAND, JIRA_BEARER_TOKEN, JIRA_EMAIL and JIRA_API_TOKEN, LINEAR_API_KEY; environment variables) and for the variable each notify.channels[].url_env names. The install writes its own variables (HOME, PATH, JIG_HOME, the test lock’s settings, the agent tools’ directories, Orca’s command) afresh every time; where the others live depends on the scheduler.

  • macOS (launchd). Run the install from a shell that exports the variable, and name it with --env, once per variable:

    sh
    export JIRA_TOKEN_COMMAND='<broker> token'
    jig install dispatch --env JIRA_TOKEN_COMMAND          # preview
    jig install dispatch --env JIRA_TOKEN_COMMAND --yes    # write

    --env takes a name only, never NAME=VALUE, so a value never reaches shell history or the process list; the install refuses that form, a name that is unset or empty in the shell, and a variable it writes itself, before it writes anything. The value goes into both launchd jobs, whose files are readable by the host’s user alone (mode 0600). A later jig install dispatch --yes keeps every variable the installed job holds that the install does not write itself, whether --env put it there or a person added it to the job’s EnvironmentVariables; --env with the same name replaces the kept value; to drop a kept variable, delete it from the job’s file (~/Library/LaunchAgents/dev.jig.dispatch.plist, and dev.jig.dispatch-probe.plist) before reinstalling. An install refuses a job file it cannot keep whole (a binary plist, or one that declares an encoding other than UTF-8, either of which plutil -convert xml1 turns into UTF-8 XML; bytes that are not valid UTF-8, which only re-encoding the file, with iconv, repairs; a value that is not a string; a kept value with a line break) rather than drop what it holds. Uninstalling removes such a job all the same. jig upgrade keeps the job’s whole environment as it is. The preview names the variables it keeps and captures and shows each value as (hidden). --env is the dispatcher’s alone: jig install refuses it unless dispatch is the only component named.

  • Linux (systemd). Set the variable in a drop-in for the dispatch service, jig-dispatch.service (and jig-dispatch-probe.service when the probe needs it), with Environment= or, better for a secret, EnvironmentFile= naming a file only the host’s user can read. A reinstall leaves drop-ins alone. --env is refused here.

  • Linux (cron). Export the variable in a wrapper that then runs the launcher; a reinstall rewrites the crontab line.

A pass started with runtime: process runs with a built-in environment (the base variables, LC_ locale variables and the platform’s own values) plus the variables process.env_keep names, so on such a host a variable a pass needs from the tick’s environment (a forge token, LOCK_TIMEOUT) is listed there as well.

The host-local account launch weights file

The dispatcher reads $JIG_HOME/weights.local.yaml (~/.jig/weights.local.yaml by default) at the start of every tick and again once the tick holds the act lock; the second reading is the one that governs the tick’s retirement of stale notices, its planning and its admission, so an edit made while the tick observed still applies to that tick. This optional file belongs to the host, beside dispatch.yaml; it is not repository configuration and requires no restart, install or commit. If JIG_HOME is inside a Git repository, add weights.local.yaml to that repository’s .gitignore or local .git/info/exclude before creating it. Keep the file out of version control.

yaml
accounts:
  work: 75
  spare: 25
  reserve: 0

accounts maps names from the machine file’s accounts list to finite weights from 0 to 100, including fractions. An absent file or an account not named in it means weight 100. A weight of 0 pauses new launches on that account, including re-arms, pickups, follow-ups, steward passes and takeovers, without stopping sessions already running there. It composes with the dispatcher’s existing quota walls: while a wall holds, the effective weight is 0; after its reset, the configured weight applies again. Quota walls represent the usage limits the dispatcher currently knows.

Weights divide new launches among accounts able to take one now. They reserve no concurrent slots. accounts[].max_per_account remains the safety ceiling on concurrent sessions, while walls, vendor requirements and an account’s stages also constrain admission. An account unavailable for any of those reasons leaves its share to the others, with no launches owed when it returns. The sequence is derived from launch records, so it survives ticks without a separate allocation counter. Each new launch record keeps its account’s cumulative launch count; retention keeps the greatest count’s record per account, so deleting older records cannot reset the weighted sequence. Records from an older plugin without this count fall back to the retained launch count. Equal weights retain the existing account turn order.

The receipt, terminal report and dashboard account view show each configured and effective weight with its reason. An unreadable or malformed file, an unknown section, an invalid accounts mapping or a weight outside the range on an account the machine file lists closes every account for new launches, and reports why. This prevents a broken file from resuming an account the host paused; fix or remove the file to resume admission on the next tick. An accounts name the machine file does not list gives no listed account a weight, so it is skipped and the file’s other weights apply: every account’s reason names the skipped names, and from the first tick that reads them the host raises one notice naming the file, the skipped names and the accounts the machine file lists. The notice goes where the host’s own failures go (the first repository it owns with notify enabled whose turn is not failing, else the first it owns with notify enabled), is told once for each set of skipped names wherever it is told (again after renotify_after while the set stands), and retires at the first tick that reads none. A host that owns no repository with notify has only the reasons. Because an account the file does not name has weight 100, a misspelt name for an account meant to be paused leaves that account taking launches; the notice is how a person learns of it. The shared document can also hold lanes; each reader validates only its own section, so an invalid lanes section does not change the account weights.

When an outside system refuses or does not answer

Every call to the forge and the issue trackers fails as one of a closed set of failure classes, read once, by the call’s transport, from the answer; nothing reads a message to tell them apart. What a host sees:

ClassWhat it meansInside the callAt the tick
rate-limitedthe system refused the credential until a resetnot sent againnot a failure before its reset: the repository’s row in the failure ledger is neither counted nor cleared, and the tick exits 0
unreachableno answer: the name did not resolve, the connection failed, the deadline passeda tracker read is sent once more after a backoff of about a second, within the call’s deadline; a forge read and every write are notthe system is asked nothing more in this tick, and the next tick sends it one request alone and reads on only when it is answered; the tick exits 0 until the repository’s row reaches failures.notify_after
server-faultthe system answered at once with a 5xx statusas unreachableas unreachable
too-costlythe system ran out of time on the request, or gh did not finish within its deadlinethe dispatcher’s paged reads ask again for half the pagethe tick exits 0 until the repository’s row reaches failures.notify_after
unauthorizedthe credential is missing, expired or refusednot sent againthe tick exits 1, and a person is told at once, through the host’s home repository when that one still opens: the repository’s row counts as failures.notify_after failures. A tracker the process has no credential for at all (no Linear key, and a linear client that is not logged in) is asked nothing after the first call: the receipt names it once (noCredential, with the variables looked for), no repository’s turn fails for it, the issue preflight asks and holds no account for it, each repository whose reading the missing credential cut keeps its tracker part of the line from the last reading that had a credential (trackerKept; one read before the credential was lost keeps its fresh reading, and a credential found missing only when a launch revalidates it, after the repository readings succeeded, cuts none and keeps none), and the tick exits 9 when nothing else failed (1 when something did), its own row in the failure ledger counted as told at once and naming the missing key; jig doctor lists the ticks of the last day that ran so, with their callers, and warns instead of failing once the newest tick since read the repository with a credential
not-foundwhat was asked for does not exist or is not visiblenot sent againan absence, read as such: a parked drive’s thread answered this way stays on its row and fails nothing; another item’s read fails the turn
invalidthe system refused the request as malformed, or answered in a form that does not readnot sent againthe tick exits 1, and the failure ledger tells a person at failures.notify_after

The same holds for a read the tick makes for one item: a pull request’s comments (its drive ledger, its launch claims, its follow-up markers), the answers to a parked drive’s review thread, the head of a conflicting drive’s base branch, and the claim markers on a claimed tracker item. The item’s row in the report carries the class of the call that failed, and the repository’s turn follows that class as above, except a parked drive’s review thread answered not-found: the credential cannot see it, which is an absence, and an absence is an answer. It stays on the item’s row in the report, and fails neither the repository’s turn nor the tick, counts nothing in the failure ledger and tells nobody; the park stays unanswered. Any other per-item not-found, such as the head of a base branch that is gone, is a failed read, so the tick exits 1 as for invalid, with notification at failures.notify_after. A read that answered in a form that does not read, such as a damaged ledger or marker, carries no class and fails the turn.

A repository whose forge read waits shows, in the tick’s report, the last reading a tick took whole, with its time and its age. A tick’s receipt names each system it held (unanswered). A tracker read that was sent once before can now send two requests; a Jira read refused with HTTP 429 is no longer sent again within the call, and fails rate-limited until its Retry-After. tracker.ts exits with one code per class (do-item’s tracker operations): exit 5 and its RATE-LIMITED until <time> line keep their meaning, and a failure that exited 1 before now exits 6 to 11 when a call to the tracker caused it.

The hub’s settings file

The optional hub reads its own settings from $JIG_HOME/hub/settings.yaml (default ~/.jig/hub/settings.yaml) of the hub’s OS user, or the file jig hub serve --settings names; a repository cannot set it. jig hub serve, jig install hub and jig doctor hub read it. The file must be mode 0600 and owned by the hub’s user, and its database directory mode 0700: the hub refuses to start, and jig doctor hub fails, otherwise. An unknown key is refused.

KeyDefaultMeaning
userjig-hubThe OS user the hub runs as; jig install hub runs only as this user, never as root or the dispatcher’s user
database~/.jig/hub/dataThe database directory, holding hub.sqlite
host.listen[127.0.0.1:7461]Where /v1/ listens: loopback or private-network addresses, host:port or [v6]:port; never 0.0.0.0, ::, a link-local (fe80::/10) or a public address
webhooks.listen127.0.0.1:7462Where the webhook listener listens, the address a tunnel forwards /webhooks/ to; the same ranges
feed.socket, feed.group~/.jig/hub-feed/feed.sock, noneThe feed’s Unix socket and the front’s group: the socket’s directory is mode 0700 and the socket 0600, or with a group the directory is 0710 with that group and the socket 0666 inside it
feed.listen, feed.secretnoneInstead of the socket: a loopback address, and the secret of at least 32 characters the front sends in x-jig-front-secret

plugin/hub/README.md says how to set the hub up.

Priorities

Two files declare priorities, neither of them in .config/jig.yaml: a repository’s priorities record and the host’s weights file. The dispatcher reads both on every tick and reports the shortlist they give beside what it started. They change what it starts only on a host whose machine file sets priorities.enforce: true: there its pickups start in the ranking’s order. The priorities skill validates and prepares a change to either; the design, with the ranking rules, is design/priorities-and-overview.md.

The priorities record

.config/priorities.yaml, format priorities/v1, read from the repository’s default branch by the owner host’s dispatcher. A repository needs no other level’s record: the site level is the optional hub’s and a host never requires it.

yaml
format: priorities/v1      # optional; when present it must say priorities/v1
level: repository          # site, repository or individual
scope: acme/widgets        # what the level covers: the repository's owner/name here
revision: 3                # a whole number from 1; raise it with every change
objectives:
  - id: checkout-flow
    class: core            # core, tactical or peripheral: the lane its work falls in
    purpose: Customers can pay without leaving the page
    endState: The new checkout is the only checkout in production
    owner: payments maintainers
    epics:                 # tracker scope plus epic keys or labels
      - scope: acme/widgets
        keys: ["#120", "#131"]
    share: 0.6             # optional: a fraction of the core lane's starts
  - id: docs-refresh
    class: peripheral
    purpose: The guides match the product
    endState: Every guide was checked against the current release
    owner: docs maintainers
    epics:
      - scope: acme/widgets
        labels: [docs]
FieldValueMeaning
level, scope, revision, objectivesrequiredThe envelope. Any field other than these and the optional format is refused
objectives[].ida string, unique in the recordThe objective’s stable name; a claim’s charge records it
objectives[].classcore, tactical or peripheralThe lane its work falls in
objectives[].purpose, endState, ownernon-empty stringsWhy it matters, how anyone can tell it is done, and the role that answers for it (a person only in a host’s own record)
objectives[].epicsa non-empty list of {scope, keys, labels}, each with at least one key or labelThe tracker work it covers: those epics and their children, or the issues carrying those labels
objectives[].refsa non-empty list of {level, scope, id}Instead of epics: objectives of another level it follows. Exactly one of epics and refs
objectives[].sharea number from 0 to 1Optional: its fraction of its lane’s starts. Without one it takes an equal part of what the explicit shares leave. A lane’s shares above one are refused

An item’s allocation owner is the first objective, in record order, that covers it; its other memberships are shown, never counted. A record that does not validate blocks objective allocation, and the report shows the problem with the last valid revision and its age. There is no slot count: capacityLimit, limits and peripheralFloor are refused as unknown fields.

The weights file

$JIG_HOME/weights.local.yaml (~/.jig/weights.local.yaml by default), the host’s own and never committed. The dispatcher reads it again on every tick, so a change takes effect on the next tick with no pull request or restart.

yaml
lanes:
  bug-other: 15
  core: 50
  tactical: 25
  peripheral: 10
FieldValueDefaultMeaning
lanes.core, lanes.tactical, lanes.peripheral, lanes.bug-othera number from 0 to 10050, 25, 10, 15The lane’s weight; its share of the weighted starts is its weight over the sum of the weights in rotation. 0 takes the lane out of rotation. The peripheral weight is also a floor owed across the week
accountsEach account’s weight for its share of new launches (issue #1402). Accepted and not yet read

urgent (Urgent issues) and bug-high (assigned High bugs) have no weight: they come first and next and count toward no share. A report ranks the pickups the tick read (an Urgent issue outside that pool is not in it) and lists the first 10 positions of the shortlist; under priorities.enforce the ranking places every pickup the tick read, and the report lists the order they start in. A missing file or entry means the default. The file fails closed: an entry outside 0 to 100 takes that lane out of rotation, and an unknown lane or section, or a file that is not YAML, takes every weighted lane out. The tick report names each problem. Under priorities.enforce a lane out of rotation starts nothing: a broken file leaves only Urgent issues, High bugs, unallocated work and the pickups the ranking did not place to start until it reads again.

Complete example

The example shows custom reviewer marker overrides; the hidden comment markers chapter gives the built-in values. Set the corresponding fields only for an override.

Every section, with values a typical repository might set. Copy only what differs from the defaults. The fields only a host sets are not here, since a repository’s file refuses them: clones and a host’s opt-in to bypass.

yaml
gc:
  kinds: [tool-state]
  worktree_roots: [../worktrees]
  scratch_prefixes: [/tmp/example-test.]
  regenerable_paths: [.fallow, dist]
dispatch:
  identity: example-factory
  person: example-maintainer
  states: [todo]
  followup_command: /post-merge
  stalled_after: 30m
  stalled_scope: claimed
  stalled_relaunch: finish-once
  missing_priority: hold
  blocked_after: 30m
  drive_rounds_flat: 3
  pickup_within: 2h
  pickup_deadline: 3h
  allowed_providers: [anthropic, openai]
  overlap:
    max_per_file: 4
    patience: { urgent: 0, high: 30m, medium: 2h, low: 6h, none: 6h }
    file_rate: 0.5
    area_rate: 0.2
    unknown_cost: 0.5
    ignore: [CHANGELOG.md]
    quiet_after: 336h
    bound_patience: 24h
  followup_within: 1h
  followup_stale_after: 24h
  followup_routine: [local-leftover, person-owed, drafted-items]
  notices_linger: 1h
  notices_branch: jig-dispatch-notices
  renotify_after: 24h
  reviewer_failures_before_escalation: 3
  labels:
    enabled: true
    prefix: "jig:"
    only_labeled: false
  adopt:
    enabled: true
    authors: [example-factory]
    within: 168h
    trusted_automation: false            # request each listed bot's drive or rearm by hand
  pool:
    states: [todo]                       # needs do_item.claim_marker: true
gates:
  command: make check                    # required by resolve-review-comments
  dispatch_fast: false
review:
  bots:
    - example-review[bot]
    - login: example-confirmation[bot]
      confirmation_marker: "<!-- example-confirmation -->"
      chat_marker: "<!-- example-chat -->"
  deferral_team: ENG
  repo_label: web
  repo_slug: example/web
  job_pattern: "^AI review"
  required_checks: ["AI review"]
  scanner_apps: [sonarqubecloud]
  taxonomy:
    types: [bug, feature, chore, docs]
    repos: [web, api]
    sizes: [xs, small]
    categories: [correctness, security, tests, docs, style]
    context_prefixes: ["area:"]
    ownership_prefixes: ["team:"]
    provenance_label: pr-followup
    epic_label: epic
  reviewer_app: example-review
  reviewer_check_pattern: "^ai[ _-]?review(\\s*\\(.+\\))?$"
  reviewer_evidence: sticky             # sticky | review_object
  reviewer_poll_max_seconds: 300
  draft_skipping_reviewers: [coderabbitai]
  sticky_marker: "<!-- example-review-summary -->"
  reviewed_sha_marker: ai-reviewed-sha
  skip_notice_marker: ai-review-skip-notice
  skip_excluded_paths: [package-lock.json] # match the reviewer's exact exclusions
  severity_formats:
    - login: example-linter[bot]
      shape: badge                       # bold-token | badge | html-badge | pipe-fields | icon-fields
      severities: { Sev1: blocker, Sev2: high, Sev3: medium, Sev4: low }
  code_scanning_severities: { critical: blocker, high: high, medium: medium, low: low, error: high, warning: medium, note: low }
  lenses:
    dir: .config/review-lenses           # the repository's own lens files
    off: [LENS-004]                      # lenses not to run
    triggers:                            # appended to a lens's own trigger
      jig.swallowed-failure:
        added_lines: ['\bunwrap_or_default\(']
        exclude: ["spec/**"]
repository:
  base_branch: develop                   # default: the repository's default branch
  remote: upstream                       # default: origin
pull_requests:
  stacking: branch                       # none | native | branch
  max_stack_depth: 4
  open_as: draft                         # draft | ready
  mark_ready: 1                          # after round N | converged | never
  branch_name: "feature/{key_lower}-{slug}"
  issue_link: closes                     # closes | refs | none
  size_budget: 600
  labels: [agent-authored]
  labels_from_issue: { "kind:db-migration": needs-dba-review }
  reviewers_from_issue: { "kind:db-migration": ["@org/dba"] }
  title_format: pattern                  # conventional | free | pattern
  title_pattern: "{key}: {summary}"      # with title_format: pattern
  base_rules:                            # first match names the base; else the integration branch
    - when: { labels: ["fixversion:2.4"] }
      base: release/2.4
  commit_prefix: "{key}: "               # every commit message starts with the key
  trusted_automation:                    # bots whose converged pull requests count as the repository's own
    - login: renovate[bot]
      update_types: [patch, minor, pin, lockfile]
    - dependabot[bot]
drive:
  validation_plan_command: "<your plan command>"   # changed files on stdin, JSON plan on stdout
  load_guard_command: "<your load-guard command>"  # returns once the machine can take heavy checks
  dependency_install: { "bun.lock": "bun install --frozen-lockfile" }
  change_areas_catalog: docs/change-areas.yaml
  reviews_drafts: true
  status_poll:
    waiting_share: 0.25                  # waiting polls slow below this fraction of either REST core or GraphQL
    max_interval_seconds: 300
  max_rounds: 10                         # default round budget of a drive; --max-rounds overrides
  max_total_rounds: 8                    # round ceiling per pull request, across re-arms; at most 50
  max_wall_clock_hours: 12               # optional: hours a pull request may be driven from its first launch
  churn_rounds: 4                        # rounds of non-blocking findings on one file before the drive parks; 0 off
  pass_deadline_retries: 2               # passes a drive restarts (deadline or background task)
  ci_repair_rounds: 2                    # CI-repair passes per head and failing check; 0 stops on red
  pass_model: sonnet                     # a model id, an alias or a routing tier; --pass-model overrides
  escape_baseline_doc: docs/review-loop-baseline.md
autonomy:
  level: attended                        # attended | unattended | wide
  max_level: unattended                  # the ceiling a person's layer may choose up to
  off_hours:
    level: unattended                    # inside a window; capped by max_level
    schedule: ["Mon-Fri 20:00-07:00", "Sat-Sun", "Mon 00:00-07:00"]   # machine local time
  park_classes: [ready, merge, release, scope, human-thread, reviewer-posture, next-item, reopen-or-waive, dark-dial, rules, destructive, legal, copy]
ci:
  required_checks: [build, test]
  hold_label: ci:hold
  hold_sentinels: []
  advisory_checks: []
  rerun_failed_once: true
  log_command: bun scripts/ci-log.ts       # input and exits: see the Protocol's repo-commands chapter
  repair_skill: ci-support                 # the skill a CI-repair pass loads
issue_tracker:
  adapter: linear                        # or jira, or github, the default
  team: ENG                              # required by the Linear and Jira adapters
  person_checks: ENG-123                  # standing open issue for person-only checks
  file_command: /jig:file-issue
  taxonomy: docs/label-taxonomy.yaml
  states:
    triage: Triage
    backlog: Backlog
    todo: Todo
    in_progress: In Progress
    pr_open: Awaiting Review             # optional; unset, no item moves there
    blocked: Blocked                     # optional; unset, no item moves there
    in_review: In Review
    ops_pending: Ops Pending
    done: Done
    canceled: Canceled
    duplicate: Duplicate
  labels:                                # label role -> the tracker's label
    epic: epic
    hitl: hitl                           # facets: hitl:<stakeholder>
    manual_ops: manual-ops
    followup: pr-followup
    bug: [bug, type:bug]
    pattern_prefix: "pattern:"
    batch_sizes: [xs, small, medium]
    extractable_tails: [hitl, hitl:legal, hitl:tactical, manual-ops, pr-followup]
    epic_types: [Epic]                   # Jira, GitHub: issue types that are epics
  facets:                                # where type, priority and size are kept
    priority: { store: native }          # Linear's priority field, the default
    size: { store: label, prefix: "size:" }
  types:                                 # work type -> the labels that mark it
    bug: [bug, type:bug]                 # default: labels.bug
    feature: [feature, type:feature]
    improvement: [improvement, type:improvement]
    task: [task, type:task, chore]
    spike: [spike, type:spike]
  github:                                # read by the github adapter only
    repository: acme/app                 # default: the git remote's
    states_from: project                 # default: labels
    project: https://github.com/orgs/acme/projects/1
    status_field: Status
    priority_labels:
      urgent: "priority: urgent"
      high: "priority: high"
      medium: "priority: medium"
      low: "priority: low"
  jira:                                  # read by the jira adapter only
    site: https://example.atlassian.net  # required by the jira adapter
    api_base: https://api.atlassian.com/ex/jira/11223344-a1b2-c3d4-e5f6-001122334455  # default: requests go to site
    issue_type: Task
    states_by_type: { Epic: { in_progress: In Delivery, in_review: null } } # default: the repository state map
    subtask_type: Sub-task               # default: the project's one sub-task type
    priorities: { urgent: [Highest, Blocker], high: High, medium: Medium, low: [Low, Lowest] }   # a list: each read, the first written
    resolutions: { done: Done, canceled: ["Won't Do", "Won't Fix"], duplicate: Duplicate }
    link_types: { blocks: [Blocks, { name: Depends, inverted: true }], related: Relates, duplicate: Duplicate }
    field_labels: { Size: "size:" } # a field's values read as labels
    pool_issue_types: [Task, Bug]        # default: every issue type
    blocked_fields: { reason: Blocked Reason, since: Blocked Since }   # default: no field is written
do_item:
  agents:
    default: general-purpose
    integrator: integrator
    catalog: { api: backend-dev }
    codearea_areas: { "area:billing": billing }
    labels: { frontend: frontend-dev }
    title_keywords: { migration: backend-dev }
  scouts:
    backend-dev: [schema-scout, api-scout]
  gates:
    - { labels: [db-migration], paths: ["migrations/**"], skill: db-migration-review }
  guidance:
    - { labels: [db-migration], paths: ["migrations/**"], skills: [jig:review], notes: "Add a rollback beside every forward migration." }
  execution_plan_block: execution-plan-v1
  arm_drive: auto                        # auto | tab | background | print
  preflight_command: "<your start-rules command>"   # input and exits: see the Protocol's repo-commands chapter
  claim_from: [todo]                     # canonical states a claim may start from
  claim_marker: true                     # a claim marker, the claim's token across hosts (dispatch.pool needs it)
  override_label: started-early          # added when a person starts an item ahead of its open blockers
  post_merge_state: done                 # done | ops_pending | in_review; short of done needs issue_link: refs
  post_merge_closer: the release lead    # who closes an item left short of done
  work_types:                            # fields of the depth table to override
    task: { review_skip_lines: 80 }
orca:
  board: { in_review: review, completed: shipped }   # custom board columns
work_batch:
  point_budget: 16
  size_points: { xs: 1, small: 2, medium: 6 }   # keys: exactly issue_tracker.labels.batch_sizes
  max_items: 6
  solo_flags: [privacy-review]           # added to the derived solo-only flags
  sizes: [xs, small, medium, large, xl]
  ranking:
    sizes: { xs: 2, small: 1, medium: 0 }
    provenance: 3
    shared_area_label: 1
file_issue:
  sweep:
    move: false                          # comment on an incomplete issue, never move it
routing:                                 # absent: routes derived and printed, none applied
  complex_flags: [has-migration, api-change, dpa-relevant]
  types:
    feature: { effort: max }
  raise:
    flags: catalog
    sizes: [large, xl]
    reviews: true
  models:
    claude-code: { simple: sonnet, standard: sonnet, complex: opus }
    codex: { complex: sol }
  model_tiers:
    codex: { gpt-house: { tier: strategic, reason: "our gateway's flagship" } }
  family_tiers:                          # the older spelling, read as model_tiers entries
    codex: { terra: { tier: execution, reason: "the provider serves Terra as listed" } }
  stages:
    steward: { models: { codex: { complex: gpt-house } } }
  efforts:
    codex: { max: xhigh }
fleet_health:
  config: .config/fleet-health.yaml
  snapshot_dir: ~/.local/state/jig/dashboard
verify:
  store: ~/.local/state/jig/evidence     # usually set in the user file
  output_lines: 60
  timeout_minutes: 30
  retention_days: 30
adr:
  directory: docs/adr
  rules_file: docs/adr/rules.yaml
sheets:
  repositories:
    beta: ../beta
descar:
  lint_command: "bun scripts/check-descarring-scars.ts"
docs:
  root: docs
  schema: docs/.frontmatter-schema.yaml
  stale_after_days: 180
  promoted_statuses: [approved, active]
  index:
    preamble: docs/.index-preamble.md
    descriptions:
      guides: How-to pages for contributors
    descriptions_from_readme: true
    order: [guides, architecture]
    frontmatter:
      title: Documentation index
      type: reference
      tags: [navigation]
promote_memory:
  lint_command: "<your memory lint> --dir {dir} --file {file}"
  target_dir: docs/retrospection
fix_ci:
  regenerate_commands:
    - bun run generate:api
resolve_conflicts:
  generated:
    - paths: ["src/generated/**"]
      command: bun run generate
  sequenced_migrations:
    - directory: db/migrations
      journal: db/migrations/journal.json
      snapshots: ["db/migrations/meta/{sequence}.json"]
      command: bun run rebuild:migrations
  hotspot_min_merges: 3                 # default: 3
  obligations:
    - check: Preserve the repository's validation guards in every resolved hunk.
    - check: The complete resolved result passes its configured checks.
      command: bun run gates
github_actions:
  conventions_doc: docs/ci.md
design_brief:
  kit: docs/design-kit
  design_language: docs/design.md
  prototypes: design/prototypes
  handback:
    forbidden_terms: [Retired Example]
    widths: [390, 768, 1440]
    rubric: docs/design-kit/rubric.md
    scorecard: design/prototypes/review-scorecard.md
    browser_executable: /usr/bin/chromium
decide:
  policy_files: [AGENTS.md]
  rules_directory: .claude/rules
  glossary_file: CONTEXT.md
  architect_agent: architect
  escalation_labels: [agent:architect]
explain:
  figure_build_command: "<your figure build command>"
reflection:
  enabled: true
  store: filesystem
  path: ~/.jig/reflections
  command: "<your store command>"
  notion:
    database: 0123456789abcdef0123456789abcdef   # the id init printed, or a link
  github:
    repository: example/reflections      # owner/name
  journal: .scratch/reflection-journal.jsonl
  classes:
    - slug: missing-guard
      shape: A required check is absent from a reusable workflow.
  classes_from: ~/.jig/reflection-classes.yaml
  escalate_after: 3
  timeout_sec: 120
  mode: quick
changelog:
  file: CHANGELOG.md                     # setting it turns the changelog skill on
  format: keep-a-changelog               # default: detected from the file
  notes_dir: changes
  version:                               # default: derived from package.json, pyproject.toml, Cargo.toml
    files:
      - { path: package.json, key: version }
  release_paths: [src/]                  # a change here needs a note that asks for a release
  note_paths: [docs/]                    # a change here needs a note
  placeholders:
    - files: ["docs/*.md"]
      from: "since: next"
      to: "since: {version}"
  after_version: npm install --package-lock-only
  unreleased: write                      # Keep a Changelog only: write | wait
  authors: true                          # Common Changelog only
  tag_prefix: v
  release:
    push: direct                         # direct | pull-request
    branch: changelog-release
    rerun_failed_gates: 1                 # 0 disables failed-check retries
    tagged_by: workflow                  # workflow | person: who creates the tags
  consumer_actions: true                 # a breaking entry declares a consumer action
  consumer_actions_record: consumer-actions.json  # Keep a Changelog only
code_stats:
  areas:                                 # ordered, first match wins; replaces the default areas
    - name: product
      description: The shipped applications
      paths: ["apps/**", "packages/**"]
    - name: content
      paths: ["content/**"]
      content: true                      # YAML and JSON here are data
  default_area: production
  kinds:
    test: ["scripts/smoke-*.sh"]
  modules: ["apps/*", "packages/*"]      # default: from the workspace manifests
  classify_command: "<your classify command>"   # paths on stdin, JSON lines on stdout
followup:
  off: [workspace-board]                 # core arms this repository does not run
  authority:
    file-items: ask                      # tighten an act; a looser level is refused
  arms:                                  # the repository's own arms
    - id: docs-site
      when: [docs]
      instructions: .config/followup/docs-site.md
    - id: verify
      skill: /team:verify
specs:
  adapters: [body]                       # default: every layout present, then body
  body_section: Spec
  verification_section: Verification

Outbound cost reports

The cost ledger needs no configuration. It shares ~/.local/state/jig/tracker/budget.sqlite with the budget record, preserving the existing table and adding hourly totals in outbound_cost. Each row names the system, a hashed credential key, operation, caller and unit, and totals requests, cost, duration, estimates, unknown costs and failure classes. A GitHub row also names, in outbound_cost_quota beside it, the hashed key of the quota owner whose record it spent and the window it spent: requests (core), complexity (GraphQL), search, none (the rate_limit endpoint) or unknown. The window comes from the answer’s x-ratelimit-resource header where the answer shows headers, else from the gh api route, else from a table of the subcommands Jig runs (gh pr view spends GraphQL points, gh run list core requests); a subcommand the table does not know is unknown, never guessed. A row written before owners were kept names neither, and the reports infer its window from its unit and operation. A row whose requests include conditional reads GitHub answered 304 Not Modified counts those answers in outbound_cost_not_modified beside it, so a route’s unchanged re-reads show apart from its other requests. Where the call’s repository is known (the gh path reads it from the command line: -R/--repo, a repos/<owner>/<repo> route, a GraphQL request’s owner and name variables, else GH_REPO), the part of the row that repository took is kept in outbound_cost_repository beside it. The ledger holds 7 days; an unavailable database never stops an outbound call.

jig budget [--hours <1..168>] [--json] reads the last 24 hours by default, with per-operation, per-caller and per-repository totals (requests, how many of them were answered 304 Not Modified, cost) and the latest known balances. Spending on no known repository, which includes every row written before repositories were kept, is grouped as (no repository); --json lists the groups under repositories. A call that had no credential (no Linear key, and a linear client that is not logged in or not installed) spent nothing: it is kept under no credential with no requests, and listed apart, under its system’s reason (no Linear key configured), with how many calls and which callers had no key (noCredential in the JSON). A logged-in linear client’s calls are its own login’s, labelled as such (credentialLabel), never shown as a hashed key. Waiting drive status probes record drive-status poll wait and drive-status poll skipped in the polls unit. Budget delays append (REST core) or (GraphQL) to the operation and name the limiting window. The driver’s optional final-CI and takeover polls have their own operation names. The wait rows record time and the skipped rows estimate how many polls the base cadence would have made. Both report zero requests and spend zero quota.

The dispatch receipt’s outbound section shows the tick’s own spending and costliest operations per system. Linear reports measured complexity points; GitHub reports points when the query includes its cost, with unknown or estimated costs marked separately, and each window’s spending (by window), estimates and an unknown window shown as such. The ledger contains no request payloads or raw credentials. A caller identifies one tick, one pass and its stage, or a skill a person ran.

A calls-failing need appears once per caller and system when a caller outside the tick and its passes has at least 20 calls to the system, in the ledger’s last hours, that were all refused as unauthorized or invalid under credentials that never succeeded; it is withdrawn once the ledger holds no such calls.

A low-quota need appears once per quota when the prior hour’s spending would empty the balance before refill and is withdrawn when that projection clears. Forecasting weights partial hourly buckets assuming uniform spending, credits continuous refill and honours fixed-window resets. Unknown complexity costs cannot drive a points forecast. Other applications’ spending is visible in the balance but cannot be attributed to Jig’s operations. These reports add no GitHub admission window and no dashboard quota view.

Source: plugin/CONFIGURATION.md