Surface Vili store ingestion and Raven task repair
This commit is contained in:
parent
759288ef05
commit
676fd1a6af
6 changed files with 127 additions and 15 deletions
|
|
@ -1201,7 +1201,7 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu
|
|||
status = "rudp-health-and-cultcache-state-implemented-raven-deploy-blocked";
|
||||
owner = "Vili animation runtime";
|
||||
current_mechanism =
|
||||
"Vili now has an in-process CultNet/RUDP Idunn health publisher in the Node animation daemon plus a Vili-owned vili.service.cc CultCache store containing provider advertisement, operator state, Eve surface, command_boundary, and transport_profile records. Local smoke proof shows Idunn accepts vili.cultnet-rudp-animation-health. Live Raven still runs the compatibility health/deck path until the updated Vili task can be deployed and restarted on that host."
|
||||
"Vili now has an in-process CultNet/RUDP Idunn health publisher in the Node animation daemon plus a Vili-owned vili.service.cc CultCache store containing provider advertisement, operator state, Eve surface, command_boundary, and transport_profile records. Local smoke proof shows Idunn accepts vili.cultnet-rudp-animation-health, and Odin local discovery can ingest the Vili provider advertisement plus command/transport records from that store. Live Raven still runs the compatibility health/deck path until the updated Vili task can be deployed and restarted on that host."
|
||||
.to_string();
|
||||
intended_authority =
|
||||
"Vili publishes animation daemon health, provider advertisement, operator state, command boundary, and transport profile as typed CultMesh/CultNet records over cultnet.transport.rudp.v0; HTTP and WebSocket remain renderer/operator lowerings only."
|
||||
|
|
@ -1215,7 +1215,7 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu
|
|||
"Deploy the updated Vili package and npm dependency lock on Raven when SSH is reachable.".to_string(),
|
||||
"Restart GameCult\\Vili so the task launches the daemon with --idunn-rudp-health 10.77.0.2:17870 and contract vili.cultnet-rudp-animation-health.".to_string(),
|
||||
"Verify live Idunn accepts vili.cultnet-rudp-animation-health from Raven over cultnet.transport.rudp.v0 before compatibility probe fallback.".to_string(),
|
||||
"Teach Odin to ingest Vili provider advertisement, command_boundary, and transport_profile over CultNet/RUDP, then demote health-vili.cmd and HTTP/WebSocket deck probes.".to_string(),
|
||||
"Keep Odin provider discovery pointed at Vili's daemon-owned vili.service.cc store; after Raven deploy, demote health-vili.cmd and HTTP/WebSocket deck probes to fallback witnesses only.".to_string(),
|
||||
];
|
||||
blockers.push(
|
||||
"Raven SSH currently times out, so the updated Vili runtime cannot be deployed or restarted on the live host."
|
||||
|
|
|
|||
|
|
@ -306,9 +306,11 @@ 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. That is
|
||||
implementation proof, not live Raven deployment proof. Vili remains the active
|
||||
cut until Raven is reachable, the updated package is deployed there, and
|
||||
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 implementation proof, not live Raven
|
||||
deployment proof. Vili remains the active cut until Raven is reachable, the
|
||||
updated package is deployed there, and
|
||||
`GameCult\Vili` is restarted with
|
||||
`--idunn-rudp-health 10.77.0.2:17870`.
|
||||
|
||||
|
|
|
|||
|
|
@ -193,14 +193,17 @@ probe. The record must match the daemon id, health contract, RUDP transport,
|
|||
and freshness window; otherwise the compatibility probe remains fallback
|
||||
evidence.
|
||||
|
||||
The next cut is Weksa: provider health must publish through
|
||||
`cultnet.transport.rudp.v0` instead of remaining HTTP compatibility evidence.
|
||||
Stonks already publishes daemon health through RUDP, but still owes provider
|
||||
advertisement and command-boundary publication before its HTTP surfaces can be
|
||||
pure display/debug lowerings. After Weksa, continue daemon-by-daemon, promote
|
||||
the built-in target catalog into Odin-ingested service/provider records, keep
|
||||
named adapters only for legacy service-manager crossings, and replace the local
|
||||
operator alarm bridge with a fully Bifrost-owned notification request record.
|
||||
The current active cut is Vili plus Raven task-action repair. Vili publishes
|
||||
RUDP health locally and writes a daemon-owned `.vili\vili.service.cc` store with
|
||||
provider advertisement, operator state, Eve surface, command boundary, and
|
||||
transport profile records; Odin local discovery can ingest that typed store.
|
||||
Live Raven deployment remains blocked while SSH is unreachable. 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 cuts,
|
||||
continue daemon-by-daemon until compatibility HTTP, TCP, WebSocket, and command
|
||||
probes are fallback witnesses only.
|
||||
|
||||
Rust no longer gets to claim the transport is imaginary:
|
||||
`vendor/cultnet-rs` includes the canonical CNR0 `cultnet.transport.rudp.v0`
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ function buildConfig(argv) {
|
|||
path.join(repoRoot, "..", "VoidBot", ".voidbot", "status", "cultmesh", "voidbot-swarm-state.cc"),
|
||||
path.join(repoRoot, "..", "Bifrost", ".bifrost", "provider-advertisement.cc"),
|
||||
path.join(repoRoot, "..", "weksa", ".weksa", "provider-advertisement-store.cc"),
|
||||
path.join(repoRoot, "..", "Vili", ".vili", "vili.service.cc"),
|
||||
].join(",");
|
||||
const interfaceBindingStores = String(
|
||||
args.interfaceBindingStore ||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,11 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
if (!defineDocumentType) {
|
||||
return {
|
||||
interfaceBindingDefinition: null,
|
||||
operatorStateDefinition: null,
|
||||
providerAdvertisementDefinition: null,
|
||||
surfaceDefinition: null,
|
||||
viliCommandBoundaryDefinition: null,
|
||||
viliTransportProfileDefinition: null,
|
||||
voidbotSwarmSnapshotDefinition: null,
|
||||
};
|
||||
}
|
||||
|
|
@ -46,6 +49,33 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
name: (value) => value?.providerId || "provider",
|
||||
schema: parseObjectDocument("Eve provider advertisement"),
|
||||
});
|
||||
const operatorStateDefinition = defineDocumentType({
|
||||
type: "gamecult.vili.operator_state",
|
||||
schemaName: "gamecult.vili.operator_state",
|
||||
schemaId: "gamecult.vili.operator_state.v1",
|
||||
schemaVersion: "gamecult.vili.operator_state.v1",
|
||||
global: false,
|
||||
name: (value) => value?.service || value?.providerId || "operator",
|
||||
schema: parseObjectDocument("Vili operator state"),
|
||||
});
|
||||
const viliCommandBoundaryDefinition = defineDocumentType({
|
||||
type: "gamecult.vili.command_boundary",
|
||||
schemaName: "gamecult.vili.command_boundary",
|
||||
schemaId: "gamecult.vili.command_boundary.v1",
|
||||
schemaVersion: "gamecult.vili.command_boundary.v1",
|
||||
global: false,
|
||||
name: (value) => value?.boundaryId || value?.daemonId || "vili",
|
||||
schema: parseObjectDocument("Vili command boundary"),
|
||||
});
|
||||
const viliTransportProfileDefinition = defineDocumentType({
|
||||
type: "gamecult.vili.transport_profile",
|
||||
schemaName: "gamecult.vili.transport_profile",
|
||||
schemaId: "gamecult.vili.transport_profile.v1",
|
||||
schemaVersion: "gamecult.vili.transport_profile.v1",
|
||||
global: false,
|
||||
name: (value) => value?.profileId || value?.daemonId || "vili",
|
||||
schema: parseObjectDocument("Vili transport profile"),
|
||||
});
|
||||
const voidbotSwarmSnapshotDefinition = defineDocumentType({
|
||||
type: "voidbot.swarm_state_snapshot",
|
||||
schemaName: "voidbot.swarm_state_snapshot",
|
||||
|
|
@ -57,8 +87,11 @@ function defineOdinDocuments(defineDocumentType) {
|
|||
|
||||
return {
|
||||
interfaceBindingDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
voidbotSwarmSnapshotDefinition,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,11 +53,14 @@ function createInterfaceDiscovery({
|
|||
async function discoverProviderAdvertisements() {
|
||||
const {
|
||||
interfaceBindingDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
voidbotSwarmSnapshotDefinition,
|
||||
} = documents;
|
||||
if (!CultMesh || !interfaceBindingDefinition || !surfaceDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
@ -73,6 +76,9 @@ function createInterfaceDiscovery({
|
|||
providerAdvertisementDefinition,
|
||||
interfaceBindingDefinition,
|
||||
surfaceDefinition,
|
||||
operatorStateDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
],
|
||||
});
|
||||
const advertisements = typeof node.cache?.getAll === "function"
|
||||
|
|
@ -98,6 +104,13 @@ function createInterfaceDiscovery({
|
|||
|| advertisement.provider?.endpoint
|
||||
|| `cultmesh:${storePath}`,
|
||||
capabilities: advertisement.provider?.capabilities || advertisement.capabilities || [],
|
||||
operatorState: node.get?.(operatorStateDefinition, "vili") || null,
|
||||
commandBoundary: node.get?.(viliCommandBoundaryDefinition, advertisement.providerId)
|
||||
|| node.get?.(viliCommandBoundaryDefinition, advertisement.daemonId || "vili")
|
||||
|| null,
|
||||
transportProfile: node.get?.(viliTransportProfileDefinition, advertisement.providerId)
|
||||
|| node.get?.(viliTransportProfileDefinition, advertisement.daemonId || "vili")
|
||||
|| null,
|
||||
usesCultMesh: true,
|
||||
transport: advertisement.provider?.transport || "CultMesh provider advertisement",
|
||||
status: advertisement.status || "unknown",
|
||||
|
|
@ -119,11 +132,14 @@ function createInterfaceDiscovery({
|
|||
async function discoverCultMeshInterfaceBindings() {
|
||||
const {
|
||||
interfaceBindingDefinition,
|
||||
operatorStateDefinition,
|
||||
providerAdvertisementDefinition,
|
||||
surfaceDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
voidbotSwarmSnapshotDefinition,
|
||||
} = documents;
|
||||
if (!CultMesh || !interfaceBindingDefinition || !surfaceDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
|
||||
return [];
|
||||
}
|
||||
const interfaces = [];
|
||||
|
|
@ -138,8 +154,35 @@ function createInterfaceDiscovery({
|
|||
providerAdvertisementDefinition,
|
||||
interfaceBindingDefinition,
|
||||
surfaceDefinition,
|
||||
operatorStateDefinition,
|
||||
viliCommandBoundaryDefinition,
|
||||
viliTransportProfileDefinition,
|
||||
],
|
||||
});
|
||||
const advertisements = typeof node.cache?.getAll === "function"
|
||||
? node.cache.getAll(providerAdvertisementDefinition)
|
||||
: [];
|
||||
for (const advertisement of advertisements) {
|
||||
if (!advertisement?.providerId) {
|
||||
continue;
|
||||
}
|
||||
const state = node.get(surfaceDefinition, advertisement.providerId);
|
||||
if (!state?.surface) {
|
||||
continue;
|
||||
}
|
||||
interfaces.push(cultMeshProviderInterface({
|
||||
advertisement,
|
||||
state,
|
||||
storePath,
|
||||
operatorState: node.get?.(operatorStateDefinition, "vili") || null,
|
||||
commandBoundary: node.get?.(viliCommandBoundaryDefinition, advertisement.providerId)
|
||||
|| node.get?.(viliCommandBoundaryDefinition, advertisement.daemonId || "vili")
|
||||
|| null,
|
||||
transportProfile: node.get?.(viliTransportProfileDefinition, advertisement.providerId)
|
||||
|| node.get?.(viliTransportProfileDefinition, advertisement.daemonId || "vili")
|
||||
|| null,
|
||||
}));
|
||||
}
|
||||
const bindings = typeof node.cache?.getAll === "function"
|
||||
? node.cache.getAll(interfaceBindingDefinition)
|
||||
: [node.get(interfaceBindingDefinition, "voidbot.swarm")].filter(Boolean);
|
||||
|
|
@ -198,6 +241,36 @@ function createInterfaceDiscovery({
|
|||
};
|
||||
}
|
||||
|
||||
function cultMeshProviderInterface({
|
||||
advertisement,
|
||||
state,
|
||||
storePath,
|
||||
operatorState = null,
|
||||
commandBoundary = null,
|
||||
transportProfile = null,
|
||||
}) {
|
||||
const surface = state.surface || null;
|
||||
return {
|
||||
providerId: advertisement.providerId,
|
||||
title: state.title || advertisement.title || advertisement.providerId,
|
||||
state: "active",
|
||||
detail: `${surface?.root?.kind || surface?.root?.type || "surface"} ${countSurfaceNodes(surface, state)} nodes via provider advertisement`,
|
||||
version: state.version || 0,
|
||||
updatedAt: state.updatedAt || advertisement.updatedAt || new Date().toISOString(),
|
||||
source: `cultmesh:${storePath}`,
|
||||
manifest: advertisement,
|
||||
canonicalService: advertisement.canonicalService || null,
|
||||
locatedService: advertisement.locatedService || null,
|
||||
cultMeshAddress: advertisement.cultMeshAddress || null,
|
||||
endpoints: advertisement.endpoints || [],
|
||||
routes: advertisement.routes || [],
|
||||
operatorState,
|
||||
commandBoundary,
|
||||
transportProfile,
|
||||
surface,
|
||||
};
|
||||
}
|
||||
|
||||
function localIpv4Prefixes() {
|
||||
const prefixes = new Set();
|
||||
for (const entries of Object.values(os.networkInterfaces())) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue