opencode-swarm 7.140.3 → 7.140.5

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 (148) hide show
  1. package/.opencode/skills/brainstorm/SKILL.md +1 -1
  2. package/.opencode/skills/ci-failure-batching/SKILL.md +11 -1
  3. package/.opencode/skills/ci-fix-monitor/SKILL.md +6 -4
  4. package/.opencode/skills/discover/SKILL.md +1 -1
  5. package/.opencode/skills/durable-session-state/SKILL.md +82 -0
  6. package/.opencode/skills/engineering-conventions/SKILL.md +1 -1
  7. package/.opencode/skills/issue-ingest/SKILL.md +13 -7
  8. package/.opencode/skills/issue-tracer/SKILL.md +1 -1
  9. package/.opencode/skills/orchestrating-subagents/SKILL.md +113 -0
  10. package/.opencode/skills/parallel-work-check/SKILL.md +1 -1
  11. package/.opencode/skills/plan/SKILL.md +40 -12
  12. package/.opencode/skills/swarm-ci-monitor/SKILL.md +5 -3
  13. package/.opencode/skills/swarm-pr-feedback/SKILL.md +30 -4
  14. package/.opencode/skills/writing-tests/SKILL.md +1 -1
  15. package/dist/agents/architect.d.ts +2 -1
  16. package/dist/agents/reviewer-directive-compliance.d.ts +19 -5
  17. package/dist/background/pending-delegations.d.ts +5 -0
  18. package/dist/cli/{config-doctor-fnmfd35x.js → config-doctor-5vzpq4qa.js} +3 -3
  19. package/dist/cli/{core-p5cyej3r.js → core-xjzdc56e.js} +2 -2
  20. package/dist/cli/{curation-policy-d52h4g8t.js → curation-policy-avvb56x2.js} +6 -8
  21. package/dist/cli/{curator-3zpdqt9r.js → curator-5nytvg7p.js} +38 -38
  22. package/dist/cli/curator-llm-factory-rds75zhj.js +61 -0
  23. package/dist/cli/{evidence-summary-service-nfdc1ht9.js → evidence-summary-service-zq4gyx6g.js} +15 -12
  24. package/dist/cli/gate-evidence-smn2wqft.js +51 -0
  25. package/dist/cli/guardrail-explain-an7jvam1.js +62 -0
  26. package/dist/cli/{guardrail-log-82da8y5a.js → guardrail-log-0hnd2k9v.js} +4 -4
  27. package/dist/cli/{hive-promoter-af5yaxvt.js → hive-promoter-qe8pqg79.js} +38 -38
  28. package/dist/cli/{index-qksjaxpd.js → index-01ggt2mj.js} +49 -18
  29. package/dist/cli/{index-j1xmren9.js → index-0r2m0vbq.js} +12 -10
  30. package/dist/cli/{index-pg7n141e.js → index-0rx9t9w8.js} +1 -1
  31. package/dist/cli/{index-brh827g0.js → index-2bg901qt.js} +73 -32
  32. package/dist/cli/{index-8n4c3vec.js → index-386ts4tm.js} +4 -4
  33. package/dist/cli/{index-898f16j9.js → index-8rp1y4ab.js} +2 -2
  34. package/dist/cli/{index-hfvxhk4z.js → index-912qz4y0.js} +88 -88
  35. package/dist/cli/index-affh1gtg.js +2554 -0
  36. package/dist/cli/{index-1m1ksyqt.js → index-c432knmy.js} +1 -1
  37. package/dist/cli/{index-jvk119ck.js → index-e0mpz2j3.js} +54 -19
  38. package/dist/cli/{index-ry0hgg3m.js → index-epvhf50h.js} +37 -3
  39. package/dist/cli/{index-95bj4kaw.js → index-ex7r16gc.js} +2 -2
  40. package/dist/cli/{index-7d5jseea.js → index-jm4cpp4n.js} +5 -2
  41. package/dist/cli/{index-n408rw7n.js → index-jqsfsqbx.js} +27 -2
  42. package/dist/cli/{index-7kdd75se.js → index-kb5q9v34.js} +11 -9
  43. package/dist/cli/{index-jfjnn408.js → index-m9xrdjn0.js} +1 -1
  44. package/dist/cli/{index-pj9h75cc.js → index-mm2egvdt.js} +40 -40
  45. package/dist/cli/{index-8bnzzv3b.js → index-nwrwy8eb.js} +70 -34
  46. package/dist/cli/index-nyjtzmsj.js +43 -0
  47. package/dist/cli/{index-h2waehqq.js → index-p8kk34am.js} +3 -3
  48. package/dist/cli/{index-wf35ka4z.js → index-ptn13xjn.js} +3 -3
  49. package/dist/cli/{index-1kyex7z2.js → index-qwm6vdyv.js} +32 -1
  50. package/dist/cli/{index-p9dsb0tw.js → index-qy1nq52t.js} +2 -19
  51. package/dist/cli/{index-b9rd29ge.js → index-s1v0wza5.js} +6 -2
  52. package/dist/cli/{index-yyyk63kk.js → index-t5pytnca.js} +2 -2
  53. package/dist/cli/index-tjqzr3jc.js +623 -0
  54. package/dist/cli/{index-rs1f1bh0.js → index-vh05t3w5.js} +1 -1
  55. package/dist/cli/{index-adyxbmt5.js → index-wkt9fj06.js} +4 -4
  56. package/dist/cli/{index-kbfsp07d.js → index-wrb0gykj.js} +217 -15
  57. package/dist/cli/{index-xz8f1n1a.js → index-z7h37d63.js} +2 -2
  58. package/dist/cli/{index-q1q8b85k.js → index-z90nvqj3.js} +49315 -47331
  59. package/dist/cli/{index-b8zgtz81.js → index-zsrtt42s.js} +34 -1
  60. package/dist/cli/{index-gtbmabws.js → index-ztgn70jz.js} +2 -2
  61. package/dist/cli/index.js +37 -37
  62. package/dist/cli/{knowledge-escalator-7q59skqg.js → knowledge-escalator-4pfrc902.js} +20 -8
  63. package/dist/cli/{knowledge-events-3nwfdpq7.js → knowledge-events-3zkfnksk.js} +19 -6
  64. package/dist/cli/{knowledge-link-q46k9adx.js → knowledge-link-m9p80f4r.js} +5 -5
  65. package/dist/cli/{knowledge-store-0d83rhh3.js → knowledge-store-dpqgvvjt.js} +6 -6
  66. package/dist/cli/{knowledge-validator-6mfx91a2.js → knowledge-validator-2c7w87dk.js} +8 -9
  67. package/dist/cli/{pending-delegations-qzrx38y9.js → pending-delegations-cxx9tezp.js} +4 -4
  68. package/dist/cli/{pr-subscriptions-5s59h4dd.js → pr-subscriptions-2sfnb599.js} +4 -4
  69. package/dist/cli/{runner-y78d7ryb.js → runner-mky3vvht.js} +6 -6
  70. package/dist/cli/{scan-cursor-rc8q12ss.js → scan-cursor-1z60gwrw.js} +7 -7
  71. package/dist/cli/{schema-n9eaxp3a.js → schema-vpnkwvez.js} +2 -2
  72. package/dist/cli/{scope-persistence-dr1msqxw.js → scope-persistence-p9dmprry.js} +10 -5
  73. package/dist/cli/{skill-generator-q7c6vadg.js → skill-generator-yx7ka1cj.js} +19 -10
  74. package/dist/cli/{telemetry-sc57xtb0.js → telemetry-0x6kszvk.js} +1 -1
  75. package/dist/cli/{worktree-collision-ownership-7a8e6gr9.js → worktree-collision-ownership-wm5pse49.js} +8 -8
  76. package/dist/cli/worktree-isolation-bwc6ra8e.js +102 -0
  77. package/dist/cli/worktree-provisioning-owner-sjh7te1h.js +22 -0
  78. package/dist/commands/acknowledge-spec-drift.d.ts +4 -5
  79. package/dist/commands/ci-simulate.d.ts +7 -3
  80. package/dist/commands/close.d.ts +8 -0
  81. package/dist/commands/registry.d.ts +2 -2
  82. package/dist/commands/sdd.d.ts +15 -0
  83. package/dist/config/bundled-skills.d.ts +1 -1
  84. package/dist/config/evidence-schema.d.ts +3 -3
  85. package/dist/config/index.d.ts +2 -2
  86. package/dist/config/plan-schema.d.ts +8 -0
  87. package/dist/config/schema.d.ts +4 -2
  88. package/dist/council/council-evidence-writer.d.ts +1 -1
  89. package/dist/gate-evidence.d.ts +117 -4
  90. package/dist/git/branch.d.ts +1 -1
  91. package/dist/hooks/delegate-ack-collector.d.ts +5 -0
  92. package/dist/hooks/delegation-gate.d.ts +21 -0
  93. package/dist/hooks/hive-promoter.d.ts +4 -4
  94. package/dist/hooks/issue-trace-reducer.d.ts +7 -1
  95. package/dist/hooks/issue-trace-state.d.ts +18 -0
  96. package/dist/hooks/issue-trace.d.ts +3 -1
  97. package/dist/hooks/knowledge-application-gate.d.ts +8 -3
  98. package/dist/hooks/knowledge-application.d.ts +8 -5
  99. package/dist/hooks/knowledge-escalator.d.ts +9 -5
  100. package/dist/hooks/knowledge-events.d.ts +21 -8
  101. package/dist/hooks/knowledge-injector.d.ts +9 -0
  102. package/dist/hooks/knowledge-receipt-ledger-storage.d.ts +49 -0
  103. package/dist/hooks/knowledge-receipt-ledger.d.ts +305 -0
  104. package/dist/hooks/knowledge-receipt-observability.d.ts +28 -0
  105. package/dist/hooks/knowledge-receipt-validator.d.ts +13 -50
  106. package/dist/hooks/knowledge-store.d.ts +6 -1
  107. package/dist/hooks/knowledge-types.d.ts +12 -0
  108. package/dist/hooks/phase-complete-directive-gate.d.ts +3 -1
  109. package/dist/hooks/phase-directives.d.ts +4 -4
  110. package/dist/hooks/pr-workflow-gate.d.ts +34 -1
  111. package/dist/hooks/promotion-evidence-store.d.ts +14 -8
  112. package/dist/hooks/reviewer-verdict-parser.d.ts +34 -10
  113. package/dist/index.js +823 -779
  114. package/dist/knowledge/curation-policy.d.ts +0 -2
  115. package/dist/observability/catalog.d.ts +5 -3
  116. package/dist/observability/legacy.d.ts +4 -3
  117. package/dist/plan/ledger.d.ts +55 -0
  118. package/dist/plan/manager.d.ts +9 -0
  119. package/dist/plan/planning-profile.d.ts +27 -0
  120. package/dist/services/spec-drift-recovery.d.ts +84 -0
  121. package/dist/session/snapshot-writer.d.ts +3 -1
  122. package/dist/state.d.ts +19 -17
  123. package/dist/summaries/schema.d.ts +2 -2
  124. package/dist/telemetry.d.ts +1 -1
  125. package/dist/tools/convene-council.d.ts +6 -6
  126. package/dist/tools/index.d.ts +3 -0
  127. package/dist/tools/manifest.d.ts +3 -0
  128. package/dist/tools/phase-complete.d.ts +9 -0
  129. package/dist/tools/rebind-pr-feedback-head.d.ts +17 -0
  130. package/dist/tools/record-implementation-review.d.ts +19 -0
  131. package/dist/tools/record-recurrence-sweep.d.ts +17 -0
  132. package/dist/tools/run-pr-feedback-stage-a.d.ts +8 -0
  133. package/dist/tools/save-plan.d.ts +8 -0
  134. package/dist/tools/submit-phase-council-verdicts.d.ts +6 -6
  135. package/dist/tools/tool-metadata.d.ts +40 -28
  136. package/dist/tools/update-task-status.d.ts +13 -0
  137. package/dist/tools/write-final-council-evidence.d.ts +6 -6
  138. package/dist/types/events.d.ts +29 -1
  139. package/dist/workflow/coder-settlement.d.ts +62 -0
  140. package/dist/workflow/task-repair.d.ts +30 -0
  141. package/dist/workflow/task-terminal.d.ts +52 -0
  142. package/package.json +3 -1
  143. package/dist/cli/curator-llm-factory-2h0xb62t.js +0 -61
  144. package/dist/cli/gate-evidence-46qeyfc1.js +0 -32
  145. package/dist/cli/guardrail-explain-yktan15c.js +0 -62
  146. package/dist/cli/index-d181x9zr.js +0 -71
  147. package/dist/cli/index-n0pja0qs.js +0 -239
  148. package/dist/cli/index-n8jncheh.js +0 -666
