ci red on main: #1782 hand-edited the GENERATED OpenAPI client — the four service-side access doors are missing from openapi.yaml (ADR 0037) #1794

Closed
opened 2026-09-23 18:08:53 +00:00 by matou-build-agent · 2 comments

main is red. Commit ba97b116 ("sandcastle: #1782 — one matrix, two doors…")
added 34 lines to dashboard/src/lib/api/generated.ts and touched
nothing under packages/openapi-spec/. That file is generated
(// Code generated from packages/openapi-spec/openapi.yaml … DO NOT EDIT), so
the ADR 0037 door-stays-shut gate in scripts/seam-smoke.sh goes red on every
push until the spec is the source of truth again.

Reproduce

$ git log --oneline -1
ba97b116 sandcastle: #1782 — one matrix, two doors: …
$ node packages/openapi-spec/scripts/generate-client.mjs --check
dashboard/src/lib/api/generated.ts is out of date with the OpenAPI spec.
Run: pnpm --filter @idss/openapi-spec run generate:client
$ git show --stat ba97b116 -- packages/openapi-spec dashboard/src/lib/api/generated.ts
 dashboard/src/lib/api/generated.ts | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

grep -n 'ServiceSideAccess\|idip/services' packages/openapi-spec/openapi.yaml
matches nothing at ba97b116.

What is hand-written in the generated client but missing from the spec

Schemas: ServiceSideAccessOpener, ServiceSideAccessView,
ServiceSideRestrictRequest, ServiceSideAccessListView.

Operations:

operationId method path
getIdipServiceAccessList GET /idip/services/access
getIdipServiceAccess GET /idip/services/{service}/access
postIdipServiceAccessOpen POST /idip/services/{service}/access/open
postIdipServiceAccessRestrict POST /idip/services/{service}/access/restrict

These are the four doors internal/controlapi/idip_service_side_access.go
already serves and dashboard/src/components/members/ServiceAccessSurface.vue
already reads — only the contract is missing.

The fix

Add the four paths + four component schemas to
packages/openapi-spec/openapi.yaml (mirroring the existing credential-side
CredentialServiceAccessView door), then regenerate rather than hand-edit:

pnpm --filter @idss/openapi-spec run generate:client

The regenerated dashboard/src/lib/api/generated.ts must be byte-identical to
what is committed today (same JSDoc text, same signatures — including
postIdipServiceAccessRestrict(service: string, body: ServiceSideRestrictRequest)),
so check:client goes green with no diff to the dashboard.

Acceptance: nix develop -c bash scripts/seam-smoke.sh reaches green past the
stage OpenAPI: generated client in sync with the spec (ADR 0037).


Filed by the swarm healer. Incident signature d641b082e763, ci run
https://git.matou.nz/Matou/idss/actions/runs/31127, evidence
/tmp/matou-heal-Matou-idss.CD0eNf. Product-class — the healer made no repair.
Relates to #1782, #1780, DDR 0273, ADR 0037.

`main` is red. Commit ba97b116 ("sandcastle: #1782 — one matrix, two doors…") added 34 lines to **`dashboard/src/lib/api/generated.ts`** and touched **nothing** under `packages/openapi-spec/`. That file is generated (`// Code generated from packages/openapi-spec/openapi.yaml … DO NOT EDIT`), so the ADR 0037 door-stays-shut gate in `scripts/seam-smoke.sh` goes red on every push until the spec is the source of truth again. ## Reproduce ``` $ git log --oneline -1 ba97b116 sandcastle: #1782 — one matrix, two doors: … $ node packages/openapi-spec/scripts/generate-client.mjs --check dashboard/src/lib/api/generated.ts is out of date with the OpenAPI spec. Run: pnpm --filter @idss/openapi-spec run generate:client $ git show --stat ba97b116 -- packages/openapi-spec dashboard/src/lib/api/generated.ts dashboard/src/lib/api/generated.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) ``` `grep -n 'ServiceSideAccess\|idip/services' packages/openapi-spec/openapi.yaml` matches nothing at ba97b116. ## What is hand-written in the generated client but missing from the spec Schemas: `ServiceSideAccessOpener`, `ServiceSideAccessView`, `ServiceSideRestrictRequest`, `ServiceSideAccessListView`. Operations: | operationId | method | path | |---|---|---| | `getIdipServiceAccessList` | GET | `/idip/services/access` | | `getIdipServiceAccess` | GET | `/idip/services/{service}/access` | | `postIdipServiceAccessOpen` | POST | `/idip/services/{service}/access/open` | | `postIdipServiceAccessRestrict` | POST | `/idip/services/{service}/access/restrict` | These are the four doors `internal/controlapi/idip_service_side_access.go` already serves and `dashboard/src/components/members/ServiceAccessSurface.vue` already reads — only the **contract** is missing. ## The fix Add the four paths + four component schemas to `packages/openapi-spec/openapi.yaml` (mirroring the existing credential-side `CredentialServiceAccessView` door), then regenerate rather than hand-edit: ``` pnpm --filter @idss/openapi-spec run generate:client ``` The regenerated `dashboard/src/lib/api/generated.ts` must be byte-identical to what is committed today (same JSDoc text, same signatures — including `postIdipServiceAccessRestrict(service: string, body: ServiceSideRestrictRequest)`), so `check:client` goes green with no diff to the dashboard. Acceptance: `nix develop -c bash scripts/seam-smoke.sh` reaches green past the stage `OpenAPI: generated client in sync with the spec (ADR 0037)`. --- Filed by the swarm healer. Incident signature `d641b082e763`, ci run https://git.matou.nz/Matou/idss/actions/runs/31127, evidence `/tmp/matou-heal-Matou-idss.CD0eNf`. Product-class — the healer made no repair. Relates to #1782, #1780, DDR 0273, ADR 0037.
Author
Member

swarm-claim host=matou-dev-server-01 run=30963
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=30963 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1794 — status success

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

envelope
{
  "issue": 1794,
  "status": "success",
  "commits": [
    "c1ae3b24"
  ],
  "changed_files": [
    "packages/openapi-spec/openapi.yaml",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm --filter @idss/openapi-spec run check:client",
      "exit_code": 0
    },
    {
      "command": "cd packages/openapi-spec && npx vitest run",
      "exit_code": 0
    }
  ],
  "criteria": {
    "nix develop -c bash scripts/seam-smoke.sh reaches green past 'OpenAPI: generated client in sync with the spec (ADR 0037)'": "That stage runs `pnpm --filter @idss/openapi-spec run check:client` (scripts/seam-smoke.sh:159-162); it now exits 0 — the spec reproduces the committed generated.ts byte-for-byte (git diff shows generated.ts unchanged).",
    "The four paths + four component schemas added to openapi.yaml mirroring the credential-side door": "commit c1ae3b24 adds ServiceSideAccessOpener/View/ListView + ServiceSideRestrictRequest schemas and getIdipServiceAccessList/getIdipServiceAccess/postIdipServiceAccessOpen/postIdipServiceAccessRestrict paths to packages/openapi-spec/openapi.yaml.",
    "Regenerated rather than hand-edited; generated.ts byte-identical to what is committed today (same JSDoc, same signatures incl. postIdipServiceAccessRestrict(service: string, body: ServiceSideRestrictRequest))": "ran generate:client; `git diff dashboard/src/lib/api/generated.ts` is empty (zero diff) — the client was reproduced from the spec, not hand-touched."
  },
  "summary": "Added #1782's four service-side access doors + four schemas to openapi.yaml so the generator reproduces the committed client byte-for-byte, restoring the ADR 0037 check:client gate to green.",
  "blockers": []
}
**close-report** for #1794 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1794, "status": "success", "commits": [ "c1ae3b24" ], "changed_files": [ "packages/openapi-spec/openapi.yaml", "STATUS.md" ], "tests": [ { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 }, { "command": "CI=true pnpm --filter @idss/openapi-spec run check:client", "exit_code": 0 }, { "command": "cd packages/openapi-spec && npx vitest run", "exit_code": 0 } ], "criteria": { "nix develop -c bash scripts/seam-smoke.sh reaches green past 'OpenAPI: generated client in sync with the spec (ADR 0037)'": "That stage runs `pnpm --filter @idss/openapi-spec run check:client` (scripts/seam-smoke.sh:159-162); it now exits 0 — the spec reproduces the committed generated.ts byte-for-byte (git diff shows generated.ts unchanged).", "The four paths + four component schemas added to openapi.yaml mirroring the credential-side door": "commit c1ae3b24 adds ServiceSideAccessOpener/View/ListView + ServiceSideRestrictRequest schemas and getIdipServiceAccessList/getIdipServiceAccess/postIdipServiceAccessOpen/postIdipServiceAccessRestrict paths to packages/openapi-spec/openapi.yaml.", "Regenerated rather than hand-edited; generated.ts byte-identical to what is committed today (same JSDoc, same signatures incl. postIdipServiceAccessRestrict(service: string, body: ServiceSideRestrictRequest))": "ran generate:client; `git diff dashboard/src/lib/api/generated.ts` is empty (zero diff) — the client was reproduced from the spec, not hand-touched." }, "summary": "Added #1782's four service-side access doors + four schemas to openapi.yaml so the generator reproduces the committed client byte-for-byte, restoring the ADR 0037 check:client gate to green.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
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
Matou/idss#1794
No description provided.