feat/server-project-registry #49

Merged
xavier merged 4 commits from feat/server-project-registry into dev 2026-11-14 07:26:13 +01:00
Owner
No description provided.
bbolt is the ruled server-side store engine (ADR-020 decision 1 —
the one new runtime dependency, extending ADR-008's list); v1.5.0 is
the version the ADR names. It brings golang.org/x/sys as its one
transitive dependency (indirect). The ADR-008 dependency audit
(cmd/skuld/deps_test.go) learns the extension: allowedDeps gains
bbolt + x/sys, sanctionedDeps gains bbolt, and the sanctioned
explicit/indirect checks drive from the map. pflag stays exactly as
dev pins it (v1.0.9, indirect marker untouched — the dependency diff
against dev is bbolt + x/sys and nothing else).
The server's one global fact (components/server-registry.md): which
acronyms name registered projects. Register validates the proposal
through the shared FR-044 rule (domain.NewAcronym — grammar and
folding, E_ACRONYM rejections verbatim) and lands the record in one
registry transaction on registry.db: check absent, insert, commit —
bbolt's single-writer-per-file makes concurrent proposals of one
acronym resolve as exactly one registration, losers rejected typed
(«acronym uniqueness at registration»). The FR is the arbiter for
re-attempts: a collision rejects typed naming the taken acronym, it
never refreshes the record. Resolve and StorePath fold and gate on
registration: unknown acronyms reject E_UNKNOWN_PROJECT before any
store path is minted, so no store file is ever created for an
unregistered project; registered projects mint distinct files under
projects/<acronym>.db — isolation is mechanical (ADR-020 decision 2,
«per-project namespace isolation»).

Typed rejections ride the port's existing discipline: domain.NewError
with registry-local codes E_ACRONYM_TAKEN / E_UNKNOWN_PROJECT, typed
as domain.ErrCode so domain.CodeOf and the future protocol envelope
treat them like any domain rejection. Corrupt records fail the loud
read (typed CorruptError naming file and key); a corrupt or
contested registry.db fails Open loudly, named. Values marshal in
the canonical JSON discipline (filestore.MarshalCanonical, UTCTime).

Tests: registration semantics (fresh/collision/grammar/unknown/
store-path minting) and lifecycle integration (restart durability,
16-way concurrent proposal race, fail-fast second-serve lock,
corrupt reads, store-level namespace isolation over raw bbolt).
Suite green, gofmt clean, vet clean, race clean.
Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
server-project-registry: review fold-in — loser goroutine asserts with Errorf, not Fatal
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 6s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m1s
/ build darwin/amd64 (pull_request) Successful in 28s
/ build linux/amd64 (pull_request) Successful in 22s
/ build windows/amd64 (pull_request) Successful in 29s
/ build darwin/arm64 (pull_request) Successful in 28s
/ build linux/arm64 (pull_request) Successful in 28s
/ build windows/arm64 (pull_request) Successful in 31s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
1eb680a4c0
Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
xavier deleted branch feat/server-project-registry 2026-11-14 07:26:13 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
assistant/skuld!49
No description provided.