operator email edit — wire the production per-service carry, the alert-contact follow, and the IDIP roster-write path (#1707 follow-up) #1743
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#1743
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?
What
#1707 (DDR 0266) landed the in-product Members → Edit email (P6-S10 / S10c / S10x) end
to end on the Kanidm path: the seam (
member.PreviewEmailChange/EditEmail/RetryEmailCarry), theEmailPort.SetPersonEmailkanidm mail write, uniqueness + thefounding-shared validator, old+new audit, the controlapi routes, the shared dashboard
screens, and the derived not-applied surface. Three production bindings were deliberately
left as clean adapter seams (defaults are honest no-ops — the confirm carries no false
claim) and are owed to complete the feature everywhere:
The IDIP roster-write path. On an IDIP community the address lives in the keria
roster (
RosterEntry.Email), not kanidm. Needs akeria.Registry.SetEmail(aid, email)(the
SetArchivedwrite pattern), and an IDIP-sideEditEmailroute/orchestrator (orpointing the shared
member.EmailPortat a roster-backed adapter) so the shared P6-S10screen serves the IDIP frames too. The bridge stamps the OIDC
emailclaim from theroster, so the write must land there.
The production
member.EmailCarrieradapter (overmemberorbit.Catalogue/ServicePort): report which deployed services hold a member's email (for the confirm's"carried to" list and the P6-S4 not-applied derivation) and carry the new address —
Paperless (ADR 0255) FIRST, before the member's next sign-in, since it
pre-provisions/ matches by email. Reconciler-based services (Grist, Listmonk, Nextcloud)
already re-read the mail from the IdP at their next reconcile, so the kanidm write
propagates to them automatically; the explicit carry is mainly Paperless's stored email
plus the holdings enumeration. Likely needs an email read/write verb on
ServicePort.The production
member.AlertContactFollowadapter:SeparateAlertContactSetoverthe monitoring orchestrator (
AlertContactCard), andFollowOperatorMailre-renderingoperator_mail+alert_contact_emailthrough the normal panel apply (channel_apply),so an operator's own email edit moves alerts (DDR 0266 decision 2). Until wired, the
operator's confirm shows no alert row (honest — no follow capability), and the interim
hand repair (GOTCHAS #311) covers the render.
Wire all three at the composition root via
member.WithEmailCarrier/member.WithAlertContactFollow(the options already exist) and the IDIP orchestrator.Where
internal/member/email.go(the seam + theEmailCarrier/AlertContactFollowports)internal/keria/registry.go(SetEmail),internal/controlapi/idip_*.go(IDIP route)internal/memberorbit/,internal/documentarchivesvc/(the carry adapter)internal/clan/+control-plane/cmd/control-plane/channel_apply.go(the render follow)control-plane/cmd/control-plane/whole_composition.go(themember.Newwiring)Found while landing #1707. DDR 0266; GOTCHAS #311.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
enhancement+ready-for-agentWhy a two-way door (not
ready-for-human): this ticket completes analready-accepted feature — every design decision it depends on was ruled by Ben
in DDR 0266 (email edits on the member's row, alert contact follows the
operator's mail, an email change never re-matches an account). No new
member-facing trust accept, no personal credentials, no security-posture
widening, no data destruction, no non-routine spend. The work is three backend
adapter bindings at the composition root; each is revertible by a later commit
and its behaviour is provable by seam tests against fakes (the same pattern that
landed the Kanidm path in #1707). That is a two-way door.
Triage checks run against the tree:
internal/member/email.gocarries only thehonest no-op defaults (
noEmailCarrier,noAlertContactFollow); theproduction adapters do not exist.
internal/keria/registry.gohasSetArchived(the named write template) but noSetEmail. The threebindings are genuinely owed.
needs-design. The wireframe frames exist inboth members folders (
docs/ux/wireframes/p6-members/p6-s10{,c,x}-*.htmlandthe IDIP twins
p6-members-idip/p6-s10{i,ci,xi}-*.html), and DDR 0266 isaccepted. The shared P6-S10 screen the IDIP path reuses is already built.
resolved in DDR 0266.
.out-of-scope/holds nothing on this.Proves the door swings back: the seam ports (
WithEmailCarrier/WithAlertContactFollow) already gate every production effect behind anOption, and their defaults are no-ops — an unwired community is unchanged, soeach adapter can be added, reverted, or left unwired without touching the shipped
Kanidm path or the shared screens. Seam tests (
internal/memberemail suite,the controlapi email integration) pin the contract the adapters must satisfy.
Agent brief
Wire the three production bindings left as clean seams by #1707, at the
composition root (
control-plane/cmd/control-plane/whole_composition.go, via theexisting
member.WithEmailCarrier/member.WithAlertContactFollowoptions) andthe IDIP orchestrator:
keria.Registry.SetEmail(aid, email)following the
SetArchivedwrite pattern (internal/keria/registry.go:556),and an IDIP
EditEmailroute/orchestrator (internal/controlapi/idip_*.go)— or point the shared
member.EmailPortat a roster-backed adapter — so theshared P6-S10 frames serve the IDIP twins. The bridge stamps the OIDC
emailclaim from the roster, so the write must land in
RosterEntry.Email.member.EmailCarrierovermemberorbit.Catalogue/ServicePort: enumerate which deployed services hold a member's email (forthe confirm "carried to" list and the P6-S4 not-applied derivation) and carry
the new address — Paperless (ADR 0255) FIRST, before next sign-in, since
it matches by stored email. Reconciler-based services (Grist, Listmonk,
Nextcloud) re-read from the IdP at reconcile, so the kanidm write already
propagates to them. Likely needs an email read/write verb on
ServicePort.member.AlertContactFollow—SeparateAlertContactSetoverthe monitoring orchestrator (
AlertContactCard), andFollowOperatorMailre-rendering
operator_mail+alert_contact_emailthrough the normal panelapply (
channel_apply), so an operator's own email edit moves alerts (DDR0266 decision 2).
Done when: each binding is wired and covered by seam tests; the IDIP frames
render the shared screens end to end; the operator confirm shows a real alert row
once the follow is wired (no false claim before). References: DDR 0266,
GOTCHAS #311, #1707. Files listed in the issue body.
Progress — binding 2 of 3 landed on
main(b0b89b56); handing off to re-slice.This ticket bundles three independent production bindings, and exploration
showed each is its own vertical slice. I landed the one that is a clean,
self-contained, seam-testable composition-root wiring; the other two each need
their own slice (one with a design decision beyond a two-way seam), so I'm not
closing this — a human should split it.
Landed and pushed (binding 2 — the production
member.EmailCarrier, DDR 0266 decision 5)*memberorbit.Catalogueis now the production carrier (it already stands in formember.Reconciler/member.Catalogue, so no new adapter). A new optionalmemberorbit.EmailFilercapability is the seam a port opts into when it keepsthe member's email in its OWN record and matches by it. Only Paperless
(
documentarchivesvc.Port, ADR 0255) implements it — it matches a pre-provisionedperson by their verified email at every sign-in, so its stored copy is carried
FIRST over
PATCH /api/users/{id}/. Nextcloud/Grist/Listmonk re-read the mailfrom the IdP at reconcile, so the kanidm write already reaches them and they are
honestly absent from the carry (never named not-applied). Wired at the
composition root via
member.WithEmailCarrier(catalogue); the no-op default stillholds on the resting/IDIP paths. Covered by
memberorbit+documentarchivesvcseam tests;
go vet+golangci-lintclean; full pre-push go-ci green.Still owed — each a separate slice
/api/v1/members/{id}/emailroute is served byrestingMemberIDP(
errMemberUnwired), andEditEmailScreenis mounted ONLY in the kanidmMemberDetailScreen— the IDIPIdipRosterPanelhas no email-edit surface andthe idip client no email verbs. So this needs
keria.Registry.SetEmail+ aRosterAdapterverb + a newidip_email.gocontrolapi surface (mirroringidip_removal.go) + mountingEditEmailScreeninIdipRosterPanelwith anIDIP-backed client + openapi regen. A full backend+frontend slice.
AlertContactFollow. Its DDR-citedchannel_applyis the wrong path —that is the release-channel apply (#1661), not a field render.
operator_mailand
alert_contact_emaillive onclan.GatewayFactsas founding seeds(
vmguest.go), re-read from env at boot; there is no runtime re-render/applymechanism for them. A monitor
SetAlertContactalone moves alerts at runtimebut reverts to the env seed on the next gateway restart — so a durable follow
needs a NEW apply seam (or a gateway re-deploy triggered by an email edit),
which is a design decision, not a two-way seam.
SeparateAlertContactSetalsoneeds to derive "separate" by comparing
monitor.AlertContact().Emailagainstthe operator's current email (no explicit flag is stored).
Recommended re-slice
Close this as the carrier slice and file two follow-ups: (a) the IDIP email
surface (
ready-for-agent), (b) the alert-contact follow (needs-design— there-render/apply mechanism). Full details and file:line landmarks are in the
commit message and STATUS.md.
Why human
The remaining work is a triage/re-slice decision (this ticket is three slices),
plus binding 3 needs a design call on the operator_mail/alert_contact_email
re-render/apply mechanism that no existing seam provides — not a two-way door
provable by a test I can run.