engine-adapters: smoke-notifier — family-5 proven (real delivery, loud failure) #179

Closed
opened 2026-07-29 05:10:22 +00:00 by ben · 1 comment
Owner

Parent

Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.

What to build

Family-5 proof: a raised alert delivers a real email (Matou mail sandbox, or a lab SMTP sink — indistinguishable at the SMTP boundary); a forced submission failure is logged and loses nothing (the app channel still carries the raise). Executes the delivery leg of spec #18's standing smoke clause.

Acceptance criteria

  • Given a raised alert on the lab fleet, When delivery runs, Then the message arrives with severity/diagnosis/action intact
  • Given a forced failure, When retries exhaust, Then the failure is in the log pipeline and the alert is not lost

Blocked by

  • engine-adapters:notifier-smtp

Task manifest

task: engine-adapters:smoke-notifier
implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)"
interface: "the family's public seam, driven end-to-end on the clan-lab"
seam: "the clan-lab run itself (clan-lab + lab-dns skills); evidence (logs, verdicts) posted to this ticket"
acceptance:
  - given: a real 3-node lab fleet; when: the scripted smoke drives the family; then: every listed leg passes and evidence is attached (spec #18)
depends_on: [engine-adapters:notifier-smtp]
out_of_scope: [performance / resource-floor numbers (honesty limits: measure only what the substrate can honestly show)]
needs_human_decision: []
## Parent Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending. ## What to build Family-5 proof: a raised alert delivers a real email (Matou mail sandbox, or a lab SMTP sink — indistinguishable at the SMTP boundary); a forced submission failure is logged and loses nothing (the app channel still carries the raise). Executes the delivery leg of spec #18's standing smoke clause. ## Acceptance criteria - [ ] Given a raised alert on the lab fleet, When delivery runs, Then the message arrives with severity/diagnosis/action intact - [ ] Given a forced failure, When retries exhaust, Then the failure is in the log pipeline and the alert is not lost ## Blocked by - engine-adapters:notifier-smtp ## Task manifest ```yaml task: engine-adapters:smoke-notifier implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)" interface: "the family's public seam, driven end-to-end on the clan-lab" seam: "the clan-lab run itself (clan-lab + lab-dns skills); evidence (logs, verdicts) posted to this ticket" acceptance: - given: a real 3-node lab fleet; when: the scripted smoke drives the family; then: every listed leg passes and evidence is attached (spec #18) depends_on: [engine-adapters:notifier-smtp] out_of_scope: [performance / resource-floor numbers (honesty limits: measure only what the substrate can honestly show)] needs_human_decision: [] ```
Author
Owner

Done — family 5 (the Notifier, ADR 0106) smoke-proven on a real 3-node clan-lab fleet. Commit 3c3c983 on main.

Ben's arc gate (wayfinder #160) is a per-family clan-lab smoke. A self-contained smoke binary (control-plane/cmd/smoke-notifier, driven by scripts/smoke-notifier.sh) drove the production notifier engine adapter (notifier-smtp #173) end to end over a real SMTP boundary on lab node1 — the same notify.SMTPSubmitter the gateway wires, submitting to an in-process SMTP sink indistinguishable from Matou mail (ADR 0106's substitute clause).

Lab clan-lab-notifier-179-0e54a8b1 (syd1, golden pin clan-core db4db726), smoke run on node1, exit 0, then destroyed. Honesty limit: functional verdict only — nested VMs, no perf/resource-floor numbers.

Both acceptance clauses PASS:

  • AC1 (deliver). A raised critical alert delivered a real email with severity/diagnosis/action intact, and the operator-app channel was the honest no-op (no second email). Delivered message:
    From: notify@mail.matou.nz
    To: kaitiaki@clan-lab.matou.nz
    Subject: [CRITICAL] Chat is down.
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    
    Chat is down.
    
    The chat service on node1 stopped responding. Members can't send messages right now.
    
    Advised action: Restart chat — restart it — this usually fixes it, and it's safe.
    
  • AC2 (loud failure). A forced submission failure exhausted its bounded retries, was recorded through the standing log pipeline, and did not lose the raise — the operator-app channel still carried it. Failure log:
    level=ERROR msg="alert email delivery failed after retries" alert_id=smoke-notifier-179 severity=critical to=kaitiaki@clan-lab.matou.nz attempts=3 error="dial tcp 127.0.0.1:44759: connect: connection refused"
    

Full JSON verdict and re-run instructions: docs/spike-findings/smoke-notifier-179.md.

**Done — family 5 (the Notifier, ADR 0106) smoke-proven on a real 3-node clan-lab fleet.** Commit `3c3c983` on `main`. Ben's arc gate (wayfinder #160) is a per-family clan-lab smoke. A self-contained smoke binary (`control-plane/cmd/smoke-notifier`, driven by `scripts/smoke-notifier.sh`) drove the production notifier engine adapter (notifier-smtp #173) end to end over a **real SMTP boundary** on lab **node1** — the same `notify.SMTPSubmitter` the gateway wires, submitting to an in-process SMTP sink indistinguishable from Matou mail (ADR 0106's substitute clause). Lab `clan-lab-notifier-179-0e54a8b1` (syd1, golden pin clan-core `db4db726`), smoke run **on node1**, exit 0, then destroyed. Honesty limit: functional verdict only — nested VMs, no perf/resource-floor numbers. **Both acceptance clauses PASS:** - **AC1 (deliver).** A raised critical alert delivered a real email with severity/diagnosis/action intact, and the operator-app channel was the honest no-op (no second email). Delivered message: ``` From: notify@mail.matou.nz To: kaitiaki@clan-lab.matou.nz Subject: [CRITICAL] Chat is down. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Chat is down. The chat service on node1 stopped responding. Members can't send messages right now. Advised action: Restart chat — restart it — this usually fixes it, and it's safe. ``` - **AC2 (loud failure).** A forced submission failure exhausted its bounded retries, was recorded through the standing log pipeline, and did not lose the raise — the operator-app channel still carried it. Failure log: ``` level=ERROR msg="alert email delivery failed after retries" alert_id=smoke-notifier-179 severity=critical to=kaitiaki@clan-lab.matou.nz attempts=3 error="dial tcp 127.0.0.1:44759: connect: connection refused" ``` Full JSON verdict and re-run instructions: `docs/spike-findings/smoke-notifier-179.md`.
ben closed this issue 2026-07-29 13:01:42 +00:00
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#179
No description provided.