activity: resting gateways emit no join or founding rows, the harness paints outcomes Go never emits, and service-installed has no emitter #1441

Closed
opened 2026-09-12 15:04:14 +00:00 by ben · 2 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Gap

The activity seam is whole (GET /activity/{window}, controlapi/activity.go:226, DDR 0206): events are projected from owner records (recentevents.go in enroll / provision / monitor / update / backup / rescue), not written. Three holes:

  1. Resting gateways show no device-join or founding milestone — resting_composition.go:497 passes a nil enroll ledger, so the promise in RecentActivityLine.vue:14-16 (a founding-only community lists founding's own milestones) fails on exactly the gateway that has only those.
  2. The harness fake uses outcomes Go never emits — dashboard/tests/e2e/preview-harness/scenarios.ts:184-185 paints enrolled / founded; Go emits joined. The harness therefore shows a feed production cannot produce (DDR 0155 §3 — one vocabulary).
  3. "service installed / removed" has no emitter. DDR 0172's fence keeps person-subject events out of the ops feed (opsevent.go:12-19), which rightly excludes "member approved" — but a service install has no person subject and is the most-asked "what changed" fact.

Ruling — two-way, ruled by agent under ADR 0174 (veto anytime)

No person-subject events in the ops feed (DDR 0172 stands). service installed / service removed / service moved ARE ops events and are projected from the provision deploy record. Member events stay out.

What to do

  • resting_composition.go: pass the enroll ledger and founding record so the resting feed carries joins and the founding milestone.
  • internal/provision recent events: project install / remove / move from deploy records with the device and service named.
  • Harness fixture: outcomes aligned to Go's vocabulary (joined, plus the new service outcomes); activityView.test.ts asserts the vocabulary from the openapi enum, so a fixture word Go lacks fails.

Acceptance criteria

  • Given a just-founded resting gateway, when Overview opens, then the activity column lists the founding milestone and the gateway's join.
  • Given a service installed on a device, then the feed shows "files installed on tōtara" within the next read.
  • Given a member approved, then nothing appears in the ops feed (DDR 0172).
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Gap The activity seam is whole (`GET /activity/{window}`, `controlapi/activity.go:226`, DDR 0206): events are projected from owner records (`recentevents.go` in enroll / provision / monitor / update / backup / rescue), not written. Three holes: 1. **Resting gateways show no device-join or founding milestone** — `resting_composition.go:497` passes a nil enroll ledger, so the promise in `RecentActivityLine.vue:14-16` (a founding-only community lists founding's own milestones) fails on exactly the gateway that has only those. 2. **The harness fake uses outcomes Go never emits** — `dashboard/tests/e2e/preview-harness/scenarios.ts:184-185` paints `enrolled` / `founded`; Go emits `joined`. The harness therefore shows a feed production cannot produce (DDR 0155 §3 — one vocabulary). 3. **"service installed / removed" has no emitter.** DDR 0172's fence keeps person-subject events out of the ops feed (`opsevent.go:12-19`), which rightly excludes "member approved" — but a service install has no person subject and is the most-asked "what changed" fact. ## Ruling — two-way, ruled by agent under ADR 0174 (veto anytime) No person-subject events in the ops feed (DDR 0172 stands). `service installed` / `service removed` / `service moved` ARE ops events and are projected from the provision deploy record. Member events stay out. ## What to do - `resting_composition.go`: pass the enroll ledger and founding record so the resting feed carries joins and the founding milestone. - `internal/provision` recent events: project install / remove / move from deploy records with the device and service named. - Harness fixture: outcomes aligned to Go's vocabulary (`joined`, plus the new service outcomes); `activityView.test.ts` asserts the vocabulary from the openapi enum, so a fixture word Go lacks fails. ## Acceptance criteria - [ ] Given a just-founded resting gateway, when Overview opens, then the activity column lists the founding milestone and the gateway's join. - [ ] Given a service installed on a device, then the feed shows "files installed on tōtara" within the next read. - [ ] Given a member approved, then nothing appears in the ops feed (DDR 0172).

swarm-claim host=matou-dev-server-01 run=22579
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22579 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1441 — status success

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

envelope
{
  "issue": 1441,
  "status": "success",
  "commits": [
    "f1f81c5f3e6f51419e01063017b868cffa66ec6d"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/activity_resting_founding_test.go",
    "control-plane/cmd/control-plane/resting_composition.go",
    "internal/provision/recentevents.go",
    "internal/provision/recentevents_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/provision/... ./internal/controlapi/... ./internal/enroll/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/provision/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/provision/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a just-founded resting gateway, when Overview opens, then the activity column lists the founding milestone and the gateway's join": "restingEnrollLedger(deps) in control-plane/cmd/control-plane/resting_composition.go opens the founding enroll.json from deps.stateDir and passes it to newActivityReadAdapter (previously nil); TestRestingActivity_FoundingGatewayCarriesMilestoneAndJoin asserts DevicesEvents on a resting composition carries the community-founded milestone and the gateway's join (kauri joined).",
    "Given a service installed on a device, then the feed shows \"files installed on totara\" within the next read": "internal/provision/recentevents.go installEvents projects one 'service installed' ops event per service on a device's standing deploy record, subject the service, words '<svc> installed on <device>'; TestRecentEvents_HealthyDeployEmitsInstallRowsNoProblem asserts the row words are 'files installed on tōtara'.",
    "Given a member approved, then nothing appears in the ops feed (DDR 0172)": "The fence is structural: members is not one of opsevent.Sources() and opsevent.Subject cannot express a person kind; TestActivity_NoMemberSourceAndNoPersonSubject asserts no member source exists and every devices-face row carries an honoured (non-person) subject kind."
  },
  "summary": "Wired the founding enroll ledger into the resting activity feed and added a service-installed projection to provisioning's RecentEvents, with the member fence pinned by test.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1441 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1441, "status": "success", "commits": [ "f1f81c5f3e6f51419e01063017b868cffa66ec6d" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/activity_resting_founding_test.go", "control-plane/cmd/control-plane/resting_composition.go", "internal/provision/recentevents.go", "internal/provision/recentevents_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/provision/... ./internal/controlapi/... ./internal/enroll/... ./control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/provision/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/provision/... ./control-plane/cmd/control-plane/...", "exit_code": 0 } ], "criteria": { "Given a just-founded resting gateway, when Overview opens, then the activity column lists the founding milestone and the gateway's join": "restingEnrollLedger(deps) in control-plane/cmd/control-plane/resting_composition.go opens the founding enroll.json from deps.stateDir and passes it to newActivityReadAdapter (previously nil); TestRestingActivity_FoundingGatewayCarriesMilestoneAndJoin asserts DevicesEvents on a resting composition carries the community-founded milestone and the gateway's join (kauri joined).", "Given a service installed on a device, then the feed shows \"files installed on totara\" within the next read": "internal/provision/recentevents.go installEvents projects one 'service installed' ops event per service on a device's standing deploy record, subject the service, words '<svc> installed on <device>'; TestRecentEvents_HealthyDeployEmitsInstallRowsNoProblem asserts the row words are 'files installed on tōtara'.", "Given a member approved, then nothing appears in the ops feed (DDR 0172)": "The fence is structural: members is not one of opsevent.Sources() and opsevent.Subject cannot express a person kind; TestActivity_NoMemberSourceAndNoPersonSubject asserts no member source exists and every devices-face row carries an honoured (non-person) subject kind." }, "summary": "Wired the founding enroll ledger into the resting activity feed and added a service-installed projection to provisioning's RecentEvents, with the member fence pinned by test.", "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.

Dependencies

No dependencies set.

Reference
Matou/idss#1441
No description provided.