@ijfw/memory-server 1.4.4 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/bin/ijfw-memorize +14 -7
  2. package/fixtures/team/book.json +6 -6
  3. package/fixtures/team/business.json +146 -20
  4. package/fixtures/team/content.json +6 -6
  5. package/fixtures/team/design.json +148 -20
  6. package/fixtures/team/mixed.json +206 -27
  7. package/fixtures/team/research.json +146 -20
  8. package/fixtures/team/software.json +148 -20
  9. package/fixtures/truncation-corpus/_generate-corpus.js +367 -0
  10. package/fixtures/truncation-corpus/fx-01-clean-exit-01/events.jsonl +2 -0
  11. package/fixtures/truncation-corpus/fx-01-clean-exit-01/intent-journal.jsonl +2 -0
  12. package/fixtures/truncation-corpus/fx-01-clean-exit-01/meta.json +18 -0
  13. package/fixtures/truncation-corpus/fx-01-clean-exit-01/target/.ijfw/state/workflow.json +1 -0
  14. package/fixtures/truncation-corpus/fx-01-clean-exit-02/events.jsonl +2 -0
  15. package/fixtures/truncation-corpus/fx-01-clean-exit-02/intent-journal.jsonl +2 -0
  16. package/fixtures/truncation-corpus/fx-01-clean-exit-02/meta.json +18 -0
  17. package/fixtures/truncation-corpus/fx-01-clean-exit-02/target/.ijfw/state/workflow.json +1 -0
  18. package/fixtures/truncation-corpus/fx-01-clean-exit-03/events.jsonl +2 -0
  19. package/fixtures/truncation-corpus/fx-01-clean-exit-03/intent-journal.jsonl +2 -0
  20. package/fixtures/truncation-corpus/fx-01-clean-exit-03/meta.json +18 -0
  21. package/fixtures/truncation-corpus/fx-01-clean-exit-03/target/.ijfw/state/workflow.json +1 -0
  22. package/fixtures/truncation-corpus/fx-01-clean-exit-04/events.jsonl +2 -0
  23. package/fixtures/truncation-corpus/fx-01-clean-exit-04/intent-journal.jsonl +2 -0
  24. package/fixtures/truncation-corpus/fx-01-clean-exit-04/meta.json +18 -0
  25. package/fixtures/truncation-corpus/fx-01-clean-exit-04/target/.ijfw/state/workflow.json +1 -0
  26. package/fixtures/truncation-corpus/fx-01-clean-exit-05/events.jsonl +2 -0
  27. package/fixtures/truncation-corpus/fx-01-clean-exit-05/intent-journal.jsonl +2 -0
  28. package/fixtures/truncation-corpus/fx-01-clean-exit-05/meta.json +18 -0
  29. package/fixtures/truncation-corpus/fx-01-clean-exit-05/target/.ijfw/state/workflow.json +1 -0
  30. package/fixtures/truncation-corpus/fx-02-mid-overwrite-01/events.jsonl +1 -0
  31. package/fixtures/truncation-corpus/fx-02-mid-overwrite-01/intent-journal.jsonl +3 -0
  32. package/fixtures/truncation-corpus/fx-02-mid-overwrite-01/meta.json +18 -0
  33. package/fixtures/truncation-corpus/fx-02-mid-overwrite-01/snapshots/v-midO-1-advance.json +11 -0
  34. package/fixtures/truncation-corpus/fx-02-mid-overwrite-01/target/.ijfw/state/workflow.json +1 -0
  35. package/fixtures/truncation-corpus/fx-02-mid-overwrite-02/events.jsonl +1 -0
  36. package/fixtures/truncation-corpus/fx-02-mid-overwrite-02/intent-journal.jsonl +3 -0
  37. package/fixtures/truncation-corpus/fx-02-mid-overwrite-02/meta.json +18 -0
  38. package/fixtures/truncation-corpus/fx-02-mid-overwrite-02/snapshots/v-midO-2-advance.json +11 -0
  39. package/fixtures/truncation-corpus/fx-02-mid-overwrite-02/target/.ijfw/state/workflow.json +1 -0
  40. package/fixtures/truncation-corpus/fx-02-mid-overwrite-03/events.jsonl +1 -0
  41. package/fixtures/truncation-corpus/fx-02-mid-overwrite-03/intent-journal.jsonl +3 -0
  42. package/fixtures/truncation-corpus/fx-02-mid-overwrite-03/meta.json +18 -0
  43. package/fixtures/truncation-corpus/fx-02-mid-overwrite-03/snapshots/v-midO-3-advance.json +11 -0
  44. package/fixtures/truncation-corpus/fx-02-mid-overwrite-03/target/.ijfw/state/workflow.json +1 -0
  45. package/fixtures/truncation-corpus/fx-02-mid-overwrite-04/events.jsonl +1 -0
  46. package/fixtures/truncation-corpus/fx-02-mid-overwrite-04/intent-journal.jsonl +3 -0
  47. package/fixtures/truncation-corpus/fx-02-mid-overwrite-04/meta.json +18 -0
  48. package/fixtures/truncation-corpus/fx-02-mid-overwrite-04/snapshots/v-midO-4-advance.json +11 -0
  49. package/fixtures/truncation-corpus/fx-02-mid-overwrite-04/target/.ijfw/state/workflow.json +1 -0
  50. package/fixtures/truncation-corpus/fx-02-mid-overwrite-05/events.jsonl +1 -0
  51. package/fixtures/truncation-corpus/fx-02-mid-overwrite-05/intent-journal.jsonl +3 -0
  52. package/fixtures/truncation-corpus/fx-02-mid-overwrite-05/meta.json +18 -0
  53. package/fixtures/truncation-corpus/fx-02-mid-overwrite-05/snapshots/v-midO-5-advance.json +11 -0
  54. package/fixtures/truncation-corpus/fx-02-mid-overwrite-05/target/.ijfw/state/workflow.json +1 -0
  55. package/fixtures/truncation-corpus/fx-03-mid-append-01/events.jsonl +1 -0
  56. package/fixtures/truncation-corpus/fx-03-mid-append-01/intent-journal.jsonl +3 -0
  57. package/fixtures/truncation-corpus/fx-03-mid-append-01/meta.json +18 -0
  58. package/fixtures/truncation-corpus/fx-03-mid-append-01/target/.ijfw/blackboard/decisions.jsonl +1 -0
  59. package/fixtures/truncation-corpus/fx-03-mid-append-02/events.jsonl +1 -0
  60. package/fixtures/truncation-corpus/fx-03-mid-append-02/intent-journal.jsonl +3 -0
  61. package/fixtures/truncation-corpus/fx-03-mid-append-02/meta.json +18 -0
  62. package/fixtures/truncation-corpus/fx-03-mid-append-02/target/.ijfw/blackboard/decisions.jsonl +1 -0
  63. package/fixtures/truncation-corpus/fx-03-mid-append-03/events.jsonl +1 -0
  64. package/fixtures/truncation-corpus/fx-03-mid-append-03/intent-journal.jsonl +3 -0
  65. package/fixtures/truncation-corpus/fx-03-mid-append-03/meta.json +18 -0
  66. package/fixtures/truncation-corpus/fx-03-mid-append-03/target/.ijfw/blackboard/decisions.jsonl +1 -0
  67. package/fixtures/truncation-corpus/fx-03-mid-append-04/events.jsonl +1 -0
  68. package/fixtures/truncation-corpus/fx-03-mid-append-04/intent-journal.jsonl +3 -0
  69. package/fixtures/truncation-corpus/fx-03-mid-append-04/meta.json +18 -0
  70. package/fixtures/truncation-corpus/fx-03-mid-append-04/target/.ijfw/blackboard/decisions.jsonl +1 -0
  71. package/fixtures/truncation-corpus/fx-03-mid-append-05/events.jsonl +1 -0
  72. package/fixtures/truncation-corpus/fx-03-mid-append-05/intent-journal.jsonl +3 -0
  73. package/fixtures/truncation-corpus/fx-03-mid-append-05/meta.json +18 -0
  74. package/fixtures/truncation-corpus/fx-03-mid-append-05/target/.ijfw/blackboard/decisions.jsonl +1 -0
  75. package/fixtures/truncation-corpus/fx-04-no-events-01/events.jsonl +0 -0
  76. package/fixtures/truncation-corpus/fx-04-no-events-01/intent-journal.jsonl +1 -0
  77. package/fixtures/truncation-corpus/fx-04-no-events-01/meta.json +18 -0
  78. package/fixtures/truncation-corpus/fx-04-no-events-01/snapshots/v-noEv-1-set-phase.json +11 -0
  79. package/fixtures/truncation-corpus/fx-04-no-events-01/target/.ijfw/state/workflow.json +1 -0
  80. package/fixtures/truncation-corpus/fx-04-no-events-02/events.jsonl +0 -0
  81. package/fixtures/truncation-corpus/fx-04-no-events-02/intent-journal.jsonl +1 -0
  82. package/fixtures/truncation-corpus/fx-04-no-events-02/meta.json +18 -0
  83. package/fixtures/truncation-corpus/fx-04-no-events-02/snapshots/v-noEv-2-set-phase.json +11 -0
  84. package/fixtures/truncation-corpus/fx-04-no-events-02/target/.ijfw/state/workflow.json +1 -0
  85. package/fixtures/truncation-corpus/fx-04-no-events-03/events.jsonl +0 -0
  86. package/fixtures/truncation-corpus/fx-04-no-events-03/intent-journal.jsonl +1 -0
  87. package/fixtures/truncation-corpus/fx-04-no-events-03/meta.json +18 -0
  88. package/fixtures/truncation-corpus/fx-04-no-events-03/snapshots/v-noEv-3-set-phase.json +11 -0
  89. package/fixtures/truncation-corpus/fx-04-no-events-03/target/.ijfw/state/workflow.json +1 -0
  90. package/fixtures/truncation-corpus/fx-04-no-events-04/events.jsonl +0 -0
  91. package/fixtures/truncation-corpus/fx-04-no-events-04/intent-journal.jsonl +1 -0
  92. package/fixtures/truncation-corpus/fx-04-no-events-04/meta.json +18 -0
  93. package/fixtures/truncation-corpus/fx-04-no-events-04/snapshots/v-noEv-4-set-phase.json +11 -0
  94. package/fixtures/truncation-corpus/fx-04-no-events-04/target/.ijfw/state/workflow.json +1 -0
  95. package/fixtures/truncation-corpus/fx-04-no-events-05/events.jsonl +0 -0
  96. package/fixtures/truncation-corpus/fx-04-no-events-05/intent-journal.jsonl +1 -0
  97. package/fixtures/truncation-corpus/fx-04-no-events-05/meta.json +18 -0
  98. package/fixtures/truncation-corpus/fx-04-no-events-05/snapshots/v-noEv-5-set-phase.json +11 -0
  99. package/fixtures/truncation-corpus/fx-04-no-events-05/target/.ijfw/state/workflow.json +1 -0
  100. package/fixtures/truncation-corpus/fx-05-error-terminated-01/events.jsonl +2 -0
  101. package/fixtures/truncation-corpus/fx-05-error-terminated-01/intent-journal.jsonl +3 -0
  102. package/fixtures/truncation-corpus/fx-05-error-terminated-01/meta.json +18 -0
  103. package/fixtures/truncation-corpus/fx-05-error-terminated-01/snapshots/v-errT-1-partial.json +11 -0
  104. package/fixtures/truncation-corpus/fx-05-error-terminated-01/target/.ijfw/state/workflow.json +1 -0
  105. package/fixtures/truncation-corpus/fx-05-error-terminated-02/events.jsonl +2 -0
  106. package/fixtures/truncation-corpus/fx-05-error-terminated-02/intent-journal.jsonl +3 -0
  107. package/fixtures/truncation-corpus/fx-05-error-terminated-02/meta.json +18 -0
  108. package/fixtures/truncation-corpus/fx-05-error-terminated-02/target/.ijfw/blackboard/decisions.jsonl +1 -0
  109. package/fixtures/truncation-corpus/fx-05-error-terminated-03/events.jsonl +2 -0
  110. package/fixtures/truncation-corpus/fx-05-error-terminated-03/intent-journal.jsonl +3 -0
  111. package/fixtures/truncation-corpus/fx-05-error-terminated-03/meta.json +18 -0
  112. package/fixtures/truncation-corpus/fx-05-error-terminated-03/snapshots/v-errT-3-partial.json +11 -0
  113. package/fixtures/truncation-corpus/fx-05-error-terminated-03/target/.ijfw/state/workflow.json +1 -0
  114. package/fixtures/truncation-corpus/fx-05-error-terminated-04/events.jsonl +2 -0
  115. package/fixtures/truncation-corpus/fx-05-error-terminated-04/intent-journal.jsonl +3 -0
  116. package/fixtures/truncation-corpus/fx-05-error-terminated-04/meta.json +18 -0
  117. package/fixtures/truncation-corpus/fx-05-error-terminated-04/target/.ijfw/blackboard/decisions.jsonl +1 -0
  118. package/fixtures/truncation-corpus/fx-05-error-terminated-05/events.jsonl +2 -0
  119. package/fixtures/truncation-corpus/fx-05-error-terminated-05/intent-journal.jsonl +3 -0
  120. package/fixtures/truncation-corpus/fx-05-error-terminated-05/meta.json +18 -0
  121. package/fixtures/truncation-corpus/fx-05-error-terminated-05/snapshots/v-errT-5-partial.json +11 -0
  122. package/fixtures/truncation-corpus/fx-05-error-terminated-05/target/.ijfw/state/workflow.json +1 -0
  123. package/package.json +6 -3
  124. package/src/active-extension-writer.js +144 -64
  125. package/src/api-client.js +43 -5
  126. package/src/audit-roster.js +80 -5
  127. package/src/blackboard.js +298 -6
  128. package/src/cli-run.js +33 -5
  129. package/src/codex-agents.js +96 -5
  130. package/src/cost/aggregator.js +39 -9
  131. package/src/cost/pricing.js +57 -0
  132. package/src/cost/readers/gemini.js +1 -1
  133. package/src/cross-audit-chunker.js +189 -0
  134. package/src/cross-dispatcher.js +124 -21
  135. package/src/cross-orchestrator-cli.js +754 -159
  136. package/src/cross-orchestrator.js +1065 -17
  137. package/src/cross-project-search.js +195 -9
  138. package/src/dashboard-client-waves.html +304 -0
  139. package/src/dashboard-client.html +5 -1
  140. package/src/dashboard-server.js +73 -0
  141. package/src/deploy-alerts.js +150 -0
  142. package/src/design/iframe-bridge.js +242 -0
  143. package/src/design-companion.js +144 -0
  144. package/src/dispatch/checkpoint-cli.js +97 -0
  145. package/src/dispatch/colon-syntax.js +81 -1
  146. package/src/dispatch/extension.js +26 -2
  147. package/src/dispatch/registry-cli.js +4 -1
  148. package/src/dispatch/wave-cli.js +201 -6
  149. package/src/dispatch/worktree-cli.js +40 -0
  150. package/src/dispatch-planner.js +97 -2
  151. package/src/dream/runner.mjs +47 -11
  152. package/src/dream/stage-runner.js +40 -0
  153. package/src/dream/state-file.js +102 -0
  154. package/src/extension-installer.js +70 -24
  155. package/src/extension-quota-tracker.js +4 -2
  156. package/src/extension-registry.js +289 -35
  157. package/src/feedback-detector.js +26 -0
  158. package/src/fs-lock.js +259 -7
  159. package/src/gate-result.js +95 -1
  160. package/src/hardware-signer.js +4 -2
  161. package/src/hero-line.js +86 -5
  162. package/src/intent-router.js +35 -0
  163. package/src/lib/a11y-contract.js +117 -0
  164. package/src/lib/atomic-io.js +29 -8
  165. package/src/lib/cache-keepalive.js +150 -0
  166. package/src/lib/jsonl-rotation.js +104 -0
  167. package/src/lib/lighthouse-pillar.js +121 -0
  168. package/src/lib/llm-call.js +121 -0
  169. package/src/lib/playwright-baseline.js +205 -0
  170. package/src/lib/rekor-bridge.js +221 -0
  171. package/src/lib/repo-map.js +392 -0
  172. package/src/lib/shasum-verify.js +164 -0
  173. package/src/lib/sketches-gc.js +132 -0
  174. package/src/lib/tmp-suffix.js +62 -0
  175. package/src/lib/ui-review-runner.js +595 -0
  176. package/src/lib/uispec-drift.js +301 -0
  177. package/src/lib/uispec-intake.js +381 -0
  178. package/src/lib/worktree-guards.js +118 -0
  179. package/src/lib/worktree-recovery.js +100 -0
  180. package/src/memory/auto-linker.js +267 -0
  181. package/src/memory/benchmark.js +498 -0
  182. package/src/memory/dedup.js +126 -0
  183. package/src/memory/embedding-cache.js +136 -0
  184. package/src/memory/fact-extractor.js +168 -0
  185. package/src/memory/fts5.js +65 -1
  186. package/src/memory/migration-runner.js +6 -1
  187. package/src/memory/migrations/004-bitemporal.js +91 -0
  188. package/src/memory/migrations/005-vector-cache.js +61 -0
  189. package/src/memory/migrations/006-obsidian-graph.js +46 -0
  190. package/src/memory/migrations/007-skill-telemetry.js +24 -0
  191. package/src/memory/migrations/008-write-provenance.js +41 -0
  192. package/src/memory/migrations/009-obsidian-backfill.js +50 -0
  193. package/src/memory/obsidian-parser.js +152 -0
  194. package/src/memory/query-dataview.js +86 -0
  195. package/src/memory/search.js +46 -15
  196. package/src/memory/temporal.js +529 -0
  197. package/src/memory/tokenize.js +10 -0
  198. package/src/memory-facts-handler.js +37 -0
  199. package/src/memory-feedback.js +260 -2
  200. package/src/model-refresh.js +292 -0
  201. package/src/observability/cost-anomaly.js +166 -0
  202. package/src/observability/evaluator-checkpoint-contract.js +117 -0
  203. package/src/observability/trace-id.js +163 -0
  204. package/src/orchestrator/agents-md-blackboard.js +152 -0
  205. package/src/orchestrator/checkpoint-contract.md +140 -0
  206. package/src/orchestrator/debug-trident-trigger.js +374 -0
  207. package/src/orchestrator/debug-trident.js +570 -0
  208. package/src/orchestrator/merge-block-aware.js +350 -0
  209. package/src/orchestrator/plan-checker.js +475 -0
  210. package/src/orchestrator/post-done-runner.js +277 -0
  211. package/src/orchestrator/review.js +38 -3
  212. package/src/orchestrator/skill-telemetry-sink.js +29 -0
  213. package/src/orchestrator/skill-telemetry.js +37 -0
  214. package/src/orchestrator/state-events.js +459 -0
  215. package/src/orchestrator/state-sdk.js +1932 -0
  216. package/src/orchestrator/status-protocol.js +84 -17
  217. package/src/orchestrator/subagent-telemetry.js +471 -0
  218. package/src/orchestrator/termination.js +160 -0
  219. package/src/orchestrator/verification-gate.js +200 -16
  220. package/src/orchestrator/wave-state.js +332 -23
  221. package/src/orchestrator/worktree-provision.js +77 -0
  222. package/src/override-resolver.js +5 -3
  223. package/src/override-use-registry.js +111 -5
  224. package/src/receipts.js +36 -4
  225. package/src/recovery/checkpoint.js +56 -3
  226. package/src/recovery/code-fixer.js +961 -0
  227. package/src/recovery/truncation.js +317 -0
  228. package/src/redactor.js +75 -6
  229. package/src/runtime-mediator.js +15 -1
  230. package/src/sanitizer.js +10 -0
  231. package/src/search-hybrid.js +139 -0
  232. package/src/server.js +795 -112
  233. package/src/swarm/worktree.js +27 -4
  234. package/src/swarm-config.js +102 -17
  235. package/src/team/domain-templates/book.json +51 -0
  236. package/src/team/domain-templates/business.json +44 -0
  237. package/src/team/domain-templates/content.json +50 -0
  238. package/src/team/domain-templates/design.json +44 -0
  239. package/src/team/domain-templates/research.json +44 -0
  240. package/src/team/domain-templates/software.json +40 -0
  241. package/src/team/generator.js +440 -3
  242. package/src/team/modify.js +203 -0
  243. package/src/team/schemas.js +48 -0
  244. package/src/update-apply.js +19 -3
  245. package/src/dashboard-charts.js +0 -239
