catalogue: docs-editing-port — the docs-editing service ships its full port (Collabora) #226

Closed
opened 2026-07-31 03:16:47 +00:00 by ben · 1 comment
Owner

Parent

Arc seed #223 (split confirmed by Ben, 2026-07-30) — the docs-editing catalogue service ships its port. Template: the files-port ticket #220.

What's true today

docs-editing (Collabora) is a slug of intent in internal/catalogue/catalogue.go — no NixOS module, no reconciler, no health check anywhere in the tree. Under ADR 0112 it can no longer activate vacuously: until this port lands, assigning it names a "no health check declared" fault.

What to build

The ADR 0062 three parts, following #220's proven template: (1) the declarative module (daemon + secrets via clan vars) rendered through the clan adapter (ADR 0102); (2) the out-of-band reconciler where the module can't declare it (the Garage/S13 pattern); (3) a health check that proves real function, registered in the shared registry. Plus the port-declared contract parts as they apply: ingress fragment + client-protocol exempt paths (ADR 0074), disable-credentials verb (ADR 0074), offboard fates (ADR 0075), role mappings (ADR 0076), dataset/backup contract (ADR 0080). Hostname derives from the one authority (ADR 0113: docs-editing.<apex>). Collabora integrates with the files service — the module must declare its coupling to files (WOPI) explicitly; if that coupling needs a design ruling, ask before building.

Acceptance criteria

  • Given a device assigned docs-editing, When the deploy completes, Then the service runs, its real check passes, and only then does it activate and publish (ADR 0112)
  • Given the front door, When a member browses docs-editing.<apex>, Then forward_auth + the komiti matrix govern entry and declared exempt paths pass (ADRs 0074/0076)
  • Given the member orbit, When suspend/offboard runs, Then this port's verbs really converge the service (ADRs 0074/0075)

Task manifest

task: catalogue:docs-editing-port
implements_seam: "the docs-editing port's full contract (ADR 0062 + the port-declared parts)"
interface: "a real, health-gated, front-doored Collabora the orbit drives"
seam: "a clan-lab smoke per the smoke-* precedent"
acceptance:
  - given: docs-editing assigned; when: deploy completes; then: running, gated, governed
