opencode-swarm 7.134.0 → 7.134.2

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 (49) hide show
  1. package/.opencode/skills/codebase-review-swarm/SKILL.md +18 -2
  2. package/.opencode/skills/codebase-review-swarm/references/review-protocol-v8.2.md +18 -2
  3. package/.opencode/skills/swarm-implement/SKILL.md +17 -2
  4. package/dist/background/pr-event-subscribers.d.ts +1 -1
  5. package/dist/cli/{config-doctor-t5r92674.js → config-doctor-wk7xzrma.js} +2 -2
  6. package/dist/cli/{curation-policy-3smfn2a3.js → curation-policy-npgspa14.js} +2 -2
  7. package/dist/cli/{curator-drift-tsyyf4b4.js → curator-drift-9q6f85bm.js} +1 -1
  8. package/dist/cli/{curator-llm-factory-p3aqev12.js → curator-llm-factory-tpc0qg6x.js} +13 -13
  9. package/dist/cli/{curator-hva8f3nf.js → curator-njzxdyav.js} +13 -13
  10. package/dist/cli/{evidence-summary-service-mrzsjpg4.js → evidence-summary-service-pay9409b.js} +1 -1
  11. package/dist/cli/{guardrail-explain-k8mcvk61.js → guardrail-explain-75pr3e9z.js} +14 -14
  12. package/dist/cli/{guardrail-log-absma1rv.js → guardrail-log-783svw0e.js} +3 -3
  13. package/dist/cli/{hive-promoter-jwd51gzk.js → hive-promoter-nrxjatdx.js} +13 -13
  14. package/dist/cli/{index-hgh01f6h.js → index-0dszfjf3.js} +1 -1
  15. package/dist/cli/{index-kapharv7.js → index-1bytvz73.js} +2 -2
  16. package/dist/cli/{index-eedq2y40.js → index-225t7m1j.js} +15 -15
  17. package/dist/cli/{index-jpkxjmfw.js → index-4cnwvmsm.js} +5 -5
  18. package/dist/cli/{index-c3e0ymrg.js → index-746ga67b.js} +1 -1
  19. package/dist/cli/{index-k742ecbm.js → index-8fhg2nt2.js} +2 -2
  20. package/dist/cli/{index-rkyhv4p5.js → index-9299e7d5.js} +2 -2
  21. package/dist/cli/{index-2njes601.js → index-a0nk83rk.js} +2 -2
  22. package/dist/cli/{index-dgxgvzab.js → index-asd9n0ms.js} +1 -1
  23. package/dist/cli/{index-y0kk3rtv.js → index-ca44jww3.js} +1 -1
  24. package/dist/cli/{index-3dtjhr26.js → index-cav39zjt.js} +70 -39
  25. package/dist/cli/{index-xfejq1p9.js → index-n48xwynh.js} +1 -1
  26. package/dist/cli/{index-j6ywarjp.js → index-njfcm1tn.js} +3 -3
  27. package/dist/cli/{index-g87ty4wp.js → index-ss26e2d4.js} +1 -1
  28. package/dist/cli/{index-b5ek2cge.js → index-v8m282zt.js} +1 -1
  29. package/dist/cli/{index-baawkm48.js → index-x60gpbt5.js} +4 -4
  30. package/dist/cli/{index-m2s0gbzt.js → index-y8vqsm2g.js} +1 -1
  31. package/dist/cli/index.js +13 -13
  32. package/dist/cli/{knowledge-escalator-mkdac2m7.js → knowledge-escalator-b3b91k0t.js} +3 -3
  33. package/dist/cli/{knowledge-events-jjc9qbe0.js → knowledge-events-kyw0s745.js} +1 -1
  34. package/dist/cli/{knowledge-store-9e0w1kxm.js → knowledge-store-5watc2b2.js} +1 -1
  35. package/dist/cli/{knowledge-validator-h1nrn2pk.js → knowledge-validator-a4wxkgbc.js} +4 -4
  36. package/dist/cli/{scan-cursor-mk3tq3sf.js → scan-cursor-gcd771kn.js} +2 -2
  37. package/dist/cli/{schema-bjb0yzsq.js → schema-6eghf6gt.js} +1 -1
  38. package/dist/cli/{skill-generator-p1de0wkr.js → skill-generator-8dswjh14.js} +5 -5
  39. package/dist/hooks/guardrails/messages-transform.d.ts +10 -0
  40. package/dist/hooks/guardrails/stored-input-args.d.ts +6 -0
  41. package/dist/hooks/shell-write-detect.d.ts +1 -1
  42. package/dist/index.js +40 -39
  43. package/dist/prm/escalation.d.ts +1 -11
  44. package/dist/prm/index.d.ts +1 -0
  45. package/dist/prm/types.d.ts +0 -2
  46. package/dist/session/snapshot-writer.d.ts +1 -0
  47. package/dist/state.d.ts +11 -0
  48. package/dist/utils/advisory-queue.d.ts +60 -0
  49. package/package.json +1 -1
