DC6 runner-reads-bounded: MoverRow carries fingerprint and version, show and stands take a bound and page by a cursor, pipeline-started's movers are StartedMover

Builds: design 47 H2 H-A-709 (1) (2) (3), H-A-717 (DQ-52, DQ-57)
This commit is contained in:
2026-11-25 17:09:56 +01:00
parent 8865d61bec
commit 6dc9164504
6 changed files with 272 additions and 31 deletions
@@ -20,7 +20,7 @@ const Form = 13
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "13"
generatedFieldsDigest = "AcceptAnswer=224df0394653 Accepted=d2b011e5090f AskAgainAnswer=224df0394653 CancelAnswer=a0dcc32b3f57 EndAgainAnswer=a0dcc32b3f57 FailedStep=cd7184342136 Fill=7a76c9ceb157 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 KeptAnswer=dfe0d48bc169 KeptByLevelDigestValue=f06c90f7da7f KeptResult=af5f81f189b7 ListAnswer=284210b3c054 LogEntry=b059967b2ae4 Member=8a103baec01f Mover=5db376275bcf MoverAdded=6966283f6909 MoverAddedEvent=b24ae82030ab MoverEnded=4b35095f6829 MoverRow=b61f41d131a3 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=397a8219a855 PipelineStarted=582f8ff3b28d PipelineStartedEvent=eaa401af4117 PipelinesByBranchRevisionAgainNValue=693580eed498 PipelinesByBranchRevisionUnfinishedModuleValue=693580eed498 PipelinesByBranchRevisionValue=693580eed498 PipelinesByBranchRunRunValue=693580eed498 PipelinesByBranchSourcePublishedPackageVersionValue=693580eed498 PipelinesByStepsPipelineMoverValue=94de99db7816 PlaceAnswer=a0dcc32b3f57 PlaceUnfinishedAnswer=ed94ced4513a Published=d9af3024dacc QueueByQueueNextValue=765a2918a728 QueueByRunningPipelineValue=ed94ced4513a QueueByWaitingSequenceValue=99605298ae13 RePinnedEvent=92fd04bfa6d3 RerunAnswer=9b7efd0df344 ReviewAnswer=f397b8965179 RoomEvent=5bd4df78ed84 RunAnswer=96bd45aa2e62 RunStarted=b280617410c3 RunStartedEvent=0767a9358fa3 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 ShowAnswer=48b8cecc529a StandsAnswer=0afa3693bf3b StartAnswer=ed94ced4513a StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=bdaa8bbfbcab StepStartedEvent=799020642c19 TestCounts=9c1332427159 TestRun=ca5a87f3b6b8 TestRunPackage=a7d30558470d TestRunReader=c9b30cc4d0d0 TestRunsAnswer=7ab81a45ca33 TestRunsDropAnswer=8ee70b35469d ToolchainUsed=43b6d42376fb Wait=21e4ee7a3ef1 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 Waiting=ed94ced4513a WhyCarriedAnswer=8e2fcea6479f Widening=e2790a307466"
generatedFieldsDigest = "AcceptAnswer=224df0394653 Accepted=d2b011e5090f AskAgainAnswer=224df0394653 CancelAnswer=a0dcc32b3f57 EndAgainAnswer=a0dcc32b3f57 FailedStep=cd7184342136 Fill=7a76c9ceb157 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 KeptAnswer=dfe0d48bc169 KeptByLevelDigestValue=f06c90f7da7f KeptResult=af5f81f189b7 ListAnswer=284210b3c054 LogEntry=b059967b2ae4 Member=8a103baec01f Mover=5db376275bcf MoverAdded=6966283f6909 MoverAddedEvent=b24ae82030ab MoverEnded=4b35095f6829 MoverRow=b7ceefe24722 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=397a8219a855 PipelineStarted=d5fc3ee236c7 PipelineStartedEvent=eaa401af4117 PipelinesByBranchRevisionAgainNValue=693580eed498 PipelinesByBranchRevisionUnfinishedModuleValue=693580eed498 PipelinesByBranchRevisionValue=693580eed498 PipelinesByBranchRunRunValue=693580eed498 PipelinesByBranchSourcePublishedPackageVersionValue=693580eed498 PipelinesByStepsPipelineMoverValue=94de99db7816 PlaceAnswer=a0dcc32b3f57 PlaceUnfinishedAnswer=ed94ced4513a Published=d9af3024dacc QueueByQueueNextValue=765a2918a728 QueueByRunningPipelineValue=ed94ced4513a QueueByWaitingSequenceValue=99605298ae13 RePinnedEvent=92fd04bfa6d3 RerunAnswer=9b7efd0df344 ReviewAnswer=f397b8965179 RoomEvent=5bd4df78ed84 RunAnswer=96bd45aa2e62 RunStarted=b280617410c3 RunStartedEvent=0767a9358fa3 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 ShowAnswer=8609ff359791 StandsAnswer=e05cecdde456 StartAnswer=ed94ced4513a StartedMover=4450a94e6ca3 StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=bdaa8bbfbcab StepStartedEvent=799020642c19 TestCounts=9c1332427159 TestRun=ca5a87f3b6b8 TestRunPackage=a7d30558470d TestRunReader=c9b30cc4d0d0 TestRunsAnswer=7ab81a45ca33 TestRunsDropAnswer=8ee70b35469d ToolchainUsed=43b6d42376fb Wait=21e4ee7a3ef1 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 Waiting=ed94ced4513a WhyCarriedAnswer=8e2fcea6479f Widening=e2790a307466"
)
const (
@@ -72,11 +72,11 @@ func VerbDescription(verb string) string {
case VerbStart:
return "A delivering pipeline for a watched branch's head, by hand; written in the hand-act log. With modules, a pipeline at the head keyed <branch>.<revision>.again.<n> carrying the named modules whose newest entry has no passed pipeline, at the take-in's tiers; a module whose newest entry passed is refused by name. Exactly one of module or modules (design 47 H2 H-A-479)."
case VerbShow:
return "One pipeline: naming a mover, its steps alone; with no mover, each mover's row (its module, outcome and failed step), never every step of every mover, or the steps of any mover the step and state filters hold; and its step log, with the stores' fill (design 47 H2 §789, H-A-376). Reads only."
return "One pipeline: naming a mover, its steps alone; with no mover, each mover's row (its module, outcome and failed step), never every step of every mover, or the steps of any mover the step and state filters hold; and its step log, with the stores' fill (design 47 H2 §789, H-A-376). The answer names only the movers its page holds, with each row's fingerprint and version, mover-count and step-count and no unlogged; it answers within bound, capped, total and next, and moved true when the record was written between two pages (design 47 H2 H-A-709 (1), (2)). Reads only."
case VerbList:
return "The pipelines and runs of a module, a branch or a commit, newest first, of every branch when none is named (design 47 H2 H-A-533): by default one short row per pipeline, the newest 20 (its key, branch, call, source, revision, start, end, outcome, movers' count, its steps counted per outcome and first failed or could-not-run step with its module and why); the whole pipelines, each record with its movers and steps counted, never its steps (show gives those), only with full and a limit (design 47 H2 H-A-376, H-A-467). Reads only."
case VerbStands:
return "What stands still, and since when: each step not ended and each wait held. Reads only."
return "What stands still, and since when: each step not ended and each wait held, in the order of their since, then their pipeline, module, step and artifact, within bound; reads only (design 47 H2 H-A-709 (2))."
case VerbWhyCarried:
return "Where a step's result was carried from, with the kept results it rests on. Reads only."
case VerbKept:
@@ -768,9 +768,13 @@ type MoverEnded struct {
// MoverRow is one mover of a pipeline in show's short form (design 47 H2 H-A-376).
type MoverRow struct {
Failed *FailedStep `json:"failed,omitempty"`
Module string `json:"module"`
// the mover's build-input fingerprint, which the delivery view's pipeline page reads from the row (design 47 H2 H-A-709 (1))
Fingerprint string `json:"fingerprint,omitempty"`
Module string `json:"module"`
// waiting for a mover with no step placed; running while a required step is open; failed once a required step did not pass; superseded for one a newer pipeline took out
Outcome string `json:"outcome"`
// the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1))
Version string `json:"version,omitempty"`
}
// The values of MoverRow's outcome.
@@ -793,7 +797,7 @@ type Pipeline struct {
Ended *time.Time `json:"ended,omitempty"`
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
Form int64 `json:"form,omitempty"`
// how many movers the pipeline has, set by list alone (H-A-191)
// how many movers the pipeline has, set by list and by show (H-A-191, design 47 H2 H-A-709 (1))
MoverCount int64 `json:"mover-count,omitempty"`
// the modules the pipeline moves, its take-in's entries (design 47 H §746)
Movers []Mover `json:"movers"`
@@ -811,13 +815,13 @@ type Pipeline struct {
// the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)
Source int64 `json:"source"`
Started *time.Time `json:"started,omitempty"`
// how many steps the pipeline's movers have, set by list alone, which answers the record with its steps empty (H-A-191)
// how many steps the pipeline's movers have, set by list, which answers the record with its steps empty, and by show (H-A-191, design 47 H2 H-A-709 (1))
StepCount int64 `json:"step-count,omitempty"`
// every mover's steps, each naming its mover, approval last; in the state pipelines a record's own are empty, each mover's kept under its own key (H-A-187)
Steps []StepResult `json:"steps"`
// the modules a newer waiting take-in of the same branch took out of the pipeline, written with the movers by compare-and-set; at its placing the runner writes a mover's build-step why from it (design 47 H §748, H-A-107)
Superseded []string `json:"superseded,omitempty"`
// the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189)
// the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189); show's answer carries none (design 47 H2 H-A-709 (1))
Unlogged []LogEntry `json:"unlogged,omitempty"`
// the layout version
V int64 `json:"v,omitempty"`
@@ -994,8 +998,8 @@ type PipelineStarted struct {
Form int64 `json:"form,omitempty"`
// every catalog revision the pipeline's movers are kept at, said again in full at each re-pin, so the indexer pins each while the pipeline runs (design 47 H2 H-A-496 and its addendum)
Kept []int64 `json:"kept,omitempty"`
// the pipeline's movers
Movers []Mover `json:"movers"`
// the pipeline's movers, each with what its readers read (design 47 H2 H-A-709 (3))
Movers []StartedMover `json:"movers"`
// the pipeline's key, <branch>.<revision>, or <branch>.<source>.published.<package>.<version> for a pipeline a publish started; a branch escaped as a key's name is (design 47 H §746, §747)
Pipeline string `json:"pipeline"`
// for a pipeline a package's publish started, that publish (A-202)
@@ -1049,6 +1053,20 @@ type Shared struct {
Run string `json:"run"`
}
// StartedMover is one mover of a pipeline-started: what its readers read, the gate's module, fingerprint and version; published, widens, tests, unplaced, revision and over-budget stay in the pipeline's record, read by show (design 47 H2 H-A-709 (3)).
type StartedMover struct {
// the commit the module's entry was last changed at
Commit string `json:"commit"`
// the module's build-input fingerprint at the commit
Fingerprint string `json:"fingerprint"`
Module string `json:"module"`
Repository string `json:"repository"`
// the mover's tier in the pipeline's delivery order, from 1 (ADR 0666 section 14; design 47 H section 746)
Tier int64 `json:"tier,omitempty"`
// the version released for the mover in this pipeline, absent until one is (design 47 H-A-52)
Version string `json:"version,omitempty"`
}
// StepEvent is a step's start or end: the step, its status, its outcome, its fingerprint, its test counts, what a carried result was carried from, and for a rerun that it is one and its proved caller; a bypassed step too.
type StepEvent struct {
At *time.Time `json:"at,omitempty"`
@@ -1338,9 +1356,11 @@ type StartAnswer struct {
// ShowInput is what show takes.
type ShowInput struct {
// the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2))
Bound int64 `json:"bound,omitempty"`
// a mover's module: the answer's pipeline then holds that mover's steps alone (H-A-187); with neither mover, step nor state the answer holds each mover's row (design 47 H2 H-A-376)
Mover string `json:"mover,omitempty"`
// the cursor the previous page answered, opaque; absent for the first page (design 47 H2 §779, §789)
// the cursor the previous page answered, opaque: the place of the next row or step among those the filters hold and the record's revision; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57))
Next string `json:"next,omitempty"`
// the pipeline's key
Pipeline string `json:"pipeline"`
@@ -1364,12 +1384,14 @@ const (
// ShowAnswer is what show answers.
type ShowAnswer struct {
// yes when the answer stopped at 768 KB; the rest is read from next (design 47 H2 §789)
// yes when the answer stopped at bound; the rest is read from next (design 47 H2 H-A-709 (2))
Capped bool `json:"capped,omitempty"`
Fill []Fill `json:"fill,omitempty"`
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
Form int64 `json:"form,omitempty"`
Log []LogEntry `json:"log,omitempty"`
// yes when a page was asked with a next of another revision of the record: it answers from that place, though rows and steps may have changed between the pages; a reader that needs one whole picture reads again with no next (design 47 H2 H-A-709 (2))
Moved bool `json:"moved,omitempty"`
// each mover's row, when show names no mover, step or state (design 47 H2 H-A-376)
Movers []MoverRow `json:"movers,omitempty"`
// the cursor of the next page, opaque; empty at the end (design 47 H2 §779)
@@ -1404,13 +1426,27 @@ type ListAnswer struct {
// StandsInput is what stands takes.
type StandsInput struct {
// the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2))
Bound int64 `json:"bound,omitempty"`
// only this module's waits, applied while reading
Module string `json:"module,omitempty"`
// the cursor the previous page answered, opaque: the place of the last wait answered, so the next page answers the waits after it; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57))
Next string `json:"next,omitempty"`
// only this pipeline's waits, applied while reading
Pipeline string `json:"pipeline,omitempty"`
}
// StandsAnswer is what stands answers.
type StandsAnswer struct {
// yes when the answer stopped at bound; the rest is read from next
Capped bool `json:"capped,omitempty"`
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
Form int64 `json:"form,omitempty"`
Form int64 `json:"form,omitempty"`
// the cursor of the next page, opaque; empty at the end
Next string `json:"next,omitempty"`
Stands []Wait `json:"stands"`
// how many waits the filters hold in all
Total int64 `json:"total,omitempty"`
}
// WhyCarriedInput is what why-carried takes.
@@ -17,7 +17,7 @@ func TestFixtures(t *testing.T) {
decode func([]byte) (any, error)
subjectIs *regexp.Regexp
}{
{name: "a take-in's pipeline started with its two movers", subject: "mesh.seat.mesh-pipeline-runner.event.pipeline-started.main.3589", given: "{\"at\":\"2026-11-10T10:00:00Z\",\"branch\":\"main\",\"call\":\"0123456789abcdef\",\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"repository\":\"mesh-sdk\",\"tier\":1},{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":2}],\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"v\":1}", wire: "{\"at\":\"2026-11-10T10:00:00Z\",\"branch\":\"main\",\"call\":\"0123456789abcdef\",\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"repository\":\"mesh-sdk\",\"tier\":1},{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":2}],\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"v\":1}",
{name: "a take-in's pipeline started with its two movers", subject: "mesh.seat.mesh-pipeline-runner.event.pipeline-started.main.3589", given: "{\"at\":\"2026-11-10T10:00:00Z\",\"branch\":\"main\",\"call\":\"0123456789abcdef\",\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"repository\":\"mesh-sdk\",\"tier\":1,\"version\":\"0.1.15\"},{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":2}],\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"v\":1}", wire: "{\"at\":\"2026-11-10T10:00:00Z\",\"branch\":\"main\",\"call\":\"0123456789abcdef\",\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"repository\":\"mesh-sdk\",\"tier\":1,\"version\":\"0.1.15\"},{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":2}],\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"v\":1}",
decode: func(b []byte) (any, error) { var v PipelineStartedEvent; err := json.Unmarshal(b, &v); return v, err }, subjectIs: regexp.MustCompile("^mesh\\.seat\\.mesh-pipeline-runner\\.event\\.pipeline-started\\.[^.*> ]+\\.[^.*> ]+$")},
{name: "a pipeline started again at a re-pin, with the three revisions its movers are kept at (H-A-496)", subject: "mesh.seat.mesh-pipeline-runner.event.pipeline-started.main.291", given: "{\"at\":\"2026-11-22T20:00:00Z\",\"branch\":\"main\",\"kept\":[292,295,298],\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":1}],\"pipeline\":\"main.291\",\"revision\":291,\"source\":114,\"v\":1}", wire: "{\"at\":\"2026-11-22T20:00:00Z\",\"branch\":\"main\",\"kept\":[292,295,298],\"movers\":[{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"repository\":\"mesh-networking\",\"tier\":1}],\"pipeline\":\"main.291\",\"revision\":291,\"source\":114,\"v\":1}",
decode: func(b []byte) (any, error) { var v PipelineStartedEvent; err := json.Unmarshal(b, &v); return v, err }, subjectIs: regexp.MustCompile("^mesh\\.seat\\.mesh-pipeline-runner\\.event\\.pipeline-started\\.[^.*> ]+\\.[^.*> ]+$")},
@@ -143,6 +143,14 @@ func TestFixtures(t *testing.T) {
decode: func(b []byte) (any, error) { var v PlaceUnfinishedInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
{name: "place-unfinished with one key", subject: "", given: "{\"key\":\"main.mesh-sdk\",\"why\":\"the mover passed on its own\"}", wire: "{\"key\":\"main.mesh-sdk\",\"why\":\"the mover passed on its own\"}",
decode: func(b []byte) (any, error) { var v PlaceUnfinishedInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
{name: "show answers a page of movers' rows with their fingerprint and version, moved and capped (H-A-709)", subject: "", given: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\"}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}", wire: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\"}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}",
decode: func(b []byte) (any, error) { var v ShowAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
{name: "stands answers a page, capped, with the total and the cursor of the next (H-A-709)", subject: "", given: "{\"capped\":true,\"next\":\"cursor-2\",\"stands\":[{\"artifact\":\"nats:program\",\"branch\":\"main\",\"module\":\"nats\",\"on\":\"build node\",\"pipeline\":\"main.3589\",\"revision\":12,\"since\":\"2026-11-10T10:00:00Z\",\"source\":3589,\"step\":\"unit\",\"v\":1}],\"total\":300}", wire: "{\"capped\":true,\"next\":\"cursor-2\",\"stands\":[{\"artifact\":\"nats:program\",\"branch\":\"main\",\"module\":\"nats\",\"on\":\"build node\",\"pipeline\":\"main.3589\",\"revision\":12,\"since\":\"2026-11-10T10:00:00Z\",\"source\":3589,\"step\":\"unit\",\"v\":1}],\"total\":300}",
decode: func(b []byte) (any, error) { var v StandsAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
{name: "stands asked for one pipeline and module, within a bound (H-A-709)", subject: "", given: "{\"bound\":32768,\"module\":\"nats\",\"next\":\"cursor-2\",\"pipeline\":\"main.3589\"}", wire: "{\"bound\":32768,\"module\":\"nats\",\"next\":\"cursor-2\",\"pipeline\":\"main.3589\"}",
decode: func(b []byte) (any, error) { var v StandsInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
{name: "show asked within a bound (H-A-709)", subject: "", given: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}", wire: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}",
decode: func(b []byte) (any, error) { var v ShowInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
}
for _, c := range cases {
v, err := c.decode([]byte(c.given))
@@ -16,7 +16,8 @@
"commit": "0123456789abcdef0123456789abcdef01234567",
"fingerprint": "fp-sdk",
"repository": "mesh-sdk",
"tier": 1
"tier": 1,
"version": "0.1.15"
},
{
"module": "nats",
@@ -357,5 +357,82 @@
"key": "main.mesh-sdk",
"why": "the mover passed on its own"
}
},
{
"name": "show answers a page of movers' rows with their fingerprint and version, moved and capped (H-A-709)",
"of": "verb:show.answer",
"given": {
"pipeline": {
"pipeline": "main.3589",
"branch": "main",
"revision": 12,
"source": 3589,
"v": 1,
"outcome": "running",
"mover-count": 129,
"step-count": 516,
"movers": [],
"steps": []
},
"movers": [
{
"module": "nats",
"outcome": "running",
"fingerprint": "fp-0123",
"version": "0.1.9"
},
{
"module": "mesh-sdk",
"outcome": "passed",
"fingerprint": "fp-sdk"
}
],
"capped": true,
"total": 129,
"next": "cursor-1",
"moved": true
}
},
{
"name": "stands answers a page, capped, with the total and the cursor of the next (H-A-709)",
"of": "verb:stands.answer",
"given": {
"stands": [
{
"pipeline": "main.3589",
"module": "nats",
"branch": "main",
"revision": 12,
"source": 3589,
"v": 1,
"step": "unit",
"artifact": "nats:program",
"on": "build node",
"since": "2026-11-10T10:00:00Z"
}
],
"capped": true,
"total": 300,
"next": "cursor-2"
}
},
{
"name": "stands asked for one pipeline and module, within a bound (H-A-709)",
"of": "verb:stands.input",
"given": {
"pipeline": "main.3589",
"module": "nats",
"bound": 32768,
"next": "cursor-2"
}
},
{
"name": "show asked within a bound (H-A-709)",
"of": "verb:show.input",
"given": {
"pipeline": "main.3589",
"bound": 65536,
"next": "cursor-1"
}
}
]
@@ -93,7 +93,7 @@
},
{
"name": "show",
"description": "One pipeline: naming a mover, its steps alone; with no mover, each mover's row (its module, outcome and failed step), never every step of every mover, or the steps of any mover the step and state filters hold; and its step log, with the stores' fill (design 47 H2 §789, H-A-376). Reads only.",
"description": "One pipeline: naming a mover, its steps alone; with no mover, each mover's row (its module, outcome and failed step), never every step of every mover, or the steps of any mover the step and state filters hold; and its step log, with the stores' fill (design 47 H2 §789, H-A-376). The answer names only the movers its page holds, with each row's fingerprint and version, mover-count and step-count and no unlogged; it answers within bound, capped, total and next, and moved true when the record was written between two pages (design 47 H2 H-A-709 (1), (2)). Reads only.",
"input": {
"type": "object",
"properties": {
@@ -125,7 +125,13 @@
},
"next": {
"type": "string",
"description": "the cursor the previous page answered, opaque; absent for the first page (design 47 H2 §779, §789)"
"description": "the cursor the previous page answered, opaque: the place of the next row or step among those the filters hold and the record's revision; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57))"
},
"bound": {
"type": "integer",
"minimum": 4096,
"maximum": 786432,
"description": "the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2))"
}
},
"required": [
@@ -152,7 +158,7 @@
},
"capped": {
"type": "boolean",
"description": "yes when the answer stopped at 768 KB; the rest is read from next (design 47 H2 §789)"
"description": "yes when the answer stopped at bound; the rest is read from next (design 47 H2 H-A-709 (2))"
},
"total": {
"type": "integer",
@@ -168,6 +174,10 @@
"$ref": "#/defs/MoverRow"
},
"description": "each mover's row, when show names no mover, step or state (design 47 H2 H-A-376)"
},
"moved": {
"type": "boolean",
"description": "yes when a page was asked with a next of another revision of the record: it answers from that place, though rows and steps may have changed between the pages; a reader that needs one whole picture reads again with no next (design 47 H2 H-A-709 (2))"
}
},
"required": [
@@ -231,10 +241,29 @@
},
{
"name": "stands",
"description": "What stands still, and since when: each step not ended and each wait held. Reads only.",
"description": "What stands still, and since when: each step not ended and each wait held, in the order of their since, then their pipeline, module, step and artifact, within bound; reads only (design 47 H2 H-A-709 (2)).",
"input": {
"type": "object",
"properties": {}
"properties": {
"pipeline": {
"type": "string",
"description": "only this pipeline's waits, applied while reading"
},
"module": {
"type": "string",
"description": "only this module's waits, applied while reading"
},
"bound": {
"type": "integer",
"minimum": 4096,
"maximum": 786432,
"description": "the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2))"
},
"next": {
"type": "string",
"description": "the cursor the previous page answered, opaque: the place of the last wait answered, so the next page answers the waits after it; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57))"
}
}
},
"answer": {
"type": "object",
@@ -244,6 +273,18 @@
"items": {
"$ref": "#/defs/Wait"
}
},
"capped": {
"type": "boolean",
"description": "yes when the answer stopped at bound; the rest is read from next"
},
"total": {
"type": "integer",
"description": "how many waits the filters hold in all"
},
"next": {
"type": "string",
"description": "the cursor of the next page, opaque; empty at the end"
}
},
"required": [
@@ -1425,15 +1466,15 @@
"items": {
"$ref": "#/defs/LogEntry"
},
"description": "the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189)"
"description": "the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189); show's answer carries none (design 47 H2 H-A-709 (1))"
},
"mover-count": {
"type": "integer",
"description": "how many movers the pipeline has, set by list alone (H-A-191)"
"description": "how many movers the pipeline has, set by list and by show (H-A-191, design 47 H2 H-A-709 (1))"
},
"step-count": {
"type": "integer",
"description": "how many steps the pipeline's movers have, set by list alone, which answers the record with its steps empty (H-A-191)"
"description": "how many steps the pipeline's movers have, set by list, which answers the record with its steps empty, and by show (H-A-191, design 47 H2 H-A-709 (1))"
},
"published": {
"$ref": "#/defs/Published",
@@ -1679,9 +1720,9 @@
"movers": {
"type": "array",
"items": {
"$ref": "#/defs/Mover"
"$ref": "#/defs/StartedMover"
},
"description": "the pipeline's movers"
"description": "the pipeline's movers, each with what its readers read (design 47 H2 H-A-709 (3))"
},
"run": {
"type": "string",
@@ -2378,6 +2419,14 @@
"module": {
"type": "string"
},
"fingerprint": {
"type": "string",
"description": "the mover's build-input fingerprint, which the delivery view's pipeline page reads from the row (design 47 H2 H-A-709 (1))"
},
"version": {
"type": "string",
"description": "the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1))"
},
"outcome": {
"type": "string",
"enum": [
@@ -2437,6 +2486,40 @@
"module",
"fingerprint"
]
},
"StartedMover": {
"type": "object",
"description": "one mover of a pipeline-started: what its readers read, the gate's module, fingerprint and version; published, widens, tests, unplaced, revision and over-budget stay in the pipeline's record, read by show (design 47 H2 H-A-709 (3))",
"properties": {
"module": {
"type": "string"
},
"commit": {
"type": "string",
"description": "the commit the module's entry was last changed at"
},
"fingerprint": {
"type": "string",
"description": "the module's build-input fingerprint at the commit"
},
"repository": {
"type": "string"
},
"tier": {
"type": "integer",
"description": "the mover's tier in the pipeline's delivery order, from 1 (ADR 0666 section 14; design 47 H section 746)"
},
"version": {
"type": "string",
"description": "the version released for the mover in this pipeline, absent until one is (design 47 H-A-52)"
}
},
"required": [
"module",
"commit",
"fingerprint",
"repository"
]
}
},
"form": 13
@@ -303,9 +303,13 @@ export interface MoverEnded {
/** one mover of a pipeline in show's short form (design 47 H2 H-A-376) */
export interface MoverRow {
"failed"?: FailedStep;
/** the mover's build-input fingerprint, which the delivery view's pipeline page reads from the row (design 47 H2 H-A-709 (1)) */
"fingerprint"?: string;
"module": string;
/** waiting for a mover with no step placed; running while a required step is open; failed once a required step did not pass; superseded for one a newer pipeline took out */
"outcome": "waiting" | "running" | "passed" | "failed" | "superseded";
/** the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1)) */
"version"?: string;
}
/** one pipeline of one take-in, its movers the take-in's entries, as the runner keeps it in its state pipelines by compare-and-set (design 47 H §746) */
@@ -319,7 +323,7 @@ export interface Pipeline {
"ended"?: string;
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
/** how many movers the pipeline has, set by list alone (H-A-191) */
/** how many movers the pipeline has, set by list and by show (H-A-191, design 47 H2 H-A-709 (1)) */
"mover-count"?: number;
/** the modules the pipeline moves, its take-in's entries (design 47 H §746) */
"movers": Mover[];
@@ -337,13 +341,13 @@ export interface Pipeline {
/** the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9) */
"source": number;
"started"?: string;
/** how many steps the pipeline's movers have, set by list alone, which answers the record with its steps empty (H-A-191) */
/** how many steps the pipeline's movers have, set by list, which answers the record with its steps empty, and by show (H-A-191, design 47 H2 H-A-709 (1)) */
"step-count"?: number;
/** every mover's steps, each naming its mover, approval last; in the state pipelines a record's own are empty, each mover's kept under its own key (H-A-187) */
"steps": StepResult[];
/** the modules a newer waiting take-in of the same branch took out of the pipeline, written with the movers by compare-and-set; at its placing the runner writes a mover's build-step why from it (design 47 H §748, H-A-107) */
"superseded"?: string[];
/** the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189) */
/** the step-log entries of the steps that ended and are not appended to the step log yet, in order; written with the step's end in one write and cleared when appended (design 47 G sections 486, 606); in the state pipelines a record's own are empty, each mover's kept under its own key beside its steps (H-A-189); show's answer carries none (design 47 H2 H-A-709 (1)) */
"unlogged"?: LogEntry[];
/** the layout version */
"v"?: number;
@@ -487,8 +491,8 @@ export interface PipelineStarted {
"form"?: number;
/** every catalog revision the pipeline's movers are kept at, said again in full at each re-pin, so the indexer pins each while the pipeline runs (design 47 H2 H-A-496 and its addendum) */
"kept"?: number[];
/** the pipeline's movers */
"movers": Mover[];
/** the pipeline's movers, each with what its readers read (design 47 H2 H-A-709 (3)) */
"movers": StartedMover[];
/** the pipeline's key, <branch>.<revision>, or <branch>.<source>.published.<package>.<version> for a pipeline a publish started; a branch escaped as a key's name is (design 47 H §746, §747) */
"pipeline": string;
/** for a pipeline a package's publish started, that publish (A-202) */
@@ -542,6 +546,20 @@ export interface Shared {
"run": string;
}
/** one mover of a pipeline-started: what its readers read, the gate's module, fingerprint and version; published, widens, tests, unplaced, revision and over-budget stay in the pipeline's record, read by show (design 47 H2 H-A-709 (3)) */
export interface StartedMover {
/** the commit the module's entry was last changed at */
"commit": string;
/** the module's build-input fingerprint at the commit */
"fingerprint": string;
"module": string;
"repository": string;
/** the mover's tier in the pipeline's delivery order, from 1 (ADR 0666 section 14; design 47 H section 746) */
"tier"?: number;
/** the version released for the mover in this pipeline, absent until one is (design 47 H-A-52) */
"version"?: string;
}
/** a step's start or end: the step, its status, its outcome, its fingerprint, its test counts, what a carried result was carried from, and for a rerun that it is one and its proved caller; a bypassed step too */
export interface StepEvent {
"at"?: string;
@@ -756,9 +774,11 @@ export interface StartAnswer {
/** is what show takes. */
export interface ShowInput {
/** the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2)) */
"bound"?: number;
/** a mover's module: the answer's pipeline then holds that mover's steps alone (H-A-187); with neither mover, step nor state the answer holds each mover's row (design 47 H2 H-A-376) */
"mover"?: string;
/** the cursor the previous page answered, opaque; absent for the first page (design 47 H2 §779, §789) */
/** the cursor the previous page answered, opaque: the place of the next row or step among those the filters hold and the record's revision; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57)) */
"next"?: string;
/** the pipeline's key */
"pipeline": string;
@@ -770,12 +790,14 @@ export interface ShowInput {
/** is what show answers. */
export interface ShowAnswer {
/** yes when the answer stopped at 768 KB; the rest is read from next (design 47 H2 §789) */
/** yes when the answer stopped at bound; the rest is read from next (design 47 H2 H-A-709 (2)) */
"capped"?: boolean;
"fill"?: Fill[];
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
"log"?: LogEntry[];
/** yes when a page was asked with a next of another revision of the record: it answers from that place, though rows and steps may have changed between the pages; a reader that needs one whole picture reads again with no next (design 47 H2 H-A-709 (2)) */
"moved"?: boolean;
/** each mover's row, when show names no mover, step or state (design 47 H2 H-A-376) */
"movers"?: MoverRow[];
/** the cursor of the next page, opaque; empty at the end (design 47 H2 §779) */
@@ -810,13 +832,27 @@ export interface ListAnswer {
/** is what stands takes. */
export interface StandsInput {
/** the most bytes the answer holds, 4,096 to 786,432; absent, the runner's setting answer-bound (design 47 H2 H-A-709 (2)) */
"bound"?: number;
/** only this module's waits, applied while reading */
"module"?: string;
/** the cursor the previous page answered, opaque: the place of the last wait answered, so the next page answers the waits after it; a next the runner cannot read as its own is refused, a page being read again from the start (design 47 H2 H-A-709 (2), H-A-717 (DQ-57)) */
"next"?: string;
/** only this pipeline's waits, applied while reading */
"pipeline"?: string;
}
/** is what stands answers. */
export interface StandsAnswer {
/** yes when the answer stopped at bound; the rest is read from next */
"capped"?: boolean;
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
/** the cursor of the next page, opaque; empty at the end */
"next"?: string;
"stands": Wait[];
/** how many waits the filters hold in all */
"total"?: number;
}
/** is what why-carried takes. */