catalogue port: Surveys (LimeSurvey) — ask your community, keep the answers #1150

Closed
opened 2026-09-02 06:26:06 +00:00 by ben · 3 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: Surveys · runs LimeSurvey · category Reach people. services.limesurvey exists — low-moderate (PHP + MariaDB).

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)
  • Health check creates a fixture survey and records a response through the public form (capture path proven)
  • Response data on the declared dataset

Blocked by

  • #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)
## 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: Surveys · runs LimeSurvey · category Reach people.** `services.limesurvey` exists — low-moderate (PHP + MariaDB). 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) - [ ] Health check creates a fixture survey and records a response through the public form (capture path proven) - [ ] Response data on the declared dataset ## Blocked by - #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)

swarm-claim host=elitebook-distributed-server-03 run=16326
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=16326 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime. This port carries a few
reversible calls with no manifest needs_human_decision entry; recording them
here for transparency. Each is a two-way door (revertible by a later commit,
provable by a test/probe in-repo), none on the one-way-door list.

  1. Measured floor + steady memory. I cannot stand a live LimeSurvey up to
    measure from this sandbox, so — exactly as every existing catalogue floor is
    a tier-aligned estimate held provisional under ADR 0030 (the gateway floor
    itself is "provisional until S13 Q9") — I set surveys to
    floor(1 thread · 2 GB · 20 GB), steady 768 MB, grounded in
    LimeSurvey's documented PHP-FPM + MariaDB footprint and consistent with the
    catalogue's existing PHP+DB class (files/Nextcloud is heavier at 2·4·60).
    Proven by: internal/catalogue package tests (the floor-fits-under-every-
    candidate invariant + display-fact pins). A clan-lab measurement can refine
    the numbers in a later commit.

  2. No member-orbit reconciler (ADR 0062 part 2). Surveys carry no
    per-member lifecycle state to converge on suspend/offboard — a public survey
    captures anonymous responses; the only account is the admin service identity
    the port bootstraps. So the port ships parts 1 + 3 and registers no
    reconciler (the meetings/docs-editing shape). Proven by: the shared
    registry returns an honest ok=false for the surveys reconciler (never a
    fabricated rebalance rung).

  3. Health-check shape. The check drives LimeSurvey's real RemoteControl 2
    API for the full capture-and-keep loop (session → create fixture survey →
    group/question → activate → record a response through the public survey form
    POST → export_responses to read it back off the declared responses dataset →
    delete the fixture; re-run-safe) with an admin service credential the port's
    deploy-time oneshot bootstraps (the code-port forgejo-admin pattern). The
    genuinely browser-driven public submission at full LimeSurvey wire-fidelity
    is the deferred clan-lab drive — the #225/#229 precedent every port follows
    (the real end-to-end loop is the lab smoke; the registry check gates
    deploy-time activation). Proven by: provision_surveys_health_test.go
    over an httptest LimeSurvey fake — a real pass activates, a failing capture
    withholds activation with the port's operator-facing summary.

**Ruled by agent under ADR 0174 — veto anytime.** This port carries a few reversible calls with no manifest `needs_human_decision` entry; recording them here for transparency. Each is a two-way door (revertible by a later commit, provable by a test/probe in-repo), none on the one-way-door list. 1. **Measured floor + steady memory.** I cannot stand a live LimeSurvey up to measure from this sandbox, so — exactly as every existing catalogue floor is a tier-aligned estimate held provisional under ADR 0030 (the gateway floor itself is "provisional until S13 Q9") — I set `surveys` to **floor(1 thread · 2 GB · 20 GB)**, **steady 768 MB**, grounded in LimeSurvey's documented PHP-FPM + MariaDB footprint and consistent with the catalogue's existing PHP+DB class (files/Nextcloud is heavier at 2·4·60). *Proven by:* `internal/catalogue` package tests (the floor-fits-under-every- candidate invariant + display-fact pins). A clan-lab measurement can refine the numbers in a later commit. 2. **No member-orbit reconciler (ADR 0062 part 2).** Surveys carry no per-member lifecycle state to converge on suspend/offboard — a public survey captures anonymous responses; the only account is the admin service identity the port bootstraps. So the port ships parts 1 + 3 and registers no reconciler (the meetings/docs-editing shape). *Proven by:* the shared registry returns an honest `ok=false` for the surveys reconciler (never a fabricated rebalance rung). 3. **Health-check shape.** The check drives LimeSurvey's real RemoteControl 2 API for the full capture-and-keep loop (session → create fixture survey → group/question → activate → record a response through the public survey form POST → export_responses to read it back off the declared responses dataset → delete the fixture; re-run-safe) with an admin service credential the port's deploy-time oneshot bootstraps (the code-port forgejo-admin pattern). The genuinely browser-driven public submission at full LimeSurvey wire-fidelity is the deferred clan-lab drive — the #225/#229 precedent every port follows (the real end-to-end loop is the lab smoke; the registry check gates deploy-time activation). *Proven by:* `provision_surveys_health_test.go` over an httptest LimeSurvey fake — a real pass activates, a failing capture withholds activation with the port's operator-facing summary.

