worker-desk
Run the work-dispatch role of the process desk — keep a standing pool of parallel worker agents full at the width the roster declares, each implementing one item in its own worktree behind a draft PR. Use when human:<name> says "fan out the next batch / work the next N briefs in parallel / do what's next in parallel / fan out", i.e. the plural of "work on what's next". Reads the Next-up board of every stream root (this repo + each sibling carrying docs/streams, e.g. ../repo-a and ../repo-b; already priority + staleness + 4-per-stream-capped) PLUS trusted work-ready GitHub issues on no board, dispatches one worker per item, refills each slot the moment its worker finishes (never wave-and-stop), and hands the resulting draft PRs to the pr-review-desk window. Runs SILENT — anything needing a human is a filed GitHub issue (question / help wanted / needs-decision), never console narration. Role window, no persona (Bob belongs to the-desk only); driver human:<name>; the human merges.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 7
- Forks
- 5
01 前言 Front Matter
- name
- worker-desk
- description
- Run the work-dispatch role of the process desk — keep a standing pool of parallel worker agents full at the width the roster declares, each implementing one item in its own worktree behind a draft PR. Use when human:<name> says "fan out the next batch / work the next N briefs in parallel / do what's next in parallel / fan out", i.e. the plural of "work on what's next". Reads the Next-up board of every stream root (this repo + each sibling carrying docs/streams, e.g. ../repo-a and ../repo-b; already priority + staleness + 4-per-stream-capped) PLUS trusted work-ready GitHub issues on no board, dispatches one worker per item, refills each slot the moment its worker finishes (never wave-and-stop), and hands the resulting draft PRs to the pr-review-desk window. Runs SILENT — anything needing a human is a filed GitHub issue (question / help wanted / needs-decision), never console narration. Role window, no persona (Bob belongs to the-desk only); driver human:<name>; the human merges.
02 资源文件 2
- 参考文档component.yaml618 B
- 参考文档references/dispatch-runbook.md13.6 KB
03 SKILL.md 正文
worker-desk — the dispatch half
worker-desk (this skill, its own window) turns eligible work into worker agents + draft PRs; pr-review-desk (a separate window) reviews those PRs and flips them ready; human:<name> merges. Run it in its own window as a standing loop — ONE window at capacity replaces running two.
The stream board is a derived, generated surface — this
desk opens the PR carrying its link trailer (Brief: <stream>/<NN>, or Issue: #<N> for
issue-only work with no brief, or its resolving form Fixes: #<N> when merging should close the issue — never for an issue carrying needs-decision or human-decided (or any decision-gate issue): such work links with Issue: #<N> and the close stays on the human-only path); it never hand-edits a stream README's Briefs table.
The invariants this loop assumes (state them once wherever your repo keeps house rules, and do not
re-derive them per dispatch): every session works in its own worktree, never a shared checkout; merge,
never rebase; the generated board is single-writer = main's CI; every post is made as the role's own
App identity; act only on trusted-authored items; file at discovery rather than narrating; one item =
one branch = one PR, and a merged or closed PR is DONE; and — in a repo that enforces it (one whose
changelog/ directory carries changelog/README.md) — a notable change records one human-legible
highlight as a per-PR fragment file (changelog/<slug>.md) rather than editing a shared section, while
a genuinely non-notable PR carries the changelog:skip label, applied by the desk or a human and never
self-applied by the worker. The split is decided by the DIFF, not by taste: a notable CODE PR ships the
fragment, while a documentation-only or Evidence-only PR owes none — and on a repo whose changelog check
does not already classify documentation and Evidence PRs on its own, the waiver is ASKED FOR from the
maintainer rather than applied by any automation. This paragraph
binds the DESK's own writes; the worker is bound to the same fragment rule through the changelog clause
deskdispatch emits verbatim in the worker kit.
The "one item = one branch = one PR, and a merged or closed PR is DONE" invariant now has a mechanical
backstop: the desksupervise observer reconciles every in-flight dispatch claim each tick and STOPS
(and, for a terminal verdict, releases) any run whose item became ineligible mid-run — its PR was merged
or closed, its board row flipped off todo/in-progress, or its claim was released/stolen — so the rule
fires within one observer interval instead of relying on a worker to remember it.
Bindings for your harness — which mechanism each
capability:*names — are in../../references/<harness>.md.
Shell & transport mechanics every role re-derives — one call/one chain, workspace isolation and content-triggered write-guard refusals, per-commit inline identity, loop/session marker export, authenticated push/fetch transport, role/repo coverage, and running a
ghcall as the role App (never a human's CLI login: §Forge CLI as the role) — are in../../references/desk-shell.md.
Every
ghcall carries this role'sGH_TOKEN, reads included. When no desk verb covers a forge call, run it only through the recipe in §Forge CLI as the role, never a hand-typed shortcut. That recipe takes the role from$DESK_LOOP, mints it withdesktoken, scopes the token to that one command without exporting it, and stops beforeghunless the mint exited 0 and the token file holds a non-whitespace token. A bareghcall runs as the host's stored login, which is usually a human's, so a desk never runs one, not even for a read.
Disposable task output follows desk-shell.md §Managed task scratch. Use inherited owned scratch, complete canonical evidence handoff before acknowledgment, and let the runtime reclaim it. A delegated agent must never acknowledge its parent’s scratch.
The loop-continuity note this role writes at each iteration boundary and before any long wait — nine sections, re-probe rather than cache — is
../../references/standing-note.md.
In a cell, a drain asks this role for a handoff record before it is stopped, and the next boot reads it before the first sweep. The record's five sections, where it lives, and how it is reconciled and marked read are in
../../references/handoff-note.md.
Procedure every desk role shares — liveness, supervision and context, worktree hygiene, the driver-act runsheet entry — is stated once in
../../references/desk-common.md; read it at boot. Hard gates never move there: they stay resident in this body.
Boot
deskboot worker-desk — loop identity, deskwt prune, worktree lock, roster register, roster
preflight, worker-App token mint, read-only board fetch, worktree currency, first-sweep prerequisites
(roster forge mapping, desk-tools pin). The first red step stops the boot and names
itself; it refuses to boot in the shared checkout. Two residues it does not carry: export KUBECONFIG=/dev/null (the environment half of the offline envelope; every dispatched agent
gets the same rule from the common-clauses kit) and inline -c commit identity per commit
(never git config user.* in a linked worktree — it clobbers every concurrent session's identity).
Two things the boot owes before the first sweep: arm the standing wake (§Cadence and wake) so the window has a cadence from the start rather than after its first quiet queue, and print the BOARD ROOTS ∪ SCAN REPOS symmetric difference (§THE REPO SET) so a root nothing sweeps is visible on day one.
Tick mode
A run is a TICK when the harness passes the literal argument --tick, or the environment
carries ASSAY_TICK compared EXACTLY to 1. Absent both, the run is a standing WINDOW and
every rule in this body holds unchanged — so the contract is inert until a caller asks for it,
and a loose truthiness test on that variable is what would silently convert a live window into
a one-pass run.
A tick is ONE bounded pass: boot, ONE fresh sweep of this desk's own queue with the instrument
this body already names, act on what that sweep made actionable up to this role's declared
width, wait bounded for what it dispatched, print the summary line, exit. In tick mode this
desk arms no capability:durable-monitor, schedules no wake-up, sleeps for no cadence, runs no
second sweep, and never waits in line for an answer — an escalation is a FILED issue and the
pass continues. It never claims idle or caught up: one fresh sweep supports a verdict about the
pass that ran, never a standing claim about the queue. A tick narrows the LOOP, never a
GATE — gates, budgets, stop flags, identity rules and escalation obligations are unchanged,
and a tick short of budget drops WORK, never a CHECK. Its last line of output is the summary
line, in which a pass that could not read its queue says so and is never reported as an empty
one.
The trigger predicate, the bounded pass, the budget arithmetic (ASSAY_TICK_DEADLINE and the
exit reserve) and the summary-line grammar are stated once in
../../references/tick-contract.md, whose grammar has one
executable form at ../../scripts/tick-summary.sh. This section states no rule that file does
not own.
The pool — keep slots FULL, not waves: refill on completion
The unit of operation is the SLOT, not the wave. Keep a standing pool of N concurrent workers full. An idle slot while eligible work exists — a queue row on ANY board, a qualifying un-briefed issue (§Un-briefed issues), or an orphan PR awaiting resume — is the failure this design exists to prevent, and "dispatch a wave, report, stop" is the drift it kills (human:<name> 2026-08-13): there is no state in this loop called "the wave is done", only full slots, refillable slots, and a sweep proving nothing eligible exists (§HARD GATE).
- N is read, never remembered —
deskroster width --role worker-desk, EVERY TICK. The number is not stated here. It lives in ONE place (tools/desk/internal/deskkit/width.go), which is what lets the coordinator widen this pool whendeskboard throughputnames dispatch as the bottleneck, and what stops this body drifting from the value the tools enforce. Re-read it each cycle, not once at boot: a width set mid-window is meant to reach you on the next tick.- Growing fills the freed slots up to the new N as work lands.
- Narrowing NEVER kills a running worker — stop refilling and let the pool converge downward as items land. A dispatched worker mid-item keeps its slot.
- A width that cannot be read is could-not-check: hold at the number you last read (or the default) and file it. Ignorance never widens a pool.
- The reservation is the code-enforced form of the next two rules (desk-supervision/05):
deskroster width --role worker-desk --reserve resume=N,rework=Mfloors N/M slots for orphan resumes andAwaiting implementer reworkrows, riding the same entry as the width and decaying with it.fanoutloop planclassifies its queue and states the floor whenever a reserved class is actually waiting (fresh capped at <k> by reservation) — it never idles a slot for a class with nothing queued, which is what keeps this a floor and not a second cap. worker-desk shipsresume=2; the "resuming started work outranks a fresh brief" prose below is what that floor is FOR, not a second, unenforced statement of it.- The repair (
rework) floor is ENFORCED at the dispatch boundary (desk-supervision/18), OPT-IN viaASSAY_REPAIR_ADMISSION=on(recorded policyrepair-admission-v1). With it on,deskdispatchrefuses a fresh dispatch — exit 5, naming the waiting repair — that would drop the free slots to or below the floor while a repair obligation is RUNNABLE (assignable now, per the reconcileddocs/streams/repair-obligations.jsonl); the repair itself is admitted. A waiting-EXTERNAL repair is not runnable, so it never idles a slot. The item's class is resolved from the obligation store, so a caller cannot relabel fresh work as a repair to jump the floor. The gate serializes across dispatchers with a compare-and-swap lease in the same claim backend, so two dispatchers cannot both admit into the last slot. It ships OFF — with it unset, dispatch is unchanged and the floor stays the planner's advisory line above; that unset state is also the rollback. A raw harness launch that does not go throughdeskdispatchis outside this enforcement, exactly as it is outside the durable claim.
- The repair (
- Fill to N, refill on completion — the instant a worker finishes (draft PR open, or done /
NEEDS_CONTEXT), before refilling run
deskusage record --claim-key <the claim key the dispatch used>with--repo,--item,--tier(the dispatched tier), and only the usage counts the completion notification itself reports (--input-tokens,--output-tokens,--total-tokens,--cost-micros,--wall-seconds); omit absent counts. Never read, quote or pass worker transcript, prompt or tool output. Token flags take integer token counts,--cost-microstakes integer millionths of the currency unit, and--wall-secondstakes integer seconds. Omit a figure unless the notification reports it in that exact unit; never relabel milliseconds as seconds or currency units as micros. These figures are not for ranking agents or people. Log a refusal verbatim and continue the refill; never re-attempt the record another way. Then dispatch the next eligible item into the freed slot. - Never stop-and-wait-for-restart. "The plan came back empty" is a reading from ONE instrument, not a state of the queue: re-sweep §Sources of work with each source's own instrument. Where every visible row really is claimed, in flight or capped, §WIP-capped — re-check, never stop applies. The window neither ends nor asks the driver what to do next (§Liveness contract).
- Concurrency (N) is DECOUPLED from the span-of-control display cap (20), which bounds what the
board SHOWS. The 4-per-stream cap is an anti-monopoly guard that must never idle a slot: fill
under-N cycles with WIP-draining work first — orphan resumes,
Awaiting implementer reworkrows,CONFLICTINGPRs, red checks — then un-briefed issues, before leaving one empty. - Scan the active PR queue on every tick for dispatched PRs owing a worker action
(
CHANGES_REQUESTEDat head,CONFLICTING, a stale draft); resuming started work outranks a fresh brief (mm/10). Distinct from pr-review-desk's review monitor; both run.
Sources of work — the complete list, each with its own instrument
Work reaches this desk through more channels than any one verb reads. Each row below names the
instrument that reads that source THIS tick; a source with no fresh reading is could-not-check, not
empty. Repos and roots come from §THE REPO SET, never a pasted list.
| # | Source | The instrument that reads it |
|---|---|---|
| 1 | Board rows the board SHOWS, per root (the span-capped Next-up selection) | (cd "$root" && deskgit fetch --as worker) && fanoutloop plan --root "$root" (absolute configured root; desk-shell §Authenticated transport) |
| 2 | Rows held back by the 4-per-stream cap, the span cap, or the drive worker floor | deskboard dispatch — it reports the held-back decomposition (N by per-stream caps, M by span, K by the drive worker floor) plus per-root claim degradation, so an EMPTY queue is distinguishable from a THROTTLED one |
| 3 | Orphan PRs owing a worker action, CONFLICTING PRs, red checks |
the per-slug PR + disposition reads in references/dispatch-runbook.md §The tick sweep, with the disposition read FIRST |
| 4 | Stale drafts (reviewer verdict CHANGES_REQUESTED at head, author silent) |
deskboard stalled [--min-age-hours N] — the purpose-built detector; its disposition column is advisory (shepherd / close-candidate / reconcile) |
| 5 | Awaiting implementer rework board rows |
fanoutloop plan --root <root> (desk-supervision/05: read per root from refs/remotes/origin/main:STATUS.md, the SAME offline ref read row 1 uses — no separate sweep) |
| 5b | Durable repair obligations — a failed/blocked verification's actionable, still-unresolved obligation (desk-supervision/17) | fanoutloop plan --root <root> reads the reconciled obligations across the configured roots' docs/streams/repair-obligations.jsonl and surfaces the ASSIGNABLE ones (actionable, unresolved, awaiting-assignment or dead-lease) in the SAME rework lane as row 5. The item's ID is the IMMUTABLE obligation key, so a replacement worker resumes the SAME obligation after a dead lease — never a duplicate |
| 6 | Un-briefed trusted work-ready issues (§Un-briefed issues) | issueboard issues --projection work-ready — fail-closed |
| 7 | A red default branch on a watched repo | deskboard health — three-state (green / RED / COULD-NOT-CHECK) |
| 8 | Cross-root coverage: a board root that no sweep reaches, or a scanned repo with no board | the BOARD ROOTS ∪ SCAN REPOS symmetric difference printed at boot (§THE REPO SET) |
| 9 | Queue suppressors — expired refs/heads/dispatch/* claims and dead branch-claims from merged/closed PRs |
desksupervise status --stops (the liveness observer's runtime snapshot: per-claim liveness, timers-to-fire, and which stops are armed — the one structured read the sweep uses instead of guessing); the raw git ls-remote origin 'refs/heads/dispatch/*' + the claim tool's list/show verbs (deskclaim-ref, installed with desk-tools; a repo that ships its own tools/dispatch-claim.sh uses that instead) stay as the fallback — run BOTH, since the tool lists the refs/dispatch/* namespace it acquires in while that ls-remote pattern lists the refs/heads/dispatch/* branch refs the Go claim readers use |
A reconcile disposition means the owning brief is withdrawn, not that the PR is
finished. Route it to pr-shepherd for the withdrawn-brief reconciliation step before
ordinary CI repair. Supply the current brief/withdrawal context, successor links and PR
head; retain claim ownership checks. Never restore an obsolete plan just to green its
branch, or auto-close its PR. Before a board amendment retires scope, use
statusgen withdrawal-audit with an open-PR snapshot to discover these cases while the
PRs are still fresh (the stalled detector deliberately sees only the aged subset).
Rows 5, 5b and 3 outrank row 1 — resuming started work outranks a fresh brief (mm/10) — and row 2 is what tells you whether row 1's zero means drained or throttled.
A repair obligation (row 5b) is NOT completed by a worker exiting. Opening the repair PR, closing
the tracking issue, or even MERGING the repair only advances the obligation to awaiting-reverification
— a merge WAKES independent reverification, it does not close the obligation. Only a valid INDEPENDENT
verification at the repaired revision resolves it (a same-actor or wrong-revision pass is refused). When
the original deliverable PR has MERGED, the obligation's item carries a fresh follow-up branch: branch
from it, never resume the merged branch (immutable history). Carry the obligation id on your dispatch
claim and in your PR workpad so a replacement worker resumes exactly where you left off.
Row 9 is why a stream can offer nothing while holding work. A claim subtracts twice: once as an eligibility exclusion and again as a per-stream cap decrement, so a handful of branch-claim corpses on one stream can zero that stream's whole allowance. An expired claim does not push its row back onto any board by itself. A stream that offers nothing for several consecutive ticks is a suppressor candidate: check the claims before concluding the stream is drained, and file what you find.
Explicitly OTHER desks' lanes — named so the boundary is stated, not so this desk works them.
Open verify-gate / re-baseline issues (deskboard queue) belong to verify-desk. Review-request
items belong to pr-review-desk — plan deliberately skips their dispatch tokens. Decayed
approvals and the stale-approval resync class belong to pr-review-desk's freshness tick. This desk
neither works nor counts them; where one of them surfaces as a plain implementable issue it arrives
through row 6 like any other, on row 6's four rules.
HARD GATE — never claim "pool empty / nothing to dispatch" without a fresh sweep
An idle claim is a claim about the work queue, and the only evidence is a fresh sweep. Before this desk EVER reports "pool empty", "nothing to dispatch", "caught up" or "idle", it is a HARD PRECONDITION that it has just re-run, this tick, every row of §Sources of work that is this desk's (rows 1–9), across every BOARD ROOT and every SCAN REPO — and that it can quote those instruments' own output from this tick. An idle claim with nothing to quote is not an idle claim. "I checked at the top of the hour" is not fresh; "my workers haven't finished yet" is not evidence the queue is empty; and a zero from row 1 beside a non-zero held-back count from row 2 is a WIP state, never an empty queue.
A sweep that failed, errored, or hit a --limit cap is could-not-check — blind, not idle, and
so is a single-root sweep. The board also holds rows back at the per-stream cap without saying so
on its face: "no rows past the ones shown" is not "nothing eligible" (row 2 is the reading that
settles it).
HARD GATE — a blocker claim needs a fence, exactly as an idle claim needs a sweep
A blocker claim is a claim about the world, and the only evidence is a command run THIS tick. A
filing or report that claims a blocker — BLOCKED-ON-HUMAN, needs-decision, help wanted,
question, or a could-not-check reported as blocking — MUST carry a ### Evidence section
holding at least one fenced block that is the verbatim output of a command run this tick, its command
line as the first line of the fence. "I believe X is not possible", with nothing fenced, is not a
blocker claim: re-check it first — if the re-check produces a fence, file with it; if it produces a
success, proceed. The parallel to the idle gate above is exact — a blocker claim with nothing to
quote is not a blocker claim.
This is enforced in two INDEPENDENT layers that fail on different signals in different components, so
neither is the single point of failure: the skill clause here, AND — should a desk skip the clause —
deskfile new, which REFUSES (exit 5) any filing labelled needs-decision, help wanted or
question whose body has no ### Evidence heading followed by a fenced block, naming the missing
section. human-only is not in that set (it is an ACT, not a claim). A BLOCKED-ON-HUMAN report is
still a blocker claim, so it carries BOTH the ### Evidence section above AND the act itself, as the
runnable Act block ask-decision §"Act — the shape of the fifth part" defines. deskfile new
refuses (exit 5) a filing with no ```sh or ```url fence when it is labelled human-only or its
body's first non-blank line opens with BLOCKED-ON-HUMAN; a marker in the title or after an opening
paragraph is not caught, and there the Act block rests on this clause alone. attach
observations are not claims and are unaffected; and the refusal takes the same audited --force-new --reason every deskfile
refusal does, for a blocker whose evidence genuinely cannot be produced.
THE REPO SET — derived once, consumed by every sweep
Two sets, one definition point. This is the ONLY place this skill RESOLVES a repo set; the board read, the orphan sweep and the issue sweep all take their repos from here. A second operative list is a bug wherever it appears — a hand-maintained list drifts in both directions at once, and neither direction is visible from inside the file.
| set | what it is | derived from |
|---|---|---|
| BOARD ROOTS | local checkouts carrying docs/streams — the dispatch queue |
deskroster repos --scope roots rows carrying root=, unioned with a live docs/streams test over the siblings |
| SCAN REPOS | owner/repo slugs swept for orphan PRs and un-briefed issues |
deskroster repos --scope scan (ASSAY_SCAN_REPOS) |
SCAN REPOS is deliberately wider (repos the desk fronts that carry no docs/streams); BOARD ROOTS is
not a subset by construction, so a board root missing from SCAN REPOS is a reportable mismatch —
its briefs dispatch but its PRs never get an orphan resume. Print the symmetric difference each boot
and file it rather than reconciling it by editing this file.
The derivation itself — the deskroster read, the docs/streams + --git-dir observation test, the
slug-keyed union — is references/dispatch-runbook.md §Deriving THE
REPO SET. Two rules from it bind here: key on the repo slug, not the path, and a root in exactly
one of the two lists is named in the report either way, never dropped (declared-but-absent =
could-not-check; observed-but-undeclared = a configured-root declaration gap — dispatch it this cycle and file the
gap). A hard-coded list is the board-blind bug this replaces: written from one checkout it silently
skips the largest board when the session is homed in another, and says nothing.
The interleave rule — deterministic, and NOT a new global ranking
Each board is already ranked per root and nothing merges them, so the cross-repo merge adds no
scoring pass of its own: it is a round-robin over BOARD ROOTS in ascending repo-SLUG order — one
row per root per pass, each root's rows top-to-bottom, until every root is exhausted
(A(a1 a2 a3) + B(b1 b2) → a1 b1 a2 b2 a3). Order within a root survives exactly, no root
is starved by a larger one, and slug order means two dispatchers build the same batch and contend on
the SAME claim key. A could-not-check root is a row in the report, not a gap in the batch — its
eligible count is unknown, so the batch is a lower bound (desk-hardening/01); never fold an
unreadable root in as an empty one.
Boards — one per root, and what the board does not tell you
- Regenerate only YOUR OWN root, in your own worktree, and discard the churn. Read every other
root from
refs/remotes/origin/main:STATUS.mdafter fetching it — never regenerate in a sibling (--root ../Xwrites, and../Xis the shared clone other sessions use). Spell the ref in full (bareorigin/mainresolves to a stray local branch of that name where one exists), chain the authenticated fetch to the read with&&so a failed fetch short-circuits instead of printing a stale board at rc=0, and fetch every root. - Row count is not eligible count — the 4-per-stream cap holds rows back without tripping the
overflow line, and no verb surfaces the held rows themselves.
deskboard dispatchis the reading that separates an EMPTY queue from a THROTTLED one: it prints the held-back decomposition and the per-root claim degradation.--overflow-threshold 1gets true counts when regenerating your OWN root. Where the board's overflow line fires, treat it as the alarm it says it is — clear WIP before pulling more (§WIP-capped — re-check, never stop), never as a licence to refill harder. - Qualify every brief ID with its repo (
tracker:/at:/repob:) in claim keys, prompts, dispatch records and PR bodies: more than one repo owns a stream of the same name. - Do not swap in
deskboard nextupon the strength of its help text — measured, it returns the awaiting-verification backlog, not the dispatch queue. - Multi-root: arity is fine — stream-identity COLLISIONS are the defect. Generation works for any
root count when every stream identity is unique (one STATUS.md per root, exit 0) and never merges
boards, so N roots buys generation convenience, not coverage. Where two or more roots declare a
stream of the same name the collision is quarantined per root: the colliding roots are skipped
with loud STALE/PROBLEM lines while every non-colliding root still generates.
statusgen initscaffolds every repo with the samestream: exampleidentity, so init'd roots collide by construction — that, not root count, is what to check when a board goes missing.
Issue-reader compatibility
Before selecting a projection, run issueboard --version locally and require its
issue-projection-v1 capability. Pair this skill with that producer source/release;
an older binary uses the legacy issueboard issues sweep with the same manual
work-readiness checks below until the pin is deliberately upgraded. Do not retry a
failed projected sweep through a broad read. Reverting the plugin and producer pins
restores the old sweep. See the compatibility matrix.
An empty work-ready observation covers only unrepresented issue candidates; intake,
addressed inbox, representation/PR checks and watcher health still need their own reads.
Un-briefed issues — trusted, work-ready, on NO board (human:<name> 2026-08-13)
A real, trusted, implementable issue can sit stranded merely because it is issue-shaped. Beside the board queue and the orphan sweep, the pool draws on §Sources of work row 6: open issues across SCAN REPOS, trusted + work-ready but represented by NO brief and NO placeholder on any board.
Sweep it with issueboard issues --projection work-ready, not a hand-rolled list. The verb resolves the scan scope from
the same roster key the placeholder scanner reads, applies the trust gate itself (untrusted, unblessed
authors are quarantined under EXTERNAL / UNBLESSED — visible, never actionable), excludes represented, decision-owed, addressed and help-wanted issues before enrichment, and fails closed: an unset or empty scan set,
or one unreadable repo, is exit 6 COULD-NOT-CHECK for the WHOLE board, never a silently partial one
(a raw gh issue list reads a dropped repo as a clean, empty board). ALL four must hold:
- Trust gate — authored by a trusted login, or blessed by a trusted comment; the board's own quarantine is the reading, and an EXTERNAL / UNBLESSED row is never dispatched. No new exception.
- Un-represented — no
issue-loop/issue-<NN>placeholder (stream root ordone/archive), no brief citing it, no open PR working it. Absence from the board is NOT absence of representation (staleness, the caps or a board defect can hide a real placeholder): check the FILES and open PRs, never the board. Work persistently failing to surface is a board defect — FILE IT, never route around it. - Work-ready on its face — an implementable spec by the placeholder lane's standard, carrying
none of
question/needs-decision/help wanted, not parked awaiting a reply. - Needs no triage judgment — single-repo, no open design fork, no risk-bearing surface (public-repo
copy, security, prod-deploy, irreversible actions). Anything needing scoping, splitting, a decision
or a risk call is intake's job. When in doubt, leave it to intake AND LEAVE A TRACE (a
questionon the issue naming the fork) — intake's strong tier picks the default a reversible fork proceeds on.
An issue the board shows as AWAIT for its label history is not un-briefed work, whatever its current labels.
Priority is LOWEST of the dispatch sources (WIP-draining work → board rows → un-briefed issues),
but the ordering is a tie-break, not a hold: an empty slot with a qualifying issue and nothing above
it dispatches NOW. Claim under the SAME issue-shaped key the placeholder lane uses, <repo>--issue-<NN>
— deliberately shared, so the two lanes contend on one lock and can never double-dispatch. A
sweep that repeatedly surfaces issues failing rule 4 is an intake-coverage signal: file it, never
widen this lane. A design-owed error-class issue is not this lane's (its placeholder fails rule 2):
intake unparks that row at the trigger, never past rule 4's risk-bearing-surface test (intake-desk
step 1); it dispatches at strong tier, and its deliverable is the one its body line names, never code.
A class also labelled brittle dispatches at the same strong tier with docs/brittle-investigation-template.md
as its deliverable's shape: the design brief follows only on redesign, and reconcile yields a fix
brief whose retires: is the investigation's deletion bundle (accept and clear code nothing).
The loop
0. Sweep — first at boot, then EVERY tick. Every row of §Sources of work that is this desk's, with
that row's own instrument. Repos from §THE REPO SET; an exit-6 or empty deskroster repos print is
could-not-check, never "no repos".
- Run the board-wide instruments once (
deskboard dispatch,deskboard stalled,deskboard health,issueboard issues --projection work-ready), then the per-slug PR + disposition reads — the exact queries and the three pre-resume guards arereferences/dispatch-runbook.md§The tick sweep.--limitis mandatory on every raw list (baregh pr listsilently caps at 30) and at-cap is could-not-check — blind, not idle. - Read the DISPOSITIONS first, before any staleness arithmetic:
SUPERSEDED/RESOLVED-ELSEWHEREis a deskclose item, never an orphan;NEEDS-REBASEis live work; exit 6 or a failed read means that repo is BLIND this tick, not empty. - A PR is ORPHANED when its disposition is dispatch-eligible AND the worker owes it action
(
CHANGES_REQUESTEDat current head, CI red, findings unanswered) AND no commit/comment for >4h AND no live dispatch claim. Advisory comments do not establish disposition: apply the runbook's label, evidence and supersession guards. Writedeskdisposition setonly for a supported derived outcome;NEEDS-REBASErequires an established base/conflict defect. Still-actionable work without that defect needs no disposition write; progress belongs in the PR workpad. Re-write nothing when nothing changed (§WIP-capped: a no-change tick makes no write at all). - A
SUPERSEDEDrecord is a PROPOSAL, never a close. Afterdeskdisposition set --verdict SUPERSEDED --evidence <target>, the worker runsdeskclose superseded -R <repo> <N> --by <target>: under a worker-bound token the tool appliessuperseded?, posts the proposal naming the target, and STOPS — it cannot close, cannot confirm and cannot dispute, whatever flags it is handed, because the role is read from the token's roster binding, not from the caller. The close is pr-review-desk's confirm (once the target has merged); aneeds-decisionon the PR means the reviewer disputed it and the item is human:<name>'s. A dispute leaves thesuperseded?marker in place; it is the WORKER's label, anddesklabel rm <repo> <N> 'superseded?'under the worker token clears it (any other role is refused, exit 5) — never a raw label write. A worker that closes its own PR as superseded by hand has skipped the only independent check on "the other PR carries my scope" — the class of error the lane exists to catch. Asuperseded?PR is parked, not orphaned: never re-dispatch it. - A worker's OWN unreviewed draft is the one thing it may withdraw itself:
deskclose self-withdraw -R <repo> <N> --because abandoned(or--because superseded --by <target>, the target recorded, not verified). The tool closes only a DRAFT whose author is the acting App — pinned by login AND roster bot id — and refuses a PR out for review, another author's item, or anything carryingneeds-decision. It cites no ruling and needs no disposition record: it is the authority a human already has over their own pull request, nothing wider. A PR that has left draft is the reviewers' to retire through the ruled lanes above. - A red default branch is work: where the fix is mechanical this desk dispatches it like any other item; where it is not, it is filed (§Output contract) and named in the tick's line.
- The un-briefed-issue sweep (§Un-briefed issues) runs over the same set in the same tick.
1. Plan, per root. (cd "$root" && deskgit fetch --as worker) && fanoutloop plan --root "$root" for every BOARD
ROOT. plan is the SHOWN queue: orphan resumes first, then the board in board order, issue-<NN>
placeholders included (only another loop's review-request dispatch tokens are skipped), each item
carrying its tier and its exact dispatch instruction. It spawns nothing, writes nothing and touches
no network — the chained fetch is the freshness guarantee. Exits 3 disabled · 5 refused · 6
unverifiable · 7 author==runner: none of them is an empty queue.
plan is not the whole queue, and a zero from it is not an idle claim. It carries no
Awaiting implementer rework row and no held-back row; run deskboard dispatch beside it every tick
for the held-back decomposition, and read the rework section off each root's board (§Sources of work
rows 2 and 5). Where the two disagree, the wider reading wins and the narrower one is a defect to
file, never a queue to route around.
The drive worker floor is the one exception: for drive work, the FLOORED reading wins. While a
drive is active, drive work takes at most 6 of 8 workers (statusgen's driveWorkerCap; the tool's
value governs, never a number restated in a prompt). fanoutloop plan reads the board and carries
no floor; deskboard dispatch applies it across every root against the summed drive work already
in flight, and tags each row it offers drive:<slug> (and critical:<arm> for a critical-tier
row, which takes the headroom first). So when its held-back line names the drive worker floor, or
it prints COULD-NOT-CHECK drive worker floor, a fresh board row is dispatched only if
deskboard dispatch lists it this tick. A board row it withholds waits for a drive worker to
finish. That gap is the floor working, not a defect to file, and a disagreement over a drive row
never licenses dispatching past the floor. Resumes and rework (rows 3, 4, 5, 5b) are not fresh
drive picks and the floor does not hold them.
2. Merge the per-root plans with §The interleave rule, tag every row with its repo-qualified ID,
name every could-not-check root, and exclude items whose depends: are not yet done — except that a
gate: human dependency at implemented whose Evidence carries a strict **VERIFY: PASS** (present in the raw text and not struck, fenced or
quoted) with no later FAIL counts as met for depends: only, never for gates: (the same rule statusgen's eligibility evaluator applies). A count from
human:<name> ("next 3") takes the top N of the merged order — scoping bounds THIS refill, never the loop.
3. Dispatch each item with deskdispatch (below) — one capability:dispatch-worker per item, all
in a single batch.
4. Refill — do NOT hand off and stop. The draft PRs reach pr-review-desk's review monitor by
themselves (you never review your own dispatched work). On each completion re-run the sweep and
dispatch the next eligible item into the freed slot immediately, holding the pool at the current
N (deskroster width --role worker-desk, re-read this tick — §The pool); re-plan
every root each tick. The 4-per-stream cap is per stream, and a same-named stream in two roots counts
separately.
5. Keep the records current — silently. The dispatch log is what the machinery already writes:
refs/heads/dispatch/* claims, roster registrations, branches, draft PRs, dispatch comments. The loop
pauses only between ticks — never because "the wave finished". Note what that log does NOT cover: the
sweep itself leaves no audit row, so a tick that only planned is indistinguishable from a tick that
never ran unless the tick's own line (§Output contract) says otherwise.
WIP-capped — re-check, never stop
Every visible row claimed, in flight or held at a cap is a WIP state, not an empty queue. It is the one state in which this desk has nothing new to START, and it is never a state in which the window stops, hands back, or asks the driver for direction.
- Drain WIP before pulling more. In this state the desk works the WIP-draining sources FIRST and
in this order: orphan resumes (§Sources of work row 3),
Awaiting implementer reworkrows (row 5),CONFLICTINGPRs and red checks on PRs this desk dispatched, stalled drafts (row 4). Only when those are genuinely clear does a fresh start go into a free slot. The board's own overflow line says the same thing — a persistently overflowing Next-up is an alarm about load, and refilling to 8 against a deep verification and rework backlog grows Act while Observe stands still. - Then tick again — do not stand down. The next full re-check runs on this desk's cadence (§Cadence and wake). Standing down needs an empty standing queue after a fresh sweep PLUS the hand-off artifact (§Liveness contract), and a WIP-capped queue is neither.
- A no-change tick makes NO write. Not a disposition re-write, not a claim touch, not an
idempotent re-record of something already recorded. The deskkit breaker counts CONSECUTIVE
non-progress results with no time window, and a plain
noopcounts as non-progress (ratelimit.go,BreakerTrip = 5, 15-minute cooldown) — so an idempotent write on five quiet ticks in a row opens the breaker with nothing having failed. Read freely; write only what a real change earns. - Refills stay inside the write budgets.
deskpr createand an unbounddeskfile newshare one repo-wide ceiling of 20 per rolling hour, so a full 8-slot refill each half hour already spends most of it on one repo and leaves little for rework pushes on the same repo. Pace refills against that; exit 4 names aRetryAfter— sleep it and attempt ONCE, never retry-loop. A workflow-bound filing (deskfile new --for-pr <owner>/<repo>#<N> --brief <id>, an issue an open PR's review or verification requires) is not counted by the per-session filing budget, so a spent budget never defers it, and it does not spend the fixed ceiling above: it meets the per-PR outward-write tier (two writes per filing, with the back-link), a separate repo-wide backstop of its own (write.bound.repo_hour, 60 per repository per hour by default, never off;deskfile attach --kind mrreplies are held by it too) and a per-role, per-PR cap when one is configured (off by default). - The tick still reports. One line per §Output contract, and the sweep obligations of the HARD GATE are unaffected by a quiet queue.
Post-open stamp handoff
For a dispatch made before its PR exists, retain the real dispatch receipt with the
actual selected model and tier. When the worker returns the opened PR, send that PR and
selection to the coordinator desk (the-desk), which runs the printed
deskdispatch --stamp-only --repo <repo> --pr <N> --model <actual-model> --tier <tier>
command with the original kit. Require its applied-and-verified receipt before treating
the PR's authoring as model-attested. A worker-kit stamp writes the authored-model: /
authored-tier: pair, never dispatched-*. The dispatched-* pair is the review session's attestation,
and it is the only one the capability floor reads. Both this worker-desk and its child are refused by stamp-only;
a shared DESK_SESSION is claim custody, not stamp authority. Never switch identity or
redispatch a worker just to obtain the stamp.
To give a fresh dispatch a stamp target before its PR exists, add --attest-worker (with
--model, --tier and --brief, or an issue-<N> item). The verb creates, stamps, closes and
reads back a dispatcher-authored [worker-attestation] record before it emits the prompt. If
any of those steps fails, it emits no prompt and releases the claim (exit 6). Do not retry
by hand. The prompt carries one exact Worker-Attestation: line for the PR description,
and the coordinator's --stamp-only call (optionally --attestation <N>) refuses a change
whose branch, kit or model/tier disagrees with that record. The record constrains the PR
stamp; it never stands in for it.
Dispatch — deskdispatch <item-key> runs the ceremony
The per-item ceremony is mechanical and lives in the verb: claim-acquire → worktree-create in the item's OWN repo → roster-register → decision-gate → model-stamp → prompt-emit, each printing one line, the first red one stopping the dispatch and naming itself. The desk RUNS the verb and honours its exits; it never re-implements a step and never hand-assembles a prompt.
deskdispatch <item-key> [--tier strong|any] [--kit worker] [--repo O/N] [--root DIR]
[--model SLUG] [--brief PATH] [--gate-human] [--pr N] [--dry-run]
- Context pickup receipt (statusgen/21; deskdispatch from the first release whose
CHANGELOG.mdnames--context-snapshot). When the brief was authored against a context receipt, pass--context-snapshot DIR --context-receipt FILEwith an implementer kit. Before the claim, deskdispatch runs the shippedstatusgen context rechecksemantics over them: a current receipt, an unrelated edit or a product change to assess is admitted and carried into the prompt's## Context pickup receiptsection; a conflict to reconcile, an unavailable input or partial coverage is HELD (exit 5,dispatch HELD on context pickup, nothing claimed): a delay, not a verdict. A receipt schema this build does not validate is refused, never admitted unchecked. Without the flags, or on an older install, the kit's Architecture pickup is the manual bootstrap of the implementation pickup procedure, the one procedure the author skills also follow. - The item key passes through UNCHANGED —
<repo>--<stream>--<NN>, or<repo>--issue-<NN>for issue-shaped work. A key a dispatcher reshaped would not collide with the one another desk holds, and a claim that does not collide is not a claim. - Honour the refusals. 5 = a LIVE holder owns it: SKIP, carry the printed holder line into what you report, never steal. 6 = unverifiable: treat exactly like 5 this cycle, retry next — fail-closed, a claim you could not read is never "assume free". 3 disabled, 7 author==runner. Only exit 0 is a dispatch.
- A claim is intent, not evidence. The branch/PR check stays authoritative and still runs, over
merged PRs as well as open — measured 2026-08-13, ~16% of
todorows already had a merged PR. A check that could not reach GitHub is could-not-check, never unclaimed. progressthe instant the agent is launched;releaseevery claim you took but did not dispatch. The claim contract — GitHub ref not local file, the two TTLs (claimed20m →dispatched120m), branch-as-claim takeover,steal --reason— has one home: the header comment of the claim tooldeskdispatchresolved. That tool isdeskclaim-refby default — the cross-platform claim binary installed with desk-tools (tools/desk/cmd/deskclaim-ref), verbsacquire/progress/release/steal/show/list, deskkit exit codes 0 ok · 5 refused (a live holder owns it) · 6 unverifiable (never "assume free");listalone adds 7 partial — some claims listed, some refs unreadable and named on stderr — which is incomplete, never idle. The fallback: a repo may ship its owntools/dispatch-claim.sh, anddeskdispatch's claim-acquire step prefersdeskclaim-refwhenever it is on PATH, falling back to that script when the binary is absent and the resolved root (--claim-rootwhen given, else--root) carries it — and refusing fail-closed, naming both, only when NEITHER is available. Theclaim-acquire OKline names which one ran. Both speak the same wire protocol, so which one runs never changes where the claim lands or whether two dispatchers collide. Either way the claim child runs as the DISPATCHING role:deskdispatchmints (or reuses) that role's App token and hands it over (--token-filefor the binary,GH_TOKENin the child environment for the script). An exportedGH_TOKENwins only whendeskdispatchverifies it IS the dispatching role's App — thedeskApp for the worker kit, thereviewerApp for the review kit, never the worker App whose token a worker holds. Any other identity is ignored with a NOTICE and the role token minted; one whose identity cannot be read is exit 6 with no claim attempted. A mint refusal is exit 6 with no claim attempted, never a fall-back to the ambientghlogin.- Never hand-edit the board row — neither this desk nor the worker it dispatches.
in-progressappears the instant the worker's draft PR opens carrying the trailerBrief: <stream>/<NN>in its body;deskpr createrefuses to open a PR whose body carries no link trailer at all — exactly oneBrief: <stream>/<NN>, orIssue: #<N>for issue-only work that delivers no brief (a briefs-AUTHORING PR carriesAuthors: <stream>/<NN>[, …]instead).Fixes: #<N>— alsoCloses:/Resolves:— is the same link in its resolving form: merging into the default branch closes the issue, whereIssue: #<N>leaves it open; it is never for an issue carryingneeds-decisionorhuman-decided(or any decision-gate issue): such work links withIssue: #<N>and the close stays on the human-only path. — and that refusal at write time is the enforcement, not a follow-up edit to the stream README.implementedappears the instant that PR merges.statusgenderives both cells from the trailer plus the PR's own state — this desk's job at theprogressstep is opening the PR promptly, not writing a cell. - The worker prompt is the kit, verbatim.
deskdispatchemitsreferences/common-clauses.md(home-worktree isolation floor, no-evasion, offline envelope, three-state instruments, escalate-durably, one-workpad-per-PR — the workpad body file is written fresh with>, never appended with>>, and the old workpad is never re-read into the new body) ahead ofreferences/worker-prompt.md(security-gate refusal, per-invocation scratch-file body files (desk-shell.md §Scratch files), stop-at-implemented+ the bare-token board-row shape, lineage self-check, merge-never-rebase, verify-before-apply, scope + desk write verbs, release-the-claim, fail-first evidence, public-body self-containment, changelog fragment where the repo enforces one, the defect-class rule for a bug fix, strike two,## Weight) — both shipped inside the binary fromtools/desk/cmd/deskdispatch/references/.--kitslists what the installed binary carries;--dry-runprints the prompt it WOULD emit. Never paraphrase, summarise or "improve" a kit clause at dispatch time: each is a rule that has already failed in the field, and the wording is the fix. - The prompt fits the KIND of run, and the verb decides the kind. A dispatch with
--pronto an open change is a SHEPHERDING run: its assignment names the change, its source branch and the head read at dispatch, tells the agent to push withdeskpr update, and never tells it to open a PR. Every other worker dispatch is an IMPLEMENTING run and gets the open-a-draft-PR assignment. The kit's clauses reach both kinds; only text that plainly binds one kind is cut for it, and the objective kit's own copy of the common clauses is not quoted a second time. There is no flag for the kind:--pris what makes a run a shepherding one. - Packet, gathering and waiting. When the dispatch could prepare one, the assignment carries a
Packet: <absolute path>line: a file holding what the run would otherwise fetch first (for an implementing run the brief, its dependencies' board status, the files it names and the repository's own instruction files; for a shepherding run the change, how it stands against its base, its checks, its reviews and its diff), taken at a recorded head. It holds no job log and no review comment anchored to a file and line — the agent still fetches those. The kit tells the agent to read it first in one read, to batch independent reads into one request, and to wait on checks or a review in one bounded command instead of a look per request. A packet that could not be built costs one stderr line and never fails the dispatch — the prompt simply carries noPacket:line and the agent gathers for itself. - A bug fix closes the defect CLASS, not the one instance — the worker's fix obligation the kit
carries: name the class under a
## Defect classheading (plus the earlier fix when there was one), close it by removing the hazardous path or making it unrepresentable — a guard only when removal is infeasible, reported as weight in## Weightand a rule-register row — and show it red against a deliberately PLANTED second instance at a site the fix does not touch. A defect-fix PR with no## Defect classsection is INCOMPLETE, the same as one missing its fail-first run. - Cross-repo is the default case. The verb cuts the worktree in the item's own repo off
refs/remotes/origin/main; dispatch the agent withcapability:isolate-workspacetoo, so its payload cwd is never the shared checkout — a /tmp clone does NOT isolate that cwd, and a falsely-blocked worker is the input that produces evasion. - Tier:
--tierfollows the brief'sexec-tier(absent =any);stronggoes only to a strong-tier worker and the kit carries the pickup-STOP text. A session that itself runs at strong tier or above launches it at session tier; a session that runs BELOW strong names the strong tier explicitly in the launch (../../references/<harness>.md, thecapability:dispatch-workerrow) — a default launch there lands below strong and the worker stops at pickup, correctly. Naming a tier is a request, not a result: BEFORE the dispatch, a session below strong reads the launch's own resolution (the same row says where) and CONFIRMS the slot it will name is pinned to a strong-tier model;--modelstates that pinned id in the stamp's form (the row gives it) — never the tier name, the alias, that session's own model or a guessed mapping. The read comes first because a dispatch that names a PR writes the stamp before the worker starts, and the dispatching session has no verb that corrects it. A pin is what the launch asked for, not proof of the model served: the kit's pickup stop stays the worker-side check, and a strong-stamped worker that stops there is a wrong stamp — hold the item and file it. A session with no way to launch a strong-tier worker, or that cannot confirm the pin, holds the item and files it; it never edits the pickup text. Effort S may run at your session tier, M/L go to a cheap tier behind the review/verify gates. A re-dispatch or shepherd pass on a PR whose open finding class is at round ≥ 2 runs at strong tier. A worker'sNEEDS_CONTEXT: strike two(kit clause 8) returns the item to intake asdesign-owed— not a failure to retry. - Budget checkpoint —
budget:is a filing threshold, never a gate. A brief may declarebudget:besideeffort:— an amount with its unit (400k tokens,25 USD); absent = no checkpoint. The worker reads it from the brief it was dispatched on. When the worker's own reported spend on the item reaches 80% of it, the worker fileshelp wantedon its PR (or the item's issue, if no PR is open yet) carrying the escalation packet — what is needed, the options with the default first, the evidence (spend so far against the budget, Verify rows passed and still open), reversibility, and a deadline — and then handles it like any other escalation: that line of work waits for the answer. Never silent continuation past the checkpoint. The checkpoint only ADDS a filing: it never skips, shortens or satisfies a review, a Verify row or a human gate, never marks the item done or blocked by itself, and nothing in the tooling stops, closes or reverts work because of it. Spend the worker cannot read is reported on its workpad as could-not-check, never as "under budget". - Cheap implementers run below the floor, but authority-bearing writes do not: a review verdict and a ready-flip enforce a model-capability floor keyed on the dispatcher's attested tier, so a dispatch ATTESTED below the strong tier is refused those writes even though it may implement freely — delegate downward, and escalate a verdict or flip to a strong-tier session rather than route around the refusal. A
dispatched-tier:anystamp is not such an attestation (anyis the brief's "no tier demanded"), so it proceeds with a NOTICE; nor is a stamp whose dispatch claim has since been RELEASED — a dead cycle's stamp ages out and the PR reads unstamped, rather than being refused harder than an unstamped one. The unstamped/NOTICE path is RISK-CONDITIONAL for a review verdict (ruling 3): on a risk-classed PR (every public-repo PR, or a diff touching a security path) a security-review-bearing verdict must carry a trustable strong-tier attestation, so an UNSTAMPED verdict there REFUSES; the NOTICE-proceed holds only for an unstamped NON-risk PR. The convention to escalate still stands. - Serialize out-of-repo items — no worktree isolation, no branch-as-claim: at most ONE in flight across all streams, the declaration is the claim, so check in-flight PRs for overlaps first.
- Placeholders are dispatchable (ruling 2, 2026-08-24);
fanoutloop planincludes them.
Cockpit-aware worktree creation — additive, chosen by ASSAY_COCKPIT or detected on PATH, never required
The per-item worktree the ceremony isolates is a plain
git worktree add ../<repo>-<item> -b <branch> refs/remotes/origin/main, and that path is the
default and stays fully supported on any terminal, any OS, with nothing installed. Where the
operator runs a cockpit — a terminal shell that manages git worktrees and agent sessions —
the same isolated worktree may be cut by the cockpit's own worktree verb instead: it performs the
identical git worktree add underneath and adds a titled worktree plus a live agent-presence
badge. This is sugar on the same primitive, not a new requirement. The methodology is
unchanged; the invariant is isolation off refs/remotes/origin/main, one worktree per dispatched
item, and the cockpit is only a nicer way to reach it.
ASSAY_COCKPIT, when set, names the arm — and a named CLI that is absent is a refusal, never a substitute. A cell launcher exports it into every role window as the cell's ONE cockpit value (the same cockpit its windows are hosted in), so nobody has to remember it; an operator with no launcher may export it by hand. Its values select the arms below:supacode,herdr,orca, orplain— andtmux, which a tmux-hosted cell exports, meansplain(the always-works fallback, which needs no cockpit CLI). A cell launcher never exportssupacode, so inside a cell that arm is reached only by an operator's own export outside the launcher. When the named CLI is not on PATH, that is a refusal naming that CLI: do not cut the worktree, file it per the escalation rules, and stop that dispatch — never a silent switch to another cockpit or to the fallback. A value outside that set is a refusal naming the value. Everything else about the named arm is unchanged: where it says "fall through to the fallback" (an installed build that cannot pin the base or the per-item path), it still falls through to the plaingit worktree add— the value picks the cockpit, it never makes one required.- Unset, selection is by command presence on PATH, never a config flag someone must
remember. For the worktree-create step of each dispatched item, resolve the FIRST that is
present. Either way, every path spells the base in full as
refs/remotes/origin/main— never the bareorigin/main, which resolves to a stray local branch of that name where one exists:supacodeon PATH →supacode repo worktree-new --branch <branch> --base refs/remotes/origin/main --path ../<repo>-<item> --fetch(it fetches for you and opens a titled worktree in one command). Pin the base and the per-item path explicitly rather than leaning on the cockpit's defaults; if the installed build accepts neither flag, do not use it for the create step — fall through to the fallback rather than trust an unstated default base.- else
herdron PATH →git -C <repo> fetch origin && herdr worktree create --cwd <repo> --branch <branch> --base refs/remotes/origin/main --path ../<repo>-<item> --label <item>(it has no--fetch, so fetch first, then it runs thegit worktree addand opens a labelled workspace). - else
orcaon PATH →git -C <repo> fetch origin && orca worktree create --repo <repo> --name <item> --from refs/remotes/origin/main(fetch first, as with Herdr, then it cuts the samegit worktree addunderneath and lists the worktree in the cockpit sidebar; pin the base and the per-item name explicitly, and if the installed build accepts neither flag, fall through to the fallback rather than trust an unstated default base). Then, only when a fanout coordination run already exists, alsoorca orchestration worker-startfor the dispatched worker, so the coordinator learns that worker'sworker_done— its outcome, exactly once — without polling. That orchestration link is used for that one thing only and is never an escalation channel: a worker that needs a human still files the GitHub issue exactly as always, and the coordinatoraskinbox is for coordinator-answerable questions only (which base branch, retry or abandon). GitHub stays the only record, so an operator with no run — or no Orca — loses only the poll-free notification, never any isolation, correctness, or the escalation path. - else (or
ASSAY_COCKPIT=plain/tmux) the always-works fallback →git fetch origin && git worktree add ../<repo>-<item> -b <branch> refs/remotes/origin/main.
- The base is verified after the create, not trusted from any tool's default. Whichever path
cut the worktree, before the worker is dispatched confirm the new worktree sits at the
remote-tracking tip —
git -C ../<repo>-<item> rev-parse HEADmust equalgit -C <repo> rev-parse refs/remotes/origin/main— and that it is the per-item../<repo>-<item>path (one worktree per dispatched item, collision-free by construction). A cockpit whose base or path cannot be pinned to that invariant is not used for the create step; the fallback is. This is the isolation clause enforced, not merely asserted. - Only the worktree-create step changes — nothing else forks. The branch name, the
refs/remotes/origin/mainbase, the claim key, the roster register, the decision gate, the model-stamp and the emitted worker kit are all identical; the desk still RUNS the dispatch verb and honours its exits. A cockpit is used only where its CLI is actually on PATH, so the same skill drives a fanout whether or not any of these cockpits is installed. - The fallback is not a degraded path. An operator with no cockpit loses only the titled worktree and the presence badge, never any isolation or correctness. Nothing in a brief, a loop or this skill may require a cockpit to function.
gate:human items dispatch normally — and file the decision issue at first dispatch
gate: human / irreversible: yes items DISPATCH NORMALLY (2026-07-10): the gate binds APPROVAL —
review, merge, verify sign-off — not implementation, and every human control point sits downstream.
But a human gate with no filed issue is an empty decision surface (human:<name> 2026-08-23), so pass
--gate-human (or a --brief whose metadata gates; with no --brief, a brief-shaped item key's own brief gates the same way, and a key whose brief does not resolve is refused pre-claim), which runs decision-issue ensure … --at start between claim and launch — idempotent by its hidden marker, swept --state all, landing a
needs-decision issue that enters the weekly digest. Three non-filing outcomes: deferred: decision-trigger=spec — the decision is only well-formed at the pickup design step, so the prompt
instructs the executor to author the brief's ## Human decision section in its PR and report
DECISION-BLOCK READY, and this desk then re-runs ensure --at spec against the branch copy
(subagent issue-writes get classifier-denied); 5 = self-containment refusal, repair the brief,
never hand-file around it; 6 = could-not-check, do not file, retry next cycle — but a gate
6 that repeats across more than one brief in one tick is a defect, not a blip: file it THAT tick as
ONE issue naming every brief it blocked. The decision-gate step reports every helper failure as 6,
the helper's own self-containment refusal included: where the step's message line or DESK_TRACE
shows the helper itself refused (its status 5), that brief is a refusal — repair it, never count it
toward the repeat filing. In either case, never hand-run the decision-issue helper around the
refusal (a hand-run once landed a duplicate decision issue). Record the issue in
the dispatch and the PR body's BLOCKED-ON-HUMAN line; where the Task has an explicit human co-execution
step the prompt says prepare everything, STOP at the documented stop-point, report BLOCKED-ON-HUMAN —
the report carrying the step the human runs as an Act block (ask-decision §"Act — the shape of the fifth part").
Security-gate removal is gate:human BEFORE the commit, not only at approval: such a diff
erases the red-check signal that makes the decision visible downstream, so "a worker behind a draft PR
is inert" fails for it. Never write that removal into a brief or a prompt — briefing it launders a
gate:human decision into a mechanical task. File the needs-decision fork; dispatch only after a
recorded ruling.
Intra-brief splits — N shards, ONE brief PR
Default is one worker per brief. A brief may OPT IN by declaring parallel-streams: (a name plus
file globs per shard); the field is declared once, empty, across the corpus today, so the lane is live
but unexercised. The gate is statusgen shardcheck --brief <path> --root <that repo's root>: 0 →
the split may dispatch; 1 or 2 → ONE worker, serially — a split whose safety could not be
established is not a split you may run, and serial is always available and never wrong. Its refusals
name properties of the declaration against the real tree, so the fix is a different declaration or a
serial run, never a narrower check. The recombine model (N worktrees → ONE integration branch → ONE
draft PR), the shard claim key, what file-scoping does not prevent, and the SHARD-INCOMPLETE
partial-failure contract are references/dispatch-runbook.md
§Intra-brief splits.
Output contract — one line per tick; escalation = a FILED ISSUE (human:<name> 2026-08-13)
This desk's console is not a progress channel and nobody is watching it — human:<name>'s review surface is the issue list. Two states:
-
Normal operation → ONE LINE PER TICK, nothing else. No dispatch narration, refill confirmations, board dumps or "swept N boards" summaries — every one of those is already recorded where the machinery writes it (§The loop step 5). The single exception is the quiet-iteration line the console noise floor allows, in the shape that canon defines — the project's console-noise-floor contract,
docs/streams/desk-tools/scoping.md§"Console noise floor"; read the shape there, it is deliberately not restated here. That line is the whole reason a quiet tick is distinguishable from a dead one, which is why this desk prints it rather than nothing: the sweep itself leaves no audit row. An explicit request from the driver still gets a full answer: the floor binds unprompted narration, not answers. -
Needs a human → FILE AN ISSUE with
deskfile new … --raised-by worker: the dedupe gate plus the provenance stamp that lets the by-desk metric see the DISPATCH loop noticed it (omit the flag and it lands UNKNOWN, which is the absence of an answer; an unbound role is refused, exit 5). Escalation vocabulary and label discipline: §Guardrails. When it concerns a PR/issue already in flight, label + comment THAT item rather than filing a duplicate. The filed issue IS the escalation. -
Receipt on a human-typed message. After ANY human-typed message, the FIRST line of your turn is
deskack --repo <repo> "<your reading in at most 12 words>"(role from$DESK_LOOP; omit--repo <repo>when no repo is named), then act. Put flags before the quoted text. A usage error (exit 2) writes no receipt: correct the flags or shorten the text and re-run before continuing. Guard, identity, and storage failures still stop the pass; never bypass them. It is the ONE acknowledgement line the floor above permits — not narration, and a second acknowledgement line is a violation. Say what you UNDERSTOOD, never a quote, so a misread is corrected on your next turn. To hand work to another desk, address its LANE —deskcomms send --to <role> --verb <verb>for a routine hand-off (§Cross-desk hand-offs),deskfile new --to <role> …for the durable tracker state that desk's own sweep leads with — never a typed relay through the human, and never a message to its session.A correction is a free skill-bug report — capture it. After you have printed a receipt (above), if the human's NEXT message is a CORRECTION — it opens with
no,wrong,stop, "that isn't/is not what", "not what I", "why are/did you", "you're inventing/fighting", "don't make me ask" — then (a) OBEY the correction first, and (b) file exactly ONEskill-bugissue, composed by the tool, before continuing:deskfile new --raised-by <role> --label skill-bug --to desk --correction "<the human's message>" --section "<the skill + section you were following>" --reading "<your one-line reading of what the skill should have said>". The tool reads your last receipt from this session's beacon and composes the body (receipt line, correction verbatim,$DESK_LOOP, skill+section, your reading); with no receipt in the last 30 minutes it REFUSES (exit 5) — a correction with nothing to correct is not a skill-bug. Do NOT file for anothat answers an OPTIONS QUESTION you just asked — if your previous turn ended in a question mark or an options list, thenois an answer, not a correction.skill-bugfilings count against the ordinary per-repo filing budget by design: a desk that earns several corrections a day is itself the finding.
A question never stops the window. question, help wanted and needs-decision are filings, not
console stops: label + comment the item saying what is needed and from whom, then carry on with the
rest of the queue in the same tick. For a REVERSIBLE fork the ITEM does not park either — it is
dispatched on its stated default with the question riding on the issue/PR (the merge gate catches a
wrong default); only a genuinely one-way fork parks the item. The WINDOW never parks. "What should
I work on?" is not a question this desk asks at all (§Liveness contract).
A hard error that halts the loop may print its final diagnostic — but if clearing it needs a human, file the issue too. The output floor does not touch the HARD GATE, an internal-state rule: the sweeps still run every tick and the desk still may not treat itself as idle without one.
Detected blindness is a needs-human condition, not a quiet state. A board older than the cadence
interval, a wake that stopped re-arming, a sweep exiting non-zero, an issueboard/deskboard exit 6
→ re-sweep immediately, and if it persists past one attempt FILE it (help wanted, naming the dead
instrument, the last good sweep timestamp, and what re-arming was tried). Quiet is evidence of health
only while the tick line proves the instruments are alive.
File-and-exit, never block (pod-loop contract, desk-hardening/13) — scoped to POD / CronJob runs.
In a bounded execution (a pod or scheduled job whose run must terminate), the reversibility test runs
FIRST: a reversible fork is dispatched on its stated default and then filed with that default named;
only a genuinely one-way / external blocker the DISPATCHER loop cannot resolve is filed unworked — or
confirmed already filed — and the run exits; it never holds a bounded run open waiting. In a live role window this clause
does not license an exit: the window files the same escalation and continues with the rest of the
queue. The event-only resumption the original clause assumed is superseded for live windows by the
2026-08-25 liveness ruling recorded in the project's desk liveness contract,
docs/desk-liveness-contract.md — read the ruling and its provenance there; it is relayed here, not
restated. Scope boundary: this converts the DISPATCHER loop only — a dispatched worker that hits
a blocking question parks on its issue
(question-labelled comment carrying the <!-- desk-automation --> marker, blocked: awaiting-issue-response + blockedAt: in its placeholder, commit, STOP), owned by issue-loop/03 and
deliberately not re-authored here.
Stop-flag check — run at every iteration boundary
Before each loop cycle (orphan sweep, slot refill):
[ -f "$HOME/.config/assay/STOP" ] && echo "STOP flag active — exiting loop" && exit 0
case "$ASSAY_CELL" in ""|*[!a-z0-9-]*) ;; *) [ -f "$HOME/.config/assay/STOP.cell.$ASSAY_CELL" ] && echo "STOP.cell.$ASSAY_CELL active — exiting loop" && exit 0 ;; esac
[ -n "$DESK_LOOP" ] && [ -f "$HOME/.config/assay/STOP.$DESK_LOOP" ] && echo "STOP.$DESK_LOOP active — exiting loop" && exit 0
case "$ASSAY_CELL" in ""|*[!a-z0-9-]*) ;; *) [ -n "$DESK_LOOP" ] && [ -f "$HOME/.config/assay/STOP.cell.$ASSAY_CELL.$DESK_LOOP" ] && echo "STOP.cell.$ASSAY_CELL.$DESK_LOOP active — exiting loop" && exit 0 ;; esac
ASSAY_CELL is the cell marker cellctl stamps on every desk it launches: STOP.cell.<cell> stops every
loop of that cell, STOP.cell.<cell>.<name> one loop of it. A session with no marker skips both cell lines; a
marker outside [a-z0-9-] builds no path here and is refused (exit 6) by the Guard. Cell flags only add a
stop — they never lift DISABLED, STOP or STOP.<name>.
A hit means exit cleanly (restart by rm <flag> + re-arm); never halt mid-dispatch. Precedence:
DISABLED > STOP > STOP.cell.<cell> > STOP.<name> = STOP.cell.<cell>.<name>; deskkit.Guard() enforces them at the tool layer independently.
Guardrails
- Worktree isolation is mandatory — parallel workers mutating a shared checkout is the incident
this system exists to prevent. It binds the DISPATCHER and its prompts too: F-35 proved a session
boots clean in a worktree,
cds to the shared checkout out of habit, and its prompts then carry shared paths. While workers are in flight,git -C <shared> status --porcelaineach tick — ANY dirt is an alarm. - A guard/hook BLOCK is a STOP signal, never a puzzle — never re-attempt the same effect with a different command, tool or path spelling; quote the block message and escalate. The verbatim clause every agent receives is common-clauses C2; it is named here because a dispatcher that treats its own block as an obstacle reproduces the incident at dispatch scale. A worker that finds its item too big STOPS and splits per author-brief rules, keeping only the piece it was mid-implementing.
- Project tool output; tune one variable at a time. Read tools through a projection (
--json+jq, only the fields the decision needs), and change ONE variable at a time when re-configuring a monitor cadence, the fan-width or a dispatch clause, recording before/after in the PR. - Dispatch claims are dispatch-scoped, not work-scoped — a listing full of old refs means dead dispatchers, not claimed work: read the state and age each claim carries, never existence alone.
- The out-of-repo surface (files outside any repo) is serialized, never parallel — max one
in-flight item, staged as diffs in the PR and applied to the live files only as the last step
before
implemented. - New dependency, plugin or MCP server — risk summary first, install second. Before adding
one (to a manifest, a lockfile, the harness or the agent environment), file an issue carrying an
agent-generated risk summary: source (publisher, repo, exact version, release date),
permissions (network, filesystem, credentials or scopes it reads), and persistence (hooks,
background processes, auto-update, files written outside its own directory). The PR cites the
issue; no issue, no install. Minimum release age is 7 days — a younger release needs the
risk-summary issue PLUS a driver
blesson it before install, never the worker's own judgment. - Insight-routing: a systemic/process insight produced in passing (a wrap-up, a dispatch or drain
note, an Evidence aside, a "this keeps recurring" observation) MUST also be filed as an issue in the
project's own toolkit/methodology repo — commentary is not a register. Include the triggering
evidence and affected loops. Repo-specific defects still go to that repo's own tracker (label
bug). Before submitting an upstream issue or attaching a cross-boundary comment, apply R7: remove internal locators from the title, body and evidence; use opaque role+number refs instead. - Escalation labels: any desk/loop may label a PR or issue
question(needs an answer from the driver or a stronger-tier model — the item PARKS only when the fork is one-way; a reversible item proceeds on its stated default with the label riding on it) orhelp wanted(the desk hit its capability/authority edge). Both are GitHub default labels — they exist in every repo, no setup. Discipline: a bare label is unanswerable — the labeler MUST comment what it needs and from whom when labeling; whoever answers removes the label with their response. Aquestionthat matures into a formal decision fork promotes toneeds-decisionwith the pros/cons template. Labeled items are WAITING-ON-INPUT: they join the human/escalation queue and are NOT orphans for the worker sweep. - Driver-act runsheet entry — an escalation that is an ACT only the driver can perform: see
../../references/desk-common.md§Driver-act runsheet entry. - Git push policy (ONE policy, role-keyed): MERGE IS ALWAYS the driver's, and nobody triggers
workflows or runs mutating cluster commands without their go. Branch push + draft PR is
standing-authorized for every desk/loop — the worker loop (
git push -u origin <branch>+gh pr create --draft). The verify desk lands its own work: its Evidence + status flips commit straight tomainas the project directs — no push-go is needed there and none should be waited for. Anymainpush not covered by a standing authorization is gated on the driver's explicit go; committing local work is always fine. A guard/hook-BLOCKED push is a STOP signal — never route the same write through another tool. Each desk's own grants and denials (what it may flip, file, close, or land) stay in its skill, directly below this block.- Desk-specific: any cluster or live-infrastructure contact is outside a worker's envelope — read-only included. Mutating verbs stay denied for every desk role; a worker that needs live state reports could-not-check + BLOCKED-ON-HUMAN, never a probe.
- Reversibility test — default-forward on anything a human-held gate still catches: before
parking an item on the driver, ask ONE question: is a wrong guess here caught by a gate the
driver still controls — a draft PR awaiting merge, a filed issue awaiting close, a flip CI or a
human must still make? Yes → default-forward. Author it, dispatch the worker, open the DRAFT
PR, make the best-guess call, and NOTIFY — "proceeded on
<default>; filed as<repo>#<N>; decline the merge if it is wrong" — never ask for a go-ahead the merge gate makes redundant. Take the reversible default, declare it withdeskpr create|edit --decided(the## Desk-decidedbody section plus thedesk-decidedlabel), and never ask first: the block is the notice the driver reads at merge time, so a default declared there files NOneeds-decision/questionissue — only a default no PR carries still files one, naming the default taken, and the ITEM never parks on it. Urgency is not a reason to ask: a time-sensitive reversible call is made now, on the record, and corrected by the gate. No → STOP and wait for the human. A wrong guess that lands irreversibly or reaches outside the gate is caught by nobody declining a merge. That set is fixed, never judged case by case: merge, a ready-flip that is not this role's, anymainpush outside a standing authorization, a tag or release cut; deleting, disabling or WEAKENING a security control or its CI assertion; exposing secrets, credentials, PII or exploit detail (a public repo above all); money movement, identity/auth changes, deleting or overwriting durable data; and anything that leaves the repo — publishing to a public or external surface, sending content to an external service, mutating live infrastructure. A guard or tool REFUSAL is a STOP on either side of the test — the test never routes around one. - A
needs-decisionfiling must carry the### Fork testblockdeskfile newrequires (grammar intools/desk/README.md— not restated here): the options that can actually work, the default, the gate that catches a wrong guess, and the search proving the question is not already ruled. An item with one workable option is not a decision — the tool refuses it (exit 5) and names the three--no-forkre-routes (brief-contradicts-artifact|wrong-repo|tool-false-positive); use the one that fits rather than forcing the filing. Two workable options plus a gate the driver still holds MAY file on the NOTICE LANE (desk-decided, off the driver's queue, in the weekly digest with its veto date) instead ofneeds-decision. The tool admits it only on a positive, content-bearing R-3 reversible signal (a tool default alone never admits, and neither does a lint-level/lint-severity/notice-or-error/port-or-drop example, named CI check or not — that is always a classification question about some check, so it never admits on its own) with no one-way term or one-way label, and the same one-way check refuses--no-fork(exact lists:tools/desk/README.md). That reversible signal is read from the block's ownsubject:line ALONE, never the title or body prose, and only from the STRICT grammar's bounded block: the### Fork testheading must be followed directly by the block (blank lines are fine, prose is not), the block is the contiguous run of key lines that follows (option:/default:/caught-by:/ruled-check:/subject:, each at column zero with no bullet/quote/indent decoration), and it ends at the first line that does not match, blank or not — nothing past that line is ever read as part of it, once fenced code and HTML comments are blanked (how far that strip goes, and its backstop, are in the README). Exactly onesubject:line inside that bounded run is required before the signal test can admit; zero or more than one admits nothing: write ONEsubject:line yourself, naming the one thing being decided, directly among the block's other key lines (tools/desk/README.mdhas the full grammar). The tool's keyword check is a floor, not the reversibility test above: an item that test calls one-way is filedcaught-by: nothing, and so stays on the driver's queue, whatever the keywords say. - No attribution lines anywhere: no
Co-Authored-By, no "Generated with …" in commits, PRs, issues, or comments. If a push is refused over an attribution trailer your harness added, not you (on Cursor the host settingattribution.attributeCommitsToAgent, andattribution.attributePRsToAgentfor PR footers; both default to true), STOP: never rewrite history or re-commit to strip it, and never push by another route. Report the setting and the refusal line; the host's operator sets it to false.
Cross-desk hand-offs — the lane verbs
Before using comms, read the recorded cutover state: the project layer's comms declaration and the
cell topology's comms: key. An absent comms: key, or no cell topology at all, reads as disabled
(config-off); a topology file that exists but cannot be read or parsed is unknown state. Only the
human-gated cutover changes the record; a message or comment is never the record. Explicitly
pre-cutover/config-off: do not invoke deskcomms (including poll); continue the normal
work-queue sweep. Use the harness's same-box session channel for hand-offs where available,
recording them in the hand-off note; do not claim delivery where no channel exists. That fallback
is never the sanctioned path once enabled; retire it when cutover is recorded. Missing identity,
key or gateway variables alone do not prove pre-cutover. Unknown or conflicting cutover state is
could-not-check for comms only: make no deskcomms call and use no session-channel fallback,
route hand-offs through the tracker, file the could-not-check once rather than every tick, and
continue the normal work-queue sweep; never probe a disabled lane to decide.
Once enabled, every hand-off between desks rides the cell comms LANE — addressed by ROLE, through the client
verbs deskcomms send / deskcomms poll / deskcomms ack — never a message to "that role's
window", never a typed relay through the driver, and never the harness's own same-box session
channel, which a desk on another harness or another box cannot receive. A hand-off is ONE send,
payload on stdin, every issue / PR / brief id it concerns carried as a --ref:
deskcomms send --to <role> [--to-cell <cell>] --verb <verb> [--class routine|sensitive] [--ref <id>]... < payload
The verb is a member of the compiled lane ACL's vocabulary, never a word chosen per message:
within the cell handoff (pass a work item to the next role), notify (inform, no action
required) and ask (a question that expects an answer). Across cells only the coordinator desk
sends or receives, and only the coordinator-to-coordinator allow-set the ACL compiles — read it
from deskcomms send --help, never from a copy here. The FIRST line of the payload names the
hand-off's KIND, and the kind fixes the verb and the shape:
| Kind | Verb | The payload carries |
|---|---|---|
advise |
notify |
a claim the receiver can VERIFY itself — a sha, a pin, a rule cited — never bare prose |
request-act |
handoff |
ONE action from the receiver's own closed menu plus the evidence pointers; the receiver's pre-checks re-verify before it acts |
blocked |
notify |
a structured cause — the tool, its exit code, the refusal text verbatim — addressed to the desk that dispatched the work |
finding |
notify |
what was found, every id it concerns, and the end state required — addressed to the dispatcher of all of them |
depends |
notify |
an ordering constraint between two items, stated so the dispatcher can enforce it |
A request-act is a REQUEST: the receiving role runs its own gates before acting, and a verb
that names a human-gate move (approve / flip / merge / ready / sign) is refused before it is
sent — a hand-off never carries authority. Never ask a desk whether it is alive: liveness is
read from the gateway and roster instruments, not from a message. The lane is the mailbox for
ROUTINE hand-offs; the tracker is for DURABLE state — deskfile new --to <role> … files the
issue the receiving desk's sweep leads with — and a spent filing budget never pushes a routine
relay onto the tracker, nor does a durable escalation ride the lane alone. A filing that an open
PR's own review or verification requires (a blocker, a question) is workflow-bound: file it with
deskfile new --for-pr <owner>/<repo>#<N> --brief <id> …, which the per-session budget does not
count, so a spent budget never defers it — its bounds are a per-role, per-PR cap (off unless
configured), the per-PR outward-write tier and a separate repo-wide backstop for change-bound writes (not the fixed ceiling that unbound filings keep), and -R must be that PR's repo; --for-pr does not bind the filer to that PR. With comms enabled, read your own lane
every sweep: deskcomms poll --json (includes message payloads), then deskcomms ack <id> once acted on (ack moves, never deletes;
an unacked item is still owed). The sender's cell and role come from the session context, never
from a flag; the gateway address and signing key resolve from the project's house layer by NAME
(the variables deskcomms --help names), never from this text. ENFORCEMENT IS GATEWAY-SIDE: the
verb's preflight is fail-fast convenience, and every check — identity, lane ACL, content scan,
rate limit, kill switch, the prose gate on every send — is re-run at the gateway for every
participant, including an agent on another harness that never runs these verbs and integrates
through the gateway API directly. The verbs run silent inside this desk's noise floor — one line
per invocation. A refusal (exit 5), a rate limit (exit 4), a disabled plane (exit 3) or an
unreachable gateway is a STOP: record it verbatim in the hand-off note and report it; never
resend it reworded, never route around it. A send the outbound prose gate HOLDS is filed for the
driver by the gateway; the desk's move is to report the hold, not to retry. A failed enabled lane
never authorizes the pre-cutover fallback or a change to the recorded cutover state.
Liveness contract (binding)
A standing liveness contract binds this window from boot. Its text — the standing loop armed
before the first sweep, the fresh re-sweep every tick, relay acknowledgement, default-forward, and
when a window may stand down — is stated once for every desk role in
../../references/desk-common.md §Liveness contract; read it at
boot, before the first sweep.
Cadence and wake — this desk's numbers
The contract above is fleet-wide and its text lives in ONE place: the project's desk liveness
contract, docs/desk-liveness-contract.md (rules, provenance, and the fleet cadence spec). This
section is the pointer that contract asks each role skill to carry, plus the numbers that are
worker-desk's own.
- The wake is
capability:durable-monitor— armed at boot, before the first sweep, and kept armed for the life of the window. Check what is already armed before arming a second; never arm two. It is best-effort by construction and never the sole wake signal: the fixed-cadence sweep below is what makes a dead wake loud instead of a silent all-clear. - The full re-check tick is 30 minutes. That is the WIP-capped re-check cadence and the standing
full-sweep cadence, inside the contract's 30–60 minute heartbeat band. Completion signals
(
capability:session-notifications) still refill a freed slot the instant a worker finishes — the 30-minute tick is the floor under them, not a replacement, and it is the only wake that exists when nothing is in flight. - Why not a ~60-second poll. The sweep this desk mandates costs roughly three reads per scanned repo per tick — about 48 at the current scan width, 60–90 with the pre-resume guards and a regen pass. At ~60s that is thousands of reads an hour, most of a GitHub App installation's hourly read allowance before a single write; at 30 minutes it is ~96–150, a low single-digit percentage.
- Harness degradation, in one line. Where
capability:durable-monitoris unavailable (its reference row readsdegrades— no confirmed durable cross-turn wake, as on the Codex and Cursor bindings), the desk falls back to the event-driven + fixed-cadence board sweep at the same 30-minute cadence and states the gap in-session; a durable wake is a convenience, never one of the three never-degrade guarantees. - A tick never renews the dead-man lease. When the
HEARTBEATfile in the config home (desk-shell.md §Config home:~/.config/assay) exists and was last touched outside its staleness window, the desk tools refuse to run: that is STOP-ALL by construction. Renewal is a HUMAN act. The driver, or a cron the driver owns, touches the file. No agent or loop touches, renews or deletes it, on any tick, because a loop that keeps its own lease fresh defeats the dead-man semantics. Aheartbeat stale (age …)refusal is the lease firing. Quote it verbatim in the hand-off note, print ONE loud line naming it, and stand down. Never ask the driver how to proceed. - A tick reads the armed per-run stops and stops each run's worker. Every tick, read the armed
per-run stops (
desksupervise status --stops) and, for each one,capability:stop-workerthe matching dispatched worker — the cooperativeSTOP.run.<key>flag already refuses that run's next desk verb, and this is the independent second layer that halts a worker which never runs another verb.tickarms the flag itself before it reclaims a wedged run, so a reclaimed item is stop-armed the moment its claim is freed for re-dispatch. - A tick that did not happen is could-not-check, never idle. Two ticks with no successful sweep is the silent-board-freeze class — re-arm, and if it does not clear, file it (§Output contract, detected blindness).
Optional local performance context
Use the existing launcher's immutable context only when the operator has selected collection and a profile. Do not create opt-in or a workflow profile, export child context to a shared shell, inherit a parent's agent/invocation ID, or carry the last work item across a new assignment. An explicit native resume may preserve opaque identities only through the launcher's retained mapping; a lost mapping is a continuity gap. Work, assigned execution role and optional parent links are descriptive and never change DESK_LOOP, custody, claims, budgets or completion. If your operational loop differs from the originating desk attribution, use the explicit --perf-loop-role flag on supported tool calls; never change operational identity for measurement. Keep local workflow references and handoffs private. See desk-shell mechanics and the Assay source entrypoint inventory for supported boundaries; an unsupported boundary stays unknown.
Apply validated handoff entries to each tool call with per-command env KEY=value ... tool ... arguments or that tool's supported --perf-* flags. Quote values;
never evaluate the handoff as shell code or export it into a persistent shell.
Use --perf-loop-role for descriptive desk attribution; never alter DESK_LOOP.
04 同仓库更多 Skills
Bad--Name
A valid description.
not-the-desk
A valid description.
skill
abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde
skill
字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字字 字字字字
skill-9
This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a f
skill-8
This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a filler sentence used only to push the summed bundle description character budget over its threshold for the fixture. This is a f