repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

docs(system): unstable annotation lifecycle law

912f78d471928db207d4c5317f3ba0dbbac71604

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

+3 / −2 text lines

Diff layout

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

Modified

+1 / −1 text lines

18618612. Mechanisms, not policies: no world interface encodes a workflow (Lua).
18718713. World-first: the WIT world is the only API; no smith-authored SDK ships before 1.0, and an SDK stays optional forever — comfort through raw bindgen is a design requirement.
18818814. One world major for the host API (`smith:plugin@N`); plugin-published contracts carry their own majors; versioning every interface separately recreates classpath chaos for no benefit.
18915. Deprecation is metadata with a named replacement and a removal major; enforcement is mechanical at `smith plugin check`, never a breaking change by itself.
18915. Deprecation is metadata with a named replacement and a removal major; enforcement is mechanical at `smith plugin check`, never a breaking change by itself. New APIs enter `@unstable`, exempt from append-only until stabilized; a world major ships with zero unstable items.
19019016. Flat interfaces inside one world; the fixed `namespace:package/interface` hierarchy is all the structure a world needs.
19119117. Trust flows through the distribution channel — embedded and release-signed, or installed and hash-recorded — never through runtime privilege.

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

Modified

+2 / −1 text lines

143143- Flat interface set inside one world: `http`, `secrets`, `log`, `stream`, `contrib`; resources carry methods, no prefix hierarchies. Grouping pressure means an interface is too wide.
144144- One world major: `smith:plugin@N`; breaking changes bump the world, additive changes stay inside it. Plugin-published contracts carry their own majors (`owner:name@major`). The host embeds the previous world during a deprecation window.
145145- Deprecations are metadata: `@deprecated` with since and removal versions plus a named replacement; deprecated items stay functional until the next world major; `smith plugin check` fails new builds targeting them.
146- Append-only inside a major: add functions, never edit signatures or records; supersede with a new function and a deprecation marker.
146- New items enter as `@unstable`: usable but exempt from the append-only law until stabilized; a world major ships only with zero unstable items — each is stabilized or removed first.
147- Append-only inside a major applies to stabilized items; unstable items may reshape or disappear freely until stabilized.
147148- One naming grammar, one error grammar, one documentation shape across all interfaces.
148149- Names follow verb-noun functions, noun types, no abbreviations; symmetric verb pairs; `open` for acquired handles, `create` for pure values; faults are nouns.
149150- Parameter order is data first, options record last.