Check an open aco/GitHub work board against reality and give every open item a verdict (keep with a reason, close with a reopen trigger, merge, re-cut, body stale, label idea, idea) with evidence, judging every open item against a named current goal. Finds landed-but-open items, twins (also across repositories), items overtaken by a later ruling or landing, bodies whose sentences are no longer true, and dangling pointers. Use when the operator or the head asks for a board check, or before pulling work on a board that changed.
Install
npx skillscat add overnightworks/marketplace/board-hygiene Install via the SkillsCat registry.
Board Hygiene
The one check of whether each open item still makes sense. It reads and
reports; it never edits, comments, closes, claims, cuts, or lands. The head
applies what is clear under the coordination contract.
Pass 1: mechanical
- Write
aco board --jsonto a scratch file and query that file, so a tool
output limit cannot truncate the lists;aco statusshows active claims.
Read the projection as aco defines it; do not re-derive it from memory. - An entry in the
recoverylist names only the issue: find itsitemin
thelandingslist, read thatpull_request(theshawhen it is null),
and compare what it delivered with the item'sDone when. Full coverage isclose; partial coverage isbody stale. - An
uncutentry is the next slice to dispatch:keep, whether or not the
item is a container.re-cutis only for an item whose body no longer
matches its slices. A container (items[].containernot null) with nocontainer.open_childrenis aclosecandidate (fold into its document)
unless it is inuncut, or waiting (wait, or anactionable_reasonthat
says it waits, as for a container whose onlycontainer.foreign_children
are open), or blocked (open_blockers,foreign_blockers), or a
distributor container whose next step is to dispatch its findings. Step 4
still gates everyclosecandidate and wins. - Before any
close, test the item'sDone whenagainst evidence; an unmetDone whenis never a clearclose. aco check <number>only when anacoblock looks broken, or for a
pull request whose classification is in doubt.body malformedis the
only result worth a verdict;body okis not proof of done.- List open pull requests that no open item owns, with whether each can land
(mergeStateStatusCLEAN and every check green; otherwise name the
blocker). An owner isclosingIssuesReferences:gh pr list --json number,title,body,author,closingIssuesReferences,mergeStateStatus,statusCheckRollup.
A bot pull request without an item is invisible toaco next.
Pass 2: sense
For each open item, read its body and test. A body with no aco block
(aco check prints body legacy) that carries no idea label gets label idea
when it reads as an idea (wish, why, how noticed), or body stale when it is
work. On a large board, read everyaco block and every sentence that names a file, command, or item; skim the
rest and say so in the report.
Twin: once per board, not per item. Compare the open items' titles and
scopes with each other and with items closed in the last 30 days
(gh issue list --state closed --search "closed:>=<date>" --limit 200);
no keyword search per item. Search other repositories with both formsgh search issues "<owner>/<repo>/issues" --owner <owner>andgh search issues "<repo>#" --owner <owner>; run both, pass--limit 200to
each, say when a result hit the cap, and name every query in the report. Read
only hits that name this repository's items or files (a bare keyword returns
unrelated items).
A suspected twin counts as false until the two bodies' own boundary text
fails to separate them, and a cross-repository verdict without a named
query is invalid. Verdict:merge into #m, orclosewhen the other one
landed.Overtaken: a later ruling, landing, or a changed vision removed the
need. Verdict:close, citing the overtaking ruling or merge.Stale sentence: for each body sentence that names a file, flag, command,
or behavior, rungit grepatorigin/<default branch>in the primary checkout (the
repository's main checkout, not a lane worktree) aftergit fetch. A sentence the code
contradicts givesbody stale, quoting the sentence and the grep result.Dangling pointer, both ways: a body that names an item, lane, or file
that does not exist or is closed; and other repositories' bodies (found
by the cross-repository searches above) that expect this repository to act on an item
that does not exist. Check inbound references before anycloseormerge.Goal: when the operator or the head names a current goal, judge every open
work item once against it.keep <reason>: the item serves the goal now, and
the reason names how; a keep without a reason is not a verdict.close: the
item is done, overtaken, or its long-term gain is not worth its lifetime cost
now; when it is not done, add one sentence "reopen when ".Point: does the problem the item names still exist? If not,
close.Landed, its only rest a live check only the operator can give:
closewith
"reopen when ", clear; the head gives the check its step
(HEAD.md, Items). TheDone whennames only what an agent can
prove. Mark nothing "unverified".Waiting operator step (an item whose body's
acoblock holdswait = { operator = ... };aco board --jsonshows only a flatwait
string andactionable_reason"waiting on operator"; a date or trigger wait
is no step and gets the wait test below):current,stalewith its
evidence (the landed change, the moved item, the outdated command or an
answer already recorded), orbreaks the step rulenaming the part (HEAD.md, Role); a stepread_inbox
shows as old form (formold) isbreaks the step rule. The head's action:
keep, take the step back, or rewrite it as one paste.Wait test: every item whose
acoblock holds awaitwith a trigger or a
date, every item with an open GitHubblocked_byblocker, and every item,
an idea included, whose body or ruling names an ordering (last bullet below).
Read the fact live; an open blocker alone is no verdict.- Trigger: read what it names (run, release, changelog, issue, landing) and
quote what it shows. - Date: past or not, and whether the reason the body gives still holds.
- Blocker: closed is
fired; open and claimed or actionable isholds; open
and itself waiting (trigger, date, operator step or blocker) is tested the
same way along the chain, at most three hops; say where it stopped. - Ordering a ruling sets ("until X and Y close"), named in the item's body
or by a ruling it points at, whatever itswaitor blockers say: how far
X and Y are, and whether the ruling's own words bind this item at all.
Verdict
wait holds,wait fired(the item is actionable or its wait is
stale) orwait weaker(it holds less, or less strictly, than the body says).
An idea given a wait verdict keeps the verdictidea(notbody stale); the
wait segment carries the finding, and the Bounds rule applies otherwise.- Trigger: read what it names (run, release, changelog, issue, landing) and
A nearly empty board (two open items or fewer, claimed or not) skips Pass 1 detail: run
both aco commands, apply Pass 2 to each item, and report in under five
lines.
Output
Exactly one line per open item, then a short trailing block: unowned pull
requests, due audits, queries run, and the closing list. A repository whose.aco/board.toml declares no [[audit]] entry is named in the trailing block as a board
finding, with the starting entry from the audit skill. A never-flag item getskeep — clear — <reason>, an idea idea — clear. Clear lines omit the
bracketed field.
<owner>/<repo>#<n> keep <reason>|close|merge into #m|re-cut|body stale|label idea|idea — clear|unclear — <evidence> [— recommendation; default: <verdict>]- A waiting step's verdict is appended to its item's one line as a segment:
… — step current|stale|breaks the step rule — <evidence or part> — keep|take back|rewrite as one paste. - A wait's verdict is appended likewise:
… — wait holds|fired|weaker — <fact read>. For a fired or weaker wait the
line's verdict becomesbody stale, except an idea, which keepsidea; the
segment follows it, clear when the fact settles it. - An ordering that is no wait gets the same segment:
… keep <reason> — wait holds — ruling orders plumbing ahead of vision; this item stays pullable. - Evidence: the merged PR or sha, the overtaking ruling or landing with its
link, or the false sentence and why it is false. Terse references
(file:line, PR, sha) suffice. Emptyrecovery/uncutlists give no line. clearmeans the head may apply the verdict.unclearcarries the
evidence both ways, a recommendation, and a default.- Unruled expectation lines (
aco rulings,items[].expectation_state) go
on the operator list. - End with the
unclearlines grouped per<owner>/<repo>: the operator's
list, one short question per item with the recommendation and the default.
Bounds
- Read-only and report-only. Git is limited to fetch, log, show, grep,
ls-tree, cat-file, rev-parse, and status. Cross-repository work usesgh search issues,gh issue view,gh pr list, and read-onlygh search code(to test a claim about
consumers) only. The wait test adds the read-only reads of the fact a trigger
names:gh run list,gh run view,gh release viewandnpm view. List
theghandnpmcalls you made. - An active claim is never flagged
closeormerge; its false sentence is
still reported asbody stalefor its lane. - An idea (it carries the board's idea label;
aco nextlists it underideas:, andboard --jsonmarks itidea) is judged only for
being overtaken by the vision, a ruling or a landing: overtaken → close,
otherwise verdictidea, left alone. Age is never a reason. An idea whose
body has grown a plan, a scope or slices is a finding ("elaborated before its
pull"). A deferred or blocked item with a projection is judged on its merits. - Never flag: a container with open children, anything the operator touched
recently unless independently proven landed, or a real dependency from
GitHub'sblocked_byrelation forcloseandmerge(its wait is still
tested). Idle age alone is never proof of completion. - One pass, one report. No loops, no fixes, no persistent marker, tracking
issue, or state-ref write. - In doubt between keep and close, the line is
unclear, recommends close with
a reopen trigger, and defaults to close. An idea (HEAD.md, Ideas) or an
item the operator touched recently defaults to keep. - The run proposes no freeze.
- Retiring a document with a banner, and contradictions between documents,
belong todocs-cleanup.