feat/server-mode-init #58
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/server-mode-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ADR-028 points 1-4, on the serving half: - registry: the entry grows the birth metadata {issuer, seed} (omitempty — a v0.8.0 record reads birthless, the loud reader absorbing the missing keys; facts, never authorization); Register renames Initialize(proposed, issuer, actor) per the vocabulary ruling, a collision returning the typed *Collision CARRYING the existing record — the completion window's raw material (the registry stays engine-blind). - server: Initialize evaluates the window on a collision — the recorded issuer matching the caller's authenticated subject, the proposal's acronym and founding actor matching, no items, the roster the seed alone (StoreFor's lazy seed converging the unmaterialized file into the window's shape first) — the binding record returns un-rejected; any divergence answers E_ACRONYM_TAKEN, the foreign answer, named. committed rides the seam: a completion answers the record having written NOTHING (the audit row exists to record a change; completion records none). - serve's StoreFor: the seeded materialization — a BORN registered project (the entry carries metadata) whose config is absent materializes on first open: one engine transaction, the config identity (format 1, MODE SERVER — the design call resolved per ADR-028 point 3's own text: the ADR names the seeded config's mode; the wire round-trips it (WireConfig carries mode verbatim) and the engine's read gates no mode vocabulary, the tracker-side copy load-inert («mode is a repo fact» — the repo file is the fact)) and the roster seed (the founding actor, owner). Idempotent by the absent-config precondition. boltstore untouched. - protocol: /register renames /initialize, the handler carrying the subject as the birth's issuer and auditing only COMMITTED initializations. - httpstore: /initialize is a mutating exchange (outcome-unknown — a broken initialization may have committed the birth; the window closes it in band). Test-side fallout adapted mechanically: the harnesses compose their fresh fixtures BIRTHLESS (the direct registry seam, no metadata — the suite's fresh contract 'no config, no roster, no items' is the birthless shape; the born state's own pins ride the server-init battery), the wire seeds overlay the materialized state through Update, the registration-race probe asserts the ruled window semantics (both same-details proposals answer; one commit, one completion — one audit row), and the bootstrap live flow's seed commit updates the materialized founder instead of re-adding it. Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>