Repository navigation
Description
Measured 2026-09-30 on develop at 616a141c. I read every file in the tree through the contents API and searched it for Linux.<word>. 29 lines in 9 files name Linux.Debian or Linux.Fedora as a platform. Three more lines in writ-structure.yaml name Linux.Arch and the "Linux.Distro notation". main (32ddfaca) names none of them. This issue comes from the plan for devlore-cli#944, the one selector API, decision Q16 (plan).
What changed
devlore-cli#992 merged on 2026-09-30 as e440151a and resolved devlore-cli#944. writ and lore now select directories through one package, pkg/selector, following the lineage in the host's os-release. A platform directory names one link of the chain, and lore's base directory is Common. On Ubuntu a package applies Common, Unix, Linux, Debian, Ubuntu, in that order (docs/guides/selectors.md :34-35, :41-60, :152-153).
Linux.Debianis a grammar error. It has two OS words (selectors.md:65-66,:161). The selector reportsLinux.Debian: "Debian" is a second OS word; a name has at most one(pkg/selector/selector.go:126-127,:334-335).- lore refuses the whole package, on every host.
PlatformDirsjudges every directory in a package and returns a*GrammarRefusalbefore anything is planned (cmd/internal/lorepackage/lifecycle.go:196-213).TestPlatformDirs_RefusesALeftoverLinuxDebianrefuses bothLinux.DebianandLinux.Fedoraon an Ubuntu host (cmd/internal/lorepackage/lifecycle_test.go:62-80). - The token that produced the form is gone. devlore-cli#992 deleted
pkg/platform/token.go. It mapped debian and ubuntu toLinux.Debian, and fedora, rhel, centos, rocky and alma toLinux.Fedora(token.go:21-40at19014c9d). - Detection reads os-release and nothing else (
selectors.md:184). There is no extra lineage table for a distribution whose os-release omitsID_LIKE(plan Q9).
Where the registry names it
| File | Lines | What it teaches |
|---|---|---|
AUTHORING.md |
176-214 | the ABNF linux-platform = "Linux" ["." distro-family] (182-183); the hierarchy row Linux.Debian, Linux.Fedora (201); "distro families", with an explicit mapping promised for Azure Linux (203-212); Linux.Debian.arm64 (214) |
AUTHORING.md |
245-259, 265-275, 350, 385-392, 496-500, 699 | the two Docker trees with Linux.Debian/ and Linux.Fedora/ (245-259, 385-392); the execution order ending in Linux.Debian/; a script header; "build a Linux.Debian graph on a Mac"; the README template's <platform>/ list |
knowledge/package-authoring/prompts/generate-package.txt |
68, 80, 221, 226 | the layout the model is told to generate, and a resolution order whose most specific step is Linux.Debian |
knowledge/package-authoring/examples/generate-examples.yaml |
103, 110, 123, 131 | the worked Docker example, docker/Linux.Debian/Deploy/… |
knowledge/package-authoring/schemas/package-output.json |
30 | the output schema: "Keys: Common, Unix, Darwin, Linux, Linux.Debian, Linux.Fedora, Windows" |
knowledge/migration/concepts/writ-structure.yaml |
72-73, 95-112 | writ segments all.Linux.Debian and all.Linux.Arch; platforms Linux.Debian, Linux.Fedora and Linux.Arch, "use Linux.Distro notation in segments", each detected by a release file (/etc/debian_version, /etc/fedora-release, /etc/arch-release) |
knowledge/migration/concepts/dotfile-systems.yaml |
452 | writ's pattern example all.Linux.Debian |
knowledge/onboarding/schemas/init-plan.json |
15 | "OS platform (Darwin, Linux.Debian, Linux.Fedora, Windows, etc.)" |
packages/docker/README.md |
74-75 | the Platforms table: Linux.Debian rewrite pending, Linux.Fedora not supported |
packages/docker/lifecycle.yaml |
28-29 | "Linux.Debian returns once its phases are rewritten" |
writ refuses the same form in a layer, because common.Linux.Debian names two links (selectors.md:66). Two other matches are valid and not counted: all.Linux.arm64 (knowledge/migration/prompts/migrate-to-writ.txt:133) and <project>.Linux.arm64/ (knowledge/migration/transforms/from-yadm.yaml:57). Each is an OS followed by an architecture.
The three package-authoring files go into the generation prompt: scripts/Test-PackageGeneration:85-118 and scripts/Test-Onboarding:270-309 both cat them into it, beside the install-type patterns and the package's slots. So a model is told to lay out Linux.Debian/, and lore refuses a package laid out that way.
Package directories
No package directory is named Linux.Debian or Linux.Fedora, so no package is refused today. On develop, the only platform directory in any package is packages/docker/Darwin/. The other nine packages keep their scripts at the package root. #81 (Docker's Darwin deploy rewrite, merged 2026-08-28) removed packages/docker/Linux.Debian/ and packages/docker/Linux.Fedora/. main has no platform directories. Every other branch in the repository, 38 in all, forked before #81 and still carries both directories. Four are the leftover heads of squash-merged pull requests: chore/knowledge-sync-73724ed (#86), chore/rename-validate-check-context (#76), feature/binding-unification-p6 (#19-#21) and knowledge/sync-57a9fd2 (#69). The other 34 are knowledge/sync-* branches whose pull requests were closed unmerged. No pull request is open from any of them.
Resolution
None of this is fixed by editing the words by hand. On 2026-09-26, #92 (the knowledge describes the product before writ) retired hand-written knowledge as a category: "we need a way to generate all content. we will never keep handwritten content up to date with the churn." Every asset is generated from the product in one of three ways: code generation from devlore-cli's source, a skill that regenerates with the source in front of it, or an MCP server that answers from the live product. Which way serves which asset type is #92's design, which isn't written yet. The six knowledge files above are hand-written (generated: false at knowledge/package-authoring/index.yaml:19, :24, :29, knowledge/migration/index.yaml:6, :14 and knowledge/onboarding/index.yaml:11). That makes this issue the selector case of #92's design:
- The platform names come from their one source. The vocabulary is code,
pkg/selector/words.go:10-51: the OS words, the distribution words and both spellings of each architecture. The grammar, the chain, the order and the errors are indocs/guides/selectors.md.- By code generation,
star devlore knowledge extractwould write them as a generated reference. It already does this forknowledge/migration/references/writ-migrate-vocabulary.yaml, fromcmd/writ/writ/migrate's constants (devlore-cli'sstar/extensions/com.noblefactor.devlore.Knowledge/commands/extract.star:912-937,:983-1007ate440151a;generated: trueatknowledge/migration/index.yaml:28). The generation prompt then carries the reference, asscripts/Test-Onboarding:277-287already carries the generatedbindings/reference.yaml(generated: trueatknowledge/package-authoring/index.yaml:10). - By a skill or an MCP server, those two sources are what it reads.
- By code generation,
- AUTHORING.md goes the same way. It sits outside
knowledge/and outside The knowledge describes the product before writ: Stow, Tuckr and Home/Configs in 45 hand-written files, last touched 2026-08-28 #92's count of 45 files, but the ruling says "all content". Its platform sections restate rules that devlore-cli#944 keeps in one place. Plan Q15 was ruled on 2026-09-30: "one location with references from two locations: lore and writ". So whatever The knowledge describes the product before writ: Stow, Tuckr and Home/Configs in 45 hand-written files, last touched 2026-08-28 #92 produces for these sections refers toselectors.mdand doesn't restate it. The pointer to the noblefactor RFC §9.3 as "the formal grammar" (AUTHORING.md:174) goes too, because that RFC still spells the retired grammar (devlore/design/02-devlore-rfc.md:1451-1452). - The Docker package's two files go with Feature: Docker — refresh the exemplar package #72 (Docker: refresh the exemplar package). They describe directories Rewrite docker's Darwin deploy path against the API that exists #81 removed and say one of them returns. Feature: Docker — refresh the exemplar package #72's Scope item 4 moves everything it can into
Linux/and keeps distro directories only for registering vendor repositories. A distro directory returns asDebian/orFedora/, and the README's Platforms table and the lifecycle comment use those names.
Evidence of completion
- No file on
developnamesLinux.Debian,Linux.Fedora,Linux.ArchorLinux.Distroas a platform - The six knowledge files are generated through The knowledge describes the product before writ: Stow, Tuckr and Home/Configs in 45 hand-written files, last touched 2026-08-28 #92 (
generated: truein their domain'sindex.yaml) or retired AUTHORING.mdrefers to devlore-cli'sdocs/guides/selectors.mdfor platform directories and restates none of its rules
Plan and design documents
| Kind | Document |
|---|---|
| Plan | Not yet opened |
Activity