deploy-takeover: app tail's descriptor probe burns 10-min budget awaiting community.aid #1700

Closed
opened 2026-09-21 20:04:01 +00:00 by matou-build-agent · 3 comments

Not the known frontier

This red is not the documented pairing/own-VPS-carrier frontier. artifacts/legs.json records pair as green (5061 ms) and verdict.json reports "skip": 0 — the drive's own records carry no skip reasons at all, so nothing here is marked out of scope. The failing leg is deploy-takeover, leg 8 of 12.

The failure

"leg": "deploy-takeover", "status": "red", "ms": 1500158,
Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first()
Expected: visible / Timeout: 1500000ms / Error: element(s) not found

artifacts/legs/deploy-takeover.png shows the app frozen on a non-terminal card: "Standing up the gateway… Bringing up the control plane over the established connection." (app/src/i18n/founding/g1.en.ts:37). No terminal data-status ever rendered, so Playwright burned the full 25-minute CEILING.deployTakeover.

What actually happened (live box, still up)

The deploy succeeded. systemctl --failed is empty; control-plane, caddy, keria, netbird and the five anysync containers are running. The deploy got well past seeding:

  • 19:48:31 — clan-switch-gateway-da9cc55e.service ran .switch-to-conf (activation)
  • 19:48:32.746 — state/founding-state.json persisted "activated": true (deploy.go:568)
  • 19:48:33 — config repo's final commit: a9721e0 idss: record community apex (rehearsal-f.idss.nz) = WriteCommunityApex, deploy.go:694

Then founding entered runCommunityAppTail (deploy.go:795) — this drive is the app-at-founding variant (HEAD 4d906f1d), so the tail acts. Caddy's access log shows the helper polling from the executor every 5 s, 81 times, 19:48:35 → 19:55:21, right up to the timeout:

"remote_ip":"179.65.135.74","method":"GET","host":"rehearsal-f.idss.nz",
"uri":"/api/client-config","User-Agent":["Go-http-client/1.1"],"status":200

That is probeDescriptorLive (internal/founding/communityapptail.go:291) at doorProbeDefaultAttempts = 120 × doorProbeDefaultDelay = 5s (deploy.go:1237-38) = a 10-minute budget. It requires both version and community.aid. The descriptor served is missing community.aid entirely:

{"version": "1.0", "mode": "prod", "keri": {...}, "schema_server_url": ..., "witnesses": {...}}

Root cause — an ordering defect

community.aid can only appear once the control plane's descriptor writer is live, and that writer rests:

19:42:49 msg="config repo resting: no IDSS_CONFIG_REPO — the config-repo-backed ports rest until the gateway carries its community config repo"
19:42:49 msg="descriptor writer resting: no CONFIG_ADMIN_TOKEN / apex / config repo — org-config is not written until the gateway carries all three (ADR 0100)"

The unit's start script gates the var on a directory that does not exist yet:

line 20: if [ -d /srv/idss/config ]; then export IDSS_CONFIG_REPO=/srv/idss/config; fi
# ls /srv/idss  ->  bin  dashboard      (no config)

And that is by design at this point in the sequence: docs/vm-full-install-divergence.md:86 records /srv/idss/config[.git] as created by the "supply, finish" legs — the bare-init/push/checkout runs in the finish leg, which comes after deploy-takeover.

So the community-app tail's descriptor probe is sequenced inside runDeploy, at a point where its precondition (gateway carries its config repo → descriptor writer live → community.aid published) cannot yet be true. It is guaranteed to exhaust all 120 attempts on every IDIP app-at-founding run. Here the deploy reached the tail at 19:48:35, so the 10-minute budget would not have expired until ~19:58:35 — over three minutes past the leg's 19:55:20 ceiling. This also contradicts the tail's own stated contract (communityapptail.go / deploy.go:786-794): "STRICTLY non-fatal … founding never waits on the build (DDR 0228 §3)" — it does wait, for ten minutes.

Second, independent defect — nil-deref panic on the resting routes

The same nil config repo crashes two live HTTP routes. At 19:48:34 the control plane panicked twice:

http: panic serving 127.0.0.1:57380: runtime error: invalid memory address or nil pointer dereference
  git.matou.nz/Matou/idss/internal/clan.(*ConfigRepo).Dir(...)  internal/clan/configrepo.go:41
  internal/clan/repodoc.go:49 -> internal/member/apponly.go:75 -> internal/controlapi/idip_app_only.go:95
