Skip to content

Other Libraries beyond the tree layout (L2) - #144

Merged
jcombs-pointblue merged 1 commit into
masterfrom
library-folders-l2
Nov 23, 2026
Merged

jcombs-pointblue merged 1 commit into
masterfrom
library-folders-l2

Conversation

@jcombs-pointblue

Copy link
Copy Markdown
Contributor

L2 of docs/library-containers.md, after L1 (#143, core 0.77.0).

Simulator export (ExportWriter.toDriverXml)

  • A Library object is embedded under a name that's unique where it's embedded. When the name is taken (by the driver's own object, or by another Library's of the same name), it becomes <name>@<alias> (@Library for the driver set's own), and the linkage DN follows. Two objects of one name linked by one driver now both run, each its own copy.
  • The driver's own objects keep their names first, then the driver set's Library. That also fixes a driver-local policy and a Library policy of one name sharing a DN.
  • A <token-map> in another Library's policy reads that Library's table first, then the driver set's own.
  • driverSetGcvObjects matches the driver set's linkage by DN, then by name with the driver set's own first, so two GCV objects of one name don't both come in.
  • Not changed: the driver-set export (toXml), which isn't what the simulator reads.

Validation

  • library-other names each folder (libraries/<alias>; library for a pre-0.77.0 tree).
  • A finding in libraries/ never blocks a scoped deploy, which doesn't write those objects. ValidationScope.owner says Library <alias>.
  • Where a name is shared, the driver set's own mapping table wins (Model.mappingTables, and CompileCheck registers the own Library last).
  • libraries/ links count as linked for the compile and ECMAScript checks, so they're checked in the linking driver's context. Another Library's policy that no driver links isn't compiled; it's a read-only reference nothing here loads.

Promotion: manifestOf maps a libraries/<alias>/ file to its folder's library.xml.

Output: check and the imports print the driver set's own Library, then one line per other Library with its object count and DN.

Tests (1073 pass on a clean build)

  • twoLibraryObjectsOfOneNameAreBothInTheChain loads the export into the simulator. Its subscriber chain runs lib-sub-command and then lib-sub-command@Library.
  • theDriverSetsGcvObjectIsTheOneItsLinkNames.
  • validationKnowsTheFolders (library-other path).
  • ModelLibrariesTest: the own table wins.
  • ValidationScopeTest and PromoteTest gain the libraries/ cases.

End to end: import-ldif of a vault LDIF where Loop links lib-NormalizeTitle from both its own Library and cn=Library,o=services.

  • query chain lists library/lib-NormalizeTitle and libraries/Library/lib-NormalizeTitle.
  • validate reports library-other on libraries/Library.
  • simulate loads both copies and runs the case, with the same result as the same case on master's tree. The GCV "Invalid DN format" warning comes from the synthetic fixture and appears on master's tree too.

🤖 Generated with Claude Code

- Simulator export: a Library object is embedded as <name>@<alias> where its
  name is taken (the driver's own, or another Library's of that name), so two
  of one name linked by one driver both run; a token-map in another Library's
  policy reads that Library's table first; the driver set's GCV object is the
  one its link's DN names.
- Validation: library-other per folder; findings in libraries/ never block a
  scoped deploy; the driver set's own mapping table wins a shared name; an
  unlinked policy of another Library isn't compiled; libraries/ links count as
  linked for the compile and ECMAScript checks.
- Promotion: manifestOf for libraries/ files.
- check/import output: a line per other Library with its DN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcombs-pointblue
jcombs-pointblue merged commit c50320f into master Nov 23, 2026
4 checks passed
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.

1 participant