@@ -71,8 +71,16 @@ When the review target is a PR branch or commit range, complete this before any
71
71
  explorer or candidate-generation dispatch:
72
72
 
73
73
  1. Verify the working tree is clean with `git status --porcelain`. If
74
- uncommitted changes exist, stash them or abort the checkout to prevent data
75
- loss.
74
+ uncommitted changes exist, **you (the orchestrator)** must handle them
75
+ before any explorer/candidate dispatch — use `prepare_pr_workflow_checkout`
76
+ (the controller-owned path; it preserves every dirty path — including
77
+ untracked files when called with no `paths` argument — and returns a recovery
78
+ command), or a git worktree (see `running-tests` skill precedent). Note:
79
+ `git branch tmp/save-<topic>` only moves the HEAD ref — it does not record or
80
+ preserve uncommitted working-tree changes, so do not rely on it to save dirty
81
+ work. **Never delegate `git stash`, `git reset`, `git checkout -- .`,
82
+ or `git restore` to subagents** — these are worktree-global operations that
83
+ destroy sibling agents' in-flight work under parallel execution.
76
84
  2. Fetch and check out the PR head branch locally. Explorer agents read the
77
85
  working-tree filesystem (`Read`/`Glob`/`Grep`), not git history, so reviewing
78
86
  a PR while the base branch is checked out produces invalid candidates.
@@ -80,6 +88,14 @@ explorer or candidate-generation dispatch:
80
88
  packet and pass that range in every explorer/candidate-generation delegation
81
89
  so agents have revision context for targeted `git show` inspection.
82
90
 
91
+ **Subagent prohibition — must reach every subagent prompt:**
92
+ Include this line verbatim in every explorer/candidate-generation lane
93
+ or subagent dispatch prompt:
94
+ "You are a subagent sharing a worktree with sibling agents. You MUST
95
+ NOT run `git stash`, `git reset`, `git checkout -- .`, `git restore`,
96
+ or any other worktree-global destructive git command. These destroy
97
+ sibling agents' in-flight work without error."
98
+
83
99
  ## Async advisory lanes
84
100
 
85
101
  When selected-track inventory or candidate generation decomposes into independent read-only units, launch those units with `dispatch_lanes_async` when available. Record each returned `batch_id`, then continue architect-owned deterministic work that does not depend on lane output: update the coverage ledger shell, run safe local tools, prepare validation shards, and document unresolved coverage units. Do not mark coverage `REVIEWED`, promote candidates to findings, or write the final report from running lanes.
@@ -196,8 +196,16 @@ If the review target is a PR branch or commit range, complete this before Phase
196
196
  candidate-generation dispatch:
197
197
 
198
198
  1. Verify the working tree is clean with `git status --porcelain`. If
