08 Intake

GitHub is where reporters are. The hive is where work is.

Nothing crosses between them without an operator. This page is the loop a GitHub issue goes through once a hive decides to field it — and the boundary that keeps agents from ever speaking for you.

A hive already has an intake queue: bh report and bh escalatefile into it, bh work intake reads it, and four typed verbs dispose of it (theFleet page covers that path). This page is the larger inbound channel. GitHub Issues can be pulled into a hive as held, untriaged reports; triaged with the same verbs as any other report; linked to the internal work that addresses them; and kept informed through a supervised outbox, where every comment or label change is a draft an operator must read, approve and send.

GITHUB — THE REPORTER'S SIDE · read-only toward the issue until an operator approves a writethe issueopened by anyone · optional issue form carriesa template marker the triage checklist readsthe comment threadthe reporter's replies, and our own postedmessages, which bh recognises as its ownowned labels · bh:<dimension>/<value>one prefix Beadhive owns; labels outside it arenever added, removed or reported onwhat can ever be writtena comment · a change to owned labelsno open, close, edit or transfer of an issueOPERATOR APPROVAL BOUNDARYsingle-use grant per operation · agents, timers, config, flags cannot approvepull · read-onlythread ingest · read-onlylabels · approved batchsend · approved digest onlyTHE HIVE — INTERNAL STORE · opt-in: every stage below is off by default and has its own switchbh work import <issue-url>bh work discover [--full]one issue, or a checkpointed poll of therepository; a re-run changes nothinglands a HELD report · intake:untriagedorigin:github · never dispatched as workclosed issues import like open onestriage · the same four verbsaccept · reject · reroute · promoteplus, for a GitHub-bound report:bh work needs-info --ask "…"bh work wakewaits out of the queue; a human replyin the ingested thread wakes ittrack · the report is never the workbh work link <report> --to <work>bh work accept --work | --new-worktracks: several reports → one work beadbh work investigate <report> …investigates: reproduction work; firesno milestone, tells the reporter nothingoutbox · every post starts as a draftdraft → show (render + digest)→ approve --op <kind>:<digest>→ send · reconcile · discard · retryleak check at draft, render and send:secrets and foreign labels always block;ids, branches, paths need a named --publishdelivery milestones · drafts onlystarted · blocked · deprioritisedmerged · released (git-verified)each one its own switch · fixed public wordinglabel projection · drafts onlylabels define → sync → review → approvebead state mirrored onto bh: labels; a humanedit wins until the next milestonereview-gated batch triage · bh stores and checks, it never calls a modeltriage review → propose → propose --review-of → check → apply --reviewedpackets carry the full thread and keep duplicate families together; apply is operator-run,maps onto the verbs above, so every refusal still holds; replies it produces are draftswho can do whatbhpulls, holds, links, renders, leak-checks, digests, verifies a release with read-only git — and drafts. It never posts on its own and never calls an LLM.operatorreads the exact rendered text, approves its digest, sends; runs labels define --approve, labels approve --batch and triage apply.agent seatsdev/ disp/ crew/ coord/ can triage, link and draft; none can approve, and no seat can resolve a held report's hold gate.
read-only toward GitHubsupervised write — drafted, approved, sentinside the hiveoperator approval
Reads go down, writes go up, and the only way up is through an operator. A GitHub issue becomes a held report that triage disposes of with the ordinary verbs; the work that addresses it is a separate bead the report tracks. Anything the reporter will see — a reply, a question, a status note, a label — is first a draft in the outbox; an operator reads the exact render, approves its digest, and sends it. With every default in place none of this lane is on, and bh report, merge and release behave exactly as before.

Opt-in, and the approval boundary shipped · opt-in

Everything on this page beyond the plain queue and its four dispositions isoff by default. Upgrading changes nothing until an operator turns a switch on, and with every default in place bh report, merge and release behave exactly as they always have. The switches are host-owned — a fleet-level config push cannot flip them — and each stage has its own, so a hive can pull issues in without ever drafting a reply, or draft replies without ever projecting labels. They live under two sections of theconfiguration reference: intake.external for the loop itself andplugins.tracker-github for the adapter that talks to GitHub.

