mail-cohost: provisioning writes a phantom clan-core mail instance — gateway eval dies #1418

Closed
opened 2026-09-12 05:19:33 +00:00 by matou-build-agent · 4 comments

The failure

mail-cohost is the first and only red of 27 legs (verdict.json: "green": 26, "red": 1, "skip": 0). This is not the KNOWN own-VPS pairing frontier named in the brief: pair is green ({"leg": "pair", "status": "green", "ms": 125}) and legs.json carries zero skips, so no skip reason in this drive names this red as out of scope. It is a live, actionable defect.

The leg ticked Mail on the gateway's P4-S2 change screen and confirmed a plain deploy. Provisioning committed the placement as a declarative inventory instance naming a clan-core module that does not exist, and clan's eval preflight excluded the gateway node:

"leg": "mail-cohost", "status": "red", "ms": 11531,
"error": "deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway:
 the node was excluded at the eval preflight — nothing was deployed: error:
 error: flake input 'clan-core' doesn't provide clan-module with name 'mail'."

logs/droplet-journal.txt:1994 carries the same fault from the in-guest control plane:

Sep 12 05:13:53 gateway idss-control-plane-start[2850]: level=WARN msg="provision deploy failed"
  component=control-plane device=gateway error="provision: deploy gateway: clan: config_eval on gateway:
  the node was excluded at the eval preflight — nothing was deployed: error:
  error: flake input 'clan-core' doesn't provide clan-module with name 'mail'."

Live-box evidence (the box answered; SSH was not refused)

The droplet is still up and the config repo it owns after cutover is /srv/idss/config. The phantom is sitting in it:

$ git -C /srv/idss/config log --oneline -3
0a1f1ff idss: attach service mail to gateway as gateway     <-- AttachService (renderless path)
f852561 vars: update via generator nextcloud-db (machine: gateway)
...
afcd5e1 idss: attach files (Nextcloud) module on gateway    <-- AttachFiles (REAL render path)

$ git -C /srv/idss/config show --stat 0a1f1ff
 inventory.json | 15 +++++++++++++++      <-- inventory only. No module file.