package/bin/ijfw-memorize CHANGED
@@ -4,9 +4,13 @@
4
4
  // payload on stdin (Stop-hook json), produces structured memory entries,
5
5
  // and appends them to .ijfw/memory/knowledge.md via the existing store helpers.
6
6
  //
7
- // Deterministic by default: feedback/signals promote 1:1. LLM-based synthesis
8
- // activates only when IJFW_AUTOMEM_MODEL is set (documented as a wiring point;
9
- // current build emits a TODO marker instead of calling an LLM).
7
+ // Deterministic by default: feedback/signals promote 1:1 directly into
8
+ // knowledge.md -- this is the fully-functional production path. When
9
+ // IJFW_AUTOMEM_MODEL is set, an additional LLM-synthesis path runs: it
10
+ // appends a {pending:true} record to .ijfw/.automem-llm-queue.jsonl for
11
+ // later batch processing. That is a deliberate deferred-queue design (the
12
+ // queue decouples session-end from the LLM call) -- NOT an unimplemented
13
+ // stub. It never writes literal TODO text into user memory.
10
14
  //
11
15
  // Consent: reads .ijfw/.automem-consent. If absent or consented=false, exits 0
12
16
  // silently. User sets consent via `/ijfw memory consent yes|no|ask`.
@@ -241,11 +245,14 @@ async function main() {
241
245
  thisRunSummaries.add(capped.summary);
242
246
  }