199
- uncommitted changes exist, stash them or abort the checkout to prevent data
200
- loss.
199
+ uncommitted changes exist, **you (the orchestrator)** must handle them
200
+ before any explorer/candidate dispatch — use `prepare_pr_workflow_checkout`
201
+ (the controller-owned path; it preserves every dirty path — including
202
+ untracked files when called with no `paths` argument — and returns a recovery
203
+ command), or a git worktree (see `running-tests` skill precedent). Note:
204
+ `git branch tmp/save-<topic>` only moves the HEAD ref — it does not record or
205
+ preserve uncommitted working-tree changes, so do not rely on it to save dirty
206
+ work. **Never delegate `git stash`, `git reset`, `git checkout -- .`,
207
+ or `git restore` to subagents** — these are worktree-global operations that
208
+ destroy sibling agents' in-flight work under parallel execution.
201
209
  2. Fetch and check out the PR head branch locally. Explorer agents read the
202
210
  working-tree filesystem (`Read`/`Glob`/`Grep`), not git history; without the
203
211
  checkout, they inspect the base branch and produce invalid candidates.
@@ -205,6 +213,14 @@ candidate-generation dispatch:
205
213
  commit range in every explorer/candidate-generation delegation so lanes can
206
214
  use `git show` for revision-specific inspection.
207
215
 
216
+ **Subagent prohibition — must reach every subagent prompt:**
217
+ Include this line verbatim in every explorer/candidate-generation
218
+ subagent dispatch prompt:
219
+ "You are a subagent sharing a worktree with sibling agents. You MUST
220
+ NOT run `git stash`, `git reset`, `git checkout -- .`, `git restore`,
221
+ or any other worktree-global destructive git command. These destroy
222
+ sibling agents' in-flight work without error."
223
+
208
224
  ### 0K — User review mode gate
209
225
 
210
226
  Stop and present the ten review choices unless the user’s original request already selected tracks and explicitly authorized continuing. If the user selects a focused review, do not run unrelated tracks; record omitted tracks in coverage notes.
@@ -75,8 +75,16 @@ When implementation or review-scoping work depends on explorer agents reading a
75
75
  PR branch or commit range, complete this before Phase 1 explorer dispatch:
76
76
 
77
77
  1. Verify the working tree is clean with `git status --porcelain`. If
78
- uncommitted changes exist, stash them or abort the checkout to prevent data
79
- loss.
78
+ uncommitted changes exist, **you (the orchestrator)** must handle them
79
+ before Phase 1 dispatch — use `prepare_pr_workflow_checkout` (the
80
+ controller-owned path; it preserves every dirty path — including untracked
81
+ files when called with no `paths` argument — and returns a recovery command),
82
+ or a git worktree (see `running-tests` skill precedent). Note: `git branch
83
+ tmp/save-<topic>` only moves the HEAD ref — it does not record or preserve
84
+ uncommitted working-tree changes, so do not rely on it to save dirty work.
85
+ **Never delegate `git stash`, `git reset`, `git checkout -- .`,
86
+ or `git restore` to subagents** — these are worktree-global operations that
87
+ destroy sibling agents' in-flight work under parallel execution.
80
88
  2. Fetch and check out the PR head branch locally. Explorer agents read files
81
89
  from the working tree (`Read`/`Glob`/`Grep`), not from git history, so a stale
82
90
  checkout makes them inspect the base branch.
@@ -90,6 +98,13 @@ Launch parallel subagents for disjoint investigation tasks such as repository
90
98
  mapping, locating existing patterns, finding tests/contracts, side-effect
91
99
  analysis, and dependency or migration checks. Keep the main context focused.
92
100
 
101
+ **Subagent prohibition — must reach every subagent prompt:**
102
+ Include this line verbatim in every subagent dispatch prompt:
103
+ "You are a subagent sharing a worktree with sibling agents. You MUST
104
+ NOT run `git stash`, `git reset`, `git checkout -- .`, `git restore`,
105
+ or any other worktree-global destructive git command. These destroy
106
+ sibling agents' in-flight work without error."
107
+
93
108
  ### Phase 2 - Plan
94
109
 
95
110
  Create a concrete implementation plan before editing for any non-trivial task.
