catalogue: T10 — the loop closes: arrival stamps history and speaks in the activity feed #1128

Closed
opened 2026-09-01 20:50:29 +00:00 by ben · 2 comments
Owner

Parent

Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice arrival-loop in docs/slices/catalogue.yaml.

What to build

When an update ships a port for a service this community requested, the arrival finds the operator: applying the update diffs the incoming catalogue's installable slugs against the request ledger; a match stamps the entry's request history and emits an ops-event through the update module's existing RecentEvents projection (#824 contract — no new machinery). Browse renders the arrived card wearing "Requested ‹date› · now installable" in the installable tier. There is no declined state anywhere — a request that will not be ported changes nothing, ever.

Acceptance criteria

  • An update whose catalogue makes a requested slug installable → the catalogue read carries the arrived state with the original requested date; Browse renders the history line
  • The same apply emits exactly one ops-event naming the service and that this community requested it, visible through the activity feed's existing merge (windowed, deterministic)
  • An update arriving with no matching request emits nothing and stamps nothing
  • Re-applying / rolling back an update never duplicates the event or the stamp (idempotent by record identity — RecentEvents prior art)
  • No code path can mark a request declined or expired

Blocked by

  • #1121 (service-request-ledger)
  • #1120 (catalogue-candidate-tier)
  • #1126 (dashboard-browse-tab)

Task manifest

task: arrival-loop
implements_flow: p4-provisioning
implements_edge: "UPD→S2b, UPD→P12-S1"
wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-browse-catalogue.html (arrived card + request-history)
seam: update RecentEvents projection tests + controlapi read
depends_on: [catalogue:service-request-ledger, catalogue:catalogue-candidate-tier, catalogue:dashboard-browse-tab]
out_of_scope: [push notifications, member-facing surfaces]
needs_human_decision: []
## Parent Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice `arrival-loop` in docs/slices/catalogue.yaml. ## What to build When an update ships a port for a service this community requested, the arrival finds the operator: applying the update diffs the incoming catalogue's installable slugs against the request ledger; a match stamps the entry's request history and emits an ops-event through the update module's existing RecentEvents projection (#824 contract — no new machinery). Browse renders the arrived card wearing "Requested ‹date› · now installable" in the installable tier. There is no declined state anywhere — a request that will not be ported changes nothing, ever. ## Acceptance criteria - [ ] An update whose catalogue makes a requested slug installable → the catalogue read carries the arrived state with the original requested date; Browse renders the history line - [ ] The same apply emits exactly one ops-event naming the service and that this community requested it, visible through the activity feed's existing merge (windowed, deterministic) - [ ] An update arriving with no matching request emits nothing and stamps nothing - [ ] Re-applying / rolling back an update never duplicates the event or the stamp (idempotent by record identity — RecentEvents prior art) - [ ] No code path can mark a request declined or expired ## Blocked by - #1121 (service-request-ledger) - #1120 (catalogue-candidate-tier) - #1126 (dashboard-browse-tab) ## Task manifest ```yaml task: arrival-loop implements_flow: p4-provisioning implements_edge: "UPD→S2b, UPD→P12-S1" wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-browse-catalogue.html (arrived card + request-history) seam: update RecentEvents projection tests + controlapi read depends_on: [catalogue:service-request-ledger, catalogue:catalogue-candidate-tier, catalogue:dashboard-browse-tab] out_of_scope: [push notifications, member-facing surfaces] needs_human_decision: [] ```

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

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

close-report for #1128 — status success

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

