pairing T1b: the config server never reaches an IDIP gateway — no payload slot, no supply step, no interpreter for the unit #1510 renders #1623

Closed
opened 2026-09-19 03:31:51 +00:00 by ben · 2 comments
Owner

Parent

Spec #1495 (community app pairing). Program map #1293. Design contract: ADR 0226 decisions 2 and 8 (the config server has one implementation, owned by matou-infrastructure; it is always installed on the IDIP path). Follows #1510 (the unit) and #1512 (the 1.1 document from outside).

The defect

Found 2026-09-19 while preparing the first live IDIP drive since #1510 landed — by reading the code, not yet by a red drive.

internal/clan/keri.go renders systemd.services.matou-config-server with

ExecStart = "/srv/idss/bin/config-server --port 3904 --config-path …/org-config.json";

and its comment says matou-infrastructure "builds and seeds it here beside /srv/idss/bin/control-plane and /srv/idss/bin/idss-idp (fleetwire supply)". Nothing does.

  1. The file never reaches a gateway. scripts/assemble-payload.sh has no config-server slot and internal/fleetwire/supply.go seeds exactly two binaries — control-plane and idss-idp (PayloadIdssIdp). git grep -i config-server over scripts/, internal/fleetwire/, internal/founding/ finds no supply of it.
  2. Nothing could run it if it did. The config server is a Python script (config-server.py, #!/usr/bin/env python3, standard library only — --port and --config-path are real flags). The rendered unit has no path and names no interpreter, and a NixOS unit has no python3 on its PATH.

Expected live result on every IDIP founding at current main: the unit fails 203/EXEC, Restart=on-failure loops it, nixos-rebuild switch exits 4 on the failed unit and the deploy step reds — the shape #1606's drive showed for the video oneshot. #1510–#1512's proofs were render and seam proofs (GOTCHAS #92: derivable ≠ deployed), and every live drive since has been on the kanidm path, where the unit is not installed.

What to build

The config server is supplied and runnable on every IDIP gateway, by the idss-idp precedent.

  • A payload slot. scripts/assemble-payload.sh gains a config-server slot staged from PAYLOAD_CONFIG_SERVER_SRC (a path to matou-infrastructure's config-server.py), with a status line in the summary like every other slot. idss still never vendors the source (ADR 0226 d.2).
  • Supply seeds it. internal/fleetwire/supply.go gains PayloadConfigServer and lands it at /srv/idss/bin/config-server with the same staging → chmod → mv -f steps idss-idp gets — on the IDIP path only, on every founding path that seeds idss-idp today (rented, own-VPS/self-hosted, private).
  • The unit names its interpreter. ExecStart runs the seeded file under a Nix-provided Python (${pkgs.python3}/bin/python3 /srv/idss/bin/config-server …) — no reliance on the shebang or a system PATH.
  • An absent slot refuses honestly, before anything is rented. An IDIP founding whose payload has no config-server is refused at preflight with a sentence naming the missing piece — never a deploy that stands up a unit that cannot start. The kanidm path is untouched.
  • The drive hosts' payload refresh knows the slot (scripts/rehearsal-cycle.sh's tree-built refresh and the staleness gate), so a standing payload without it is re-staged, not driven.

Acceptance criteria

  • assemble-payload.sh stages config-server from PAYLOAD_CONFIG_SERVER_SRC and reports the slot's status; unset → the slot is reported absent, loudly, and the rest of the payload still assembles
  • Supply lands /srv/idss/bin/config-server (0755) on the IDIP path on every founding path that seeds idss-idp, and never on the kanidm path — proven at the supply seam the way idss-idp's seeding is
  • The rendered unit's ExecStart names a Nix store Python and the seeded file; the render test pins it, and the module still parses (nix-instantiate --parse)
  • An IDIP founding with no config-server in the payload is refused at preflight naming it; nothing is rented or deployed
  • docs/GOTCHAS.md gains the entry (a unit that execs a seeded file needs a payload slot, a supply step and an interpreter — a render proof proves none of the three), and STATUS.md records it
  • Live proof is the next IDIP drive's: systemctl is-active matou-config-server on the founded gateway and GET https://<apex>/api/client-config answering the 1.1 document from outside (that drive is #1522's; this ticket closes on the seams above)

Open ruling (Ben) — not blocking this ticket

