@hassangameryt/freeflow 0.8.0 → 0.9.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 (290) hide show
  1. package/.agents/plugins/marketplace.json +2 -2
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +2 -2
  4. package/.codex-plugin/plugin.json +3 -3
  5. package/.cursor-plugin/plugin.json +1 -1
  6. package/README.md +96 -149
  7. package/capabilities/cognitive-routing/SKILL.md +21 -129
  8. package/capabilities/cognitive-routing/references/coordinator.md +163 -0
  9. package/capabilities/cognitive-routing/references/worker.md +38 -0
  10. package/capabilities/compaction/SKILL.md +3 -3
  11. package/capabilities/compaction/references/summary-format.md +26 -15
  12. package/capabilities/messaging/SKILL.md +49 -0
  13. package/capabilities/task-memory/SKILL.md +87 -0
  14. package/command-surface.json +6 -54
  15. package/gemini-extension.json +1 -1
  16. package/hooks/claude/hooks.json +13 -3
  17. package/hooks/codex/hooks.json +2 -1
  18. package/hooks/shared/runtime-context.mjs +69 -77
  19. package/package.json +25 -8
  20. package/pi-extension/dist/ask-user/ask.js +108 -0
  21. package/pi-extension/dist/ask-user/form.js +250 -0
  22. package/pi-extension/dist/ask-user/questions.js +66 -0
  23. package/pi-extension/dist/ask-user/tool.js +124 -0
  24. package/pi-extension/dist/cognitive-routing/assembler.js +35 -11
  25. package/pi-extension/dist/cognitive-routing/bootstrap.js +90 -0
  26. package/pi-extension/dist/cognitive-routing/config.js +3 -4
  27. package/pi-extension/dist/cognitive-routing/event-store.js +4 -1
  28. package/pi-extension/dist/cognitive-routing/gate.js +20 -5
  29. package/pi-extension/dist/cognitive-routing/handlers.js +15 -13
  30. package/pi-extension/dist/cognitive-routing/model-control.js +17 -8
  31. package/pi-extension/dist/cognitive-routing/projection.js +23 -6
  32. package/pi-extension/dist/cognitive-routing/provenance.js +3 -1
  33. package/pi-extension/dist/cognitive-routing/render.js +15 -15
  34. package/pi-extension/dist/cognitive-routing/runtime.js +4 -2
  35. package/pi-extension/dist/cognitive-routing/schemas.js +4 -4
  36. package/pi-extension/dist/cognitive-routing/session.js +3 -1
  37. package/pi-extension/dist/cognitive-routing/sources.js +29 -4
  38. package/pi-extension/dist/cognitive-routing/state.js +18 -8
  39. package/pi-extension/dist/cognitive-routing/status.js +4 -3
  40. package/pi-extension/dist/cognitive-routing/tools.js +29 -15
  41. package/pi-extension/dist/cognitive-routing/types.js +10 -1
  42. package/pi-extension/dist/compaction/carry.js +36 -22
  43. package/pi-extension/dist/compaction/config.js +4 -2
  44. package/pi-extension/dist/compaction/controller.js +52 -29
  45. package/pi-extension/dist/compaction/harness.js +19 -3
  46. package/pi-extension/dist/compaction/results.js +14 -13
  47. package/pi-extension/dist/compaction/tool.js +6 -6
  48. package/pi-extension/dist/host/catalog.js +20 -35
  49. package/pi-extension/dist/host/config-validation.js +233 -0
  50. package/pi-extension/dist/host/config.js +78 -91
  51. package/pi-extension/dist/host/inbound.js +142 -0
  52. package/pi-extension/dist/host/projection-tags.js +1 -1
  53. package/pi-extension/dist/host/prompts.js +24 -13
  54. package/pi-extension/dist/host/read-only-session.js +6 -1
  55. package/pi-extension/dist/host/request-history.js +7 -3
  56. package/pi-extension/dist/host/rows.js +25 -0
  57. package/pi-extension/dist/host/runtime-state.js +17 -2
  58. package/pi-extension/dist/host/section-keeper.js +85 -0
  59. package/pi-extension/dist/host/settings/freeflow-command.js +846 -93
  60. package/pi-extension/dist/host/settings/settings-view.js +27 -8
  61. package/pi-extension/dist/host/status.js +19 -5
  62. package/pi-extension/dist/index.js +638 -72
  63. package/pi-extension/dist/messaging/config.js +27 -0
  64. package/pi-extension/dist/messaging/messaging.js +398 -0
  65. package/pi-extension/dist/messaging/registry.js +57 -0
  66. package/pi-extension/dist/messaging/render.js +90 -0
  67. package/pi-extension/dist/messaging/tools.js +109 -0
  68. package/pi-extension/dist/messaging/transport.js +101 -0
  69. package/pi-extension/dist/provider-support/cache/keepalive.js +16 -4
  70. package/pi-extension/dist/task-memory/config.js +49 -0
  71. package/pi-extension/dist/task-memory/registry.js +119 -0
  72. package/pi-extension/dist/task-memory/render.js +107 -0
  73. package/pi-extension/dist/task-memory/runtime.js +994 -0
  74. package/pi-extension/dist/task-memory/tool.js +233 -0
  75. package/pi-extension/dist/tool-execution/apply-patch/tool.js +1 -1
  76. package/pi-extension/dist/tool-execution/background.js +220 -28
  77. package/pi-extension/dist/tool-execution/config.js +14 -3
  78. package/pi-extension/dist/tool-execution/file-tracking.js +24 -4
  79. package/pi-extension/dist/tool-execution/guidance-notices.js +124 -0
  80. package/pi-extension/dist/tool-execution/skill-reads.js +143 -0
  81. package/pi-extension/dist/tool-execution/tools.js +2 -2
  82. package/runtime/prompts/cognitive-routing.md +4 -4
  83. package/runtime/prompts/core.md +24 -14
  84. package/runtime/prompts/interaction-contract.md +7 -4
  85. package/runtime/prompts/tool-execution.md +3 -16
  86. package/runtime/prompts/working-method.md +16 -99
  87. package/skills/deliver-work/SKILL.md +76 -0
  88. package/skills/deliver-work/references/branch-closeout.md +134 -0
  89. package/skills/deliver-work/references/commit.md +83 -0
  90. package/skills/deliver-work/references/launch.md +94 -0
  91. package/skills/deliver-work/references/release.md +85 -0
  92. package/skills/deliver-work/scripts/commit-state.mjs +139 -0
  93. package/skills/deliver-work/scripts/delivery-state.mjs +107 -0
  94. package/skills/deliver-work/scripts/lib/git-state.mjs +178 -0
  95. package/skills/deliver-work/scripts/push-route.mjs +122 -0
  96. package/skills/deliver-work/scripts/release-preflight.mjs +177 -0
  97. package/skills/discuss-work/SKILL.md +148 -0
  98. package/skills/{discuss → discuss-work}/references/discussion-continuity.md +10 -27
  99. package/skills/discuss-work/references/learning-action.md +36 -0
  100. package/skills/discuss-work/scripts/choices.mjs +101 -0
  101. package/skills/discuss-work/scripts/lib/choices.mjs +159 -0
  102. package/skills/evaluate-behavior/SKILL.md +107 -0
  103. package/skills/evaluate-behavior/references/authoring.md +381 -0
  104. package/skills/evaluate-behavior/references/coding-tasks.md +145 -0
  105. package/skills/evaluate-behavior/references/conversations-pipelines-judges.md +177 -0
  106. package/skills/evaluate-behavior/references/design-and-measurement.md +273 -0
  107. package/skills/evaluate-behavior/references/running-and-evidence.md +245 -0
  108. package/skills/evaluate-behavior/scripts/claude-guard.mjs +76 -0
  109. package/skills/evaluate-behavior/scripts/guard-rules.mjs +309 -0
  110. package/skills/evaluate-behavior/scripts/lib/agreement.mjs +90 -0
  111. package/skills/evaluate-behavior/scripts/lib/arms.mjs +55 -0
  112. package/skills/evaluate-behavior/scripts/lib/budget.mjs +87 -0
  113. package/skills/evaluate-behavior/scripts/lib/build-source.mjs +287 -0
  114. package/skills/evaluate-behavior/scripts/lib/clear.mjs +74 -0
  115. package/skills/evaluate-behavior/scripts/lib/container.mjs +395 -0
  116. package/skills/evaluate-behavior/scripts/lib/decision.mjs +418 -0
  117. package/skills/evaluate-behavior/scripts/lib/definitions.mjs +1072 -0
  118. package/skills/evaluate-behavior/scripts/lib/freeflow.mjs +103 -0
  119. package/skills/evaluate-behavior/scripts/lib/grade-command.mjs +591 -0
  120. package/skills/evaluate-behavior/scripts/lib/grade-comparison.mjs +90 -0
  121. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-interaction.mjs +19 -18
  122. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-support.mjs +32 -5
  123. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-workspace.mjs +28 -12
  124. package/skills/evaluate-behavior/scripts/lib/grade.mjs +101 -0
  125. package/skills/evaluate-behavior/scripts/lib/hooks.mjs +98 -0
  126. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/confinement.mjs +196 -0
  127. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/constraints.mjs +111 -0
  128. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/index.mjs +48 -0
  129. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/isolation.mjs +74 -0
  130. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/launch.mjs +123 -0
  131. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/model-call.mjs +73 -0
  132. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/recorder.mjs +178 -0
  133. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/session.mjs +494 -0
  134. package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/skills.mjs +81 -0
  135. package/skills/evaluate-behavior/scripts/lib/hosts/index.mjs +31 -0
  136. package/skills/evaluate-behavior/scripts/lib/hosts/names.mjs +3 -0
  137. package/skills/evaluate-behavior/scripts/lib/hosts/pi/confinement.mjs +173 -0
  138. package/skills/evaluate-behavior/scripts/lib/hosts/pi/host.mjs +148 -0
  139. package/skills/evaluate-behavior/scripts/lib/hosts/pi/index.mjs +70 -0
  140. package/skills/evaluate-behavior/scripts/lib/hosts/pi/isolation.mjs +81 -0
  141. package/skills/evaluate-behavior/scripts/lib/hosts/pi/model-call.mjs +79 -0
  142. package/skills/evaluate-behavior/scripts/lib/hosts/pi/process.mjs +241 -0
  143. package/skills/{evaluate-skill/scripts/lib → evaluate-behavior/scripts/lib/hosts/pi}/rpc.mjs +144 -26
  144. package/skills/evaluate-behavior/scripts/lib/identity.mjs +82 -0
  145. package/skills/evaluate-behavior/scripts/lib/judge.mjs +688 -0
  146. package/skills/evaluate-behavior/scripts/lib/metrics.mjs +332 -0
  147. package/skills/evaluate-behavior/scripts/lib/model-call.mjs +17 -0
  148. package/skills/evaluate-behavior/scripts/lib/participants.mjs +616 -0
  149. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/process.mjs +22 -0
  150. package/skills/evaluate-behavior/scripts/lib/queue.mjs +54 -0
  151. package/skills/evaluate-behavior/scripts/lib/reference.mjs +343 -0
  152. package/skills/evaluate-behavior/scripts/lib/reuse.mjs +277 -0
  153. package/skills/evaluate-behavior/scripts/lib/review.mjs +933 -0
  154. package/skills/evaluate-behavior/scripts/lib/runner.mjs +732 -0
  155. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/sandbox.mjs +119 -14
  156. package/skills/evaluate-behavior/scripts/lib/scan-shell.mjs +457 -0
  157. package/skills/evaluate-behavior/scripts/lib/scan.mjs +479 -0
  158. package/skills/evaluate-behavior/scripts/lib/seal.mjs +91 -0
  159. package/skills/evaluate-behavior/scripts/lib/shell.mjs +560 -0
  160. package/skills/evaluate-behavior/scripts/lib/source-override.mjs +64 -0
  161. package/skills/evaluate-behavior/scripts/lib/subject-file.mjs +88 -0
  162. package/skills/{evaluate-skill/scripts/lib/pi.mjs → evaluate-behavior/scripts/lib/subject.mjs} +235 -265
  163. package/skills/evaluate-behavior/scripts/lib/task-copy.mjs +124 -0
  164. package/skills/evaluate-behavior/scripts/lib/trials.mjs +524 -0
  165. package/skills/evaluate-behavior/scripts/lib/validity.mjs +68 -0
  166. package/skills/evaluate-behavior/scripts/lib/view-html.mjs +454 -0
  167. package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/view.mjs +159 -18
  168. package/skills/{evaluate-skill → evaluate-behavior}/scripts/pi-command-tool.mjs +21 -6
  169. package/skills/evaluate-behavior/scripts/pi-container-route.mjs +23 -0
  170. package/skills/evaluate-behavior/scripts/pi-guard.mjs +77 -0
  171. package/skills/evaluate-behavior/scripts/pi-login-refresh.mjs +31 -0
  172. package/skills/evaluate-behavior/scripts/skill-eval.mjs +586 -0
  173. package/skills/execute-work/SKILL.md +96 -104
  174. package/skills/execute-work/references/code-practices.md +27 -51
  175. package/skills/execute-work/references/design.md +271 -0
  176. package/skills/execute-work/references/diagnose.md +117 -0
  177. package/skills/execute-work/references/migration.md +108 -0
  178. package/skills/execute-work/references/simplify.md +65 -0
  179. package/skills/execute-work/scripts/self-review.mjs +422 -0
  180. package/skills/execute-work/scripts/touch-map.mjs +290 -0
  181. package/skills/review-work/SKILL.md +89 -65
  182. package/skills/review-work/references/adjudication.md +94 -0
  183. package/skills/review-work/references/artifact.md +198 -0
  184. package/skills/review-work/references/evals-and-judges.md +66 -0
  185. package/skills/review-work/references/work.md +177 -0
  186. package/skills/review-work/scripts/check-brief.mjs +128 -0
  187. package/skills/review-work/scripts/review-packet.mjs +233 -0
  188. package/skills/setup-freeflow/SKILL.md +68 -17
  189. package/skills/track-work/SKILL.md +52 -20
  190. package/skills/track-work/references/handoff.md +190 -0
  191. package/skills/track-work/references/projects.md +51 -0
  192. package/skills/track-work/references/working-record-format.md +36 -18
  193. package/skills/track-work/scripts/lib/document.mjs +17 -13
  194. package/skills/track-work/scripts/lib/format.mjs +2 -0
  195. package/skills/track-work/scripts/lib/recover.mjs +254 -0
  196. package/skills/track-work/scripts/lib/registry.mjs +656 -0
  197. package/skills/track-work/scripts/lib/search.mjs +40 -0
  198. package/skills/track-work/scripts/lib/store.mjs +46 -15
  199. package/skills/track-work/scripts/lib/views.mjs +50 -1
  200. package/skills/track-work/scripts/working-record.mjs +232 -13
  201. package/skills/verify-work/SKILL.md +45 -37
  202. package/skills/verify-work/references/feature-map.md +120 -0
  203. package/skills/verify-work/references/runtime-evidence.md +203 -0
  204. package/skills/verify-work/references/test-design.md +25 -6
  205. package/skills/verify-work/scripts/test-changes.mjs +246 -0
  206. package/skills/write-docs/SKILL.md +113 -25
  207. package/skills/write-docs/references/documentation-shapes.md +68 -3
  208. package/skills/write-docs/references/spec-and-plan-shapes.md +308 -0
  209. package/skills/write-docs/scripts/artifact-check.mjs +148 -0
  210. package/skills/write-docs/scripts/docs-check.mjs +96 -6
  211. package/skills/write-docs/scripts/plan-lint.mjs +123 -0
  212. package/skills/write-skill/SKILL.md +92 -52
  213. package/skills/write-skill/references/activation-and-wording.md +143 -0
  214. package/skills/write-skill/references/placement-and-dependencies.md +154 -0
  215. package/skills/write-skill/scripts/lib/compare.mjs +701 -0
  216. package/skills/write-skill/scripts/lib/skill-author.mjs +197 -3
  217. package/skills/write-skill/scripts/skill-author.mjs +51 -8
  218. package/capabilities/cognitive-routing/references/both-mode.md +0 -36
  219. package/capabilities/cognitive-routing/references/executor-mode.md +0 -48
  220. package/capabilities/cognitive-routing/references/helper-mode.md +0 -47
  221. package/plugin.json +0 -33
  222. package/skills/action-selection/SKILL.md +0 -92
  223. package/skills/action-selection/references/trajectory-stalls.md +0 -73
  224. package/skills/bypass/SKILL.md +0 -153
  225. package/skills/commit-work/SKILL.md +0 -93
  226. package/skills/commit-work/references/git-state-edges.md +0 -94
  227. package/skills/commit-work/references/simple-push.md +0 -94
  228. package/skills/commit-work/references/staging-decisions.md +0 -106
  229. package/skills/decision-gate/SKILL.md +0 -87
  230. package/skills/design-for-depth/SKILL.md +0 -108
  231. package/skills/design-for-depth/references/design-pressure-signals.md +0 -84
  232. package/skills/design-for-depth/references/implementation-decisions.md +0 -76
  233. package/skills/design-for-depth/references/interface-design-loop.md +0 -105
  234. package/skills/design-for-depth/references/module-and-dependency-design.md +0 -117
  235. package/skills/design-for-depth/references/state-and-failure-boundaries.md +0 -125
  236. package/skills/diagnose-failure/SKILL.md +0 -140
  237. package/skills/diagnose-failure/references/diagnostic-loop-catalog.md +0 -50
  238. package/skills/diagnose-failure/references/flaky-and-performance-diagnosis.md +0 -51
  239. package/skills/discuss/SKILL.md +0 -140
  240. package/skills/evaluate-skill/SKILL.md +0 -188
  241. package/skills/evaluate-skill/references/evaluation-definition-schema.md +0 -415
  242. package/skills/evaluate-skill/references/evaluation-design.md +0 -112
  243. package/skills/evaluate-skill/references/execution-and-evidence.md +0 -111
  244. package/skills/evaluate-skill/references/review-and-revision.md +0 -94
  245. package/skills/evaluate-skill/scripts/lib/definitions.mjs +0 -448
  246. package/skills/evaluate-skill/scripts/lib/grade-comparison.mjs +0 -60
  247. package/skills/evaluate-skill/scripts/lib/grade.mjs +0 -64
  248. package/skills/evaluate-skill/scripts/lib/review.mjs +0 -196
  249. package/skills/evaluate-skill/scripts/lib/runner.mjs +0 -405
  250. package/skills/evaluate-skill/scripts/lib/trials.mjs +0 -103
  251. package/skills/evaluate-skill/scripts/pi-guard.mjs +0 -181
  252. package/skills/evaluate-skill/scripts/skill-eval.mjs +0 -182
  253. package/skills/execute-work/references/execute-work-edges.md +0 -78
  254. package/skills/finish-branch/SKILL.md +0 -117
  255. package/skills/finish-branch/references/integration-options.md +0 -80
  256. package/skills/handoff/SKILL.md +0 -82
  257. package/skills/handoff/references/handoff-templates.md +0 -150
  258. package/skills/launch-work/SKILL.md +0 -116
  259. package/skills/launch-work/references/launch-readiness.md +0 -85
  260. package/skills/migration-work/SKILL.md +0 -115
  261. package/skills/migration-work/references/migration-lifecycle.md +0 -82
  262. package/skills/release-work/SKILL.md +0 -118
  263. package/skills/release-work/references/release-evidence.md +0 -78
  264. package/skills/review-artifact/SKILL.md +0 -143
  265. package/skills/review-artifact/references/adjudicate-artifact-review.md +0 -101
  266. package/skills/review-artifact/references/independent-artifact-reviewer-contract.md +0 -159
  267. package/skills/review-work/references/adjudicate-work-review.md +0 -97
  268. package/skills/review-work/references/independent-work-reviewer-contract.md +0 -139
  269. package/skills/review-work/references/security-risk-lens.md +0 -67
  270. package/skills/setup-freeflow/references/activation-contract.md +0 -103
  271. package/skills/setup-freeflow/references/host-setup.md +0 -67
  272. package/skills/simplify-code/SKILL.md +0 -85
  273. package/skills/simplify-code/references/simplification-patterns.md +0 -70
  274. package/skills/verify-work/references/browser-runtime-evidence.md +0 -51
  275. package/skills/verify-work/references/integration-evidence.md +0 -49
  276. package/skills/verify-work/references/performance-evidence.md +0 -59
  277. package/skills/workflow/SKILL.md +0 -171
  278. package/skills/workflow/references/domain-skill-composition.md +0 -45
  279. package/skills/write-plan/SKILL.md +0 -92
  280. package/skills/write-plan/references/plan-shapes.md +0 -156
  281. package/skills/write-skill/references/activation-boundaries.md +0 -106
  282. package/skills/write-skill/references/agent-first-instructions.md +0 -133
  283. package/skills/write-skill/references/progressive-disclosure.md +0 -129
  284. package/skills/write-skill/references/skill-dependency-graphs.md +0 -192
  285. package/skills/write-spec/SKILL.md +0 -85
  286. package/skills/write-spec/references/artifact-standards.md +0 -86
  287. package/skills/write-spec/references/decision-records.md +0 -80
  288. package/skills/write-spec/references/spec-shapes.md +0 -143
  289. /package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/evidence.mjs +0 -0
  290. /package/skills/{evaluate-skill → evaluate-behavior}/scripts/pi-observer.mjs +0 -0
