chat: wire (or rule out) the komiti→Mattermost-team construct reconciler declared by #1543 #1550

Closed
opened 2026-09-16 20:06:03 +00:00 by matou-build-agent · 3 comments

Symptom / gap

Since #1543, the chat port (internal/chatsvc) declares RoleMapping as reconciler-mapped with the komiti construct team (ADR 0076 Tier 2 — "Chat: team"), and ships the operator→system_admin role reconciler (ReconcileRole). But the komiti→team construct reconciler (chatsvc.Port.ApplyRoleMapping) is still a truthful no-op: creating a komiti does not create or populate a Mattermost team, so P6-S7's "kaimahi is a team in chat" is a declared capability whose verb is not yet wired.

Why it was deferred

#1543 is scoped to the operator role (spec #1535). Two honest constraints on the team side:

  • Team Edition has no group-to-team membership sync (that is Enterprise SAML/LDAP group sync), so even if ApplyRoleMapping creates a team, komiti membership cannot be reconciled from the OIDC claim — an empty team is its own fiction.
  • Team creation needs a Mattermost team name slug (lowercase DNS-ish) derived from the komiti name, with idempotent ensure (GET /api/v4/teams/name/{name} → POST /api/v4/teams).

Proposed fix (one of)

  1. Wire ApplyRoleMapping to ensure a Mattermost team per komiti as its home (idempotent), and add each komiti member to the team over the admin API on the members reconciler's fan-out (Team Edition membership is add-by-API, not claim sync); or
  2. Rule the construct undeliverable in Team Edition and downgrade chat's declared komiti construct to front-door-only for membership (keeping the operator→system_admin role reconciler), so P6-S7 reads honestly.

Found while implementing #1543 (chat operator→system_admin reconciler).

## Symptom / gap Since #1543, the chat port (`internal/chatsvc`) declares `RoleMapping` as **reconciler-mapped with the komiti construct `team`** (ADR 0076 Tier 2 — "Chat: team"), and ships the operator→`system_admin` role reconciler (`ReconcileRole`). But the **komiti→team construct reconciler** (`chatsvc.Port.ApplyRoleMapping`) is still a **truthful no-op**: creating a komiti does not create or populate a Mattermost team, so P6-S7's "kaimahi is a team in chat" is a declared capability whose verb is not yet wired. ## Why it was deferred #1543 is scoped to the operator role (spec #1535). Two honest constraints on the team side: - **Team Edition has no group-to-team membership sync** (that is Enterprise SAML/LDAP group sync), so even if `ApplyRoleMapping` creates a team, komiti membership cannot be reconciled from the OIDC claim — an empty team is its own fiction. - Team creation needs a Mattermost team `name` slug (lowercase DNS-ish) derived from the komiti name, with idempotent ensure (GET `/api/v4/teams/name/{name}` → POST `/api/v4/teams`). ## Proposed fix (one of) 1. **Wire `ApplyRoleMapping`** to ensure a Mattermost team per komiti as its home (idempotent), and add each komiti member to the team over the admin API on the members reconciler's fan-out (Team Edition membership is add-by-API, not claim sync); or 2. **Rule the construct undeliverable in Team Edition** and downgrade chat's declared komiti construct to front-door-only for membership (keeping the operator→system_admin role reconciler), so P6-S7 reads honestly. Found while implementing #1543 (chat operator→system_admin reconciler).
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: Take Proposed fix #1 (wire ApplyRoleMapping), not #2 (downgrade to front-door-only). Labelling enhancement + ready-for-agent.

Why #1 over #2 — path #2's premise doesn't hold. #2 rests on "the construct is undeliverable in Team Edition." But the blocker is narrower than that: Team Edition lacks automatic group-to-team claim sync (an Enterprise SAML/LDAP feature). It does not lack team creation or membership management over the admin API — and a reconciler doesn't need claim sync, because it does the fan-out itself. The issue body already concedes this ("Team Edition membership is add-by-API, not claim sync"). So the construct is deliverable via the reconciler pattern, and #2's downgrade is the wrong call.

Two accepted design artifacts also point at #1, and #2 would have to contradict both:

  • ADR 0076 lists "komiti → Mattermost team" as a Tier 2 reconciler-mapped construct — the port is to "declare what a komiti can become" and ship the reconciler verb. (It obligates the construct + front-door access matrix, not live membership sync — so an unpopulated team is not an ADR-0076 violation, but a populated one is the fuller delivery of the declared construct.)
  • The accepted wireframe docs/ux/wireframes/p6-members/p6-s7-komiti-detail.html states, present tense, "kaimahi is a team in Chat" with a reconciler-mapped chip. Wiring the reconciler makes that caption honest; downgrading would force an edit that contradicts it.

