Jump to content

MindAttic.Launcher/SPEC

From MindAttic Docs

MindAttic.Launcher — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

In the ecosystem (docs/ECOSYSTEM.md at the workspace root): Platform: owns sessions (starting CLIs and per-person logins as tabs).

MindAttic.Launcher is the owner's single Windows binary for running the MindAttic workspace: a Spectre.Console menu plus host, commit, backup, restore and bootstrap commands. It opens any project in an agent CLI (Claude, Codex, Gemini, Kimi) as an Orchestrator-hosted tab signed in as the right person, commits and pushes repos, backs the workspace up every night (files, SQL Server, SQLite, %APPDATA%\MindAttic), restores that backup, and sets up a new machine from nothing. The finished product does all of that from R:\MindAttic\Apps\MindAttic.Launcher, with no Azure dependency, and every menu flow and exit code is covered by a test.

2. Scope boundary

2.1 In the product

  • Agent tabs: the host command and the Open Project Tab menu, per-launch provider choice, per-provider model.
  • Tab status (busy glyph) and broadcast to host tabs.
  • Commit and push one or every project.
  • Backup, restore and bootstrap, plus the nightly backup task's status in the menu.
  • Roster (GitHub repos tagged wip, plus the GunGreenEyes root), discovery, tab colours and schemes.
  • Settings and keys kept in MindAttic.Vault; per-person logins and provider keys at launch.
  • Header status (usage, pace, version, freshness), a Tickets menu, and the R: run menu.

2.2 Never in the product

  • Creating new GitHub repos from the Launcher (M.LNCH-T120): new repos go through mindattic-agent-standard/clone-repo.ps1.
  • Any Azure menu, Kickstart, blob upload or Azure SQL backup path (M.LNCH-T136, T137): Azure is decommissioned (MAT-T297).
  • Retiring MindAttic.Bob's leftovers (M.LNCH-T23): Bob is archived and the leftovers are harmless.
  • Generic cleanup or bughunt sweeps as tickets (M.LNCH-T123, T143).
  • Tab lifecycle the Orchestrator owns, such as reopening a closed Launcher tab (M.LNCH-T101), and the desktop-pin watcher (removed in d2b6479, M.LNCH-T140).
  • An LLM call, deploy pipeline or FTP code of its own (M.LNCH-LAW-5), and a phone web terminal.
  • Cross-platform support: it is net10.0-windows only.

3. Users and roles

  • The owner (Dev) runs the menu and the commands at the desk.
  • The Orchestrator starts host tabs and the Launcher tab itself, passing --account, --model, --agent.
  • MindAttic.Scheduler runs backup --keep 30 nightly (Launcher.NightlyBackup).
  • Other org members each get the Launcher on their own login (WhoIsUsing).

4. Requirements

Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.

E1. Agent tabs — M.LNCH-T168 — built

F1.1 Host command — M.LNCH-T169 — built

  • S1.1.1 Host resolves project and provider — M.LNCH-T170 — built As the Orchestrator, I want host --name <Project> [--provider] to root the agent in the repo, so a tab starts in one step. Acceptance: Given no --provider, when hosting, then the first-listed provider (Claude) runs. Evidence: AgentProviderRegistryTests.
  • S1.1.2 Unknown provider fails loudly — M.LNCH-T171 — built As the owner, I want an unknown provider, empty RunCommand or missing project to exit 4/2/1, so a typo never starts the wrong agent. Acceptance: Given an unknown key, when hosting, then the exit code is non-zero and nothing launches. Evidence: HostAgentCommand.cs.
  • S1.1.3 Quoted RunCommand splits correctly — M.LNCH-T172 — built Acceptance: Given quoted or escaped arguments, when split, then quotes are preserved. Evidence: CommandLineParserTests.
  • S1.1.4 One-session model override — M.LNCH-T141 — built. Evidence: 5a5d8ca.
  • S1.1.5 Agent ID in the CLI environment — M.LNCH-T142 — built. Evidence: 5cc7c08.