The boundary is stated once here and holds everywhere below:

  • Reads are read-only. Import, discovery and thread ingestion never write to the issue. Credentials are resolved per operation from the environment or thegh CLI and never stored by Beadhive.
  • There are exactly two possible writes: post a comment, and change labels under a prefix Beadhive owns. There is no operation to open, close, edit or transfer an issue.
  • A write needs three independent things. The adapter's own write flag, the outbox switch, and a per-operation, single-use grant minted by an operator approving the digest of the exact rendered bytes. No config key, at any layer, can enable or pre-approve a write.
  • Agents cannot approve. Developer, dispatcher, crew and coordinator seats can triage, link and draft; none of them can approve, and timers, config, environment variables and flags cannot produce an approval either.
  • bh makes no LLM call anywhere in intake or triage. Where analysis is needed, it is supplied from outside and handed in as a document.
Nothing is sent without an operator. Every reply, question, status note and label change is a draft first. An operator reads the exact text, approves it, and sends it. There is no auto-reply, and nothing a reporter sees was composed by a model inside Beadhive.

Pulling issues in shipped · opt-in

bh work import <issue-url> brings one issue in as an untriaged report with origin:github. It is keyed on the issue's canonical URL, so importing it again updates the stored snapshot rather than duplicating it, and never resets triage. A dry run classifies the URL and writes nothing. Closed issues import exactly like open ones; pull requests, issues in other projects and anything not visible to the credential are refused before any request is made.

bh work discover is the same upsert run over the repository. The incremental pass resumes from a checkpoint that advances only once a page is durably stored, so a re-run changes nothing; a full pass re-pulls everything, closed issues included, and marks a report whose issue has vanished as missing — it never deletes or closes one. The host daemon can run discovery on a timer; that needs its own switch and an explicit interval, and the daemon refuses to start if the adapter is not wired.

An imported report is held. It carries a hold gate for life: it never appears in ready work, bh work claim and assign refuse it, and no seat can resolve the hold. A report is never the work. The work that addresses it is a separate bead the report tracks — which is what keeps a bug report from being handed to a developer as if it were a specification. bh doctor sweeps for missing or orphaned holds in any hive whose store binds a tracker adapter.

Two things that look similar and are not: discovery here means polling GitHub for issues, not finding candidate work for the planner; and pulling issues into intake is distinct from the public-store projection (bh hive remote sync … --pull-only), which mirrors a hive's GitHub Issues into its public bead store. Intake reads GitHub itself through the tracker port and never reads or links that projection.

Triage, and waiting on the reporter shipped

A GitHub-bound report sits in the same queue as a cross-hive report or an escalation, and the same four verbs dispose of it: bh work accept clears it into the backlog, bh work reject closes it with a recorded reason, bh work reroute re-files it into the right hive or bounces it to a superintendent, andbh work promote hands it to the planner, whose bh plan adoptseeds a molecule from it. Likely duplicates are flagged when the queue is read; batch triage (below) clusters them. One queue for every channel means one triage and one set of verbs.

Two things change for a report that came from GitHub. First, a plainreject is a local close — the reason is recorded on the bead, and telling the reporter is a separate drafted, operator-approved comment. Second, the report canwait. bh work needs-info <report> --ask "…" drafts the question as a supervised reply and moves the report out of the untriaged queue (still held, never claimable); bh work wake moves it back when the ingested thread holds a reply from a human — our own posted messages never wake it, and the reply stays unread for the next triage pass. Every disposition fields a waiting report exactly as it fields an untriaged one. Both verbs are opt-in.