Where the payload's default copy comes from. matou-infrastructure is a private repo with no public mirror, so a payload builder cannot fetch the file without a credential. Until ruled, builders set PAYLOAD_CONFIG_SERVER_SRC to a local checkout. The precedent (ADR 0226 "how carried" §1, the spaces package) points at a public, pinned source so no builder holds a credential; the alternatives it rejected there were a token in every builder and a pinned copy in idss.

Task manifest

task: config-server-supplied-and-runnable
depends_on: [pairing:config-server-unit]
out_of_scope: [the default source of the file (open ruling), the descriptor's contents, the writer, the live drive]
needs_human_decision: []
## Parent Spec **#1495** (community app pairing). Program map **#1293**. Design contract: **ADR 0226** decisions 2 and 8 (the config server has one implementation, owned by matou-infrastructure; it is **always installed on the IDIP path**). Follows **#1510** (the unit) and **#1512** (the 1.1 document from outside). ## The defect Found 2026-09-19 while preparing the first live IDIP drive since #1510 landed — by reading the code, **not yet by a red drive**. `internal/clan/keri.go` renders `systemd.services.matou-config-server` with ``` ExecStart = "/srv/idss/bin/config-server --port 3904 --config-path …/org-config.json"; ``` and its comment says matou-infrastructure "builds and seeds it here beside `/srv/idss/bin/control-plane` and `/srv/idss/bin/idss-idp` (fleetwire supply)". **Nothing does.** 1. **The file never reaches a gateway.** `scripts/assemble-payload.sh` has no `config-server` slot and `internal/fleetwire/supply.go` seeds exactly two binaries — `control-plane` and `idss-idp` (`PayloadIdssIdp`). `git grep -i config-server` over `scripts/`, `internal/fleetwire/`, `internal/founding/` finds no supply of it. 2. **Nothing could run it if it did.** The config server is a **Python script** (`config-server.py`, `#!/usr/bin/env python3`, standard library only — `--port` and `--config-path` are real flags). The rendered unit has no `path` and names no interpreter, and a NixOS unit has no `python3` on its PATH. Expected live result on every IDIP founding at current `main`: the unit fails `203/EXEC`, `Restart=on-failure` loops it, `nixos-rebuild switch` exits 4 on the failed unit and the deploy step reds — the shape #1606's drive showed for the video oneshot. #1510–#1512's proofs were render and seam proofs (GOTCHAS #92: derivable ≠ deployed), and every live drive since has been on the kanidm path, where the unit is not installed. ## What to build The config server is supplied and runnable on every IDIP gateway, by the idss-idp precedent. - **A payload slot.** `scripts/assemble-payload.sh` gains a `config-server` slot staged from `PAYLOAD_CONFIG_SERVER_SRC` (a path to matou-infrastructure's `config-server.py`), with a status line in the summary like every other slot. idss still **never vendors the source** (ADR 0226 d.2). - **Supply seeds it.** `internal/fleetwire/supply.go` gains `PayloadConfigServer` and lands it at `/srv/idss/bin/config-server` with the same staging → chmod → `mv -f` steps idss-idp gets — **on the IDIP path only**, on every founding path that seeds idss-idp today (rented, own-VPS/self-hosted, private). - **The unit names its interpreter.** `ExecStart` runs the seeded file under a Nix-provided Python (`${pkgs.python3}/bin/python3 /srv/idss/bin/config-server …`) — no reliance on the shebang or a system PATH. - **An absent slot refuses honestly, before anything is rented.** An IDIP founding whose payload has no `config-server` is refused at preflight with a sentence naming the missing piece — never a deploy that stands up a unit that cannot start. The kanidm path is untouched. - **The drive hosts' payload refresh knows the slot** (`scripts/rehearsal-cycle.sh`'s tree-built refresh and the staleness gate), so a standing payload without it is re-staged, not driven. ## Acceptance criteria - [ ] `assemble-payload.sh` stages `config-server` from `PAYLOAD_CONFIG_SERVER_SRC` and reports the slot's status; unset → the slot is reported absent, loudly, and the rest of the payload still assembles - [ ] Supply lands `/srv/idss/bin/config-server` (0755) on the IDIP path on every founding path that seeds idss-idp, and never on the kanidm path — proven at the supply seam the way idss-idp's seeding is - [ ] The rendered unit's `ExecStart` names a Nix store Python and the seeded file; the render test pins it, and the module still parses (`nix-instantiate --parse`) - [ ] An IDIP founding with no `config-server` in the payload is refused at preflight naming it; nothing is rented or deployed - [ ] `docs/GOTCHAS.md` gains the entry (a unit that execs a seeded file needs a payload slot, a supply step **and** an interpreter — a render proof proves none of the three), and `STATUS.md` records it - [ ] Live proof is the next IDIP drive's: `systemctl is-active matou-config-server` on the founded gateway and `GET https://<apex>/api/client-config` answering the 1.1 document from outside (that drive is #1522's; this ticket closes on the seams above) ## Open ruling (Ben) — not blocking this ticket **Where the payload's default copy comes from.** matou-infrastructure is a **private** repo with no public mirror, so a payload builder cannot fetch the file without a credential. Until ruled, builders set `PAYLOAD_CONFIG_SERVER_SRC` to a local checkout. The precedent (ADR 0226 "how carried" §1, the spaces package) points at a **public, pinned** source so no builder holds a credential; the alternatives it rejected there were a token in every builder and a pinned copy in idss. ## Task manifest ```yaml task: config-server-supplied-and-runnable depends_on: [pairing:config-server-unit] out_of_scope: [the default source of the file (open ruling), the descriptor's contents, the writer, the live drive] needs_human_decision: [] ```

swarm-claim host=bens-mac-04 run=27229
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=27229 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1623 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1623,
  "status": "success",
  "commits": [
    "4ffd4810a4e884eb71e646b5b92049f085418ae8"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/keri.go",
    "internal/clan/keri_test.go",
    "internal/fleetwire/supply.go",
    "internal/fleetwire/supply_test.go",
    "internal/founding/configserver_preflight_internal_test.go",
    "internal/founding/configserver_preflight_test.go",
    "internal/founding/manualpath.go",
    "internal/founding/privatepath.go",
    "internal/founding/readiness_test.go",
    "internal/founding/testing/fakes.go",
    "scripts/assemble-payload.sh",
    "scripts/rehearsal-cycle.sh"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/founding/... ./internal/fleetwire/... ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/founding/... ./internal/fleetwire/... ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "bash -n scripts/assemble-payload.sh && bash -n scripts/rehearsal-cycle.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "assemble-payload.sh stages config-server from PAYLOAD_CONFIG_SERVER_SRC and reports the slot's status; unset -> the slot is reported absent, loudly, and the rest of the payload still assembles": "scripts/assemble-payload.sh (config-server slot, staged 0755 when set / ABSENT WARN when unset + reported in PAYLOAD.txt); verified by two live runs of the script — unset -> WARN + 'ABSENT' in PAYLOAD.txt, no file, control-plane still staged; set -> staged mode 755",
    "Supply lands /srv/idss/bin/config-server (0755) on the IDIP path on every founding path that seeds idss-idp, and never on the kanidm path -- proven at the supply seam the way idss-idp's seeding is": "internal/fleetwire/supply.go (PayloadConfigServer + seed block gated by payloadHas, staged->chmod 0755->mv -f, in the shared seed() body driven by every founding path); internal/fleetwire/supply_test.go TestSupplySeed_ShipsConfigServerOnlyWhenThePayloadCarriesIt (present -> seeded, absent -> nothing config-server-shaped), the idss-idp precedent test's mirror",
    "The rendered unit's ExecStart names a Nix store Python and the seeded file; the render test pins it, and the module still parses (nix-instantiate --parse)": "internal/clan/keri.go renderConfigServerUnit ExecStart = ${pkgs.python3}/bin/python3 /srv/idss/bin/config-server ...; internal/clan/keri_test.go TestRenderKeri_ConfigServerUnit (pins the ExecStart) + TestRenderKeri_ParsesUnderNix (real nix-instantiate --parse, ran not skipped)",
    "An IDIP founding with no config-server in the payload is refused at preflight naming it; nothing is rented or deployed": "internal/founding/privatepath.go requireConfigServerForIDIP + ErrConfigServerNotCarried, called in manualpath.go (own-vps/rented/self-hosted branches, before launch) and privatepath.go StandUpPrivate before launch; internal/founding/configserver_preflight_internal_test.go (unit: IDIP+absent -> err, IDIP+present/kanidm/nil -> nil) + configserver_preflight_test.go TestRented_IDIPWithoutConfigServerRefusedAtPreflight (BeginStandup -> ErrConfigServerNotCarried, 0 codes minted = nothing rented/deployed)",
    "docs/GOTCHAS.md gains the entry (a unit that execs a seeded file needs a payload slot, a supply step and an interpreter -- a render proof proves none of the three), and STATUS.md records it": "docs/GOTCHAS.md #266 (renumbered from #265 on rebase — a parallel host took #265); STATUS.md prepends the #1623 dated entry (live-unproven, rides #1522)",
    "Live proof is the next IDIP drive's (systemctl is-active matou-config-server + GET /api/client-config)": "OUT OF SCOPE for this ticket per the issue (that drive is #1522's; this ticket closes on the seams above) — recorded as pending in STATUS.md and GOTCHAS #266"
  },
  "summary": "The IDIP config server is now supplied (payload slot + supply seed), runnable (ExecStart names a Nix python3), and an IDIP founding without it is refused at preflight before anything is rented or deployed.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1623 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1623, "status": "success", "commits": [ "4ffd4810a4e884eb71e646b5b92049f085418ae8" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/keri.go", "internal/clan/keri_test.go", "internal/fleetwire/supply.go", "internal/fleetwire/supply_test.go", "internal/founding/configserver_preflight_internal_test.go", "internal/founding/configserver_preflight_test.go", "internal/founding/manualpath.go", "internal/founding/privatepath.go", "internal/founding/readiness_test.go", "internal/founding/testing/fakes.go", "scripts/assemble-payload.sh", "scripts/rehearsal-cycle.sh" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/founding/... ./internal/fleetwire/... ./internal/clan/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/founding/... ./internal/fleetwire/... ./internal/clan/...", "exit_code": 0 }, { "command": "bash -n scripts/assemble-payload.sh && bash -n scripts/rehearsal-cycle.sh", "exit_code": 0 } ], "criteria": { "assemble-payload.sh stages config-server from PAYLOAD_CONFIG_SERVER_SRC and reports the slot's status; unset -> the slot is reported absent, loudly, and the rest of the payload still assembles": "scripts/assemble-payload.sh (config-server slot, staged 0755 when set / ABSENT WARN when unset + reported in PAYLOAD.txt); verified by two live runs of the script — unset -> WARN + 'ABSENT' in PAYLOAD.txt, no file, control-plane still staged; set -> staged mode 755", "Supply lands /srv/idss/bin/config-server (0755) on the IDIP path on every founding path that seeds idss-idp, and never on the kanidm path -- proven at the supply seam the way idss-idp's seeding is": "internal/fleetwire/supply.go (PayloadConfigServer + seed block gated by payloadHas, staged->chmod 0755->mv -f, in the shared seed() body driven by every founding path); internal/fleetwire/supply_test.go TestSupplySeed_ShipsConfigServerOnlyWhenThePayloadCarriesIt (present -> seeded, absent -> nothing config-server-shaped), the idss-idp precedent test's mirror", "The rendered unit's ExecStart names a Nix store Python and the seeded file; the render test pins it, and the module still parses (nix-instantiate --parse)": "internal/clan/keri.go renderConfigServerUnit ExecStart = ${pkgs.python3}/bin/python3 /srv/idss/bin/config-server ...; internal/clan/keri_test.go TestRenderKeri_ConfigServerUnit (pins the ExecStart) + TestRenderKeri_ParsesUnderNix (real nix-instantiate --parse, ran not skipped)", "An IDIP founding with no config-server in the payload is refused at preflight naming it; nothing is rented or deployed": "internal/founding/privatepath.go requireConfigServerForIDIP + ErrConfigServerNotCarried, called in manualpath.go (own-vps/rented/self-hosted branches, before launch) and privatepath.go StandUpPrivate before launch; internal/founding/configserver_preflight_internal_test.go (unit: IDIP+absent -> err, IDIP+present/kanidm/nil -> nil) + configserver_preflight_test.go TestRented_IDIPWithoutConfigServerRefusedAtPreflight (BeginStandup -> ErrConfigServerNotCarried, 0 codes minted = nothing rented/deployed)", "docs/GOTCHAS.md gains the entry (a unit that execs a seeded file needs a payload slot, a supply step and an interpreter -- a render proof proves none of the three), and STATUS.md records it": "docs/GOTCHAS.md #266 (renumbered from #265 on rebase — a parallel host took #265); STATUS.md prepends the #1623 dated entry (live-unproven, rides #1522)", "Live proof is the next IDIP drive's (systemctl is-active matou-config-server + GET /api/client-config)": "OUT OF SCOPE for this ticket per the issue (that drive is #1522's; this ticket closes on the seams above) — recorded as pending in STATUS.md and GOTCHAS #266" }, "summary": "The IDIP config server is now supplied (payload slot + supply seed), runnable (ExecStart names a Nix python3), and an IDIP founding without it is refused at preflight before anything is rented or deployed.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1623
No description provided.