mail: the operator readiness gate — S1/S1x in the P4 deploy gate (#318 split, Part 1) #321
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Part 1 of the #318 split — Ben ruled 2026-08-07 on the agent's split question (option a): #318 lands the member portal (Part 2); this ticket carries the operator readiness gate on its own.
Design contract: wireframes
docs/ux/wireframes/mail/mail-s1-mail-readiness.html+mail-s1x-degraded-named-standing.html, ADRs 0112 family / 0115, ADR 0015 (advice never veto), ADR 0071 (no silently-healthy absence).What to build
MAIL-S1 / S1x (operator). Wire
internal/mailreadinessinto the P4SetupSurfacedeploy gate:mailHealthCheckStalwart/healthzprobe already wired atb13fb81);Seam test per
provision_brand_health_test.go.Gate-model shape — RULED (Ben, 2026-08-07): option (ii)
Healthystays THE gate bit — no change to gate semantics, no new DDR.provision.ServiceHealth(internal/provision/health.go:84-123) gains one optionalstatestring field, empty for every non-mail service, carrying the slug straight frommailreadiness.Readiness.State.Rationale, as ruled:
active/records-not-verified/can-receive-cant-send) are already built, tested and JSON-tagged onReadiness.State, withpreflight_test.gocovering the fold and the records-red-beats-sending-red precedence. Nothing to re-derive.StateServiceFailed, whose contract claims the service "claim[s] no coverage" — untrue incan-receive-cant-send, where receiving genuinely still works. That is exactly the silent misreport ADR 0115 warns against.ServiceHealthalready carries operator-facing strings (Failure/NoCoverage/Retry) beside the bool, andStateServiceFailedis already "a first-class state, not a degradation" — the partial-success shape exists; it simply has no name slot. This adds the slot and nothing else.Additive only: no other service's behaviour changes, and
StandingFaults()keeps its current meaning.Acceptance
The Given/When/Then criteria for S1/S1x live in #229's spec body — they transfer verbatim.
Ben ruled the gate-model shape 2026-08-07: option (ii) —
Healthystays the gate bit,ServiceHealthgains one optionalstateslug carried frommailreadiness.Readiness.State. Recorded in the body above; no DDR needed (additive field, no gate semantics change).ready-for-human→ready-for-agent. Nothing else blocks this slice.Landed in
7e19afc(onorigin/main).Operator mail-readiness gate — MAIL-S1/S1x wired into the P4 deploy gate.
provision.ServiceHealthgains one optionalstateslug carried straight frommailreadiness.Readiness.State(active/records-not-verified/can-receive-cant-send), empty for non-mail services.Healthystays THE gate bit — no gate-semantics change, no DDR. A degraded readiness never demotes the device (a receiving-but-not-sending mail is not a no-coverage failure); the named state stands and a re-run clears it by itself (RetryService).StepMailReadiness) ininternal/provision/health.go, run after — never replacing — the functional Stalwart/healthzcheck (b13fb81). The whole readiness ridesOutcome.MailReadinessfor the surface.Handoff.MailReadinessand monitoring raises it as a standing warning fault like any other (originMailReadiness, diagnosis-only), self-clearing on a green re-run.mailReadinessAdapterruns the realinternal/mailreadinessover apex-derived records + the apex address (ADR 0100 — no fake in a shipped path);composeDeps.mailReadinessinjects a scripted fold at the seam.MailReadinessScreen.vue— records + preflight poll) and MAIL-S1x (MailStandingState.vue— named standing state + evidence in the active view) ship as real mounted components on the wireframes'data-field/data-action/data-statuscontract;SetupSurfaceroutes records-not-verified → S1, otherwise Active (with the S1x block); re-run maps toretryService('mail').Evidence:
control-plane/cmd/control-plane/provision_mail_readiness_test.go(composition seam, extended perprovision_brand_health_test.go) proves the fold stands the named state, the device stays active,RetryServiceclears it, and monitoring raises+clears it.dashboard/tests/unit/provisionMailReadiness.test.tspins the S1/S1x element contract + re-run routing.go build/vet/test(incl. smoke-mail) + dashboard vitest (980) + eslint + dashboard build all green. Acceptance stories 1/4/5/6/7/8/9 satisfied.Follow-on note: the chrome standing-indicator-stack + a dedicated Services-tab pill are surfaced via the monitoring standing alert (story 9); a dedicated recovery-style indicator-source entry in
NavChromeis a possible follow-on.