Commit graph

108 commits

Author SHA1 Message Date
Meta Vens
c063f27014 Route Idunn operator alarms through the Bifrost Discord gate
operator-notification.mjs invented gamecult.operator_dm_request.v1 and
hand-rolled its document definitions, while the gate's own vocabulary and an
exported definition helper sat in the same tools/ directory. Nothing consumed
the invented type, so a published alarm sat pending forever with no receipt and
no way to notice. Two command vocabularies for one crossing, one of them
unreadable.

Publish bifrost.bridge.discord_post_command.v1 instead, via
discordPostCommandDefinition, as a discord-dm command carrying the operator
recipient and the alarm text. gamecult.operator_dm_request is gone, along with
the four unrelated Eve/VoidBot document definitions the publisher registered to
open somebody else's store. The default store is now the gate's own
.bifrost/provider-store.cc, which is what the bridge command pump reads.
Per AGENTS.md, Bifrost owns the Discord crossing; this tool only asks.

The bridge command route was discord-post only, so teach it the verb the
command document already carries:

- resolveBridgeVerb accepts discord-post and discord-dm and rejects anything
  else before the command is marked running;
- discord-dm passes --recipient-id, discord-post keeps --channel-id, and the
  persona/reply options stay post-only;
- listCommandRecords selects on the supported verb set instead of hardcoding
  discord-post, so a discord-dm command is actually picked up;
- receipts record the verb that ran rather than a literal "discord-post".

Two changes exist because of how this bug hid rather than what it was:

- --dry-run now builds the runtime and definitions before returning. The old
  dry run skipped CultMesh entirely, which is why a publisher that could never
  publish looked healthy in every check anyone ran.
- A receipt reporting a failed crossing sets a non-zero exit code. Printing
  ok:false and exiting 0 would hand Idunn a success it would act on.

--wait-seconds is opt-in; without it the tool returns at publish and says the
delivery is unconfirmed rather than implying it landed.

Verified end to end against a throwaway store: the command is published, the
pump claims it, dispatches discord-dm, and writes back a typed receipt. With no
bot token present the receipt reads "Set BIFROST_DISCORD_BOT_TOKEN or
DISCORD_BOT_TOKEN before sending a Discord DM" and the publisher exits 1. The
missing credential is now a reported failure instead of silence.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 02:49:42 +02:00
Meta Vens
c289c820c6 Stop double-wrapping the operator notification schema
publishIdunnAlarm has never successfully published. Every non-dry run died
with "definition.schema.parse is not a function" inside CultMeshNode.put.

parseObjectDocument already returns a schema-shaped object:

  function parseObjectDocument(label) { return { parse(input) { ... } }; }

but all five document definitions wrapped it a second time:

  schema: { parse: parseObjectDocument("Operator DM request") }

so definition.schema.parse was an object, and CultMesh called it as a
function. Pass the helper's result straight through instead.

This was present in the file's only prior commit, so the alarm path has never
worked. The dry-run branch returns before touching CultMesh, which is why the
publisher looked healthy: --dry-run prints a well-formed request and exits 0
without ever exercising put.

Verified end to end against a throwaway store: exit 0, ok:true, the .cc is
written, and the document reads back as
{"alarm":"verify-fix","svc":"probe-daemon","cmd":"owner.dm.send","status":"pending"}.
CultMesh creates missing store directories, so an absent .voidbot tree is not
a blocker.