http: panic serving 127.0.0.1:57394: ... (same nil deref)
  internal/clan/repodoc.go:49 -> internal/communityapp/store.go:34 -> internal/controlapi/communityapp.go:102

productionConfigRepo (main.go:208-213) returns (nil, nil) and documents "the config-repo-backed ports … rest at their honest founding state (ADR 0100)". But main.go:2163 member.NewConfigRepoAppOnly(repo) and main.go:2229 communityapp.NewConfigRepoStore(repo) are built unconditionally over the nil repo and their routes registered live; the if repo != nil guard at main.go:2234 covers only the poller/resubmitter. First call → nil-receiver (*ConfigRepo).Dir() → panic, dropped connection instead of the intended resting response. Verified on the box: IDSS_CONFIG_REPO is absent from PID 4486's /proc/.../environ.

Suspected layer

Product, both defects — internal/founding (tail sequencing) and control-plane/cmd/control-plane/main.go (unguarded registration). Not harness, not infra: the droplet deployed cleanly and both public doors answered 200 over TLS throughout.

What plugging it needs

  1. The panic (unambiguous, no ruling needed). Guard the two registrations on repo != nil, mirroring the descriptor writer's existing else { log.Info("… resting …") } pattern, and have the routes answer a writeProblem 503 "resting" rather than nil-deref. Alternatively make (*ConfigRepo).Dir()/RepoDoc.Load() nil-safe. Red-first test: register with a nil repo, GET both paths, assert 503 not panic.
  2. The ceiling overrun (the actual red). The tail must not block the deploy on a precondition the next leg establishes. Options, in rough order of fit: skip the descriptor probe outright when the gateway does not yet carry its config repo (record failed/pending on the app record per ADR 0100); or move runCommunityAppTail to the finish leg, after /srv/idss/config lands; or give the tail its own short budget independent of doorProbeDefaultAttempts. Which of the three is right is a design call — DDR 0228 §3 says founding never waits on the build, which argues for skip-or-defer, but the placement comment at deploy.go:786-794 deliberately puts it after the door gate. Worth a ruling before the swarm picks.

Lower-severity finding (not the blocker)

299 failed reverse-forward binds, every ~2.8 s from 19:41:24 to 19:55:23, each opening and closing a root SSH session:

sshd-session[...]: error: unix_listener: cannot bind to path /run/idss/enroll-relay.sock: No such file or directory

/run/idss does not exist post-takeover and nothing on the NixOS gateway creates it (no idss-agent unit or binary, no tmpfiles rule, RuntimeDirectory= empty). internal/fleetwire/relay.go:27 assumes "the box's /run/idss socket dir does not exist until the agent installs" and supervises unboundedly — but on the self-hosted full-install path the takeover wipes the Ubuntu agent, so the directory can never appear. The forwarder should be stopped at the activation boundary, or bounded with a surfaced fault. This is background noise here (the supervisor runs in its own goroutine and the deploy demonstrably progressed past it), not the cause of the red.

