- add CallableId/Descriptor/Origin and CallableRegistry in marqdo-ir
- include builtins, Marqdo functions and declared ABI exports in one static
lookup model with deterministic conflict rules
- validate declared plugin export signatures in the frontend without loading
any shared library
- add registry and frontend static-plugin-signature tests
- replace path-only ModuleId with {instance, relative_path} and canonical
<instance>::<path> encoding
- add PackageResolver/ResolvedPackage in marqdo-package for path sources;
hash package trees deterministically for content-addressed instance ids
- move import resolution out of the CLI loader; reject package escapes
- emit lock_version 2 with instance ids and migrate v1 lockfiles
- update references/package-format specs and the function-ref golden
- add package resolver tests for stable identity across path moves
- value: add ErrorCategory::RefAmbiguous (code ref.ambiguous) for the S-07 rule
that a reference matching several resources must never silently pick the
first one; re-export float/integer conversion helpers at the crate root.
- ir/builtins: math/foreign calls accept positional arguments followed by named
ones (matching the documented examples) instead of being named-only; arity
and unknown-name validation still apply.
- tests updated for the new builtin call shape.
Add the independent program IR from blueprint sections 7.1 and 11:
- ModuleId, FunctionId and UnitId canonical identities; UnitInfo/UnitKind for
heading scopes (root, namespace, function, section).
- Function with explicit or inferred signature metadata, params and defaults;
assignments, expression statements, link-form calls, branches, loops and
returns, all carrying source spans.
- CallTarget distinguishes same-module, import-alias-qualified and
link-resolved calls.
- ImportDecl from explicit front-matter imports; Resource records inert
Formula/Code artifacts with SHA-256 content hashes and owning units.
- Module anchors, resolved import edges and Program lookup helpers used by the
runtime and CLI.
- Builtin registry (names, aliases, arity, named-only/effect flags) shared by
static validation and runtime dispatch; adding a builtin is a spec change.
Prose is absent from the IR by construction, so narrative edits cannot change
the executable projection.
Create the Marqdo CLI Rust workspace with the module boundaries from the
development blueprint (section 11):
- marqdo-span: byte spans and line/column mapping shared by every layer
- marqdo-value, marqdo-expression, marqdo-markdown, marqdo-ir
- marqdo-frontend, marqdo-runtime, marqdo-host, marqdo-sandbox
- marqdo-math, marqdo-foreign, marqdo-package
- marqdo-plugin-abi, marqdo-plugin-sdk
- marqdo-cli (binary `marqdo`)
Pin the Markdown parser exactly (comrak =1.0.0, no default features) so the
frozen profile can never drift silently. Dependencies are centralized in
workspace.dependencies; no crate is allowed to add its own version of a shared
dependency.