Design 47 H1: the artifact sweep runs one pending pass from one paged read, and stops on an unread list (H-A-250)

A finished build or a want change started a sweep and an observation each, every one reading the builder's builds key
by key and asking the registry's list again, queued behind one lock: a third of the night's bus flood. Now an event
marks the one pending pass, a pass running when marked runs once more, the builds are read in pages of the state with
each build's end from the page, and a list the registry seats cannot answer ends the pass with artifact-list-unread,
written once and cleared by a pass that reads it.

Builds: design 47 H §H-A-250 (1), (2), (3)
This commit is contained in:
2026-11-21 11:54:46 +01:00
parent eb443cfc24
commit c01a816385
7 changed files with 311 additions and 52 deletions
+8
View File
@@ -119,3 +119,11 @@ removed for `retention` on its seat (`release`, `remove`). It reads a reference
and `<seat>/<module>/<artifact>@<digest>`, as one artifact, and says artifacts-gone in the form the build named it. A
call a seat refuses stops the sweep and writes the finding `sweep-refused` in the module's findings; the next sweep no
seat refuses clears it (`sweepseats.go`).
### One pending pass
A finished build or a changed want marks the one pending pass (design 47 H, H-A-250); a pass running when one is marked
runs once more when it ends, however many events marked it. A pass reads the builder's builds in pages of the state, one
answer for many keys, never one get per key, and sweeps and observes S25 from that one judgement. A list the registry
seats cannot answer ends the pass with the finding `artifact-list-unread`, written once; nothing asks the list again
until the next event, and a pass that reads it clears the finding (`holder.go`, `sweepseats.go`).