Commit graph Odin/crates/odin-core
Author SHA1 Message Date
soul-probe
99f9a22fa4 odin-core: keep the cultnet-rs dependency (cultmesh_documents! expands to it)
The previous commit dropped cultnet-rs from odin-core's manifest as
unused; cultmesh_documents! emits cultnet_rs paths, so the crate needs it
in scope. Restore the dependency and its lockfile entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:22:45 +02:00
soul-probe
6aba9a8801 Delete odin-core's Idunn lifecycle planner and idunn.* schemas
crates/odin-core/src/idunn.rs (plan_keepalive: observe, alarm, deploy or
restart from IdunnDaemonHealthRecord) had no caller: odin-daemon does not
depend on odin-core, and the deployed recipe builds only odin-daemon.
Idunn owns deployment and daemon survival; nothing in Idunn reads these
records (its own live in cultnet-rs).

Also removes from documents.rs the idunn.* and bifrost release-authority
schema constants and records, their OdinDocuments registrations, the
cultnet re-exports of Idunn health types, and the tests that only
exercised them. The muninn.* copies stay. cultnet-rs and rmp-serde drop
out of odin-core's manifest and lockfile entry (no remaining user).

Muninn pins odin-core at 3e96c6c and is unaffected until its next bump,
which must drop IdunnDaemonHealthRecord.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:20:38 +02:00
Meta Vens
2dea7f6eed Bump CultLib pin to 3bf1c0ce (RUDP stray-packet hardening)
Odin crashed on a stray RUDP packet; CultLib 3bf1c0ce hardens stray-packet
handling in all runtimes. Both manifests (odin-core, odin-daemon; Odin has no
workspace.dependencies) move from a8aeddac to 3bf1c0ce. No API breaks: the
workspace compiles and tests unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 22:11:27 +02:00
Meta Vens
5a015d9d9c REC-014: cut dead Odin dump examples and dangling Gjallar npm scripts
Deletes crates/odin-core/examples/dump_move_tracker_health.rs and
dump_provider_endpoints.rs (no in-swarm caller: full-corpus rg for both
executable names found only their own usage strings, plus the two sibling
Odin worktrees that carry byte-identical copies). Removes package.json's
gjallar:build/gjallar:start scripts, which run `cargo build/run -p
gjallar-daemon` — no such Cargo package exists in this workspace (members:
sleipnir-daemon, odin-core, odin-daemon) or in the sibling Gjallar repo,
which is a C#/.NET executable (src/Gjallar/Gjallar.csproj), not a Rust
package.

Kill attempts that failed to find a consumer:
- rg -n "dump_move_tracker_health|dump_provider_endpoints" across all of
  F:/Projects excluding target/node_modules/.git: only the examples' own
  usage strings, the census docs, and the two other Odin worktrees.
- rg -n "gjallar:build|gjallar:start" across all of F:/Projects: only
  Odin's own package.json (this repo + 2 worktrees) and census docs.
- Collision check: git diff --stat origin/main...codex/cultmath-cutover and
  ...codex/ygg-ghostlight-continuity over these paths: empty, no in-flight
  work touches them.
- state/map.yaml and notes/*.md: no reference to either example or the
  gjallar npm scripts.

Not touched: the root Cargo.toml exclusions for vendor/cultcache-rs and
vendor/cultnet-rs named in REC-014 are already gone — removed by commit
6575de4 ("Drop the workspace excludes for vendor trees that no longer
exist"), prior to this pass. That part of REC-014 is moot.

REC-014

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 14:00:34 +02:00
Meta Vens
0e540cae18 Bump CultLib to a8aedda for bounded fragment reassembly
cultnet-rs removed a fragment buffer only on successful reassembly and
refused new fragmented payloads once 64 sets were stranded, so any
sustained loss on a fragmenting channel ended with the receiver returning
"RUDP pending fragment-set limit reached" for every subsequent fragmented
payload. Odin is the rendezvous every other target is observed through;
a receiver that stops accepting fragmented traffic after a bounded number
of losses is the wrong failure mode for that role.

Measured on Raven at 3% loss, 12 Mbps: the old receiver dies at 3 and 6
fragments per payload, the new one delivers 91.0% and 82.7%, and the
loss amplification matches 1-(1-p)^n exactly.

The pin also carries the media stream contracts and the media delivery
option, neither of which Odin uses, and the TypeScript and Python halves
of the same eviction fix.

All 11 CultLib revs across odin-core, odin-daemon, muninn-daemon and
sleipnir-daemon move together; leaving any behind gives two cultcache-rs
copies and a DatabaseEntry that is not DatabaseEntry.

  cargo test -p odin-core -p odin-daemon -> 22 passed, 10 passed, 4 passed,
  0 failed

muninn-psmoveapi-tracker still fails to link in the build image for want
of libpsmoveapi. It declares no CultLib dependency, so the pin cannot
reach it; that is a missing native library on the builder.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 12:04:12 +02:00
Meta Vens
7ea146dd36 Cut idunn-daemon and the vendored cultmesh fork out of Odin
Idunn now lives at https://github.com/GameCult/Idunn with its full 136-commit
history. Odin no longer contains the deployment authority that manages it.

Also removes vendor/cultmesh-rs, the private fork that had diverged from
CultLib in both directions. Its unique capability -- the RUDP document server
and the message_id correlation rework -- was reconciled into CultLib first, so
this deletes a duplicate rather than a capability. The four crates that
consumed it by path (muninn-daemon, odin-core, odin-daemon, sleipnir-daemon)
now consume CultLib at c13b6ba like everything else.

What deliberately stays in Odin: crates/odin-core/src/idunn.rs, which is Odin's
own projection of Idunn state for aggregation and is Odin's to own;
src/odin/idunn-rudp.cjs, its client for talking to Idunn; and
deployment/idunn/recipe.toml, which despite the path is Odin's own deployment
recipe expressed in Idunn's format -- it builds odin-daemon.

odin-core: 22 passed, 0 failed, unchanged across the cut. odin-daemon still
fails to compile on Windows for the pre-existing Unix-only std::os::fd reason.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 18:09:11 +02:00
Meta Vens
0995222c17 Sever idunn-daemon's last import from odin-core
IdunnDaemonHealthTrustBindingRecord and its schema constant moved to
cultnet-rs (GameCult/CultLib@c13b6ba). odin-core now imports them from
cultnet_rs instead of defining them, and idunn-daemon/provisioning.rs
pulls all six provider-health symbols from cultnet_rs directly, merged
into its existing cultnet_rs use block. Dropped the odin-core path
dependency from idunn-daemon/Cargo.toml — nothing in the crate reaches
odin_core:: anymore. Bumped the CultLib git rev across all six
consuming manifests to the new commit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 17:43:24 +02:00
Meta Vens
ba8b4afbb6 Bump CultLib to ae0ac0d and give odin-core its missing rmp-serde dev-dep
Moves all six CultLib pins from cbde940 to ae0ac0d, which carries the
reconciled cultmesh-rs. The delta is three commits and near-nothing in the
packages Odin consumes: a license line, two lines in cultnet-rs replication,
and one additive pub fn.

The dev-dependency is a real pre-existing defect, not fallout from the bump.
odin-core's tests use rmp_serde in crates/odin-core/src/idunn.rs but never
declared it, so the lib-test target has never compiled. Verified pre-existing:
9 errors at the old pin, 8 at the new. With the dep declared, odin-core tests
compile and 22 pass -- including idunn_records_round_trip_through_cultmesh,
which matters for the extraction this branch is preparing.

Note for anyone checking this on Windows: odin-daemon does not build here and
that is expected, not a regression. It imports std::os::fd and from_raw_fd,
which are Unix-only. Identical failure at both pins.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 17:35:54 +02:00
Meta Vens
3d939a8523 Apply rustfmt
The drift was 94 hunks across 4 files, not 94 files as I described it earlier.
muninn-daemon carries almost all of it; sleipnir-daemon needed four lines.

Checked rather than assumed. Ignoring whitespace, the only remaining deltas are
trailing commas rustfmt adds when it wraps an argument list, and braces removed
from single-expression closure bodies. Both are semantics-preserving.
sleipnir-daemon's change is whitespace and nothing else.

Everything except the Unix-only odin-daemon builds; muninn and sleipnir pass 162
tests, with the same pre-existing media-channel failure.

vendor/cultmesh-rs is its own workspace so `cargo fmt` does not reach it, but it
reports no drift of its own.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 15:28:32 +02:00
Meta Vens
27cc8156bc Consume CultCache and CultNet from CultLib instead of forking them
The CultNet submodule and the in-tree CultCache copy are gone. Both now come
from CultLib, and vendor/cultmesh-rs is the only fork left -- it too consumes
CultLib, so exactly one version of each crate spans the graph. That mattered:
mixing sources would have put two cultnet-rs crates in one build, and the types
would not have unified.

The in-flight CultMesh RUDP document server comes with it because it is a
prerequisite, not a coincidence. The previously committed CultMesh calls
assume_connected(), a CultNet method Odin's fork carried and CultLib does not,
so the old code cannot build against CultLib at all. The newer code no longer
calls it. Verified by reverting the file and watching it fail.

Three API differences needed adapting: CultLib's transport options carry a
reconnect_policy the fork lacked (7 sites), its create_ack builds the packet
straight from ack state and so cannot fail, and its transport profile owns each
channel's reliable expiry.

Everything but odin-daemon builds; odin-daemon is Unix-only and does not compile
on this machine either way. muninn and sleipnir pass 162 tests. The one failure,
rudp_media_transport_options_follow_low_latency_profile, expects an Unreliable
media channel while every CultNet lineage including both revisions Odin had
pinned declares it Reliable, so it failed before this change too.

The in-flight idunn-daemon work is deliberately left uncommitted; the committed
tree was verified to build without it. Also left alone: the untracked
odin-daemon crate and deployment recipe, and the root manifest, whose now-dead
vendor excludes are inert. That recipe still requires the vendor/cultnet-rs
gitlink and will refuse admission until that line is dropped -- the fix is in
the working tree, waiting on that directory being tracked.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 14:54:58 +02:00
Meta Vens
32cbb5f028 Bind Idunn deployment and runtime admission 2026-09-02 13:53:07 +02:00
Meta Vens
61d2fc702e Consume shared signed health contract 2026-07-19 22:17:39 +01:00
Meta Vens
deed50808a Make CultNet the provider contract owner 2026-07-19 21:28:21 +01:00
Meta Vens
1a8b0e7725 Add native Idunn trust provisioning 2026-07-19 21:04:21 +01:00
Meta Vens
99ed509934 Purify authenticated provider health projection 2026-07-19 20:18:11 +01:00
Meta Vens
1240ca83a4 Define signed Idunn health projection contracts 2026-07-19 20:06:43 +01:00
Meta Vens
be8836f357 Authenticate generic daemon health 2026-07-19 19:57:04 +01:00
Meta Vens
cc80cd4479 Define signed daemon health authority 2026-07-19 19:38:18 +01:00
Meta Vens
92fab01d37 Make Idunn admission atomic and request-bound 2026-07-17 02:37:42 +01:00
Meta Vens
41d050f62a Observe warming daemons without actuation 2026-07-17 01:19:48 +01:00
Meta Vens
ecaac7f835 Gate Yggdrasil releases through Bifrost 2026-07-16 18:34:26 +01:00
Meta Vens
8a8a5591a9 Allow disabling Move hue transitions 2026-07-14 19:40:09 +01:00
Meta Vens
86c94bb57c Expose Move hue transition percentage 2026-07-14 19:29:15 +01:00
Meta Vens
d0eded64cb Reject implausible Move optical observations 2026-07-14 01:06:57 +01:00
Meta Vens
e33e86610f Publish Move evidence transport cadence health 2026-07-13 01:46:03 +01:00
Meta Vens
249db3b42f Measure expected Move colors in tracker frames 2026-07-13 01:18:07 +01:00
Meta Vens
964f05ba2d Expose blocked Move tracker initialization 2026-07-13 00:44:16 +01:00
Meta Vens
705067ea9f Publish per-camera Move tracker health cleanly 2026-07-13 00:36:02 +01:00
Meta Vens
4d4abe2ef3 Revert "Publish per-camera Move tracker health"
This reverts commit 00e361aa6e.
2026-07-13 00:33:30 +01:00
Meta Vens
00e361aa6e Publish per-camera Move tracker health 2026-07-13 00:33:16 +01:00
Meta Vens
2600fb4877 Publish live Move hue controls through Eve 2026-07-12 22:23:20 +01:00
Meta Vens
a014e38e99 Run Move tracking through PSMoveAPI 2026-07-12 21:11:20 +01:00
Meta Vens
4ad8bdb481 Rework Odin transport ownership and service names 2026-07-04 22:38:43 +01:00
Meta Vens
b13fa7d050 Switch Muninn RUDP audio to PCM packets 2026-06-23 17:03:54 +01:00
Meta Vens
f1c92bfb47 Split Muninn RUDP audio and video capture 2026-06-19 21:36:24 +01:00
Meta Vens
42328e3aeb Keep Muninn parity under LAN RUDP MTU 2026-06-19 20:10:12 +01:00
Meta Vens
a2194c5afa Add Muninn media parity shards 2026-06-19 19:50:55 +01:00
Meta Vens
1e2bcd45cf Expose Muninn RUDP stream budgets 2026-06-19 16:24:41 +01:00
Meta Vens
f77d00be6e Tune Muninn RUDP media for LAN quality 2026-06-19 01:53:04 +01:00
Meta Vens
9d95810dfb Add chunk-level Muninn media feedback 2026-06-18 16:45:45 +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
ce62450fd3 Publish Muninn Move identity records 2026-06-17 03:22:40 +01:00
Meta Vens
b3a9260d6b Promote Idunn swarm deployment ownership 2026-06-16 23:44:37 +01:00
Meta Vens
d26f0c5412 Publish Muninn provider witness records 2026-06-16 21:45:52 +01:00
Meta Vens
00aef68402 Expose Idunn swarm surgery plan state 2026-06-15 23:36:52 +01:00
Meta Vens
7a8ad9fcd0 Prefer daemon-published RUDP health 2026-06-15 23:12:39 +01:00
Meta Vens
55309df767 Add Idunn RUDP health ingress 2026-06-15 22:50:43 +01:00
Meta Vens
a754db74c7 Publish Idunn RUDP runtime self-check 2026-06-15 22:35:00 +01:00
Meta Vens
5a4f04707c Expose Idunn transport command boundaries 2026-06-15 22:04:53 +01:00