Simplify Idunn deployment authority contracts

This commit is contained in:
Meta Vens 2026-09-02 21:02:30 +02:00
commit cebe4259ce
5 changed files with 1616 additions and 1674 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@ The architectural test is simple:
- Where and how a workload runs is generic infrastructure work. Use the
configured systemd, container, proxy, or later Nomad/Kubernetes driver.
- Which GameCult incarnation has authority to serve, write state, or represent
an admitted generation is Idunn work.
an admitted workload is Idunn work.
Idunn and Odin are closely integrated but do not share authority. Idunn owns
the admitted physical swarm. Odin owns the discoverable semantic topology of
@ -21,11 +21,11 @@ and health. CultMesh carries typed projections between them.
- **Owner:** Idunn alone selects an exact source, admits its repository recipe
under an operator binding, records the resulting artifact and process
provenance, grants process-bound route and state-write admission, and keeps
the admitted generation alive.
provenance, grants a process-bound state-write lease, separately admits
route membership, and keeps the admitted incarnation alive.
- **Inputs:** root-admitted operator bindings; source-owned strict deployment
declarations; exact Git objects read as the `idunn` identity; signed
deployment or lifecycle-brake state; signed generation-bound service
deployment or lifecycle-brake state; signed incarnation-bound service
presence and health; Odin's observed capability topology when graph changes
require semantic discovery; and observations from the configured workload
and route drivers.
@ -41,12 +41,13 @@ and health. CultMesh carries typed projections between them.
secrets, mounts, network, capabilities, resources, host paths, routes,
placement, source refs, or rollout policy. Odin cannot promote a process or
grant state writes. nginx cannot choose membership. systemd and container
runtimes cannot choose the admitted generation. Service configuration cannot
runtimes cannot choose the admitted incarnation. Service configuration cannot
impersonate observed presence or readiness. Persisted shell strings and
repository-supplied root programs are not executable authority.
- **Shared paths:** `idunn up`, scheduled deployment, manual deployment,
scaling, restart, host reboot recovery, and crash recovery use the same
source-to-recipe-to-artifact provenance and the same admission primitive.
source-to-recipe-to-artifact provenance and the same distinct write-lease and
route-membership primitives.
Deployment may change that chain only while the deployment brake admits the
exact transaction. Continuity may restart only the already-admitted chain and
is governed by a separate lifecycle brake.
@ -57,19 +58,40 @@ and health. CultMesh carries typed projections between them.
decide Ghostlight or CodexConnector deployment before either target is
promoted through this design.
### Current implementation boundary
`deployment.rs` and `deployment_plan.rs` are the deterministic contract
foundation only. They parse one strict source declaration and one root-admitted
operator binding from the exact raw blobs retained by the compiled plan, check
private source-selection facts, derive managed providers from validated Expected
documents, and content-address a sealed release. They do not yet
drive Git, runners, systemd, nginx, brakes, CultCache, CultMesh, or the legacy
Idunn supervisor.
The full operator binding, compiled plan, source facts, and sealed release
are private Idunn control-plane state. They contain host paths and operational
bindings and must never be published as Odin topology. Only the sanitized
`ExpectedIncarnation` projection is shaped for later CultMesh publication. It
is derived only from a sealed release validated against its compiled plan and
names both content addresses and the executable artifact digest. Present and
Ready remain Odin-owned correlations over independently verified runtime
evidence; the deployment-plan module deliberately does not model them.
## The three truths Odin exposes
For each generation, Odin keeps three distinct observations:
For each workload incarnation, Odin keeps three distinct observations:
1. **Expected** — Idunn has admitted or intends this exact generation and has
published its deployment identity, endpoints, declared capabilities, and
dependency role.
2. **Present** — that generation has established its own signed CultNet/CultMesh
runtime session.
3. **Ready** — the observed generation satisfies its signed capability and
1. **Expected** — Idunn has sealed this exact incarnation and has published its
plan and release identities, admitted runtime and signer identities, health
and optional canonical typed-MessagePack state-contract identities,
endpoints, declared capabilities, and dependency role.
2. **Present** — Idunn has published the launch-scoped activation only after its
actuator observed the exact runtime instance, and that instance has
established its own matching signed CultNet/CultMesh runtime session.
3. **Ready** — the observed incarnation satisfies its signed capability and
health contract and its required dependency graph is ready.
Correlation never repairs disagreement. Generation, runtime identity, endpoint,
Correlation never repairs disagreement. Incarnation, runtime identity, endpoint,
schema, capability, and dependency mismatches remain visible and block
promotion. Configuration contributes only expected state; it cannot supply
present or ready state.
@ -87,10 +109,10 @@ The declaration contains no host commands or privileges. It describes:
- schema and target identity;
- requested runner profiles;
- build and test argv executed inside those runners;
- package inputs and immutable artifact outputs;
- pinned generic HTTPS inputs and immutable artifact outputs;
- a constrained launch contract naming the packaged executable, literal
arguments, operator-bound argument slots, and required environment names;
- health, staged-readiness, and state/schema contracts;
- one health contract and, only for stateful services, a state/schema contract;
- capabilities provided, including schema and compatibility information;
- bootstrap, required, optional, shared-infrastructure, private, and external
operator-bound capability dependencies;
@ -101,6 +123,12 @@ Dependencies resolve by typed capability/provider compatibility. A declaration
names a daemon only when identity itself is the contract; ordinary dependencies
must not hard-code a provider instance.
Runtime health uses the shared `warming`, `active`, `degraded`, and `failed`
ontology. A recipe names only its health contract. It cannot redefine those
states, readiness, or operator-facing detail. Bootstrap dependencies must be
available before process start; the remaining dependency kinds retain their
typed intent without making this foundation a scheduler.
The declaration may run repository code only inside a runner sandbox admitted
by the operator binding. It cannot publish a host path, Docker argument,
systemd property, nginx fragment, UID, secret path, or capability grant. Idunn
@ -115,14 +143,19 @@ For one target on one fleet it owns:
- canonical repository origin, admitted ref, and minimum revision;
- exact runner kind, image digest, and affordances for each requested profile;
- source, cache, output, release, state, and runtime roots;
- network mode, allowed dependency egress, mounts, identities, secrets,
- source, cache, output, release, and runtime roots, plus state roots and
transition policy only when the recipe declares state;
- preconfigured runner network profiles, mounts, identities, secrets,
capabilities, resource bounds, and device access;
- workload driver, transient-unit namespace, private endpoint range, and stable
route;
- runtime identity, expected signer identity, and trust-anchor store;
- a process-write-lease record only when the recipe declares process-bound
writable state; its sibling lock path is derived rather than configured;
- route driver and its root-owned configuration destination;
- rollout, drain, irreversible-cut, and retention policy;
- desired replicas and allowed placement;
- one admitted replica on one named node in v1; later placement and scaling are
delegated to an established orchestrator driver;
- externally supplied capability bindings.
A recipe request that has no compatible admitted binding fails closed. A
@ -134,14 +167,19 @@ does not own application build or deployment programs.
## Typed deployment state
Mutable control-plane state is CultCache. The live path uses typed records for:
Mutable control-plane state will be CultCache. Runtime integration must use
typed records for:
- requested service or profile;
- resolved capability graph and exact providers;
- exact source and recipe digest;
- runner binding and artifact digests;
- candidate process, private endpoint, and signed staged health;
- process-bound write lease and route admission;
- full materialization receipts for every pinned external input and artifact;
- candidate runtime identity, private endpoint, and signed runtime health;
- launch-scoped runtime activation, published as current only after workload-
driver observation;
- process-bound write lease;
- independently admitted route membership;
- expected, present, and ready correlation;
- promotion, drain, failure, and continuity results.
@ -153,8 +191,8 @@ migration artifact and declare its accepted source schemas, destination schema,
and literal/operator-bound argv. The operator binding admits the state roots,
backup root, and whether this rollout permits migration or a fresh-root cut.
Idunn alone issues a fenced one-shot migration grant bound to the exact source,
artifact, state generation, and deployment. A target migration never receives
general deployment or lifecycle authority.
artifact, state schema generation, and deployment incarnation. A target
migration never receives general deployment or lifecycle authority.
## Initial drivers and replaceable boundary
@ -165,87 +203,108 @@ The first Yggdrasil implementation uses:
- Docker only for admitted build/test/package runners;
- nginx HTTP proxying for Ghostlight;
- nginx stream proxying for CodexConnector's stable TCP endpoint;
- atomic root-owned files for process/write admission and generated proxy
membership;
- atomic root-owned files for process-bound write leases and separately
generated proxy membership;
- graceful nginx validation and reload for route changes.
Idunn calls narrow workload, route, and admission/fencing driver ports. Those
ports express stage, start, observe, stop, validate route, publish a fenced or
process-bound admission, and promote route. They do not express GameCult
admission decisions. A later Nomad or Kubernetes driver may implement the same
consequences. Idunn must not grow general bin-packing, distributed
scheduling, service-mesh, container-format, cryptography, or consensus logic;
when those become requirements, place Idunn's admission semantics over an
established orchestrator.
Idunn calls narrow workload, route, and write-lease/fencing driver ports. Those
ports express stage, start, observe, stop, validate route, fence an incumbent,
publish a process-bound write lease, and separately promote route membership.
They do not express GameCult admission decisions. A later Nomad or Kubernetes
driver may implement the same consequences. Idunn must not grow general
bin-packing, distributed scheduling, service-mesh, container-format,
cryptography, or consensus logic; when those become requirements, place
Idunn's admission semantics over an established orchestrator.
## Candidate promotion
For a singleton generation:
For a singleton incarnation:
1. Resolve the required capability graph. Reuse a compatible admitted shared
provider, especially Odin, rather than spawning a duplicate.
2. Publish the desired fleet and candidate as expected state.
2. Publish desired fleet intent. Intent is not an Expected incarnation.
3. Freeze the exact source and recipe as `idunn`, then copy and verify it into a
root-owned actuation stage. The privileged driver never opens Git.
4. Build, test, and package inside the bound runners. Seal the artifact, recipe,
unit, and input digests.
5. Start the candidate through the workload driver on a private endpoint. It
has no stable route or canonical write lease.
6. Require its own signed generation-bound `staged` health and signed runtime
presence. Render and validate the proposed route before changing admission.
7. Compare-and-swap the current process/write-admission record into a named
promotion fence. No generation may write while fenced; the incumbent may
remain routed but must return a retryable unavailable result.
8. Publish the candidate backend, gracefully reload the route driver, and
4. Build, test, and package inside the bound runners. Seal the artifact,
declaration, binding, launch contract, and input digests.
5. Derive and publish the release-bound Expected incarnation from the validated
sealed release and its exact compiled plan.
6. Issue one opaque runtime-instance activation bound to the Expected digest,
pass the exact Expected and activation documents through the actuator's
isolated credential mechanism, and start the candidate privately. It has no
stable route or canonical write lease.
7. After the workload driver observes the exact native runtime and executable
artifact, publish that activation as current. Require the candidate's own
signed matching `warming` presence. Render and validate the proposed route
before changing either authority.
8. Open a named promotion transaction and separately fence the incumbent
writer. The incumbent may remain routed but its process-bound write authority
is revoked and it must return a retryable unavailable result.
9. Grant the private candidate its own process-bound write lease. Keep it off
the stable route and wait for signed `active` health and the independently
correlated Ready observation.
10. Publish the candidate backend, gracefully reload the route driver, and
observe that the proxy has adopted it. Proxy lag is explicit transaction
state, not readiness.
9. Compare-and-swap the fence into the candidate's process-bound write grant.
Wait for signed `active` health, then drain and stop the incumbent.
11. Clear the promotion fence only after route adoption is observed, then drain
and stop the incumbent.
The admission record is the one writer lease. A PID, endpoint, symlink, unit,
or route alone never grants writes. Outside the explicit promotion fence, the
write-admitted process and routed generation must agree. Runtimes must bind and
publish staged health without opening canonical writable state; they open or
mutate that state only after the exact process-bound admission becomes current.
The state-write lease and route membership are distinct authorities. Fencing
the incumbent does not grant the candidate or change the route. Granting the
candidate permits that exact private process to write but does not route stable
traffic. Changing the route grants no write authority. The promotion
transaction clears its fence only after the independently observed write and
route authorities name the candidate. A PID, endpoint, symlink, or unit alone
grants neither authority.
Promotion persists crash-resumable phases: planned, materialized, sealed,
candidate-started, staged, fenced, route-observed, write-admitted, active,
draining, and complete. A dead Idunn cannot leave a second writer. Its successor
resumes the exact sealed transaction or restores the prior admitted generation
through the same fence; it never infers completion from a symlink or eventual
health convergence.
activation-issued, candidate-started, activation-observed, warming,
incumbent-fenced, write-lease-granted, ready-observed, route-observed,
fence-cleared, draining, and complete. A dead Idunn cannot leave a second
writer. Its successor resumes the exact sealed transaction or restores the
prior admitted incarnation through the same fence; it never infers completion
from a symlink or eventual health convergence.
An irreversible state cut fails closed after the write lease moves. A reversible
cut may restore the incumbent only through the same admission primitive and
only while its artifact and state contract remain valid.
cut may restore the incumbent only through the same process-write-lease
primitive and only while its artifact and state contract remain valid.
## Continuity and outage behavior
Continuity restarts the exact sealed release, binding, endpoint, and admission
identity. It does not fetch a branch, rebuild, rerun a migration, alter a unit,
or consume the deployment brake. An explicit lifecycle brake may suspend this
actuation without changing deployment authority.
Continuity restarts the exact sealed release, binding, endpoint, runtime
identity, and route membership. Every restart receives a new runtime-instance
activation and, for a state writer, a new process-bound lease only after the new
warming presence is observed. A lease from the dead process is never reused. A
continuity restart does not fetch a branch, rebuild, rerun a migration, alter
the launch contract, or consume the deployment brake. An explicit lifecycle
brake may suspend this actuation without changing deployment authority.
Idunn starts and recovers from its own durable admitted state. Odin is the first
managed semantic daemon, never an Idunn bootstrap dependency. Odin's initial
admission is the sole graph-bootstrap exception: Idunn uses its root-admitted
local binding, publishes Odin's expected projection into durable CultMesh state,
and waits for Odin's own signed presence before admitting dependents.
and waits for Odin's observed activation and signed presence before admitting
dependents.
When Odin is unavailable, Idunn continues health observation and continuity for
already admitted generations and leaves current routes in place. It does not
begin a graph-changing transaction. An already sealed transaction may continue
only from its pinned graph and expected-generation snapshot; once a promotion
fence exists, safety recovery proceeds without waiting for Odin so the fleet is
not stranded with an ambiguous writer. New deployment, dependency substitution,
or scaling waits for semantic discovery. When Odin returns, disagreement is
correlated and exposed before graph-changing work resumes.
already admitted incarnations and leaves current routes in place. It does not
begin a graph-changing transaction, and a merely sealed candidate may not start
promotion. Only a transaction whose incumbent has already been fenced may
promote when its frozen evidence already contains the exact Odin Ready receipt
for this runtime instance and signed-presence digest. Otherwise it waits, rolls
back through the same fence when reversible, or fails closed; Idunn never
manufactures Ready locally. New deployment, dependency
substitution, promotion, or scaling waits for semantic discovery. When Odin
returns, disagreement is correlated and exposed before graph-changing work
resumes.
Source selection is explicit per binding: a pinned object, the captured head of
an admitted ref, or a signed release authorization. Every policy freezes one
exact commit in the plan and proves origin, reachability, recipe digest, and any
minimum floor before build. “Whatever the branch points to when root runs” is
not a selection policy.
an admitted ref, or a signed release authorization. The current deterministic
foundation retains the exact selected commit, tree, recipe blob, and Gitlink
facts, but shape validation is not proof of Git ancestry, signature authority,
or object custody. Those proofs belong to the narrow Idunn-owned source driver
that will produce these private facts. “Whatever the branch points to when root
runs” is not a selection policy.
## Garden path
@ -269,15 +328,19 @@ deployment program.
The first live cut is complete only when tests and host observations prove:
- exact source → recipe → artifact → process provenance;
- an issued but driver-unobserved activation cannot establish Present, and a
prior runtime instance cannot replay presence after restart;
- target requests cannot grant an omitted runner or host affordance;
- old command-bearing records and old target scripts are unexecutable;
- a candidate cannot write or receive the stable route before admission;
- route and write admission name the same generation and process;
- a candidate cannot write before its process-bound lease or receive the stable
route before separate route admission;
- route membership and write leases remain separate records and name the same
incarnation and process before the promotion fence clears;
- expected, present, and ready disagreement blocks promotion and remains
observable;
- replayed or stale signed health cannot satisfy present or ready;
- external operator-bound dependencies still require observed signed presence
and readiness; configuration supplies only expected state;
- external operator-bound dependencies still require their declared observed
health/readiness contract; configuration supplies only expected state;
- a compatible shared Odin is reused and a second provider is not spawned;
- Idunn death during every promotion phase resumes or fails closed without a
second writer;
@ -286,6 +349,7 @@ The first live cut is complete only when tests and host observations prove:
- same-release crash recovery works while the deployment brake is engaged;
- the lifecycle brake can stop continuity without admitting a deployment;
- Odin loss preserves current continuity/routes and blocks graph changes;
- the incumbent remains routed until the candidate is signed-staged;
- the incumbent remains routed until the candidate has signed `active` health
and is correlated Ready;
- the old unit, release, state root, grant, and route cannot regain authority;
- Ghostlight restart preserves the exact world journal and digest identity.

