idip: keri-stack-nix — KERIA + witness + schema server packaged for the gateway, doors behind the front door #771
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#771
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
Feature spec: #767 (idip; wayfinder map #725).
What to build
The IDIP identity stack as first-class gateway services (research #727, ADRs 0196/0199, DDR 0200): KERIA, a witness, and the credential schema server packaged for NixOS — nothing KERI is in nixpkgs, so this builds the four pure-Python derivations (hio, multicommand, keri, keria) plus a NixOS module — each service with its own unit and a declared health check (ADR 0112: no declared check, no activation). Ingress: the KERIA admin, CESR, boot, witness-HTTP and schema doors served as apex subdomains behind the front door on 443 with real certificates, exempt from the ADR 0074 browser gate;
/bootgated by invite-token forward-auth (the check's consumer arrives with the keria adapter — until then the gate refuses everything, fail-closed); the witness's TCP port stays private. One witness, not the 6-AID demo topology. This slice owns the version-pin decision: matou-app runs KERIA 0.2.0-rc1 / signify-ts 0.3.0-rc2 (monkey-patched), upstream is 0.4.0/0.4.0 — pick informed by prototype #732's rc1 behaviours and record the choice. This slice BLOCKS every stack consumer (slice-map ruling): the adapter, bridge and join page test against this real packaged stack, never doubles.Acceptance criteria
/bootrefuses without a live invite token (fail-closed until the adapter arrives), and the witness TCP port is unreachable publicly.Blocked by
Task manifest
swarm-claim host=elitebook-distributed-server-03 run=10055
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision (the version pin this slice owns): package the stack at the matched upstream pair — KERIA 0.4.0 on keripy (keri) 1.2.13, hio 0.6.14, multicommand 1.0.0, Python 3.12, with signify-ts 0.4.0 the app-side counterpart. The matou stack's KERIA 0.2.0-rc1 / signify-ts 0.3.0-rc2 (monkey-patched) is not carried forward.
Why (weighing prototype #732's rc1 findings):
docs/research/2026-08-24-keria-stack-on-nixos.md§6 recommends pinning one keripy for both KERIA and the witness (matou runs two keripy generations — 1.2.2 + 1.1.0rc2 — in one stack); 0.4.0/1.2.13/0.4.0 is the single matched line upstream today.keria-adapter-core); flagged for that slice, re-addable as apatches = [ ]list on the keria derivation if the join flow proves it needs them.Why it is a two-way door: the pin is expressed as version constants in the renderer (
internal/clan/keri.go), reverted by editing those constants and re-running the pin test; nothing member-facing or security-posture-widening turns on the choice, and it is provable by the nix build + the founding drive's identity legs.What proves it:
RenderKeriemits the pinnedbuildPythonPackageversions (asserted byTestKeriPins); the live matched-pair behaviour (revocation propagation in 0.4.0; Netbird flows per ADR 0199) rides the founding drive and the keria adapter, per the slice-map ruling that consumers test against this real packaged stack.Recorded as design DDR ADR 0207.
close-report for #771 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
journey.device.spec.ts+ device-add fixtures #852--target device+ standing preflight wiring #853your-membership400s at issuance (#788 drive red, sig facdb1c80cf1) #1004member-joindies at "Failed to fetch" #1031