opencode-swarm 7.139.2 → 7.139.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 (110) hide show
  1. package/.opencode/skills/phase-wrap/SKILL.md +2 -2
  2. package/README.md +2 -2
  3. package/dist/background/stage-b-gates.d.ts +5 -1
  4. package/dist/background/task-envelope.d.ts +4 -4
  5. package/dist/cli/{config-doctor-hrb61yqe.js → config-doctor-whxr386t.js} +6 -6
  6. package/dist/cli/{core-g2dfh9fq.js → core-aj5g7an6.js} +5 -5
  7. package/dist/cli/{curation-policy-4tp0mbcb.js → curation-policy-anym2y3v.js} +8 -8
  8. package/dist/cli/{curator-drift-vfh07mqy.js → curator-drift-49p3jnte.js} +7 -7
  9. package/dist/cli/{curator-vpcs1p1v.js → curator-e8cvb55d.js} +41 -41
  10. package/dist/cli/curator-llm-factory-h9xbpgmw.js +61 -0
  11. package/dist/cli/{dispatch-b1fge4xk.js → dispatch-2s23fbcs.js} +4 -4
  12. package/dist/cli/{evidence-summary-service-kzxr71yd.js → evidence-summary-service-g82bsjqa.js} +16 -16
  13. package/dist/cli/{gate-evidence-z2b1ymnw.js → gate-evidence-72cgrvs2.js} +6 -5
  14. package/dist/cli/guardrail-explain-0be7msvq.js +62 -0
  15. package/dist/cli/{guardrail-log-2ftew0p3.js → guardrail-log-9mm5443g.js} +9 -9
  16. package/dist/cli/{hive-promoter-mpf0cfkk.js → hive-promoter-nnzs5x1r.js} +41 -41
  17. package/dist/cli/{index-w71cq27a.js → index-0e95eck5.js} +5 -5
  18. package/dist/cli/{index-5zyk8qgv.js → index-0xkjhgrf.js} +5 -5
  19. package/dist/cli/{index-q7ezzgwq.js → index-1kyex7z2.js} +1 -1
  20. package/dist/cli/{index-668dpw5e.js → index-33skgk1a.js} +1 -1
  21. package/dist/cli/{index-vm4xw9z3.js → index-41hkt36g.js} +2 -2
  22. package/dist/cli/{index-y111zefa.js → index-4nt52yr9.js} +80 -31
  23. package/dist/cli/{index-3jcyn8g6.js → index-4wjk296r.js} +1 -1
  24. package/dist/cli/{index-3radty3f.js → index-5azdnaty.js} +2 -2
  25. package/dist/cli/{index-8p9pasnp.js → index-5s23pfsy.js} +8 -8
  26. package/dist/cli/{index-5w7ekpy3.js → index-5z2xps64.js} +2 -2
  27. package/dist/cli/{index-0wp67gqj.js → index-6nzmp937.js} +61 -111
  28. package/dist/cli/{index-gvhvz176.js → index-6r522srn.js} +2 -2
  29. package/dist/cli/{index-4xbyy6aw.js → index-6rxgb5r9.js} +10 -6
  30. package/dist/cli/{index-cyw81ngh.js → index-6vh6vrnk.js} +10 -10
  31. package/dist/cli/{index-a12906mj.js → index-6z0a940s.js} +8 -8
  32. package/dist/cli/{index-wsdnttf4.js → index-74hpm6sh.js} +1 -1
  33. package/dist/cli/{index-6w1re1qn.js → index-9cdj4020.js} +6 -6
  34. package/dist/cli/{index-y47dwge1.js → index-e1k9vpqn.js} +5 -5
  35. package/dist/cli/{index-y64jv2pe.js → index-ejbcpbzp.js} +7 -7
  36. package/dist/cli/{index-6c5f309q.js → index-gfmrw2f5.js} +2 -2
  37. package/dist/cli/{index-prmb5qfp.js → index-j77frjq8.js} +7 -7
  38. package/dist/cli/{index-ffpmqx30.js → index-jnfyxeap.js} +4 -4
  39. package/dist/cli/{index-e9tx99ds.js → index-k41dn8me.js} +3 -3
  40. package/dist/cli/{index-x9q4bbhd.js → index-k46me75h.js} +4 -4
  41. package/dist/cli/{index-s608d3hw.js → index-nrx08gcr.js} +6 -2
  42. package/dist/cli/{index-ktagrqxw.js → index-pg84msyc.js} +7 -7
  43. package/dist/cli/{index-a5eba0t8.js → index-rsrx77fg.js} +6 -6
  44. package/dist/cli/index-s0qc4gj6.js +298 -0
  45. package/dist/cli/{index-q11t5erh.js → index-s58vghgj.js} +7 -7
  46. package/dist/cli/{index-se8xc78k.js → index-sa15nfgg.js} +45 -45
  47. package/dist/cli/{index-wrt6m5ze.js → index-sd657fkp.js} +291 -75
  48. package/dist/cli/{index-yr6x707c.js → index-vfsqpcz6.js} +16 -16
  49. package/dist/cli/{index-a7nh382r.js → index-vyqd1hzm.js} +20593 -19882
  50. package/dist/cli/{index-8gftfvpp.js → index-xb1zq933.js} +1 -1
  51. package/dist/cli/{index-3eddtgxt.js → index-xmhhhjjw.js} +39 -4
  52. package/dist/cli/index.js +43 -43
  53. package/dist/cli/{knowledge-escalator-n9pmx4qr.js → knowledge-escalator-a6z30y9p.js} +10 -10
  54. package/dist/cli/{knowledge-events-raevm18w.js → knowledge-events-deq0ds8e.js} +7 -7
  55. package/dist/cli/{knowledge-link-3tq8w6gs.js → knowledge-link-bmbatt8s.js} +6 -6
  56. package/dist/cli/{knowledge-store-bcfqz8fr.js → knowledge-store-vdr19mnq.js} +8 -8
  57. package/dist/cli/{knowledge-validator-jxqj96cx.js → knowledge-validator-5hgacnrf.js} +11 -11
  58. package/dist/cli/{pending-delegations-tmyf18p4.js → pending-delegations-7ayryxbg.js} +8 -8
  59. package/dist/cli/{pr-subscriptions-hhx6yk24.js → pr-subscriptions-w5y08ebc.js} +8 -8
  60. package/dist/cli/{runner-w30gazew.js → runner-h7vmgkth.js} +7 -6
  61. package/dist/cli/{scan-cursor-ah5swtyh.js → scan-cursor-d6qcg9hr.js} +9 -9
  62. package/dist/cli/{schema-f7jgrtxj.js → schema-y1zekrag.js} +3 -3
  63. package/dist/cli/{scope-persistence-3f0d4fwv.js → scope-persistence-tj6qway9.js} +7 -7
  64. package/dist/cli/{skill-generator-hp7as46c.js → skill-generator-bw8xhzzn.js} +13 -13
  65. package/dist/cli/{task-envelope-qn0qtnh0.js → task-envelope-jp2fdsvn.js} +11 -8
  66. package/dist/cli/{telemetry-4tgrfhaz.js → telemetry-62cn5t24.js} +1 -1
  67. package/dist/cli/{workspace-snapshot-h5rzw37b.js → workspace-snapshot-w3tg4ne5.js} +2 -2
  68. package/dist/cli/{worktree-collision-ownership-vexb0b6r.js → worktree-collision-ownership-hs5c2qzp.js} +9 -9
  69. package/dist/commands/approve-plan-critic.d.ts +2 -2
  70. package/dist/commands/registry.d.ts +1 -1
  71. package/dist/config/agent-model.d.ts +35 -0
  72. package/dist/db/qa-gate-profile.d.ts +11 -3
  73. package/dist/evidence/manager.d.ts +5 -2
  74. package/dist/evidence/phase-participation.d.ts +44 -0
  75. package/dist/hooks/compaction-customizer.d.ts +30 -2
  76. package/dist/hooks/context-budget.d.ts +1 -1
  77. package/dist/hooks/delegation-gate.d.ts +3 -3
  78. package/dist/hooks/guardrails/index.d.ts +5 -1
  79. package/dist/hooks/guardrails/messages-transform.d.ts +2 -0
  80. package/dist/hooks/guardrails/pre-check-result.d.ts +20 -0
  81. package/dist/index.js +616 -609
  82. package/dist/prm/escalation.d.ts +34 -0
  83. package/dist/prm/index.d.ts +6 -2
  84. package/dist/prm/pattern-detector.d.ts +22 -1
  85. package/dist/prm/types.d.ts +12 -2
  86. package/dist/sast/semgrep.d.ts +15 -32
  87. package/dist/services/compaction-service.d.ts +3 -1
  88. package/dist/session/snapshot-writer.d.ts +1 -0
  89. package/dist/state.d.ts +119 -19
  90. package/dist/summaries/schema.d.ts +2 -2
  91. package/dist/tools/context-status.d.ts +4 -1
  92. package/dist/tools/convene-council.d.ts +1 -1
  93. package/dist/tools/lint.d.ts +48 -22
  94. package/dist/tools/pre-check-batch.d.ts +41 -13
  95. package/dist/tools/quality-budget.d.ts +3 -2
  96. package/dist/tools/resolve-working-directory.d.ts +4 -4
  97. package/dist/tools/sast-baseline.d.ts +1 -0
  98. package/dist/tools/sast-scan.d.ts +4 -1
  99. package/dist/tools/secretscan.d.ts +2 -2
  100. package/dist/tools/set-qa-gates.d.ts +5 -4
  101. package/dist/tools/submit-phase-council-verdicts.d.ts +1 -1
  102. package/dist/tools/write-final-council-evidence.d.ts +1 -1
  103. package/dist/utils/bun-compat.d.ts +20 -0
  104. package/dist/utils/external-tool-runner.d.ts +10 -0
  105. package/dist/utils/project-boundary.d.ts +34 -0
  106. package/package.json +1 -1
  107. package/dist/cli/curator-llm-factory-hvw13hmr.js +0 -61
  108. package/dist/cli/guardrail-explain-k62h3c92.js +0 -62
  109. package/dist/cli/index-5j6chvj8.js +0 -159
  110. package/dist/cli/{index-z6xqpmqg.js → index-ee3x66a5.js} +3 -3
@@ -1,20 +1,21 @@
1
1
  // @bun
2
+ import {
3
+ assertProjectRoot,
4
+ withEvidenceLock
5
+ } from "./index-s0qc4gj6.js";
2
6
  import {
3
7
  ExecutionProfileSchema,
4
8
  PlanSchema,
5
9
  TaskStatusSchema
6
10
  } from "./index-1kz6da87.js";
7
- import {
8
- withEvidenceLock
9
- } from "./index-5j6chvj8.js";
10
- import {
11
- emit
12
- } from "./index-a5eba0t8.js";
13
11
  import {
14
12
  criticalWarn,
15
13
  init_logger,
16
14
  log
17
15
  } from "./index-zgwm4ryv.js";
16
+ import {
17
+ emit
18
+ } from "./index-rsrx77fg.js";
18
19
 
19
20
  // src/plan/utils.ts
20
21
  function derivePlanId(plan) {
@@ -180,6 +181,7 @@ async function readLedgerEvents(directory) {
180
181
  }
181
182
  }
182
183
  async function initLedger(directory, planId, initialPlanHash, initialPlan) {
184
+ assertProjectRoot(directory);
183
185
  const ledgerPath = getLedgerPath(directory);
184
186
  const planJsonPath = getPlanJsonPath(directory);
185
187
  if (fs.existsSync(ledgerPath)) {
@@ -217,6 +219,7 @@ async function initLedger(directory, planId, initialPlanHash, initialPlan) {
217
219
  writeFileFsyncedThenRename(tempPath, ledgerPath, line);
218
220
  }
219
221
  async function appendLedgerEvent(directory, eventInput, options) {
222
+ assertProjectRoot(directory);
220
223
  return withEvidenceLock(directory, LEDGER_LOCK_PATH, "plan-ledger", "append-ledger-event", async () => {
221
224
  const ledgerPath = getLedgerPath(directory);
222
225
  const latestSeq = await getLatestLedgerSeq(directory);
@@ -484,6 +487,7 @@ async function quarantineLedgerSuffix(directory, badSuffix) {
484
487
  } catch {}
485
488
  }
486
489
  try {
490
+ assertProjectRoot(directory);
487
491
  const hash = crypto.createHash("sha256").update(badSuffix, "utf8").digest("hex").slice(0, 12);
488
492
  const swarmDir = path.join(directory, ".swarm");
489
493
  try {
@@ -6,14 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-668dpw5e.js";
9
+ } from "./index-33skgk1a.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-gvhvz176.js";
13
- import {
14
- init_knowledge_types,
15
- isActiveStatus
16
- } from "./index-bk5tah7q.js";
12
+ } from "./index-6r522srn.js";
17
13
  import {
18
14
  readCachedParsedFile
19
15
  } from "./index-ed5ykebp.js";
@@ -24,6 +20,10 @@ import {
24
20
  init_logger,
25
21
  log
26
22
  } from "./index-zgwm4ryv.js";
23
+ import {
24
+ init_knowledge_types,
25
+ isActiveStatus
26
+ } from "./index-bk5tah7q.js";
27
27
  import {
28
28
  __require,
29
29
  __toESM
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-raevm18w.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-deq0ds8e.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-jxqj96cx.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-f7jgrtxj.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-5hgacnrf.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-y1zekrag.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-yr6x707c.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-vfsqpcz6.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
@@ -1,18 +1,18 @@
1
1
  // @bun
2
+ import {
3
+ bunSpawn
4
+ } from "./index-4nt52yr9.js";
2
5
  import {
3
6
  advisoryWarn,
4
7
  init_warning_buffer
5
8
  } from "./index-4rhhvd1a.js";
6
- import {
7
- SWARM_WORKTREE_DIR_NAME,
8
- init_constants
9
- } from "./index-3jcyn8g6.js";
10
- import {
11
- bunSpawn
12
- } from "./index-y111zefa.js";
13
9
  import {
14
10
  log
15
11
  } from "./index-zgwm4ryv.js";
12
+ import {
13
+ SWARM_WORKTREE_DIR_NAME,
14
+ init_constants
15
+ } from "./index-4wjk296r.js";
16
16
  import {
17
17
  __require
18
18
  } from "./index-a76rekgs.js";
@@ -86,7 +86,7 @@ var _internals = {
86
86
  symlinkSync: fs.symlinkSync
87
87
  },
88
88
  writeScopeToDisk: async (directory, taskId, files) => {
89
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-3f0d4fwv.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-tj6qway9.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  bunSpawn
4
- } from "./index-y111zefa.js";
4
+ } from "./index-4nt52yr9.js";
5
5
 
6
6
  // src/background/workspace-snapshot.ts
7
7
  import * as child_process from "child_process";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-cyw81ngh.js";
5
+ } from "./index-6vh6vrnk.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
- } from "./index-668dpw5e.js";
9
- import {
10
- init_knowledge_types,
11
- isActiveStatus
12
- } from "./index-bk5tah7q.js";
8
+ } from "./index-33skgk1a.js";
13
9
  import {
14
10
  init_logger,
15
11
  log
16
12
  } from "./index-zgwm4ryv.js";
13
+ import {
14
+ init_knowledge_types,
15
+ isActiveStatus
16
+ } from "./index-bk5tah7q.js";
17
17
  import {
18
18
  __require,
19
19
  __toESM
@@ -1,4 +1,7 @@
1
1
  // @bun
2
+ import {
3
+ log
4
+ } from "./index-zgwm4ryv.js";
2
5
  import {
3
6
  FALLBACK_MODELS_MAX,
4
7
  GATE_CONFIG_KNOWN_SECTION_KEYS,
@@ -6,14 +9,11 @@ import {
6
9
  PluginConfigSchema,
7
10
  init_schema,
8
11
  stripKnownSwarmPrefix
9
- } from "./index-8p9pasnp.js";
12
+ } from "./index-5s23pfsy.js";
10
13
  import {
11
14
  ALL_AGENT_NAMES,
12
15
  init_constants
13
- } from "./index-3jcyn8g6.js";
14
- import {
15
- log
16
- } from "./index-zgwm4ryv.js";
16
+ } from "./index-4wjk296r.js";
17
17
 
18
18
  // src/services/config-doctor.ts
19
19
  init_constants();
@@ -1,8 +1,4 @@
1
1
  // @bun
2
- import {
3
- init_schema,
4
- stripKnownSwarmPrefix
5
- } from "./index-8p9pasnp.js";
6
2
  import {
7
3
  getPathFlavor,
8
4
  isOnDifferentPathRoot,
@@ -12,13 +8,17 @@ import {
12
8
  sanitizeDiagnosticText,
13
9
  unsafePathTextReason
14
10
  } from "./index-556ja8an.js";
15
- import {
16
- init_constants
17
- } from "./index-3jcyn8g6.js";
18
11
  import {
19
12
  init_logger,
20
13
  warn
21
14
  } from "./index-zgwm4ryv.js";
15
+ import {
16
+ init_schema,
17
+ stripKnownSwarmPrefix
18
+ } from "./index-5s23pfsy.js";
19
+ import {
20
+ init_constants
21
+ } from "./index-4wjk296r.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __toESM
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-a7nh382r.js";
15
+ } from "./index-vyqd1hzm.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-y64jv2pe.js";
22
+ } from "./index-ejbcpbzp.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -1,21 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-x9q4bbhd.js";
4
+ } from "./index-k46me75h.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-5j6chvj8.js";
8
- import {
9
- exports_external,
10
- init_zod
11
- } from "./index-bpmtbmy9.js";
7
+ } from "./index-s0qc4gj6.js";
12
8
  import {
13
9
  bunWrite
14
- } from "./index-y111zefa.js";
10
+ } from "./index-4nt52yr9.js";
15
11
  import {
16
12
  init_logger,
17
13
  warn
18
14
  } from "./index-zgwm4ryv.js";
