Skip to content

Directory contracts

Every directory of the layer says what it is for, in a README that composes with its ancestors. The tree below is the one the resolver reads, with the verdict validation reached for each directory.

Directories in the tree
35
Carrying a contract
27
Exempt, by their governing contract
8

The tree

Each row is a directory of .ai. A directory carries its own contract, or the contract that governs its subtree exempts it — instances of a kind, such as a skill and its examples, owe no contract of their own. What applies to a path is majordomus context resolve <path>; this page is the shape that resolution walks.

How a chain is composed

The effective context for a path is every applicable document from the root down to it, least specific first, ordered by depth, then the declared order, then the path. A subtree document applies to its directory and everything below; a directory document to its own directory alone; an explicit one to the directories it lists. extend appends, replace names the ancestors it stands in for, and final may not be superseded by anything below it.