A-316: the assigner's candidate gains added, the version and parts the want it would write carries

The state candidates' value (CandidatesByProposalNodeValue) gains `added`, by module name, each an AddedModule
with `version` and `parts` in the want's own forms. It is a copy of the two properties of the seat mesh-wants'
state wants, because the seat-definition format cannot reuse another repository's seat's forms (includes take only
parts/ of the same repository, and a part holds no state value); a fixture holds both to the want's wire.
Regenerated with seatgen. The node names the first round-2 pass left in fixtures lines equal to base lines are
role names now, the generated tests with them.

Builds: design 47 G A-316 (corrected, hq #594), §626
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-12 22:48:01 +01:00
parent 821d611530
commit 5e95cbed59
11 changed files with 83 additions and 31 deletions
@@ -63,7 +63,7 @@
"of": "state:assignments/<node>.<module>",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"placed": {
"module": "plex",
"branch": "beta",
@@ -106,24 +106,32 @@
"changes": [
{
"op": "place",
"node": "ace",
"node": "home-server",
"module": "nats",
"branch": "beta",
"build": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
],
"base": {
"ace": 3
"home-server": 3
},
"state": "answering"
}
},
{
"name": "a candidate",
"name": "a candidate, with the modules it adds and what their wants would carry",
"of": "state:candidates/<proposal>.<node>",
"given": {
"v": 1,
"proposal": "p-20261105t120000-aabbccdd"
"proposal": "p-20261105t120000-aabbccdd",
"added": {
"mesh-build-go": {
"version": "1.4.0",
"parts": {
"mesh-build-go:go-binary": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
},
{
+24
View File
@@ -350,6 +350,13 @@
"assignments": {
"$ref": "#/defs/Assignments",
"description": "the node's assignments with the proposal laid over it; absent when the proposal takes its key away"
},
"added": {
"type": "object",
"additionalProperties": {
"$ref": "#/defs/AddedModule"
},
"description": "by module name, each module the candidate adds to this node without a want there: the `version` and `parts` the want it would write carries (design 47 G A-316); the node-engine builds such a module from this entry"
}
},
"required": [
@@ -1061,6 +1068,23 @@
"branch",
"nodes"
]
},
"AddedModule": {
"type": "object",
"description": "what the want a candidate would write for a module carries of its build, in the want's own forms (the seat mesh-wants' state wants: `version` and `parts`; copied here because a seat definition cannot reuse another repository's seat's forms, design 47 G A-316)",
"properties": {
"version": {
"type": "string",
"description": "the module's released version, for people; none for a build of another watched branch (design 47 G section 379)"
},
"parts": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "the digest of each of the module's parts, by `<module>:<artifact>` (design 47 G section 379)"
}
}
}
}
}
+6 -6
View File
@@ -72,7 +72,7 @@
"subject": "mesh.seat.node-engine.event.composed.home-server",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
@@ -85,7 +85,7 @@
"subject": "mesh.seat.node-engine.event.running.home-server.nats",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
@@ -98,7 +98,7 @@
"subject": "mesh.seat.node-engine.event.running.home-server.nats",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
@@ -112,7 +112,7 @@
"subject": "mesh.seat.node-engine.event.running.home-server.nats",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"module": "nats",
"fingerprint": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"manifest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
@@ -126,7 +126,7 @@
"subject": "mesh.seat.node-engine.event.running.home-server.nats",
"given": {
"v": 1,
"node": "ace",
"node": "home-server",
"module": "nats",
"stopped": true,
"at": "2026-11-11T09:00:00Z"
@@ -139,7 +139,7 @@
"given": {
"owner": "node-engine",
"step": "kept-build",
"node": "ace",
"node": "home-server",
"on": "the kept build of postgres",
"bound": "60m",
"since": "2026-11-11T10:00:00Z",
+2 -2
View File
@@ -129,7 +129,7 @@
"name": "process-builds answers each process's build",
"of": "verb:process-builds.answer",
"given": {
"node": "ace",
"node": "home-server",
"processes": [
{
"module": "nats",
@@ -152,7 +152,7 @@
"name": "process-builds answers an error",
"of": "verb:process-builds.answer",
"given": {
"node": "ace",
"node": "home-server",
"processes": [],
"error": "the service manager did not answer"
}