B0's run job, its input verb and judged-by move from mesh-sdk's go/delivery into the Delivery domain's contracts, with B0's JSON names: the part build-step carries StepAsk.run and the defs RunJob, RunProgram, RunHead, RunInput and RunAnswer beside compose (the lead's ruling on Q1), and a step's result the run's exit, output and said. Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
317 lines
7.8 KiB
JSON
317 lines
7.8 KiB
JSON
[
|
|
{
|
|
"name": "a running step",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "a1b2",
|
|
"tool": "build",
|
|
"node": "ace",
|
|
"state": "running",
|
|
"started": "2026-11-05T10:00:00Z"
|
|
}
|
|
},
|
|
{
|
|
"name": "a paused node",
|
|
"of": "state:pauses/paused.<node>",
|
|
"given": {
|
|
"v": 1,
|
|
"paused": true,
|
|
"by": "operator@shanks",
|
|
"at": "2026-11-05T10:00:00Z"
|
|
}
|
|
},
|
|
{
|
|
"name": "a node's capacity",
|
|
"of": "state:pauses/capacity.<node>",
|
|
"given": {
|
|
"v": 1,
|
|
"effective": 2,
|
|
"configured": 2,
|
|
"why": "the configured steps fit the cores"
|
|
}
|
|
},
|
|
{
|
|
"name": "a node's toolchain",
|
|
"of": "state:toolchains/<node>.<language>",
|
|
"given": {
|
|
"v": 1,
|
|
"language": "go",
|
|
"version": "1.26.0",
|
|
"recipe": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "a build ask",
|
|
"of": "accept:delivery",
|
|
"subject": "mesh.seat.node-build-go.accept.delivery",
|
|
"given": {
|
|
"id": "a1b2",
|
|
"kind": "build",
|
|
"language": "go",
|
|
"asker": "mesh-delivery-builder",
|
|
"build": {
|
|
"module": "nats",
|
|
"artifacts": [
|
|
{
|
|
"artifact": "go"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a check ask with its fetch, siblings and levels",
|
|
"of": "accept:check",
|
|
"subject": "mesh.seat.node-build-go.accept.check",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d4",
|
|
"kind": "check",
|
|
"language": "go",
|
|
"asker": "mesh-delivery-checker",
|
|
"at": "2026-11-05T10:00:00Z",
|
|
"check": {
|
|
"fetch": {
|
|
"repository": "novox/mesh-catalog",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567",
|
|
"ref": "refs/pull/7/head",
|
|
"base": "89abcdef0123456789abcdef0123456789abcdef",
|
|
"beside": [
|
|
{
|
|
"repository": "novox/mesh-sdk",
|
|
"commit": "fedcba9876543210fedcba9876543210fedcba98"
|
|
}
|
|
],
|
|
"packages": {
|
|
"git.novox.be/novox/mesh-sdk/go": "fedcba9876543210fedcba9876543210fedcba98"
|
|
}
|
|
},
|
|
"levels": [
|
|
"unit",
|
|
"integration"
|
|
],
|
|
"kept": true,
|
|
"toolchain": {
|
|
"language": "go",
|
|
"version": "1.26.0",
|
|
"recipe": "2"
|
|
},
|
|
"node-names": [
|
|
"ace",
|
|
"g14"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished build step with its artifacts",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "a1b2",
|
|
"tool": "build",
|
|
"node": "ace",
|
|
"state": "passed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:03:00Z",
|
|
"result": {
|
|
"artifacts": [
|
|
{
|
|
"artifact": "go",
|
|
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"reference": "container-image-registry/nats/go@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
}
|
|
],
|
|
"toolchain": {
|
|
"language": "go",
|
|
"version": "1.26.0",
|
|
"recipe": "1"
|
|
},
|
|
"imports": [
|
|
"git.novox.be/novox/mesh-sdk/go"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished check step with its levels",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d4",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "passed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:06:00Z",
|
|
"result": {
|
|
"fetch": {
|
|
"workspace": "mvii1iwu5414e4",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567",
|
|
"modules": [
|
|
"."
|
|
],
|
|
"base": "abcdef0123456789abcdef0123456789abcdef01",
|
|
"merge": "fedcba9876543210fedcba9876543210fedcba98",
|
|
"changed": [
|
|
"a.go",
|
|
"modules/m/main.go"
|
|
],
|
|
"trees": {
|
|
"modules/m": {
|
|
"tree": "1111111111111111111111111111111111111111",
|
|
"manifest": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
"locks": {
|
|
"go.sum": "c5fc83c01e92404452b986527d239140ccf9a48b88e0c268fbf38c2e1429e9c9"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"levels": [
|
|
{
|
|
"level": "unit",
|
|
"digest": {
|
|
"level": "unit",
|
|
"packages": [
|
|
{
|
|
"package": "./modules/a",
|
|
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
}
|
|
]
|
|
},
|
|
"kept": [
|
|
{
|
|
"package": "./modules/a",
|
|
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
"tests": 12
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"package": "./modules/b",
|
|
"pass": true
|
|
}
|
|
],
|
|
"unmet": [
|
|
{
|
|
"package": "./modules/c",
|
|
"needs": [
|
|
"docker"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a declined step",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d5",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "refused",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"result": {
|
|
"declined": true,
|
|
"needs": [
|
|
"docker"
|
|
],
|
|
"lacks": [
|
|
"docker"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished check step whose head does not merge",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d5",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "passed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:01:00Z",
|
|
"result": {
|
|
"fetch": {
|
|
"workspace": "mvii1iwz5050eb",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567",
|
|
"modules": [
|
|
"."
|
|
],
|
|
"base": "abcdef0123456789abcdef0123456789abcdef01",
|
|
"conflicts": [
|
|
"a.go",
|
|
"sub/b.go"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a run ask of the checking program over two heads",
|
|
"of": "accept:check",
|
|
"subject": "mesh.seat.node-build-go.accept.check",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "r5e6",
|
|
"kind": "check",
|
|
"language": "go",
|
|
"asker": "mesh-delivery-checker",
|
|
"at": "2026-11-05T10:00:00Z",
|
|
"run": {
|
|
"program": {
|
|
"repository": "novox/mesh-delivery",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567",
|
|
"dir": "modules/mesh-delivery-checker",
|
|
"package": "./cmd/mesh-checking-program"
|
|
},
|
|
"heads": [
|
|
{
|
|
"repository": "novox/mesh-delivery",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567"
|
|
},
|
|
{
|
|
"repository": "novox/mesh-sdk",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567"
|
|
}
|
|
],
|
|
"input": {
|
|
"verb": "seat:mesh-delivery-checker.input",
|
|
"digest": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"size": 7
|
|
},
|
|
"args": [
|
|
"-verdict"
|
|
],
|
|
"reader": "checking program of mesh-delivery head"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished run step whose program exited non-zero",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "r5e6",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "failed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:01:00Z",
|
|
"result": {
|
|
"built": true,
|
|
"key": "program-0123456789abcdef",
|
|
"exit": 2,
|
|
"said": "the facts name no head"
|
|
}
|
|
}
|
|
}
|
|
]
|