Not exercised here: real delivery of the DM by VoidBot's worker, which needs
the operator's say-so rather than a probe.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 01:54:21 +02:00
Meta Vens
ecc170dfe3 Wire AGENTS.md into Claude Code memory
Claude Code reads CLAUDE.md, not AGENTS.md, so this repo's doctrine was
invisible to it. This one-line import makes the existing AGENTS.md load
without duplicating or renaming it. Codex is unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-03 22:21:23 +02:00
Meta Vens
8b9ab65b3f Delete Epiphany operator bridge 2026-08-22 06:16:39 +02:00
Meta Vens
cb3239aaac persona: receipt Discord bridge commands 2026-08-08 21:26:13 +01:00
Meta Vens
514c2a6cb9 persona: align permit bodies with Rust wire tuples 2026-08-08 21:15:57 +01:00
Meta Vens
573bbd3968 persona: normalize Rust permit byte tuples 2026-08-08 20:55:35 +01:00
Meta Vens
fe845db18e persona: admit first boot of typed delivery stores 2026-08-08 20:39:53 +01:00
Meta Vens
3f4dcae605 persona: keep staged readiness fixture complete 2026-08-08 20:30:21 +01:00
Meta Vens
34eb1e59e6 persona: split receipt and permit requester identities 2026-08-08 20:22:22 +01:00
Meta Vens
dd79b8b991 persona: separate delivery listener daemon 2026-08-08 20:17:22 +01:00
Meta Vens
b8deaa9a8c persona: add typed cross-host delivery nerve 2026-08-08 20:10:23 +01:00
Meta Vens
da716c95f2 Prove signed health transport identity 2026-07-22 02:53:44 +01:00
Meta Vens
da537ad8dc Use canonical daemon health publisher role 2026-07-22 02:49:25 +01:00
Meta Vens
a7647a1660 Follow portable CultNet provider signature bytes 2026-07-22 02:15:35 +01:00
Meta Vens
d74b61f4b7 Encode provider health timestamps as canonical u64 2026-07-22 02:07:17 +01:00
Meta Vens
8b115b08b4 Encode provider health signatures canonically 2026-07-22 02:01:07 +01:00
Meta Vens
5f519cb5ca Keep Discord phase out of provider health 2026-07-22 00:59:30 +01:00
Meta Vens
548dd9397f Own native Persona Discord transport 2026-07-22 00:34:04 +01:00
Meta Vens
0010f7da29 Add exact Epiphany Status v2 transport 2026-07-19 22:54:44 +01:00
Meta Vens
671168fefc Sign Persona feedback provider health 2026-07-19 21:41:50 +01:00
Meta Vens
6491f449cf Unify Epiphany operator request v1 2026-07-19 18:43:49 +01:00
Meta Vens
225859bd7e Test operator bridge against configured CultLib 2026-07-19 16:01:37 +01:00
Meta Vens
3824d42b6d Add typed operator identity enrollment 2026-07-19 15:18:13 +01:00
Meta Vens
dabf7aa320 Align Epiphany operator bridge v1 2026-07-19 15:09:26 +01:00
Meta Vens
e0e612c69c Complete authenticated Epiphany operator bridge 2026-07-19 13:12:04 +01:00
Meta Vens
82dd058d42 Add signed Epiphany operator admission boundary 2026-07-19 12:00:50 +01:00
Meta Vens
c65cbfa527 Gate organizational Persona feedback 2026-07-18 20:32:10 +01:00
Meta Vens
3bd250f811 Gate deployments with typed release authority 2026-07-16 18:28:13 +01:00
Meta Vens
03c6f353a8 Load CultLib entrypoints without workspace links 2026-07-15 22:20:03 +01:00
Meta Vens
6104f6c514 Load typed transport from packaged CultLib 2026-07-15 22:18:59 +01:00
Meta Vens
cde3a78874 Move public crossings onto typed Bifrost transport 2026-07-15 22:16:07 +01:00
Meta Vens
bd3a5a974b Add project-scoped patronage checkout 2026-07-05 19:07:48 +01:00
Meta Vens
2a382fb4a8 Publish Bifrost provider respect to Odin 2026-06-23 23:09:16 +01:00
Meta Vens
fa398eefc2 Advertise Discord bridge commands 2026-06-22 17:42:03 +01:00
Meta Vens
a474c28b93 Expose bridge surface readiness 2026-06-22 17:07:50 +01:00
Meta Vens
30e594570d Enforce named future bridge surfaces 2026-06-22 16:44:14 +01:00
Meta Vens
718ae94caa Advertise current bridge capabilities 2026-06-22 16:04:44 +01:00
Meta Vens
72ffa0d9f7 Prove Heimdall Patreon support intake 2026-06-22 15:55:03 +01:00
Meta Vens
f1f91713ad Add generic outside-world bridge request 2026-06-22 15:49:11 +01:00
Meta Vens
675c475752 Gate future public bridge surfaces 2026-06-22 15:42:43 +01:00
Meta Vens
19222bd166 Bind bridge mouths to Heimdall-linked identities 2026-06-22 15:23:30 +01:00
Meta Vens
80a5392935 Require registered Bifrost identity for bridge mouths 2026-06-22 15:18:30 +01:00
Meta Vens
23c02be2a6 Add native Bifrost identity registration 2026-06-22 15:07:22 +01:00
Meta Vens
445c27978b Gate public bridge actions on Bifrost identity 2026-06-22 14:54:14 +01:00
Meta Vens
c533a7f98c Record Epiphany bridge provenance 2026-06-22 14:26:53 +01:00
Meta Vens
861dff3ed7 Add Stripe patronage checkout integration 2026-06-22 14:08:35 +01:00
Meta Vens
ba01b78d68 Fix Bifrost bridge runtime and fixture env isolation 2026-06-22 14:03:07 +01:00
Meta Vens
0c53f70e25 Require approved governance before github bridge 2026-06-17 12:27:22 +01:00
Meta Vens
a22092feff Require receipts for non-github bridge activity 2026-06-17 12:06:20 +01:00