Complete the first-cast guidance - #51
Merged
Merged
Conversation
jmchilton
marked this pull request as ready for review
August 8, 2026 07:31
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.
What changed
target declaration, hooks, cast findings, and provenance
and implementation checklist
useful before
@galaxy-foundry/castis installedWhy
The implementation guide described the cast package but jumped from authoring Molds directly to the
domain's external check. It also gave two conflicting answers about companions: Kind dispositions
were described as enforced, while another section required fixed membership to be repeated per
note.
The corrected boundary is:
kindLayoutsbundledfixed companions travel automatically with a resolved notefoundry-onlyandcast-inputcompanions cannot be reclassified by note metadataThe new casting stage also records a useful adoption boundary: a reader-only instance uses the
plain reference-contract loader and should reject uninterpreted
cast:configuration; the composedcast loader is adopted only when the first real Mold is ready to compile.
Dependency
The Kind-owned cast companion API is introduced by jmchilton/foundry-lib#95. Keep this PR in draft
until that contract is merged and published.
Validation
npm run check:links— 21 files, no broken linksnpm test— 22 tests passnpm run typecheck— zero errors; one existing unused-variable hintnpm run build— 28 pages built and indexed by PagefindThe build retains the existing CSS optimizer warning about a Google Fonts
@importorder; thischange does not touch site styles.