Skip to main content

Module resolve

Module resolve 

Source
Expand description

AST-to-contract reference/type resolution and the public entry point (reference §7/§8). Every reference resolves through ResolvedModuleSet::symbols; nothing scans the AST by name.

Constants§

APPLICATION_CONTRACT_SCHEMA_VERSION
INTERPRETATION_VERSION
LANGUAGE_SCHEMA_VERSION
SOURCE_MAP_MAX_BYTES
SOURCE_MAP_MAX_MODULES
Public-bound resource budgets for untrusted source maps (gate finding 7). A source map larger than this in entries or bytes is APP015 before any parse or resolution work runs. Generous enough for the flagship fixtures (two modules, ~2 KB), tight enough to deny conversational-workflow DoS.

Functions§

resolve_application_contract
Resolve an in-memory source map into a validated application contract document, or the complete deterministic diagnostic list. Milestone 0 binds the empty semantic-pack set at the fixed public boundary (§9).
resolve_application_contract_json
JSON boundary twin of resolve_application_contract.
resolve_application_contract_with_packs
resolve_application_contract with explicit (pack_id, content_hash) semantic-pack inputs (D10): the pack set crosses the boundary into inputs.semantic_pack_set_hash and the envelope’s semantic_packs.