Repository navigation
Releases
0.10.4
What changed: jig release publishes and verifies a release on a private
product repo. Up to 0.10.3, publish read each release file back with no
login, which fails on a private repo after the tag and the GitHub release are
made.
publish now reads the visibility of the product repo with the project's
token, the field private of GET /repos/<owner>/<repo>, as a check of its
own after the merge check and before the tag; --dry-run reads it too. It
prints the repo <owner>/<repo> is public or the repo <owner>/<repo> is private. When the visibility cannot be read (the token file, an HTTP error,
no JSON, or a field that is not true or false), publish stops there with
one line that names the repo and the reason, before any action.
On a public repo the release files are read as before, with no login. On a
private repo the release is read by its tag through the API with the token,
and each file through the release asset API. A request with the token follows
no redirect; the redirect to a file is followed with no login. This holds for
the readback, for the check of the files that a rerun finds, and for verify.
The step the readback with no login is now the readback, and its last line
ends with no login or with the token.
verify steps: the visibility, the published files, the tag, and the CI state
of master: the badge of ci.yml on a public repo; on a private repo, the
newest completed run of ci.yml on master, read with the token, which must
have the conclusion success. The step "the repo is public" is gone, so
verify no longer fails on a private repo. verify needs the token file on a
public repo too; without it, it fails at the visibility with one line.
The template CLAUDE.md of jig new: the section "Commit message standard"
says the history of the product is written for a public reader, because a
private product can become public later.
Files and formats: changed files: libexec/jig-release with its help text, and
the template CLAUDE.md under templates/new/dev/. New output: the visibility
line, and the last line of the readback. The ledger, the trace and the conf
file are unchanged.
Migration: a host and its projects move from 0.10.3 to 0.10.4 in this order. A
host still on 0.10.2 first takes the migration of 0.10.3, or takes both at once
with jig upgrade 0.10.4 and the steps of 0.10.3 after it.
- As the orchestrator account, run
jig upgrade 0.10.4. It installs 0.10.4
under/opt/jig/0.10.4/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.10.4as the orchestrator
account. It setsJIG_VERSION=0.10.4in the conf file of the project in
each role account, and refuses while a unit holds a lock. Check in each
account that the conf file of the project readsJIG_VERSION=0.10.4. - The orchestrator of each running project replaces, in the section "Commit
message standard" of the project's ownCLAUDE.md, the sentence "The
history of the product is public." with "The history of the product is
written for a public reader, because a private product can become public
later."jig upgradechanges no file of a project's repo. verifynow needs the token file~/.config/jig/<project>-tokenof the
implementer account on a public repo too, aspublishdoes.- A project with a private product repo runs
jig release <project> publish --dry-runbefore its first publish with 0.10.4; it must printthe repo <owner>/<repo> is privateand exit 0.
Requested by: another project, whose release of a private product repo failed
after the tag.
Units: 0 minor, 1 patch, 4 none
0.10.3
What changed: jig orch announces an idle orchestrator. When the project has
no running unit, the loop sends one event for each idle period,
idle: no unit since <HH:MM>; start the next step, or write why you wait in ...,
unless the orchestrator has written why it waits, after the last unit, in the
waiting file ~/ws/reviews/<project>/orch/waiting (one line: date -Iseconds,
a space, the reason). jig orch <project> status prints that line as
waiting: <line>, or waiting: none. A unit that starts again ends the
period, and so do three busy polls in a row.
jig batch appends one line to the event file when it refuses a batch file,
batch: <file> refused: <reason>, and when a batch ends,
batch: <file> ended: <exit code>; a batch stopped by a signal ends with 128
plus the signal number.
jig wait exits 8 when a unit waits at its input prompt, with no running turn,
and holds a commit in one of its clones that is not pushed. jig batch shows
what jig wait printed at that end and waits for the unit again.
jig report no longer refuses an implementer report because of a spec
writer's vector commit pushed while the unit ran, when that commit changes only
the vector directory and its ledger entry, the start line of the spec writer's
unit and the copy of that unit's prompt are on origin. When only the prompt copy
is missing, the refusal names that unit and says to run jig report again after
its log commit. Each refusal ends with its reason in parentheses.
The status line: after a reset of the use that keeps its reset time, the 5 h
and weekly use now fall to the new value. usage.json gains the keys
shown_at and sessions beside the old ones.
The templates of jig new: ORCHESTRATOR.md gives the rule of the end of a
turn (an orchestrator that waits writes the waiting file first), the form of
the waiting file, the idle and batch event lines, and the rule of a refused
push. CLAUDE.md and the prompt template give the rule of a refused push: fetch,
rebase the unpushed commits and push again, up to 3 rounds while git reports no
conflict; a conflict, or a refused push in the third round, is an escalation; a
unit that cannot push its report also writes it to
~/ws/reviews/<project>/<ID>-report.md.
Files and formats: changed files: libexec/jig-orch, libexec/jig-batch,
libexec/jig-wait, libexec/jig-report and libexec/jig-statusline, with
their help texts; templates/prompt.md, and the templates CLAUDE.md and
impl/orch/ORCHESTRATOR.md under templates/new/dev/. New formats: the
waiting file, the event lines idle: and batch:, the exit code 8 of
jig wait, and the keys shown_at and sessions of usage.json. The ledger,
the trace and the conf file are unchanged.
Migration: a host and its projects move from 0.10.2 to 0.10.3 in this order. A
host still on 0.10.1 first takes the migration of 0.10.2, or takes both at once
with jig upgrade 0.10.3 and the steps of 0.10.2 after it.
- As the orchestrator account, run
jig upgrade 0.10.3. It installs 0.10.3
under/opt/jig/0.10.3/and points/opt/jig/currentto it. The status
line changes for every account at the install, with no step. - For each project, run
jig upgrade <project> 0.10.3as the orchestrator
account. It setsJIG_VERSION=0.10.3in the conf file of the project in
each role account, and refuses while a unit holds a lock. Check in each
account that the conf file of the project readsJIG_VERSION=0.10.3. - For each running project, restart its loop as the orchestrator account,
withjig orch <project> stopand thenjig orch <project> start, so that
the loop runs the new code and the idle event is live. - The orchestrator of each project copies by hand into the project's own
impl/orch/ORCHESTRATOR.md, from the template of 0.10.3 under
/opt/jig/0.10.3/templates/new/dev/impl/orch/: the section "The end of a
turn" with the form of the waiting file, and the handling of the idle and
batch event lines.jig upgradechanges no file of a project's repo. - The orchestrator copies the rule of a refused push (3 rounds; a conflict or
a third refusal escalates; the report also in
~/ws/reviews/<project>/<ID>-report.md) into the project's ownCLAUDE.md
andimpl/orch/ORCHESTRATOR.md, from the templates of 0.10.3 under
/opt/jig/0.10.3/templates/new/dev/, in place of the older rule of one
rebase. - Nothing more for the specwriter and implementer accounts.
Requested by: two other projects: one, whose orchestrator sat idle for hours
with no event; the other, whose vector commit was refused while two batches
ran. The rest: found in the code review of the line.
Units: 0 minor, 3 patch, 8 none
0.10.2
What changed: jig trace check, in its search of the tree before the import,
skips each file that git reads as binary, as git grep -I does, a file with
the binary attribute included. A binary file gives no line. 0.10.1 read
binary files too, and could report IDs that no trace entry can carry.
Files and formats: changed files: libexec/jig-trace, with its help text. The
ledger, the trace, the conf file and the event formats are unchanged.
Migration: a host and its projects move from 0.10.1 to 0.10.2 in this order. A
host still on 0.10.0 first takes the migration of 0.10.1, or takes both at once
with jig upgrade 0.10.2 and the steps of 0.10.1 after it.
- As the orchestrator account, run
jig upgrade 0.10.2. It installs 0.10.2
under/opt/jig/0.10.2/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.10.2as the orchestrator
account. It setsJIG_VERSION=0.10.2in the conf file of the project in
each role account, and refuses while a unit holds a lock. Check in each
account that the conf file of the project readsJIG_VERSION=0.10.2. - Nothing more: no file of a project's repo changes, and nothing changes for
the specwriter and implementer accounts.
Requested by: another project, because the check read binary files of its
tree.
Units: 0 minor, 1 patch, 1 none
0.10.1
What changed: jig trace check no longer asks for the ledger entry of any
release commit of the unbroken run at the head of the product: each commit
Release <X.Y.Z>, with the same version as the head, met by following the
first parent down from the head. A rerun of jig release <project> prepare
that adds a second release commit on top of the first therefore no longer needs
the ledger entry of the lower one before the rows run. A release commit below
an ordinary commit, or of another version, still needs its entry.
jig branch: when git refuses to switch a clone, the kept: reason gives all
of git's message on one line, and so names the files in the way. A failed fetch
still gives git's first line.
The prompt template: SESSION ECONOMY tells a unit to edit files with the edit
tool, never with a shell heredoc or a script that writes files. ROLE holds, for
a project with reference yes, the rule on a known security defect of the
reference.
The templates of jig new: CLAUDE.md has the new section "A known security
defect of the reference", and clean-room rule 1 lists jig upgrade and
jig branch beside jig start, jig wait, jig send, jig close and
jig cat. ORCHESTRATOR.md gives the watcher as
jig orch <project> events --next [<unit ID>[:<minutes>] ...], started again
when its arguments change, with the minutes of a unit given in one start only,
and has the same list for rule 1.
Files and formats: changed files: libexec/jig-trace, libexec/jig-branch,
templates/prompt.md, and the templates CLAUDE.md and ORCHESTRATOR.md
under templates/new/. The ledger, the trace, the conf file and the event
formats are unchanged.
Migration: a host and its projects move from 0.10.0 to 0.10.1 in this order.
- As the orchestrator account, run
jig upgrade 0.10.1. It installs 0.10.1
under/opt/jig/0.10.1/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.10.1as the orchestrator
account. It setsJIG_VERSION=0.10.1in the conf file of the project in
each role account, and refuses while a unit holds a lock. Check in each
account that the conf file of the project readsJIG_VERSION=0.10.1. - The orchestrator of each project copies by hand into the project's own
CLAUDE.md, from the templateCLAUDE.mdof 0.10.1 under
templates/new/: the section "A known security defect of the reference",
only in a project withreferenceyes; and the new list of clean-room
rule 1,jig start,jig wait,jig send,jig close,jig cat,
jig upgrade,jig branch.jig upgradechanges no file of a project's
repo. - In the project's own
impl/orch/ORCHESTRATOR.md, the orchestrator updates
the watcher text to the form of the 0.10.1 template (several unit IDs, each
with its minutes; a new start when the arguments change; the minutes in one
start only) and the rule 1 list, where the file still holds the older form. - Nothing more for the specwriter and implementer accounts.
Requested by: another project, for the ledger check on a rerun of prepare; the
rest: found in the use of 0.10.0 and in the code review of the line.
Units: 0 minor, 1 patch, 7 none
0.10.0
What changed: a new command, jig branch <project> <line>, moves a project to
another version line. Run as the orchestrator account at a batch boundary, it
sets BRANCH=<line> in the conf file of the project in each role account,
fetches the -dev clone and the product clone of each account, and switches
each clean clone to the line by fast-forward only. A clone with tracked changes,
local commits, a detached HEAD, a local line that is not a fast-forward, or an
ignored file that the line would overwrite stays as it was and is named with
the reason; nothing is reset, cleaned, stashed, merged or rebased. It refuses,
and changes nothing, while a unit or a batch of the project runs, or when
origin has no such line in the product or in -dev. It prints one line for
each clone and each conf file, exits 1 when any of them is not on the line, and
is safe to run again. The move to a new line after a minor or major release is
now the orchestrator's, with no owner block.
jig orch <project> events --next takes several unit IDs, each with its
expected minutes as <ID>:<minutes>, and runs one jig wait for each. When a
wait ends other than at the unit's report, the watcher prints that wait's whole
output before its line jig wait <ID> exit <code>: <last line>. A mark file
that does not hold one whole number counts as no mark.
jig trace check: an ID in a trace entry also passes when a file of its
class's defined column defines it in a form that the class's coverage reads,
such as a question's heading in QUESTIONS.md, also when the spec documents do
not name it. The refusal of an ID that passes neither way now names both parts.
The templates of jig new: ORCHESTRATOR.md has the rule for the move after a
minor or major release. The release unit pushes the new line of the product,
the orchestrator pushes the new line of -dev, commits its own changes so that
its clone is clean, and runs jig branch <project> <line>; when it exits 1, no
batch starts on the line.
Tests: versions are compared as numbers, so 0.10.0 sorts after 0.9.2 in the
dispatcher, the install, the change log, the pre-commit hook and the release
tool; each has a test of that pair.
Files and formats: new file: libexec/jig-branch. Changed files:
lib/jig_trace.py, libexec/jig-orch, libexec/jig-trace, README.md and
the template ORCHESTRATOR.md under templates/new/. The arguments of
events --next grow from one unit ID to several, each with optional minutes;
one plain unit ID works as before. The conf file, the event file, the mark and
the trace formats are unchanged.
Migration: a host and its projects move from 0.9.2 to 0.10.0 in this order.
- As the orchestrator account, run
jig upgrade 0.10.0. It installs 0.10.0
under/opt/jig/0.10.0/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.10.0as the orchestrator
account. It setsJIG_VERSION=0.10.0in the conf file of the project in
each role account, and refuses while a unit holds a lock. Check in each
account that the conf file of the project readsJIG_VERSION=0.10.0. - Restart each project's orchestrator loop, so that it loads the new
jig orch: let the session finish its step, then, from a shell of the
orchestrator account outside the session, runjig orch <project> stopand
thenjig orch <project> start. The start prints a trust line for each mark
it sets or cannot set; a line that ends innot markednames a folder whose
session will wait at the dialog. A loop that is not restarted keeps the
0.9.2 code. - The watcher,
jig orch <project> events --next, may now name several unit
IDs, each with its minutes,<ID>:<minutes>, when several units run. - After a minor or major release, the release unit pushes the new line of the
product and the orchestrator the new line of-dev; then the orchestrator
runsjig branch <project> <line>, with no block. Copy this rule by hand
into the project's ownORCHESTRATOR.md;jig upgradechanges no file of a
project's repo. - Nothing more for the specwriter and implementer accounts.
Requested by: other projects, for jig branch and for the change of
jig trace check; the rest: found in the use of 0.9.2 and in the code review
of the line.
Units: 1 minor, 2 patch, 2 none
0.9.2
What changed: jig tag checks a four-cell row of "Closed review loops" more
closely. The fix unit's report must have the first line OK or start with
OK:, and its commits: line must not be none. Of the documents in the
rows with the same review ID and fix ID, at least one must differ between the
oldest commit that adds the review's findings file and the commit to tag, so a
fix that changed no document of its review is refused.
jig orch <project> events --next [<unit ID>] is a watcher that prints the
next event and exits. It keeps a mark, ~/ws/reviews/<project>/orch/events.mark,
so a line that comes while no watcher runs is printed by the next run, and no
line comes twice. With a unit ID it also runs jig wait on that unit, and
ends with one line jig wait <unit ID> exit <code>: <last line> when the wait
ends other than at the unit's report.
The stall check, jig orch <project> status, wait-on and the state of a
running unit all find the orchestrator account the same way: ORCH_ACCOUNT of
the conf file, orchestrator when it names none. wait-on reads the activity
file of the other project in that account's home, and for a mistyped project
names the missing directory first.
make real-start, when it is stopped, also ends its worker processes and
removes the conf file, the lock and the transcripts that it made; the approved
worktree is read-only again also when it is found at the right commit.
The templates of jig new: ORCHESTRATOR.md gives a spec document or a plan
at most one review, with one fix unit for its must-fix findings and no second
review; every other finding goes to a new file, impl/orch/backlog.md. The
watcher is the command jig orch <project> events --next [<unit ID>], run in
the background and started again after each wake, in place of a watcher that
prints each line. At a rollover, the fresh session passes the running unit's
ID to its watcher. The prompt template asks a unit to wait on CI with a command
that ends when CI ends, to run tmux in tests on a server of its own
(tmux -L <name>), and, in a review prompt, to use git --no-optional-locks status in a reference checkout, because a plain git status rewrites its
index.
Tests: the tests of the looks for forks at the end of a loop hold the looking
process while they start a late fork, and skip with the reason when a busy
host cannot hold it in time in any of 3 tries. The tests of the next-event
watcher wait for its files with a bound instead of reading them a fixed time
after its start. A watcher test ends its watcher in its cleanup. A slow CI
runner no longer turns these tests red.
Files and formats: changed files: lib/jig_trust.py, libexec/jig-orch,
libexec/jig-tag, the template ORCHESTRATOR.md under templates/new/,
templates/prompt.md, tests/real_start.py and tests/real_start_end.py.
New file of a project: ~/ws/reviews/<project>/orch/events.mark, written by
the watcher. The table "Closed review loops" keeps its form; only the checks
of a four-cell row are stricter. The other formats are unchanged.
Migration: a host and its projects move from 0.9.1 to 0.9.2 in this order.
- As the orchestrator account, run
jig upgrade 0.9.2. It installs 0.9.2
under/opt/jig/0.9.2/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.9.2as the orchestrator
account. It setsJIG_VERSION=0.9.2in the conf file of the project in each
role account, and refuses while a unit holds a lock. Check in each account
that the conf file of the project readsJIG_VERSION=0.9.2. - Restart each project's orchestrator loop, so that it loads the new
jig orch: let the session finish its step, then, from a shell of the
orchestrator account outside the session, runjig orch <project> stopand
thenjig orch <project> start. The start prints a trust line for each mark
it sets or cannot set; a line that ends innot markednames a folder whose
session will wait at the dialog. A loop that is not restarted keeps the
0.9.1 code. - In the orchestrator session, stop the Monitor watcher. From then on the
watcher is the background command
jig orch <project> events --next [<unit ID>], with the running unit's ID
while a unit runs; start it again after each wake, and never run two at
once. - Copy the changed rules of the templates by hand into the project's own
ORCHESTRATOR.md: one review of a spec or plan, with one fix unit and the
backlogimpl/orch/backlog.md; the watcher; the rollover rule for a running
unit.jig upgradechanges no file of a project's repo. - Nothing more for the specwriter and implementer accounts.
Requested by: another project, for the line of the prompt template on
git status in a reference checkout; the rest: found in the use of 0.9.1 and
in the code review of the line.
Units: 0 minor, 4 patch, 8 none
0.9.1
What changed: jig report, for a product that has no branch of the conf's
BRANCH yet, now reads every origin branch of the product also for the vector
checks: a listed commit counts when any origin branch holds it, and the check
for vectors that no commit names reads every origin branch. In 0.9.0 only the
check of the unit's commits did so.
jig start and the supervisor loop, jig orch, set all the trust marks of a
start with one read and one rename of Claude Code's state file of the account,
instead of one write per folder. Claude Code writes that file without a lock, so
a session's write between the read and the rename was lost; jig now reads the
file's status again just before the rename, and when the file changed it reads
and changes it once more. A folder that the list holds twice, also once with ~
and once written in full, gets its mark and one trust line; in 0.9.0 it got no
mark, and its session waited at the trust dialog.
jig tag accepts a closed review loop whose must-fix findings a fix unit
applied, with no second review: a row of the table "Closed review loops" may
have a fourth cell, the fix unit's ID. The review's findings file must exist,
and the fix unit's report must start with OK. Rows of three cells, and rows
with an empty fourth cell, are checked as before.
jig run-check, at the time cap or a stop signal, sends SIGTERM to the
command's process group and then waits until no process of the group is left,
up to 30 seconds, before SIGKILL, so that a cleanup in a child of the shell can
finish. It skips a process entry whose name is not UTF-8 or cannot be parsed,
instead of ending the wait. make real-start leaves nothing behind: at its end
it stops the sessions of the run and waits until their processes are gone,
removes its folders and their entries in Claude Code's state file, and puts the
approved worktree back where it was. Its folders and those of the tests are
named jig-test.* in the temporary directory.
The stall check of jig orch reads the activity files of a project that it
waits on in the home of the orchestrator account, ORCH_ACCOUNT of the conf
file, orchestrator when the conf file names none. jig batch stops with exit
15 on a must-fix or should-fix finding that it cannot count, written as a table
row or a heading of another form, and names its line.
The templates of jig new: ORCHESTRATOR.md gives the four-cell row of
"Closed review loops"; it and prefs.md, the owner's preferences that jig new
puts into it, show each celebration at
the top of the reply to Eric's next message, and not before, keep each one not
yet shown as an Open item of state.md, and put first the celebrations, then
the unanswered question, then the summary after a gap of about an hour.
Files and formats: changed files: lib/jig_trust.py, libexec/jig-batch,
libexec/jig-orch, libexec/jig-report, libexec/jig-run-check,
libexec/jig-start-worker, libexec/jig-tag, prefs.md, the template
ORCHESTRATOR.md under templates/new/, and tests/real_start.py; new file:
tests/real_start_end.py. The table "Closed review loops" of the status file
takes an optional fourth cell; a table of three cells reads as before. The
other formats are unchanged.
Migration: a host and its projects move from 0.9.0 to 0.9.1 in this order.
- As the orchestrator account, run
jig upgrade 0.9.1. It installs 0.9.1
under/opt/jig/0.9.1/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.9.1as the orchestrator
account. It setsJIG_VERSION=0.9.1in the conf file of the project in each
role account, and refuses while a unit holds a lock. Check in each account
that the conf file of the project readsJIG_VERSION=0.9.1. - Restart each project's orchestrator loop, so that it loads the new trust
step and stall check: let the session finish its step, then, from a shell of
the orchestrator account outside the session, runjig orch <project> stop
and thenjig orch <project> start. The start marks the-devclone and
each folder of the orchestrator's sessions, a folder that its list holds
twice too, and prints a trust line for each mark it sets or cannot set. A
line that ends innot markednames a folder whose session will wait at the
dialog. A loop that is not restarted keeps the 0.9.0 code. - Nothing more for the specwriter and implementer accounts: the next
jig startof a unit in each sets the marks with the new step, with a trust line
for each. - From now on an orchestrator may close a review loop through a fix unit, with
a row of four cells in "Closed review loops":
| <document path> | <fix commit> | <review ID> | <fix ID> |. The second
cell is the fix unit's commit, whose document is tagged, not the review's. - Copy the new rules of the templates by hand into the project's own
ORCHESTRATOR.md: the four-cell row, and when and in which order to show
celebrations.jig upgradechanges no file of a project's
repo.
Requested by: another project, for the changes of jig report and jig batch;
the rest: found in the use of 0.9.0 and in the code review of the line.
Units: 0 minor, 3 patch, 7 none
0.9.0
What changed: Claude Code asks whether a folder can be trusted the first time a
session works in it, and a session that jig starts would wait at that dialog with
nobody to answer it. jig now sets the answer first, in Claude Code's state file of
the account: the key hasTrustDialogAccepted, set to true in the entry of the
folder, also for each folder that a session gets with --add-dir (Claude Code
2.1.326 reads that key there and then shows no dialog for the added folder).
jig start marks the -dev clone and each folder it passes, in the worker account;
jig orch marks the orchestrator's folders at its start and before each new
session; jig new marks the orchestrator's -dev clone, and its block marks the
-dev clone of each account where it makes one. Each prints a line trust <account>: <value>, the value trusted, kept or not marked, and one more line that
names the file when it cannot set the mark; that line does not change the exit
code. The step writes a new file, syncs it to disk, renames it into place and reads
it back.
A project can give the sessions of an account more folders in a section
## Directories of its kickoff record, one line <account>: <folder> each, for
the accounts orchestrator, specwriter and implementer. jig start reads the section
at the newest kickoff tag on origin and passes those folders with --add-dir; a
line it cannot read is ignored, with one line on stderr. Before anything changes,
it refuses a folder that is not in the approved list of the account. A conf file
without ORCH_ACCOUNT, SPEC_ACCOUNT or IMPL_ACCOUNT gives that account its own
word in that list. jig validate prompt accepts a READ path in a folder that the
section gives the prompt's account; a path under the reference directory stays
refused while the clean room is on. It also refuses, with one line, a ROLE section
that splits Spec tag: over two lines, and jig start refuses such a prompt
through it.
The supervisor loop, jig orch, no longer appends the event hourly update; an
hour with no change still gets its idle: line in the project's updates log, and
dated Open items still give their reminders. It reads BRANCH of the conf file at
each report poll: after a move to a new version line it logs the move, fetches the
new line, and announces only the reports of that line made after the loop started.
jig report accepts a product commit that any origin branch of the product holds
when the product has no branch of the conf's name yet. With that branch, and for
-dev, the check is as before. The refusal names the branches it read.
The templates of jig new: ORCHESTRATOR.md and handoff.md roll over only when
jig ctx exits 3 or 4, never at a batch boundary; at each batch boundary, before
the next batch, the orchestrator runs jig changelog --since <pinned> and jig upgrade <project> <version>, and never leaves the upgrade in handoff.md. They
name no hourly update: an update comes as the first message of each session, and
when a result changes what Eric expects or something needs him, never by the clock.
The kickoff part asks for the section ## Directories, and the orchestrator row of
the CLAUDE.md template allows the read-only look at another project's
orchestrator at a stall line. make real-start fails at the dialog of an added
folder and reads each trust mark back.
Files and formats: new files: lib/jig_trust.py, lib/jig_spec_tag.py. Changed
files: lib/jig_dirs.py, libexec/jig-new, libexec/jig-orch,
libexec/jig-report, libexec/jig-start, libexec/jig-start-worker,
libexec/jig-validate, the templates block.sh.in, block-existing.sh.in,
CLAUDE.md, ORCHESTRATOR.md and handoff.md under templates/new/, and
tests/real_start.py. New format: the section ## Directories of the kickoff
record. The event log no longer holds the line hourly update; its other lines
are unchanged.
Migration: a host and its projects move from 0.8.2 to 0.9.0 in this order.
- As the orchestrator account, run
jig upgrade 0.9.0. It installs 0.9.0
under/opt/jig/0.9.0/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.9.0as the orchestrator
account. It setsJIG_VERSION=0.9.0in the conf file of the project in each
role account, and refuses while a unit holds a lock. Check in each account
that the conf file of the project readsJIG_VERSION=0.9.0. - Restart each project's orchestrator loop, so that it loads the new
supervisor: let the session finish its step, then, from a shell of the
orchestrator account outside the session, runjig orch <project> stopand
thenjig orch <project> start. The start marks the-devclone and each
folder of the orchestrator's sessions, and prints a trust line for each mark
it sets or cannot set, none for a mark that is there already. A line that
ends innot markednames a folder whose session will wait at the dialog. A
loop that is not restarted keeps the 0.8.2 code. - For a project that
jig newmade, runjig new <project>again as the
orchestrator account, with--existingwhen the project was made with it.
It keeps every file that exists, its block too, and marks the
orchestrator's-devclone, with its trust line. For a project thatjig newdid not make it refuses and changes nothing; the loop start above has
marked the same clone. - Nothing more for the specwriter and implementer accounts: the next
jig startof a unit in each marks its-devclone and each folder it passes,
with a trust line for each. - Copy the new rules of the templates by hand into the project's own
ORCHESTRATOR.mdandhandoff.md: the rollover only atjig ctxexit 3 or
4, the upgrade at the batch boundary, and no hourly update.jig upgrade
changes no file of a project's repo.
A known case: the trust step names the entry by the folder's path as written,
with no symbolic link followed, so a folder whose path holds a symbolic link can
still bring the trust dialog.
Requested by: another project, for the change of jig report, whose product had
no branch of its version line yet; the rest: Eric, through the spec.
Units: 1 minor, 4 patch, 3 none
0.8.2
What changed: the pre-commit hook that jig start installs in a product clone
now refuses a commit only for a private term that the commit adds, not for one
that the product already held. jig terms check <project> takes two new
options for it: --staged <work tree> reads only the lines and path names that
the staged change adds, and --message <file> reads a commit message. Without
them the command checks the whole product as before. The hook runs the staged
check when the project's jig is 0.8.2 or newer, and the whole check with an
older jig. A new commit-msg hook checks the message of each commit for the
private terms. It is the same file as the pre-commit hook, told apart by its
second line # jig commit-msg hook; jig start and jig new install it,
exclude it from the product and remove it as they do the pre-commit hook, and
leave alone a hook that the product keeps or tracks itself. The hooks and lint A
find the -dev clone of a linked work tree in any directory, through
git rev-parse --git-common-dir.
The staged check counts the new content of a path whose type changes (a file to
a link or a submodule, or back) in full, and no longer refuses such a commit
when it adds no term. It reads submodules in one form whatever diff.submodule
says, and shows a new submodule also when diff.ignoreSubmodules or the
project's .gitmodules would hide it. A new file in a directory that the head
commit already holds no longer counts a term in that directory's name; a new
directory, and a new or renamed file name, still count.
Files and formats: changed files: hooks/pre-commit, libexec/jig-terms,
libexec/jig-start-worker, libexec/jig-start, libexec/jig-new,
lib/jig_clones.py, README.md. A clone gets the new file hooks/commit-msg
in its git directory. The output of jig terms check without the new options
is unchanged.
Migration: a host and its projects move from 0.8.1 to 0.8.2 in this order.
- As the orchestrator account, run
jig upgrade 0.8.2. It installs 0.8.2
under/opt/jig/0.8.2/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.8.2as the orchestrator
account. It setsJIG_VERSION=0.8.2in the conf file of the project in each
role account, and refuses while a unit holds a lock. Check in each account
that the conf file of the project readsJIG_VERSION=0.8.2. - Nothing more: the next
jig startof a unit installs the new pre-commit hook
and the commit-msg hook in its clones. The supervisor loop,jig orch, runs
no changed code, so it needs no restart.
Requested by: another project, whose product already held a private term, so
that the 0.8.1 hook refused each of its commits.
Units: 0 minor, 2 patch, 26 none
0.8.1
What changed: the screen reader of the supervisor loop, jig orch, now takes
the top rule of Claude Code's input box as a rule also when Claude Code draws
the session name into it, as it does for a session started with
--remote-control, which every jig orch session is. In 0.8.0 it did not, so
the loop wrote idle into orch/activity while the orchestrator session ran a
turn, a project that waited on it with wait-on got a stall line and never a
resumed line, and the reader of the input box fell back to the last lines of
the screen.
Files and formats: changed file: lib/jig_tmux.py. The formats of
orch/activity, orch/waits and orch/events.log are unchanged.
Migration: a host and its projects move from 0.8.0 to 0.8.1 in this order.
- As the orchestrator account, run
jig upgrade 0.8.1. It installs 0.8.1
under/opt/jig/0.8.1/and points/opt/jig/currentto it. - For each project, run
jig upgrade <project> 0.8.1as the orchestrator
account. It setsJIG_VERSION=0.8.1in the conf file of the project in each
role account, and refuses while a unit holds a lock. Check in each account
that the conf file of the project readsJIG_VERSION=0.8.1. - Restart each project's orchestrator loop, so that it loads the fixed screen
reader: let the session finish its step, then, from a shell of the
orchestrator account outside the session, runjig orch <project> stopand
thenjig orch <project> start. A loop that is not restarted keeps the 0.8.0
reader. After the start,jig orch <project> statusshowsbusyon its
activity line while the session runs a turn.
Requested by: none; found in the use of 0.8.0.
Units: 0 minor, 1 patch, 1 none