15
+ import {
16
+ exports_external,
17
+ init_zod
18
+ } from "./index-bpmtbmy9.js";
19
19
 
20
20
  // src/background/pending-delegations.ts
21
21
  init_zod();
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-3radty3f.js";
4
+ } from "./index-5azdnaty.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-cyw81ngh.js";
12
+ } from "./index-6vh6vrnk.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-668dpw5e.js";
15
+ } from "./index-33skgk1a.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-gvhvz176.js";
18
+ } from "./index-6r522srn.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./index-ae75rja9.js";
5
5
  import {
6
6
  resolveKnowledgeStoreDir
7
- } from "./index-668dpw5e.js";
7
+ } from "./index-33skgk1a.js";
8
8
  import {
9
9
  atomicWriteFile
10
- } from "./index-gvhvz176.js";
10
+ } from "./index-6r522srn.js";
11
11
  import {
12
12
  require_proper_lockfile
13
13
  } from "./index-7g4c7s5r.js";
@@ -628,7 +628,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
628
628
  deltas.push({ id, delta });
629
629
  }
630
630
  if (deltas.length > 0) {
631
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-bcfqz8fr.js");
631
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-vdr19mnq.js");
632
632
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
633
633
  }
634
634
  return {
@@ -1,13 +1,13 @@
1
1
  // @bun
2
+ import {
3
+ SwarmError
4
+ } from "./index-ee3x66a5.js";
2
5
  import {
3
6
  readCachedTextFile
4
7
  } from "./index-ed5ykebp.js";
5
- import {
6
- SwarmError
7
- } from "./index-z6xqpmqg.js";
8
8
  import {
9
9
  bunFile
10
- } from "./index-y111zefa.js";
10
+ } from "./index-4nt52yr9.js";
11
11
  import {
12
12
  warn
13
13
  } from "./index-zgwm4ryv.js";