@@ -1,82 +0,0 @@
1
- ---
2
- name: handoff
3
- description: "Use when work must continue safely after a pause, context change, or ownership transfer."
4
- ---
5
-
6
- # Handoff
7
-
8
- Preserve the point-in-time information another context needs to continue the agreed work without restarting discovery or changing its goal.
9
-
10
- A [Working Record](../track-work/SKILL.md) maintains living task state. A handoff identifies that record, the relevant sources, and transfer-specific facts the recipient would otherwise miss. Neither is authority, proof of completion, or a replacement for current user direction and live evidence.
11
-
12
- ## Choose The Transfer Boundary
13
-
14
- Identify the recipient, purpose, and available transfer mechanism before writing.
15
-
16
- - **Ephemeral handoff:** use the response or host continuation mechanism for immediate transfer, including compaction. Use a temporary file only when the transfer needs it.
17
- - **Repo-memory handoff:** use the repository's established destination when durable continuation documentation is requested or approved.
18
- - **User-provided destination:** follow the requested safe location and format.
19
-
20
- Do not turn an ephemeral transfer into repository memory. If the destination materially changes durability, privacy, repository state, audience, or authority and the user has not chosen it, ask one question and wait.
21
-
22
- Read [Handoff Templates](references/handoff-templates.md) after the shape, recipient, and purpose are clear. Use only fields that change safe continuation; the template is not a requirement to create another document.
23
-
24
- ## Prepare From The Actual State
25
-
26
- Inspect only the relevant worktree, artifacts, processes, and evidence needed to describe what the recipient will encounter. Reconcile an existing Working Record through Track Work when its understanding, current work, dependencies, evidence, or next action changed.
27
-
28
- Preserve the execution agreement separately from the immediate assignment: what outcome remains authorized, what this unit covers, what is excluded, and when the user expects a return. Identify the assignment's source and any superseded instruction whose reuse would misdirect continuation. A recommendation to continue is not the same as approval to finish the remaining task.
29
-
30
- Do not create a record merely because a handoff exists or change task/Slice state merely because context will be transferred. Use the host's safe boundary for ongoing operations; do not infer an unobserved result or interrupt a mutation to make a cleaner handoff.
31
-
32
- Partial work is a valid transfer state. Preserve unverified edits, failing checks, unresolved causes, and residual effects honestly. Do not rush to completion because compaction is near.
33
-
34
- ## Capture The Next Useful Continuation
35
-
36
- Include only material information:
37
-
38
- - the intended outcome, agreed scope, user-facing return condition, and defining sources;
39
- - current task/Slice and Workflow route when present;
40
- - completed and partial work, supporting evidence, and what remains unverified;
41
- - relevant repository, worktree, artifact, configuration, or process identity;
42
- - accepted decisions and their sources, later amendments, and remaining hypotheses;
43
- - changed assumptions, consequential rejected approaches, and affected Spec or Plan sections;
44
- - dependencies for remaining work and which are established versus unresolved;
45
- - the next accepted action and the minimum sources needed for it, or a recommendation awaiting authority;
46
- - blockers, selected checkpoints, and conditions requiring return rather than continuation.
47
-
48
- Point to the current Working Record and accepted artifacts instead of duplicating their full contents. A Plan preserves strategy; the record preserves actual work and deviations. The handoff preserves transfer-specific context, not a second mutable task narrative.
49
-
50
- For learning, preserve the question, evidence and limits, the discard/revise/promote/inconclusive result, exploratory-artifact disposition, and consequence for dependent work. A recorded promotion does not grant production authority.
51
-
52
- For selected independent review, preserve review number, reviewed state, reviewer and adjudicated judgments, material Accepted or Open findings, changed areas, and whether follow-up remains selected. A new context or reviewer does not reset the budget.
53
-
54
- ## Preserve Scope And Evidence
55
-
56
- A newer summary is not necessarily a newer accepted decision. Distinguish source-backed changes from proposals; do not let "next" turn an optional follow-up into an obligation or carry a stronger claim than the evidence supports.
57
-
58
- Include narrow dirty-state or process details when omission could cause loss, overwrite, duplicate execution, or false completion. Keep check outputs linked to the code/artifact and observer state they examined using available identities or source pointers. Distinguish an actual prior observation from whether it still applies after later changes. A missing output is unavailable evidence, not a reason to invent or automatically repeat the run. Do not copy full diffs, logs, transcripts, or reviewer reports when exact recoverable pointers suffice.
59
-
60
- Exclude secrets, credentials, unrestricted personal data, and private payloads unnecessary for continuation. Do not promise access to unavailable sources or reconstruct their exact content from memory.
61
-
62
- If safe transfer would require inventing intent, approval, evidence, status, or destination, state the missing information. Use [Decision Gate](../decision-gate/SKILL.md) when resolving it needs one user-owned choice.
63
-
64
- ## Reconstruct Before Resuming
65
-
66
- Follow current core and capability recovery guidance before task action. A handoff's earlier route or profile description is not current runtime state.
67
-
68
- 1. Read the complete Working Record through `view full` when resuming after context loss or into another context, then the artifacts listed under its `What defines this task` and its Recovery sources. Do not substitute its `resume` view or the handoff's summary. With intact context, follow Track Work's bounded in-session read guidance.
69
- 2. Reconcile the record and handoff with current user direction, defining sources, and the relevant live environment. Follow supersession and corrections without silently reviving historical decisions.
70
- 3. Check important completion, verification, review, commit, and artifact-identity claims against their evidence before repeating them. Reuse adequate current evidence; a transfer alone does not require rerunning every check.
71
- 4. Establish the actual partial state, remaining dependencies, accepted work agreement, current assignment, and next useful action. Resolve contradictory old/new instructions from their sources before acting; do not resume editing when the current unit permits inspection only. Reopen only additional sources whose exact content or freshness changes that action.
72
- 5. Return the recovered state to [Workflow](../workflow/SKILL.md) for the supported route and authority check. Continue covered work through its owner; stop for a genuine blocker or uncovered choice.
73
-
74
- Without a Working Record, use the available transfer and exact sources to reconstruct enough state; report any missing boundary rather than inventing it. If a required full-record read is incomplete or unavailable, follow Track Work's stop condition instead of claiming recovery succeeded.
75
-
76
- Do not edit merely because a handoff names a next action. Do not restart the whole task or ask for another "continue" solely because an already-authorized task crossed a context boundary. Slice selection and lifecycle remain with Workflow and Track Work, not the handoff.
77
-
78
- ## Report And Stop
79
-
80
- Report the transfer shape and destination, sources preserved, actual state and evidence limits, next accepted action or pending recommendation, and material missing or intentionally omitted sensitive information.
81
-
82
- At the selected pause or transfer boundary, stop after delivering the handoff. It does not complete, block, abandon, or supersede the task or Slice. On recovery, end Handoff once the next owner can continue with coherent scope, authority, and evidence.
@@ -1,150 +0,0 @@
1
- # Handoff Templates
2
-
3
- Read this after the transfer shape, recipient, and purpose are clear. Omit every field that does not change safe continuation.
4
-
5
- Handoffs are memory, not authority. Live sources and repository state override stale handoff text.
6
-
7
- ## Ephemeral Handoff
8
-
9
- Use in the current response, a host continuation mechanism, or a temporary file for immediate continuation.
10
-
11
- ```md
12
- # Continuation Handoff
13
-
14
- Generated: <optional reliable date or time>
15
- Recipient / purpose:
16
-
17
- ## Goal And Owning Sources
18
- - Agreed outcome and scope:
19
- - User-facing return condition:
20
-
21
- ## Current State
22
- - Workflow route:
23
- - Working Record, Spec, or Plan pointers:
24
- - Relevant source or artifact identity:
25
-
26
- ## Completed Work And Evidence
27
- - Result:
28
- - Evidence:
29
- - Supports:
30
- - Does not support:
31
-
32
- ## Decisions And Authority
33
- - Decision:
34
- - Established by:
35
- - Scope:
36
-
37
- ## Deviations Or Invalidated Assumptions
38
-
39
- ## Worktree, Process, Or Environment Watchouts
40
-
41
- ## Review Continuity
42
-
43
- ## Open Decisions, Evidence, Or Blockers
44
-
45
- ## Next Action
46
- - Accepted action:
47
- - Authority source:
48
- - Required dependencies and whether they hold:
49
- - Sources needed for this action:
50
-
51
- Or, when not approved:
52
- - Recommended route:
53
- - Approval or decision needed:
54
-
55
- ## Stop Conditions
56
- ```
57
-
58
- Keep dirty-state details narrow. Include only paths, processes, environments, or artifacts whose omission risks loss, overwrite, duplicate work, or a false claim. In Current State, preserve the current assignment and source when older instructions could compete. In Completed Work And Evidence, distinguish the state actually checked from later changes whose verification remains unresolved.
59
-
60
- ## Repo-Memory Handoff
61
-
62
- Use for durable project continuation in the repository's established location.
63
-
64
- ```md
65
- # Project Handoff
66
-
67
- Generated: <optional reliable date or time>
68
- Recipient / purpose:
69
-
70
- ## Goal And Accepted Outcome
71
- - Agreed scope and exclusions:
72
- - User-facing return condition:
73
-
74
- ## Owning Sources
75
-
76
- ## Stable Context
77
-
78
- ## Current State And Evidence
79
-
80
- ## Working Record, Spec, And Plan Pointers
81
-
82
- ## Decisions, Authority, And Approval Scope
83
-
84
- ## Deviations, Invalidated Assumptions, Or Superseded Direction
85
-
86
- ## Review Continuity
87
-
88
- ## Open Decisions, Evidence Gaps, And Stop Conditions
89
-
90
- ## Next Accepted Action
91
- - Action:
92
- - Authority source:
93
- - Required dependencies and whether they hold:
94
- - Sources needed for this action:
95
-
96
- Or:
97
-
98
- ## Recommended Next Route
99
- - Route:
100
- - Approval or decision needed:
101
- ```
102
-
103
- Do not copy living progress from a Working Record or turn directional Plan content into committed work. Preserve only stable or transfer-critical context that belongs in the handoff.
104
-
105
- ## Learning-Slice Addendum
106
-
107
- Include when an experiment, prototype, benchmark, or investigation changed the route:
108
-
109
- ```md
110
- Question:
111
- Competing hypotheses or designs:
112
- Evidence captured:
113
- Result: discard | revise | promote | inconclusive
114
- Exploratory artifacts retained:
115
- Affected Working Record, Spec, Plan, or later work:
116
- Next accepted action and authority, or recommended route:
117
- ```
118
-
119
- Promotion records a decision; it does not itself authorize production implementation.
120
-
121
- ## Review-Continuity Addendum
122
-
123
- Include only when review state must survive the transfer:
124
-
125
- ```md
126
- Review number: 1 | 2 | 3
127
- Reviewed state identity:
128
- Reviewer judgment: Pass | Non-blocking | Inconclusive | Blocking
129
- Adjudicated judgment: Pass | Non-blocking | Inconclusive | Blocking
130
- Material review items and evidence pointers:
131
- Active-agent item adjudication:
132
- - <item>: Accepted | Rejected | Open — <reason>
133
- Accepted Blocking or Non-blocking Issues:
134
- Material Open items:
135
- Changed areas after review:
136
- Follow-up review status and authority:
137
- ```
138
-
139
- Do not copy full reviewer output when a stable pointer exists. A new context or reviewer continues the existing budget; local edits, renamed scope, or a different reviewer do not reset it.
140
-
141
- ## Resume Checklist
142
-
143
- - After context loss or transfer into another context, read the complete Working Record through `view full` when one exists, then its defining artifacts and Recovery sources. A summary or `resume` projection is not a substitute. Use Track Work's bounded reads for intact-session continuation.
144
- - Reconcile the record and handoff with current user direction and relevant live state; reopen named source truth where exact meaning or freshness matters.
145
- - Confirm artifact, environment, commit, and configuration identity where claims depend on them.
146
- - Check important completion and evidence claims before repeating them; distinguish that a run occurred from whether it applies to the current candidate. Reuse adequate evidence rather than rerun every check merely because a transfer occurred.
147
- - Compare the execution agreement, current assignment and its source, return condition, decisions, dependencies, and review state with the next proposed action. Resolve superseded or conflicting directions before acting.
148
- - Preserve valid and partial work; identify only the invalidated layer. Missing or incomplete recovery remains a reported limit.
149
- - Return the supported route and authority state to Workflow before editing; do not require another user turn merely to continue an already-covered task.
150
- - Use Decision Gate for user-owned choices or source conflicts.
@@ -1,116 +0,0 @@
1
- ---
2
- name: launch-work
3
- description: Use when preparing or carrying out a production deployment, rollout, rollback, or recovery.
4
- ---
5
-
6
- # Launch Work
7
-
8
- Change production deliberately, observe the result, and preserve a safe recovery path.
9
-
10
- Deployment changes what runs. Rollout changes who or what is exposed. A build, merge, release, or staging pass does not prove production behavior.
11
-
12
- ## Establish Authority And Boundary
13
-
14
- Loading this skill, preparing launch options, or approving a general implementation Plan does not authorize deployment, exposure, rollback, destructive migration, or another production action. Execute only the stages explicitly requested or separately approved through an inspected launch contract or accepted operational policy.
15
-
16
- Use [Decision Gate](../decision-gate/SKILL.md) when deployment, exposure, rollback, destructive migration, launch window, acceptable degradation, user communication, or recovery direction remains a user-owned choice.
17
-
18
- Before selecting risk lenses, operational evidence, rollout stages, or recovery checks, read [launch readiness](references/launch-readiness.md). Use [Release Work](../release-work/SKILL.md) when a versioned artifact must be published first. Use [Migration Work](../migration-work/SKILL.md) when the launch transitions data, traffic, consumers, configuration, or compatibility contracts between old and replacement paths with migration or removal obligations.
19
-
20
- ## Define The Launch Contract
21
-
22
- Before changing production, establish:
23
-
24
- ```text
25
- Outcome and affected users / systems:
26
- Artifact / commit / configuration identity:
27
- Target environment and owner:
28
- Deployment versus exposure stages:
29
- Dependencies and migration ordering:
30
- Expected technical, user, business, and data signals:
31
- Advance / hold / abort criteria:
32
- Rollback or forward-recovery path:
33
- Observation and post-launch verification:
34
- Communication and escalation:
35
- Approved stages and scope:
36
- ```
37
-
38
- Use thresholds and observation periods supported by SLOs, baselines, policy, or explicit owner decisions. Do not import universal canary percentages, fixed windows, or “every feature needs a flag” rules.
39
-
40
- ## Establish Readiness
41
-
42
- Select evidence for the actual production boundary. Relevant concerns may include:
43
-
44
- - accepted behavior and regression evidence;
45
- - security, privacy, permissions, billing, and data safety;
46
- - compatibility and migration readiness;
47
- - capacity, performance, dependency, and failure behavior;
48
- - configuration, secrets, infrastructure, and environment drift;
49
- - accessibility and critical user paths;
50
- - logs, metrics, traces, dashboards, alerts, and runbooks;
51
- - support, communication, ownership, and recovery authority.
52
-
53
- A concern is required only when its risk applies. Missing required evidence is not green. Confirm the intended artifact and configuration identity, required pre-production checks, recovery path, operational signals, and any selected review before starting an approved production stage.
54
-
55
- Read [Verify Work](../verify-work/SKILL.md) to match readiness claims to fresh direct evidence. Do not deploy merely to obtain evidence that should exist safely before production. When only production can answer a question, define an approved bounded learning rollout with observation, hold, abort, and recovery conditions first.
56
-
57
- Return unresolved owner decisions, material evidence gaps, or broader review needs to [Workflow](../workflow/SKILL.md). This skill defines the production boundary and evidence; Workflow owns routing and review selection.
58
-
59
- ## Deploy And Expose In Approved Stages
60
-
61
- Separate operations when the platform permits it:
62
-
63
- - deploy inert code, configuration, or infrastructure;
64
- - verify health and compatibility;
65
- - expose a bounded cohort, tenant, region, or traffic segment;
66
- - compare required signals with the accepted baseline;
67
- - advance, hold, abort, roll back, or recover forward according to the contract.
68
-
69
- Feature flags, canaries, blue/green, shadow traffic, and phased regions are options, not defaults. Choose only mechanisms supported by the platform and accepted failure contract.
70
-
71
- For each approved stage:
72
-
73
- 1. confirm artifact, configuration, target, and current production state;
74
- 2. execute the bounded action once;
75
- 3. verify technical and user-visible behavior;
76
- 4. inspect telemetry, data integrity, and unexpected side effects;
77
- 5. preserve anomalies and choose the next route before expanding exposure.
78
-
79
- Do not continue because elapsed time passed while required signals are missing. Approval of one stage does not authorize the next unless the accepted launch contract already does so.
80
-
81
- ## Handle Failure And Recovery
82
-
83
- Hold or abort when accepted safety, data, security, compatibility, or service criteria are violated.
84
-
85
- Before rollback, determine whether code, schema, data, messages, caches, clients, or external effects make rollback unsafe or incomplete. Forward recovery may be safer, but it is not automatic permission to broaden scope.
86
-
87
- If production state is ambiguous, inspect the target before retrying. Do not repeat migrations, jobs, publishes, configuration changes, or exposure operations blindly.
88
-
89
- Use [Diagnose Failure](../diagnose-failure/SKILL.md) for unexpected behavior without a supported cause. Preserve incident evidence. Do not weaken alerts, checks, thresholds, or accepted behavior merely to declare the launch healthy.
90
-
91
- ## Verify The Production Outcome
92
-
93
- Observe from the production boundary as applicable:
94
-
95
- - intended artifact and configuration are active;
96
- - critical user and failure paths behave as accepted;
97
- - data, compatibility, privacy, and permission invariants hold;
98
- - telemetry is present, queryable, bounded, and free of unexpected sensitive data;
99
- - alerts, escalation, and recovery routes work where required;
100
- - temporary flags, adapters, dashboards, elevated logging, permissions, or support procedures have owners and cleanup conditions.
101
-
102
- A quiet dashboard is not evidence when telemetry is absent or broken. State production paths, cohorts, observation windows, or recovery behavior that remain unverified.
103
-
104
- ## Report Completion Precisely
105
-
106
- Report:
107
-
108
- - approved launch stage and exposure state;
109
- - deployed artifact, configuration, and target identity;
110
- - readiness evidence and owner decisions;
111
- - stage results and technical, user, business, and data observations;
112
- - holds, incidents, deviations, rollback, or forward recovery;
113
- - temporary machinery, owner, and cleanup condition;
114
- - residual risk and next approved observation, advance, cleanup, or stop route.
115
-
116
- Launch completion means the accepted production exposure and observation contract is satisfied—not merely that a deployment command succeeded. A completed launch does not authorize later migration removal, release publication, or cleanup outside the approved scope.
@@ -1,85 +0,0 @@
1
- # Launch Readiness
2
-
3
- Read this before selecting risk lenses, operational evidence, rollout stages, or recovery checks. Use only the lenses relevant to the production change; this is not a universal checklist.
4
-
5
- ## Identity And Ownership
6
-
7
- - Exact artifact, commit, image, configuration, migration, and target environment are known.
8
- - Deployment, rollout, rollback, incident, and communication owners are known where risk requires them.
9
- - Production permissions and credentials are available through approved channels without entering prompts, logs, or source.
10
-
11
- ## Behavior And Compatibility
12
-
13
- - Accepted requirements and critical user paths have fresh evidence.
14
- - Public APIs, clients, schemas, feature states, and supported versions remain compatible or have an approved migration.
15
- - Failure, retry, idempotency, duplicate, ordering, and recovery behavior are settled for consequential operations.
16
-
17
- ## Data And Migration
18
-
19
- - Authoritative source and migration ordering are explicit.
20
- - Backups, reconciliation, partial failure, restart, rollback, and forward-recovery behavior are proved to the required level.
21
- - Privacy, retention, deletion, audit, and permission obligations remain satisfied.
22
-
23
- ## Security And Access
24
-
25
- - Threat-relevant changes received the required specialist or policy review.
26
- - Authentication, authorization, secret handling, untrusted input, dependency, network, and privilege boundaries are verified where affected.
27
- - Telemetry and support tooling do not expose secrets or unnecessary personal data.
28
-
29
- When Workflow selects a security-focused review, read the [security risk lens](../../review-work/references/security-risk-lens.md).
30
-
31
- ## Performance And Capacity
32
-
33
- - Representative baseline and expected load are known where capacity can change.
34
- - Critical latency, throughput, saturation, queue, storage, and dependency limits have evidence.
35
- - Advance and abort criteria are relative to accepted SLOs, historical baseline, or owner-approved thresholds.
36
-
37
- Read [performance evidence](../../verify-work/references/performance-evidence.md) for readiness and improvement claims. Read [Flaky and Performance Diagnosis](../../diagnose-failure/references/flaky-and-performance-diagnosis.md) only when a regression lacks a supported cause.
38
-
39
- ## Accessibility And User Experience
40
-
41
- When user interfaces change, verify the affected critical paths using the repo's design/accessibility authority and available domain tooling. Consider keyboard, focus, semantics, assistive technology, responsive behavior, loading, empty, error, and degraded states only where relevant.
42
-
43
- ## Observability
44
-
45
- Start from questions operators must answer:
46
-
47
- - Is the new path being used?
48
- - Is it succeeding and within accepted latency/capacity bounds?
49
- - Why is a specific request, job, or migration failing?
50
- - Are data, queues, retries, and dependencies healthy?
51
- - Can one affected operation be correlated across components?
52
-
53
- Choose structured logs for event detail, metrics for aggregate rate/error/duration or resource saturation, and traces for cross-component paths. Keep metric dimensions bounded. Do not log secrets, tokens, full sensitive payloads, or unrestricted personal identifiers.
54
-
55
- Verify telemetry itself by inducing or observing a safe known event, finding the signal, checking fields/labels, and confirming alert/runbook routing where required.
56
-
57
- ## CI/CD And Environment
58
-
59
- - The pipeline and target environment execute the checks required by this change.
60
- - Generated artifacts are promoted consistently rather than rebuilt differently without approval.
61
- - Environment drift, secrets, migrations, and deployment ordering are inspected.
62
- - A failed or ambiguous pipeline step has a known retry/reconciliation contract.
63
-
64
- Provider-specific workflow syntax belongs to the repo or platform skill.
65
-
66
- ## Rollout And Recovery
67
-
68
- Define:
69
-
70
- ```text
71
- Stage / cohort:
72
- Action:
73
- Expected signals:
74
- Advance if:
75
- Hold if:
76
- Abort or recover if:
77
- Verification:
78
- Owner:
79
- ```
80
-
81
- Rollback must account for code, data, schema, messages, clients, caches, and external side effects. Test or rehearse the recovery path to the level warranted by risk.
82
-
83
- ## Temporary Machinery
84
-
85
- Flags, adapters, dual writes, elevated logging, launch dashboards, temporary permissions, and support procedures need an owner and cleanup checkpoint. Route compatibility removal through [Migration Work](../../migration-work/SKILL.md).
@@ -1,115 +0,0 @@
1
- ---
2
- name: migration-work
3
- description: Use when replacing an existing software or data path and moving its consumers, state, or traffic safely.
4
- ---
5
-
6
- # Migration Work
7
-
8
- Move consumers, state, or traffic to an accepted replacement without losing compatibility, evidence, or recovery options.
9
-
10
- A replacement existing does not prove that consumers moved. A migration unit may be complete while the old path remains under an accepted support contract. Removal is a separate claim with separate evidence and authority.
11
-
12
- ## Establish Authority And Scope
13
-
14
- Loading this skill, discussing a migration, or approving a general implementation Plan does not authorize migration, deprecation, cutover, destructive cleanup, or removal. Execute only the stages and units explicitly requested or separately approved.
15
-
16
- Use [Decision Gate](../decision-gate/SKILL.md) when any of these remain unresolved:
17
-
18
- - whether the old behavior should be maintained, deprecated, or removed;
19
- - advisory versus compulsory migration, deadlines, or support windows;
20
- - compatibility, public API, data conversion, downtime, permissions, billing, security, privacy, or data-loss behavior;
21
- - irreversible cutover, destructive cleanup, or rollback limits.
22
-
23
- Do not manufacture a migration because code looks old. Inspect ownership, supported consumers, runtime use, source truth, incidents, maintenance cost, and current value.
24
-
25
- When replacement behavior, interfaces, ownership, or failure semantics remain unsettled, return that evidence to [Workflow](../workflow/SKILL.md). Use [Discuss](../discuss/SKILL.md) for open direction, [Design for Depth](../design-for-depth/SKILL.md) for design-bearing boundaries, and [Write Spec](../write-spec/SKILL.md) when accepted migration behavior needs a durable contract.
26
-
27
- ## Define The Migration Contract
28
-
29
- Before choosing migration shape or units, compatibility, cutover evidence, rollback or forward recovery, or removal proof, read [the migration lifecycle](references/migration-lifecycle.md). Use only the stages required by the accepted migration; do not force every migration through one sequence.
30
-
31
- Before moving anything, establish:
32
-
33
- ```text
34
- Old contract and current value:
35
- Replacement contract and known differences:
36
- Consumers / callers / data / traffic:
37
- Compatibility promise and support window:
38
- Migration unit and ordering:
39
- State written during transition:
40
- Verification for each unit:
41
- Rollback or forward-recovery path:
42
- Removal proof:
43
- Owner decisions and stop conditions:
44
- Approved stages and scope:
45
- ```
46
-
47
- Treat undocumented observable behavior as a possible consumer dependency until evidence says otherwise. Do not preserve every quirk automatically; surface consequential differences for decision.
48
-
49
- ## Prepare The Replacement
50
-
51
- When an additive or replacement stage is approved:
52
-
53
- - prove the replacement through the real caller path or interface;
54
- - keep old and new ownership explicit;
55
- - add adapters, flags, aliases, translation, or dual reads/writes only when the migration contract requires them;
56
- - give temporary compatibility machinery an owner, purpose, failure behavior, exit condition, and removal evidence;
57
- - do not add features to the old path unless required for safety or an explicit support decision.
58
-
59
- If compatibility machinery starts spreading caller knowledge, public states, or exceptions, return the structural evidence to Workflow rather than building a second permanent system.
60
-
61
- An emergency migration without a viable replacement may be necessary for security or data safety, but it requires explicit owner direction, bounded impact, and a documented failure and recovery contract.
62
-
63
- ## Move Bounded Units
64
-
65
- Move one accepted consumer, cohort, traffic segment, configuration set, or data partition at a time.
66
-
67
- For each unit:
68
-
69
- 1. capture the relevant pre-migration state or baseline;
70
- 2. apply the migration through the intended path;
71
- 3. verify behavior, data, errors, permissions, and operational signals at the required boundary;
72
- 4. confirm rollback or forward recovery remains possible;
73
- 5. preserve evidence and account for remaining units.
74
-
75
- Code search alone cannot prove completion when runtime, external, dormant, generated, offline, or independently deployed consumers may exist.
76
-
77
- Stop and return evidence to Workflow when replacement behavior diverges, unknown consumers appear, a new owner decision is required, data cannot be reconciled, recovery assumptions fail, compatibility machinery spreads, or the next safe unit is unclear. Preserve completed units; do not restart the whole migration automatically.
78
-
79
- ## Remove The Old Path
80
-
81
- Remove or disable the old path only when that stage is explicitly authorized and the accepted removal proof is satisfied.
82
-
83
- Check, as relevant:
84
-
85
- - supported active and dormant consumers are accounted for;
86
- - runtime, telemetry, dependency, or owner evidence supports the absence claim;
87
- - data and configuration are reconciled;
88
- - compatibility, support-window, observation, and recovery obligations have ended;
89
- - old code, adapters, flags, tests, docs, alerts, dashboards, secrets, jobs, and configuration are classified for removal or retention;
90
- - the replacement remains verified with the old path disabled or absent.
91
-
92
- Do not delete source truth or historical migration evidence merely to make searches clean. If current docs or contracts would become false, return them to Workflow and update them only when they are included in the approved migration or removal scope. Preserve durable history where repository policy requires it.
93
-
94
- ## Verification And Review
95
-
96
- Read [Verify Work](../verify-work/SKILL.md) for each migration-unit, compatibility, reconciliation, and absence claim. “The new path passes” does not prove “the old path is unused.” Missing telemetry is unavailable evidence, not zero use.
97
-
98
- Return the need for broader judgment to Workflow when the migration changes public contracts, moves consequential data, crosses security or privacy boundaries, affects many consumers, or performs irreversible cutover or cleanup. Workflow selects any independent review; this skill supplies the migration boundary and evidence.
99
-
100
- Use [Release Work](../release-work/SKILL.md) when the replacement must be published as a versioned artifact. Use [Launch Work](../launch-work/SKILL.md) when migration stages change production traffic, data, configuration, or exposure.
101
-
102
- ## Report Completion Precisely
103
-
104
- Report:
105
-
106
- - approved migration scope and completed units;
107
- - replacement and compatibility status;
108
- - remaining consumers, state, traffic, or observation windows;
109
- - verification and operational evidence;
110
- - rollback or forward-recovery status;
111
- - legacy components removed and deliberately retained;
112
- - unresolved decisions, uncertainty, and residual risk;
113
- - next approved unit, removal boundary, deferment, or stop route.
114
-
115
- A migration unit is complete when its accepted consumers or state moved and its required evidence holds. A scoped migration may complete while the legacy path remains under an accepted support contract. Removal is complete only when its separate authorization and proof are satisfied.
@@ -1,82 +0,0 @@
1
- # Migration Lifecycle
2
-
3
- Read this before choosing migration shape or units, compatibility, cutover evidence, rollback or forward recovery, or removal proof.
4
-
5
- ## Migration Shapes
6
-
7
- - **Code or API:** add the new contract, migrate callers in bounded groups, remove the old contract.
8
- - **Configuration:** support old and new forms temporarily, migrate stored and generated config, reject the old form only after compatibility obligations end.
9
- - **Traffic:** route bounded cohorts to the new path, compare behavior and operational signals, expand only when advance criteria hold.
10
- - **Data:** expand schema, backfill or transform, move reads/writes, reconcile, then contract the old representation.
11
- - **Dependency:** introduce the replacement, verify compatibility at owning seams, migrate packages or consumers, remove the old dependency and transitive assumptions.
12
- - **Feature:** define replacement or removal behavior, migrate users and documentation, observe usage, then remove code and operational surfaces.
13
-
14
- Do not force every migration into the same sequence. Choose the smallest shape that preserves accepted compatibility, safety, and evidence. A scoped migration may stop after its accepted units move while the old contract remains under a support window; removal remains a separate stage and claim.
15
-
16
- ## Consumer Inventory
17
-
18
- Possible evidence includes:
19
-
20
- - static references and dependency graphs;
21
- - runtime traffic, logs, metrics, traces, or audit records;
22
- - generated clients, plugins, scripts, jobs, and configuration;
23
- - external teams, independently deployed services, offline clients, and dormant accounts;
24
- - package download or version-support data;
25
- - explicit owner attestations where observation is impossible.
26
-
27
- Classify unknowns. Missing telemetry is unavailable evidence, not zero usage.
28
-
29
- ## Compatibility Machinery
30
-
31
- Adapters, aliases, dual reads/writes, translation, flags, and shims are migration tools, not automatically permanent architecture.
32
-
33
- For each temporary mechanism, record:
34
-
35
- ```text
36
- Purpose:
37
- Consumers protected:
38
- Observable differences:
39
- Owner:
40
- Exit condition:
41
- Removal evidence:
42
- Failure behavior:
43
- ```
44
-
45
- If the shim becomes harder to remove with each consumer, reconsider the compatibility boundary and ownership before adding another exception.
46
-
47
- ## Data Movement
48
-
49
- Before moving data, settle:
50
-
51
- - authoritative source during each phase;
52
- - idempotency and restart behavior;
53
- - duplicate, partial, invalid, and late-arriving records;
54
- - read/write ordering and reconciliation;
55
- - privacy, retention, permissions, and audit requirements;
56
- - rollback versus forward-only recovery;
57
- - backup, restore, and destructive-cleanup proof.
58
-
59
- A reversible schema change does not imply reversible data semantics.
60
-
61
- ## Advance, Hold, Roll Back
62
-
63
- Define evidence-relative criteria rather than universal percentages or time windows:
64
-
65
- - **Advance:** required behavior and operational signals remain within accepted bounds.
66
- - **Hold:** evidence is incomplete, variance is unresolved, or a bounded investigation is needed.
67
- - **Roll back or recover forward:** data safety, security, compatibility, or accepted service behavior is violated.
68
-
69
- The owner decides consequential thresholds and acceptable degradation.
70
-
71
- ## Removal Proof
72
-
73
- A removal claim should combine the strongest available evidence:
74
-
75
- 1. no supported consumer still requires the old contract;
76
- 2. runtime or owner evidence covers consumers static analysis cannot see;
77
- 3. state and configuration have been reconciled;
78
- 4. compatibility and rollback obligations have ended;
79
- 5. the replacement remains verified with the old path disabled or absent;
80
- 6. removal does not erase required history, audit evidence, or recovery material.
81
-
82
- If a consumer class cannot be observed, state the uncertainty and obtain the owning decision before destructive removal.