@@ -97,7 +97,7 @@ declare function scheduleClearUnaddressed(directory: string, correlationId: stri
97
97
  /**
98
98
  * Format a structured advisory message for the given PR event type.
99
99
  * Returns null for unknown event types. The first token is always the
100
- * dedup token `[pr-monitor:<type>:<repo>#<n>]`.
100
+ * dedup token from buildPrEventToken.
101
101
  */
102
102
  declare function formatAdvisory(type: string, payload: PrEventPayload): string | null;
103
103
  export {};
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-g87ty4wp.js";
16
- import"./index-b5ek2cge.js";
15
+ } from "./index-ss26e2d4.js";
16
+ import"./index-v8m282zt.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-bpmtbmy9.js";
19
19
  import"./index-z6xqpmqg.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-y0kk3rtv.js";
7
+ } from "./index-ca44jww3.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-dgxgvzab.js";
9
+ import"./index-asd9n0ms.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-cfkvc5q9.js";
12
12
  import"./index-dd7ttx8x.js";
@@ -150,7 +150,7 @@ async function runDeterministicDriftCheck(directory, phase, curatorResult, confi
150
150
  });
151
151
  if (injectAdvisory && alignment !== "ALIGNED" && driftScore > 0) {
152
152
  try {
153
- const advisoryText = `CURATOR DRIFT DETECTED (phase ${phase}, score ${driftScore.toFixed(2)}): ${injectionSummary.slice(0, 300)}. Review .swarm/${DRIFT_REPORT_PREFIX}${phase}.json and address spec alignment before proceeding.`;
153
+ const advisoryText = `CURATOR DRIFT DETECTED (phase ${phase}, score ${driftScore.toFixed(2)}): ${injectionSummary.slice(0, 300)}. Review .swarm/${DRIFT_REPORT_PREFIX}${phase}.json and address spec alignment before proceeding. Consider running critic_drift_verifier before phase completion to get a proper drift review.`;
154
154
  injectAdvisory(advisoryText);
155
155
  } catch {}
156
156
  }
@@ -1,33 +1,33 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-3dtjhr26.js";
4
+ } from "./index-cav39zjt.js";
5
5
  import"./index-13xxjfhn.js";
6
- import"./index-hgh01f6h.js";
7
- import"./index-g87ty4wp.js";
8
- import"./index-k742ecbm.js";
6
+ import"./index-0dszfjf3.js";
7
+ import"./index-ss26e2d4.js";
8
+ import"./index-8fhg2nt2.js";
9
9
  import"./index-4905hd2m.js";
10
10
  import"./index-134d35c1.js";
11
- import"./index-j6ywarjp.js";
12
- import"./index-jpkxjmfw.js";
13
- import"./index-m2s0gbzt.js";
11
+ import"./index-njfcm1tn.js";
12
+ import"./index-4cnwvmsm.js";
13
+ import"./index-y8vqsm2g.js";
14
14
  import"./index-vxv732ex.js";
15
15
  import"./index-c8s9a3zh.js";
16
16
  import"./index-9ss2m4rs.js";
17
17
  import"./index-wk1h5ec2.js";
18
18
  import"./index-1j3682j8.js";
19
- import"./index-2njes601.js";
20
- import"./index-y0kk3rtv.js";
19
+ import"./index-a0nk83rk.js";
20
+ import"./index-ca44jww3.js";
21
21
  import"./index-rtry5xyf.js";
22
- import"./index-baawkm48.js";
23
- import"./index-dgxgvzab.js";
22
+ import"./index-x60gpbt5.js";
23
+ import"./index-asd9n0ms.js";
24
24
  import"./index-ae75rja9.js";
25
25
  import"./index-cfkvc5q9.js";
26
26
  import"./index-dd7ttx8x.js";
27
- import"./index-xfejq1p9.js";
27
+ import"./index-n48xwynh.js";
28
28
  import"./index-k5jrywpr.js";
29
29
  import"./index-n832052r.js";
30
- import"./index-b5ek2cge.js";
30
+ import"./index-v8m282zt.js";
31
31
  import"./index-bk5tah7q.js";
32
32
  import"./index-8fwhhayc.js";
33
33
  import"./index-q1exe2b3.js";
@@ -14,33 +14,33 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-3dtjhr26.js";
17
+ } from "./index-cav39zjt.js";
18
18
  import"./index-13xxjfhn.js";
