@pareto4/pp-core 1.11.1 → 1.12.1

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 (257) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +31 -0
  3. package/agents/pp-code-fixer.md +1 -1
  4. package/agents/pp-debug-session-manager.md +1 -1
  5. package/agents/pp-debugger.md +1 -1
  6. package/agents/pp-executor.md +20 -10
  7. package/agents/pp-intel-updater.md +1 -1
  8. package/agents/pp-phase-researcher.md +1 -1
  9. package/agents/pp-plan-checker.md +5 -5
  10. package/agents/pp-planner.md +10 -24
  11. package/agents/pp-project-researcher.md +1 -1
  12. package/agents/pp-research-synthesizer.md +1 -1
  13. package/agents/pp-ui-researcher.md +1 -1
  14. package/agents/pp-verifier.md +8 -4
  15. package/bin/install.js +429 -82
  16. package/commands/pp-autonomous.md +8 -6
  17. package/commands/pp-discovery-to-build.md +1 -1
  18. package/commands/pp-discovery.md +3 -2
  19. package/commands/pp-discuss-phase.md +2 -2
  20. package/commands/pp-execute-phase.md +3 -1
  21. package/commands/pp-graphify.md +5 -5
  22. package/commands/pp-import.md +1 -1
  23. package/commands/pp-map-codebase.md +1 -1
  24. package/commands/pp-ns-project.md +2 -3
  25. package/commands/pp-ns-workflow.md +1 -1
  26. package/commands/pp-plan-phase.md +2 -1
  27. package/commands/pp-verify-work.md +2 -1
  28. package/gemini-extension.json +1 -1
  29. package/hooks/dist/pp-cursor-session-start.js +2 -2
  30. package/hooks/dist/pp-session-state.sh +1 -1
  31. package/hooks/dist/pp-statusline.js +21 -2
  32. package/hooks/pp-cursor-session-start.js +2 -2
  33. package/hooks/pp-session-state.sh +1 -1
  34. package/hooks/pp-statusline.js +21 -2
  35. package/package.json +18 -5
  36. package/pareto-skills/pp-project-setup/SKILL.md +5 -63
  37. package/pp-core/bin/detect-build-commands.sh +182 -0
  38. package/pp-core/bin/lib/capability-activation.cjs +19 -9
  39. package/pp-core/bin/lib/capability-registry.cjs +65 -7
  40. package/pp-core/bin/lib/check-command-router.cjs +79 -38
  41. package/pp-core/bin/lib/clusters.cjs +2 -3
  42. package/pp-core/bin/lib/command-aliases.cjs +36 -0
  43. package/pp-core/bin/lib/command-arg-projection.cjs +99 -1
  44. package/pp-core/bin/lib/commands.cjs +21 -6
  45. package/pp-core/bin/lib/compose-bindings.cjs +70 -6
  46. package/pp-core/bin/lib/config-loader.cjs +151 -8
  47. package/pp-core/bin/lib/config-schema.cjs +16 -0
  48. package/pp-core/bin/lib/config.cjs +142 -27
  49. package/pp-core/bin/lib/core-utils.cjs +43 -7
  50. package/pp-core/bin/lib/discovery-input-check.cjs +218 -0
  51. package/pp-core/bin/lib/discovery-rebaseline.cjs +1372 -0
  52. package/pp-core/bin/lib/discovery-research-track.cjs +979 -0
  53. package/pp-core/bin/lib/discovery-rollup.cjs +476 -0
  54. package/pp-core/bin/lib/discovery-screens.cjs +1995 -0
  55. package/pp-core/bin/lib/discovery-sweep.cjs +390 -0
  56. package/pp-core/bin/lib/discovery-table.cjs +98 -0
  57. package/pp-core/bin/lib/dispatch-plan.cjs +472 -0
  58. package/pp-core/bin/lib/frontmatter.cjs +17 -2
  59. package/pp-core/bin/lib/init-command-router.cjs +8 -5
  60. package/pp-core/bin/lib/init-contract.cjs +93 -4
  61. package/pp-core/bin/lib/init.cjs +124 -134
  62. package/pp-core/bin/lib/install-profiles.cjs +5 -0
  63. package/pp-core/bin/lib/install-run.cjs +536 -0
  64. package/pp-core/bin/lib/io.cjs +15 -0
  65. package/pp-core/bin/lib/loop-resolver.cjs +40 -2
  66. package/pp-core/bin/lib/milestone.cjs +345 -48
  67. package/pp-core/bin/lib/phase-command-router.cjs +23 -1
  68. package/pp-core/bin/lib/phase-locator.cjs +15 -6
  69. package/pp-core/bin/lib/phase-scope.cjs +91 -0
  70. package/pp-core/bin/lib/phase-tier.cjs +467 -0
  71. package/pp-core/bin/lib/phase.cjs +247 -21
  72. package/pp-core/bin/lib/phases-command-router.cjs +2 -0
  73. package/pp-core/bin/lib/plan-graph.cjs +368 -0
  74. package/pp-core/bin/lib/planning-workspace.cjs +53 -0
  75. package/pp-core/bin/lib/platform-bindings.cjs +32 -2
  76. package/pp-core/bin/lib/profile-output.cjs +11 -3
  77. package/pp-core/bin/lib/prohibition-enforcement.cjs +112 -0
  78. package/pp-core/bin/lib/roadmap-parser.cjs +366 -99
  79. package/pp-core/bin/lib/roadmap.cjs +141 -39
  80. package/pp-core/bin/lib/runtime-hooks-surface.cjs +1 -1
  81. package/pp-core/bin/lib/shell-command-projection.cjs +24 -0
  82. package/pp-core/bin/lib/state-command-router.cjs +82 -13
  83. package/pp-core/bin/lib/state-document.cjs +124 -7
  84. package/pp-core/bin/lib/state.cjs +784 -257
  85. package/pp-core/bin/lib/template.cjs +22 -6
  86. package/pp-core/bin/lib/vault-command-router.cjs +57 -6
  87. package/pp-core/bin/lib/vault-practices.cjs +6 -36
  88. package/pp-core/bin/lib/vault-write-back.cjs +20 -4
  89. package/pp-core/bin/lib/vault.cjs +592 -23
  90. package/pp-core/bin/lib/verify.cjs +53 -31
  91. package/pp-core/bin/lib/workstream.cjs +1 -1
  92. package/pp-core/bin/lib/worktree-safety.cjs +26 -15
  93. package/pp-core/bin/portable-timeout.sh +89 -0
  94. package/pp-core/bin/pp-tools.cjs +149 -9
  95. package/pp-core/bin/shared/config-defaults.manifest.json +7 -0
  96. package/pp-core/bin/shared/config-schema.manifest.json +3 -0
  97. package/pp-core/references/autonomous-best-effort.md +461 -0
  98. package/pp-core/references/autonomous-lifecycle.md +146 -0
  99. package/pp-core/references/autonomous-smart-discuss.md +16 -12
  100. package/pp-core/references/checkpoints.md +1 -1
  101. package/pp-core/references/discovery-id-conventions.md +202 -0
  102. package/pp-core/references/discovery-rebaseline.md +254 -0
  103. package/pp-core/references/discovery-research-track.md +283 -0
  104. package/pp-core/references/discovery-traceability.md +400 -0
  105. package/pp-core/references/loop-hook-dispatch.md +14 -0
  106. package/pp-core/references/mandatory-initial-read.md +1 -1
  107. package/pp-core/references/planner-gap-closure.md +1 -0
  108. package/pp-core/references/planner-human-verify-mode.md +1 -1
  109. package/pp-core/references/planner-load-graph-context.md +1 -1
  110. package/pp-core/references/planner-plan-graph.md +66 -0
  111. package/pp-core/references/planner-tdd.md +1 -0
  112. package/pp-core/references/planning-config.md +8 -0
  113. package/pp-core/references/sketch-tooling.md +4 -0
  114. package/pp-core/references/tdd.md +1 -0
  115. package/pp-core/templates/claude-md.md +1 -1
  116. package/pp-core/templates/phase-prompt.md +6 -2
  117. package/pp-core/templates/prototype-review/review.js +303 -0
  118. package/pp-core/templates/state.md +6 -0
  119. package/pp-core/workflows/_runtime-launcher.snippet.sh +1 -1
  120. package/pp-core/workflows/add-backlog.md +1 -1
  121. package/pp-core/workflows/add-phase.md +1 -1
  122. package/pp-core/workflows/add-tests.md +1 -1
  123. package/pp-core/workflows/add-todo.md +1 -1
  124. package/pp-core/workflows/ai-integration-phase.md +2 -2
  125. package/pp-core/workflows/audit-fix.md +12 -16
  126. package/pp-core/workflows/audit-milestone.md +2 -2
  127. package/pp-core/workflows/audit-uat.md +1 -1
  128. package/pp-core/workflows/autonomous.md +68 -306
  129. package/pp-core/workflows/check-todos.md +1 -1
  130. package/pp-core/workflows/cleanup.md +1 -1
  131. package/pp-core/workflows/code-review-fix.md +2 -2
  132. package/pp-core/workflows/code-review.md +20 -8
  133. package/pp-core/workflows/complete-milestone.md +41 -60
  134. package/pp-core/workflows/debug.md +1 -1
  135. package/pp-core/workflows/diagnose-issues.md +1 -1
  136. package/pp-core/workflows/discovery-sprint/gap-analysis.md +140 -0
  137. package/pp-core/workflows/discovery-sprint/input-package.md +140 -0
  138. package/pp-core/workflows/discovery-sprint/prefill.md +92 -0
  139. package/pp-core/workflows/discovery-sprint/prototype.md +257 -0
  140. package/pp-core/workflows/discovery-sprint/rebaseline.md +276 -0
  141. package/pp-core/workflows/discovery-sprint/session-13-gates.md +24 -0
  142. package/pp-core/workflows/discovery-sprint/sessions/01-kick-off.md +92 -0
  143. package/pp-core/workflows/discovery-sprint/sessions/02-as-is.md +98 -0
  144. package/pp-core/workflows/discovery-sprint/sessions/03-to-be.md +215 -0
  145. package/pp-core/workflows/discovery-sprint/sessions/04-ux-design.md +146 -0
  146. package/pp-core/workflows/discovery-sprint/sessions/05-architecture.md +98 -0
  147. package/pp-core/workflows/discovery-sprint/sessions/06-security.md +107 -0
  148. package/pp-core/workflows/discovery-sprint/sessions/07-identity.md +98 -0
  149. package/pp-core/workflows/discovery-sprint/sessions/08-integration.md +85 -0
  150. package/pp-core/workflows/discovery-sprint/sessions/09-qa.md +109 -0
  151. package/pp-core/workflows/discovery-sprint/sessions/10-infrastructure.md +119 -0
  152. package/pp-core/workflows/discovery-sprint/sessions/11-roadmap.md +92 -0
  153. package/pp-core/workflows/discovery-sprint/sessions/12-delivery-model.md +98 -0
  154. package/pp-core/workflows/discovery-sprint/sessions/13-wrap-up.md +205 -0
  155. package/pp-core/workflows/discovery-sprint/templates/context-template.md +266 -0
  156. package/pp-core/workflows/discovery-sprint.md +79 -1714
  157. package/pp-core/workflows/discovery-to-build/steps/architecture-deliverables.md +5 -5
  158. package/pp-core/workflows/discovery-to-build/steps/screen-inventory-gate.md +70 -0
  159. package/pp-core/workflows/discovery-to-build/templates/discovery-references.md +54 -0
  160. package/pp-core/workflows/discovery-to-build/templates/pp-handoff.md +184 -0
  161. package/pp-core/workflows/discovery-to-build.md +21 -238
  162. package/pp-core/workflows/discuss-phase/modes/advisor.md +1 -1
  163. package/pp-core/workflows/discuss-phase/modes/auto.md +1 -1
  164. package/pp-core/workflows/discuss-phase/modes/chain.md +1 -1
  165. package/pp-core/workflows/discuss-phase-assumptions.md +1 -1
  166. package/pp-core/workflows/discuss-phase.md +11 -4
  167. package/pp-core/workflows/do.md +4 -4
  168. package/pp-core/workflows/docs-update.md +1 -1
  169. package/pp-core/workflows/edit-phase.md +1 -1
  170. package/pp-core/workflows/eval-review.md +1 -1
  171. package/pp-core/workflows/execute-phase/steps/checkpoint-handling.md +45 -0
  172. package/pp-core/workflows/execute-phase/steps/client-context-gate.md +1 -1
  173. package/pp-core/workflows/execute-phase/steps/codebase-drift-gate.md +1 -1
  174. package/pp-core/workflows/execute-phase/steps/cross-ai-delegation.md +90 -0
  175. package/pp-core/workflows/execute-phase/steps/install-run.md +29 -0
  176. package/pp-core/workflows/execute-phase/steps/phase-close-rebaseline.md +23 -0
  177. package/pp-core/workflows/execute-phase/steps/post-merge-gate.md +76 -77
  178. package/pp-core/workflows/execute-phase/steps/serial-group-dispatch.md +72 -0
  179. package/pp-core/workflows/execute-phase/steps/vault-fetch.md +5 -5
  180. package/pp-core/workflows/execute-phase/steps/vault-load-gate.md +19 -112
  181. package/pp-core/workflows/execute-phase.md +104 -218
  182. package/pp-core/workflows/execute-plan.md +6 -2
  183. package/pp-core/workflows/explore.md +1 -1
  184. package/pp-core/workflows/extract-learnings.md +1 -1
  185. package/pp-core/workflows/forensics.md +4 -4
  186. package/pp-core/workflows/graduation.md +1 -1
  187. package/pp-core/workflows/health.md +1 -1
  188. package/pp-core/workflows/help/modes/brief.md +1 -0
  189. package/pp-core/workflows/help/modes/default.md +2 -1
  190. package/pp-core/workflows/help/modes/full.md +12 -5
  191. package/pp-core/workflows/import.md +1 -1
  192. package/pp-core/workflows/ingest-docs.md +1 -1
  193. package/pp-core/workflows/init.md +18 -2
  194. package/pp-core/workflows/insert-phase.md +1 -1
  195. package/pp-core/workflows/list-workspaces.md +1 -1
  196. package/pp-core/workflows/manager.md +3 -3
  197. package/pp-core/workflows/map-codebase.md +2 -2
  198. package/pp-core/workflows/milestone-summary.md +4 -4
  199. package/pp-core/workflows/mvp-phase.md +1 -1
  200. package/pp-core/workflows/new-milestone.md +7 -8
  201. package/pp-core/workflows/new-project.md +6 -1
  202. package/pp-core/workflows/new-workspace.md +1 -1
  203. package/pp-core/workflows/next.md +2 -2
  204. package/pp-core/workflows/note.md +2 -2
  205. package/pp-core/workflows/pause-work.md +1 -1
  206. package/pp-core/workflows/plan-milestone-gaps.md +1 -1
  207. package/pp-core/workflows/plan-phase/steps/chunked-planning.md +111 -0
  208. package/pp-core/workflows/plan-phase/steps/phase-tier.md +34 -0
  209. package/pp-core/workflows/plan-phase.md +43 -167
  210. package/pp-core/workflows/plan-review-convergence.md +2 -2
  211. package/pp-core/workflows/plant-seed.md +1 -1
  212. package/pp-core/workflows/pr-branch.md +1 -1
  213. package/pp-core/workflows/profile-user.md +1 -1
  214. package/pp-core/workflows/progress.md +3 -3
  215. package/pp-core/workflows/quick.md +4 -2
  216. package/pp-core/workflows/remove-phase.md +1 -1
  217. package/pp-core/workflows/remove-workspace.md +1 -1
  218. package/pp-core/workflows/resume-project.md +6 -12
  219. package/pp-core/workflows/review.md +1 -1
  220. package/pp-core/workflows/scan.md +1 -1
  221. package/pp-core/workflows/secure-phase.md +2 -2
  222. package/pp-core/workflows/settings-advanced.md +1 -1
  223. package/pp-core/workflows/settings-integrations.md +1 -1
  224. package/pp-core/workflows/settings.md +1 -1
  225. package/pp-core/workflows/ship.md +26 -9
  226. package/pp-core/workflows/sketch-wrap-up.md +1 -1
  227. package/pp-core/workflows/sketch.md +2 -1
  228. package/pp-core/workflows/spec-phase.md +1 -1
  229. package/pp-core/workflows/spike-wrap-up.md +1 -1
  230. package/pp-core/workflows/spike.md +1 -1
  231. package/pp-core/workflows/stats.md +2 -2
  232. package/pp-core/workflows/thread.md +1 -1
  233. package/pp-core/workflows/transition.md +5 -9
  234. package/pp-core/workflows/ui-phase.md +23 -2
  235. package/pp-core/workflows/ui-review.md +1 -1
  236. package/pp-core/workflows/ultraplan-phase.md +2 -2
  237. package/pp-core/workflows/validate-phase.md +2 -2
  238. package/pp-core/workflows/vault-write-back.md +1 -1
  239. package/pp-core/workflows/verify-phase.md +29 -26
  240. package/pp-core/workflows/verify-work.md +14 -10
  241. package/scripts/base64-scan.sh +7 -41
  242. package/scripts/changeset/cli.cjs +25 -5
  243. package/scripts/dev-env.cjs +462 -0
  244. package/scripts/lib/allowlist-ratchet.cjs +103 -1
  245. package/scripts/lib/size-budget.cjs +311 -0
  246. package/scripts/lint-neutrality-names.cjs +694 -0
  247. package/scripts/lint-org-coordinates.allowlist.json +35 -0
  248. package/scripts/lint-org-coordinates.cjs +426 -0
  249. package/scripts/lint-skill-deps.cjs +48 -9
  250. package/scripts/lint-test-file-count.cjs +17 -2
  251. package/scripts/prompt-injection-scan.sh +41 -20
  252. package/scripts/sync-manifest-versions.cjs +41 -7
  253. package/scripts/sync-runtime-launcher.cjs +106 -1
  254. package/scripts/update-size-baseline.cjs +274 -30
  255. package/scripts/workflow-size.cjs +61 -9
  256. package/commands/pp-build-handoff.md +0 -46
  257. package/pp-core/workflows/execute-phase/steps/per-plan-worktree-gate.md +0 -94
@@ -0,0 +1,205 @@
1
+ # Session 13 — Discovery Sprint Wrap-up & Next Steps
2
+
3
+ > **Lazy-loaded.** Read from `workflows/discovery-sprint.md` Flow 2 Step 1 when facilitating this session.
4
+ > Holds the session's Goal, vault areas, topics and Notes Template, plus its special protocol.
5
+
6
+ ### Session 13: Discovery Sprint Wrap-up & Next Steps
7
+
8
+ **Goal:** Present consolidated Discovery Sprint findings, deliver the Go / No-Go recommendation, review open items, agree on the transition plan to the build phase, and formally close the Discovery Sprint.
9
+
10
+ **Vault areas:** (none) — this session reads nothing from the client vault.
11
+
12
+ **Special Protocol — Cross-Reference (required for Session 13):**
13
+ Before facilitating any topics, execute the **Session 13: Cross-Reference Protocol** (Step 0) at the end of this file. Analyze Sessions 1–12 for inconsistencies, present findings, resolve critical and high issues, and capture results in the notes. This ensures the wrap-up discussion starts from a consistent, verified baseline. The cross-reference must complete before proceeding to the topic-by-topic facilitation of the topics above.
14
+
15
+ **What We Cover:**
16
+
17
+ 1. **Discovery Sprint summary**
18
+ *Why it matters: this synthesis is what gets handed to the build team as the single source of truth. Skip when: never — always required to close the sprint.*
19
+ - What are the key findings across business, technical, and governance dimensions?
20
+ - Were there any significant surprises or pivots during discovery?
21
+ - Which assumptions were validated and which were invalidated?
22
+ - What issues were identified and resolved by the cross-reference analysis?
23
+
24
+ 2. **Project Definition Document (PDD) review**
25
+ *Why it matters: this is the client's last chance to catch a scoping or architecture error before build starts. Skip when: never — always required before go/no-go.*
26
+ - Walk through the PDD structure and key sections
27
+ - Are there sections requiring further refinement?
28
+ - Does the client agree with documented scope, architecture, and approach?
29
+
30
+ 3. **Go / No-Go assessment**
31
+ *Why it matters: this is the literal decision gate that authorizes spend on the build phase. Skip when: never — always required.*
32
+ - Are the business requirements sufficiently clear to begin building?
33
+ - Is the technical architecture validated and feasible?
34
+ - Are there blocking risks or unresolved dependencies?
35
+ - What is the confidence level for the proposed timeline and budget? [needs-business-input]
36
+
37
+ 4. **Open items and parking lot**
38
+ *Why it matters: unresolved items surfaced here become explicit known-gaps in the handoff, not silent omissions. Skip when: never — always required, even an empty parking lot is worth stating explicitly.*
39
+ - What items remain unresolved from discovery sessions?
40
+ - Which items can be deferred to the build phase without risk?
41
+ - Which items must be resolved before the build phase begins?
42
+
43
+ 5. **Transition plan and next steps**
44
+ *Why it matters: this is the literal onboarding checklist the build team executes on day one. Skip when: no build phase follows immediately (e.g. discovery was standalone).*
45
+ - What is the proposed start date for the build phase?
46
+ - What team onboarding or environment setup is needed?
47
+ - How will the product backlog be handed over to the development team?
48
+
49
+ 6. **Feedback and lessons learned**
50
+ *Why it matters: captured lessons improve the next engagement's Discovery Sprint facilitation. Skip when: this was the client's first and only Pareto engagement with no future comparison point.*
51
+ - What worked well during the Discovery Sprint?
52
+ - What could be improved for future engagements?
53
+
54
+ **Notes Template:**
55
+
56
+ **Go / No-Go Assessment**
57
+
58
+ | Criterion | Status (Green / Amber / Red) | Notes |
59
+ |-----------|------------------------------|-------|
60
+ | Business requirements clarity | | |
61
+ | Technical architecture feasibility | | |
62
+ | Security and compliance readiness | | |
63
+ | Integration dependencies resolved | | |
64
+ | Team and budget availability | | |
65
+ | Timeline confidence | | |
66
+ | Stakeholder alignment | | |
67
+ | **Overall Recommendation** | | |
68
+
69
+ **Open Items Register**
70
+
71
+ | ID | Item | Source Session | Priority (H/M/L) | Must Resolve Before Build? | Owner | Target Date | Status |
72
+ |----|------|---------------|-------------------|---------------------------|-------|-------------|--------|
73
+ | OI-1 | | | | | | | |
74
+
75
+ **Cross-Reference Analysis Results**
76
+
77
+ | Metric | Count | Notes |
78
+ |--------|-------|-------|
79
+ | Total findings | | |
80
+ | Critical | | |
81
+ | High | | |
82
+ | Medium | | |
83
+ | Low | | |
84
+ | Fixes applied | | |
85
+ | Findings deferred | | |
86
+
87
+ **Transition Plan**
88
+
89
+ | Activity | Description | Owner | Target Date | Status |
90
+ |----------|-------------|-------|-------------|--------|
91
+ | Build phase kick-off | | | | |
92
+ | Team onboarding | | | | |
93
+ | Environment provisioning | | | | |
94
+ | Backlog handover | | | | |
95
+ | First sprint planning | | | | |
96
+
97
+ **Lessons Learned**
98
+
99
+ | Category | What Went Well | What Could Improve | Action for Next Time |
100
+ |----------|----------------|--------------------|----------------------|
101
+ | Facilitation | | | |
102
+ | Stakeholder engagement | | | |
103
+ | Documentation | | | |
104
+ | Logistics | | | |
105
+
106
+ **Key Decisions**
107
+
108
+ | # | Decision | Rationale | Owner | Date |
109
+ |---|----------|-----------|-------|------|
110
+ | | | | | |
111
+
112
+ **Action Items**
113
+
114
+ | # | Action | Owner | Due Date | Status |
115
+ |---|--------|-------|----------|--------|
116
+ | | | | | |
117
+
118
+ ---
119
+
120
+ ## Session 13: Cross-Reference Protocol
121
+
122
+ **Run this protocol (Step 0) before facilitating Session 13 topics.**
123
+ This ensures all inconsistencies across Sessions 1–12 are identified and resolved before the wrap-up discussion begins.
124
+
125
+ ### Step 0: Cross-Reference Analysis
126
+
127
+ **Engine gates (D-07/D-19/D-42/D-52) — run before 0a:** Read `${PP_TOOLS%/bin/pp-tools.cjs}/workflows/discovery-sprint/session-13-gates.md` and run every gate it defines, in order. Each must exit 0 — or take its own documented absent-artifact arm — before the cross-reference analysis begins.
128
+
129
+ #### 0a. Launch Parallel Cross-Reference Analysis
130
+
131
+ Analyze all prior sessions in three groups. Use Explore agents if available, or perform the analysis sequentially:
132
+
133
+ | Group | Sessions | Focus |
134
+ |-------|----------|-------|
135
+ | Business Functional | 1–4 (Kick-off, As-Is, To-Be, UX) | Scope alignment, requirement consistency, persona/role naming, process definitions |
136
+ | Technical | 5–8 (Architecture, Security, Identity, Integration) | Technology stack consistency, role/RBAC alignment, integration point definitions, API contracts |
137
+ | Governance & Costs | 9–12 (QA, Infrastructure, Roadmap, Team) | Timeline feasibility, resource allocation, test strategy alignment, sprint capacity |
138
+
139
+ For each group: read all session files AND `.planning/discovery/_context.md`. Cross-reference factual claims, role names, technology choices, integration points, and requirement IDs. Check for contradictions between sessions.
140
+
141
+ #### 0b. Issue Severity Categories
142
+
143
+ | Severity | Description |
144
+ |----------|-------------|
145
+ | Critical | Contradictions causing build failures or incorrect implementation |
146
+ | High | Significant inconsistencies affecting multiple sessions |
147
+ | Medium | Naming/terminology inconsistencies |
148
+ | Low | Minor administrative issues |
149
+
150
+ #### 0c. Cross-Reference Checklist
151
+
152
+ - [ ] **Roles & RBAC:** Same role names, count, and permissions across all sessions (especially S5 vs S7)
153
+ - [ ] **Technology stack:** Consistent tools/frameworks referenced (especially S5, S8, S10)
154
+ - [ ] **Integration points:** Same systems, directions, and protocols across S5, S8, S10
155
+ - [ ] **Requirements traceability:** Every S3 requirement addressable in S5 architecture
156
+ - [ ] **Requirements roll-up:** `discovery rollup --check` exits 0 (totals block matches table)
157
+ - [ ] **Pre-fill/confidential gate:** `discovery input-check` exits 0 (no unconfirmed markers, no tracked confidential files)
158
+ - [ ] **Research-track gate:** `discovery research-check` exits 0 (no structural faults, no stale ⚠️ markers)
159
+ - [ ] **Screen-traceability gate:** `discovery screen-check` exits 0 (no structural faults, every MVP requirement placed on a screen or in the no-screen bucket, no discovery instrumentation in the build tree)
160
+ - [ ] **Scope boundaries:** In-scope/out-of-scope consistent between S1, S3, S11
161
+ - [ ] **Stakeholder names:** Consistent across all sessions
162
+ - [ ] **KPIs and metrics:** Consistent definitions between S1, S3, S11
163
+ - [ ] **Security constraints:** S6 constraints reflected in S5 and S10
164
+ - [ ] **Test strategy:** S9 covers all S3 requirements and S5 components
165
+ - [ ] **Timeline and capacity:** S11 roadmap feasible given S12 team and S9 test needs
166
+ - [ ] **Action items:** No duplicates or contradictions in `_progress.md`
167
+
168
+ #### 0d. Present Findings
169
+
170
+ After analysis, consolidate findings into a single report grouped by severity:
171
+
172
+ ```
173
+ Cross-Reference Analysis Complete
174
+
175
+ Found: X findings (C critical, H high, M medium, L low)
176
+
177
+ Critical/High Issues:
178
+ 1. [C1] Description — Sessions affected — Recommended fix
179
+
180
+ Medium Issues:
181
+ 1. [M1] Description — Sessions affected — Recommended fix
182
+
183
+ Low Issues:
184
+ 1. [L1] Description — Sessions affected — Recommended fix
185
+ ```
186
+
187
+ #### 0e. Resolve Issues
188
+
189
+ Ask the user how to proceed (AskUserQuestion or text-mode numbered list):
190
+
191
+ 1. Fix all + discuss planning (Recommended)
192
+ 2. Fix critical/high only — note the rest
193
+ 3. Review each finding one by one
194
+ 4. Skip cross-reference (not recommended)
195
+
196
+ Apply fixes using Edit tool across affected session files. Update `.planning/discovery/_context.md` if key facts change.
197
+
198
+ #### 0f. Record Cross-Reference Results
199
+
200
+ Capture in `.planning/discovery/session-13.md` notes:
201
+ - Total findings count and severity breakdown
202
+ - List of all fixes applied (file, what changed, why)
203
+ - Any findings deferred or noted but not fixed
204
+
205
+ Then proceed to Step 5 (Facilitate Session 13 topics).
@@ -0,0 +1,266 @@
1
+ # Bootstrap Template — .planning/discovery/_context.md
2
+
3
+ > **Lazy-loaded.** Read this file from `workflows/discovery-sprint.md` — from
4
+ > Flow 2 Step 1, or from the Bootstrap Templates section — when
5
+ > `.planning/discovery/_context.md` is absent (first-ever session on this
6
+ > project). Create that file verbatim from the fenced schema below. The path is
7
+ > fixed under `.planning/discovery/` (T-04-03): never a root-level directory,
8
+ > never an absolute path, never a path containing `..`.
9
+
10
+ **`.planning/discovery/_context.md`:**
11
+
12
+ ```markdown
13
+ # Cross-Session Context — [PROJECT_NAME]
14
+
15
+ This file accumulates key outputs from each completed session to provide context for subsequent sessions. It is automatically maintained as sessions are completed.
16
+
17
+ ---
18
+
19
+ ## Session 1: Kick-off Outputs
20
+ _Populated after Session 1 completion_
21
+
22
+ ### Project Context
23
+ <!-- Notes about the rationale and context -->
24
+
25
+ ### Business Vision
26
+ <!-- Business vision summary, KPIs -->
27
+
28
+ ### Stakeholders
29
+ <!-- Key stakeholder list with roles -->
30
+
31
+ ### Discovery Sprint Scope
32
+ **In Scope:**
33
+ -
34
+
35
+ **Out of Scope:**
36
+ -
37
+
38
+ ---
39
+
40
+ ## Session 2: As-Is Outputs
41
+ _Populated after Session 2 completion_
42
+
43
+ ### Core Processes
44
+ <!-- Current business processes -->
45
+
46
+ ### Pain Points
47
+ <!-- Prioritized pain points -->
48
+
49
+ ### User Personas
50
+ <!-- Key personas and their journeys -->
51
+
52
+ ### Current Systems
53
+ <!-- Systems landscape -->
54
+
55
+ ### Data Flows
56
+ <!-- How information moves today -->
57
+
58
+ ---
59
+
60
+ ## Session 3: To-Be Outputs
61
+ _Populated after Session 3 completion_
62
+
63
+ ### Business Objectives
64
+ <!-- Measurable outcomes and KPIs -->
65
+
66
+ ### MVP Scope
67
+ <!-- What's in/out for MVP -->
68
+
69
+ ### EPICs Summary
70
+ <!-- EPIC registry table -->
71
+
72
+ ### User Stories Summary
73
+ <!-- Story count and distribution -->
74
+
75
+ ### Requirements Summary
76
+ <!-- Copy the rollup:auto totals table verbatim from .planning/discovery/_requirements.md — never hand-count -->
77
+
78
+ ---
79
+
80
+ ## Session 4: UX Design Outputs
81
+ _Populated after Session 4 completion_
82
+
83
+ ### Design Principles
84
+ <!-- Numbered design principles -->
85
+
86
+ ### UX Standards
87
+ <!-- Standards Applied: platform, navigation, language, accessibility — with the frontend/standards/ citation when the client vault carries one, and every D-04 deviation -->
88
+
89
+ ### Key Personas (Refined)
90
+ <!-- Persona categories and interaction patterns -->
91
+
92
+ ### Key Screen Decisions
93
+ <!-- Screen layout decisions -->
94
+
95
+ ### Prototype
96
+ <!-- Session 4 Closing Step answer; per /pp-discovery prototype round: flows validated, open feedback count -->
97
+
98
+ ---
99
+
100
+ ## Session 5: Architecture Outputs
101
+ _Populated after Session 5 completion_
102
+
103
+ ### Target Architecture
104
+ <!-- Platform, architecture style, ownership -->
105
+
106
+ ### Technology Stack
107
+ <!-- Full stack listing -->
108
+
109
+ ### Key Components
110
+ <!-- Module/component list -->
111
+
112
+ ### Integration Points
113
+ <!-- External system integrations -->
114
+
115
+ ### ADRs
116
+ <!-- Architecture Decision Records -->
117
+
118
+ ### Domain Model / Entity Register
119
+ <!-- Entity, key attributes, relationships, owner module -->
120
+
121
+ ---
122
+
123
+ ## Session 6: Security Outputs
124
+ _Populated after Session 6 completion_
125
+
126
+ ### Data Classification
127
+ <!-- Data sensitivity levels -->
128
+
129
+ ### Compliance Framework
130
+ <!-- Standards and regulations -->
131
+
132
+ ### Encryption
133
+ <!-- In-transit, at-rest, key management -->
134
+
135
+ ### Network & Access
136
+ <!-- Network security approach -->
137
+
138
+ ### Audit Logging
139
+ <!-- Logging strategy and retention -->
140
+
141
+ ### Availability
142
+ <!-- SLA targets -->
143
+
144
+ ---
145
+
146
+ ## Session 7: Identity Management Outputs
147
+ _Populated after Session 7 completion_
148
+
149
+ ### RBAC Model
150
+ <!-- Roles and permissions summary -->
151
+
152
+ ### IdP Integration
153
+ <!-- Identity provider details -->
154
+
155
+ ### User Lifecycle
156
+ <!-- Provisioning approach -->
157
+
158
+ ---
159
+
160
+ ## Session 8: Integration Outputs
161
+ _Populated after Session 8 completion_
162
+
163
+ ### External Systems
164
+ <!-- Systems and their interfaces -->
165
+
166
+ ### Interface Patterns
167
+ <!-- Chosen patterns and protocols -->
168
+
169
+ ### Data Exchange
170
+ <!-- Key data flows and formats -->
171
+
172
+ ---
173
+
174
+ ## Session 9: QA Outputs
175
+ _Populated after Session 9 completion_
176
+
177
+ ### Test Strategy
178
+ <!-- Testing approach -->
179
+
180
+ ### Tooling
181
+ <!-- Test management and automation tools -->
182
+
183
+ ### Test Environments
184
+ <!-- Environment list and purposes -->
185
+
186
+ ### Quality Gates
187
+ <!-- Gate definitions -->
188
+
189
+ ### UAT
190
+ <!-- UAT participants, period, criteria -->
191
+
192
+ ---
193
+
194
+ ## Session 10: Infrastructure Outputs
195
+ _Populated after Session 10 completion_
196
+
197
+ ### Infrastructure
198
+ <!-- Cloud/hosting setup -->
199
+
200
+ ### Deployment
201
+ <!-- Deployment strategy -->
202
+
203
+ ### Monitoring
204
+ <!-- Monitoring and alerting approach -->
205
+
206
+ ### Backup & DR
207
+ <!-- Backup and disaster recovery -->
208
+
209
+ ### Go-Live Readiness
210
+ <!-- Readiness checklist status -->
211
+
212
+ ---
213
+
214
+ ## Session 11: Roadmap Outputs
215
+ _Populated after Session 11 completion_
216
+
217
+ ### Project Phases
218
+ <!-- Phase breakdown -->
219
+
220
+ ### Timeline
221
+ <!-- Sprint cadence and key dates -->
222
+
223
+ ### MVP Scope (Confirmed)
224
+ <!-- Must-have vs nice-to-have -->
225
+
226
+ ### Build Order
227
+ <!-- Sprint-by-sprint plan -->
228
+
229
+ ### Key Milestones
230
+ <!-- Milestone dates -->
231
+
232
+ ### Risks
233
+ <!-- Top risks and mitigations -->
234
+
235
+ ---
236
+
237
+ ## Session 12: Delivery Model Outputs
238
+ _Populated after Session 12 completion_
239
+
240
+ ### Team Structure
241
+ <!-- Key roles and people -->
242
+
243
+ ### Governance
244
+ <!-- Governance framework summary -->
245
+
246
+ ### Ceremonies
247
+ <!-- Sprint cadence and meetings -->
248
+
249
+ ### Support Model
250
+ <!-- Post-go-live support approach -->
251
+
252
+ ---
253
+
254
+ ## Session 13: Wrap-up Outputs
255
+ _Populated after Session 13 completion_
256
+
257
+ ### Decision Readiness
258
+ <!-- Go / Conditional Go / No-Go assessment -->
259
+
260
+ ### Open Items
261
+ <!-- Items carried forward -->
262
+
263
+ ### Next Steps
264
+ <!-- Transition plan to execution -->
265
+ ```
266
+