opencode-swarm 7.124.0 → 7.125.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 (70) hide show
  1. package/.opencode/skills/critic-gate/SKILL.md +8 -0
  2. package/.opencode/skills/swarm/SKILL.md +12 -8
  3. package/.opencode/skills/swarm-pr-feedback/SKILL.md +245 -171
  4. package/.opencode/skills/swarm-pr-feedback/references/bot-claim-verification.md +71 -0
  5. package/.opencode/skills/swarm-pr-feedback/references/operational-gotchas.md +49 -0
  6. package/.opencode/skills/swarm-pr-review/SKILL.md +238 -412
  7. package/.opencode/skills/swarm-pr-review/references/parser-dry-run.md +235 -0
  8. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +103 -0
  9. package/.opencode/skills/writing-tests/SKILL.md +4 -123
  10. package/.opencode/skills/writing-tests/references/mock-and-seam-inventory.md +43 -0
  11. package/README.md +3 -1
  12. package/dist/background/lane-output-store.d.ts +10 -0
  13. package/dist/background/pending-delegations.d.ts +3 -0
  14. package/dist/background/workspace-snapshot.d.ts +59 -0
  15. package/dist/cli/{config-doctor-53mnpeke.js → config-doctor-g3m2q646.js} +2 -2
  16. package/dist/cli/{curation-policy-ny033330.js → curation-policy-vgbx8530.js} +2 -2
  17. package/dist/cli/{curator-llm-factory-e0tjz8qq.js → curator-llm-factory-7pvqy94w.js} +15 -14
  18. package/dist/cli/{curator-nvn1pdq6.js → curator-xk4g1nx2.js} +15 -14
  19. package/dist/cli/{evidence-summary-service-9hq7n9k9.js → evidence-summary-service-v4h2w487.js} +1 -1
  20. package/dist/cli/{guardrail-explain-d3dd57nf.js → guardrail-explain-wfk16bpr.js} +16 -15
  21. package/dist/cli/{guardrail-log-3q2z9axs.js → guardrail-log-5zz9xx6z.js} +3 -3
  22. package/dist/cli/{hive-promoter-9gbpepgm.js → hive-promoter-njwc5rt0.js} +15 -14
  23. package/dist/cli/{pending-delegations-e3bcqj77.js → index-0cz1ws47.js} +4 -18
  24. package/dist/cli/{index-3yyr4ynk.js → index-3k8pg467.js} +1 -1
  25. package/dist/cli/{index-x2mmnrnx.js → index-83rwq7pb.js} +1 -1
  26. package/dist/cli/{index-c6crt5rs.js → index-8yvqkbw7.js} +12 -2
  27. package/dist/cli/{index-z0m4angq.js → index-93cq8t5b.js} +5 -5
  28. package/dist/cli/{index-8pz0ypxz.js → index-cz6fv84h.js} +17 -16
  29. package/dist/cli/{index-mkkx1a4f.js → index-dsf1yv4s.js} +1588 -891
  30. package/dist/cli/{index-4rzzzjtg.js → index-fs02c7tz.js} +277 -16
  31. package/dist/cli/{index-zjedv2bd.js → index-ghteqdy1.js} +2 -2
  32. package/dist/cli/{index-13d2g7k9.js → index-kvrk3h8p.js} +1 -1
  33. package/dist/cli/{index-eeg04r0x.js → index-kws8zn6y.js} +1 -1
  34. package/dist/cli/index-mg54y5gc.js +564 -0
  35. package/dist/cli/{index-qd77aft9.js → index-mhhmecsw.js} +2 -2
  36. package/dist/cli/{index-2x4maxte.js → index-mwdcvh0e.js} +4 -4
  37. package/dist/cli/{index-e19mxn9f.js → index-pbjenws7.js} +1 -1
  38. package/dist/cli/{index-wqwpzhv1.js → index-rpg8qqjs.js} +2 -2
  39. package/dist/cli/{index-tyg0zezw.js → index-tn3shyqj.js} +3 -3
  40. package/dist/cli/{index-htbjqftb.js → index-txragda9.js} +1 -1
  41. package/dist/cli/{index-v5ecczts.js → index-z4sc6yxc.js} +1 -1
  42. package/dist/cli/index.js +15 -14
  43. package/dist/cli/{knowledge-escalator-r1s01m3z.js → knowledge-escalator-jtyykzqc.js} +3 -3
  44. package/dist/cli/{knowledge-events-a9hmxvke.js → knowledge-events-qhr97sy9.js} +1 -1
  45. package/dist/cli/{knowledge-store-jt31br5k.js → knowledge-store-332x3pjv.js} +1 -1
  46. package/dist/cli/{knowledge-validator-9vrwxr3z.js → knowledge-validator-3t8tgzsz.js} +4 -4
  47. package/dist/cli/pending-delegations-7j8xqg5f.js +34 -0
  48. package/dist/cli/{scan-cursor-bkjtsawg.js → scan-cursor-q21c9k9q.js} +2 -2
  49. package/dist/cli/{schema-y3z416z7.js → schema-y2d7j2jk.js} +1 -1
  50. package/dist/cli/{skill-generator-794hyndw.js → skill-generator-3gkxx98d.js} +5 -5
  51. package/dist/cli/workspace-snapshot-c9pxxt9a.js +48 -0
  52. package/dist/commands/close.d.ts +4 -2
  53. package/dist/commands/registry.d.ts +1 -1
  54. package/dist/config/schema.d.ts +4 -0
  55. package/dist/evidence/documents-retention.d.ts +116 -0
  56. package/dist/evidence/manager.d.ts +17 -0
  57. package/dist/hooks/pr-workflow-gate.d.ts +211 -0
  58. package/dist/hooks/pr-workflow-response-gate.d.ts +23 -0
  59. package/dist/hooks/pr-workflow-session-resolver.d.ts +14 -0
  60. package/dist/index.js +563 -523
  61. package/dist/tools/complete-pr-workflow.d.ts +5 -0
  62. package/dist/tools/dispatch-lanes.d.ts +44 -0
  63. package/dist/tools/index.d.ts +2 -0
  64. package/dist/tools/manifest.d.ts +2 -0
  65. package/dist/tools/run-pr-feedback-stage-a.d.ts +69 -0
  66. package/dist/tools/tool-metadata.d.ts +8 -0
  67. package/dist/tools/write-pr-review-trigger-eval.d.ts +56 -46
  68. package/package.json +1 -1
  69. package/dist/cli/index-dqh3zhhc.js +0 -133
  70. package/dist/cli/workspace-snapshot-eyf6gd0d.js +0 -22
