archive-healthy: a co-hosted catalogue port renders its module but the gateway never imports or routes it — omeka-reconcile never runs, so the archive API key is never minted #1246

Closed
opened 2026-09-05 23:13:58 +00:00 by matou-build-agent · 8 comments

The failure

Archive drive run 9 (test-results/private-path/20260905T223936Z, commit bebcf3df) is 7/8 green and reds at archive-healthy after the full 360s warm-up re-probe:

archive service is not healthy after 360s of warm-up re-probe (#556): Community archive is waiting on its deploy — the omeka-reconcile step has not minted the archive API key yet, so the keep-serve-refuse check has no way in.

This is the #1243 transient fault text doing exactly its job: the check now REGISTERS on a carried resolver and names the mint it is waiting on, instead of standing "no health check declared" forever. The evidence contract #1243 added to app/tests/e2e/fixtures/evidence.ts:384-398 (the reconcile journal + keystore probes) was built to tell a slow mint apart from an absent one. It answers: the mint is absent, because the archive module was never evaluated on the guest at all.

The evidence

  • logs/guest-archive-keystore.log → NOT-MINTED (/var/lib/archive/state/api-key absent/empty).
  • logs/guest-omeka-reconcile.log → -- No entries --. The oneshot is declared wantedBy = [ "multi-user.target" ] (internal/clan/archive.go:393), so if it existed it would have run and journalled.
  • logs/guest-failed-units.log → 0 loaded units listed. Nothing failed — podman-omeka, podman-omeka-db, podman-network-archive and omeka-reconcile are not on the box.
  • logs/guest-control-plane.log:129-198 — the check is wired (store=/var/lib/archive/state/api-key) and probes 36/36 during the deploy plus every 10s to the horizon, always omeka: archive admin API key store not minted yet.
  • state/clan-config/machines/gateway/configuration.nix imports only ./gateway-guest.nix ./ledger.nix ./front-door.nix — its own header states the rule: "A module absent from the live set is imported by no one and runs nowhere (#327)."
  • artifacts/legs.json — deploy-archive green (522728ms), archive-healthy red (362762ms).

The defect — three places, one gap: the co-host path of a routable port is unimplemented

The drive co-hosts Community archive on the gateway, so attachCatalogueService routes it to attachRoutablePort with coHosted = true.

1. internal/provision/deploy.go:864-871 — the render lands, then the function returns.

rev, err := o.clan.AttachPort(ctx, clan.PortPlacement{Node: node, Apex: o.apex, Service: service})
if err != nil { return "", err }
gateway, member := o.memberDevicePlacement(node, coHosted)
if !member { return rev, nil }   // <-- co-host exits here

memberDevicePlacement (deploy.go:982-985) returns ("", false) unconditionally when coHosted. So AttachArchive writes machines/gateway/archive.nix and nothing else happens: no ComposeGatewayCohost, no AttachFrontDoor. attachFilesPlacement (deploy.go:896-957) is the shape this is missing — it has an explicit gateway branch that attaches the front-door route, re-renders the control-plane surface, and recomposes the entry module, with the comment "never a deploy that 'succeeds' while the module is dead text."

2. internal/clan/gateway_attach.go:97 — the gateway composer could not import it anyway.

var knownGatewayModuleFiles = []string{FrontDoorFileName, AcmeDNSFileName, CodeFileName, MailFileName, FilesFileName, DocsEditingFileName, FilesIDPFileName}

ComposeGatewayCohost (gateway_attach.go:342-357) builds its imports from presentModules(mdir, knownGatewayModuleFiles). ArchiveFileName is not in the list — nor is any of the other six routable port module files registered in deployedModuleFiles (internal/clan/deployedservices.go:18-33) and portAttachers (internal/clan/portroute.go:47-70). So even a co-host that DID call the composer would still leave archive.nix dead text.

3. internal/provision/deploy.go:1119-1122 — a co-hosted port has no route target.

facts, ok := clan.PortServeFacts(slug)
if !ok || meshAddr == "" { return clan.LiveService{}, false }

Only files has a gateway → NextcloudLoopbackTarget branch (deploy.go:1104-1113). A gateway co-host has no mesh address, so routableLiveService reports every port unroutable there — archive.<apex> (the URL the health check drives, guest-control-plane.log:109) would fall through the wildcard vhost even once the module evaluates.

This is the same class as #1239 (private-path guest never provisions the gate-oidc client) and #327/#428: a deploy that reports success over a module nobody imports. It affects all seven portAttachers slugs on the co-host path, not just archive.

Suspected layer

Provisioning orchestration + the clan gateway composer — internal/provision/deploy.go and internal/clan/gateway_attach.go. Not the harness: the drive, the health check (#1243) and the evidence probes all reported honestly and pinpointed the gap.

Why I refused to heal — refusal rule 3 (product-behaviour surface)

The fix changes what a deploy does: which modules the gateway evaluates and which routes its front door publishes. That is product behaviour in control-plane code, not harness/fixture/wiring, so it is off limits to the healer and needs a ruling.

It also carries genuine design questions a swarm worker should not settle alone:

  1. What is a co-hosted port's front-door target — 127.0.0.1:<PortServe.ServePort> mirroring NextcloudLoopbackTarget, or something else?
  2. renderArchiveFirewall (internal/clan/archive.go:455-461) opens the serve port on wt0 only. A single-node co-host community has no mesh interface; does the co-host render need a loopback variant, or does the container publish suffice?
  3. Does the gateway control-plane surface need an archive export beside EnableGatewayNextcloudExport (deploy.go:951-953) for the API key store path, or is the store path already static enough?
  4. Should knownGatewayModuleFiles gain all seven port module files at once (derived from portAttachers, so a future port registers in one place — the ADR 0062 "a port touches no provisioning code" posture), or only archive.nix now?

No evidence contradicts the #1243 fix — that heal did what it claimed and made THIS defect legible. #1235 should stay blocked on this ruling: a re-drive without it re-fires straight into the same 360s horizon.

drive 20260905T223936Z red at archive-healthy: archive service is not healthy after 360s of warm-up re-probe (#556): Community archive is waiting on its deploy — the omeka-reconcile step has not minted the archive API key yet, so the keep-serve-
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260905T223936Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Archive drive run 9 (`test-results/private-path/20260905T223936Z`, commit `bebcf3df`) is 7/8 green and reds at `archive-healthy` after the full 360s warm-up re-probe: > archive service is not healthy after 360s of warm-up re-probe (#556): Community archive is waiting on its deploy — the omeka-reconcile step has not minted the archive API key yet, so the keep-serve-refuse check has no way in. This is the #1243 transient fault text doing exactly its job: the check now REGISTERS on a carried resolver and names the mint it is waiting on, instead of standing "no health check declared" forever. The evidence contract #1243 added to `app/tests/e2e/fixtures/evidence.ts:384-398` (the reconcile journal + keystore probes) was built to tell a slow mint apart from an absent one. It answers: **the mint is absent, because the archive module was never evaluated on the guest at all.** ## The evidence - `logs/guest-archive-keystore.log` → `NOT-MINTED` (`/var/lib/archive/state/api-key` absent/empty). - `logs/guest-omeka-reconcile.log` → `-- No entries --`. The oneshot is declared `wantedBy = [ "multi-user.target" ]` (`internal/clan/archive.go:393`), so if it existed it would have run and journalled. - `logs/guest-failed-units.log` → `0 loaded units listed`. Nothing failed — `podman-omeka`, `podman-omeka-db`, `podman-network-archive` and `omeka-reconcile` are not on the box. - `logs/guest-control-plane.log:129-198` — the check is wired (`store=/var/lib/archive/state/api-key`) and probes 36/36 during the deploy plus every 10s to the horizon, always `omeka: archive admin API key store not minted yet`. - `state/clan-config/machines/gateway/configuration.nix` imports only `./gateway-guest.nix ./ledger.nix ./front-door.nix` — its own header states the rule: *"A module absent from the live set is imported by no one and runs nowhere (#327)."* - `artifacts/legs.json` — `deploy-archive` green (522728ms), `archive-healthy` red (362762ms). ## The defect — three places, one gap: the co-host path of a routable port is unimplemented The drive co-hosts Community archive on the gateway, so `attachCatalogueService` routes it to `attachRoutablePort` with `coHosted = true`. **1. `internal/provision/deploy.go:864-871` — the render lands, then the function returns.** ```go rev, err := o.clan.AttachPort(ctx, clan.PortPlacement{Node: node, Apex: o.apex, Service: service}) if err != nil { return "", err } gateway, member := o.memberDevicePlacement(node, coHosted) if !member { return rev, nil } // <-- co-host exits here ``` `memberDevicePlacement` (`deploy.go:982-985`) returns `("", false)` unconditionally when `coHosted`. So `AttachArchive` writes `machines/gateway/archive.nix` and nothing else happens: no `ComposeGatewayCohost`, no `AttachFrontDoor`. `attachFilesPlacement` (`deploy.go:896-957`) is the shape this is missing — it has an explicit gateway branch that attaches the front-door route, re-renders the control-plane surface, and recomposes the entry module, with the comment *"never a deploy that 'succeeds' while the module is dead text."* **2. `internal/clan/gateway_attach.go:97` — the gateway composer could not import it anyway.** ```go var knownGatewayModuleFiles = []string{FrontDoorFileName, AcmeDNSFileName, CodeFileName, MailFileName, FilesFileName, DocsEditingFileName, FilesIDPFileName} ``` `ComposeGatewayCohost` (`gateway_attach.go:342-357`) builds its imports from `presentModules(mdir, knownGatewayModuleFiles)`. `ArchiveFileName` is not in the list — nor is any of the other six routable port module files registered in `deployedModuleFiles` (`internal/clan/deployedservices.go:18-33`) and `portAttachers` (`internal/clan/portroute.go:47-70`). So even a co-host that DID call the composer would still leave `archive.nix` dead text. **3. `internal/provision/deploy.go:1119-1122` — a co-hosted port has no route target.** ```go facts, ok := clan.PortServeFacts(slug) if !ok || meshAddr == "" { return clan.LiveService{}, false } ``` Only `files` has a `gateway → NextcloudLoopbackTarget` branch (`deploy.go:1104-1113`). A gateway co-host has no mesh address, so `routableLiveService` reports every port unroutable there — `archive.<apex>` (the URL the health check drives, `guest-control-plane.log:109`) would fall through the wildcard vhost even once the module evaluates. This is the same class as #1239 (private-path guest never provisions the gate-oidc client) and #327/#428: a deploy that reports success over a module nobody imports. It affects all seven `portAttachers` slugs on the co-host path, not just archive. ## Suspected layer Provisioning orchestration + the clan gateway composer — `internal/provision/deploy.go` and `internal/clan/gateway_attach.go`. Not the harness: the drive, the health check (#1243) and the evidence probes all reported honestly and pinpointed the gap. ## Why I refused to heal — refusal rule 3 (product-behaviour surface) The fix changes what a deploy does: which modules the gateway evaluates and which routes its front door publishes. That is product behaviour in control-plane code, not harness/fixture/wiring, so it is off limits to the healer and needs a ruling. It also carries genuine design questions a swarm worker should not settle alone: 1. What is a co-hosted port's front-door target — `127.0.0.1:<PortServe.ServePort>` mirroring `NextcloudLoopbackTarget`, or something else? 2. `renderArchiveFirewall` (`internal/clan/archive.go:455-461`) opens the serve port on `wt0` only. A single-node co-host community has no mesh interface; does the co-host render need a loopback variant, or does the container publish suffice? 3. Does the gateway control-plane surface need an archive export beside `EnableGatewayNextcloudExport` (`deploy.go:951-953`) for the API key store path, or is the store path already static enough? 4. Should `knownGatewayModuleFiles` gain all seven port module files at once (derived from `portAttachers`, so a future port registers in one place — the ADR 0062 "a port touches no provisioning code" posture), or only `archive.nix` now? No evidence contradicts the #1243 fix — that heal did what it claimed and made THIS defect legible. #1235 should stay blocked on this ruling: a re-drive without it re-fires straight into the same 360s horizon. drive `20260905T223936Z` red at `archive-healthy`: `archive service is not healthy after 360s of warm-up re-probe (#556): Community archive is waiting on its deploy — the omeka-reconcile step has not minted the archive API key yet, so the keep-serve-` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260905T223936Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: ea38fec3e316 -->
Owner

RULED (agent, two-way under ADR 0174 — Ben vetoes async): the co-host path of a routable port mirrors the files co-host path exactly — render, front-door loopback route, gateway recompose — with the module list DERIVED from the port table.

Diagnosis verified line by line on main bebcf3df. All three places hold:

  1. internal/provision/deploy.go:864-871 — attachRoutablePort renders via AttachPort and returns on !member; memberDevicePlacement(node, coHosted=true) returns ("", false) unconditionally (:983-985). The files twin attachFilesPlacement (:896-957) has the gateway branch this lacks: AttachFrontDoor(frontDoorLiveSet(...)) → EnableGatewayNextcloudExport → ComposeGatewayCohost, "never a deploy that succeeds while the module is dead text".
  2. internal/clan/gateway_attach.go:97 — knownGatewayModuleFiles names seven files and NONE of the seven portAttachers module files (portroute.go:47-70), so ComposeGatewayCohost could not import archive.nix even if called. The rendered module is dead text (#327 class): guest-omeka-reconcile.log = -- No entries --, keystore NOT-MINTED, 0 failed units — nothing ever evaluated it.
  3. deploy.go:1104-1122 — routableLiveService has a gateway → NextcloudLoopbackTarget branch for files only; every other slug needs meshAddr, which a gateway co-host does not have, so archive.<apex> would fall through the wildcard vhost even after the module evaluates.

The healer's four questions, ruled:

  • Q1 route target: 127.0.0.1:<PortServeFacts.ServePort> — the NextcloudLoopbackTarget shape generalised. Add a LoopbackTarget() on PortServeFacts (or a helper) rather than a per-port constant; routableLiveService(slug, "", gateway=true) returns it for any slug with serve facts. ExemptPaths keyed on privateFrontDoor exactly as the files branch.
  • Q2 firewall: NO loopback variant. The container publishes <servePort>:<containerPort> on the host and the front door proxies to 127.0.0.1:<servePort>; NixOS's firewall accepts loopback unconditionally, so the wt0-only interface rule (archive.go:442) is irrelevant to the co-host route. Say so in the render comment; do not widen the wt0 rule.
  • Q3 control-plane export: none. The archive store path is the static clan.DefaultArchiveAPIKeyStorePath the #1243 check already reads per call; EnableGatewayNextcloudExport is Nextcloud-specific and has no archive analogue to add. (If a sibling port later needs an export, it registers beside its attacher — not here.)
  • Q4 module list: ALL seven, DERIVED — knownGatewayModuleFiles (or a wrapper gatewayModuleFiles()) = the current seven + deployedModuleFiles[slug] for every slug in portAttachers, in a stable sorted order, so a future port registers in ONE place (ADR 0062 "a port touches no provisioning code"). Keep the list ordered and deterministic — founding and a later co-host must stay byte-identical over the same module set (the comment at :95-96).

Rejected: routing co-hosted ports over the mesh address of the gateway itself (it has none on a single-node private community, and it is a loopback service anyway); a per-port special case for archive only (recreates this ticket six more times).

What to build

  1. attachRoutablePort: when coHosted and the node is the gateway, after AttachPort: AttachFrontDoor(o.frontDoorLiveSet(node, o.fleetFrontDoorServices(node, coHosted, nodeSvcs, o.nodeMeshAddr(node)))) (the fleet-wide union — drop no other route), then ComposeGatewayCohost(node); same order as files (route BEFORE recompose so the one gateway switch carries both). The member-device branch is untouched.
  2. routableLiveService: the gateway loopback branch for every slug with PortServeFacts (Q1).
  3. knownGatewayModuleFiles derived from the port table (Q4); presentModules keeps "only what is on disk", so nothing changes for a gateway that hosts no ports.
  4. Tests (red first at the production seam, as #1243 did): (a) co-host archive on a gateway with files already co-hosted → machines/gateway/configuration.nix imports archive.nix AND files.nix; front-door.nix carries archive.<apex> → 127.0.0.1:8086 AND still carries the files route; (b) table-driven over portAttachers: every port's module file is in the derived list and its loopback route derives from its serve facts; (c) the member-device path's existing tests unchanged; (d) go test ./internal/provision/ ./internal/clan/ green, plus the e2e fixture offline tests.
  5. STATUS.md lead + a GOTCHAS entry ("a rendered module nobody imports is dead text — check the composer's known list when adding a module file", pointing at #327/#1239/#1246).

Acceptance

Next #1235 fire: logs/guest-omeka-reconcile.log has entries, guest-archive-keystore.log = MINTED, and archive-healthy goes green on the real keep→serve→refuse pass (or reds with a REAL Omeka reason — the next ticket, #1213's residuals), then archive-door reaches Omeka through the S5 door. Same class as #1239 and #327/#428; this ruling closes it for all seven co-hostable ports.

## RULED (agent, two-way under ADR 0174 — Ben vetoes async): **the co-host path of a routable port mirrors the files co-host path exactly — render, front-door loopback route, gateway recompose — with the module list DERIVED from the port table.** Diagnosis verified line by line on main `bebcf3df`. All three places hold: 1. `internal/provision/deploy.go:864-871` — `attachRoutablePort` renders via `AttachPort` and returns on `!member`; `memberDevicePlacement(node, coHosted=true)` returns `("", false)` unconditionally (`:983-985`). The files twin `attachFilesPlacement` (`:896-957`) has the gateway branch this lacks: `AttachFrontDoor(frontDoorLiveSet(...))` → `EnableGatewayNextcloudExport` → `ComposeGatewayCohost`, "never a deploy that succeeds while the module is dead text". 2. `internal/clan/gateway_attach.go:97` — `knownGatewayModuleFiles` names seven files and NONE of the seven `portAttachers` module files (`portroute.go:47-70`), so `ComposeGatewayCohost` could not import `archive.nix` even if called. The rendered module is dead text (#327 class): `guest-omeka-reconcile.log` = `-- No entries --`, keystore `NOT-MINTED`, 0 failed units — nothing ever evaluated it. 3. `deploy.go:1104-1122` — `routableLiveService` has a gateway → `NextcloudLoopbackTarget` branch for `files` only; every other slug needs `meshAddr`, which a gateway co-host does not have, so `archive.<apex>` would fall through the wildcard vhost even after the module evaluates. The healer's four questions, ruled: - **Q1 route target:** `127.0.0.1:<PortServeFacts.ServePort>` — the `NextcloudLoopbackTarget` shape generalised. Add a `LoopbackTarget()` on `PortServeFacts` (or a helper) rather than a per-port constant; `routableLiveService(slug, "", gateway=true)` returns it for any slug with serve facts. `ExemptPaths` keyed on `privateFrontDoor` exactly as the files branch. - **Q2 firewall:** NO loopback variant. The container publishes `<servePort>:<containerPort>` on the host and the front door proxies to `127.0.0.1:<servePort>`; NixOS's firewall accepts loopback unconditionally, so the `wt0`-only interface rule (`archive.go:442`) is irrelevant to the co-host route. Say so in the render comment; do not widen the wt0 rule. - **Q3 control-plane export:** none. The archive store path is the static `clan.DefaultArchiveAPIKeyStorePath` the #1243 check already reads per call; `EnableGatewayNextcloudExport` is Nextcloud-specific and has no archive analogue to add. (If a sibling port later needs an export, it registers beside its attacher — not here.) - **Q4 module list:** ALL seven, DERIVED — `knownGatewayModuleFiles` (or a wrapper `gatewayModuleFiles()`) = the current seven + `deployedModuleFiles[slug]` for every slug in `portAttachers`, in a stable sorted order, so a future port registers in ONE place (ADR 0062 "a port touches no provisioning code"). Keep the list ordered and deterministic — founding and a later co-host must stay byte-identical over the same module set (the comment at `:95-96`). Rejected: routing co-hosted ports over the mesh address of the gateway itself (it has none on a single-node private community, and it is a loopback service anyway); a per-port special case for archive only (recreates this ticket six more times). ## What to build 1. `attachRoutablePort`: when `coHosted` and the node is the gateway, after `AttachPort`: `AttachFrontDoor(o.frontDoorLiveSet(node, o.fleetFrontDoorServices(node, coHosted, nodeSvcs, o.nodeMeshAddr(node))))` (the fleet-wide union — drop no other route), then `ComposeGatewayCohost(node)`; same order as files (route BEFORE recompose so the one gateway switch carries both). The member-device branch is untouched. 2. `routableLiveService`: the gateway loopback branch for every slug with `PortServeFacts` (Q1). 3. `knownGatewayModuleFiles` derived from the port table (Q4); `presentModules` keeps "only what is on disk", so nothing changes for a gateway that hosts no ports. 4. Tests (red first at the production seam, as #1243 did): (a) co-host archive on a gateway with files already co-hosted → `machines/gateway/configuration.nix` imports `archive.nix` AND `files.nix`; `front-door.nix` carries `archive.<apex>` → `127.0.0.1:8086` AND still carries the files route; (b) table-driven over `portAttachers`: every port's module file is in the derived list and its loopback route derives from its serve facts; (c) the member-device path's existing tests unchanged; (d) `go test ./internal/provision/ ./internal/clan/` green, plus the e2e fixture offline tests. 5. STATUS.md lead + a GOTCHAS entry ("a rendered module nobody imports is dead text — check the composer's known list when adding a module file", pointing at #327/#1239/#1246). ## Acceptance Next #1235 fire: `logs/guest-omeka-reconcile.log` has entries, `guest-archive-keystore.log` = MINTED, and `archive-healthy` goes green on the real keep→serve→refuse pass (or reds with a REAL Omeka reason — the next ticket, #1213's residuals), then `archive-door` reaches Omeka through the S5 door. Same class as #1239 and #327/#428; this ruling closes it for all seven co-hostable ports.
Author
Member

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

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

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

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

swarm-claim host=elitebook-distributed-server-03 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18588 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

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

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

swarm-claim host=elitebook-distributed-server-03 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18588 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=18589
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18589 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1246 — status success

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

envelope
{
  "issue": 1246,
  "status": "success",
  "commits": [
    "3e8cb1713fb148d3647acb92e882bf5beb5e93a8"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/gateway_attach.go",
    "internal/clan/gateway_attach_test.go",
    "internal/clan/portroute.go",
    "internal/provision/deploy.go",
    "internal/provision/deploy_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/ ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan internal/provision",
      "exit_code": 0
    }
  ],
  "criteria": {
    "attachRoutablePort completes a gateway co-host (route + recompose), mirroring the files path": "internal/provision/deploy.go attachRoutablePort co-host branch; TestDeploy_GatewayPortCohostAloneRoutesLoopbackAndRecomposes (proven red without the branch)",
    "co-hosted port routes to 127.0.0.1:<servePort> (loopback), no mesh address needed": "internal/provision/deploy.go routableLiveService gateway branch + internal/clan/portroute.go PortServe.LoopbackTarget; TestRoutableLiveService_EveryPortDerivesItsGatewayLoopbackRoute (table over all ports)",
    "ComposeGatewayCohost imports the co-hosted port module — archive.nix AND files.nix; knownGatewayModuleFiles derived from the port table": "internal/clan/gateway_attach.go knownGatewayModuleFiles func-derived; TestComposeGatewayCohost_ImportsALandedPortModuleBesideTheFrontDoor + TestKnownGatewayModuleFiles_NamesEveryCoHostablePort",
    "front door keeps both routes on the whole-rewrite (#1172)": "TestDeploy_GatewayPortCohostKeepsFilesRoute (files loopback + archive loopback both present)",
    "no firewall variant, no control-plane export (Q2/Q3 of the ruling)": "no changes to renderArchiveFirewall or the control-plane surface; the archive store path stays the static DefaultArchiveAPIKeyStorePath the #1243 check reads",
    "fix generalises to all seven co-hostable ports (ADR 0062, one registration place)": "knownGatewayModuleFiles + routableLiveService + attachRoutablePort all derive from portAttachers/PortServeFacts, not per-port branches; TestKnownGatewayModuleFiles_NamesEveryCoHostablePort iterates portAttachers",
    "GOTCHAS entry recorded (ruling item 5)": "docs/GOTCHAS.md #173 — a rendered module nobody imports is dead text; a module file has two homes",
    "STATUS.md lead updated": "STATUS.md header marks #1246 BUILT and demotes the prior lead"
  },
  "summary": "The co-host path of a routable port now completes its placement (front-door loopback route + gateway recompose, module list derived from the port table), so a gateway-co-hosted archive.nix is imported and evaluated instead of standing as dead text.",
  "blockers": []
}
**close-report** for #1246 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1246, "status": "success", "commits": [ "3e8cb1713fb148d3647acb92e882bf5beb5e93a8" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/gateway_attach.go", "internal/clan/gateway_attach_test.go", "internal/clan/portroute.go", "internal/provision/deploy.go", "internal/provision/deploy_test.go" ], "tests": [ { "command": "go test ./internal/clan/ ./internal/provision/", "exit_code": 0 }, { "command": "go build ./... && go vet ./...", "exit_code": 0 }, { "command": "golangci-lint run ./...", "exit_code": 0 }, { "command": "gofmt -l internal/clan internal/provision", "exit_code": 0 } ], "criteria": { "attachRoutablePort completes a gateway co-host (route + recompose), mirroring the files path": "internal/provision/deploy.go attachRoutablePort co-host branch; TestDeploy_GatewayPortCohostAloneRoutesLoopbackAndRecomposes (proven red without the branch)", "co-hosted port routes to 127.0.0.1:<servePort> (loopback), no mesh address needed": "internal/provision/deploy.go routableLiveService gateway branch + internal/clan/portroute.go PortServe.LoopbackTarget; TestRoutableLiveService_EveryPortDerivesItsGatewayLoopbackRoute (table over all ports)", "ComposeGatewayCohost imports the co-hosted port module — archive.nix AND files.nix; knownGatewayModuleFiles derived from the port table": "internal/clan/gateway_attach.go knownGatewayModuleFiles func-derived; TestComposeGatewayCohost_ImportsALandedPortModuleBesideTheFrontDoor + TestKnownGatewayModuleFiles_NamesEveryCoHostablePort", "front door keeps both routes on the whole-rewrite (#1172)": "TestDeploy_GatewayPortCohostKeepsFilesRoute (files loopback + archive loopback both present)", "no firewall variant, no control-plane export (Q2/Q3 of the ruling)": "no changes to renderArchiveFirewall or the control-plane surface; the archive store path stays the static DefaultArchiveAPIKeyStorePath the #1243 check reads", "fix generalises to all seven co-hostable ports (ADR 0062, one registration place)": "knownGatewayModuleFiles + routableLiveService + attachRoutablePort all derive from portAttachers/PortServeFacts, not per-port branches; TestKnownGatewayModuleFiles_NamesEveryCoHostablePort iterates portAttachers", "GOTCHAS entry recorded (ruling item 5)": "docs/GOTCHAS.md #173 — a rendered module nobody imports is dead text; a module file has two homes", "STATUS.md lead updated": "STATUS.md header marks #1246 BUILT and demotes the prior lead" }, "summary": "The co-host path of a routable port now completes its placement (front-door loopback route + gateway recompose, module list derived from the port table), so a gateway-co-hosted archive.nix is imported and evaluated instead of standing as dead text.", "blockers": [] } ``` </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#1246
No description provided.