243
247
 
244
- // TODO: LLM-synthesis path (IJFW_AUTOMEM_MODEL). Stub emits a marker
245
- // so downstream tooling can detect that a richer synthesis could run.
248
+ // LLM-synthesis path (IJFW_AUTOMEM_MODEL). When a model is configured,
249
+ // enqueue a {pending:true} record onto .ijfw/.automem-llm-queue.jsonl for
250
+ // batch processing by the LLM-synthesis worker. This is a deliberate
251
+ // deferred-queue design -- the queue decouples the latency-sensitive
252
+ // session-end hook from the LLM round-trip -- not an unimplemented stub.
253
+ // Nothing here is written into user memory (knowledge.md); the queue file
254
+ // is a separate, internal work list.
246
255
  if (process.env.IJFW_AUTOMEM_MODEL && process.env.IJFW_AUTOMEM_MODEL !== 'off') {
247
- // Wiring point -- Phase 5+ connects this to Anthropic SDK / Ollama.
248
- // For now, record the opportunity.
249
256
  try {
250
257
  mkdirSync(IJFW_DIR, { recursive: true });
251
258
  appendFileSync(join(IJFW_DIR, '.automem-llm-queue.jsonl'),
@@ -5,7 +5,7 @@
5
5
  "project_archetypes": ["book"],
6
6
  "roles": [
7
7
  {
8
- "name": "chapter-writer",
8
+ "name": "ijfw-line-editor",
9
9
  "role_type": "book",
10
10
  "model": "sonnet",
11
11
  "effort": "medium",
@@ -16,7 +16,7 @@
16
16
  "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": ["manuscript/chapters/**"]}
17
17
  },
18
18
  {
19
- "name": "continuity-editor",
19
+ "name": "ijfw-narrative-continuity-checker",
20
20
  "role_type": "review",
21
21
  "model": "sonnet",
22
22
  "effort": "medium",
@@ -32,8 +32,8 @@
32
32
  "schema_version": "team-workflow/v1",
33
33
  "project_archetypes": ["book"],
34
34
  "artifacts": [
35
- {"id": "chapter-draft", "type": "chapter", "paths": ["manuscript/chapters/ch01.md"], "owner": "chapter-writer", "reviewers": ["continuity-editor"], "depends_on": [], "verification": ["continuity review"]},
36
- {"id": "continuity-notes", "type": "continuity_notes", "paths": ["manuscript/notes/continuity.md"], "owner": "continuity-editor", "reviewers": ["chapter-writer"], "depends_on": ["chapter-draft"], "verification": ["open thread audit"]}
35
+ {"id": "chapter-draft", "type": "chapter", "paths": ["manuscript/chapters/ch01.md"], "owner": "ijfw-line-editor", "reviewers": ["ijfw-narrative-continuity-checker"], "depends_on": [], "verification": ["continuity review"]},
36
+ {"id": "continuity-notes", "type": "continuity_notes", "paths": ["manuscript/notes/continuity.md"], "owner": "ijfw-narrative-continuity-checker", "reviewers": ["ijfw-line-editor"], "depends_on": ["chapter-draft"], "verification": ["open thread audit"]}
37
37
  ],
38
38
  "waves": [
39
39
  {"id": "w1", "mode": "parallel", "artifact_ids": ["chapter-draft"]},
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "blackboard": {
44
- "tasks": [{"id": "task-chapter", "title": "Draft chapter one", "status": "ready", "artifact_ids": ["chapter-draft"], "owner": "chapter-writer"}],
45
- "claims": [{"id": "claim-chapter", "artifact_id": "chapter-draft", "agent": "chapter-writer", "status": "active", "paths": ["manuscript/chapters/ch01.md"]}]
44
+ "tasks": [{"id": "task-chapter", "title": "Draft chapter one", "status": "ready", "artifact_ids": ["chapter-draft"], "owner": "ijfw-line-editor"}],
45
+ "claims": [{"id": "claim-chapter", "artifact_id": "chapter-draft", "agent": "ijfw-line-editor", "status": "active", "paths": ["manuscript/chapters/ch01.md"]}]
46
46
  }
47
47
  }
@@ -2,46 +2,172 @@
2
2
  "charter": {
3
3
  "schema_version": "team-charter/v1",
4
4
  "team_name": "strategy-operations-team",
5
- "project_archetypes": ["business"],
5
+ "project_archetypes": [
6
+ "business"
7
+ ],
6
8
  "roles": [
7
9
  {
8
- "name": "strategy-lead",
10
+ "name": "ijfw-strategy-lead",
9
11
  "role_type": "business",
10
12
  "model": "sonnet",
11
13
  "effort": "medium",
12
- "phase_scope": ["diagnose", "plan", "decide"],
13
- "owns": [{"artifact_type": "strategy_doc", "paths": ["strategy/**"]}],
14
- "reviews": [{"artifact_type": "risk_register", "criteria": ["assumptions", "decision-quality"]}],
15
- "handoff": {"format": "markdown", "required_sections": ["recommendation", "assumptions", "tradeoffs"]},
16
- "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": []}
14
+ "phase_scope": [
15
+ "diagnose",
16
+ "plan",
17
+ "decide"
18
+ ],
19
+ "owns": [
20
+ {
21
+ "artifact_type": "strategy_doc",
22
+ "paths": [
23
+ "strategy/**"
24
+ ]
25
+ }
26
+ ],
27
+ "reviews": [
28
+ {
29
+ "artifact_type": "risk_register",
30
+ "criteria": [
31
+ "assumptions",
32
+ "decision-quality"
33
+ ]
34
+ }
35
+ ],
36
+ "handoff": {
37
+ "format": "markdown",
38
+ "required_sections": [
39
+ "recommendation",
40
+ "assumptions",
41
+ "tradeoffs"
42
+ ]
43
+ },
44
+ "coordination": {
45
+ "parallel_safe": true,
46
+ "claim_required": true,
47
+ "conflicts_with": []
48
+ }
17
49
  },
18
50
  {
19
- "name": "risk-reviewer",
51
+ "name": "ijfw-risk-reviewer",
20
52
  "role_type": "review",
21
53
  "model": "sonnet",
22
54
  "effort": "medium",
23
- "phase_scope": ["review", "verify"],
24
- "owns": [{"artifact_type": "risk_register", "paths": ["strategy/risks/**"]}],
25
- "reviews": [{"artifact_type": "strategy_doc", "criteria": ["feasibility", "downside", "metrics"]}],
26
- "handoff": {"format": "markdown", "required_sections": ["risks", "mitigations", "decision_points"]},
27
- "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": []}
55
+ "phase_scope": [
56
+ "review",
57
+ "verify"
58
+ ],
59
+ "owns": [
60
+ {
61
+ "artifact_type": "risk_register",
62
+ "paths": [
63
+ "strategy/risks/**"
64
+ ]
65
+ }
66
+ ],
67
+ "reviews": [
68
+ {
69
+ "artifact_type": "strategy_doc",
70
+ "criteria": [
71
+ "feasibility",
72
+ "downside",
73
+ "metrics"
74
+ ]
75
+ }
76
+ ],
77
+ "handoff": {
78
+ "format": "markdown",
79
+ "required_sections": [
80
+ "risks",
81
+ "mitigations",
82
+ "decision_points"
83
+ ]
84
+ },
85
+ "coordination": {
86
+ "parallel_safe": true,
87
+ "claim_required": true,
88
+ "conflicts_with": []
89
+ }
28
90
  }
29
91
  ]
30
92
  },
31
93
  "workflow": {
32
94
  "schema_version": "team-workflow/v1",
33
- "project_archetypes": ["business"],
95
+ "project_archetypes": [
96
+ "business"
97
+ ],
34
98
  "artifacts": [
35
- {"id": "operating-plan", "type": "strategy_doc", "paths": ["strategy/operating-plan.md"], "owner": "strategy-lead", "reviewers": ["risk-reviewer"], "depends_on": [], "verification": ["decision review"]},
36
- {"id": "risk-register", "type": "risk_register", "paths": ["strategy/risks/register.md"], "owner": "risk-reviewer", "reviewers": ["strategy-lead"], "depends_on": ["operating-plan"], "verification": ["assumption audit"]}
99
+ {
100
+ "id": "operating-plan",
101
+ "type": "strategy_doc",
102
+ "paths": [
103
+ "strategy/operating-plan.md"
104
+ ],
105
+ "owner": "ijfw-strategy-lead",
106
+ "reviewers": [
107
+ "ijfw-risk-reviewer"
108
+ ],
109
+ "depends_on": [],
110
+ "verification": [
111
+ "decision review"
112
+ ]
113
+ },
114
+ {
115
+ "id": "risk-register",
116
+ "type": "risk_register",
117
+ "paths": [
118
+ "strategy/risks/register.md"
119
+ ],
120
+ "owner": "ijfw-risk-reviewer",
121
+ "reviewers": [
122
+ "ijfw-strategy-lead"
123
+ ],
124
+ "depends_on": [
125
+ "operating-plan"
126
+ ],
127
+ "verification": [
128
+ "assumption audit"
129
+ ]
130
+ }
37
131
  ],
38
132
  "waves": [
39
- {"id": "w1", "mode": "sequential", "artifact_ids": ["operating-plan"]},
40
- {"id": "w2", "mode": "review", "artifact_ids": ["risk-register"]}
133
+ {
134
+ "id": "w1",
135
+ "mode": "sequential",
136
+ "artifact_ids": [
137
+ "operating-plan"
138
+ ]
139
+ },
140
+ {
141
+ "id": "w2",
142
+ "mode": "review",
143
+ "artifact_ids": [
144
+ "risk-register"
145
+ ]
146
+ }
41
147
  ]
42
148
  },
43
149
  "blackboard": {
44
- "tasks": [{"id": "task-plan", "title": "Draft operating plan", "status": "ready", "artifact_ids": ["operating-plan"], "owner": "strategy-lead"}],
45
- "claims": [{"id": "claim-plan", "artifact_id": "operating-plan", "agent": "strategy-lead", "status": "active", "paths": ["strategy/operating-plan.md"]}]
150
+ "tasks": [
151
+ {
152
+ "id": "task-plan",
153
+ "title": "Draft operating plan",
154
+ "status": "ready",
155
+ "artifact_ids": [
156
+ "operating-plan"
157
+ ],
158
+ "owner": "ijfw-strategy-lead"
159
+ }
160
+ ],
161
+ "claims": [
162
+ {
163
+ "id": "claim-plan",
164
+ "artifact_id": "operating-plan",
165
+ "agent": "ijfw-strategy-lead",
166
+ "status": "active",
167
+ "paths": [
168
+ "strategy/operating-plan.md"
169
+ ]
170
+ }
171
+ ]
46
172
  }
47
173
  }
@@ -5,7 +5,7 @@
5
5
  "project_archetypes": ["content"],
6
6
  "roles": [
7
7
  {
8
- "name": "content-strategist",
8
+ "name": "ijfw-campaign-strategist",
9
9
  "role_type": "content",
10
10
  "model": "sonnet",
11
11
  "effort": "medium",
@@ -16,7 +16,7 @@
16
16
  "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": []}
17
17
  },
18
18
  {
19
- "name": "editor",
19
+ "name": "ijfw-copy-reviewer",
20
20
  "role_type": "review",
21
21
  "model": "sonnet",
22
22
  "effort": "medium",
@@ -32,8 +32,8 @@
32
32
  "schema_version": "team-workflow/v1",
33
33
  "project_archetypes": ["content"],
34
34
  "artifacts": [
35
- {"id": "campaign-brief", "type": "brief", "paths": ["content/briefs/campaign.md"], "owner": "content-strategist", "reviewers": ["editor"], "depends_on": [], "verification": ["brand voice review"]},
36
- {"id": "article-draft", "type": "article", "paths": ["content/posts/*.mdx"], "owner": "editor", "reviewers": ["content-strategist"], "depends_on": ["campaign-brief"], "verification": ["seo checklist"]}
35
+ {"id": "campaign-brief", "type": "brief", "paths": ["content/briefs/campaign.md"], "owner": "ijfw-campaign-strategist", "reviewers": ["ijfw-copy-reviewer"], "depends_on": [], "verification": ["brand voice review"]},
36
+ {"id": "article-draft", "type": "article", "paths": ["content/posts/*.mdx"], "owner": "ijfw-copy-reviewer", "reviewers": ["ijfw-campaign-strategist"], "depends_on": ["campaign-brief"], "verification": ["seo checklist"]}
37
37
  ],
38
38
  "waves": [
39
39
  {"id": "w1", "mode": "sequential", "artifact_ids": ["campaign-brief"]},
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "blackboard": {
44
- "tasks": [{"id": "task-brief", "title": "Prepare campaign brief", "status": "ready", "artifact_ids": ["campaign-brief"], "owner": "content-strategist"}],
45
- "claims": [{"id": "claim-brief", "artifact_id": "campaign-brief", "agent": "content-strategist", "status": "active", "paths": ["content/briefs/campaign.md"]}]
44
+ "tasks": [{"id": "task-brief", "title": "Prepare campaign brief", "status": "ready", "artifact_ids": ["campaign-brief"], "owner": "ijfw-campaign-strategist"}],
45
+ "claims": [{"id": "claim-brief", "artifact_id": "campaign-brief", "agent": "ijfw-campaign-strategist", "status": "active", "paths": ["content/briefs/campaign.md"]}]
46
46
  }
47
47
  }
@@ -2,46 +2,174 @@
2
2
  "charter": {
3
3
  "schema_version": "team-charter/v1",
4
4
  "team_name": "design-studio-team",
5
- "project_archetypes": ["design"],
5
+ "project_archetypes": [
6
+ "design"
7
+ ],
6
8
  "roles": [
7
9
  {
8
- "name": "product-designer",
10
+ "name": "ijfw-design-critic",
9
11
  "role_type": "design",
10
12
  "model": "sonnet",
11
13
  "effort": "medium",
12
- "phase_scope": ["discovery", "shape", "execute"],
13
- "owns": [{"artifact_type": "screen", "paths": ["design/screens/**"]}],
14
- "reviews": [{"artifact_type": "prototype", "criteria": ["usability", "accessibility"]}],
15
- "handoff": {"format": "markdown", "required_sections": ["rationale", "changed_artifacts", "open_questions"]},
16
- "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": ["design/tokens/**"]}
14
+ "phase_scope": [
15
+ "discovery",
16
+ "shape",
17
+ "execute"
18
+ ],
19
+ "owns": [
20
+ {
21
+ "artifact_type": "screen",
22
+ "paths": [
23
+ "design/screens/**"
24
+ ]
25
+ }
26
+ ],
27
+ "reviews": [
28
+ {
29
+ "artifact_type": "prototype",
30
+ "criteria": [
31
+ "usability",
32
+ "accessibility"
33
+ ]
34
+ }
35
+ ],
36
+ "handoff": {
37
+ "format": "markdown",
38
+ "required_sections": [
39
+ "rationale",
40
+ "changed_artifacts",
41
+ "open_questions"
42
+ ]
43
+ },
44
+ "coordination": {
45
+ "parallel_safe": true,
46
+ "claim_required": true,
47
+ "conflicts_with": [
48
+ "design/tokens/**"
49
+ ]
50
+ }
17
51
  },
18
52
  {
19
- "name": "visual-qa",
53
+ "name": "ijfw-accessibility-reviewer",
20
54
  "role_type": "review",
21
55
  "model": "sonnet",
22
56
  "effort": "low",
23
- "phase_scope": ["review", "verify"],
24
- "owns": [{"artifact_type": "audit", "paths": ["design/reviews/**"]}],
25
- "reviews": [{"artifact_type": "screen", "criteria": ["layout", "contrast", "responsive-fit"]}],
26
- "handoff": {"format": "markdown", "required_sections": ["findings", "severity", "recommendations"]},
27
- "coordination": {"parallel_safe": true, "claim_required": true, "conflicts_with": []}
57
+ "phase_scope": [
58
+ "review",
59
+ "verify"
60
+ ],
61
+ "owns": [
62
+ {
63
+ "artifact_type": "audit",
64
+ "paths": [
65
+ "design/reviews/**"
66
+ ]
67
+ }
68
+ ],
69
+ "reviews": [
70
+ {
71
+ "artifact_type": "screen",
72
+ "criteria": [
73
+ "layout",
74
+ "contrast",
75
+ "responsive-fit"
76
+ ]
77
+ }
78
+ ],
79
+ "handoff": {
80
+ "format": "markdown",
81
+ "required_sections": [
82
+ "findings",
83
+ "severity",
84
+ "recommendations"
85
+ ]
86
+ },
87
+ "coordination": {
88
+ "parallel_safe": true,
89
+ "claim_required": true,
90
+ "conflicts_with": []
91
+ }
28
92
  }
29
93
  ]
30
94
  },
31
95
  "workflow": {
32
96
  "schema_version": "team-workflow/v1",
33
- "project_archetypes": ["design"],
97
+ "project_archetypes": [
98
+ "design"
99
+ ],
34
100
  "artifacts": [
35
- {"id": "screen-system", "type": "screen", "paths": ["design/screens/**"], "owner": "product-designer", "reviewers": ["visual-qa"], "depends_on": [], "verification": ["visual audit"]},
36
- {"id": "design-review", "type": "audit", "paths": ["design/reviews/**"], "owner": "visual-qa", "reviewers": ["product-designer"], "depends_on": ["screen-system"], "verification": ["accessibility checklist"]}
101
+ {
102
+ "id": "screen-system",
103
+ "type": "screen",
104
+ "paths": [
105
+ "design/screens/**"
106
+ ],
107
+ "owner": "ijfw-design-critic",
108
+ "reviewers": [
109
+ "ijfw-accessibility-reviewer"
110
+ ],
111
+ "depends_on": [],
112
+ "verification": [
113
+ "visual audit"
114
+ ]
115
+ },
116
+ {
117
+ "id": "design-review",
118
+ "type": "audit",
119
+ "paths": [
120
+ "design/reviews/**"
121
+ ],
122
+ "owner": "ijfw-accessibility-reviewer",
123
+ "reviewers": [
124
+ "ijfw-design-critic"
125
+ ],
126
+ "depends_on": [
127
+ "screen-system"
128
+ ],
129
+ "verification": [
130
+ "accessibility checklist"
131
+ ]
132
+ }
37
133
  ],
38
134
  "waves": [
39
- {"id": "w1", "mode": "parallel", "artifact_ids": ["screen-system"]},
40
- {"id": "w2", "mode": "review", "artifact_ids": ["design-review"]}
135
+ {
136
+ "id": "w1",
137
+ "mode": "parallel",
138
+ "artifact_ids": [
139
+ "screen-system"
140
+ ]
141
+ },
142
+ {
143
+ "id": "w2",
144
+ "mode": "review",
145
+ "artifact_ids": [
146
+ "design-review"
147
+ ]
148
+ }
41
149
  ]
42
150
  },
43
151
  "blackboard": {
44
- "tasks": [{"id": "task-screens", "title": "Draft core screens", "status": "ready", "artifact_ids": ["screen-system"], "owner": "product-designer"}],
45
- "claims": [{"id": "claim-screens", "artifact_id": "screen-system", "agent": "product-designer", "status": "active", "paths": ["design/screens/**"]}]
152
+ "tasks": [
153
+ {
154
+ "id": "task-screens",
155
+ "title": "Draft core screens",
156
+ "status": "ready",
157
+ "artifact_ids": [
158
+ "screen-system"
159
+ ],
160
+ "owner": "ijfw-design-critic"
161
+ }
162
+ ],
163
+ "claims": [
164
+ {
165
+ "id": "claim-screens",
166
+ "artifact_id": "screen-system",
167
+ "agent": "ijfw-design-critic",
168
+ "status": "active",
169
+ "paths": [
170
+ "design/screens/**"
171
+ ]
172
+ }
173
+ ]
46
174
  }
47
175
  }