opencode-swarm 7.184.12 → 7.184.13

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 (75) hide show
  1. package/.opencode/skills/swarm-ci-monitor/SKILL.md +1 -0
  2. package/.opencode/skills/swarm-pr-feedback/SKILL.md +1 -0
  3. package/.opencode/skills/swarm-pr-review/SKILL.md +21 -21
  4. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +11 -0
  5. package/.opencode/skills/swarm-pr-review/references/parallel-work-example.md +20 -0
  6. package/.opencode/skills/swarm-pr-subscribe/SKILL.md +1 -0
  7. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  8. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  9. package/dist/cli/{auto-checkpoint-7y3x5cv2.js → auto-checkpoint-a2zbyh20.js} +4 -4
  10. package/dist/cli/{checkpoint-j39f718z.js → checkpoint-s444mhx5.js} +8 -8
  11. package/dist/cli/{coder-settlement-12ytzqvs.js → coder-settlement-hnwwt3f0.js} +3 -3
  12. package/dist/cli/{config-doctor-vphp4shw.js → config-doctor-2qhay8ft.js} +2 -2
  13. package/dist/cli/{core-5a1awn37.js → core-567f7gbz.js} +1 -1
  14. package/dist/cli/{curator-x2hxjdac.js → curator-antxp3dg.js} +24 -24
  15. package/dist/cli/{curator-drift-ex0qxt9p.js → curator-drift-ja4d9gq2.js} +5 -5
  16. package/dist/cli/{curator-llm-factory-ktkat73z.js → curator-llm-factory-0a3svbcn.js} +24 -24
  17. package/dist/cli/{evidence-summary-service-pfksvp16.js → evidence-summary-service-6ch3b0t5.js} +9 -9
  18. package/dist/cli/{gate-evidence-8n8kb8tb.js → gate-evidence-zh4fpbnv.js} +2 -2
  19. package/dist/cli/{guardrail-explain-px94swcz.js → guardrail-explain-pqyp8mx5.js} +25 -25
  20. package/dist/cli/{guardrail-log-xevw9xht.js → guardrail-log-99zsmp0p.js} +3 -3
  21. package/dist/cli/{guardrail-reset-18wvqbga.js → guardrail-reset-mzs00j16.js} +24 -24
  22. package/dist/cli/{hive-promoter-5r35f3ap.js → hive-promoter-f3enyhkn.js} +24 -24
  23. package/dist/cli/{index-34ysgky0.js → index-09wnx2ke.js} +1 -1
  24. package/dist/cli/{index-2cbt4b7t.js → index-0p0qwdyy.js} +1 -1
  25. package/dist/cli/{index-dze05t9h.js → index-258a0p26.js} +4 -4
  26. package/dist/cli/{index-zzebc1td.js → index-2n1ms79t.js} +1 -1
  27. package/dist/cli/{index-39ng38sp.js → index-2p3nzm9b.js} +1 -1
  28. package/dist/cli/{index-5w404j07.js → index-79y6dxa9.js} +1 -1
  29. package/dist/cli/{index-ryafwy2b.js → index-7vb5rx5w.js} +1 -1
  30. package/dist/cli/{index-zmtpnyff.js → index-9rm7tw6y.js} +3 -3
  31. package/dist/cli/{index-cvam011t.js → index-9y5b3nsk.js} +1 -1
  32. package/dist/cli/{index-rbvndg2d.js → index-a96rm6zk.js} +1 -1
  33. package/dist/cli/{index-74e43s33.js → index-a9rfvc8j.js} +3 -3
  34. package/dist/cli/{index-ymhs7hng.js → index-awkb5370.js} +5 -5
  35. package/dist/cli/{index-fbp7dqfe.js → index-ck2hzp5b.js} +1 -1
  36. package/dist/cli/{index-azyhws0s.js → index-d2xdwz22.js} +2 -2
  37. package/dist/cli/{index-vk49btd6.js → index-djct2zsr.js} +1 -1
  38. package/dist/cli/{index-d42kjvwy.js → index-e593fgq0.js} +2 -2
  39. package/dist/cli/{index-w33zgxn6.js → index-gz771bj7.js} +1 -1
  40. package/dist/cli/{index-eqfmabtd.js → index-gzh04gxh.js} +1 -1
  41. package/dist/cli/{index-5y1qxw0x.js → index-hg1hqfy3.js} +3 -3
  42. package/dist/cli/{index-n572fdtf.js → index-kxm9wm5e.js} +135 -64
  43. package/dist/cli/{index-a53f5t61.js → index-nt8g5952.js} +2 -2
  44. package/dist/cli/{index-53fy0aq2.js → index-pq35rmz5.js} +26 -26
  45. package/dist/cli/{index-2p1an48j.js → index-ra0z5wza.js} +1 -1
  46. package/dist/cli/{index-s7rap90y.js → index-sa061g64.js} +3 -3
  47. package/dist/cli/{index-27wzbb3n.js → index-t7ck2nvk.js} +1 -1
  48. package/dist/cli/{index-x0jybm74.js → index-tswsm3sw.js} +3 -3
  49. package/dist/cli/{index-yvmvsej2.js → index-v4ra6hz8.js} +5 -5
  50. package/dist/cli/{index-kcbkce43.js → index-vd1sd1m5.js} +24 -24
  51. package/dist/cli/{index-hfs97j0c.js → index-wksedk4d.js} +1 -1
  52. package/dist/cli/index.js +25 -25
  53. package/dist/cli/{knowledge-escalator-z5qb6y6s.js → knowledge-escalator-6c813zv8.js} +6 -6
  54. package/dist/cli/{knowledge-events-gv173j4d.js → knowledge-events-9hbwedqb.js} +4 -4
  55. package/dist/cli/{knowledge-store-g4sjhep5.js → knowledge-store-8t9wy3ab.js} +1 -1
  56. package/dist/cli/{knowledge-validator-8whkrsrb.js → knowledge-validator-g61010aw.js} +2 -2
  57. package/dist/cli/{mcp-x25b3q1g.js → mcp-tyzj9cwy.js} +1 -1
  58. package/dist/cli/{model-preflight-b21njmda.js → model-preflight-q8pnsjay.js} +24 -24
  59. package/dist/cli/{pending-delegations-f6rmrqzn.js → pending-delegations-8nah16wj.js} +2 -2
  60. package/dist/cli/{pr-subscriptions-nmbme4kp.js → pr-subscriptions-rd3gnc3r.js} +1 -1
  61. package/dist/cli/{pr-workflow-gate-mtzfsmkg.js → pr-workflow-gate-1y8by6bt.js} +32 -24
  62. package/dist/cli/{scan-cursor-gmpjsr3a.js → scan-cursor-4s30je6f.js} +2 -2
  63. package/dist/cli/{schema-rvxnxp4n.js → schema-r3v5tb9r.js} +1 -1
  64. package/dist/cli/{scope-persistence-fqenprq7.js → scope-persistence-vtz91b5n.js} +5 -5
  65. package/dist/cli/{server-ws1my2dz.js → server-j1ybvgn4.js} +24 -24
  66. package/dist/cli/{skill-generator-pt1epeer.js → skill-generator-h27wtea0.js} +7 -7
  67. package/dist/cli/{snapshot-coordination-init-9zrktnh5.js → snapshot-coordination-init-yntqf46w.js} +24 -24
  68. package/dist/cli/{speckit-checkoff-k13zhgh5.js → speckit-checkoff-qxt03eh3.js} +3 -3
  69. package/dist/cli/{worktree-collision-ownership-mw3rkc4v.js → worktree-collision-ownership-0a7jtwwe.js} +2 -2
  70. package/dist/cli/{worktree-isolation-0rtrpf0b.js → worktree-isolation-4re648a3.js} +24 -24
  71. package/dist/hooks/pr-workflow-gate.d.ts +59 -1
  72. package/dist/index.js +8 -8
  73. package/dist/tools/dispatch-lanes.d.ts +7 -0
  74. package/dist/tools/submit-pr-review-result.d.ts +17 -0
  75. package/package.json +1 -1
@@ -8,13 +8,13 @@ import {
8
8
  protectedRoots,
9
9
  redactDecisionLineForArchive,
10
10
  stableCanonicalStringify
11
- } from "./index-2p1an48j.js";
11
+ } from "./index-ra0z5wza.js";
12
12
  import {
13
13
  detectStraySwarmDirs,
14
14
  readDoctorArtifact,
15
15
  removeStraySwarmDir,
16
16
  runConfigDoctor
17
- } from "./index-ryafwy2b.js";
17
+ } from "./index-7vb5rx5w.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-34ysgky0.js";
29
+ } from "./index-09wnx2ke.js";
30
30
  import {
31
31
  LANGUAGE_REGISTRY,
32
32
  _internals as _internals3,
@@ -77,7 +77,7 @@ import {
77
77
  alreadyCuratedThisGeneration,
78
78
  claimNextScanBatch,
79
79
  resolveCohortId
80
- } from "./index-eqfmabtd.js";
80
+ } from "./index-gzh04gxh.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-w33zgxn6.js";
99
+ } from "./index-gz771bj7.js";
100
100
  import {
101
101
  assertNoUnsettledCoderDispatch,
102
102
  listCoderSettlementWalStates,
103
103
  recoverCoderSettlement,
104
104
  recoverStaleCoderSettlements
105
- } from "./index-s7rap90y.js";
105
+ } from "./index-sa061g64.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-74e43s33.js";
126
+ } from "./index-a9rfvc8j.js";
127
127
  import {
128
128
  buildEscalationBriefing,
129
129
  readRecentEscalations
130
- } from "./index-ymhs7hng.js";
130
+ } from "./index-awkb5370.js";
131
131
  import {
132
132
  parsePorcelainV2Snapshot,
133
133
  resolveCommitCountSince,
@@ -183,7 +183,7 @@ import {
183
183
  checkpoint,
184
184
  createSwarmTool,
185
185
  resolveWorkingDirectory
186
- } from "./index-5y1qxw0x.js";
186
+ } from "./index-hg1hqfy3.js";
187
187
  import {
188
188
  MAX_TRANSIENT_RETRIES,
189
189
  PlanRecoverySupersededError,
@@ -211,7 +211,7 @@ import {
211
211
  transientBackoff,
212
212
  updateTaskStatus,
213
213
  withPlanLifecycleLock
214
- } from "./index-yvmvsej2.js";
214
+ } from "./index-v4ra6hz8.js";
215
215
  import {
216
216
  containsControlChars,
217
217
  containsPathTraversal,
@@ -227,7 +227,7 @@ import {
227
227
  resolveSpeckitProjection,
228
228
  validateSpeckit,
229
229
  writeProjectedSpecSync
230
- } from "./index-cvam011t.js";
230
+ } from "./index-9y5b3nsk.js";
231
231
  import {
232
232
  clearWorktreeMergeStatus,
233
233
  getAllWorktreeMergeFailures,
@@ -258,7 +258,7 @@ import {
258
258
  transitionTaskWorkflowEvidenceWithStatus,
259
259
  withTaskEvidenceTransaction,
260
260
  writeWorkflowWalFile
261
- } from "./index-fbp7dqfe.js";
261
+ } from "./index-ck2hzp5b.js";
262
262
  import {
263
263
  isPathUnderSwarmWorktreeBase,
264
264
  listLiveLaneOwners,
@@ -267,7 +267,7 @@ import {
267
267
  recordLiveLaneOwner,
268
268
  removeWorktree,
269
269
  resolveWorktreeBaseDir
270
- } from "./index-rbvndg2d.js";
270
+ } from "./index-a96rm6zk.js";
271
271
  import {
272
272
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
273
273
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -301,7 +301,7 @@ import {
301
301
  scanBackgroundCoderReservationsForAdmission,
302
302
  scanDelegationsForRecovery,
303
303
  sweepStaleDelegations
304
- } from "./index-zzebc1td.js";
304
+ } from "./index-2n1ms79t.js";
305
305
  import {
306
306
  MAX_EVENT_LOG_ENTRIES,
307
307
  _internals,
@@ -320,7 +320,7 @@ import {
320
320
  recordKnowledgeEvent,
321
321
  recordPhaseCloseIntent,
322
322
  resolveKnowledgeEventsPath
323
- } from "./index-zmtpnyff.js";
323
+ } from "./index-9rm7tw6y.js";
324
324
  import {
325
325
  estimateCharsForTokens,
326
326
  estimateTokens,
@@ -348,7 +348,7 @@ import {
348
348
  validateActionableFields,
349
349
  validateLesson,
350
350
  validateSkillPath
351
- } from "./index-27wzbb3n.js";
351
+ } from "./index-t7ck2nvk.js";
352
352
  import {
353
353
  MAX_CURATION_PROPOSALS,
354
354
  authorizeCuration,
@@ -359,7 +359,7 @@ import {
359
359
  } from "./index-rtry5xyf.js";
360
360
  import {
361
361
  resolveWorktreeIsolationConfig
362
- } from "./index-d42kjvwy.js";
362
+ } from "./index-e593fgq0.js";
363
363
  import {
364
364
  RetrospectiveEvidenceSchema
365
365
  } from "./index-frcemc0b.js";
