MindAttic.Relay/RELEASE
MindAttic.Relay — Release charter
The one finish line this repo is working toward. Every open ticket in this repo sits under one of the epics below, and every epic is part of the milestone. Work that does not fit is out of scope until this milestone is reached (owner, 2026-11-27, MAT-T319).
1. What this is
A local message exchange (NATS + JetStream run as a Windows service) plus one contracts package and one client library, so MindAttic desktop apps on the same machine send each other events and commands without named pipes.
2. The milestone: MindAttic.Relay 1.0, single-machine bus
- Milestone: MS-8, "Relay 1.0: Orchestrator and Tickets talk over a local Relay"
- Published means: internal tool. The
relayCLI is deployed toR:\MindAttic\Apps\MindAttic.Relay;MindAttic.Relay.ContractsandMindAttic.Relay.Clientare NuGet packages on the workspace feed. - The natural stopping point: one machine runs a pinned, credentialed, loopback-only NATS server installed by
relay install; the contracts and client packages are stable and documented; Orchestrator.Desktop and Tickets.Desktop exchange ticket-changed events and the open-ticket / show-worker commands over Relay, with the named-pipe AppBus kept only as a fallback behind a setting. That replaces a real, working bus with a better one and proves the client on two real consumers. Everything multi-machine is a separate, later decision.
3. Done when (acceptance checks)
Each line is also a tickets milestone check.
- build —
MindAttic.Relay.slnxbuilds clean on main. - exists —
relay.exedeployed underR:\MindAttic\Apps\MindAttic.Relayand the Contracts and Client packages on the workspace NuGet feed. - harness — the client integration tests pass against a throwaway nats-server (publish/subscribe, request/reply, reconnect after server restart, unauthenticated and non-TLS connections refused).
- signoff — the owner changes a ticket in Tickets.Desktop and sees Orchestrator.Desktop update, and uses "open ticket" / "show worker" both ways, with Relay running and with Relay stopped (pipe fallback).
4. Epics, in priority order
| Priority | Epic (ticket) | What it delivers | Features |
|---|---|---|---|
| 1000 | M.RLY-T80 Relay server and CLI | Pinned, credentialed, loopback NATS+JetStream service and the relay CLI
|
M.RLY-T83 Install and run server (1090), M.RLY-T84 Per-app credentials (1080), M.RLY-T85 Diagnostics CLI (1070) |
| 900 | M.RLY-T81 Contracts and client | MindAttic.Relay.Contracts and MindAttic.Relay.Client packages
|
M.RLY-T86 Contracts package (990), M.RLY-T87 Client library (980) |
| 800 | M.RLY-T82 AppBus on Relay | Orchestrator.Desktop and Tickets.Desktop on Relay, pipe fallback; 1.0 shipped | M.RLY-T88 Orchestrator side (890), M.RLY-T89 Tickets.Desktop side (880), M.RLY-T90 Relay standard and docs, the polish-and-release feature (870) |
After MS-8 the release sequence continues in docs/SPEC.md §7: MS-113 Relay 1.1 durable producers (epic M.RLY-T98, 700), MS-114 Relay 2.0 across machines (M.RLY-T110 600, M.RLY-T118 500), MS-115 Relay 3.0 hub-and-spoke Orchestrator (M.RLY-T129 400, M.RLY-T140 300, M.RLY-T149 200, M.RLY-T163 100), the finished product. All of it is approved and queued below MS-8.
5. Out of scope (not before this milestone)
Everything below is planned in a later milestone of the release sequence (docs/SPEC.md §7) and queued after MS-8; what is never in the product is listed in docs/SPEC.md §2.2.
- Across machines: hub and leaf nodes, JetStream domains, source/mirror,
relay join|leave, the hub/leaf prototype (old M.RLY-T10, T46, T72, T73). Nothing at this milestone needs a second machine. - Device credentials and auth callout (old T11, T74–T76): only matter once machines join.
- The whole hub-and-spoke plan (old T13–T30 and T52–T66): hub service, enrollment, presence/meters, terminal streams, grants, ticket replicas and leases, central policy, remote dispatch, hub operations. It was a hand-written plan moved here from Orchestrator; it waits until single-machine Relay is in daily use.
- Outbox package and KdpPublish
prose.book.published(old T7, T9): a third consumer and a second package; the two-app bus proves the design first. - Operator key offline backup runbook, per-organisation accounts, credential revocation (old T43, T70): one machine, one account;
relay installbootstraps operator/account andrelay creds issuecovers per-app users. - Relay page in Orchestrator.Desktop (old T48): the
relayCLI diagnostics are enough for 1.0. - Key-value buckets in the client (part of old T68): no 1.0 consumer uses them.
- Open-ended bug hunts (old T78): real bugs get their own ticket once there is code.
- Browser or phone clients, exactly-once delivery, replacing any app's database (design §12): never in the product (
docs/SPEC.md§2.2).
6. Current verified state
Nothing built. The repo holds the design (docs/design/relay.md, accepted 2026-10-27, commit ba9744e), README, AGENTS.md and the generated docs/USER_STORIES.md. The named-pipe AppBus that this replaces is live today in MindAttic.Orchestrator\src\MindAttic.Orchestrator.Core\Status\AppBus.cs/AppBusHub.cs and MindAttic.Tickets\src\MindAttic.Tickets.Desktop\Bus\AppBus.cs/AppBusClient.cs.
7. Decision record
- 2026-11-27 — charter drafted from README/design/tickets (M.RLY-T79); Legion vote: Approve, 9/9 voters (plurality quorum reached, consensus 1.0); no dissent.
- Triage: 68 open → done 0, duplicate 0, wont-do 54 (including the 7 old container tickets), kept 14, new tasks 2 (M.RLY-T91 solution scaffold, M.RLY-T92 ship 1.0), under 3 new epics and 8 new features.
- M.ORCH-T1201 (Orchestrator's story for the same AppBus move, children M.ORCH-T1923..T1925) was re-parented from the closed M.RLY-T2 to M.RLY-T82; it overlaps M.RLY-T44/T45 and is left for the Orchestrator triage to merge or close.
- 2026-11-30 — MAT-T360 consolidation: 27 open → done 0, superseded 0, wont-do 0, kept 27 (3 epics, 8 features, 16 tasks; nothing is built yet and nothing else replaces Relay). Spec: built 1, active 16, next milestones 44 stories (MS-113, MS-114, MS-115). MS-8 epics re-stamped 1000/900/800 so the active milestone stays first.