Agent runs
+Recent dispatched Codex runs recorded by Bifrost.
+diff --git a/.env.local.example b/.env.local.example
index ad0e597..8a63878 100644
--- a/.env.local.example
+++ b/.env.local.example
@@ -4,3 +4,5 @@
COMPOSE_PROJECT_NAME=bifrost-local
BIFROST_ROOT_VERSE=asgard
BIFROST_MACHINE_ID=yggdrasil
+
+BIFROST_PERSONA_FEEDBACK_PRIVATE_STORE=.bifrost/persona-feedback-private.cc
diff --git a/AGENTS.md b/AGENTS.md
index ea3c489..c06e133 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -30,10 +30,10 @@
## Locked Technical Defaults
- stack: ASP.NET Core 8 LTS
-- UI: Razor Pages
+- UI: Razor Pages + HTMX
- database: PostgreSQL
- hosting target: `bifrost.gamecult.org` on Yggdrasil
-- deployment pattern: nginx + systemd + localhost-only Postgres, matching `F:\Projects\gamecult-ops`
+- deployment pattern: nginx + systemd + localhost-only Postgres, matching `E:\Projects\gamecult-ops`
## Naming Defaults
@@ -43,7 +43,7 @@
## Ops Assumptions
-- follow the GameCult ops pattern already documented in `F:\Projects\gamecult-ops`
+- follow the GameCult ops pattern already documented in `E:\Projects\gamecult-ops`
- prefer one web app process for v1
- keep Postgres bound to localhost on the host
- add deployment runbooks to `gamecult-ops` when app work begins
@@ -57,3 +57,26 @@
- If a question is about trust, accountability, or payout fairness, prefer auditability over automation.
- If a question is about public work crossing GitHub, Discord, Reddit, CultNet/CultCache intake, or future collaboration surfaces, prefer Bifrost-owned requests, receipts, and routing over local helper sprawl.
- Before debugging UI/layout, inspect the live DOM and computed styles instead of guessing from templates or CSS intent.
+
+## Starting Point For The Next Session
+
+Read these files first:
+
+1. `AGENTS.md`
+2. `README.md`
+3. `docs/jurisdiction-map.md`
+4. `docs/bridge.md`
+5. `docs/agent-transport.md`
+6. `docs/reddit.md`
+7. `docs/bifrost-mvp-plan.md`
+8. `docs/full-implementation-strategy.md`
+9. `docs/context.md`
+
+Then start the first implementation milestone:
+
+- GitHub auth
+- membership gating
+- project and member models
+- work items
+- motions
+- ledgers
diff --git a/README.md b/README.md
index f7f69fd..0e4ea9d 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,6 @@ This repository now includes a viable alpha foundation slice of the ASP.NET Core
- Razor Pages app under `src/Bifrost.Web`
- PostgreSQL-backed EF Core model with an initial migration under `src/Bifrost.Web/Data/Migrations`
- Bifrost-native identity registration plus GitHub OAuth and Heimdall-linked provider identities, with invite/approval-based membership gating
-- a Linked accounts page where a member sees, links and unlinks their Heimdall provider logins, with unlink gated on a strong proof: a WebAuthn passkey (enrolled behind a fresh sign-in, 48 hour cooling-off), or a fresh Google step-up for an account with none ([docs/linked-accounts.md](docs/linked-accounts.md), [docs/passkeys.md](docs/passkeys.md))
- explicit member roles and admin-managed patron or contributor tier snapshots
- patron support event recording with derived patron point summaries and tier refresh for voting weight
- shared work board with estimates, actual time logs, review flow, and GitHub issue or PR links
@@ -37,7 +36,7 @@ It is closer to deployable now, but it is still not a finished internet-facing m
## Chosen Stack
- ASP.NET Core 8 LTS
-- Razor Pages
+- Razor Pages + HTMX
- PostgreSQL
- Bifrost-native identity registration
- GitHub OAuth for linked sign-in and repository integration
@@ -74,7 +73,7 @@ For the full staged roadmap, including contribution points, revenue share, patro
## Local Dev Notes
- set `GitHubOAuth:ClientId` and `GitHubOAuth:ClientSecret` before using sign-in
-- POST `/auth/bifrost/register` with `identity`, optional `displayName`, optional `returnUrl`, a solved proof-of-work `challenge` and `nonce` (from `GET /auth/bifrost/challenge`), and `acceptedNoticeVersion` (the `version` from `GET /auth/bifrost/notice`) to create a Bifrost-native account without OAuth; this signs in as `Authenticated` but does not grant active member access
+- POST `/auth/bifrost/register` with `identity`, optional `displayName`, and optional `returnUrl` to create a Bifrost-native account without OAuth; this signs in as `Authenticated` but does not grant active member access
- set `Bootstrap:AdminGitHubLogins` with at least one GitHub login for the first active admin path
- HTTP bridge ledger configuration (`BIFROST_BRIDGE_BASE_URL` / `BIFROST_BRIDGE_TOKEN`) is removed from live CLI transport. Request-lane, governance, dispatch, and bridge receipts converge on Bifrost-owned `bifrost.crossing_receipt.v1` documents in `.bifrost/bridge-receipts.cc`.
- external bridge actions must carry typed CultMesh command provenance such as `BIFROST_CULTMESH_COMMAND_ID`; unreceipted and HTTP-ledger hatches fail closed.
@@ -90,12 +89,13 @@ For the full staged roadmap, including contribution points, revenue share, patro
- set `Heimdall:PatronSupportIntakeSecret` before enabling Heimdall patron support intake in production
- default connection string points at local PostgreSQL
- build with `dotnet build Bifrost.slnx`
-- test with `dotnet test Bifrost.slnx`; the suite needs a real .NET 8 runtime (`DOTNET_ROOT`, with a runsettings `DotNetHostPath` if the SDK is newer; .NET 10 roll-forward makes Mvc.Testing 8.0.0 return 500 on every JSON response) and a built CultLib TypeScript runtime (`dist/` and `node_modules`) at `$VOIDBOT_CULTLIB_ROOT`
+- test with `DOTNET_ROLL_FORWARD=Major dotnet test Bifrost.slnx` if the machine only has the .NET 10 runtime installed
- dry-run a Reddit organizing thread with `node tools/bifrost-bridge.mjs reddit-post --title "Thread title" --persona-name Bifrost --content "Thread body" --dry-run true`
- print the Eve provider advertisement with `node tools/provider-advertisement.mjs print`
- export the Eve provider store with `node tools/provider-advertisement.mjs export --out .bifrost/provider-store.cc`
- provider advertisement commands require explicit `BIFROST_ROOT_VERSE` and
`BIFROST_MACHINE_ID` deployment identity
+- inspect the interactive Motion Verse surface at `/eve/governance/surface` while signed in as an active member
- container smoke test with `docker compose -f compose.local.yaml up --build`
- container smoke tests may hit `/healthz` and `/readyz` as product probes.
Provider advertisements, Docker health, and deploy gates must come from
@@ -106,13 +106,13 @@ For the full staged roadmap, including contribution points, revenue share, patro
Before implementation work starts in a new session, read these files in order:
-1. [AGENTS.md](AGENTS.md)
-2. [docs/bifrost-mvp-plan.md](docs/bifrost-mvp-plan.md)
-3. [docs/jurisdiction-map.md](docs/jurisdiction-map.md)
-4. [docs/bridge.md](docs/bridge.md)
-5. [docs/verse-service-contract.md](docs/verse-service-contract.md)
-6. [docs/agent-transport.md](docs/agent-transport.md)
-7. [docs/reddit.md](docs/reddit.md)
-8. [docs/paypal-patronage.md](docs/paypal-patronage.md)
-9. [docs/full-implementation-strategy.md](docs/full-implementation-strategy.md)
-10. [docs/context.md](docs/context.md)
+1. [AGENTS.md](E:\Projects\Bifrost\AGENTS.md)
+2. [docs/bifrost-mvp-plan.md](E:\Projects\Bifrost\docs\bifrost-mvp-plan.md)
+3. [docs/jurisdiction-map.md](E:\Projects\Bifrost\docs\jurisdiction-map.md)
+4. [docs/bridge.md](E:\Projects\Bifrost\docs\bridge.md)
+5. [docs/verse-service-contract.md](E:\Projects\Bifrost\docs\verse-service-contract.md)
+6. [docs/agent-transport.md](E:\Projects\Bifrost\docs\agent-transport.md)
+7. [docs/reddit.md](E:\Projects\Bifrost\docs\reddit.md)
+8. [docs/paypal-patronage.md](E:\Projects\Bifrost\docs\paypal-patronage.md)
+9. [docs/full-implementation-strategy.md](E:\Projects\Bifrost\docs\full-implementation-strategy.md)
+10. [docs/context.md](E:\Projects\Bifrost\docs\context.md)
diff --git a/docs/bifrost-mvp-plan.md b/docs/bifrost-mvp-plan.md
index 29fd545..fa1bd10 100644
--- a/docs/bifrost-mvp-plan.md
+++ b/docs/bifrost-mvp-plan.md
@@ -4,7 +4,7 @@
- Create Bifrost as a separate GameCult app repo and deploy it on Yggdrasil.
- Build a member alpha, not a public launch.
-- Use ASP.NET Core 8 with Razor Pages and PostgreSQL.
+- Use ASP.NET Core 8 with Razor Pages + HTMX and PostgreSQL.
- Support invite-only GitHub-linked members, GitHub-backed and internal work items, app-native governance, Reddit organizing threads, and internal ledgers.
- Preserve the Labor Platform loop: user/member/patron demand raises work priority and reward pressure, contributors pick up valuable work, maintainers accept completion artifacts, and Bifrost credits the contributor plus any bounty/reward allocation.
- Do not include Ethereum, wallets, DAO mechanics, or payout execution in v1.
@@ -13,7 +13,7 @@
## System Shape
- One ASP.NET web app process for v1.
-- Server-rendered UI; no client-side framework or third-party script.
+- Server-rendered UI with HTMX for progressive interactions.
- PostgreSQL as the system of record.
- Bifrost-native identity registration for login, with GitHub OAuth available as a linked external identity.
- GitHub App plus webhooks for issue and pull request lifecycle sync.
diff --git a/docs/bridge.md b/docs/bridge.md
index 52f51a4..d3a07c9 100644
--- a/docs/bridge.md
+++ b/docs/bridge.md
@@ -23,7 +23,7 @@ That means Bifrost owns the operational meaning of the crossing:
It does not mean Bifrost should own OAuth sludge. Bifrost is both an identity provider and identity consumer: a GameCult actor should be able to register with Bifrost without OAuth, and that Bifrost identity should be enough to authenticate with most GameCult services. Heimdall owns outside-provider OAuth, linked-account token custody, grants, and signed account claims. Bifrost associates those Heimdall-backed accounts with the Bifrost identity, consumes the permission facts, and decides whether a bridge action is allowed in the Bifrost domain.
-The native registration surface is `POST /auth/bifrost/register`, which takes `identity`, optional `displayName` and `returnUrl`, a solved proof-of-work `challenge` and `nonce` (from `GET /auth/bifrost/challenge`), and `acceptedNoticeVersion` (from `GET /auth/bifrost/notice`). It creates a Bifrost-owned `UserAccount` with `BifrostIdentity` and `NormalizedBifrostIdentity`, signs the caller in with the Bifrost cookie, and leaves membership at `Authenticated`. It does not grant active member access, mint outside-provider tokens, or replace Heimdall's account-link and capability custody.
+The native registration surface is `POST /auth/bifrost/register`. It creates a Bifrost-owned `UserAccount` with `BifrostIdentity` and `NormalizedBifrostIdentity`, signs the caller in with the Bifrost cookie, and leaves membership at `Authenticated`. It does not grant active member access, mint outside-provider tokens, or replace Heimdall's account-link and capability custody.
## Ownership
@@ -196,89 +196,25 @@ The command is a dry-run shape probe for public surfaces that are real enough to
Bifrost's native Discord gateway is the conversation observer. A direct mention of the Bifrost bot, or a reply to one of its messages, becomes an immutable typed `bifrost.discord.persona_conversation_event.v0` only when the guild and channel have one exact Persona target binding. Bot-authored, ambient, empty, over-1200-character, unbound, and ambiguously bound messages do not enter the conversation path. The 1200-character cap is the shared signed alpha boundary with Epiphany. The observation store is Bifrost-private working state, never an actuator queue, and insert collisions must contain exactly equal content. VoidBot does not observe, schedule, or answer for the target Persona.
-Persona speech goes out through Matrix, not Discord. `tools/persona-matrix-mouth.mjs` is the one process for every Persona (`PERSONAS`, a list of slugs): it holds each Persona's Matrix access token as its own systemd credential (`matrix-token- {E(error)} {{E(message)}} {E(model.Error)} A new account can chat. It has no vote and opens no member or governance surface. Without a script, or if the automatic check is slow, wait {{wait}} seconds after the page opened and press the button to skip it (or Create account when there is no script). Pressed sooner, the page comes back saying how many seconds remain and keeps your names; the consent box comes back unchecked, so tick it again if you want to agree. Without the automatic check only a few registrations per hour are accepted from one address. After registering, Bifrost returns you to {{E(model.ReturnPath)}}. ").Append(WebUtility.HtmlEncode(paragraph)).Append("> PendingAsync(CancellationToken cancellationToken) =>
- db.ChatInvites.AsNoTracking()
- .Where(x => x.RedeemedAtUtc == null && x.RevokedAtUtc == null)
- .OrderByDescending(x => x.IssuedAtUtc)
- .ToListAsync(cancellationToken);
-
- ///
Training consent
- {{summary}}
- Create a Bifrost account
-
Recent dispatched Codex runs recorded by Bifrost.
+Queue, claim, release, and closure events recorded on the request lane.
+Hosted receipts for topic opens, comments, approvals, and promotions.
+Recent agent and service crossings recorded by Bifrost.
+- Chat is by invitation: mint a single-use link and send it yourself. Approval remains human + Invite-first onboarding keeps the alpha intentionally small. Approval remains human because trust and contributor accountability are product concerns, not just auth concerns.
- @if (!string.IsNullOrEmpty(Model.Notice)) - { -@Model.Notice
- } - @if (Model.Actor.CanManageMembership) { - @if (Model.MintedLink is not null) - { -@Model.MintedLink
| For | +GitHub login | Issued | -Expires | -+ | Accepted | +Notes |
|---|---|---|---|---|---|---|
| @invite.Note | -@invite.IssuedAtUtc.ToString("dd MMM yyyy HH:mm") UTC | -@invite.ExpiresAtUtc.ToString("dd MMM yyyy HH:mm") UTC | +@invitation.GitHubLogin | +@invitation.IssuedAtUtc.ToString("dd MMM yyyy HH:mm") UTC | - + @(invitation.AcceptedAtUtc is null + ? "Waiting for sign-in" + : invitation.AcceptedAtUtc.Value.ToString("dd MMM yyyy HH:mm") + " UTC") | +@invitation.Notes | ` alignment by inheriting `text-align`.\n// 3. Fix alignment for Safari\n\nth {\n font-weight: $table-th-font-weight; // 1\n text-align: inherit; // 2\n text-align: -webkit-match-parent; // 3\n}\n\nthead,\ntbody,\ntfoot,\ntr,\ntd,\nth {\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n}\n\n\n// Forms\n//\n// 1. Allow labels to use `margin` for spacing.\n\nlabel {\n display: inline-block; // 1\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n// See https://github.com/twbs/bootstrap/issues/24093\n\nbutton {\n // stylelint-disable-next-line property-disallowed-list\n border-radius: 0;\n}\n\n// Explicitly remove focus outline in Chromium when it shouldn't be\n// visible (e.g. as result of mouse click or touch tap). It already\n// should be doing this automatically, but seems to currently be\n// confused and applies its very visible two-tone outline anyway.\n\nbutton:focus:not(:focus-visible) {\n outline: 0;\n}\n\n// 1. Remove the margin in Firefox and Safari\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // 1\n font-family: inherit;\n @include font-size(inherit);\n line-height: inherit;\n}\n\n// Remove the inheritance of text transform in Firefox\nbutton,\nselect {\n text-transform: none;\n}\n// Set the cursor for non-` |