Builder: a reservation's kept publishes are taken in before its bound is judged; version-unreleased only for a version left unpublished, never over a finding that stands (issue 1984) #360

Merged
mesh-tools merged 5 commits from fix/builder-record-digests into main 2026-11-23 18:34:53 +00:00
5 Commits
Author SHA1 Message Date
jschoubben ee80b0be47 mesh-delivery-builder: a bound's end raises nothing for a reservation whose every artifact is published (issue 1984, review round 2)
The bound's end (ended) raised version-unreleased for a built reservation
whose every artifact was published, saying "an artifact is unpublished",
while arm past the bound leaves that reservation waiting for its
version-released. 1984/AC5 raises only for a built reservation left unmarked
past its bound, so ended now raises nothing when no artifact is missing.

Builds: issue 1984 note 8 (1984/AC5), design 47 G §369
2026-11-23 18:47:14 +01:00
jschoubben 83f858df7a mesh-delivery-builder: judge a built reservation's bound after its kept published are taken in; only a raise with words of its own writes over a standing version-unreleased (issue 1984, review round 2)
A built reservation's bound was judged before the published kept on it were
taken in, at a look (Built) and at the start: one past its bound whose kept
published mark every artifact (note 8's own case) raised version-unreleased
naming every artifact unpublished, then said package-published for each, and
the false finding stood until its version-released. The kept are now taken in
first (Kept answers the reservation as its take-in left it), and the bound is
armed or judged on that reservation.

The bound's end (ended) raised "nothing within" over the words the publish
again left within the bound, the kind round 1 fixed past the bound. Every raise
that says only the bound ended or could not be armed now goes through lapsed,
which raises only when no version-unreleased of the module stands (Held,
design 47 G A-38). The raises with words of their own, a holder's refusal of a
publish again (ADR 0674 §3: left "raised with the holder's words") and a digest
no artifact carries (A-490j: "fails loudly"), still write over a standing one.

Builds: issue 1984 note 8 (1984/AC5), design 47 G §369, A-415, A-38, A-490j, ADR 0674 §3
2026-11-23 18:43:45 +01:00
jschoubben 8e600d3a52 Merge mesh-delivery main a118976b into fix/builder-record-digests (issue 1984) 2026-11-23 18:40:24 +01:00
jschoubben 828f905694 mesh-delivery-builder: a standing version-unreleased keeps its words past the bound (issue 1984, review round 1)
The past-bound branch of arm is reached at every look, and raised
version-unreleased again each time as "nothing within 10m0s of its build",
writing over the words it was left with (a holder's refusal, ADR 0674 §3;
design 47 G A-490j). Once the bound has passed it now raises only when the
held writer holds no version-unreleased of the module (Held, design 47 G
A-38).

Builds: issue 1984 note 8 (1984/AC5), design 47 G §369, A-38, A-490j
2026-11-23 18:22:21 +01:00
jschoubben d0a04b77f0 mesh-delivery-builder: record a build's digests in one write and take a built reservation in from its state (issue 1984)
mesh-delivery-contracts 0.1.108's 39 digests were recorded one artifact at a
time, each a rewrite and a reindex (about 850 index reads), and timed out three
times under the one-minute record bound after its build was ended: its bound was
never armed, the published kept on it never taken in, and RecordAgain skipped it
since its build stood ended, so nothing said it (main.495's tier 2 held).

- versions.Reserver.Built takes the whole digest map: one compare-and-set of the
  reservation and one reindex; an artifact recorded already is skipped, so a
  record tried again writes only what the one before left, and nothing when all
  stand (1984/AC4). It answers the reservation as written, so the holder no
  longer reads every reservation after the record.
- What follows a record follows the reservation's state: RecordAgain hands a
  recorded reservation to Built at every look, and the start takes in every
  built one not released: its bound is armed, counted from its build's end, and
  the published kept on it are taken in and said as package-published; one left
  with an artifact unpublished past its bound raises version-unreleased at once
  and is not armed again (1984/AC5).

Builds: issue 1984 note 8 (1984/AC4, AC5), design 47 G §369, A-415, A-456b, A-457a, H-A-492
2026-11-23 18:22:14 +01:00