Spell — Manifest

Triage idea and todo books across ventures

Documented for v1.24.1 · Checked

Edit on GitHubView at v1.24.1

At a glance

Field Value
Invoke as /spell-manifest
Argument Optional --venture <slug> to restrict triage to one venture's books
Agent agent
When to use Use PROACTIVELY in a hub repo to triage idea-book/todo-book entries downstream.

Executive Summary

  • This prompt is the promotion step of the idea lifecycle: it takes status: new entries out of hub-side IDEAS.md/TODO.md books and lands them where they actually get built — a consumer repo, a tracker, a PRD, or (deliberately, never by accident) a public disclosure.
  • Hub-gated: requires role: "hub" in .arcane.json. Refuses cleanly in a consumer repo.
  • Batch-capable: list entries once, select by number/range, route each (or all identically), execute with one final confirmation — except disclosure, which is never covered by a batch confirmation and always requires its own literal answer.
  • Every downstream write is leak-scanned first: no sibling venture names, no hub paths, no machine names ever land in a consumer artifact.
  • Idempotent: promoted entries are marked in place, so re-running never double-lands the same idea.

Step 0 — Hub Gate

Read .arcane.json. If role is not "hub", stop and report:

spell-manifest runs only in a hub repo (role: "hub" in .arcane.json). This repo is a consumer — triage its own IDEAS.md/TODO.md with spell-todo (task), spell-suggest-feature (tracked story), or spell-plan (PRD) instead.

Do not read or list anything further. If role is "hub", resolve {BUSINESS_ROOT} from .arcane.json (default ventures/) and load {BUSINESS_ROOT}/registry.json. If the registry is missing or fails to parse, stop and report the exact error — never triage blind without knowing the venture list (sibling names come from here, and the leak scan in Step 5 depends on it).

Step 1 — Collect

Parse status: new entries from the hub root IDEAS.md and every {BUSINESS_ROOT}/<slug>/IDEAS.md / TODO.md that exists. If --venture <slug> was given, resolve it through the registry's aliases first (exact slug → alias → closest match offered — never guessed; unknown slug lists the closest matches and stops) and restrict collection to that venture's two books plus the hub root.

Tolerate operator YAML frontmatter above a book's header — entries always live below the --- divider. Malformed entries (missing timestamp, unparseable status comment) are listed under a Skipped heading with file:line, never silently dropped.

Status-comment grammar. A status comment is <!-- status: <state>[; <key>: <value>]... -->. The first field is the status itself, unchanged from before: new, promoted → <dest> YYYY-MM-DD, or dropped YYYY-MM-DD with an optional (reason). Zero or more ; <key>: <value> fields may follow it. spell-todo --sweep --validate writes three of them: value and fit (each y, n or ?) and dup (none, or a short reference). Both forms parse:

<!-- status: new -->
<!-- status: new; value: y; fit: y; dup: none -->
  • Splitting: split the comment body on ; only where the next segment starts with a lowercase key: . A ; anywhere else — inside a drop reason, say — stays part of the field it is in.
  • Deciding new: only the first field does. An entry is collected when that field is exactly status: new, with or without fields after it.
  • Unknown fields: an unknown key, or a known key with an unexpected value, is ignored and shown as-is. It never moves the entry to Skipped.
  • Unparseable: a comment is unparseable, and the entry goes to Skipped, when it does not open with status:, is not closed with -->, or its first field is not exactly new, promoted … or dropped … (a typo such as status: nwe or status: New is reported, never silently left out of both lists).

Step 2 — List

Print one numbered list, grouped by book, oldest entry first within each group. Numbering is session-scoped — it does not persist across runs.

Idea triage — hub books (N books, M new entries)

hub IDEAS.md
  1. [2026-08-02] [#dx] Portfolio-wide spell usage stats dashboard
ventures/ordovica/IDEAS.md
  2. [2026-07-30] [#ui] Dark-mode toggle for event pages
ventures/ordovica/TODO.md
  3. [ ] Confirm cart snapshot order (open item, no status comment — todo-book entries are listed as-is)

An entry whose status comment carries validation fields (Step 1's grammar) shows them after its text — for example (value: y, fit: n, dup: none) — so that the operator can leave out fit: n entries, or ones marked as duplicates, when selecting in Step 3. An entry without them is listed exactly as before.

Step 3 — Select

Ask: Promote which? (numbers/ranges, e.g. 1,3,5-8, or "all"). Accept a single answer covering the whole batch. all selects every listed entry, including ones in books outside --venture if no filter was given.

Step 4 — Route (per entry)

For each selected entry, in list order, resolve the venture it belongs to (hub for root-book entries) and offer destinations. The menu depends on that venture's registry entry:

# Destination Requires What lands
a Consumer repo-root IDEAS.md a registered clone on this machine New entry, status: new, fresh timestamp
b PRD scaffold in consumer features/<slug>/PRD.md a registered clone spell-plan-style stub: Problem Statement = idea text; tracking frontmatter from that repo's own .arcane.json; open question noting no work-item ID exists yet
c Tracker item venture tracking != "none" ADO: resolve process template + work item type, az boards work-item create. GitHub: gh issue create --repo <owner>/<repo>. Works without a local clone.
d Public disclosure to that repo's IDEAS.md a registered clone, destination visibility: "public" Same as (a) — but gated by Step 5's disclosure confirm, always
e Demote to a TODO book — Venture's own TODO.md (or hub root TODO.md for hub-book entries), as a - [ ] line
f Drop — Nothing lands
g Cross-copy to another venture's book target venture exists in registry Fresh status: new entry appended to that venture's book

If the venture has no registered repo (repos: [], e.g. an idea-stage venture), only (e), (f), (g) are offered. Typing same for any entry after the first repeats the previous entry's destination.

Once every selected entry has a destination, print one consolidated plan — per the generated state diagrams convention (rule 8, ARC-036), built only from the routing already decided in this step; skip entirely (the applicability guard) for a single selected entry going to a single destination — routing a lone entry has no topology to visualize:

Flowchart; its Mermaid source follows.
Diagram source
flowchart LR
   E1["#1 dark-mode toggle"] --> A["(a) repo IDEAS.md"]
   E2["#2 cart snapshot"] --> Eroute["(e) demote to TODO"]
   A --> Ordovica[ordovica]

One node per selected entry (its list number + a short title fragment), pointing to its chosen destination letter; where the destination names a specific venture or repo, a further node names it, matching the batch's actual routing rather than a fixed shape. Then ask Proceed? (go / edit / cancel). This confirmation covers ordinary destinations only — it never authorizes a disclosure; see Step 5.

Step 5 — Disclosure Gate

The gate is keyed on the destination repository's visibility, never on the destination letter. An entry is a disclosure when the repository its text would land in — that repo's tree, its tracker, or anything else it publishes — has visibility: "public" in the registry, whatever route puts it there. There is deliberately no list of covered destinations: an enumerated list is how a route slips through. A PRD scaffold (b) writes the idea text into the public repo's tree, so it is a disclosure; so is a tracker item filed on a public repo (a GitHub issue on a public repo is exactly as much a disclosure as its IDEAS.md), and so is any destination added to Step 4 later. If the destination repository's visibility is missing from the registry, treat it as public.

A disclosure is never covered by all, go, or any other batch confirmation. Per entry, print the exact text that will become public and ask for the literal word disclose. Anything else skips that one entry (it stays status: new) without aborting the rest of the batch. Enforcement: structured spell gate (ARC-023) — a public-destination entry is written only after the operator's own literal disclose for that entry; a timeout, cancellation, or host-generated fallback is not consent and skips the entry.

On a repo's first-ever disclosure (its IDEAS.md has no existing entries with a promoted → public: marker), offer to add this boundary statement to that file's header in the same staged change:

Build-in-public covers source, decisions, and the accepted roadmap; idea incubation is curated and lands here when committed.

Step 6 — Execute

Per entry, in list order: land downstream first, mark the hub entry after. Before writing anything to a consumer repo, run the leak scan (Step 7) on the outbound text; a hit blocks that entry and asks for an operator rewrite rather than writing leaked content. After a successful downstream write, mark the hub entry:

<!-- status: promoted → <dest> YYYY-MM-DD -->

where <dest> is one of:

repo:<slug>/IDEAS.md
prd:<slug>/features/<feature-slug>
ado:<slug>#<id>
github:<slug>#<id>                    (append " (disclosed)" if the repo is public)
public:<slug>/IDEAS.md (disclosed)
hub:TODO.md
book:<other-slug>/IDEAS.md

Any marker whose destination repository is public ends in (disclosed) — whichever route landed it, because Step 5 gated it as a disclosure.

Tracker-id suffix. When route (c) files a tracker item, append the new work item's id to the hub entry's text as a suffix — before its status comment — in the format governance/development-methodology.md defines once under "Tracker-ID Suffix on Captured Items" for that tracker's provider ([AB#<id>] Azure DevOps, [#<id>] GitHub, the issue key for Jira). Use only the id the create command returned. The promoted marker still names the repo (github:<slug>#<id>), which is what disambiguates a GitHub suffix inside a hub book. An entry that already carries a suffix keeps it unchanged wherever it lands. No tracker item filed means no suffix: entries routed without a tracker (and every internal-mode flow) are written exactly as before.

Dropped entries get <!-- status: dropped YYYY-MM-DD -->, optionally with a trailing (reason).

Validation fields already in an entry's comment (Step 1's grammar) are kept after the new first field when it is marked, e.g. <!-- status: dropped 2026-09-27; value: n; fit: y; dup: none -->. An entry without them gets exactly the marker above.

Before any downstream write, grep the target file for the entry's normalized first ~40 characters — if already present, treat this entry as already-landed, mark the hub entry promoted, and skip the write. This is what makes an interrupted or re-run batch safe.

Step 7 — Leak Scan

Before writing outbound text to any consumer or public destination, scan it. Outbound text is the idea text and the entry's tag ([#tag]): the tag travels with the entry into whatever the destination copies it into (an IDEAS.md line, a tracker label or title), so a tag is outbound text like any other. Enforcement: structured spell gate (ARC-023) — a hit in either field blocks that entry's write until the operator rewrites it or keeps it in the book. Scan both for:

  • Every other venture's slug and aliases from the registry (never the destination's own)
  • Hub path fragments ({BUSINESS_ROOT} paths, this repo's own root-relative paths)
  • Machine names (the clones keys across the registry)
  • This repo's org-token denylist, if .arcane.json/config defines one

A hit blocks the write and reports exactly what matched; offer the operator a rewrite or keep in book (leave the entry status: new, untouched). This scan is only possible hub-side, because only the hub holds the full sibling list — that asymmetry is deliberate, not a gap: a consumer repo could never run this check on itself without first being handed the very list it must never see.

Step 8 — Report

Stage (never commit) the touched files in each repo that received a write, including this hub repo. Print one proposed commit message per repo:

Staged (not committed):
  hub:            ventures/ordovica/IDEAS.md
                  proposed: docs(ideas): promote 1 entry to ordovica
  ordovica:       IDEAS.md
                  proposed: docs(ideas): capture dark-mode toggle candidate
Run spell-commit-work in each repo. N entries remain new.

Rules

  • Never run outside a hub repo. Never infer hub status.
  • A disclosure is any entry whose destination repository is public, whatever the destination (Step 5). Never let all or the plan-confirm authorize a disclosure — that confirmation is always separate, always per-entry, always the literal word disclose.
  • Never write a sibling venture's slug, a hub path, or a machine name into a consumer or public artifact — the leak scan is mandatory, not advisory.
  • Never commit. Stage and report; hand off to spell-commit-work.
  • Never guess a venture from partial input — resolve through the registry's aliases or ask.
  • Land downstream before marking the hub entry promoted, so an interrupted batch never loses track of what actually shipped.

Was this page helpful?

Your answer

Please don't include personal information.