Why this is a two-way door (not a human gate):

  • Revertible — the whole change is a later commit (the reconciler verb + the members-reconciler fan-out); reverting restores today's truthful no-op.
  • Provable — a phase-9 service-catalogue drive (the #1546/#1547 family) can found a community, open Chat for a komiti, and assert (a) the team exists via GET /api/v4/teams/name/{slug} and (b) the komiti's members are on it via the team-members admin endpoint.
  • Not on the one-way-door list — no personal credentials; no security-posture widening (a per-komiti team is a restriction, and front-door access is unchanged); no member-facing trust accept (this ships the default the accepted wireframe already promises); no data destruction; no non-routine spend (the admin-API fan-out is exactly what avoids an Enterprise upgrade).

One honest caveat carried into the brief: no port has built a container-ensuring ApplyRoleMapping yet — codesvc (Forgejo org, #1542) and newslettersvc (Listmonk, #1541) ship the same truthful-no-op stub as their own tracked follow-ups. So this is a net-new increment, not pattern-following; the brief is written to be built from the ADR-0076 contract, with codesvc's organisation stub as the closest structural analogue.


Agent Brief

Category: enhancement
Summary: Wire chat's komiti→team construct reconciler (chatsvc.Port.ApplyRoleMapping) so opening Chat for a komiti ensures a Mattermost team and populates it with the komiti's members over the admin API — replacing today's truthful no-op.

Current behavior:
Since #1543 the chat port (internal/chatsvc) declares its RoleMapping as MappingReconciler with construct team (ADR 0076 Tier 2) and ships the operator→system_admin role reconciler (ReconcileRole, real and idempotent). But the komiti→team construct reconciler ApplyRoleMapping is a truthful no-op (return nil): creating/opening a komiti creates no Mattermost team and no membership. Its own doc comment and the package doc still describe the mapping as front-door-only, and a test pins the no-op as the current intended contract.

Desired behavior:
When a komiti opens Chat, the port ensures that komiti's Mattermost team exists (idempotent create) and reconciles its membership from the komiti's members:

  • Team ensure — derive a stable Mattermost team name slug (lowercase, DNS-ish) from the komiti, then ensure-by-GET /api/v4/teams/name/{slug} → create with POST /api/v4/teams only if absent. Re-running is a no-op; the slug is stable across runs for the same komiti.
  • Membership reconcile — the komiti's current members are added to the team over the admin members API (Team Edition supports add-by-API; do not rely on claim/group sync, which is Enterprise-only). Reconciliation is convergent and idempotent: adding an already-member is a no-op; a member is added on the members reconciler's fan-out, consistent with how the operator role reconciler already converges.
  • Honesty invariants preserved — no fabricated success: if the Mattermost admin surface is unavailable the verb errors rather than silently succeeding (mirror ReconcileRole's posture). No account for a member ⇒ that member is skipped, not fabricated.
  • Doc/reality reconciliation — the package-level doc comment that still claims the komiti mapping is "front-door-only … wires no app-side komiti construct" must be updated to describe the now-wired reconciler-mapped team construct, so the code no longer contradicts its own RoleMapping. The p6-s7 wireframe's present-tense "kaimahi is a team in Chat" becomes true and needs no edit.

Key interfaces:

  • chatsvc.Port.ApplyRoleMapping(komiti string) error — currently returns nil; should ensure the team and reconcile membership as above. Keep the signature; it implements memberorbit.ServicePort.
  • chatsvc.Port.RoleMapping() — unchanged (MappingReconciler, construct team, operator system_admin, member member).
  • chatsvc.Port.ReconcileRole — unchanged; the new work is the construct verb alongside it, and it is the template for admin-API convergence and no-fabrication error handling.
  • The members reconciler fan-out that already invokes per-port reconcilers — membership add rides this fan-out (same mechanism that drives ReconcileRole per member), so a komiti membership change re-converges the team.
  • The Mattermost admin client the port already uses for ReconcileRole (role PUT) — extend it with the teams endpoints (GET /teams/name/{slug}, POST /teams, team-members add) rather than introducing a second client.

Acceptance criteria:

  • ApplyRoleMapping for a komiti creates a Mattermost team whose name slug is stable and derived from the komiti; a second call creates nothing new (idempotent).
  • After reconciliation the komiti's members are members of that team; a member already on the team is left unchanged; a member with no chat account is skipped without error.
  • The verb returns an error (does not report success) when the Mattermost admin surface is unreachable — no fabricated success, matching ReconcileRole.
  • Unit tests replace/​update the test that currently pins ApplyRoleMapping as a no-op, asserting the ensure-team and membership-reconcile behavior (idempotency, skip-no-account, error-not-fabricate).
  • A phase-9 drive (the #1546/#1547 catalogue-drive family) proves it end to end: open Chat for a komiti, then assert the team exists (GET /teams/name/{slug}) and carries the komiti's members.
  • The chatsvc package doc no longer describes the komiti mapping as front-door-only; it describes the wired reconciler-mapped team construct.
  • ReconcileRole (operator→system_admin) behavior is unchanged.

Out of scope:

  • The identical container-reconciler follow-ups for codesvc (Forgejo org, #1542) and newslettersvc (Listmonk, #1541) — they are separately tracked; only chat is in scope here. (If you extract a shared ensure/reconcile helper, that's fine, but do not wire the other ports.)
  • Automatic OIDC claim-driven group sync (Enterprise SAML/LDAP) — explicitly not the mechanism; membership is admin-API fan-out.
  • Any change to the front-door access matrix or RoleMapping's shape.
  • Team archival/teardown when a komiti closes or a member leaves the komiti — reconcile toward the declared membership on open; deprovisioning-on-departure is a separate increment unless the members reconciler already carries a removal fan-out you can converge against without new surface.
> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** Take **Proposed fix #1 (wire `ApplyRoleMapping`)**, not #2 (downgrade to front-door-only). Labelling **`enhancement` + `ready-for-agent`**. **Why #1 over #2 — path #2's premise doesn't hold.** #2 rests on "the construct is undeliverable in Team Edition." But the blocker is narrower than that: Team Edition lacks *automatic group-to-team **claim sync*** (an Enterprise SAML/LDAP feature). It does **not** lack team creation or membership management over the admin API — and a reconciler doesn't need claim sync, because it does the fan-out itself. The issue body already concedes this ("Team Edition membership is add-by-API, not claim sync"). So the construct **is** deliverable via the reconciler pattern, and #2's downgrade is the wrong call. Two accepted design artifacts also point at #1, and #2 would have to contradict both: - **ADR 0076** lists "komiti → Mattermost *team*" as a Tier 2 reconciler-mapped construct — the port is to "declare what a komiti can become" and ship the reconciler verb. (It obligates the construct + front-door access matrix, **not** live membership sync — so an unpopulated team is not an ADR-0076 violation, but a populated one is the fuller delivery of the declared construct.) - The **accepted wireframe** `docs/ux/wireframes/p6-members/p6-s7-komiti-detail.html` states, present tense, "kaimahi **is** a team in Chat" with a `reconciler-mapped` chip. Wiring the reconciler makes that caption honest; downgrading would force an edit that contradicts it. **Why this is a two-way door (not a human gate):** - **Revertible** — the whole change is a later commit (the reconciler verb + the members-reconciler fan-out); reverting restores today's truthful no-op. - **Provable** — a phase-9 service-catalogue drive (the #1546/#1547 family) can found a community, open Chat for a komiti, and assert (a) the team exists via `GET /api/v4/teams/name/{slug}` and (b) the komiti's members are on it via the team-members admin endpoint. - **Not on the one-way-door list** — no personal credentials; **no security-posture widening** (a per-komiti team is a *restriction*, and front-door access is unchanged); no member-facing trust *accept* (this ships the default the accepted wireframe already promises); no data destruction; **no non-routine spend** (the admin-API fan-out is exactly what avoids an Enterprise upgrade). **One honest caveat carried into the brief:** no port has built a container-ensuring `ApplyRoleMapping` yet — codesvc (Forgejo org, #1542) and newslettersvc (Listmonk, #1541) ship the *same* truthful-no-op stub as their own tracked follow-ups. So this is a net-new increment, not pattern-following; the brief is written to be built from the ADR-0076 contract, with codesvc's `organisation` stub as the closest structural analogue. --- ## Agent Brief **Category:** enhancement **Summary:** Wire chat's komiti→team construct reconciler (`chatsvc.Port.ApplyRoleMapping`) so opening Chat for a komiti ensures a Mattermost team and populates it with the komiti's members over the admin API — replacing today's truthful no-op. **Current behavior:** Since #1543 the chat port (`internal/chatsvc`) declares its `RoleMapping` as `MappingReconciler` with construct `team` (ADR 0076 Tier 2) and ships the operator→`system_admin` role reconciler (`ReconcileRole`, real and idempotent). But the komiti→team construct reconciler `ApplyRoleMapping` is a truthful no-op (`return nil`): creating/opening a komiti creates no Mattermost team and no membership. Its own doc comment and the package doc still describe the mapping as front-door-only, and a test pins the no-op as the current intended contract. **Desired behavior:** When a komiti opens Chat, the port ensures that komiti's Mattermost **team** exists (idempotent create) and reconciles its **membership** from the komiti's members: - **Team ensure** — derive a stable Mattermost team `name` slug (lowercase, DNS-ish) from the komiti, then ensure-by-`GET /api/v4/teams/name/{slug}` → create with `POST /api/v4/teams` only if absent. Re-running is a no-op; the slug is stable across runs for the same komiti. - **Membership reconcile** — the komiti's current members are added to the team over the admin members API (Team Edition supports add-by-API; **do not** rely on claim/group sync, which is Enterprise-only). Reconciliation is convergent and idempotent: adding an already-member is a no-op; a member is added on the members reconciler's fan-out, consistent with how the operator role reconciler already converges. - **Honesty invariants preserved** — no fabricated success: if the Mattermost admin surface is unavailable the verb errors rather than silently succeeding (mirror `ReconcileRole`'s posture). No account for a member ⇒ that member is skipped, not fabricated. - **Doc/reality reconciliation** — the package-level doc comment that still claims the komiti mapping is "front-door-only … wires no app-side komiti construct" must be updated to describe the now-wired reconciler-mapped team construct, so the code no longer contradicts its own `RoleMapping`. The p6-s7 wireframe's present-tense "kaimahi is a team in Chat" becomes true and needs no edit. **Key interfaces:** - `chatsvc.Port.ApplyRoleMapping(komiti string) error` — currently returns nil; should ensure the team and reconcile membership as above. Keep the signature; it implements `memberorbit.ServicePort`. - `chatsvc.Port.RoleMapping()` — unchanged (`MappingReconciler`, construct `team`, operator `system_admin`, member `member`). - `chatsvc.Port.ReconcileRole` — unchanged; the new work is the construct verb alongside it, and it is the template for admin-API convergence and no-fabrication error handling. - The members reconciler fan-out that already invokes per-port reconcilers — membership add rides this fan-out (same mechanism that drives `ReconcileRole` per member), so a komiti membership change re-converges the team. - The Mattermost admin client the port already uses for `ReconcileRole` (role `PUT`) — extend it with the teams endpoints (`GET /teams/name/{slug}`, `POST /teams`, team-members add) rather than introducing a second client. **Acceptance criteria:** - [ ] `ApplyRoleMapping` for a komiti creates a Mattermost team whose name slug is stable and derived from the komiti; a second call creates nothing new (idempotent). - [ ] After reconciliation the komiti's members are members of that team; a member already on the team is left unchanged; a member with no chat account is skipped without error. - [ ] The verb returns an error (does not report success) when the Mattermost admin surface is unreachable — no fabricated success, matching `ReconcileRole`. - [ ] Unit tests replace/​update the test that currently pins `ApplyRoleMapping` as a no-op, asserting the ensure-team and membership-reconcile behavior (idempotency, skip-no-account, error-not-fabricate). - [ ] A phase-9 drive (the #1546/#1547 catalogue-drive family) proves it end to end: open Chat for a komiti, then assert the team exists (`GET /teams/name/{slug}`) and carries the komiti's members. - [ ] The chatsvc package doc no longer describes the komiti mapping as front-door-only; it describes the wired reconciler-mapped team construct. - [ ] `ReconcileRole` (operator→`system_admin`) behavior is unchanged. **Out of scope:** - The identical container-reconciler follow-ups for **codesvc** (Forgejo org, #1542) and **newslettersvc** (Listmonk, #1541) — they are separately tracked; only chat is in scope here. (If you extract a shared ensure/reconcile helper, that's fine, but do not wire the other ports.) - Automatic OIDC **claim-driven** group sync (Enterprise SAML/LDAP) — explicitly not the mechanism; membership is admin-API fan-out. - Any change to the front-door access matrix or `RoleMapping`'s shape. - Team archival/teardown when a komiti closes or a member leaves the komiti — reconcile *toward* the declared membership on open; deprovisioning-on-departure is a separate increment unless the members reconciler already carries a removal fan-out you can converge against without new surface.
Author
Member

swarm-claim host=bens-mac-04 run=25440
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=25440 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1550 — status success

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

envelope
{
  "issue": 1550,
  "status": "success",
  "commits": [
    "b2ecdf8c2cd428a6cc0b70ef82cd35c647532fd2"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/chatsvc/chatsvc.go",
    "internal/chatsvc/chatsvc_test.go",
    "internal/member/komiti.go",
    "internal/memberorbit/memberorbit.go",
    "internal/memberorbit/memberorbit_test.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/chatsvc/... ./internal/memberorbit/... ./internal/member/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/chatsvc/ ./internal/memberorbit/ ./internal/member/",
      "exit_code": 0
    },
    {
      "command": "go test ./control-plane/cmd/control-plane/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "ApplyRoleMapping for a komiti creates a Mattermost team whose name slug is stable and derived from the komiti; a second call creates nothing new (idempotent)": "chatsvc.go ensureTeam/teamSlug (komiti-<name>, get-by-name → invite-only create only when absent, id read back over the 200 GET); TestPort_ApplyRoleMappingEnsuresTeamIdempotent asserts the team exists and f.creates==1 after two calls; TestTeamSlug pins stability/macron-fold.",
    "After reconciliation the komiti's members are members of that team; a member already on the team is left unchanged; a member with no chat account is skipped without error": "chatsvc.go ApplyRoleMapping loops the injected roster resolver, account()-skips no-account members, addTeamMember reads-first (200 → no-op / 404 → POST); TestPort_ApplyRoleMappingReconcilesMembership asserts ana+mere on the team, ghost (no account) skipped, and a second pass leaves it unchanged.",
    "The verb returns an error (does not report success) when the Mattermost admin surface is unreachable — no fabricated success, matching ReconcileRole": "chatsvc.go ensureTeam/teamByName surface non-2xx/non-404 statuses and login-shape errors; TestPort_ApplyRoleMappingErrorsWhenSurfaceUnreachable drives a front-door-200 server and asserts a non-nil error.",
    "Unit tests replace/update the test that currently pins ApplyRoleMapping as a no-op, asserting the ensure-team and membership-reconcile behavior (idempotency, skip-no-account, error-not-fabricate)": "chatsvc_test.go removed the no-op assertion from TestPort_RoleMappingReconcilerOperatorIsSystemAdmin (now asserts construct==team) and added TestPort_ApplyRoleMappingEnsuresTeamIdempotent / ReconcilesMembership / ErrorsWhenSurfaceUnreachable / NilRosterEnsuresTeamOnly plus TestTeamSlug; the faithful Mattermost double gained the teams endpoints.",
    "A phase-9 drive (the #1546/#1547 catalogue-drive family) proves it end to end: open Chat for a komiti, then assert the team exists and carries the komiti's members": "PARTIAL/follow-up: the behavior is proven at the existing highest seam (the chatsvc contract test against the faithful Mattermost REST-API double) and the composition-root resolver is wired so the drive will exercise it; the live-lab phase-9 drive (#1546/#1547) needs a provisioned community with a live Mattermost and cannot be executed in a Sandcastle iteration — it stays the end-to-end proof leg the contract is written to, per the two-way-door ruling.",
    "The chatsvc package doc no longer describes the komiti mapping as front-door-only; it describes the wired reconciler-mapped team construct": "chatsvc.go package doc + ApplyRoleMapping doc rewritten to describe the reconciler-mapped team construct (ensure team + admin-API membership fan-out, injected roster, honesty invariants).",
    "ReconcileRole (operator→system_admin) behavior is unchanged": "chatsvc.go ReconcileRole untouched; TestPort_ReconcileRolePromotesOperatorAndRevokes and TestPort_ReconcileRoleNoAccountIsNoOp still pass."
  },
  "summary": "Wired chatsvc.Port.ApplyRoleMapping to ensure a per-komiti Mattermost team (stable slug, idempotent) and reconcile its membership from an injected roster over the admin API, with the #875 deployed-set gate added to memberorbit.Catalogue.ApplyRoleMapping and the resolver wired in the composition root.",
  "reason": "The komiti→team construct reconciler is now real and seam-proven; only the live-lab phase-9 end-to-end drive remains as the follow-up proof leg (not runnable in a Sandcastle iteration).",
  "blockers": []
}
**close-report** for #1550 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1550, "status": "success", "commits": [ "b2ecdf8c2cd428a6cc0b70ef82cd35c647532fd2" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "internal/chatsvc/chatsvc.go", "internal/chatsvc/chatsvc_test.go", "internal/member/komiti.go", "internal/memberorbit/memberorbit.go", "internal/memberorbit/memberorbit_test.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/chatsvc/... ./internal/memberorbit/... ./internal/member/... ./control-plane/...", "exit_code": 0 }, { "command": "go test ./internal/chatsvc/ ./internal/memberorbit/ ./internal/member/", "exit_code": 0 }, { "command": "go test ./control-plane/cmd/control-plane/", "exit_code": 0 } ], "criteria": { "ApplyRoleMapping for a komiti creates a Mattermost team whose name slug is stable and derived from the komiti; a second call creates nothing new (idempotent)": "chatsvc.go ensureTeam/teamSlug (komiti-<name>, get-by-name → invite-only create only when absent, id read back over the 200 GET); TestPort_ApplyRoleMappingEnsuresTeamIdempotent asserts the team exists and f.creates==1 after two calls; TestTeamSlug pins stability/macron-fold.", "After reconciliation the komiti's members are members of that team; a member already on the team is left unchanged; a member with no chat account is skipped without error": "chatsvc.go ApplyRoleMapping loops the injected roster resolver, account()-skips no-account members, addTeamMember reads-first (200 → no-op / 404 → POST); TestPort_ApplyRoleMappingReconcilesMembership asserts ana+mere on the team, ghost (no account) skipped, and a second pass leaves it unchanged.", "The verb returns an error (does not report success) when the Mattermost admin surface is unreachable — no fabricated success, matching ReconcileRole": "chatsvc.go ensureTeam/teamByName surface non-2xx/non-404 statuses and login-shape errors; TestPort_ApplyRoleMappingErrorsWhenSurfaceUnreachable drives a front-door-200 server and asserts a non-nil error.", "Unit tests replace/update the test that currently pins ApplyRoleMapping as a no-op, asserting the ensure-team and membership-reconcile behavior (idempotency, skip-no-account, error-not-fabricate)": "chatsvc_test.go removed the no-op assertion from TestPort_RoleMappingReconcilerOperatorIsSystemAdmin (now asserts construct==team) and added TestPort_ApplyRoleMappingEnsuresTeamIdempotent / ReconcilesMembership / ErrorsWhenSurfaceUnreachable / NilRosterEnsuresTeamOnly plus TestTeamSlug; the faithful Mattermost double gained the teams endpoints.", "A phase-9 drive (the #1546/#1547 catalogue-drive family) proves it end to end: open Chat for a komiti, then assert the team exists and carries the komiti's members": "PARTIAL/follow-up: the behavior is proven at the existing highest seam (the chatsvc contract test against the faithful Mattermost REST-API double) and the composition-root resolver is wired so the drive will exercise it; the live-lab phase-9 drive (#1546/#1547) needs a provisioned community with a live Mattermost and cannot be executed in a Sandcastle iteration — it stays the end-to-end proof leg the contract is written to, per the two-way-door ruling.", "The chatsvc package doc no longer describes the komiti mapping as front-door-only; it describes the wired reconciler-mapped team construct": "chatsvc.go package doc + ApplyRoleMapping doc rewritten to describe the reconciler-mapped team construct (ensure team + admin-API membership fan-out, injected roster, honesty invariants).", "ReconcileRole (operator→system_admin) behavior is unchanged": "chatsvc.go ReconcileRole untouched; TestPort_ReconcileRolePromotesOperatorAndRevokes and TestPort_ReconcileRoleNoAccountIsNoOp still pass." }, "summary": "Wired chatsvc.Port.ApplyRoleMapping to ensure a per-komiti Mattermost team (stable slug, idempotent) and reconcile its membership from an injected roster over the admin API, with the #875 deployed-set gate added to memberorbit.Catalogue.ApplyRoleMapping and the resolver wired in the composition root.", "reason": "The komiti→team construct reconciler is now real and seam-proven; only the live-lab phase-9 end-to-end drive remains as the follow-up proof leg (not runnable in a Sandcastle iteration).", "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#1550
No description provided.