C-acts: the build seats' acting rules name no bound

acts stays as the declaration the graph's edges and tiers are built from; the
bound of the build seats' rule goes with the acting part's hold. The generated
contracts do not change.

Builds: design 47 H §750, §764 (the acting part's hold); lead answers H-A-57, H-A-70

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
2026-11-20 02:51:01 +01:00
parent 6e027de597
commit 5042d9c426
4 changed files with 7 additions and 9 deletions
@@ -10,8 +10,7 @@
"acts": [
{
"step": "build",
"on": "go",
"bound": "60m"
"on": "go"
}
],
"accepts": [
@@ -10,8 +10,7 @@
"acts": [
{
"step": "build",
"on": "kind:image",
"bound": "60m"
"on": "kind:image"
}
],
"accepts": [
@@ -10,8 +10,7 @@
"acts": [
{
"step": "build",
"on": "typescript",
"bound": "60m"
"on": "typescript"
}
],
"accepts": [
@@ -6,7 +6,8 @@ import (
"testing"
)
// The seat's `build` acting rule matches an artifact by its kind, an image having no language (design 47 G §324, §397).
// The seat's `build` acting rule matches an artifact by its kind, an image having no language (design 47 G §324, §397),
// and names no bound: the acting part's hold ends (H-A-57, H-A-70).
func TestTheSeatsBuildRuleActsOnTheKindImage(t *testing.T) {
raw, err := os.ReadFile("../../mesh-delivery-contracts/seats/node-build-image/seat.json")
if err != nil {
@@ -18,7 +19,7 @@ func TestTheSeatsBuildRuleActsOnTheKindImage(t *testing.T) {
if err := json.Unmarshal(raw, &def); err != nil {
t.Fatal(err)
}
if len(def.Acts) != 1 || def.Acts[0].Step != "build" || def.Acts[0].On != "kind:image" {
t.Errorf("acts = %+v; wanted the one rule {build, kind:image}", def.Acts)
if len(def.Acts) != 1 || def.Acts[0].Step != "build" || def.Acts[0].On != "kind:image" || def.Acts[0].Bound != "" {
t.Errorf("acts = %+v; wanted the one rule {build, kind:image} with no bound", def.Acts)
}
}