Ingest Weksa provider boundary records

This commit is contained in:
Meta Vens 2026-06-16 11:31:02 +01:00
commit b850c0be03
5 changed files with 136 additions and 45 deletions

View file

@ -193,14 +193,19 @@ probe. The record must match the daemon id, health contract, RUDP transport,
and freshness window; otherwise the compatibility probe remains fallback
evidence.
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
The current active cut is Vili plus Raven task-action repair, with Weksa's
provider-store boundary now advanced locally. 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. Weksa publishes RUDP health
and a daemon-owned provider store containing provider advertisement, operator
state, Eve surface, command boundary, and transport profile records; Odin local
discovery can ingest that typed store too. Weksa still owes CultNet/RUDP command
document ingress for MiMo VoiceDesign before its HTTP command route can become
debug-only. 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.

View file

@ -11,6 +11,9 @@ function defineOdinDocuments(defineDocumentType) {
surfaceDefinition: null,
viliCommandBoundaryDefinition: null,
viliTransportProfileDefinition: null,
weksaCommandBoundaryDefinition: null,
weksaOperatorStateDefinition: null,
weksaTransportProfileDefinition: null,
voidbotSwarmSnapshotDefinition: null,
};
}
@ -76,6 +79,33 @@ function defineOdinDocuments(defineDocumentType) {
name: (value) => value?.profileId || value?.daemonId || "vili",
schema: parseObjectDocument("Vili transport profile"),
});
const weksaOperatorStateDefinition = defineDocumentType({
type: "weksa.operator_state",
schemaName: "weksa.operator_state",
schemaId: "weksa.operator_state.v0",
schemaVersion: "weksa.operator_state.v0",
global: false,
name: (value) => value?.daemon_id || value?.daemonId || value?.provider_id || value?.providerId || "weksa",
schema: parseObjectDocument("Weksa operator state"),
});
const weksaCommandBoundaryDefinition = defineDocumentType({
type: "weksa.command_boundary",
schemaName: "weksa.command_boundary",
schemaId: "weksa.command_boundary.v1",
schemaVersion: "weksa.command_boundary.v1",
global: false,
name: (value) => value?.boundary_id || value?.boundaryId || value?.daemon_id || value?.daemonId || "weksa",
schema: parseObjectDocument("Weksa command boundary"),
});
const weksaTransportProfileDefinition = defineDocumentType({
type: "weksa.transport_profile",
schemaName: "weksa.transport_profile",
schemaId: "weksa.transport_profile.v1",
schemaVersion: "weksa.transport_profile.v1",
global: false,
name: (value) => value?.profile_id || value?.profileId || value?.daemon_id || value?.daemonId || "weksa",
schema: parseObjectDocument("Weksa transport profile"),
});
const voidbotSwarmSnapshotDefinition = defineDocumentType({
type: "voidbot.swarm_state_snapshot",
schemaName: "voidbot.swarm_state_snapshot",
@ -92,6 +122,9 @@ function defineOdinDocuments(defineDocumentType) {
surfaceDefinition,
viliCommandBoundaryDefinition,
viliTransportProfileDefinition,
weksaCommandBoundaryDefinition,
weksaOperatorStateDefinition,
weksaTransportProfileDefinition,
voidbotSwarmSnapshotDefinition,
};
}

View file

@ -58,9 +58,12 @@ function createInterfaceDiscovery({
surfaceDefinition,
viliCommandBoundaryDefinition,
viliTransportProfileDefinition,
weksaCommandBoundaryDefinition,
weksaOperatorStateDefinition,
weksaTransportProfileDefinition,
voidbotSwarmSnapshotDefinition,
} = documents;
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
return [];
}
@ -79,6 +82,9 @@ function createInterfaceDiscovery({
operatorStateDefinition,
viliCommandBoundaryDefinition,
viliTransportProfileDefinition,
weksaOperatorStateDefinition,
weksaCommandBoundaryDefinition,
weksaTransportProfileDefinition,
],
});
const advertisements = typeof node.cache?.getAll === "function"
@ -104,13 +110,18 @@ 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,
operatorState: providerRecord(node, [
operatorStateDefinition,
weksaOperatorStateDefinition,
], advertisement) || null,
commandBoundary: providerRecord(node, [
viliCommandBoundaryDefinition,
weksaCommandBoundaryDefinition,
], advertisement) || null,
transportProfile: providerRecord(node, [
viliTransportProfileDefinition,
weksaTransportProfileDefinition,
], advertisement) || null,
usesCultMesh: true,
transport: advertisement.provider?.transport || "CultMesh provider advertisement",
status: advertisement.status || "unknown",
@ -137,9 +148,12 @@ function createInterfaceDiscovery({
surfaceDefinition,
viliCommandBoundaryDefinition,
viliTransportProfileDefinition,
weksaCommandBoundaryDefinition,
weksaOperatorStateDefinition,
weksaTransportProfileDefinition,
voidbotSwarmSnapshotDefinition,
} = documents;
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
if (!CultMesh || !interfaceBindingDefinition || !operatorStateDefinition || !surfaceDefinition || !viliCommandBoundaryDefinition || !viliTransportProfileDefinition || !weksaCommandBoundaryDefinition || !weksaOperatorStateDefinition || !weksaTransportProfileDefinition || !voidbotSwarmSnapshotDefinition || !providerAdvertisementDefinition) {
return [];
}
const interfaces = [];
@ -157,6 +171,9 @@ function createInterfaceDiscovery({
operatorStateDefinition,
viliCommandBoundaryDefinition,
viliTransportProfileDefinition,
weksaOperatorStateDefinition,
weksaCommandBoundaryDefinition,
weksaTransportProfileDefinition,
],
});
const advertisements = typeof node.cache?.getAll === "function"
@ -174,13 +191,18 @@ function createInterfaceDiscovery({
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,
operatorState: providerRecord(node, [
operatorStateDefinition,
weksaOperatorStateDefinition,
], advertisement) || null,
commandBoundary: providerRecord(node, [
viliCommandBoundaryDefinition,
weksaCommandBoundaryDefinition,
], advertisement) || null,
transportProfile: providerRecord(node, [
viliTransportProfileDefinition,
weksaTransportProfileDefinition,
], advertisement) || null,
}));
}
const bindings = typeof node.cache?.getAll === "function"
@ -271,6 +293,33 @@ function cultMeshProviderInterface({
};
}
function providerRecord(node, definitions, advertisement) {
const keys = providerRecordKeys(advertisement);
for (const definition of definitions) {
if (!definition) continue;
for (const key of keys) {
const record = node.get?.(definition, key);
if (record) return record;
}
}
return null;
}
function providerRecordKeys(advertisement) {
const keys = [
advertisement?.providerId,
advertisement?.daemonId,
advertisement?.daemon_id,
advertisement?.serviceId,
advertisement?.service_id,
advertisement?.canonicalService,
advertisement?.locatedService,
];
if (advertisement?.providerId === "vili.animation") keys.push("vili");
if (advertisement?.providerId === "weksa.intent.service") keys.push("weksa");
return [...new Set(keys.filter(Boolean).map(String))];
}
function localIpv4Prefixes() {
const prefixes = new Set();
for (const entries of Object.values(os.networkInterfaces())) {