View file

@ -1,495 +1,166 @@
# Idunn
Idunn is Odin's keepalive organ.
Idunn is GameCult's independent deployment-admission and continuity control
plane. It decides which exact workload incarnation may run, write canonical
state, receive traffic, and be kept alive. It does not depend on Odin or any
managed workload in order to start or recover its own durable admitted state.
Odin is the all-seer: it accepts Verse discovery, schema catalogs, translation
routes, provider surfaces, and observation projections. Idunn keeps the daemon
swarm alive from that accepted map. It is not a second Odin, not a dashboard,
and not a heroic supervisor with secret service truth in its pockets.
Systemd, container runtimes, proxies, and a future Nomad or Kubernetes driver
provide generic execution and routing. Idunn owns the GameCult-specific
decision about which source, release, runtime identity, process write lease, and
route membership are authoritative.
Idunn keeps the apples: desired daemon presence, deployment freshness, boot
recovery, crash recovery, health freshness, deploy/restart intent, operator
escalation, and continuity witness state.
The detailed contract is
[`idunn-deployment-authority.md`](idunn-deployment-authority.md).
The current deployment and runtime-admission contract is
[`idunn-deployment-authority.md`](idunn-deployment-authority.md). That contract
owns target recipes, operator bindings, capability-graph admission,
expected/present/ready correlation, candidate promotion, route admission, and
the separation between deployment and continuity. This page describes the
broader keepalive body and its existing state surfaces.
## Authority map
## Authority Map
- **Owner:** Idunn selects exact source facts under root policy, compiles the
repository declaration against an operator binding, seals materialized
inputs and artifacts, admits one runtime incarnation, separately controls its
process-bound write lease and route membership, and preserves its continuity.
- **Inputs:** the exact raw repository declaration and operator-binding blobs;
private source-driver facts; artifact and external-input materialization
receipts; separate deployment and lifecycle brakes; Odin's observed semantic
topology when a graph-changing decision needs discovery; signed runtime
presence and health; Idunn's current observed-activation projection; and
observations from narrow execution and route drivers.
- **Outputs:** private compiled plans and sealed releases; a release-bound
sanitized Expected projection for Odin/CultMesh; one launch-scoped runtime
activation published only after driver observation; process write-lease and
route decisions; continuity actions; and explicit disagreement or failure
records.
- **Derived state:** dashboards, operator summaries, proxy displays, process
listings, and Odin correlation views are projections. They do not establish
deployment, write, route, presence, or readiness authority.
- **Forbidden writers:** repositories cannot grant host privileges, identities,
trust anchors, state roots, write leases, routes, placement, or rollout
policy. Odin cannot deploy, promote, route, or grant writes. Services cannot
configure themselves Present or Ready. Proxies and process managers cannot
select the admitted incarnation. Raw command strings are not deployment
authority.
- **Shared path:** `idunn up`, scheduled deployment, operator deployment,
restart, crash recovery, and host reboot recovery all use the same admitted
source-to-release identity. Continuity may restart only that identity; it
cannot fetch, rebuild, migrate, or silently change configuration.
- Owner: Idunn owns daemon lifecycle management from its root-admitted target
catalog: bring-up after host reboot, deployment freshness, crash
recovery, health watching, deploy/restart policy, and operator escalation.
- Inputs: its admitted target catalog, Odin's accepted service records when
Odin is available, provider advertisements, `.cc`
witnesses, advertised command boundaries, CultNet/RUDP health contracts,
freshness windows, operator policy, local service manager state, and explicit
deployment/debug witnesses that cannot satisfy daemon health.
- Outputs: typed keepalive observations, deployment requests/results, restart
requests/results, release targets, deployment artifacts, state migration
plans/results, rollout plans/results, denied-action records, operator alarms,
Bifrost operator-notification requests, and an Eve/CultUI keepalive surface.
- Derived state: dashboard cells, Bifrost receipts, Discord or owner-DM
lowerings, agent summaries, and Odin service projections are
notification-only views of Idunn-owned keepalive records.
- Forbidden writers: Idunn does not decide which Verses exist, invent provider
schemas, mutate provider dashboards, own identity/session grants, or hide
restarts behind Odin refresh logic. Individual daemons should not carry
independent crash-recovery loops once Idunn owns their lifecycle path; they
publish health, surfaces, state witnesses, and command boundaries instead.
Agents are also forbidden deploy writers: they configure Idunn release
targets, command boundaries, migration commands, and rollout policy, then let
Idunn actuate and witness deployment. They do not run deploy scripts by hand.
Odin is itself an Idunn target; Odin discovery is never a prerequisite for
starting Idunn or recovering Odin.
- Shared paths: manual operator deploy/restart, scheduled deploy/restart,
degraded-health repair, boot rehydration, and future remote worker recovery
must pass through the same Idunn command primitive.
- Consequence gate: Yggdrasil keeps `deployment-brake.cc` and its pre-created
sibling `deployment-brake.cc.lock` in `/var/lib/gamecult/idunn-authority`.
The directory is `root:idunn` `0750`, both files are `root:idunn` `0640`, and
Idunn receives only a systemd `ReadOnlyPaths` view. Idunn validates under a
shared lock before spawning the privileged boundary. The root actuator then
independently reopens and validates the signed brake while remaining the sole
shared-lock holder through one synchronous deploy transaction; the child does
not inherit the lock descriptor. The root-owned operator writer takes the
lock exclusive for engage/release. A bounded release admits the exact target,
rollout request, and source revision only when the transaction starts before
its signed deadline. Admission transfers completion of that transaction to
the actuator; expiry is not a retroactive timer veto. Every later transaction
must independently revalidate the brake.
- Deletion line: any keepalive loop inside Odin, Gjallar, Eve lowerers, or
renderer code must be cut or demoted to a probe that names Idunn as the
restart owner.
## Repository declaration
## Body
A deployable repository publishes one strict declaration, normally
`deployment/idunn/recipe.toml`. It may contain:
Idunn now shares Odin's Rust body:
- literal build, test, and package argv for named runner classes;
- generic pinned HTTPS inputs with SHA-256, runner, and relative destination;
- immutable artifact outputs, optionally pinned to an expected SHA-256;
- a constrained launch contract;
- one health-contract identity;
- an optional typed state contract with state schema generation and slots;
- provided capabilities, dependency kinds, startup requirements, capacity, and
conflicts.
- `crates/odin-core/src/idunn.rs` owns the keepalive decision engine.
- `crates/odin-core/src/documents.rs` publishes typed Idunn CultMesh records
beside Odin and Gjallar records.
- `crates/idunn-daemon` is the local keepalive actuator crate and now owns the
resident Starfire-local swarm scheduler.
- `src/Idunn/README.md` is the user-facing introduction for developers,
operators, and daemon authors.
- `scripts/start-idunn-local.ps1` is now a narrow bootstrap wrapper: it ensures
one `idunn.exe` process is alive, checks the shared keepalive store for
staleness, and lets Rust own the target catalog and per-target scheduling.
- `scripts/deploy-yggdrasil-source-app.ps1` and
`scripts/health-yggdrasil-source-app.ps1` are the generic Yggdrasil source
artifact lane. They fetch the declared upstream branch, package
`origin/main` with `git archive`, run any declared daemon-owned migration
script before the deploy script, run the existing ops-owned deploy/check
scripts on Yggdrasil, and stamp a remote
`gamecult.idunn.deployment_manifest.v1` only after the remote check passes.
- `scripts/idunn-deployment-targets.ps1` is the current swarm deployment target
catalog. Every known deployable target is either `enforced`, `blocked`,
`external-owned`, or `not-runtime` with an explicit reason.
- `scripts/health-idunn-swarm-deployment-coverage.ps1` is the coverage probe
that fails when the target catalog becomes incoherent. The local Idunn
launcher runs it as `idunn-swarm-deployment-coverage` so missing deploy
ownership becomes a watched operational fault.
- `scripts/notify-idunn-operator-alarm.ps1` is the local operator crossing:
Idunn invokes it only after raising an operator alarm, and it asks Bifrost to
publish a typed `gamecult.operator_dm_request.v1` CultMesh command document
instead of learning Discord delivery itself.
- `npm run idunn:build` builds the Rust daemon.
- `npm run idunn:start -- ...` still supports the narrow one-daemon path for
manual use; RUDP health ingress stays disabled unless `--rudp-health-bind` is
supplied.
- `npm run idunn:start -- --swarm-profile starfire-local --repo-root E:\Projects\Odin --execute`
runs the singular local swarm supervisor.
- `--swarm-profile yggdrasil-local` is the Linux host-local supervisor for
Epiphany, Heimdall, Repixelizer, StreamPixels, and VoidBot. Its only command boundary is the
root-owned `/usr/local/libexec/idunn-yggdrasil` actuator. Restart commands
target the local Compose stack. For deployment, the root boundary derives the
repository, ref, daemon id, and release-authority posture from its fixed
target allowlist, then binds the caller's request identifier and source to the
signed root-owned brake. A manifest must be a direct root-owned executable
regular file under `/srv/odin/deploy-manifests`; neither it nor any ancestor
may be group/world-writable, and symlink manifests are refused. It does not
inherit Starfire paths, SSH keys, ADB authority, or Windows process ownership.
- Release authority is explicit per target. Odin, Ghostlight, and Epiphany are
source-observed targets: Idunn derives the newest commit on each admitted ref
that changes build or runtime source, freezes that exact revision into its
typed deployment request, and carries it across the narrow root actuator.
Documentation, notes, state maps, ledgers, scratch state, and root Markdown
do not impersonate a new binary generation. The actuator independently proves
that the frozen commit belongs to the admitted ref, then verifies the exact
embedded commit and deployment witness after activation. Raw branch `HEAD` is
neither release authority nor a second opinion about the selected revision.
- Targets that still require a Bifrost receipt retain that separate gate; their
receipt fields cannot leak into a source-observed request. Bifrost does not
authorize Epiphany releases. Epiphany's admitted
`GameCult/Epiphany` `refs/heads/codex/epiphany-shakedown-live` ref remains a
temporary shakedown boundary; changing it or promoting it to `main` is a
separate source-governance act.
The recipe does not configure runtime health states. GameCult runtime health
uses the shared `warming`, `active`, `degraded`, and `failed` ontology. Present
and Ready are Odin correlations over independently signed runtime evidence, not
recipe fields.
The current typed records are:
Stateless services declare no state block. Their operator binding therefore has
no state root, state-transition policy, or process write-lease record.
## Operator binding
The root-admitted operator binding supplies the physical policy a repository
cannot grant itself:
- source origin, admitted ref, selection policy, checkout, and Gitlink origins;
- pinned runner images, literal-program allowlists, resources, mounts, secrets,
and preconfigured network profiles;
- workload driver, identity, isolation, release root, and runtime root;
- runtime ID, expected signer identity, and trust-anchor store;
- optional state root and state-transition policy;
- an optional process write-lease record exactly when a state slot is
process-bound writable; its sibling `<filename>.lock` path is derived;
- optional route driver and stable/private endpoint binding;
- independent deployment and lifecycle brakes;
- one replica on one admitted node in the v1 foundation.
Route membership is not a write lease. A write lease is not route membership.
Neither may be inferred from a PID, unit, socket, symlink, or health message.
## Deterministic release foundation
The compiled plan retains the exact raw declaration and binding blobs and
parses those exact bytes again during validation. Its content address therefore
covers the real inputs rather than caller-supplied digests beside mutable parsed
copies.
Source-selection facts currently preserve the private driver output: the
exact commit, source tree, recipe blob, admitted ref, and Gitlink tree entries.
The contract does not claim that shape validation proves ancestry, signatures,
or object custody. Those proofs belong to the narrow source driver that will
produce the facts.
A sealed release binds the plan ID to sorted full artifact receipts and sorted
full external-input materialization receipts. Only a sealed release validated
against its exact plan can derive Expected. Expected includes the plan and
release IDs, runtime and signer identities, health contract, node, route,
executable artifact digest, capabilities, selected dependencies, and the
optional canonical state-contract digest computed from the typed
`StateDeclaration` MessagePack encoding.
Expected is stable release and topology intent. Each actuator launch receives a
separate tiny `idunn.runtime_activation.v1` containing the Expected digest and
one Idunn-issued opaque runtime-instance ID. Idunn publishes that activation as
current only after the workload driver observes the matching native process and
artifact. Present requires both that Idunn observation and the service's
independent signed presence; either document alone is insufficient.
Managed dependency candidates are derived from validated Expected documents.
External operator bindings remain expected configuration only; they cannot
impersonate signed presence or readiness.
## Promotion and continuity
For a routed stateful singleton, Idunn starts the candidate privately, observes
the exact actuator launch, publishes its current activation, and observes its
signed warming presence. It then fences the incumbent writer, grants the
candidate its exact process-bound write lease, and waits for signed active
health plus Ready correlation. It changes and observes route membership only
afterward. Only after the proxy has adopted the candidate may Idunn clear the
promotion fence and drain the incumbent.
The deployment brake gates changes to source, release, configuration, schema,
unit, or authority binding. The lifecycle brake separately gates restart of an
already-admitted incarnation. Neither target brake may gate Idunn itself or an
unrelated service.
If Odin is unavailable, Idunn preserves existing routes and continuity for
already-admitted incarnations. It starts no graph-changing deployment or
promotion. A merely sealed candidate waits. An already-fenced transaction may
promote only when its frozen evidence already contains the exact Odin Ready
receipt for this runtime instance and presence digest; otherwise it waits,
rolls back through the same fence when reversible, or fails closed.
## Operator surface
The intended entry points are small:
```text
idunn.desired_daemon.v1
idunn.daemon_health.v1
idunn.signed_health_admission.v1
idunn.keepalive_decision.v1
idunn.deployment_request.v2
idunn.current_deployment_request.v1
idunn.deployment_result.v1
idunn.release_target.v1
idunn.deployment_artifact.v1
idunn.state_migration_plan.v1
idunn.state_migration_result.v1
idunn.rollout_plan.v1
idunn.rollout_result.v1
idunn.restart_request.v1
idunn.restart_result.v1
idunn.operator_alarm.v1
idunn.swarm_surgery_plan.v1
idunn.daemon_surgery_plan.v1
idunn.daemon_transport_profile.v1
idunn.command_boundary.v1
idunn.runtime_transport_check.v1
idunn.rudp_health_ingress.v1
idunn up ghostlight
idunn up profile:aetheria
idunn up profile:full-gamecult
```
## Invariants
Idunn ensures one compatible Odin exists, publishes the desired fleet, resolves
typed capability dependencies, admits candidates, waits for independently
observed presence and readiness, and promotes routes only when the required
graph conditions hold.
- Odin remains the accepted owner of Verse and service discovery.
- Idunn owns continuity decisions after a daemon is known.
- Individual daemons own their work and their health publication, not their
surrounding lifecycle. They must be simple to kill and simple for Idunn to
bring back.
- Providers own their own command boundaries. Idunn requests deployment or
restart through advertised authority or a named local service manager adapter.
- Host reboot recovery, crash recovery, stale deployment recovery,
stale-health recovery, and manual operator deploy/restart must share the same
Idunn command primitive.
- A repair loop is not an owner. If a daemon becomes healthy only after a later
Odin refresh or manual click, Idunn's ownership path is still incomplete.
- Restart attempts must be witnessed: requested by whom, against which service,
through which command boundary, with what result and timestamp.
- Authenticated signed health is bounded current state: Idunn stores one exact
statement per daemon, keyed by daemon id, while the admission carries its
digest and monotonic lineage. Heartbeat publication must replace that trio
atomically; it must not append one store row per pulse. Startup compacts the
former digest-keyed history through a whole-snapshot compare/exchange before
scheduler workers start.
- The keepalive store is current operational authority with bounded diagnostic
history, not an event archive. Idunn retains the latest eight decisions,
alarms, automatic deployment/restart receipts, migration results, and
rollout results per daemon, plus the latest thirty-two operator lifecycle
commands. Exact current deployment heads, their request/result chain, active
health bindings, and recent command-linked receipts are pinned regardless of
age. Startup compacts legacy history atomically; later writes reapply the
same policy before the single-file store can exceed 1 MiB for long.
- Health command exit status is not daemon awareness. Every Idunn
target must declare a daemon-owned CultNet/RUDP health contract naming what
health publication should prove and what unmarked failure means.
`idunn.desired_daemon.v1` and
`idunn.daemon_health.v1` both record that contract so later readers can
distinguish process liveness, source deployment freshness, framebuffer
composition, telemetry capture, and catalog coherence without mistaking a
temporary product/deployment probe for the real protocol surface.
`idunn.daemon_health.v1` also records `publication_source` and `transport` so
daemon-published RUDP health can be verified as daemon-owned transport
evidence.
- `idunn.desired_daemon.v1` links to
`idunn.daemon_transport_profile.v1` and `idunn.command_boundary.v1` records.
The transport profile names the target transport
`cultnet.transport.rudp.v0`, the daemon-owned witness substrate, and the cut
line that keeps old probes demoted. The command boundary names restart,
deploy, health, and alarm authority separately so Idunn can actuate only the
commands it actually owns.
- The Starfire-local shell probes are deployment/debug witnesses, not daemon
truth. A daemon is Idunn-aware when it publishes its health, command boundary,
and transport profile as typed CultNet/CultMesh documents over
`cultnet.transport.rudp.v0`. Product/debug probes are xenos-boundary
diagnostics or deployment checks only.
- Rust now shares the canonical cross-runtime `cultnet.transport.rudp.v0`
substrate in `vendor/cultnet-rs`: CNR0 packets, sessions, channels, reliable
schema frames, and timeout/retry semantics matching the TypeScript/Python
CultLib implementations. This removes "Rust cannot speak RUDP" as a substrate
excuse. It does not make any daemon fully migrated until that daemon publishes
its health and command boundary through the RUDP path and Idunn consumes that
daemon-owned publication.
- Idunn publishes `idunn.runtime_transport_check.v1` at startup. The current
check sends a CultNet hello over loopback `cultnet.transport.rudp.v0` and
records whether the acknowledgement path works in Idunn's own Rust runtime.
This proves Idunn's local substrate, not fleet migration.
- Idunn opens a RUDP health ingress only when `--rudp-health-bind` is supplied
and then publishes `idunn.rudp_health_ingress.v1`. The Starfire local
supervisor binds `0.0.0.0:17870` explicitly so host-local and WireGuard
publishers can use the configured Idunn health endpoint. That ingress
accepts raw `idunn.daemon_health` CultNet document puts and the dedicated
signed Epiphany runtime-health schema on the `schema` channel. Generic health
is observation-only. Epiphany promotion requires the separately persisted
`idunn.signed_health_admission.v1`, an exact latest
`idunn.deployment_request.v2`, a pinned host signature, current matching
health, and a fresh active admission. Each one-shot publisher gets its own RUDP session from its
UDP source address and the session is discarded after a delivered health
frame. Windows UDP `ConnectionReset`/`ConnectionAborted` reports from closed
one-shot clients are nonfatal ingress noise, not a reason to kill the worker.
The ingress does not grant deploy/restart authority; it is the daemon-owned
health publication path Idunn consumes.
- During each target cycle, fresh daemon-published RUDP health is the health
owner. Idunn accepts it only when the daemon id, health contract,
`publication_source=daemon-published`, transport `cultnet.transport.rudp.v0`,
and `max_silence_seconds` freshness window all match. If any of those fail,
Idunn publishes a missing-publication observation on the daemon key and plans
from that typed absence instead of running a local health command.
- Idunn publishes the active swarm transport migration plan as
`idunn.swarm_surgery_plan.v1`. That record names the active profile, owner,
objective, current mechanism, invariants, ordered phases, current phase, next
target, cut line, and verification layer. It is the state-surface answer to
"what surgery is Idunn doing next?" and must be lowered by Nightwing/Gjallar
before any chat summary or dashboard prose claims ownership of the plan.
- Idunn publishes per-target transport migration plans as
`idunn.daemon_surgery_plan.v1` records in the keepalive store. Each daemon
plan names severity, status, owner, objective, current mechanism, intended
CultNet/RUDP authority, cut line, ordered steps, blockers, and update time.
These records are operational state, not documentation garnish: Nightwing,
Gjallar, Odin, and future Eve lowerings should inspect them when projecting
the daemon surgery queue.
- A stale deployment is not restartable liveness. If a target reports
`stale-deployment` without deploy authority, Idunn must alarm instead of
restarting the stale artifact. If a target reports `dependency-unavailable`
or `degraded`, Idunn must alarm instead of treating local deploy/restart as
the owner.
- Daemon-owned health is evaluated before release inspection. A missing Git
checkout, unreachable upstream, or unreadable deployment witness cannot mask
fresh authenticated health and cannot prevent an unhealthy admitted body
from reaching its continuity restart path. Release inspection may refine a
healthy body into `stale-deployment`; it does not own liveness.
- Restarting an already-admitted installed body is continuity physiology and
does not consume deployment-brake authority. Artifact, configuration,
schema, unit, and authority-binding changes remain deployments and must pass
the deployment brake. A separate lifecycle brake is required if operators
need to suspend continuity actuation itself.
- Yggdrasil's `--repo-root` is Idunn-owned state, not Odin's live release.
The hosted profile uses explicit build-repository and root-manifest paths;
Idunn startup and recovery therefore do not read `/srv/odin/current`.
- Idunn should fail closed when authority is unclear. Unknown ownership,
repeated restart failure, missing command authority, or degraded health that
needs a human becomes an operator alarm.
- Operator alarms use CultMesh to request Bifrost-owned operator notification.
Bifrost is the bridge for the crossing and records the receipt. VoidBot's
`voidbot.operator-dm` command `owner.dm.send` with payload schema
`gamecult.operator_dm_request.v1` is a demoted compatibility delivery
actuator, not the owner. The owner-DM command lives in Bifrost's Verse; any
still-VoidBot delivery path must be invoked by Bifrost or documented as
migration debt. Idunn must not learn Discord token handling, DM delivery
internals, or VoidBot-specific transport.
- In the current local bridge, `--operator-alarm-command` invokes
`notify-idunn-operator-alarm.cmd`, which forwards `IDUNN_ALARM_*`
environment variables to `E:\Projects\Bifrost\tools\operator-notification.mjs
publish-idunn-alarm`. Bifrost publishes the typed CultMesh command document;
Idunn only decides that an alarm exists.
- Muninn continuity on Raven is a remote keepalive path. The long-running Raven
`muninn.exe serve` process now carries its own Idunn RUDP identity and
publishes `muninn.cultnet-rudp-remote-telemetry-health` directly; the
`muninn.exe --health` command is an explicit diagnostic publisher, not a
health owner. Idunn still restarts Muninn's idle `serve` posture
when needed. Raven is the host/body; Muninn is the local telemetry Verse
assembler. Idunn must not activate screen/audio streams as part of keepalive.
Raven media activation is a typed Muninn capture command whose target is a
`cultmesh://` URI resolved through Odin. Idunn does not install or run
standalone Raven A/V activation scripts.
- Raven is an operator-consented shared machine. Idunn restart and health
actuators for Raven must be background-only and must not open visible
terminals or interactive windows on that host. The Raven Muninn restart path
uses a hidden WScript/PowerShell trampoline; replacing it with an interactive
console launch violates the ops contract.
- Yggdrasil Gjallar deployment freshness and aggregate composition health are
part of Idunn's ops role. The daemon publishes
`gjallar.cultnet-rudp-composition-health`; Idunn's Yggdrasil actuator admits
immutable releases through the Gjallar deploy manifest and restarts
`gjallar-yggdrasil.service`. Nightwing has no Gjallar deployment or restart authority.
- Swarm-wide deployment ownership means Idunn owns the target catalog and the
freshness contract for the repo swarm. For enforced deploy targets, the
catalog must name upstream remote/branch, rollout strategy, state migration
authority, and whether zero downtime is actually available. Idunn deploys the
desired upstream revision, not arbitrary local developer `HEAD`. It does not
mean Idunn invents deploy authority for every repo immediately. A target
without a safe noninteractive deploy command must remain `blocked` or
`external-owned` with the missing authority named until a wrapper can produce
a deployment manifest and route through Idunn's typed deployment
request/result path.
- State migration is daemon-owned. Idunn may run and witness a declared
migration command before deployment, but the daemon/repo owns schema meaning,
backups, and the migrator. If migration fails, Idunn records
`idunn.state_migration_result.v1`, stops the deployment, records a failed
rollout/deployment result, and alarms instead of trying to repair state
behind the daemon's back.
- Deploy and restart scripts are Idunn actuators, not agent tools. They refuse
to run unless Idunn invokes them with `IDUNN_ACTUATOR=1` and
`IDUNN_COMMAND_AUTHORITY=idunn-daemon`. Agent work is to update the target
catalog, release target, command boundary, migration plan, and daemon
publication surfaces so Idunn can run the shared command primitive.
- Provider-health signer rotation is a root authority transaction over one
existing named trust binding. `idunn-provision
rotate-daemon-health-trust-signer` changes only that binding's public signer,
derived identity, and advancing bind time through a validated CultCache CAS;
daemon, contract, runtime, release policy, and every other binding remain
unchanged.
- Manual lifecycle requests are typed Idunn command records, not direct script
execution. Operators publish `idunn.lifecycle_command.v1` with `idunn restart
--daemon <id>` or `idunn redeploy --daemon <id>`. The running supervisor
claims pending records for its target catalog, writes the corresponding
`idunn.restart_request.v1` or `idunn.deployment_request.v2`, executes through
the same guarded actuator path used by health-driven decisions, and records
the matching result document. If a target lacks restart or deploy authority,
Idunn marks the lifecycle command rejected instead of inventing authority.
- Zero downtime is a declared rollout capability, not a slogan. If a daemon
lacks hot reload, blue/green routing, rolling instances, or another named
in-place swap mechanism, Idunn records `restart-required` and verifies the
restart path honestly.
- Yggdrasil Odin, Heimdall, Ghostlight, repixelizer, and StreamPixels are
enforced through Idunn's source-selected release lane and their existing
`gamecult-ops` actuators. Heimdall and Ghostlight publish exact deployed
revisions in `/srv/heimdall/deploy/deployment.env` and
`/srv/ghostlight/deploy/deployment.env`; documentation-only commits cannot
become desired executable generations.
Odin publishes `idunn.signed_daemon_health.v1` with its root-bound Ed25519
identity. Its immutable release pins both the Odin commit and the exact
CultLib commit, then switches them through one `/srv/odin/current` link.
Ghostlight's Linux runtime and signed-health identity are admitted. Heimdall
publishes its own daemon health and private authentication command listener;
its HTTP and loopback listener probes remain deployment witnesses rather than
release or health authority.
Bifrost is explicitly blocked as of 2026-06-09: committed Bifrost `HEAD`
expects `UserAccounts.HeimdallAccountId`, while Yggdrasil's production
database lacks that column and EF reports no pending migration. Idunn must
not claim Bifrost deployment freshness until Bifrost owns that schema
migration path.
## Current implementation boundary
## Runtime Direction
Idunn's current Rust runtime now has two postures:
1. One-daemon manual mode for focused probes and explicit local testing.
2. One-process swarm mode for the Starfire-local continuity graph.
The local swarm mode owns:
1. the built-in Starfire-local target catalog;
2. a mandatory health contract per target;
3. a typed `idunn.swarm_surgery_plan.v1` record, so Idunn's active migration
order, next target, cut line, and verification layer are explicit state;
4. a typed `idunn.daemon_surgery_plan.v1` record per target, so transport debt
is visible in the same state surface as daemon health;
5. a typed `idunn.daemon_transport_profile.v1` and
`idunn.command_boundary.v1` record per target, so debug probes and local
commands cannot pretend to be daemon-owned CultNet/RUDP truth;
6. a startup `idunn.runtime_transport_check.v1` witness proving Idunn's own
Rust RUDP loopback path;
7. a local `idunn.rudp_health_ingress.v1` listener for daemon-owned RUDP
health publication;
8. one in-process schedule per target instead of one watchdog process per target;
9. shared typed keepalive records in one CultMesh store;
10. deploy/restart/alarm execution through the same Rust decision engine;
11. recovery of fast local targets like Odin without waiting behind slow remote
Yggdrasil checks.
Current plan surface: `idunn.swarm_surgery_plan.v1` for profile
`starfire-local` treats the Muninn Rust lanes, Odin's local provider-health
lane, Stonks daemon health, Weksa daemon health, VoidBot stack health, and
Nightwing Gjallar framebuffer composition health as completed substrate cuts.
Muninn's long-running `serve` bodies now publish
`idunn.daemon_health` over RUDP themselves; Starfire publishes to local Idunn,
while Nightwing and Raven publish to the configured Idunn RUDP health endpoint
using their target daemon ids and health contracts. The Muninn restart and
health wrappers require explicit `-IdunnRudpHealth` or `IDUNN_RUDP_HEALTH`;
there is no baked Starfire LAN default. `muninn --health` is an explicit
diagnostic publisher for the same typed health document, not live ownership.
Odin
publishes `odin.cultnet-rudp-provider-health` after each provider refresh.
Stonks publishes `stonks.cultnet-rudp-market-health` after each serialized
market refresh. Weksa publishes `weksa.cultnet-rudp-provider-health` after each
serialized provider witness refresh. VoidBot publishes
`voidbot.cultnet-rudp-stack-health` after each GameCult Local Orchestrator
pulse. Gjallar publishes `gjallar.cultnet-rudp-composition-health` from the C#
Yggdrasil aggregate compositor. Mimir Eve dashboard publishes
`mimir.cultnet-rudp-provider-health` from the Nightwing systemd broker, and the
same process publishes `nightwing.cultnet-rudp-eve-dashboard-health` for the
Nightwing dashboard service itself. The Nightwing Eve browser reference now runs
as `Mimir.EveBrowserReference`, serving
the same static lowering and publishing
`nightwing.cultnet-rudp-browser-reference-health` from its own service process.
Live Idunn cycles accept these records as health truth; missing or stale
publication becomes typed missing-publication state.
Raven's Muninn scheduled-task repair remains a separate ops invariant:
`GameCult-Muninn` is the only live Muninn scheduled task. Health fails if
obsolete activation or video-proof tasks still exist, and the live Raven
`serve` process must carry its own
`--idunn-rudp-health`, `--idunn-daemon`, and `--idunn-health-contract`
arguments.
Next: keep moving the remaining Yggdrasil deployments off product/deck checks and
continue runtime-by-runtime until debug probes are unable to masquerade as
daemon truth.
Heimdall has now crossed the first live transport line: the Yggdrasil runtime
publishes `heimdall.cultnet-rudp-provider-health`, writes a daemon-owned
boundary witness at `/srv/heimdall/cultcache/heimdall.service.cc`, and the
deploy lane ships the required `CultLib` snapshot beside the app artifact.
Heimdall still owes Odin ingestion of that boundary store plus the later
redacted auth-document witness export, but it is no longer waiting on basic
RUDP keepalive surgery. Weksa now publishes daemon-owned provider
advertisement, operator state, Eve surface, command boundary, and transport
profile records in its provider store, accepts MiMo VoiceDesign commands over
CultNet/RUDP command documents, and records deleted product command lanes as
non-authority. Odin local discovery can ingest those records. The Weksa start
and restart wrappers require explicit `-IdunnRudpHealth` or
`WEKSA_IDUNN_RUDP_HEALTH`; there is no localhost Idunn default. Stonks now
publishes daemon-owned provider advertisement,
market snapshot, Eve surface, command boundary, and transport profile records in
its CultCache store, and Odin local discovery can ingest those records; product
routes are not provider transport. StreamPixels now has a
service-owned CultCache boundary store at
`E:\Projects\StreamPixels\.streampixels-data\cultcache\streampixels.service.cc`
containing provider advertisement, command boundary, transport profile, and an
Idunn health summary, and Odin local discovery can ingest it. The live
Yggdrasil deployment now keeps
`/srv/streampixels/env/service.env` wired for
explicit `STREAMPIXELS_IDUNN_RUDP_HEALTH` with contract
`streampixels.cultnet-rudp-service-health`, publishes the boundary store at
`/srv/streampixels/app/.streampixels-data/cultcache/streampixels.service.cc`,
and has live Idunn acceptance proof for `yggdrasil-streampixels` through the
configured RUDP route. StreamPixels now owes only the final demotion of host
checks to deployment/debug witnesses once Odin consumes the typed store.
Repixelizer now has a daemon-owned Verse runtime witness in
`src/repixelizer/verse_state.py`: the live GUI runtime writes provider
advertisement, Eve surface state, runtime config, auth projection, queue/job
records, command boundary, transport profile, and `idunn.daemon_health` into
the configured `.cc` store, and publishes Idunn RUDP health when
`GC_ACCESS_IDUNN_RUDP_HEALTH` is configured. Repixelizer product web and host
supervisor checks are deployment/debug witnesses;
absent RUDP health is a visible missing-publication state, not fallback truth.
VoidBot, Mimir, and
the Nightwing Eve runtime services still owe provider advertisement and
command-boundary RUDP publication before their renderer surfaces can be derived
from typed state alone. Gjallar consumes Odin's accepted provider-state
snapshot over CultNet/RUDP; Odin no longer hosts a browser-deck lowering bridge
for it to consume. Raven Muninn task action repair is no longer queued: the live
target is the single `GameCult-Muninn` serve task, while obsolete activation and
video-proof tasks are removed and treated as health failures if they return.
Vili's Node daemon now has an in-process Idunn RUDP publisher for
`vili.cultnet-rudp-animation-health`, and local smoke proof shows Idunn accepts
that record over `cultnet.transport.rudp.v0`. Vili also writes
`.vili\vili.service.cc` with daemon-owned provider advertisement, operator
state, Eve surface, command boundary, and transport profile records. Odin local
provider discovery can ingest that typed store, including the Vili command
boundary and transport profile. That is now live Raven proof as well: Odin's
`scripts\restart-vili.ps1` refreshes the Raven runtime from the authoritative
local Vili and CultLib files, reinstalls the hidden `GameCult\Vili` task with
`--idunn-rudp-health` supplied by explicit `-IdunnRudpHealth`,
`VILI_IDUNN_RUDP_HEALTH`, or `IDUNN_RUDP_HEALTH`, and restarts it. Live Idunn
accepts `vili.cultnet-rudp-animation-health` through the configured RUDP route.
No ad hoc JSON manifest, product endpoint, port socket, or browser-deck bridge
may become the live state owner. Debug projections are fine when they name the
`.cc` record, CultNet document, or CultMesh publication behind them.
`crates/idunn-daemon/src/deployment.rs` and `deployment_plan.rs` implement the
deterministic declaration, binding, plan, release, and Expected foundation.
They do not yet drive Git, runners, systemd, proxies, CultCache, CultMesh,
brakes, runtime activations, write leases, or runtime health verification.
Runtime integration must consume these contracts; it must not recreate target
catalogs, raw deployment commands, root Git inspection, or a second admission
opinion.

2
vendor/cultnet-rs vendored

@ -1 +1 @@
Subproject commit 021dca7f3261c9842019f0845b35022455ccf756
Subproject commit 87d0b0f2c829ef2e7defa2bf774f1e3b9cc6a1d0