19
- import"./index-hgh01f6h.js";
20
- import"./index-g87ty4wp.js";
21
- import"./index-k742ecbm.js";
19
+ import"./index-0dszfjf3.js";
20
+ import"./index-ss26e2d4.js";
21
+ import"./index-8fhg2nt2.js";
22
22
  import"./index-4905hd2m.js";
23
23
  import"./index-134d35c1.js";
24
- import"./index-j6ywarjp.js";
25
- import"./index-jpkxjmfw.js";
26
- import"./index-m2s0gbzt.js";
24
+ import"./index-njfcm1tn.js";
25
+ import"./index-4cnwvmsm.js";
26
+ import"./index-y8vqsm2g.js";
27
27
  import"./index-vxv732ex.js";
28
28
  import"./index-c8s9a3zh.js";
29
29
  import"./index-9ss2m4rs.js";
30
30
  import"./index-wk1h5ec2.js";
31
31
  import"./index-1j3682j8.js";
32
- import"./index-2njes601.js";
33
- import"./index-y0kk3rtv.js";
32
+ import"./index-a0nk83rk.js";
33
+ import"./index-ca44jww3.js";
34
34
  import"./index-rtry5xyf.js";
35
- import"./index-baawkm48.js";
36
- import"./index-dgxgvzab.js";
35
+ import"./index-x60gpbt5.js";
36
+ import"./index-asd9n0ms.js";
37
37
  import"./index-ae75rja9.js";
38
38
  import"./index-cfkvc5q9.js";
39
39
  import"./index-dd7ttx8x.js";
40
- import"./index-xfejq1p9.js";
40
+ import"./index-n48xwynh.js";
41
41
  import"./index-k5jrywpr.js";
42
42
  import"./index-n832052r.js";
43
- import"./index-b5ek2cge.js";
43
+ import"./index-v8m282zt.js";
44
44
  import"./index-bk5tah7q.js";
45
45
  import"./index-8fwhhayc.js";
46
46
  import"./index-q1exe2b3.js";
@@ -6,7 +6,7 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-k742ecbm.js";
9
+ } from "./index-8fhg2nt2.js";
10
10
  import"./index-9ss2m4rs.js";
11
11
  import"./index-wk1h5ec2.js";
12
12
  import"./index-dd7ttx8x.js";
@@ -1,34 +1,34 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-rkyhv4p5.js";
5
- import"./index-3dtjhr26.js";
4
+ } from "./index-9299e7d5.js";
5
+ import"./index-cav39zjt.js";
6
6
  import"./index-13xxjfhn.js";
7
- import"./index-hgh01f6h.js";
8
- import"./index-g87ty4wp.js";
9
- import"./index-k742ecbm.js";
7
+ import"./index-0dszfjf3.js";
8
+ import"./index-ss26e2d4.js";
9
+ import"./index-8fhg2nt2.js";
10
10
  import"./index-4905hd2m.js";
11
11
  import"./index-134d35c1.js";
12
- import"./index-j6ywarjp.js";
13
- import"./index-jpkxjmfw.js";
14
- import"./index-m2s0gbzt.js";
12
+ import"./index-njfcm1tn.js";
13
+ import"./index-4cnwvmsm.js";
14
+ import"./index-y8vqsm2g.js";
15
15
  import"./index-vxv732ex.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-9ss2m4rs.js";
18
18
  import"./index-wk1h5ec2.js";
19
19
  import"./index-1j3682j8.js";
20
- import"./index-2njes601.js";
21
- import"./index-y0kk3rtv.js";
20
+ import"./index-a0nk83rk.js";
21
+ import"./index-ca44jww3.js";
22
22
  import"./index-rtry5xyf.js";
23
- import"./index-baawkm48.js";
24
- import"./index-dgxgvzab.js";
23
+ import"./index-x60gpbt5.js";
24
+ import"./index-asd9n0ms.js";
25
25
  import"./index-ae75rja9.js";
26
26
  import"./index-cfkvc5q9.js";
27
27
  import"./index-dd7ttx8x.js";
