catalogue port: Calendar & contacts (Radicale) — Files-gated, the Collabora pattern #1151

Closed
opened 2026-09-02 06:26:12 +00:00 by ben · 2 comments
Owner

Parent

Feature #1073; Ben's promotion ruling 2026-09-02, recorded in
docs/research/2026-09-01-catalogue-candidate-seed-list.md (the port-queue
table — read this ticket's service section there first; per-claim citations).

What to build

Service: Calendar & contacts · runs Radicale · category Work together. services.radicale exists — LOW cost. Ben's ruling 2026-09-02: this service is DEPENDENCY-GATED on Files & documents exactly as Document editing is (#413 / DDR 0146 gated-needs-files pattern) — it deploys only alongside a placed Files service; the S2 card greys with 'needs Files & documents' until then. Port-time wiring decision (research open question 11): which DAV endpoint external calendar/contacts clients point at (Radicale beside Nextcloud's own DAV) and how IdP accounts provision — decide at port time, record the decision on this ticket.

An ADR 0062 catalogue port, shipped through the update channel, touching no
provisioning code: (1) the declarative NixOS unit + secrets via the clan
seam's AttachService; (2) the out-of-band reconciler for post-start
imperative provisioning (the Garage pattern) where the service needs one;
(3) the service's OWN HealthCheck proving real function (safe to re-run —
P4-S5x retry; Summary in operator vocabulary, never a stack trace) — plus
the catalogue Service entry: slug, name, MEASURED floor and steady-state
memory (never guessed — ADR 0030 discipline), roles (helper), access facts,
Product + ProductURL, and the DDR 0220 display facts (category, one-line
description, glyph; logo asset if curated).

Acceptance criteria

  • Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change
  • HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary
  • Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly
  • Monitoring watches the same declared check steady-state (ADR 0062 — defined once)
  • The dependency gate renders and clears exactly as docs-editing's does (same mechanism, no parallel implementation)
  • Health check writes and reads back a fixture calendar event over CalDAV (real function)
  • DAV endpoint + IdP provisioning decision recorded on this ticket before the card ships

Blocked by

  • #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)
  • Files & documents must be placed at deploy time (runtime dependency gate, not a ticket edge)
## Parent Feature #1073; Ben's promotion ruling 2026-09-02, recorded in `docs/research/2026-09-01-catalogue-candidate-seed-list.md` (the port-queue table — read this ticket's service section there first; per-claim citations). ## What to build **Service: Calendar & contacts · runs Radicale · category Work together.** `services.radicale` exists — LOW cost. Ben's ruling 2026-09-02: this service is DEPENDENCY-GATED on Files & documents exactly as Document editing is (#413 / DDR 0146 gated-needs-files pattern) — it deploys only alongside a placed Files service; the S2 card greys with 'needs Files & documents' until then. Port-time wiring decision (research open question 11): which DAV endpoint external calendar/contacts clients point at (Radicale beside Nextcloud's own DAV) and how IdP accounts provision — decide at port time, record the decision on this ticket. An ADR 0062 catalogue port, shipped through the update channel, touching no provisioning code: (1) the declarative NixOS unit + secrets via the clan seam's AttachService; (2) the out-of-band reconciler for post-start imperative provisioning (the Garage pattern) where the service needs one; (3) the service's OWN HealthCheck proving real function (safe to re-run — P4-S5x retry; Summary in operator vocabulary, never a stack trace) — plus the catalogue Service entry: slug, name, MEASURED floor and steady-state memory (never guessed — ADR 0030 discipline), roles (helper), access facts, Product + ProductURL, and the DDR 0220 display facts (category, one-line description, glyph; logo asset if curated). ## Acceptance criteria - [ ] Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change - [ ] HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary - [ ] Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly - [ ] Monitoring watches the same declared check steady-state (ADR 0062 — defined once) - [ ] The dependency gate renders and clears exactly as docs-editing's does (same mechanism, no parallel implementation) - [ ] Health check writes and reads back a fixture calendar event over CalDAV (real function) - [ ] DAV endpoint + IdP provisioning decision recorded on this ticket before the card ships ## Blocked by - #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills) - Files & documents must be placed at deploy time (runtime dependency gate, not a ticket edge)

Blocked — needs a human design ruling (two crux decisions)

Attempted this port; it is blocked on two decisions I do not believe are mine
to rule as two-way doors under ADR 0174. Asked via ask-human
(thread p75k8n3aqf8nxrres19e1mri9h) — no reply within the window, so parking
here per the runbook. A late reply resumes that same thread.

1. DAV/IdP account provisioning — the load-bearing decision (research open question 11)

