Documentation
¶
Overview ¶
Command priorart answers, before the work starts, "has this already been done?" — and refuses when the answer is yes.
⛔⛔ WHY A GATE AND NOT A NOTE. On 2026-11-07 one session redid three separate pieces of work on the same repository in a single day:
- a day spent re-deriving an issue that had been REWRITTEN after bibliography and already held the same diagnosis, a four-size measurement, the corpus number, and an experiment the rediscovery never ran;
- two pushed branches, both titled "(NOT MERGED — see #352)", touching the same four files as the new work;
- an issue filed as new that duplicated one which had measured the same population by a better method.
"Search the tracker first" was already written down, in a memory, as a rule. It stopped none of the three, because of the shape of the moment: the thought arrives as "let me fix this", never as "let me check whether this is fixed". A rule that has to be remembered at exactly that instant is not a control. So the check sits in FRONT of the work and exits non-zero.
⛔⛔ AND A THIRD SURFACE, because two were not enough. On 2026-11-08 the gate ran as written on go-tex/go-tex.github.io, reported clean, and was right to: go-widgets/toolkit — a module that repository already imports, at the very version it pinned — had carried `FileTree` since toolkit#498, a complete Explorer with create, rename, delete, move, import, inline name validation and a context menu. A "New file" button was written anyway and closed unmerged once a human said *there must already be one*. Nothing about a consumer's own tracker or branches can contain a widget that lives upstream: "has this been done?" has two halves, and only one is about this repository.
It reads the surfaces a repository has:
- BRANCHES, by name AND by head-commit subject. A branch is often named for its mechanism and its commit for the symptom: `unrounded-space` answers to "unround", `space-refresh` only to "space". A pushed branch with no pull request is invisible work — it appears on no issue list.
- ISSUES AND PULL REQUESTS, open and CLOSED. A closed entry that says "not merged, and here is why" is the most valuable prior art there is, and a search restricted to open items is exactly the one that misses it.
⛔ A surface it could not read holds the gate SHUT, with status 2: an answer not obtained is not a negative answer. The opposite is a gate that opens because the network blinked — which opens precisely when nobody is checking.