F1.2 Open Project Tab — M.LNCH-T173 — built

  • S1.2.1 Pick the CLI per launch — M.LNCH-T174 — built As the owner, I want to pick Claude, Codex, Gemini or Kimi every time I open a project, so nothing is saved per project. Acceptance: Given the menu, when I pick a project, then the picker lists providers in that order and persists nothing.
  • S1.2.2 Per-provider model setting — M.LNCH-T175 — built. Evidence: ProviderModelTests.
  • S1.2.3 Tabs open in the Orchestrator's TermHost — M.LNCH-T83 — built. Evidence: 480c6d7, e15a9bc.
  • S1.2.4 Admin shells and run commands as dashboard tabs — M.LNCH-T125 — built. Evidence: 5a18bf8.

E2. Tab status and remote control — M.LNCH-T176 — built

F2.1 Tab title and broadcast — M.LNCH-T177 — built

  • S2.1.1 Busy or idle tab title — M.LNCH-T178 — built. Evidence: TitlePinnerTests.
  • S2.1.2 Broadcast to host tabs — M.LNCH-T179 — built. Evidence: RemoteControlBroadcasterTests.

E3. Commit and sync — M.LNCH-T180 — built

F3.1 Commit and push — M.LNCH-T181 — built

  • S3.1.1 Auto commit message — M.LNCH-T182 — built As the owner, I want commit-and-push for one or all projects with a message composed from git status, so I don't type one. Acceptance: Given a dirty tree and no message, when committing, then the message groups adds, changes and deletes. Evidence: GitServiceTests.
  • S3.1.2 Unreadable repo is unknown — M.LNCH-T183 — built. Evidence: Status_with_error_is_not_clean_and_short_returns_error.

E4. Backup, restore and bootstrap — M.LNCH-T184 — built

F4.1 Nightly backup — M.LNCH-T185 — built

  • S4.1.1 Collision-safe dated folder — M.LNCH-T186 — built. Evidence: BackupServiceTests.ResolveTargetFolder_*.
  • S4.1.2 Cancelled backup is a failure — M.LNCH-T187 — built.
  • S4.1.3 SQL Server full backups — M.LNCH-T188 — built Acceptance: Given configured databases, when backing up, then each gets a checksummed copy-only .bak namespaced by server. Evidence: SqlBackupServiceTests.
  • S4.1.4 SQLite dumps — M.LNCH-T189 — built. Evidence: SqliteBackupServiceTests.
  • S4.1.5 AppData zip and snapshot excludes — M.LNCH-T190 — built. Evidence: AppDataBackupServiceTests.
  • S4.1.6 Keep the newest N backups — M.LNCH-T191 — built. Evidence: ResolveStaleFolders_*.
  • S4.1.7 No local SQL Server is a clean skip — M.LNCH-T133 — built. Evidence: d075b23.

F4.2 Restore and bootstrap — M.LNCH-T192 — built

  • S4.2.1 Restore from a dated folder — M.LNCH-T193 — built Acceptance: Given a dated backup, when restore --from runs, then AppData, every .bak and every dump are restored, replacing an existing database.
  • S4.2.2 Bootstrap prerequisites — M.LNCH-T194 — built. Evidence: EnsureHard_*.
  • S4.2.3 Bootstrap clones the roster — M.LNCH-T195 — built. Evidence: CloneAll_*.

F4.3 Scheduled backup status — M.LNCH-T196 — built

  • S4.3.1 Backup task status in the menu — M.LNCH-T197 — built. Evidence: ParseQueryCsv_*.

E5. Roster and settings — M.LNCH-T198 — built

