Move public crossings onto typed Bifrost transport
This commit is contained in:
parent
bd3a5a974b
commit
cde3a78874
18 changed files with 1686 additions and 2073 deletions
|
|
@ -125,19 +125,15 @@ node .\tools\agent-transport.mjs apply-snapshot --in E:\tmp\bifrost-agent-transp
|
|||
`enqueue` also mirrors the queued request into `#bifrost` by default. Use `--mirror-content-file` when a Persona has a better human-facing line than the fallback receipt; use `--mirror-dry-run true` only for smoke tests.
|
||||
|
||||
Dispatch receipts should use Bifrost's own public persona in the Bifrost governance channel. `tools/dispatch-agent-requests.mjs` reads `BIFROST_DISCORD_CHANNEL_ID` or `DISCORD_BIFROST_CHANNEL_ID` for the receipt target, uses persona name `Bifrost`, and defaults the persona avatar to the public `src/Bifrost.Web/wwwroot/img/bifrost-profile.png` raw GitHub URL unless `BIFROST_DISCORD_PERSONA_AVATAR_URL` or `DISCORD_PERSONA_AVATAR_URL_BIFROST` overrides it. Receipt text must lead with the concrete repo and work title, not a generic "recent consensus" summary, and must not expose request ids, workspace paths, log paths, or other debugging debris in Discord.
|
||||
The dispatcher now tags those Discord receipts with the Bifrost request id as bridge provenance, and dispatched Codex turns inherit default bridge provenance environment variables so any explicit `tools/bifrost-bridge.mjs` crossing inside the turn can land on the same request trail without hand-carried flags. When `BIFROST_BRIDGE_BASE_URL` and `BIFROST_BRIDGE_TOKEN` are configured, the dispatcher also records `/dispatch/runs/*` receipts in the hosted app so Bifrost keeps a first-class run ledger for launch, completion, cancellation, and failure.
|
||||
Those hosted runtime receipt endpoints are owned by the local bridge token, not by ordinary member sessions. A signed-in member can govern work and request crossings, but they cannot POST `/dispatch/runs/*`, `/transport/receipts`, or `/governance/receipts` without the configured bridge token and pretend to be the worker runtime.
|
||||
Those hosted receipt endpoints now also cross-check each other. Dispatch starts require an existing request-lane receipt for the same request id, governance promotions that cite `dispatchRequestId` must point at a known request-lane request, and additional request-lane receipts for one request id cannot drift onto a different repo or agent identity. The ledger is still transitional, but it has stopped politely accepting shape-shifting runtime history.
|
||||
That same Bifrost request provenance now matters at the GitHub crossing too. When a dispatched worker uses `tools/bifrost-bridge.mjs` with the inherited `bifrost_agent_transport_request` source, the hosted bridge checks that the cited request exists in the request-lane ledger and still belongs to the same repo before it authorizes the GitHub mutation.
|
||||
Governance-backed GitHub publication is stricter now too. If a bridge action cites a Bifrost governance topic as its source, the hosted bridge requires that the topic has actually been approved or promoted before it will authorize a GitHub mutation. An opened topic or comment thread by itself is no longer enough to claim GitHub authority.
|
||||
The rest of the bridge-owned external activity now follows the same receipt discipline. If dispatched work posts a Discord receipt, sends a Discord DM, or opens a Reddit organizing thread through `tools/bifrost-bridge.mjs`, the normal path requires the hosted bridge base URL/token so Bifrost records the crossing. `--allow-unreceipted-activity true` is now an explicit local recovery hatch and is refused inside dispatched work.
|
||||
The dispatcher now tags those Discord receipts with the Bifrost request id as bridge provenance, and dispatched Codex turns inherit default bridge provenance environment variables so any explicit `tools/bifrost-bridge.mjs` crossing inside the turn can land on the same request trail without hand-carried flags. Runtime receipt truth lives in Bifrost's typed request, governance, dispatch, and bridge command stores; the old hosted bridge base URL/token path is no longer a live transport.
|
||||
That same Bifrost request provenance now matters at the GitHub crossing too. Dispatched work must carry typed Bifrost CultMesh command provenance before a bridge actuator may cross into GitHub, Discord, Reddit, or another public surface.
|
||||
Those dispatched turns also inherit Bifrost-owned GitHub gates through environment config. `git` and `gh` wrappers are prepended in `PATH`, a `pre-push` hook backs up raw Git pushes, raw `git push` stays blocked inside dispatched work even with `--no-verify`, and direct `gh` usage is limited to explicit read-only commands unless the bridge explicitly authorizes the GitHub mutation it owns.
|
||||
Those dispatched turns also lock the local-only recovery hatches. `--allow-ungated-github`, `BIFROST_ALLOW_UNGATED_GITHUB`, `--allow-unreceipted-activity`, and `BIFROST_ALLOW_UNRECEIPTED_ACTIVITY` are refused inside dispatched work so an agent cannot quietly downgrade itself out of Bifrost's gate or receipt trail.
|
||||
Those dispatched turns inherit the same gate and receipt invariant, so an agent cannot quietly downgrade itself out of Bifrost's gate or receipt trail.
|
||||
Those dispatched turns also scrub ambient GitHub auth state from the child environment before the worker starts. `GH_TOKEN` and `GITHUB_TOKEN` are cleared, `gh` gets an isolated config directory, `git` gets an isolated global config plus non-interactive credential settings, and terminal prompts are disabled. That does not prove every imaginable direct-HTTP escape is impossible, but it removes the normal ambient credential path from dispatched work.
|
||||
Those dispatched turns now also default to the `workspace-write` sandbox instead of full machine access, and the app-server launch path now tells Codex to keep `networkAccess: false` unless the operator explicitly chooses a broader sandbox. The worker can still read the repo and do its job, but GitHub authority no longer leaks in through the default launch posture.
|
||||
When that same bridge configuration is present, `tools/agent-transport.mjs` records `/transport/receipts` entries for queue, claim, release, and close operations on the request lane. The packet still lives in CultCache. The hosted receipt row is the Bifrost-side witness that an agent or dispatcher touched it.
|
||||
`apply-snapshot` is treated as a mutating import path too. It now fails closed without that same bridge configuration and derives request-lane receipts from the imported state delta, so a snapshot can no longer rewrite queue or claim state behind Bifrost's back.
|
||||
Those mutating scripts now fail closed without that bridge configuration. Use `--allow-unreceipted-activity true` or `BIFROST_ALLOW_UNRECEIPTED_ACTIVITY=true` only for explicit local recovery work where you are intentionally accepting a blind spot.
|
||||
`tools/agent-transport.mjs` records queue, claim, release, and close operations directly in the typed request-lane store, then writes canonical `bifrost.crossing_receipt.v1` entries to `.bifrost/bridge-receipts.cc`. The packet lives in CultCache/CultMesh; hosted HTTP receipt rows are not a live authority.
|
||||
`apply-snapshot` is treated as a mutating import path too. It derives canonical crossing receipts from the imported state delta, so a snapshot can no longer rewrite queue or claim state behind Bifrost's back.
|
||||
Those mutating scripts fail closed if the removed HTTP bridge env is present. Repair the typed CultMesh route instead of accepting a blind spot.
|
||||
|
||||
The `snapshot` command writes a MessagePack-encoded `cultnet.snapshot_response_raw.v0` message. This keeps CultCache payload bytes intact for peers that share the document binding.
|
||||
|
||||
|
|
|
|||
|
|
@ -45,86 +45,61 @@ It intentionally uses boring local credentials while Heimdall's managed GitHub c
|
|||
- GitHub actions use the local `gh` authenticated account.
|
||||
- Discord posts use `BIFROST_DISCORD_BOT_TOKEN` or `DISCORD_BOT_TOKEN`.
|
||||
- Reddit self-posts use `BIFROST_REDDIT_CLIENT_ID`, `BIFROST_REDDIT_REFRESH_TOKEN`, and optional `BIFROST_REDDIT_CLIENT_SECRET`.
|
||||
- Future outside-world requests use `other-request` as a receipt-only bridge action until the target surface has a named Bifrost contract and actuator.
|
||||
- Future outside-world requests must have a named typed command/receipt contract before they get a surface actuator.
|
||||
|
||||
The CLI is not the final permission system. It is the working bridge actuator Bifrost owns now, so VoidBot and repo Personas can stop carrying this machinery themselves.
|
||||
It now fails closed for all external write surfaces by default. GitHub mutations already required the hosted bridge gate; Discord posts, Discord DMs, and Reddit self-posts now require the same `BIFROST_BRIDGE_BASE_URL` and `BIFROST_BRIDGE_TOKEN` receipt path unless an operator explicitly uses `--allow-unreceipted-activity true` for local recovery. Dispatched work is not allowed to use that recovery hatch.
|
||||
`other-request` also fails closed by default. It does not execute a transport; it asks Bifrost to authorize and receipt the request under `BridgeTargetSurface.Other` so new Persona mouths can start behind identity, Heimdall linkage, and provenance policy before anyone writes a surface-specific actuator.
|
||||
It now fails closed for external write surfaces unless the action carries typed CultMesh command provenance such as `BIFROST_CULTMESH_COMMAND_ID`. The old HTTP bridge ledger environment (`BIFROST_BRIDGE_BASE_URL` / `BIFROST_BRIDGE_TOKEN`) is removed from live CLI transport.
|
||||
`other-request` fails closed by default. It does not execute a transport; it must become a typed Bifrost command/receipt document under a named surface before anyone writes a surface-specific actuator.
|
||||
|
||||
## Bridge Action Ledger
|
||||
## Crossing Receipts
|
||||
|
||||
The hosted app now exposes a first-class bridge action ledger for governed transport requests:
|
||||
|
||||
- `POST /bridge/actions/request`
|
||||
- `GET /bridge/actions/{id}`
|
||||
- `POST /bridge/actions/{id}/start`
|
||||
- `POST /bridge/actions/{id}/complete`
|
||||
- `POST /bridge/actions/{id}/fail`
|
||||
|
||||
The owner is Bifrost, not the local script. The script or agent may execute the crossing, but Bifrost records the request, policy decision, lifecycle state, and receipt.
|
||||
The owner is Bifrost, not the local script. The script or agent may execute the crossing, but Bifrost records the request, policy decision, lifecycle state, and receipt in typed CultCache/CultMesh documents.
|
||||
Persona and agent actions that cross into Discord, Reddit, or a future
|
||||
outside-world surface (`Other` until the surface has a first-class enum value)
|
||||
must carry a Bifrost identity plus a Heimdall-backed capability/account reference
|
||||
at request time. The local bridge token only proves that the actuator may call
|
||||
the ledger; it is not the actor identity and not outside-provider authority. The
|
||||
ledger stores the Bifrost identity, Heimdall reference, Epiphany run id, lane id,
|
||||
at request time. The command document stores the Bifrost identity, Heimdall reference, Epiphany run id, lane id,
|
||||
and agent identity beside the action so later receipts can answer which agent
|
||||
did what without opening local transcripts or trusting helper-script folklore.
|
||||
|
||||
The hosted app also exposes a dispatch-run ledger for the older Bifrost-launched worker bridge:
|
||||
The canonical receipt document is `bifrost.crossing_receipt.v1`, stored in
|
||||
`.bifrost/bridge-receipts.cc`. It records one crossing attempt with command,
|
||||
source, authority, actor, target, external proof, lifecycle status, and error
|
||||
details. Surface-specific receipts, including
|
||||
`bifrost.bridge.discord_post_receipt.v1`, are details that reference the
|
||||
canonical receipt. They do not own crossing completion.
|
||||
|
||||
- `POST /dispatch/runs/start`
|
||||
- `POST /dispatch/runs/{id}/complete`
|
||||
- `POST /dispatch/runs/{id}/fail`
|
||||
|
||||
That dispatcher was a transitional way for VoidBot-era Persona consensus to queue Codex workers. It is not the blessed Epiphany launch organ. Keep its receipts as historical/quarantine evidence where they exist, but the forward path is Epiphany-owned execution plus Bifrost-owned crossing receipts.
|
||||
The old hosted dispatch-run and bridge-action ledgers are historical/quarantine evidence where records already exist. The forward path is Epiphany-owned execution plus Bifrost-owned typed crossing receipts.
|
||||
|
||||
For Epiphany work, a bridge action says "this Epiphany run/lane requested a governed crossing into GitHub/Discord/Reddit and Bifrost receipted the result." The receipt payload should carry Bifrost identity, Epiphany run id, lane id, agent identity, source object, authority reference, Heimdall capability/account reference, and any external receipt facts such as PR URL, comment id, commit SHA, or changed paths.
|
||||
|
||||
The hosted app also exposes a request-lane receipt ledger for transport lifecycle events:
|
||||
|
||||
- `POST /transport/receipts`
|
||||
|
||||
This covers the activity that happens before or around a visible Codex turn: queueing a request, claiming it, releasing it, and closing it. The `.cc` packet is still the transport document. The hosted receipt row is the operator-facing witness that the activity happened.
|
||||
|
||||
The hosted app also exposes a governance activity receipt ledger:
|
||||
|
||||
- `POST /governance/receipts`
|
||||
|
||||
This covers the other side of the swarm's work: topic opens, comments, approvals, and promotions to dispatch. The topic and comment documents are still the governance substrate. The hosted receipt row is the Bifrost-side witness that an agent or operator performed the governance action.
|
||||
|
||||
These runtime receipt lanes are not generic member write surfaces. In the current machine, `/dispatch/runs/*`, `/transport/receipts`, and `/governance/receipts` are owned by the configured local bridge token. Active members may govern and request bridge actions through the app, but they may not mint worker-history rows directly through a browser session and impersonate runtime activity.
|
||||
They also now validate linkage across the hosted ledger instead of accepting isolated claims. A dispatch run must point at an already-seen request-lane receipt for the same request id. A governance promotion receipt that cites `dispatchRequestId` must point at a known request-lane request. Repeated request-lane rows for one request id may add activity, but they may not quietly change the repo or agent identity the request belongs to.
|
||||
GitHub bridge actions that cite Bifrost-owned provenance now validate that provenance too. If a bridge action says its source is `bifrost_agent_transport_request`, the hosted bridge checks that the request exists in the request-lane ledger and still belongs to the same repo. If a bridge action says its source is `bifrost_governance_topic` or legacy `governance_topic`, the hosted bridge checks that the topic exists in the governance receipt trail before authorizing the crossing.
|
||||
For GitHub publication, mere topic existence is no longer enough. A governance-backed GitHub bridge action now requires that the cited topic has reached at least `TopicApproved` or `TopicPromoted` in the governance receipt trail. Opened/commented-only topics are evidence of discussion, not yet permission to mutate GitHub.
|
||||
Request-lane receipts are canonical crossing receipts for typed request-store mutations: queue, claim, release, close, and snapshot import. Governance receipts are canonical crossing receipts for typed governance-store mutations: topic opens, comments, approvals, and promotions. Runtime HTTP receipt posts are not a live authority.
|
||||
|
||||
Current gate behavior:
|
||||
|
||||
- active Bifrost members may request bridge actions from an authenticated app session
|
||||
- the transitional local bridge actuator may call the same endpoints with `X-Bifrost-Bridge-Token`
|
||||
- daemon and agent crossings must use typed CultMesh command/receipt documents
|
||||
- agent, Persona, and service actions must cite provenance: `authorityReference`, `sourceKind` plus `sourceId`, `workItemId`, or `motionId`
|
||||
- completed actions must report a receipt URL, external receipt id, or serialized receipt payload
|
||||
- GitHub mutation commands fail closed unless Bifrost authorization is configured; `--allow-ungated-github true` is the explicit operator-recovery hatch
|
||||
- the future blessed credential for public-world crossings is a Bifrost identity plus Heimdall-issued capability token or verifiable capability/account reference. New outside-world bridge surfaces must start behind that same identity/capability gate, using `Other` only as a temporary enum bucket until the target surface gets a named contract. The local bridge token is a transitional service actuator credential, not a substitute for Bifrost identity or Heimdall-backed outside-account authority.
|
||||
- completed visible actions must write `bifrost.crossing_receipt.v1` with a receipt URL, external receipt id, or serialized receipt payload where the target surface provides one
|
||||
- GitHub mutation commands fail closed unless typed Bifrost CultMesh command provenance is present
|
||||
- the future blessed credential for public-world crossings is a Bifrost identity plus Heimdall-issued capability reference or verifiable capability/account reference. New outside-world bridge surfaces must start behind that same identity/capability gate. Bifrost records claim `jti`, `account_id`, `access_revision`, `exp`, grant id/ref, and revoked/expired behavior as references or redacted snapshots, not bearer tokens.
|
||||
|
||||
Current CLI wiring:
|
||||
|
||||
- set `BIFROST_BRIDGE_BASE_URL` to the Bifrost app base URL
|
||||
- set `BIFROST_BRIDGE_TOKEN` to the configured local bridge token
|
||||
- GitHub commands now require both values by default, even for dry-run, so the normal path cannot silently bypass the gate
|
||||
- provide `BIFROST_CULTMESH_COMMAND_ID` or `--cultmesh-command-id` from the typed command document being processed
|
||||
- GitHub commands require typed CultMesh command provenance by default, even for dry-run, so the normal path cannot silently bypass the gate
|
||||
- pass `--identity`, `--source-kind`, `--source-id`, `--authority-ref`, `--work-item-id`, or `--motion-id` so agent actions satisfy policy
|
||||
- Epiphany callers should also pass `--epiphany-run-id`, `--epiphany-lane-id`, `--epiphany-agent-identity`, and `--heimdall-capability-ref` or provide `EPIPHANY_RUN_ID`, `EPIPHANY_LANE_ID`, `EPIPHANY_AGENT_IDENTITY`, and `HEIMDALL_CAPABILITY_REF` in the environment. The CLI stores the Bifrost identity and capability/account reference or fingerprint-shaped value, never the Heimdall bearer token.
|
||||
- the dispatcher now preloads `BIFROST_BRIDGE_SOURCE_KIND`, `BIFROST_BRIDGE_SOURCE_ID`, and `BIFROST_BRIDGE_AUTHORITY_REF` into Codex turns launched from Bifrost update requests, so normal bridge use inside a dispatched turn carries request provenance by default
|
||||
- those dispatched turns also inject Bifrost-owned GitHub gates through environment config: `git` and `gh` wrappers are prepended in `PATH`, a `pre-push` hook backs up raw Git pushes, raw `git push` stays blocked even when `--no-verify` is used, and direct `gh` usage is limited to explicit read-only commands unless the bridge explicitly authorizes the GitHub write path
|
||||
- those dispatched turns also lock local-only recovery hatches: `--allow-ungated-github`, `BIFROST_ALLOW_UNGATED_GITHUB`, `--allow-unreceipted-activity`, and `BIFROST_ALLOW_UNRECEIPTED_ACTIVITY` are refused inside dispatched work so a worker cannot opt itself out of Bifrost gate or receipt policy
|
||||
- those dispatched turns inherit the same gate and receipt invariant, so a worker cannot opt itself out of Bifrost gate or receipt policy
|
||||
- those dispatched turns also scrub ambient GitHub auth state from the child environment before the worker starts: `GH_TOKEN` and `GITHUB_TOKEN` are cleared, `gh` gets an isolated config directory, `git` gets an isolated global config plus non-interactive credential settings, and terminal prompts are disabled
|
||||
- those dispatched turns now default to the `workspace-write` sandbox in both `codex exec` and app-server launch paths, and the non-danger app-server sandbox policy sets `networkAccess: false` so GitHub mutation authority stays with Bifrost instead of bleeding back into the child runtime by default
|
||||
- the dispatcher also uses that same bridge configuration to post dispatch-run start/complete/fail receipts, including the worker pid, thread/turn ids when available, and result/log paths for the local operator trail
|
||||
- the agent transport CLI uses that same bridge configuration to post request-lane receipts for queue, claim, release, and close events, so Bifrost does not go blind between intake and dispatch
|
||||
- the governance threads CLI uses that same bridge configuration to post governance receipts for topic opens, comments, approvals, and promotions, so Bifrost does not lose the pre-dispatch reasoning trail
|
||||
- those agent-activity CLIs now fail closed without that bridge configuration; `--allow-unreceipted-activity true` or `BIFROST_ALLOW_UNRECEIPTED_ACTIVITY=true` is the deliberate operator-recovery hatch when you knowingly want local-only activity
|
||||
- the dispatcher writes local run artifacts and request-store state for start/complete/fail visibility
|
||||
- the agent transport CLI writes canonical crossing receipts for queue, claim, release, close, and snapshot import events to `.bifrost/bridge-receipts.cc`
|
||||
- the governance threads CLI writes canonical crossing receipts for topic opens, comments, approvals, and promotions to `.bifrost/bridge-receipts.cc`
|
||||
- those agent-activity CLIs now fail closed without that bridge configuration
|
||||
|
||||
If the app bridge configuration is absent, `tools/bifrost-bridge.mjs` keeps working as a local actuator. When configured, it asks Bifrost for authorization before acting and reports success or failure back to the same bridge action row.
|
||||
If hosted app authorization is absent, `tools/bifrost-bridge.mjs` keeps working as a local actuator only when typed CultMesh command provenance is present. It writes requested, running, completed, failed, or cancelled crossing receipts directly to the canonical receipt store.
|
||||
|
||||
### GitHub Draft PR
|
||||
|
||||
|
|
@ -213,7 +188,7 @@ node .\tools\bifrost-bridge.mjs other-request `
|
|||
--content "Persona asks Bifrost to authorize this public crossing."
|
||||
```
|
||||
|
||||
The command records and completes a Bifrost bridge action using `targetSurface: Other` and `actionKind: Other`. It is the quarantine reliquary for public surfaces that are real enough to need identity and receipts, but not yet stable enough to deserve a first-class enum, actuator, or UI. Do not put provider bearer tokens in `--heimdall-capability-ref`; that value is the Heimdall-issued account/capability reference or a verifiable fingerprint-shaped reference.
|
||||
The command is a dry-run shape probe for public surfaces that are real enough to need identity and receipts, but not yet stable enough to deserve a first-class enum, actuator, or UI. Live writes fail closed until that surface has a typed Bifrost command/receipt contract. Do not put provider bearer tokens in `--heimdall-capability-ref`; that value is the Heimdall-issued account/capability reference or a verifiable fingerprint-shaped reference.
|
||||
|
||||
## Discord Native Interface Target
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ Current witnesses:
|
|||
- `.bifrost/agent-transport.cc` stores
|
||||
`bifrost.agent-transport.update-request` documents and can emit raw CultNet
|
||||
snapshots.
|
||||
- `.bifrost/bridge-receipts.cc` stores canonical
|
||||
`bifrost.crossing_receipt.v1` documents for governed public crossing
|
||||
attempts.
|
||||
|
||||
Required witness path for the hosted service:
|
||||
|
||||
|
|
@ -103,12 +106,12 @@ cache directly for debugging and development, but that is not the xeno boundary.
|
|||
Bifrost has a read-only first-cut provider advertisement command:
|
||||
|
||||
```powershell
|
||||
node tools/provider-advertisement.mjs export --out .bifrost/provider-advertisement.cc
|
||||
node tools/provider-advertisement.mjs publish-odin --odin-cultmesh-rudp 127.0.0.1:17871
|
||||
node tools/provider-advertisement.mjs export --out .bifrost/provider-store.cc
|
||||
$env:BIFROST_ODIN_CULTMESH_URI="cultmesh://odin/rendezvous/provider-catalog"; node tools/provider-advertisement.mjs publish-odin
|
||||
```
|
||||
|
||||
It writes Bifrost-owned Eve discovery documents into
|
||||
`.bifrost/provider-advertisement.cc`:
|
||||
`.bifrost/provider-store.cc`:
|
||||
|
||||
- `gamecult.eve.provider_advertisement.v1` names Bifrost's Account, Patron,
|
||||
Project, Work, Motion, and Operator Verse surfaces; current and planned
|
||||
|
|
@ -125,9 +128,11 @@ This export does not migrate Postgres state, read secrets, execute bridge
|
|||
actions, or make Razor Pages, HTTP probes, Discord mirrors, Reddit threads, or
|
||||
local dispatch JSON canonical. The operator surface may display those probes, but the provider
|
||||
owned `.cc` witness remains the discovery and dashboard source.
|
||||
When `BIFROST_ODIN_CULTMESH_RUDP` or `--odin-cultmesh-rudp` is configured, the
|
||||
same provider advertisement can be published once to Odin's CultMesh/RUDP
|
||||
document catalog through the provider-advertisement tool.
|
||||
When `BIFROST_ODIN_CULTMESH_URI` or `--odin-cultmesh-uri` is configured, the
|
||||
same provider advertisement can be published once to Odin's CultMesh rendezvous
|
||||
URI through the provider-advertisement tool. Concrete RUDP bootstrap endpoints
|
||||
belong behind CultMesh URI resolution, not in Bifrost provider publication
|
||||
configuration.
|
||||
|
||||
For protocol-debug inspection without writing a witness:
|
||||
|
||||
|
|
@ -146,6 +151,19 @@ Product surfaces are the canonical interface compositions for:
|
|||
- work claims, review, completion, receipts, and contributor credit;
|
||||
- bridge receipts and public handoff targets.
|
||||
|
||||
Canonical crossing receipts use `bifrost.crossing_receipt.v1` in
|
||||
`.bifrost/bridge-receipts.cc`. A receipt records `receiptId`, `commandId`,
|
||||
`crossingKind`, lifecycle status, Bifrost actor, source provenance, authority
|
||||
reference, optional Heimdall claim/grant references, optional Epiphany run/lane
|
||||
identity, target locator, external receipt facts, error details, and related
|
||||
receipt ids. Surface-specific receipts such as
|
||||
`bifrost.bridge.discord_post_receipt.v1` may remain as details, but they must
|
||||
reference the canonical crossing receipt and cannot decide crossing completion.
|
||||
Heimdall values recorded here are stable references or redacted snapshots:
|
||||
claim `jti`, `account_id`, `access_revision`, `exp`, grant id/ref, and
|
||||
revoked/expired behavior. Provider bearer tokens do not belong in Bifrost
|
||||
receipts.
|
||||
|
||||
Operator surfaces are the canonical interface compositions for:
|
||||
|
||||
- readiness, build/version, config validation, and deploy target;
|
||||
|
|
@ -160,11 +178,18 @@ Operator surfaces are the canonical interface compositions for:
|
|||
- Reddit bridge readiness for `r/GameCultOrg` organizing posts and Persona flair.
|
||||
|
||||
The Motion Verse has begun the migration from Razor-owned behavior to Eve-owned
|
||||
presentation. `/eve/governance/surface` emits a `gamecult.eve.surface.v1`
|
||||
composition for motions and voting. `/eve/governance/commands` accepts
|
||||
`motion.create`, `motion.vote`, and `motion.close` commands, then routes those
|
||||
commands through the same Bifrost motion governance service used by the Razor
|
||||
forms.
|
||||
presentation. Bifrost publishes the motion surface and command target as
|
||||
CultMesh addresses discovered through Odin:
|
||||
|
||||
```text
|
||||
cultmesh://asgard.starfire.bifrost/eve/governance/surface
|
||||
cultmesh://asgard.starfire.bifrost/commands/motion
|
||||
```
|
||||
|
||||
The transitional browser product may lower motion state for members, but it is
|
||||
not a Verse command transport. `motion.create`, `motion.vote`, and
|
||||
`motion.close` are command documents for the CultMesh route, then commit through
|
||||
the same Bifrost motion governance service used by the Razor forms.
|
||||
|
||||
The current Razor Pages app is now a transitional browser lowering for motions,
|
||||
not the behavior owner. Existing health/readiness endpoints lower operator
|
||||
|
|
@ -226,10 +251,10 @@ Bifrost.
|
|||
## Migration Order
|
||||
|
||||
1. Catalog current Bifrost state owners: EF/Postgres tables, `.cc` stores,
|
||||
bridge receipts, Discord mirrors, Reddit receipts, webhook cache, and app
|
||||
crossing receipts, Discord mirrors, Reddit receipts, webhook cache, and app
|
||||
readiness state.
|
||||
2. Define schema ids for missing Bifrost documents: work item, motion, vote,
|
||||
ledger entry, bridge action, bridge receipt, member capability snapshot,
|
||||
ledger entry, bridge action, crossing receipt, member capability snapshot,
|
||||
service registration, and Eve surface publication.
|
||||
3. Add Postgres-to-CultCache witness export for alpha entities before replacing
|
||||
the transactional store.
|
||||
|
|
@ -253,10 +278,15 @@ Demoted surfaces and stores:
|
|||
|
||||
- Razor Pages views are no longer the canonical Bifrost presentation owner; they
|
||||
are browser lowerings of Bifrost product/operator surfaces.
|
||||
- `/healthz`, `/readyz`, and any future HTTP dashboard/status JSON are probes or
|
||||
xenos-boundary exports, not service truth.
|
||||
- `/healthz`, `/readyz`, and any future HTTP dashboard/status JSON are product
|
||||
smoke probes or xenos-boundary exports, not service truth. Provider
|
||||
advertisements and Odin-facing operator readiness must reject HTTP probe
|
||||
configuration and derive status from typed CultMesh/Idunn state.
|
||||
- `.bifrost/discord-webhook-cache.json` is webhook address cache only; it does
|
||||
not prove governance, speech authority, or receipt completion.
|
||||
- `bifrost.bridge.discord_post_receipt.v1` and other surface receipts are
|
||||
surface-specific evidence only. `bifrost.crossing_receipt.v1` is the
|
||||
canonical crossing receipt owner.
|
||||
- `.bifrost/agent-dispatch/**/request.json`, `dispatch.json`, `result.json`, and
|
||||
app-server protocol JSON are local dispatch/protocol artifacts. They may be
|
||||
evidence attached to typed receipts, but they cannot decide request status,
|
||||
|
|
|
|||
Loading…
Reference in a new issue