Radicale has no OIDC support. The IdP is Kanidm. Every existing
member-facing IDSS service authenticates through the IdP (OIDC / front-door
forward_auth). External CalDAV/CardDAV clients (phone calendar/contacts apps)
cannot do interactive OIDC — they need a non-interactive credential path.
The realistic shapes:

  • (a) Radicale authenticates by binding Kanidm's LDAP interface;
  • (b) Kanidm-issued app-passwords written into an htpasswd the
    out-of-band reconciler maintains (a new per-member credential store);
  • (c) point external clients at Nextcloud's own DAV and drop the
    standalone Radicale daemon (then the port is essentially "enable Nextcloud
    Calendar/Contacts", not a Radicale port at all).

Both (a) and (b) open a new credential surface / auth-posture — on
ADR 0174's one-way-door list (security-posture widening + personal
credentials
). This also contradicts the docs-editing port's proud invariant
that a member-facing service "holds no non-OIDC credential". Which shape do
you want, and does it revise that invariant?
This must be recorded here
before the card ships (the ticket says so, AC 7).

2. The dependency gate — the AC assumes a mechanism that does not exist

AC asks the S2 card to grey with "needs Files & documents" via "the same
mechanism as docs-editing, no parallel implementation."
But there is no
such mechanism
:

  • internal/provision/assess_test.go:199 asserts docs-editing is ungated and
    selectable
    in P4-S2 with no Files placed ("fits: 4 GB"). docs-editing
    is gated only by device headroom, never by a Files dependency.
  • The "needs Files & documents on the same fleet" line is only a hand-authored
    dashboard fixture (dashboard/src/lib/catalogue.ts:187), not a computed
    gate.
  • docs-editing's real Files coupling is deploy-time only (the WOPI pair in
    AttachDocsEditing / attachDocsEditing), with no selection-surface gate.

So "the same mechanism as docs-editing" literally means deploy-time coupling,
no S2 gate
. A real S2 dependency gate would be new provisioning/assess
code
, which directly contradicts this ticket's declared scope ("touching no
provisioning code", "no provisioning/monitoring code change"). Which do you
want:
(i) widen scope to build a generic Files-dependency gate in
provisioning, or (ii) match docs-editing literally (deploy-time coupling only;
the greyed card stays a dashboard fixture)?

Why human

Both are one-way-door calls: (1) picks a member-facing credential/auth-posture
for external DAV clients (new credential surface — not revertible-by-commit
without a security review), and (2) is a scope ruling on whether to build new
provisioning machinery the ticket explicitly excludes. Neither is provable by a
test I can run without first being told the intended shape. Re-arm by recording
the (1) auth shape and the (2) scope answer on this issue and re-adding
ready-for-agent.