@@ -371,7 +371,7 @@ import {
371
371
  clearScopeBindings,
372
372
  readAuthoritativeScopeBindingSet,
373
373
  readDeclaredScopeFilesFromBindings
374
- } from "./index-5w404j07.js";
374
+ } from "./index-79y6dxa9.js";
375
375
  import {
376
376
  clearPlanLedgerForReset,
377
377
  computePlanStructureHash,
@@ -387,7 +387,7 @@ import {
387
387
  replayFromLedgerWithStatus,
388
388
  resolvePlanningProfile,
389
389
  takeSnapshotEvent
390
- } from "./index-azyhws0s.js";
390
+ } from "./index-d2xdwz22.js";
391
391
  import {
392
392
  CORE_EVENT_LOCKED,
393
393
  appendCoreEventSync,
@@ -476,7 +476,7 @@ import {
476
476
  transactFile,
477
477
  transactKnowledge,
478
478
  wordBigrams
479
- } from "./index-dze05t9h.js";
479
+ } from "./index-258a0p26.js";
480
480
  import {
481
481
  readTailJsonl,
482
482
  readTailJsonlDetailed,
@@ -557,7 +557,7 @@ import {
557
557
  loadGateOverrides,
558
558
  loadPluginConfig,
559
559
  loadPluginConfigWithMeta
560
- } from "./index-vk49btd6.js";
560
+ } from "./index-djct2zsr.js";
561
561
  import {
562
562
  addDeferredWarning,
563
563
  advisoryWarn,
@@ -589,7 +589,7 @@ import {
589
589
  resolveContextWindow,
590
590
  resolveGeneratedAgentRole,
591
591
  stripKnownSwarmPrefix
592
- } from "./index-39ng38sp.js";
592
+ } from "./index-2p3nzm9b.js";
593
593
  import {
594
594
  AGENT_TOOL_MAP,
595
595
  ALL_AGENT_NAMES,
@@ -3352,7 +3352,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3352
3352
  return null;
3353
3353
  throw error2;
3354
3354
  }
3355
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-mtzfsmkg.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3355
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-1y8by6bt.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3356
3356
  if (!legacy)
3357
3357
  return null;
3358
3358
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3439,7 +3439,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3439
3439
  let recoveryState = null;
3440
3440
  if (!currentAuthoritative) {
3441
3441
  if (options.allowSalvagedRead) {
3442
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-mtzfsmkg.js");
3442
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-1y8by6bt.js");
3443
3443
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3444
3444
  }
3445
3445
  if (!recoveryState) {
@@ -14824,7 +14824,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
14824
14824
  return extracted === expectedSessionId;
14825
14825
  }
14826
14826
  async function inspectStandardWorktreeCollisionOwnership(identity) {
14827
- const collisionOwnership = await import("./worktree-collision-ownership-mw3rkc4v.js");
14827
+ const collisionOwnership = await import("./worktree-collision-ownership-0a7jtwwe.js");
14828
14828
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
14829
14829
  }
14830
14830
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -15250,7 +15250,7 @@ async function precreateStandardWorktreeSession(args) {
15250
15250
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
15251
15251
  if (laneProfile) {
15252
15252
  try {
15253
- const { writeLaneProfileToDiskReal } = await import("./core-5a1awn37.js");
15253
+ const { writeLaneProfileToDiskReal } = await import("./core-567f7gbz.js");
15254
15254
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
15255
15255
  } catch {}
15256
15256
  }
@@ -16229,7 +16229,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
16229
16229
  }
16230
16230
  clearWorktreeMergeStatus(statusKey);
16231
16231
  try {
16232
- const { removeLaneProfileFromDiskReal } = await import("./core-5a1awn37.js");
16232
+ const { removeLaneProfileFromDiskReal } = await import("./core-567f7gbz.js");
16233
16233
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
16234
16234
  } catch {}
16235
16235
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -23858,7 +23858,7 @@ function clearCriticalShownIds(sessionID) {
23858
23858
  async function rehydratePrSubscriptions(sessionID, directory) {
23859
23859
  const map = new Map;
23860
23860
  try {
23861
- const { listActive: listActive2 } = await import("./pr-subscriptions-nmbme4kp.js");
23861
+ const { listActive: listActive2 } = await import("./pr-subscriptions-rd3gnc3r.js");
23862
23862
  const records = await listActive2(directory);
23863
23863
  for (const record of records) {
23864
23864
  if (record.sessionID !== sessionID)
@@ -23986,6 +23986,7 @@ var MAX_PUBLICATION_ATTEMPTS = 8;
23986
23986
  var MAX_PUSH_ATTEMPT_DIAGNOSTIC_CHARS = 500;
23987
23987
  var PUBLICATION_SCHEMA_VERSION = 1;
23988
23988
  var PUBLICATION_URL_CREDENTIALS_PATTERN = /\b([a-zA-Z][a-zA-Z0-9+.-]*:\/\/)[^\s/@:]+:[^\s/@]+@/g;
23989
+ var MAX_PR_REVIEW_SUBMIT_REJECTIONS = 24;
23989
23990
  var GATE_SCHEMA_VERSION = 1;
23990
23991
  var MAX_WORKFLOW_BATCHES = 128;
23991
23992
  var MAX_PR_REVIEW_BASE_LANES_PER_BATCH = PR_REVIEW_BASE_DIMENSION_IDS.length;
@@ -24281,6 +24282,12 @@ var PrWorkflowGateStateSchema = exports_external.object({
24281
24282
  prReviewCoverageDisclosurePath: exports_external.string().min(1).max(512).optional(),
24282
24283
  prReviewCoverageDisclosureDigest: exports_external.string().regex(/^[0-9a-f]{64}$/).optional(),
24283
24284
  prReviewDimensionCancellations: exports_external.record(exports_external.enum(PR_REVIEW_BASE_DIMENSION_IDS), PrReviewDimensionCancellationRecordSchema).optional(),
24285
+ prReviewSubmitRejections: exports_external.array(exports_external.object({
24286
+ childSessionId: exports_external.string().min(1).max(200),
24287
+ laneId: exports_external.string().min(1).max(200).optional(),
24288
+ at: exports_external.number(),
24289
+ message: exports_external.string().min(1).max(300)
24290
+ }).strict()).max(MAX_PR_REVIEW_SUBMIT_REJECTIONS).optional(),
24284
24291
  prReviewArtifactBoundaries: exports_external.array(exports_external.enum(["post_explorer", "post_reviewer", "post_critic"])).max(3).optional(),
24285
24292
  prReviewHandoffPath: exports_external.string().min(1).optional(),
24286
24293
  prReviewHandoffRequired: exports_external.boolean().optional(),
@@ -24406,7 +24413,60 @@ function isLivenessTerminalLaneRecord(record) {
24406
24413
  }
24407
24414
  return record.terminalResult?.result.workflowLaneFailureClass === "liveness" || record.result?.workflowLaneFailureClass === "liveness";
24408
24415
  }
24409
- async function submitPrReviewResult(directory, childSessionId, input) {
24416
+ async function recordPrReviewSubmitRejection(directory, childSessionId, message) {
24417
+ try {
24418
+ const child = childSessionId.trim();
24419
+ if (!child)
24420
+ return;
24421
+ const childRead = readDelegationsDetailed(directory);
24422
+ if (childRead.status === "uncertain")
24423
+ return;
24424
+ const record = childRead.records.find((candidate) => candidate.subagentSessionId === child && (candidate.mode === "swarm-pr-review:base" || candidate.mode === "swarm-pr-review:micro"));
24425
+ const parentSessionId = record?.parentSessionId?.trim();
24426
+ if (!parentSessionId)
24427
+ return;
24428
+ const existing = await readPrWorkflowGateStateFromDisk3(directory, parentSessionId);
24429
+ if (!existing || existing.mode !== "PR_REVIEW")
24430
+ return;
24431
+ const laneId = record?.laneId?.trim();
24432
+ const bounded = redactSecrets(message.replace(PUBLICATION_URL_CREDENTIALS_PATTERN, "$1[REDACTED:url_credentials]@")).slice(0, 300);
24433
+ await withSessionStateMutation(directory, parentSessionId, async () => {
24434
+ const locked = await readPrWorkflowGateStateFromDisk3(directory, parentSessionId);
24435
+ if (!locked || locked.mode !== "PR_REVIEW")
24436
+ return;
24437
+ const prior = locked.prReviewSubmitRejections ?? [];
24438
+ const newestForChild = prior.filter((entry) => entry.childSessionId === child).at(-1);
24439
+ if (newestForChild?.message === bounded)
24440
+ return;
24441
+ const journal = [
24442
+ ...prior,
24443
+ {
24444
+ childSessionId: child,
24445
+ ...laneId ? { laneId } : {},
24446
+ at: Date.now(),
24447
+ message: bounded
24448
+ }
24449
+ ].slice(-MAX_PR_REVIEW_SUBMIT_REJECTIONS);
24450
+ await writeStateWhileLocked(directory, {
24451
+ ...locked,
24452
+ prReviewSubmitRejections: journal,
24453
+ updatedAt: isoNow()
24454
+ });
24455
+ });
24456
+ } catch {}
24457
+ }
24458
+ function latestPrReviewSubmitRejectionMessage(state, childSessionId) {
24459
+ const journal = state.prReviewSubmitRejections;
24460
+ if (!journal?.length)
24461
+ return;
24462
+ for (let index = journal.length - 1;index >= 0; index--) {
24463
+ if (journal[index]?.childSessionId === childSessionId) {
24464
+ return journal[index]?.message;
24465
+ }
24466
+ }
24467
+ return;
24468
+ }
24469
+ async function submitPrReviewResultCore(directory, childSessionId, input) {
24410
24470
  const child = childSessionId.trim();
24411
24471
  const parsedResult = PrReviewLaneResultEnvelopeSchema.safeParse(input.result);
24412
24472
  if (!child || !parsedResult.success) {
@@ -24555,6 +24615,13 @@ async function submitPrReviewResult(directory, childSessionId, input) {
24555
24615
  return { status: "rejected", reason: published.reason };
24556
24616
  });
24557
24617
  }
24618
+ async function submitPrReviewResult(directory, childSessionId, input) {
24619
+ const outcome = await submitPrReviewResultCore(directory, childSessionId, input);
24620
+ if (outcome.status === "rejected") {
24621
+ await recordPrReviewSubmitRejection(directory, childSessionId, outcome.reason);
24622
+ }
24623
+ return outcome;
24624
+ }
24558
24625
  async function withPrWorkflowCheckoutPreparationLock(directory, sessionID, action2) {
24559
24626
  const normalizedSessionID = normalizeSessionID(sessionID);
24560
24627
  return withPrWorkflowCheckoutMutationLock(directory, async () => withSessionStateMutation(directory, normalizedSessionID, async () => {
@@ -24727,6 +24794,7 @@ async function probeAlivePrWorkflowLaneSessions(directory, records) {
24727
24794
  }
24728
24795
  return { alive };
24729
24796
  }
24797
+ var PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON = "probe-skipped-no-budget";
24730
24798
  async function collectPrWorkflowPendingLaneLiveness(directory, records, options = {}) {
24731
24799
  let now = 0;
24732
24800
  let pastThreshold = [];
@@ -24745,7 +24813,7 @@ async function collectPrWorkflowPendingLaneLiveness(directory, records, options
24745
24813
  return [];
24746
24814
  const budgetMs = Math.max(0, Math.min(_test_exports2.laneLivenessProbeTimeoutMs, options.probeBudgetMs ?? Number.POSITIVE_INFINITY));
24747
24815
  if (budgetMs <= 0) {
24748
- return pastThreshold.map((record) => degraded(record, "probe-skipped-no-budget"));
24816
+ return pastThreshold.map((record) => degraded(record, PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON));
24749
24817
  }
24750
24818
  const probe = await probePrWorkflowLaneSessionStatusTypes(directory, pastThreshold, budgetMs);
24751
24819
  const advisories = [];
@@ -29671,6 +29739,7 @@ var _test_exports2 = {
29671
29739
  classifyPrReviewCircuitSignal,
29672
29740
  minimumConsolidatedLaneCover,
29673
29741
  analyzePrReviewBatchRecordIntegrity,
29742
+ workflowArtifactHasContractMarker,
29674
29743
  MAX_COVER_UNIVERSE_BITS,
29675
29744
  extractCandidateIds,
29676
29745
  parseCanonicalCandidateRows,
@@ -31253,6 +31322,7 @@ function workflowArtifactHasContractMarker(directory, state, record, expectedMod
31253
31322
  }
31254
31323
  if (expectedMode === "swarm-pr-review:base" || expectedMode === "swarm-pr-review:micro") {
31255
31324
  const reviewScope = state.mode === "PR_REVIEW" && state.prReviewBaseSha && state.prHeadSha ? `complete PR diff ${state.prReviewBaseSha}...${state.prHeadSha}` : undefined;
31325
+ const lastSubmitRejection = latestPrReviewSubmitRejectionMessage(state, record.subagentSessionId);
31256
31326
  const validation = validatePrReviewDiscoveryLaneCompletion2({
31257
31327
  record,
31258
31328
  result: record.result,
@@ -31268,7 +31338,8 @@ function workflowArtifactHasContractMarker(directory, state, record, expectedMod
31268
31338
  workflowRevision: record.workflowGeneration,
31269
31339
  baseSha: state.prReviewBaseSha,
31270
31340
  reviewScope
31271
- }
31341
+ },
31342
+ ...lastSubmitRejection ? { lastSubmitRejection } : {}
31272
31343
  });
31273
31344
  if (!validation.ok) {
31274
31345
  if (diagnostics && diagnostics.length < MAX_BASE_COVERAGE_DIAGNOSTICS) {
@@ -31450,7 +31521,7 @@ function validatePrReviewDiscoveryLaneCompletion2(input) {
31450
31521
  return { ok: false, failure: structuredCoverage.failure };
31451
31522
  }
31452
31523
  if ((input.expected.mode === "swarm-pr-review:base" || input.expected.mode === "swarm-pr-review:micro") && !prReviewLegacyTranscriptCompatibilityEnabled(input.record.prReviewLegacyTranscriptCompatibility)) {
31453
- return failedLaneValidation("discovery.coverage", "child-bound structured receipt", "missing structured receipt (legacy transcript adapter disabled)");
31524
+ return failedLaneValidation("discovery.coverage", "child-bound structured receipt", `missing structured receipt (legacy transcript adapter disabled)${input.lastSubmitRejection ? `; last rejected submit_pr_review_result: ${input.lastSubmitRejection.slice(0, 300)}` : ""}`);
31454
31525
  }
31455
31526
  const artifactIntegrity = analyzeLaneArtifactIntegrity({
31456
31527
  record: input.record,
@@ -40114,9 +40185,9 @@ function hashContent(content) {
40114
40185
  return createHash25("sha1").update(content).digest("hex");
40115
40186
  }
40116
40187
  async function loadConfigForPolicyCurator(directory) {
40117
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rvxnxp4n.js");
40188
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r3v5tb9r.js");
40118
40189
  try {
40119
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-x0jybm74.js");
40190
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-tswsm3sw.js");
40120
40191
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
40121
40192
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
40122
40193
  } catch {
@@ -43174,7 +43245,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
43174
43245
  const seam = _internals37.createCuratorLLMDelegate;
43175
43246
  if (seam)
43176
43247
  return seam(directory, mode, sessionId);
43177
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-ktkat73z.js");
43248
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-0a3svbcn.js");
43178
43249
  return createCuratorLLMDelegate(directory, mode, sessionId);
43179
43250
  }
43180
43251
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -43569,7 +43640,7 @@ async function runFinalizeStage(ctx) {
43569
43640
  }
43570
43641
  }
43571
43642
  try {
43572
- const { CuratorConfigSchema: CCS } = await import("./schema-rvxnxp4n.js");
43643
+ const { CuratorConfigSchema: CCS } = await import("./schema-r3v5tb9r.js");
43573
43644
  const { config: pmLoadedConfig } = _internals37.loadPluginConfigWithMeta(ctx.directory);
43574
43645
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
43575
43646
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -45755,7 +45826,7 @@ function serializeAgentSession(s) {
45755
45826
  }
45756
45827
  async function writeSnapshot(directory, state) {
45757
45828
  try {
45758
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-9zrktnh5.js");
45829
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-yntqf46w.js");
45759
45830
  await ensureSnapshotCoordinationReady(directory);
45760
45831
  const snapshot = {
45761
45832
  version: 3,
@@ -48933,7 +49004,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
48933
49004
  };
48934
49005
  }
48935
49006
  async function sweepActiveNearDuplicates(directory, options = {}) {
48936
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-x0jybm74.js");
49007
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-tswsm3sw.js");
48937
49008
  const { config } = loadPluginConfigWithMeta2(directory);
48938
49009
  const sweepConfig = config.learning?.dedup_sweep;
48939
49010
  if (sweepConfig?.enabled === false)
@@ -50057,7 +50128,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
50057
50128
  }
50058
50129
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
50059
50130
  try {
50060
- const skillModule = await import("./skill-generator-pt1epeer.js");
50131
+ const skillModule = await import("./skill-generator-h27wtea0.js");
50061
50132
  for (const cand of skillCandidates) {
50062
50133
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
50063
50134
  continue;
@@ -50529,7 +50600,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
50529
50600
  } catch {}
50530
50601
  }
50531
50602
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
50532
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-z5qb6y6s.js");
50603
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-6c813zv8.js");
50533
50604
  for (const { id } of contradictedEntries) {
50534
50605
  try {
50535
50606
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -51361,7 +51432,7 @@ async function runCuratorPostMortem(directory, options = {}) {
51361
51432
  warnings.push("Failed to collect knowledge summary.");
51362
51433
  }
51363
51434
  try {
51364
- const { getScanStatus } = await import("./scan-cursor-gmpjsr3a.js");
51435
+ const { getScanStatus } = await import("./scan-cursor-4s30je6f.js");
51365
51436
  const scanStatus = await getScanStatus(directory);
51366
51437
  if (scanStatus.remaining_estimate > 0) {
51367
51438
  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.`);
@@ -51533,9 +51604,9 @@ var _internals56 = {
51533
51604
  verifyPostMortemKnowledgeActions,
51534
51605
  repairPostMortemActions,
51535
51606
  loadDefaultKnowledgeConfig: async (directory) => {
51536
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rvxnxp4n.js");
51607
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r3v5tb9r.js");
51537
51608
  try {
51538
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-x0jybm74.js");
51609
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-tswsm3sw.js");
51539
51610
  const loaded = loadPluginConfigWithMeta2(directory);
51540
51611
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
51541
51612
  } catch {
@@ -51543,11 +51614,11 @@ var _internals56 = {
51543
51614
  }
51544
51615
  },
51545
51616
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
51546
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-x2hxjdac.js");
51617
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-antxp3dg.js");
51547
51618
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
51548
51619
  },
51549
51620
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
51550
- const { checkHivePromotions } = await import("./hive-promoter-5r35f3ap.js");
51621
+ const { checkHivePromotions } = await import("./hive-promoter-f3enyhkn.js");
51551
51622
  return checkHivePromotions(entries2, knowledgeConfig, directory);
51552
51623
  },
51553
51624
  applyProposalTriage: async (directory, triage) => {
@@ -51556,7 +51627,7 @@ var _internals56 = {
51556
51627
  activateProposal,
51557
51628
  listSkills: listSkills2,
51558
51629
  sanitizeSlug
51559
- } = await import("./skill-generator-pt1epeer.js");
51630
+ } = await import("./skill-generator-h27wtea0.js");
51560
51631
  const result = {
51561
51632
  approved: [],
51562
51633
  rejected: [],
@@ -51598,7 +51669,7 @@ var _internals56 = {
51598
51669
  return result;
51599
51670
  },
51600
51671
  readPriorDriftReports: async (directory) => {
51601
- const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-ex0qxt9p.js");
51672
+ const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-ja4d9gq2.js");
51602
51673
  return readPriorDriftReports2(directory);
51603
51674
  },
51604
51675
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -61394,9 +61465,9 @@ var _internals66 = {
61394
61465
  loadPluginConfigWithMeta,
61395
61466
  loadCuratorDeps: async () => {
61396
61467
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
61397
- import("./schema-rvxnxp4n.js"),
61398
- import("./curator-x2hxjdac.js"),
61399
- import("./curator-llm-factory-ktkat73z.js")
61468
+ import("./schema-r3v5tb9r.js"),
61469
+ import("./curator-antxp3dg.js"),
61470
+ import("./curator-llm-factory-0a3svbcn.js")
61400
61471
  ]);
61401
61472
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
61402
61473
  }
@@ -63789,7 +63860,7 @@ async function computeCurationDiagnostics(directory, entries2) {
63789
63860
  let scanCompleted = false;
63790
63861
  let scanRemaining = 0;
63791
63862
  try {
63792
- const { getScanStatus } = await import("./scan-cursor-gmpjsr3a.js");
63863
+ const { getScanStatus } = await import("./scan-cursor-4s30je6f.js");
63793
63864
  const status = await getScanStatus(directory);
63794
63865
  scanGeneration = status.generation;
63795
63866
  scanCompleted = status.completed;
@@ -63799,10 +63870,10 @@ async function computeCurationDiagnostics(directory, entries2) {
63799
63870
  try {
63800
63871
  const { isLinked: isLinked2 } = await import("./knowledge-link-vvyfhhmr.js");
63801
63872
  if (isLinked2(directory)) {
63802
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rvxnxp4n.js");
63873
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r3v5tb9r.js");
63803
63874
  let config;
63804
63875
  try {
63805
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-x0jybm74.js");
63876
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-tswsm3sw.js");
63806
63877
  const loaded = loadPluginConfigWithMeta2(directory);
63807
63878
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
63808
63879
  } catch {
@@ -65257,7 +65328,7 @@ async function handleDoctorCommand(directory, args) {
65257
65328
  const result = runConfigDoctor(config, directory);
65258
65329
  let output;
65259
65330
  if (enableAutoFix && result.hasAutoFixableIssues) {
65260
- const { runConfigDoctorWithFixes } = await import("./config-doctor-vphp4shw.js");
65331
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-2qhay8ft.js");
65261
65332
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
65262
65333
  applyLossy: true
65263
65334
  });
@@ -65295,7 +65366,7 @@ async function handleDoctorCommand(directory, args) {
65295
65366
  `;
65296
65367
  }
65297
65368
  try {
65298
- const { runModelPreflight } = await import("./model-preflight-b21njmda.js");
65369
+ const { runModelPreflight } = await import("./model-preflight-q8pnsjay.js");
65299
65370
  const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
65300
65371
  const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
65301
65372
  const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
@@ -66222,7 +66293,7 @@ async function handleEvidenceCommand(directory, args) {
66222
66293
  return formatTaskEvidenceMarkdown(evidenceData);
66223
66294
  }
66224
66295
  async function handleEvidenceSummaryCommand(directory) {
66225
- const { buildEvidenceSummary } = await import("./evidence-summary-service-pfksvp16.js");
66296
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-6ch3b0t5.js");
66226
66297
  const artifact = await buildEvidenceSummary(directory);
66227
66298
  if (!artifact) {
66228
66299
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -90502,7 +90573,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
90502
90573
  }
90503
90574
  const sdkOpts = signal ? { signal } : {};
90504
90575
  try {
90505
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-kcbkce43.js");
90576
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-vd1sd1m5.js");
90506
90577
  const createResult = await client.session.create({
90507
90578
  ...sessionId ? {
90508
90579
  body: {
@@ -92475,7 +92546,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
92475
92546
  clearedEvents: []
92476
92547
  };
92477
92548
  try {
92478
- const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-mtzfsmkg.js");
92549
+ const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-1y8by6bt.js");
92479
92550
  await cancelPrFeedbackPublication2(directory, sessionID, reason);
92480
92551
  } catch (err) {
92481
92552
  warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
@@ -108642,7 +108713,7 @@ function buildDetailedHelp(commandName, entry) {
108642
108713
  async function handleHelpCommand(ctx) {
108643
108714
  const targetCommand = ctx.args.join(" ");
108644
108715
  if (!targetCommand) {
108645
- const { buildHelpText } = await import("./index-53fy0aq2.js");
108716
+ const { buildHelpText } = await import("./index-pq35rmz5.js");
108646
108717
  return buildHelpText();
108647
108718
  }
108648
108719
  const tokens = targetCommand.split(/\s+/);
@@ -108656,7 +108727,7 @@ async function handleHelpCommand(ctx) {
108656
108727
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
108657
108728
  }
108658
108729
  const similar = _internals26.findSimilarCommands(targetCommand);
108659
- const { buildHelpText: fullHelp } = await import("./index-53fy0aq2.js");
108730
+ const { buildHelpText: fullHelp } = await import("./index-pq35rmz5.js");
108660
108731
  if (similar.length > 0) {
108661
108732
  return `Command '/swarm ${targetCommand}' not found.
108662
108733
 
@@ -108971,7 +109042,7 @@ var COMMAND_REGISTRY = {
108971
109042
  },
108972
109043
  "guardrail explain": {
108973
109044
  handler: async (ctx) => {
108974
- const { handleGuardrailExplain } = await import("./guardrail-explain-px94swcz.js");
109045
+ const { handleGuardrailExplain } = await import("./guardrail-explain-pqyp8mx5.js");
108975
109046
  return handleGuardrailExplain(ctx.directory, ctx.args);
108976
109047
  },
108977
109048
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -108981,7 +109052,7 @@ var COMMAND_REGISTRY = {
108981
109052
  },
108982
109053
  "guardrail reset": {
108983
109054
  handler: async (ctx) => {
108984
- const { handleGuardrailReset } = await import("./guardrail-reset-18wvqbga.js");
109055
+ const { handleGuardrailReset } = await import("./guardrail-reset-mzs00j16.js");
108985
109056
  return handleGuardrailReset(ctx.args, ctx.sessionID);
108986
109057
  },
108987
109058
  description: "Reset one exact active invocation/action circuit after repair",
@@ -109002,7 +109073,7 @@ var COMMAND_REGISTRY = {
109002
109073
  },
109003
109074
  "guardrail-log": {
109004
109075
  handler: async (ctx) => {
109005
- const { handleGuardrailLog } = await import("./guardrail-log-xevw9xht.js");
109076
+ const { handleGuardrailLog } = await import("./guardrail-log-99zsmp0p.js");
109006
109077
  return handleGuardrailLog(ctx.directory, ctx.args);
109007
109078
  },
109008
109079
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -114310,4 +114381,4 @@ function getAgentConfigs(config, directory, sessionId, projectContext) {
114310
114381
  return result;
114311
114382
  }
114312
114383
 
114313
- 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, _internals130 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, _internals23 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_FEEDBACK_INVENTORY_AMENDMENTS, activatePrWorkflow, readPrWorkflowGateState, submitPrReviewResult, withPrWorkflowCheckoutPreparationLock, withInactivePrWorkflowCheckoutRestoreLock, clearPrWorkflowGateState, terminalizePrWorkflowGateForSession2 as terminalizePrWorkflowGateForSession, 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, _internals55 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals59 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, _internals26 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };
114384
+ 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, _internals130 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, _internals23 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, 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, _internals55 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals59 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, _internals26 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };