This text is LLM generated.
The decisions it records are his, made on 23 October 2026; the wording around them is not.
agent-board has two loops over the forge: one follows fixed rules, and the other uses judgment. The pass specifies the first in full. This page records the decisions both follow. Where an older page disagrees, this one wins.
cron --> agent-board pass ---dispatch---> dispatcher ---> agent job
(usage, follow PRs, epics, (agentic-job |
Status, schedule) or another) |
| ^ |
writes | | reads |
v | |
forge: board, issues, PRs <--- pull requests, comments -+
|
| reads pass's output and the work it audits
v
supervisor <------ talks with ------> operator
agent-board pass is the heartbeat: a cron runs it, it finishes once, and the
same facts give the same decisions. One pass refreshes usage, follows pull
requests (the standalone poll becomes this stage of pass rather than a
separate command), plans epics, derives Status and schedules new work (see
what is built).
The supervisor is an agent that answers "is the system working?". It audits individual pieces of work from time to time and is who the operator talks to. It does not schedule and has no health engine of its own: it reads pass's output and the forge.
After a deployment moves its pinned agent-board revision, the supervisor's
next audit reads what changed between the pins, exercises it with a
pass --record preview against the previous recording (and, for new writes,
one apply with --max-dispatch 1 and a small --max-writes), and reports what it
saw to the operator, recommending a rollback of the pin if it misbehaves.
Why: a scheduler should be boring and replayable, and judgment should not compete with it for the same decisions.
tracker#1456 proposes a persistent deployment reading the same deterministic
preview decisions. board-forge::pass::decision::preview is the bounded library
seam: it invokes pass::run in Mode::Preview, reuses holds/needs-you (including
Act now and next context) and work projections, and exports agent-board/decision/v1.
It does not parse Report.lines, create a scheduler or change CLI/publication
output. Needs-you extensions remain caller-configured; an unavailable projection
is null, not an empty inbox. Existing pass reads may consult forge receipts and
carried evidence; the library never scrapes rendered comments to recover decisions.
The concrete threat addressed by its read-only transport is an accidental apply
path in a persistent preview consumer. REST methods other than GET (dispatch and
rerun POSTs included), GraphQL documents with a mutation token, and accounting
callbacks are not forwarded. Both synchronous and asynchronous GraphQL are
guarded. This conservative check also refuses that token in a comment or literal;
it is for library-owned documents, not arbitrary GraphQL passthrough. Deploy with
read-only credentials too; this adapter does not constrain an independently
supplied transport's implementation of reads.
The seam returns the snapshot next to the pass's updated state, what it spent
and the transports' send count. The adapter forwards the transport's credential
context (a digest, never the credential) and send count, so that with a
configured state path the
disposable response index
binds for the consumer under every bound of that section, and passing the
state to the next preview makes that one warm. There a carried state goes
through the same decode as a state file, so corrupt entries are discarded with a
diagnostic and an out-of-bounds state is refused. Previews also seal and check
pass responses, including the GraphQL last editor that a REST 304 cannot verify.
A changed context or configuration starts cold. If the primary transport's
context changes during a stateful preview, the preview fails without returning
decisions or state. A transport without a context gets no responses or quiet
waits back to carry. Without a state path the input state comes back unchanged.
The library writes no file; persisting the state, as privately as the responses
it holds, is the caller's job, and the storage choice stays with #794.
Observation time is not source validation time. The snapshot preserves needs-you's validation clock, usage's computation clock separately from per-pool observation clocks and stale/missing/partial evidence status, carried hold provenance, per-repository coverage, nullable candidate/WIP counts, preview starts and separate confirmed effects. WIP retains the pass's preview semantics (including would-start slots), not a count of confirmed new runs. Issue work coverage remains incomplete because admission may stop at caps without reading all plans. The existing 200-item work bound counts omitted entries per repository. Holds/needs reuse the 60,000-character single-comment fitting bound and its omission counts; pools are limited to 16 with an explicit omitted count. These are bounded sections, not a new total wire-size contract. Missing sections or incomplete coverage must never be rendered as proof of no work.
This is a library capability, not deployment approval or a daemon switch. Forge records remain authoritative, caches disposable, and the applying pass remains the one writer. #794 owns cache changes; #788 owns coordinating generic policy work. Caller configuration and deployment prompts stay outside this public API. Phase 3's credential decision remains unresolved. Bot comments describing the proposal do not resolve it or constitute operator approval.
The concrete threats are a modified or old preview authorizing a start, merge or
label change, and two controllers writing when a service outage starts the fallback.
The following is an offline contract, not a supported input to pass --apply,
an executor implementation or a deployment decision. Nothing enables it by default
or by configuration today. The executable reference model is test-only in
crates/board-core/tests/executor_contract.rs; its shared wire fixture is
executor-proposal.json. It tests admission
and recovery rules, not live forge atomicity or the existing pass's policy engine.
agent-board/executor-proposal/v1 is separate from agent-board/decision/v1:
display snapshots and candidates are never executable authority. Its initial typed
intent vocabulary is deliberately incomplete: start an accepted issue plan by
comment ID/revision, merge a PR at an exact head, or derive one status label while
preserving unrelated labels. No API method, URL, workflow, credential, prompt or
arbitrary request body can be supplied. A future implementation must lower through
the existing pass/dispatch/poll/status paths, not add a second policy engine.
All fields are required; unknown fields, duplicate fields, unsupported schemas or
intent kinds and null facts are rejected. Bounds are 64 KiB before parsing, 1–20
intents, and a validity interval of at most 300 seconds. The executor may impose
smaller bounds; these do not increase existing --max-writes, --max-dispatch,
request/time limits, WIP or pool caps. Attempted claims, receipts and ambiguous POSTs
still consume the existing caps/reserves. A proposal is not a reservation.
The fixture uses integer UTC Unix seconds for observed_at, created_at and
expires_at; require observed_at <= created_at <= now < expires_at and
expires_at - observed_at <= 300. Cache reads cannot advance observation time.
config_digest binds the complete reviewed caller configuration, including scope,
policy, referenced pools/bounds files and pinned lowering revision, not merely a
path or mutable branch. producer_revision is the exact reviewed 40-hex commit.
Each action carries an evidence fingerprint (SHA-256 of the relevant complete
observations); absent/partial facts cannot be encoded as a successful observation.
Plan identity is lowercase SHA-256 of compact serde JSON serialization of the typed proposal in declared field order (arrays retain order; no maps, whitespace or optional fields). The schema version fixes this encoding. It is external to the payload: the caller pins the identity of the immutable bytes it selected, and the executor recomputes it. A replacement is a new plan, never an edit under the old identity. A digest is integrity, not authentication. Neither a self-declared digest nor an authenticated producer authorizes effects. The caller selects the proposal through a trusted channel, loads its own reviewed config and revision, and checks all three bindings; proposal text cannot select those values. The fixture tests a trusted baseline identity, not a producer-supplied checksum.
Immediately before each effect, with the writer gate held, reread complete forge facts and run the existing decision/admission code. Starts recheck accepted plan author/editor/revision, Issue identity, scope, dependencies, open PRs/runs, leases, WIP, usage/budget and pool room. Merges recheck exact head, author, draft/base, operator approval where required, authenticated review, required checks and queue policy. Labels rederive Status from current issue/PR/run facts and reread current labels; never replace unrelated labels from a stale snapshot. A changed head, source revision, relevant evidence or intended operation requires a new preview; incomplete/denied facts hold. Passing schema/digest checks alone never reaches a write. The test model compares against injected freshly rederived actions; it does not pretend to implement these forge reads. External forge changes still have their existing read/write race; use exact-head conditional merge and available conditional writes, and never claim a cross-API transaction.
Use one caller-owned serialized writer gate, not a service lock plus a separate
fallback lock. For an Actions executor this means the same caller repository,
workflow-level concurrency group, cancel-in-progress: false, and all mutation
steps inside that job's lifetime. Both proposal execution and standalone full-pass
fallback must enter it. Preview producers stay outside and cannot mint write
tokens. The gate's owner run ID is the fencing epoch recorded with every claim;
an old owner cannot resume under a new epoch. Gate ownership must be verified
before credentials are issued and before each mutation. A timestamp lease alone
does not fence GitHub writes: GitHub does not enforce an epoch on arbitrary POSTs.
Do not steal a gate on timeout or mere absence of a heartbeat. Before handoff, the old writer must terminate, credentials must no longer be usable and in-flight requests must be drained/reconciled. Cancellation or an unknown writer outcome requires recovery/explicit intervention, not automatic timeout takeover. This is a requirement on the later caller implementation, not a guarantee provided by Actions concurrency alone. If direct service writes are selected, they too must enter this same gate with a bounded writer lifetime; otherwise an independently verified forge-enforced fencing primitive is a prerequisite, not a second lock.
Inside the gate, reuse existing forge-authored claims and receipts. The semantic
effect key is SHA-256 of the typed intent, excluding proposal identity, clocks and
observation fingerprint. Thus a fresh preview of the same accepted plan revision
or PR head cannot bypass a claim. Claims bind key, immutable plan ID, owner epoch,
target/source revision and status. Only verified bot recorder/editor identities in
the configured forge scope count; copied markers and local cache entries do not.
Read claims before action; write pending before submission; then bind the returned
run/merge/label result in a confirmed receipt. Confirmed start/merge keys are
terminal no-ops. Labels are repeatable reconciliation: an old confirmation is
not proof that the desired label is still present. A new proposal (or a new
standalone pass invocation identified by its gate run) may rederive and apply that
status again after an intervening transition. Keep completed (plan ID, effect key) receipts so replaying an already consumed proposal cannot reapply a label,
even after later transitions. A pending semantic key still holds every caller
until reconciled, regardless of plan ID or expiry. These records live on the forge,
not in service state; do not replace receipt history with just the latest status.
On a lost response or a successful effect whose receipt failed, inspect existing forge runs and their dispatch correlation, exact-head merge/queue state, or current derived labels under the existing recovery protocol. Record confirmation only with matching evidence. Proven refusal/no submission can release a claim within the existing retry policy; elapsed time or an absent search hit is not proof. Ambiguous results remain pending for reconciliation, never blindly resubmitted. Receipt recovery may continue after plan expiry, but cannot authorize a new effect from an expired plan. Claims are not garbage-collected just because a plan expired. The serialized gate is essential: comment creation itself is not compare-and-swap.
If the preview service is down, fallback acquires that same gate and runs the
existing full pass --apply from trusted config, fresh forge reads and durable
claims/receipts. It does not fetch a service plan, consult service memory, reset
receipts, or wait for the service to acknowledge ownership. It can skip an
ambiguous item and safely handle other work within caps. Restart and cache loss
reconstruct ownership/effect history from Actions and the forge; they never erase
pending claims. An unavailable forge/gate fails closed; independence from the
preview service does not mean independence from forge authority.
cgwalters must explicitly choose either a read-only service with a short-lived
Actions writer, or direct service writes with per-action Octo STS credentials.
Neither posture is selected here. A later implement plan must wire the producer
in cgwalters-forge/review and the executor and full-pass fallback in
cgwalters-forge/tracker's .github/workflows/poll.yml, pin reviewed code/config,
prove the shared gate and credential-drain behavior, and integrate actual rechecks,
caps and durable recovery. Any STS trust/permission changes require that decision
and their own review. No caller option/key is introduced by this specification;
there is nothing to turn on in .github/pass.json. Deployments, workflow cutover,
live writes and retirement of fallback remain out of scope.
agent-board pass --apply makes its own writes directly; agentic-job's
independent check and apply is for what an agent produces. Guards and
caps are in order and effects.
Why: the pass's writes follow from forge facts by fixed rules, so a second checker would re-derive the same answer at the cost of another moving part.
Status is derived and written each pass from live facts: Done, Needs human and In Progress are never set by hand; Todo, Backlog and Priority are a person's choice, and Blocked and Backlog are holds that only Done replaces. The rules are pass's stage 5. Any open pull request for an item makes it In Progress, draft or not, in any repository and by any author, so an upstream issue with a fork's pull request is In Progress; an issue a person marked Done that is still open goes back to Todo, since open means not done.
The live Status set is Todo, Backlog, Blocked, In Progress, Needs human and Done. The others (Triage, Draft, In Review, Cancelled) are legacy statuses that the derived rules override. Remove them from the board once the pass has run for a while, not now.
Why: a status someone has to remember to change goes stale, and a stale board misleads both the operator and the scheduler.
Intake and triage file or re-plan work for one upstream project in that project's midstream fork, resolved from repository metadata, not in tracker. Reuse an existing fork issue before proposing a new one, and link it from the original tracking issue. Work spanning several projects, and controller/infrastructure work, stays in tracker; split out project-specific issues when needed.
When the source is an upstream issue, the fork issue carries exactly one
Upstream: #N line (association handling).
The repository comes from the fork's verified parent, never issue text. A source
PR or project task without an upstream issue does not get a fabricated association.
An implement plan posted on the fork issue uses that fork as repo and the fork
issue number as item; it needs neither issue_repo nor target_repo.
A fork with issues disabled retains the existing staged-issue fallback. If the run cannot file an issue within its checked output bounds, it proposes the repository, title and body for the controller instead of inventing a number or posting a single-fork implement plan against an unrelated tracker issue. Routing advice grants no additional write authority.
The needs-human label is the single marker that the operator must act. The
board's Needs human status comes from it. Question issues and the decisions
document fold into it: a question is an ordinary issue or pull request with
the label, and answering it means acting and taking the label off. agent-board ask create labels its question and the item it blocks, and ask resolve takes
the label off that item once no other open ask names it; neither writes Status.
Why: several ways to say "waiting on you" mean several places to check, and one of them is always forgotten.
Where the tool keeps its state depends on whose repository the work is in.
- External or upstream repositories: minimal noise. No claim or status comments. Any state the tool needs lives in one hidden comment it edits in place.
- First-party repositories: state lives on the issue or pull request itself, readable by people and machines alike: a short human line, with the machine detail alongside it. Not in a separate store, and not as scattered hidden markers.
Why: upstream maintainers did not ask for a bot's ledger in their threads, while on our own issues the record is most useful where people already look, and a person should be able to read what the machine read.
A fork pull request the operator requests be promoted is evaluated by standalone
agent-board promote --config FILE (#308). The newer
decision context
supersedes the old pass-stage and review-only plan. The command previews
command/head evidence and candidate read gates by default. Explicit publication
uses no inference pool or dispatch slot. The pass's stage 4b reports selected
candidates and their first held gate through the same read-only evaluator; it
never publishes, even with pass --apply and promote.publish set. This makes
approved work visible without granting the pass upstream write authority.
Publication first uses the pass's cheap discovery query, one per fork: only
drafts with an operator current-head approval (when promote.onApproval is on)
or PRs with an operator command reach the expensive per-PR gates. Ordinary
waiting drafts have no per-PR reads. Discovery is a hint, not authorization;
publication still independently re-reads every gate and approval. The query
admits at most 100 open PRs per fork and 100 reviews/comments per PR; truncation
is an error, never permission. Preview retains its exhaustive hold diagnostics.
Standalone preview and publication honor the existing optional requestShare
setting, using the same remaining-token sizing and GraphQL point stop as the
pass. Absent it, or when the free rate-limit read fails, the fixed 650-request
budget remains. The 15-minute admission bound and publication/write caps are
unchanged. Request, point or time exhaustion reports promote deferred: with
unfinished work and exits successfully for retry next run, preserving completed
diagnostics. Other operational errors are not classified as budget deferral.
No new control or publication authority is added; publication remains off by
default. This prevents unapproved drafts consuming the budget before approved
work, without weakening the current-head authorization boundary.
- Permission. An exact operator-authored
/promoteor/promote --human-textconversation command after the observed push establishing the current head is a trigger. This preview accepts only a complete plain command comment, with optional surrounding newlines, not prose containing a command. REST comment identity/creation must agree with GraphQL metadata; missing edit metadata or any operator-comment edit holds, even when REST creation/update timestamps match to the second. The only other trigger is opt-in: withpromote.onApproval(defaultfalse), drafts are candidates, since a midstream's pull requests stay drafts, and on a draft with no such command the operator's latest deciding review, approving the current head and submitted after the push establishing it, is the trigger (never--human-text; agent-board#743). Its URL stands in thecommand=evidence. Approving a ready fork PR never triggers: that may mean merging it into the fork alone. So the approval must also follow the PR timeline's latestconvert_to_draft, or a later conversion to draft would turn it into one. Quoted examples, another author's command and a command before the latest push grant nothing. Later operator change requests or dismissals cancel the command; approvals and comment-only reviews cannot restore it, as a cancelled command stays the one selected. The concrete threat is publishing a changed head using stale permission, including after a force-push back to an old oid. Complete authenticated branch activity, not commit author/committer dates, proves the push. Missing, truncated, edited with unverifiable authorship, ambiguous or out-of-order evidence holds. - Where it goes. Midstream repository metadata, never the pull
request's body, which anyone can edit. Discovery lists the configured
midstream owner's public repositories within the existing five-page bound.
Only repositories with both
origin=forkandbot-midstreamare candidates; their GitHubparentsupplies the upstream and its default branch the base. With promotion configured,midstream.topicmust bebot-midstream, so stage 2's no-merge protection covers the same metadata-only candidates. A non-fork is a hard error, including an explicitly named legacy entry.promote.forksstays readable for one release for the pinned tracker config: its upstream must agree with the actual parent, and its base overrides the default. It cannot bypass the metadata gate. This stops a stale static entry publishing from a detached fork or into a different network. A fork may also be infollowonly whenmidstreamowns it; stage 2 must then verify its topic membership before following it with midstream's no-merge policy. Otherwise it refuses, so a missing topic cannot permit a merge into the fork's main. - Candidate read gates. Only after command/head evidence passes, read in
order: all upstream PRs for the head repository owner's branch (same open
head is already promoted; different, closed or merged holds); upstream-base
comparison (zero ahead holds); the PR's own commits, those on the head that
its fork base does not reach, read once from a fork comparison at the base
tip set and selected before the head was first pushed, so every review of
that head showed this range. A later retarget or tip move holds until a new
head is pushed and approved: a review submitted after the move may still
come from a diff loaded before it. The upstream comparison may omit a prefix it already reaches;
revalidation selects the remaining suffix from the original fork range.
A head that is behind, or carries the fork's own commits, is
reported ready after a publication rebase when its own commits form a linear
bot- or operator-authored chain; only
--applyfinds and holds a conflict, and the awaiting queue still holds it. Thenstacks_onfrom the issue's newest accepted implement plan; DCO facts from required base-branch checks or base-head check runs; and unchanged title/body text. This prevents duplicate publication, stale bases, unmerged dependencies, unsafe sign-off rewrites and references changing meaning upstream. Only a unique closing orPart ofreference to an issue in the fork ties a PR to its plan; ambiguous/missing linkage holds. A later valid fix plan for the PR does not replace the implement plan for this check. No implement plan or nostacks_onmeans unstacked. A parent's open fork PR, open upstream PR or closed-unmerged PR holds; only its matching-head upstream PR merged into the configured base passes. Accepted-plan comments require complete edit metadata. DCO never comes from CONTRIBUTING. When required, report missing operator sign-offs; commits needing a sign-off that are merges or by neither bot nor operator hold. Empty bodies, bare#Nreferences, closing references to the fork and any other reference into the midstream owner (the fork, its tracker) hold, in the title or the body as it would be published (see the source line below); they never get rewritten. All reads use the existing budget and complete bounded pagination (ten 100-row pages); unreadable/incomplete evidence holds. The source issue may carry one wholeUpstream: #Nline. Only the number is stored: GitHub's verified fork parent supplies the repository and must agree with the configured promotion target. A malformed or duplicate line, missing parent evidence, or an issue read that returns a PR holds with anupstream linkcause, never a guessed destination. Publication preserves the approved title/body, less its source line, and appends onlyFixes OWNER/REPO#Nfor that link; no link preserves the rest of the body byte-for-byte. GraphQL must identify the source text's author or last editor as the bot/operator and its creation/edit must strictly predate the selected operator command or approval. A later edit requires fresh authorization, including after confirmed publication. The extra reads use the same budget. - The source line (agent-board#1002). A midstream PR names its source
issue on one line of its own, canonically
Part of https://github.com/FORK/issues/N(Fixesfor a slice that completes it), which upstream readers could not follow. Publication removes the source line only when the whole line, less surrounding whitespace, isPart oforFixes, one space and the fork issue's full URL, at most with a sentence's period, and it names the issue the source tie above found. One blank line is left where its paragraph was and the result is trimmed. Two such lines, or one naming another issue, hold; otherwise punctuated, quoted or listed, it is prose, and a body naming the source issue's URL without a source line holds as "source line not recognised" (composefs-rs#66). The fork PR keeps the line, so stacking, theUpstream: #Nderivation, the handoff and retries still read the same source. Publication also removes tracker dispatch's terminal footer when the apply receipt, visible run link and gh-aw comments match the current wrapper's format for the same run. Older formats still need manual cleanup. Neither removal rewrites prose or grants approval; all gates, provenance proofs and write bounds still apply, and midstream links in author text hold. A source staged outside the fork (an issues-off fork's tracker item) has no fork issue to name and holds for a person. - Writing it. The pass appends the same instruction to the brief of an
implement or fix plan whose work repository is a midstream fork stage 2
read by topic, and to the poll's fix, rebase, continuation and
operator-comment fix briefs in those forks: keep the PR a draft; name the
source only as the line above (for an implement run, the exact line for its
issue; for a staged one, the tracker issue as it is, never an invented fork
issue); no bare
#Nand no tracker or forge-internal reference in the title, body or commit messages. Elsewhere briefs are unchanged. The standaloneagent-board dispatchhas no topic read and adds nothing. - Repairing older drafts.
agent-board promote --config FILE --repair-bodiespreviews a one-time repair of drafts written before this line existed, logging each one's before/after body or why it is left for manual repair. Candidates are the bot's own open drafts whose base is a verified promotion fork (the same metadata discovery as above). Standalone lines ofPart ofor a closing keyword and one reference (#N,OWNER/REPO#Nor an issue URL, one trailing mark allowed) to fork issues become the one canonical line (Fixeswhere they close it), and such lines naming another repository of the midstream owner, such as the tracker, are dropped. Two fork issues, mixed kinds, no such line, a source only in prose, or a result that still fails the title/body checks above leave the draft unchanged for a person; prose, titles and commits are never rewritten. A repaired body is unchanged by a second run.--apply --max-writes Nneeds a credential authenticating as the configured bot, re-reads each draft's number, state, draft flag, author, title and body just before editing only its body, and edits at most N; it never writes upstream and needs nopromote.publish. A bot-ok approval binds the head, not the body, so a repaired draft that only its text held becomes publishable under an existing current-head approval; and the bot becomes the body's last editor, so a human-text draft holds on provenance until the operator edits it again. The controller runs the preview first, reviews the logged changes, then applies with the same token and bounds as its promote job; the worker that built this never ran it live. The narrower--repair-draftsmigration repairs only bodies containing bare references, with an apply cap of 1–10. It verifies the source issue exists, preserves completion semantics, and drops other standalone bare bookkeeping. Inline references, code and HTML hold for manual repair. Completed edits remain in diagnostics after a later failure; rerun after reaching the cap. These two explicit repair modes are mutually exclusive and neither publishes upstream. - Policy gate. Only a candidate that passed every read gate above reads
its upstream's record, once per run, from
policyRepository/policyPath/OWNER/REPO.mdon that repository's default branch; promote never writes one. The record is homegit's format:---front matter withverdict,ai-trailer,dco,sources(repo,path,sha),checkedand optionalrebase, then a non-empty body. A 404 holds aspolicy missing; a version that is not a regular file in its commit's Git tree (the contents API serves a symlink's target as a file at the link's path, and the target's edits are outside the record's history), unknown key or malformed record aspolicy invalid. It holds aspolicy staleunless every source is still a file or directory (a symlink's id names its target, not its text) with its recorded blob or tree id on its repository's default branch and the top level,.github,docsanddocof the upstream and its owner's.githubrepository hold no unrecorded file named like homegit's set (contribution guides, agent instructions, PR templates, DCO texts, AI/LLM as a word); a 404 directory is absent, any other unreadable or truncated listing holds. Homegit's loosening rule is ported over the record's default-branch commit list (complete, bounded; per version, one tree read per path segment and its content, which must be its tree's blob): a looser verdict counts only from a GitHub-verified commit the operator both authored and committed (GitHub verifies the committer; anyone can set an author), or a merged pull request whose merged head the operator last approved and whose merged tree is that head's; otherwisepolicy loosened by LOGIN at SHA. As in homegit, a record's first version sets the baseline unvouched, since the policy-check agent creates records. GitHub's path history does not follow renames, unlike homegit's.bot-okpasses;human-textrequires the per-PR provenance gate below;human-onlyandno-gohold naming the record's sources. The threat is the bot publishing where maintainers refuse it, on a record that no longer describes the upstream, or one someone else loosened. Passing printswould promote ... (policy bot-ok), not publication permission: publication still remains. No bot-fork staging success is implied. - Human-text provenance. The threat is passing bot-written or changed text
off as the operator's merely because the operator posted a command. Only a
fresh, unloosened
human-textpolicy invokes this gate;bot-okneeds none of these proofs. The selected exact command must be/promote --human-text, and authenticated branch activity must name the operator as the actor of the latest push establishing this head, including a force-push back to an old oid. Commit authorship, committer identity and the command author are not push proof. A separate GraphQL read must agree with REST on PR identity, head, title and body. Its completeuserContentEditshistory and body'seditor/lastEditedAtmust agree on an operator last edit; its completeRENAMED_TITLE_EVENTtimeline must chain to the current title with an operator last renamer. No edit or rename on a bot-authored PR is not operator authorship. Deleted or unnamed editors, ambiguous order, missing metadata or pagination holds asneeds-text, naming the failed proof. A single bounded read accepts fewer than 100 edits and rename events, withhasNextPage=false; larger histories hold, within the shared request/time budget. GitHub's filtered timelinetotalCountincludes other event types, so it is not a rename count. The observed API exposes edit actors/times, not a signed text-version digest; the current GraphQL body and matching last-edit metadata bind the proof, not a timestamp alone. Both last text changes must strictly predate the selected command; equal-second or later changes require a fresh command. A body still containingGenerated-by:holds. Only upstream policy results are cached: every PR's provenance is independently evaluated. Passing reports(policy human-text; provenance verified), not live publication. No labels or notices are written. The only body supplement is the mechanically derived upstream closing reference above, and the only removal the source line; neither is a claim of operator-authored prose. - Kept. The upstream contribution-policy gate; the operator's sign-off
added to every promoted commit, whether or not upstream checks DCO; the stacked wait (a pull
request whose dependency is not yet upstream waits); one notice per reason
on the fork pull request; and
--human-text, the one marker that the operator wrote the text, in the/promote --human-textcommand. That marker alone is not proof of text provenance. - Dropped. The advisory comment quoting the upstream's rules, unless the
policy blocks the promotion: then the blocking notice says the verdict and
what it rests on, once. Also homegit's
--include-othersand--no-signoff, which become refusals, its--why, its policy-cache issue and its attempts cache. - Commits. Their existing trailers stay; no commit is rewritten to change
an older generated-by trailer. The only allowed rewrite adds the
operator's sign-off and cleanly rebases onto the current upstream base.
A behind approved head needs no fresh approval after a clean rebase; a
conflict holds without publishing. Rewriting requires the PR's own commits
to be a linear chain by the bot or operator; other authors and merge commits
hold. Replay and sign-off share the author check. For an explicitly unmapped
author,
promote.botAuthorEmailscan name a former bot email exactly. An email alone is self-asserted, so GitHub must attribute the committer to the configured bot orgithub-actions[bot]. This is attribution, not authentication; current-head approval is still required to publish. The fork's own marker and merge commits under them are never published. Original authors, author dates and existing trailers are preserved. - Noise. The upstream repository gets the pull request and nothing else. The fork pull request, first-party, gets readable state with its machine detail alongside (bookkeeping).
- Publication. The concrete threat is an existing preview caller unexpectedly
writing upstream, or a command publishing a head the operator never approved.
promote.publishdefaults tofalse. Publication needs that caller setting,--apply --max-writes N, the existing authenticated command, and the operator's latest deciding review approving the exact current head. A comment-only review does not cancel approval. Before the first write it re-reads the PR and every gate, including uncached policy and human-text provenance; changed command, title/body, readiness, labels or head refuses. It reserves three writes (four when creating a rebase/sign-off branch) as a whole step and handles at most one candidate per invocation, in repository/PR number order, within the existing request/time budget. Record/replay remains preview-only; apply uses the caller'sGH_TOKENthrough the existing transport. Git preparation uses an isolated bare repository: no candidate code, hooks, filters or configuration is executed. Fetches use the configured repositories and exact object ids, depth 1001, with one 120-second Git deadline. Git must be installed. The existingGH_TOKEN(orGITHUB_TOKEN) is passed to Git through its environment, never a URL, argument or persisted credential. To prevent orphaned receipts and edited operator comments blocking recovery,/usermust identify the configured bot before any publication reads/writes. - Publication effects. Create a draft upstream PR from
OWNER:BRANCH, or update the title/body of the unique open same-head upstream PR. Send the fork title/body bytes unchanged but for the source line, including for human-text; add no attribution or sign-off paragraph. Existing readiness is unchanged. There is no ready, merge, reopen or approved-ref update operation. If any of the PR's remaining commits lacks the configured operator trailer, the head is behind, or it carries the fork's own commits, Git replays only the PR's remaining commits onto the observed upstream base and adds the trailer wherever missing, regardless of detected DCO checks. The fork receipt records those commits and the upstream commit they were validated or replayed on. A retry resumes, confirms or skips a publication only while it records exactly the approved commits and upstream still contains that commit (an older receipt without that record only for a direct publication the current comparison proves, or a confirmed one whose commits beyond upstream form one chain and whose Git trees, including file modes, match a replay of at most ten approved commits onto that chain's base). Normal publication candidates get the request budget before these optional legacy rechecks. The target tip must still match the comparison and contain the replay base after verification. The handoff treats an open publication with such a record as current only while upstream still contains it. It creates a deterministicbot/promote/APPROVED_OIDbranch in the same head repository, initially creating rather than overwriting a ref. The approved fork branch remains untouched; approval and human-text provenance stay bound to that original head. The branch name has only the approved head, so a rebuild after upstream advanced would be a different head on the same name: a retry reads the fork PR's receipt before rebuilding anything (below). Without a receipt for this head, a publication branch already at another head holds for inspection before any write, never overwritten, and a rebuild needs its upstream PR to be at the rebuilt head. An existing upstream PR on the original branch that needs rewriting holds for manual migration, rather than creating a duplicate PR. The upstream base and approved head are checked again before pushing the new branch. Fork CI never gates publication: disabled fork workflows and publication branches without CI triggers must not prevent opening the upstream PR. Publish the rebased head first; the upstream PR's own CI is the check. Success records approval carryover after clean replay, not a claim that CI passed. The original approval is still revalidated on every publication retry. With publication enabled, the pass authenticates the handoff and verifies both live PR identities before reading the upstream PR's complete checks and base requirements within the existing poll request budget. Red upstream CI feeds the original fork PR's bounded fix rounds, even when its approved head and branch differ from the publication head and branch. Fixes target the fork PR, never write upstream, and retain its existing holds and round ledger. Upstream check reruns are not attempted through the fork's retry machinery. Missing or pending upstream CI does not start a repair or certify success. A repaired fork head supersedes its old receipt: polling waits for renewed current-head approval and publication, without reusing the old upstream CI. Publication authenticates the prior receipt and live PR identity and retains the same upstream PR. A separatebot/promote/OIDbranch may then be replaced only under an exact lease on its recorded old head; the approved fork ref is never force-updated. Pending repair receipts preserve that prior identity so an interrupted update resumes the same publication, not a second PR. The fork's round ledger is not reset. If promotion target discovery fails, those forks hold while ordinary followed repositories continue polling. Draft creation is deliberate: GitHub's branch-based POST can race a push, so it must not mark an unapproved head ready. Verify the branch immediately before publication and verify the returned head, branch, base, repository and text before recording success. A mismatch records no success and closes nothing; a draft may have been created and needs inspection. This is not atomic snapshot publication. - Recovery and noise. A single bot-authored status comment on the fork PR
is the receipt. Before the first write it records the approved head and the
head and branch about to be published, as an
agent-board-promotingmachine record; it is then edited to the success record (or the uncertain publication error, keeping the pending record). On retries edit it to pending first; multiple receipts refuse. A retry reads the receipt before any rebuild, and a receipt with a machine record counts only when the forge's edit evidence shows the bot alone wrote and edited it, as the handoff's. A success record for the current approved head whose upstream PR is open at the recorded head and branch is skipped without writes, or has its text updated from that head, so later candidates progress and nothing is rebuilt on a later base. A pending record whose branch is at the recorded head resumes from it: the upstream PR is created or updated without a Git run. A pending record whose branch was never pushed publishes again under a new receipt; a branch at another head holds. A receipt without a machine record is replaced without edit evidence: it steers nothing, and the bot's edit makes the bot its last editor again. One candidate's hold is one line, and the next candidate is read; only the write step's failure ends the invocation, as its writes were the one slot. An ambiguous POST failure is not retried in the same invocation: the next invocation observes existing upstream PRs first, and never creates a second one intentionally. Concurrent invocations still need caller serialization; GitHub does not offer an atomic create-if-absent status comment. Nothing except the PR is posted upstream. Fork PRs remain open: capped, recoverable fork closure requires separate acceptance after the handoff replay proof. No unsigned head is published: sign-off completeness is checked independently of DCO detection before publication. Live publication and bot-fork staging verification remain unverified by the offline fixtures.
The answers to the brief's open questions:
- After promote. The delivered handoff appends a strict
agent-board/promoted/v1machine record to the readable first-party fork publication-status comment, only after publication response verification. It binds fork repository/PR, approved oid, verified publication oid/branch (which may differ after sign-off/rebase), upstream repository/PR and source issue and whether the link closes it or only delivers a partial slice. Legacy readable-only receipts still prevent duplicate publication, but their prose never authorizes a handoff. With the existing configuredpromote.forksmapping (absent/empty is off), the pass scans at most ten 100-row pages per open source issue's cross-reference timeline in its request/time budget, including closed PRs and historical body links. It does not enumerate unrelated fork PR history. Visitor comments are ignored before selecting or counting receipts. REST comment identity/times must agree with complete GraphQL bot authorship and bot last-edit evidence. Network/base mapping, unique source linkage, fork head and the live upstream PR/head must all match. An upstream body without the removed source line links no fork issue and rests on the record's source; one that links any fork issue must link that source, the recorded way. A verified open upstream supplies In Progress and the existing scheduler open-PR hold even if the fork is closed or stale. A matching verified closing merge supplies Done under normal Status precedence; person holds remain until Done. Missing, malformed, foreign-edited, conflicting, closed-unmerged or unreadable handoff evidence refuses that PR and holds its affected sources for the supervisor rather than releasing work. Multiple active claims on one source attach no verified promotion and report each conflicting PR. Failed API reads still refuse the whole read. An ordinary open bot fork without a receipt still holds as an open PR; a closed one without any first-party publication marker is an abandoned attempt, not an error or completion. A verified mergedPart ofslice does not complete its source or conflict with the next slice. These refusals reuse the existing unknown-promotion hold, not a new state store. Start rechecks use the same verifier. Fork closure is not delivered: it needs its own capped, recoverable acceptance after replay proof. Caller rollout and staging acceptance remain tracker#1464, separately approved; no live promotion or bot-fork acceptance is claimed by edited response scenarios. --human-text. Only the operator's command carries the marker; the read-only provenance gate checks the current-head pusher and title/body editors.- Policy records. Read from the configured repository's default branch, using homegit's rule that only the operator can loosen a verdict; never written.
- Stacks. The plan's
stacks_onis the source; a pull request with none is not stacked. - Drafts. A draft fork pull request is never promoted, unless
promote.onApprovalis set; it is then published as an upstream draft. - Behind upstream. Publication cleanly replays onto the observed upstream base using Git; conflicts hold. The upstream PR checks the replayed head.
- A head in the bot's fork. Whether an upstream takes a pull request whose head is in the bot's fork is verified with one recorded call in a staging organisation, not assumed. If it does not, the branch is pushed into the midstream first, as a counted write.
Three rules learned from reviewing the first attempt (agent-board#312):
- Re-read the decision. Immediately before any future first mutation,
re-read the command, its authorship/edit evidence, cancellations, PR head,
branch push evidence and readiness/labels; hold unless it is still the same
command bound to the same observed head and no
needs-humanwas added. Revalidate policy and all human-text provenance too, including the exact title/body version predating that command. Future human-text publication must send those unchanged title/body bytes, with no attribution or sign-off note. - Move a ref only by compare-and-swap. The branch ref is moved only by
an update that names the expected old object id (GraphQL
updateRefs), never by a read, a RESTPATCHand a second read. That sequence can lose a push that lands between them. - Check the head published. The upstream pull request is created from a
mutable
OWNER:BRANCHhead, so the job checks the head sha in the response against the command-bound one; on a mismatch it refuses, records no success and closes nothing.
The preview reports candidates only; apply additionally requires current-head
review approval and refuses missing DCO sign-offs. Sign-off semantics/proof and
rewrites, recoverable fork closure and the caller's independent 10–15 minute
tracker schedule remain follow-up slices. The known recording limitations for
typed absence and policy tree projection remain separate work; edited mock
scenarios are not successful live recordings. Creation sends
maintainer_can_modify: false, so upstream writers get no push access to the
bot fork's branch, its workflows or its secrets. Bot-fork acceptance still
requires the recorded staging call before deployment; no staging or live
promotion is claimed here.
Why: the authenticated operator command is bound to a head by observed forge push evidence, not by the content's claim about itself. Configuration and read facts determine where it may go. An upstream sees only the pull request, as a person would have opened it.
Forge I/O moves to async in slices (#300). The first is in: the GitHub board
snapshot reads through board-forge's async client, on the one
current-thread tokio runtime the CLI's main builds. That covers every
command that loads a live GitHub board (item list, project view,
reconcile plan and the others that take --owner and --project), the
pass's Status stage and the live fixture's readback. The client holds its
limits in one place: at most MAX_IN_FLIGHT requests at once, and a
request GitHub refuses under a rate limit retried at most
RATE_LIMIT_RETRIES times, waiting at most RATE_LIMIT_WAIT in all for
that request and never past its deadline (a pass's time bound). A refusal
is a 429; a 403 with Retry-After, no requests remaining or a message
naming a rate limit; or GraphQL RATE_LIMIT errors without data, which is
how GitHub answers a secondary limit, with HTTP 200 and no Retry-After.
Each retry waits what Retry-After or x-ratelimit-reset asks, or else
SECONDARY_WAIT (a minute) doubled for each retry before, as GitHub asks.
The sync paths below retry by the same policy, and one given up on is a
typed RateLimited error. The snapshot's request budget is passed per read,
SNAPSHOT_REQUEST_LIMIT (1,000) by default; running out is an error, never
a partial snapshot.
Every other forge request is still sync on ureq: the poll's and status's
own reads (the board they load is the snapshot), the project schema read
before a write, dispatch, epics, the rest of the pass, the writes, and
Forgejo. They share the snapshot's paging through an adapter
whose reads never wait. The conditional-request cache comes later, as client
middleware; a forge crate is extracted then. A Forgejo write side and
dispatch, when built, extend Forgejo's sync transport and do not wait for
this migration (forges).
Why: a pass reads many independent things, and sequential requests make its time grow with the board. Slices keep each change small, with its tests green.
The client is reqwest (rustls with ring, as ureq's, and the platform's trust store) under a thin layer of our own, not octocrab. Octocrab's GraphQL is untyped JSON, like ours, and its typed Projects v2 models are for the REST endpoints, which the snapshot does not read. Its rate-limit retry bounds the number of retries but not the total wait, and it has no cap on requests in flight. So we would write both limits either way, on top of about 40 direct dependencies (hyper, tower, jsonwebtoken, chrono and more). Its conditional-request cache layer is for REST; that slice can look at it again.
One automatic rerun of a run that failed for an infrastructure reason is kept (scheduling); everything else on the drop list is dropped.
Why: an infrastructure failure says nothing about the task, so one retry is cheap and usually right; retrying an agent's failure spends the budget again on the same outcome.
These are not decided; the pass spec leaves them as they are today or open.
- Backlog as a hold? If Todo and Backlog are a person's ready/not-ready choice, should the pass refuse to start Backlog items? Today it holds on board Blocked instead.
- When a derived status stops holding. Today an item whose Needs human, In Progress or Done no longer holds goes back to Todo, not to what a person set before.
- What counts as an infrastructure failure. The rerun needs a fixed rule that uses the facts a run leaves to distinguish a runner, broker or forge failure from a failure in the agent's own work.
- Cap numbers. A pass takes
--max-dispatchand--max-writes, unset by default; what the scheduled pass should pass is not set yet. The Status stage's first-run guard,--max-status-changes, is 50 by default. - First-party bookkeeping for PR follow-up. What poll's hidden fix-claim and round markers become in first-party repositories, where state should be a readable line with machine detail alongside.
- Retire the supervisor's own engine?
supervise health, the check-driven start insupervise triggerand the executor's dispatches are built and unchanged; should they go once the supervisor reads pass's output? - The
questionexclusion (code follow-up). The pass's candidate set still excludesquestion-labelled issues in code; with question issues folded intoneeds-human, that exclusion should go.