repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

docs(system): diagnostics law, contract packaging, update distribution constraint

463accb597cc131bb84b21093df327cd0ab0358f

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

+11 / −0 text lines

Diff layout

.system/research/SMH-RESEARCH-TBKDJHVX-plugin-api-standard-library-lessons/index.md

Modified

+2 / −0 text lines

209209- Which failure vocabulary granularity survives WIT result variants before becoming a Java-style exception taxonomy?
210210- How do plugin-published module contracts compose with world versioning: are they worlds of their own, or interface resources inside the smith world?
211211- Can `smith plugin check` diff worlds mechanically today (wasm-tools), or does the tooling gap force author-asserted versions initially?
212- How does a consumer detect additive interface features within one major — unknown catch-alls cover data, not functions?
213- Which signing scheme fits remote implementation updates, and does it ride the release signature or a separate update key?

.system/specs/SMH-SPEC-PLUG0001-plugin-system/index.md

Modified

+2 / −0 text lines

9696Manifest and artifact reads are bounded before materialization, and canonical paths cannot escape their declared root.
9898A module contract is a typed, major-versioned component interface.
99A package that exports a contract ships the contract WIT alongside its artifact; the artifact exports both the contract interface and its implementation constructors in one component.
100Remote updates deliver implementations only; interfaces change only with host world releases.
99101Undeclared exports remain private.
100102A module can have zero, one, or multiple implementations.
101103One implementation binds automatically.

.system/specs/SMH-SPEC-SPEC0001-smith-specification/index.md

Modified

+7 / −0 text lines

366366OpenBSD x86_64 is best effort.
367367Release archives include versioned binaries and SHA-256 checksums.
369## Diagnostics
371Every user-facing error and warning states what happened, why, and the next corrective action.
372Diagnostics steer: they name the offending value, the surface that supplied it, and where possible a concrete fix or example.
373Bare codes without prose are forbidden; errors never expose secret material.
374This law covers the CLI, the plugin API, RPC, and all developer tooling at every stage of the project.
369376## Acceptance criteria
371378Smith is acceptable when: