Files
mesh-contracts/seats/node-engine/fixtures/events.json
T
jschoubben 821d611530 Round 2 T1, T2, T5: the contracts end G with no more tests than at their merge base; fixtures name roles
The test that read every fixture for the operator's account and a node goes (T1); the tests G added
fold into existing ones as subtests, so each module counts its merge base (design 47 G §626, A-306);
node names in the lines G adds are role names (T5).

Builds: design 47 G §626, A-306; review round 2 findings T1, T2, T5
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
2026-11-12 22:18:04 +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.home-server",
"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.home-server.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.home-server.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.home-server.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.home-server.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.home-server.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 home-server",
"reason": "node away"
}
},
{
"name": "a hold of the composition ends",
"of": "event:wait-ended",
"subject": "mesh.seat.node-engine.event.wait-ended.home-server.postgres",
"given": {
"owner": "node-engine",
"step": "compose",
"since": "2026-11-11T10:00:00Z",
"reason": "restore point missing"
}
}
]