pairing T2b: nothing ever records the community identity on the gateway — the descriptor writer rests forever and a founded IDIP community serves the bare 1.0 document #1638

Closed
opened 2026-09-19 22:57:13 +00:00 by ben · 2 comments
Owner

Parent

Spec #1495 (community app pairing). Program map #1293. Design contract: ADR 0226 decision 3 (the control plane is org-config's only writer). Follows #1511 (the descriptor writer) and #1512 (the 1.1 document from outside). Blocks the live proof of both wallet specs — #1522 (pairing) and #1531 (wallet sign-in) — because a wallet reads community, api_url, schemas and signin from this document.

The defect — found LIVE

Debug IDIP drive 20260919T222916Z (elitebook-03, 9acd1a4e) founded a real IDIP community on a droplet: deploy-takeover, activation, founded and identity-rows all green. Read from outside (GET https://rehearsal-f.idss.nz/api/client-config, straight at the droplet), the descriptor is:

version: "1.0"   mode: "prod"
keri: { admin_url: https://keria.rehearsal-f.idss.nz, boot_url: https://keria-boot…, cesr_url: https://keria-cesr… }
schema_server_url: https://schema.rehearsal-f.idss.nz
config_server_url: https://rehearsal-f.idss.nz
witnesses: { urls: [https://witness.rehearsal-f.idss.nz], aids: { wit: BPfoSL9E… }, oobis: […] }

GET /api/config → 404 {"error":"not_configured"}. No community, admins, api_url, schemas, boot, signin or stack — the document is still the config server's bare 1.0, several minutes after the identity rows settled.

The good half, proven by the same read: the config server is supplied and running on a live gateway (#1623), the per-door URLs and the runtime-resolved witness AID are real (matou-infrastructure #23, #1512's WITNESS_FILE), and the apex routes reach it through the front door.

Why

On the box, journalctl -u idss-control-plane:

22:53:24 descriptor writer wired: org-config's single writer over the config server loopback (ADR 0226 decision 3) apex=rehearsal-f.idss.nz
22:53:24 descriptor writer reconcile started interval=30s

…and then nothing: no org-config written, no sync failed; the config server's journal shows no PUT. The writer is resting — LiveProvider.Inputs returns not-ready because identity.Load() finds no idss/org-identity.json in the config repo (internal/orgconfig/writer.go:57-64, Identity.Ready()), and that rest logs at Debug, so it is silent.

Nothing ever writes that file. control-plane/cmd/control-plane/main.go says so itself:

The community identity itself is read from the config repo (org-identity.json), written by the founding identity legs (a later slice); until it lands the writer's provider reports not-founded and posts nothing

ConfigRepoIdentityStore.Save has no caller outside tests (git grep), and no ticket of the #1495 set was ever that later slice. #1511 and #1512 closed on seam proofs with a fake identity store (GOTCHAS #92: derivable ≠ deployed).

What to build

Founding records the community identity on the gateway, so the descriptor writer has something to render — by the founder-register precedent (#1018: founding.FounderRoster → internal/fleetwire/founderroster.go → a control-plane route over the same API forward; app/src/lib/identityLegs.ts calls registerFounder from the your-membership leg).

  • A control-plane route that records the community identity — aid, oobi, name, slug, registry, the stewards' OOBIs — into idss/org-identity.json through ConfigRepoIdentityStore.Save, on the same trust boundary register-founder already crosses. Nothing in it is secret (they are the public identifiers the descriptor exists to publish).
  • The identity legs call it once the facts exist: the community AID and its OOBI after community-identity, the registry after the credential registry is created in your-membership. A refusal reds the leg honestly (ADR 0088), exactly as register-founder does.
  • The writer Syncs at once on that write (its own comment already promises "called at founding's identity rows"), so the served document is 1.1 before hand-off, not a reconcile tick later.
  • The writer's not-founded rest is said once at Info when it starts resting and once when it stops — a silent rest is what hid this.

Acceptance criteria

  • After an IDIP founding's identity rows settle, idss/org-identity.json exists in the config repo with aid, oobi, name, slug, registry and the founder's steward OOBI
  • The descriptor writer PUTs the whole 1.1 document within that same step — community{name,slug,aid,oobi,registry}, admins[], api_url, schemas{membership,committee}, boot, signin{url}, stack — and GET /api/config stops answering 404
  • A refused or unreachable record reds the identity leg with its own sentence; founding never completes with the writer still resting
  • The kanidm path is untouched (no identity legs, no route call, no config server)
  • The rest is logged once at Info on entry and once on exit; a resting writer on a founded IDIP gateway shows in the dashboard's standing checks
  • Seam-proven with the REAL ConfigRepoIdentityStore over a temp config repo (not the fake) from the route through to the writer's PUT against a fake config server
  • Live proof is the next IDIP drive's: GET https://<apex>/api/client-config from outside answers version: "1.1" with community.aid and signin.url (that read is internal/descriptorprobe's own bar)

Blocked by

Nothing open.

Task manifest

task: founding-records-community-identity
depends_on: [pairing:descriptor-single-writer]
out_of_scope: [a Coa-first adopted identity (ADR 0238), any-sync and the spaces, the app block]
needs_human_decision: []
## Parent Spec **#1495** (community app pairing). Program map **#1293**. Design contract: **ADR 0226** decision 3 (the control plane is org-config's only writer). Follows **#1511** (the descriptor writer) and **#1512** (the 1.1 document from outside). Blocks the live proof of both wallet specs — **#1522** (pairing) and **#1531** (wallet sign-in) — because a wallet reads `community`, `api_url`, `schemas` and `signin` from this document. ## The defect — found LIVE Debug IDIP drive `20260919T222916Z` (elitebook-03, `9acd1a4e`) founded a real IDIP community on a droplet: `deploy-takeover`, `activation`, `founded` and `identity-rows` all green. Read from outside (`GET https://rehearsal-f.idss.nz/api/client-config`, straight at the droplet), the descriptor is: ``` version: "1.0" mode: "prod" keri: { admin_url: https://keria.rehearsal-f.idss.nz, boot_url: https://keria-boot…, cesr_url: https://keria-cesr… } schema_server_url: https://schema.rehearsal-f.idss.nz config_server_url: https://rehearsal-f.idss.nz witnesses: { urls: [https://witness.rehearsal-f.idss.nz], aids: { wit: BPfoSL9E… }, oobis: […] } ``` `GET /api/config` → `404 {"error":"not_configured"}`. **No `community`, `admins`, `api_url`, `schemas`, `boot`, `signin` or `stack`** — the document is still the config server's bare 1.0, several minutes after the identity rows settled. The good half, proven by the same read: the config server is **supplied and running** on a live gateway (#1623), the per-door URLs and the runtime-resolved witness AID are real (matou-infrastructure #23, #1512's `WITNESS_FILE`), and the apex routes reach it through the front door. ### Why On the box, `journalctl -u idss-control-plane`: ``` 22:53:24 descriptor writer wired: org-config's single writer over the config server loopback (ADR 0226 decision 3) apex=rehearsal-f.idss.nz 22:53:24 descriptor writer reconcile started interval=30s ``` …and then nothing: no `org-config written`, no `sync failed`; the config server's journal shows no `PUT`. The writer is resting — `LiveProvider.Inputs` returns not-ready because `identity.Load()` finds no `idss/org-identity.json` in the config repo (`internal/orgconfig/writer.go:57-64`, `Identity.Ready()`), and that rest logs at **Debug**, so it is silent. Nothing ever writes that file. `control-plane/cmd/control-plane/main.go` says so itself: > The community identity itself is read from the config repo (org-identity.json), **written by the founding identity legs (a later slice)**; until it lands the writer's provider reports not-founded and posts nothing `ConfigRepoIdentityStore.Save` has **no caller outside tests** (`git grep`), and no ticket of the #1495 set was ever that later slice. #1511 and #1512 closed on seam proofs with a fake identity store (GOTCHAS #92: derivable ≠ deployed). ## What to build Founding records the community identity on the gateway, so the descriptor writer has something to render — by the **founder-register precedent** (#1018: `founding.FounderRoster` → `internal/fleetwire/founderroster.go` → a control-plane route over the same API forward; `app/src/lib/identityLegs.ts` calls `registerFounder` from the `your-membership` leg). - A control-plane route that records the community identity — `aid`, `oobi`, `name`, `slug`, `registry`, the stewards' OOBIs — into `idss/org-identity.json` through `ConfigRepoIdentityStore.Save`, on the same trust boundary `register-founder` already crosses. Nothing in it is secret (they are the public identifiers the descriptor exists to publish). - The identity legs call it once the facts exist: the community AID and its OOBI after `community-identity`, the registry after the credential registry is created in `your-membership`. A refusal reds the leg honestly (ADR 0088), exactly as `register-founder` does. - The writer `Sync`s at once on that write (its own comment already promises "called at founding's identity rows"), so the served document is 1.1 **before hand-off**, not a reconcile tick later. - The writer's not-founded rest is said once at **Info** when it starts resting and once when it stops — a silent rest is what hid this. ## Acceptance criteria - [ ] After an IDIP founding's identity rows settle, `idss/org-identity.json` exists in the config repo with `aid`, `oobi`, `name`, `slug`, `registry` and the founder's steward OOBI - [ ] The descriptor writer PUTs the whole 1.1 document within that same step — `community{name,slug,aid,oobi,registry}`, `admins[]`, `api_url`, `schemas{membership,committee}`, `boot`, `signin{url}`, `stack` — and `GET /api/config` stops answering 404 - [ ] A refused or unreachable record reds the identity leg with its own sentence; founding never completes with the writer still resting - [ ] The kanidm path is untouched (no identity legs, no route call, no config server) - [ ] The rest is logged once at Info on entry and once on exit; a resting writer on a founded IDIP gateway shows in the dashboard's standing checks - [ ] Seam-proven with the REAL `ConfigRepoIdentityStore` over a temp config repo (not the fake) from the route through to the writer's PUT against a fake config server - [ ] Live proof is the next IDIP drive's: `GET https://<apex>/api/client-config` from outside answers `version: "1.1"` with `community.aid` and `signin.url` (that read is `internal/descriptorprobe`'s own bar) ## Blocked by Nothing open. ## Task manifest ```yaml task: founding-records-community-identity depends_on: [pairing:descriptor-single-writer] out_of_scope: [a Coa-first adopted identity (ADR 0238), any-sync and the spaces, the app block] needs_human_decision: [] ```

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

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

close-report for #1638 — status success

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

envelope
{
  "issue": 1638,
  "status": "success",
  "commits": [
    "fdb590e21c2e3bed76198ad90df63edfc147369a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/lib/founding.ts",
    "app/src/lib/identityLegs.ts",
    "app/tests/unit/identityLegs.test.ts",
    "control-plane/cmd/control-plane/descriptor_standing.go",
    "control-plane/cmd/control-plane/descriptor_standing_test.go",
    "control-plane/cmd/control-plane/main.go",
    "docs/GOTCHAS.md",
    "internal/controlapi/idip_identity.go",
    "internal/controlapi/idip_identity_integration_test.go",
    "internal/fleetwire/communityidentity.go",
    "internal/founding/communityidentity.go",
    "internal/founding/orchestrator.go",
    "internal/founding/stdio.go",
    "internal/keriawire/wire.go",
    "internal/orgconfig/writer.go",
    "internal/orgconfig/writer_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/orgconfig/... ./internal/founding/... ./internal/fleetwire/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "go test ./app/helper/cmd/helper/ -run TestProductionWiring",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/... ./control-plane/cmd/control-plane/... ./app/helper/...",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "vitest run tests/unit/identityLegs.test.ts tests/unit/founding.test.ts tests/unit/foundingIdentity.test.ts tests/unit/quasarUiFounding.test.ts tests/unit/foundingPage.test.ts",
      "exit_code": 0
    },
    {
      "command": "eslint (identityLegs.ts, founding.ts, FoundingStandup.vue, identityLegs.test.ts)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "org-identity.json exists after identity rows with aid/oobi/name/slug/registry/steward OOBI": "internal/orgconfig/writer.go IdentityRecorder.Record maps every field into orgconfig.Identity and Saves through the real ConfigRepoIdentityStore; proven at the seam by idip_identity_integration_test.go TestIdipIdentitySeam_FoundingRecordsAndPublishes (reads back via store.Load() + os.Stat of orgconfig.IdentityDocPath)",
    "descriptor writer PUTs whole 1.1 within that step and /api/config stops 404": "IdentityRecorder.Record calls writer.Sync() immediately after Save; the seam test asserts GET /api/config is 404 before/after the registry-less record and 200 with community.aid + signin.url after the registry record",
    "a refused/unreachable record reds the identity leg; founding never completes with the writer resting": "controlapi route returns 502 on recorder error / 400 on missing aid|oobi (idip_identity.go); founding.RecordCommunityIdentity fails loud (communityidentity.go, ErrCommunityRecorderUnavailable); app identityLegs.ts execLeg reds the leg on a record throw — proven by identityLegs.test.ts 'a refused record reds the identity leg' and idip_identity_integration_test.go TestIdipIdentitySeam_RefusalRedsTheLeg",
    "kanidm path untouched (no identity legs, no route call, no config server)": "the record op is called only by the IDIP identity legs (FoundingStandup.buildIdentityDriver returns null unless identityKind==='idip'); the orchestrator face refuses when unwired; the control-plane route rests (503) unless the descriptor writer is wired (apex + config repo + CONFIG_ADMIN_TOKEN) — no new kanidm code path",
    "rest logged once at Info on entry and once on exit; a resting writer on a founded IDIP gateway shows in the dashboard's standing checks": "writer.go Sync logs 'org-config rests' / 'org-config resumes' once per transition (asserted by idip_identity_integration_test.go strings.Count == 1 each); Writer.RestingOnFounded + descriptorAwareOverview append the anomaly to Overview raised_alerts (descriptor_standing.go), proven by writer_test.go TestWriter_RestingOnFounded and descriptor_standing_test.go TestDescriptorAwareOverview_RaisesRestingWriter",
    "seam-proven with the REAL ConfigRepoIdentityStore over a temp config repo from the route through to the writer's PUT against a fake config server": "internal/controlapi/idip_identity_integration_test.go uses clan.OpenConfigRepo(t.TempDir()) + orgconfig.NewConfigRepoIdentityStore (not the fake) + real LiveProvider/Writer at a fake config server, driving the real route",
    "live proof is the next IDIP drive's (GET /api/client-config answers 1.1 with community.aid and signin.url)": "built and seam-proven; live proof rides the next IDIP drive (internal/descriptorprobe's bar), as the issue states"
  },
  "summary": "Founding records the community identity on the gateway via a new control-plane route so the descriptor writer publishes the 1.1 backend descriptor before hand-off, ending the silent resting-writer defect.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1638 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1638, "status": "success", "commits": [ "fdb590e21c2e3bed76198ad90df63edfc147369a" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "app/src/components/founding/FoundingStandup.vue", "app/src/lib/founding.ts", "app/src/lib/identityLegs.ts", "app/tests/unit/identityLegs.test.ts", "control-plane/cmd/control-plane/descriptor_standing.go", "control-plane/cmd/control-plane/descriptor_standing_test.go", "control-plane/cmd/control-plane/main.go", "docs/GOTCHAS.md", "internal/controlapi/idip_identity.go", "internal/controlapi/idip_identity_integration_test.go", "internal/fleetwire/communityidentity.go", "internal/founding/communityidentity.go", "internal/founding/orchestrator.go", "internal/founding/stdio.go", "internal/keriawire/wire.go", "internal/orgconfig/writer.go", "internal/orgconfig/writer_test.go" ], "tests": [ { "command": "go test ./internal/orgconfig/... ./internal/founding/... ./internal/fleetwire/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "go test ./app/helper/cmd/helper/ -run TestProductionWiring", "exit_code": 0 }, { "command": "go vet ./internal/... ./control-plane/cmd/control-plane/... ./app/helper/...", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "vitest run tests/unit/identityLegs.test.ts tests/unit/founding.test.ts tests/unit/foundingIdentity.test.ts tests/unit/quasarUiFounding.test.ts tests/unit/foundingPage.test.ts", "exit_code": 0 }, { "command": "eslint (identityLegs.ts, founding.ts, FoundingStandup.vue, identityLegs.test.ts)", "exit_code": 0 } ], "criteria": { "org-identity.json exists after identity rows with aid/oobi/name/slug/registry/steward OOBI": "internal/orgconfig/writer.go IdentityRecorder.Record maps every field into orgconfig.Identity and Saves through the real ConfigRepoIdentityStore; proven at the seam by idip_identity_integration_test.go TestIdipIdentitySeam_FoundingRecordsAndPublishes (reads back via store.Load() + os.Stat of orgconfig.IdentityDocPath)", "descriptor writer PUTs whole 1.1 within that step and /api/config stops 404": "IdentityRecorder.Record calls writer.Sync() immediately after Save; the seam test asserts GET /api/config is 404 before/after the registry-less record and 200 with community.aid + signin.url after the registry record", "a refused/unreachable record reds the identity leg; founding never completes with the writer resting": "controlapi route returns 502 on recorder error / 400 on missing aid|oobi (idip_identity.go); founding.RecordCommunityIdentity fails loud (communityidentity.go, ErrCommunityRecorderUnavailable); app identityLegs.ts execLeg reds the leg on a record throw — proven by identityLegs.test.ts 'a refused record reds the identity leg' and idip_identity_integration_test.go TestIdipIdentitySeam_RefusalRedsTheLeg", "kanidm path untouched (no identity legs, no route call, no config server)": "the record op is called only by the IDIP identity legs (FoundingStandup.buildIdentityDriver returns null unless identityKind==='idip'); the orchestrator face refuses when unwired; the control-plane route rests (503) unless the descriptor writer is wired (apex + config repo + CONFIG_ADMIN_TOKEN) — no new kanidm code path", "rest logged once at Info on entry and once on exit; a resting writer on a founded IDIP gateway shows in the dashboard's standing checks": "writer.go Sync logs 'org-config rests' / 'org-config resumes' once per transition (asserted by idip_identity_integration_test.go strings.Count == 1 each); Writer.RestingOnFounded + descriptorAwareOverview append the anomaly to Overview raised_alerts (descriptor_standing.go), proven by writer_test.go TestWriter_RestingOnFounded and descriptor_standing_test.go TestDescriptorAwareOverview_RaisesRestingWriter", "seam-proven with the REAL ConfigRepoIdentityStore over a temp config repo from the route through to the writer's PUT against a fake config server": "internal/controlapi/idip_identity_integration_test.go uses clan.OpenConfigRepo(t.TempDir()) + orgconfig.NewConfigRepoIdentityStore (not the fake) + real LiveProvider/Writer at a fake config server, driving the real route", "live proof is the next IDIP drive's (GET /api/client-config answers 1.1 with community.aid and signin.url)": "built and seam-proven; live proof rides the next IDIP drive (internal/descriptorprobe's bar), as the issue states" }, "summary": "Founding records the community identity on the gateway via a new control-plane route so the descriptor writer publishes the 1.1 backend descriptor before hand-off, ending the silent resting-writer defect.", "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#1638
No description provided.