28
- import"./index-xfejq1p9.js";
28
+ import"./index-n48xwynh.js";
29
29
  import"./index-k5jrywpr.js";
30
30
  import"./index-n832052r.js";
31
- import"./index-b5ek2cge.js";
31
+ import"./index-v8m282zt.js";
32
32
  import"./index-bk5tah7q.js";
33
33
  import"./index-8fwhhayc.js";
34
34
  import"./index-q1exe2b3.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-c3e0ymrg.js";
5
- import"./index-hgh01f6h.js";
6
- import"./index-b5ek2cge.js";
4
+ } from "./index-746ga67b.js";
5
+ import"./index-0dszfjf3.js";
6
+ import"./index-v8m282zt.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-bpmtbmy9.js";
9
9
  import"./index-z6xqpmqg.js";
@@ -7,35 +7,35 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-3dtjhr26.js";
10
+ } from "./index-cav39zjt.js";
11
11
  import"./index-13xxjfhn.js";
12
- import"./index-hgh01f6h.js";
13
- import"./index-g87ty4wp.js";
14
- import"./index-k742ecbm.js";
12
+ import"./index-0dszfjf3.js";
13
+ import"./index-ss26e2d4.js";
14
+ import"./index-8fhg2nt2.js";
15
15
  import"./index-4905hd2m.js";
16
16
  import"./index-134d35c1.js";
17
- import"./index-j6ywarjp.js";
18
- import"./index-jpkxjmfw.js";
19
- import"./index-m2s0gbzt.js";
17
+ import"./index-njfcm1tn.js";
18
+ import"./index-4cnwvmsm.js";
19
+ import"./index-y8vqsm2g.js";
20
20
  import"./index-vxv732ex.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
23
  import"./index-wk1h5ec2.js";
24
24
  import"./index-1j3682j8.js";
25
- import"./index-2njes601.js";
26
- import"./index-y0kk3rtv.js";
25
+ import"./index-a0nk83rk.js";
26
+ import"./index-ca44jww3.js";
27
27
  import"./index-rtry5xyf.js";
28
28
  import {
29
29
  resolveHiveKnowledgePath
30
- } from "./index-baawkm48.js";
31
- import"./index-dgxgvzab.js";
30
+ } from "./index-x60gpbt5.js";
31
+ import"./index-asd9n0ms.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-cfkvc5q9.js";
34
34
  import"./index-dd7ttx8x.js";
35
- import"./index-xfejq1p9.js";
35
+ import"./index-n48xwynh.js";
36
36
  import"./index-k5jrywpr.js";
37
37
  import"./index-n832052r.js";
38
- import"./index-b5ek2cge.js";
38
+ import"./index-v8m282zt.js";
39
39
  import"./index-bk5tah7q.js";
40
40
  import"./index-8fwhhayc.js";
41
41
  import"./index-q1exe2b3.js";
@@ -3,7 +3,7 @@ import {
3
3
  init_constants,
4
4
  init_schema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-b5ek2cge.js";
6
+ } from "./index-v8m282zt.js";
7
7
  import {
8
8
  init_logger,
9
9
  warn
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-xfejq1p9.js";
10
+ } from "./index-n48xwynh.js";
11
11
  import {
12
12
  ApprovalEvidenceSchema,
13
13
  BaseEvidenceSchema,
@@ -62,7 +62,7 @@ import {
62
62
  isQAAgent,
63
63
  isSubagent,
64
64
  resolveAutoReviewConfig
65
- } from "./index-b5ek2cge.js";
65
+ } from "./index-v8m282zt.js";
66
66
  import"./index-bk5tah7q.js";
67
67
  import {
68
68
  MigrationStatusSchema,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-rkyhv4p5.js";
4
+ } from "./index-9299e7d5.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-c3e0ymrg.js";
7
+ } from "./index-746ga67b.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,30 +84,30 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-3dtjhr26.js";
87
+ } from "./index-cav39zjt.js";
88
88
  import"./index-13xxjfhn.js";
89
- import"./index-hgh01f6h.js";
90
- import"./index-g87ty4wp.js";
91
- import"./index-k742ecbm.js";
89
+ import"./index-0dszfjf3.js";
90
+ import"./index-ss26e2d4.js";
91
+ import"./index-8fhg2nt2.js";
92
92
  import"./index-4905hd2m.js";
93
93
  import"./index-134d35c1.js";
94
- import"./index-j6ywarjp.js";
95
- import"./index-jpkxjmfw.js";
96
- import"./index-m2s0gbzt.js";
94
+ import"./index-njfcm1tn.js";
95
+ import"./index-4cnwvmsm.js";
96
+ import"./index-y8vqsm2g.js";
97
97
  import"./index-vxv732ex.js";
98
98
  import"./index-c8s9a3zh.js";
99
99
  import"./index-9ss2m4rs.js";
100
100
  import"./index-wk1h5ec2.js";
101
101
  import"./index-1j3682j8.js";
102
- import"./index-2njes601.js";
103
- import"./index-y0kk3rtv.js";
102
+ import"./index-a0nk83rk.js";
103
+ import"./index-ca44jww3.js";
104
104
  import"./index-rtry5xyf.js";
105
- import"./index-baawkm48.js";
106
- import"./index-dgxgvzab.js";
105
+ import"./index-x60gpbt5.js";
106
+ import"./index-asd9n0ms.js";
107
107
  import"./index-ae75rja9.js";
108
108
  import"./index-cfkvc5q9.js";
109
109
  import"./index-dd7ttx8x.js";
110
- import"./index-xfejq1p9.js";
110
+ import"./index-n48xwynh.js";
111
111
  import"./index-k5jrywpr.js";
112
112
  import"./index-n832052r.js";
113
113
  import {
@@ -116,7 +116,7 @@ import {
116
116
  init_constants,
117
117
  init_schema,
118
118
  stripKnownSwarmPrefix
119
- } from "./index-b5ek2cge.js";
119
+ } from "./index-v8m282zt.js";
120
120
  import"./index-bk5tah7q.js";
121
121
  import"./index-8fwhhayc.js";
122
122
  import"./index-q1exe2b3.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-baawkm48.js";
9
+ } from "./index-x60gpbt5.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-dgxgvzab.js";
15
+ } from "./index-asd9n0ms.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-h1nrn2pk.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-a4wxkgbc.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-bjb0yzsq.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-kapharv7.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-6eghf6gt.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-1bytvz73.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-hgh01f6h.js";
5
+ } from "./index-0dszfjf3.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -180,7 +180,7 @@ class BubblewrapSandboxExecutor {
180
180
  "--dev",
181
181
  "/dev",
182
182
  "--size",
183
- "500M",
183
+ String(TMPFS_SIZE_BYTES),
184
184
  "--tmpfs",
185
185
  `'${shellEscape(temp)}'`,
186
186
  "--ro-bind",
@@ -210,7 +210,7 @@ class BubblewrapSandboxExecutor {
210
210
  return {};
211
211
  }
212
212
  }
213
- var BWRAP_VERSION_EXIT = 0, BWRAP_UNAVAILABLE_CODES, _internals2;
213
+ var BWRAP_VERSION_EXIT = 0, BWRAP_UNAVAILABLE_CODES, TMPFS_SIZE_BYTES = 524288000, _internals2;
214
214
  var init_bubblewrap_executor = __esm(() => {
215
215
  init_logger();
216
216
  init_executor();
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-3dtjhr26.js";
15
+ } from "./index-cav39zjt.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-hgh01f6h.js";
22
+ } from "./index-0dszfjf3.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-y0kk3rtv.js";
4
+ } from "./index-ca44jww3.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-baawkm48.js";
12
+ } from "./index-x60gpbt5.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-cfkvc5q9.js";
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
608
608
  deltas.push({ id, delta });
609
609
  }
610
610
  if (deltas.length > 0) {
611
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-9e0w1kxm.js");
611
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-5watc2b2.js");
612
612
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
613
613
  }
614
614
  return {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-dgxgvzab.js";
7
+ } from "./index-asd9n0ms.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,