observability: rescue-recent-events — rescue's RecentEvents(window) — the WHAT renders, the who stays in the ADR 0027 log #829

Closed
opened 2026-08-25 11:00:01 +00:00 by matou-build-agent · 3 comments

Parent

Feature spec: #796 — control-panel observability child spec: activity feed (P12) (DDR 0206).
Design ticket #763; slice-map fan-in #770; wayfinder map #7.
Slice rescue-recent-events of docs/slices/observability.yaml; covers spec #796 stories 54–61 (rescue face).

What to build

The rescue face: rescue opened, rung applied / failed, recovered, and remote-support
engagement opened / ended — derived from the ladder's tried/failed memory and its audit-logged
actions.

The engagement's WHAT renders; the who stays in the ADR 0027 log. That is the subject fence
applied to the one source whose records most obviously carry an actor: the event says an engagement
opened and later ended, never who opened it.

No new table, file, stream or collector; the owner's own words, outcome token, problem flag and
drill-in (the rescue ladder) ride each event.

Note the horizon: rescue's ladder memory is in-process, so a control-plane restart genuinely
truncates this source's contribution — the surface states that rather than implying depth.

Acceptance criteria

  • (story 56) Given the ladder's tried/failed memory and its audit-logged actions, when RecentEvents(window) is called, then it derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened / ended — and no new table, file, stream or collector is created.
  • (stories 45, 47) Given a remote-support engagement whose record carries who opened it, then the event carries the WHAT only — no actor on the event, its detail or its drill-in; the who stays in the ADR 0027 log.
  • (story 8) Given each event, then it carries rescue's own words verbatim and its own outcome token.
  • (story 19) Given a rung that failed, then the owner's problem flag is set on the event.
  • (story 56) Given the window bound, then only events inside it are returned.
  • (story 31) Given each event, then it carries rescue's own drill-in intent (the ladder).

Blocked by

  • #824 — observability:activity-ops-event-contract
  • rescue:service-ladder (#96 — done, satisfied)
  • rescue:remote-support-engagement (#98 — done, satisfied)

Task manifest

task: observability:rescue-recent-events
interface: rescue gains an additive `RecentEvents(window)` face returning typed ops events for rescue
  opened, rung applied/failed, recovered, and remote-support engagement opened/ended — derived from the
  ladder's tried/failed memory and its audit-logged actions, carrying the WHAT and never the who
seam: 'rescue''s own package tests: each event kind derived for a window from the ladder memory and audit-logged
  actions; rescue''s words carried verbatim; the problem flag set on a failed rung; the window bound honoured;
  **no actor** on any event even where the audit record carries one'
acceptance:
- given: a rescue opened and a rung applied
  when: '`RecentEvents(window)` is called'
  then: both events return with rescue's own words and outcome tokens
- given: a rung that failed
  when: '`RecentEvents(window)` is called'
  then: the event returns with the owner's problem flag set
- given: a remote-support engagement whose audit record names who opened it
  when: '`RecentEvents(window)` is called'
  then: the event carries the engagement opening only — no actor anywhere
- given: events outside the requested window
  when: '`RecentEvents(window)` is called'
  then: they are not returned
depends_on:
- activity-ops-event-contract
- rescue:service-ladder
- rescue:remote-support-engagement
out_of_scope:
- the read-composition and route (`transport-activity-read`)
- any new table, file, stream or collector
- surfacing who performed a rescue action — that stays in the ADR 0027 audit log
- durable history beyond the ladder's in-process memory
needs_human_decision: []

Emitted by /to-tickets over docs/slices/observability.yaml in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.

## Parent Feature spec: **#796** — control-panel observability child spec: activity feed (P12) (DDR 0206). Design ticket #763; slice-map fan-in **#770**; wayfinder map #7. Slice `rescue-recent-events` of `docs/slices/observability.yaml`; covers spec #796 stories 54–61 (rescue face). ## What to build The rescue face: rescue **opened**, rung **applied / failed**, **recovered**, and remote-support engagement **opened / ended** — derived from the ladder's tried/failed memory and its audit-logged actions. **The engagement's WHAT renders; the who stays in the ADR 0027 log.** That is the subject fence applied to the one source whose records most obviously carry an actor: the event says an engagement opened and later ended, never who opened it. No new table, file, stream or collector; the owner's own words, outcome token, problem flag and drill-in (the rescue ladder) ride each event. Note the horizon: rescue's ladder memory is in-process, so a control-plane restart genuinely truncates this source's contribution — the surface states that rather than implying depth. ## Acceptance criteria - [ ] (story 56) Given the ladder's tried/failed memory and its audit-logged actions, when `RecentEvents(window)` is called, then it derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened / ended — and **no new table, file, stream or collector is created**. - [ ] (stories 45, 47) Given a remote-support engagement whose record carries who opened it, then the event carries the **WHAT only** — no actor on the event, its detail or its drill-in; the who stays in the ADR 0027 log. - [ ] (story 8) Given each event, then it carries rescue's **own words verbatim** and its own outcome token. - [ ] (story 19) Given a rung that failed, then the owner's problem flag is set on the event. - [ ] (story 56) Given the window bound, then only events inside it are returned. - [ ] (story 31) Given each event, then it carries rescue's own drill-in intent (the ladder). ## Blocked by - #824 — `observability:activity-ops-event-contract` - `rescue:service-ladder` (#96 — done, satisfied) - `rescue:remote-support-engagement` (#98 — done, satisfied) ## Task manifest ```yaml task: observability:rescue-recent-events interface: rescue gains an additive `RecentEvents(window)` face returning typed ops events for rescue opened, rung applied/failed, recovered, and remote-support engagement opened/ended — derived from the ladder's tried/failed memory and its audit-logged actions, carrying the WHAT and never the who seam: 'rescue''s own package tests: each event kind derived for a window from the ladder memory and audit-logged actions; rescue''s words carried verbatim; the problem flag set on a failed rung; the window bound honoured; **no actor** on any event even where the audit record carries one' acceptance: - given: a rescue opened and a rung applied when: '`RecentEvents(window)` is called' then: both events return with rescue's own words and outcome tokens - given: a rung that failed when: '`RecentEvents(window)` is called' then: the event returns with the owner's problem flag set - given: a remote-support engagement whose audit record names who opened it when: '`RecentEvents(window)` is called' then: the event carries the engagement opening only — no actor anywhere - given: events outside the requested window when: '`RecentEvents(window)` is called' then: they are not returned depends_on: - activity-ops-event-contract - rescue:service-ladder - rescue:remote-support-engagement out_of_scope: - the read-composition and route (`transport-activity-read`) - any new table, file, stream or collector - surfacing who performed a rescue action — that stays in the ADR 0027 audit log - durable history beyond the ladder's in-process memory needs_human_decision: [] ``` --- *Emitted by `/to-tickets` over `docs/slices/observability.yaml` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.*
Author
Member

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

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

close-report for #829 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit a00fcdfde0 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/opsevent/opsevent.go' is not in the diff of the claimed commits
  • changed_files: 'internal/rescue/recentevents.go' is not in the diff of the claimed commits
  • changed_files: 'internal/rescue/recentevents_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 829,
  "status": "success",
  "commits": [
    "a00fcdfde02a327808f7739d47334190c5acc48c"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/opsevent/opsevent.go",
    "internal/rescue/recentevents.go",
    "internal/rescue/recentevents_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/rescue/... ./internal/opsevent/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/rescue/... ./internal/opsevent/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 56 — RecentEvents(window) derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened/ended; no new table/file/stream/collector": "internal/rescue/recentevents.go RecentEvents on ServiceLadders/DeviceLadders/Engagements derive from existing in-memory ladder/engagement state only; TestRecentEvents_ServiceLadder_OpenedFailedRecovered, TestRecentEvents_DeviceLadder_AppliedRung, TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor",
    "stories 45,47 — engagement event carries WHAT only, no actor on event/detail/drill-in; who stays in ADR 0027 log": "engagement events carry Words 'Remote-support engagement opened/ended' and no actor field (OpsEvent has none); TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor asserts opener 'Ana' appears in no field",
    "story 8 — each event carries rescue's own words verbatim and its own outcome token": "incidentEvents sets Words=rung note / ladder summary verbatim + outcome tokens opened/applied/failed/recovered; asserted failed.Words==failNote, recovered.Words==recoveredNote",
    "story 19 — a failed rung sets the owner's problem flag": "incidentEvents sets Problem=true for RungFailed; TestRecentEvents_ServiceLadder_OpenedFailedRecovered asserts failed.Problem",
    "story 56 — window bound honoured, only in-window events returned": "opsevent.Window.Contains filters open/rung events; TestRecentEvents_WindowBoundHonoured asserts pre-window opened event excluded, in-window rung returned",
    "story 31 — each event carries rescue's own drill-in intent (the ladder)": "ladderDrillIn sets DrillIn{Label:'Rescue ladder',Target:'rescue',Ref:incident} on every event; test asserts non-empty DrillIn on all events"
  },
  "summary": "rescue gains an additive RecentEvents(window) face on its ladder and engagement seams deriving typed ops events — the WHAT only, no actor, no new store.",
  "blockers": []
}
**close-report** for #829 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit a00fcdfde02a327808f7739d47334190c5acc48c is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'internal/opsevent/opsevent.go' is not in the diff of the claimed commits - changed_files: 'internal/rescue/recentevents.go' is not in the diff of the claimed commits - changed_files: 'internal/rescue/recentevents_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 829, "status": "success", "commits": [ "a00fcdfde02a327808f7739d47334190c5acc48c" ], "changed_files": [ "STATUS.md", "internal/opsevent/opsevent.go", "internal/rescue/recentevents.go", "internal/rescue/recentevents_test.go" ], "tests": [ { "command": "go test ./internal/rescue/... ./internal/opsevent/...", "exit_code": 0 }, { "command": "go vet ./internal/rescue/... ./internal/opsevent/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "story 56 — RecentEvents(window) derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened/ended; no new table/file/stream/collector": "internal/rescue/recentevents.go RecentEvents on ServiceLadders/DeviceLadders/Engagements derive from existing in-memory ladder/engagement state only; TestRecentEvents_ServiceLadder_OpenedFailedRecovered, TestRecentEvents_DeviceLadder_AppliedRung, TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor", "stories 45,47 — engagement event carries WHAT only, no actor on event/detail/drill-in; who stays in ADR 0027 log": "engagement events carry Words 'Remote-support engagement opened/ended' and no actor field (OpsEvent has none); TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor asserts opener 'Ana' appears in no field", "story 8 — each event carries rescue's own words verbatim and its own outcome token": "incidentEvents sets Words=rung note / ladder summary verbatim + outcome tokens opened/applied/failed/recovered; asserted failed.Words==failNote, recovered.Words==recoveredNote", "story 19 — a failed rung sets the owner's problem flag": "incidentEvents sets Problem=true for RungFailed; TestRecentEvents_ServiceLadder_OpenedFailedRecovered asserts failed.Problem", "story 56 — window bound honoured, only in-window events returned": "opsevent.Window.Contains filters open/rung events; TestRecentEvents_WindowBoundHonoured asserts pre-window opened event excluded, in-window rung returned", "story 31 — each event carries rescue's own drill-in intent (the ladder)": "ladderDrillIn sets DrillIn{Label:'Rescue ladder',Target:'rescue',Ref:incident} on every event; test asserts non-empty DrillIn on all events" }, "summary": "rescue gains an additive RecentEvents(window) face on its ladder and engagement seams deriving typed ops events — the WHAT only, no actor, no new store.", "blockers": [] } ``` </details>
Author
Member

close-report for #829 — status success

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

envelope
{
  "issue": 829,
  "status": "success",
  "commits": [
    "a00fcdfde02a327808f7739d47334190c5acc48c"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/opsevent/opsevent.go",
    "internal/rescue/recentevents.go",
    "internal/rescue/recentevents_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/rescue/... ./internal/opsevent/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/rescue/... ./internal/opsevent/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 56 — RecentEvents(window) derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened/ended; no new table/file/stream/collector": "internal/rescue/recentevents.go RecentEvents on ServiceLadders/DeviceLadders/Engagements derive from existing in-memory ladder/engagement state only; TestRecentEvents_ServiceLadder_OpenedFailedRecovered, TestRecentEvents_DeviceLadder_AppliedRung, TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor",
    "stories 45,47 — engagement event carries WHAT only, no actor on event/detail/drill-in; who stays in ADR 0027 log": "engagement events carry Words 'Remote-support engagement opened/ended' and no actor field (OpsEvent has none); TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor asserts opener 'Ana' appears in no field",
    "story 8 — each event carries rescue's own words verbatim and its own outcome token": "incidentEvents sets Words=rung note / ladder summary verbatim + outcome tokens opened/applied/failed/recovered; asserted failed.Words==failNote, recovered.Words==recoveredNote",
    "story 19 — a failed rung sets the owner's problem flag": "incidentEvents sets Problem=true for RungFailed; TestRecentEvents_ServiceLadder_OpenedFailedRecovered asserts failed.Problem",
    "story 56 — window bound honoured, only in-window events returned": "opsevent.Window.Contains filters open/rung events; TestRecentEvents_WindowBoundHonoured asserts pre-window opened event excluded, in-window rung returned",
    "story 31 — each event carries rescue's own drill-in intent (the ladder)": "ladderDrillIn sets DrillIn{Label:'Rescue ladder',Target:'rescue',Ref:incident} on every event; test asserts non-empty DrillIn on all events"
  },
  "summary": "rescue gains an additive RecentEvents(window) face on its ladder and engagement seams deriving typed ops events — the WHAT only, no actor, no new store.",
  "blockers": []
}
**close-report** for #829 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 829, "status": "success", "commits": [ "a00fcdfde02a327808f7739d47334190c5acc48c" ], "changed_files": [ "STATUS.md", "internal/opsevent/opsevent.go", "internal/rescue/recentevents.go", "internal/rescue/recentevents_test.go" ], "tests": [ { "command": "go test ./internal/rescue/... ./internal/opsevent/...", "exit_code": 0 }, { "command": "go vet ./internal/rescue/... ./internal/opsevent/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "story 56 — RecentEvents(window) derives rescue opened, rung applied, rung failed, recovered, and remote-support engagement opened/ended; no new table/file/stream/collector": "internal/rescue/recentevents.go RecentEvents on ServiceLadders/DeviceLadders/Engagements derive from existing in-memory ladder/engagement state only; TestRecentEvents_ServiceLadder_OpenedFailedRecovered, TestRecentEvents_DeviceLadder_AppliedRung, TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor", "stories 45,47 — engagement event carries WHAT only, no actor on event/detail/drill-in; who stays in ADR 0027 log": "engagement events carry Words 'Remote-support engagement opened/ended' and no actor field (OpsEvent has none); TestRecentEvents_Engagement_OpenedAndEndedCarryNoActor asserts opener 'Ana' appears in no field", "story 8 — each event carries rescue's own words verbatim and its own outcome token": "incidentEvents sets Words=rung note / ladder summary verbatim + outcome tokens opened/applied/failed/recovered; asserted failed.Words==failNote, recovered.Words==recoveredNote", "story 19 — a failed rung sets the owner's problem flag": "incidentEvents sets Problem=true for RungFailed; TestRecentEvents_ServiceLadder_OpenedFailedRecovered asserts failed.Problem", "story 56 — window bound honoured, only in-window events returned": "opsevent.Window.Contains filters open/rung events; TestRecentEvents_WindowBoundHonoured asserts pre-window opened event excluded, in-window rung returned", "story 31 — each event carries rescue's own drill-in intent (the ladder)": "ladderDrillIn sets DrillIn{Label:'Rescue ladder',Target:'rescue',Ref:incident} on every event; test asserts non-empty DrillIn on all events" }, "summary": "rescue gains an additive RecentEvents(window) face on its ladder and engagement seams deriving typed ops events — the WHAT only, no actor, no new store.", "blockers": [] } ``` </details>
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#829
No description provided.