Check Lifecycle¶
Decide which phase the next run of this repository should execute: grow, replant, consolidate, or expand. This skill is the gate at the start of every tick and the reconciler at the end of one. It never grows content, spawns repos, or consolidates anything itself — it only reads state, repairs the counter, and reports a decision.
Inputs¶
- lifecycle.yml — policy knobs (
replant_after_ticks,consolidate_at_members, succession/consolidation rules) and current state. - seed.md §8 Evolution Log — the source of truth for tick history.
Procedure¶
- Read
lifecycle.yml. If it does not exist, create it from the template documented in LIFECYCLE.md, inferringlineagefrom the seed's Identity section andgeneration_ticksfrom step 2. - Count generation ticks — if
state.statusismature, the generation is closed andstate.generation_ticksis finalized; skip the §8 recount, skip the write-back, and proceed directly to step 3 (which will reportdormant). Otherwise, count from seed.md §8: the number of growth-tick entries (entries titledTick N: …) appended after the most recentGenesisorReplantentry. Reconcilestate.generation_ticksto this count — §8 wins over the YAML on any disagreement. Stall diagnostic: ifgeneration_ticksdoes not advance despite §8 having new entries, check that the safety-net ingrow.ymltitles its §8 headers with theTick N:scheme (the same formatencode-seeduses). Any other title (e.g. "Growth tick (safety net)") is invisible to this counter and will stall the generation indefinitely. - Decide the phase, in priority order:
consolidate— ifstate.lineage(excludingstate.origin) has ≥consolidate_at_membersentries, this repo is the newest lineage member,state.statusisgrowing, and this member has finished its growth generation (state.generation_ticks≥replant_after_ticks). The final member grows its full generation first, then consolidates instead of replanting (no extra member is spawned). A freshly-spawned final member (ticks < budget) keeps growing — it must NOT be consolidated half-grown.expand— ifstate.statusisconsolidated. Consolidation is not terminal: a consolidated repo keeps growing at a finer time granularity (state.granularity, defaultmonth) and seeds the next era's lineage. Reportexpand, neverdormant, for a consolidated repo.replant— ifstate.generation_ticks≥replant_after_ticksandstate.statusisgrowing(and the consolidate condition above did not fire — i.e. the lineage is below the consolidation threshold, or this is not the newest member).grow— otherwise. Amaturerepo reportsdormant(or runs shepherd mode for the lineage); agrowingrepo under its tick budget reportsgrow.- Write back the reconciled
state.generation_ticks(and nothing else — phase transitions are written by thereplant/consolidate/expandprompts, not by this skill).
Output Format¶
A single decision block:
## Lifecycle Decision
**Phase**: grow | replant | consolidate | dormant
**Generation ticks**: <n> / <replant_after_ticks>
**Lineage size**: <m> / <consolidate_at_members>
**Reason**: <one line>
**Next**: <run a normal tick | run the replant prompt | run the consolidate prompt | nothing — repo is mature/consolidated>