Absent from the run directory

  • No skip reasons anywhere in legs.json; the own-VPS carrier frontier is named in no artifact this drive produced.
  • No legs recorded for finish-hand-off or founded — the run stopped at leg 8 of 12.
  • logs/broker-journal.txt harvested nothing: dev@100.98.48.68: Permission denied (publickey) — off-mesh executor, by design (ADR 0208, #681); the verdict does not depend on it.
  • All logs/guest-*.log are 129-byte stubs and logs/qemu.log reports spawn qemu-system-x86_64 ENOENT — the VM path is unused on this self-hosted droplet drive, so those are expected empties, not harvest failures.
  • No electron/renderer console log is harvested; the UI state had to be read from legs/deploy-takeover.png and error-context.md.

drive 20260921T192808Z red at deploy-takeover: expect(locator).toBeVisible() failed Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible Time
evidence: /home/swarm/session-runner/idss/test-results/drive-idip/20260921T192808Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Not the known frontier This red is **not** the documented pairing/own-VPS-carrier frontier. `artifacts/legs.json` records `pair` as **green** (5061 ms) and `verdict.json` reports `"skip": 0` — the drive's own records carry **no skip reasons at all**, so nothing here is marked out of scope. The failing leg is `deploy-takeover`, leg 8 of 12. ## The failure ``` "leg": "deploy-takeover", "status": "red", "ms": 1500158, Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible / Timeout: 1500000ms / Error: element(s) not found ``` `artifacts/legs/deploy-takeover.png` shows the app frozen on a **non-terminal** card: *"Standing up the gateway… Bringing up the control plane over the established connection."* (`app/src/i18n/founding/g1.en.ts:37`). No terminal `data-status` ever rendered, so Playwright burned the full 25-minute `CEILING.deployTakeover`. ## What actually happened (live box, still up) The deploy **succeeded**. `systemctl --failed` is empty; control-plane, caddy, keria, netbird and the five anysync containers are running. The deploy got well past seeding: - `19:48:31` — `clan-switch-gateway-da9cc55e.service` ran `.switch-to-conf` (activation) - `19:48:32.746` — `state/founding-state.json` persisted `"activated": true` (deploy.go:568) - `19:48:33` — config repo's **final** commit: `a9721e0 idss: record community apex (rehearsal-f.idss.nz)` = `WriteCommunityApex`, deploy.go:694 Then founding entered `runCommunityAppTail` (deploy.go:795) — this drive is the app-at-founding variant (HEAD `4d906f1d`), so the tail acts. Caddy's access log shows the helper polling from the executor every 5 s, **81 times, 19:48:35 → 19:55:21**, right up to the timeout: ``` "remote_ip":"179.65.135.74","method":"GET","host":"rehearsal-f.idss.nz", "uri":"/api/client-config","User-Agent":["Go-http-client/1.1"],"status":200 ``` That is `probeDescriptorLive` (`internal/founding/communityapptail.go:291`) at `doorProbeDefaultAttempts = 120` × `doorProbeDefaultDelay = 5s` (deploy.go:1237-38) = a **10-minute** budget. It requires **both `version` and `community.aid`**. The descriptor served is missing `community.aid` entirely: ``` {"version": "1.0", "mode": "prod", "keri": {...}, "schema_server_url": ..., "witnesses": {...}} ``` ## Root cause — an ordering defect `community.aid` can only appear once the control plane's descriptor writer is live, and that writer rests: ``` 19:42:49 msg="config repo resting: no IDSS_CONFIG_REPO — the config-repo-backed ports rest until the gateway carries its community config repo" 19:42:49 msg="descriptor writer resting: no CONFIG_ADMIN_TOKEN / apex / config repo — org-config is not written until the gateway carries all three (ADR 0100)" ``` The unit's start script gates the var on a directory that does not exist yet: ``` line 20: if [ -d /srv/idss/config ]; then export IDSS_CONFIG_REPO=/srv/idss/config; fi # ls /srv/idss -> bin dashboard (no config) ``` And that is **by design at this point in the sequence**: `docs/vm-full-install-divergence.md:86` records `/srv/idss/config[.git]` as created by the **"supply, finish"** legs — the bare-init/push/checkout runs in the **finish** leg, which comes *after* `deploy-takeover`. So the community-app tail's descriptor probe is sequenced inside `runDeploy`, at a point where its precondition (gateway carries its config repo → descriptor writer live → `community.aid` published) **cannot yet be true**. It is guaranteed to exhaust all 120 attempts on every IDIP app-at-founding run. Here the deploy reached the tail at 19:48:35, so the 10-minute budget would not have expired until ~19:58:35 — over three minutes past the leg's 19:55:20 ceiling. This also contradicts the tail's own stated contract (communityapptail.go / deploy.go:786-794): *"STRICTLY non-fatal … founding never waits on the build (DDR 0228 §3)"* — it does wait, for ten minutes. ## Second, independent defect — nil-deref panic on the resting routes The same nil config repo crashes two live HTTP routes. At `19:48:34` the control plane panicked twice: ``` http: panic serving 127.0.0.1:57380: runtime error: invalid memory address or nil pointer dereference git.matou.nz/Matou/idss/internal/clan.(*ConfigRepo).Dir(...) internal/clan/configrepo.go:41 internal/clan/repodoc.go:49 -> internal/member/apponly.go:75 -> internal/controlapi/idip_app_only.go:95 http: panic serving 127.0.0.1:57394: ... (same nil deref) internal/clan/repodoc.go:49 -> internal/communityapp/store.go:34 -> internal/controlapi/communityapp.go:102 ``` `productionConfigRepo` (main.go:208-213) returns `(nil, nil)` and documents *"the config-repo-backed ports … rest at their honest founding state (ADR 0100)"*. But `main.go:2163` `member.NewConfigRepoAppOnly(repo)` and `main.go:2229` `communityapp.NewConfigRepoStore(repo)` are built **unconditionally** over the nil repo and their routes registered live; the `if repo != nil` guard at `main.go:2234` covers only the poller/resubmitter. First call → nil-receiver `(*ConfigRepo).Dir()` → panic, dropped connection instead of the intended resting response. Verified on the box: `IDSS_CONFIG_REPO` is absent from PID 4486's `/proc/.../environ`. ## Suspected layer **Product**, both defects — `internal/founding` (tail sequencing) and `control-plane/cmd/control-plane/main.go` (unguarded registration). Not harness, not infra: the droplet deployed cleanly and both public doors answered 200 over TLS throughout. ## What plugging it needs 1. **The panic (unambiguous, no ruling needed).** Guard the two registrations on `repo != nil`, mirroring the descriptor writer's existing `else { log.Info("… resting …") }` pattern, and have the routes answer a `writeProblem` 503 "resting" rather than nil-deref. Alternatively make `(*ConfigRepo).Dir()`/`RepoDoc.Load()` nil-safe. Red-first test: register with a nil repo, GET both paths, assert 503 not panic. 2. **The ceiling overrun (the actual red).** The tail must not block the deploy on a precondition the *next* leg establishes. Options, in rough order of fit: skip the descriptor probe outright when the gateway does not yet carry its config repo (record `failed`/`pending` on the app record per ADR 0100); or move `runCommunityAppTail` to the finish leg, after `/srv/idss/config` lands; or give the tail its own short budget independent of `doorProbeDefaultAttempts`. **Which of the three is right is a design call** — DDR 0228 §3 says founding never waits on the build, which argues for skip-or-defer, but the placement comment at deploy.go:786-794 deliberately puts it after the door gate. Worth a ruling before the swarm picks. ## Lower-severity finding (not the blocker) 299 failed reverse-forward binds, every ~2.8 s from `19:41:24` to `19:55:23`, each opening and closing a root SSH session: ``` sshd-session[...]: error: unix_listener: cannot bind to path /run/idss/enroll-relay.sock: No such file or directory ``` `/run/idss` does not exist post-takeover and nothing on the NixOS gateway creates it (no `idss-agent` unit or binary, no tmpfiles rule, `RuntimeDirectory=` empty). `internal/fleetwire/relay.go:27` assumes *"the box's /run/idss socket dir does not exist until the agent installs"* and supervises **unboundedly** — but on the self-hosted full-install path the takeover wipes the Ubuntu agent, so the directory can never appear. The forwarder should be stopped at the activation boundary, or bounded with a surfaced fault. This is background noise here (the supervisor runs in its own goroutine and the deploy demonstrably progressed past it), not the cause of the red. ## Absent from the run directory - No skip reasons anywhere in `legs.json`; the own-VPS carrier frontier is named in **no** artifact this drive produced. - No legs recorded for `finish-hand-off` or `founded` — the run stopped at leg 8 of 12. - `logs/broker-journal.txt` harvested nothing: `dev@100.98.48.68: Permission denied (publickey)` — off-mesh executor, by design (ADR 0208, #681); the verdict does not depend on it. - All `logs/guest-*.log` are 129-byte stubs and `logs/qemu.log` reports `spawn qemu-system-x86_64 ENOENT` — the VM path is unused on this self-hosted droplet drive, so those are expected empties, not harvest failures. - No electron/renderer console log is harvested; the UI state had to be read from `legs/deploy-takeover.png` and `error-context.md`. drive `20260921T192808Z` red at `deploy-takeover`: `expect(locator).toBeVisible() failed Locator: locator('[data-status="deploy-live"]').or(locator('[data-status="hand-off"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible Time` evidence: `/home/swarm/session-runner/idss/test-results/drive-idip/20260921T192808Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 800a2936720b -->
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

The panic (defect 1) needed no ruling and is fixed. Defect 2 — the ceiling overrun — the issue flagged as a design call between three options: skip, defer the tail to the finish leg, or give the tail its own short budget. I ruled option 3 (own short, independent budget).

The ruling: the tail's outside-in descriptor probe now uses its OWN budget (descriptorProbeDefaultAttempts = 12, ~1 min at doorDelay) instead of borrowing the door probe's doorAttempts (~10 min, sized for acme-dns registration + LE wildcard issuance). On the app-at-founding path the descriptor's community.aid cannot appear until the gateway carries its config repo, which the finish leg lands after this deploy-takeover tail runs — so no budget makes the probe pass here; a short one merely stops it burning the whole ten minutes and blocking the deploy past the leg ceiling. This honours DDR 0228 §3 ("founding never waits on the build") and respects the deliberate placement comment at deploy.go:786-794 (the tail stays after the door gate).

Why it is a two-way door: revertible by a later commit (a constant + one field) and provable by a seam test — TestTail_DescriptorProbeBoundedByOwnBudgetNotDoorBudget asserts the tail re-probes exactly its own budget (3), not the door's (120). Not on the one-way-door list (no credentials, no security widening, no trust accept, no data destruction, no spend).

The deeper call I did NOT make (left for #1522's re-drive): whether the app-at-founding path should instead defer the tail to run after the config repo lands, so the probe actually passes and the card reaches pending at hand-off (what #1522's app-pending-at-handoff leg asserts). That is option 2 — the architecturally "right" fix — but it moves a founding-pipeline stage across all carriers and I cannot prove it end-to-end without a live drive (the config-repo checkout, the control-plane restart to pick up IDSS_CONFIG_REPO, and the community-identity record must all be in place by then). With option 3 in place, #1700's red (deploy-takeover burning its ceiling) is cleared and the panic is gone; if the subsequent app-pending-at-handoff leg then reds because the card is failed not pending, that is the defer decision surfacing on #1522, where a session with a live drive can rule and prove it.

Also still open (lower severity, not this red): the reverse-forward relay supervisor binding /run/idss/enroll-relay.sock unboundedly post-takeover (internal/fleetwire/relay.go:27) — background noise here, worth its own ticket.

**Ruled by agent under ADR 0174 — veto anytime.** The panic (defect 1) needed no ruling and is fixed. Defect 2 — the ceiling overrun — the issue flagged as a design call between three options: *skip*, *defer the tail to the finish leg*, or *give the tail its own short budget*. I ruled **option 3 (own short, independent budget)**. **The ruling:** the tail's outside-in descriptor probe now uses its OWN budget (`descriptorProbeDefaultAttempts = 12`, ~1 min at `doorDelay`) instead of borrowing the door probe's `doorAttempts` (~10 min, sized for acme-dns registration + LE wildcard issuance). On the app-at-founding path the descriptor's `community.aid` cannot appear until the gateway carries its config repo, which the **finish** leg lands *after* this deploy-takeover tail runs — so no budget makes the probe pass here; a short one merely stops it burning the whole ten minutes and blocking the deploy past the leg ceiling. This honours DDR 0228 §3 ("founding never waits on the build") and respects the deliberate placement comment at `deploy.go:786-794` (the tail stays after the door gate). **Why it is a two-way door:** revertible by a later commit (a constant + one field) and provable by a seam test — `TestTail_DescriptorProbeBoundedByOwnBudgetNotDoorBudget` asserts the tail re-probes exactly its own budget (3), not the door's (120). Not on the one-way-door list (no credentials, no security widening, no trust accept, no data destruction, no spend). **The deeper call I did NOT make (left for #1522's re-drive):** whether the app-at-founding path should instead **defer** the tail to run *after* the config repo lands, so the probe actually passes and the card reaches `pending` at hand-off (what #1522's `app-pending-at-handoff` leg asserts). That is option 2 — the architecturally "right" fix — but it moves a founding-pipeline stage across all carriers and I cannot prove it end-to-end without a live drive (the config-repo checkout, the control-plane restart to pick up `IDSS_CONFIG_REPO`, and the community-identity record must all be in place by then). With option 3 in place, #1700's red (deploy-takeover burning its ceiling) is cleared and the panic is gone; if the subsequent `app-pending-at-handoff` leg then reds because the card is `failed` not `pending`, that is the defer decision surfacing on #1522, where a session with a live drive can rule and prove it. **Also still open (lower severity, not this red):** the reverse-forward relay supervisor binding `/run/idss/enroll-relay.sock` unboundedly post-takeover (`internal/fleetwire/relay.go:27`) — background noise here, worth its own ticket.
Author
Member

close-report for #1700 — status success

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

envelope
{
  "issue": 1700,
  "status": "success",
  "commits": [
    "7ceb98f570f3f08c9a19b702a185ca98bc01ce11"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/configrepo.go",
    "internal/clan/repodoc.go",
    "internal/controlapi/backups.go",
    "internal/controlapi/communityapp.go",
    "internal/controlapi/config_repo_resting_test.go",
    "internal/controlapi/idip_app_only.go",
    "internal/founding/communityapptail.go",
    "internal/founding/communityapptail_seam_test.go",
    "internal/founding/deploy.go",
    "internal/founding/export_test.go",
    "internal/founding/orchestrator.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/founding/ ./internal/controlapi/ ./internal/clan/ ./internal/member/ ./internal/communityapp/ -count=1",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/controlapi/ ./internal/founding/ ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "git push origin HEAD:refs/heads/main (pre-push gate ran the full suite: 0 issues)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Defect 1 (panic): the resting config-repo doors answer instead of nil-deref panicking": "internal/clan/repodoc.go + configrepo.go add a nil-safe ErrConfigRepoResting sentinel; internal/controlapi/{communityapp,idip_app_only}.go map it to 503 via restingIfConfigRepoResting in backups.go; red-first test TestConfigRepoBackedDoors_RestNotPanicOnNilRepo asserts 503 not a dropped connection",
    "Defect 2 (ceiling overrun): the descriptor tail no longer burns the 10-min door budget": "descriptorProbeDefaultAttempts=12 in deploy.go, o.descriptorAttempts in orchestrator.go used by probeDescriptorLive in communityapptail.go; red-first test TestTail_DescriptorProbeBoundedByOwnBudgetNotDoorBudget asserts the tail probes its own 3, not the door's 120 (defence-in-depth over #1699's already-landed defer fix)",
    "Design ruling recorded (ADR 0174)": "issue comment 52766 rules option-3 (own short budget), states why it is a two-way door and what proves it; the deeper defer decision is left for #1522's re-drive"
  },
  "summary": "Rest two config-repo-backed control-plane doors 503 instead of nil-deref panicking on a resting gateway, and bound the community-app tail's descriptor probe to its own short budget instead of the 10-minute door budget.",
  "blockers": []
}
**close-report** for #1700 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1700, "status": "success", "commits": [ "7ceb98f570f3f08c9a19b702a185ca98bc01ce11" ], "changed_files": [ "STATUS.md", "internal/clan/configrepo.go", "internal/clan/repodoc.go", "internal/controlapi/backups.go", "internal/controlapi/communityapp.go", "internal/controlapi/config_repo_resting_test.go", "internal/controlapi/idip_app_only.go", "internal/founding/communityapptail.go", "internal/founding/communityapptail_seam_test.go", "internal/founding/deploy.go", "internal/founding/export_test.go", "internal/founding/orchestrator.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/founding/ ./internal/controlapi/ ./internal/clan/ ./internal/member/ ./internal/communityapp/ -count=1", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/controlapi/ ./internal/founding/ ./internal/clan/", "exit_code": 0 }, { "command": "git push origin HEAD:refs/heads/main (pre-push gate ran the full suite: 0 issues)", "exit_code": 0 } ], "criteria": { "Defect 1 (panic): the resting config-repo doors answer instead of nil-deref panicking": "internal/clan/repodoc.go + configrepo.go add a nil-safe ErrConfigRepoResting sentinel; internal/controlapi/{communityapp,idip_app_only}.go map it to 503 via restingIfConfigRepoResting in backups.go; red-first test TestConfigRepoBackedDoors_RestNotPanicOnNilRepo asserts 503 not a dropped connection", "Defect 2 (ceiling overrun): the descriptor tail no longer burns the 10-min door budget": "descriptorProbeDefaultAttempts=12 in deploy.go, o.descriptorAttempts in orchestrator.go used by probeDescriptorLive in communityapptail.go; red-first test TestTail_DescriptorProbeBoundedByOwnBudgetNotDoorBudget asserts the tail probes its own 3, not the door's 120 (defence-in-depth over #1699's already-landed defer fix)", "Design ruling recorded (ADR 0174)": "issue comment 52766 rules option-3 (own short budget), states why it is a two-way door and what proves it; the deeper defer decision is left for #1522's re-drive" }, "summary": "Rest two config-repo-backed control-plane doors 503 instead of nil-deref panicking on a resting gateway, and bound the community-app tail's descriptor probe to its own short budget instead of the 10-minute door budget.", "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.

Reference
Matou/idss#1700
No description provided.