depends_on: [catalogue:files-port]
out_of_scope: [other services' ports]
needs_human_decision: []
## Parent Arc seed #223 (split confirmed by Ben, 2026-07-30) — the `docs-editing` catalogue service ships its port. Template: the files-port ticket #220. ## What's true today `docs-editing` (Collabora) is a slug of intent in `internal/catalogue/catalogue.go` — no NixOS module, no reconciler, no health check anywhere in the tree. Under ADR 0112 it can no longer activate vacuously: until this port lands, assigning it names a "no health check declared" fault. ## What to build The ADR 0062 three parts, following #220's proven template: (1) the declarative module (daemon + secrets via clan vars) rendered through the clan adapter (ADR 0102); (2) the out-of-band reconciler where the module can't declare it (the Garage/S13 pattern); (3) a health check that proves real function, registered in the shared registry. Plus the port-declared contract parts as they apply: ingress fragment + client-protocol exempt paths (ADR 0074), disable-credentials verb (ADR 0074), offboard fates (ADR 0075), role mappings (ADR 0076), dataset/backup contract (ADR 0080). Hostname derives from the one authority (ADR 0113: `docs-editing.<apex>`). Collabora integrates with the files service — the module must declare its coupling to `files` (WOPI) explicitly; if that coupling needs a design ruling, ask before building. ## Acceptance criteria - [ ] Given a device assigned `docs-editing`, When the deploy completes, Then the service runs, its real check passes, and only then does it activate and publish (ADR 0112) - [ ] Given the front door, When a member browses `docs-editing.<apex>`, Then forward_auth + the komiti matrix govern entry and declared exempt paths pass (ADRs 0074/0076) - [ ] Given the member orbit, When suspend/offboard runs, Then this port's verbs really converge the service (ADRs 0074/0075) ## Task manifest ```yaml task: catalogue:docs-editing-port implements_seam: "the docs-editing port's full contract (ADR 0062 + the port-declared parts)" interface: "a real, health-gated, front-doored Collabora the orbit drives" seam: "a clan-lab smoke per the smoke-* precedent" acceptance: - given: docs-editing assigned; when: deploy completes; then: running, gated, governed depends_on: [catalogue:files-port] out_of_scope: [other services' ports] needs_human_decision: [] ```
Author
Owner

Shipped in 6901032 (on origin/main) — the docs-editing service's full backend port core (Collabora), on the files/mail/static-sites/meetings-port template.

Part 1 (declarative module) — internal/clan/docsediting.go RenderDocsEditing emits docs-editing.nix: services.collabora-online (coolwsd) on the ruled host, mesh-bound with no public port (the front door fronts it, ADR 0074), admin-console secret riding a clan var, and — the distinguishing part — the WOPI coupling to files declared explicitly: the storage allow-list names ONLY files.<apex>, derived from the SAME one hostname authority (ADR 0113 applied twice under one apex). No design ruling was needed: the coupling is a derived host, exactly as meetings derives its IdP host.

Part 2 (out-of-band reconciler) has NO work — Collabora is stateless (identity + every document live in the files service, reached per-open through a WOPI token), so a reconciler would be machinery with nothing to reconcile (ADR 0100).

Attach — docsediting_attach.go AttachDocsEditing derives BOTH docs-editing.<apex> and the coupled files.<apex> from the one authority, node-only, idempotent, missing-apex refused.

Orbit ServicePort — new internal/docseditingsvc (thin, on the meetingssvc template): no per-member data, no non-OIDC credential, front-door-only mapping; wired into productionServicePorts behind derivedDocsEditingURL, not .Expect-ed (never a gap).

Health check — docsEditingHealthCheck probes Collabora's own /hosting/capabilities (convert-to.available — the editing engine up and able to render, real function per ADR 0062/0061), registered in the shared registry so the gate activates only on a real pass.

Front door (ADR 0074) — WOPI client-protocol exempt paths (/hosting/discovery, /hosting/capabilities, /browser/*, /cool/*) bypass the browser gate; direct browser entry to docs-editing.<apex> stays behind forward_auth.

AC coverage — AC1: composition health-gate test (activates only on a real /hosting/capabilities pass, ADR 0112); AC2: generic forward_auth route + front-door-only mapping + WOPI exempt-paths seam test; AC3: docseditingsvc contract verbs (front door + files WOPI-token issuance converge suspend/offboard).

Seam-tested throughout; go build/vet/test + golangci-lint green. Deferred (scope split, the #227/#228/#229 precedent): the clan-lab smoke (assign → deploy → health-pass → a real edit of a files document in Collabora over WOPI).

Shipped in `6901032` (on `origin/main`) — the docs-editing service's full backend port core (Collabora), on the files/mail/static-sites/meetings-port template. **Part 1 (declarative module)** — `internal/clan/docsediting.go` `RenderDocsEditing` emits `docs-editing.nix`: `services.collabora-online` (coolwsd) on the ruled host, mesh-bound with **no public port** (the front door fronts it, ADR 0074), admin-console secret riding a clan var, and — the distinguishing part — the **WOPI coupling to `files` declared explicitly**: the storage allow-list names ONLY `files.<apex>`, derived from the SAME one hostname authority (ADR 0113 applied twice under one apex). No design ruling was needed: the coupling is a derived host, exactly as meetings derives its IdP host. **Part 2 (out-of-band reconciler) has NO work** — Collabora is stateless (identity + every document live in the files service, reached per-open through a WOPI token), so a reconciler would be machinery with nothing to reconcile (ADR 0100). **Attach** — `docsediting_attach.go` `AttachDocsEditing` derives BOTH `docs-editing.<apex>` and the coupled `files.<apex>` from the one authority, node-only, idempotent, missing-apex refused. **Orbit ServicePort** — new `internal/docseditingsvc` (thin, on the meetingssvc template): no per-member data, no non-OIDC credential, front-door-only mapping; wired into `productionServicePorts` behind `derivedDocsEditingURL`, not `.Expect`-ed (never a gap). **Health check** — `docsEditingHealthCheck` probes Collabora's own `/hosting/capabilities` (`convert-to.available` — the editing engine up and able to render, real function per ADR 0062/0061), registered in the shared registry so the gate activates only on a real pass. **Front door (ADR 0074)** — WOPI **client-protocol exempt paths** (`/hosting/discovery`, `/hosting/capabilities`, `/browser/*`, `/cool/*`) bypass the browser gate; direct browser entry to `docs-editing.<apex>` stays behind forward_auth. **AC coverage** — AC1: composition health-gate test (activates only on a real `/hosting/capabilities` pass, ADR 0112); AC2: generic forward_auth route + front-door-only mapping + WOPI exempt-paths seam test; AC3: docseditingsvc contract verbs (front door + files WOPI-token issuance converge suspend/offboard). Seam-tested throughout; `go build/vet/test` + golangci-lint green. **Deferred** (scope split, the #227/#228/#229 precedent): the clan-lab smoke (assign → deploy → health-pass → a real edit of a files document in Collabora over WOPI).
ben closed this issue 2026-08-01 05:41:33 +00:00
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.

Reference
Matou/idss#226
No description provided.