@@ -9,10 +9,11 @@ import {
9
9
  } from "./index-y8552snf.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-gvhvz176.js";
12
+ } from "./index-6r522srn.js";
13
13
  import {
14
+ assertProjectRoot,
14
15
  withEvidenceLock
15
- } from "./index-5j6chvj8.js";
16
+ } from "./index-s0qc4gj6.js";
16
17
  import {
17
18
  exports_external,
18
19
  init_zod
@@ -407,6 +408,7 @@ async function readOptionalFile(filePath) {
407
408
  }
408
409
  }
409
410
  async function writeImmutableArtifact(options) {
411
+ assertProjectRoot(options.directory);
410
412
  await mkdir(path.dirname(options.filePath), { recursive: true });
411
413
  return withEvidenceLock(options.directory, options.relativeLockPath, options.agent, options.taskId, async () => {
412
414
  const desired = options.serialize(options.value);
@@ -530,6 +532,7 @@ async function admitEvaluationTask(directory, input, inputRoot = directory) {
530
532
  const relative2 = path2.join("evolution", "tasks", task.split, `${task.id}.json`);
531
533
  const admissionLock = TASK_SPLIT_REGISTRY_RELATIVE;
532
534
  const filePath = swarmPath(directory, relative2);
535
+ assertProjectRoot(directory);
533
536
  await mkdir2(path2.dirname(filePath), { recursive: true });
534
537
  return withEvidenceLock(directory, admissionLock, AGENT, task.id, async () => {
535
538
  const registryPath = swarmPath(directory, TASK_SPLIT_REGISTRY_RELATIVE);
@@ -737,6 +740,7 @@ function parseTestLedger(content) {
737
740
  async function claimHeldOutTest(directory, input) {
738
741
  const claim = TestConsumptionClaimV1Schema.parse(input);
739
742
  const filePath = swarmPath(directory, TEST_LEDGER_RELATIVE);
743
+ assertProjectRoot(directory);
740
744
  await mkdir2(path2.dirname(filePath), { recursive: true });
741
745
  return withEvidenceLock(directory, TEST_LEDGER_RELATIVE, AGENT, claim.runId, async () => {
742
746
  const content = await readOptionalFile(filePath) ?? "";
@@ -2,22 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-ffpmqx30.js";
5
+ } from "./index-jnfyxeap.js";
6
6
  import {
7
7
  computeOutcomeSignal,
8
8
  readKnowledge,
9
9
  resolveHiveKnowledgePath,
10
10
  resolveSwarmKnowledgePath,
11
11
  transactKnowledge
12
- } from "./index-cyw81ngh.js";
12
+ } from "./index-6vh6vrnk.js";
13
13
  import {
14
14
  effectiveRetrievalOutcomes,
15
15
  readKnowledgeCounterRollups
16
- } from "./index-e9tx99ds.js";
17
- import {
18
- init_knowledge_types,
19
- isActiveStatus
20
- } from "./index-bk5tah7q.js";
16
+ } from "./index-k41dn8me.js";
21
17
  import {
22
18
  advisoryWarn,
23
19
  init_warning_buffer
@@ -27,6 +23,10 @@ import {
27
23
  log,
28
24
  warn
29
25
  } from "./index-zgwm4ryv.js";
26
+ import {
27
+ init_knowledge_types,
28
+ isActiveStatus
29
+ } from "./index-bk5tah7q.js";
30
30
  import {
31
31
  __require
32
32
  } from "./index-a76rekgs.js";
@@ -490,7 +490,7 @@ var CATALOG_SOURCE = [
490
490
  category: "evidence",
491
491
  severity: "info",
492
492
  privacyClass: "sensitive",
493
- producer: "src/evidence/lock.ts:94",
493
+ producer: "src/evidence/lock.ts:99",
494
494
  consumers: NO_CONSUMERS,
495
495
  futureOwnerIssue: ISSUE_SINK,
496
496
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -504,7 +504,7 @@ var CATALOG_SOURCE = [
504
504
  category: "evidence",
505
505
  severity: "notice",
506
506
  privacyClass: "sensitive",
507
- producer: "src/evidence/lock.ts:129",
507
+ producer: "src/evidence/lock.ts:134",
508
508
  consumers: NO_CONSUMERS,
509
509
  futureOwnerIssue: ISSUE_SINK,
510
510
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -518,7 +518,7 @@ var CATALOG_SOURCE = [
518
518
  category: "evidence",
519
519
  severity: "notice",
520
520
  privacyClass: "sensitive",
521
- producer: "src/evidence/lock.ts:86",
521
+ producer: "src/evidence/lock.ts:91",
522
522
  consumers: NO_CONSUMERS,
523
523
  futureOwnerIssue: ISSUE_SINK,
524
524
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -532,7 +532,7 @@ var CATALOG_SOURCE = [
532
532
  category: "plan",
533
533
  severity: "notice",
534
534
  privacyClass: "operational",
535
- producer: "src/plan/manager.ts:335",
535
+ producer: "src/plan/manager.ts:336",
536
536
  consumers: NO_CONSUMERS,
537
537
  futureOwnerIssue: ISSUE_SINK,
538
538
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -545,7 +545,7 @@ var CATALOG_SOURCE = [
545
545
  category: "plan",
546
546
  severity: "warning",
547
547
  privacyClass: "sensitive",
548
- producer: "src/plan/manager.ts:1724",
548
+ producer: "src/plan/manager.ts:1732",
549
549
  consumers: NO_CONSUMERS,
550
550
  futureOwnerIssue: ISSUE_SINK,
551
551
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -558,7 +558,7 @@ var CATALOG_SOURCE = [
558
558
  category: "plan",
559
559
  severity: "error",
560
560
  privacyClass: "sensitive",
561
- producer: "src/plan/ledger.ts:681",
561
+ producer: "src/plan/ledger.ts:684",
562
562
  consumers: NO_CONSUMERS,
563
563
  futureOwnerIssue: ISSUE_SINK,
564
564
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,