@@ -34,7 +34,7 @@ export interface ToolMeta {
34
34
  export declare const TOOL_METADATA: {
35
35
  diff: {
36
36
  description: string;
37
- agents: ("reviewer" | "test_engineer" | "coder" | "critic_oversight" | "critic_finding_validator" | "architect")[];
37
+ agents: ("reviewer" | "critic_oversight" | "critic_finding_validator" | "coder" | "test_engineer" | "architect")[];
38
38
  prWorkflow: {
39
39
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
40
40
  capability: "observe";
@@ -50,7 +50,7 @@ export declare const TOOL_METADATA: {
50
50
  };
51
51
  syntax_check: {
52
52
  description: string;
53
- agents: ("test_engineer" | "coder" | "architect")[];
53
+ agents: ("coder" | "test_engineer" | "architect")[];
54
54
  prWorkflow: {
55
55
  modes: "PR_REVIEW"[];
56
56
  capability: "validate";
@@ -66,7 +66,7 @@ export declare const TOOL_METADATA: {
66
66
  };
67
67
  imports: {
68
68
  description: string;
69
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_finding_validator" | "architect" | "researcher" | "docs_design")[];
69
+ agents: ("reviewer" | "critic" | "critic_finding_validator" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier")[];
70
70
  prWorkflow: {
71
71
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
72
72
  capability: "observe";
@@ -74,7 +74,7 @@ export declare const TOOL_METADATA: {
74
74
  };
75
75
  lint: {
76
76
  description: string;
77
- agents: ("reviewer" | "coder" | "critic_finding_validator" | "architect")[];
77
+ agents: ("reviewer" | "critic_finding_validator" | "coder" | "architect")[];
78
78
  prWorkflow: {
79
79
  modes: "PR_REVIEW"[];
80
80
  capability: "validate";
@@ -98,7 +98,7 @@ export declare const TOOL_METADATA: {
98
98
  };
99
99
  build_check: {
100
100
  description: string;
101
- agents: ("test_engineer" | "coder" | "architect")[];
101
+ agents: ("coder" | "test_engineer" | "architect")[];
102
102
  };
103
103
  pre_check_batch: {
104
104
  description: string;
@@ -114,15 +114,15 @@ export declare const TOOL_METADATA: {
114
114
  };
115
115
  symbols: {
116
116
  description: string;
117
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_finding_validator" | "architect" | "researcher" | "docs_design" | "spec_writer")[];
117
+ agents: ("reviewer" | "critic" | "critic_finding_validator" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "designer" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "spec_writer")[];
118
118
  };
119
119
  complexity_hotspots: {
120
120
  description: string;
121
- agents: ("reviewer" | "test_engineer" | "explorer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_oversight" | "critic_finding_validator" | "architect" | "researcher")[];
121
+ agents: ("reviewer" | "critic" | "critic_oversight" | "critic_finding_validator" | "explorer" | "test_engineer" | "architect" | "sme" | "researcher" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier")[];
122
122
  };
123
123
  schema_drift: {
124
124
  description: string;
125
- agents: ("docs" | "explorer" | "sme" | "architect" | "researcher")[];
125
+ agents: ("explorer" | "architect" | "sme" | "researcher" | "docs")[];
126
126
  prWorkflow: {
127
127
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
128
128
  capability: "observe";
@@ -130,7 +130,7 @@ export declare const TOOL_METADATA: {
130
130
  };
131
131
  todo_extract: {
132
132
  description: string;
133
- agents: ("docs" | "explorer" | "architect" | "researcher")[];
133
+ agents: ("explorer" | "architect" | "researcher" | "docs")[];
134
134
  prWorkflow: {
135
135
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
136
136
  capability: "observe";
@@ -164,6 +164,10 @@ export declare const TOOL_METADATA: {
164
164
  description: string;
165
165
  agents: "architect"[];
166
166
  };
167
+ record_implementation_review: {
168
+ description: string;
169
+ agents: "architect"[];
170
+ };
167
171
  record_issue_publication: {
168
172
  description: string;
169
173
  agents: "architect"[];
@@ -172,6 +176,14 @@ export declare const TOOL_METADATA: {
172
176
  description: string;
173
177
  agents: "architect"[];
174
178
  };
179
+ record_recurrence_sweep: {
180
+ description: string;
181
+ agents: "architect"[];
182
+ };
183
+ rebind_pr_feedback_head: {
184
+ description: string;
185
+ agents: "architect"[];
186
+ };
175
187
  run_pr_feedback_stage_a: {
176
188
  description: string;
177
189
  agents: "architect"[];
@@ -198,7 +210,7 @@ export declare const TOOL_METADATA: {
198
210
  };
199
211
  pkg_audit: {
200
212
  description: string;
201
- agents: ("reviewer" | "test_engineer" | "critic_hallucination_verifier" | "critic_oversight" | "critic_finding_validator" | "architect")[];
213
+ agents: ("reviewer" | "critic_oversight" | "critic_finding_validator" | "test_engineer" | "architect" | "critic_hallucination_verifier")[];
202
214
  prWorkflow: {
203
215
  modes: "PR_REVIEW"[];
204
216
  capability: "validate";
@@ -226,7 +238,7 @@ export declare const TOOL_METADATA: {
226
238
  };
227
239
  test_runner: {
228
240
  description: string;
229
- agents: ("reviewer" | "test_engineer" | "critic_finding_validator" | "architect")[];
241
+ agents: ("reviewer" | "critic_finding_validator" | "test_engineer" | "architect")[];
230
242
  prWorkflow: {
231
243
  modes: "PR_REVIEW"[];
232
244
  capability: "validate";
@@ -234,7 +246,7 @@ export declare const TOOL_METADATA: {
234
246
  };
235
247
  test_impact: {
236
248
  description: string;
237
- agents: ("reviewer" | "test_engineer" | "critic_oversight" | "critic_finding_validator" | "architect")[];
249
+ agents: ("reviewer" | "critic_oversight" | "critic_finding_validator" | "test_engineer" | "architect")[];
238
250
  prWorkflow: {
239
251
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
240
252
  capability: "observe";
@@ -250,11 +262,11 @@ export declare const TOOL_METADATA: {
250
262
  };
251
263
  detect_domains: {
252
264
  description: string;
253
- agents: ("docs" | "explorer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_oversight" | "architect" | "docs_design")[];
265
+ agents: ("critic" | "critic_oversight" | "explorer" | "architect" | "sme" | "docs" | "docs_design" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier")[];
254
266
  };
255
267
  git_blame: {
256
268
  description: string;
257
- agents: ("reviewer" | "explorer" | "critic_finding_validator" | "architect")[];
269
+ agents: ("reviewer" | "critic_finding_validator" | "explorer" | "architect")[];
258
270
  prWorkflow: {
259
271
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
260
272
  capability: "observe";
@@ -262,7 +274,7 @@ export declare const TOOL_METADATA: {
262
274
  };
263
275
  gitingest: {
264
276
  description: string;
265
- agents: ("docs" | "explorer" | "architect")[];
277
+ agents: ("explorer" | "architect" | "docs")[];
266
278
  prWorkflow: {
267
279
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
268
280
  capability: "observe";
@@ -270,7 +282,7 @@ export declare const TOOL_METADATA: {
270
282
  };
271
283
  retrieve_summary: {
272
284
  description: string;
273
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "critic_finding_validator" | "architect" | "docs_design" | "spec_writer")[];
285
+ agents: ("reviewer" | "critic" | "critic_finding_validator" | "coder" | "test_engineer" | "architect" | "sme" | "docs" | "docs_design" | "designer" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "spec_writer")[];
274
286
  prWorkflow: {
275
287
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
276
288
  capability: "observe";
@@ -286,7 +298,7 @@ export declare const TOOL_METADATA: {
286
298
  };
287
299
  extract_code_blocks: {
288
300
  description: string;
289
- agents: ("test_engineer" | "coder" | "docs" | "designer" | "docs_design" | "spec_writer")[];
301
+ agents: ("coder" | "test_engineer" | "docs" | "docs_design" | "designer" | "spec_writer")[];
290
302
  };
291
303
  phase_complete: {
292
304
  description: string;
@@ -350,7 +362,7 @@ export declare const TOOL_METADATA: {
350
362
  };
351
363
  knowledge_recall: {
352
364
  description: string;
353
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "critic_oversight" | "critic_finding_validator" | "architect" | "docs_design" | "curator_init" | "curator_phase" | "skill_improver" | "spec_writer")[];
365
+ agents: ("reviewer" | "critic" | "critic_oversight" | "critic_finding_validator" | "explorer" | "coder" | "test_engineer" | "architect" | "sme" | "docs" | "docs_design" | "designer" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "curator_init" | "curator_phase" | "skill_improver" | "spec_writer")[];
354
366
  };
355
367
  knowledge_remove: {
356
368
  description: string;
@@ -366,11 +378,11 @@ export declare const TOOL_METADATA: {
366
378
  };
367
379
  search: {
368
380
  description: string;
369
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "critic_hallucination_verifier" | "critic_oversight" | "critic_finding_validator" | "architect" | "researcher" | "docs_design" | "skill_improver" | "spec_writer")[];
381
+ agents: ("reviewer" | "critic_oversight" | "critic_finding_validator" | "explorer" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "designer" | "critic_hallucination_verifier" | "skill_improver" | "spec_writer")[];
370
382
  };
371
383
  ast_grep: {
372
384
  description: string;
373
- agents: ("test_engineer" | "coder" | "docs" | "explorer" | "sme" | "critic_hallucination_verifier" | "architect" | "researcher" | "docs_design" | "spec_writer")[];
385
+ agents: ("explorer" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "critic_hallucination_verifier" | "spec_writer")[];
374
386
  };
375
387
  actionlint_scan: {
376
388
  description: string;
@@ -406,7 +418,7 @@ export declare const TOOL_METADATA: {
406
418
  };
407
419
  batch_symbols: {
408
420
  description: string;
409
- agents: ("reviewer" | "explorer" | "critic_hallucination_verifier" | "critic_oversight" | "critic_finding_validator" | "architect")[];
421
+ agents: ("reviewer" | "critic_oversight" | "critic_finding_validator" | "explorer" | "architect" | "critic_hallucination_verifier")[];
410
422
  };
411
423
  suggest_patch: {
412
424
  description: string;
@@ -414,15 +426,15 @@ export declare const TOOL_METADATA: {
414
426
  };
415
427
  req_coverage: {
416
428
  description: string;
417
- agents: ("critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_oversight" | "spec_writer")[];
429
+ agents: ("critic" | "critic_oversight" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "spec_writer")[];
418
430
  };
419
431
  get_approved_plan: {
420
432
  description: string;
421
- agents: ("critic" | "critic_drift_verifier" | "critic_oversight")[];
433
+ agents: ("critic" | "critic_oversight" | "critic_drift_verifier")[];
422
434
  };
423
435
  repo_map: {
424
436
  description: string;
425
- agents: ("reviewer" | "coder" | "explorer" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "critic_oversight" | "critic_finding_validator" | "architect")[];
437
+ agents: ("reviewer" | "critic" | "critic_oversight" | "critic_finding_validator" | "explorer" | "coder" | "architect" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor")[];
426
438
  prWorkflow: {
427
439
  modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
428
440
  capability: "observe";
@@ -490,7 +502,7 @@ export declare const TOOL_METADATA: {
490
502
  };
491
503
  knowledge_receipt: {
492
504
  description: string;
493
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "critic_finding_validator" | "architect" | "docs_design" | "curator_init" | "curator_phase" | "skill_improver" | "spec_writer")[];
505
+ agents: ("reviewer" | "critic" | "critic_finding_validator" | "coder" | "test_engineer" | "architect" | "sme" | "docs" | "docs_design" | "designer" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "curator_init" | "curator_phase" | "skill_improver" | "spec_writer")[];
494
506
  };
495
507
  knowledge_archive: {
496
508
  description: string;
@@ -506,7 +518,7 @@ export declare const TOOL_METADATA: {
506
518
  };
507
519
  swarm_command: {
508
520
  description: string;
509
- agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "critic" | "critic_finding_validator" | "architect" | "researcher" | "docs_design")[];
521
+ agents: ("reviewer" | "critic" | "critic_finding_validator" | "explorer" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "designer")[];
510
522
  };
511
523
  dispatch_lanes: {
512
524
  description: string;
@@ -522,7 +534,7 @@ export declare const TOOL_METADATA: {
522
534
  };
523
535
  summarize_work: {
524
536
  description: string;
525
- agents: ("test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "architect" | "researcher" | "docs_design")[];
537
+ agents: ("explorer" | "coder" | "test_engineer" | "architect" | "sme" | "researcher" | "docs" | "docs_design" | "designer")[];
526
538
  };
527
539
  write_architecture_supervisor_evidence: {
528
540
  description: string;
@@ -554,7 +566,7 @@ export declare const TOOL_METADATA: {
554
566
  };
555
567
  swarm_apply_patch: {
556
568
  description: string;
557
- agents: ("test_engineer" | "coder")[];
569
+ agents: ("coder" | "test_engineer")[];
558
570
  };
559
571
  external_skill_discover: {
560
572
  description: string;
@@ -37,6 +37,11 @@ export interface UpdateTaskStatusArgs {
37
37
  status: string;
38
38
  working_directory?: string;
39
39
  force?: boolean;
40
+ expected_state?: string;
41
+ expected_generation?: number;
42
+ target_state?: 'idle';
43
+ reason?: string;
44
+ transition_id?: string;
40
45
  }
41
46
  /**
42
47
  * Result from executing update_task_status
@@ -69,6 +74,14 @@ export declare function validateTaskId(taskId: string): string | undefined;
69
74
  export interface ReviewerGateResult {
70
75
  blocked: boolean;
71
76
  reason: string;
77
+ requiredGates?: string[];
78
+ satisfiedGates?: string[];
79
+ missingGates?: string[];
80
+ source?: 'durable_exact_task' | 'legacy_compat' | 'turbo_policy';
81
+ corrupt?: boolean;
82
+ contradictorySignals?: string[];
83
+ generation?: number;
84
+ nextAction?: string;
72
85
  }
73
86
  declare function hasPassedDurableGateEvidence(workingDirectory: string, taskId: string): boolean;
74
87
  /**
@@ -9,23 +9,23 @@ export declare const ArgsSchema: z.ZodObject<{
9
9
  verdicts: z.ZodArray<z.ZodObject<{
10
10
  agent: z.ZodEnum<{
11
11
  reviewer: "reviewer";
12
- test_engineer: "test_engineer";
12
+ critic: "critic";
13
13
  explorer: "explorer";
14
+ test_engineer: "test_engineer";
14
15
  sme: "sme";
15
- critic: "critic";
16
16
  }>;
17
17
  verdict: z.ZodEnum<{
18
18
  APPROVE: "APPROVE";
19
- REJECT: "REJECT";
20
19
  CONCERNS: "CONCERNS";
20
+ REJECT: "REJECT";
21
21
  }>;
22
22
  confidence: z.ZodNumber;
23
23
  findings: z.ZodArray<z.ZodObject<{
24
24
  severity: z.ZodEnum<{
25
- LOW: "LOW";
26
- MEDIUM: "MEDIUM";
27
- HIGH: "HIGH";
28
25
  CRITICAL: "CRITICAL";
26
+ HIGH: "HIGH";
27
+ MEDIUM: "MEDIUM";
28
+ LOW: "LOW";
29
29
  }>;
30
30
  category: z.ZodString;
31
31
  location: z.ZodString;
@@ -47,6 +47,8 @@ export interface CoderRetryCircuitBreakerEvent {
47
47
  type: 'coder_retry_circuit_breaker';
48
48
  timestamp: string;
49
49
  taskId: string;
50
+ generation?: number;
51
+ retryEpoch: number;
50
52
  rejectionCount: number;
51
53
  rejectionHistory: string[];
52
54
  phase: number;
@@ -89,6 +91,32 @@ export interface SpecDriftAcknowledgedEvent {
89
91
  acknowledgedBy: string;
90
92
  previousHash: string;
91
93
  newHash: string | null;
94
+ markerHash: string;
95
+ transitionId: string;
96
+ }
97
+ export interface SpecDriftRepairedEvent {
98
+ type: 'spec_drift_repaired';
99
+ timestamp: string;
100
+ phase: number;
101
+ planTitle: string;
102
+ repairedBy: string;
103
+ previousHash: string;
104
+ newHash: string | null;
105
+ markerHash: string;
106
+ transitionId: string;
107
+ }
108
+ export interface TaskWorkflowRepairedEvent {
109
+ type: 'task_workflow_repaired';
110
+ timestamp: string;
111
+ taskId: string;
112
+ transitionId: string;
113
+ reason: string;
114
+ actor: string;
115
+ oldPlanStatus: string;
116
+ newPlanStatus: 'in_progress';
117
+ oldWorkflowState: string;
118
+ newWorkflowState: 'idle';
119
+ generation: number;
92
120
  }
93
121
  /**
94
122
  * Emitted whenever savePlan removes one or more tasks from the prior plan
@@ -155,4 +183,4 @@ export interface PrmHardStopDeliveredEvent {
155
183
  level: number;
156
184
  occurrenceCount: number;
157
185
  }
158
- export type V619Event = SoundingBoardConsultedEvent | ArchitectLoopDetectedEvent | PrecedentManipulationDetectedEvent | CoderSelfAuditEvent | CoderRetryCircuitBreakerEvent | AgentConflictDetectedEvent | AuthorityHandoffResolvedEvent | SpecStaleDetectedEvent | SpecDriftAcknowledgedEvent | TaskRemovedEvent | PrmPatternDetectedEvent | PrmCourseCorrectionInjectedEvent | PrmEscalationTriggeredEvent | PrmHardStopEvent | PrmHardStopDeliveredEvent;
186
+ export type V619Event = SoundingBoardConsultedEvent | ArchitectLoopDetectedEvent | PrecedentManipulationDetectedEvent | CoderSelfAuditEvent | CoderRetryCircuitBreakerEvent | AgentConflictDetectedEvent | AuthorityHandoffResolvedEvent | SpecStaleDetectedEvent | SpecDriftAcknowledgedEvent | SpecDriftRepairedEvent | TaskWorkflowRepairedEvent | TaskRemovedEvent | PrmPatternDetectedEvent | PrmCourseCorrectionInjectedEvent | PrmEscalationTriggeredEvent | PrmHardStopEvent | PrmHardStopDeliveredEvent;
@@ -0,0 +1,62 @@
1
+ import type { BackgroundTaskChangeContext, BackgroundWorktreeDescriptor } from '../background/pending-delegations.js';
2
+ import { type TaskEvidence } from '../gate-evidence.js';
3
+ import type { MergeOperationProvenance } from '../worktree/merge.js';
4
+ type CoderSettlementState = 'ABORTED' | 'COMMITTED' | 'DISPATCHED' | 'PREPARED';
5
+ interface CoderSettlementWal {
6
+ version: 1;
7
+ state: CoderSettlementState;
8
+ taskId: string;
9
+ transitionId: string;
10
+ actor: string;
11
+ processId: number;
12
+ runtimeId: string;
13
+ expectedGeneration: number;
14
+ context: BackgroundTaskChangeContext;
15
+ worktree?: BackgroundWorktreeDescriptor;
16
+ observedFiles?: string[];
17
+ mergeProvenance?: MergeOperationProvenance;
18
+ accepted?: boolean;
19
+ testEngineerExempt?: boolean;
20
+ settlementFailed?: boolean;
21
+ cleanupComplete?: boolean;
22
+ recordedAt: string;
23
+ }
24
+ export interface CoderSettlementResult {
25
+ evidence: TaskEvidence;
26
+ accepted: boolean;
27
+ alreadyApplied: boolean;
28
+ }
29
+ declare function parseWal(raw: string): CoderSettlementWal;
30
+ export declare function beginCoderSettlement(options: {
31
+ directory: string;
32
+ taskId: string;
33
+ transitionId: string;
34
+ actor: string;
35
+ expectedGeneration: number;
36
+ context: BackgroundTaskChangeContext;
37
+ worktree?: BackgroundWorktreeDescriptor;
38
+ }): Promise<void>;
39
+ export declare function settleCoderDispatch(options: {
40
+ directory: string;
41
+ taskId: string;
42
+ transitionId: string;
43
+ accepted: boolean;
44
+ testEngineerExempt: boolean;
45
+ settlementFailed?: boolean;
46
+ }): Promise<CoderSettlementResult>;
47
+ export declare function recordCoderMergeProvenance(options: {
48
+ directory: string;
49
+ taskId: string;
50
+ transitionId: string;
51
+ provenance: MergeOperationProvenance;
52
+ observedFiles: string[];
53
+ }): Promise<void>;
54
+ export declare function completeCoderSettlementCleanup(directory: string, taskId: string, transitionId: string): Promise<void>;
55
+ export declare function recoverCoderSettlement(directory: string, taskId: string): Promise<CoderSettlementResult | null>;
56
+ export declare function releaseCoderDispatchOwnership(directory: string, taskId: string, transitionId: string): void;
57
+ export declare function assertNoUnsettledCoderDispatch(directory: string, taskId: string): Promise<void>;
58
+ export declare const _internals: {
59
+ parseWal: typeof parseWal;
60
+ liveDispatches: Set<string>;
61
+ };
62
+ export {};
@@ -0,0 +1,30 @@
1
+ import { loadPlanJsonOnly } from '../plan/manager.js';
2
+ export interface TaskRepairResult<TPlan> {
3
+ plan: TPlan;
4
+ alreadyApplied: boolean;
5
+ generation: number;
6
+ transitionId: string;
7
+ }
8
+ /**
9
+ * Lazily finish an exact PREPARED repair before another operation reasons about
10
+ * the task. This reads only the exact per-task WAL path; it never scans.
11
+ */
12
+ export declare function recoverPreparedTaskRepair(directory: string, taskId: string, actor: string): Promise<TaskRepairResult<NonNullable<Awaited<ReturnType<typeof loadPlanJsonOnly>>>> | null>;
13
+ /**
14
+ * Execute or lazily finish one exact-task repair while the caller holds the
15
+ * plan lock. Lock ordering is therefore always plan -> exact task evidence.
16
+ * The PREPARED marker is written before the plan projection changes, making a
17
+ * retry able to finish a new-plan/old-evidence partial commit without scanning.
18
+ */
19
+ export declare function repairTaskWorkflowUnderPlanLock<TPlan>(options: {
20
+ directory: string;
21
+ taskId: string;
22
+ actor: string;
23
+ reason: string;
24
+ transitionId: string;
25
+ expectedState: string;
26
+ expectedGeneration: number;
27
+ currentPlanStatus: string;
28
+ currentPlan: TPlan;
29
+ updatePlan: () => Promise<TPlan>;
30
+ }): Promise<TaskRepairResult<TPlan>>;
@@ -0,0 +1,52 @@
1
+ import type { Plan } from '../config/plan-schema.js';
2
+ import { type TaskEvidence, withTaskEvidenceTransaction } from '../gate-evidence.js';
3
+ import type { TaskWorkflowState } from '../state.js';
4
+ type TerminalPlanStatus = 'blocked' | 'completed';
5
+ type TerminalWorkflowState = 'blocked' | 'complete';
6
+ type TerminalWalState = 'ABORTED' | 'COMMITTED' | 'PREPARED';
7
+ interface TaskTerminalWal {
8
+ version: 1;
9
+ state: TerminalWalState;
10
+ taskId: string;
11
+ transitionId: string;
12
+ actor: string;
13
+ oldPlanStatus: string;
14
+ newPlanStatus: TerminalPlanStatus;
15
+ oldWorkflowState: TaskWorkflowState;
16
+ newWorkflowState: TerminalWorkflowState;
17
+ generation: number;
18
+ qaExempt: boolean;
19
+ recordedAt: string;
20
+ }
21
+ export interface TaskTerminalResult<TPlan> {
22
+ plan: TPlan;
23
+ evidence: TaskEvidence;
24
+ alreadyApplied: boolean;
25
+ transitionId: string;
26
+ }
27
+ declare function applyTerminalEvidence(transaction: Parameters<Parameters<typeof withTaskEvidenceTransaction>[3]>[0], wal: TaskTerminalWal): Promise<TaskEvidence>;
28
+ /** Narrow dependency-injection seam for crash-window failure tests. */
29
+ export declare const _internals: {
30
+ applyTerminalEvidence: typeof applyTerminalEvidence;
31
+ };
32
+ /**
33
+ * Lazily close the only recoverable terminal crash window: the plan was
34
+ * persisted to completed/blocked after PREPARED, but exact-task evidence was
35
+ * not. A PREPARED record whose plan and evidence are both still old is safely
36
+ * aborted rather than executing an abandoned status request.
37
+ */
38
+ export declare function recoverPreparedTaskTerminal(directory: string, taskId: string, actor: string): Promise<TaskTerminalResult<Plan> | null>;
39
+ /** Commit a terminal plan/evidence transition while the caller holds plan.json. */
40
+ export declare function commitTaskTerminalUnderPlanLock<TPlan>(options: {
41
+ directory: string;
42
+ taskId: string;
43
+ actor: string;
44
+ transitionId: string;
45
+ currentPlanStatus: string;
46
+ targetStatus: TerminalPlanStatus;
47
+ qaExempt: boolean;
48
+ currentPlan: TPlan;
49
+ validateEvidence?: (evidence: TaskEvidence | null) => Promise<void> | void;
50
+ updatePlan: () => Promise<TPlan>;
51
+ }): Promise<TaskTerminalResult<TPlan>>;
52
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.140.3",
3
+ "version": "7.140.5",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -81,6 +81,8 @@
81
81
  ".opencode/skills/parallel-work-check",
82
82
  ".opencode/skills/ci-fix-monitor",
83
83
  ".opencode/skills/issue-tracer",
84
+ ".opencode/skills/orchestrating-subagents",
85
+ ".opencode/skills/durable-session-state",
84
86
  "tests/fixtures/memory-recall",
85
87
  "README.md",
86
88
  "LICENSE"
@@ -1,61 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-q1q8b85k.js";
5
- import"./index-41hkt36g.js";
6
- import"./index-1m1ksyqt.js";
7
- import"./index-wf35ka4z.js";
8
- import"./index-xz8f1n1a.js";
9
- import"./index-brh827g0.js";
10
- import"./index-yyyk63kk.js";
11
- import"./index-y8552snf.js";
12
- import"./index-4905hd2m.js";
13
- import"./index-134d35c1.js";
14
- import"./index-7kdd75se.js";
15
- import"./index-jvk119ck.js";
16
- import"./index-gtbmabws.js";
17
- import"./index-v2xrer41.js";
18
- import"./index-c8s9a3zh.js";
19
- import"./index-9ss2m4rs.js";
20
- import"./index-jfjnn408.js";
21
- import"./index-adyxbmt5.js";
22
- import"./index-556ja8an.js";
23
- import"./index-kbfsp07d.js";
24
- import"./index-1kyex7z2.js";
25
- import"./index-b8zgtz81.js";
26
- import"./index-898f16j9.js";
27
- import"./index-b9rd29ge.js";
28
- import"./index-k46me75h.js";
29
- import"./index-ee3x66a5.js";
30
- import"./index-74hpm6sh.js";
31
- import"./index-n0pja0qs.js";
32
- import"./index-8fwhhayc.js";
33
- import"./index-q1exe2b3.js";
34
- import"./index-8n4c3vec.js";
35
- import"./index-p9dsb0tw.js";
36
- import"./index-rtry5xyf.js";
37
- import"./index-qksjaxpd.js";
38
- import"./index-n8jncheh.js";
39
- import"./index-ae75rja9.js";
40
- import"./index-rs1f1bh0.js";
41
- import"./index-h2waehqq.js";
42
- import"./index-ed5ykebp.js";
43
- import"./index-hfvxhk4z.js";
44
- import"./index-7g4c7s5r.js";
45
- import"./index-4nt52yr9.js";
46
- import"./index-8bnzzv3b.js";
47
- import"./index-gprxjmm7.js";
48
- import"./index-n832052r.js";
49
- import"./index-d181x9zr.js";
50
- import"./index-4rhhvd1a.js";
51
- import"./index-zgwm4ryv.js";
52
- import"./index-7d5jseea.js";
53
- import"./index-n408rw7n.js";
54
- import"./index-zjygnfay.js";
55
- import"./index-bk5tah7q.js";
56
- import"./index-ry0hgg3m.js";
57
- import"./index-bpmtbmy9.js";
58
- import"./index-a76rekgs.js";
59
- export {
60
- createCuratorLLMDelegate
61
- };
@@ -1,32 +0,0 @@
1
- // @bun
2
- import {
3
- DEFAULT_REQUIRED_GATES,
4
- deriveRequiredGates,
5
- expandRequiredGates,
6
- hasPassedAllGates,
7
- isValidTaskId,
8
- readTaskEvidence,
9
- readTaskEvidenceRaw,
10
- recordAgentDispatch,
11
- recordGateEvidence
12
- } from "./index-n0pja0qs.js";
13
- import"./index-h2waehqq.js";
14
- import"./index-ed5ykebp.js";
15
- import"./index-hfvxhk4z.js";
16
- import"./index-7g4c7s5r.js";
17
- import"./index-4nt52yr9.js";
18
- import"./index-zgwm4ryv.js";
19
- import"./index-ry0hgg3m.js";
20
- import"./index-bpmtbmy9.js";
21
- import"./index-a76rekgs.js";
22
- export {
23
- recordGateEvidence,
24
- recordAgentDispatch,
25
- readTaskEvidenceRaw,
26
- readTaskEvidence,
27
- isValidTaskId,
28
- hasPassedAllGates,
29
- expandRequiredGates,
30
- deriveRequiredGates,
31
- DEFAULT_REQUIRED_GATES
32
- };