@@ -25,6 +25,14 @@ Delegate plan to the active swarm's critic agent for review BEFORE any implement
25
25
 
26
26
  You MUST NOT proceed to MODE: EXECUTE without printing this checklist with filled values.
27
27
 
28
+ **Post-approval verification:** Before dispatching the first coder in
29
+ MODE: EXECUTE, call `get_approved_plan` to confirm the critic's APPROVED
30
+ verdict was recorded. The approval-recording heuristic can fail silently
31
+ if the dispatch prompt didn't contain the expected keywords. Dispatching
32
+ coders without a recorded approval wastes cycles — the coder gate will
33
+ reject with `PLAN_CRITIC_GATE_VIOLATION`. One read-only call prevents
34
+ this entire failure class.
35
+
28
36
  CRITIC-GATE TRIGGER: Run ONCE when you first write the complete .swarm/plan.md.
29
37
  Do NOT re-run CRITIC-GATE before every project phase.
30
38
  If resuming a project with an existing approved plan, CRITIC-GATE is already satisfied.
@@ -5,7 +5,8 @@ description: Cross-agent swarm-mode behavior model — a higher-rigor workflow u
5
5
  ---
6
6
 
7
7
  ## Goal
8
- Turn the host agent into a swarm-like orchestrator while preserving host-agent speed advantages.
8
+ Turn the host agent into a swarm-like orchestrator that prioritizes complete,
9
+ evidence-backed results over elapsed time, token count, or dispatch count.
9
10
 
10
11
  ## What this mode changes
11
12
  When enabled, the agent should:
@@ -16,22 +17,25 @@ When enabled, the agent should:
16
17
  - keep quality as the only metric that matters
17
18
  - treat time pressure as nonexistent
18
19
  - preserve normal host-agent strengths: parallel subagents, scoped exploration, and fast synthesis
19
- - protect speed by spending the deepest validation effort only where it materially reduces ship risk
20
+ - spend the deepest validation effort where it materially reduces ship risk,
21
+ without using time, token, or dispatch cost to waive a required gate
20
22
 
21
- ## Quality and speed policy
23
+ ## Quality policy
22
24
  Code quality and pre-ship defect detection are paramount.
23
- Speed still matters.
24
- The point of swarm mode is not to recreate slow serial swarm behavior inside the host agent.
25
- The point is to keep the host agent fast by parallelizing everything that can safely be parallelized while preserving a strict validation architecture.
25
+ Elapsed time, token count, dispatch count, and perceived repository simplicity
26
+ are never reasons to weaken a required workflow step. Parallelism is used to
27
+ reduce wall-clock latency without reducing coverage or independence.
26
28
 
27
29
  That means:
28
30
  - parallelize breadth aggressively
29
31
  - validate in depth selectively based on risk
30
- - avoid running the heaviest critic loop on every low-value issue
32
+ - run every reviewer or critic loop required by the active workflow; optional
33
+ extra scrutiny may still be risk-targeted
31
34
  - spend the most time on correctness, security, edge cases, regressions, and claimed-vs-actual mismatches
32
35
  - keep low-risk nits cheap
33
36
 
34
- If a workflow step does not materially improve quality, correctness, or trust, keep it lightweight or skip it.
37
+ Only explicitly optional workflow steps may be skipped. A required step remains
38
+ required even when the architect predicts that it will find nothing.
35
39
  If a workflow step prevents real bugs from shipping, keep it even if it costs time.
36
40
 
37
41
  ## Default triage model