@slope-dev/slope 1.59.2 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/README.md +6 -0
  2. package/dist/cli/actor.d.ts +18 -0
  3. package/dist/cli/actor.d.ts.map +1 -0
  4. package/dist/cli/actor.js +133 -0
  5. package/dist/cli/actor.js.map +1 -0
  6. package/dist/cli/commands/agent.d.ts.map +1 -1
  7. package/dist/cli/commands/agent.js +10 -8
  8. package/dist/cli/commands/agent.js.map +1 -1
  9. package/dist/cli/commands/briefing.d.ts.map +1 -1
  10. package/dist/cli/commands/briefing.js +12 -1
  11. package/dist/cli/commands/briefing.js.map +1 -1
  12. package/dist/cli/commands/claim.d.ts.map +1 -1
  13. package/dist/cli/commands/claim.js +10 -6
  14. package/dist/cli/commands/claim.js.map +1 -1
  15. package/dist/cli/commands/commit-ready.d.ts.map +1 -1
  16. package/dist/cli/commands/commit-ready.js +4 -2
  17. package/dist/cli/commands/commit-ready.js.map +1 -1
  18. package/dist/cli/commands/init.d.ts.map +1 -1
  19. package/dist/cli/commands/init.js +6 -0
  20. package/dist/cli/commands/init.js.map +1 -1
  21. package/dist/cli/commands/interview.d.ts.map +1 -1
  22. package/dist/cli/commands/interview.js +5 -0
  23. package/dist/cli/commands/interview.js.map +1 -1
  24. package/dist/cli/commands/next.d.ts +1 -1
  25. package/dist/cli/commands/next.d.ts.map +1 -1
  26. package/dist/cli/commands/next.js +31 -2
  27. package/dist/cli/commands/next.js.map +1 -1
  28. package/dist/cli/commands/now.d.ts +3 -0
  29. package/dist/cli/commands/now.d.ts.map +1 -1
  30. package/dist/cli/commands/now.js +14 -2
  31. package/dist/cli/commands/now.js.map +1 -1
  32. package/dist/cli/commands/release.d.ts.map +1 -1
  33. package/dist/cli/commands/release.js +7 -3
  34. package/dist/cli/commands/release.js.map +1 -1
  35. package/dist/cli/commands/retro.d.ts.map +1 -1
  36. package/dist/cli/commands/retro.js +27 -6
  37. package/dist/cli/commands/retro.js.map +1 -1
  38. package/dist/cli/commands/review-run.d.ts +2 -0
  39. package/dist/cli/commands/review-run.d.ts.map +1 -1
  40. package/dist/cli/commands/review-run.js +38 -8
  41. package/dist/cli/commands/review-run.js.map +1 -1
  42. package/dist/cli/commands/review-state.d.ts +2 -5
  43. package/dist/cli/commands/review-state.d.ts.map +1 -1
  44. package/dist/cli/commands/review-state.js +211 -47
  45. package/dist/cli/commands/review-state.js.map +1 -1
  46. package/dist/cli/commands/review.d.ts +9 -1
  47. package/dist/cli/commands/review.d.ts.map +1 -1
  48. package/dist/cli/commands/review.js +67 -39
  49. package/dist/cli/commands/review.js.map +1 -1
  50. package/dist/cli/commands/roadmap.d.ts.map +1 -1
  51. package/dist/cli/commands/roadmap.js +291 -9
  52. package/dist/cli/commands/roadmap.js.map +1 -1
  53. package/dist/cli/commands/sprint.d.ts.map +1 -1
  54. package/dist/cli/commands/sprint.js +594 -68
  55. package/dist/cli/commands/sprint.js.map +1 -1
  56. package/dist/cli/commands/start.d.ts.map +1 -1
  57. package/dist/cli/commands/start.js +20 -4
  58. package/dist/cli/commands/start.js.map +1 -1
  59. package/dist/cli/commands/ticket.d.ts.map +1 -1
  60. package/dist/cli/commands/ticket.js +31 -9
  61. package/dist/cli/commands/ticket.js.map +1 -1
  62. package/dist/cli/commands/version.d.ts +12 -0
  63. package/dist/cli/commands/version.d.ts.map +1 -1
  64. package/dist/cli/commands/version.js +169 -4
  65. package/dist/cli/commands/version.js.map +1 -1
  66. package/dist/cli/git-preflight.d.ts +9 -0
  67. package/dist/cli/git-preflight.d.ts.map +1 -0
  68. package/dist/cli/git-preflight.js +36 -0
  69. package/dist/cli/git-preflight.js.map +1 -0
  70. package/dist/cli/guards/claim-required.d.ts.map +1 -1
  71. package/dist/cli/guards/claim-required.js +19 -4
  72. package/dist/cli/guards/claim-required.js.map +1 -1
  73. package/dist/cli/guards/next-action.js +1 -1
  74. package/dist/cli/guards/next-action.js.map +1 -1
  75. package/dist/cli/guards/phase-boundary.js +60 -10
  76. package/dist/cli/guards/phase-boundary.js.map +1 -1
  77. package/dist/cli/guards/post-push.d.ts.map +1 -1
  78. package/dist/cli/guards/post-push.js +8 -2
  79. package/dist/cli/guards/post-push.js.map +1 -1
  80. package/dist/cli/guards/pr-review.d.ts +6 -0
  81. package/dist/cli/guards/pr-review.d.ts.map +1 -1
  82. package/dist/cli/guards/pr-review.js +22 -11
  83. package/dist/cli/guards/pr-review.js.map +1 -1
  84. package/dist/cli/guards/review-tier.d.ts.map +1 -1
  85. package/dist/cli/guards/review-tier.js +2 -3
  86. package/dist/cli/guards/review-tier.js.map +1 -1
  87. package/dist/cli/guards/roadmap-edit-shipped.d.ts.map +1 -1
  88. package/dist/cli/guards/roadmap-edit-shipped.js +143 -7
  89. package/dist/cli/guards/roadmap-edit-shipped.js.map +1 -1
  90. package/dist/cli/guards/scope-drift.d.ts.map +1 -1
  91. package/dist/cli/guards/scope-drift.js +8 -2
  92. package/dist/cli/guards/scope-drift.js.map +1 -1
  93. package/dist/cli/guards/session-briefing.d.ts.map +1 -1
  94. package/dist/cli/guards/session-briefing.js +24 -2
  95. package/dist/cli/guards/session-briefing.js.map +1 -1
  96. package/dist/cli/guards/sprint-completion.d.ts.map +1 -1
  97. package/dist/cli/guards/sprint-completion.js +107 -18
  98. package/dist/cli/guards/sprint-completion.js.map +1 -1
  99. package/dist/cli/guards/workflow-step-gate.d.ts.map +1 -1
  100. package/dist/cli/guards/workflow-step-gate.js +25 -6
  101. package/dist/cli/guards/workflow-step-gate.js.map +1 -1
  102. package/dist/cli/index.js +4 -2
  103. package/dist/cli/index.js.map +1 -1
  104. package/dist/cli/registry.d.ts.map +1 -1
  105. package/dist/cli/registry.js +45 -3
  106. package/dist/cli/registry.js.map +1 -1
  107. package/dist/cli/reviewer-agents.d.ts +22 -0
  108. package/dist/cli/reviewer-agents.d.ts.map +1 -0
  109. package/dist/cli/reviewer-agents.js +141 -0
  110. package/dist/cli/reviewer-agents.js.map +1 -0
  111. package/dist/cli/roadmap-source-store.d.ts +37 -0
  112. package/dist/cli/roadmap-source-store.d.ts.map +1 -0
  113. package/dist/cli/roadmap-source-store.js +298 -0
  114. package/dist/cli/roadmap-source-store.js.map +1 -0
  115. package/dist/cli/sprint-inference.js +1 -1
  116. package/dist/cli/sprint-inference.js.map +1 -1
  117. package/dist/cli/sprint-rollover.d.ts +102 -0
  118. package/dist/cli/sprint-rollover.d.ts.map +1 -0
  119. package/dist/cli/sprint-rollover.js +558 -0
  120. package/dist/cli/sprint-rollover.js.map +1 -0
  121. package/dist/cli/sprint-state.d.ts +99 -2
  122. package/dist/cli/sprint-state.d.ts.map +1 -1
  123. package/dist/cli/sprint-state.js +349 -14
  124. package/dist/cli/sprint-state.js.map +1 -1
  125. package/dist/cli/template-generator.d.ts.map +1 -1
  126. package/dist/cli/template-generator.js +45 -32
  127. package/dist/cli/template-generator.js.map +1 -1
  128. package/dist/cli/workflow-resync.d.ts +2 -0
  129. package/dist/cli/workflow-resync.d.ts.map +1 -1
  130. package/dist/cli/workflow-resync.js +34 -12
  131. package/dist/cli/workflow-resync.js.map +1 -1
  132. package/dist/core/analyzers/git.d.ts.map +1 -1
  133. package/dist/core/analyzers/git.js +95 -5
  134. package/dist/core/analyzers/git.js.map +1 -1
  135. package/dist/core/briefing.d.ts.map +1 -1
  136. package/dist/core/briefing.js +254 -14
  137. package/dist/core/briefing.js.map +1 -1
  138. package/dist/core/builder.d.ts +16 -2
  139. package/dist/core/builder.d.ts.map +1 -1
  140. package/dist/core/builder.js +82 -5
  141. package/dist/core/builder.js.map +1 -1
  142. package/dist/core/constants.d.ts.map +1 -1
  143. package/dist/core/constants.js +1 -0
  144. package/dist/core/constants.js.map +1 -1
  145. package/dist/core/findings.d.ts +20 -0
  146. package/dist/core/findings.d.ts.map +1 -0
  147. package/dist/core/findings.js +85 -0
  148. package/dist/core/findings.js.map +1 -0
  149. package/dist/core/generators/first-sprint.js +1 -1
  150. package/dist/core/generators/first-sprint.js.map +1 -1
  151. package/dist/core/generators/roadmap.js +3 -3
  152. package/dist/core/generators/roadmap.js.map +1 -1
  153. package/dist/core/index.d.ts +10 -4
  154. package/dist/core/index.d.ts.map +1 -1
  155. package/dist/core/index.js +5 -1
  156. package/dist/core/index.js.map +1 -1
  157. package/dist/core/interview-engine.d.ts.map +1 -1
  158. package/dist/core/interview-engine.js +5 -4
  159. package/dist/core/interview-engine.js.map +1 -1
  160. package/dist/core/interview-metaphor.d.ts +5 -0
  161. package/dist/core/interview-metaphor.d.ts.map +1 -0
  162. package/dist/core/interview-metaphor.js +20 -0
  163. package/dist/core/interview-metaphor.js.map +1 -0
  164. package/dist/core/interview-steps.d.ts.map +1 -1
  165. package/dist/core/interview-steps.js +3 -6
  166. package/dist/core/interview-steps.js.map +1 -1
  167. package/dist/core/interview.d.ts.map +1 -1
  168. package/dist/core/interview.js +5 -6
  169. package/dist/core/interview.js.map +1 -1
  170. package/dist/core/roadmap-focus.d.ts +101 -0
  171. package/dist/core/roadmap-focus.d.ts.map +1 -0
  172. package/dist/core/roadmap-focus.js +293 -0
  173. package/dist/core/roadmap-focus.js.map +1 -0
  174. package/dist/core/roadmap-sources.d.ts +52 -0
  175. package/dist/core/roadmap-sources.d.ts.map +1 -0
  176. package/dist/core/roadmap-sources.js +483 -0
  177. package/dist/core/roadmap-sources.js.map +1 -0
  178. package/dist/core/roadmap.d.ts +25 -1
  179. package/dist/core/roadmap.d.ts.map +1 -1
  180. package/dist/core/roadmap.js +62 -45
  181. package/dist/core/roadmap.js.map +1 -1
  182. package/dist/core/types.d.ts +11 -1
  183. package/dist/core/types.d.ts.map +1 -1
  184. package/dist/core/workflow-engine.d.ts.map +1 -1
  185. package/dist/core/workflow-engine.js +17 -2
  186. package/dist/core/workflow-engine.js.map +1 -1
  187. package/dist/mcp/registry.d.ts +1 -1
  188. package/dist/mcp/registry.d.ts.map +1 -1
  189. package/dist/mcp/registry.js +5 -4
  190. package/dist/mcp/registry.js.map +1 -1
  191. package/dist/store/index.d.ts +13 -0
  192. package/dist/store/index.d.ts.map +1 -1
  193. package/dist/store/index.js +60 -7
  194. package/dist/store/index.js.map +1 -1
  195. package/package.json +1 -1
  196. package/src/core/workflows/sprint-standard.yaml +7 -1
  197. package/templates/claude-code/CLAUDE.md +3 -1
  198. package/templates/claude-code/commands/post-sprint.md +2 -0
  199. package/templates/claude-code/commands/start-sprint.md +10 -5
  200. package/templates/claude-code/rules/sprint-checklist.md +13 -10
  201. package/templates/codex/plugins/slope/.codex-plugin/plugin.json +1 -1
  202. package/templates/codex/plugins/slope/skills/slope-retro/SKILL.md +1 -1
  203. package/templates/codex/plugins/slope/skills/slope-sprint/SKILL.md +5 -4
  204. package/templates/cursor/rules/slope-sprint-checklist.mdc +11 -8
  205. package/templates/generic/SLOPE-CHECKLIST.md +13 -9
  206. package/templates/pi/skills/post-sprint.md +2 -0
  207. package/templates/pi/skills/start-sprint.md +10 -5
@@ -7,22 +7,25 @@ The SLOPE framework organizes sprint work into a hierarchy of routines, mirrorin
7
7
  Before starting a new phase or project:
8
8
 
9
9
  1. **Define the vision** — What does the end state look like? Document in a vision doc
10
- 2. **Build the roadmap** — Create `docs/backlog/roadmap.json` with sprints, dependencies, and phases
11
- 3. **Run `slope roadmap validate`** Check for structural issues, dependency cycles, numbering gaps
12
- 4. **Run `slope roadmap review`** — Automated architect review: scope balance, critical path, bottlenecks
13
- 5. **Identify the critical path** — Run `slope roadmap show` to see the dependency graph and parallel tracks
14
- 6. **Plan parallel tracks** — If sprints can run concurrently, plan for multi-agent execution
10
+ 2. **Build the roadmap** — Edit declared YAML bundles when `docs/roadmap/project.yaml` exists; otherwise create `docs/backlog/roadmap.json`
11
+ 3. **Compile modular sources** — Run `slope roadmap compile`, `slope roadmap validate-sources`, and `slope roadmap compile --check`
12
+ 4. **Run `slope roadmap validate`** — Check for structural issues, dependency cycles, numbering gaps
13
+ 5. **Run `slope roadmap review`** Automated architect review: scope balance, critical path, bottlenecks
14
+ 6. **Identify the critical path** — Run `slope roadmap show` to see the dependency graph and parallel tracks
15
+ 7. **Plan parallel tracks** — If sprints can run concurrently, plan for multi-agent execution
15
16
 
