Repository navigation
Description
Part of the nine-module architecture in #440. This issue holds the contract and code ownership of errors. M2 defines the contract; the issues listed below own the implementation.
Purpose: Typed errors with stable codes, plus the types and schemas that the other modules share. It depends on nothing.
Docker equivalent: Errors and types
API surface: prism.errors classes and stable codes, shared types
Prism difference: Types come from @prism-code/spec. Reading the .holo format is in verify; only the layout constants and value encoding sit here.
Code that moves here
- Rust (
crates/prismpm/src):error,contracts(schema table and closed-shape checks; its semantic checks move to their owners),holo/canonical(value encoding) - JavaScript (
sdk/npm/prism-code/src):errors,errors-namespace,version,vendor/spec/,canonicalJsonfromarchive, plus@prism-code/spec
This map follows the agreed design in docs/proposals/440-nine-modules.md, under Code ownership. A file that will split keeps its current owner until it does. Confirm each row when the code moves.
May depend on: None
Implemented by: #263 (@prism-code/spec), #276 (typed errors), #312 (contracts in LexLean)
Done when: Every module raises only registered, typed errors with stable codes, ERRORS.md lists them all, and this module imports no other module. Each public capability and diagnostic is registered in model/*.toml and covered by conformance fixtures.
Depends on: #440.
Part of the Prism SDK v1.0 roadmap: Prism SDK v1.0
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(prism-code): add the prism.errors namespace and a registration c…
test(prism-code): list canonical.algorithm as an unregistered code (R…
fix(prism-code): load in a browser, with no node: imports (Refs #440) (…
test(prism-code): read the SDK register with CRLF line endings, as on…
feat(prism-code): register every SDK error code (Part of #448) (#619)
chore(conformance): exempt the encode/decode_canonical move from the …
chore(model): regenerate the standards lock for the authority.rs wrap…
test(golden): refresh the stdlib goldens for the new emitter semantic…
chore(ci): pin the reviewed application generator owner for the contr…
test(golden): import the reviewed native records for the module cuts …
refactor(prismpm): Rust module cuts for contracts, canonical, advisor…
refactor(prismpm): process helpers move to verify, the last pending m…
refactor(prismpm): process helpers move to verify, the last pending m…
afflom commentedon Nov 12, 2026
The done-when holds on main:
check-modulesreports 0 pending cuts, and contracts has left the legacy cycle.Closing.
Generated by Claude Code