H2 composition-diff: the node-engine seat's read verb composition-diff

The node-engine serves seat verbs and has no tools bundle, so the composed
values read by resource are a read verb beside composition: given a module and
a revision or digest, the entries that differ between the running composition
and the other, per resource, environment entries by name, a secret masked.
Packages generated again by seatgen (seatgen -check clean).

Builds: design 47 H2 §813 (3); H-A-349 DQ-12b
This commit is contained in:
2026-11-21 23:04:35 +01:00
parent 1b320b2312
commit 3fbe33612f
6 changed files with 247 additions and 1 deletions
+48
View File
@@ -332,5 +332,53 @@
}
]
}
},
{
"name": "composition-diff asks a module against a digest",
"of": "verb:composition-diff.input",
"given": {
"module": "plex",
"digest": "sha256:aa"
}
},
{
"name": "composition-diff answers the entries that differ per resource, a secret masked",
"of": "verb:composition-diff.answer",
"given": {
"node": "ace",
"module": "plex",
"running": "sha256:bb",
"other": {
"key": "plex",
"revision": 12,
"digest": "sha256:aa"
},
"resources": [
{
"resource": "service:plex",
"entries": [
{
"name": "PLEX_LOG_LEVEL",
"running": "info",
"other": "debug"
},
{
"name": "PLEX_TOKEN",
"masked": true
}
]
}
]
}
},
{
"name": "composition-diff answers no resource when none differs",
"of": "verb:composition-diff.answer",
"given": {
"node": "ace",
"module": "plex",
"running": "sha256:aa",
"resources": []
}
}
]