MindAttic.Agency/SPEC
MindAttic.Agency — 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.mdsays which part of this the current milestone delivers.
1. Product definition
In the ecosystem (docs/ECOSYSTEM.md at the workspace root): Platform: owns the agent standard (shared rules, hooks, commands, the run menu, the brochure and docs pipeline, and the workspace waterfall generator).
MindAttic.Agency is the MindAttic Agent Standard: the one canonical copy of the provider-neutral rules, commands (abilities), hooks, subagent roles, runner, deploy library and documentation generators that every MindAttic repo and every agent CLI (Claude Code, OpenAI Codex, Kimi Code, Google Antigravity/agy) uses. It is for the owner and for every agent working in the workspace. The finished product: any CLI that opens any MindAttic repo gets the same rules and commands with no per-repo setup; the gates enforce those rules; every app deploys and every repo documents itself the same way; the workspace-root mirror is byte-identical to this repo; and the standard changes only when a real rule changes. It is also the home of org-wide tickets for the workspace root.
2. Scope boundary
2.1 In the product
- The rules:
MINDATTIC_AGENT.mdgolden rules,AGENTS.md, house laws, templates (BIBLE, RELEASE, SPEC). - Abilities written once in
shared/abilities/and rendered to every CLI, plus the catalogs. - The portable runner
prose-agent.ps1and the handoff registry. - Hooks: test gate, commit-msg, commit gate, pace, context and rate-limit gates; their installers.
- Repo onboarding:
clone-repo.ps1,install.ps1,sync-workspace-copy.ps1. - Subagent roles (
shared/roles/) and utility commands (/allocate,/deploy,/publish,/flush,/poll,/research,/psst, member commands). - The shared app deploy:
deploy-lib.ps1, the run menu template,publish-app.ps1. - Docs surfaces: brochure generator, README pointer, docs-site pipeline.
- Ops runbooks shared across repos (
docs/ops/), including the Hetzner host for public web apps.
2.2 Never in the product
- Per-repo or per-provider copies of a command or rule: every command is written once and rendered.
- Branches or worktrees for agent work: everything lands on
mainin the shared checkout. /commit allor any command that commits several tickets at once: it breaks one ticket per commit.- Azure tooling (
/kickstart, Azure Static Web Apps, Azure SQL): Azure is decommissioned (MAT-T297). - New apps or repos filed here (Unreal.Space, Mods.Mech5Mercs.CoopPartner, a systems-of-record dashboard, MindAttic.Relay): each belongs to its own repo.
- Claude Team SSO and login-rebalance policy: Orchestrator concerns.
- Open-ended sweeps (exhaustive bughunts, RAM hunts, unasked test runs) and one-off operational chores.
- A UI: the Orchestrator, Tickets and Launcher are their own apps.
3. Users and roles
- The owner: sets the rules, approves work, runs the commands, wants control over scope.
- An agent CLI (any provider, any login): reads the rules, uses the commands, is held by the gates.
- A coordinator or subagent: works one task under a role definition, commits by path, closes its ticket.
- A sibling repo: consumes pointers, hooks, the run menu, the brochure workflow and the templates.
- MindAttic.Orchestrator / Tickets / Launcher / Docs: apps that implement or read parts of this standard.
4. Requirements
Status is built (closed ticket, with evidence) or the milestone that delivers it: MS-20 (active), MS-94 or MS-95 (planned, in build order, see §7). Every unbuilt story is approved and prioritised; the planner splits a story into tasks when the queue reaches it.
E1. Shared rules — MAT-T401 — built
F1.1 Golden rules — MAT-T402 — built
- S1.1.1 One rule set for every CLI — MAT-T403 — built. As any agent CLI, I read
MINDATTIC_AGENT.mdthenAGENTS.md, so every repo and provider follows the same rules. Given a new repo, wheninstall.ps1runs, then it holds only a thin pointer. Evidence:install.ps1. - S1.1.2 Every request is a ticket — MAT-T457 — built. Given a commit without a real ticket ID, when it is made, then the commit-msg hook refuses it. Evidence:
shared/hooks/commit-msg. - S1.1.3 Work runs through an epic tree — MAT-T404 — built. Given open work, then only leaf tasks under a prioritised epic > feature tree are worked. Evidence: 1817ea4, M.ORCH-T1901.
- S1.1.4 Each repo has one milestone charter — MAT-T405 — built. Evidence: MAT-T319,
templates/RELEASE.md. - S1.1.5 Each repo has a complete product spec — MAT-T406 — built (rule and template; the per-repo rollout is MAT-T360). Evidence: 41504de,
templates/SPEC.md. - S1.1.6 Docs are exhaustive and ship with code — MAT-T407 — built. Evidence: 3f9dd24 (MAT-T354).
- S1.1.7 Artifacts live in the repo — MAT-T408 — built. Evidence: 26ff586 (HOUSE-LAW-12).
E2. Cross-CLI commands — MAT-T409 — built
F2.1 Abilities rendered per CLI — MAT-T410 — built
- S2.1.1 Write once, run on every CLI — MAT-T411 — built. Given an ability in
shared/abilities/, whenrender-abilities.ps1runs, then Claude, Codex, Kimi and agy each get it at their own extension point. - S2.1.2 Claude-only abilities marked honestly — MAT-T412 — built. Evidence:
docs/claude-only-abilities.md. - S2.1.3 Hook behaviour confirmed per CLI — MAT-T413 — built. Evidence:
docs/hook-contract-matrix.md. - S2.1.4 Commands per org member — MAT-T414 — built. Evidence:
shared/member-commands.ps1. - S2.1.5 Codex command catalog — MAT-T415 — built. Evidence:
shared/codex-command-catalog.md.
F2.2 Portable runner and handoffs — MAT-T416 — built
- S2.2.1 Quicksave a session — MAT-T417 — built. Given a session, when
/quicksaveruns, then a handoff with a unique adjective-animal code is registered. - S2.2.2 Quickload from any login — MAT-T418 — built. Given a code, when
/quickload <code>runs on any login, then that handoff is restored and the code archived. - S2.2.3 List pending quicksaves — MAT-T419 — built (MAT-T109).
- S2.2.4 Nickname a handoff — MAT-T420 — built (MAT-T110).
- S2.2.5 See running subagents — MAT-T421 — built (
agent-progress.ps1).
E3. Hooks and gates — MAT-T422 — built
F3.1 Enforcing gates — MAT-T423 — built
- S3.1.1 Test gate — MAT-T424 — built. Given my latest prompt did not ask for tests, when an agent runs a test runner, then it is refused (MAT-T121).
- S3.1.2 Ticketed commits — MAT-T425 — built.
- S3.1.3 Shared-checkout commit gate — MAT-T426 — built (M.ORCH-T1530).
- S3.1.4 Pace and context gates — MAT-T427 — built.
- S3.1.5 Hooks wired into every CLI — MAT-T428 — built (
install-hooks.ps1).
E4. Repo onboarding and roles — MAT-T429 — built
F4.1 Repo onboarding — MAT-T430 — built
- S4.1.1 Clone a repo the standard way — MAT-T431 — built. Given a repo name, when
clone-repo.ps1runs, then it is cloned, taggedwipand offered by the Launcher. - S4.1.2 Thin pointers in every repo — MAT-T432 — built.
- S4.1.3 Mirror drift check — MAT-T433 — built (
sync-workspace-copy.ps1 -Check, MAT-T50).
F4.2 Roles and utility commands — MAT-T434 — built
- S4.2.1 Subagent roles defined once — MAT-T435 — built.
- S4.2.2 Allocate open tickets — MAT-T436 — built.
- S4.2.3 Deploy and publish routers — MAT-T437 — built.
- S4.2.4 Flush and poll — MAT-T438 — built.
- S4.2.5 Research on another login — MAT-T439 — built.
- S4.2.6 Psst notifications — MAT-T440 — built.
E5. Docs surfaces — MAT-T441 — built
F5.1 Brochure, pointer and docs site — MAT-T442 — built
- S5.1.1 Brochure page per public repo — MAT-T443 — built (MAT-T356/T357).
- S5.1.2 README points to the wiki — MAT-T444 — built (MAT-T355/T359).
- S5.1.3 Docs site for docs-by-design repos — MAT-T445 — built (MAT-T351).
E6. One coherent source — MAT-T332 — MS-20 (priority 900)
Agency and the mirror are identical, the docs match behaviour, retired tooling is gone.
F6.1 Mirror matches Agency — MAT-T334 — MS-20 (990)
Given sync-workspace-copy.ps1 -Check, then it reports no drift.
- MAT-T217 — port mirror-only edits back into Agency.
- MAT-T340 — copy the BIBLE, RELEASE and SPEC templates into Agency.
- MAT-T341 — re-render, re-export, sync and confirm no drift (requires MAT-T217, MAT-T340).
F6.2 Rules match behaviour — MAT-T335 — MS-20 (980)
Given an agent reads AGENTS.md and docs/overview.md, then the guards, claim flow and scripts it learns are the ones that run.
- MAT-T107 — document the Orchestrator memory guard.
- MAT-T134 — document
TempRetentionHours. - MAT-T137 — hand-start runs
orchestrator claimbeforetickets ticket working. - MAT-T342 — rewrite
docs/overview.mdfor Agency and list every script.
F6.3 No Azure tooling remains — MAT-T336 — MS-20 (970)
- MAT-T253 — delete
/kickstarteverywhere.
F6.4 Workspace root holds only live repos — MAT-T337 — MS-20 (960)
- MAT-T11 — delete the retired
codex-standard/README.htm engine. - MAT-T49 — drop archived and misnamed repos from
docs/workspace-repos.json.
F6.5 Complete product on paper — MAT-T360 — MS-20 (900)
Every repo gets docs/SPEC.md mirrored in its tree; one job ticket per repo family, MAT-T361..MAT-T400.
E7. Commit and hook safety — MAT-T333 — MS-20 (priority 800)
F7.1 Commit integrity — MAT-T338 — MS-20 (890)
Given two agents commit at once in one checkout, then neither commit takes the other's message or files.
- MAT-T135 — serialize commits per repo with a pre-/post-commit lock.
- MAT-T158 — the commit gate override can name dotfiles.
- MAT-T133 —
/allocatelands with fetch + merge, never--autostash.
F7.2 Hooks and commands behave as documented — MAT-T339 — MS-20 (880)
- MAT-T131 —
/crossrepo onmeans all. - MAT-T164 — the
[Billing]line warns when a login folder is signed in as another email.
E8. Every app deploys one way to R: — MAT-T256 — MS-20 (priority 700)
Every app-kind repo deploys through deploy-lib.ps1 and the run menu to R:\MindAttic\Apps\<repo>\{Debug,Release}.
F8.1 Shared deploy library and run menu — MAT-T446 — built
- S8.1.1 One run menu per app — MAT-T447 — built (cd2ae0a, b590b0f).
- S8.1.2 Debug and Release land on R: — MAT-T448 — built (5003055, e15f055).
- S8.1.3 publish-app.ps1 thin caller — MAT-T449 — built (5d6a413).
F8.2 Per-repo deploy rollout — MAT-T260 — MS-20 (790)
Each story holds the per-repo tasks filed in those repos; each repo schedules its own under its own charter.
- S8.2.1 Launcher pilot — MAT-T288 — MS-20; task MAT-T289 (dry-run
publish-app.ps1 -Alland/deploy). - S8.2.2 Plain .NET apps — MAT-T290 — MS-20.
- S8.2.3 Unity players — MAT-T291 — MS-20.
- S8.2.4 Unreal packages — MAT-T292 — MS-20.
- S8.2.5 RusNet and IdiotProof overrides — MAT-T293 — MS-20.
- S8.2.6 Mod repos that are apps — MAT-T318 — MS-20.
F8.3 No C: deploys remain — MAT-T261 — MS-20 (780)
Per repo, once its R: deploy is verified, its old C:\Apps folder goes; per-repo tasks live in those repos.
- MAT-T294 — remove
C:\Apps\MindAtticonce empty.
E9. Public web hosted on Hetzner — MAT-T221 — MS-94 (priority 600)
Web apps that need a public host run on the one Hetzner server mindattic-01; Gadfly runs there today by hand (docs/ops/hetzner-deploy-pipeline.md, 287d0f6).
F9.1 GitHub deploy pipeline — MAT-T236 — MS-94 (690)
- S9.1.1 One-command redeploy — MAT-T237 — MS-94. As the owner, I redeploy any hosted web app with one command instead of following the runbook by hand. Given a push or
/deploy, then the app is rebuilt and restarted onmindattic-01.
F9.2 Hosting polish and release — MAT-T458 — MS-94 (680)
- S9.2.1 Owner signs off hosting — MAT-T459 — MS-94. Given a push or
/deploy, then the app is live onmindattic-01anddocs/opsmatches what was run.
E10. Cross-CLI parity — MAT-T450 — MS-95 (priority 500)
F10.1 Verified non-Claude hooks — MAT-T451 — MS-95 (590)
- S10.1.1 Kimi and agy deny enforcement — MAT-T452 — MS-95. Given the test gate refuses a call, then it is confirmed refused on Kimi and agy, and the matrix says so.
- S10.1.2 Codex subagent and notification events — MAT-T453 — MS-95.
F10.2 Claude-only abilities elsewhere — MAT-T454 — MS-95 (580)
- S10.2.1 Research on non-Claude logins — MAT-T455 — MS-95 (requires MAT-T452).
- S10.2.2 Same-session status wakeups — MAT-T456 — MS-95.
F10.3 Parity polish and release — MAT-T460 — MS-95 (570)
- S10.3.1 Owner signs off parity — MAT-T461 — MS-95. Given the hook matrix and the claude-only list, then every row is verified or marked impossible with evidence.
Outside this tree
- MAT-T319 (portfolio reset, 2026-11-27) and its phases MAT-T323..T325: the reset's own record.
- MAT-T358: GridGame.Unity's rename coordination task, part of GG-T2261 in GridGame.Unity's tree.
5. Non-functional requirements
- Windows PowerShell 5.1 compatible scripts; Python 3 hooks; no other runtime required.
- Hooks fail open: an error in a gate allows the call.
- No credential in any file; placeholders only. The brochure build refuses a file that looks like a secret.
- Generated files (
shared/commands/, catalogs) are never hand-edited.
6. Interfaces and dependencies
Platform repos used, by concern: the plan: MindAttic.Tickets; agent execution: MindAttic.Orchestrator; credentials: MindAttic.Vault; public web hosting: the Hetzner server (this repo, MS-94); docs site: MindAttic.Docs and the wiki.
- Uses: the
ticketsCLI (MindAttic.Tickets),orchestrator(MindAttic.Orchestrator, pacing, claims, allocation),gh,git, MindAttic.Psst, MindAttic.Launcher (roster restart). - Used by: every MindAttic repo (pointers, commit hooks, run menu, brochure workflow, templates), every CLI's global commands and hooks, MindAttic.Docs (README pointer marker, docs-pages.yml).
- Mirror:
D:\Projects\MindAttic\mindattic-agent-standard\must match this repo (sync-workspace-copy.ps1).
7. Release sequence
- MS-20 Agent standard 1.0: one coherent source (active,
docs/RELEASE.md): E6, E7, E8. - MS-94 MindAttic.Agency 1.1 Hosting (planned): E9.
- MS-95 MindAttic.Agency 1.2 Cross-CLI parity (planned): E10, the finished product. After 1.2 the standard is finished; it changes only when a real rule changes.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from AGENTS.md, BIBLE, RELEASE, docs, commit log and the ticket history. Hetzner hosting moved from out of scope to planned milestone MS-94, since Gadfly now runs on mindattic-01; cross-CLI parity is MS-95.
|
MAT-T366 |
| 2026-11-30 | MAT-T462 single-source pass: 7 renamed (E8 Every app deploys one way to R:, E9 Public web hosted on Hetzner, features no longer named as chores); 0 buckets dissolved; 2 requires added (Hetzner pipeline MAT-T236 waits on the R: rollout MAT-T260, MS-95 waits on the MS-94 polish MAT-T458); 0 platform re-points | MAT-T464 |