Indexer and assigner: a take-in blanks only a mover's entry; a run's empty pin is filled from mesh-builds.published or waited for (issue 1984) #361

Merged
mesh-tools merged 9 commits from fix/1984-empty-pin into main 2026-11-23 22:37:59 +00:00
9 Commits
Author SHA1 Message Date
jschoubben 773ba91222 assigner: at the put of a run that waited for a package its readers wait for a build node again (issue 1984, review round 1)
Once a run's wait for a package's publish ended and its run ask was put,
`waits` was deleted but its readers' newest wait-held still said they
waited for the package's publish, until ask-taken's wait-ended. Now the
start that deletes `waits` as it writes the run's program says its
readers' wait-held for a build node again, under their held id with
.put added, so the bus's duplicate window keeps it apart from the first;
the composition and the validate run alike.

Tests: TestTheCompositionStepRunsOneAskPerMachine, the wait's rows: after
the put each machine's newest wait-held is for a build node under its
held id with .put; TestTheValidateStepRefusesAManifestProblemAndACycle,
revision 14: the reader is said waiting for mesh-sdk's publish, then for
a build node again at the put. Both failed first without the say at the
put.

Builds: design 47 H2 H-A-632 (hq c7f31726, f9be4ef0); H-A-630 (5) (hq 1cdfa6ff); H-A-629 (1), (2) (hq 8aa70271)
2026-11-23 23:19:56 +01:00
jschoubben 5884f8ed7b assigner: while a run waits for a package's publish its readers' wait-held names that package (issue 1984, review round 1)
A run waiting for a package's publish left its readers said waiting for
a build node (`on: build node`), though no ask was put. While the run's
value holds `waits`, waitOf now says the step waits for the publish of
that package (`on: publish of package <path>`, since the wait began),
naming the package and the entry, never a build node; the readers are
said so when the wait begins, under their held id with the package's
path added, so the bus's duplicate window keeps it apart from the first,
and a reader joining a waiting run is said so at its join.

Test: TestTheCompositionStepRunsOneAskPerMachine, the wait's rows: each
reader's wait-held names the publish of x/go and the node-engine's entry
(failed first, no such wait-held within 10 s, with waitOf ignoring
`waits`).

