1.2 KiB
-
Scope This profile defines the minimum required behavior for runtimes that execute tricu bundles.
-
Non-goals No tricu source parsing. No lambda elimination. No module system. No package manager. No local DB requirement. No authoring names beyond bundle exports.
-
Required bundle sections Header Manifest/exports Merkle nodes
-
Optional/skippable sections Source, debug, package metadata, signatures, provenance, etc.
-
Entrypoint selection Explicit export name first. Else export named main. Else single default root. Else error.
-
Node payload format Leaf/Stem/Fork byte layouts.
-
Hash verification Domain string and payload hashing rules.
-
Closure verification All referenced child hashes must exist.
-
Runtime representation Suggested JS representation, but not normative.
-
Reduction semantics The six Tree Calculus apply rules.
-
Codecs for v1 Raw tree required. Maybe string/bool optional or experimental.
-
Required error cases Bad magic/version, missing export, hash mismatch, malformed payload, missing child.
-
Test fixtures List of bundles the implementation must pass.