What I verified while here (so a re-arm starts warm)

  • services.radicale exists (nixpkgs) — the declarative part is genuinely LOW cost.
  • Template port to follow: docs-editing (#413/#226) — internal/clan/docsediting.go
    (render), docsediting_attach.go (attach seam), internal/docseditingsvc/
    (member orbit — declares "no reconciler needed"), servicehealth.go (health
    check), catalogue entry in internal/catalogue/catalogue.go, routing in
    internal/provision/deploy.go (routedRenderService/renderShippingService/
    attachCatalogueService). Note the routing edits ARE provisioning code — the
    ticket's "no provisioning code" scope claim does not hold for a genuinely
    deployable/selectable port; that is part of decision (2).
  • Measured floor is obtainable: Radicale is pure-Python; steady RSS can be
    measured directly once the auth shape (which decides whether a reconciler +
    LDAP/htpasswd process runs beside it) is fixed.
## Blocked — needs a human design ruling (two crux decisions) Attempted this port; it is blocked on two decisions I do not believe are mine to rule as two-way doors under ADR 0174. Asked via `ask-human` (thread `p75k8n3aqf8nxrres19e1mri9h`) — no reply within the window, so parking here per the runbook. A late reply resumes that same thread. ### 1. DAV/IdP account provisioning — the load-bearing decision (research open question 11) Radicale has **no OIDC support**. The IdP is Kanidm. Every existing member-facing IDSS service authenticates through the IdP (OIDC / front-door `forward_auth`). External CalDAV/CardDAV clients (phone calendar/contacts apps) **cannot** do interactive OIDC — they need a non-interactive credential path. The realistic shapes: - **(a)** Radicale authenticates by binding Kanidm's **LDAP** interface; - **(b)** Kanidm-issued **app-passwords** written into an htpasswd the out-of-band reconciler maintains (a new per-member credential store); - **(c)** point external clients at **Nextcloud's own DAV** and drop the standalone Radicale daemon (then the port is essentially "enable Nextcloud Calendar/Contacts", not a Radicale port at all). Both (a) and (b) open a **new credential surface / auth-posture** — on ADR 0174's one-way-door list (*security-posture widening* + *personal credentials*). This also contradicts the docs-editing port's proud invariant that a member-facing service "holds no non-OIDC credential". **Which shape do you want, and does it revise that invariant?** This must be recorded here before the card ships (the ticket says so, AC 7). ### 2. The dependency gate — the AC assumes a mechanism that does not exist AC asks the S2 card to grey with *"needs Files & documents"* via **"the same mechanism as docs-editing, no parallel implementation."** But there is **no such mechanism**: - `internal/provision/assess_test.go:199` asserts docs-editing is **ungated and selectable** in P4-S2 with **no Files placed** (`"fits: 4 GB"`). docs-editing is gated only by device headroom, never by a Files dependency. - The *"needs Files & documents on the same fleet"* line is only a hand-authored **dashboard fixture** (`dashboard/src/lib/catalogue.ts:187`), not a computed gate. - docs-editing's real Files coupling is **deploy-time only** (the WOPI pair in `AttachDocsEditing` / `attachDocsEditing`), with no selection-surface gate. So "the same mechanism as docs-editing" literally means *deploy-time coupling, no S2 gate*. A real S2 dependency gate would be **new provisioning/assess code**, which directly contradicts this ticket's declared scope ("touching no provisioning code", "no provisioning/monitoring code change"). **Which do you want:** (i) widen scope to build a generic Files-dependency gate in provisioning, or (ii) match docs-editing literally (deploy-time coupling only; the greyed card stays a dashboard fixture)? ## Why human Both are one-way-door calls: (1) picks a member-facing credential/auth-posture for external DAV clients (new credential surface — not revertible-by-commit without a security review), and (2) is a scope ruling on whether to build new provisioning machinery the ticket explicitly excludes. Neither is provable by a test I can run without first being told the intended shape. Re-arm by recording the (1) auth shape and the (2) scope answer on this issue and re-adding `ready-for-agent`. ## What I verified while here (so a re-arm starts warm) - `services.radicale` exists (nixpkgs) — the declarative part is genuinely LOW cost. - Template port to follow: docs-editing (#413/#226) — `internal/clan/docsediting.go` (render), `docsediting_attach.go` (attach seam), `internal/docseditingsvc/` (member orbit — declares "no reconciler needed"), `servicehealth.go` (health check), catalogue entry in `internal/catalogue/catalogue.go`, routing in `internal/provision/deploy.go` (`routedRenderService`/`renderShippingService`/ `attachCatalogueService`). Note the routing edits ARE provisioning code — the ticket's "no provisioning code" scope claim does not hold for a genuinely deployable/selectable port; that is part of decision (2). - Measured floor is obtainable: Radicale is pure-Python; steady RSS can be measured directly once the auth shape (which decides whether a reconciler + LDAP/htpasswd process runs beside it) is fixed.
Author
Owner

Ruled by Ben (2026-09-03) — both cruxes:

  1. Auth shape: (c) — drop the standalone Radicale daemon. External CalDAV/CardDAV clients point at Nextcloud's own DAV; external-client credentials are Nextcloud app passwords within the files service's existing posture. No LDAP bind, no htpasswd store, no new credential surface — the docs-editing invariant ("no non-OIDC credential held by a member-facing service") stands unrevised.
  2. Gate: (i) — build the real generic dependency gate in provisioning's assess, as its own ticket.

This ticket is superseded: the Calendar & contacts promotion continues as #1174 (Nextcloud-DAV shape), the gate as #1173. Closing. Thank you for the honest park — both cruxes were exactly one-way doors, and the "same mechanism as docs-editing does not exist" finding was the sharper catch.

**Ruled by Ben (2026-09-03) — both cruxes:** 1. **Auth shape: (c) — drop the standalone Radicale daemon.** External CalDAV/CardDAV clients point at **Nextcloud's own DAV**; external-client credentials are Nextcloud app passwords within the files service's existing posture. No LDAP bind, no htpasswd store, no new credential surface — the docs-editing invariant ("no non-OIDC credential held by a member-facing service") stands unrevised. 2. **Gate: (i) — build the real generic dependency gate** in provisioning's assess, as its own ticket. This ticket is **superseded**: the Calendar & contacts promotion continues as **#1174** (Nextcloud-DAV shape), the gate as **#1173**. Closing. Thank you for the honest park — both cruxes were exactly one-way doors, and the "same mechanism as docs-editing does not exist" finding was the sharper catch.
ben closed this issue 2026-09-02 23:15:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1151
No description provided.