Commit graph Odin/src/odin
Author SHA1 Message Date
Meta Vens
3f22fd1d76 Hermodr leaves Odin
Hermodr is a browser lowering, not an all-seer organ. It lived here as Node
inside a Rust repository, sharing a module directory with the coordinator, and
until this week it ran its own provider ingress and accepted publications into a
private store. The ingress went first on purpose: extracting it beforehand would
have relocated a second acceptance authority and called that progress.

Removed: the daemon, its provider subscription source and state stream, both
test files, four lifecycle scripts, the persona avatar, the hermodr:start
script, and src/odin/utils.cjs, whose only remaining consumer was Hermodr and
which it used for one of six functions.

src/odin/ falls from fourteen modules to eleven. The CommonJS surface falls from
sixteen files to twelve. What is left is the coordinator, the Rust organs, and
two adapters declaring contracts other repositories own.

The plan document stays as the record of what left and why. Phase 5, static
lowering, is Hermodr's business now.

5 tests pass, syntax check clean over twelve files.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:46:06 +02:00
Meta Vens
20bacabf7c Reduce Odin's document catalog to a CultLib adapter
defineOdinDocuments was 536 lines defining 45 CultCache document types for Eve,
Ghostlight, Heimdall, Idunn, Muninn, Sleipnir, Aetheria, VoidBot and Stonks.
The name was the only part of it that was Odin's.

The catalog is now cultcache-ts's defineSwarmDocuments, verified byte-identical
to what this file produced. What remains here is 26 lines resolving CultLib and
re-exporting under the name Odin's consumers already call, so odin-coordinator
and the two discovery tests are untouched.

This was the last shared dependency between Odin and Hermodr. utils.cjs now has
exactly one consumer, hermodr-daemon, using exactly one of its six functions, so
it leaves with Hermodr rather than staying as a library nobody here reads.

CULTLIB_ROOT is honoured with the sibling walk as fallback, matching the health
adapter and hermodr-daemon.

22 tests pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:41:28 +02:00
Meta Vens
ac3336adeb Reduce Odin's Idunn health publisher to Idunn's contract
idunn-rudp.cjs was 324 lines of which almost none were about Idunn. The
transport moved to CultLib as cultnet-ts's signed-daemon-health module, beside
the RUDP session it was already built on. What is left here is 65 lines: the
three constants naming Idunn's wire contract, and the call shapes Odin's
consumers already use.

The constants are declared, not decided. Idunn defines them in
docs/signed-daemon-health-authority.md, which until today did not state the
connection id at all -- the value describing how to reach Idunn existed only in
this consumer. Declaring two constants against a documented contract is not
duplicated authority; duplicating 311 lines of transport across Odin and a
future Hermodr repository would have been.

The module also stops resolving CultLib by walking up three directories from its
own location. It now honours CULTLIB_ROOT with that walk as a fallback, matching
what hermodr-daemon.cjs already did. The old assumption held only while Odin sat
beside CultLib, and Erycina broke on exactly that when it moved.

The signed-health test now supplies IDUNN_HEALTH_CONTRACT to the publisher it
builds by hand, and still asserts the literal wire values, so a change to the
contract constants fails loudly rather than being absorbed.

Verified: 22 tests pass across six files, including signature verification
against the relocated implementation, and the syntax check is clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:29:53 +02:00
Meta Vens
b6f3296484 Hermodr reads providers instead of accepting from them
Hermodr constructed its own OdinLivePublicationSource, opened its own
provider-session ingress on its own bind address with its own token, and served
that private store to browsers. A surface reached a browser only if its provider
bound to Hermodr specifically, which made a required ingress out of something
named a bridge, and meant a provider had to publish twice: once where the Verse
expects it, and once into Hermodr so an operator could watch their own command
land.

Providers own their state. Odin advertises where it lives. Hermodr now resolves
a provider through the catalog and reads that provider directly, which is what
the command path has always done: findProviderCommandRoute looks a route up in
the catalog and publishes intent to the provider's own endpoint. The state leg
now matches the intent leg, and the round trip closes without the provider
publishing anywhere twice.

ProviderSubscriptionSource presents the same narrow port the store did, so
HermodrStateStreamRegistry is untouched and browsers keep their sequence numbers
and stale/reconnected transitions. Its read is injected, which is what makes the
lifecycle semantics testable without a live Verse.

One invariant is worth naming because getting it wrong is silent: a failed read
is not a withdrawal. A provider restart or a dropped packet must not render as
the provider retracting state it still holds, so read errors are reported and
the previous value stands, while genuine absence withdraws. Both are tested.

Route resolution is cached for thirty seconds and the state is not cached at
all, since routes change slowly and state is the thing being watched. A wedged
peer is dropped so the next poll reconnects.

Deleted: the ingress construction, --provider-session-bind and
--provider-session-token, live-publication-source.cjs,
provider-session-ingress.cjs, their test, parseBind, and three imports left
unused. src/odin/ falls from fourteen modules to twelve. The removed options and
env vars now fail loudly through the existing rejectRemovedOptions path in both
spellings parseArgs can produce.

Polling is a first cut, not the destination. CultMesh ships
cultMeshPollingDocumentWatcher for exactly this shape, and the cadence is
--provider-poll-interval-ms. A push subscription belongs here later; it does not
change the authority, which is the point of this commit.

