Files
mesh-contracts/seats/node-engine/fixtures/events.json
T
jschoubben a5cf2c5df1 K4, K5 (node-engine waits): the seat says wait-held and wait-ended, and the have carries its wait
defs.Wait has the fields of a wait (owner, step compose or kept-build, node, on, bound, since, clock-from, words, reason)
and, in the have, ask-at and act; wait-held.<node>.<module> and wait-ended.<node>.<module> are kept last per subject on
the stream running is kept on; the have's value gains wait, waits stays. Generated code waits for K21.

Builds: design 47 G §498, §499, §541, §556, §560, §629

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
2026-11-11 20:31:03 +01:00

163 lines
4.7 KiB
JSON

[
{
"name": "asked on the node's subject",
"of": "event:asked",
"subject": "mesh.seat.node-engine.event.asked.ace",
"given": {
"act": "hand-over",
"subject": "/srv/media",
"caller": "mesh-tools",
"ask": "hand-over-1",
"state": "asked",
"node": "ace"
}
},
{
"name": "done on the node's subject",
"of": "event:done",
"subject": "mesh.seat.node-engine.event.done.ace",
"given": {
"act": "hand-over",
"subject": "/srv/media",
"caller": "mesh-tools",
"ask": "hand-over-1",
"state": "done",
"said": "handed over: owner media, group media, mode 2775",
"node": "ace"
}
},
{
"name": "refused on the node's subject",
"of": "event:refused",
"subject": "mesh.seat.node-engine.event.refused.ace",
"given": {
"act": "access-act",
"subject": "library:music",
"caller": "mesh-tools",
"ask": "access-act-1",
"state": "refused",
"said": "the operator said no",
"node": "ace"
}
},
{
"name": "manifest-reads-changed when the engine started",
"of": "event:manifest-reads-changed",
"subject": "mesh.seat.node-engine.event.manifest-reads-changed.ace",
"given": {
"v": 1,
"node": "ace",
"manifest-reads": [
"form:seat-reference",
"word:series"
],
"at": "2026-11-04T10:00:00Z",
"why": "started"
}
},
{
"name": "manifest-reads-changed when the node returned, from an engine that states none",
"of": "event:manifest-reads-changed",
"subject": "mesh.seat.node-engine.event.manifest-reads-changed.g14",
"given": {
"v": 1,
"node": "g14",
"at": "2026-11-04T10:05:00Z",
"why": "returned"
}
},
{
"name": "composed is said",
"of": "event:composed",
"subject": "mesh.seat.node-engine.event.composed.ace",
"given": {
"v": 1,
"node": "ace",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"at": "2026-11-09T20:00:00Z"
}
},
{
"name": "running is said, its node and module in its subject",
"of": "event:running",
"subject": "mesh.seat.node-engine.event.running.ace.nats",
"given": {
"v": 1,
"node": "ace",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
"at": "2026-11-09T20:01:00Z"
}
},
{
"name": "running says the build that runs is healthy",
"of": "event:running",
"subject": "mesh.seat.node-engine.event.running.ace.nats",
"given": {
"v": 1,
"node": "ace",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
"healthy": true,
"at": "2026-11-11T09:00:00Z"
}
},
{
"name": "running says the build that runs turned unhealthy, still running",
"of": "event:running",
"subject": "mesh.seat.node-engine.event.running.ace.nats",
"given": {
"v": 1,
"node": "ace",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
"healthy": false,
"at": "2026-11-11T09:05:00Z"
}
},
{
"name": "running says a module stopped on the node, with no fingerprint",
"of": "event:running",
"subject": "mesh.seat.node-engine.event.running.ace.nats",
"given": {
"v": 1,
"node": "ace",
"module": "nats",
"stopped": true,
"at": "2026-11-11T09:00:00Z"
}
},
{
"name": "a kept build's wait is held",
"of": "event:wait-held",
"subject": "mesh.seat.node-engine.event.wait-held.ace.postgres",
"given": {
"owner": "node-engine",
"step": "kept-build",
"node": "ace",
"on": "the kept build of postgres",
"bound": "60m",
"since": "2026-11-11T10:00:00Z",
"clock-from": "2026-11-11T10:00:00Z",
"words": "waiting for the kept build of postgres on ace",
"reason": "node away"
}
},
{
"name": "a hold of the composition ends",
"of": "event:wait-ended",
"subject": "mesh.seat.node-engine.event.wait-ended.ace.postgres",
"given": {
"owner": "node-engine",
"step": "compose",
"since": "2026-11-11T10:00:00Z",
"reason": "restore point missing"
}
}
]