opencode-swarm 7.186.0 → 7.186.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 (98) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +3 -3
  2. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +19 -1
  3. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  4. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  5. package/dist/background/pr-review-trigger-contract.d.ts +8 -0
  6. package/dist/cli/{auto-checkpoint-wd99h2bt.js → auto-checkpoint-c7ykm2vt.js} +8 -8
  7. package/dist/cli/{checkpoint-kjzwsxw2.js → checkpoint-jafvsq23.js} +16 -16
  8. package/dist/cli/{coder-settlement-kp3ph56n.js → coder-settlement-n00djebn.js} +12 -12
  9. package/dist/cli/{config-doctor-28ggsms8.js → config-doctor-17yft6hp.js} +2 -2
  10. package/dist/cli/{core-pj2fz34e.js → core-trk38w53.js} +3 -3
  11. package/dist/cli/{curation-policy-ytzwb080.js → curation-policy-1zdsb3h0.js} +6 -6
  12. package/dist/cli/{curator-drift-q84jn9cc.js → curator-drift-b6cjgsq3.js} +8 -8
  13. package/dist/cli/curator-llm-factory-a1hy89ea.js +81 -0
  14. package/dist/cli/{curator-r0jfc7xw.js → curator-yvp2e7tk.js} +41 -41
  15. package/dist/cli/{evidence-summary-service-rsectw2t.js → evidence-summary-service-9vh0t896.js} +19 -19
  16. package/dist/cli/{gate-evidence-mpwhcm2s.js → gate-evidence-tbjsm6r8.js} +7 -7
  17. package/dist/cli/guardrail-explain-a16eabym.js +82 -0
  18. package/dist/cli/{guardrail-log-r8zmh4rd.js → guardrail-log-4kj5e7da.js} +7 -7
  19. package/dist/cli/{guardrail-reset-11cvwgbe.js → guardrail-reset-fstvd42q.js} +41 -41
  20. package/dist/cli/{hive-promoter-0vg8w79a.js → hive-promoter-68prvn82.js} +41 -41
  21. package/dist/cli/{index-w6w6ny06.js → index-1f7mkb7p.js} +58 -58
  22. package/dist/cli/{index-j972ags2.js → index-1m3502g5.js} +7 -7
  23. package/dist/cli/{index-m94gfe82.js → index-27yspj61.js} +7 -7
  24. package/dist/cli/{index-vk3ngryj.js → index-3h80xyek.js} +5 -5
  25. package/dist/cli/{index-7xt5m1cz.js → index-3w0v6n9x.js} +5 -5
  26. package/dist/cli/{index-6sffjy74.js → index-4tpwp24b.js} +2 -2
  27. package/dist/cli/{index-nxjm66qb.js → index-52s3tsmj.js} +2 -2
  28. package/dist/cli/{index-p9m1nhds.js → index-5cybjkj0.js} +3 -3
  29. package/dist/cli/{index-qyjyd3ej.js → index-5qbm61fh.js} +1 -1
  30. package/dist/cli/{index-s68z4a39.js → index-5z1xrkaa.js} +2 -2
  31. package/dist/cli/{index-hvmfa7m8.js → index-70m4cxys.js} +3 -3
  32. package/dist/cli/{index-zxck9sr7.js → index-8ehsv9yw.js} +1 -1
  33. package/dist/cli/{index-wmazt588.js → index-8n2emawn.js} +2 -2
  34. package/dist/cli/{index-jxd67x6z.js → index-8r96zar7.js} +1 -1
  35. package/dist/cli/{index-8nsjefpc.js → index-98hksf1k.js} +1 -1
  36. package/dist/cli/{index-p6bvzgp2.js → index-a07nc99k.js} +3 -3
  37. package/dist/cli/{index-bgpq7wn2.js → index-b58k1wy8.js} +220 -143
  38. package/dist/cli/{index-xgdypzch.js → index-cbpggzdm.js} +2 -2
  39. package/dist/cli/{index-kv3n7g8w.js → index-d7kz64yr.js} +2 -2
  40. package/dist/cli/{index-5pa0e0k3.js → index-f2mtzrsr.js} +4 -4
  41. package/dist/cli/{index-4dwhfbed.js → index-fxvthwwk.js} +43 -43
  42. package/dist/cli/{index-d7mcdyqb.js → index-g23nwtfq.js} +2 -2
  43. package/dist/cli/{index-yj7etak0.js → index-g319bdeh.js} +2 -2
  44. package/dist/cli/{index-amamkcpy.js → index-g7rp7200.js} +5 -5
  45. package/dist/cli/{index-nen885g8.js → index-gvch83kc.js} +1 -1
  46. package/dist/cli/{index-62akgg9d.js → index-h8pb617g.js} +2 -2
  47. package/dist/cli/{index-6ndc8cmn.js → index-hdeqj1k4.js} +1 -1
  48. package/dist/cli/{index-afmyp3kt.js → index-j2m9q6w1.js} +1 -1
  49. package/dist/cli/{index-a6h5arqs.js → index-js4spqjf.js} +4 -4
  50. package/dist/cli/{index-151bdyf9.js → index-k3gz8b6j.js} +7 -7
  51. package/dist/cli/{index-373880cv.js → index-kbcx6rqh.js} +2 -2
  52. package/dist/cli/{index-74yxwf8y.js → index-mdxqv3r9.js} +1 -1
  53. package/dist/cli/{index-9y6cyc7z.js → index-mqc6phah.js} +4 -4
  54. package/dist/cli/{index-a1tpq5zr.js → index-msejg9hk.js} +1 -1
  55. package/dist/cli/{index-bajvxmnb.js → index-n8aep8en.js} +5 -5
  56. package/dist/cli/{index-fp4hxcsy.js → index-nq6evkky.js} +4 -4
  57. package/dist/cli/{index-22f1ek6k.js → index-pppczpa6.js} +41 -41
  58. package/dist/cli/{index-9g61bfj9.js → index-q4vf9k47.js} +1 -1
  59. package/dist/cli/{index-w2b8qq6d.js → index-qd5pnbz9.js} +8 -8
  60. package/dist/cli/{index-wkv1qdb0.js → index-s5ek7jdr.js} +11 -11
  61. package/dist/cli/{index-1fc5aj26.js → index-sqksezk4.js} +1 -1
  62. package/dist/cli/{index-9th8npp7.js → index-tnt9dnvm.js} +7 -7
  63. package/dist/cli/{index-6bfcsczm.js → index-w3fyzw3s.js} +1 -1
  64. package/dist/cli/{index-4fd28s8v.js → index-y8prb5a1.js} +3 -3
  65. package/dist/cli/{index-6cjpmvpa.js → index-y9wsfekf.js} +1 -1
  66. package/dist/cli/{index-vqz0avr4.js → index-zyx7p0kb.js} +2 -2
  67. package/dist/cli/index.js +42 -42
  68. package/dist/cli/{knowledge-escalator-7xcd0zea.js → knowledge-escalator-7xdvw9qy.js} +13 -13
  69. package/dist/cli/{knowledge-events-e4ts8y2v.js → knowledge-events-hp5yr9dm.js} +11 -11
  70. package/dist/cli/{knowledge-link-dv78fb9g.js → knowledge-link-5jhded41.js} +5 -5
  71. package/dist/cli/{knowledge-store-mmeqmjwj.js → knowledge-store-7erepd4t.js} +6 -6
  72. package/dist/cli/{knowledge-validator-w2ttgxyj.js → knowledge-validator-ejdh74qq.js} +8 -8
  73. package/dist/cli/{mcp-5dmm4fk2.js → mcp-msrbe1bx.js} +1 -1
  74. package/dist/cli/{model-preflight-kap3zp3g.js → model-preflight-gsesc142.js} +41 -41
  75. package/dist/cli/{pending-delegations-q3sj608s.js → pending-delegations-97pcsaak.js} +12 -12
  76. package/dist/cli/{pr-subscriptions-qw4wjv66.js → pr-subscriptions-p0dm693y.js} +12 -12
  77. package/dist/cli/{pr-workflow-gate-tdj50p2g.js → pr-workflow-gate-y122hbd1.js} +43 -41
  78. package/dist/cli/{runner-tb3eppeg.js → runner-fbmancth.js} +6 -6
  79. package/dist/cli/{scan-cursor-fgecb928.js → scan-cursor-yp2kvnjz.js} +7 -7
  80. package/dist/cli/{schema-zrcgm9d9.js → schema-0jatfw66.js} +1 -1
  81. package/dist/cli/{scope-persistence-08xd3kyb.js → scope-persistence-hqw7br2s.js} +15 -15
  82. package/dist/cli/{server-kng2nggc.js → server-kyqq4pan.js} +41 -41
  83. package/dist/cli/{skill-generator-dztn1ctf.js → skill-generator-0hbmdy2p.js} +15 -15
  84. package/dist/cli/{snapshot-coordination-init-5q0hac3d.js → snapshot-coordination-init-akt1wad4.js} +41 -41
  85. package/dist/cli/{speckit-checkoff-hhsy83m9.js → speckit-checkoff-rnfy30qb.js} +4 -4
  86. package/dist/cli/{telemetry-n6y2sjhg.js → telemetry-3bjvjbcp.js} +1 -1
  87. package/dist/cli/{workspace-snapshot-kcfkk3a2.js → workspace-snapshot-hcgztg7w.js} +3 -3
  88. package/dist/cli/{worktree-collision-ownership-e2cqcmnw.js → worktree-collision-ownership-q4604rmc.js} +13 -13
  89. package/dist/cli/{worktree-isolation-refd2n16.js → worktree-isolation-5bafpzf9.js} +41 -41
  90. package/dist/hooks/pr-workflow-gate.d.ts +67 -0
  91. package/dist/index.d.ts +21 -0
  92. package/dist/index.js +17 -17
  93. package/dist/review/evidence.d.ts +8 -4
  94. package/dist/services/cost-accounting.d.ts +21 -12
  95. package/dist/tools/write-pr-review-trigger-eval.d.ts +2 -1
  96. package/package.json +1 -1
  97. package/dist/cli/curator-llm-factory-13h02244.js +0 -81
  98. package/dist/cli/guardrail-explain-njv3pnsw.js +0 -82
@@ -8,13 +8,13 @@ import {
8
8
  protectedRoots,
9
9
  redactDecisionLineForArchive,
10
10
  stableCanonicalStringify
11
- } from "./index-4fd28s8v.js";
11
+ } from "./index-y8prb5a1.js";
12
12
  import {
13
13
  detectStraySwarmDirs,
14
14
  readDoctorArtifact,
15
15
  removeStraySwarmDir,
16
16
  runConfigDoctor
17
- } from "./index-jxd67x6z.js";
17
+ } from "./index-8r96zar7.js";
18
18
  import {
19
19
  archiveEvidence,
20
20
  checkRequirementCoverage,
@@ -26,7 +26,7 @@ import {
26
26
  sanitizeTaskId,
27
27
  saveEvidence,
28
28
  validateProjectRoot
29
- } from "./index-amamkcpy.js";
29
+ } from "./index-g7rp7200.js";
30
30
  import {
31
31
  LANGUAGE_REGISTRY,
32
32
  _internals as _internals3,
@@ -44,7 +44,7 @@ import {
44
44
  runEvaluation,
45
45
  runExternalTool,
46
46
  withDisposableWorktree
47
- } from "./index-1fc5aj26.js";
47
+ } from "./index-sqksezk4.js";
48
48
  import {
49
49
  EvaluationTaskV1Schema,
50
50
  GateAuditManifestV1Schema,
@@ -61,7 +61,7 @@ import {
61
61
  saveGateAuditResult,
62
62
  savePromotionDecision,
63
63
  saveTaskSetSnapshot
64
- } from "./index-62akgg9d.js";
64
+ } from "./index-h8pb617g.js";
65
65
  import {
66
66
  canonicalHash,
67
67
  canonicalJson,
@@ -77,7 +77,7 @@ import {
77
77
  alreadyCuratedThisGeneration,
78
78
  claimNextScanBatch,
79
79
  resolveCohortId
80
- } from "./index-wmazt588.js";
80
+ } from "./index-8n2emawn.js";
81
81
  import {
82
82
  CURATOR_CONSOLIDATION_PROMPT,
83
83
  CURATOR_INIT_PROMPT,
@@ -96,13 +96,13 @@ import {
96
96
  getGroupCommitWriter,
97
97
  importLegacyJsonl,
98
98
  readPriorDriftReports
99
- } from "./index-hvmfa7m8.js";
99
+ } from "./index-70m4cxys.js";
100
100
  import {
101
101
  assertNoUnsettledCoderDispatch,
102
102
  listCoderSettlementWalStates,
103
103
  recoverCoderSettlement,
104
104
  recoverStaleCoderSettlements
105
- } from "./index-151bdyf9.js";
105
+ } from "./index-k3gz8b6j.js";
106
106
  import {
107
107
  BUNDLED_PROJECT_SKILL_ROOT,
108
108
  DEFAULT_SKILL_MIN_CONFIDENCE,
@@ -123,11 +123,11 @@ import {
123
123
  retireSkill,
124
124
  selectCandidateEntries,
125
125
  syncBundledProjectSkillsIfMissingAsync
126
- } from "./index-9y6cyc7z.js";
126
+ } from "./index-mqc6phah.js";
127
127
  import {
128
128
  buildEscalationBriefing,
129
129
  readRecentEscalations
130
- } from "./index-7xt5m1cz.js";
130
+ } from "./index-3w0v6n9x.js";
131
131
  import {
132
132
  parsePorcelainV2Snapshot,
133
133
  resolveCommitCountSince,
@@ -155,7 +155,7 @@ import {
155
155
  resolveRemoteUrlIdentity,
156
156
  resolveRemoteUrlIdentityAsync,
157
157
  switchPrFeedbackTrackingCandidateAsync
158
- } from "./index-s68z4a39.js";
158
+ } from "./index-5z1xrkaa.js";
159
159
  import {
160
160
  buildCorrelationId,
161
161
  buildIssueUrl,
@@ -176,12 +176,12 @@ import {
176
176
  sweepStale,
177
177
  unsubscribe,
178
178
  updateSnapshot
179
- } from "./index-j972ags2.js";
179
+ } from "./index-1m3502g5.js";
180
180
  import {
181
181
  WORKTREE_LIFECYCLE_LOCK_FILE,
182
182
  recordWorktreeProvisioningOwner,
183
183
  removeWorktreeProvisioningOwner
184
- } from "./index-vqz0avr4.js";
184
+ } from "./index-zyx7p0kb.js";
185
185
  import {
186
186
  getLanguageForExtension
187
187
  } from "./index-pt7h91zc.js";
@@ -194,7 +194,7 @@ import {
194
194
  checkpoint,
195
195
  createSwarmTool,
196
196
  resolveWorkingDirectory
197
- } from "./index-a6h5arqs.js";
197
+ } from "./index-js4spqjf.js";
198
198
  import {
199
199
  MAX_TRANSIENT_RETRIES,
200
200
  PlanRecoverySupersededError,
@@ -222,7 +222,7 @@ import {
222
222
  transientBackoff,
223
223
  updateTaskStatus,
224
224
  withPlanLifecycleLock
225
- } from "./index-wkv1qdb0.js";
225
+ } from "./index-s5ek7jdr.js";
226
226
  import {
227
227
  containsControlChars,
228
228
  containsPathTraversal,
@@ -238,7 +238,7 @@ import {
238
238
  resolveSpeckitProjection,
239
239
  validateSpeckit,
240
240
  writeProjectedSpecSync
241
- } from "./index-6ndc8cmn.js";
241
+ } from "./index-hdeqj1k4.js";
242
242
  import {
243
243
  clearWorktreeMergeStatus,
244
244
  getAllWorktreeMergeFailures,
@@ -269,7 +269,7 @@ import {
269
269
  transitionTaskWorkflowEvidenceWithStatus,
270
270
  withTaskEvidenceTransaction,
271
271
  writeWorkflowWalFile
272
- } from "./index-fp4hxcsy.js";
272
+ } from "./index-nq6evkky.js";
273
273
  import {
274
274
  isPathUnderSwarmWorktreeBase,
275
275
  listLiveLaneOwners,
@@ -278,7 +278,7 @@ import {
278
278
  recordLiveLaneOwner,
279
279
  removeWorktree,
280
280
  resolveWorktreeBaseDir
281
- } from "./index-p9m1nhds.js";
281
+ } from "./index-5cybjkj0.js";
282
282
  import {
283
283
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
284
284
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -312,7 +312,7 @@ import {
312
312
  scanBackgroundCoderReservationsForAdmission,
313
313
  scanDelegationsForRecovery,
314
314
  sweepStaleDelegations
315
- } from "./index-9th8npp7.js";
315
+ } from "./index-tnt9dnvm.js";
316
316
  import {
317
317
  MAX_EVENT_LOG_ENTRIES,
318
318
  _internals,
@@ -331,7 +331,7 @@ import {
331
331
  recordKnowledgeEvent,
332
332
  recordPhaseCloseIntent,
333
333
  resolveKnowledgeEventsPath
334
- } from "./index-w2b8qq6d.js";
334
+ } from "./index-qd5pnbz9.js";
335
335
  import {
336
336
  estimateCharsForTokens,
337
337
  estimateTokens,
@@ -339,7 +339,7 @@ import {
339
339
  readSwarmFileAsync,
340
340
  safeHook,
341
341
  validateSwarmPath
342
- } from "./index-afmyp3kt.js";
342
+ } from "./index-j2m9q6w1.js";
343
343
  import {
344
344
  bunFile,
345
345
  bunSpawn,
@@ -359,18 +359,18 @@ import {
359
359
  validateActionableFields,
360
360
  validateLesson,
361
361
  validateSkillPath
362
- } from "./index-5pa0e0k3.js";
362
+ } from "./index-f2mtzrsr.js";
363
363
  import {
364
364
  MAX_CURATION_PROPOSALS,
365
365
  authorizeCuration,
366
366
  buildConfigFingerprintInput
367
- } from "./index-8nsjefpc.js";
367
+ } from "./index-98hksf1k.js";
368
368
  import {
369
369
  cohortConfigFingerprint
370
370
  } from "./index-rtry5xyf.js";
371
371
  import {
372
372
  resolveWorktreeIsolationConfig
373
- } from "./index-d7mcdyqb.js";
373
+ } from "./index-g23nwtfq.js";
374
374
  import {
375
375
  RetrospectiveEvidenceSchema
376
376
  } from "./index-frcemc0b.js";
@@ -382,7 +382,7 @@ import {
382
382
  clearScopeBindings,
383
383
  readAuthoritativeScopeBindingSet,
384
384
  readDeclaredScopeFilesFromBindings
385
- } from "./index-vk3ngryj.js";
385
+ } from "./index-3h80xyek.js";
386
386
  import {
387
387
  clearPlanLedgerForReset,
388
388
  computePlanStructureHash,
@@ -398,7 +398,7 @@ import {
398
398
  replayFromLedgerWithStatus,
399
399
  resolvePlanningProfile,
400
400
  takeSnapshotEvent
401
- } from "./index-bajvxmnb.js";
401
+ } from "./index-n8aep8en.js";
402
402
  import {
403
403
  CORE_EVENT_LOCKED,
404
404
  appendCoreEventSync,
@@ -408,7 +408,7 @@ import {
408
408
  hasSpecDriftAuditEvent,
409
409
  hasTaskRepairAuditEvent,
410
410
  readCoreEvents
411
- } from "./index-373880cv.js";
411
+ } from "./index-kbcx6rqh.js";
412
412
  import {
413
413
  DEFAULT_QA_GATES,
414
414
  computeProfileHash,
@@ -416,7 +416,7 @@ import {
416
416
  getEffectiveGates,
417
417
  getProfileLookupForIdentity,
418
418
  setGatesForIdentity
419
- } from "./index-9g61bfj9.js";
419
+ } from "./index-q4vf9k47.js";
420
420
  import {
421
421
  MAX_COORDINATION_STATE_LIST_ROWS,
422
422
  deleteCoordinationImports,
@@ -427,7 +427,7 @@ import {
427
427
  listCoordinationStates,
428
428
  transitionCoordinationState,
429
429
  withCoordinationTransaction
430
- } from "./index-nen885g8.js";
430
+ } from "./index-gvch83kc.js";
431
431
  import {
432
432
  DURABILITY_CLASSES,
433
433
  closeAllProjectDbs,
@@ -436,7 +436,7 @@ import {
436
436
  projectDbExists,
437
437
  projectDbPath,
438
438
  withImmediateTransaction
439
- } from "./index-74yxwf8y.js";
439
+ } from "./index-mdxqv3r9.js";
440
440
  import {
441
441
  canonicalExistingFilesystemPath,
442
442
  canonicalPathForFutureIo,
@@ -456,7 +456,7 @@ import {
456
456
  observeModelLimitResolution,
457
457
  observeStoreHealth,
458
458
  readLearningHealth
459
- } from "./index-xgdypzch.js";
459
+ } from "./index-cbpggzdm.js";
460
460
  import {
461
461
  appendKnowledge,
462
462
  appendRejectedLesson,
@@ -487,7 +487,7 @@ import {
487
487
  transactFile,
488
488
  transactKnowledge,
489
489
  wordBigrams
490
- } from "./index-m94gfe82.js";
490
+ } from "./index-27yspj61.js";
491
491
  import {
492
492
  readTailJsonl,
493
493
  readTailJsonlDetailed,
@@ -508,13 +508,13 @@ import {
508
508
  resolveLinkDir,
509
509
  sanitizeLinkId,
510
510
  writeLinkPointer
511
- } from "./index-zxck9sr7.js";
511
+ } from "./index-8ehsv9yw.js";
512
512
  import {
513
513
  atomicWriteFile
514
- } from "./index-6sffjy74.js";
514
+ } from "./index-4tpwp24b.js";
515
515
  import {
516
516
  withEvidenceLock
517
- } from "./index-6cjpmvpa.js";
517
+ } from "./index-y9wsfekf.js";
518
518
  import {
519
519
  assertProjectRoot
520
520
  } from "./index-t7hmqgjy.js";
@@ -528,7 +528,7 @@ import {
528
528
  pseudonymousRef,
529
529
  resolveLineageSalt,
530
530
  telemetry
531
- } from "./index-w6w6ny06.js";
531
+ } from "./index-1f7mkb7p.js";
532
532
  import {
533
533
  SESSION_KEY_SEPARATOR,
534
534
  canonicalRootKey,
@@ -554,7 +554,7 @@ import {
554
554
  matchTempGrammar,
555
555
  parseTargetBasename,
556
556
  resetSwarmArtifactCache
557
- } from "./index-yj7etak0.js";
557
+ } from "./index-g319bdeh.js";
558
558
  import {
559
559
  PlanSchema,
560
560
  TaskStatusSchema,
@@ -568,7 +568,7 @@ import {
568
568
  loadGateOverrides,
569
569
  loadPluginConfig,
570
570
  loadPluginConfigWithMeta
571
- } from "./index-a1tpq5zr.js";
571
+ } from "./index-msejg9hk.js";
572
572
  import {
573
573
  addDeferredWarning,
574
574
  advisoryWarn,
@@ -600,7 +600,7 @@ import {
600
600
  resolveContextWindow,
601
601
  resolveGeneratedAgentRole,
602
602
  stripKnownSwarmPrefix
603
- } from "./index-qyjyd3ej.js";
603
+ } from "./index-5qbm61fh.js";
604
604
  import {
605
605
  AGENT_TOOL_MAP,
606
606
  ALL_AGENT_NAMES,
@@ -3389,7 +3389,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3389
3389
  return null;
3390
3390
  throw error2;
3391
3391
  }
3392
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-tdj50p2g.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3392
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-y122hbd1.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3393
3393
  if (!legacy)
3394
3394
  return null;
3395
3395
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3476,7 +3476,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3476
3476
  let recoveryState = null;
