feat(pbs): support quoted project imports and installed authoring contracts

This commit is contained in:
2026-11-10 15:19:53 +00:00
parent ea1cc26fe3
commit b351f2e582
159 changed files with 11368 additions and 50 deletions
@@ -335,6 +335,27 @@ Rules:
- `if`,
- and `switch`.
#### Authoring state with private implementation details
Keep state construction and its private helper types in the defining module;
expose operations and public result types rather than requiring consumers to
construct the implementation. File-private declarations stay in their defining
file. Use `mod` barrel entries for admitted sibling-file access and `pub` entries
for importing modules. A private dependency used by a public implementation does
not become a caller-visible declaration.
Use supported direct construction in global initializers and perform procedural
factory calls in admitted executable contexts, including permitted `[Init]`
bodies. This does not admit factory calls into global initializers or provide
automatic placeholder values. The existing transitive init-admission rules and
one-shot bootstrap order in specification 9 still apply. Imports of globals and
services preserve their defining storage and singleton identity.
The installed `pbs:example:game:1:production/GUIDE.md` reference and its complete
projects demonstrate these boundaries, including deliberately rejected controls.
Joining files, exporting helpers or renaming private types is not a language
requirement for the corrected production binding cases.
### 3.5 Enum declarations and values
Rules: