opencode-swarm 7.164.5 → 7.164.6

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 (78) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +12 -12
  2. package/dist/background/pending-delegations.d.ts +9 -2
  3. package/dist/background/pr-review-contract.d.ts +9 -0
  4. package/dist/cli/{coder-settlement-x9wbqx46.js → coder-settlement-6qgvzx40.js} +9 -9
  5. package/dist/cli/{config-doctor-axd9d6hs.js → config-doctor-d1cbh67h.js} +2 -2
  6. package/dist/cli/{core-f1a1fk13.js → core-g0cvvj3b.js} +1 -1
  7. package/dist/cli/{curation-policy-2cy7wejw.js → curation-policy-7f8x9yg6.js} +4 -4
  8. package/dist/cli/{curator-drift-3s3q4wsy.js → curator-drift-0r0scc8r.js} +4 -4
  9. package/dist/cli/curator-llm-factory-dw7md4nr.js +66 -0
  10. package/dist/cli/{curator-b104f7a7.js → curator-q3qn89wn.js} +32 -32
  11. package/dist/cli/{evidence-summary-service-5xsjs3x3.js → evidence-summary-service-3meyb8rc.js} +13 -13
  12. package/dist/cli/{gate-evidence-ypja4156.js → gate-evidence-mhc0w7vp.js} +5 -5
  13. package/dist/cli/guardrail-explain-6cbszhw1.js +67 -0
  14. package/dist/cli/{guardrail-log-6t4e2j5f.js → guardrail-log-0nd1eqvz.js} +6 -6
  15. package/dist/cli/{guardrail-reset-es0bg976.js → guardrail-reset-mzeyd6jh.js} +32 -32
  16. package/dist/cli/{hive-promoter-yzv5g7jy.js → hive-promoter-w7g879cm.js} +32 -32
  17. package/dist/cli/{index-ea7sehgy.js → index-12xzj0hm.js} +2 -2
  18. package/dist/cli/{index-rz87mx1c.js → index-2c3np82d.js} +1 -1
  19. package/dist/cli/{index-fwebva1m.js → index-4k16cz8r.js} +6 -6
  20. package/dist/cli/{index-7rat6nyh.js → index-59hvr3f4.js} +4 -4
  21. package/dist/cli/{index-yrsag0vs.js → index-5p1tzpwh.js} +1 -1
  22. package/dist/cli/{index-aaqbhn9h.js → index-6f9yvd67.js} +2 -2
  23. package/dist/cli/{index-25jze7sf.js → index-7v3bb0h3.js} +1 -1
  24. package/dist/cli/{index-3gb7bw7h.js → index-935ww10s.js} +165 -93
  25. package/dist/cli/{index-4krjn1gn.js → index-9qvmsyab.js} +1 -1
  26. package/dist/cli/{index-aper29nf.js → index-ay9cr8tr.js} +1 -1
  27. package/dist/cli/{index-xj4kbtdw.js → index-b0m3efpf.js} +2 -2
  28. package/dist/cli/{index-tfa2p4y4.js → index-cyhw0der.js} +1 -1
  29. package/dist/cli/{index-553veay1.js → index-ew99d4y6.js} +1 -1
  30. package/dist/cli/{index-wbnyc50b.js → index-g5714mpv.js} +3 -3
  31. package/dist/cli/{index-3rrc5x4v.js → index-g94qqwnz.js} +2 -2
  32. package/dist/cli/{index-0trtcm9n.js → index-gwg7a00b.js} +7 -7
  33. package/dist/cli/{index-4jmtdtm9.js → index-hdapetg1.js} +2 -2
  34. package/dist/cli/{index-8h9nng7f.js → index-j3hsjynw.js} +4 -4
  35. package/dist/cli/{index-xm7dc14y.js → index-j645xpsm.js} +1 -1
  36. package/dist/cli/{index-rc6hec4j.js → index-jzvrvdmr.js} +4 -4
  37. package/dist/cli/{index-1q2dwv69.js → index-kvb4dwgf.js} +1 -1
  38. package/dist/cli/{index-164m995b.js → index-p56xc59p.js} +1 -1
  39. package/dist/cli/{index-50s9q4c1.js → index-pvp5tnn2.js} +1 -1
  40. package/dist/cli/{index-er8ba9be.js → index-qdbgc16x.js} +39 -6
  41. package/dist/cli/{index-q0gtgwyr.js → index-rysxqae0.js} +7 -7
  42. package/dist/cli/{index-j9a4fsxg.js → index-t1nkr7cz.js} +1 -1
  43. package/dist/cli/{index-25z5qwkk.js → index-tegp2mny.js} +1 -1
  44. package/dist/cli/{index-ywtcznk2.js → index-ty3vtqe2.js} +3 -3
  45. package/dist/cli/{index-hnjkpk57.js → index-x6zyc38w.js} +1 -1
  46. package/dist/cli/{index-maxz22c1.js → index-x76mprg2.js} +8 -8
  47. package/dist/cli/{index-ssb67ff6.js → index-y4z0rhsa.js} +34 -34
  48. package/dist/cli/{index-1f4nandk.js → index-yh8wxegw.js} +1 -1
  49. package/dist/cli/{index-4emx8hhh.js → index-ze5zyv28.js} +1 -1
  50. package/dist/cli/{index-y42pra05.js → index-zfwd65c2.js} +3 -3
  51. package/dist/cli/{index-0zbze3n6.js → index-zjg5ajf5.js} +1 -1
  52. package/dist/cli/{index-s09b63xg.js → index-zypacgjc.js} +5 -5
  53. package/dist/cli/index.js +32 -32
  54. package/dist/cli/{knowledge-escalator-evjd8g7y.js → knowledge-escalator-aca0nhqg.js} +11 -11
  55. package/dist/cli/{knowledge-events-q46z1wy6.js → knowledge-events-n5t313ht.js} +9 -9
  56. package/dist/cli/{knowledge-link-ffmzf72f.js → knowledge-link-8ea4ksda.js} +3 -3
  57. package/dist/cli/{knowledge-store-z82f5x9k.js → knowledge-store-j97ejf6a.js} +4 -4
  58. package/dist/cli/{knowledge-validator-19gbnxx2.js → knowledge-validator-01evhydg.js} +6 -6
  59. package/dist/cli/{pending-delegations-t4cqk5ha.js → pending-delegations-w73abdk3.js} +4 -4
  60. package/dist/cli/{pr-subscriptions-3enjtq0k.js → pr-subscriptions-05dzvavk.js} +4 -4
  61. package/dist/cli/{pr-workflow-gate-3ecgfsge.js → pr-workflow-gate-t0tnkx5f.js} +34 -32
  62. package/dist/cli/{runner-wqy2hbxn.js → runner-fh7t0mn9.js} +4 -4
  63. package/dist/cli/{scan-cursor-8wcy0dvf.js → scan-cursor-63zx2qd8.js} +5 -5
  64. package/dist/cli/{schema-hsw9r2tm.js → schema-t1scx08g.js} +1 -1
  65. package/dist/cli/{scope-persistence-mbwt4grd.js → scope-persistence-1a5qmchf.js} +7 -7
  66. package/dist/cli/{skill-generator-kg32a5jy.js → skill-generator-7werbwgv.js} +13 -13
  67. package/dist/cli/{worktree-collision-ownership-0rfw6kp3.js → worktree-collision-ownership-wzdzky33.js} +5 -5
  68. package/dist/cli/{worktree-isolation-qcwt09ve.js → worktree-isolation-m02ay3kg.js} +32 -32
  69. package/dist/hooks/delegation-gate.d.ts +3 -1
  70. package/dist/hooks/pr-workflow-gate.d.ts +10 -2
  71. package/dist/index.js +27 -24
  72. package/dist/pr-review/authorization.d.ts +13 -3
  73. package/dist/tools/authorize-pr-review-reentry.d.ts +5 -4
  74. package/dist/tools/dispatch-lanes.d.ts +1 -0
  75. package/dist/tools/pr-workflow-status.d.ts +2 -0
  76. package/package.json +1 -1
  77. package/dist/cli/curator-llm-factory-cv7ft0mb.js +0 -66
  78. package/dist/cli/guardrail-explain-cvha7b9p.js +0 -67
@@ -9,7 +9,7 @@ import {
9
9
  } from "./index-txdagbh7.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-4emx8hhh.js";
12
+ } from "./index-ze5zyv28.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-ea7sehgy.js";
7
+ } from "./index-12xzj0hm.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-rz87mx1c.js";
4
+ } from "./index-2c3np82d.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-tfa2p4y4.js";
7
+ } from "./index-cyhw0der.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -270,7 +270,7 @@ var SWARM_TEMP_GRAMMARS = [
270
270
  "src/tools/spec-write.ts:98",
271
271
  "src/sdd/effective-spec.ts:1149",
272
272
  "src/background/lane-output-store.ts:353",
273
- "src/background/pending-delegations.ts:1091",
273
+ "src/background/pending-delegations.ts:1114",
274
274
  "src/background/delegation-health.ts:391",
275
275
  "src/tools/submit-phase-council-verdicts.ts:458",
276
276
  "src/summaries/store.ts:46 (pre-#2035)"
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-yrsag0vs.js";
9
+ } from "./index-5p1tzpwh.js";
10
10
  import {
11
11
  GIT_BINARY_ENV_VAR,
12
12
  init_git_executable
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-j9a4fsxg.js";
5
+ } from "./index-t1nkr7cz.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
9
9
  } from "./index-556ja8an.js";
