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.
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 the
ghCLI 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.
bhmakes no LLM call anywhere in intake or triage. Where analysis is needed, it is supplied from outside and handed in as a document.
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.
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.
| Milestone | Drafted when | What the reporter would read |
|---|---|---|
started | the first claim of work the report tracks (a re-claim or resume drafts nothing) | work to address this issue has started |
blocked | an operator runs bh work delivery blocked <work> --reason with a public reason that passes the leak check | a fixed lead plus the operator's reason |
deprioritised | an operator runs bh work delivery deprioritised <work> --reason | a fixed lead plus the operator's reason |
merged | the tracked work merges; every tracking report moves to delivery:merged | a change addressing this issue has merged and will be in an upcoming release |
released | an operator runs bh work delivery release <tag> and read-only git verifies the tag contains the merge; "no" and "unknown" change nothing | a 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.
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:
| Doc | Covers |
|---|---|
docs/CONFIGURATION.md | Every switch and its default — intake.external and plugins.tracker-github — and the three-things rule for a write. |
docs/UPGRADING.md | What turning each stage on changes, the operator-seat-only verbs, and fleet rollout order. |
docs/INTAKE-TEMPLATES.md | The issue forms, the template marker, and the information-sufficiency checklist. |
docs/design/external-intake-module-adr.md | The accepted design: held reports, tracks versus investigates, the outbox state machine, the leak check, labels, batch triage. |
docs/design/external-issue-intake.md | The 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.md | The tracker port and the GitHub plugin: capability flags, per-operation credentials, single-use grants. |
docs/design/github-issue-projection.md | The separate, pull-only public-store projection, and why intake does not read it. |
docs/MODULES.md · docs/HQ.md · docs/PLANNING-PLANE.md | The intake module's boundaries; bh hub intake versus bh hq intake; bh plan adopt. |