16
17
  ## Pre-Round Routine (Sprint Start)
17
18
 
18
19
  Before writing any code in a new sprint:
19
20
 
20
- 1. **Run `slope briefing`** — Single command that outputs handicap snapshot, hazard index, nutrition alerts, filtered gotchas, and session continuity
21
+ 1. **Run `slope now`** — Discover the current sprint and next action
22
+ 2. **Run `slope roadmap focus --sprint=N`** — Use the discovered sprint to load bounded context before full history
23
+ 3. **Run `slope briefing`** — Single command that outputs handicap snapshot, hazard index, nutrition alerts, filtered gotchas, and session continuity
21
24
  - Use `--categories=testing,api` or `--keywords=migration` to filter for the sprint's work area
22
- 2. **Verify previous scorecard exists** — If the last sprint's scorecard wasn't created, create it now
23
- 3. **Branch hygiene check** — `git branch -a` to confirm no stale branches remain
24
- 4. **Gap analysis** (if touching API or schema) — Read relevant docs and compare against implementation before writing code
25
- 5. **Set par and slope** — Par from ticket count (1-2=3, 3-4=4, 5+=5), slope from complexity factors
25
+ 4. **Verify previous scorecard exists** — If the last sprint's scorecard wasn't created, create it now
26
+ 5. **Branch hygiene check** — `git branch -a` to confirm no stale branches remain
27
+ 6. **Gap analysis** (if touching API or schema) — Read relevant docs and compare against implementation before writing code
28
+ 7. **Set par and slope** — Par from ticket count (1-2=3, 3-4=4, 5+=5), slope from complexity factors
26
29
 