The thread itself is read with three verbs, all read-only toward GitHub and all opt-in.bh work thread ingest pulls a bound report's comments since a checkpoint into a private record and recognises Beadhive's own posted messages so they are never mistaken for new evidence. bh work thread show renders what is stored — which comments are new since triage last read, and both kinds of link — without a request.bh work thread considered --through <seq> records that triage has read the thread that far; it never changes the report's state. A deleted comment is only tombstoned after repeated snapshots agree it is gone.

SOURCESQUEUES — intake:untriaged · origin:<channel>DISPOSITION — typed verbs, never ad-hoc labelsbh report <hive> "<title>"target is KNOWN: a hive you own — including from anotherhive, how one repo tells another it is broken · origin:reportbh work import <url> · bh work discoveropt-in, read-only pull · held report · origin:githublegacy importorigin:import · same queue, same triagebh escalate "<what> with <tool>"target is UNKNOWN: a bh / bd / tool bug mid-work.One line, fire-and-forget, keep working —the developer never routes or investigates · origin:escalationdirectionauto-routing by report channela tool declares where its issues go:<tool> report-target --json/.well-known/report-channel.jsonMCP serverInfo._metadescriptor spec ships; nothing reads it yet.resolved → file as a report into that hive;unresolved → escalate to HQ as todayper-hive queue · bh work intakethe dispatcher fields its own hive's queuebd find-duplicates runs when bh report files and when thequeue is read, so a colliding request surfaces, not buriesbh work intake --source report|github|importbh sync aggregates every hive (read side)fleet-wide inbox · bh hub intakethe director's view across all hives — the hub is derivedand rebuildable; it holds no truth of its ownHQ's own queue · bh hq intakeescalations land as hq- beads in the authoritative store;the director is the terminal router — no auto-routing yetprints a pointer to the fleet inbox so nobody is strandeddispatcherdirectordirectorbh work accept <id> [--type T] [--priority P]real work: intake cleared → backlog → the ordinaryready / dispatch loop · intake:acceptedbh work reject <id> --reason "…"recorded reason · GitHub reply is a draft · intake:rejectedbh work reroute <id> --to <hive>mis-filed: lands in that hive's queue · intake:reroutedbh work reroute <id> --super <seat>genuinely ambiguous: stays in the fleet inbox for a second lookbh work promote <id>too big to accept as a ticket · intake:promoted — the adoptqueue key. The planner runs bh plan adopt <id> and seedsa molecule frame; the report rides the epic as its childthree facets, kept orthogonalintakethe queue state: untriaged → accepted | rejected | rerouted | promoted (closed dimension, bd set-state)originthe channel it entered through: report · github · import · escalation — a durable provenance tagsource_system+ external_ref — the native system-of-record coupling, set only at import, never overloaded by a native reportreporter identity is bd --actor, never a label. One queue for every channel means one triage, one duplicate scan,one set of verbs — a cross-hive report, an imported GitHub issue and an escalation all look the same to the seatdisposing of them; only the queue they sit in, and therefore who sees them first, differs.
report path — target knownescalation path — target unknownhand-off to planningdirection
The split is by what the filer knows. A report names its hive, so it lands in that hive's queue and the hive's own dispatcher triages it; the fleet inbox is only an aggregate read of every such queue. An escalation names nothing but the symptom — it goes to HQ's own store and waits for the director, who is the one terminal router and resolves it with the same four verbs. Nothing routes itself today. The report-channel descriptor is the piece that would let a tool say where its issues belong, so that a known target files directly and only the genuinely unknown case climbs to HQ; the descriptor is specified and validated, and the consumer that would read it is deliberately a later bead. What happens to a GitHub-bound report after disposition — tracking the fix, drafted replies, milestones, labels — is the supervised loop on the Intake page.

Tracking versus investigating shipped · opt-in

Two kinds of link, kept deliberately apart. bh work link <report> --to <work> makes the report track a work bead: several reports can track the same fix, the report stays held, and nothing is sent. bh work accept --work <id>or --new-work does the accept and the link in one step; the fresh work bead has no GitHub binding and a description written by triage, not copied from the issue. A link is refused if the target is itself a bound report, lives in another store, is still untriaged, or is already tracked by something else (unless replaced on purpose).

