--- name: hora-spec-horizon description: Stage 2 of /hora-spec. Narrow the release to the fewest use cases somebody needs, and split the rest into deferred-with-a-seam and never-built. Writes the implementation scope, the build order, and the version's own acceptance criteria. Invoked by /hora-spec, or directly. --- # hora-spec-horizon **Stage 2 of `/hora-spec`.** Decide what this release builds, what it deliberately leaves for later, and what it will never build — and keep the three apart. Read `../hora/references/structure.md` and `../hora-spec/references/principles.md` first. **`../hora/references/asking.md` fixes how anything here is put to a person** — a check, a proposal or a question, each with the question tool as its default. **`../hora-spec/references/stages.md` is the authority on this stage's exit condition.** **This stage reads nothing new, and one thing stage 1 wrote down for it.** What already exists is stage 1's finding; **what to build next is a decision, and no repository holds one.** Every question here is a question or a proposal — there is nothing to put up as a check. **The one thing to read is `.hora/spec//_stages.md`**, where stage 1 recorded the criteria that reached past the feature they were drafted for ("The version's own acceptance criteria", below). --- ## What this stage decides ``` which of stage 1's use cases this release serves which are deferred, and what unblocks each one which are never built which seams the deferred ones need kept replaceable in what order the release builds what it builds which behaviors belong to the version rather than to any one feature ``` ## What it must not decide | | Whose it is | |---|---| | a new use case | **stage 1.** If one turns up here, go back and state it there first | | how a seam is built | stage 4, and the package's own skills | | whether a deferred item is technically possible | nobody, yet. It is deferred | | the version number a deferred item lands in, where nobody has decided one | leave it as "no version yet", with the trigger | --- ## The narrowing **A release carrying too much is the default outcome, not a risk** (`../hora-spec/references/principles.md`). Everyone wants everything first, and nothing about writing a document resists it. So this stage resists it. **The question that does the work is not "is this important?"** — everything is important, and asking it produces a list identical to the one you started with. ``` which use case is impossible without this? ``` | The answer | What it means | |---|---| | a use case from stage 1, named | it is in. That use case is the reason | | "it would be nice to have" | it is deferred. Ask what would make it necessary | | a use case nobody stated | **go back to stage 1.** Either the use case is real and belongs there, or the feature has no reason | **A section carrying `` states no use case by declaration, and is not sent back to stage 1 for it** (`../hora/references/spec-format.md`, "`baseline`"). Its silence is somebody's decision, not a hole. **Then say the number out loud.** "This release has eleven features and four of them serve one use case each" is a sentence nobody says to themselves. Propose the split — which four go now, which seven follow, and which use case each group completes. **If the answer is still "all of it", record it and carry on.** State it once, propose the narrowing, and if the decision stands, write a `scope` question naming what was proposed and who declined it. **The decision belongs to whoever asked for the product; saying nothing does not.** ### A narrowing that was declined names when it gets read again **"Never nothing" is this stage's rule about deferred items. It applies to this stage's own decisions too.** A `scope` question records what was proposed and who declined it, and that is where the record stops today: nothing states when the decision would be worth reading again, and nothing reads it. **The condition does not go in the question.** A condition is a decision, and `.hora/` holds no decisions (`../hora/references/structure.md`, "Where a lever lives"). It goes into the implementation scope, in the owner's own words, shown and approved like every other line of that section (`../hora/references/spec-format.md`, "4. Implementation scope"): ```markdown ### Built this time (1.0.0) - ... the features ... Reconsider 1.0.0's scope when: milestone 1 closes with more than four features unaccepted, or any one feature is sent back twice. ``` **Three properties make it a condition rather than a wish. It names the version it binds** — the reach a lever states where it is declared (`../hora/references/structure.md`, "Where a lever lives"): this version alone, dead the moment a later scope section is written. **It is measurable against what `.hora/` already records** — the plan's boxes read with §14's milestones ("milestone 1 closes" is every feature §14 places there standing `[x]`), the blocks in `.hora/acceptance/`, the question file. And **somebody reads it**: `/hora-plan` walks the line on re-entry and raises it once (`../hora-plan/SKILL.md`, "6. Reconcile on re-entry"). "If 1.0.0 overruns" has none of the three. **Propose it; do not write it unasked.** Where the owner names no condition, record that too — a declined narrowing with no re-reading is a decision somebody made with their eyes open. --- ## The three lists are three lists **Nothing about this is a formality.** The two kinds of out-of-scope produce opposite designs, and `/hora-plan` carries each into every feature file as a constraint: | The list | What the design does | What a feature file gets | |---|---|---| | **built this time** | build it | the feature itself | | **out of scope for now** (to be built later) | **leave a seam. Keep what is behind it replaceable** | `Constraint: leave room for …` | | **permanently out of scope** | **do not abstract it. Exclude it** | `Constraint: … is permanently out of scope. Build no bypass layer` | **Read the first as the second and the structure cannot take it later. Read the second as the first and an abstraction layer gets built that nobody uses.** Both are expensive, and both are cheap to avoid here. **Every "for now" entry names what unblocks it.** A version, or a condition — never nothing. ```markdown ### Out of scope for now (to be built later) - Payroll export → planned for 1.1.0. Needs the confirmed monthly totals - Notifications by anything other than email → no version yet. Once a client asks for one. Seam: the notification channel is chosen at one place, not at each call site - Full-text search → no version yet. Once staff records pass ~100k. Seam: the attendance list's query is one class, replaceable without touching the screen ``` **A foreseen requirement with no seam named is a wish, not a design constraint.** The seam is the whole content of the entry — it is what stage 4 has to honor and what `/hora-plan` copies into the feature file. **Ask for the ones nobody has mentioned.** A single tenant that becomes several, an email channel that becomes a choice, a report that becomes scheduled, one language that becomes two, one currency, one timezone. Each is a sentence now and a rewrite later. **Propose them; do not write them unasked.** --- ## Delegates **This table lists work, not names.** Match each row against the equipped skills' own descriptions under `.claude/skills/` when you reach it — no name is written here, because a name belongs to the package and a renamed skill stops matching without saying so (`../hora/references/structure.md`, "No hora file ever names one of those skills"). | What is needed | |---| | the out-of-scope list, and what makes a requirement decided rather than assumed | If nothing equipped covers it, say so by the work it names, carry on, and record the gap. --- ## What it writes **Show each section in full and wait for approval** (`../hora-spec/SKILL.md`). ```markdown ## Implementation scope ### Built this time (1.0.0) - Clocking in and out, and the day's list (#attendance) - Filing a forgotten day (#attendance) - Approving a month, and locking the totals (#approval) ### Out of scope for now (to be built later) - Payroll export → planned for 1.1.0. Needs the confirmed monthly totals ### Permanently out of scope - Reading attendance out of the old spreadsheets. The migration is a one-off somebody runs by hand ``` **And the implementation plan, which is the order the release is built in:** ```markdown ## Implementation plan ### Milestone 1 (MVP) 1. Clocking in, and the day's list 2. Filing a forgotten day ### Milestone 2 3. Approving a month ### Fine to leave for later - The export screen's formatting ``` **`/hora-plan` extracts `_plan.md`'s order from this and derives no order of its own**, so an order left unwritten is an order somebody else guesses at. **These are the project's own milestones** — they have nothing to do with `/hora-build`'s eighteen checkpoints, which are the same for every feature. **Check that "fine to leave for later" and "out of scope for now" agree.** Where they do not clearly correspond, `/hora-plan` stops and asks, so settle it here. ### The order has to agree with `depends`, and this is the stage that owns both **Every feature comes after every feature it depends on.** The order written here is what `/hora-plan` extracts, so an order that contradicts a `depends` edge is settled here or nowhere. **Nothing downstream reports the contradiction, which is why it is checked at the source.** `/hora-build` takes the first feature whose `depends` are satisfied, so a plan listing `#payroll` before the `#attendance` it depends on does not fail — the run silently builds them in a different order than the document states. Only a cycle stops anything. **Walk it once, in order, and check each feature's `depends` against what is already above it.** An edge pointing forward is one of two things, and they are settled differently: | What it turns out to be | What happens | |---|---| | the order is wrong | reorder here, and say which two moved | | the dependency is wrong | it belongs to whichever stage stated it — a `depends` that describes the design goes back to **stage 4** | **A `depends` naming a listed feature is satisfied by the running code and orders nothing** (`../hora/references/spec-format.md`, "`baseline`"). Nothing is scheduled ahead of a listed feature and nothing waits behind one, so it is skipped in this walk rather than treated as an unsatisfiable edge. ### The version's own acceptance criteria **A feature's criteria stop at that feature's gate. This section holds the behavior that does not fit inside any one of them** (`../hora/references/spec-format.md`, "A criterion is checked at its own feature's gate"), and it is this stage's because it is the stage that already holds the order — deciding that a behavior spans three features rather than reordering two of them is a horizon decision, not a use-case one. ```markdown ## 15. Version acceptance criteria ### 1.0.0 - a newly hired member of staff signs up, clocks in, and appears in the admin's list spans: #sign-up, #attendance, #user-admin ``` **What arrives here is stage 1's held-back list, in `.hora/spec//_stages.md`**, plus whatever the walk above turned up (`../hora-spec-usecases/SKILL.md`). **Read it before this section is written.** **Take each one and try the three destinations in order** — reorder, a section of its own, or this section (`../hora/references/spec-format.md`). **The third is last, and this stage is where the discipline actually holds**: a criterion here is checked once, at the end of the version, instead of at a gate that runs while the code is one commit old. Say the number out loud, the way the narrowing above does — "eleven features, and nine criteria that nobody's feature owns" is a sentence that gets a spec reordered. **Every criterion carries `spans:`, and `none` is written where the version has none.** Both are the format's requirements, and both are the difference between a sweep that can route a finding and one that cannot. **A criterion that reaches a feature the spec only listed carries `rests on: # (not accepted)`.** That line is what keeps a pass from hiding what it rested on, and it is approved as part of the section's text like everything else (`../hora/references/spec-format.md`, "`baseline`"). ### The second number **Say it once the plan and the version's own criteria stand.** The first number counts features and is said during the narrowing; this one cannot be, because its inputs are this stage's own later work — the implementation plan's boundaries and the version's own block. So it is the stage's last act: take **this version's own `###` block alone** — criteria carried over from earlier versions belong to products already shipped — walk the implementation plan's order, and count the criteria whose `spans:` are satisfied by the features built by each milestone boundary. Two readings are findings rather than numbers, and each re-opens the narrowing above: every criterion waits for the last milestone -> propose where the version could be cut ("Splitting a version under way", below), and name what the cut would let somebody ship the plan has one milestone -> that is the finding itself. Nothing in this version can be shown to work until all of it does **A version whose own block reads `none` reports `none`, and nothing else is computed.** Record both numbers in `.hora/spec//_stages.md`, whatever they say — the number nobody wrote down is the one nobody argued with. --- ## Splitting a version under way **A version that cannot finish is not the same as a version that was scoped wrong, and only one of them is fixed here.** This section is for the second: the features already accepted make a product somebody could use, and the rest are holding it. 1. **Only an unreleased version is split** — judged by the tag in the hora repository, the same test `/hora-plan` already applies. A released one is left alone and the work goes into the next version. 2. **The cut is at the last accepted feature, and nothing unaccepted stays on the release's side of it.** Every unaccepted feature moves — and each one holding any implementation (one under way, or one an acceptance finding sent back) is one question, asked with what each answer costs: **move it** — its code raises a removal task this version pays before it releases, and the next version rebuilds it from checkpoint 1 — or **finish it first**, and the split waits for its gate and cuts after it. There is no third answer: a cut that kept an unaccepted feature would tag work nobody accepted. 3. **Walk `depends` before anything is annotated.** Every remaining feature whose `depends` names a moving one is a finding: either it moves too, or the edge was wrong. **One at a time, and never decided here** — a `depends` that describes the design goes back to stage 4. 4. Each moving feature gets `kicked: yes`, in this version's own file — it is unreleased, so it is editable (1.). **Nothing is deleted** — absent cannot be told from deleted under the diff scheme — **and nothing is written on the next version's side.** The revival travels in the handoff (9.). 5. **The implementation scope says why**, because `kicked` forbids the body saying it (`../hora/references/spec-format.md`, "`kicked`"). Every moving feature becomes an "out of scope for now" entry naming the version it lands in and the seam it needs kept open, and §14's "fine to leave for later" is brought into correspondence with it in the same pass. 6. **A seam written here constrains versions to come, and nothing on this side.** At the cut nothing is under way (2.), the code the seam would have shaped is already accepted, and no digest of the scope section reaches a feature's checkpoints (`../hora-plan/SKILL.md`, section 6). The one work left on this side is removal (2.), which builds nothing a seam could bind. Raise no rework against an accepted feature for a seam this split invented. 7. **The version's own criteria are re-cut, and this is the body of the procedure.** A criterion whose `spans:` names only moving features moves with them. One that spans both sides is either moved whole or split in two, **decided one criterion at a time, through show-the-text-and-wait**. A half left on this side is still checked by every later sweep, because these criteria accumulate. One that spans a feature dropped outright (9.) is re-cut the same way, and nothing of it is handed off. 8. Re-derive §14, and the build order with it. 9. **What moves travels as the handoff, and the handoff is the whole of what leaves this version.** Into `.hora/spec//_stages.md` go the moving features' ids — the revival lines to be — and each moved criterion, verbatim: the same shape as stage 1's held-back list, in the same file this stage already reads ("The version's own acceptance criteria", above), across a version boundary — which is inside that file's own charter, "what one stage handed to a later one" (`../hora/references/structure.md`, "What lives in `.hora/`"). **Write the handoff before the first `kicked: yes` lands.** A run that dies between the two then errs toward a handoff naming features nobody kicked — which the next version's approval catches — never toward a defer that silently became a drop. **A handoff decides nothing**: stage 2 of the next version shows each revival line and each criterion and waits, like any section, and **marks the handoff consumed in the same file once the last of it has been settled** — landed or declined. A revival declined there leaves the feature kicked, which is drop, arrived at later, with its criteria re-cut the same way. A feature the owner drops outright at the split is `kicked: yes` with no handoff entry — the third of the three ways out, taken during the fourth. 10. **Create `specs//` empty — the drop-off directories and no `spec.md` — and write no spec text into it.** The next version's number is the owner's, asked once here and validated later by `/hora-plan`'s versioning check like any other. The emptiness is the routing: `/hora`'s step 1 and `/hora-plan`'s own rule both hand a version with no spec to `/hora-spec`, whose stage 2 consumes the handoff. **The next version's spec is written by `/hora-spec`, never here and never by `/hora-plan`** (`../hora-plan/SKILL.md`, "Never write the first spec of a version here"). Stage 1 carries over where the split adds no feature and no actor. 11. **Run stage 7's mechanical pass on the resolved document before the split is done.** A stage re-entered re-runs the review (`../hora-spec-review/SKILL.md`), and the checks that matter here are mechanical: no criterion left on this side whose `spans:` names a moved feature, §4 and §14 in correspondence, every remaining `depends` satisfied behind its feature. 12. **Record the split in this version's `_stages.md`** — the cut, what moved, each disposition and who decided it. "Decided in conversation, and not visible in `spec.md`" is the section that exists for exactly this. 13. **The rest is `/hora-plan`'s existing reconciliation, and no new machinery is built for it**: entries move to `## Withdrawn`, the sweep's `Version criteria:` line is re-derived, and a moving feature that was implemented raises a removal task under the rule that already covers one. **A removal task carries a checkbox** — it is built and swept like any work, before this version releases. **A split does not reduce what gets verified.** The unit suites still run whole repositories at every gate, and the next version's sweep still reaches every `[x]` feature of every earlier version in ascending order (`../hora-accept/SKILL.md`, "What is in scope"). What moves is the release point, not the cost — and that is the whole of what this section claims. --- ## Exit condition Three separate lists; every "for now" entry naming what unblocks it and the seam it needs kept open; the build order written, **with every feature after every feature it depends on**; and the version's own acceptance criteria written — **`none` where the version has none, and every criterion carrying `spans:`**. `../hora-spec/references/stages.md` is the authority. --- ## When it sends the run back | Found here | Goes to | |---|---| | a use case nobody stated at stage 1 | **stage 1** | | an actor who only exists for a deferred feature | stage 1, to have the actor's own release stated | | a `depends` edge that describes the design wrongly, not just the order | **stage 4** | | a criterion stage 1 held back that turns out to need a use case nobody stated | **stage 1** | --- ## References | File | Content | |---|---| | `../hora/references/asking.md` | **a check, a proposal or a question** — and the question tool this stage defaults to | | `../hora-spec/SKILL.md` | the approval rule, the state file, the closing report | | `../hora-spec/references/stages.md` | this stage's exit condition | | `../hora-spec/references/principles.md` | "A release carrying too much is the normal failure", and "Build for now. Design for what was named" | | `../hora/references/spec-format.md` | "Implementation scope", the two kinds of out-of-scope, **"A criterion is checked at its own feature's gate"** and **"15. Version acceptance criteria"** | | `../hora-plan/SKILL.md` | how both kinds become a feature file's `Constraint:`, and how a forward reference is stopped |