envelope
{
  "issue": 1128,
  "status": "success",
  "commits": [
    "c56b7544"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/controlapi/catalogue.go",
    "internal/controlapi/catalogue_read_integration_test.go",
    "internal/update/arrival.go",
    "internal/update/arrival_test.go",
    "internal/update/recentevents.go",
    "internal/update/update.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/update/... ./internal/controlapi/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/update/... ./internal/controlapi/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/update/ internal/controlapi/ control-plane/cmd/control-plane/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "An update whose catalogue makes a requested slug installable -> the catalogue read carries the arrived state with the original requested date; Browse renders the history line": "internal/controlapi/catalogue.go installableEntry joins ledger.Requested(slug) onto InstallableEntry.RequestHistory = 'Requested <date> · now installable' with the original date (ledger dedupe keeps first date); TestCatalogueRead_ArrivedInstallableCarriesRequestHistory; Browse renders data-field=request-history via installableStatus='arrived' (SelectRoleServicesScreen.vue, built T8)",
    "The same apply emits exactly one ops-event naming the service and that this community requested it, visible through the activity feed's existing merge (windowed, deterministic)": "internal/update/arrival.go arrivalEvents: one OpsEvent, Subject=Service(name), Words names the request, Source=updates, wired into RecentEvents; TestRecentEvents_ArrivalNamesServiceAndRequest asserts exactly one row and one after opsevent.Merge",
    "An update arriving with no matching request emits nothing and stamps nothing": "arrivalEvents emits nothing when Arrived() is empty; read joins nothing; TestRecentEvents_NoMatchingRequestEmitsNothing (incl. faulting source -> advice never veto) and the chat-no-history assertion in the read test",
    "Re-applying / rolling back an update never duplicates the event or the stamp (idempotent by record identity - RecentEvents prior art)": "RecordID revision#arrived#slug, attributed to latestApplied (applied outcomes only); TestRecentEvents_ArrivalIdempotentAcrossReadsAndRollback: re-derivation identical, a later rolled-back HistoryEntry never duplicates or re-homes the row",
    "No code path can mark a request declined or expired": "update.Arrivals type and servicerequest ledger cannot express a negative; no declined/expired field or state added anywhere; comments in arrival.go and catalogue.go state the invariant"
  },
  "summary": "Story 10 arrival loop closes: the catalogue read stamps a shipped-requested installable with its request history and updates' RecentEvents projection emits one idempotent arrival ops-event into the activity feed — no declined state anywhere.",
  "blockers": []
}
**close-report** for #1128 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1128, "status": "success", "commits": [ "c56b7544" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "internal/controlapi/catalogue.go", "internal/controlapi/catalogue_read_integration_test.go", "internal/update/arrival.go", "internal/update/arrival_test.go", "internal/update/recentevents.go", "internal/update/update.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/update/... ./internal/controlapi/... ./control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/update/... ./internal/controlapi/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/update/ internal/controlapi/ control-plane/cmd/control-plane/", "exit_code": 0 } ], "criteria": { "An update whose catalogue makes a requested slug installable -> the catalogue read carries the arrived state with the original requested date; Browse renders the history line": "internal/controlapi/catalogue.go installableEntry joins ledger.Requested(slug) onto InstallableEntry.RequestHistory = 'Requested <date> · now installable' with the original date (ledger dedupe keeps first date); TestCatalogueRead_ArrivedInstallableCarriesRequestHistory; Browse renders data-field=request-history via installableStatus='arrived' (SelectRoleServicesScreen.vue, built T8)", "The same apply emits exactly one ops-event naming the service and that this community requested it, visible through the activity feed's existing merge (windowed, deterministic)": "internal/update/arrival.go arrivalEvents: one OpsEvent, Subject=Service(name), Words names the request, Source=updates, wired into RecentEvents; TestRecentEvents_ArrivalNamesServiceAndRequest asserts exactly one row and one after opsevent.Merge", "An update arriving with no matching request emits nothing and stamps nothing": "arrivalEvents emits nothing when Arrived() is empty; read joins nothing; TestRecentEvents_NoMatchingRequestEmitsNothing (incl. faulting source -> advice never veto) and the chat-no-history assertion in the read test", "Re-applying / rolling back an update never duplicates the event or the stamp (idempotent by record identity - RecentEvents prior art)": "RecordID revision#arrived#slug, attributed to latestApplied (applied outcomes only); TestRecentEvents_ArrivalIdempotentAcrossReadsAndRollback: re-derivation identical, a later rolled-back HistoryEntry never duplicates or re-homes the row", "No code path can mark a request declined or expired": "update.Arrivals type and servicerequest ledger cannot express a negative; no declined/expired field or state added anywhere; comments in arrival.go and catalogue.go state the invariant" }, "summary": "Story 10 arrival loop closes: the catalogue read stamps a shipped-requested installable with its request history and updates' RecentEvents projection emits one idempotent arrival ops-event into the activity feed — no declined state anywhere.", "blockers": [] } ``` </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#1128
No description provided.