bh work investigate attaches reproduction work with a different edge. Claiming, closing or merging an investigating bead drafts no milestone, writes no delivery state and never closes the report — so a hive can spend effort finding out whether a report is real without telling the reporter anything until there is something true to say. Several beads may investigate one report; only one piece of work can be the one it tracks.

What finishes a report is a hive choice: by default it closes once the work it tracks has merged; a hive can instead keep it open and held until the fix is verified to be in a release.

The outbox shipped · opt-in

The outbox is the only way anything leaves toward GitHub. bh work outbox draft <report> --text "…" drafts a reply and sends nothing. bh work outbox show <id> renders the exact message and prints its digest. bh work outbox approve <id> --op <kind>:<digest> is the operator's act: it approves that digest and mints one single-use grant per operation — a comment approval never approves a label change — and still sends nothing. bh work outbox send <id> posts one approved operation, write-ahead with a receipt, and only if the fresh render still matches the approved digest; if the text has drifted since approval, nothing is posted.

A leak check runs at draft, at every render and on the exact bytes at send. Secrets, a label outside the owned prefix, and the absence of a bound sanitizer block outright and cannot be overridden. Internal bead ids, branch names, private labels, seat names and host paths block unless an operator names that specific finding as deliberately published. A closing keyword like fixes #N draws a warning. The failure modes are handled without re-sending: reconcile settles an unknown outcome by reading the issue back, discard abandons an unsent operation with a reason, andretry returns a failed one to drafted, where it needs a new render, digest and approval.

Delivery milestones opt-in · each its own switch

Milestones are how the reporter learns what happened without anyone composing a message. Each one only drafts a record in the outbox: it never sends and never mints a grant. The wording is a fixed constant per event, so a milestone carries no bead id, branch, path or seat by construction, and the hook that writes them is a no-op unless intake is on and can never fail a merge, release or claim.

MilestoneDrafted whenWhat the reporter would read
startedthe first claim of work the report tracks (a re-claim or resume drafts nothing)work to address this issue has started
blockedan operator runs bh work delivery blocked <work> --reason with a public reason that passes the leak checka fixed lead plus the operator's reason
deprioritisedan operator runs bh work delivery deprioritised <work> --reasona fixed lead plus the operator's reason
mergedthe tracked work merges; every tracking report moves to delivery:mergeda change addressing this issue has merged and will be in an upcoming release
releasedan operator runs bh work delivery release <tag> and read-only git verifies the tag contains the merge; "no" and "unknown" change nothinga change addressing this issue is available in that release

Progress notices draft only while delivery is still pending, a newer milestone supersedes an unsent older one, and a report linked late to work that has already merged can catch up on what it missed — also a switch, off by default.

The label projection opt-in

A hive can mirror its own state onto GitHub labels under one prefix it owns (bh: by default) — intake state, delivery state, type, priority and the rest, each as bh:<dimension>/<value>. Labels outside that prefix are never added, removed or even reported on, and every projected name and description goes through the leak check. The projection switch by itself reads and writes nothing; it only shapes the catalog.

The verbs follow the outbox's shape. bh work labels define renders a plan for the repository's label definitions with a digest, and an operator applies it from an operator seat with one grant per write, audited. bh work labels sync drafts at most one label-change record per issue, converging its owned labels onto bead state — it refuses to add a label the repository has not defined. bh work labels reviewrenders the drafted batch; bh work labels approve --batch is the operator's act, minting one grant per issue and skipping any issue whose live labels moved since the draft; and a send is still bh work outbox send … --kind labels. Humans editing those labels by hand win until the next milestone. Optionally, every disposition, link and milestone refreshes the report's draft too — drafts only, never failing the transition.

Review-gated batch triage shipped · opt-in

For a backlog rather than a trickle. bh work triage review --pending builds review packets: each report's body and its full thread, any stored proposal with its reviews, its duplicate cluster, and a global index of titles and dispositions. Clusters are never split across batches, and a packet without its full thread is refused, so the reviewer never judges a report with half the evidence. Duplicate families are found three independent ways: the store's own duplicate scan, text similarity, and a code path both reports' evidence cites.