3477
3477
  if (!currentAuthoritative) {
3478
3478
  if (options.allowSalvagedRead) {
3479
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-tdj50p2g.js");
3479
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-y122hbd1.js");
3480
3480
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3481
3481
  }
3482
3482
  if (!recoveryState) {
@@ -15039,7 +15039,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
15039
15039
  return extracted === expectedSessionId;
15040
15040
  }
15041
15041
  async function inspectStandardWorktreeCollisionOwnership(identity) {
15042
- const collisionOwnership = await import("./worktree-collision-ownership-e2cqcmnw.js");
15042
+ const collisionOwnership = await import("./worktree-collision-ownership-q4604rmc.js");
15043
15043
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
15044
15044
  }
15045
15045
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -15465,7 +15465,7 @@ async function precreateStandardWorktreeSession(args) {
15465
15465
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
15466
15466
  if (laneProfile) {
15467
15467
  try {
15468
- const { writeLaneProfileToDiskReal } = await import("./core-pj2fz34e.js");
15468
+ const { writeLaneProfileToDiskReal } = await import("./core-trk38w53.js");
15469
15469
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
15470
15470
  } catch {}
15471
15471
  }
@@ -16444,7 +16444,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
16444
16444
  }
16445
16445
  clearWorktreeMergeStatus(statusKey);
16446
16446
  try {
16447
- const { removeLaneProfileFromDiskReal } = await import("./core-pj2fz34e.js");
16447
+ const { removeLaneProfileFromDiskReal } = await import("./core-trk38w53.js");
16448
16448
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
16449
16449
  } catch {}
16450
16450
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -24083,7 +24083,7 @@ function clearCriticalShownIds(sessionID) {
24083
24083
  async function rehydratePrSubscriptions(sessionID, directory) {
24084
24084
  const map = new Map;
24085
24085
  try {
24086
- const { listActive: listActive2 } = await import("./pr-subscriptions-qw4wjv66.js");
24086
+ const { listActive: listActive2 } = await import("./pr-subscriptions-p0dm693y.js");
24087
24087
  const records = await listActive2(directory);
24088
24088
  for (const record of records) {
24089
24089
  if (record.sessionID !== sessionID)
@@ -24427,6 +24427,16 @@ var PrReviewValidationBatchRecordSchema = exports_external.object({
24427
24427
  }).strict()).min(1),
24428
24428
  validatedAt: exports_external.string().min(1)
24429
24429
  }).strict();
24430
+ var PrReviewMicroFamilyDispatchRecordSchema = exports_external.object({
24431
+ batchId: exports_external.string().min(1),
24432
+ prHeadSha: exports_external.string().min(1),
24433
+ lanes: exports_external.array(exports_external.object({
24434
+ laneId: exports_external.string().min(1),
24435
+ workflowLane: exports_external.string().min(1),
24436
+ ownedWorkflowLanes: exports_external.array(exports_external.string().min(1)).min(1).optional()
24437
+ }).strict()).min(1),
24438
+ admittedAt: exports_external.string().min(1)
24439
+ }).strict();
24430
24440
  var PrReviewBatchCoherenceRecordSchema = exports_external.object({
24431
24441
  validatedInventory: exports_external.array(exports_external.string().min(1)),
24432
24442
  reviewerItemBindings: exports_external.record(exports_external.string().min(1), exports_external.string().regex(/^[0-9a-f]{64}$/)).optional(),
@@ -24495,6 +24505,7 @@ var PrWorkflowGateStateSchema = exports_external.object({
24495
24505
  prReviewResilience: PrReviewResilienceStateRecordSchema.optional(),
24496
24506
  prReviewContractRetryDimensions: exports_external.array(PrReviewBaseDimensionIdSchema).max(PR_REVIEW_BASE_DIMENSION_IDS.length).optional(),
24497
24507
  prReviewTriggerLedger: exports_external.array(PrReviewInlineTriggerRowSchema).length(PR_REVIEW_REQUIRED_TRIGGER_IDS.length).optional(),
24508
+ prReviewMicroFamilyDispatches: exports_external.array(PrReviewMicroFamilyDispatchRecordSchema).max(MAX_WORKFLOW_BATCHES).optional(),
24498
24509
  prReviewTriggerEvalPath: exports_external.string().min(1).optional(),
24499
24510
  prReviewTriggerEvalRunId: exports_external.string().min(1).optional(),
24500
24511
  prReviewValidationBatches: exports_external.array(PrReviewValidationBatchRecordSchema).max(MAX_WORKFLOW_BATCHES).optional(),
@@ -26917,6 +26928,36 @@ async function assertPrReviewBaseCoverageSettled2(directory, sessionID, gateCont
26917
26928
  settlement: settled.settlement
26918
26929
  };
26919
26930
  }
26931
+ async function recordPrReviewMicroFamilyDispatch(directory, sessionID, lanes, options) {
26932
+ const state = await bindPrWorkflowHead(directory, sessionID, options.prHeadSha);
26933
+ if (state.mode !== "PR_REVIEW")
26934
+ throw wrongModeError(state, "PR_REVIEW");
26935
+ const batchId = normalizeBatchId(options.batchId);
26936
+ const previous = state.prReviewMicroFamilyDispatches ?? [];
26937
+ if (previous.some((record2) => record2.batchId === batchId)) {
26938
+ return state;
26939
+ }
26940
+ if (previous.length >= MAX_WORKFLOW_BATCHES) {
26941
+ throw new Error(`BLOCKED: PR_REVIEW micro-family dispatch ledger limit reached (${MAX_WORKFLOW_BATCHES} recorded acknowledgments). Nothing was appended and no lane was launched, so re-issuing this dispatch call is safe once the ledger has room. A healthy run records at most ~${11 * (1 + 2)} acknowledgments (11 families x initial dispatch + 2 retries), so reaching the cap indicates a dispatch loop. Recovery: let the active workflow settle or restart with abort_pr_workflow (kind "recovery").`);
26942
+ }
26943
+ const record = {
26944
+ batchId,
26945
+ prHeadSha: options.prHeadSha,
26946
+ lanes: normalizeWorkflowLanes(lanes).map((lane) => ({
26947
+ laneId: lane.laneId,
26948
+ workflowLane: lane.workflowLane,
26949
+ ...lane.ownedWorkflowLanes?.length ? { ownedWorkflowLanes: lane.ownedWorkflowLanes } : {}
26950
+ })),
26951
+ admittedAt: isoNow()
26952
+ };
26953
+ const nextState = {
26954
+ ...state,
26955
+ updatedAt: isoNow(),
26956
+ prReviewMicroFamilyDispatches: [...previous, record]
26957
+ };
26958
+ await persistState(directory, nextState);
26959
+ return nextState;
26960
+ }
26920
26961
  async function recordPrReviewValidationBatch(directory, sessionID, phase, lanes, options) {
26921
26962
  let state = await bindPrWorkflowHead(directory, sessionID, options.prHeadSha);
26922
26963
  if (state.mode !== "PR_REVIEW")
@@ -33885,12 +33926,27 @@ import * as fs20 from "fs";
33885
33926
  init_logger();
33886
33927
  import * as os2 from "os";
33887
33928
  import * as path32 from "path";
33888
- var ZERO_USAGE = {
33889
- tokens_input: 0,
33890
- tokens_output: 0,
33891
- tokens_reasoning: 0,
33892
- tokens_cache: 0
33929
+ var UNKNOWN_USAGE = {
33930
+ tokens_input: null,
33931
+ tokens_output: null,
33932
+ tokens_reasoning: null,
33933
+ tokens_cache: null
33893
33934
  };
33935
+ function maxKnownAxis(a, b) {
33936
+ if (a === null)
33937
+ return b;
33938
+ if (b === null)
33939
+ return a;
33940
+ return Math.max(a, b);
33941
+ }
33942
+ function sumKnownAxis(total, value) {
33943
+ if (value === null)
33944
+ return total;
33945
+ return total === null ? value : total + value;
33946
+ }
33947
+ function isUnknownUsage(usage) {
33948
+ return usage.tokens_input === null && usage.tokens_output === null && usage.tokens_reasoning === null && usage.tokens_cache === null;
33949
+ }
33894
33950
  var MAX_EVIDENCE_ITEMS = 8;
33895
33951
  var MAX_COST_STRING_LENGTH = 128;
33896
33952
  var MAX_PROVIDER_REPORTED_COST_USD = 1e9;
@@ -33899,7 +33955,7 @@ var BUNDLED_MODEL_PRICING = {};
33899
33955
  function buildDelegationCostFields(input = {}) {
33900
33956
  const evidence2 = extractCostEvidence(input.raw, input);
33901
33957
  const projection = projectCostEvidence(evidence2);
33902
- const usage = evidence2.reduce(mergeUsage, { ...ZERO_USAGE });
33958
+ const usage = evidence2.reduce(mergeUsage, { ...UNKNOWN_USAGE });
33903
33959
  const model = evidence2.find((item) => item.model)?.model ?? input.model;
33904
33960
  return {
33905
33961
  ...usage,
@@ -33929,7 +33985,7 @@ function extractCostEvidence(raw, input = {}) {
33929
33985
  model: candidate.model
33930
33986
  });
33931
33987
  }
33932
- const usage = mergeUsage(candidates.reduce(mergeUsage, { ...ZERO_USAGE }), readLegacyUsage(raw));
33988
+ const usage = mergeUsage(candidates.reduce(mergeUsage, { ...UNKNOWN_USAGE }), readLegacyUsage(raw));
33933
33989
  const model = candidates.find((candidate) => candidate.model)?.model ?? input.model;
33934
33990
  const estimate = estimateCostUsd(usage, model, input.pricing);
33935
33991
  if (estimate !== null || input.pricing?.subscription_unbilled) {
@@ -34169,7 +34225,7 @@ function readEventEvidence(event) {
34169
34225
  const kind = item.kind === "provider_reported" || item.kind === "normalized_estimate" ? item.kind : null;
34170
34226
  const sourcePath = isCostSourcePath(item.source_path) ? item.source_path : null;
34171
34227
  const amount = readBoundedReportedCost(item.amount_usd);
34172
- const usage = isRecord(item.usage) ? readPinnedTokens(item.usage) : { ...ZERO_USAGE };
34228
+ const usage = isRecord(item.usage) ? readPinnedTokens(item.usage) : { ...UNKNOWN_USAGE };
34173
34229
  if (!kind || !sourcePath)
34174
34230
  return [];
34175
34231
  return [
@@ -34196,10 +34252,10 @@ function legacyEventEvidence(event) {
34196
34252
  source_path: "legacy.cost",
34197
34253
  reason: amount === null ? "legacy" : "authoritative",
34198
34254
  usage: {
34199
- tokens_input: readFiniteNonNegative(event.tokens_input) ?? 0,
34200
- tokens_output: readFiniteNonNegative(event.tokens_output) ?? 0,
34201
- tokens_reasoning: readFiniteNonNegative(event.tokens_reasoning) ?? 0,
34202
- tokens_cache: readFiniteNonNegative(event.tokens_cache) ?? 0
34255
+ tokens_input: readFiniteNonNegative(event.tokens_input),
34256
+ tokens_output: readFiniteNonNegative(event.tokens_output),
34257
+ tokens_reasoning: readFiniteNonNegative(event.tokens_reasoning),
34258
+ tokens_cache: readFiniteNonNegative(event.tokens_cache)
34203
34259
  }
34204
34260
  }
34205
34261
  ];
@@ -34240,9 +34296,10 @@ function isCostUpgrade(current, next) {
34240
34296
  return false;
34241
34297
  if (currentProjection.cost_usd !== nextProjection.cost_usd)
34242
34298
  return true;
34243
- const currentUsage = current.reduce(mergeUsage, { ...ZERO_USAGE });
34244
- const nextUsage = next.reduce(mergeUsage, { ...ZERO_USAGE });
34245
- return Object.keys(currentUsage).some((key) => nextUsage[key] > currentUsage[key]);
34299
+ const currentUsage = current.reduce(mergeUsage, { ...UNKNOWN_USAGE });
34300
+ const nextUsage = next.reduce(mergeUsage, { ...UNKNOWN_USAGE });
34301
+ const knownValue = (value) => value === null ? Number.NEGATIVE_INFINITY : value;
34302
+ return Object.keys(currentUsage).some((key) => knownValue(nextUsage[key]) > knownValue(currentUsage[key]));
34246
34303
  }
34247
34304
  function readTelemetryEvents(directory) {
34248
34305
  const swarmDir = path32.join(directory, ".swarm");
@@ -34329,8 +34386,9 @@ function estimateCostUsd(usage, model, pricing) {
34329
34386
  const entry = table[model] ?? table[model.toLowerCase()];
34330
34387
  if (!entry)
34331
34388
  return null;
34332
- const cost = usage.tokens_input / 1e6 * entry.input_per_million + usage.tokens_output / 1e6 * entry.output_per_million + usage.tokens_reasoning / 1e6 * (entry.reasoning_per_million ?? entry.output_per_million) + usage.tokens_cache / 1e6 * (entry.cache_per_million ?? entry.input_per_million);
34333
- const hasUsage = Object.values(usage).some((value) => value > 0);
34389
+ const perMillion = (value, rate) => (value ?? 0) / 1e6 * rate;
34390
+ const cost = perMillion(usage.tokens_input, entry.input_per_million) + perMillion(usage.tokens_output, entry.output_per_million) + perMillion(usage.tokens_reasoning, entry.reasoning_per_million ?? entry.output_per_million) + perMillion(usage.tokens_cache, entry.cache_per_million ?? entry.input_per_million);
34391
+ const hasUsage = Object.values(usage).some((value) => value !== null && value > 0);
34334
34392
  return hasUsage && Number.isFinite(cost) && cost >= 0 ? cost : null;
34335
34393
  }
34336
34394
  function collectPinnedCandidates(raw, input) {
@@ -34405,15 +34463,15 @@ function collectPinnedCandidates(raw, input) {
34405
34463
  function readPinnedTokens(record) {
34406
34464
  const tokens = isRecord(record.tokens) ? record.tokens : isRecord(record.usage) ? record.usage : record;
34407
34465
  return {
34408
- tokens_input: readFiniteNonNegative(tokens.tokens_input ?? tokens.input ?? tokens.input_tokens ?? tokens.prompt_tokens) ?? 0,
34409
- tokens_output: readFiniteNonNegative(tokens.tokens_output ?? tokens.output ?? tokens.output_tokens ?? tokens.completion_tokens) ?? 0,
34410
- tokens_reasoning: readFiniteNonNegative(tokens.tokens_reasoning ?? tokens.reasoning ?? tokens.reasoning_tokens) ?? 0,
34411
- tokens_cache: readFiniteNonNegative(tokens.tokens_cache) ?? readCacheTokens(tokens) ?? 0
34466
+ tokens_input: readFiniteNonNegative(tokens.tokens_input ?? tokens.input ?? tokens.input_tokens ?? tokens.prompt_tokens) ?? null,
34467
+ tokens_output: readFiniteNonNegative(tokens.tokens_output ?? tokens.output ?? tokens.output_tokens ?? tokens.completion_tokens) ?? null,
34468
+ tokens_reasoning: readFiniteNonNegative(tokens.tokens_reasoning ?? tokens.reasoning ?? tokens.reasoning_tokens) ?? null,
34469
+ tokens_cache: readFiniteNonNegative(tokens.tokens_cache) ?? readCacheTokens(tokens) ?? null
34412
34470
  };
34413
34471
  }
34414
34472
  function readLegacyUsage(raw) {
34415
34473
  if (!isRecord(raw))
34416
- return { ...ZERO_USAGE };
34474
+ return { ...UNKNOWN_USAGE };
34417
34475
  const output = isRecord(raw.output) ? raw.output : raw;
34418
34476
  const usage = isRecord(output.usage) ? output.usage : output;
34419
34477
  return readPinnedTokens(usage);
@@ -34421,10 +34479,10 @@ function readLegacyUsage(raw) {
34421
34479
  function mergeUsage(total, next) {
34422
34480
  const usage = "usage" in next && next.usage ? next.usage : next;
34423
34481
  return {
34424
- tokens_input: Math.max(total.tokens_input, usage.tokens_input),
34425
- tokens_output: Math.max(total.tokens_output, usage.tokens_output),
34426
- tokens_reasoning: Math.max(total.tokens_reasoning, usage.tokens_reasoning),
34427
- tokens_cache: Math.max(total.tokens_cache, usage.tokens_cache)
34482
+ tokens_input: maxKnownAxis(total.tokens_input, usage.tokens_input),
34483
+ tokens_output: maxKnownAxis(total.tokens_output, usage.tokens_output),
34484
+ tokens_reasoning: maxKnownAxis(total.tokens_reasoning, usage.tokens_reasoning),
34485
+ tokens_cache: maxKnownAxis(total.tokens_cache, usage.tokens_cache)
34428
34486
  };
34429
34487
  }
34430
34488
  function readFiniteNonNegative(value) {
@@ -34523,12 +34581,13 @@ function createEmptySummary() {
34523
34581
  total_cost_usd: 0,
34524
34582
  total_reported_usd: 0,
34525
34583
  total_estimated_usd: 0,
34526
- total_input_tokens: 0,
34527
- total_output_tokens: 0,
34528
- total_reasoning_tokens: 0,
34529
- total_cache_tokens: 0,
34584
+ total_input_tokens: null,
34585
+ total_output_tokens: null,
34586
+ total_reasoning_tokens: null,
34587
+ total_cache_tokens: null,
34530
34588
  delegations: 0,
34531
34589
  unavailable_delegations: 0,
34590
+ unknown_usage_delegations: 0,
34532
34591
  by_agent: [],
34533
34592
  by_task: [],
34534
34593
  by_gate: [],
@@ -34570,24 +34629,26 @@ function addDelegationEvent(summary, event) {
34570
34629
  summary.currencies.push(item.currency);
34571
34630
  }
34572
34631
  const legacyUsage = {
34573
- tokens_input: readNumber(event, ["tokens_input"]) ?? 0,
34574
- tokens_output: readNumber(event, ["tokens_output"]) ?? 0,
34575
- tokens_reasoning: readNumber(event, ["tokens_reasoning"]) ?? 0,
34576
- tokens_cache: readNumber(event, ["tokens_cache"]) ?? 0
34632
+ tokens_input: readNumber(event, ["tokens_input"]),
34633
+ tokens_output: readNumber(event, ["tokens_output"]),
34634
+ tokens_reasoning: readNumber(event, ["tokens_reasoning"]),
34635
+ tokens_cache: readNumber(event, ["tokens_cache"])
34577
34636
  };
34578
34637
  const evidenceUsage = evidence2.reduce((acc, item) => ({
34579
- tokens_input: Math.max(acc.tokens_input, item.usage.tokens_input),
34580
- tokens_output: Math.max(acc.tokens_output, item.usage.tokens_output),
34581
- tokens_reasoning: Math.max(acc.tokens_reasoning, item.usage.tokens_reasoning),
34582
- tokens_cache: Math.max(acc.tokens_cache, item.usage.tokens_cache)
34583
- }), { ...ZERO_USAGE });
34638
+ tokens_input: maxKnownAxis(acc.tokens_input, item.usage.tokens_input),
34639
+ tokens_output: maxKnownAxis(acc.tokens_output, item.usage.tokens_output),
34640
+ tokens_reasoning: maxKnownAxis(acc.tokens_reasoning, item.usage.tokens_reasoning),
34641
+ tokens_cache: maxKnownAxis(acc.tokens_cache, item.usage.tokens_cache)
34642
+ }), { ...UNKNOWN_USAGE });
34584
34643
  const usage = hasRecord ? evidenceUsage : legacyUsage;
34585
34644
  summary.delegations++;
34586
34645
  summary.total_cost_usd += cost;
34587
- summary.total_input_tokens += usage.tokens_input;
34588
- summary.total_output_tokens += usage.tokens_output;
34589
- summary.total_reasoning_tokens += usage.tokens_reasoning;
34590
- summary.total_cache_tokens += usage.tokens_cache;
34646
+ if (isUnknownUsage(usage))
34647
+ summary.unknown_usage_delegations++;
34648
+ summary.total_input_tokens = sumKnownAxis(summary.total_input_tokens, usage.tokens_input);
34649
+ summary.total_output_tokens = sumKnownAxis(summary.total_output_tokens, usage.tokens_output);
34650
+ summary.total_reasoning_tokens = sumKnownAxis(summary.total_reasoning_tokens, usage.tokens_reasoning);
34651
+ summary.total_cache_tokens = sumKnownAxis(summary.total_cache_tokens, usage.tokens_cache);
34591
34652
  summary.by_source[costSource].delegations++;
34592
34653
  summary.by_source[costSource].cost_usd += cost;
34593
34654
  if (costSource === "reported")
@@ -34624,20 +34685,20 @@ function addRow(rows, name, input) {
34624
34685
  name,
34625
34686
  delegations: 0,
34626
34687
  cost_usd: 0,
34627
- input_tokens: 0,
34628
- output_tokens: 0,
34629
- reasoning_tokens: 0,
34630
- cache_tokens: 0,
34688
+ input_tokens: null,
34689
+ output_tokens: null,
34690
+ reasoning_tokens: null,
34691
+ cache_tokens: null,
34631
34692
  unavailable_delegations: 0
34632
34693
  };
34633
34694
  rows.push(row);
34634
34695
  }
34635
34696
  row.delegations++;
34636
34697
  row.cost_usd += input.cost;
34637
- row.input_tokens += input.usage.tokens_input;
34638
- row.output_tokens += input.usage.tokens_output;
34639
- row.reasoning_tokens += input.usage.tokens_reasoning;
34640
- row.cache_tokens += input.usage.tokens_cache;
34698
+ row.input_tokens = sumKnownAxis(row.input_tokens, input.usage.tokens_input);
34699
+ row.output_tokens = sumKnownAxis(row.output_tokens, input.usage.tokens_output);
34700
+ row.reasoning_tokens = sumKnownAxis(row.reasoning_tokens, input.usage.tokens_reasoning);
34701
+ row.cache_tokens = sumKnownAxis(row.cache_tokens, input.usage.tokens_cache);
34641
34702
  if (input.costSource === "unavailable")
34642
34703
  row.unavailable_delegations++;
34643
34704
  }
@@ -34646,6 +34707,12 @@ function finalizeSummary(summary) {
34646
34707
  summary.total_reported_usd = roundUsd(summary.total_reported_usd);
34647
34708
  summary.total_estimated_usd = roundUsd(summary.total_estimated_usd);
34648
34709
  summary.total_legacy_usd = roundUsd(summary.total_legacy_usd);
34710
+ if (summary.delegations === 0) {
34711
+ summary.total_input_tokens ??= 0;
34712
+ summary.total_output_tokens ??= 0;
34713
+ summary.total_reasoning_tokens ??= 0;
34714
+ summary.total_cache_tokens ??= 0;
34715
+ }
34649
34716
  for (const source of Object.values(summary.by_source)) {
34650
34717
  source.cost_usd = roundUsd(source.cost_usd);
34651
34718
  }
@@ -40453,9 +40520,9 @@ function hashContent(content) {
40453
40520
  return createHash27("sha1").update(content).digest("hex");
40454
40521
  }
40455
40522
  async function loadConfigForPolicyCurator(directory) {
40456
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-zrcgm9d9.js");
40523
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-0jatfw66.js");
40457
40524
  try {
40458
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-p6bvzgp2.js");
40525
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a07nc99k.js");
40459
40526
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
40460
40527
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
40461
40528
  } catch {
@@ -43513,7 +43580,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
43513
43580
  const seam = _internals38.createCuratorLLMDelegate;
43514
43581
  if (seam)
43515
43582
  return seam(directory, mode, sessionId);
43516
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-13h02244.js");
43583
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-a1hy89ea.js");
43517
43584
  return createCuratorLLMDelegate(directory, mode, sessionId);
43518
43585
  }
43519
43586
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -43908,7 +43975,7 @@ async function runFinalizeStage(ctx) {
43908
43975
  }
43909
43976
  }
43910
43977
  try {
43911
- const { CuratorConfigSchema: CCS } = await import("./schema-zrcgm9d9.js");
43978
+ const { CuratorConfigSchema: CCS } = await import("./schema-0jatfw66.js");
43912
43979
  const { config: pmLoadedConfig } = _internals38.loadPluginConfigWithMeta(ctx.directory);
43913
43980
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
43914
43981
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -46094,7 +46161,7 @@ function serializeAgentSession(s) {
46094
46161
  }
46095
46162
  async function writeSnapshot(directory, state) {
46096
46163
  try {
46097
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-5q0hac3d.js");
46164
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-akt1wad4.js");
46098
46165
  await ensureSnapshotCoordinationReady(directory);
46099
46166
  const snapshot = {
46100
46167
  version: 3,
@@ -49272,7 +49339,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
49272
49339
  };
49273
49340
  }
49274
49341
  async function sweepActiveNearDuplicates(directory, options = {}) {
49275
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-p6bvzgp2.js");
49342
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a07nc99k.js");
49276
49343
  const { config } = loadPluginConfigWithMeta2(directory);
49277
49344
  const sweepConfig = config.learning?.dedup_sweep;
49278
49345
  if (sweepConfig?.enabled === false)
@@ -50396,7 +50463,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
50396
50463
  }
50397
50464
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
50398
50465
  try {
50399
- const skillModule = await import("./skill-generator-dztn1ctf.js");
50466
+ const skillModule = await import("./skill-generator-0hbmdy2p.js");
50400
50467
  for (const cand of skillCandidates) {
50401
50468
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
50402
50469
  continue;
@@ -50868,7 +50935,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
50868
50935
  } catch {}
50869
50936
  }
50870
50937
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
50871
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-7xcd0zea.js");
50938
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-7xdvw9qy.js");
50872
50939
  for (const { id } of contradictedEntries) {
50873
50940
  try {
50874
50941
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -51700,7 +51767,7 @@ async function runCuratorPostMortem(directory, options = {}) {
51700
51767
  warnings.push("Failed to collect knowledge summary.");
51701
51768
  }
51702
51769
  try {
51703
- const { getScanStatus } = await import("./scan-cursor-fgecb928.js");
51770
+ const { getScanStatus } = await import("./scan-cursor-yp2kvnjz.js");
51704
51771
  const scanStatus = await getScanStatus(directory);
51705
51772
  if (scanStatus.remaining_estimate > 0) {
51706
51773
  warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
@@ -51872,9 +51939,9 @@ var _internals57 = {
51872
51939
  verifyPostMortemKnowledgeActions,
51873
51940
  repairPostMortemActions,
51874
51941
  loadDefaultKnowledgeConfig: async (directory) => {
51875
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-zrcgm9d9.js");
51942
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-0jatfw66.js");
51876
51943
  try {
51877
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-p6bvzgp2.js");
51944
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a07nc99k.js");
51878
51945
  const loaded = loadPluginConfigWithMeta2(directory);
51879
51946
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
51880
51947
  } catch {
@@ -51882,11 +51949,11 @@ var _internals57 = {
51882
51949
  }
51883
51950
  },
51884
51951
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
51885
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-r0jfc7xw.js");
51952
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-yvp2e7tk.js");
51886
51953
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
51887
51954
  },
51888
51955
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
51889
- const { checkHivePromotions } = await import("./hive-promoter-0vg8w79a.js");
51956
+ const { checkHivePromotions } = await import("./hive-promoter-68prvn82.js");
51890
51957
  return checkHivePromotions(entries2, knowledgeConfig, directory);
51891
51958
  },
51892
51959
  applyProposalTriage: async (directory, triage) => {
@@ -51895,7 +51962,7 @@ var _internals57 = {
51895
51962
  activateProposal,
51896
51963
  listSkills: listSkills2,
51897
51964
  sanitizeSlug
51898
- } = await import("./skill-generator-dztn1ctf.js");
51965
+ } = await import("./skill-generator-0hbmdy2p.js");
51899
51966
  const result = {
51900
51967
  approved: [],
51901
51968
  rejected: [],
@@ -51937,7 +52004,7 @@ var _internals57 = {
51937
52004
  return result;
51938
52005
  },
51939
52006
  readPriorDriftReports: async (directory) => {
51940
- const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-q84jn9cc.js");
52007
+ const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-b6cjgsq3.js");
51941
52008
  return readPriorDriftReports2(directory);
51942
52009
  },
51943
52010
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -60381,7 +60448,7 @@ function wireCloseInternals() {
60381
60448
  archiveEvidence,
60382
60449
  endAgentSession,
60383
60450
  flushAndDrainTelemetry: async () => {
60384
- const { flushAndDrainTelemetry } = await import("./telemetry-n6y2sjhg.js");
60451
+ const { flushAndDrainTelemetry } = await import("./telemetry-3bjvjbcp.js");
60385
60452
  return flushAndDrainTelemetry();
60386
60453
  },
60387
60454
  finalizeContextTelemetry,
@@ -60910,7 +60977,8 @@ function renderCostSummary(summary) {
60910
60977
  "",
60911
60978
  `Total tracked cost: ${formatUsd(summary.total_cost_usd)}`,
60912
60979
  `Delegations: ${summary.delegations}`,
60913
- `Tokens: input ${summary.total_input_tokens.toLocaleString()}, output ${summary.total_output_tokens.toLocaleString()}, reasoning ${summary.total_reasoning_tokens.toLocaleString()}, cache ${summary.total_cache_tokens.toLocaleString()}`,
60980
+ `Tokens: input ${formatTokens(summary.total_input_tokens)}, output ${formatTokens(summary.total_output_tokens)}, reasoning ${formatTokens(summary.total_reasoning_tokens)}, cache ${formatTokens(summary.total_cache_tokens)}`,
60981
+ `Unknown usage: ${summary.unknown_usage_delegations}`,
60914
60982
  `Cost source: reported ${formatUsd(summary.total_reported_usd)}, estimated ${formatUsd(summary.total_estimated_usd)}, unavailable ${summary.unavailable_delegations}`,
60915
60983
  `Evidence: ${summary.evidence_status}; joins missed ${summary.join_miss_count}; telemetry errors ${summary.telemetry_error_count}; corrections accepted ${summary.accepted_corrections}, rejected ${summary.rejected_corrections}, duplicate ${summary.duplicate_corrections}`,
60916
60984
  "",
@@ -60933,9 +61001,12 @@ function appendCostRows(lines, label, rows, emptyMessage) {
60933
61001
  }
60934
61002
  lines.push(`| ${label} | Delegations | Cost | Input | Output | Reasoning | Cache | Unavailable |`, "|------|-------------|------|-------|--------|-----------|-------|-------------|");
60935
61003
  for (const row of rows) {
60936
- lines.push(`| ${row.name} | ${row.delegations} | ${formatUsd(row.cost_usd)} | ${row.input_tokens.toLocaleString()} | ${row.output_tokens.toLocaleString()} | ${row.reasoning_tokens.toLocaleString()} | ${row.cache_tokens.toLocaleString()} | ${row.unavailable_delegations} |`);
61004
+ lines.push(`| ${row.name} | ${row.delegations} | ${formatUsd(row.cost_usd)} | ${formatTokens(row.input_tokens)} | ${formatTokens(row.output_tokens)} | ${formatTokens(row.reasoning_tokens)} | ${formatTokens(row.cache_tokens)} | ${row.unavailable_delegations} |`);
60937
61005
  }
60938
61006
  }
61007
+ function formatTokens(value) {
61008
+ return value === null ? "unknown" : value.toLocaleString();
61009
+ }
60939
61010
  function formatUsd(value) {
60940
61011
  return `$${value.toFixed(6)}`;
60941
61012
  }
@@ -61733,9 +61804,9 @@ var _internals67 = {
61733
61804
  loadPluginConfigWithMeta,
61734
61805
  loadCuratorDeps: async () => {
61735
61806
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
61736
- import("./schema-zrcgm9d9.js"),
61737
- import("./curator-r0jfc7xw.js"),
61738
- import("./curator-llm-factory-13h02244.js")
61807
+ import("./schema-0jatfw66.js"),
61808
+ import("./curator-yvp2e7tk.js"),
61809
+ import("./curator-llm-factory-a1hy89ea.js")
61739
61810
  ]);
61740
61811
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
61741
61812
  }
@@ -64128,7 +64199,7 @@ async function computeCurationDiagnostics(directory, entries2) {
64128
64199
  let scanCompleted = false;
64129
64200
  let scanRemaining = 0;
64130
64201
  try {
64131
- const { getScanStatus } = await import("./scan-cursor-fgecb928.js");
64202
+ const { getScanStatus } = await import("./scan-cursor-yp2kvnjz.js");
64132
64203
  const status = await getScanStatus(directory);
64133
64204
  scanGeneration = status.generation;
64134
64205
  scanCompleted = status.completed;
@@ -64136,19 +64207,19 @@ async function computeCurationDiagnostics(directory, entries2) {
64136
64207
  } catch {}
64137
64208
  let configMatch = null;
64138
64209
  try {
64139
- const { isLinked: isLinked2 } = await import("./knowledge-link-dv78fb9g.js");
64210
+ const { isLinked: isLinked2 } = await import("./knowledge-link-5jhded41.js");
64140
64211
  if (isLinked2(directory)) {
64141
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-zrcgm9d9.js");
64212
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-0jatfw66.js");
64142
64213
  let config;
64143
64214
  try {
64144
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-p6bvzgp2.js");
64215
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a07nc99k.js");
64145
64216
  const loaded = loadPluginConfigWithMeta2(directory);
64146
64217
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
64147
64218
  } catch {
64148
64219
  config = KnowledgeConfigSchema2.parse({});
64149
64220
  }
64150
64221
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
64151
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-ytzwb080.js");
64222
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-1zdsb3h0.js");
64152
64223
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
64153
64224
  const cohortFp = await readCohortConfigFingerprint(directory);
64154
64225
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -65596,7 +65667,7 @@ async function handleDoctorCommand(directory, args) {
65596
65667
  const result = runConfigDoctor(config, directory);
65597
65668
  let output;
65598
65669
  if (enableAutoFix && result.hasAutoFixableIssues) {
65599
- const { runConfigDoctorWithFixes } = await import("./config-doctor-28ggsms8.js");
65670
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-17yft6hp.js");
65600
65671
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
65601
65672
  applyLossy: true
65602
65673
  });
@@ -65634,7 +65705,7 @@ async function handleDoctorCommand(directory, args) {
65634
65705
  `;
65635
65706
  }
65636
65707
  try {
65637
- const { runModelPreflight } = await import("./model-preflight-kap3zp3g.js");
65708
+ const { runModelPreflight } = await import("./model-preflight-gsesc142.js");
65638
65709
  const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
65639
65710
  const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
65640
65711
  const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
@@ -66561,7 +66632,7 @@ async function handleEvidenceCommand(directory, args) {
66561
66632
  return formatTaskEvidenceMarkdown(evidenceData);
66562
66633
  }
66563
66634
  async function handleEvidenceSummaryCommand(directory) {
66564
- const { buildEvidenceSummary } = await import("./evidence-summary-service-rsectw2t.js");
66635
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-9vh0t896.js");
66565
66636
  const artifact = await buildEvidenceSummary(directory);
66566
66637
  if (!artifact) {
66567
66638
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -90894,7 +90965,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
90894
90965
  }
90895
90966
  const sdkOpts = signal ? { signal } : {};
90896
90967
  try {
90897
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-22f1ek6k.js");
90968
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-pppczpa6.js");
90898
90969
  const createResult = await client.session.create({
90899
90970
  ...sessionId ? {
90900
90971
  body: {
@@ -93231,7 +93302,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
93231
93302
  clearedEvents: []
93232
93303
  };
93233
93304
  try {
93234
- const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-tdj50p2g.js");
93305
+ const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-y122hbd1.js");
93235
93306
  await cancelPrFeedbackPublication2(directory, sessionID, reason);
93236
93307
  } catch (err) {
93237
93308
  warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
@@ -104416,6 +104487,11 @@ async function dispatchReviewerWithFallback(input, prompt, timeoutMs, promptByte
104416
104487
  }
104417
104488
  return { result: attempts[0], attempts };
104418
104489
  }
104490
+ function sumKnown(total, value) {
104491
+ if (value === null)
104492
+ return total;
104493
+ return total === null ? value : total + value;
104494
+ }
104419
104495
  function addCost(evidence2, dispatches) {
104420
104496
  const MAX_REVIEW_COST_EVIDENCE = 32;
104421
104497
  evidence2.cost.model_calls = dispatches.length;
@@ -104431,10 +104507,10 @@ function addCost(evidence2, dispatches) {
104431
104507
  evidence2.cost.evidence_status = "inconclusive";
104432
104508
  evidence2.cost.evidence_reason = fields?.evidence_reason ?? "missing_cost";
104433
104509
  }
104434
- evidence2.cost.tokens_input += fields?.tokens_input ?? 0;
104435
- evidence2.cost.tokens_output += fields?.tokens_output ?? 0;
104436
- evidence2.cost.tokens_reasoning += fields?.tokens_reasoning ?? 0;
104437
- evidence2.cost.tokens_cache += fields?.tokens_cache ?? 0;
104510
+ evidence2.cost.tokens_input = sumKnown(evidence2.cost.tokens_input, fields?.tokens_input ?? null);
104511
+ evidence2.cost.tokens_output = sumKnown(evidence2.cost.tokens_output, fields?.tokens_output ?? null);
104512
+ evidence2.cost.tokens_reasoning = sumKnown(evidence2.cost.tokens_reasoning, fields?.tokens_reasoning ?? null);
104513
+ evidence2.cost.tokens_cache = sumKnown(evidence2.cost.tokens_cache, fields?.tokens_cache ?? null);
104438
104514
  if (typeof fields?.cost_usd === "number") {
104439
104515
  evidence2.cost.cost_usd = (evidence2.cost.cost_usd ?? 0) + fields.cost_usd;
104440
104516
  evidence2.cost.cost_source = fields.cost_source === "estimated" ? "estimated" : evidence2.cost.cost_source === "estimated" ? "estimated" : "reported";
@@ -104474,10 +104550,10 @@ function baseEvidence(input, diff, status) {
104474
104550
  model_calls: 0,
104475
104551
  diff_bytes: diff.reviewTextBytes,
104476
104552
  prompt_bytes: 0,
104477
- tokens_input: 0,
104478
- tokens_output: 0,
104479
- tokens_reasoning: 0,
104480
- tokens_cache: 0,
104553
+ tokens_input: null,
104554
+ tokens_output: null,
104555
+ tokens_reasoning: null,
104556
+ tokens_cache: null,
104481
104557
  cost_usd: null,
104482
104558
  cost_source: "unavailable",
104483
104559
  cost_evidence: [],
@@ -104969,7 +105045,8 @@ function costLine(evidence2) {
104969
105045
  return "Cost: unavailable (durable evidence was not readable)";
104970
105046
  const cost = evidence2.cost;
104971
105047
  const dollars = cost.cost_usd === null ? `unavailable (${cost.cost_source})` : `$${cost.cost_usd.toFixed(6)} (${cost.cost_source})`;
104972
- return `Cost: ${dollars}; tokens ${cost.tokens_input} input / ${cost.tokens_output} output / ${cost.tokens_reasoning} reasoning / ${cost.tokens_cache} cache; prompt ${cost.prompt_bytes} bytes`;
105048
+ const axis = (value) => value === null ? "unknown" : String(value);
105049
+ return `Cost: ${dollars}; tokens ${axis(cost.tokens_input)} input / ${axis(cost.tokens_output)} output / ${axis(cost.tokens_reasoning)} reasoning / ${axis(cost.tokens_cache)} cache; prompt ${cost.prompt_bytes} bytes`;
104973
105050
  }
104974
105051
  function renderHuman(result, evidence2, requestedSelector) {
104975
105052
  const selector = evidence2?.scope.selector ?? requestedSelector;
@@ -106856,7 +106933,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
106856
106933
  if (!input.dispatcher) {
106857
106934
  throw new Error("no evaluation dispatcher available (cannot run validation)");
106858
106935
  }
106859
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-tb3eppeg.js");
106936
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-fbmancth.js");
106860
106937
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
106861
106938
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals129.evaluateCandidateV1({
106862
106939
  projectRoot: input.directory,
@@ -109485,7 +109562,7 @@ function buildDetailedHelp(commandName, entry) {
109485
109562
  async function handleHelpCommand(ctx) {
109486
109563
  const targetCommand = ctx.args.join(" ");
109487
109564
  if (!targetCommand) {
109488
- const { buildHelpText } = await import("./index-4dwhfbed.js");
109565
+ const { buildHelpText } = await import("./index-fxvthwwk.js");
109489
109566
  return buildHelpText();
109490
109567
  }
109491
109568
  const tokens = targetCommand.split(/\s+/);
@@ -109499,7 +109576,7 @@ async function handleHelpCommand(ctx) {
109499
109576
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
109500
109577
  }
109501
109578
  const similar = _internals27.findSimilarCommands(targetCommand);
109502
- const { buildHelpText: fullHelp } = await import("./index-4dwhfbed.js");
109579
+ const { buildHelpText: fullHelp } = await import("./index-fxvthwwk.js");
109503
109580
  if (similar.length > 0) {
109504
109581
  return `Command '/swarm ${targetCommand}' not found.
109505
109582
 
@@ -109827,7 +109904,7 @@ var COMMAND_REGISTRY = {
109827
109904
  },
109828
109905
  "guardrail explain": {
109829
109906
  handler: async (ctx) => {
109830
- const { handleGuardrailExplain } = await import("./guardrail-explain-njv3pnsw.js");
109907
+ const { handleGuardrailExplain } = await import("./guardrail-explain-a16eabym.js");
109831
109908
  return handleGuardrailExplain(ctx.directory, ctx.args);
109832
109909
  },
109833
109910
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -109837,7 +109914,7 @@ var COMMAND_REGISTRY = {
109837
109914
  },
109838
109915
  "guardrail reset": {
109839
109916
  handler: async (ctx) => {
109840
- const { handleGuardrailReset } = await import("./guardrail-reset-11cvwgbe.js");
109917
+ const { handleGuardrailReset } = await import("./guardrail-reset-fstvd42q.js");
109841
109918
  return handleGuardrailReset(ctx.args, ctx.sessionID);
109842
109919
  },
109843
109920
  description: "Reset one exact active invocation/action circuit after repair",
@@ -109858,7 +109935,7 @@ var COMMAND_REGISTRY = {
109858
109935
  },
109859
109936
  "guardrail-log": {
109860
109937
  handler: async (ctx) => {
109861
- const { handleGuardrailLog } = await import("./guardrail-log-r8zmh4rd.js");
109938
+ const { handleGuardrailLog } = await import("./guardrail-log-4kj5e7da.js");
109862
109939
  return handleGuardrailLog(ctx.directory, ctx.args);
109863
109940
  },
109864
109941
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -115166,4 +115243,4 @@ function getAgentConfigs(config, directory, sessionId, projectContext) {
115166
115243
  return result;
115167
115244
  }
115168
115245
 
115169
- export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation, dcExtractWindowsCmdTargets, dcExtractPowerShellTargets, getSharedClassifierGuardrailBlock, classifyCommand, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, resetArchitectPromptBudgetAdvisories, createArchitectAgent, createCoderAgent, GENERALIST_COUNCIL_PROMPT, SKEPTIC_COUNCIL_PROMPT, DOMAIN_EXPERT_COUNCIL_PROMPT, createCriticAgent, createCuratorAgent, createDesignerAgent, createDocsAgent, createResearcherAgent, SECURITY_CATEGORIES, createReviewerAgent, createSMEAgent, createTestEngineerAgent, _internals132 as _internals, stripSwarmPrefix, extractSwarmIdFromAgentName, resolveFallbackModel, getSwarmAgents, createAgents, resolvePrimaryAgentNames, getAgentConfigs, SWARM_COMMAND_TOOL_COMMANDS, SWARM_COMMAND_TOOL_ALLOWLIST, HUMAN_ONLY_SWARM_COMMANDS, classifySwarmCommandToolUse, classifySwarmCommandChatFallbackUse, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, getAgentSession, parseLeanLaneIndex, computeLaneRuntimeProfile, MAX_TRACKED_STANDARD_WORKTREE_CALLS, awaitingMergeByCallID, standardWorktreeByCallID, standardWorktreeSerializationSessions, getStandardWorktreeDegradationReason, resetStandardWorktreeIsolationState, checkStandardWorktreeSerializationRelease, sanitizeWorktreeTaskId, preProvisionCollisionCheck, isLaneOwnedByCurrentSession, precreateStandardWorktreeSession, preserveBackgroundWorktreeOwnershipForCallId, preserveDirtyWorktreeForCallId, preserveDirtyWorktreeAtPath, cleanupStandardWorktreeForCallId, abortStandardWorktreeDispatch, finishStandardWorktreeDispatch, readLaneEnvFileFromDisk, _internals24 as _internals1, redactSecrets, prWorkflowSessionFileStem, ensurePrWorkflowSafeParentDirectory, writePrWorkflowAtomicJson, PrWorkflowCheckoutMutationTimeoutError, withPrWorkflowCheckoutMutationLock, PR_REVIEW_REPORT_VERDICTS, allowedPrReviewReportVerdicts, normalizePrReviewPartialBaseCoverageRecord, rollbackPrReviewPartialBaseCoverageAdmission, readPrReviewTerminalCoverageForReport, PR_REVIEW_REQUIRED_MICRO_LANE_IDS, PR_REVIEW_DEPTH_TIER_THRESHOLDS, PR_REVIEW_BASE_LANE_FLOORS, PR_REVIEW_TIER_L_CONSOLIDATED_LANE_FLOOR, PR_REVIEW_MICRO_LANE_FLOORS, computePrReviewDepthTier, MAX_PR_REVIEW_SUBMIT_REJECTIONS, MAX_PR_FEEDBACK_INVENTORY_AMENDMENTS, activatePrWorkflow, appendPrWorkflowSkillContractAdvisories, readPrWorkflowGateState, recordPrReviewSubmitRejection, latestPrReviewSubmitRejectionMessage, submitPrReviewResult, withPrWorkflowCheckoutPreparationLock, withInactivePrWorkflowCheckoutRestoreLock, clearPrWorkflowGateState, terminalizePrWorkflowGateForSession2 as terminalizePrWorkflowGateForSession, PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON, collectPrWorkflowPendingLaneLiveness, settlePresumedStalePrWorkflowLanes, abortPrWorkflow, recoverArmedPrWorkflow, bindPrWorkflowHead, rebindPrFeedbackHead, bindPrReviewBase, assertCurrentCheckoutHead, assertPrReviewCleanCheckout, enforcePrWorkflowDispatchLanesAsync, PrReviewResilienceCircuitOpenError, PrReviewResilienceRetryExhaustedError, enforcePrReviewBaseDimensions, rollbackPrReviewBaseAdmissionIfUnlaunched, admitPrReviewPartialBaseCoverage2 as admitPrReviewPartialBaseCoverage, assertPrReviewBaseCoverageSettled2 as assertPrReviewBaseCoverageSettled, recordPrReviewValidationBatch, assertPrReviewValidationSettled, declarePrFeedbackInventory, enforcePrFeedbackVerificationOwnership, assertPrFeedbackVerificationSettled, recordPrFeedbackStageA, recordPrFeedbackGateBatch, assertPrFeedbackGatePhaseSettled, assertPrFeedbackReadyToPublish, invalidatePrFeedbackPublication, describePrWorkflowPublicationSection, findDanglingLivePublicationGeneration, recordPrFeedbackPushAttemptResult, cancelPrFeedbackPublication, resolvePrReviewWriterRunId, markPrReviewTriggerEvaluationComplete, bindPrReviewTriggerLedger, assertPrReviewArtifactBoundary, assertPrReviewArtifactRecordsMatchAuthoritativeVerdicts, markPrReviewArtifactBoundary, markPrReviewHandoffComplete, readPrReviewFinalFindingPolicyForReport, transitionPrReviewToFeedback, declarePrFeedbackScope, resolvePrFeedbackScopeDeclaration, consumePrFeedbackScopeDeclaration, validatePrFeedbackScopeBinding, enforcePrWorkflowToolBefore, readPrReviewReentryBindingContext, hasActivePrReviewReentryAuthorization, reserveActivePrReviewReentryAuthorization, completePrWorkflow, _test_exports2 as _test_exports, normalizePrWorkflowShellCommand, describePrWorkflowRevisionDigestFailure, readAuthoritativePrReviewCriticSettlements, readAuthoritativePrReviewCriticVerdicts, formatPrReviewLaneValidationFailure, validatePrReviewDiscoveryLaneCompletion2 as validatePrReviewDiscoveryLaneCompletion, validatePrWorkflowTransportRecovery, prReviewDiscoveryArtifactCoversLane, MAX_SALVAGED_SCHEMA_ERROR_CHARS, readPrWorkflowGateStateForRecovery, handleAcknowledgeSpecDriftCommand, handleAgentsCommand, handleAnalyzeCommand, handleApproveWriteCommand, handleArchiveCommand, handleAutoProceedCommand, handleBenchmarkCommand, handleBrainstormCommand, handleCheckpointCommand, DEFAULT_CI_DEADLINE_MS2 as DEFAULT_CI_DEADLINE_MS, createSignalCancellation, handleCiCommand, handleCiSimulateCommand, handleClarifyCommand, safeRealpathSync, createCuratorLLMDelegate, startSnapshotCoordinationInitialization, ensureSnapshotCoordinationReady, retrySnapshotCoordinationInitialization, getSnapshotCoordinationStatus, beginSnapshotCoordinationReset, closeSnapshotCoordinationInitialization, markSnapshotCoordinationClosing, _snapshotCoordinationInternals, handleCloseCommand, _internals56 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals60 as _internals3, createHivePromoterHook, promoteToHive, promoteFromSwarm, createMemoryGateway, handleCodebaseReviewCommand, handleConcurrencyCommand, handleConfigCommand, handleConsolidateCommand, handleCostsCommand, handleCouncilCommand, getCoChangePairs, handleCurateCommand, handleDarkMatterCommand, handleDeepDiveCommand, handleDeepResearchCommand, getHostConfigDir, getPluginCachePaths, getPluginLockFilePaths, VERSION_PINNED_LEAF, discoverVersionPinnedCachePaths, readCachePackageVersion, handleDiagnoseCommand, handleDoctorCommand, handleEvidenceCommand, handleEvidenceSummaryCommand, handleExportCommand, handleFullAutoCommand, computeQualityBudget, computeSastScan, handleGateAuditCommand, handleGateStatsCommand, handleHandoffCommand, handleBlueprintValidateCommand, handleBlueprintCurrentCommand, handleBlueprintHistoryCommand, handleBlueprintDiffCommand, handleBlueprintExportCommand, handleHarnessCandidateValidateCommand, handleHarnessCandidateShowCommand, handleHarnessCandidateDiffCommand, handleHistoryCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeMigrateCommand, handleKnowledgeListCommand, handleKnowledgeUnactionableCommand, handleKnowledgeRetryHardeningCommand, handleLearningCommand, handleLinkCommand, searchKnowledge, symbols, handleMemoryCommand, handleMemoryStatusCommand, handleMemoryValueLogCommand, handleMemoryMigrateCommand, handleMemoryImportCommand, handleMemoryExportCommand, handlePlanCommand, handlePreflightCommand, handlePromoteCommand, handleQaGatesCommand, handleRecoverCommand, handleResetCommand, handleResetSessionCommand, handleRetrieveCommand, handleReviewCommand, handleRollbackCommand, handleSddStatusCommand, handleSddValidateCommand, handleSddProjectCommand, handleSddCommand, handleSimulateCommand, handleSpecifyCommand, handleStatusCommand, handleSyncPlanCommand, handleTurboCommand, handleUnlinkCommand, handleWriteRetroCommand, handleHelpCommand, isCommandFailure, COMMAND_REGISTRY, VALID_COMMANDS, _internals27 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };
115246
+ export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation, dcExtractWindowsCmdTargets, dcExtractPowerShellTargets, getSharedClassifierGuardrailBlock, classifyCommand, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, resetArchitectPromptBudgetAdvisories, createArchitectAgent, createCoderAgent, GENERALIST_COUNCIL_PROMPT, SKEPTIC_COUNCIL_PROMPT, DOMAIN_EXPERT_COUNCIL_PROMPT, createCriticAgent, createCuratorAgent, createDesignerAgent, createDocsAgent, createResearcherAgent, SECURITY_CATEGORIES, createReviewerAgent, createSMEAgent, createTestEngineerAgent, _internals132 as _internals, stripSwarmPrefix, extractSwarmIdFromAgentName, resolveFallbackModel, getSwarmAgents, createAgents, resolvePrimaryAgentNames, getAgentConfigs, SWARM_COMMAND_TOOL_COMMANDS, SWARM_COMMAND_TOOL_ALLOWLIST, HUMAN_ONLY_SWARM_COMMANDS, classifySwarmCommandToolUse, classifySwarmCommandChatFallbackUse, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, getAgentSession, parseLeanLaneIndex, computeLaneRuntimeProfile, MAX_TRACKED_STANDARD_WORKTREE_CALLS, awaitingMergeByCallID, standardWorktreeByCallID, standardWorktreeSerializationSessions, getStandardWorktreeDegradationReason, resetStandardWorktreeIsolationState, checkStandardWorktreeSerializationRelease, sanitizeWorktreeTaskId, preProvisionCollisionCheck, isLaneOwnedByCurrentSession, precreateStandardWorktreeSession, preserveBackgroundWorktreeOwnershipForCallId, preserveDirtyWorktreeForCallId, preserveDirtyWorktreeAtPath, cleanupStandardWorktreeForCallId, abortStandardWorktreeDispatch, finishStandardWorktreeDispatch, readLaneEnvFileFromDisk, _internals24 as _internals1, redactSecrets, prWorkflowSessionFileStem, ensurePrWorkflowSafeParentDirectory, writePrWorkflowAtomicJson, PrWorkflowCheckoutMutationTimeoutError, withPrWorkflowCheckoutMutationLock, PR_REVIEW_REPORT_VERDICTS, allowedPrReviewReportVerdicts, normalizePrReviewPartialBaseCoverageRecord, rollbackPrReviewPartialBaseCoverageAdmission, readPrReviewTerminalCoverageForReport, PR_REVIEW_REQUIRED_MICRO_LANE_IDS, PR_REVIEW_DEPTH_TIER_THRESHOLDS, PR_REVIEW_BASE_LANE_FLOORS, PR_REVIEW_TIER_L_CONSOLIDATED_LANE_FLOOR, PR_REVIEW_MICRO_LANE_FLOORS, computePrReviewDepthTier, MAX_PR_REVIEW_SUBMIT_REJECTIONS, MAX_PR_FEEDBACK_INVENTORY_AMENDMENTS, activatePrWorkflow, appendPrWorkflowSkillContractAdvisories, readPrWorkflowGateState, recordPrReviewSubmitRejection, latestPrReviewSubmitRejectionMessage, submitPrReviewResult, withPrWorkflowCheckoutPreparationLock, withInactivePrWorkflowCheckoutRestoreLock, clearPrWorkflowGateState, terminalizePrWorkflowGateForSession2 as terminalizePrWorkflowGateForSession, PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON, collectPrWorkflowPendingLaneLiveness, settlePresumedStalePrWorkflowLanes, abortPrWorkflow, recoverArmedPrWorkflow, bindPrWorkflowHead, rebindPrFeedbackHead, bindPrReviewBase, assertCurrentCheckoutHead, assertPrReviewCleanCheckout, enforcePrWorkflowDispatchLanesAsync, PrReviewResilienceCircuitOpenError, PrReviewResilienceRetryExhaustedError, enforcePrReviewBaseDimensions, rollbackPrReviewBaseAdmissionIfUnlaunched, admitPrReviewPartialBaseCoverage2 as admitPrReviewPartialBaseCoverage, assertPrReviewBaseCoverageSettled2 as assertPrReviewBaseCoverageSettled, recordPrReviewMicroFamilyDispatch, recordPrReviewValidationBatch, assertPrReviewValidationSettled, declarePrFeedbackInventory, enforcePrFeedbackVerificationOwnership, assertPrFeedbackVerificationSettled, recordPrFeedbackStageA, recordPrFeedbackGateBatch, assertPrFeedbackGatePhaseSettled, assertPrFeedbackReadyToPublish, invalidatePrFeedbackPublication, describePrWorkflowPublicationSection, findDanglingLivePublicationGeneration, recordPrFeedbackPushAttemptResult, cancelPrFeedbackPublication, resolvePrReviewWriterRunId, markPrReviewTriggerEvaluationComplete, bindPrReviewTriggerLedger, assertPrReviewArtifactBoundary, assertPrReviewArtifactRecordsMatchAuthoritativeVerdicts, markPrReviewArtifactBoundary, markPrReviewHandoffComplete, readPrReviewFinalFindingPolicyForReport, transitionPrReviewToFeedback, declarePrFeedbackScope, resolvePrFeedbackScopeDeclaration, consumePrFeedbackScopeDeclaration, validatePrFeedbackScopeBinding, enforcePrWorkflowToolBefore, readPrReviewReentryBindingContext, hasActivePrReviewReentryAuthorization, reserveActivePrReviewReentryAuthorization, completePrWorkflow, _test_exports2 as _test_exports, normalizePrWorkflowShellCommand, describePrWorkflowRevisionDigestFailure, readAuthoritativePrReviewCriticSettlements, readAuthoritativePrReviewCriticVerdicts, formatPrReviewLaneValidationFailure, validatePrReviewDiscoveryLaneCompletion2 as validatePrReviewDiscoveryLaneCompletion, validatePrWorkflowTransportRecovery, prReviewDiscoveryArtifactCoversLane, MAX_SALVAGED_SCHEMA_ERROR_CHARS, readPrWorkflowGateStateForRecovery, handleAcknowledgeSpecDriftCommand, handleAgentsCommand, handleAnalyzeCommand, handleApproveWriteCommand, handleArchiveCommand, handleAutoProceedCommand, handleBenchmarkCommand, handleBrainstormCommand, handleCheckpointCommand, DEFAULT_CI_DEADLINE_MS2 as DEFAULT_CI_DEADLINE_MS, createSignalCancellation, handleCiCommand, handleCiSimulateCommand, handleClarifyCommand, safeRealpathSync, createCuratorLLMDelegate, startSnapshotCoordinationInitialization, ensureSnapshotCoordinationReady, retrySnapshotCoordinationInitialization, getSnapshotCoordinationStatus, beginSnapshotCoordinationReset, closeSnapshotCoordinationInitialization, markSnapshotCoordinationClosing, _snapshotCoordinationInternals, handleCloseCommand, _internals56 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals60 as _internals3, createHivePromoterHook, promoteToHive, promoteFromSwarm, createMemoryGateway, handleCodebaseReviewCommand, handleConcurrencyCommand, handleConfigCommand, handleConsolidateCommand, handleCostsCommand, handleCouncilCommand, getCoChangePairs, handleCurateCommand, handleDarkMatterCommand, handleDeepDiveCommand, handleDeepResearchCommand, getHostConfigDir, getPluginCachePaths, getPluginLockFilePaths, VERSION_PINNED_LEAF, discoverVersionPinnedCachePaths, readCachePackageVersion, handleDiagnoseCommand, handleDoctorCommand, handleEvidenceCommand, handleEvidenceSummaryCommand, handleExportCommand, handleFullAutoCommand, computeQualityBudget, computeSastScan, handleGateAuditCommand, handleGateStatsCommand, handleHandoffCommand, handleBlueprintValidateCommand, handleBlueprintCurrentCommand, handleBlueprintHistoryCommand, handleBlueprintDiffCommand, handleBlueprintExportCommand, handleHarnessCandidateValidateCommand, handleHarnessCandidateShowCommand, handleHarnessCandidateDiffCommand, handleHistoryCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeMigrateCommand, handleKnowledgeListCommand, handleKnowledgeUnactionableCommand, handleKnowledgeRetryHardeningCommand, handleLearningCommand, handleLinkCommand, searchKnowledge, symbols, handleMemoryCommand, handleMemoryStatusCommand, handleMemoryValueLogCommand, handleMemoryMigrateCommand, handleMemoryImportCommand, handleMemoryExportCommand, handlePlanCommand, handlePreflightCommand, handlePromoteCommand, handleQaGatesCommand, handleRecoverCommand, handleResetCommand, handleResetSessionCommand, handleRetrieveCommand, handleReviewCommand, handleRollbackCommand, handleSddStatusCommand, handleSddValidateCommand, handleSddProjectCommand, handleSddCommand, handleSimulateCommand, handleSpecifyCommand, handleStatusCommand, handleSyncPlanCommand, handleTurboCommand, handleUnlinkCommand, handleWriteRetroCommand, handleHelpCommand, isCommandFailure, COMMAND_REGISTRY, VALID_COMMANDS, _internals27 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };