prompts › Consolidate.Prompt
Run the consolidation routine: combine every repository in this lineage into a single consolidated repository named for the family's range, then archive the members. This is the terminal phase of the lifecycle — after it, the lineage is one repo.
Read lifecycle.yml first — the lineage, the consolidation.naming_rule, and the consolidation.layout parameterize everything.
Preconditions¶
- Run the check-lifecycle skill. Proceed only if it reports phase
consolidate: the lineage (excluding the referenceorigin) has ≥consolidate_at_membersmembers and this repo is the newest member (only the newest member ever consolidates — it is the one whose lineage list is complete). - The newest member has finished its growth generation before this fires (the gate requires
generation_ticks ≥ replant_after_ticks), so it has a full generation of content like the others — never consolidate a half-grown final member. It is stillgrowing(it hit budget but consolidates instead of replanting): finish Part A of the replant prompt first (finalize in place — settle structure, compact roadmap, sync seed, mark mature) — but do not spawn a successor. Every other member is alreadymature. - Confirm repo-creation and archive permissions. In CI the ambient GitHub token is scoped to this repo only — use the
LIFECYCLE_PATenvironment variable (GH_TOKEN="$LIFECYCLE_PAT" gh …) for creating the consolidated repo, pushing to members, and archiving them. With--dry-run, skip all writes and emit the plan only.
Procedure¶
- Name the consolidated repo by applying
consolidation.naming_ruleto the lineage's subjects (e.g. members 2005…2011 →2005-2011). - Create the consolidated repository under the same owner and clone it.
- Merge content per
consolidation.layout— one top-level directory per member, named by its subject slug: - copy each member's category directories and topic files under
<member-slug>/…; - copy each member's
seed.mdto<member-slug>/seed.mdunchanged — every Evolution Log is preserved verbatim; - copy each member's
README.mdto<member-slug>/README.md. - Write the consolidated root:
seed.md— a new Concept Definition spanning the combined range (e.g. subject "the years 2005–2011"; scope = union of member scopes; taxonomy = the shared taxonomy); §8 starts with a### Consolidation — <date>genesis entry listing the merged members;README.md— title for the range, a member table linking each<member-slug>/section, and a note on the lineage's origin;lifecycle.yml— carry thepolicyforward; setstate.status: consolidated,state.granularity: <policy.consolidation.deepen_granularity, default month>,state.next_lineage_planted: null, lineage rewritten to the single consolidated entry. This primes the expand phase: the consolidated repo is not terminal — its own cron will deepen it (month-level) and seed the next era's lineage via/expand..github/+.claude/layers copied verbatim (includinggrow.yml,telemetry.yml,learn.yml, and theexpandprompt/command), so the consolidated repo keeps expanding via its own scheduled runs.- Regenerate structure — run the build-structure skill at the root: a master
INDEX.mdandTIMELINE.mdspanning all members, plus per-member index links. - Verify — every member directory present; per-member seeds' Evolution Logs intact; no content files lost (compare file counts per member before/after).
- Publish the consolidated repo (commit + push to its
main). - Retire the members — for each member repo: set
lifecycle.ymlstate.status: consolidated, add a README bannerConsolidated into <owner>/<range-name>, push, then archive the repository on GitHub (read-only). Never delete.
Output Format¶
## Consolidation Summary
**Consolidated repo**: <owner>/<range-name> (pushed <SHA>)
**Members merged**: <m> — <slug list>
**Content moved**: <files> topic files, <rows> table rows, <m> evolution logs preserved
**Members archived**: <list | dry-run: none>
**Next**: the consolidated repo's cron runs `/expand` — deepens to month granularity and seeds the next lineage (`policy.succession.next_lineage`)