An analyst — an agent or a person, outside bh — reads a packet and writes a proposal; bh work triage propose <report> <file> stores it as a private document on the report, leak-linted first and never published. A verifier hands in a verdict the same way: confirmed, corrected or unsure. bh stores and checks; it never calls a model.

bh work triage check runs deterministic, fail-closed checks against the repository before anything is applied: the targets a proposal names exist and are open, a claimed fix's commits are ancestors of the integration branch and the fix version iscomputed from tags rather than taken on trust, duplicate families resolve, reporter- facing text is leak-clean and within length, and nothing has gone stale underneath the analysis. Then bh work triage apply --reviewed — operator-run, with a dry run that writes nothing — applies only proposals a reviewer confirmed and which pass every check. Each maps onto the ordinary triage verbs, so every refusal above still holds; any reply or question it produces is a draft in the outbox; a second apply changes nothing.

Issue forms and the checklist shipped

Beadhive's own repository ships versioned issue forms for bugs and feature requests, each carrying a template marker, with blank issues still allowed and security reports pointed at the private advisory flow. Alongside them is an information-sufficiency checklist: per type, which facts are required before triage can decide anything (what happened, what was expected, how to reproduce, the affected version, the impact) and which are optional.

Two honest limits. The checklist is a document the triage step reads — bh does not evaluate it — and the forms are what Beadhive ships for its own tracker, not something installed into every hive. The checklist's rule is worth adopting anyway: ask only for the facts needed to decide, treat a bare "n/a" as missing, and ask in one message that names the investigation the missing fact blocks. The reply is, as always, a draft the operator approves.

What is still direction direction

Design text that has not become a verb or a switch, listed so the page above cannot be read as promising it:

  • Webhook-driven wake-ups. Ingestion today is pull-only polling; nothing is pushed into a hive in real time.
  • Reminders and inactivity closure for a reporter who never answers, and a path for reopening. The design says this should be explicit hive policy; no key exists.
  • Revert detection and a "corrected" notice. The vocabulary has room for it; no verb writes it.
  • Unattended publication. Supervised is the only outbox mode and the only mode the config accepts.
  • Other trackers. The port is tracker-neutral by design; GitHub is the only adapter that exists.
  • Automatic routing by report channel. The descriptor spec ships; nothing reads it yet (the dashed branch in the routing diagram above).
  • An ideation plane. Intake and planner adoption are the shipped parts; deriving candidate work from a repo's vision and accumulated evidence has no contract yet — see the Planes page.
Go deeper

Sources

Upstream has no operator guide for these verbs yet; the authoritative operator-facing text is the configuration reference, the upgrade notes, and each verb's --help. This page draws on:

DocCovers
docs/CONFIGURATION.mdEvery switch and its default — intake.external and plugins.tracker-github — and the three-things rule for a write.
docs/UPGRADING.mdWhat turning each stage on changes, the operator-seat-only verbs, and fleet rollout order.
docs/INTAKE-TEMPLATES.mdThe issue forms, the template marker, and the information-sufficiency checklist.
docs/design/external-intake-module-adr.mdThe accepted design: held reports, tracks versus investigates, the outbox state machine, the leak check, labels, batch triage.
docs/design/external-issue-intake.mdThe why, and the direction items above (webhooks, reminders, publication policy); the ADR prevails where they differ.
docs/design/tracker-adapter-port-adr.md · tracker-adapter-plugin-adr.mdThe tracker port and the GitHub plugin: capability flags, per-operation credentials, single-use grants.
docs/design/github-issue-projection.mdThe separate, pull-only public-store projection, and why intake does not read it.
docs/MODULES.md · docs/HQ.md · docs/PLANNING-PLANE.mdThe intake module's boundaries; bh hub intake versus bh hq intake; bh plan adopt.