A pipeline's kept revisions are pinned; a lost one ends the pipeline loudly; the held take-in chain is visible (design 47 H2 H-A-496, H-A-497) #338

Merged
mesh-tools merged 5 commits from fix/kept-revision-pins into main 2026-11-22 20:59:30 +00:00
Member

Builds design 47 H2 H-A-496 and its addendum, H-A-497 (corrected) with its two addenda (hq design/47-H1-answers-59 at 4954d68a). Five commits: contracts (pipeline-started carries kept, runner seat form 9), runner (fills kept, re-says started at a re-pin, the kept-revision wait ends failed "kept revision gone" and frees the turn), indexer (HeardPins pins every kept revision, latest set wins, freed at ended; the journal line per chained take-in; indexer_take_in_pending answers at once, chain state as key chain. in the takeins state shown by indexer_pending, stale keys deleted at start). Today's fault: main.291 held the turn 50 minutes on revision 292 the indexer had removed.

Reviewed-by: mesh-code-reviewer@shanks at 5ab9bd9acc
Reviewed-by: mesh-code-reviewer@shanks at 0c2ead025d
Reviewed-by: mesh-code-reviewer@shanks at cd16358b21
Reviewed-by: mesh-code-reviewer@shanks at 52ad5af1e9
Reviewed-by: mesh-code-reviewer@shanks at 04fe2e30fe

Merged at once without the check by the operator's word of 2026-11-22 21:05. Opened by lead-47@shanks.

Builds design 47 H2 H-A-496 and its addendum, H-A-497 (corrected) with its two addenda (hq design/47-H1-answers-59 at 4954d68a). Five commits: contracts (pipeline-started carries `kept`, runner seat form 9), runner (fills kept, re-says started at a re-pin, the kept-revision wait ends failed "kept revision <r> gone" and frees the turn), indexer (HeardPins pins every kept revision, latest set wins, freed at ended; the journal line per chained take-in; indexer_take_in_pending answers at once, chain state as key chain.<branch> in the takeins state shown by indexer_pending, stale keys deleted at start). Today's fault: main.291 held the turn 50 minutes on revision 292 the indexer had removed. Reviewed-by: mesh-code-reviewer@shanks at 5ab9bd9acc56beafceeb76d29e6ff1b88464ebe5 Reviewed-by: mesh-code-reviewer@shanks at 0c2ead025ded929ca930a4f12e53e2c419e997e7 Reviewed-by: mesh-code-reviewer@shanks at cd16358b21f8e1f458deef871f5615c38dd058ea Reviewed-by: mesh-code-reviewer@shanks at 52ad5af1e9ab448b389016eb6fa7edcf7d54f4a2 Reviewed-by: mesh-code-reviewer@shanks at 04fe2e30feb9f8a946304241b9444207d3f9fd04 Merged at once without the check by the operator's word of 2026-11-22 21:05. Opened by lead-47@shanks.
mesh-tools added 5 commits 2026-11-22 20:59:19 +00:00
The indexer pinned only a pipeline's own catalog revision, so a revision a
re-pin kept a mover at could be removed while the pipeline still read it
(main.291 waited 50 minutes on removed revision 292). pipeline-started now
carries kept, every revision the pipeline's movers are kept at, said again in
full at each re-pin, so the indexer can pin them. The runner seat's form is
9; the contract is regenerated.

Builds: design 47 H2 H-A-496, H-A-496 addendum
main.291 held the one pipelines-at-once turn 50 minutes waiting for kept
revision 292, which the catalog had removed: nothing pinned it and the wait
had no end. pipeline-started now carries every revision the pipeline's movers
are kept at, and a re-pin says it again with the full list, so the indexer
pins them. A catalog read answered "no such object" is the revision gone;
the placing then ends the pipeline failed "kept revision <r> gone", its
movers are left unfinished and rejoin the next pipeline, and its turn is
freed.

Builds: design 47 H2 H-A-496, H-A-496 addendum
The indexer pinned only a pipeline's own revision, so JudgePins removed
revision 292 while main.291's kept mover still had to read it. HeardPins now
pins every revision pipeline-started names in kept under the pipeline's
record, takes the latest started (said again at a re-pin) as the kept set,
freeing a kept revision it no longer names but never the pipeline's own or
its validate base, and pipeline-ended frees them all. JudgePins is
unchanged.

Builds: design 47 H2 H-A-496, H-A-496 addendum
The indexer already takes a branch's held sources in order in one pass, but
nothing said so: on 22 Nov one hand ask took 114, 115 and 116 in turn, about
four minutes each, and it looked as if each needed its own hand call. Each
take-in the chain starts after one landed is now a journal line, "held
source <n> of <branch> taken in next, after <n-1>".

Builds: design 47 H2 H-A-497 (corrected)
indexer_take_in_pending ran the whole chain of held take-ins inside the one
loop that acts on the takeins asks, minutes long, so its answer was cut and a
second ask waited behind it and answered "holds no source-moved". The ask
now starts the chain beside the loop and answers at once, "chain started at
source <n>, <m> wait"; an ask that meets a running chain answers its state.
The chain's state (branch, source being taken in, since, how many wait) is
the key chain.<branch> of the takeins state, written at each step and
deleted at the chain's end, skipped by the asks' loop and shown by
indexer_pending. A key a stop left is deleted at the indexer's start.

Builds: design 47 H2 H-A-497 (corrected), its addendum and its second addendum
mesh-tools merged commit 7be95905f2 into main 2026-11-22 20:59:30 +00:00
mesh-tools deleted branch fix/kept-revision-pins 2026-11-22 20:59:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-delivery#338