close-report for #1150 — status success

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

envelope
{
  "issue": 1150,
  "status": "success",
  "commits": [
    "5b595d32ef656f9b401c6fcf45fedd6c4c31041a"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/compose.go",
    "control-plane/cmd/control-plane/provision_surveys_health_test.go",
    "control-plane/cmd/control-plane/surveyshealth.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/catalogue/catalogue.go",
    "internal/clan/deployedservices.go",
    "internal/clan/surveys.go",
    "internal/clan/surveys_attach.go",
    "internal/clan/surveys_attach_test.go",
    "internal/clan/surveys_test.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go test ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/clan/ ./internal/catalogue/ ./internal/provision/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l (changed files)",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./...",
      "exit_code": 0
    },
    {
      "command": "pre-push gate: nix develop .#go-ci (build/vet/test/lint + dev + broker + wireconvention)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change": "The port declares its own parts: the declarative NixOS unit (internal/clan/surveys.go RenderSurveys + surveys_attach.go AttachSurveys) and its own HealthCheck (control-plane/cmd/control-plane/surveyshealth.go). No internal/monitor change and no change to provisioning LOGIC (health gate/selection/coverage) — the ADR 0062 principle AC#1 protects (the check ships WITH the port, not a central table) is honored: the check is registered from the composition root (whole_composition.go), not a provision table. The one internal/provision touch is a REQUIRED one-word safety classification: internal/provision/deploy.go adds surveys to renderShippingService so it is gated out of selection (provisionCannotDeploy) instead of becoming a selectable-lie that deploys as a phantom clan-core module and breaks gateway eval (#428) — the same list every render-shipping service must be in. Deploy-ROUTING (literal P4-selectability) is the deferred sibling frontier, exactly as chat/mail/code/meetings/static-sites defer it. Render+attach proven by internal/clan/surveys_test.go + surveys_attach_test.go.",
    "HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary": "control-plane/cmd/control-plane/surveyshealth.go surveysHealthCheck: proves LimeSurvey's capture-and-keep loop (not a liveness probe); deletes any stale fixture before creating and again on exit (re-run-safe, P4-S5x); Summary 'Surveys is not serving — LimeSurvey could not capture and keep a response through its public form' (domain vocabulary, never a stack trace). Proven by provision_surveys_health_test.go.",
    "Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly": "internal/catalogue/catalogue.go: the surveys Service — floor(1 thread, 2GB, 20GB), steady 768MB (tier-aligned, provisional under ADR 0030, ruled two-way under ADR 0174), category Reach people, Product LimeSurvey + https ProductURL, one-line description (no banned words), glyph S. Passes internal/catalogue tests (floor-fits-under-every-candidate invariant + display-fact pins). The P4 available list gates it out honestly (provisionCannotDeploy — not-yet-routed) via internal/provision/assess.go, unchanged.",
    "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "The surveys check is registered ONCE into the sharedHealthRegistry (control-plane/cmd/control-plane/whole_composition.go) which provision.Ports, monitor.Ports and rescue.Ports all read (compose.go) — so monitoring re-runs the SAME check provisioning gated on. Defined once by construction.",
    "Health check creates a fixture survey and records a response through the public form (capture path proven)": "surveyshealth.go: surveysCreateFixture (RemoteControl add_survey) + surveysActivate + surveysRecordThroughPublicForm (GET the public survey start URL, then POST the completion to /index.php/<sid> — the public form path). Proven by provision_surveys_health_test.go 'a real capture-and-keep activates'. The browser-driven public submission at full LimeSurvey wire-fidelity is the deferred clan-lab drive (the #225/#229 precedent every port follows), noted in the builder comment.",
    "Response data on the declared dataset": "surveysVerifyKept reads the response back with export_responses off the declared Surveys dataset (LimeSurvey's responses table + the uploadsDir declared in surveys.go as the ADR 0080 dataset). Proven by provision_surveys_health_test.go 'a public form that keeps nothing withholds activation' — a lost response fails the check with the port's summary and contributes no coverage (ADR 0061)."
  },
  "summary": "Shipped the surveys catalogue port (LimeSurvey) — declarative surveys.nix render + attach, its own capture-and-keep health check over RemoteControl + the public form, and the catalogue Service entry — the first of the #1073 port queue.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1150 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1150, "status": "success", "commits": [ "5b595d32ef656f9b401c6fcf45fedd6c4c31041a" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/compose.go", "control-plane/cmd/control-plane/provision_surveys_health_test.go", "control-plane/cmd/control-plane/surveyshealth.go", "control-plane/cmd/control-plane/whole_composition.go", "internal/catalogue/catalogue.go", "internal/clan/deployedservices.go", "internal/clan/surveys.go", "internal/clan/surveys_attach.go", "internal/clan/surveys_attach_test.go", "internal/clan/surveys_test.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go test ./...", "exit_code": 0 }, { "command": "go vet ./...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/clan/ ./internal/catalogue/ ./internal/provision/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "gofmt -l (changed files)", "exit_code": 0 }, { "command": "go build -tags dev ./...", "exit_code": 0 }, { "command": "pre-push gate: nix develop .#go-ci (build/vet/test/lint + dev + broker + wireconvention)", "exit_code": 0 } ], "criteria": { "Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change": "The port declares its own parts: the declarative NixOS unit (internal/clan/surveys.go RenderSurveys + surveys_attach.go AttachSurveys) and its own HealthCheck (control-plane/cmd/control-plane/surveyshealth.go). No internal/monitor change and no change to provisioning LOGIC (health gate/selection/coverage) — the ADR 0062 principle AC#1 protects (the check ships WITH the port, not a central table) is honored: the check is registered from the composition root (whole_composition.go), not a provision table. The one internal/provision touch is a REQUIRED one-word safety classification: internal/provision/deploy.go adds surveys to renderShippingService so it is gated out of selection (provisionCannotDeploy) instead of becoming a selectable-lie that deploys as a phantom clan-core module and breaks gateway eval (#428) — the same list every render-shipping service must be in. Deploy-ROUTING (literal P4-selectability) is the deferred sibling frontier, exactly as chat/mail/code/meetings/static-sites defer it. Render+attach proven by internal/clan/surveys_test.go + surveys_attach_test.go.", "HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary": "control-plane/cmd/control-plane/surveyshealth.go surveysHealthCheck: proves LimeSurvey's capture-and-keep loop (not a liveness probe); deletes any stale fixture before creating and again on exit (re-run-safe, P4-S5x); Summary 'Surveys is not serving — LimeSurvey could not capture and keep a response through its public form' (domain vocabulary, never a stack trace). Proven by provision_surveys_health_test.go.", "Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly": "internal/catalogue/catalogue.go: the surveys Service — floor(1 thread, 2GB, 20GB), steady 768MB (tier-aligned, provisional under ADR 0030, ruled two-way under ADR 0174), category Reach people, Product LimeSurvey + https ProductURL, one-line description (no banned words), glyph S. Passes internal/catalogue tests (floor-fits-under-every-candidate invariant + display-fact pins). The P4 available list gates it out honestly (provisionCannotDeploy — not-yet-routed) via internal/provision/assess.go, unchanged.", "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "The surveys check is registered ONCE into the sharedHealthRegistry (control-plane/cmd/control-plane/whole_composition.go) which provision.Ports, monitor.Ports and rescue.Ports all read (compose.go) — so monitoring re-runs the SAME check provisioning gated on. Defined once by construction.", "Health check creates a fixture survey and records a response through the public form (capture path proven)": "surveyshealth.go: surveysCreateFixture (RemoteControl add_survey) + surveysActivate + surveysRecordThroughPublicForm (GET the public survey start URL, then POST the completion to /index.php/<sid> — the public form path). Proven by provision_surveys_health_test.go 'a real capture-and-keep activates'. The browser-driven public submission at full LimeSurvey wire-fidelity is the deferred clan-lab drive (the #225/#229 precedent every port follows), noted in the builder comment.", "Response data on the declared dataset": "surveysVerifyKept reads the response back with export_responses off the declared Surveys dataset (LimeSurvey's responses table + the uploadsDir declared in surveys.go as the ADR 0080 dataset). Proven by provision_surveys_health_test.go 'a public form that keeps nothing withholds activation' — a lost response fails the check with the port's summary and contributes no coverage (ADR 0061)." }, "summary": "Shipped the surveys catalogue port (LimeSurvey) — declarative surveys.nix render + attach, its own capture-and-keep health check over RemoteControl + the public form, and the catalogue Service entry — the first of the #1073 port queue.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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#1150
No description provided.