docs(system): unstable annotation lifecycle law
912f78d471928db207d4c5317f3ba0dbbac71604
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: b507c00dda51
There are many coding harnesses - but this one is fast
912f78d471928db207d4c5317f3ba0dbbac71604
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+3 / −2 text lines
+1 / −1 text lines
13. 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.14. 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.15. Deprecation is metadata with a named replacement and a removal major; enforcement is mechanical at `smith plugin check`, never a breaking change by itself.15. 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.16. Flat interfaces inside one world; the fixed `namespace:package/interface` hierarchy is all the structure a world needs.+2 / −1 text lines
- 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.- 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.- 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.- Append-only inside a major: add functions, never edit signatures or records; supersede with a new function and a deprecation marker.- 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.- Append-only inside a major applies to stabilized items; unstable items may reshape or disappear freely until stabilized.