You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Linux suffix chain follows os-release's lineage: what deploys to Debian deploys to Ubuntu, what deploys to Fedora deploys to RHEL #860
base for Ubuntu so what deploys to Debian should deploy to Ubuntu. Similarly, Fedora is the base for RHEL so
what deploys to Fedora should deploy to RHEL."
Today
cmd/writ/writ/segment/detect.go names a Linux host's distribution by /etc/os-release's ID, capitalized
by a small table (ubuntu → Ubuntu, rhel → RHEL, …), and the suffix chain is Unix → Linux → that
one name. ID_LIKE — where os-release states the lineage, closest ancestor first — is never read. Measured
2026-09-08 by the layer-journey scenario (#855) on ubuntu-latest: a common.Debian directory does not
deploy on Ubuntu.
The rule
The chain is most-general-first and follows the lineage:
Unix → Linux → <ID_LIKE reversed> → <ID>
Host
ID
ID_LIKE
Chain after Linux
Debian
debian
—
Debian
Ubuntu
ubuntu
debian
Debian → Ubuntu
Fedora
fedora
—
Fedora
RHEL
rhel
fedora
Fedora → RHEL
CentOS Stream
centos
rhel fedora
Fedora → RHEL → CentOS
Rocky
rocky
rhel centos fedora
Fedora → CentOS → RHEL → Rocky
Every directory in the chain contributes; for a file at one target the more specific wins, as Darwin wins
over Unix today. Manifests union across the chain (#814). The capitalization table extends to the names ID_LIKE can carry, and an unknown id is capitalized as today.
Acceptance
segment.DetectSegments on a host with ID_LIKE yields the lineage chain above, in that order
a unit test per row of the table, driven by a synthetic os-release
the layer-journey scenario's step 2.3 deploys common.Debian on ubuntu-latest and ubuntu-24.04-arm
(it skips by this issue's number until then)
#369 (the suffix grammar: order, dimensions, ties — this adds members to the chain, not dimensions), #849
(the design record), #814 (manifests union across the chain), #855 (where it was measured).
Merged into #944 (2026-09-28). Ruled: "Yes, merge them." The lineage chain is the one selector API's matching rule, so #944 carries this issue's rule, its table (extended), and its acceptance, including the scenario step 2.3b, which skips by this issue's number until #944 lands and then takes #944's. The rulings of 2026-09-28 (precedence by chain depth; a selector names one link, .Debian permanent) are recorded there.
Activity
test(writ): the journey's selector table follows writ's distro rule; …
test(writ): the layer-journey scenario -- self install, repo set, dep…
David-Noble-at-work commentedon Sep 28, 2026
Merged into #944 (2026-09-28). Ruled: "Yes, merge them." The lineage chain is the one selector API's matching rule, so #944 carries this issue's rule, its table (extended), and its acceptance, including the scenario step 2.3b, which skips by this issue's number until #944 lands and then takes #944's. The rulings of 2026-09-28 (precedence by chain depth; a selector names one link,
.Debianpermanent) are recorded there.