diff --git a/README.md b/README.md index 4eb7220..2100091 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ The first Rust core lives in `crates/odin-core` and already separates typed documents, ingest ports, normalization, and repository persistence so unit tests can use mocked inputs and pipeline smokes can prove typed handoff without booting the whole daemon. Gjallar is not part of that Rust record spine: it is -the Nightwing-resident terminal compositor in `E:\Projects\Gjallar` that -consumes Odin's accepted `gamecult.eve.surface_state` snapshot over CultNet/RUDP -and renders the live display. +the Yggdrasil-resident C# composition daemon in `F:\Projects\Gjallar`. It +consumes Odin's accepted provider snapshot and publishes one tiled +`gjallar.overview` Eve surface for GUI, TUI, and agent lowerers. ## Typed access discovery @@ -44,18 +44,16 @@ register every private Ghostlight receipt, transition, or simulation schema. ## Gjallar -Gjallar is the herald display daemon that runs on Nightwing. Odin sees the -Verses, accepts provider surfaces, and publishes the `odin.providers` catalog. -Gjallar consumes Odin's accepted surface snapshot over CultNet/RUDP, composes -the multi-scale tiled dashboard from that typed state, lowers Odin's canonical -marquee tape into continuous gutter text, owns dense character-level update -behavior, and writes the visible framebuffer. +Gjallar is the herald composition daemon that runs beside Odin and Idunn on +Yggdrasil. Odin sees the Verses and accepts provider surfaces. Gjallar consumes +that accepted snapshot and publishes one multi-scale tiled Eve surface. Eve +clients—including EveCanvas—own graphical and TUI lowering. Local package surfaces: - Organ contract: `docs/gjallar.md` - Branding Persona state: `personas/gjallar.persona_state.cc` -- Runtime source: `E:\Projects\Gjallar` +- Runtime source: `F:\Projects\Gjallar` - Avatar asset: `assets/personas/gjallar-avatar.png` - Pixel avatar: `assets/personas/gjallar-avatar-pixel-256.png` @@ -117,7 +115,7 @@ Local package surfaces: - Outputs: CultCache-backed Odin state, CultMesh documents, and CultNet schema/catalog messages. Browser, GUI, TUI, and framebuffer renderers lower those documents outside Odin instead of asking Odin to host web surfaces. -- Derived state: Gjallar's attached Nightwing display, browser dashboards, and future Eve clients are projections of Odin state and provider-owned Eve/CultUI surfaces. +- Derived state: Gjallar's aggregate surface is derived from Odin/provider state; Eve clients derive pixels from that aggregate. - Forbidden writers: renderers do not probe the network or decide Verse truth; individual projects do not maintain private incompatible discovery ledgers once Odin can see them. - Shared paths: human dashboards, worker schedulers, Verse bootstrap code, and compact TUI views consume the same registry and schema catalog. - Deletion line: old per-host coordinator scripts should be deleted or reduced to deployment wrappers that start Odin. diff --git a/crates/idunn-daemon/src/main.rs b/crates/idunn-daemon/src/main.rs index d28b794..6a6ba0a 100644 --- a/crates/idunn-daemon/src/main.rs +++ b/crates/idunn-daemon/src/main.rs @@ -4862,10 +4862,10 @@ fn daemon_transport_profile( "partial-rudp-health-and-provider-store-live", "VoidBot stack health is published over CultNet/RUDP from the local orchestrator pulse, and the daemon-owned CultMesh witness store at E:\\Projects\\VoidBot\\.voidbot\\status\\cultmesh\\voidbot-swarm-state.cc carries provider advertisement catalog, provider advertisement, command_boundary, and transport_profile records. The operations probe is a debug witness only.", ), - "nightwing-gjallar" => ( - "daemon-published-rudp-health + daemon-owned-cultcache-service-boundary + native-odin-cultnet-rudp-snapshot-input", + "yggdrasil-gjallar" => ( + "daemon-published-rudp-health + daemon-owned-cultcache-aggregate-surface + local-odin-cultnet-rudp-snapshot-input", "partial-rudp-health-and-provider-store-live", - "Gjallar framebuffer composition health is published over CultNet/RUDP from Nightwing, the daemon-owned boundary store at /var/lib/gamecult/gjallar/cultcache/gjallar.service.cc carries provider advertisement, runtime_config, frame_status, gamecult.eve.surface_state, command_boundary, transport_profile, and daemon-health summary state, and live composition consumes Odin's accepted surface:gamecult.network.status snapshot over CultNet/RUDP. The service/status probe is a debug witness only.", + "Gjallar composition health and its typed aggregate Eve surface are published from Yggdrasil beside Odin. The daemon owns tiling and aggregation; clients own pixel lowering, and no framebuffer is opened by the daemon.", ), "nightwing-eve-dashboard" => ( "daemon-published-rudp-health + daemon-owned-cultmesh-state + daemon-owned-cultcache-boundary-store", @@ -5024,26 +5024,25 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu "Make Odin ingest RUDP provider advertisements directly into its accepted service/catalog surface." .to_string(); } - "nightwing-gjallar" => { + "yggdrasil-gjallar" => { status = "partial-rudp-health-and-provider-store-live"; severity = "critical"; - owner = "Gjallar C# runtime plus Odin accepted snapshot surface"; + owner = "Gjallar Yggdrasil composition runtime plus Odin accepted snapshot surface"; current_mechanism = - "Nightwing Gjallar publishes gjallar.cultnet-rudp-framebuffer-composition-health over CultNet/RUDP from the C# runtime, the daemon-owned boundary store at /var/lib/gamecult/gjallar/cultcache/gjallar.service.cc now contains provider advertisement, gamecult.eve.surface_state, runtime_config, frame_status, command_boundary, transport_profile, and daemon-health summary records, and the live compositor polls Odin's accepted surface:gamecult.network.status snapshot over a configured cultnet.transport.rudp.v0 endpoint. Live Odin ingests that witness store without advertising a deck bridge as transport authority." + "Gjallar runs headless beside Odin and Idunn on Yggdrasil, consumes Odin's accepted provider snapshot, and publishes one typed aggregate Eve surface plus composition health without opening a framebuffer." .to_string(); intended_authority = - "Gjallar consumes Odin's accepted provider surface snapshot over CultNet/RUDP and publishes framebuffer composition health, provider advertisement, provider-owned Eve surface, runtime config, command boundary, and transport profile as typed CultMesh/CultNet state." + "Gjallar consumes Odin's accepted provider surface snapshot and publishes the composed aggregate, provider advertisement, runtime config, command boundary, transport profile, and health as typed CultMesh/CultNet state. Eve clients own graphical lowering." .to_string(); cut_line = - "Keep the service/status probe as a debug witness only; the daemon-owned witness now owns provider advertisement, gamecult.eve.surface_state, command_boundary, and transport_profile truth, live input now comes from Odin's accepted CultNet/RUDP snapshot surface through the configured Gjallar Odin endpoint, and live Gjallar daemon health now keys off snapshot freshness through receive.status, lastAttemptStatus, lastSuccessfulAtUtc, staleAfterSeconds, and consecutiveFailures so retained panels cannot masquerade as healthy after input goes stale." + "Retire the Nightwing service and framebuffer actuator. Keep one Yggdrasil daemon publishing the aggregate tree and freshness health; clients lower that tree without becoming aggregation owners." .to_string(); steps = vec![ - "Keep live gjallar.cultnet-rudp-framebuffer-composition-health publication running from Nightwing's Gjallar service.".to_string(), - "Keep Gjallar's daemon-owned boundary store at /var/lib/gamecult/gjallar/cultcache/gjallar.service.cc publishing provider advertisement, gamecult.eve.surface_state, runtime_config, frame_status, command_boundary, transport_profile, and daemon-health summary records.".to_string(), - "Keep the native C# CultNet/RUDP snapshot polling path pointed at Odin's accepted surface:gamecult.network.status surface through the configured Gjallar Odin endpoint; no baked Starfire LAN endpoint is allowed.".to_string(), - "Keep Gjallar's receive-freshness daemon health live on Nightwing so daemon-published health degrades when Odin snapshot success goes stale instead of keying only off rendered frames.".to_string(), - "Keep Gjallar renderer output derived from the daemon-owned CultMesh/Eve witness; do not advertise a deck bridge as service input or discovery authority.".to_string(), - "Keep the .ps1 lifecycle bodies as explicit witness/restart bodies and keep health .cmd wrappers archived so they cannot masquerade as Idunn health truth.".to_string(), + "Run Gjallar as yggdrasil-gjallar beside Odin and Idunn with its framebuffer backend disabled.".to_string(), + "Publish the full gjallar.overview Eve surface and daemon-owned boundary records from /var/lib/gamecult/gjallar/gjallar.service.cc.".to_string(), + "Keep the local CultNet/RUDP snapshot input pointed at Odin's accepted surface:gamecult.network.status.".to_string(), + "Key daemon health to snapshot and aggregate publication freshness rather than rendered frames.".to_string(), + "Retire the Nightwing deployment target and stop its gjallar.service before admitting the Yggdrasil body.".to_string(), ]; } "raven-sleipnir" => { @@ -5575,6 +5574,33 @@ fn swarm_targets(options: &SwarmOptions) -> Result> { enabled: true, interval_seconds: 300, }, + DaemonTarget { + daemon_id: "yggdrasil-gjallar".to_string(), + verse_id: "yggdrasil.local".to_string(), + name: "Yggdrasil Gjallar Eve surface compositor".to_string(), + health_contract: locally_supervised_health_contract( + "gjallar.cultnet-rudp-composition-health", + "dependency-unavailable", + ), + deploy_command: Some(yggdrasil_actuator("deploy", "gjallar")), + restart_command: Some(yggdrasil_actuator("restart", "gjallar")), + release: Some(with_source_change_pathspecs( + with_deployed_revision_witness( + release_target_on_branch( + "Gjallar", + PathBuf::from("/srv/build/Gjallar"), + "codex/yggdrasil-aggregate-daemon", + "restart-after-verified-build", + None, + "restart-required", + ), + PathBuf::from("/srv/gjallar/deploy/deployment.env"), + ), + DEPLOYABLE_SOURCE_PATHS, + )), + enabled: true, + interval_seconds: 30, + }, ]), "starfire-local" => Ok(vec![ DaemonTarget { @@ -5756,26 +5782,6 @@ fn swarm_targets(options: &SwarmOptions) -> Result> { enabled: true, interval_seconds: 300, }, - DaemonTarget { - daemon_id: "nightwing-gjallar".to_string(), - verse_id: "nightwing.local".to_string(), - name: "Nightwing Gjallar framebuffer compositor".to_string(), - health_contract: health_contract( - "gjallar.cultnet-rudp-framebuffer-composition-health", - "dependency-unavailable", - ), - deploy_command: Some(script("deploy-nightwing-gjallar.ps1")), - restart_command: Some(script("restart-nightwing-gjallar.ps1")), - release: Some(release_target( - "Gjallar", - project("Gjallar"), - "restart-after-verified-build", - None, - "restart-required", - )), - enabled: true, - interval_seconds: 30, - }, DaemonTarget { daemon_id: "nightwing-muninn".to_string(), verse_id: "nightwing.local".to_string(), @@ -7658,16 +7664,13 @@ mod tests { enabled: true, interval_seconds: 60, }; - let nightwing_gjallar = DaemonTarget { - daemon_id: "nightwing-gjallar".to_string(), - verse_id: "nightwing.local".to_string(), - name: "Nightwing Gjallar framebuffer compositor".to_string(), - health_contract: health_contract( - "gjallar.cultnet-rudp-framebuffer-composition-health", - "failed", - ), - deploy_command: Some("deploy-nightwing-gjallar.ps1".to_string()), - restart_command: Some("restart-nightwing-gjallar.ps1".to_string()), + let yggdrasil_gjallar = DaemonTarget { + daemon_id: "yggdrasil-gjallar".to_string(), + verse_id: "yggdrasil.local".to_string(), + name: "Yggdrasil Gjallar Eve surface compositor".to_string(), + health_contract: health_contract("gjallar.cultnet-rudp-composition-health", "failed"), + deploy_command: Some("idunn-yggdrasil deploy gjallar".to_string()), + restart_command: Some("idunn-yggdrasil restart gjallar".to_string()), release: None, enabled: true, interval_seconds: 30, @@ -7777,7 +7780,7 @@ mod tests { stonks, weksa.clone(), voidbot.clone(), - nightwing_gjallar.clone(), + yggdrasil_gjallar.clone(), starfire_muninn.clone(), nightwing_muninn.clone(), raven_muninn.clone(), @@ -8065,7 +8068,7 @@ mod tests { .contains("operations probe as a debug witness") ); - let gjallar_plan = daemon_surgery_plan(&nightwing_gjallar, "unix:100"); + let gjallar_plan = daemon_surgery_plan(&yggdrasil_gjallar, "unix:100"); assert_eq!( gjallar_plan.status, "partial-rudp-health-and-provider-store-live" @@ -8073,13 +8076,17 @@ mod tests { assert!( gjallar_plan .current_mechanism - .contains("gjallar.cultnet-rudp-framebuffer-composition-health") + .contains("runs headless beside Odin and Idunn") + ); + assert!( + gjallar_plan + .cut_line + .contains("Retire the Nightwing service") ); - assert!(gjallar_plan.cut_line.contains("gamecult.eve.surface_state")); assert!( gjallar_plan .current_mechanism - .contains("surface:gamecult.network.status") + .contains("accepted provider snapshot") ); let nightwing_eve_dashboard_plan = @@ -8393,7 +8400,7 @@ mod tests { actuator.contains("bifrost-persona-feedback) target_requires_bifrost_authority=true") ); assert!(actuator.contains( - "epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight) target_requires_bifrost_authority=false" + "epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight|gjallar) target_requires_bifrost_authority=false" )); assert!( actuator @@ -8451,6 +8458,14 @@ mod tests { "heimdall", false, ), + ( + "yggdrasil-gjallar", + "Gjallar", + "codex/yggdrasil-aggregate-daemon", + "/srv/gjallar/deploy/deployment.env", + "gjallar", + true, + ), ] { let target = targets .iter() @@ -8484,6 +8499,8 @@ mod tests { assert!(actuator.contains("deploy:ghostlight|restart:ghostlight")); assert!(actuator.contains("restart:heimdall")); assert!(actuator.contains("deploy:heimdall")); + assert!(actuator.contains("restart:gjallar")); + assert!(actuator.contains("deploy:gjallar")); } struct FakeReleaseStatePort { @@ -9301,15 +9318,12 @@ mod tests { #[test] fn gjallar_transport_profile_marks_partial_rudp_health() { let gjallar = DaemonTarget { - daemon_id: "nightwing-gjallar".to_string(), - verse_id: "nightwing.local".to_string(), - name: "Nightwing Gjallar framebuffer compositor".to_string(), - health_contract: health_contract( - "gjallar.cultnet-rudp-framebuffer-composition-health", - "failed", - ), - deploy_command: Some("deploy-nightwing-gjallar.ps1".to_string()), - restart_command: Some("restart-nightwing-gjallar.ps1".to_string()), + daemon_id: "yggdrasil-gjallar".to_string(), + verse_id: "yggdrasil.local".to_string(), + name: "Yggdrasil Gjallar Eve surface compositor".to_string(), + health_contract: health_contract("gjallar.cultnet-rudp-composition-health", "failed"), + deploy_command: Some("idunn-yggdrasil deploy gjallar".to_string()), + restart_command: Some("idunn-yggdrasil restart gjallar".to_string()), release: None, enabled: true, interval_seconds: 30, @@ -9320,14 +9334,10 @@ mod tests { assert_eq!(profile.state, "partial-rudp-health-and-provider-store-live"); assert_eq!( profile.current_transport, - "daemon-published-rudp-health + daemon-owned-cultcache-service-boundary + native-odin-cultnet-rudp-snapshot-input" + "daemon-published-rudp-health + daemon-owned-cultcache-aggregate-surface + local-odin-cultnet-rudp-snapshot-input" ); - assert!( - profile - .cut_line - .contains("Gjallar framebuffer composition health is published over CultNet/RUDP") - ); - assert!(profile.cut_line.contains("surface:gamecult.network.status")); + assert!(profile.cut_line.contains("typed aggregate Eve surface")); + assert!(profile.cut_line.contains("no framebuffer")); } #[test] diff --git a/docs/architecture.md b/docs/architecture.md index 0b2a43d..c5f9391 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -33,7 +33,7 @@ Verse / host / device / provider inputs -> CultCache .cc persistence -> CultNet/CultMesh document registry -> Odin Eve/CultUI deck projection - -> Gjallar Nightwing composition and framebuffer lowering + -> Gjallar Yggdrasil aggregate Eve composition -> compact display feeds ``` @@ -87,14 +87,12 @@ schema from overwriting another in the shared catalog. Odin returns the redacted route metadata; it does not proxy private auth operations or own any claim, completion, token, or app secret. -Gjallar is the Nightwing-resident terminal compositor for what Odin can show. -Its runtime lives in `E:\Projects\Gjallar` and consumes Odin's accepted -provider-state snapshot over CultNet/RUDP. -Odin owns canonical marquee content; Gjallar owns provider enumeration for -display, panel packing, marquee lowering, glyph/color/framebuffer lowering, -frame stats, and the multi-scale terminal product. It must not own the -underlying registry, probe, provider truth, canonical marquee content, or -translation decisions. +Gjallar is the Yggdrasil-resident aggregate compositor for what Odin can show. +Its runtime lives in `/srv/gjallar/current` and consumes Odin's accepted +provider-state snapshot. Gjallar owns enumeration, tiling, and publication of +the typed `gjallar.overview` Eve surface. Eve clients own graphical, terminal, +and framebuffer lowering. Gjallar must not own the underlying registry, probe, +provider truth, client pixels, or translation decisions. Idunn is the named keepalive organ for daemon continuity. Its current Rust body lives in `crates/idunn-daemon` and `crates/odin-core/src/idunn.rs`. Idunn may read @@ -229,11 +227,11 @@ Odin currently publishes service squares for: StreamPixels, Heimdall, Repixelizer, and Bifrost systemd state until those daemon surfaces publish health and command boundaries over CultNet RUDP. -Gjallar consumes Odin's accepted CultMesh/Eve state and composes these surfaces -into the Nightwing display. Nightwing is the host/body; Gjallar is the terminal product running -there. If Odin starts deciding framebuffer composition, the renderer owner has -leaked upward. If individual providers start tuning themselves for Nightwing -instead of emitting clean Eve/CultUI surfaces, provider truth has leaked +Gjallar consumes Odin's accepted CultMesh/Eve state and composes every visible +provider surface into one typed aggregate on Yggdrasil. EveCanvas, browser, and +TUI clients lower that aggregate. If Odin starts deciding tile composition, the +composition owner has leaked upward. If providers tune themselves for one +client instead of emitting clean Eve/CultUI surfaces, provider truth has leaked downward. ## Current Interface Surface diff --git a/docs/gjallar.md b/docs/gjallar.md index 369c979..969c735 100644 --- a/docs/gjallar.md +++ b/docs/gjallar.md @@ -1,85 +1,61 @@ # Gjallar -Gjallar is the Nightwing-resident terminal compositor for Odin's domain. +Gjallar is the Yggdrasil-resident aggregate compositor for Odin's domain. -Odin is the all-seer: it accepts Verse discovery, schema catalogs, translation -routes, provider surfaces, and observation projections. Gjallar talks to Odin, -enumerates the active provider surfaces Odin can show, and composes those -surfaces into the live multi-scale dashboard running on Nightwing. - -Gjallar exists so Odin does not need to care how a pile of provider-owned TUIs -fits on one fast display, and provider daemons do not need to know the terminal -body they are being lowered into. +Odin accepts Verse discovery and provider-owned Eve surfaces. Gjallar consumes +that accepted snapshot and publishes one typed `gjallar.overview` composition +containing every currently visible provider surface. EveCanvas, browsers, TUI +clients, and agent readers lower the same aggregate without becoming its owner. ## Authority Map -- Owner: Gjallar owns Nightwing dashboard composition, tiling, marquee lowering, - visual density, framebuffer presentation, and character-level refresh - behavior. -- Inputs: Odin's accepted CultMesh/CultNet snapshot, provider ids, - provider-owned surface graphs, Odin's canonical marquee tape, display - constraints, font choices, and operator runtime flags. -- Outputs: the visible Nightwing framebuffer and compact Gjallar frame/status - telemetry. -- Derived state: panel packing, visual weight, tile position, gutter cells, - marquee glyph positions, glyph size, and frame timing are derived from - Odin/provider surfaces plus display constraints. -- Forbidden writers: Gjallar does not probe hosts, accept Verse truth, mutate - provider-owned dashboards, invent schema translation routes, or replace Odin's - provider registry. -- Shared paths: Nightwing's physical display, local frame dumps, future compact - overlays, and agent-facing TUI captures should all lower the same Gjallar - composition behavior when they want the "everything Odin can show" view. -- Deletion line: the old Rust `gjallar.overview` feed is not a runtime - authority. Any path that wants Nightwing composition belongs in - `E:\Projects\Gjallar`; any path that decides discovery truth belongs in Odin. +- Owner: Gjallar owns aggregate membership, tiling, marquee placement, layout + intent, visibility, and composition versioning. +- Inputs: Odin's accepted CultMesh/CultNet snapshot, provider-owned surface + graphs, Odin's canonical marquee tape, and display-independent layout hints. +- Outputs: `gjallar.overview`, its CultCache/CultMesh/CultNet publication, and + compact composition/freshness telemetry. +- Derived state: panel weights, ordering, tile layout, unavailable presentation, + and aggregate version are derived from Odin/provider state. +- Forbidden writers: Gjallar does not probe hosts, accept discovery truth, + mutate provider state, open `/dev/fb0` in daemon mode, capture client input, + or decide client pixels. Eve clients do not decide aggregate membership. +- Shared paths: iOS/UIKit, browser, optional TUI/framebuffer, and agent capture + lower the same published overview. +- Deletion line: Nightwing's `gjallar.service`, framebuffer lifecycle target, + and `nightwing-gjallar` Idunn actuator are obsolete authorities and must not + survive Yggdrasil admission. ## Body -- `E:\Projects\Gjallar` is Gjallar's executable C# runtime repo. -- `Gjallar.csproj` builds the Nightwing framebuffer compositor. -- Gjallar consumes Odin's accepted provider/interface state through the CultNet - RUDP snapshot input. Browser-deck routes are not Gjallar input truth. -- The old Rust `crates/gjallar-daemon` and `gjallar.overview` records were cut - because they created an intermediate composition owner that did nothing Odin - and Gjallar's live renderer could not explain directly. -- `assets/personas/gjallar-avatar.png` and - `assets/personas/gjallar-avatar-pixel-256.png` remain branding assets for the - view/persona surface. - -Build from the repo root: - -```powershell -dotnet build E:\Projects\Gjallar\src\Gjallar\Gjallar.csproj -``` - -Publish for Nightwing: - -```powershell -dotnet publish E:\Projects\Gjallar\src\Gjallar\Gjallar.csproj -c Release -r linux-x64 --self-contained true -o E:\Projects\Gjallar\scratch\publish\gjallar -``` +- Runtime source: `F:\Projects\Gjallar` / `GameCult/Gjallar`. +- Daemon host: Yggdrasil beside `odin.service` and + `idunn-yggdrasil.service`. +- Unit: `gjallar-yggdrasil.service`. +- Runtime mode: `--headless`; no framebuffer, font atlas, or mouse device is + opened. +- Input: Yggdrasil-local Odin accepted snapshot over CultNet/RUDP. +- State: `/var/lib/gamecult/gjallar/gjallar.service.cc`. +- Deployment: immutable source/dependency pins, a digest-pinned .NET SDK image, + and Idunn's root-owned `gjallar` actuator manifest. ## Runtime Contract ```text -provider-owned Eve/CultUI surfaces - -> Odin discovery and provider catalog/proxy surfaces - -> Odin canonical Stonks/poetry marquee tape - -> Gjallar provider enumeration, packing, marquee lowering, and framebuffer lowering - -> Nightwing visible display +provider-owned Eve surfaces + -> Odin accepted discovery/provider snapshot + -> Gjallar aggregation and tiling + -> typed gjallar.overview Eve surface + -> EveCanvas / browser / TUI / agent lowerers ``` -Nightwing is the host/body. Gjallar is the product that runs there. Odin owns -the accepted discovery/provider view. Each daemon owns its own surface truth. - ## Invariants -- Odin remains the accepted owner of all-seer discovery and provider indexing. -- Gjallar owns display composition, not discovery truth. -- Provider surfaces are lowered, not rewritten into status summaries. -- Marquee content is not provider-boundary status noise. Odin publishes the - canonical tape; Gjallar renders it as one continuous stream across gutter - rows. -- Missing or invalid provider surfaces disappear or render as unavailable; they - do not become invented truth. -- Frame/status telemetry observes Gjallar's rendering behavior only. +- Odin owns discovery and provider acceptance. +- Providers own their surface truth and command consequences. +- Gjallar owns composition, not discovery or pixel rendering. +- Eve clients own rendering and local input capture. +- Missing or invalid provider surfaces become explicit unavailable state or are + omitted; Gjallar never invents replacement truth. +- Daemon health follows accepted-snapshot and aggregate-publication freshness, + not rendered frames. diff --git a/docs/idunn.md b/docs/idunn.md index e1729d4..81eaa79 100644 --- a/docs/idunn.md +++ b/docs/idunn.md @@ -289,19 +289,11 @@ idunn.rudp_health_ingress.v1 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. -- Nightwing Gjallar deployment freshness and visible composition health are now - part of Idunn's ops role. `health-nightwing-gjallar.ps1` verifies - `gjallar.service` liveness, the remote deployment manifest at - `/opt/gamecult/gjallar/gamecult-gjallar-deploy-manifest.txt`. A missing or - stale manifest emits `idunn.health.state=stale-deployment`; Idunn then runs - `deploy-nightwing-gjallar.ps1`, which publishes the committed local Gjallar - revision, writes `gamecult.gjallar.deployment_manifest.v1`, restarts - `gjallar.service`, and leaves deployment request/result records in its - keepalive `.cc`. The same health probe also reads `/var/log/gjallar.status`; - an empty catalog, failed receive loop, stale status witness, or zero composed - provider panels is unhealthy even when the process is alive. Upstream deck - failure emits `idunn.health.state=dependency-unavailable` so Idunn does not - redeploy Gjallar for an Odin/provider input outage. +- 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.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 @@ -405,9 +397,8 @@ 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-framebuffer-composition-health` from the C# Nightwing -framebuffer service. Mimir Eve dashboard publishes +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 diff --git a/scripts/deploy-nightwing-gjallar.cmd b/scripts/deploy-nightwing-gjallar.cmd deleted file mode 100644 index 868160e..0000000 --- a/scripts/deploy-nightwing-gjallar.cmd +++ /dev/null @@ -1,10 +0,0 @@ -@echo off -if not "%IDUNN_ACTUATOR%"=="1" ( - echo This deployment wrapper is an Idunn actuator. Configure Idunn; do not deploy manually. - exit /b 1 -) -if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" ( - echo This deployment wrapper is an Idunn actuator. Configure Idunn; do not deploy manually. - exit /b 1 -) -powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\deploy-nightwing-gjallar.ps1 diff --git a/scripts/deploy-nightwing-gjallar.ps1 b/scripts/deploy-nightwing-gjallar.ps1 deleted file mode 100644 index 31ba835..0000000 --- a/scripts/deploy-nightwing-gjallar.ps1 +++ /dev/null @@ -1,158 +0,0 @@ -param( - [string] $GjallarRoot = "E:\Projects\Gjallar", - [string] $CultLibRoot = "E:\Projects\CultLib", - [string] $CultMathRoot = "E:\Projects\CultMath", - [string] $SshTarget = "nwroot", - [string] $RemoteDir = "/opt/gamecult/gjallar", - [string] $CultCachePath = "/var/lib/gamecult/gjallar/cultcache/gjallar.service.cc", - [string] $OdinCultMeshUri = $(if ($env:GJALLAR_ODIN_CULTMESH_URI) { $env:GJALLAR_ODIN_CULTMESH_URI } elseif ($env:ODIN_CULTMESH_URI) { $env:ODIN_CULTMESH_URI } else { "cultmesh://odin/rendezvous/provider-catalog" }), - [string] $IdunnRudpHealth = $(if ($env:GJALLAR_IDUNN_RUDP_HEALTH) { $env:GJALLAR_IDUNN_RUDP_HEALTH } else { $env:IDUNN_RUDP_HEALTH }), - [string] $IdunnDaemon = "nightwing-gjallar", - [string] $IdunnHealthContract = "gjallar.cultnet-rudp-framebuffer-composition-health", - [string] $UpstreamRemote = "origin", - [string] $UpstreamBranch = "main" -) - -$ErrorActionPreference = "Stop" - -function Remove-ScratchPath { - param( - [string] $ScratchRoot, - [string] $TargetPath - ) - - if (-not (Test-Path -LiteralPath $TargetPath)) { - return - } - - $resolvedScratch = (Resolve-Path -LiteralPath $ScratchRoot).Path - $resolvedTarget = (Resolve-Path -LiteralPath $TargetPath).Path - if (-not $resolvedTarget.StartsWith($resolvedScratch, [StringComparison]::OrdinalIgnoreCase)) { - throw "Refusing to remove scratch path outside scratch root: $resolvedTarget" - } - - Remove-Item -LiteralPath $TargetPath -Recurse -Force -} - -function Export-GitArchive { - param( - [string] $RepoRoot, - [string] $Ref, - [string] $Destination, - [string] $TarPath - ) - - Remove-ScratchPath -ScratchRoot (Split-Path -Parent $Destination) -TargetPath $Destination - New-Item -ItemType Directory -Force -Path $Destination | Out-Null - git -C $RepoRoot archive --format=tar --output=$TarPath $Ref - if ($LASTEXITCODE -ne 0) { - throw "git archive failed for $RepoRoot $Ref" - } - tar -xf $TarPath -C $Destination - if ($LASTEXITCODE -ne 0) { - throw "source extraction failed for $TarPath" - } -} - -if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daemon") { - throw "This deployment script is an Idunn actuator. Agents must configure Idunn release targets and let Idunn run deployment; do not invoke deploy scripts manually." -} -if ($env:GJALLAR_ODIN_CULTNET_RUDP -or $env:ODIN_CULTNET_RUDP) { - throw "GJALLAR_ODIN_CULTNET_RUDP and ODIN_CULTNET_RUDP were removed. Configure GJALLAR_ODIN_CULTMESH_URI or ODIN_CULTMESH_URI with a cultmesh:// Odin route." -} -if ([string]::IsNullOrWhiteSpace($OdinCultMeshUri) -or -not $OdinCultMeshUri.StartsWith("cultmesh://", [StringComparison]::OrdinalIgnoreCase)) { - throw "Odin CultMesh URI must be supplied by GJALLAR_ODIN_CULTMESH_URI, ODIN_CULTMESH_URI, or -OdinCultMeshUri and must start with cultmesh://." -} -if ([string]::IsNullOrWhiteSpace($IdunnRudpHealth)) { - throw "Idunn RUDP health endpoint must be supplied by GJALLAR_IDUNN_RUDP_HEALTH, IDUNN_RUDP_HEALTH, or -IdunnRudpHealth; no WireGuard endpoint default is allowed." -} - -$sourceRef = "$UpstreamRemote/$UpstreamBranch" -$scratchRoot = Join-Path $GjallarRoot "scratch" -$releaseSource = Join-Path $scratchRoot "idunn-release-source" -$cultLibRelease = Join-Path $scratchRoot "CultLib" -$cultMathRelease = Join-Path $scratchRoot "CultMath" -$releaseTarPath = Join-Path $scratchRoot "gjallar-source-release.tar" -$cultLibTarPath = Join-Path $scratchRoot "cultlib-source-release.tar" -$cultMathTarPath = Join-Path $scratchRoot "cultmath-source-release.tar" -$publishDir = Join-Path $scratchRoot "publish\gjallar" -$tarPath = Join-Path $GjallarRoot "scratch\gjallar-publish.tar" -$projectPath = Join-Path $releaseSource "src\Gjallar\Gjallar.csproj" -$manifestPath = Join-Path $publishDir "gamecult-gjallar-deploy-manifest.txt" - -git -C $GjallarRoot fetch --prune $UpstreamRemote $UpstreamBranch -if ($LASTEXITCODE -ne 0) { - throw "git fetch failed for $GjallarRoot $sourceRef" -} - -$commit = (git -C $GjallarRoot rev-parse $sourceRef).Trim() -if ([string]::IsNullOrWhiteSpace($commit)) { - throw "Could not determine Gjallar git revision." -} - -$cultLibCommit = (git -C $CultLibRoot rev-parse HEAD).Trim() -if ([string]::IsNullOrWhiteSpace($cultLibCommit)) { - throw "Could not determine CultLib git revision." -} - -$cultMathCommit = (git -C $CultMathRoot rev-parse HEAD).Trim() -if ([string]::IsNullOrWhiteSpace($cultMathCommit)) { - throw "Could not determine CultMath git revision." -} - -New-Item -ItemType Directory -Force -Path $scratchRoot | Out-Null -Remove-ScratchPath -ScratchRoot $scratchRoot -TargetPath $publishDir -Export-GitArchive -RepoRoot $GjallarRoot -Ref $sourceRef -Destination $releaseSource -TarPath $releaseTarPath -Export-GitArchive -RepoRoot $CultLibRoot -Ref $cultLibCommit -Destination $cultLibRelease -TarPath $cultLibTarPath -Export-GitArchive -RepoRoot $CultMathRoot -Ref $cultMathCommit -Destination $cultMathRelease -TarPath $cultMathTarPath - -dotnet publish $projectPath -c Release -r linux-x64 --self-contained true -o $publishDir -if ($LASTEXITCODE -ne 0) { - throw "dotnet publish failed with exit code $LASTEXITCODE" -} - -$dllPath = Join-Path $publishDir "Gjallar.dll" -$hash = (Get-FileHash $dllPath -Algorithm SHA256).Hash.ToLowerInvariant() -$deployedAt = [DateTimeOffset]::UtcNow.ToString("O") -@( - "schema=gamecult.gjallar.deployment_manifest.v1" - "upstreamRemote=$UpstreamRemote" - "upstreamBranch=$UpstreamBranch" - "sourceRef=$sourceRef" - "gitCommit=$commit" - "cultLibCommit=$cultLibCommit" - "cultMathCommit=$cultMathCommit" - "artifact=Gjallar.dll" - "sha256=$hash" - "deployedAtUtc=$deployedAt" -) | Set-Content -Encoding ASCII -LiteralPath $manifestPath - -tar -cf $tarPath -C $publishDir . -if ($LASTEXITCODE -ne 0) { - throw "tar failed with exit code $LASTEXITCODE" -} - -scp.exe $tarPath "${SshTarget}:/tmp/gjallar-publish.tar" -if ($LASTEXITCODE -ne 0) { - throw "scp failed with exit code $LASTEXITCODE" -} - -$cultCacheDir = if ($CultCachePath.LastIndexOf('/') -gt 0) { $CultCachePath.Substring(0, $CultCachePath.LastIndexOf('/')) } else { "." } -$dropIn = @" -[Service] -Environment=GJALLAR_CULTCACHE_PATH=$CultCachePath -Environment=GJALLAR_ODIN_CULTMESH_URI=$OdinCultMeshUri -Environment=GJALLAR_IDUNN_RUDP_HEALTH=$IdunnRudpHealth -Environment=GJALLAR_IDUNN_DAEMON=$IdunnDaemon -Environment=GJALLAR_IDUNN_HEALTH_CONTRACT=$IdunnHealthContract -"@ -$dropInBase64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($dropIn)) - -ssh.exe $SshTarget "mkdir -p '$RemoteDir' '$cultCacheDir' /etc/systemd/system/gjallar.service.d && tar -xf /tmp/gjallar-publish.tar -C '$RemoteDir' && chmod +x '$RemoteDir/Gjallar' && printf '%s' '$dropInBase64' | base64 -d > /etc/systemd/system/gjallar.service.d/idunn-rudp-health.conf && systemctl daemon-reload && systemctl restart gjallar.service && systemctl is-active --quiet gjallar.service" -if ($LASTEXITCODE -ne 0) { - throw "remote deploy or restart failed with exit code $LASTEXITCODE" -} - -Write-Host "Gjallar deployed to Nightwing." -Write-Host " gitCommit=$commit" -Write-Host " sha256=$hash" diff --git a/scripts/health-nightwing-gjallar.cmd b/scripts/health-nightwing-gjallar.cmd deleted file mode 100644 index 326a7fd..0000000 --- a/scripts/health-nightwing-gjallar.cmd +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -echo health-nightwing-gjallar.cmd archived: Gjallar health is daemon-published over CultNet/RUDP as gjallar.cultnet-rudp-framebuffer-composition-health. Use health-nightwing-gjallar.ps1 only as an explicit witness inspection, not Idunn health truth. -exit /b 2 diff --git a/scripts/health-nightwing-gjallar.ps1 b/scripts/health-nightwing-gjallar.ps1 deleted file mode 100644 index d1c7034..0000000 --- a/scripts/health-nightwing-gjallar.ps1 +++ /dev/null @@ -1,133 +0,0 @@ -param( - [string] $GjallarRoot = "E:\Projects\Gjallar", - [string] $SshTarget = "nightwing", - [string] $RemoteManifest = "/opt/gamecult/gjallar/gamecult-gjallar-deploy-manifest.txt", - [string] $RemoteStatus = "/var/log/gjallar.status", - [string] $RemoteCultCache = "/var/lib/gamecult/gjallar/cultcache/gjallar.service.cc", - [int] $MaxStatusAgeSeconds = 120, - [int] $MinCatalogProviders = 1, - [int] $MinComposedProviders = 1 -) - -$ErrorActionPreference = "Stop" - -function Fail-IdunnHealth { - param( - [string] $State, - [string] $Message - ) - - Write-Output "idunn.health.state=$State" - throw $Message -} - -ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget "systemctl is-active --quiet gjallar.service" -if ($LASTEXITCODE -ne 0) { - Fail-IdunnHealth -State "failed" -Message "gjallar.service is not active on Nightwing." -} - -$localCommit = (git -C $GjallarRoot rev-parse HEAD).Trim() -if ([string]::IsNullOrWhiteSpace($localCommit)) { - throw "Could not determine local Gjallar git revision." -} - -$manifest = ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget "cat '$RemoteManifest' 2>/dev/null" -if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($manifest)) { - Fail-IdunnHealth -State "stale-deployment" -Message "Nightwing Gjallar deploy manifest is missing." -} - -$remoteCommit = "" -foreach ($line in $manifest) { - if ($line -like "gitCommit=*") { - $remoteCommit = $line.Substring("gitCommit=".Length).Trim() - } -} - -if ($remoteCommit -ne $localCommit) { - Fail-IdunnHealth -State "stale-deployment" -Message "Nightwing Gjallar deploy is stale. remote=$remoteCommit local=$localCommit" -} - -$statusJson = ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget "cat '$RemoteStatus' 2>/dev/null" -if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($statusJson)) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness is missing at $RemoteStatus." -} - -$status = $statusJson | ConvertFrom-Json -if ($status.schema -ne "gamecult.gjallar.frame.v1") { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness has unexpected schema '$($status.schema)'." -} - -$updatedAt = [DateTimeOffset]::Parse($status.updatedAtUtc) -$ageSeconds = ([DateTimeOffset]::UtcNow - $updatedAt.ToUniversalTime()).TotalSeconds -if ($ageSeconds -gt $MaxStatusAgeSeconds) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness is stale ($([math]::Round($ageSeconds))s old)." -} - -if ($status.status -ne "rendered") { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar framebuffer status is '$($status.status)', expected rendered." -} - -if ($null -eq $status.cultCacheWitness -or $status.cultCacheWitness.status -ne "published") { - $detail = if ($null -eq $status.cultCacheWitness) { "missing cultCacheWitness status" } else { $status.cultCacheWitness.error } - Fail-IdunnHealth -State "degraded" -Message "Nightwing Gjallar has not published the daemon-owned CultCache witness. $detail" -} - -if ([string]::IsNullOrWhiteSpace([string]$status.receive.lastAttemptStatus)) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness is missing receive.lastAttemptStatus." -} - -if ([string]::IsNullOrWhiteSpace([string]$status.receive.lastSuccessfulAtUtc)) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness is missing receive.lastSuccessfulAtUtc." -} - -if ([int]$status.receive.staleAfterSeconds -le 0) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness has invalid receive.staleAfterSeconds=$($status.receive.staleAfterSeconds)." -} - -if ($null -eq $status.receive.consecutiveFailures) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar status witness is missing receive.consecutiveFailures." -} - -if ($status.receive.status -ne "catalog-composed") { - $detail = $status.receive.error - if ([string]::IsNullOrWhiteSpace($detail)) { - $detail = $status.receive.providerFetchError - } - Fail-IdunnHealth -State "dependency-unavailable" -Message "Nightwing Gjallar receive status is '$($status.receive.status)', expected catalog-composed. $detail" -} - -if ([int]$status.receive.catalogProviders -lt $MinCatalogProviders) { - Fail-IdunnHealth -State "dependency-unavailable" -Message "Nightwing Gjallar catalog is empty: catalogProviders=$($status.receive.catalogProviders), expected at least $MinCatalogProviders." -} - -if ([int]$status.receive.composedProviders -lt $MinComposedProviders) { - Fail-IdunnHealth -State "degraded" -Message "Nightwing Gjallar composed no provider panels: composedProviders=$($status.receive.composedProviders), expected at least $MinComposedProviders." -} - -if ($null -eq $status.idunnRudpHealth -or $status.idunnRudpHealth.status -ne "published") { - $detail = if ($null -eq $status.idunnRudpHealth) { "missing idunnRudpHealth status" } else { $status.idunnRudpHealth.error } - Fail-IdunnHealth -State "degraded" -Message "Nightwing Gjallar has not published daemon-owned Idunn RUDP health. $detail" -} - -$cultCacheStat = ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget "stat -c '%s %Y' '$RemoteCultCache' 2>/dev/null" -if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($cultCacheStat)) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar CultCache witness is missing at $RemoteCultCache." -} - -$cultCacheParts = $cultCacheStat.Trim() -split '\s+' -if ($cultCacheParts.Length -lt 2) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar CultCache witness stat output was malformed: $cultCacheStat" -} - -$cultCacheSize = [int64]$cultCacheParts[0] -$cultCacheModifiedUtc = [DateTimeOffset]::FromUnixTimeSeconds([int64]$cultCacheParts[1]) -$cultCacheAgeSeconds = ([DateTimeOffset]::UtcNow - $cultCacheModifiedUtc).TotalSeconds -if ($cultCacheSize -le 0) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar CultCache witness at $RemoteCultCache is empty." -} - -if ($cultCacheAgeSeconds -gt $MaxStatusAgeSeconds) { - Fail-IdunnHealth -State "failed" -Message "Nightwing Gjallar CultCache witness is stale ($([math]::Round($cultCacheAgeSeconds))s old)." -} - -Write-Host "Nightwing Gjallar is active, deployed at $localCommit, and composing $($status.receive.composedProviders)/$($status.receive.catalogProviders) providers." diff --git a/scripts/idunn-deployment-targets.ps1 b/scripts/idunn-deployment-targets.ps1 index d36ac46..9eb7241 100644 --- a/scripts/idunn-deployment-targets.ps1 +++ b/scripts/idunn-deployment-targets.ps1 @@ -135,24 +135,6 @@ $IdunnDeploymentTargets = @( Aliases = @() Reason = "Central Idunn reaches Raven over SSH and keeps Sleipnir's hidden scheduled task alive while Sleipnir publishes daemon-owned RUDP health." }, - [pscustomobject]@{ - Id = "nightwing-gjallar" - Repo = "Gjallar" - LocalPath = "E:\Projects\Gjallar" - Host = "nightwing" - Service = "gjallar.service" - Status = "enforced" - Health = "daemon-published-rudp:gjallar.cultnet-rudp-framebuffer-composition-health" - Deploy = "$repoRoot\scripts\deploy-nightwing-gjallar.ps1" - Restart = "$repoRoot\scripts\restart-nightwing-gjallar.ps1" - Aliases = @("$repoRoot\scripts\deploy-nightwing-gjallar.cmd", "$repoRoot\scripts\restart-nightwing-gjallar.cmd") - UpstreamRemote = "origin" - UpstreamBranch = "main" - RolloutStrategy = "restart-after-verified-build" - StateMigration = "daemon-owned-noop" - ZeroDowntime = "restart-required" - Reason = "Nightwing framebuffer compositor has a committed artifact manifest and automatic Idunn deploy lane." - }, [pscustomobject]@{ Id = "yggdrasil-voidbot" Repo = "VoidBot" diff --git a/scripts/linux/idunn-yggdrasil b/scripts/linux/idunn-yggdrasil index 3644560..65c7f83 100644 --- a/scripts/linux/idunn-yggdrasil +++ b/scripts/linux/idunn-yggdrasil @@ -20,7 +20,7 @@ compose=/srv/compose/yggdrasil-apps.yaml require_release_lineage() { case "$target" in bifrost-persona-feedback) target_requires_bifrost_authority=true ;; - epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight) target_requires_bifrost_authority=false ;; + epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight|gjallar) target_requires_bifrost_authority=false ;; *) echo "deployment target has no release-authority policy: $target" >&2; exit 1 ;; esac if [ "$requires_bifrost_authority" != "$target_requires_bifrost_authority" ]; then @@ -69,6 +69,9 @@ case "$action:$target" in restart:streampixels) docker compose -f "$compose" restart streampixels-service streampixels-web ;; + restart:gjallar) + exec systemctl restart gjallar-yggdrasil.service + ;; deploy:voidbot|restart:voidbot|deploy:epiphany|restart:epiphany|deploy:odin|restart:odin|deploy:ghostlight|restart:ghostlight) manifest="/srv/odin/deploy-manifests/$target" if [ ! -x "$manifest" ] || [ ! -O "$manifest" ]; then @@ -88,7 +91,7 @@ case "$action:$target" in IDUNN_REQUIRES_BIFROST_AUTHORITY="$requires_bifrost_authority" \ exec "$manifest" "$action" ;; - deploy:heimdall|deploy:repixelizer|deploy:streampixels|deploy:bifrost-persona-feedback) + deploy:heimdall|deploy:repixelizer|deploy:streampixels|deploy:bifrost-persona-feedback|deploy:gjallar) manifest="/srv/odin/deploy-manifests/$target" if [ ! -x "$manifest" ] || [ ! -O "$manifest" ]; then echo "root-owned executable deploy manifest is not installed: $manifest" >&2 diff --git a/scripts/restart-nightwing-gjallar.cmd b/scripts/restart-nightwing-gjallar.cmd deleted file mode 100644 index 625e798..0000000 --- a/scripts/restart-nightwing-gjallar.cmd +++ /dev/null @@ -1,10 +0,0 @@ -@echo off -if not "%IDUNN_ACTUATOR%"=="1" ( - echo restart-nightwing-gjallar.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2 - exit /b 1 -) -if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" ( - echo restart-nightwing-gjallar.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2 - exit /b 1 -) -powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-nightwing-gjallar.ps1 diff --git a/scripts/restart-nightwing-gjallar.ps1 b/scripts/restart-nightwing-gjallar.ps1 deleted file mode 100644 index c71f30e..0000000 --- a/scripts/restart-nightwing-gjallar.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -param( - [string] $SshTarget = "nwroot", - [string] $Service = "gjallar.service" -) - -$ErrorActionPreference = "Stop" - -if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daemon") { - throw "restart-nightwing-gjallar.ps1 is an Idunn actuator body. Redeploy by poking Idunn; direct service restart is not an owned path." -} - -ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget "systemctl restart $Service && systemctl is-active --quiet $Service" -if ($LASTEXITCODE -ne 0) { - throw "Remote restart failed for $Service on $SshTarget with exit code $LASTEXITCODE" -} - -Write-Host "Restarted $Service on $SshTarget."