Jump to content

MindAttic.Agency/single-source

From MindAttic Docs

Single source: nested-hierarchy abstraction and reverse traversal (MAT-T462)

The owner, 2026-11-30: each feature as abstract as it can be, each epic made of the most abstract features, everything in line with everything else because it all comes from one vision, and everything accounted for and ready to work asynchronously, building block by building block, to a harmonious end. (Formerly called "source to sea"; renamed on the owner's direction, DNHA-T32.)

This is the method every repo's plan follows. The vision is docs/ECOSYSTEM.md at the workspace root.

1. Planning runs down from the single source

  1. Source: docs/ECOSYSTEM.md (the owner's vision and the one-owner-per-concern table).
  2. Repo: docs/SPEC.md §1 says which part of the vision the repo serves; §6 names the platform repos it uses.
  3. Milestones: docs/RELEASE.md and SPEC §7, in build order, the last being the finished product.
  4. Epics, features, stories, tasks: the ticket tree, mirrored one to one in SPEC §4.

2. The abstraction rubric

Each level answers a different question, and a level's name never mentions anything that belongs to the level below it.

Level Answers Written as Must not contain Size
Epic What outcome does the product deliver? An outcome a user would recognise: "Vault owns every credential" Files, classes, screens, tools, verbs like "fix", "refactor", "cleanup" 2-6 features
Feature What capability makes that outcome true? A capability: "Check and diagnose every key" Files, classes, specific endpoints 1-6 stories
Story What behaviour does someone see? "As a <role>, I want <capability>, so that <outcome>" + Given/When/Then Implementation steps 1-5 tasks
Task What code changes, in one session? Concrete files and changes, one ~80k-token unit Anything bigger than one commit 1 commit

Tests for each parent and its children:

  • Covers: finishing every child makes the parent true; nothing the parent promises is missing a child.
  • Disjoint: no two siblings overlap; work that two features both need belongs to one of them, which the other requires.
  • No buckets: no epic or feature named "misc", "loose ends", "cleanup", "polish" or "hygiene" on its own. Polish belongs to the feature it polishes; the only exception is a milestone's closing polish-and-release feature, whose stories are named (fit and finish, docs current, owner sign-off).
  • One owner: a story that needs a platform concern does not implement it; it requires the owner repo's story.
  • No orphan levels: a feature with one story and a story with one task are fine; an epic with one feature should be re-checked: either the epic is really that feature, or sibling features are missing.

3. Building runs up: reverse traversal

  • Only leaf tasks are worked. A story with no tasks gets a plan pass (split into tasks) when the queue reaches it.
  • requires links, within and across repos, form one dependency graph. The waterfall layers it into waves: wave 0 is every open leaf with no open prerequisite; wave n is every leaf whose prerequisites all sit in earlier waves. Everything in one wave can run in parallel, in any repo, on any login.
  • Closing rolls up: the last task closes its story, the last story its feature, the last feature its epic, the last epic reaches its milestone.
  • shared/waterfall/build-waterfall.ps1 regenerates docs/waterfall/ from the ticket database.

4. The human's role

The owner works at the source: the vision, the specs, the milestone order, purchases and accounts, and the sign-offs a person must give. Everything below the source is agent work. When an agent can't settle a question from the source, it picks the reading that best fits the vision, records the call in the spec's change log for the owner, and keeps going; when the work no longer fits the vision, it is closed wont-do.

From MindAttic.Agency/docs/single-source.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.