F5.1 Roster and discovery — M.LNCH-T199 — built

  • S5.1.1 Discover new repos — M.LNCH-T200 — built. Evidence: FindUnregistered_*.
  • S5.1.2 Readable tab titles — M.LNCH-T201 — built. Evidence: ProjectTests.TabTitle_*.
  • S5.1.3 Tab colour and scheme — M.LNCH-T202 — built. Evidence: WindowsTerminalSchemesTests.
  • S5.1.4 Roster is the wip topic — M.LNCH-T203 — built Acceptance: Given GitHub topics, when the roster loads, then only wip-tagged, non-archived repos show. Evidence: FetchAsync_*.
  • S5.1.5 GunGreenEyes root in the roster — M.LNCH-T131 — built. Evidence: 5a5628e.
  • S5.1.6 Renamed repo heals its remote — M.LNCH-T74 — built. Evidence: 777cfd8.

F5.2 Settings in Vault — M.LNCH-T204 — built

  • S5.2.1 Loss-free settings round trip — M.LNCH-T205 — built. Evidence: SettingsStoreTests.
  • S5.2.2 Settings edited in Vault — M.LNCH-T206 — built. Evidence: c930166.

E6. Identity and credentials — M.LNCH-T207 — built

F6.1 Logins and keys — M.LNCH-T208 — built

  • S6.1.1 Provider keys pushed at launch — M.LNCH-T209 — built Acceptance: Given a Vault key, when a CLI launches, then it receives the key, except Claude with an active claude.ai login. Evidence: ProviderCredentialsTests.
  • S6.1.2 Claude gets the key the Orchestrator bills — M.LNCH-T95 — built. Evidence: fdd77a8.
  • S6.1.3 Who is using the Launcher — M.LNCH-T114 — built. Evidence: e0f1b7b, c4c497e.
  • S6.1.4 API-key login pane setup — M.LNCH-T86 — built. Evidence: 5743715.

E7. Status, freshness and deploy — M.LNCH-T210 — built

F7.1 Header and deploy — M.LNCH-T211 — built

  • S7.1.1 Stale binary warning — M.LNCH-T212 — built. Evidence: BuildFreshnessTests.
  • S7.1.2 Pace from the Orchestrator — M.LNCH-T44 — built.
  • S7.1.3 Whole-number version per commit — M.LNCH-T116 — built. Evidence: 62c4c50.
  • S7.1.4 Run menu deploys to R: — M.LNCH-T213 — built. Evidence: a9cde66, dec96bc.
  • S7.1.5 Tickets menu — M.LNCH-T214 — built. Evidence: Menus/TicketsMenu.cs.

E8. Runs from R: — M.LNCH-T151 — MS-76

F8.1 R: deploy verified — M.LNCH-T152 — MS-76

  • Both R: builds launch, nothing starts a C: copy — M.LNCH-T150 (task)

F8.2 No C: deploys remain — M.LNCH-T153 — MS-76

  • C:\Apps\MindAttic.Launcher deleted — M.LNCH-T146 (task)

F8.3 Docs describe the R: layout — M.LNCH-T161 — MS-76 (970)

  • docs/overview.md and BIBLE state current truth — M.LNCH-T164 (task)

F8.4 Code comments name current exes — M.LNCH-T162 — MS-76 (960)

  • Stale MindAttic.Orchestrator.exe comments fixed — M.LNCH-T165 (task)

E9. Local-only backup — M.LNCH-T154 — MS-76

F9.1 Backups stay local — M.LNCH-T155 — MS-76

  • Remove AzureBlobBackupService and its settings — M.LNCH-T163 (task)

F9.2 Backup menu names the Scheduler — M.LNCH-T156 — MS-76

  • WatchDog text says MindAttic.Scheduler — M.LNCH-T75 (task)

F9.3 No Azure menu — M.LNCH-T215 — MS-76

  • Remove the Azure menu and KickstartService — M.LNCH-T216 (task)

E10. Agent credentials — M.LNCH-T157 — MS-76

F10.1 Provider API keys — M.LNCH-T158 — MS-76

  • Codex CLIs get OPENAI_API_KEY — M.LNCH-T96 (task) Acceptance: Given an OpenAI key in Vault, when a Codex tab launches, then OPENAI_API_KEY is set.

F10.2 Login moves carry the token — M.LNCH-T159 — MS-76

  • A restart-resume onto another login switches the OAuth token — M.LNCH-T70 (task)

