-
v0.8.0
StableAll checks were successful/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (push) Successful in 5s/ test (linux/amd64, full suite) (push) Successful in 1m19s/ build windows/amd64 (push) Successful in 41s/ build linux/amd64 (push) Successful in 41s/ build darwin/amd64 (push) Successful in 47s/ build darwin/arm64 (push) Successful in 43s/ build linux/arm64 (push) Successful in 52s/ build windows/arm64 (push) Successful in 54s/ release (six binaries + checksums.txt, tag pushes only) (push) Successful in 54sreleased this
2026-11-15 23:01:22 +01:00 | 519 commits to dev since this releasev0.8.0 — Server-core: the contract holds on a second engine
The posture first, plainly: the wire this release carries is an
internal surface, not a contract. It exists because the CLI is
its client — a client that arrives with the client epic (roadmap
v0.10.0) — and for nothing else: no stability is promised, it may
change in any release without notice, and building against it is
unsupported.skuld servebinds loopback by default, and the
first cut has no authentication — every request is served, every
caller trusted equally. The bind is the boundary: serving beyond
loopback is an explicit operator act, and the first cut gives that
wider bind no protection. Authentication, machine identity and
audit rows are the auth epic's (v0.9.0); a public, documented API
for third-party tools is carved later from a stable shape — never
the reverse, for narrowing a published surface is the harder
direction.The round itself is a proof, and the proof is executable. The
server-mode arc opens with its core slice — four epics, one per
minor: core (this release) → auth → client → migration. The Store
contract holds on a second engine — bbolt, one database file per
registered project, chosen by ADR-020's comparative read of the
ruled workload (read-heavy ~10:1, per-project team-scale contention,
single-digit MB per project, load-whole-project access, one
self-hosted node). A multi-project registry enforces acronym
uniqueness at registration. And the store conformance suite — 74
clauses, every precondition proved both in direct form and in
mid-transaction race form — round-trips unchanged over HTTP
through the thin store protocol (ADR-021): one suite, three green
runs — the file store, the bbolt engine, and that engine served
over the wire. Engine and wire both proven: ADR-001's port
cleanliness, promised since the architecture's first decision, is
cashed. Same binary throughout — one build, both roles: a binary
that can track can serve.Upgrading: drop-in. Local mode is unchanged in behavior — no
store format move (format stays 1), no config key added, no template
move; the CLI's verbs behave exactly as in v0.7.0. The binary grows
skuld serveand two vendored trees: bbolt v1.5.0 with its one
transitive golang.org/x/sys — pure Go, no cgo, the six-target
cross-build matrix untouched — while pflag moves v1.0.9 → v1.0.10
(MVS-forced by bbolt, landing identically under any ruling) and
joins the sanctioned direct set: ADR-022 records tidy surfacing a
truth as old as the v0.7.0 config verbs — one direct import the
toolchain had under-reported for two rounds. Version drift of
sanctioned dependencies remains undetected by the dependency audit;
that open point is tracked as backlog
vendored-graph-pflag-bump-landmine, a CI tidy-diff gate the
adopted fix direction. Operators runningserve: the default bind
is loopback only (127.0.0.1:8420) —--bindwidens it as your
deliberate act, and you own the exposure until auth lands in v0.9.0;
--datanames the data root (the OS-conventional default
otherwise); shutdown is graceful on signal, and a secondserve
against the same data root fails fast namingregistry.db.What shipped
- The server-side engine — boltstore over bbolt — «store
contract holds on any engine» (server-mode.md): one bbolt file per
registered project (projects/<acronym>.dbunder the data root);
buckets mirror the fact model, one key per fact, values the
filestore's own canonical JSON bytes — pinned byte-identical by a
compatibility pin, so both engines speak one storage dialect. A
transaction is a staged buffer over a copied MVCC snapshot:
preconditions are never validated at stage time, every guard is
re-checked against the file's one write transaction at commit, and
the write-set applies all-or-nothing with one fsync
(«per-request transactional commit» is one bolt transaction per
request). No lock file — bbolt's single-writer-per-file discipline
is structural, and a second process holding a file failsOpen
fast and loud. Reads outside transactions take fresh snapshots:
never blocked by the writer, never blocking it («unlocked reads
outside transactions», by engine construction). Pinned at the
ruled workload sketch: 800 items with comments, receipts,
episodes and edges land at 1.0 MB, and a ~10:1 mixed read workload
under a concurrent writer shows no read queueing behind a commit. - The conformance suite — the contract in executable form —
«conformance as executable proof» (server-mode.md): one
engine-agnostic catalog of 74 clauses — per-method preconditions,
read sentinels and orderings, transaction mechanics, staged-write
invisibility — each precondition proved twice: violated before
staging (the commit fails, state intact) and flipped between
staging and commit (the commit fails, the interferer's fact
survives). A Store adopts the suite by implementing a three-method
harness alone —Fresh,Alike,Interfere— and a failure
names the violated contract clause, never a bare assertion. Green
three ways this round: the file store (local mode pinned, not
presumed), the bbolt engine, and that engine reached through the
protocol. - The amended contract — creation never silently overwrites —
«create-uniqueness at the store» (server-mode.md):Put
distinguishes create from update by the boundary data alone —
same code and same canonicalCreatedAtis an update; anything
else is a create, and a create onto a live code is a typed
rejection naming the code. Both engines carry the guard — the
amendment binds every store — and the deterministic same-suffix
race (two child-creates from one parent state computing one
suffix) closes typed: one lands, the other isE_DUPLICATE_ITEM,
no overwrite. Local mode's cross-clone same-code race still
arrives as git's loud add/add, unchanged — the guard binds what a
store itself serializes. ADR-021's three further settlements ride
the same decision: the config/boot seam (ConfigRepois project
identity; the mode-and-server selector is a client-side file that
never crosses the wire), Tx semantics as promise-not-mechanism
(each engine owns the how), and unlocked outside-Tx reads as a
stated requirement of every engine. - The typed E_* precondition family at the port —
«machine-readable rejection codes» (server-mode.md): one stable
machine code per violated commit-time guard — the suite's catalog
is the enumeration — with a payload naming the offending
identifiers: a claim that loses a race is rejected naming the
winning claimant. Fourteen guards map onto existing registry
codes; four codes join the audited catalogue (E_NO_CONFIG,
E_DUPLICATE_ITEM,E_DUPLICATE_COMMENT,E_DUPLICATE_RECEIPT),
and the registry's and protocol's own (E_ACRONYM,
E_ACRONYM_TAKEN,E_UNKNOWN_PROJECT,E_MALFORMED_REQUEST)
fold into the same one-vocabulary discipline. Over the wire every
rejection is one JSON envelope — 409 precondition, 404
unknown-project, 400 malformed, 422 domain, 500 internal —
carrying the code verbatim; a client branches on codes and never
parses prose. - The multi-project registry — «acronym uniqueness at
registration» and «per-project namespace isolation»
(server-mode.md): the server's one global fact — which acronyms
name registered projects — in its own small file,registry.db;
registration is one transaction (check absent, insert, commit), so
concurrent proposals of one acronym resolve as exactly one
registration — verified sixteen-way under the race detector,
losers typedE_ACRONYM_TAKENnaming the taken acronym in any
case-spelling; grammar and folding reuse the one domain rule
(E_ACRONYM). Each registered project is an isolated namespace —
its own database file: the same item code, roster name and version
identifier coexist across projects, and writes to different
projects never delay each other. No store file is ever created
for an unknown project, and the registry survives a restart
byte-identically. - The thin store protocol — «thin store protocol» and
«conformance over the wire» (server-mode.md): the wire maps
Store-port operations and nothing more — per-aggregate resource
reads under/p/<acronym>/…, a whole-project snapshot, and one
commit request carrying the ordered staged write-set (19 operation
kinds — every mutating port method) replayed through one engine
transaction: atomic per request, no partial application ever
observable. No use-case-shaped endpoints; rules, guards and
computed facts stay with the caller. Registration rides the wire's
one control-plane operation. The suite runs unchanged against the
served protocol and passes — the wire adds no behavior and loses
none — and against the production server, two-client races prove
the exclusivity promises: twelve-round concurrent claims (exactly
one lands, losers typed naming the winner), twelve-round
same-suffix child-creates (one child, losers typed naming the
code), registration races (exactly one registration), and
isolation in both directions. skuld serve— the server host — «same-binary serve»,
«loopback-default bind», «no authentication in the first cut»
(server-mode.md): the one binary runs the server —skuld serve [--bind <addr>] [--data <dir>]; there is no second artifact to
distribute, one build both roles. The default bind is loopback
(127.0.0.1:8420) — reachable from the machine it runs on and
from nowhere else, the wider bind never a default. Graceful
shutdown on signal drains in-flight requests and closes project
files and the registry cleanly; a secondserveon one data root
fails fast on the registry's lock; a corruptregistry.dbis a
loud startup failure — it is the addressing root of trust. The
posture was verified against the live binary: default bind answers
from loopback and refuses other hosts, a wider bind requires the
explicit argument, and SIGTERM exits clean with the data root
intact.- The httpstore client library — the client-side Store (and its
Tx) implemented over HTTP: a transaction opens with a wire
snapshot, stages locally with read-your-writes, and commits as the
one request — conformance-proven over the wire this round. It is
not yet wired into the CLI: it is the client epic's foundation
(v0.10.0), where boot's mode switch selects the store — filestore
or httpstore — and mode-transparency between the modes holds by
construction.
The round, in brief
One epic, six tasks, two lanes. The shaping pair landed on dev
first: server-core-frs (03fe481— the spec's fifteen FRs,
docs/specs/server-mode.md) and server-core-adrs (ffacf16— ADR-020
and ADR-021 plus the four server-side component docs). Then code in
needs order: store-conformance-suite (PR #47, merge100bed2— 73
clauses pinning filestore, the amended-Put fold-in point left
doc-commented); the parallel pair — server-store-engine (PR #48,
merge3a67b3f: the engine, the amendment folded onto both engines as
its first motion, the typed family; 74/74 over bbolt) in the round
lane, and server-project-registry (PR #49, mergeb57a375) in a lane
of its own — the pair's identical vendor mirrors resolving at merge
by the one sanctioned regeneration, the pflag move ADR-022 governs
(ADR5b6339b, regenerationf9145b9); and server-rest-protocol last
(PR #50, mergea6e85e4: the protocol,serve, the httpstore seed,
conformance over the wire, the two-client harness — the round's
final code merge, the v0.8.0 lane retiring after it). One
corrections summons landed in-round (10ee35b): ADR-021's
never-crossing-the-wire clause clarified to bind the client's
boot-selector file alone — the port's config value crosses whole —
the built code and the suite ruling the doc. Local mode closes the
round unchanged in behavior and stronger in proof — the suite pins
its whole contract first — with every gate green: full suite, gofmt,
vet,-race.Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download
- The server-side engine — boltstore over bbolt — «store