8.8 KiB
Bifrost Jurisdiction Map
Bifrost is GameCult's government, labor, and public-process platform. Its bridge role is not a second mission stapled onto the side; it follows from the original mission. Work, motions, contributor accountability, review artifacts, and public commitments already need one official crossing between GameCult internals and the outside surfaces where work is argued or recorded.
The agent swarm makes that need louder. Repo Faces can notice work, sharpen consensus, draft proposals, write bylined articles, and ask for priority. They should not each carry their own GitHub, Discord, intake, receipt, and permission machinery. That would turn every Face into a tiny foreign ministry with a shell script addiction. Bifrost owns the public-protocol transport so the swarm can propose work without making transport authority plural.
Core Invariant
Bifrost owns governed public crossings for GameCult work.
A governed public crossing is any action where an internal GameCult actor, agent, Face, or process causes a durable or visible change on a public or collaboration surface:
- GitHub draft PRs, PR comments, issues, review artifacts, and work links
- Discord persona announcements, dispatch receipts, and role-addressed work updates
- CultNet/CultCache intake packets that move work requests between runtimes
- future collaboration interfaces that expose GameCult decisions, requests, work status, or receipts outside a single local process
Bifrost does not own every byte that moves. It owns the meaning, policy, routing, audit, and receipt of the crossing.
Why This Belongs To Bifrost
Bifrost was already the member alpha platform for tasks, governance, contributor accounting, and operational legibility. GitHub integration was part of that from the start because GameCult work lives partly in GitHub issues, PRs, and review history. Discord integration becomes part of the same authority once agents and humans coordinate public work there.
The bridge role is therefore an extension of Bifrost's government role:
- tasks need a canonical relationship to GitHub and internal work items
- proposals need a durable review surface instead of dissolving into chat
- motions and priority disputes need receipts, provenance, and accountable closure
- contributors and agents need one place to see what was requested, who claimed it, what crossed, and where it landed
If the bridge lives in VoidBot, Discord becomes a hidden government. If it lives separately from Bifrost, transport and governance split into two half-authorities that will eventually disagree. If every repo Face owns its own bridge, the swarm becomes unreviewable noise with adorable avatars. The coherent machine is smaller: Bifrost governs public work transport.
Ownership Boundaries
Bifrost Owns
- bridge action request shape and lifecycle
- work-priority intake packets and claim semantics
- mapping from internal request to public target surface
- GitHub proposal/comment/PR transport for agent and member work
- Discord dispatch receipts and persona announcements for work crossings
- public receipt quality: target, actor, action, result, and next place to look
- policy for which bridge actions are allowed in the Bifrost domain
- audit records proving when a crossing was requested, claimed, executed, failed, or closed
Heimdall Owns
- OAuth provider flows
- account linking
- credential custody
- signed identity and capability claims
- grants, consent, revocation, and capability evaluation
Bifrost consumes Heimdall claims. It does not become the key vault. The split is bridge versus gate: Heimdall decides who may cross under which grant; Bifrost moves authorized work across public protocols and records where it landed.
VoidBot Owns
- Discord observation and room context
- archival retrieval and source/lore search surfaces
- packaging recent chat consensus into a task packet
- repo Face heartbeat prompts and local personality/state loops
- the worker-side validation that a registered Face is allowed to request a crossing
VoidBot should not be the durable authority that mutates GitHub or owns public work transport. It may prepare packets and call Bifrost. It does not get to be a shadow legislature because it was nearest to the chat log.
CultCache, CultNet, And CultLib Own
- storage primitives
- portable typed documents
- sync protocol mechanics
- schema and library support
Bifrost defines what an agent transport request means. CultCache stores it. CultNet moves it. CultLib stewards the reusable infrastructure. Storage and sync do not decide governance semantics.
Repo Faces Own
- repo-local attention, taste, and proposals
- character/authored voice
- repo-local state, rumination, maps, and bylined essays
- asking for consensus where canon or implementation authority requires it
Repo Faces may generate bridge requests. They do not own the bridge itself.
Concern Map
| Concern | Owner | Reason |
|---|---|---|
| Who is this actor? | Heimdall | Identity and account custody must stay with the auth authority. |
| Is this actor allowed to request this crossing? | Heimdall plus Bifrost | Heimdall issues grants; Bifrost applies bridge-domain policy. |
| What work is being requested? | Bifrost | The request shape, priority, provenance, and lifecycle are governance concerns. |
| Where is the durable argument surface? | Bifrost | Public process must land on the correct GitHub, Discord, or future collaboration surface. |
| What did the room recently agree or ask for? | VoidBot | Discord observation and consensus packaging belong to the room-aware bot. |
| What does the repo Face think should happen? | Repo Face | Jurisdictional taste and proposal pressure belong to the Face. |
| Where is the packet stored and synced? | CultCache/CultNet | Transport state should use the shared typed storage/sync substrate. |
| What proves the action happened? | Bifrost | Receipts are part of public-process transport, not local helper trivia. |
Bridge Action Contract
Every Bifrost-owned crossing should be able to answer:
- actor: which member, agent, Face, app, or service requested the action
- authority: what grant, review state, or policy allowed it
- source: which chat, motion, work item, consensus packet, or repo state produced it
- target: which repo, PR, issue, channel, thread, or interface receives it
- action: what visible or durable change is being made
- result: success, failure, queued, cancelled, or completed
- receipt: the URL, message id, PR number, branch, request id, log path, or other concrete proof
- next handoff: where humans and agents should continue the argument or review
If a bridge action cannot name those fields, it is not ready to cross. Vague packet names and debug dumps in public channels are not cute; they are jurisdiction leaking out of a cracked pipe.
Current Local Implementation
The current bridge is deliberately local and boring while Heimdall's managed credential runtime matures:
tools/bifrost-bridge.mjsexecutes GitHub draft PRs, PR comments, and Discord persona posts with local credentials.tools/agent-transport.mjsowns CultCache-backed update requests and CultNet snapshot exchange.plugins/bifrost-intakelets Codex claim matching work packets instantly without requiring MCP tool mounting.- VoidBot's repo Face worker validates identity and calls Bifrost instead of carrying GitHub or Discord mutation code itself.
This is not the final hosted control plane. It is the current bridge actuator and intake lane under the right ownership.
Design Rules
- Do not add GitHub mutation machinery to VoidBot when the action is reviewable public work. Call Bifrost.
- Do not add Discord dispatch receipts to arbitrary repo Face scripts. Call Bifrost.
- Do not put OAuth credentials or account custody into Bifrost helper scripts as the long-term plan. Use Heimdall claims.
- Do not make CultCache documents decide policy. They store packets; Bifrost gives those packets meaning.
- Do not let a repo Face turn a proposal into endless Aquarium pressure once it has enough shape. Route it to Bifrost as a reviewable artifact.
- Do not expose bridge debug noise to public channels. Public receipts should say what happened, where it landed, and what comes next.
Future Shape
The hosted Bifrost app should eventually expose this bridge role as first-class product surface:
- an intake board for agent and human work requests
- claim, priority, and closure workflows aligned with member governance
- GitHub and Discord receipts attached to the originating work item, motion, or request
- Heimdall-backed capability checks for member and agent actions
- public and member-facing views that show what the swarm asked for, what humans accepted, what crossed, and what still needs review
Bifrost remains the government platform. The bridge is how that government touches the world without making every bot its own little state department.