(E11 "Docs current", M.LNCH-T160, was a bucket and is dissolved: its features moved into E8, MAT-T462.)

E12. Every flow verified — M.LNCH-T217 — MS-132

F12.1 Open Project Tab spec — M.LNCH-T218 — MS-132

  • S12.1.1 Pure tab spec — M.LNCH-T219 — MS-132 As the owner, I want the tab spec built by a pure, tested helper, so the menu's biggest flow is verified (RFC 0001 option A, M.LNCH-US-A5). Acceptance: Given a project and provider, when the spec is built, then title, colour, scheme, directory and command match.
  • S12.1.2 Provider picker tested — M.LNCH-T220 — MS-132 (requires T219) Acceptance: Given the providers, when the picker runs, then the order is Claude, Codex, Gemini, Kimi and nothing is persisted.

F12.2 Menu smoke tests — M.LNCH-T221 — MS-132

  • S12.2.1 Backup, Commit and Settings smoke — M.LNCH-T222 — MS-132 Acceptance: Given injected services, when each menu is driven, then the right service calls happen; no prompt strings are asserted.
  • S12.2.2 Tickets menu tested — M.LNCH-T223 — MS-132

F12.3 Command exit codes — M.LNCH-T224 — MS-132

  • S12.3.1 host exit codes — M.LNCH-T225 — MS-132 Acceptance: Given an unknown provider, empty RunCommand or missing project, when hosting, then the exit codes are 4, 2 and 1.
  • S12.3.2 commit over a temp repo — M.LNCH-T226 — MS-132

F12.4 Polish and release 1.1 — M.LNCH-T227 — MS-132

  • S12.4.1 Docs match 1.1 — M.LNCH-T228 — MS-132
  • S12.4.2 Owner signs off 1.1 — M.LNCH-T229 — MS-132 (owner hands-on)

5. Non-functional requirements

  • Windows only (net10.0-windows, win-x64); needs Windows Terminal or the Orchestrator's TermHost, git, robocopy, sqlcmd and sqlite3.
  • Builds clean with TreatWarningsAsErrors and nullable enabled; NUnit 4 tests for every pure seam.
  • Secrets only through MindAttic.Vault; settings round-trip loss-free (M.LNCH-LAW-2).
  • A failed external command fails loudly (M.LNCH-LAW-1); Windows Terminal edits are idempotent (M.LNCH-LAW-4).

6. Interfaces and dependencies

Platform repos used, by concern: credentials: MindAttic.Vault (provider keys are read from Vault only and handed to each CLI, M.LNCH-T158 requires M.VALT-T213); agent execution and docking: MindAttic.Orchestrator; scheduled backups: MindAttic.Scheduler; shipping: the run menu.

  • MindAttic.Orchestrator: hosts the Launcher tab and its CLI tabs (TermHost, PaneRequest); supplies pace status.
  • MindAttic.Vault: settings, provider keys, Claude login tokens.
  • MindAttic.Scheduler: runs backup --keep 30 nightly from the R: Release build.
  • MindAttic.Tickets: the Tickets menu and commit engine read the ticket database.
  • GitHub: the wip topic is the roster.

7. Release sequence

  1. MS-76 (active): on R:, local-only backup, correct agent credentials — epics E8, E9, E10, E11.
  2. MS-132: Launcher 1.1, every flow verified — epic E12, ending with polish and release. This is the finished product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from README, BIBLE, USER_STORIES, RFC 0001, code and the ticket history; Azure menu removal added to MS-76; MS-132 added as the finishing milestone MAT-T381
2026-11-30 MAT-T462 single-source pass: 7 renamed; bucket E11 "Docs current" (M.LNCH-T160) dissolved into E8; 2 requires added (provider keys wait on Vault-only resolution M.VALT-T213; MS-132 waits on the verified R: deploy T152); 1 platform re-point (credentials through Vault) MAT-T464
From MindAttic.Launcher/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.