$ grep -A 12 instances /srv/idss/config/inventory.json
  "instances": {
    "mail@gateway": {
      "module": { "name": "mail", "input": "clan-core" },
      "roles": { "gateway": { "machines": { "gateway": {} } } }

Compare the two commit-message shapes: files landed as "attach files (Nextcloud) module" (a real render writing files.nix), mail as "attach service mail ... as gateway" — configFace.AttachService's format string at internal/clan/config.go:145.

The machine dir and the entry module confirm nothing was rendered or imported:

$ ls /srv/idss/config/machines/gateway/
access.nix acme-dns.nix configuration.nix control-plane.nix disko.nix facter.json
files.nix front-door.nix gateway-render.json ledger.nix networking.nix platform.nix
                        ^^^^^^^^^ files.nix present — mail.nix ABSENT

$ grep -n '\.nix' /srv/idss/config/machines/gateway/configuration.nix
  ... ./front-door.nix ./acme-dns.nix ./files.nix      <-- no ./mail.nix

$ systemctl list-units --all | grep -iE 'stalwart|roundcube'
(none — mail never deployed)

$ systemctl --failed --no-legend
(empty)

No unit failed and nothing is broken on the box — consistent with "the node was excluded at the eval preflight — nothing was deployed". /var/lib/idss/provision-deploy-runs.json records the run stopping cleanly at deploy-services with "kind": "config_eval", health checks still pending.

Suspected layer: PRODUCT

The defect is an unrouted service falling through provisioning's dispatch into the phantom-writing fallback — the exact #351/#428 hazard the codebase outlaws by name.

  1. mail has a real render but is not registered on the deploy-routing seam. AttachMail exists (internal/clan/mail_attach.go:83) and mail owns a module file (internal/clan/deployedservices.go:22, mailSlug: MailFileName), but portAttachers (internal/clan/portroute.go:50-72) has no mail entry, so PortRoutable("mail") returns false (portroute.go:211-220). portroute.go's own comment at line 208 says so: "A render-shipping service that is NEITHER (mail, chat, code, …)".

  2. So attachCatalogueService falls through to the phantom. internal/provision/deploy.go:932-955 switches on files/docs-editing/calendar, then takes the clan.PortRoutable(service) branch — mail matches neither, so it reaches the renderless tail:

    // A renderless service (backup-copy) and a role service still land as the
    // declarative inventory placement — its steady home.
    return o.clan.Config().AttachService(ctx, node, clan.ServiceInstance{...})
    

    which writes, at internal/clan/config.go:154:

    Module: invModule{Name: s.Service, Input: "clan-core"},
    

    That is verbatim the instance now in the live inventory. The repo's own rule, stated at internal/clan/portroute.go:78-81 and clan.go:139, is that this must "NEVER [be] a phantom clan-core inventory instance naming a module that does not exist (the #351/#428 lie)" — but it is only enforced inside AttachPort, which mail never reaches.

  3. The P4 change-deploy path applies no deployability gate. provisionCannotDeploy("mail") is true (deploy.go:1727: render-shipping ∧ ¬routable), and the founding path honours it — CommitGatewayServices (deploy.go:272-299) filters on CanDeployService and reports mail Deferred. The path this leg drives, deployServicesOnly (deploy.go:474-486), calls attachCatalogueService for every added service with no CanDeployService check at all. That asymmetry is what turns a gated service into a committed phantom.

    The UI is not the bug: SelectRoleServicesScreen.vue:936 documents gated rows as "any row: gated items are explained, never un-tickable" and :1151 "advice, never veto" — deliberate wireframe contract. The backend is supposed to be the veto, and on this path it isn't. The Go gate itself is intact and pinned: internal/provision/assess_test.go:523 asserts mail must be gated "not ready to set up here yet", and go test ./internal/provision/ passes.

Harness note (secondary, not the cause): the drive declares mail-cohost a LIVE leg citing #1373 / spec #1361 stories 17/19 (app/tests/e2e/journey.droplet.spec.ts:727-741), and portal-member behind it depends on a real mailbox. The leg went live ahead of the routing it needs; the codebase still describes mail as "the sibling frontier: render-shipping but not yet routed, so they stay gated" (deploy.go:1712-1726). Either the routing lands or the leg returns to a named skip — but the phantom write is a product defect either way.

What plugging it needs

  1. The guard (small, do first — turns a broken fleet-wide eval into an honest refusal). Make attachCatalogueService refuse a renderShippingService that is not PortRoutable, instead of falling through to AttachService, and/or apply the CanDeployService filter in deployServicesOnly the way CommitGatewayServices already does. Today one phantom instance breaks the eval preflight for the whole gateway node, so an unroutable tick blocks every subsequent deploy until the commit is reverted.

  2. The real plug (what #1373 actually wants). Route mail's existing AttachMail render on the deploy seam. This is not a one-line portAttachers entry: that map is typed for forward-auth ports whose placement is {Node, Apex}, whereas MailLiveSet (internal/clan/mail_attach.go:41-70) additionally needs IDPHost, LDAPURL, LDAPBindDN, and four clan-var secret paths (LDAPBindPassFile, DKIMKeyFile, AdminSecretFile, OIDCClientSecretFile, DBPassFile) that provisioning does not assemble today. Mail is also gateway-colocated with mesh-only transport ports 25/465/587/993 that the gateway TCP-proxies (ADR 0115), not a front-door-only HTTP port — so it needs the co-host compose + proxy-loop wiring, not just the forward-auth route. Expect var-spec generators plus a MailLiveSet assembler in internal/provision, then registration on the seam so PortRoutable("mail") flips and the P4-S2 gate lifts on its own.

  3. Pin it. Extend assess_test.go:523's list-driven pin to move mail from the gated set to the offered set in the same commit, and add a provisioning test that a render-shipping-but-unroutable slug is refused, never committed as an inventory instance.

drive 20260912T045221Z red at mail-cohost: deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: error: flake input 'clan-core' doesn'
evidence: /home/swarm/session-runner/idss/test-results/drive-droplet/20260912T045221Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `mail-cohost` is the first and only red of 27 legs (`verdict.json`: `"green": 26, "red": 1, "skip": 0`). This is **not** the KNOWN own-VPS pairing frontier named in the brief: `pair` is green (`{"leg": "pair", "status": "green", "ms": 125}`) and `legs.json` carries **zero skips**, so no skip reason in this drive names this red as out of scope. It is a live, actionable defect. The leg ticked Mail on the gateway's P4-S2 change screen and confirmed a plain deploy. Provisioning committed the placement as a *declarative inventory instance naming a clan-core module that does not exist*, and clan's eval preflight excluded the gateway node: ``` "leg": "mail-cohost", "status": "red", "ms": 11531, "error": "deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: error: flake input 'clan-core' doesn't provide clan-module with name 'mail'." ``` `logs/droplet-journal.txt:1994` carries the same fault from the in-guest control plane: ``` Sep 12 05:13:53 gateway idss-control-plane-start[2850]: level=WARN msg="provision deploy failed" component=control-plane device=gateway error="provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: error: flake input 'clan-core' doesn't provide clan-module with name 'mail'." ``` ## Live-box evidence (the box answered; SSH was not refused) The droplet is still up and the config repo it owns after cutover is `/srv/idss/config`. The phantom is sitting in it: ``` $ git -C /srv/idss/config log --oneline -3 0a1f1ff idss: attach service mail to gateway as gateway <-- AttachService (renderless path) f852561 vars: update via generator nextcloud-db (machine: gateway) ... afcd5e1 idss: attach files (Nextcloud) module on gateway <-- AttachFiles (REAL render path) $ git -C /srv/idss/config show --stat 0a1f1ff inventory.json | 15 +++++++++++++++ <-- inventory only. No module file. $ grep -A 12 instances /srv/idss/config/inventory.json "instances": { "mail@gateway": { "module": { "name": "mail", "input": "clan-core" }, "roles": { "gateway": { "machines": { "gateway": {} } } } ``` Compare the two commit-message shapes: files landed as *"attach files (Nextcloud) **module**"* (a real render writing `files.nix`), mail as *"attach **service** mail ... as gateway"* — `configFace.AttachService`'s format string at `internal/clan/config.go:145`. The machine dir and the entry module confirm nothing was rendered or imported: ``` $ ls /srv/idss/config/machines/gateway/ access.nix acme-dns.nix configuration.nix control-plane.nix disko.nix facter.json files.nix front-door.nix gateway-render.json ledger.nix networking.nix platform.nix ^^^^^^^^^ files.nix present — mail.nix ABSENT $ grep -n '\.nix' /srv/idss/config/machines/gateway/configuration.nix ... ./front-door.nix ./acme-dns.nix ./files.nix <-- no ./mail.nix $ systemctl list-units --all | grep -iE 'stalwart|roundcube' (none — mail never deployed) $ systemctl --failed --no-legend (empty) ``` No unit failed and nothing is broken on the box — consistent with *"the node was excluded at the eval preflight — nothing was deployed"*. `/var/lib/idss/provision-deploy-runs.json` records the run stopping cleanly at `deploy-services` with `"kind": "config_eval"`, health checks still `pending`. ## Suspected layer: PRODUCT The defect is an unrouted service falling through provisioning's dispatch into the phantom-writing fallback — the exact `#351`/`#428` hazard the codebase outlaws by name. 1. **mail has a real render but is not registered on the deploy-routing seam.** `AttachMail` exists (`internal/clan/mail_attach.go:83`) and mail owns a module file (`internal/clan/deployedservices.go:22`, `mailSlug: MailFileName`), but `portAttachers` (`internal/clan/portroute.go:50-72`) has no `mail` entry, so `PortRoutable("mail")` returns false (`portroute.go:211-220`). portroute.go's own comment at line 208 says so: *"A render-shipping service that is NEITHER (mail, chat, code, …)"*. 2. **So `attachCatalogueService` falls through to the phantom.** `internal/provision/deploy.go:932-955` switches on files/docs-editing/calendar, then takes the `clan.PortRoutable(service)` branch — mail matches neither, so it reaches the renderless tail: ```go // A renderless service (backup-copy) and a role service still land as the // declarative inventory placement — its steady home. return o.clan.Config().AttachService(ctx, node, clan.ServiceInstance{...}) ``` which writes, at `internal/clan/config.go:154`: ```go Module: invModule{Name: s.Service, Input: "clan-core"}, ``` That is verbatim the instance now in the live inventory. The repo's own rule, stated at `internal/clan/portroute.go:78-81` and `clan.go:139`, is that this must *"NEVER [be] a phantom clan-core inventory instance naming a module that does not exist (the #351/#428 lie)"* — but it is only enforced *inside* `AttachPort`, which mail never reaches. 3. **The P4 change-deploy path applies no deployability gate.** `provisionCannotDeploy("mail")` is true (`deploy.go:1727`: render-shipping ∧ ¬routable), and the founding path honours it — `CommitGatewayServices` (`deploy.go:272-299`) filters on `CanDeployService` and reports mail `Deferred`. The path this leg drives, `deployServicesOnly` (`deploy.go:474-486`), calls `attachCatalogueService` for every added service with **no `CanDeployService` check at all**. That asymmetry is what turns a gated service into a committed phantom. The UI is not the bug: `SelectRoleServicesScreen.vue:936` documents gated rows as *"any row: gated items are explained, never un-tickable"* and `:1151` *"advice, never veto"* — deliberate wireframe contract. The backend is supposed to be the veto, and on this path it isn't. The Go gate itself is intact and pinned: `internal/provision/assess_test.go:523` asserts mail must be gated "not ready to set up here yet", and `go test ./internal/provision/` passes. **Harness note (secondary, not the cause):** the drive declares `mail-cohost` a LIVE leg citing #1373 / spec #1361 stories 17/19 (`app/tests/e2e/journey.droplet.spec.ts:727-741`), and `portal-member` behind it depends on a real mailbox. The leg went live ahead of the routing it needs; the codebase still describes mail as *"the sibling frontier: render-shipping but not yet routed, so they stay gated"* (`deploy.go:1712-1726`). Either the routing lands or the leg returns to a named skip — but the phantom write is a product defect either way. ## What plugging it needs 1. **The guard (small, do first — turns a broken fleet-wide eval into an honest refusal).** Make `attachCatalogueService` refuse a `renderShippingService` that is not `PortRoutable`, instead of falling through to `AttachService`, and/or apply the `CanDeployService` filter in `deployServicesOnly` the way `CommitGatewayServices` already does. Today one phantom instance breaks the eval preflight for the *whole gateway node*, so an unroutable tick blocks every subsequent deploy until the commit is reverted. 2. **The real plug (what #1373 actually wants).** Route mail's existing `AttachMail` render on the deploy seam. This is not a one-line `portAttachers` entry: that map is typed for forward-auth ports whose placement is `{Node, Apex}`, whereas `MailLiveSet` (`internal/clan/mail_attach.go:41-70`) additionally needs `IDPHost`, `LDAPURL`, `LDAPBindDN`, and four clan-var secret paths (`LDAPBindPassFile`, `DKIMKeyFile`, `AdminSecretFile`, `OIDCClientSecretFile`, `DBPassFile`) that provisioning does not assemble today. Mail is also gateway-colocated with mesh-only transport ports 25/465/587/993 that the gateway TCP-proxies (ADR 0115), not a front-door-only HTTP port — so it needs the co-host compose + proxy-loop wiring, not just the forward-auth route. Expect var-spec generators plus a `MailLiveSet` assembler in `internal/provision`, then registration on the seam so `PortRoutable("mail")` flips and the P4-S2 gate lifts on its own. 3. **Pin it.** Extend `assess_test.go:523`'s list-driven pin to move mail from the gated set to the offered set in the same commit, and add a provisioning test that a render-shipping-but-unroutable slug is *refused*, never committed as an inventory instance. drive `20260912T045221Z` red at `mail-cohost`: `deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: error: flake input 'clan-core' doesn'` evidence: `/home/swarm/session-runner/idss/test-results/drive-droplet/20260912T045221Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 5269f6e7f936 -->
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

Ruling: fix the product defect (the phantom write) with the guard #1418 names as "do first", keep mail GATED, and split the real routing (item 2 — "The real plug") out to its own ticket #1420.

The decision ruled: whether this slice lands the full mail routing (var-spec generators + a MailLiveSet assembler + the co-host transport-port wiring, ADR 0115) or just the phantom-containment guard. The issue itself frames item 2 as "not a one-line" and an entire feature; item 1 (the guard) is the actual defect ("provisioning writes a phantom clan-core mail instance — gateway eval dies").

Why it is a two-way door: both guards are additive refusals — deployServicesOnly now filters added services through CanDeployService (mirroring CommitGatewayServices), and attachCatalogueService hard-refuses a renderShippingService that is not PortRoutable. They write no new state; when #1420 routes mail's render, PortRoutable("mail") flips and both guards stop firing for mail with zero caller change. Reversible by reverting the commit.

What proves it: internal/provision pins — TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom (the backstop refuses mail, never commits attach-service mail) and TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom (files still deploys, mail is skipped not phantom-written). go test ./internal/provision/ ./internal/clan/ green, go vet clean.

Effect on the mail-cohost leg: it returns to a named skip until #1420 lands — the harness note the issue flagged as secondary. The product defect (phantom breaks whole-node eval) is closed either way.

**Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** fix the product defect (the phantom write) with the guard #1418 names as "do first", keep mail GATED, and split the real routing (item 2 — "The real plug") out to its own ticket **#1420**. **The decision ruled:** whether this slice lands the full mail routing (var-spec generators + a `MailLiveSet` assembler + the co-host transport-port wiring, ADR 0115) or just the phantom-containment guard. The issue itself frames item 2 as "not a one-line" and an entire feature; item 1 (the guard) is the actual defect ("provisioning writes a phantom clan-core `mail` instance — gateway eval dies"). **Why it is a two-way door:** both guards are additive refusals — `deployServicesOnly` now filters added services through `CanDeployService` (mirroring `CommitGatewayServices`), and `attachCatalogueService` hard-refuses a `renderShippingService` that is not `PortRoutable`. They write no new state; when #1420 routes mail's render, `PortRoutable("mail")` flips and both guards stop firing for mail with zero caller change. Reversible by reverting the commit. **What proves it:** `internal/provision` pins — `TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom` (the backstop refuses mail, never commits `attach-service mail`) and `TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom` (files still deploys, mail is skipped not phantom-written). `go test ./internal/provision/ ./internal/clan/` green, `go vet` clean. **Effect on the `mail-cohost` leg:** it returns to a named skip until #1420 lands — the harness note the issue flagged as secondary. The product defect (phantom breaks whole-node eval) is closed either way.
Author
Member

close-report for #1418 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit b983114e5b is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/provision/deploy.go' is not in the diff of the claimed commits
  • changed_files: 'internal/provision/deploy_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1418,
  "status": "success",
  "commits": [
    "b983114e5b03885fd0bed067d421c24cb1e6471c"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/provision/deploy.go",
    "internal/provision/deploy_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The phantom clan-core mail instance is never committed (the #351/#428 lie that broke the gateway eval preflight)": "attachCatalogueService now refuses a renderShippingService that is not clan.PortRoutable (internal/provision/deploy.go) rather than falling through to the renderless AttachService; pinned by TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom",
    "The P4 change-deploy path (deployServicesOnly) applies the CanDeployService gate, matching CommitGatewayServices, so an unroutable tick no longer blocks the whole deploy": "deployServicesOnly's added loop filters through CanDeployService and skips a gated service (internal/provision/deploy.go); pinned by TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom (files still deploys, mail never committed)",
    "A render-shipping-but-unroutable slug is refused, never committed as an inventory instance (the #1418 pin)": "TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom asserts mail is refused and no attach-service mail edit is written, while renderless backup-copy still lands as a placement (internal/provision/deploy_test.go)",
    "The real mail routing (item 2) is tracked, not lost": "follow-up #1420 filed to route mail's AttachMail render on the deploy seam; mail stays gated until then (assess_test.go:523 unchanged), recorded in STATUS.md"
  },
  "summary": "Guard the P4 change-deploy path so a render-unrouted service is honestly refused/skipped instead of committed as a phantom clan-core instance that broke the whole gateway node's eval; mail stays gated with the real routing split to #1420.",
  "blockers": []
}
**close-report** for #1418 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit b983114e5b03885fd0bed067d421c24cb1e6471c is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'internal/provision/deploy.go' is not in the diff of the claimed commits - changed_files: 'internal/provision/deploy_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1418, "status": "success", "commits": [ "b983114e5b03885fd0bed067d421c24cb1e6471c" ], "changed_files": [ "STATUS.md", "internal/provision/deploy.go", "internal/provision/deploy_test.go" ], "tests": [ { "command": "go test ./internal/provision/", "exit_code": 0 }, { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/provision/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "The phantom clan-core mail instance is never committed (the #351/#428 lie that broke the gateway eval preflight)": "attachCatalogueService now refuses a renderShippingService that is not clan.PortRoutable (internal/provision/deploy.go) rather than falling through to the renderless AttachService; pinned by TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom", "The P4 change-deploy path (deployServicesOnly) applies the CanDeployService gate, matching CommitGatewayServices, so an unroutable tick no longer blocks the whole deploy": "deployServicesOnly's added loop filters through CanDeployService and skips a gated service (internal/provision/deploy.go); pinned by TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom (files still deploys, mail never committed)", "A render-shipping-but-unroutable slug is refused, never committed as an inventory instance (the #1418 pin)": "TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom asserts mail is refused and no attach-service mail edit is written, while renderless backup-copy still lands as a placement (internal/provision/deploy_test.go)", "The real mail routing (item 2) is tracked, not lost": "follow-up #1420 filed to route mail's AttachMail render on the deploy seam; mail stays gated until then (assess_test.go:523 unchanged), recorded in STATUS.md" }, "summary": "Guard the P4 change-deploy path so a render-unrouted service is honestly refused/skipped instead of committed as a phantom clan-core instance that broke the whole gateway node's eval; mail stays gated with the real routing split to #1420.", "blockers": [] } ``` </details>
Author
Member

close-report for #1418 — status success

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

envelope
{
  "issue": 1418,
  "status": "success",
  "commits": [
    "b983114e5b03885fd0bed067d421c24cb1e6471c"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/provision/deploy.go",
    "internal/provision/deploy_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The phantom clan-core mail instance is never committed (the #351/#428 lie that broke the gateway eval preflight)": "attachCatalogueService now refuses a renderShippingService that is not clan.PortRoutable (internal/provision/deploy.go) rather than falling through to the renderless AttachService; pinned by TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom",
    "The P4 change-deploy path (deployServicesOnly) applies the CanDeployService gate, matching CommitGatewayServices, so an unroutable tick no longer blocks the whole deploy": "deployServicesOnly's added loop filters through CanDeployService and skips a gated service (internal/provision/deploy.go); pinned by TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom (files still deploys, mail never committed)",
    "A render-shipping-but-unroutable slug is refused, never committed as an inventory instance (the #1418 pin)": "TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom asserts mail is refused and no attach-service mail edit is written, while renderless backup-copy still lands as a placement (internal/provision/deploy_test.go)",
    "The real mail routing (item 2) is tracked, not lost": "follow-up #1420 filed to route mail's AttachMail render on the deploy seam; mail stays gated until then (assess_test.go:523 unchanged), recorded in STATUS.md"
  },
  "summary": "Guard the P4 change-deploy path so a render-unrouted service is honestly refused/skipped instead of committed as a phantom clan-core instance that broke the whole gateway node's eval; mail stays gated with the real routing split to #1420.",
  "blockers": []
}
**close-report** for #1418 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1418, "status": "success", "commits": [ "b983114e5b03885fd0bed067d421c24cb1e6471c" ], "changed_files": [ "STATUS.md", "internal/provision/deploy.go", "internal/provision/deploy_test.go" ], "tests": [ { "command": "go test ./internal/provision/", "exit_code": 0 }, { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/provision/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "The phantom clan-core mail instance is never committed (the #351/#428 lie that broke the gateway eval preflight)": "attachCatalogueService now refuses a renderShippingService that is not clan.PortRoutable (internal/provision/deploy.go) rather than falling through to the renderless AttachService; pinned by TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom", "The P4 change-deploy path (deployServicesOnly) applies the CanDeployService gate, matching CommitGatewayServices, so an unroutable tick no longer blocks the whole deploy": "deployServicesOnly's added loop filters through CanDeployService and skips a gated service (internal/provision/deploy.go); pinned by TestDeploy_UnroutableServiceIsSkippedNotCommittedAsAPhantom (files still deploys, mail never committed)", "A render-shipping-but-unroutable slug is refused, never committed as an inventory instance (the #1418 pin)": "TestAttachCatalogueService_UnroutableRenderShipIsRefusedNeverAPhantom asserts mail is refused and no attach-service mail edit is written, while renderless backup-copy still lands as a placement (internal/provision/deploy_test.go)", "The real mail routing (item 2) is tracked, not lost": "follow-up #1420 filed to route mail's AttachMail render on the deploy seam; mail stays gated until then (assess_test.go:523 unchanged), recorded in STATUS.md" }, "summary": "Guard the P4 change-deploy path so a render-unrouted service is honestly refused/skipped instead of committed as a phantom clan-core instance that broke the whole gateway node's eval; mail stays gated with the real routing split to #1420.", "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#1418
No description provided.