rescue: remote-support-engagement — community-initiated Tier-2, time-boxed grants #98
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
rescueorchestrator; 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
Blocked by
Task manifest
Triage: routed
ready-for-humanJudgement 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
rescueorchestrator 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.
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 asnotify@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.nzvia 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").Shipped in
5fc07e7(onorigin/main).Seam (
internal/rescue/remotesupport.go, control plane, ADR 0086): newEngagementsface over the existing operator-keyKeyringand the sharedAlertResolver.Openopens 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).ShareLogBundleshares the worked ladder with every rung's tried/failed log, an audit-logged grant.GrantSupporterKeymints a time-boxed supporter key through the operator-key ledger's discipline (Keyring.Mint,KindSupporter+TTL); the view shows its expiry counting down,RevokeSupporterKeyridesKeyring.Revokecutting mesh+SSH together (ADR 0087) in one action, and past its expiry the ledger reads itexpired— auto-revoked, the time-box IS the revocation.Closerevokes anything still standing, is audit-logged, and resolves the monitoring alert back to watching (edge S6 → P5-S1).UI (P8-S6, wireframe contract):
RemoteSupportScreen.vue/RemoteSupportSurface.vue+lib/remoteSupport.ts(client + fake), mounted indashboard/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; everydata-field/data-action/data-statusthe 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-tscclean).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.seamis cancelled — the newest published broker binary is b9a3adfd (2026-08-24), two broker commits behind main #864