ai-collab-open-system 0.1.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 (259) hide show
  1. package/.aict/START_HERE.md +127 -0
  2. package/.aict/WORKSPACE_MANIFEST.json +91 -0
  3. package/.aict/acceptance/EXAMPLE.synthetic.md +49 -0
  4. package/.aict/acceptance/FAILURE_MODES.md +40 -0
  5. package/.aict/acceptance/PROMPT.md +47 -0
  6. package/.aict/acceptance/README.md +44 -0
  7. package/.aict/acceptance/TEMPLATE.md +57 -0
  8. package/.aict/adapters/SHARED_CORE_CONTRACT.md +106 -0
  9. package/.aict/adapters/claude-code/ADAPTER.md +28 -0
  10. package/.aict/adapters/cline/ADAPTER.md +28 -0
  11. package/.aict/adapters/codex/ADAPTER.md +28 -0
  12. package/.aict/adapters/copilot/ADAPTER.md +28 -0
  13. package/.aict/adapters/cursor/ADAPTER.md +28 -0
  14. package/.aict/adapters/windsurf/ADAPTER.md +28 -0
  15. package/.aict/context/EXAMPLE.synthetic.md +53 -0
  16. package/.aict/context/FAILURE_MODES.md +40 -0
  17. package/.aict/context/PROMPT.md +47 -0
  18. package/.aict/context/README.md +44 -0
  19. package/.aict/context/TEMPLATE.md +63 -0
  20. package/.aict/cookbook/README.md +8 -0
  21. package/.aict/cookbook/bridge-to-a-second-family.md +103 -0
  22. package/.aict/cookbook/connect-a-tool.md +67 -0
  23. package/.aict/cookbook/review-a-half-product.md +79 -0
  24. package/.aict/cookbook/run-a-first-loop.md +81 -0
  25. package/.aict/examples/README.md +21 -0
  26. package/.aict/examples/ai-coding-long-task/CASE.md +161 -0
  27. package/.aict/examples/ai-coding-long-task/artifacts/acceptance-card.md +36 -0
  28. package/.aict/examples/ai-coding-long-task/artifacts/context-package.md +30 -0
  29. package/.aict/examples/ai-coding-long-task/artifacts/execution-prompt.md +30 -0
  30. package/.aict/examples/ai-coding-long-task/artifacts/first-ai-output.md +109 -0
  31. package/.aict/examples/ai-coding-long-task/artifacts/guard-review.md +40 -0
  32. package/.aict/examples/ai-coding-long-task/artifacts/handoff-note.md +28 -0
  33. package/.aict/examples/ai-coding-long-task/artifacts/harvest-seed.md +28 -0
  34. package/.aict/examples/ai-coding-long-task/artifacts/revised-output.md +62 -0
  35. package/.aict/examples/content-production-harvest/CASE.md +87 -0
  36. package/.aict/examples/content-production-harvest/artifacts/acceptance-card.md +28 -0
  37. package/.aict/examples/content-production-harvest/artifacts/context-package.md +28 -0
  38. package/.aict/examples/content-production-harvest/artifacts/execution-prompt.md +30 -0
  39. package/.aict/examples/content-production-harvest/artifacts/guard-review.md +28 -0
  40. package/.aict/examples/content-production-harvest/artifacts/handoff-note.md +28 -0
  41. package/.aict/examples/content-production-harvest/artifacts/harvest-seed.md +28 -0
  42. package/.aict/examples/multi-tool-collaboration/CASE.md +87 -0
  43. package/.aict/examples/multi-tool-collaboration/artifacts/acceptance-card.md +28 -0
  44. package/.aict/examples/multi-tool-collaboration/artifacts/context-package.md +28 -0
  45. package/.aict/examples/multi-tool-collaboration/artifacts/execution-prompt.md +30 -0
  46. package/.aict/examples/multi-tool-collaboration/artifacts/guard-review.md +28 -0
  47. package/.aict/examples/multi-tool-collaboration/artifacts/handoff-note.md +28 -0
  48. package/.aict/examples/multi-tool-collaboration/artifacts/harvest-seed.md +28 -0
  49. package/.aict/examples/personal-judgment-growth-assistant/CASE.md +87 -0
  50. package/.aict/examples/personal-judgment-growth-assistant/artifacts/acceptance-card.md +28 -0
  51. package/.aict/examples/personal-judgment-growth-assistant/artifacts/context-package.md +28 -0
  52. package/.aict/examples/personal-judgment-growth-assistant/artifacts/execution-prompt.md +30 -0
  53. package/.aict/examples/personal-judgment-growth-assistant/artifacts/guard-review.md +28 -0
  54. package/.aict/examples/personal-judgment-growth-assistant/artifacts/handoff-note.md +28 -0
  55. package/.aict/examples/personal-judgment-growth-assistant/artifacts/harvest-seed.md +28 -0
  56. package/.aict/examples/research-knowledge-synthesis/CASE.md +87 -0
  57. package/.aict/examples/research-knowledge-synthesis/artifacts/acceptance-card.md +28 -0
  58. package/.aict/examples/research-knowledge-synthesis/artifacts/context-package.md +28 -0
  59. package/.aict/examples/research-knowledge-synthesis/artifacts/execution-prompt.md +30 -0
  60. package/.aict/examples/research-knowledge-synthesis/artifacts/guard-review.md +28 -0
  61. package/.aict/examples/research-knowledge-synthesis/artifacts/handoff-note.md +28 -0
  62. package/.aict/examples/research-knowledge-synthesis/artifacts/harvest-seed.md +28 -0
  63. package/.aict/guard/EXAMPLE.synthetic.md +51 -0
  64. package/.aict/guard/FAILURE_MODES.md +40 -0
  65. package/.aict/guard/PROMPT.md +47 -0
  66. package/.aict/guard/README.md +44 -0
  67. package/.aict/guard/TEMPLATE.md +60 -0
  68. package/.aict/handoff/EXAMPLE.synthetic.md +51 -0
  69. package/.aict/handoff/FAILURE_MODES.md +40 -0
  70. package/.aict/handoff/PROMPT.md +47 -0
  71. package/.aict/handoff/README.md +44 -0
  72. package/.aict/handoff/TEMPLATE.md +60 -0
  73. package/.aict/harvest/EXAMPLE.synthetic.md +51 -0
  74. package/.aict/harvest/FAILURE_MODES.md +40 -0
  75. package/.aict/harvest/PROMPT.md +47 -0
  76. package/.aict/harvest/README.md +44 -0
  77. package/.aict/harvest/TEMPLATE.md +60 -0
  78. package/.aict/mechanisms/README.md +34 -0
  79. package/.aict/mechanisms/anti-drift-partner/EXAMPLE.synthetic.md +46 -0
  80. package/.aict/mechanisms/anti-drift-partner/FAILURE_MODES.md +25 -0
  81. package/.aict/mechanisms/anti-drift-partner/PROMPT.md +75 -0
  82. package/.aict/mechanisms/anti-drift-partner/README.md +82 -0
  83. package/.aict/mechanisms/anti-drift-partner/TEMPLATE.md +74 -0
  84. package/.aict/mechanisms/blind-spot-scan/EXAMPLE.synthetic.md +39 -0
  85. package/.aict/mechanisms/blind-spot-scan/FAILURE_MODES.md +25 -0
  86. package/.aict/mechanisms/blind-spot-scan/PROMPT.md +72 -0
  87. package/.aict/mechanisms/blind-spot-scan/README.md +79 -0
  88. package/.aict/mechanisms/blind-spot-scan/TEMPLATE.md +70 -0
  89. package/.aict/mechanisms/collaboration-coach/EXAMPLE.synthetic.md +40 -0
  90. package/.aict/mechanisms/collaboration-coach/FAILURE_MODES.md +25 -0
  91. package/.aict/mechanisms/collaboration-coach/PROMPT.md +72 -0
  92. package/.aict/mechanisms/collaboration-coach/README.md +79 -0
  93. package/.aict/mechanisms/collaboration-coach/TEMPLATE.md +61 -0
  94. package/.aict/mechanisms/do-not-handle-yet/EXAMPLE.synthetic.md +15 -0
  95. package/.aict/mechanisms/do-not-handle-yet/FAILURE_MODES.md +16 -0
  96. package/.aict/mechanisms/do-not-handle-yet/PROMPT.md +41 -0
  97. package/.aict/mechanisms/do-not-handle-yet/README.md +30 -0
  98. package/.aict/mechanisms/do-not-handle-yet/TEMPLATE.md +38 -0
  99. package/.aict/mechanisms/dual-guard/EXAMPLE.synthetic.md +54 -0
  100. package/.aict/mechanisms/dual-guard/FAILURE_MODES.md +25 -0
  101. package/.aict/mechanisms/dual-guard/PROMPT.md +76 -0
  102. package/.aict/mechanisms/dual-guard/README.md +81 -0
  103. package/.aict/mechanisms/dual-guard/TEMPLATE.md +73 -0
  104. package/.aict/mechanisms/feedback-absorption-ledger/EXAMPLE.synthetic.md +49 -0
  105. package/.aict/mechanisms/feedback-absorption-ledger/FAILURE_MODES.md +25 -0
  106. package/.aict/mechanisms/feedback-absorption-ledger/PROMPT.md +74 -0
  107. package/.aict/mechanisms/feedback-absorption-ledger/README.md +81 -0
  108. package/.aict/mechanisms/feedback-absorption-ledger/TEMPLATE.md +69 -0
  109. package/.aict/mechanisms/half-product-review/EXAMPLE.synthetic.md +15 -0
  110. package/.aict/mechanisms/half-product-review/FAILURE_MODES.md +16 -0
  111. package/.aict/mechanisms/half-product-review/PROMPT.md +41 -0
  112. package/.aict/mechanisms/half-product-review/README.md +30 -0
  113. package/.aict/mechanisms/half-product-review/TEMPLATE.md +38 -0
  114. package/.aict/mechanisms/handoff-abc/EXAMPLE.synthetic.md +47 -0
  115. package/.aict/mechanisms/handoff-abc/FAILURE_MODES.md +25 -0
  116. package/.aict/mechanisms/handoff-abc/PROMPT.md +75 -0
  117. package/.aict/mechanisms/handoff-abc/README.md +82 -0
  118. package/.aict/mechanisms/handoff-abc/TEMPLATE.md +60 -0
  119. package/.aict/mechanisms/harvest-and-erc/EXAMPLE.synthetic.md +43 -0
  120. package/.aict/mechanisms/harvest-and-erc/FAILURE_MODES.md +25 -0
  121. package/.aict/mechanisms/harvest-and-erc/PROMPT.md +74 -0
  122. package/.aict/mechanisms/harvest-and-erc/README.md +81 -0
  123. package/.aict/mechanisms/harvest-and-erc/TEMPLATE.md +60 -0
  124. package/.aict/mechanisms/honest-calibration/EXAMPLE.synthetic.md +43 -0
  125. package/.aict/mechanisms/honest-calibration/FAILURE_MODES.md +25 -0
  126. package/.aict/mechanisms/honest-calibration/PROMPT.md +74 -0
  127. package/.aict/mechanisms/honest-calibration/README.md +81 -0
  128. package/.aict/mechanisms/honest-calibration/TEMPLATE.md +66 -0
  129. package/.aict/mechanisms/one-click-dispatch/EXAMPLE.synthetic.md +15 -0
  130. package/.aict/mechanisms/one-click-dispatch/FAILURE_MODES.md +16 -0
  131. package/.aict/mechanisms/one-click-dispatch/PROMPT.md +41 -0
  132. package/.aict/mechanisms/one-click-dispatch/README.md +30 -0
  133. package/.aict/mechanisms/one-click-dispatch/TEMPLATE.md +38 -0
  134. package/.aict/mechanisms/plain-language-first-screen/EXAMPLE.synthetic.md +15 -0
  135. package/.aict/mechanisms/plain-language-first-screen/FAILURE_MODES.md +16 -0
  136. package/.aict/mechanisms/plain-language-first-screen/PROMPT.md +41 -0
  137. package/.aict/mechanisms/plain-language-first-screen/README.md +30 -0
  138. package/.aict/mechanisms/plain-language-first-screen/TEMPLATE.md +38 -0
  139. package/.aict/mechanisms/root-cause-brake/EXAMPLE.synthetic.md +55 -0
  140. package/.aict/mechanisms/root-cause-brake/FAILURE_MODES.md +25 -0
  141. package/.aict/mechanisms/root-cause-brake/PROMPT.md +73 -0
  142. package/.aict/mechanisms/root-cause-brake/README.md +79 -0
  143. package/.aict/mechanisms/root-cause-brake/TEMPLATE.md +74 -0
  144. package/.aict/mechanisms/scout-review-controller/EXAMPLE.synthetic.md +15 -0
  145. package/.aict/mechanisms/scout-review-controller/FAILURE_MODES.md +16 -0
  146. package/.aict/mechanisms/scout-review-controller/PROMPT.md +41 -0
  147. package/.aict/mechanisms/scout-review-controller/README.md +30 -0
  148. package/.aict/mechanisms/scout-review-controller/TEMPLATE.md +38 -0
  149. package/.aict/mechanisms/single-tool-guard/EXAMPLE.synthetic.md +54 -0
  150. package/.aict/mechanisms/single-tool-guard/FAILURE_MODES.md +25 -0
  151. package/.aict/mechanisms/single-tool-guard/PROMPT.md +76 -0
  152. package/.aict/mechanisms/single-tool-guard/README.md +83 -0
  153. package/.aict/mechanisms/single-tool-guard/TEMPLATE.md +75 -0
  154. package/.aict/mechanisms/task-splitting/EXAMPLE.synthetic.md +53 -0
  155. package/.aict/mechanisms/task-splitting/FAILURE_MODES.md +25 -0
  156. package/.aict/mechanisms/task-splitting/PROMPT.md +72 -0
  157. package/.aict/mechanisms/task-splitting/README.md +79 -0
  158. package/.aict/mechanisms/task-splitting/TEMPLATE.md +76 -0
  159. package/.aict/modes/README.md +11 -0
  160. package/.aict/modes/execute.md +31 -0
  161. package/.aict/modes/handoff.md +29 -0
  162. package/.aict/modes/harvest.md +30 -0
  163. package/.aict/modes/review.md +28 -0
  164. package/.aict/modes/shape.md +34 -0
  165. package/.aict/privacy/COMMERCIAL_BOUNDARY.md +34 -0
  166. package/.aict/privacy/PRIVACY.md +36 -0
  167. package/.aict/privacy/REDACTION_CHECKLIST.md +12 -0
  168. package/.aict/profile/CANDIDATES.md +44 -0
  169. package/.aict/profile/EXAMPLE.synthetic.md +49 -0
  170. package/.aict/profile/FAILURE_MODES.md +40 -0
  171. package/.aict/profile/PROMPT.md +47 -0
  172. package/.aict/profile/README.md +44 -0
  173. package/.aict/profile/TEMPLATE.md +57 -0
  174. package/.aict/prompts/acceptance-definition.md +109 -0
  175. package/.aict/prompts/guard-review.md +116 -0
  176. package/.aict/prompts/handoff-generation.md +110 -0
  177. package/.aict/prompts/harvest-extraction.md +110 -0
  178. package/.aict/prompts/mode-switching.md +66 -0
  179. package/.aict/prompts/profile-creation.md +66 -0
  180. package/.aict/prompts/profile-refinement.md +66 -0
  181. package/.aict/prompts/project-context-packaging.md +113 -0
  182. package/.aict/prompts/red-team-challenge.md +106 -0
  183. package/.aict/prompts/rule-update-proposal.md +114 -0
  184. package/.aict/prompts/workflow-reset.md +109 -0
  185. package/.aict/roles/README.md +18 -0
  186. package/.aict/roles/executor.md +34 -0
  187. package/.aict/roles/harvester.md +33 -0
  188. package/.aict/roles/owner-controller.md +38 -0
  189. package/.aict/roles/scout.md +33 -0
  190. package/.aict/roles/supervisor.md +34 -0
  191. package/.aict/roles/system-guardian.md +34 -0
  192. package/.aict/skills/acceptance/SKILL.md +43 -0
  193. package/.aict/skills/context/SKILL.md +44 -0
  194. package/.aict/skills/evidence-pack/SKILL.md +42 -0
  195. package/.aict/skills/guard/SKILL.md +46 -0
  196. package/.aict/skills/handoff/SKILL.md +44 -0
  197. package/.aict/skills/harvest/SKILL.md +44 -0
  198. package/.aict/skills/mode-switch/SKILL.md +42 -0
  199. package/.aict/skills/profile/SKILL.md +42 -0
  200. package/.aict/skills/red-team/SKILL.md +42 -0
  201. package/.aict/skills/single-tool-guard/SKILL.md +42 -0
  202. package/.aict/state/CURRENT_STATE.md +13 -0
  203. package/.aict/state/DECISIONS.md +7 -0
  204. package/.aict/state/TASK_LOG.md +7 -0
  205. package/.aict/state/evidence.jsonl +2 -0
  206. package/.aict/state/learning-ledger.jsonl +1 -0
  207. package/.aict/state/receipts.jsonl +1 -0
  208. package/.aict/state/runs.jsonl +1 -0
  209. package/.aict/state/tasks.jsonl +1 -0
  210. package/.aict/walkthroughs/10-minute-your-task.md +107 -0
  211. package/.aict/walkthroughs/10-minute.md +43 -0
  212. package/.aict/walkthroughs/30-minute.md +22 -0
  213. package/.aict/walkthroughs/60-minute.md +27 -0
  214. package/.aict/walkthroughs/synthetic-loop-transcript.md +43 -0
  215. package/CHANGELOG.md +23 -0
  216. package/CODE_OF_CONDUCT.md +20 -0
  217. package/CONTRIBUTING.md +30 -0
  218. package/KNOWN_LIMITATIONS.md +54 -0
  219. package/LICENSE +199 -0
  220. package/PRODUCT_CONTRACT.md +446 -0
  221. package/README.md +245 -0
  222. package/RELEASE_CHECKLIST.md +78 -0
  223. package/SECURITY.md +56 -0
  224. package/START_HERE.md +89 -0
  225. package/bin/ai-collab.js +2 -0
  226. package/docs/DOGFOOD.md +85 -0
  227. package/docs/FEEDBACK.md +61 -0
  228. package/docs/FIRST_EXPERIENCE_SPEC.md +32 -0
  229. package/docs/FREE_VS_PAID.md +53 -0
  230. package/docs/PUBLIC_BOUNDARY.md +36 -0
  231. package/docs/PUBLIC_MAPPING.md +178 -0
  232. package/docs/RELEASE_PRIORITY.md +23 -0
  233. package/docs/WHY_THIS_EXISTS.md +36 -0
  234. package/docs/open-system/00-start-here.md +60 -0
  235. package/docs/open-system/01-ai-collaboration-os.md +33 -0
  236. package/docs/open-system/02-six-layer-architecture.md +45 -0
  237. package/docs/open-system/03-role-system.md +33 -0
  238. package/docs/open-system/04-core-mechanisms.md +34 -0
  239. package/docs/open-system/05-failure-patterns.md +31 -0
  240. package/docs/open-system/06-how-to-adapt-to-your-workflow.md +31 -0
  241. package/package.json +69 -0
  242. package/privacy-manifest.json +78 -0
  243. package/privacy-scan.local.json.example +18 -0
  244. package/scripts/lib/forbidden-in-pack.js +55 -0
  245. package/scripts/pack-check.js +154 -0
  246. package/scripts/privacy-scan.js +487 -0
  247. package/scripts/validate-contract.js +160 -0
  248. package/src/adapters.js +590 -0
  249. package/src/bootstrap.js +1184 -0
  250. package/src/catalog.js +2723 -0
  251. package/src/cli.js +2899 -0
  252. package/src/dialogue.js +470 -0
  253. package/src/i18n.js +1034 -0
  254. package/src/ledger.js +2011 -0
  255. package/src/render.js +1381 -0
  256. package/src/sendmodel.js +452 -0
  257. package/src/validate.js +1307 -0
  258. package/src/workspace.js +1679 -0
  259. package/tests/contract.test.js +8514 -0
@@ -0,0 +1,49 @@
1
+ # Profile Filled Synthetic Example
2
+
3
+ ## Purpose
4
+
5
+ Capture stable collaboration preferences that affect how an assistant should ask, decide, challenge, summarize, and hand work back.
6
+
7
+ ## When to use
8
+
9
+ Use before long tasks, recurring work, cross-tool handoffs, or any situation where tone, risk appetite, and decision rules matter.
10
+
11
+ ## Input shape
12
+
13
+ A short description of the user's role, work type, preferred feedback style, constraints, review habits, and known failure patterns.
14
+
15
+ ## Output shape
16
+
17
+ A compact profile card with preferences, hard boundaries, collaboration defaults, and update rules.
18
+
19
+ ## Copy-paste prompt
20
+
21
+ Use `PROMPT.md` with the synthetic input below.
22
+
23
+ ## Blank template
24
+
25
+ Use `TEMPLATE.md` for your own task.
26
+
27
+ ## Filled synthetic example
28
+
29
+ User role or situation: Solo product builder validating a weekend prototype.
30
+
31
+ Preferred collaboration style: Direct risk calls, short summaries, concrete next actions.
32
+
33
+ Decision rules: Prefer evidence from user behavior over elegant architecture.
34
+
35
+ Hard boundaries: Do not upload private notes or make purchasing decisions.
36
+
37
+ Review habits: Wants assumptions and unverified claims labeled.
38
+
39
+ Known failure patterns: Over-polished plans can replace real validation.
40
+
41
+ How to update this profile: Add new stable preferences only after they appear in at least two tasks.
42
+
43
+ ## Common failure modes
44
+
45
+ See `FAILURE_MODES.md`.
46
+
47
+ ## How to hand it to Claude Code / Codex / Cursor / Windsurf / Copilot / Cline
48
+
49
+ Paste this example into any tool with `../adapters/SHARED_CORE_CONTRACT.md` to see the expected shape.
@@ -0,0 +1,40 @@
1
+ # Profile Common Failure Modes
2
+
3
+ ## Purpose
4
+
5
+ Capture stable collaboration preferences that affect how an assistant should ask, decide, challenge, summarize, and hand work back.
6
+
7
+ ## When to use
8
+
9
+ Read this before trusting a profile artifact.
10
+
11
+ ## Input shape
12
+
13
+ The artifact plus the original context and acceptance card.
14
+
15
+ ## Output shape
16
+
17
+ A short list of risks to fix before reuse.
18
+
19
+ ## Copy-paste prompt
20
+
21
+ Ask your AI tool: "Check this profile artifact against the failure modes below and name the first concrete fix."
22
+
23
+ ## Blank template
24
+
25
+ Use `TEMPLATE.md` to rewrite the artifact.
26
+
27
+ ## Filled synthetic example
28
+
29
+ Use `EXAMPLE.synthetic.md` to compare a safe example.
30
+
31
+ ## Common failure modes
32
+
33
+ - Treating a profile as a personality essay instead of operational guidance.
34
+ - Storing secrets, account details, or private identity signals.
35
+ - Mixing task context into the stable profile and making future sessions stale.
36
+ - Letting the assistant infer values without user confirmation.
37
+
38
+ ## How to hand it to Claude Code / Codex / Cursor / Windsurf / Copilot / Cline
39
+
40
+ Paste this file after the artifact and ask for findings ordered by risk.
@@ -0,0 +1,47 @@
1
+ # Profile Prompt
2
+
3
+ ## Purpose
4
+
5
+ Capture stable collaboration preferences that affect how an assistant should ask, decide, challenge, summarize, and hand work back.
6
+
7
+ ## When to use
8
+
9
+ Use before long tasks, recurring work, cross-tool handoffs, or any situation where tone, risk appetite, and decision rules matter.
10
+
11
+ ## Input shape
12
+
13
+ A short description of the user's role, work type, preferred feedback style, constraints, review habits, and known failure patterns.
14
+
15
+ ## Output shape
16
+
17
+ A compact profile card with preferences, hard boundaries, collaboration defaults, and update rules.
18
+
19
+ ## Copy-paste prompt
20
+
21
+ ```text
22
+ Create a profile card for this user. Extract only reusable collaboration preferences, not private secrets. Separate stable preferences from task-specific context. Return: working style, decision rules, communication preferences, hard boundaries, and what future assistants should ask before acting.
23
+
24
+ Input:
25
+ [paste your redacted task material here]
26
+
27
+ Output shape:
28
+ A compact profile card with preferences, hard boundaries, collaboration defaults, and update rules.
29
+
30
+ Rules:
31
+ - Keep private material local and redacted.
32
+ - Label facts and assumptions.
33
+ - If information is missing, ask at most three concrete questions.
34
+ - Make the result usable in Claude Code / Codex / Cursor / Windsurf / Copilot / Cline.
35
+ ```
36
+
37
+ ## Blank template
38
+
39
+ Use `TEMPLATE.md`.
40
+
41
+ ## Filled synthetic example
42
+
43
+ Use `EXAMPLE.synthetic.md`.
44
+
45
+ ## Common failure modes
46
+
47
+ Use `FAILURE_MODES.md`.
@@ -0,0 +1,44 @@
1
+ # Profile
2
+
3
+ How the AI adapts to the user's working style, constraints, and decision habits.
4
+
5
+ 中文:让 AI 先知道怎样配合这个人,而不是每次都按通用助理口吻开始。
6
+
7
+ ## Purpose
8
+
9
+ Capture stable collaboration preferences that affect how an assistant should ask, decide, challenge, summarize, and hand work back.
10
+
11
+ ## When to use
12
+
13
+ Use before long tasks, recurring work, cross-tool handoffs, or any situation where tone, risk appetite, and decision rules matter.
14
+
15
+ ## Input shape
16
+
17
+ A short description of the user's role, work type, preferred feedback style, constraints, review habits, and known failure patterns.
18
+
19
+ ## Output shape
20
+
21
+ A compact profile card with preferences, hard boundaries, collaboration defaults, and update rules.
22
+
23
+ ## Copy-paste prompt
24
+
25
+ See `PROMPT.md`. The prompt is designed to work in Claude Code / Codex / Cursor / Windsurf / Copilot / Cline.
26
+
27
+ ## Blank template
28
+
29
+ See `TEMPLATE.md`.
30
+
31
+ ## Filled synthetic example
32
+
33
+ See `EXAMPLE.synthetic.md`.
34
+
35
+ ## Common failure modes
36
+
37
+ See `FAILURE_MODES.md`.
38
+
39
+ ## How to hand it to Claude Code / Codex / Cursor / Windsurf / Copilot / Cline
40
+
41
+ 1. Open the adapter for your tool in `../adapters/`.
42
+ 2. Include `../adapters/SHARED_CORE_CONTRACT.md`.
43
+ 3. Paste this layer's `PROMPT.md` plus either `TEMPLATE.md` or `EXAMPLE.synthetic.md`.
44
+ 4. Ask the tool to return the layer's output shape exactly.
@@ -0,0 +1,57 @@
1
+ # Profile Template
2
+
3
+ ## Purpose
4
+
5
+ Capture stable collaboration preferences that affect how an assistant should ask, decide, challenge, summarize, and hand work back.
6
+
7
+ ## When to use
8
+
9
+ Use before long tasks, recurring work, cross-tool handoffs, or any situation where tone, risk appetite, and decision rules matter.
10
+
11
+ ## Input shape
12
+
13
+ A short description of the user's role, work type, preferred feedback style, constraints, review habits, and known failure patterns.
14
+
15
+ ## Output shape
16
+
17
+ A compact profile card with preferences, hard boundaries, collaboration defaults, and update rules.
18
+
19
+ ## Copy-paste prompt
20
+
21
+ Open `PROMPT.md` and paste this completed template below it.
22
+
23
+ ## Blank template
24
+
25
+ ### User role or situation:
26
+
27
+
28
+ ### Preferred collaboration style:
29
+
30
+
31
+ ### Decision rules:
32
+
33
+
34
+ ### Hard boundaries:
35
+
36
+
37
+ ### Review habits:
38
+
39
+
40
+ ### Known failure patterns:
41
+
42
+
43
+ ### How to update this profile:
44
+
45
+
46
+
47
+ ## Filled synthetic example
48
+
49
+ See `EXAMPLE.synthetic.md`.
50
+
51
+ ## Common failure modes
52
+
53
+ See `FAILURE_MODES.md`.
54
+
55
+ ## How to hand it to Claude Code / Codex / Cursor / Windsurf / Copilot / Cline
56
+
57
+ Use the adapter in `../adapters/` and include the shared core contract.
@@ -0,0 +1,109 @@
1
+ # Acceptance definition
2
+
3
+ Purpose: Define observable pass criteria and required evidence before work starts.
4
+
5
+ ## Scenario
6
+
7
+ Use before implementation, writing, research, cleanup, or review when 'looks good' would be too vague.
8
+
9
+ ## Input requirements
10
+
11
+ - Task goal and expected artifact.
12
+ - Quality bar and constraints.
13
+ - Available verification commands or manual checks.
14
+ - Rejected states that must not be accepted.
15
+
16
+ ## Operating steps
17
+
18
+ 1. Turn the goal into inspectable deliverables: name the file, the behavior, the output a skeptical reviewer could open and check. A deliverable you cannot point at is a deliverable you cannot accept.
19
+ 2. Write each pass criterion so it is mechanically checkable (a command that exits 0, a string that must appear, a behavior a stranger can reproduce), not a vibe like 'works well' or 'is clean'.
20
+ 3. Bind every completion claim to one of exactly three states and forbid any fourth: NOT DONE (nothing to show yet), DONE-PENDING-VERIFICATION (built but not yet proven), ACCEPTED (proven and signed off). Ban soft words like 'basically done', 'should be fine', 'mostly working' — they hide which state the work is really in.
21
+ 4. Require that any DONE-PENDING-VERIFICATION claim carry three-part evidence, and that the three parts are present before the claim counts: (1) WHAT CHANGED — file plus line plus a one-line description, specific enough that a reader sees the change in thirty seconds; (2) REAL COMMAND OUTPUT — the actual pasted text of grep -n / diff / wc -l / ls -la / the test run, not a verbal 'it is landed' or 'tests pass'; (3) WHAT IS NOT YET VERIFIED — the blind spots, edge cases, cross-file effects, and downstream dependencies, listed openly so the owner decides whether to verify or to accept the gap on the record.
22
+ 5. List the rejected states explicitly so false closure is blocked up front: e.g. exit code ignored, a test that passes without exercising the user-facing requirement, a claim broader than its evidence, scope that drifted past the stated non-goals.
23
+ 6. Hand the card back as the contract the work will be judged against, and name what still needs an owner decision (which gaps are acceptable, which must be closed before acceptance).
24
+
25
+ ## Copy-paste prompt
26
+
27
+ ```text
28
+ You are helping me with acceptance definition in a local-first AI collaboration workspace.
29
+
30
+ Task: Define observable pass criteria and required evidence before work starts.
31
+
32
+ Trigger:
33
+ Use before any work where 'looks good' would be too vague and where a wrong 'done' would propagate: an implementation, a piece of writing, a research result, a cleanup, or any artifact another session or person will trust. Define done BEFORE the work starts, not after.
34
+
35
+ Do not use when:
36
+ Skip the full ceremony for a throwaway one-line change, a quick fact lookup, or a step you will fully re-check by hand in the next minute anyway. Writing a six-part acceptance card for a trivial edit is cost you pay for nothing, and ceremony with no payoff trains people to skip acceptance when it actually matters.
37
+
38
+ Input:
39
+ The task goal and the exact artifact expected. The quality bar and constraints. The verification commands or manual checks actually available (the real test command, the real grep, the real way to reproduce). The rejected states that must never be silently accepted. If the work is already partly done, the completion claims made so far so each can be tagged with a state.
40
+
41
+ Process:
42
+ 1. Turn the goal into inspectable deliverables: name the file, the behavior, the output a skeptical reviewer could open and check. A deliverable you cannot point at is a deliverable you cannot accept.
43
+ 2. Write each pass criterion so it is mechanically checkable (a command that exits 0, a string that must appear, a behavior a stranger can reproduce), not a vibe like 'works well' or 'is clean'.
44
+ 3. Bind every completion claim to one of exactly three states and forbid any fourth: NOT DONE (nothing to show yet), DONE-PENDING-VERIFICATION (built but not yet proven), ACCEPTED (proven and signed off). Ban soft words like 'basically done', 'should be fine', 'mostly working' — they hide which state the work is really in.
45
+ 4. Require that any DONE-PENDING-VERIFICATION claim carry three-part evidence, and that the three parts are present before the claim counts: (1) WHAT CHANGED — file plus line plus a one-line description, specific enough that a reader sees the change in thirty seconds; (2) REAL COMMAND OUTPUT — the actual pasted text of grep -n / diff / wc -l / ls -la / the test run, not a verbal 'it is landed' or 'tests pass'; (3) WHAT IS NOT YET VERIFIED — the blind spots, edge cases, cross-file effects, and downstream dependencies, listed openly so the owner decides whether to verify or to accept the gap on the record.
46
+ 5. List the rejected states explicitly so false closure is blocked up front: e.g. exit code ignored, a test that passes without exercising the user-facing requirement, a claim broader than its evidence, scope that drifted past the stated non-goals.
47
+ 6. Hand the card back as the contract the work will be judged against, and name what still needs an owner decision (which gaps are acceptable, which must be closed before acceptance).
48
+
49
+ Output shape:
50
+ - Deliverables: the concrete artifacts, each one something a reviewer can open and inspect.
51
+ - Pass criteria: numbered, each mechanically checkable.
52
+ - Required checks: the exact command or manual step that proves each criterion.
53
+ - Three states in use: which claims are NOT DONE / DONE-PENDING-VERIFICATION / ACCEPTED right now.
54
+ - Required evidence per claim: the three-part block (what changed / real command output / what is not yet verified) demanded before any DONE-PENDING-VERIFICATION claim is trusted.
55
+ - Rejected states: the failure conditions that must never be silently accepted.
56
+ - Owner decision needed: which residual gaps need a human call before acceptance.
57
+
58
+ Pass bar (do not pass unless all hold):
59
+ - Every pass criterion is checkable by a named command or a reproducible manual step, not by opinion.
60
+ - Each completion claim is tagged NOT DONE / DONE-PENDING-VERIFICATION / ACCEPTED, with no soft fourth state.
61
+ - Every DONE-PENDING-VERIFICATION claim has all three evidence parts, and part two is real pasted command output, not a verbal assurance.
62
+ - Rejected states are written down so false closure has an explicit tripwire.
63
+ - What stays unverified is named openly and left to the owner to accept or close, not buried.
64
+
65
+ Reject bar (send back if any holds):
66
+ - A criterion is a vibe ('looks clean', 'works well') that no command or reproducible step can test.
67
+ - A claim says 'done' / 'basically done' / 'should be fine' without a state tag, so the reviewer cannot tell proven from unproven.
68
+ - A DONE-PENDING-VERIFICATION claim rests on a verbal 'it landed' or 'tests pass' with no pasted output — exactly the gap where a fluent claim outruns the evidence.
69
+ - A test passes but does not exercise the actual user-facing requirement, and that is being counted as acceptance.
70
+ - Unverified areas are folded into 'done' instead of being listed for an owner decision.
71
+
72
+ Rules:
73
+ - Work only from the material I provide.
74
+ - Keep private material local; use public-safe synthetic wording for examples.
75
+ - Label facts, assumptions, and unverified claims.
76
+ - Do not claim to understand my private business beyond the provided context.
77
+
78
+ Material:
79
+ [paste redacted material here]
80
+ ```
81
+
82
+ ## Expected output
83
+
84
+ - Deliverables
85
+ - Pass criteria
86
+ - Required checks
87
+ - Rejected states
88
+ - Evidence needed
89
+ - Owner decision needed
90
+
91
+ ## Counter-example
92
+
93
+ Synthetic: an assistant reports 'Done — added keyboard reordering to the task board and all tests pass.' Under this prompt the claim is tagged DONE-PENDING-VERIFICATION and the three-part evidence is demanded. Part two comes back empty: there is no pasted test output for a keyboard case, only the sentence 'tests pass'. Acceptance is withheld. When the real `grep -n moveTask` and test run are pasted, they show the keyboard handler only logs the key and never calls the reorder function and no keyboard test exists — so the verbal 'all tests pass' was a half-product claim the evidence never backed.
94
+
95
+ ## Failure modes
96
+
97
+ - Accepting intent instead of observable output.
98
+ - Writing criteria after the work is already done.
99
+ - Letting tests pass even though they do not prove the user-facing requirement.
100
+ - Accepting a verbal 'it is done / it landed' with no pasted command output behind it.
101
+ - Collapsing 'not verified yet' into 'done' so the reviewer cannot tell which claims are actually proven.
102
+
103
+ ## Example
104
+
105
+ For a CLI dry-run task, acceptance requires exit 0, no files created, clear stdout, and a test proving the target directory stays empty.
106
+
107
+ ## Use with
108
+
109
+ Claude Code / Codex / Cursor / Windsurf / Copilot / Cline.
@@ -0,0 +1,116 @@
1
+ # Guard review
2
+
3
+ Purpose: Review an artifact against context, acceptance, evidence, and privacy boundaries.
4
+
5
+ ## Scenario
6
+
7
+ Use after a draft or implementation exists and before future work treats it as trusted.
8
+
9
+ ## Input requirements
10
+
11
+ - Artifact under review.
12
+ - Context package.
13
+ - Acceptance card.
14
+ - Verification evidence and known unverified areas.
15
+
16
+ ## Operating steps
17
+
18
+ 1. Lead with findings, not compliments. The job is to find what is wrong before it propagates, not to reassure.
19
+ 2. Hunt for the five faces of a half-product — work that looks finished but is not — and for each, run its concrete tell. (1) DONE BUT NOT ACTUALLY DONE: the report says complete; demand the command plus real output and confirm it was actually run, not narrated. (2) PAPER EXISTS BUT THE FUNCTION DOES NOT: the file/hook/feature is present but never wired in; check that it is actually invoked and produces a real effect, not just that it exists on disk. (3) NUMBERS LOOK RIGHT BUT THE DENOMINATOR IS WRONG: a clean percentage or count; pin the exact scope and denominator and recompute, because pending and not-started items get quietly mixed in. (4) JUDGMENT THEATER: 'I judged it safe / I reviewed it'; require a named failure scenario actually tried, or an independent check — a verdict with no attempted break is decoration. (5) CITATION DRIFT: a real source is cited but misquoted, dropped a clause, or summarized into a different claim; open the source and compare the quoted span word-for-word, because drift looks more trustworthy than invention.
20
+ 3. Treat the author's own self-assessment as unreliable in seven specific zones and re-verify each independently rather than accepting 'I checked it': (1) counts — fields, lines, items, totals drift between two spots in the same artifact; (2) self-audit checklists with empty filler rows like 'expected N' or a bracketed blank but no actual result filled in; (3) self-audit table rows that describe a check in prose but never show the command that performs it; (4) 'tested' claims that state an expected value but no observed value; (5) attention on long documents — past a few hundred lines a self-check goes formal and misses things, so spot-check the tail, not just the top; (6) self-rule-compliance — 'I followed rule X strictly' is contradicted by at least one counter-instance often enough that it cannot be taken on faith; (7) running totals carried across sessions, which accumulate off-by-one drift. In all seven, the sentence 'I already verified this' is itself the thing not to trust.
21
+ 4. Tie every issue to a requirement, a line, a section, or a specific missing piece of evidence. A finding that cannot point at a spot is a vibe, not a finding.
22
+ 5. Sort findings into blocker / high / medium / residual, and state which are decision-changing.
23
+ 6. State the GUARD LEVEL — how strong the evidence you actually had was — because it caps the verdict you may give. L0: you saw only a completion summary. L1: the artifact and acceptance card exist but there is no real run/test output. L2: you have the author's commands or tests but you are a single tool / single model family. L3: there is a structured evidence pack AND a guard from a different model family pressed on it. L4: on top of that cross-family review (L3), you ALSO independently re-ran the key evidence and reconciled it to a recorded run — a rerun alone, single-family, stays L2.
24
+ 7. Return ONE of the four standard verdicts, bounded by the level — pass / reject / insufficient_evidence / pass_with_risk. The ceiling: L0 can only be insufficient_evidence; L1 cannot pass (best is reject or pass_with_risk); L2 (single tool) tops out at pass_with_risk; a plain pass needs L3+ (the cross-family pack); an L4 pass must cite BOTH the cross-family pack AND your reconciled rerun output. A pass_with_risk is NOT 'accepted' on your say-so — the owner must explicitly accept the named residual risk. For anything not fixed, name it as residual risk on the record. A reviewer never silently upgrades 'reads fine' into 'verified'.
25
+
26
+ ## Copy-paste prompt
27
+
28
+ ```text
29
+ You are helping me with guard review in a local-first AI collaboration workspace.
30
+
31
+ Task: Review an artifact against context, acceptance, evidence, and privacy boundaries.
32
+
33
+ Trigger:
34
+ Use after a draft or implementation exists and before any future work treats it as trusted: a completion claim, a release candidate, a citation-heavy document, a 'done and tested' report, or any artifact whose wrong 'looks fine' would propagate into later work.
35
+
36
+ Do not use when:
37
+ Skip the full review on low-stakes, easily reversible work, or a step the owner is about to fully re-run by hand: a one-line wording fix, a scratch draft, a trivial config tweak. A heavy guard pass on throwaway work is ceremony, and ceremony with no payoff trains people to skip review when it matters.
38
+
39
+ Input:
40
+ The artifact under review, with stable line or section references so a finding can cite an exact spot. The acceptance card or definition of done it claims to meet. The context boundary (goal, scope, non-goals). The verification evidence the completion claim rests on (real command output, test results, a reproduced behavior) or a clear note that none exists. Which model family drafted it, so a same-family 'I reviewed my own work' is weighted as the weak signal it is.
41
+
42
+ Process:
43
+ 1. Lead with findings, not compliments. The job is to find what is wrong before it propagates, not to reassure.
44
+ 2. Hunt for the five faces of a half-product — work that looks finished but is not — and for each, run its concrete tell. (1) DONE BUT NOT ACTUALLY DONE: the report says complete; demand the command plus real output and confirm it was actually run, not narrated. (2) PAPER EXISTS BUT THE FUNCTION DOES NOT: the file/hook/feature is present but never wired in; check that it is actually invoked and produces a real effect, not just that it exists on disk. (3) NUMBERS LOOK RIGHT BUT THE DENOMINATOR IS WRONG: a clean percentage or count; pin the exact scope and denominator and recompute, because pending and not-started items get quietly mixed in. (4) JUDGMENT THEATER: 'I judged it safe / I reviewed it'; require a named failure scenario actually tried, or an independent check — a verdict with no attempted break is decoration. (5) CITATION DRIFT: a real source is cited but misquoted, dropped a clause, or summarized into a different claim; open the source and compare the quoted span word-for-word, because drift looks more trustworthy than invention.
45
+ 3. Treat the author's own self-assessment as unreliable in seven specific zones and re-verify each independently rather than accepting 'I checked it': (1) counts — fields, lines, items, totals drift between two spots in the same artifact; (2) self-audit checklists with empty filler rows like 'expected N' or a bracketed blank but no actual result filled in; (3) self-audit table rows that describe a check in prose but never show the command that performs it; (4) 'tested' claims that state an expected value but no observed value; (5) attention on long documents — past a few hundred lines a self-check goes formal and misses things, so spot-check the tail, not just the top; (6) self-rule-compliance — 'I followed rule X strictly' is contradicted by at least one counter-instance often enough that it cannot be taken on faith; (7) running totals carried across sessions, which accumulate off-by-one drift. In all seven, the sentence 'I already verified this' is itself the thing not to trust.
46
+ 4. Tie every issue to a requirement, a line, a section, or a specific missing piece of evidence. A finding that cannot point at a spot is a vibe, not a finding.
47
+ 5. Sort findings into blocker / high / medium / residual, and state which are decision-changing.
48
+ 6. State the GUARD LEVEL — how strong the evidence you actually had was — because it caps the verdict you may give. L0: you saw only a completion summary. L1: the artifact and acceptance card exist but there is no real run/test output. L2: you have the author's commands or tests but you are a single tool / single model family. L3: there is a structured evidence pack AND a guard from a different model family pressed on it. L4: on top of that cross-family review (L3), you ALSO independently re-ran the key evidence and reconciled it to a recorded run — a rerun alone, single-family, stays L2.
49
+ 7. Return ONE of the four standard verdicts, bounded by the level — pass / reject / insufficient_evidence / pass_with_risk. The ceiling: L0 can only be insufficient_evidence; L1 cannot pass (best is reject or pass_with_risk); L2 (single tool) tops out at pass_with_risk; a plain pass needs L3+ (the cross-family pack); an L4 pass must cite BOTH the cross-family pack AND your reconciled rerun output. A pass_with_risk is NOT 'accepted' on your say-so — the owner must explicitly accept the named residual risk. For anything not fixed, name it as residual risk on the record. A reviewer never silently upgrades 'reads fine' into 'verified'.
50
+
51
+ Output shape:
52
+ - Verdict: one of pass / reject / insufficient_evidence / pass_with_risk (with the single decisive reason).
53
+ - Guard level: L0 / L1 / L2 / L3 / L4 — the strength of the evidence you actually had, which bounds the verdict above.
54
+ - Findings ordered by severity, each tied to a line, section, requirement, or missing evidence.
55
+ - Half-product check: which of the five faces appeared, and the tell that exposed it.
56
+ - Self-assessment check: which of the seven unreliable zones were re-verified independently and what that re-check found.
57
+ - Evidence: the command output, citation comparison, or reproduction the verdict rests on (for an L4 pass, the cross-family pack AND your reconciled rerun output).
58
+ - Required fixes: the concrete change each blocker needs.
59
+ - Residual risk: what stays unverified and who must accept it (a pass_with_risk needs an explicit owner sign-off).
60
+
61
+ Pass bar (do not pass unless all hold):
62
+ - The verdict is within the guard level's ceiling: no plain pass below L3, no pass from a single tool, no L4 pass without BOTH a cross-family pack and a reconciled rerun, and L0 only ever yields insufficient_evidence.
63
+ - Every completion claim is backed by evidence the guard could actually point to, not by the author's assurance.
64
+ - None of the five half-product faces survives unexamined; any that appeared was caught with its concrete tell.
65
+ - Each of the seven self-assessment zones that applies was re-verified by the guard, not taken on the author's 'I checked it'.
66
+ - All acceptance criteria are met, or the unmet ones are named as accepted residual risk rather than hidden; any pass_with_risk has an explicit owner sign-off.
67
+ - No private material leaked and scope stayed inside the stated boundary.
68
+
69
+ Reject bar (send back if any holds):
70
+ - The verdict claims more than the guard level allows — a plain pass on summary-only or single-tool evidence, or an L4 pass with no cross-family pack or no reconciled rerun (the 'single tool dressed up as a binding pass' failure).
71
+ - A pass_with_risk is treated as accepted with no explicit owner sign-off on the residual risk.
72
+ - A completion claim asserts more than the evidence shows — the classic 'said it was done but it was not'.
73
+ - A file/feature is counted as working purely because it exists, with no proof it is wired in and produces an effect.
74
+ - A number or percentage is accepted without pinning its denominator, so not-started items are silently inflating it.
75
+ - A safety or correctness call is 'I judged it fine' with no failure scenario tried and no independent check.
76
+ - A citation is trusted without opening the source, and a word-for-word compare would have shown drift.
77
+ - The review leans on the author's self-audit in one of the seven unreliable zones instead of re-verifying it.
78
+
79
+ Rules:
80
+ - Work only from the material I provide.
81
+ - Keep private material local; use public-safe synthetic wording for examples.
82
+ - Label facts, assumptions, and unverified claims.
83
+ - Do not claim to understand my private business beyond the provided context.
84
+
85
+ Material:
86
+ [paste redacted material here]
87
+ ```
88
+
89
+ ## Expected output
90
+
91
+ - Verdict
92
+ - Findings ordered by severity
93
+ - Evidence
94
+ - Required fixes
95
+ - Residual risk
96
+ - Pass or reject recommendation
97
+
98
+ ## Counter-example
99
+
100
+ Synthetic: an artifact ships with a confident summary, a self-audit table every row ticked, and the line 'I verified all 12 acceptance items pass.' A tone-only review would approve. Under this prompt: the self-audit rows describe checks but show no commands (zone 3), 'tested' rows give expected values but no observed ones (zone 4), and the count '12' is 11 when actually listed (zone 1). Re-verifying independently shows two items were never wired in (half-product face 2) and one cited source was summarized into a claim it never made (face 5). Because the guard only had the author's artifact and no real run, this is guard level L1 — which cannot pass anyway. Verdict: reject — the polished surface was hiding three unproven claims, which is exactly why the author's own 'I verified it' could not clear the gate.
101
+
102
+ ## Failure modes
103
+
104
+ - Rubber-stamping the same assistant's output.
105
+ - Reviewing tone while ignoring the acceptance card.
106
+ - Calling work complete without fresh verification evidence.
107
+ - Trusting the author's own 'I checked it' on counts, citations, or self-rule-compliance — exactly the claims a model is worst at self-judging.
108
+ - Reading a polished structure (headings, summary, confident prose) as proof the underlying thing actually runs.
109
+
110
+ ## Example
111
+
112
+ Guard rejects a README that claims multi-tool integration when the code only writes adapter guidance files.
113
+
114
+ ## Use with
115
+
116
+ Claude Code / Codex / Cursor / Windsurf / Copilot / Cline.
@@ -0,0 +1,110 @@
1
+ # Handoff generation
2
+
3
+ Purpose: Write a next-session state card with completed, pending, blocked, and unverified work.
4
+
5
+ ## Scenario
6
+
7
+ Use before stopping, changing tools, delegating, or compressing a long task into a resumable state.
8
+
9
+ ## Input requirements
10
+
11
+ - Current goal and status.
12
+ - Completed work and changed artifacts.
13
+ - Verification commands and outputs.
14
+ - Blockers, decisions, and the next action.
15
+
16
+ ## Operating steps
17
+
18
+ 1. State the goal in one sentence, then separate the work into done / pending / blocked / unverified. Do not narrate a story; transfer a state a stranger can act on.
19
+ 2. Record the exact commands or checks already run with their real outputs — including failures shown openly, never smoothed into a summary. A check claimed but not shown is treated as not run.
20
+ 3. Frame the option list honestly as a menu, not the whole map: it is the author's view of what comes next, and the author may have missed, misordered, or mis-scoped an item. Mark which options are well-grounded and which are guesses.
21
+ 4. Give the receiver an explicit first-round judgment to run before executing, not just a task to pick: (1) what is this next stint actually for — restate the main-line goal, the current sub-task, and the completion bar; (2) is the handed-off option list exhaustive — what did the author miss; (3) is there an unlisted item D or E, and if so does it serve the main line or hijack it? An option list you accept without questioning is an option list whose blind spots you inherit.
22
+ 5. Set the discipline for new items: a genuinely high-signal item that does NOT serve the current main line is recorded as a parked / after-closeout residual, not seized on round one. High signal is not the same as 'do it now'; the main line that was handed off keeps priority unless the owner re-points it.
23
+ 6. Give one concrete first action and the exact baseline to start from, so the receiver re-enters work cleanly instead of re-deriving the starting point or re-explaining the background.
24
+
25
+ ## Copy-paste prompt
26
+
27
+ ```text
28
+ You are helping me with handoff generation in a local-first AI collaboration workspace.
29
+
30
+ Task: Write a next-session state card with completed, pending, blocked, and unverified work.
31
+
32
+ Trigger:
33
+ Use before work crosses a boundary: a session is ending, a different tool or model is taking over, a long task is being compressed into a resumable state, or you are delegating to someone who was not in the original context.
34
+
35
+ Do not use when:
36
+ Skip the full packet when the same session simply continues, or for a trivial task with a single obvious next step and no state worth transferring. A formal handoff for a one-line continuation is overhead the receiver does not need.
37
+
38
+ Input:
39
+ The goal in the author's words and the current status. The completed work and the artifacts that changed. The exact verification commands run and their real outputs (including the ones that failed). The blockers, the decisions already made, the sealed baseline (the exact point being handed off), and the author's best read of the next action. Crucially, an honest note of what the author may have left off the list.
40
+
41
+ Process:
42
+ 1. State the goal in one sentence, then separate the work into done / pending / blocked / unverified. Do not narrate a story; transfer a state a stranger can act on.
43
+ 2. Record the exact commands or checks already run with their real outputs — including failures shown openly, never smoothed into a summary. A check claimed but not shown is treated as not run.
44
+ 3. Frame the option list honestly as a menu, not the whole map: it is the author's view of what comes next, and the author may have missed, misordered, or mis-scoped an item. Mark which options are well-grounded and which are guesses.
45
+ 4. Give the receiver an explicit first-round judgment to run before executing, not just a task to pick: (1) what is this next stint actually for — restate the main-line goal, the current sub-task, and the completion bar; (2) is the handed-off option list exhaustive — what did the author miss; (3) is there an unlisted item D or E, and if so does it serve the main line or hijack it? An option list you accept without questioning is an option list whose blind spots you inherit.
46
+ 5. Set the discipline for new items: a genuinely high-signal item that does NOT serve the current main line is recorded as a parked / after-closeout residual, not seized on round one. High signal is not the same as 'do it now'; the main line that was handed off keeps priority unless the owner re-points it.
47
+ 6. Give one concrete first action and the exact baseline to start from, so the receiver re-enters work cleanly instead of re-deriving the starting point or re-explaining the background.
48
+
49
+ Output shape:
50
+ - Goal: one sentence.
51
+ - Current status: done / pending / blocked / unverified, kept separate.
52
+ - Verification evidence: the exact commands run and their real outputs, failures included.
53
+ - Option menu (not the map): the next-step options, each marked well-grounded or guess, with a note of what may be missing.
54
+ - Receiver's first-round check: the three questions to answer before executing (what is this for / is the list exhaustive / is there an unlisted D-or-E that serves vs hijacks the main line).
55
+ - Parked residuals: high-signal items that do not serve the current main line, recorded for later, not seized now.
56
+ - Next action: one concrete first step plus the exact baseline to start from.
57
+
58
+ Pass bar (do not pass unless all hold):
59
+ - Done / pending / blocked / unverified are cleanly separated, with no failed check hidden inside a summary.
60
+ - Every verification claim shows its real command and output, so 'verified' means shown, not asserted.
61
+ - The option list is framed as the author's menu, not the whole map, with missing or guessed items flagged.
62
+ - The receiver is handed an explicit first-round judgment (what is this for / is the list exhaustive / is there a D or E) rather than just a task to pick.
63
+ - A single concrete next action and the exact starting baseline are stated, and off-main-line items are parked rather than promoted to round one.
64
+
65
+ Reject bar (send back if any holds):
66
+ - The handoff is a narrative of what happened instead of an actionable state transfer.
67
+ - A check is claimed ('tests pass') with no command or output shown, so the receiver must rediscover it.
68
+ - The option list is presented as the complete and only set of next steps, inviting the receiver to inherit the author's blind spots.
69
+ - A failed or skipped check is smoothed over rather than surfaced in the unverified column.
70
+ - A tempting new item is teed up as the immediate next action even though it does not serve the handed-off main line.
71
+
72
+ Rules:
73
+ - Work only from the material I provide.
74
+ - Keep private material local; use public-safe synthetic wording for examples.
75
+ - Label facts, assumptions, and unverified claims.
76
+ - Do not claim to understand my private business beyond the provided context.
77
+
78
+ Material:
79
+ [paste redacted material here]
80
+ ```
81
+
82
+ ## Expected output
83
+
84
+ - Goal
85
+ - Current status
86
+ - Completed
87
+ - Pending
88
+ - Blocked
89
+ - Verification evidence
90
+ - Next action
91
+
92
+ ## Counter-example
93
+
94
+ Synthetic: a handoff lists options A/B/C for finishing a release and says 'next: do B'. The receiver runs the first-round check instead of grabbing B. Question two exposes that the author never listed reconciling a data-count mismatch — an unlisted item D — and question three judges that D actually blocks the release, so it serves the main line and is promoted; meanwhile a flashy idea E (add a new export format) is high-signal but off the main line, so it is parked as an after-closeout residual rather than hijacking round one. Treating the menu as the whole map would have shipped the release with the count bug the author had silently omitted.
95
+
96
+ ## Failure modes
97
+
98
+ - Writing a story instead of a state transfer.
99
+ - Hiding failed checks in a summary.
100
+ - Leaving the next assistant to rediscover the first command.
101
+ - Presenting the option list as the whole world, so the receiver never asks what the author missed.
102
+ - Letting the receiver grab a tempting new item on round one and hijack the main line that was actually handed off.
103
+
104
+ ## Example
105
+
106
+ Handoff says: tests pass, pack smoke not run, adapter installer added, next action is fresh temp install.
107
+
108
+ ## Use with
109
+
110
+ Claude Code / Codex / Cursor / Windsurf / Copilot / Cline.