The node-engine seat whole: every verb's answer, its events' bodies, and ADR 0618's manifest-reads and manifest-reads-changed

The seat's area changes in this milestone, so it moves whole into its contracts (ADR 0613 §3): the eleven verbs it serves
get their answers as the engine writes them, asked, done and refused their body, and the seat serves the optional verb
manifest-reads (ADR 0618 §3) and says manifest-reads-changed (§4). Each event is published per node, the node's name its
last token (by-caller), and kept with the seat's events for seven days. compose-candidate's input is a boolean, as the
engine and the checker read it. Fixtures for every event, compose-candidate's input and three answers.

Claude-Session: https://claude.ai/code/session_01JG73KG7AfSdh6FP8VrBqCn
This commit is contained in:
2026-11-04 12:39:56 +01:00
parent f3a9cd17d6
commit 7498d689e2
9 changed files with 3058 additions and 40 deletions
+69
View File
@@ -0,0 +1,69 @@
[
{
"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"
}
}
]
+76
View File
@@ -0,0 +1,76 @@
[
{
"name": "manifest-reads answers what the engine reads and when it stated it",
"of": "verb:manifest-reads.answer",
"given": {
"v": 1,
"node": "ace",
"manifest-reads": [
"form:seat-reference",
"word:series"
],
"stated-at": "2026-11-04T10:00:00Z"
}
},
{
"name": "manifest-reads of an engine built before it said them is the baseline",
"of": "verb:manifest-reads.answer",
"given": {
"v": 1,
"node": "g14",
"stated-at": "2026-11-04T10:05:00Z"
}
},
{
"name": "compose-candidate asks the candidate and, as a boolean, its composition input",
"of": "verb:compose-candidate.input",
"given": {
"candidate": "mesh-host.0123abcd",
"input": true
}
},
{
"name": "compose-candidate answers per module and the node's own",
"of": "verb:compose-candidate.answer",
"given": {
"v": 1,
"node": "ace",
"candidate": "mesh-host.0123abcd",
"verdict": "composed",
"modules": [
{
"module": "plex",
"fp": "fp-1",
"state": "composed",
"digest": "sha256:aa",
"changed": true
}
],
"own": {
"module": "node",
"state": "composed",
"digest": "sha256:bb"
},
"took": 1200
}
},
{
"name": "acts answers each act kept",
"of": "verb:acts.answer",
"given": {
"node": "ace",
"acts": [
{
"id": "hand-over-1",
"act": "hand-over",
"subject": "/srv/media",
"caller": "mesh-tools",
"at": "2026-11-04T09:00:00Z",
"state": "asked",
"ask": "hand-over-1",
"expires": "2026-11-05T09:00:00Z"
}
]
}
}
]