A delivered host reads its version from where it sits #57

Merged
jschoubben merged 1 commits from fix/161-a-delivered-host-reads-its-version-from-its-path into main 2026-09-30 10:40:30 +00:00
Owner

ADR 0142 decided this and it was not implemented: "It is unpacked into a directory named for its version, so it can read its own version from its path. The stamp goes, and with it the need for a build to know what it will be called."

The mesh's toolchain stamps no version, on purpose, so a delivered host called itself development build and the mesh could not tell which host a machine ran — the whole of what issue 087 added.

A host placed by hand keeps its stamp, which is the honest answer for one the mesh did not deliver, and is every machine until a delivery reaches it. A binary sitting anywhere else is not read as a version at all.

make check clean.

ADR 0142 decided this and it was not implemented: *"It is unpacked into a directory named for its version, so it can read its own version from its path. The stamp goes, and with it the need for a build to know what it will be called."* The mesh's toolchain stamps no version, on purpose, so a delivered host called itself `development build` and the mesh could not tell which host a machine ran — the whole of what issue 087 added. A host placed by hand keeps its stamp, which is the honest answer for one the mesh did not deliver, and is every machine until a delivery reaches it. A binary sitting anywhere else is not read as a version at all. `make check` clean.
jschoubben added 1 commit 2026-09-30 10:40:17 +00:00
novox/hq ADR 0142, which decided this and was not implemented: "It is
unpacked into a directory named for its version, so it can read its own
version from its path. The stamp goes, and with it the need for a build to
know what it will be called."

The mesh's toolchain stamps no version, on purpose, so a delivered host
called itself "development build" and the mesh could not tell which host
any machine ran — which is the whole of what 087 added. A delivered host
lives at <libexec>/versions/<version>/<binary>, and that directory is the
answer.

A host placed by hand keeps its stamp, which is the honest answer for one
the mesh did not deliver, and is every machine until a delivery reaches
it. A binary sitting anywhere else is not read as a version at all.

The decision is split from the reading so a test can ask about a path
without being that binary.
jschoubben merged commit f576287b51 into main 2026-09-30 10:40:30 +00:00
jschoubben deleted branch fix/161-a-delivered-host-reads-its-version-from-its-path 2026-09-30 10:40: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-host#57