Verified: 22 tests pass across six files, syntax check clean over sixteen
CommonJS files. Not verified: behaviour against a live provider over RUDP, which
needs a running Verse and is an operator step.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 18:41:39 +02:00
Meta Vens
ba76a7239a Serialize Odin provider document persistence 2026-08-23 19:41:59 +02:00
Meta Vens
ed56dab812 Persist Ghostlight public schema catalogs 2026-08-23 19:31:47 +02:00
Meta Vens
b4f9a2e95f Register Heimdall access discovery documents 2026-08-22 03:53:10 +02:00
Meta Vens
c7012a87c9 Admit Odin as a signed Idunn target 2026-08-21 19:50:24 +02:00
Meta Vens
5cb819e94c Ingest live provider session state 2026-07-15 01:45:23 +01:00
Meta Vens
188ffedadf Unwrap Rust provider advertisements 2026-07-12 20:00:19 +01:00
Meta Vens
a0b639154c Add Hermodr to Idunn keepalive 2026-07-10 21:29:50 +01:00
Meta Vens
4d333fb68d Consume plugin-owned field schemas 2026-07-10 15:01:30 +01:00
Meta Vens
4ad8bdb481 Rework Odin transport ownership and service names 2026-07-04 22:38:43 +01:00
Meta Vens
767351f721 Accept Rust provider advertisements over RUDP 2026-06-23 23:52:49 +01:00
Meta Vens
65beba9cd9 Use CultMesh RUDP document catalog in Odin 2026-06-23 22:33:05 +01:00
Meta Vens
005e83f5d3 Ingest live provider announcements over CultNet RUDP 2026-06-23 22:07:04 +01:00
Meta Vens
1754e42515 Drop remote store mirroring from Odin discovery 2026-06-23 20:11:39 +01:00
Meta Vens
e1eb4b45a7 Fix Odin health actuation and share discovery pass 2026-06-23 18:36:59 +01:00
Meta Vens
505c55311f Make Idunn witness checks use daemon-owned state 2026-06-23 17:04:07 +01:00
Meta Vens
bf55a7243c Add Muninn media frame document schemas 2026-06-18 16:33:19 +01:00
Meta Vens
a61368a711 Route Muninn capture activation over RUDP commands 2026-06-18 15:12:16 +01:00
Meta Vens
b43d2a3136 Serve Odin snapshots and retire Gjallar bridge debt 2026-06-17 01:28:55 +01:00
Meta Vens
91e9b17f7b Ingest remote Gjallar witnesses in Odin 2026-06-16 22:39:03 +01:00
Meta Vens
caeef3723a Upgrade Nightwing Muninn provider discovery 2026-06-16 21:59:36 +01:00
Meta Vens
d26f0c5412 Publish Muninn provider witness records 2026-06-16 21:45:52 +01:00
Meta Vens
030b6098c1 Ingest StreamPixels service boundary records 2026-06-16 12:47:59 +01:00
Meta Vens
9dc6c0afab Ingest Stonks provider boundary records 2026-06-16 12:04:26 +01:00
Meta Vens
b850c0be03 Ingest Weksa provider boundary records 2026-06-16 11:31:02 +01:00
Meta Vens
676fd1a6af Surface Vili store ingestion and Raven task repair 2026-06-16 11:01:27 +01:00
Meta Vens
edca92d35f Move Idunn health lanes to shared RUDP 2026-06-16 03:59:34 +01:00
Meta Vens
d1b3bd3127 Add Vili to Odin discovery and Idunn keepalive 2026-06-12 12:56:40 +01:00
Meta Vens
f5b82dd8c1 Register Weksa with Odin and Idunn 2026-06-11 20:27:58 +01:00
Meta Vens
c3a021f96f Organize marquee into stanza and Stonks bursts 2026-06-07 04:48:25 +01:00
Meta Vens
2518dc0b10 Publish canonical Stonks poetry marquee 2026-06-07 00:13:01 +01:00
Meta Vens
49f75f85df Publish all active provider surfaces 2026-06-06 20:20:04 +01:00
Meta Vens
6dd6fdcf0e Serve proxied provider surfaces over HTTP 2026-06-06 15:21:23 +01:00
Meta Vens
443fa9cf66 Move overview composition from Odin to Gjallar 2026-06-05 17:06:15 +01:00
Meta Vens
5d11f9129a Use CultLib package root imports 2026-06-05 14:53:17 +01:00
Meta Vens
bbb3b9a8e1 Use semantic address for Odin service identity 2026-06-04 23:58:56 +01:00
Meta Vens
7d2e212b04 Preserve semantic CultMesh provider addresses 2026-06-04 23:23:01 +01:00
Meta Vens
2eb0b7397a Discover Bifrost Eve surface by default 2026-06-04 20:59:16 +01:00
Meta Vens
1a4b67c7a8 Carry Stonks market tape in Odin 2026-06-04 17:38:58 +01:00
Meta Vens
faaef8ee8c Filter Odin overview to live signal 2026-06-04 17:04:51 +01:00
Meta Vens
5b748f39be Separate provider ads from interface surfaces 2026-06-04 14:42:35 +01:00
Meta Vens
64d95c3504 Expose discovered CultMesh providers 2026-06-04 13:52:47 +01:00
Meta Vens
1cdcf8fbe3 Summarize legacy Eve node groups 2026-06-04 03:35:56 +01:00
Meta Vens
f301830491 Pack Eve surfaces from nested signal 2026-06-04 03:04:46 +01:00
Meta Vens
e5bedd9c67 Lower legacy provider nodes into Eve surfaces 2026-06-03 11:26:52 +01:00
Meta Vens
d259308708 Publish only Eve surface cards 2026-06-03 10:54:09 +01:00
Meta Vens
abb785be46 Demote ADB transport from Periwinkle surface 2026-06-03 10:48:26 +01:00