27
30
  ## Pre-Shot Routine (Per-Ticket, Before Code)
28
31
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slope",
3
- "version": "1.59.2",
3
+ "version": "1.61.0",
4
4
  "description": "SLOPE sprint tracking, guard hooks, and Codex workflow skills.",
5
5
  "author": {
6
6
  "name": "SLOPE",
@@ -20,7 +20,7 @@ Use this after the PR is merged, or when the user asks to preserve lessons from
20
20
  2. Persist the retro:
21
21
  `slope retro post-merge --sprint=<N> --pr=<PR> --summary="<summary>" --learning="<learning>" --hazard="<hazard>" --follow-up="<follow-up>"`
22
22
  3. Repeat `--learning`, `--hazard`, and `--follow-up` as needed.
23
- 4. Use `--learning=project:8:<text>` or another `category[:weight]:text` prefix when the memory category matters.
23
+ 4. Use `--learning=project:8:<text>` or another supported `category[:weight]:text` prefix when the memory category matters. Supported categories are `workflow`, `style`, `project`, `hazard`, and `other`; `process` is accepted as an alias for `workflow`; weight must be 1-10.
24
24
 
25
25
  ## Verify
26
26
 
@@ -9,10 +9,11 @@ Use these commands from the repository root.
9
9
 
10
10
  ## Inspect
11
11
 
12
- 1. Run `slope sprint status`.
13
- 2. If no sprint is active, run `slope next` and `slope briefing --sprint=<next>`.
14
- 3. If a sprint is active, run `slope briefing --sprint=<active>` before editing.
15
- 4. If the user asks for a roadmap interview or planning input, run `slope roadmap interview` or `slope roadmap interview --agent`; MCP agents can also search `module: "init"`.
12
+ 1. Run `slope now` to discover the active or next sprint and its next action.
13
+ 2. Run `slope roadmap focus --sprint=<discovered>` before loading full roadmap history.
14
+ 3. Run `slope sprint status` when operational gate or rollover detail is needed.
15
+ 4. Run `slope briefing --sprint=<discovered>` before editing.
16
+ 5. If the user asks for a roadmap interview or planning input, run `slope roadmap interview` or `slope roadmap interview --agent`; MCP agents can also search `module: "init"`.
16
17
 
17
18
  ## Start Or Claim
18
19
 
@@ -12,20 +12,23 @@ The SLOPE framework organizes sprint work into a hierarchy of routines, mirrorin
12
12
 
13
13
  Before starting a new phase or project:
14
14
 
15
- 1. **Build the roadmap** — Create `docs/backlog/roadmap.json` with sprints, dependencies, and phases
16
- 2. **Run `slope roadmap validate`** Check for dependency cycles, numbering gaps
17
- 3. **Run `slope roadmap review`** — Scope balance, critical path, bottlenecks
18
- 4. **Run `slope roadmap show`** — Dependency graph and parallel tracks
15
+ 1. **Build the roadmap** — Edit declared YAML bundles when `docs/roadmap/project.yaml` exists; otherwise create `docs/backlog/roadmap.json`
16
+ 2. **Compile modular sources** — Run `slope roadmap compile`, `slope roadmap validate-sources`, and `slope roadmap compile --check`
17
+ 3. **Run `slope roadmap validate`** — Check for dependency cycles, numbering gaps
18
+ 4. **Run `slope roadmap review`** — Scope balance, critical path, bottlenecks
19
+ 5. **Run `slope roadmap show`** — Dependency graph and parallel tracks
19
20
 
20
21
  ## Pre-Round Routine (Sprint Start)
21
22
 
22
23
  Before writing any code in a new sprint:
23
24
 
24
- 1. **Run `slope briefing`** — Outputs handicap snapshot, hazard index, nutrition alerts, filtered gotchas, and session continuity
25
+ 1. **Run `slope now`** — Discover the current sprint and next action
26
+ 2. **Run `slope roadmap focus --sprint=N`** — Use the discovered sprint to load bounded context before full history
27
+ 3. **Run `slope briefing`** — Outputs handicap snapshot, hazard index, nutrition alerts, filtered gotchas, and session continuity
25
28
  - Use `--categories=testing,api` or `--keywords=migration` to filter for the sprint's work area
26
- 2. **Verify previous scorecard exists** — If the last sprint's scorecard wasn't created, create it now
27
- 3. **Branch hygiene check** — `git branch -a` to confirm no stale branches remain
28
- 4. **Set par and slope** — Par from ticket count (1-2=3, 3-4=4, 5+=5), slope from complexity factors
29
+ 4. **Verify previous scorecard exists** — If the last sprint's scorecard wasn't created, create it now
30
+ 5. **Branch hygiene check** — `git branch -a` to confirm no stale branches remain
31
+ 6. **Set par and slope** — Par from ticket count (1-2=3, 3-4=4, 5+=5), slope from complexity factors
29
32
 
30
33
  ## Pre-Shot Routine (Per-Ticket, Before Code)
31
34
 
@@ -1,15 +1,18 @@
1
1
  # SLOPE Sprint Checklist
2
2
 
3
3
  ## Pre-Tournament (Course Strategy)
4
- 1. Build roadmap in `docs/backlog/roadmap.json`
5
- 2. Run `slope roadmap validate` check dependencies and structure
6
- 3. Run `slope roadmap review` — scope balance, critical path, bottlenecks
7
- 4. Run `slope roadmap show` — view dependency graph
4
+ 1. Build the roadmap in declared YAML bundles when `docs/roadmap/project.yaml` exists; otherwise use `docs/backlog/roadmap.json`
5
+ 2. For modular sources, run `slope roadmap compile`, `slope roadmap validate-sources`, and `slope roadmap compile --check`
6
+ 3. Run `slope roadmap validate` — check dependencies and structure
7
+ 4. Run `slope roadmap review` — scope balance, critical path, bottlenecks
8
+ 5. Run `slope roadmap show` — view dependency graph
8
9
 
9
10
  ## Pre-Round (Sprint Start)
10
- 1. Run `slope briefing` — handicap, hazards, gotchas, session continuity
11
- 2. Verify previous scorecard exists
12
- 3. Set par (1-2 tickets=3, 3-4=4, 5+=5) and slope factors
11
+ 1. Run `slope now` — discover the current sprint and next action
12
+ 2. Run `slope roadmap focus --sprint=N` — bounded context for the discovered sprint
13
+ 3. Run `slope briefing` — handicap, hazards, gotchas, session continuity
14
+ 4. Verify previous scorecard exists
15
+ 5. Set par (1-2 tickets=3, 3-4=4, 5+=5) and slope factors
13
16
 
14
17
  ## Per-Ticket
15
18
  - **Before:** Select club (driver/long_iron/short_iron/wedge/putter), scan hazards
@@ -18,8 +21,9 @@
18
21
  ## Post-Hole (Sprint End)
19
22
  1. Build scorecard JSON, run `slope validate`
20
23
  2. Update common-issues with new patterns
21
- 3. Run `slope review` for markdown output
22
- 4. Run `slope card` for handicap trends
24
+ 3. Log recurring workaround/codification candidates with `slope review findings add --type=workaround --recurs --cost=s|m|l --description="..."`
25
+ 4. Run `slope review` for markdown output
26
+ 5. Run `slope card` for handicap trends
23
27
 
24
28
  ## Commit Discipline
25
29
  - Commit after each file, feature, migration, or bug fix
@@ -55,6 +55,7 @@ Run `slope review` to generate the sprint review markdown. Share the output with
55
55
  If any new recurring patterns were encountered during this sprint:
56
56
  - Check `.slope/common-issues.json` for existing patterns
57
57
  - Add new patterns or update `sprints_hit` arrays for existing ones
58
+ - Sweep for recurring workarounds that were routed around in-flow. Log structural ones with `slope review findings add --type=workaround --recurs --cost=s|m|l --description="..."`.
58
59
 
59
60
  ### 6. Roadmap status (auto-updated)
60
61
 
@@ -69,4 +70,5 @@ Ask the user if they'd like to create a PR. If yes, create one with the sprint r
69
70
  - Always run `slope validate` after creating the scorecard — never skip this
70
71
  - The scorecard must match the actual work done (commits), not the plan
71
72
  - Record hazards honestly — they feed the handicap system and improve future guidance
73
+ - Log recurring workaround/codification candidates; one-offs can stay out of the ledger
72
74
  - If the sprint had review findings, run `slope review amend` after adding findings
@@ -16,22 +16,27 @@ Run the complete pre-sprint routine: verify prior sprint hygiene, get briefing,
16
16
  ### 1. Determine sprint number
17
17
 
18
18
  - If a number was provided as an argument, use it
19
- - Otherwise, run `slope next` to auto-detect the next sprint number
19
+ - Otherwise, run `slope now` and use its active or next sprint; use `slope next` only if no sprint is reported
20
+ - Treat the sprint number as the current SLOPE work unit. It may be a time-boxed interval or a scope-based agent milestone.
20
21
 
21
- ### 2. Verify prior sprint scorecard
22
+ ### 2. Load bounded roadmap context
23
+
24
+ Run `slope roadmap focus --sprint=N` for the discovered sprint before loading full roadmap history.
25
+
26
+ ### 3. Verify prior sprint scorecard
22
27
 
23
28
  Check that the previous sprint's scorecard exists at `docs/retros/sprint-{N-1}.json`:
24
29
  - If missing, **stop and create it first** using `/skill:post-sprint`
25
30
  - If it exists, continue
26
31
  - Note: the sprint-completion guard also enforces this — PR creation is blocked without a scorecard
27
32
 
28
- ### 3. Branch hygiene
33
+ ### 4. Branch hygiene
29
34
 
30
35
  - Run `git branch` to check for stale branches from prior sprints
31
36
  - If stale branches exist, warn the user
32
37
  - Create a new feature branch: `feat/sprint-{N}-<theme-slug>`
33
38
 
34
- ### 4. Run briefing
39
+ ### 5. Run briefing
35
40
 
36
41
  Run `slope briefing` to get:
37
42
  - Handicap snapshot (rolling performance stats)
@@ -44,7 +49,7 @@ If you know the sprint's work area, add filters:
44
49
  slope briefing --categories=<area> --keywords=<topic>
45
50
  ```
46
51
 
47
- ### 5. Start sprint with workflow engine
52
+ ### 6. Start sprint with workflow engine
48
53
 
49
54
  Run `slope sprint run --workflow=sprint-standard --var sprint_id=S{N}` to start a workflow-controlled sprint.
50
55