opencode-swarm 7.136.2 → 7.136.4

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 (87) hide show
  1. package/.opencode/skills/brainstorm/SKILL.md +1 -1
  2. package/.opencode/skills/clarify/SKILL.md +3 -3
  3. package/.opencode/skills/clarify-spec/SKILL.md +2 -2
  4. package/.opencode/skills/consult/SKILL.md +1 -1
  5. package/.opencode/skills/council/SKILL.md +1 -1
  6. package/.opencode/skills/critic-gate/SKILL.md +8 -3
  7. package/.opencode/skills/discover/SKILL.md +1 -1
  8. package/.opencode/skills/execute/SKILL.md +1 -1
  9. package/.opencode/skills/gate-attribution/SKILL.md +1 -1
  10. package/.opencode/skills/issue-ingest/SKILL.md +3 -3
  11. package/.opencode/skills/phase-wrap/SKILL.md +1 -1
  12. package/.opencode/skills/plan/SKILL.md +3 -3
  13. package/.opencode/skills/pre-phase-briefing/SKILL.md +1 -1
  14. package/.opencode/skills/resume/SKILL.md +1 -1
  15. package/.opencode/skills/specify/SKILL.md +1 -1
  16. package/dist/cli/{config-doctor-b67nb84b.js → config-doctor-qwp5y9dk.js} +2 -2
  17. package/dist/cli/{core-4z1s2ak1.js → core-jpjk2qvt.js} +1 -1
  18. package/dist/cli/{curation-policy-kvzhfaj1.js → curation-policy-8tsbaa4q.js} +6 -6
  19. package/dist/cli/{curator-nrmj8bds.js → curator-763smew7.js} +25 -25
  20. package/dist/cli/{curator-llm-factory-x7kvry9x.js → curator-llm-factory-dg8mmzy7.js} +25 -25
  21. package/dist/cli/{evidence-summary-service-cf8sz2bq.js → evidence-summary-service-nse06dqr.js} +7 -7
  22. package/dist/cli/{gate-evidence-aenyz6vt.js → gate-evidence-kdygjr56.js} +4 -4
  23. package/dist/cli/{guardrail-explain-5kd44rcj.js → guardrail-explain-6jc012g3.js} +26 -26
  24. package/dist/cli/{guardrail-log-aksrzqdx.js → guardrail-log-86aw7fne.js} +3 -3
  25. package/dist/cli/{hive-promoter-cy21rhnd.js → hive-promoter-en786ja4.js} +25 -25
  26. package/dist/cli/{index-84nz7bhe.js → index-06htxvzq.js} +3 -3
  27. package/dist/cli/{index-s0vahtdm.js → index-1hef020t.js} +1 -1
  28. package/dist/cli/{index-kwwxevne.js → index-45y0y3xh.js} +5 -5
  29. package/dist/cli/{index-ad6j0m7k.js → index-4cv991ra.js} +3 -3
  30. package/dist/cli/{index-45t7w06b.js → index-7t3vjw5e.js} +1 -1
  31. package/dist/cli/{index-m5fw4mer.js → index-89fpahtg.js} +1 -1
  32. package/dist/cli/{index-rw3f73aq.js → index-94pvh7hc.js} +2 -2
  33. package/dist/cli/{index-ey29aap6.js → index-b3jfcptk.js} +1 -1
  34. package/dist/cli/{index-0755132s.js → index-bb3ks0v3.js} +6 -6
  35. package/dist/cli/{index-7a2hm51h.js → index-cze4bq1x.js} +41 -0
  36. package/dist/cli/{index-mrtms113.js → index-d2sf9an1.js} +2 -2
  37. package/dist/cli/{index-wxyxf0bd.js → index-d61h3f3h.js} +2 -2
  38. package/dist/cli/{index-ckybsn6p.js → index-et8b70c8.js} +27 -27
  39. package/dist/cli/{index-1kn24ja0.js → index-fhnbzz75.js} +2 -2
  40. package/dist/cli/{index-s0rbdp61.js → index-fkdxfdbx.js} +4 -4
  41. package/dist/cli/{index-37v2wxqe.js → index-g0sdhyqk.js} +1 -1
  42. package/dist/cli/{index-7ayaq27q.js → index-gjs5g97v.js} +1 -1
  43. package/dist/cli/{index-c9ddxv4k.js → index-hh34tyv7.js} +1 -1
  44. package/dist/cli/{index-tcn457d5.js → index-kym0cctr.js} +1 -1
  45. package/dist/cli/{index-z1tm47nj.js → index-ne28wyyc.js} +2 -2
  46. package/dist/cli/{index-wjm896ey.js → index-nfm9f10v.js} +1 -1
  47. package/dist/cli/{index-y0xaq4f3.js → index-pq8ge6fe.js} +8 -2
  48. package/dist/cli/{index-azghvnja.js → index-qv1xc6rd.js} +2 -2
  49. package/dist/cli/{index-wnz282j3.js → index-rkp6jvc3.js} +2 -2
  50. package/dist/cli/{index-sr2cynyw.js → index-t1s4b5ha.js} +108 -51
  51. package/dist/cli/{index-09b9zncg.js → index-tncy55bp.js} +1 -1
  52. package/dist/cli/{index-vg3yx648.js → index-w6j1n5az.js} +1 -1
  53. package/dist/cli/{index-21115szq.js → index-wy2f83j5.js} +5 -5
  54. package/dist/cli/{index-dzyjb33e.js → index-zzhyws9g.js} +1 -1
  55. package/dist/cli/index.js +25 -25
  56. package/dist/cli/{knowledge-escalator-ta3xjrdj.js → knowledge-escalator-e815bveb.js} +7 -7
  57. package/dist/cli/{knowledge-events-dk6banmz.js → knowledge-events-dz2tyhpw.js} +5 -5
  58. package/dist/cli/{knowledge-link-mm1w967j.js → knowledge-link-zr40rnwr.js} +4 -4
  59. package/dist/cli/{knowledge-store-h3jz10bv.js → knowledge-store-97qr7m9k.js} +5 -5
  60. package/dist/cli/{knowledge-validator-jsz1dxkr.js → knowledge-validator-xsetvy4v.js} +8 -8
  61. package/dist/cli/{pending-delegations-qajsxct0.js → pending-delegations-0h5b18p7.js} +3 -3
  62. package/dist/cli/{pr-subscriptions-qhr41epq.js → pr-subscriptions-jn0h047q.js} +3 -3
  63. package/dist/cli/{runner-2v413r74.js → runner-deeswadt.js} +5 -5
  64. package/dist/cli/{scan-cursor-48gwzh9c.js → scan-cursor-129fwf7e.js} +6 -6
  65. package/dist/cli/{schema-f937b9cs.js → schema-3xdza5gg.js} +1 -1
  66. package/dist/cli/{scope-persistence-h2fpgxww.js → scope-persistence-5xc9ntdh.js} +4 -4
  67. package/dist/cli/{skill-generator-4p10ktw1.js → skill-generator-8zhprasg.js} +9 -9
  68. package/dist/cli/{telemetry-859khp82.js → telemetry-6678gya0.js} +1 -1
  69. package/dist/cli/{worktree-collision-ownership-13btcj9g.js → worktree-collision-ownership-wt7cc850.js} +3 -3
  70. package/dist/config/schema.d.ts +10 -0
  71. package/dist/hooks/context-budget.d.ts +8 -0
  72. package/dist/hooks/delegation-gate.d.ts +12 -1
  73. package/dist/hooks/gate-denial-tracker.d.ts +175 -0
  74. package/dist/hooks/guardrails/execution-episode.d.ts +41 -0
  75. package/dist/hooks/guardrails/execution-stall.d.ts +285 -0
  76. package/dist/hooks/guardrails/internals-guard.d.ts +117 -0
  77. package/dist/hooks/guardrails/messages-transform.d.ts +85 -0
  78. package/dist/hooks/index.d.ts +1 -1
  79. package/dist/hooks/message-priority.d.ts +62 -4
  80. package/dist/hooks/trajectory-logger.d.ts +76 -0
  81. package/dist/index.js +477 -463
  82. package/dist/memory/schema.d.ts +3 -3
  83. package/dist/prm/index.d.ts +2 -0
  84. package/dist/state.d.ts +32 -0
  85. package/dist/telemetry.d.ts +66 -1
  86. package/dist/types/events.d.ts +14 -1
  87. package/package.json +2 -1
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Brainstorm Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: BRAINSTORM
13
13
  Activates when: user invokes `/swarm brainstorm`; OR uses phrases like "brainstorm", "let's think through", "think this through with me", "workshop this idea"; OR the problem is fuzzy/exploratory and the user has not yet written (or does not want to directly dictate) a spec.
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Clarify Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: CLARIFY
13
13
  Ambiguous request → Run the clarification funnel
@@ -47,7 +47,7 @@ Classify each item as exactly one of:
47
47
 
48
48
  Before asking the user any clarification question, the architect MUST consult `critic_sounding_board` with the candidate question set and context.
49
49
 
50
- For each item classified as `research_needed` or `user_decision` in Stage 2, send it to the critic. The critic responds with a verdict from `SoundingBoardVerdict` (see `src/agents/critic.ts`). The mapping between critic verdicts and funnel actions is:
50
+ For each item classified as `research_needed` or `user_decision` in Stage 2, send it to the critic. The critic responds with a verdict from the `SoundingBoardVerdict` enum (`UNNECESSARY | RESOLVE | REPHRASE | APPROVED`). The mapping between critic verdicts and funnel actions is:
51
51
 
52
52
  | Critic Verdict (SoundingBoardVerdict) | Funnel Action | Meaning |
53
53
  |---|---|---|
@@ -105,6 +105,6 @@ All items resolved in Stages 2-3 (self_resolved, critic_resolved, deferred_nonbl
105
105
 
106
106
  ### Mechanical Enforcement of DROP Protection
107
107
 
108
- **Implementation Note:** The hard constraint against `DROP` on always-surface items (defined in Stage 3 of the clarification funnel) is currently enforced via skill instructions to the architect. A lightweight runtime enforcement mechanism is recommended: when processing the critic sounding board verdict response in `src/agents/critic.ts`, validate that any items tagged as "always-surface" do not receive `UNNECESSARY`/`DROP` verdicts. If a DROP verdict is encountered on an always-surface item, override it to `APPROVED`/`ASK_USER` at the code level rather than relying solely on prompt-based enforcement.
108
+ **Implementation Note:** The hard constraint against `DROP` on always-surface items (defined in Stage 3 of the clarification funnel) is currently enforced via skill instructions to the architect. A lightweight runtime enforcement mechanism is recommended: when the critic sounding board verdict response is parsed, validate that any items tagged as "always-surface" do not receive `UNNECESSARY`/`DROP` verdicts. If a DROP verdict is encountered on an always-surface item, override it to `APPROVED`/`ASK_USER` at the code level rather than relying solely on prompt-based enforcement.
109
109
 
110
110
  This mechanical enforcement prevents the following failure mode: the architect prompt instructs the override, but due to parsing errors, context limits, or model behavior variance, the DROP verdict is mistakenly applied to an always-surface item and silently accepted. The validation should occur in the decision-packet assembly code (when building the final clarification packet to surface to the user) and should emit a warning log when an override is applied. This is tracked as future work in a follow-up issue; until then, enforcement relies on the skill instructions.
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Clarify Spec Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: CLARIFY-SPEC
13
13
  Activates when: `/swarm sdd status` reports a **single resolved EFFECTIVE spec** (non-null) AND it contains `[NEEDS CLARIFICATION]` markers; OR user says "clarify", "refine spec", "review spec", or "/swarm clarify" is invoked; OR architect transitions from MODE: SPECIFY or MODE: BRAINSTORM with open markers.
@@ -60,6 +60,6 @@ However, before surfacing each marker question to the user, CLARIFY-SPEC MUST:
60
60
  2. **Apply the Overconfidence guard:** If the critic supplies a `RESOLVE` verdict with a default answer, but that default is not directly supported by user request, spec, or recorded context, classify the item as `user_decision` rather than `self_resolved`.
61
61
  3. **Apply always-surface protection:** If the marker belongs to an always-surface category (scope boundaries, destructive behavior, security/privacy, backward compatibility, breaking API changes, new dependencies, deprecations, cross-platform impact, cost/performance tradeoffs, user-visible UX, rollout strategy, QA gates), the item MUST NOT receive `UNNECESSARY`/`DROP` from the critic — override to `APPROVED`/`ASK_USER`.
62
62
 
63
- Critic verdict mapping (see `src/agents/critic.ts` `SoundingBoardVerdict`): `UNNECESSARY`→DROP, `RESOLVE`→RESOLVE, `REPHRASE`→REPHRASE, `APPROVED`→ASK_USER.
63
+ Critic verdict mapping (`SoundingBoardVerdict`): `UNNECESSARY`→DROP, `RESOLVE`→RESOLVE, `REPHRASE`→REPHRASE, `APPROVED`→ASK_USER.
64
64
 
65
65
  This scoped protocol is lighter than the full funnel because CLARIFY-SPEC starts from known markers rather than open uncertainty inventory, but it still protects against overconfident self-resolution and premature dropping of important questions.
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Consult Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: CONSULT
13
13
  Check .swarm/context.md for cached guidance first.
@@ -8,7 +8,7 @@ description: >
8
8
 
9
9
  # Council Protocol
10
10
 
11
- This protocol is loaded on demand by the architect stub in `src/agents/architect.ts`.
11
+ This protocol is loaded on demand by the architect runtime.
12
12
  The architect prompt keeps only activation, action, and hard safety constraints;
13
13
  the full execution details live here.
14
14
 
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Critic Gate Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: CRITIC-GATE
13
13
  Delegate plan to the active swarm's critic agent for review BEFORE any implementation begins.
@@ -96,5 +96,10 @@ Caveat: this assumption breaks if the plan lacks a `plan_critic_gate`-tagged app
96
96
  plan object) rather than relying solely on plan.md, which omits acceptance
