Ingest Weksa provider boundary records
This commit is contained in:
parent
2b65847744
commit
b850c0be03
5 changed files with 136 additions and 45 deletions
|
|
@ -1123,24 +1123,24 @@ fn daemon_surgery_plan(target: &DaemonTarget, updated_at: &str) -> IdunnDaemonSu
|
|||
];
|
||||
}
|
||||
"weksa" => {
|
||||
status = "partial-rudp-health-live";
|
||||
status = "partial-rudp-health-and-provider-store-live";
|
||||
severity = "medium-high";
|
||||
owner = "Weksa provider runtime";
|
||||
current_mechanism =
|
||||
"Weksa publishes weksa.cultnet-rudp-provider-health over CultNet/RUDP after each serialized witness refresh; provider advertisement and command boundary still retain compatibility HTTP projections."
|
||||
"Weksa publishes weksa.cultnet-rudp-provider-health over CultNet/RUDP after each serialized witness refresh, and its daemon-owned provider store contains provider advertisement, operator state, Eve surface, command_boundary, and transport_profile records that Odin can ingest. The remaining command ingress debt is the MiMo VoiceDesign compatibility HTTP route."
|
||||
.to_string();
|
||||
intended_authority =
|
||||
"Weksa publishes daemon health, provider advertisement, operator state, Eve surfaces, and command boundary as typed CultMesh/CultNet records over cultnet.transport.rudp.v0; HTTP remains operator/debug projection only."
|
||||
"Weksa publishes daemon health, provider advertisement, operator state, Eve surfaces, command boundary, and transport profile as typed CultMesh/CultNet records over cultnet.transport.rudp.v0; HTTP remains operator/debug and temporary command lowering only."
|
||||
.to_string();
|
||||
cut_line =
|
||||
"Keep the HTTP probe as fallback only until Weksa provider advertisement and command_boundary records are also daemon-owned RUDP publications."
|
||||
"Replace the MiMo VoiceDesign compatibility HTTP command route with CultNet/RUDP command document ingress, then demote health-weksa.cmd and HTTP endpoints to manual/debug lowerings with no lifecycle truth."
|
||||
.to_string();
|
||||
steps = vec![
|
||||
"Keep live weksa.cultnet-rudp-provider-health publication running from the Weksa daemon.".to_string(),
|
||||
"Publish Weksa provider advertisement and operator-state records over cultnet.transport.rudp.v0.".to_string(),
|
||||
"Publish Weksa command_boundary and transport_profile records from the daemon runtime.".to_string(),
|
||||
"Teach Odin to prefer Weksa RUDP provider records over compatibility HTTP ingestion.".to_string(),
|
||||
"Delete or demote health-weksa.cmd to a manual compatibility probe with no lifecycle truth.".to_string(),
|
||||
"Keep Weksa provider advertisement, operator-state, Eve surface, command_boundary, and transport_profile records in the daemon-owned provider store.".to_string(),
|
||||
"Keep Odin provider discovery accepting Weksa's typed provider store instead of relying on compatibility HTTP ingestion.".to_string(),
|
||||
"Add CultNet/RUDP command document ingress for speech_provider.mimo.voicedesign.".to_string(),
|
||||
"Delete or demote health-weksa.cmd and HTTP endpoints to manual/debug compatibility paths with no lifecycle truth.".to_string(),
|
||||
];
|
||||
}
|
||||
"voidbot" => {
|
||||
|
|
@ -2301,13 +2301,12 @@ mod tests {
|
|||
);
|
||||
|
||||
let weksa_plan = daemon_surgery_plan(&weksa, "unix:100");
|
||||
assert_eq!(weksa_plan.status, "partial-rudp-health-live");
|
||||
assert!(
|
||||
weksa_plan
|
||||
.current_mechanism
|
||||
.contains("weksa.cultnet-rudp-provider-health")
|
||||
assert_eq!(
|
||||
weksa_plan.status,
|
||||
"partial-rudp-health-and-provider-store-live"
|
||||
);
|
||||
assert!(weksa_plan.cut_line.contains("HTTP probe as fallback"));
|
||||
assert!(weksa_plan.current_mechanism.contains("command_boundary"));
|
||||
assert!(weksa_plan.cut_line.contains("MiMo VoiceDesign"));
|
||||
|
||||
let voidbot_plan = daemon_surgery_plan(&voidbot, "unix:100");
|
||||
assert_eq!(voidbot_plan.status, "partial-rudp-health-live");
|
||||
|
|
|
|||
|
|
@ -293,13 +293,18 @@ Raven's Muninn scheduled-task repair is a separate ops invariant:
|
|||
not raw `.cmd` task actions.
|
||||
|
||||
Next: move Vili off compatibility health/deck checks, then continue
|
||||
runtime-by-runtime until compatibility probes can be deleted or demoted. Stonks,
|
||||
Weksa, 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 action repair is queued separately and remains blocked
|
||||
while Raven is unreachable over SSH; the prepared actuator is
|
||||
runtime-by-runtime until compatibility probes can be deleted or demoted. Weksa
|
||||
now publishes daemon-owned provider advertisement, operator state, Eve surface,
|
||||
command boundary, and transport profile records in its provider store, and Odin
|
||||
local discovery can ingest those records. Weksa still owes CultNet/RUDP command
|
||||
document ingress for MiMo VoiceDesign before its HTTP command route can become a
|
||||
debug-only lowering. Stonks, 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 action repair is
|
||||
queued separately and remains blocked while Raven is unreachable over SSH; the
|
||||
prepared actuator is
|
||||
`scripts\repair-raven-muninn-task-actions.ps1`.
|
||||
|
||||
Vili's Node daemon now has an in-process Idunn RUDP publisher for
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue