Skip to content

Manifests combine; only files collide, and writ plans the union itself - #879

Merged
David-Noble-at-work merged 2 commits into
developfrom
fix/814-manifests-combine
Sep 10, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
fix/814-manifests-combine

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #814.

Summary

Acceptance criteria (from the plan)

  • Every manifest reaches the merge, in contribution order: base → team → personal, general → specific.
  • A package claimed twice is planned once, and its features are the union of what the claims asked for.
  • A duplicate claim is narrated as a note naming every manifest that made it.
  • A scope's native packages are one subgraph of the scope graph, one pkg.install per product.
  • A claim that resolves to a registry package is noted and not planned, until the devlore provider plans it.
  • Files still collide exactly as they do today.
  • The writ documentation states both rules beside each other.

Test plan

  • tree: two specificities and two layers both survive; a file still collides
  • platform: ParseIdentifier across the three forms and the refusals
  • writ deploy: the merge rules (rows 3b–3e, 5, 8), the duplicate note (3d)
  • writ deploy: Matrix A through BuildGraphs on the host platform; the refusal tree; the manifest-only directory
  • writ deploy noblefactor --dry-run on 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

Marker UTC Elapsed
opened (first commit) 2026-09-09T04:33:57Z —
submitted (PR opened) 2026-09-10T05:59:25Z 25.4 h after opened
merged 2026-09-10T15:33:31Z 9.6 h after submitted; 35 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

David Noble 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packages-manifest.yaml files collide like deployed files: the most specific one shadows the rest, so a layer's general packages are never planned

1 participant