10
10
  import {
11
11
  validateSwarmPath
12
- } from "./index-rz87mx1c.js";
12
+ } from "./index-2c3np82d.js";
13
13
  import {
14
14
  bunSpawn,
15
15
  classifySpawnFailure
@@ -26,7 +26,7 @@ import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-4emx8hhh.js";
29
+ } from "./index-ze5zyv28.js";
30
30
  import {
31
31
  assertProjectRoot
32
32
  } from "./index-fxxja498.js";
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-3gb7bw7h.js";
17
+ } from "./index-935ww10s.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-ea7sehgy.js";
24
+ } from "./index-12xzj0hm.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -1,26 +1,26 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-rz87mx1c.js";
4
+ } from "./index-2c3np82d.js";
5
5
  import {
6
6
  loadPluginConfigWithMeta
7
- } from "./index-553veay1.js";
7
+ } from "./index-ew99d4y6.js";
8
8
  import {
9
9
  KnowledgeConfigSchema,
10
10
  init_schema
11
- } from "./index-yrsag0vs.js";
11
+ } from "./index-5p1tzpwh.js";
12
12
  import {
13
13
  observeReceiptTransition
14
- } from "./index-164m995b.js";
14
+ } from "./index-p56xc59p.js";
15
15
  import {
16
16
  resolveHiveEventsPath
17
17
  } from "./index-ae75rja9.js";
18
18
  import {
19
19
  resolveKnowledgeStoreDir
20
- } from "./index-25z5qwkk.js";
20
+ } from "./index-tegp2mny.js";
21
21
  import {
22
22
  atomicWriteFile
23
- } from "./index-4emx8hhh.js";
23
+ } from "./index-ze5zyv28.js";
24
24
  import {
25
25
  assertProjectRoot
26
26
  } from "./index-fxxja498.js";
@@ -2810,7 +2810,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2810
2810
  }
2811
2811
  let bumps = 0;
2812
2812
  if (deltas.length > 0) {
2813
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-z82f5x9k.js");
2813
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-j97ejf6a.js");
2814
2814
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2815
2815
  }
2816
2816
  return {
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-553veay1.js";
5
+ } from "./index-ew99d4y6.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-yrsag0vs.js";
8
+ } from "./index-5p1tzpwh.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-xm7dc14y.js";
5
+ } from "./index-j645xpsm.js";
6
6
  import {
7
7
  appendCoreEventSync
8
- } from "./index-50s9q4c1.js";
8
+ } from "./index-pvp5tnn2.js";
9
9
  import {
10
10
  unsafePathTextReason
11
11
  } from "./index-556ja8an.js";
12
12
  import {
13
13
  PlanSchema
14
- } from "./index-553veay1.js";
14
+ } from "./index-ew99d4y6.js";
15
15
  import {
16
16
  assertProjectRoot
17
17
  } from "./index-fxxja498.js";
18
18
  import {
19
19
  atomicWriteSwarmFile,
20
20
  atomicWriteSwarmFileSync
21
- } from "./index-tfa2p4y4.js";
21
+ } from "./index-cyhw0der.js";
22
22
  import {
23
23
  require_proper_lockfile
24
24
  } from "./index-7g4c7s5r.js";
@@ -4,7 +4,7 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-553veay1.js";
7
+ } from "./index-ew99d4y6.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-hnjkpk57.js";
4
+ } from "./index-x6zyc38w.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-q0gtgwyr.js";
12
+ } from "./index-rysxqae0.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-25z5qwkk.js";
15
+ } from "./index-tegp2mny.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-4emx8hhh.js";
18
+ } from "./index-ze5zyv28.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-yrsag0vs.js";
9
+ } from "./index-5p1tzpwh.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteSwarmFile
4
- } from "./index-tfa2p4y4.js";
4
+ } from "./index-cyhw0der.js";
5
5
  import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-164m995b.js";
4
+ } from "./index-p56xc59p.js";
5
5
  import {
6
6
  telemetry
7
7
  } from "./index-1dz8hv7p.js";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./index-ddszzne4.js";
5
5
  import {
6
6
  validateSwarmPath
7
- } from "./index-rz87mx1c.js";
7
+ } from "./index-2c3np82d.js";
8
8
  import {
9
9
  bunWrite
10
10
  } from "./index-r3mvsbtq.js";
11
11
  import {
12
12
  observeDelegationLedgerPressure
13
- } from "./index-164m995b.js";
13
+ } from "./index-p56xc59p.js";
14
14
  import {
15
15
  EvidenceLockTimeoutError,
16
16
  withEvidenceLock
@@ -695,6 +695,31 @@ var PrReviewLaneResultEnvelopeSchema = exports_external.object({
695
695
  });
696
696
  }
697
697
  });
698
+ var PR_REVIEW_WORKFLOW_BINDING_PREFIX = "pr-review-workflow:v1:";
699
+ var MAX_PR_REVIEW_WORKFLOW_INSTANCE_ID_CHARS = 128;
700
+ function encodePrReviewWorkflowBinding(workflowInstanceId) {
701
+ const normalized = workflowInstanceId.trim();
702
+ if (!normalized || normalized.length > MAX_PR_REVIEW_WORKFLOW_INSTANCE_ID_CHARS) {
703
+ throw new Error("invalid PR-review workflow instance id");
704
+ }
705
+ return `${PR_REVIEW_WORKFLOW_BINDING_PREFIX}${Buffer.from(normalized, "utf8").toString("base64url")}`;
706
+ }
707
+ function decodePrReviewWorkflowBinding(value) {
708
+ if (!value?.startsWith(PR_REVIEW_WORKFLOW_BINDING_PREFIX))
709
+ return null;
710
+ const encoded = value.slice(PR_REVIEW_WORKFLOW_BINDING_PREFIX.length);
711
+ if (!encoded)
712
+ return null;
713
+ try {
714
+ const decoded = Buffer.from(encoded, "base64url").toString("utf8");
715
+ if (!decoded || decoded.length > MAX_PR_REVIEW_WORKFLOW_INSTANCE_ID_CHARS || encodePrReviewWorkflowBinding(decoded) !== value) {
716
+ return null;
717
+ }
718
+ return decoded;
719
+ } catch {
720
+ return null;
721
+ }
722
+ }
698
723
  function serializedPrReviewResultReceiptBytes(value) {
699
724
  return new TextEncoder().encode(JSON.stringify(value)).byteLength;
700
725
  }
@@ -1350,7 +1375,14 @@ var RecordSchema = exports_external.object({
1350
1375
  ingestion: DelegationIngestionSchema.optional(),
1351
1376
  result: ResultSchema.optional(),
1352
1377
  completedAt: exports_external.number().optional()
1353
- }).strict();
1378
+ }).strict().superRefine((value, context) => {
1379
+ if (value.mode?.startsWith("swarm-pr-review:") && value.correlationId !== value.subagentSessionId) {
1380
+ context.addIssue({
1381
+ code: exports_external.ZodIssueCode.custom,
1382
+ message: "PR-review delegation identity requires correlationId to equal subagentSessionId"
1383
+ });
1384
+ }
1385
+ });
1354
1386
  var FallbackArtifactSchema = exports_external.object({
1355
1387
  schemaVersion: exports_external.literal(1),
1356
1388
  correlationId: exports_external.string().min(1).max(256),
@@ -2480,7 +2512,8 @@ async function publishPrReviewResultReceipt(directory, input) {
2480
2512
  }
2481
2513
  const owned = current.ownedWorkflowLanes?.length ? current.ownedWorkflowLanes : current.workflowLane ? [current.workflowLane] : [];
2482
2514
  const sameOwned = owned.length === parsed.data.ownedWorkflowLanes.length && owned.every((lane) => parsed.data.ownedWorkflowLanes.includes(lane));
2483
- if (parsed.data.workflowInstanceId !== input.expectedWorkflowInstanceId || parsed.data.workflowRevision !== input.expectedWorkflowRevision || parsed.data.baseSha !== input.expectedBaseSha || current.mode !== parsed.data.mode || current.workflowLane !== parsed.data.workflowLane || !sameOwned || current.workspace?.prHeadSha !== parsed.data.headSha || current.workspace?.gitHead !== parsed.data.headSha || (current.generation ?? 1) !== parsed.data.generation) {
2515
+ const dispatchWorkflowInstanceId = decodePrReviewWorkflowBinding(current.jobId);
2516
+ if (!dispatchWorkflowInstanceId || current.workflowGeneration === undefined || dispatchWorkflowInstanceId !== parsed.data.workflowInstanceId || current.workflowGeneration !== parsed.data.workflowRevision || parsed.data.workflowInstanceId !== input.expectedWorkflowInstanceId || parsed.data.workflowRevision !== input.expectedWorkflowRevision || parsed.data.baseSha !== input.expectedBaseSha || current.mode !== parsed.data.mode || current.workflowLane !== parsed.data.workflowLane || !sameOwned || current.workspace?.prHeadSha !== parsed.data.headSha || current.workspace?.gitHead !== parsed.data.headSha || (current.generation ?? 1) !== parsed.data.generation) {
2484
2517
  outcome = {
2485
2518
  status: "conflict",
2486
2519
  reason: "receipt does not match immutable delegation identity"
@@ -3947,7 +3980,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
3947
3980
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
3948
3981
  if (candidates.length === 0)
3949
3982
  return 0;
3950
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-x9wbqx46.js");
3983
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-6qgvzx40.js");
3951
3984
  let transferred = 0;
3952
3985
  for (const record of candidates) {
3953
3986
  try {
@@ -4304,4 +4337,4 @@ async function maintainBackgroundDelegations(directory, options = {}) {
4304
4337
  return emitObservation("ok");
4305
4338
  }
4306
4339
 
4307
- export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
4340
+ export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, decodePrReviewWorkflowBinding, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
@@ -6,17 +6,17 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-25z5qwkk.js";
9
+ } from "./index-tegp2mny.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-4emx8hhh.js";
12
+ } from "./index-ze5zyv28.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
16
16
  } from "./index-bk5tah7q.js";
17
17
  import {
18
18
  readCachedParsedFile
19
- } from "./index-tfa2p4y4.js";
19
+ } from "./index-cyhw0der.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-7g4c7s5r.js";
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-q46z1wy6.js");
716
+ } = await import("./knowledge-events-n5t313ht.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-19gbnxx2.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-hsw9r2tm.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-01evhydg.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-t1scx08g.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-ywtcznk2.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-ty3vtqe2.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-mbwt4grd.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1a5qmchf.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-4emx8hhh.js";
4
+ } from "./index-ze5zyv28.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-4jmtdtm9.js";
5
+ } from "./index-hdapetg1.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-553veay1.js";
47
+ } from "./index-ew99d4y6.js";
48
48
  import {
49
49
  AUTO_REVIEW_V8_BURN_IN_DECISION,
50
50
  AgentOverrideConfigSchema,
@@ -68,7 +68,7 @@ import {
68
68
  TurboConfigSchema,
69
69
  WorktreeIsolationConfigSchema,
70
70
  resolveAutoReviewConfig
71
- } from "./index-yrsag0vs.js";
71
+ } from "./index-5p1tzpwh.js";
72
72
  import"./index-9e6fdz2h.js";
73
73
  import"./index-4rhhvd1a.js";
74
74
  import {
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-25z5qwkk.js";
10
+ } from "./index-tegp2mny.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -3,14 +3,14 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-4krjn1gn.js";
6
+ } from "./index-9qvmsyab.js";
7
7
  import {
8
8
  DURABILITY_CLASSES,
9
9
  getProjectDb,
10
10
  projectDbExists,
11
11
  readEffectiveSpecSync,
12
12
  withDurabilityClass
13
- } from "./index-0zbze3n6.js";
13
+ } from "./index-zjg5ajf5.js";
14
14
  import {
15
15
  getWorktreeMergeFailure
16
16
  } from "./index-zsrtt42s.js";
@@ -24,7 +24,7 @@ import {
24
24
  readTaskEvidence,
25
25
  readTaskEvidenceRaw,
26
26
  sanitizeTaskId
27
- } from "./index-wbnyc50b.js";
27
+ } from "./index-g5714mpv.js";
28
28
  import {
29
29
  LedgerStaleWriterError,
30
30
  appendLedgerEvent,
@@ -44,10 +44,10 @@ import {
44
44
  replayFromLedgerWithStatus,
45
45
  takeSnapshotEvent,
46
46
  takeSnapshotWithRetry
47
- } from "./index-xm7dc14y.js";
47
+ } from "./index-j645xpsm.js";
48
48
  import {
49
49
  appendCoreEventSync
50
- } from "./index-50s9q4c1.js";
50
+ } from "./index-pvp5tnn2.js";
51
51
  import {
52
52
  init_executor,
53
53
  isUntrustedEnvKey,
@@ -63,7 +63,7 @@ import {
63
63
  estimateTokens,
64
64
  readSwarmFileAsync,
65
65
  validateSwarmPath
66
- } from "./index-rz87mx1c.js";
66
+ } from "./index-2c3np82d.js";
67
67
  import {
68
68
  bunHash,
69
69
  bunWrite,
@@ -71,7 +71,7 @@ import {
71
71
  } from "./index-r3mvsbtq.js";
72
72
  import {
73
73
  PlanSchema
74
- } from "./index-553veay1.js";
74
+ } from "./index-ew99d4y6.js";
75
75
  import {
76
76
  GIT_BINARY_ENV_VAR,
77
77
  describeGitResolution,
@@ -86,7 +86,7 @@ import {
86
86
  import {
87
87
  invalidateCachedArtifact,
88
88
  readCachedParsedFile
89
- } from "./index-tfa2p4y4.js";
89
+ } from "./index-cyhw0der.js";
90
90
  import {
91
91
  emit
92
92
  } from "./index-1dz8hv7p.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-3rrc5x4v.js";
4
+ } from "./index-g94qqwnz.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-aper29nf.js";
7
+ } from "./index-ay9cr8tr.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,56 +94,56 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-3gb7bw7h.js";
98
- import"./index-25jze7sf.js";
99
- import"./index-ea7sehgy.js";
100
- import"./index-1q2dwv69.js";
101
- import"./index-maxz22c1.js";
102
- import"./index-4krjn1gn.js";
97
+ } from "./index-935ww10s.js";
98
+ import"./index-7v3bb0h3.js";
99
+ import"./index-12xzj0hm.js";
100
+ import"./index-kvb4dwgf.js";
101
+ import"./index-x76mprg2.js";
102
+ import"./index-9qvmsyab.js";
103
103
  import"./index-txdagbh7.js";
104
104
  import"./index-3146wmgv.js";
105
- import"./index-7rat6nyh.js";
106
- import"./index-s09b63xg.js";
107
- import"./index-aaqbhn9h.js";
105
+ import"./index-59hvr3f4.js";
106
+ import"./index-zypacgjc.js";
107
+ import"./index-6f9yvd67.js";
108
108
  import"./index-70ha9e09.js";
109
- import"./index-1f4nandk.js";
110
- import"./index-0zbze3n6.js";
109
+ import"./index-yh8wxegw.js";
110
+ import"./index-zjg5ajf5.js";
111
111
  import"./index-zaab1wz9.js";
112
- import"./index-y42pra05.js";
112
+ import"./index-zfwd65c2.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-fwebva1m.js";
114
+ import"./index-4k16cz8r.js";
115
115
  import"./index-3f7hqtgg.js";
116
- import"./index-xj4kbtdw.js";
117
- import"./index-rc6hec4j.js";
118
- import"./index-hnjkpk57.js";
116
+ import"./index-b0m3efpf.js";
117
+ import"./index-jzvrvdmr.js";
118
+ import"./index-x6zyc38w.js";
119
119
  import"./index-rtry5xyf.js";
120
- import"./index-wbnyc50b.js";
121
- import"./index-j9a4fsxg.js";
122
- import"./index-er8ba9be.js";
120
+ import"./index-g5714mpv.js";
121
+ import"./index-t1nkr7cz.js";
122
+ import"./index-qdbgc16x.js";
123
123
  import"./index-ddszzne4.js";
124
- import"./index-8h9nng7f.js";
125
- import"./index-xm7dc14y.js";
126
- import"./index-50s9q4c1.js";
124
+ import"./index-j3hsjynw.js";
125
+ import"./index-j645xpsm.js";
126
+ import"./index-pvp5tnn2.js";
127
127
  import"./index-556ja8an.js";
128
128
  import"./index-4fwbbad3.js";
129
129
  import"./index-b43rt5ph.js";
130
130
  import"./index-q7sjgr1y.js";
131
- import"./index-q0gtgwyr.js";
132
- import"./index-0trtcm9n.js";
133
- import"./index-4jmtdtm9.js";
131
+ import"./index-rysxqae0.js";
132
+ import"./index-gwg7a00b.js";
133
+ import"./index-hdapetg1.js";
134
134
  import"./index-zg9d392c.js";
135
135
  import"./index-n832052r.js";
136
- import"./index-rz87mx1c.js";
136
+ import"./index-2c3np82d.js";
137
137
  import"./index-z6xqpmqg.js";
138
138
  import"./index-r3mvsbtq.js";
139
- import"./index-553veay1.js";
139
+ import"./index-ew99d4y6.js";
140
140
  import {
141
141
  init_schema,
142
142
  stripKnownSwarmPrefix
143
- } from "./index-yrsag0vs.js";
143
+ } from "./index-5p1tzpwh.js";
144
144
  import"./index-9e6fdz2h.js";
145
145
  import"./index-4rhhvd1a.js";
146
- import"./index-164m995b.js";
146
+ import"./index-p56xc59p.js";
147
147
  import {
148
148
  AGENT_TOOL_MAP,
149
149
  ORCHESTRATOR_NAME,
@@ -151,11 +151,11 @@ import {
151
151
  } from "./index-m1nrd3yd.js";
152
152
  import"./index-zjygnfay.js";
153
153
  import"./index-ae75rja9.js";
154
- import"./index-25z5qwkk.js";
155
- import"./index-4emx8hhh.js";
154
+ import"./index-tegp2mny.js";
155
+ import"./index-ze5zyv28.js";
156
156
  import"./index-bk5tah7q.js";
157
157
  import"./index-fxxja498.js";
158
- import"./index-tfa2p4y4.js";
158
+ import"./index-cyhw0der.js";
159
159
  import"./index-1dz8hv7p.js";
160
160
  import"./index-7g4c7s5r.js";
161
161
  import"./index-bpmtbmy9.js";
@@ -6,7 +6,7 @@ import {
6
6
  canonicalProjectKey,
7
7
  classifyDbWriteError,
8
8
  getProjectDb
9
- } from "./index-0zbze3n6.js";
9
+ } from "./index-zjg5ajf5.js";
10
10
  import {
11
11
  init_logger,
12
12
  log,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-fxxja498.js";
5
5
  import {
6
6
  atomicWriteFileAnyRoot
7
- } from "./index-tfa2p4y4.js";
7
+ } from "./index-cyhw0der.js";
8
8
 
9
9
  // src/evidence/task-file.ts
10
10
  import * as path from "path";