feat/httpstore-adapter #56

Merged
xavier merged 6 commits from feat/httpstore-adapter into dev 2026-11-17 17:50:39 +01:00
Owner
No description provided.
The v0.9.1 closure's standing one-liner: the agent family's FactOf
mapping guarded op.Agent == nil but not the empty name, leaving a bare
'agents/' prefix possible — a forged address for a fact that does not
exist. Both legs now map to "" (the item family's record-leg shape),
pinned by the gap-shape table's new probe lines (nil record both
spellings, empty-name record both spellings).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
ADR-027 point 4 («network failure shape», mode-transparency.md): the
wire unreachable or a conversation broken before its outcome is known —
refused, unreachable, mid-flight, a timed-out commit — fails as one
typed code, E_NETWORK, joining the domain catalogue (constant + allCodes
+ the audited contract list) so the CLI renders it uniformly at exit 1
while the class stays its own: raised by the adapter, client-side only,
never a domain rejection, never a protocol or auth shape, never
laundered. No envelope is invented — the wire broke, none arrived;
decode failures, unknown sentinels and envelope-less answers stay the
protocol violations they were (pinned). The message names the base URL
and the transport shape (exchange + stage: connect / mid-flight),
honors outcome-unknown-never-guessed (the commit is the one exchange
that can land a change; a read states nothing changed), and carries the
class's mode-aware remedy: read-then-retry, the base URL named. The
transport cause unwraps — the caller's retry policy branches on it, the
adapter retries nothing.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
ADR-027 point 2's wiring, the seed completed into what boot needs
(cmd/skuld/serverstore.go): serverStoreFor — the wire client's FIRST
step is the ADR-026 resolution (NormalizeOrigin → the OS-user store's
entry → SKULD_TOKEN → tokenstore.Resolve, a validator never a
preference); the outcome maps at this consumption site — both sources
differing ⇒ cli.TokenConflict (E_TOKEN_CONFLICT, exit 1, both sources
and the store path named, nothing sent), nothing resolvable ⇒ domain
E_NO_TOKEN (exit 1, nothing sent), resolved ⇒
httpstore.New(base, acronym).WithIdentity(token, ""). The actor is
stamped at the CLI's existing resolution point: Runtime.ActingAgent
stamps the resolved name through the new optional actorStager seam
(httpstore.StageActor) — mode-blind by construction, the filestore
carries no seam and the assertion fails; every mutation verb resolves
through the one chain, so every wire commit body carries the declared
actor. The mode switch calling this is boot-mode-switch's; this is the
wiring it composes.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
ADR-027 point 3's proof and the deferred pins, in cmd/skuld against
the PRODUCTION server (internal/server on a temp data root, console
issuance first — the cold cadence):

- TestConformanceThroughProductionPath: the full clause catalog runs
  through serverStoreFor — the resolver resolving from a real on-disk
  OS-user token store (Fresh: store-alone; Alike: both sources
  agreeing), the actor stamped at the resolution seam — the same
  handle boot builds, not the harness's hand-composed identity. The
  interference dialect: port-expressible divergences through a second
  production client; the removals through the raw door (server
  stopped, raw bbolt write at the registry's layout, restart) behind
  one stable proxy address, so the in-flight handles never notice the
  generation change.
- TestTokenConflictEndToEndOnRealFlow: the extended AC — env and
  store holding differing tokens, a genuine flow fails as the typed
  E_TOKEN_CONFLICT (exit 1, both sources + the store path named)
  BEFORE any connection is attempted (the counting proxy is the
  observable); clearing one source, the same flow authenticates and
  is served.
- TestNoTokenEndToEndOnRealFlow: nothing resolvable ⇒ typed E_NO_TOKEN,
  exit 1, zero traffic.
- TestRejectionIdentityAcrossThePair: the same create collision
  through the filestore and through the wire — same code, same
  message bytes (identical outputs by the one-vocabulary
  reconstruction).
- TestActorResolutionPointDrivesTheWire: ActingAgent's sole-roster
  fallback reads the roster THROUGH the wire store and stamps it; the
  commit carries it; the audit row records subject (the machine) and
  actor (the declared name) as distinct facts; an unstamped commit is
  the server's malformed-actor rejection — the seam is load-bearing.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The living-documentation refresh: the v0.8.0 seed language ("the
client epic will polish it") is now the present tense — the package IS
the production client, constructed through boot's wiring with the
resolver attached and the actor stamped at the resolution point; the
tokenstore resolver comment likewise (consumed, not "will be").

The mid-flight probe hung/flaked because its truncating listener
handed each connection to an http.Server AND answered it raw — two
writers racing one socket (sometimes the client got the server's 404
instead of the crafted truncation, and after dropping the server nobody
called Accept so the raw handler never started). The peer is now its
own accept loop: read the request head, declare a body it never
delivers, write the partial answer, close.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
httpstore-adapter: tester's verification probes — outcome-unknown from the landed side, the commit-corner laundry pin, restart regeneration, CLI rendering, the roster-family identity spot-check
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 7s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m52s
/ build windows/amd64 (pull_request) Successful in 1m10s
/ build darwin/arm64 (pull_request) Successful in 1m14s
/ build linux/amd64 (pull_request) Successful in 1m23s
/ build darwin/amd64 (pull_request) Successful in 1m24s
/ build linux/arm64 (pull_request) Successful in 1m9s
/ build windows/arm64 (pull_request) Successful in 1m7s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
d3eb30c90a
xavier deleted branch feat/httpstore-adapter 2026-11-17 17:50:39 +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!56
No description provided.