Repository navigation
Manifests combine; only files collide, and writ plans the union itself - #879
Merged
Merged
Conversation
added 2 commits
September 8, 2026 21:33
A draft for review before any code. Every layer's and every suffix directory's manifest shares one target ID, so the overlay rule discards all but the most specific -- and a manifest lands nowhere, so the rule does not apply to it. Found while sizing: the matcher returns specific directories first, so contribution order needs an explicit sort rather than the walk's; and no seam sees more than one manifest today, so the union belongs in the planner, which already holds the reader, the registry client and the feature merge. Refs #814. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
Every layer's and every suffix directory's packages-manifest.yaml shared one target ID, so the overlay rule kept the most specific and discarded the rest; a manifest lands nowhere, so the rule had nothing to arbitrate. The tree builder now carries every manifest in contribution order, and writ merges the union in its own deploy path: one pkg.install per native product, gathered into one packages subgraph per scope. Identity is what the catalog interns, by the pkg provider's grammar, now exported once as platform.ParseIdentifier: jq, brew:jq and pkg:brew/jq are one product; port:jq is a second. A pin satisfies an unpinned claim; two different pins are refused naming both manifests, the interim until the broker can ask the manager (#872). Every duplicate claim is narrated as a note naming the manifests that made it. A claim that resolves to a registry package is noted and not planned until the devlore provider (#877) exists; lore.Planner leaves writ's path. The guides state the union rule beside the file overlay rule, with the two interim sentences. Refs #814. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
This was referenced Sep 10, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #814.
Summary
manifest.resolveentry bypasses collision resolution and lands inBuildResult.Manifests, ordered by layer, specificity, then source.deploy/manifest.goreplaces the call tolore.Planner.PlanManifests: onepkg.installper native product, gathered into one packages subgraph per scope; a claim that resolves to a registry package is noted and not planned until the devlore provider (The devlore provider: deploy, upgrade, reconcile and decommission on a devlore package #877).buildCandidateis exported asplatform.ParseIdentifier; the merge keys on what the catalog interns, manager type plus name. Namespace and version are resolved by satisfaction; two different pins are refused naming both manifests (interim, Package semantics vary on two axes the resource model fixes by assumption: is the version part of identity, and is the install global or local #872).Acceptance criteria (from the plan)
pkg.installper product.Test plan
tree: two specificities and two layers both survive; a file still collidesplatform:ParseIdentifieracross the three forms and the refusalswrit deploy: the merge rules (rows 3b–3e, 5, 8), the duplicate note (3d)writ deploy: Matrix A throughBuildGraphson the host platform; the refusal tree; the manifest-only directorywrit deploy noblefactor --dry-runon the Windows VM plans the team layer's eight Windows-applicable packages, not one (the user's)Rulings
Recorded on #872 (fifteen deltas), #446 (lore is a tool the pkg provider uses), #877 (the devlore provider), #873 (lifecycle output design), #874 (2.5 names resolve first). Open rulings named in the plan: the namespace half of satisfaction, and whether the native subgraph's children are chained.
Time
Computed by the algorithm of noblefactor-ops#188 at merge.