Link a build's bases into its repository before pushing it (issue 694) #318

Merged
mesh-admin merged 1 commits from fix/694-a-push-holds-its-bases into main 2026-10-14 01:19:25 +00:00
Contributor

What

Before the build agent pushes an image it built, it mounts every blob of each base the build stood on (for this machine's platform) from the base's repository into the image's repository, through the registry API (Registry.LendBases, new optional BaseLender interface; the scratch publisher forwards it under the scratch prefix). A failure to mount is said in the build log and the push is still tried.

Why

Genesis stopped at step 16 of 24 (base): docker push 127.0.0.1:5000/mesh-tools-go/build failed with "not all of them are available locally", NotFound: content digest sha256:e2de9651…. That digest is the first (alpine) layer of the linux/amd64 manifest of golang@sha256:8ac98ca5…, the base mesh-tools-go declares, and the same base the control plane was built on earlier in genesis.

The bed's docker is a fresh 29.7.2 install, which keeps images in containerd's image store; the live nodes run docker 29.8.2 on the classic overlay2 store (read with docker_daemon_config on novox and shanks). On containerd's store a base layer whose unpacked snapshot already exists is never fetched, so the built image references a compressed layer this machine does not hold. moby's push (daemon/containerd/image_push.go) mounts missing blobs only from distribution-source labels, which a locally built image does not carry. But containerd's pusher asks the target repository first (HEAD per blob) and reads local content only for what it lacks. Once the base's blobs are in the image's repository, the push needs nothing of them from the store, whichever store the runtime keeps. On the classic store nothing changes: the push finds them there.

Tested

  • TestABuildsBaseIsLinkedIntoItsRepositoryBeforeThePush: this platform's blobs are mounted (no bytes moved), another platform's are not, and non-image or foreign build arguments are ignored. A second run mounts nothing.
  • TestABaseTheRegistryWillNotMountIsAnError: a refused mount is reported as an error.
  • TestAnImageIsPushedOnlyAfterItsBasesAreLent: a build lends its bases before it pushes; this test fails without the change.
  • go test ./internal/builder ./cmd/mesh-builder and go vet ./... pass.
  • A lab run on shanks of genesis-keeps-its-bus with this branch: result to follow in a comment.

Fixes issue 694.

## What Before the build agent pushes an image it built, it mounts every blob of each base the build stood on (for this machine's platform) from the base's repository into the image's repository, through the registry API (`Registry.LendBases`, new optional `BaseLender` interface; the scratch publisher forwards it under the scratch prefix). A failure to mount is said in the build log and the push is still tried. ## Why Genesis stopped at step 16 of 24 (base): `docker push 127.0.0.1:5000/mesh-tools-go/build` failed with "not all of them are available locally", `NotFound: content digest sha256:e2de9651…`. That digest is the first (alpine) layer of the linux/amd64 manifest of `golang@sha256:8ac98ca5…`, the base mesh-tools-go declares, and the same base the control plane was built on earlier in genesis. The bed's docker is a fresh 29.7.2 install, which keeps images in containerd's image store; the live nodes run docker 29.8.2 on the classic `overlay2` store (read with docker_daemon_config on novox and shanks). On containerd's store a base layer whose unpacked snapshot already exists is never fetched, so the built image references a compressed layer this machine does not hold. moby's push (daemon/containerd/image_push.go) mounts missing blobs only from distribution-source labels, which a locally built image does not carry. But containerd's pusher asks the target repository first (HEAD per blob) and reads local content only for what it lacks. Once the base's blobs are in the image's repository, the push needs nothing of them from the store, whichever store the runtime keeps. On the classic store nothing changes: the push finds them there. ## Tested - `TestABuildsBaseIsLinkedIntoItsRepositoryBeforeThePush`: this platform's blobs are mounted (no bytes moved), another platform's are not, and non-image or foreign build arguments are ignored. A second run mounts nothing. - `TestABaseTheRegistryWillNotMountIsAnError`: a refused mount is reported as an error. - `TestAnImageIsPushedOnlyAfterItsBasesAreLent`: a build lends its bases before it pushes; this test fails without the change. - `go test ./internal/builder ./cmd/mesh-builder` and `go vet ./...` pass. - A lab run on shanks of genesis-keeps-its-bus with this branch: result to follow in a comment. Fixes issue 694.
mesh-admin added 1 commit 2026-10-14 01:00:14 +00:00
Link a build's bases into its repository before pushing it (issue 694)
mesh/merge-gate head 8933864a49d0 merged into trunk df9e5728a925 — pass: builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step; every …
mesh/repo-check head 8933864a49d0 merged into trunk df9e5728a925 — pass: its merge-check.sh passed
mesh/delivery delivered
8933864a49
A runtime on containerd's image store, the default on a fresh docker 29,
need not hold the compressed layers of a base it built FROM: a layer it
had unpacked already is never fetched. Its push then fails on that layer
although the registry holds it under the base's mirror. A push reads
locally only what the target repository lacks, so mount the base's blobs
there first.
Author
Contributor

Delivery novox/mesh-controller@8933864a49d0 — delivered since 2026-10-14T01:24:23Z

Delivery plan — builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step

  • tier 0: mesh-controller
  • tier 1: build-agent
  • ace: receives build-agent
  • g14: receives build-agent
  • novox: receives mesh-controller, build-agent
  • shanks: receives build-agent
  • build-agent keeps data (ADR 0233): what it holds is backed up before it moves
  • grants step: if this changes what the bus's user list says (a new tool, subject or user), novox is sent that list alone, every build there kept, before build-agent is judged on its first machine

Machines

  • mesh-controller on novox: passed — healthy 1 times over 1m47s, by the controller's rule: one reading once it is ready, after the node-engine's witness window (novox/hq ADR 0351)
  • mesh-controller on the rest running it: sent
  • build-agent on ace: passed — healthy 1 times over 1h36m54s, by a leaf module's rule: one reading (novox/hq ADR 0304)
  • build-agent on the rest running it: sent

Transitions

  • 2026-10-14 01:00 (new) → proposed (announced): novox/mesh-controller#318's head announced
  • 2026-10-14 01:06 proposed → checked (checked): a verdict names this commit and the trunk's head as its trunk commit
  • 2026-10-14 01:06 checked → ready (accepted): the gate passed or warned, and the repository's own check did not fail
  • 2026-10-14 01:19 ready → published (merged): on the trunk its modules follow: merged there, and its walk opened — or nothing for a walk to move
  • 2026-10-14 01:19 published → delivering (go): its walk started: let go by this owner in its group's order, by a person, or on the controller's own path — not a failed walk that carried a later commit for it, after which it waits for a walk of its own commit
  • 2026-10-14 01:24 delivering → delivered (done): its walk is done, carrying its own commit: every machine of its deploy plan passed, or was left as its policy says

The commit's note under refs/notes/mesh-plan keeps every transition: git log --notes=mesh-plan.

<!-- mesh-delivery:view --> **Delivery** `novox/mesh-controller@8933864a49d0` — **delivered** since 2026-10-14T01:24:23Z **Delivery plan** — builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step - tier 0: mesh-controller - tier 1: build-agent - ace: receives build-agent - g14: receives build-agent - novox: receives mesh-controller, build-agent - shanks: receives build-agent - build-agent keeps data (ADR 0233): what it holds is backed up before it moves - grants step: if this changes what the bus's user list says (a new tool, subject or user), novox is sent that list alone, every build there kept, before build-agent is judged on its first machine **Machines** - mesh-controller on novox: passed — healthy 1 times over 1m47s, by the controller's rule: one reading once it is ready, after the node-engine's witness window (novox/hq ADR 0351) - mesh-controller on the rest running it: sent - build-agent on ace: passed — healthy 1 times over 1h36m54s, by a leaf module's rule: one reading (novox/hq ADR 0304) - build-agent on the rest running it: sent **Transitions** - 2026-10-14 01:00 (new) → proposed (announced): novox/mesh-controller#318's head announced - 2026-10-14 01:06 proposed → checked (checked): a verdict names this commit and the trunk's head as its trunk commit - 2026-10-14 01:06 checked → ready (accepted): the gate passed or warned, and the repository's own check did not fail - 2026-10-14 01:19 ready → published (merged): on the trunk its modules follow: merged there, and its walk opened — or nothing for a walk to move - 2026-10-14 01:19 published → delivering (go): its walk started: let go by this owner in its group's order, by a person, or on the controller's own path — not a failed walk that carried a later commit for it, after which it waits for a walk of its own commit - 2026-10-14 01:24 delivering → delivered (done): its walk is done, carrying its own commit: every machine of its deploy plan passed, or was left as its policy says The commit's note under `refs/notes/mesh-plan` keeps every transition: `git log --notes=mesh-plan`.
Author
Contributor

Merge check at 8933864a
Judged: head 8933864a49d0 merged into trunk df9e5728a925; read beside it: mesh-catalog ebf7f3773dc7, mesh-controller-main df9e5728a925, mesh-host 1a2677882380, mesh-tools 954e1a53eef9

  • mesh/merge-gate: PASS — every machine composes with the change as it did without (4 of 4 compose) (modules: build-agent, mesh-controller)
  • mesh/repo-check: PASS — its merge-check.sh passed

Delivery plan — builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step

  • tier 0: mesh-controller
  • tier 1: build-agent
  • ace: receives build-agent
  • g14: receives build-agent
  • novox: receives mesh-controller, build-agent
  • shanks: receives build-agent
  • build-agent keeps data (ADR 0233): what it holds is backed up before it moves
  • grants step: if this changes what the bus's user list says (a new tool, subject or user), novox is sent that list alone, every build there kept, before build-agent is judged on its first machine

Run by the build seat on ace as build-1791939622585982399 (builds --log build-1791939622585982399).

--- the gate: build-agent, mesh-controller
mesh-controller: ok, 60 tool(s); WARNING: merge-window ask(s) for a setting and do(es) not say whether it is trusted, so it counts as trusted: set at the terminal alone; say "trusted" false where nothing trusts it (novox/hq issue 339); WARNING: controller stay(s) up and say(s) not how it is ready — judged by liveness alone, refused from 2026-11-18 (ADR 0240 rule 8)
long-running resources without health: 1
files asking for a setting without saying whether it is trusted: 1
1 manifest(s) checked. Judged against the seats this binary carries; a claim on one of the mesh's own seats is judged fully at registration, and a seat declared by a module not given here reads as unknown. Identities judged on a 6-character machine name, against the bounds of the providers given here
judging 1 module(s) changed against 4 machine(s), as the snapshot of 2026-10-14T00:59:54Z says they run
composing every machine as the mesh is
the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued
the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued
composing every machine with the change
the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued
the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued
merge gate: PASS — every machine composes with the change as it did without (4 of 4 compose)
judged by controller development build against the facts of 2026-10-14T00:59:54Z

modules the change moves:
  - mesh-controller (changed)

machines:
  - a machine (f35): composes
  - holds mesh-dns-resolver (idt): composes
  - holds git, holds mesh-artifact-store, holds mesh-broker, holds mesh-catalog, holds mesh-delivery, holds mesh-dns-resolver, holds mesh-store, holds mesh-vault, holds npm-package-registry, the control node, the hub (ygcyr): composes
  - a machine (yvbpsm): composes

a merge would rebuild 2 module(s) in 2 tier(s): build-agent, mesh-controller
--- its merge-check.sh (go toolchain)
ok  	github.com/novox/mesh-controller/cmd/mesh-builder	1.097s
ok  	github.com/novox/mesh-controller/cmd/mesh-controller	165.277s
ok  	github.com/novox/mesh-controller/examples/objectstore-provisioner	1.031s
ok  	github.com/novox/mesh-controller/examples/postgres-provisioner	1.042s
ok  	github.com/novox/mesh-controller/examples/redis-provisioner	1.028s
ok  	github.com/novox/mesh-controller/examples/route-proxy	1.137s
ok  	github.com/novox/mesh-controller/internal/artifacts	1.074s
?   	github.com/novox/mesh-controller/internal/beside	[no test files]
ok  	github.com/novox/mesh-controller/internal/broker	7.877s
ok  	github.com/novox/mesh-controller/internal/builder	49.968s
ok  	github.com/novox/mesh-controller/internal/catalogue	7.608s
ok  	github.com/novox/mesh-controller/internal/conditions	2.588s
ok  	github.com/novox/mesh-controller/internal/envfile	1.029s
ok  	github.com/novox/mesh-controller/internal/facts	1.033s
ok  	github.com/novox/mesh-controller/internal/identity	12.622s
ok  	github.com/novox/mesh-controller/internal/inventory	41.754s
ok  	github.com/novox/mesh-controller/internal/lease	17.691s
ok  	github.com/novox/mesh-controller/internal/licences	11.791s
ok  	github.com/novox/mesh-controller/internal/licences/adapters	1.057s
ok  	github.com/novox/mesh-controller/internal/link	62.659s
ok  	github.com/novox/mesh-controller/internal/lint	2.146s
ok  	github.com/novox/mesh-controller/internal/outward	1.083s
ok  	github.com/novox/mesh-controller/internal/overlay	1.068s
ok  	github.com/novox/mesh-controller/internal/secrets	1.414s
ok  	github.com/novox/mesh-controller/internal/store	5.601s
ok  	github.com/novox/mesh-controller/internal/testbus	1.249s
ok  	github.com/novox/mesh-controller/internal/token	1.016s
store tests, each run against the store:
  ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeWalksTheOthersAgain (0.19s)
  ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeEndsTheMergesThatContainIt (0.20s)
  ./cmd/mesh-controller --- PASS: TestAStopWalksTheOthersAgainInTheOpenBatch (0.20s)
  ./cmd/mesh-controller --- PASS: TestAStopNamesWhatStaysOnTheMachinesAndWhatStillCarriesIt (0.19s)
  ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeLeavesItOutOfABatch (0.18s)
  ./cmd/mesh-controller --- PASS: TestSavingPlansAndMovingMergesIsOneAct (0.15s)
  ./cmd/mesh-controller --- PASS: TestAPlanFollowedFromTheStoreAnswersWhenItMoves (1.95s)
  ./cmd/mesh-controller --- PASS: TestNodeShowAndStatusReadTheLastSendFromTheStore (0.21s)
  ./cmd/mesh-controller --- PASS: TestTheConditionsVerbReadsTheLooksTheBucketNoLongerHolds (0.11s)
  ./cmd/mesh-controller --- PASS: TestAWalkLetGoAndStoppedByVerbsIsSaidStartedAndEnded (0.23s)
  ./cmd/mesh-controller --- PASS: TestAWalkStoppedOrClosedByAPersonIsSaidEndedStopped (0.22s)
  ./cmd/mesh-controller --- PASS: TestAWalkRetriedByAPersonIsSaidStartedAgain (0.18s)
  ./cmd/mesh-controller --- PASS: TestABacklogReleasedByAPersonIsSaidStarted (0.19s)
  ./cmd/mesh-controller --- PASS: TestAWalkEndedByCancelOrClearIsSaidEnded (0.25s)
  ./cmd/mesh-controller --- PASS: TestAWalkRestartedByARebuildIsSaidStarted (0.19s)
  ./cmd/mesh-controller --- PASS: TestAWalkStoppedByHandAndRetriedEndsFailedWhenItFailsAgain (0.22s)
  ./cmd/mesh-controller --- PASS: TestReplay237 (0.18s)
  ./cmd/mesh-controller --- PASS: TestAnUnassignThatLeavesItsNodeUnresolvedSaysSoOnceInItsAnswer (0.18s)
  ./cmd/mesh-controller --- PASS: TestAnUnassignThatLeavesItsNodeResolvedSaysNothingOfIt (0.18s)
  ./cmd/mesh-controller --- PASS: TestAnAssignThatLeavesItsNodeUnresolvedSaysOnlyThePlansRefusal (0.17s)
  ./cmd/mesh-controller --- PASS: TestADirectoryOwnersKeyIsRefusedThroughAVerb (0.20s)
  ./cmd/mesh-controller --- PASS: TestTheSendMakesNoValueForAnOutsideSecretNobodyGave (0.26s)
  ./cmd/mesh-controller --- PASS: TestAQuestionComposesWithoutAnOutsideSecretNobodyGave (0.24s)
  ./cmd/mesh-controller --- PASS: TestReplay201 (0.14s)
  ./cmd/mesh-controller --- PASS: TestARollbackWhoseSendWasRefusedIsCompletedByTheNextSend (0.13s)
  ./cmd/mesh-controller --- PASS: TestAGateJudgesTheOtherMovesBesideAKeptCore (0.14s)
  ./cmd/mesh-controller --- PASS: TestReplay401 (0.25s)
  ./cmd/mesh-controller --- PASS: TestReplay201ThePlansSend (0.20s)
  ./cmd/mesh-controller --- PASS: TestPlanAndNodeListAnOptionalRequirementLeftUnbound (0.25s)
  ./cmd/mesh-controller --- PASS: TestReplay340 (0.23s)
  ./cmd/mesh-controller --- PASS: TestOnlyATrustedFilesNamedKeyIsRefusedThroughAVerb (0.18s)
  ./cmd/mesh-controller --- PASS: TestReplay349 (0.18s)
  ./cmd/mesh-controller --- PASS: TestReplay348AFaultFromBeforeTheSendFailsNoGate (0.17s)
  ./cmd/mesh-controller --- PASS: TestReplay239AModuleNameIsNotTakenOverByAnotherRepository (0.14s)
  ./cmd/mesh-controller --- PASS: TestAWalkThatMovedNothingSaysWhichModulesMatchedWhatRuns (0.17s)
  ./cmd/mesh-controller --- PASS: TestReplay614ANewSDKPlansTheToolchainAndThenItsBundles (0.07s)
  ./cmd/mesh-controller --- PASS: TestOneAcceptForAProviderIsPlacedForEveryConsumer (0.42s)
  ./cmd/mesh-controller --- PASS: TestReplay164 (0.25s)
  ./cmd/mesh-controller --- PASS: TestAnApprovedLayerOpensTheWalkThatSendsIt (0.18s)
  ./cmd/mesh-controller --- PASS: TestASettingsWalkSendsOneMachineAtATimeEachJudged (0.18s)
  ./cmd/mesh-controller --- PASS: TestAFailedSettingsWalkStopsAndHoldsNothingBack (0.18s)
  ./cmd/mesh-controller --- PASS: TestASettingsWalkSendsTheLayerAloneEveryBuildKept (0.17s)
  ./cmd/mesh-controller --- PASS: TestASettingsWalkStopsBeforeADataMoveAndPassesOverAMachineAway (0.48s)
  ./cmd/mesh-controller --- PASS: TestACrossingSendSupersedesASettingsGate (0.16s)
  ./cmd/mesh-controller --- PASS: TestASettingsWalkFailsOnARefusalThatCannotClear (0.25s)
  ./cmd/mesh-controller --- PASS: TestAProviderElsewhereServesItsOwnComposedName (0.21s)
  ./cmd/mesh-controller --- PASS: TestAReusedCheckBuildIsRegisteredByItsDigestAndGatedAsABuiltOne (0.26s)
  ./cmd/mesh-controller --- PASS: TestAReleaseSendsTheRestAtOnceAfterTheFirstPasses (0.22s)
  ./cmd/mesh-controller --- PASS: TestARestMachineThatFailsIsPutBackAloneAndTheOthersAreJudgedOn (0.20s)
  ./cmd/mesh-controller --- PASS: TestAWalkTakesOverTheReadingsOfAGateJudgingTheSameBuildThere (0.17s)
  ./cmd/mesh-controller --- PASS: TestAFirstSendMadeAndNotKeptIsNotSentAgain (0.22s)
  ./cmd/mesh-controller --- PASS: TestAReleaseSendKeptAndMadeIsNotMadeAgain (0.16s)
  ./cmd/mesh-controller --- PASS: TestAFirstMachineThatFailsStillStopsTheWalk (0.17s)
  ./cmd/mesh-controller --- PASS: TestTheControlNodeIsSentLastInAStep (0.19s)
  ./cmd/mesh-controller --- PASS: TestARestMachineSilentPastItsBoundIsLeftAndSaid (0.19s)
  ./cmd/mesh-controller --- PASS: TestANoMoveTierWaitsForNoNewReport (0.21s)
  ./internal/inventory --- PASS: TestTheLastSendSaysWhatTheMachineAnswered (0.07s)
  ./internal/inventory --- PASS: TestAReportIsTheLastSendsAnswerOnlyWhenItIsAboutThatSend (0.07s)
  ./internal/inventory --- PASS: TestAnIssuedValueIsSealedToEveryHolderOnceAndNotAgain (0.08s)
  ./internal/inventory --- PASS: TestAnIssuedValueIsSealedAgainAfterAKeyChangeOrAnAcceptance (0.08s)
  ./internal/inventory --- PASS: TestAConditionsLooksAreKeptBesideTheBucket (0.06s)
  ./internal/inventory --- PASS: TestAPlanIdHoldingAQuoteIsReadAsAPlainId (0.06s)
  ./internal/inventory --- PASS: TestAWalksStartIsKeptAndARefusedSaveLeavesItUnsaid (0.06s)
  ./internal/inventory --- PASS: TestAWalksRestIsReadFromEachMachinesOwnSend (0.06s)
  ./internal/inventory --- PASS: TestAStoredBuildWithASilentMergeableFileIsStillReadAndComposed (0.06s)
  ./internal/inventory --- PASS: TestACredentialIssuedOutsideIsNeverMade (0.08s)
  ./internal/inventory --- PASS: TestOneAcceptForAProviderIsSealedToEveryConsumer (0.07s)
  ./internal/inventory --- PASS: TestASharedOwnSecretIssuedOutsideIsNeverMade (0.06s)
  ./internal/inventory --- PASS: TestAReportOfABusyContainerIsKeptAndReadBack (0.07s)
**Merge check** at `8933864a` Judged: head `8933864a49d0` merged into trunk `df9e5728a925`; read beside it: mesh-catalog `ebf7f3773dc7`, mesh-controller-main `df9e5728a925`, mesh-host `1a2677882380`, mesh-tools `954e1a53eef9` - `mesh/merge-gate`: **PASS** — every machine composes with the change as it did without (4 of 4 compose) (modules: build-agent, mesh-controller) - `mesh/repo-check`: **PASS** — its merge-check.sh passed **Delivery plan** — builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step - tier 0: mesh-controller - tier 1: build-agent - ace: receives build-agent - g14: receives build-agent - novox: receives mesh-controller, build-agent - shanks: receives build-agent - build-agent keeps data (ADR 0233): what it holds is backed up before it moves - grants step: if this changes what the bus's user list says (a new tool, subject or user), novox is sent that list alone, every build there kept, before build-agent is judged on its first machine Run by the build seat on ace as `build-1791939622585982399` (`builds --log build-1791939622585982399`). ``` --- the gate: build-agent, mesh-controller mesh-controller: ok, 60 tool(s); WARNING: merge-window ask(s) for a setting and do(es) not say whether it is trusted, so it counts as trusted: set at the terminal alone; say "trusted" false where nothing trusts it (novox/hq issue 339); WARNING: controller stay(s) up and say(s) not how it is ready — judged by liveness alone, refused from 2026-11-18 (ADR 0240 rule 8) long-running resources without health: 1 files asking for a setting without saying whether it is trusted: 1 1 manifest(s) checked. Judged against the seats this binary carries; a claim on one of the mesh's own seats is judged fully at registration, and a seat declared by a module not given here reads as unknown. Identities judged on a 6-character machine name, against the bounds of the providers given here judging 1 module(s) changed against 4 machine(s), as the snapshot of 2026-10-14T00:59:54Z says they run composing every machine as the mesh is the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued composing every machine with the change the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued the bus's user list leaves out 5 user(s) the mesh has minted no credential for: controller, node.f35, node.idt, node.ygcyr, node.yvbpsm. Each is a user that cannot connect until one is issued merge gate: PASS — every machine composes with the change as it did without (4 of 4 compose) judged by controller development build against the facts of 2026-10-14T00:59:54Z modules the change moves: - mesh-controller (changed) machines: - a machine (f35): composes - holds mesh-dns-resolver (idt): composes - holds git, holds mesh-artifact-store, holds mesh-broker, holds mesh-catalog, holds mesh-delivery, holds mesh-dns-resolver, holds mesh-store, holds mesh-vault, holds npm-package-registry, the control node, the hub (ygcyr): composes - a machine (yvbpsm): composes a merge would rebuild 2 module(s) in 2 tier(s): build-agent, mesh-controller --- its merge-check.sh (go toolchain) ok github.com/novox/mesh-controller/cmd/mesh-builder 1.097s ok github.com/novox/mesh-controller/cmd/mesh-controller 165.277s ok github.com/novox/mesh-controller/examples/objectstore-provisioner 1.031s ok github.com/novox/mesh-controller/examples/postgres-provisioner 1.042s ok github.com/novox/mesh-controller/examples/redis-provisioner 1.028s ok github.com/novox/mesh-controller/examples/route-proxy 1.137s ok github.com/novox/mesh-controller/internal/artifacts 1.074s ? github.com/novox/mesh-controller/internal/beside [no test files] ok github.com/novox/mesh-controller/internal/broker 7.877s ok github.com/novox/mesh-controller/internal/builder 49.968s ok github.com/novox/mesh-controller/internal/catalogue 7.608s ok github.com/novox/mesh-controller/internal/conditions 2.588s ok github.com/novox/mesh-controller/internal/envfile 1.029s ok github.com/novox/mesh-controller/internal/facts 1.033s ok github.com/novox/mesh-controller/internal/identity 12.622s ok github.com/novox/mesh-controller/internal/inventory 41.754s ok github.com/novox/mesh-controller/internal/lease 17.691s ok github.com/novox/mesh-controller/internal/licences 11.791s ok github.com/novox/mesh-controller/internal/licences/adapters 1.057s ok github.com/novox/mesh-controller/internal/link 62.659s ok github.com/novox/mesh-controller/internal/lint 2.146s ok github.com/novox/mesh-controller/internal/outward 1.083s ok github.com/novox/mesh-controller/internal/overlay 1.068s ok github.com/novox/mesh-controller/internal/secrets 1.414s ok github.com/novox/mesh-controller/internal/store 5.601s ok github.com/novox/mesh-controller/internal/testbus 1.249s ok github.com/novox/mesh-controller/internal/token 1.016s store tests, each run against the store: ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeWalksTheOthersAgain (0.19s) ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeEndsTheMergesThatContainIt (0.20s) ./cmd/mesh-controller --- PASS: TestAStopWalksTheOthersAgainInTheOpenBatch (0.20s) ./cmd/mesh-controller --- PASS: TestAStopNamesWhatStaysOnTheMachinesAndWhatStillCarriesIt (0.19s) ./cmd/mesh-controller --- PASS: TestAStopWithoutAMergeLeavesItOutOfABatch (0.18s) ./cmd/mesh-controller --- PASS: TestSavingPlansAndMovingMergesIsOneAct (0.15s) ./cmd/mesh-controller --- PASS: TestAPlanFollowedFromTheStoreAnswersWhenItMoves (1.95s) ./cmd/mesh-controller --- PASS: TestNodeShowAndStatusReadTheLastSendFromTheStore (0.21s) ./cmd/mesh-controller --- PASS: TestTheConditionsVerbReadsTheLooksTheBucketNoLongerHolds (0.11s) ./cmd/mesh-controller --- PASS: TestAWalkLetGoAndStoppedByVerbsIsSaidStartedAndEnded (0.23s) ./cmd/mesh-controller --- PASS: TestAWalkStoppedOrClosedByAPersonIsSaidEndedStopped (0.22s) ./cmd/mesh-controller --- PASS: TestAWalkRetriedByAPersonIsSaidStartedAgain (0.18s) ./cmd/mesh-controller --- PASS: TestABacklogReleasedByAPersonIsSaidStarted (0.19s) ./cmd/mesh-controller --- PASS: TestAWalkEndedByCancelOrClearIsSaidEnded (0.25s) ./cmd/mesh-controller --- PASS: TestAWalkRestartedByARebuildIsSaidStarted (0.19s) ./cmd/mesh-controller --- PASS: TestAWalkStoppedByHandAndRetriedEndsFailedWhenItFailsAgain (0.22s) ./cmd/mesh-controller --- PASS: TestReplay237 (0.18s) ./cmd/mesh-controller --- PASS: TestAnUnassignThatLeavesItsNodeUnresolvedSaysSoOnceInItsAnswer (0.18s) ./cmd/mesh-controller --- PASS: TestAnUnassignThatLeavesItsNodeResolvedSaysNothingOfIt (0.18s) ./cmd/mesh-controller --- PASS: TestAnAssignThatLeavesItsNodeUnresolvedSaysOnlyThePlansRefusal (0.17s) ./cmd/mesh-controller --- PASS: TestADirectoryOwnersKeyIsRefusedThroughAVerb (0.20s) ./cmd/mesh-controller --- PASS: TestTheSendMakesNoValueForAnOutsideSecretNobodyGave (0.26s) ./cmd/mesh-controller --- PASS: TestAQuestionComposesWithoutAnOutsideSecretNobodyGave (0.24s) ./cmd/mesh-controller --- PASS: TestReplay201 (0.14s) ./cmd/mesh-controller --- PASS: TestARollbackWhoseSendWasRefusedIsCompletedByTheNextSend (0.13s) ./cmd/mesh-controller --- PASS: TestAGateJudgesTheOtherMovesBesideAKeptCore (0.14s) ./cmd/mesh-controller --- PASS: TestReplay401 (0.25s) ./cmd/mesh-controller --- PASS: TestReplay201ThePlansSend (0.20s) ./cmd/mesh-controller --- PASS: TestPlanAndNodeListAnOptionalRequirementLeftUnbound (0.25s) ./cmd/mesh-controller --- PASS: TestReplay340 (0.23s) ./cmd/mesh-controller --- PASS: TestOnlyATrustedFilesNamedKeyIsRefusedThroughAVerb (0.18s) ./cmd/mesh-controller --- PASS: TestReplay349 (0.18s) ./cmd/mesh-controller --- PASS: TestReplay348AFaultFromBeforeTheSendFailsNoGate (0.17s) ./cmd/mesh-controller --- PASS: TestReplay239AModuleNameIsNotTakenOverByAnotherRepository (0.14s) ./cmd/mesh-controller --- PASS: TestAWalkThatMovedNothingSaysWhichModulesMatchedWhatRuns (0.17s) ./cmd/mesh-controller --- PASS: TestReplay614ANewSDKPlansTheToolchainAndThenItsBundles (0.07s) ./cmd/mesh-controller --- PASS: TestOneAcceptForAProviderIsPlacedForEveryConsumer (0.42s) ./cmd/mesh-controller --- PASS: TestReplay164 (0.25s) ./cmd/mesh-controller --- PASS: TestAnApprovedLayerOpensTheWalkThatSendsIt (0.18s) ./cmd/mesh-controller --- PASS: TestASettingsWalkSendsOneMachineAtATimeEachJudged (0.18s) ./cmd/mesh-controller --- PASS: TestAFailedSettingsWalkStopsAndHoldsNothingBack (0.18s) ./cmd/mesh-controller --- PASS: TestASettingsWalkSendsTheLayerAloneEveryBuildKept (0.17s) ./cmd/mesh-controller --- PASS: TestASettingsWalkStopsBeforeADataMoveAndPassesOverAMachineAway (0.48s) ./cmd/mesh-controller --- PASS: TestACrossingSendSupersedesASettingsGate (0.16s) ./cmd/mesh-controller --- PASS: TestASettingsWalkFailsOnARefusalThatCannotClear (0.25s) ./cmd/mesh-controller --- PASS: TestAProviderElsewhereServesItsOwnComposedName (0.21s) ./cmd/mesh-controller --- PASS: TestAReusedCheckBuildIsRegisteredByItsDigestAndGatedAsABuiltOne (0.26s) ./cmd/mesh-controller --- PASS: TestAReleaseSendsTheRestAtOnceAfterTheFirstPasses (0.22s) ./cmd/mesh-controller --- PASS: TestARestMachineThatFailsIsPutBackAloneAndTheOthersAreJudgedOn (0.20s) ./cmd/mesh-controller --- PASS: TestAWalkTakesOverTheReadingsOfAGateJudgingTheSameBuildThere (0.17s) ./cmd/mesh-controller --- PASS: TestAFirstSendMadeAndNotKeptIsNotSentAgain (0.22s) ./cmd/mesh-controller --- PASS: TestAReleaseSendKeptAndMadeIsNotMadeAgain (0.16s) ./cmd/mesh-controller --- PASS: TestAFirstMachineThatFailsStillStopsTheWalk (0.17s) ./cmd/mesh-controller --- PASS: TestTheControlNodeIsSentLastInAStep (0.19s) ./cmd/mesh-controller --- PASS: TestARestMachineSilentPastItsBoundIsLeftAndSaid (0.19s) ./cmd/mesh-controller --- PASS: TestANoMoveTierWaitsForNoNewReport (0.21s) ./internal/inventory --- PASS: TestTheLastSendSaysWhatTheMachineAnswered (0.07s) ./internal/inventory --- PASS: TestAReportIsTheLastSendsAnswerOnlyWhenItIsAboutThatSend (0.07s) ./internal/inventory --- PASS: TestAnIssuedValueIsSealedToEveryHolderOnceAndNotAgain (0.08s) ./internal/inventory --- PASS: TestAnIssuedValueIsSealedAgainAfterAKeyChangeOrAnAcceptance (0.08s) ./internal/inventory --- PASS: TestAConditionsLooksAreKeptBesideTheBucket (0.06s) ./internal/inventory --- PASS: TestAPlanIdHoldingAQuoteIsReadAsAPlainId (0.06s) ./internal/inventory --- PASS: TestAWalksStartIsKeptAndARefusedSaveLeavesItUnsaid (0.06s) ./internal/inventory --- PASS: TestAWalksRestIsReadFromEachMachinesOwnSend (0.06s) ./internal/inventory --- PASS: TestAStoredBuildWithASilentMergeableFileIsStillReadAndComposed (0.06s) ./internal/inventory --- PASS: TestACredentialIssuedOutsideIsNeverMade (0.08s) ./internal/inventory --- PASS: TestOneAcceptForAProviderIsSealedToEveryConsumer (0.07s) ./internal/inventory --- PASS: TestASharedOwnSecretIssuedOutsideIsNeverMade (0.06s) ./internal/inventory --- PASS: TestAReportOfABusyContainerIsKeptAndReadBack (0.07s) ```
Author
Contributor

Lab run run-2026-10-14T01-00-02-463Z on shanks (genesis-keeps-its-bus, mesh-controller at 8933864a, everything else main): step 16 (base) built mesh-tools and mesh-tools-go with no push error, step 17 adopted postgres, and genesis reached step 18 (broker). Step 18 stopped on a different fault: the nats module's manifest could not be read: open /opt/mesh-catalog/modules/nats/module.json: no such file or directory, although mesh-catalog ebf7f377 has modules/nats. The bed's rerun then stopped at step 14 on a stale pacman index (postgresql-libs 404). Neither is this change.

Lab run run-2026-10-14T01-00-02-463Z on shanks (genesis-keeps-its-bus, mesh-controller at 8933864a, everything else main): step 16 (base) built mesh-tools and mesh-tools-go with no push error, step 17 adopted postgres, and genesis reached step 18 (broker). Step 18 stopped on a different fault: `the nats module's manifest could not be read: open /opt/mesh-catalog/modules/nats/module.json: no such file or directory`, although mesh-catalog ebf7f377 has modules/nats. The bed's rerun then stopped at step 14 on a stale pacman index (postgresql-libs 404). Neither is this change.
mesh-admin left a comment
Author
Contributor

Verdict: APPROVE at 8933864a49. No blocking findings; three minor notes below.

Independent review of issue 694 (a build's bases are linked into its repository before the push).

Checks at this head, as the forge keeps them:

  • mesh/merge-gate: success, "head 8933864a49 merged into trunk df9e5728a9 — pass: builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step" (4 of 4 compose)
  • mesh/repo-check: success, "its merge-check.sh passed"
  • mesh/delivery: success, "ready: it delivers once merged"

Tests (run niced, on a clone): go vet and go test ./internal/builder ./cmd/mesh-builder pass at the head and with the head merged into main df9e572. On main: with only lend_test.go, the package does not compile (Registry.LendBases undefined), so the two registry tests fail; with lend.go and lend_test.go but without the builder.go wiring, TestAnImageIsPushedOnlyAfterItsBasesAreLent fails behaviourally (the build did only push bus/server, the want begins with lend bus/server …). So all three fail on main.

  1. Access model. The registry is plain HTTP with no per-repository authorisation (Registry's own comment: the private network is the authentication). The mount uses the standard distribution API (POST /blobs/uploads/?mount=&from=), which the registry only honours when from holds the blob, and a mount moves no bytes. It mounts only into the image's own repository (scratch-prefixed through scratchPublisher), and only the blobs of the bases the build itself stood on — content the build agent already read and which the pushed image references anyway. The mirror code already mounts across repositories the same way (source.mountFrom). Nothing becomes readable that was not before. A 202 (registry declined to mount) is cancelled with a DELETE, so no upload is left open.

  2. Live mesh. On the classic overlay2 store the push would HEAD each blob and mount or upload it anyway; now the blobs are already there and the push skips them. The image and its digest are unchanged. Cost: one manifest GET per base (two for an index) and a HEAD per blob, plus one new build-log line. The only state difference is note (b) below.

  3. Skipping. buildArgValues reads only the --build-arg values standingOn produced; LendBases skips anything not name@sha256:… (the @novox/mesh-sdk@1.2.3 and tag cases are tested), a repository equal to the target, and a manifest this registry does not hold (404 is not an error). Index entries are filtered on runtime.GOOS/GOARCH, and an entry without a platform (attestations are unknown/unknown) is skipped. The build agent runs on the docker daemon's machine, so the Go runtime's platform is the build's platform. The variant is ignored, which only matters on arm, where at worst a sibling variant's blobs are also mounted.

  4. Log-and-continue is sound. The push stays the authority, and it fails loudly naming the missing blob when lending was needed and did not happen. A lending failure never makes a wrong image. The registry client waits for a registry held still, as the push does, so no new hang appears.

Minor notes (not blocking):
(a) LendBases drops the host of the base reference and looks the repository up on r.Address. Today every base is a reference into this registry, so this is right. A foreign-host reference with the same repository name here would mount the same bytes, because mounts are by digest. Comparing where.base with r.Address would make that explicit.
(b) Every base is lent, including one a multi-stage recipe uses only in a build stage, and each base's config blob too. So the image repository gains links to blobs its manifests never mark. No bytes are duplicated and registry GC marks by manifests, but once a mirror is collected those links can outlive their blobs. A HEAD on them then answers not-found, which costs one more lending, so this is harmless.
(c) The first failed mount returns, so the bases after it are not lent. That is acceptable because the push is tried anyway, but the log line says "could not all be linked" without saying how many were linked first.

The lab run on shanks (comment above) shows step 16 (base) pushed mesh-tools-go without the issue 694 error; the later stop at step 18 is unrelated.

Verdict: APPROVE at 8933864a49d0. No blocking findings; three minor notes below. Independent review of issue 694 (a build's bases are linked into its repository before the push). Checks at this head, as the forge keeps them: - mesh/merge-gate: success, "head 8933864a49d0 merged into trunk df9e5728a925 — pass: builds build-agent, mesh-controller → ace, g14, novox, shanks; no bus step" (4 of 4 compose) - mesh/repo-check: success, "its merge-check.sh passed" - mesh/delivery: success, "ready: it delivers once merged" Tests (run niced, on a clone): `go vet` and `go test ./internal/builder ./cmd/mesh-builder` pass at the head and with the head merged into main df9e572. On main: with only lend_test.go, the package does not compile (`Registry.LendBases undefined`), so the two registry tests fail; with lend.go and lend_test.go but without the builder.go wiring, TestAnImageIsPushedOnlyAfterItsBasesAreLent fails behaviourally (the build did only `push bus/server`, the want begins with `lend bus/server …`). So all three fail on main. 1. Access model. The registry is plain HTTP with no per-repository authorisation (Registry's own comment: the private network is the authentication). The mount uses the standard distribution API (POST /blobs/uploads/?mount=&from=), which the registry only honours when `from` holds the blob, and a mount moves no bytes. It mounts only into the image's own repository (scratch-prefixed through scratchPublisher), and only the blobs of the bases the build itself stood on — content the build agent already read and which the pushed image references anyway. The mirror code already mounts across repositories the same way (source.mountFrom). Nothing becomes readable that was not before. A 202 (registry declined to mount) is cancelled with a DELETE, so no upload is left open. 2. Live mesh. On the classic overlay2 store the push would HEAD each blob and mount or upload it anyway; now the blobs are already there and the push skips them. The image and its digest are unchanged. Cost: one manifest GET per base (two for an index) and a HEAD per blob, plus one new build-log line. The only state difference is note (b) below. 3. Skipping. buildArgValues reads only the --build-arg values standingOn produced; LendBases skips anything not `name@sha256:…` (the `@novox/mesh-sdk@1.2.3` and tag cases are tested), a repository equal to the target, and a manifest this registry does not hold (404 is not an error). Index entries are filtered on runtime.GOOS/GOARCH, and an entry without a platform (attestations are unknown/unknown) is skipped. The build agent runs on the docker daemon's machine, so the Go runtime's platform is the build's platform. The variant is ignored, which only matters on arm, where at worst a sibling variant's blobs are also mounted. 4. Log-and-continue is sound. The push stays the authority, and it fails loudly naming the missing blob when lending was needed and did not happen. A lending failure never makes a wrong image. The registry client waits for a registry held still, as the push does, so no new hang appears. Minor notes (not blocking): (a) LendBases drops the host of the base reference and looks the repository up on r.Address. Today every base is a reference into this registry, so this is right. A foreign-host reference with the same repository name here would mount the same bytes, because mounts are by digest. Comparing where.base with r.Address would make that explicit. (b) Every base is lent, including one a multi-stage recipe uses only in a build stage, and each base's config blob too. So the image repository gains links to blobs its manifests never mark. No bytes are duplicated and registry GC marks by manifests, but once a mirror is collected those links can outlive their blobs. A HEAD on them then answers not-found, which costs one more lending, so this is harmless. (c) The first failed mount returns, so the bases after it are not lent. That is acceptable because the push is tried anyway, but the log line says "could not all be linked" without saying how many were linked first. The lab run on shanks (comment above) shows step 16 (base) pushed mesh-tools-go without the issue 694 error; the later stop at step 18 is unrelated.
mesh-admin merged commit 2959c81435 into main 2026-10-14 01:19:25 +00:00
mesh-admin deleted branch fix/694-a-push-holds-its-bases 2026-10-14 01:19:25 +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-controller#318