feat/server-rest-protocol #50
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/server-rest-protocol"
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?
internal/server/protocol — the thin store protocol: /p/<acronym>/… resource reads, the whole-project snapshot (the client Tx's open-time read, ADR-021 L3), POST commit carrying the ordered staged op set replayed through one engine transaction, POST /register control plane. One rejection envelope: {error:{kind,code,message,detail}} — precondition 409 / domain 422 / protocol 400+404 / internal 500, codes verbatim from the audited E_* catalogue; absent reads carry the port sentinel by name. Wire values are the canonical shapes; wire->domain goes through the domain constructors (a grammar failure is E_MALFORMED_REQUEST). internal/server — the host: registry + lazy keep-open boltstore engines + protocol handler; loopback-default bind constant; graceful shutdown draining in-flight requests, closing engines and registry. Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>The review's four bounded items, nothing else: 1. replayOps' stage-loop comment now says what the branch made true: stage failures may also be the typed rename-endpoint refusals (Recode's stage-time view checks carry E_UNKNOWN_ITEM/E_DUPLICATE_ITEM), carried verbatim through the wrap and classified precondition/409. 2. TestProtocolCodesPinned pins protocolCodes == {E_MALFORMED_REQUEST, E_UNKNOWN_PROJECT} exactly — the silent-drift door closed (a forgotten map entry would quietly render as kind domain); the map's comment spells the three-place procedure for a future protocol-level code (protocol.md, the audited catalogue, this map). 3. Dead code gone: the repeated second eErr guard in httpstore's storeNeeds.All (its NeedsOf twin was already clean) and the dead assign-then-delete in stagedView.commentDelete. 4. ConfigFromWire's comment claims only what holds: the engines' read paths gate data-location (E_DATA_LOCATION at load); mode has no read-path gate — its gate is client boot. Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>