Mātou email verification: an address is only 'verified' once its owner clicked a link — the gateway mints the proof, Mātou mail only carries it #1744
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#1744
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?
Commissioned by Ben, 2026-09-22, out of the #1707 / DDR 0266 email-correction design.
The hole
Nothing in IDSS has ever verified that an email address belongs to the person it is typed onto, yet the stack tells services it did:
email_verified: trueon any roster address (internal/idp/storage.go:582);ben@matou,nz(#1703) and passed it on as a verified address of the Whakatōhea Demo operator.DDR 0266 holds the takeover door shut from the inside — an address is unique across members (refused inline), and an existing service account never moves on an email change — so this is not a live breach. But the word "verified" is unearned, and every email-matching co-host is trusting it.
A community cannot verify addresses by itself: sending mail needs a mail service, and at founding it has none (ADR 0115/0116 grow mail later, most communities never install it). Mātou already operates mail for exactly this reason — the Notifier submits alerts as
notify@mail.matou.nzover per-community SMTP credentials held as clan vars (ADR 0106, Ben's #85 ruling). Verification rides the same standing dependency.What to build
A verification ceremony owned by the gateway, with Mātou mail as the carrier — not a Mātou-side verification service that holds anyone's address.
The gateway mints the proof. A single-use, short-expiry token signed by the gateway, bound to (member, address, purpose). It is stored on the gateway. Confirmation lands back on the gateway (
https://<apex>/verify/<token>), which flips the address to verified. Mātou mail is the carrier: it accepts an SMTP submission and delivers it, exactly as it does for alerts today, and it decides nothing about who is verified. The community's member list stays on the community's own box, and the eject route stays real: a community with its own mail submits through that instead, with no other change, and a community that leaves Mātou loses a convenience, never its identities. (What Mātou does keep is the founding operator's address — see 2.)No third-party verification vendor, ever. An outside deliverability service would mean sending members' addresses to a company outside the community's control. Rejected on sovereignty grounds, not cost.
Mātou does keep the FOUNDING operator's address (Ben, 2026-09-22): the founding operator email is recorded and held by Mātou to build the relationship with that operator community. This is a stated fact of founding, not a side effect — founding must SAY so on the screen that asks for it (P1-S2 copy), and nothing in the product may claim otherwise. Members' addresses are a different matter: they stay on the community's own gateway, and Mātou mail only carries a message to them.
Where it fires: the founding operator email (P1-S2), a member added with a real address (ADR 0251), an address corrected on their row (DDR 0266, P6-S10/S10i), and an invite acceptance that collects one.
What
verifiedmeans, who is blocked on it, and who may turn it off (Ben's rulings, 2026-09-22):email_verifiedclaim honest. While ON, an unverified member is added and can sign in to the community, but a co-host that MATCHES A PERSON by email (Paperless, ADR 0255) does not pre-match them until they verify. While OFF, the bridge asserts the address without a confirmation and email-matching co-hosts accept it, which is exactly today's behaviour — the toggle's help text says so plainly, in the operator's words, as a trust choice they are making.email_verifiedclaim always tells the truth about the address:trueonly with a stored confirmation. The toggle governs what SERVICES are allowed to do with an unverified address; it never makes the claim lie.A community with no route to mail is not broken. When neither Mātou mail nor a community mail service can be reached, the address stays unverified, and that state is honest on screen and in the claim. Nothing queues forever and no delivery failure is silent (ADR 0106's rule).
Bounces are facts. A hard bounce or an SMTP refusal shows on the member's row as address didn't accept mail, with resend — the same shape as DDR 0266's "not yet applied" row. An expired or re-used token lands on a plain re-request screen, never a raw error.
Rate-limited and audited: a bounded number of sends per address per hour, every send and confirmation in the audit log (old/new address on a correction).
Founding verification runs on MĀTOU's side, and the founder only needs a mailbox (Ben, 2026-09-22)
At founding there is no community yet: no apex, no gateway, often no DNS — so a gateway-minted link has nowhere to land, and the operator is looking at the app on their own machine, not a browser on their community. Founding verification therefore runs through Mātou (the same standing path the rental broker already uses, ADR 0047/0135 — the operator app talks to Mātou, not the other way round):
After founding, a member's address is verified by the gateway that holds it (the token design below), with Mātou mail as the carrier and a Mātou
From:— the link lands on the community's own apex, which exists by then.Screens needed (hence
needs-design)Acceptance
email_verified: truefor an address with no stored confirmation.Related
#1707 / DDR 0266 (email correction — this is its named open question), ADR 0255 (Paperless email match), ADR 0251 (members carry a real address), ADR 0106 (Notifier over Mātou mail — the carrier precedent), ADR 0115/0116 (community mail, when it exists), #1703 (founding-time validation).
Ben's rulings, 2026-09-22 (folded into the body above):
Design owes, on top of the screens already listed: the founding wait-for-verification state (resend / change the address), the honest wall for a founding that cannot reach mail at all, the Settings toggle with its help text, and the P1-S2 disclosure line.
Refinement (Ben, 2026-09-22): the founding verification email comes from MĀTOU, and the founder needs nothing but a mailbox.
At founding there is no apex, no gateway and often no DNS, so a gateway-minted link has nowhere to land and the operator is looking at the app on their own machine. So founding verification runs Mātou-side, over the path the rental broker already uses: the app asks Mātou to verify the typed address, Mātou sends the message from a Mātou address (and keeps the address — the founding record it holds by ruling), and the operator either types a 6-digit code into the app (preferred — no domain, no inbound port, no browser hand-back) or clicks the link, which lands on a Mātou page telling them to return to the app. Founding then carries the proven address into the gateway's first render.
Post-founding member verification stays gateway-minted with a Mātou
From:and a link onto the community's own apex, which exists by then.This also dissolves the open question from my last note: a founding never needs the community to be able to send or receive mail, so there is no air-gapped founding wall to design. The only requirement on the founder is a mailbox they can read.