Ingest StreamPixels service boundary records
This commit is contained in:
parent
9dc6c0afab
commit
030b6098c1
6 changed files with 135 additions and 12 deletions
|
|
@ -948,6 +948,11 @@ fn daemon_transport_profile(
|
|||
"raven-deploy-blocked",
|
||||
"Vili has an in-process CultNet/RUDP Idunn health publisher plus local CultCache provider, operator, command_boundary, and transport_profile records; live Raven deployment and scheduled-task restart are blocked while Raven SSH is unreachable.",
|
||||
),
|
||||
"yggdrasil-streampixels" => (
|
||||
"daemon-owned-cultcache-service-boundary + compatibility.ssh-systemd-http fallback",
|
||||
"provider-store-prepared-rudp-health-required",
|
||||
"StreamPixels service runtime publishes a daemon-owned CultCache boundary with provider advertisement, command_boundary, transport_profile, and Idunn health summary; Yggdrasil SSH/systemd/HTTP checks remain fallback witnesses until the service publishes health over CultNet/RUDP.",
|
||||
),
|
||||
_ => (
|
||||
"compatibility.local-command",
|
||||
"migration-required",
|
||||
|
|
@ -1259,7 +1264,28 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu
|
|||
];
|
||||
}
|
||||
}
|
||||
"yggdrasil-heimdall" | "yggdrasil-repixelizer" | "yggdrasil-streampixels" => {
|
||||
"yggdrasil-streampixels" => {
|
||||
severity = "medium";
|
||||
status = "provider-store-prepared-rudp-health-required";
|
||||
owner = "StreamPixels service runtime plus gamecult-ops deploy lane";
|
||||
current_mechanism =
|
||||
"StreamPixels now publishes a daemon-owned CultCache boundary store with provider advertisement, command_boundary, transport_profile, and Idunn health summary from the service runtime. Yggdrasil deployment freshness is still checked and deployed through SSH/systemd/source-artifact compatibility scripts."
|
||||
.to_string();
|
||||
intended_authority =
|
||||
"StreamPixels publishes service health, provider state, command boundary, and transport profile over cultnet.transport.rudp.v0, with the service-owned CultCache boundary as durable local state and HTTP/SSH/systemd as fallback witnesses."
|
||||
.to_string();
|
||||
cut_line =
|
||||
"Keep the StreamPixels service boundary store; add CultNet/RUDP Idunn health publication from the service process, deploy it on Yggdrasil, then demote SSH/systemd/HTTP checks to deployment/debug witnesses."
|
||||
.to_string();
|
||||
steps = vec![
|
||||
"Keep apps/service/src/verse-state.ts publishing streampixels.service.cc from the StreamPixels service runtime.".to_string(),
|
||||
"Teach Odin to ingest StreamPixels provider advertisement, command_boundary, and transport_profile records from the service-owned CultCache boundary store.".to_string(),
|
||||
"Add StreamPixels Idunn RUDP health publication using contract streampixels.cultnet-rudp-service-health.".to_string(),
|
||||
"Deploy the updated service to Yggdrasil through the source artifact lane and verify the live store/health publication.".to_string(),
|
||||
"Demote health-yggdrasil-streampixels.cmd to deployment/debug witness once RUDP health is live.".to_string(),
|
||||
];
|
||||
}
|
||||
"yggdrasil-heimdall" | "yggdrasil-repixelizer" => {
|
||||
severity = "medium";
|
||||
owner = "Yggdrasil service owner plus gamecult-ops deploy lane";
|
||||
current_mechanism =
|
||||
|
|
@ -2486,6 +2512,37 @@ mod tests {
|
|||
assert!(profile.cut_line.contains("MiMo VoiceDesign"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn streampixels_transport_profile_marks_provider_store_prepared() {
|
||||
let streampixels = DaemonTarget {
|
||||
daemon_id: "yggdrasil-streampixels".to_string(),
|
||||
verse_id: "yggdrasil.local".to_string(),
|
||||
name: "Yggdrasil StreamPixels".to_string(),
|
||||
health_contract: health_contract(
|
||||
"yggdrasil.source-deployment-freshness",
|
||||
"stale-deployment",
|
||||
),
|
||||
health_command: Some("health-yggdrasil-streampixels.cmd".to_string()),
|
||||
deploy_command: Some("deploy-yggdrasil-streampixels.cmd".to_string()),
|
||||
restart_command: None,
|
||||
enabled: true,
|
||||
interval_seconds: 300,
|
||||
};
|
||||
|
||||
let profile = daemon_transport_profile(&streampixels, "unix:100");
|
||||
|
||||
assert_eq!(
|
||||
profile.state,
|
||||
"provider-store-prepared-rudp-health-required"
|
||||
);
|
||||
assert!(
|
||||
profile
|
||||
.current_transport
|
||||
.contains("daemon-owned-cultcache-service-boundary")
|
||||
);
|
||||
assert!(profile.cut_line.contains("CultNet/RUDP"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn voidbot_transport_profile_marks_partial_rudp_health() {
|
||||
let voidbot = DaemonTarget {
|
||||
|
|
|
|||
|
|
@ -301,8 +301,14 @@ document ingress for MiMo VoiceDesign before its HTTP command route can become a
|
|||
debug-only lowering. 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; its
|
||||
HTTP/WebSocket endpoints are renderer/debug lowerings. VoidBot, Gjallar, Mimir,
|
||||
and the Nightwing Eve runtime services still owe provider advertisement and
|
||||
HTTP/WebSocket endpoints are renderer/debug lowerings. 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. StreamPixels still
|
||||
owes real Idunn health publication over CultNet/RUDP and Yggdrasil deployment
|
||||
before its SSH/systemd/HTTP checks can be demoted. VoidBot, Gjallar, Mimir, and
|
||||
the Nightwing Eve runtime services still owe provider advertisement and
|
||||
command-boundary RUDP publication before their compatibility surfaces can be
|
||||
purely display/debug lowerings; Gjallar also owes native CultMesh/RUDP deck
|
||||
input to replace the current Odin WebSocket lowering bridge. Raven Muninn task
|
||||
|
|
|
|||
|
|
@ -206,7 +206,12 @@ document ingress for MiMo VoiceDesign before its HTTP command route can become
|
|||
debug-only. Stonks publishes RUDP health and a daemon-owned CultCache store
|
||||
containing provider advertisement, market snapshot, Eve surface, command
|
||||
boundary, and transport profile records; Odin local discovery can ingest that
|
||||
store as provider truth. Raven Muninn task actions are also an explicit ops
|
||||
store as provider truth. StreamPixels now publishes a service-owned CultCache
|
||||
boundary store with provider advertisement, command boundary, transport profile,
|
||||
and Idunn health summary; Odin local discovery can ingest that store, but
|
||||
StreamPixels still owes CultNet/RUDP health publication and Yggdrasil deployment
|
||||
before SSH/systemd/HTTP probes are only debug witnesses. Raven Muninn task
|
||||
actions are also an explicit ops
|
||||
invariant: Task Scheduler must execute `wscript.exe //B //Nologo` hidden
|
||||
launcher actions directly for `GameCult-Muninn`, `GameCult-Muninn-Activate`,
|
||||
and `GameCult-Muninn-VideoProof`, never raw `.cmd` wrappers. After those live
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ function buildConfig(argv) {
|
|||
path.join(repoRoot, "..", "weksa", ".weksa", "provider-advertisement-store.cc"),
|
||||
path.join(repoRoot, "..", "Vili", ".vili", "vili.service.cc"),
|
||||
path.join(repoRoot, "..", "Stonks", "scratch", "stonks", "stonks-state.cc"),
|
||||
path.join(repoRoot, "..", "StreamPixels", ".streampixels-data", "cultcache", "streampixels.service.cc"),
|
||||
].join(",");
|
||||
const interfaceBindingStores = String(
|
||||
args.interfaceBindingStore ||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,15 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
if (!defineDocumentType) {
|
||||
return {
|
||||
interfaceBindingDefinition: null,
|
||||
idunnDaemonHealthDefinition: null,
|
||||
operatorStateDefinition: null,
|
||||
providerAdvertisementDefinition: null,
|
||||
stonksCommandBoundaryDefinition: null,
|
||||
stonksMarketSnapshotDefinition: null,
|
||||
stonksRequestEventDefinition: null,
|
||||
stonksTransportProfileDefinition: null,
|
||||
streamPixelsCommandBoundaryDefinition: null,
|
||||
streamPixelsTransportProfileDefinition: null,
|
||||
surfaceDefinition: null,
|
||||
viliCommandBoundaryDefinition: null,
|
||||
viliTransportProfileDefinition: null,
|
||||
|
|
@ -53,9 +56,18 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
schemaId: "gamecult.eve.provider_advertisement.v1",
|
||||
schemaVersion: "gamecult.eve.provider_advertisement.v1",
|
||||
global: false,
|
||||
name: (value) => value?.providerId || "provider",
|
||||
name: (value) => value?.providerId || value?.provider?.id || "provider",
|
||||
schema: parseObjectDocument("Eve provider advertisement"),
|
||||
});
|
||||
const idunnDaemonHealthDefinition = defineDocumentType({
|
||||
type: "idunn.daemon_health",
|
||||
schemaName: "idunn.daemon_health",
|
||||
schemaId: "idunn.daemon_health",
|
||||
schemaVersion: "idunn.daemon_health.v1",
|
||||
global: false,
|
||||
name: (value) => value?.daemonId || value?.daemon_id || "daemon",
|
||||
schema: parseObjectDocument("Idunn daemon health"),
|
||||
});
|
||||
const operatorStateDefinition = defineDocumentType({
|
||||
type: "gamecult.vili.operator_state",
|
||||
schemaName: "gamecult.vili.operator_state",
|
||||
|
|
@ -145,6 +157,24 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
name: (value) => value?.profileId || value?.daemonId || "stonks",
|
||||
schema: parseObjectDocument("Stonks transport profile"),
|
||||
});
|
||||
const streamPixelsCommandBoundaryDefinition = defineDocumentType({
|
||||
type: "streampixels.command_boundary",
|
||||
schemaName: "streampixels.command_boundary",
|
||||
schemaId: "streampixels.command_boundary.v1",
|
||||
schemaVersion: "streampixels.command_boundary.v1",
|
||||
global: false,
|
||||
name: (value) => value?.boundaryId || value?.daemonId || "streampixels",
|
||||
schema: parseObjectDocument("StreamPixels command boundary"),
|
||||
});
|
||||
const streamPixelsTransportProfileDefinition = defineDocumentType({
|
||||
type: "streampixels.transport_profile",
|
||||
schemaName: "streampixels.transport_profile",
|
||||
schemaId: "streampixels.transport_profile.v1",
|
||||
schemaVersion: "streampixels.transport_profile.v1",
|
||||
global: false,
|
||||
name: (value) => value?.profileId || value?.daemonId || "streampixels",
|
||||
schema: parseObjectDocument("StreamPixels transport profile"),
|
||||
});
|
||||
const voidbotSwarmSnapshotDefinition = defineDocumentType({
|
||||
type: "voidbot.swarm_state_snapshot",
|
||||
schemaName: "voidbot.swarm_state_snapshot",
|
||||
|
|
@ -156,12 +186,15 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
|
||||
return {
|
||||
interfaceBindingDefinition,
|
||||
idunnDaemonHealthDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
stonksMarketSnapshotDefinition,
|
||||
stonksRequestEventDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
|
|
|
|||
|
|
@ -53,12 +53,15 @@ function createInterfaceDiscovery({
|
|||
async function discoverProviderAdvertisements() {
|
||||
const {
|
||||
interfaceBindingDefinition,
|
||||
idunnDaemonHealthDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
stonksMarketSnapshotDefinition,
|
||||
stonksRequestEventDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
|
|
@ -67,7 +70,7 @@ function createInterfaceDiscovery({
|
|||
weksaTransportProfileDefinition,
|
||||
voidbotSwarmSnapshotDefinition,
|
||||
} = documents;
|
||||
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !stonksCommandBoundaryDefinition || !stonksMarketSnapshotDefinition || !stonksRequestEventDefinition || !stonksTransportProfileDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
if (!CultMesh || !interfaceBindingDefinition || !idunnDaemonHealthDefinition || !operatorStateDefinition || !stonksCommandBoundaryDefinition || !stonksMarketSnapshotDefinition || !stonksRequestEventDefinition || !stonksTransportProfileDefinition || !streamPixelsCommandBoundaryDefinition || !streamPixelsTransportProfileDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
@ -87,6 +90,9 @@ function createInterfaceDiscovery({
|
|||
surfaceDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
idunnDaemonHealthDefinition,
|
||||
operatorStateDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
|
|
@ -99,12 +105,13 @@ function createInterfaceDiscovery({
|
|||
? node.cache.getAll(providerAdvertisementDefinition)
|
||||
: [];
|
||||
for (const advertisement of advertisements) {
|
||||
if (!advertisement?.providerId) {
|
||||
const providerId = advertisement?.providerId || advertisement?.provider?.id || advertisement?.id;
|
||||
if (!providerId) {
|
||||
continue;
|
||||
}
|
||||
providers.push({
|
||||
id: advertisement.providerId,
|
||||
title: advertisement.title || advertisement.providerId,
|
||||
id: providerId,
|
||||
title: advertisement.title || advertisement.provider?.title || providerId,
|
||||
description: advertisement.description || "Provider-owned CultMesh advertisement.",
|
||||
version: String(advertisement.version || 0),
|
||||
endpoint: advertisement.cultMeshAddress || advertisement.endpoints?.[0]?.address || advertisement.provider?.endpoint || `cultmesh:${storePath}`,
|
||||
|
|
@ -126,11 +133,13 @@ function createInterfaceDiscovery({
|
|||
viliCommandBoundaryDefinition,
|
||||
weksaCommandBoundaryDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
], advertisement) || null,
|
||||
transportProfile: providerRecord(node, [
|
||||
viliTransportProfileDefinition,
|
||||
weksaTransportProfileDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
], advertisement) || null,
|
||||
usesCultMesh: true,
|
||||
transport: advertisement.provider?.transport || "CultMesh provider advertisement",
|
||||
|
|
@ -153,12 +162,15 @@ function createInterfaceDiscovery({
|
|||
async function discoverCultMeshInterfaceBindings() {
|
||||
const {
|
||||
interfaceBindingDefinition,
|
||||
idunnDaemonHealthDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
stonksMarketSnapshotDefinition,
|
||||
stonksRequestEventDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
|
|
@ -167,7 +179,7 @@ function createInterfaceDiscovery({
|
|||
weksaTransportProfileDefinition,
|
||||
voidbotSwarmSnapshotDefinition,
|
||||
} = documents;
|
||||
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !stonksCommandBoundaryDefinition || !stonksMarketSnapshotDefinition || !stonksRequestEventDefinition || !stonksTransportProfileDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
if (!CultMesh || !interfaceBindingDefinition || !idunnDaemonHealthDefinition || !operatorStateDefinition || !stonksCommandBoundaryDefinition || !stonksMarketSnapshotDefinition || !stonksRequestEventDefinition || !stonksTransportProfileDefinition || !streamPixelsCommandBoundaryDefinition || !streamPixelsTransportProfileDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
return [];
|
||||
}
|
||||
const interfaces = [];
|
||||
|
|
@ -186,6 +198,9 @@ function createInterfaceDiscovery({
|
|||
surfaceDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
idunnDaemonHealthDefinition,
|
||||
operatorStateDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
|
|
@ -217,11 +232,13 @@ function createInterfaceDiscovery({
|
|||
viliCommandBoundaryDefinition,
|
||||
weksaCommandBoundaryDefinition,
|
||||
stonksCommandBoundaryDefinition,
|
||||
streamPixelsCommandBoundaryDefinition,
|
||||
], advertisement) || null,
|
||||
transportProfile: providerRecord(node, [
|
||||
viliTransportProfileDefinition,
|
||||
weksaTransportProfileDefinition,
|
||||
stonksTransportProfileDefinition,
|
||||
streamPixelsTransportProfileDefinition,
|
||||
], advertisement) || null,
|
||||
}));
|
||||
}
|
||||
|
|
@ -292,9 +309,11 @@ function cultMeshProviderInterface({
|
|||
transportProfile = null,
|
||||
}) {
|
||||
const surface = state.surface || null;
|
||||
const providerId = advertisement.providerId || advertisement.provider?.id || advertisement.id || "unknown-provider";
|
||||
const title = state.title || advertisement.title || advertisement.provider?.title || providerId;
|
||||
return {
|
||||
providerId: advertisement.providerId,
|
||||
title: state.title || advertisement.title || advertisement.providerId,
|
||||
providerId,
|
||||
title,
|
||||
state: "active",
|
||||
detail: `${surface?.root?.kind || surface?.root?.type || "surface"} ${countSurfaceNodes(surface, state)} nodes via provider advertisement`,
|
||||
version: state.version || 0,
|
||||
|
|
@ -332,12 +351,14 @@ function providerRecordKeys(advertisement) {
|
|||
advertisement?.daemon_id,
|
||||
advertisement?.serviceId,
|
||||
advertisement?.service_id,
|
||||
advertisement?.provider?.id,
|
||||
advertisement?.canonicalService,
|
||||
advertisement?.locatedService,
|
||||
];
|
||||
if (advertisement?.providerId === "vili.animation") keys.push("vili");
|
||||
if (advertisement?.providerId === "weksa.intent.service") keys.push("weksa");
|
||||
if (advertisement?.providerId === "stonks.market") keys.push("stonks");
|
||||
if (advertisement?.provider?.id === "streampixels.service") keys.push("streampixels", "yggdrasil-streampixels");
|
||||
return [...new Set(keys.filter(Boolean).map(String))];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue