rescue: remote-support-engagement — community-initiated Tier-2, time-boxed grants #98

Closed
opened 2026-07-25 05:00:25 +00:00 by ben · 3 comments
Owner

Parent

Feature spec: #21 (rescue).

What to build

When a service or device ladder is exhausted, the operator can open a Tier-2 remote-support engagement (P8-S6) rather than face a wall of red — outside help is always something the community asks for, never something imposed. The engagement is community-initiated, stamped with who opened it (e.g. "opened by Ana, operator"), and states plainly that the Matou Collective cannot open one; the incident's evidence is bundled at request (ADR 0089).

Within an open engagement, the operator can share a log bundle so a supporter diagnoses without any fleet access (an audit-logged grant), and optionally grant a supporter key — a time-boxed operator key scoped to the engagement, showing its expiry counting down, revocable in one action (cutting the mesh and SSH sides together), and auto-revoked at expiry. Closing the engagement revokes anything still standing, is audit-logged, and lets the alert resolve back to watching (P5-S1). An exhausted service ladder (story 9) opens this engagement with the worked ladder's evidence already bundled (DDR 0088 §7).

Thin UI over the rescue orchestrator; supporter keys are minted through the operator-key ledger's discipline (ADR 0089). Note the honest limit inherited from ADR 0089: no supporter key without a live control plane — the app-side Tier-2 start (log bundle only) is the situation-probe / break-glass tracks' concern, not this slice's.

Acceptance criteria

  • (story 9) Given every rung has been tried and named failed, when the service ladder is exhausted, then P8-S1 shows the exhausted state ("bigger than the ladder — time for the next tier") and offers Request remote support (P8-S6) with the worked ladder's evidence already bundled (DDR 0088 §7).
  • (story 17) Given an exhausted ladder, when the operator requests remote support, then P8-S6 opens an engagement stamped community-initiated (e.g. "opened by Ana, operator") and states the Matou Collective cannot open one; the incident's evidence is bundled at request.
  • (story 18) Given an open engagement, when the operator shares the log bundle, then the worked ladder with every rung's tried/failed log is shared, and this grant is audit-logged.
  • (story 19) Given an open engagement, when the operator optionally grants a supporter key, then it is a time-boxed operator key scoped to the engagement, shows its expiry counting down, is revocable in one action (cutting mesh and SSH sides together), and is auto-revoked at expiry (ADR 0089).
  • (story 20) Given an engagement with grants standing, when the operator closes it, then anything still granted is revoked with it, the closure is audit-logged, and the alert then resolves (back to P5-S1).

Blocked by

  • #96 — exhausted service ladder opens the engagement
  • #95 — exhausted device ladder opens the engagement
  • #32 — supporter key rides the key ledger's mint/revoke

Task manifest

task: rescue:remote-support-engagement
implements_flow: p8-rescue
implements_edge: S1→S6, S2→S6, S6→S6, S6→P5-S1
wireframe: docs/ux/wireframes/p8-rescue/p8-s6-remote-support.html
interface: rescue orchestrator (control plane) — open a community-initiated engagement (Matou cannot); bundle incident evidence; share log bundle (audit-logged); optionally grant a time-boxed supporter key (revocable in one action, auto-revoked at expiry); close revokes all standing grants and resolves the alert
seam: rescue orchestrator seam tests (control plane, Go) — in-memory engagement + operator-key ledger, a fake clock (assert supporter-key expiry countdown and auto-revocation), fake clan for the mesh+SSH cut; assert open → bundle → key-grant → auto-revoke → close-revokes-all
acceptance:
  - given: an exhausted service ladder
    when: the ladder is exhausted
    then: P8-S1 shows the exhausted state and offers Request remote support (P8-S6) with the worked ladder's evidence bundled (DDR 0088 §7)
  - given: an exhausted ladder
    when: remote support is requested
    then: P8-S6 opens a community-initiated engagement (stamped with who opened it), states Matou cannot open one, and bundles the incident evidence
  - given: an open engagement
    when: the operator shares the log bundle
    then: the worked ladder with every rung's tried/failed log is shared, and the grant is audit-logged
  - given: an open engagement
    when: a supporter key is granted
    then: it is a time-boxed operator key scoped to the engagement, shows its expiry counting down, is revocable in one action (mesh+SSH together), and auto-revokes at expiry (ADR 0089)
  - given: an engagement with grants standing
    when: it is closed
    then: standing grants are revoked, the closure is audit-logged, and the alert resolves (P5-S1)
depends_on: [service-ladder, device-ladder, operator-key-ledger]
out_of_scope:
  - the operator-key ledger surface itself — operator-key-ledger's
  - the app-side Tier-2 start (log bundle while the control plane is down) — breakglass-actions-run's
  - ladder mechanics and exhaustion — service-ladder's / device-ladder's
needs_human_decision:
  - "Tier-2 contact channel — how the community first reaches Matou to request remote support"
## Parent Feature spec: #21 (rescue). ## What to build When a service or device ladder is exhausted, the operator can open a **Tier-2 remote-support engagement** (P8-S6) rather than face a wall of red — outside help is always something the community asks for, never something imposed. The engagement is **community-initiated**, stamped with who opened it (e.g. "opened by Ana, operator"), and states plainly that the Matou Collective cannot open one; the incident's evidence is bundled at request (ADR 0089). Within an open engagement, the operator can **share a log bundle** so a supporter diagnoses without any fleet access (an audit-logged grant), and **optionally grant a supporter key** — a time-boxed operator key scoped to the engagement, showing its expiry counting down, **revocable in one action** (cutting the mesh and SSH sides together), and **auto-revoked at expiry**. **Closing** the engagement revokes anything still standing, is audit-logged, and lets the alert resolve back to watching (P5-S1). An exhausted service ladder (story 9) opens this engagement with the worked ladder's evidence already bundled (DDR 0088 §7). Thin UI over the `rescue` orchestrator; supporter keys are minted through the operator-key ledger's discipline (ADR 0089). Note the honest limit inherited from ADR 0089: no supporter key without a live control plane — the app-side Tier-2 start (log bundle only) is the situation-probe / break-glass tracks' concern, not this slice's. ## Acceptance criteria - [ ] (story 9) Given every rung has been tried and named failed, when the service ladder is exhausted, then P8-S1 shows the exhausted state ("bigger than the ladder — time for the next tier") and offers Request remote support (P8-S6) with the worked ladder's evidence already bundled (DDR 0088 §7). - [ ] (story 17) Given an exhausted ladder, when the operator requests remote support, then P8-S6 opens an engagement stamped community-initiated (e.g. "opened by Ana, operator") and states the Matou Collective cannot open one; the incident's evidence is bundled at request. - [ ] (story 18) Given an open engagement, when the operator shares the log bundle, then the worked ladder with every rung's tried/failed log is shared, and this grant is audit-logged. - [ ] (story 19) Given an open engagement, when the operator optionally grants a supporter key, then it is a time-boxed operator key scoped to the engagement, shows its expiry counting down, is revocable in one action (cutting mesh and SSH sides together), and is auto-revoked at expiry (ADR 0089). - [ ] (story 20) Given an engagement with grants standing, when the operator closes it, then anything still granted is revoked with it, the closure is audit-logged, and the alert then resolves (back to P5-S1). ## Blocked by - #96 — exhausted service ladder opens the engagement - #95 — exhausted device ladder opens the engagement - #32 — supporter key rides the key ledger's mint/revoke ## Task manifest ```yaml task: rescue:remote-support-engagement implements_flow: p8-rescue implements_edge: S1→S6, S2→S6, S6→S6, S6→P5-S1 wireframe: docs/ux/wireframes/p8-rescue/p8-s6-remote-support.html interface: rescue orchestrator (control plane) — open a community-initiated engagement (Matou cannot); bundle incident evidence; share log bundle (audit-logged); optionally grant a time-boxed supporter key (revocable in one action, auto-revoked at expiry); close revokes all standing grants and resolves the alert seam: rescue orchestrator seam tests (control plane, Go) — in-memory engagement + operator-key ledger, a fake clock (assert supporter-key expiry countdown and auto-revocation), fake clan for the mesh+SSH cut; assert open → bundle → key-grant → auto-revoke → close-revokes-all acceptance: - given: an exhausted service ladder when: the ladder is exhausted then: P8-S1 shows the exhausted state and offers Request remote support (P8-S6) with the worked ladder's evidence bundled (DDR 0088 §7) - given: an exhausted ladder when: remote support is requested then: P8-S6 opens a community-initiated engagement (stamped with who opened it), states Matou cannot open one, and bundles the incident evidence - given: an open engagement when: the operator shares the log bundle then: the worked ladder with every rung's tried/failed log is shared, and the grant is audit-logged - given: an open engagement when: a supporter key is granted then: it is a time-boxed operator key scoped to the engagement, shows its expiry counting down, is revocable in one action (mesh+SSH together), and auto-revokes at expiry (ADR 0089) - given: an engagement with grants standing when: it is closed then: standing grants are revoked, the closure is audit-logged, and the alert resolves (P5-S1) depends_on: [service-ladder, device-ladder, operator-key-ledger] out_of_scope: - the operator-key ledger surface itself — operator-key-ledger's - the app-side Tier-2 start (log bundle while the control plane is down) — breakglass-actions-run's - ladder mechanics and exhaustion — service-ladder's / device-ladder's needs_human_decision: - "Tier-2 contact channel — how the community first reaches Matou to request remote support" ```
Author
Owner

This was generated by AI during triage.

Triage: routed ready-for-human

Judgement call, not a spec gap: the parent feature's carried decision (noted in STATUS.md) is "Tier-2 contact channel — how the community first reaches Matou to request remote support." The engagement lifecycle itself — community-initiated stamping, log-bundle sharing, time-boxed revocable supporter keys, auto-revoke at expiry, and audit-logged close — is fully specified against the rescue orchestrator and ADR 0089's discipline.

What needs deciding: the contact channel by which an operator's Tier-2 request actually reaches a human at Matou (e.g. a support inbox, a ticketing system, a chat channel) — a support-operations decision about Matou's own staffing/tooling, not something derivable from the fleet-side spec.

Not blocking: the in-app engagement UI (open/share/grant/revoke/close) can be built now against a stubbed notification target; only the real delivery endpoint waits on the human call.

> *This was generated by AI during triage.* ## Triage: routed `ready-for-human` **Judgement call, not a spec gap:** the parent feature's carried decision (noted in STATUS.md) is *"Tier-2 contact channel — how the community first reaches Matou to request remote support."* The engagement lifecycle itself — community-initiated stamping, log-bundle sharing, time-boxed revocable supporter keys, auto-revoke at expiry, and audit-logged close — is fully specified against the `rescue` orchestrator and ADR 0089's discipline. **What needs deciding:** the **contact channel** by which an operator's Tier-2 request actually reaches a human at Matou (e.g. a support inbox, a ticketing system, a chat channel) — a support-operations decision about Matou's own staffing/tooling, not something derivable from the fleet-side spec. **Not blocking:** the in-app engagement UI (open/share/grant/revoke/close) can be built now against a stubbed notification target; only the real delivery endpoint waits on the human call.
Author
Owner

Human decision: Tier-2 contact channel (resolves needs_human_decision)

Ruled by Ben, 2026-07-25. The ticket moves to ready-for-agent.

Tier-2 requests reach Matou by email to a support inbox

When the operator opens a remote-support engagement (P8-S6), the control plane sends an email to Matou's support address — support@matou.nz — carrying the engagement reference, who opened it (the community-initiated stamp), and the evidence-bundle link. The mail is sent from Matou-operated infrastructure as notify@mail.matou.nz, the same sender/channel ruled for the monitoring Notifier in #85 — one outbound-mail dependency, not two. Matou responds by email; no ticketing system or chat channel at v1.

Build note: the seam keeps faking the notification target as specified — this ruling fixes what the real implementation behind the port is (an email submission to support@matou.nz via Matou mail), not the engagement lifecycle, which is unchanged. The P8-S6 screen can state the channel plainly ("your request has been emailed to Matou support").

## Human decision: Tier-2 contact channel (resolves `needs_human_decision`) Ruled by Ben, 2026-07-25. The ticket moves to `ready-for-agent`. ### Tier-2 requests reach Matou by **email to a support inbox** When the operator opens a remote-support engagement (P8-S6), the control plane sends an **email to Matou's support address — `support@matou.nz`** — carrying the engagement reference, who opened it (the community-initiated stamp), and the evidence-bundle link. The mail is sent **from Matou-operated infrastructure as `notify@mail.matou.nz`**, the same sender/channel ruled for the monitoring Notifier in #85 — one outbound-mail dependency, not two. Matou responds by email; no ticketing system or chat channel at v1. **Build note:** the seam keeps faking the notification target as specified — this ruling fixes what the real implementation behind the port is (an email submission to `support@matou.nz` via Matou mail), not the engagement lifecycle, which is unchanged. The P8-S6 screen can state the channel plainly ("your request has been emailed to Matou support").
Author
Owner

Shipped in 5fc07e7 (on origin/main).

Seam (internal/rescue/remotesupport.go, control plane, ADR 0086): new Engagements face over the existing operator-key Keyring and the shared AlertResolver.

  • Story 17 — Open opens a community-initiated engagement stamped with who opened it (e.g. "opened by Ana, operator"), states the Matou Collective cannot open one (an unattributed open is refused — there is no collective path), and bundles the incident evidence at request (DDR 0088 §7).
  • Story 18 — ShareLogBundle shares the worked ladder with every rung's tried/failed log, an audit-logged grant.
  • Story 19 — GrantSupporterKey mints a time-boxed supporter key through the operator-key ledger's discipline (Keyring.Mint, KindSupporter+TTL); the view shows its expiry counting down, RevokeSupporterKey rides Keyring.Revoke cutting mesh+SSH together (ADR 0087) in one action, and past its expiry the ledger reads it expired — auto-revoked, the time-box IS the revocation.
  • Story 20 — Close revokes anything still standing, is audit-logged, and resolves the monitoring alert back to watching (edge S6 → P5-S1).
  • Story 9 is the already-merged service ladder's (exhausted P8-S1 offers Request remote support with evidence bundled); this slice opens the engagement that button requests.

UI (P8-S6, wireframe contract): RemoteSupportScreen.vue / RemoteSupportSurface.vue + lib/remoteSupport.ts (client + fake), mounted in dashboard/src/index.ts — opened line, incident, the two grants (log bundle + supporter key with an HH:MM:SS countdown), revoke-in-one-action, close, and the closed engagement's revocations + audit line; every data-field/data-action/data-status the wireframe names.

Tests: 6 Go seam tests (internal/rescue/remotesupport_test.go — in-memory engagement + operator-key ledger, a movable clock for the countdown/auto-revoke, the fake identity side for the mesh+SSH cut, the fake alert resolver; open → bundle → key-grant → auto-revoke → close-revokes-all) + 6 Vue tests (dashboard/tests/unit/rescueRemoteSupport.test.ts). Full Go + dashboard suites green (382 dashboard tests, vue-tsc clean).

Honest limit inherited from ADR 0089 (no supporter key without a live control plane) stays the app-side break-glass tracks'. The Tier-2 contact channel (how the community first reaches Matou) stays needs_human_decision — the engagement lifecycle needs no channel to build or test.

Shipped in `5fc07e7` (on `origin/main`). **Seam** (`internal/rescue/remotesupport.go`, control plane, ADR 0086): new `Engagements` face over the existing operator-key `Keyring` and the shared `AlertResolver`. - **Story 17** — `Open` opens a community-initiated engagement stamped with who opened it (e.g. "opened by Ana, operator"), states the Matou Collective cannot open one (an unattributed open is refused — there is no collective path), and bundles the incident evidence at request (DDR 0088 §7). - **Story 18** — `ShareLogBundle` shares the worked ladder with every rung's tried/failed log, an audit-logged grant. - **Story 19** — `GrantSupporterKey` mints a time-boxed supporter key through the operator-key ledger's discipline (`Keyring.Mint`, `KindSupporter`+TTL); the view shows its expiry counting down, `RevokeSupporterKey` rides `Keyring.Revoke` cutting mesh+SSH together (ADR 0087) in one action, and past its expiry the ledger reads it `expired` — auto-revoked, the time-box IS the revocation. - **Story 20** — `Close` revokes anything still standing, is audit-logged, and resolves the monitoring alert back to watching (edge S6 → P5-S1). - **Story 9** is the already-merged service ladder's (exhausted P8-S1 offers Request remote support with evidence bundled); this slice opens the engagement that button requests. **UI** (P8-S6, wireframe contract): `RemoteSupportScreen.vue` / `RemoteSupportSurface.vue` + `lib/remoteSupport.ts` (client + fake), mounted in `dashboard/src/index.ts` — opened line, incident, the two grants (log bundle + supporter key with an HH:MM:SS countdown), revoke-in-one-action, close, and the closed engagement's revocations + audit line; every `data-field`/`data-action`/`data-status` the wireframe names. **Tests**: 6 Go seam tests (`internal/rescue/remotesupport_test.go` — in-memory engagement + operator-key ledger, a movable clock for the countdown/auto-revoke, the fake identity side for the mesh+SSH cut, the fake alert resolver; open → bundle → key-grant → auto-revoke → close-revokes-all) + 6 Vue tests (`dashboard/tests/unit/rescueRemoteSupport.test.ts`). Full Go + dashboard suites green (382 dashboard tests, `vue-tsc` clean). Honest limit inherited from ADR 0089 (no supporter key without a live control plane) stays the app-side break-glass tracks'. The Tier-2 **contact channel** (how the community first reaches Matou) stays `needs_human_decision` — the engagement lifecycle needs no channel to build or test.
ben closed this issue 2026-07-26 02:30:35 +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#98
No description provided.