97
97
  criteria.
98
98
  - This is a structural-completeness failure, not a style concern.
99
- - The detection logic mirrors the existing ANALYZE-mode SC-### coverage check
100
- (see src/agents/critic.ts ANALYZE mode, step 4).
99
+ - The detection logic mirrors the existing ANALYZE-mode SC-### coverage check:
100
+ map each spec obligation to the task(s) whose description or acceptance field
101
+ addresses it, then flag obligations with zero covering tasks as gaps — MUST
102
+ obligations with no covering task are CRITICAL severity, SHOULD obligations
103
+ with no covering task are HIGH severity, and SC-### success criteria with no
104
+ covering task are HIGH severity (untestable success criteria = unverifiable
105
+ requirement).
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Discover Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: DISCOVER
13
13
  Delegate to the active swarm's explorer agent. Wait for response.
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Execute Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: EXECUTE
13
13
  For each task (respecting dependencies):
@@ -48,7 +48,7 @@ taskId: X.Y
48
48
  ```
49
49
 
50
50
  ## Why this exists
51
- The gate tracker (`src/hooks/delegation-gate.ts`) keys delegation chains by
51
+ The gate tracker (the delegation-gate runtime) keys delegation chains by
52
52
  `sessionID`. Ambiguous multi-task prompts still fail closed, but parseable
53
53
  `[REVIEWED] | task-id | ...` rows provide explicit per-task attribution for
54
54
  set-dispatches. Tracked in issue #1746 item 6.
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Issue Ingest Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: ISSUE_INGEST
13
13
  Activates when: user invokes `/swarm issue <url>`; OR architect receives `[MODE: ISSUE_INGEST issue="<url>"]` signal.
@@ -16,7 +16,7 @@ Purpose: ingest a GitHub issue, localize root cause, and produce a resolution sp
16
16
 
17
17
  Flags parsed from signal:
18
18
  - `plan=true` → after spec generation, transition to MODE: PLAN (create implementation plan)
19
- - `trace=true` → the issue-trace hook (src/hooks/issue-trace.ts) automatically drives the standard PLAN → CRITIC-GATE → EXECUTE → commit-pr ladder (implies plan=true)
19
+ - `trace=true` → the issue-trace runtime hook automatically drives the standard PLAN → CRITIC-GATE → EXECUTE → commit-pr ladder (implies plan=true)
20
20
  - `noRepro=true` → skip the reproduction step below
21
21
 
22
22
  #### Phase 1: INTAKE
@@ -63,7 +63,7 @@ Flags parsed from signal:
63
63
  Based on flags:
64
64
  - No flags → report spec summary and suggest `PLAN` or `CLARIFY-SPEC`
65
65
  - `plan=true` → transition to MODE: PLAN using the generated spec
66
- - `trace=true` → the issue-trace hook (`src/hooks/issue-trace.ts`) automatically emits `[MODE: PLAN]` after spec generation. The standard PLAN → CRITIC-GATE → EXECUTE ladder follows deterministically.
66
+ - `trace=true` → the issue-trace runtime hook automatically emits `[MODE: PLAN]` after spec generation. The standard PLAN → CRITIC-GATE → EXECUTE ladder follows deterministically.
67
67
 
68
68
  RULES:
69
69
  - One question per message in INTAKE dialogue (max 6 questions)
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Phase Wrap Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ## ⛔ RETROSPECTIVE GATE
13
13
 
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Plan Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: PLAN
13
13
 
@@ -102,7 +102,7 @@ Classify each item as exactly one of:
102
102
 
103
103
  Before asking the user any planning clarification question, the architect MUST consult `critic_sounding_board` with the candidate question set and context.
104
104
 
105
- For each item classified as `research_needed` or `user_decision` in Stage 2, send it to the critic. The critic responds with a verdict from `SoundingBoardVerdict` (see `src/agents/critic.ts`). The mapping between critic verdicts and funnel actions is:
105
+ For each item classified as `research_needed` or `user_decision` in Stage 2, send it to the critic. The critic responds with a verdict from the `SoundingBoardVerdict` enum (`UNNECESSARY | RESOLVE | REPHRASE | APPROVED`). The mapping between critic verdicts and funnel actions is:
106
106
 
107
107
  | Critic Verdict (SoundingBoardVerdict) | Funnel Action | Meaning |
108
108
  |---|---|---|
@@ -167,7 +167,7 @@ The plan generated by `save_plan` MUST include explicit assumptions and remainin
167
167
 
168
168
  #### Mechanical Enforcement of DROP Protection
169
169
 
170
- **Implementation Note:** The hard constraint against `DROP` on always-surface items (Stage 3 of the clarification funnel) is currently enforced via skill instructions to the architect. A lightweight runtime enforcement mechanism is recommended: when processing the critic sounding board verdict response in `src/agents/critic.ts`, validate that any items tagged as "always-surface" do not receive `UNNECESSARY`/`DROP` verdicts. If a DROP verdict is encountered on an always-surface item, override it to `APPROVED`/`ASK_USER` at the code level rather than relying solely on prompt-based enforcement.
170
+ **Implementation Note:** The hard constraint against `DROP` on always-surface items (Stage 3 of the clarification funnel) is currently enforced via skill instructions to the architect. A lightweight runtime enforcement mechanism is recommended: when the critic sounding board verdict response is parsed, validate that any items tagged as "always-surface" do not receive `UNNECESSARY`/`DROP` verdicts. If a DROP verdict is encountered on an always-surface item, override it to `APPROVED`/`ASK_USER` at the code level rather than relying solely on prompt-based enforcement.
171
171
 
172
172
  This mechanical enforcement prevents the following failure mode: the architect prompt instructs the override, but due to parsing errors, context limits, or model behavior variance, the DROP verdict is mistakenly applied to an always-surface item and silently accepted. The validation should occur in the decision-packet assembly code (when building the final clarification packet to surface to the user) and should emit a warning log when an override is applied. This is tracked as future work in a follow-up issue; until then, enforcement relies on the skill instructions.
173
173
 
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Pre Phase Briefing Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: PRE-PHASE BRIEFING (Required Before Starting Any Phase)
13
13
 
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Resume Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: RESUME
13
13
  If .swarm/plan.md exists:
@@ -7,7 +7,7 @@ description: >
7
7
 
8
8
  # Specify Protocol
9
9
 
10
- This protocol is loaded on demand by the architect stub in src/agents/architect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
10
+ This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.
11
11
 
12
12
  ### MODE: SPECIFY
13
13
  Activates when: user asks to "specify", "define requirements", "write a spec", or "define a feature"; OR `/swarm specify` is invoked; OR no EFFECTIVE spec exists and no `.swarm/plan.md` exists (use `/swarm sdd status` to determine effective-spec existence — native `.swarm/spec.md`, OpenSpec `openspec/`, or Spec-Kit `.specify/`).
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-7ayaq27q.js";
16
- import"./index-y0xaq4f3.js";
15
+ } from "./index-gjs5g97v.js";
16
+ import"./index-pq8ge6fe.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-3jcyn8g6.js";
19
19
  import"./index-bpmtbmy9.js";
@@ -14,7 +14,7 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-c9ddxv4k.js";
17
+ } from "./index-hh34tyv7.js";
18
18
  import"./index-4rhhvd1a.js";
19
19
  import"./index-3jcyn8g6.js";
20
20
  import"./index-z6xqpmqg.js";
@@ -4,16 +4,16 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-rw3f73aq.js";
7
+ } from "./index-94pvh7hc.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-84nz7bhe.js";
9
+ import"./index-06htxvzq.js";
10
10
  import"./index-ae75rja9.js";
11
- import"./index-dzyjb33e.js";
12
- import"./index-ey29aap6.js";
11
+ import"./index-zzhyws9g.js";
12
+ import"./index-b3jfcptk.js";
13
13
  import"./index-fsrp8wp3.js";
14
- import"./index-09b9zncg.js";
14
+ import"./index-tncy55bp.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-7a2hm51h.js";
16
+ import"./index-cze4bq1x.js";
17
17
  import"./index-y111zefa.js";
18
18
  import"./index-zgwm4ryv.js";
19
19
  import"./index-a76rekgs.js";
@@ -14,55 +14,55 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-sr2cynyw.js";
17
+ } from "./index-t1s4b5ha.js";
18
18
  import"./index-vm4xw9z3.js";
19
- import"./index-wjm896ey.js";
20
- import"./index-m5fw4mer.js";
21
- import"./index-7ayaq27q.js";
22
- import"./index-kwwxevne.js";
23
- import"./index-z1tm47nj.js";
19
+ import"./index-nfm9f10v.js";
20
+ import"./index-89fpahtg.js";
21
+ import"./index-gjs5g97v.js";
22
+ import"./index-45y0y3xh.js";
23
+ import"./index-ne28wyyc.js";
24
24
  import"./index-y8552snf.js";
25
25
  import"./index-4905hd2m.js";
26
26
  import"./index-134d35c1.js";
27
- import"./index-ad6j0m7k.js";
28
- import"./index-21115szq.js";
29
- import"./index-1kn24ja0.js";
27
+ import"./index-4cv991ra.js";
28
+ import"./index-wy2f83j5.js";
29
+ import"./index-fhnbzz75.js";
30
30
  import"./index-6mjf4vr1.js";
31
31
  import"./index-c8s9a3zh.js";
32
32
  import"./index-9ss2m4rs.js";
33
33
  import"./index-wsdnttf4.js";
34
- import"./index-mrtms113.js";
35
- import"./index-s0rbdp61.js";
36
- import"./index-rw3f73aq.js";
34
+ import"./index-d2sf9an1.js";
35
+ import"./index-fkdxfdbx.js";
36
+ import"./index-94pvh7hc.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-0755132s.js";
39
- import"./index-84nz7bhe.js";
38
+ import"./index-bb3ks0v3.js";
39
+ import"./index-06htxvzq.js";
40
40
  import"./index-ae75rja9.js";
41
- import"./index-dzyjb33e.js";
42
- import"./index-ey29aap6.js";
43
- import"./index-s0vahtdm.js";
41
+ import"./index-zzhyws9g.js";
42
+ import"./index-b3jfcptk.js";
43
+ import"./index-1hef020t.js";
44
44
  import"./index-k5jrywpr.js";
45
45
  import"./index-n832052r.js";
46
- import"./index-y0xaq4f3.js";
46
+ import"./index-pq8ge6fe.js";
47
47
  import"./index-bk5tah7q.js";
48
48
  import"./index-8fwhhayc.js";
49
49
  import"./index-q1exe2b3.js";
50
- import"./index-tcn457d5.js";
51
- import"./index-vg3yx648.js";
52
- import"./index-wxyxf0bd.js";
50
+ import"./index-kym0cctr.js";
51
+ import"./index-w6j1n5az.js";
52
+ import"./index-d61h3f3h.js";
53
53
  import"./index-1kz6da87.js";
54
54
  import"./index-x20cgr2q.js";
55
55
  import"./index-b8zgtz81.js";
56
- import"./index-c9ddxv4k.js";
56
+ import"./index-hh34tyv7.js";
57
57
  import"./index-4rhhvd1a.js";
58
58
  import"./index-3jcyn8g6.js";
59
- import"./index-45t7w06b.js";
59
+ import"./index-7t3vjw5e.js";
60
60
  import"./index-4qzeef9h.js";
61
61
  import"./index-fsrp8wp3.js";
62
- import"./index-09b9zncg.js";
62
+ import"./index-tncy55bp.js";
63
63
  import"./index-7g4c7s5r.js";
64
64
  import"./index-bpmtbmy9.js";
65
- import"./index-7a2hm51h.js";
65
+ import"./index-cze4bq1x.js";
66
66
  import"./index-z6xqpmqg.js";
67
67
  import"./index-zjygnfay.js";
68
68
  import"./index-y111zefa.js";
@@ -1,55 +1,55 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-sr2cynyw.js";
4
+ } from "./index-t1s4b5ha.js";
5
5
  import"./index-vm4xw9z3.js";
6
- import"./index-wjm896ey.js";
7
- import"./index-m5fw4mer.js";
8
- import"./index-7ayaq27q.js";
9
- import"./index-kwwxevne.js";
10
- import"./index-z1tm47nj.js";
6
+ import"./index-nfm9f10v.js";
7
+ import"./index-89fpahtg.js";
8
+ import"./index-gjs5g97v.js";
9
+ import"./index-45y0y3xh.js";
10
+ import"./index-ne28wyyc.js";
11
11
  import"./index-y8552snf.js";
12
12
  import"./index-4905hd2m.js";
13
13
  import"./index-134d35c1.js";
14
- import"./index-ad6j0m7k.js";
15
- import"./index-21115szq.js";
16
- import"./index-1kn24ja0.js";
14
+ import"./index-4cv991ra.js";
15
+ import"./index-wy2f83j5.js";
16
+ import"./index-fhnbzz75.js";
17
17
  import"./index-6mjf4vr1.js";
18
18
  import"./index-c8s9a3zh.js";
19
19
  import"./index-9ss2m4rs.js";
20
20
  import"./index-wsdnttf4.js";
21
- import"./index-mrtms113.js";
22
- import"./index-s0rbdp61.js";
23
- import"./index-rw3f73aq.js";
21
+ import"./index-d2sf9an1.js";
22
+ import"./index-fkdxfdbx.js";
23
+ import"./index-94pvh7hc.js";
24
24
  import"./index-rtry5xyf.js";
25
- import"./index-0755132s.js";
26
- import"./index-84nz7bhe.js";
25
+ import"./index-bb3ks0v3.js";
26
+ import"./index-06htxvzq.js";
27
27
  import"./index-ae75rja9.js";
28
- import"./index-dzyjb33e.js";
29
- import"./index-ey29aap6.js";
30
- import"./index-s0vahtdm.js";
28
+ import"./index-zzhyws9g.js";
29
+ import"./index-b3jfcptk.js";
30
+ import"./index-1hef020t.js";
31
31
  import"./index-k5jrywpr.js";
32
32
  import"./index-n832052r.js";
33
- import"./index-y0xaq4f3.js";
33
+ import"./index-pq8ge6fe.js";
34
34
  import"./index-bk5tah7q.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
37
- import"./index-tcn457d5.js";
38
- import"./index-vg3yx648.js";
39
- import"./index-wxyxf0bd.js";
37
+ import"./index-kym0cctr.js";
38
+ import"./index-w6j1n5az.js";
39
+ import"./index-d61h3f3h.js";
40
40
  import"./index-1kz6da87.js";
41
41
  import"./index-x20cgr2q.js";
42
42
  import"./index-b8zgtz81.js";
43
- import"./index-c9ddxv4k.js";
43
+ import"./index-hh34tyv7.js";
44
44
  import"./index-4rhhvd1a.js";
45
45
  import"./index-3jcyn8g6.js";
46
- import"./index-45t7w06b.js";
46
+ import"./index-7t3vjw5e.js";
47
47
  import"./index-4qzeef9h.js";
48
48
  import"./index-fsrp8wp3.js";
49
- import"./index-09b9zncg.js";
49
+ import"./index-tncy55bp.js";
50
50
  import"./index-7g4c7s5r.js";
51
51
  import"./index-bpmtbmy9.js";
52
- import"./index-7a2hm51h.js";
52
+ import"./index-cze4bq1x.js";
53
53
  import"./index-z6xqpmqg.js";
54
54
  import"./index-zjygnfay.js";
55
55
  import"./index-y111zefa.js";
@@ -6,25 +6,25 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-kwwxevne.js";
10
- import"./index-z1tm47nj.js";
9
+ } from "./index-45y0y3xh.js";
10
+ import"./index-ne28wyyc.js";
11
11
  import"./index-y8552snf.js";
12
12
  import"./index-9ss2m4rs.js";
13
- import"./index-mrtms113.js";
14
- import"./index-ey29aap6.js";
13
+ import"./index-d2sf9an1.js";
14
+ import"./index-b3jfcptk.js";
15
15
  import"./index-k5jrywpr.js";
16
16
  import"./index-n832052r.js";
17
17
  import"./index-q1exe2b3.js";
18
- import"./index-wxyxf0bd.js";
18
+ import"./index-d61h3f3h.js";
19
19
  import"./index-1kz6da87.js";
20
20
  import"./index-b8zgtz81.js";
21
21
  import"./index-4rhhvd1a.js";
22
22
  import"./index-4qzeef9h.js";
23
23
  import"./index-fsrp8wp3.js";
24
- import"./index-09b9zncg.js";
24
+ import"./index-tncy55bp.js";
25
25
  import"./index-7g4c7s5r.js";
26
26
  import"./index-bpmtbmy9.js";
27
- import"./index-7a2hm51h.js";
27
+ import"./index-cze4bq1x.js";
28
28
  import"./index-z6xqpmqg.js";
29
29
  import"./index-zjygnfay.js";
30
30
  import"./index-y111zefa.js";
@@ -9,13 +9,13 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-mrtms113.js";
13
- import"./index-ey29aap6.js";
12
+ } from "./index-d2sf9an1.js";
13
+ import"./index-b3jfcptk.js";
14
14
  import"./index-fsrp8wp3.js";
15
- import"./index-09b9zncg.js";
15
+ import"./index-tncy55bp.js";
16
16
  import"./index-7g4c7s5r.js";
17
17
  import"./index-bpmtbmy9.js";
18
- import"./index-7a2hm51h.js";
18
+ import"./index-cze4bq1x.js";
19
19
  import"./index-y111zefa.js";
20
20
  import"./index-a76rekgs.js";
21
21
  export {
@@ -1,56 +1,56 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-azghvnja.js";
5
- import"./index-sr2cynyw.js";
4
+ } from "./index-qv1xc6rd.js";
5
+ import"./index-t1s4b5ha.js";
6
6
  import"./index-vm4xw9z3.js";
7
- import"./index-wjm896ey.js";
8
- import"./index-m5fw4mer.js";
9
- import"./index-7ayaq27q.js";
10
- import"./index-kwwxevne.js";
11
- import"./index-z1tm47nj.js";
7
+ import"./index-nfm9f10v.js";
8
+ import"./index-89fpahtg.js";
9
+ import"./index-gjs5g97v.js";
10
+ import"./index-45y0y3xh.js";
11
+ import"./index-ne28wyyc.js";
12
12
  import"./index-y8552snf.js";
13
13
  import"./index-4905hd2m.js";
14
14
  import"./index-134d35c1.js";
15
- import"./index-ad6j0m7k.js";
16
- import"./index-21115szq.js";
17
- import"./index-1kn24ja0.js";
15
+ import"./index-4cv991ra.js";
16
+ import"./index-wy2f83j5.js";
17
+ import"./index-fhnbzz75.js";
18
18
  import"./index-6mjf4vr1.js";
19
19
  import"./index-c8s9a3zh.js";
20
20
  import"./index-9ss2m4rs.js";
21
21
  import"./index-wsdnttf4.js";
22
- import"./index-mrtms113.js";
23
- import"./index-s0rbdp61.js";
24
- import"./index-rw3f73aq.js";
22
+ import"./index-d2sf9an1.js";
23
+ import"./index-fkdxfdbx.js";
24
+ import"./index-94pvh7hc.js";
25
25
  import"./index-rtry5xyf.js";
26
- import"./index-0755132s.js";
27
- import"./index-84nz7bhe.js";
26
+ import"./index-bb3ks0v3.js";
27
+ import"./index-06htxvzq.js";
28
28
  import"./index-ae75rja9.js";
29
- import"./index-dzyjb33e.js";
30
- import"./index-ey29aap6.js";
31
- import"./index-s0vahtdm.js";
29
+ import"./index-zzhyws9g.js";
30
+ import"./index-b3jfcptk.js";
31
+ import"./index-1hef020t.js";
32
32
  import"./index-k5jrywpr.js";
33
33
  import"./index-n832052r.js";
34
- import"./index-y0xaq4f3.js";
34
+ import"./index-pq8ge6fe.js";
35
35
  import"./index-bk5tah7q.js";
36
36
  import"./index-8fwhhayc.js";
37
37
  import"./index-q1exe2b3.js";
38
- import"./index-tcn457d5.js";
39
- import"./index-vg3yx648.js";
40
- import"./index-wxyxf0bd.js";
38
+ import"./index-kym0cctr.js";
39
+ import"./index-w6j1n5az.js";
40
+ import"./index-d61h3f3h.js";
41
41
  import"./index-1kz6da87.js";
42
42
  import"./index-x20cgr2q.js";
43
43
  import"./index-b8zgtz81.js";
44
- import"./index-c9ddxv4k.js";
44
+ import"./index-hh34tyv7.js";
45
45
  import"./index-4rhhvd1a.js";
46
46
  import"./index-3jcyn8g6.js";
47
- import"./index-45t7w06b.js";
47
+ import"./index-7t3vjw5e.js";
48
48
  import"./index-4qzeef9h.js";
49
49
  import"./index-fsrp8wp3.js";
50
- import"./index-09b9zncg.js";
50
+ import"./index-tncy55bp.js";
51
51
  import"./index-7g4c7s5r.js";
52
52
  import"./index-bpmtbmy9.js";
53
- import"./index-7a2hm51h.js";
53
+ import"./index-cze4bq1x.js";
54
54
  import"./index-z6xqpmqg.js";
55
55
  import"./index-zjygnfay.js";
56
56
  import"./index-y111zefa.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-37v2wxqe.js";
5
- import"./index-m5fw4mer.js";
6
- import"./index-y0xaq4f3.js";
4
+ } from "./index-g0sdhyqk.js";
5
+ import"./index-89fpahtg.js";
6
+ import"./index-pq8ge6fe.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-3jcyn8g6.js";
9
9
  import"./index-bpmtbmy9.js";