Builds: design 47 H2 H-A-630 (5) (hq 1cdfa6ff); H-A-631 (hq ee89b857); A-469y
2026-11-23 23:17:41 +01:00
jschoubben a46f14ba23 assigner: the words past a wait's bound name the package, the entry and the bound (issue 1984, review round 1)
A run past its wait's bound ended "package <path> has no published
version within <bound>", naming no entry, and two of its three paths
(the bound's expiry and the take-up at a start) read only the run's
value. The seat mesh-wants' CompositionRunWaits gains `entry`, the words
of the import-form entry the run is built from (such as "the
node-engine's entry src2:e1"), written with the package when the wait
begins; the waiting start's end, the expiry and the take-up all say
"package <path> has no published version within <bound>
(package-wait-minutes), named with no version in <entry>" from it. The
definition's form stays 3, raised by this fix; the Go and TypeScript
contracts regenerated by seatgen (seatgen -check passes).

Tests: TestTheCompositionStepRunsOneAskPerMachine, the wait's rows: the
waiting run's `waits` holds its entry; "past its bound" (the expiry) and
a new "past its bound at a take-up" (takeUpWaits) end saying package,
entry and bound (both failed first with no entry written);
TestTheCompositionStepComposesEachMachineThroughTheBuildSeat (whole,
embedded bus): the waiting run's entry, and the take-up's and the
expiry's words with it.

Builds: design 47 H2 H-A-630 (4) (hq 1cdfa6ff); H-A-631 (hq ee89b857); H-A-628 (3), (5) (hq cea6404c); H-A-629 (1) (hq 8aa70271); H2 §780
2026-11-23 23:14:57 +01:00
jschoubben dc2ddb871a assigner: a run's start and its wait run on the assigner's own context (issue 1984, review round 1)
The composition and validate runs were started on the context of the
step that started them, so a supersede or a drop of that step ended the
wait for a package's publish silently, while other steps share the run:
it then waited, woken by nothing, until its bound ended it "no published
version" though the package stood published. The start, its wait and
its run ask now run on the assigner's own context (compositionRun.own),
as the take-up's do.

Tests: TestTheCompositionStepRunsOneAskPerMachine, the wait's rows gain
"superseded": a second step joins the waiting runs, the starting step's
context ends, the runs stay waiting with both readers, and at the
publish the second step reads them composed with the pin;
TestTheValidateStepRefusesAManifestProblemAndACycle, revision 14: the
validate run waiting for mesh-sdk's publish outlives its starting step
and ends passed after the publish. Both failed first (no end within
10 s) with the start on the step's context.

Builds: design 47 H2 H-A-630 (3) (hq 1cdfa6ff); H-A-628 (3) (hq cea6404c); H-A-629 (3) (hq 8aa70271)
2026-11-23 23:11:32 +01:00
jschoubben 051e104f1b assigner: each bind of the package-published consumer wakes every waiting run (issue 1984, review round 1)
The bind wake stood in main.go untested. It now sits beside the
consumer's handler in hearPublished, which registers both: each bind of
the assigner's consumer of package-published wakes every run waiting for
a package's publish to read published again, since an event said while
the consumer was not bound is never heard.

Test: TestTheCompositionStepRunsOneAskPerMachine, the wait's rows gain
"bind": x/go published with no event heard, a bind of the consumer wakes
each waiting run, which reads it published and puts its run ask with the
pin (failed first, no end within 10 s, with the bind's hearer removed).

Builds: design 47 H2 H-A-630 (2) (hq 1cdfa6ff); H-A-628 (3) (hq cea6404c)
2026-11-23 23:06:56 +01:00
jschoubben 8a1605d283 assigner: a package-published wakes only the runs waiting for its artifact's package (issue 1984, review round 1)
Every package-published heard woke every run waiting for any package,
each asking mesh-builds' published again. Now the wake is kept per the
artifact of a package's publisher: the assigner's consumer reads the
heard event's artifact (hearPublished) and wakes only the runs whose
`waits` names the package that artifact publishes, as the runner's
hearPublished matches by artifact; a publish of another package wakes
none and asks no published. An event that does not read is journaled
and wakes none. Each bind of the consumer still wakes every waiting run
(heardBind).

Test: TestTheCompositionStepRunsOneAskPerMachine, the wait's row: a
package-published of y:go, handed to the consumer's handler while the
runs wait for x/go, leaves their wake standing and asks no published;
x:go's own then wakes them (failed first with the wake ignoring the
artifact).

Builds: design 47 H2 H-A-630 (1) (hq 1cdfa6ff); H-A-628 (3) (hq cea6404c); H-A-326
2026-11-23 23:05:51 +01:00
jschoubben 4bcc12d7b1 T3 assigner: a run waits for its package's publish, bounded, then could not run naming it (issue 1984)
T2 ended a composition or validate run at once when its entry named a
package whose publisher's build in the step's revision was not published
yet. Now the run waits: it reads mesh-builds' published first and again
at each package-published heard (and at each bind of the consumer); the
run's value names the package and the time its wait began in `waits`;
its bound bound.<run key> is armed for what is left of the new setting
package-wait-minutes (1 to 120, default 10). Past the bound the run ends
could not run, "package <path> has no published version within <bound>
(package-wait-minutes)", never the builder's words. `waits` and the
bound go when the run ask is put (an ask in the queue has no clock) or
the run ends. Every step reading the run says the phase fetch while it
holds `waits`, its journal naming the package, and run once none does.
At the assigner's start a run holding `waits` and no program ends past
its bound, or has its bound armed again for what is left and its whole
start run again. A run with no publisher still ends at once (principle 3).

The seat mesh-wants' CompositionRun gains `waits` {package, since}, its
form raised to 3 as a field added (§780, H-A-352 (3)); the Go and
TypeScript contracts regenerated by seatgen. The assigner consumes
mesh-builds.package-published.

Tests: TestTheCompositionStepRunsOneAskPerMachine (rows: the wait, its
`waits` and bound, the phase fetch then run, the pin after the publish
with `waits` and the bound gone at the put, past the bound) for 1984/AC9;
TestACompositionRunIsOneKeyPerCandidateAndMachine/settings;
TestManifest; TestTheCompositionStepComposesEachMachineThroughTheBuildSeat
extended (the wait and the publish event, a restart during the wait,
a run past its bound at the restart and one past it while running) for
1984/AC11.

Builds: design 47 H2 H-A-628 (3), (4), (5) (hq 8aa70271); H-A-629 (1), (2), (3) (hq 8aa70271); D4 H-A-192; D9 H-A-326, H-A-328; G §719, §720; H2 §780 with H-A-352 (3)
2026-11-23 22:35:43 +01:00
jschoubben 024c137b94 T2 assigner: an empty pin of a run's entry is filled from mesh-builds.published (issue 1984)
The composer's and the validator's run asks go straight to the Go build
seat, never through the builder, and pinsOfEntry dropped a pin the entry
names with no version, so the build module refused at once with words
that blame the builder. Now each empty pin is filled by asking the seat
mesh-builds' verb published of the package's publisher in the step's
catalog revision; the version it answers is the pin. No run ask is put
with a pin left out: a build not yet published, or a package no build of
the revision publishes, ends the run could not run naming the package and
the entry (the wait for the publish comes with T3).

The assigner requires the meshbuilds contract module and its manifest
invokes seat:mesh-builds.published (TestManifest holds it).

Tests: TestTheCompositionStepRunsOneAskPerMachine (its stand's revision
holds x's publisher; rows "not published" and "no publisher") for
1984/AC9; TestTheValidateStepRefusesAManifestProblemAndACycle, revision
13, for 1984/AC10.

Builds: design 47 H2 H-A-628 (2), (5) (hq cea6404c); D4 H-A-192; D5 H-A-204; D7 G §718, A-252, A-451; D8 H §745; D9 H-A-326, H-A-328
2026-11-23 22:00:31 +01:00
jschoubben b7b3891a4a T1 indexer: blank only a mover's entry (issue 1984)
The take-in blanked a package's pin in every import-form entry, the
node-engine's among them though it was no mover, and nothing filled it:
every composition of main.506 could not run. A module that is no mover
of the take-in keeps its pins, since no step of that pipeline builds it.

Tests: TestMoversOf gains the subcase "an import-form importer that is no
mover keeps its pin of a package a mover publishes" (1984/AC7); I12's
subcase is kept as 1984/AC8. TestASourceRevisionMovingMeshSDKNamesItAndItsImporters
(integration) asserted the old blank for importer at m3's take-in, where
the take-in makes importer no mover (its fingerprint does not move,
noted on issue 1984 as note 24); its assertion now follows H-A-628 (1):
blank where importer is a mover of that take-in, its pin kept where not.

Builds: design 47 H2 H-A-628 (1) (hq cea6404c); D1 H-A-532 DMC-1; D2 H-A-547 (2)
2026-11-23 21:55:02 +01:00