opencode-swarm 7.167.2 → 7.168.0

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 (102) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{coder-settlement-jy9rad28.js → coder-settlement-a35acvj1.js} +12 -12
  4. package/dist/cli/{config-doctor-p66vnpy3.js → config-doctor-9csx775x.js} +3 -3
  5. package/dist/cli/{core-tw0wtntz.js → core-agk5s7dm.js} +2 -2
  6. package/dist/cli/{curation-policy-ndp27v0c.js → curation-policy-mgwv8h2k.js} +5 -5
  7. package/dist/cli/{curator-5nzde80g.js → curator-2fcagjyk.js} +38 -38
  8. package/dist/cli/{curator-drift-gb651hcw.js → curator-drift-k0zrnm09.js} +5 -5
  9. package/dist/cli/curator-llm-factory-qaxmyy46.js +71 -0
  10. package/dist/cli/{evidence-summary-service-bzpfaypy.js → evidence-summary-service-4s6cje60.js} +17 -17
  11. package/dist/cli/{gate-evidence-wa8cj8h6.js → gate-evidence-saja4dan.js} +7 -7
  12. package/dist/cli/guardrail-explain-z41q6sf0.js +72 -0
  13. package/dist/cli/{guardrail-log-7dv73e0q.js → guardrail-log-0h24spq0.js} +8 -8
  14. package/dist/cli/{guardrail-reset-1kng6y8x.js → guardrail-reset-cwbe47k5.js} +38 -38
  15. package/dist/cli/{hive-promoter-87kk2pg5.js → hive-promoter-esxtcvr1.js} +38 -38
  16. package/dist/cli/{index-3r6k6qa7.js → index-00zx94vn.js} +4 -4
  17. package/dist/cli/{index-arqv4psy.js → index-21ree67h.js} +57 -101
  18. package/dist/cli/{index-dme7wvwg.js → index-30h1pk05.js} +4 -4
  19. package/dist/cli/{index-shrf0wt3.js → index-3dywbkyr.js} +4 -4
  20. package/dist/cli/{index-vgpedapd.js → index-4r5pmtvk.js} +2 -2
  21. package/dist/cli/{index-3ws11dq0.js → index-54w1564x.js} +2 -2
  22. package/dist/cli/{index-m7cwnt9r.js → index-5zqakgp4.js} +2 -2
  23. package/dist/cli/{index-f91fhch0.js → index-64phnth4.js} +4 -4
  24. package/dist/cli/{index-09gv90d7.js → index-8f0kscpg.js} +2 -2
  25. package/dist/cli/{index-0q839sg6.js → index-8ybjqg51.js} +1 -1
  26. package/dist/cli/{index-z6we1abx.js → index-a8xbvsse.js} +2 -2
  27. package/dist/cli/{index-jhd3pmd1.js → index-an8b5gda.js} +7 -7
  28. package/dist/cli/{index-gmjg65tm.js → index-bvqqwx84.js} +2 -2
  29. package/dist/cli/{index-rrne6g2m.js → index-cyenn3pf.js} +6 -2
  30. package/dist/cli/{index-65s0vgb1.js → index-ddr97ram.js} +40 -40
  31. package/dist/cli/{index-mtepgqan.js → index-dfyv3xkd.js} +7 -7
  32. package/dist/cli/{index-2b1hd1fx.js → index-exatbqwj.js} +13 -4
  33. package/dist/cli/{index-83r0v5tn.js → index-gp9yzr1v.js} +1 -1
  34. package/dist/cli/{index-79234evf.js → index-h0e2e3h1.js} +1 -1
  35. package/dist/cli/{index-962qme08.js → index-h439y187.js} +1 -1
  36. package/dist/cli/{index-18rfc7qv.js → index-j950hqmq.js} +7 -7
  37. package/dist/cli/{index-8vbahc4c.js → index-kear8gb7.js} +11 -6
  38. package/dist/cli/{index-syedr4e3.js → index-m35hybf0.js} +1 -1
  39. package/dist/cli/{index-ce8p9t28.js → index-mr0wn36f.js} +5 -5
  40. package/dist/cli/{index-sjkg2hc4.js → index-nprngf8p.js} +6 -6
  41. package/dist/cli/{index-m3z83nhs.js → index-nsyxj57e.js} +8 -8
  42. package/dist/cli/{index-f8cc92g7.js → index-nwwk3dej.js} +1 -1
  43. package/dist/cli/{index-g409c7ke.js → index-pyf517sz.js} +2 -2
  44. package/dist/cli/{index-k73ehxa1.js → index-qhey6vc3.js} +1 -1
  45. package/dist/cli/{index-gs12223x.js → index-qwsh0h2g.js} +2 -2
  46. package/dist/cli/{index-n4fzmqz8.js → index-rdm3px0g.js} +4 -2
  47. package/dist/cli/{index-25xeyjfx.js → index-rxcgrgkc.js} +38 -38
  48. package/dist/cli/{index-ehq2vtkq.js → index-s0d5xter.js} +4 -4
  49. package/dist/cli/{index-wjet7x0a.js → index-seetnhpx.js} +1 -1
  50. package/dist/cli/{index-g5m43paw.js → index-sxt7fgcw.js} +1 -0
  51. package/dist/cli/{index-x7pm61wk.js → index-v3xc4sde.js} +9 -8
  52. package/dist/cli/{index-pdcperq5.js → index-wnzxcr0z.js} +2 -2
  53. package/dist/cli/{index-hhkm64wh.js → index-wst6n478.js} +103 -3
  54. package/dist/cli/{index-s7a9dqtb.js → index-x7k3dps5.js} +4 -3
  55. package/dist/cli/{index-y1sj2e1n.js → index-yevn4jpe.js} +2094 -1686
  56. package/dist/cli/index-yv76j77m.js +2008 -0
  57. package/dist/cli/{index-tcj8v6my.js → index-z6qreakh.js} +6 -6
  58. package/dist/cli/{index-5sjq3shs.js → index-ze520xw1.js} +8 -8
  59. package/dist/cli/index.js +38 -38
  60. package/dist/cli/{knowledge-escalator-5e4zxan5.js → knowledge-escalator-b2tf3sd1.js} +13 -13
  61. package/dist/cli/{knowledge-events-abzm5vfh.js → knowledge-events-bgs2kxe0.js} +11 -11
  62. package/dist/cli/{knowledge-link-9ga6hyd5.js → knowledge-link-dr3xnwyd.js} +4 -4
  63. package/dist/cli/{knowledge-store-q4a92eq7.js → knowledge-store-stbmb1b9.js} +5 -5
  64. package/dist/cli/{knowledge-validator-pn3m5r41.js → knowledge-validator-zykgnsag.js} +7 -7
  65. package/dist/cli/{model-preflight-mw895vgt.js → model-preflight-1ycat9jz.js} +1 -1
  66. package/dist/cli/{pending-delegations-3z0xjppd.js → pending-delegations-n5qavj20.js} +12 -12
  67. package/dist/cli/{pr-subscriptions-h7mwnp62.js → pr-subscriptions-gnvmyrng.js} +12 -12
  68. package/dist/cli/{pr-workflow-gate-fec04fa0.js → pr-workflow-gate-cf3ybrws.js} +38 -38
  69. package/dist/cli/{runner-d9833azt.js → runner-k0ycgv8x.js} +5 -5
  70. package/dist/cli/{scan-cursor-ymfvzdkz.js → scan-cursor-b3mcrx23.js} +6 -6
  71. package/dist/cli/{schema-chc4aez6.js → schema-08049cjb.js} +4 -2
  72. package/dist/cli/{scope-persistence-3xnr59y8.js → scope-persistence-a493gv51.js} +16 -16
  73. package/dist/cli/{skill-generator-3mvaghxk.js → skill-generator-2qqzkdpv.js} +15 -15
  74. package/dist/cli/{snapshot-coordination-init-arnc77r9.js → snapshot-coordination-init-8yt8p7q0.js} +38 -38
  75. package/dist/cli/{sqlite-loader-xrnf6bq8.js → sqlite-loader-amp9z7ty.js} +1 -1
  76. package/dist/cli/{telemetry-g9pppt9e.js → telemetry-2wzapf11.js} +1 -1
  77. package/dist/cli/{workspace-snapshot-hvsjtepd.js → workspace-snapshot-rkgxhj9b.js} +3 -3
  78. package/dist/cli/{worktree-collision-ownership-vj8anvb7.js → worktree-collision-ownership-xttafc4h.js} +13 -13
  79. package/dist/cli/{worktree-isolation-mt7z75hz.js → worktree-isolation-e5q5rewk.js} +38 -38
  80. package/dist/commands/reset.d.ts +10 -0
  81. package/dist/commands/rollback.d.ts +9 -0
  82. package/dist/config/schema.d.ts +29 -0
  83. package/dist/db/project-db.d.ts +8 -0
  84. package/dist/db/sqlite-loader.d.ts +2 -1
  85. package/dist/dispatch/spawn-circuit.d.ts +121 -0
  86. package/dist/dispatch/token-bucket.d.ts +46 -0
  87. package/dist/hooks/delegation-gate/dead-lane-reclaim.d.ts +61 -0
  88. package/dist/hooks/delegation-gate/worktree-isolation.d.ts +22 -0
  89. package/dist/hooks/issue-trace.d.ts +3 -0
  90. package/dist/hooks/utils.d.ts +1 -1
  91. package/dist/index.js +657 -572
  92. package/dist/plan/ledger-sqlite.d.ts +226 -0
  93. package/dist/plan/ledger.d.ts +24 -0
  94. package/dist/plan/manager.d.ts +19 -0
  95. package/dist/retention/sweep.d.ts +2 -0
  96. package/dist/services/spec-drift-recovery.d.ts +2 -1
  97. package/dist/utils/ephemeral-session-teardown.d.ts +55 -2
  98. package/opencode-swarm.schema.json +41 -0
  99. package/package.json +1 -1
  100. package/dist/cli/curator-llm-factory-xy96x5x8.js +0 -71
  101. package/dist/cli/guardrail-explain-1ef5he6j.js +0 -72
  102. package/dist/cli/index-z7z3g5wt.js +0 -1017
@@ -12,13 +12,13 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-2b1hd1fx.js";
15
+ } from "./index-exatbqwj.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
19
19
  init_constants,
20
20
  init_tool_metadata
21
- } from "./index-g5m43paw.js";
21
+ } from "./index-sxt7fgcw.js";
22
22
  import {
23
23
  log
24
24
  } from "./index-zgwm4ryv.js";
@@ -1264,6 +1264,10 @@ function validateConfigKey(path2, value) {
1264
1264
  emitObjectTypeMismatch("lane_liveness_watchdog", value, findings);
1265
1265
  break;
1266
1266
  }
1267
+ case "dispatch_protection": {
1268
+ emitObjectTypeMismatch("dispatch_protection", value, findings);
1269
+ break;
1270
+ }
1267
1271
  case "pr_review_legacy_transcript_compatibility": {
1268
1272
  if (value !== undefined && typeof value !== "boolean") {
1269
1273
  findings.push({
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-3ws11dq0.js";
4
+ } from "./index-54w1564x.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-79234evf.js";
7
+ } from "./index-h0e2e3h1.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,71 +94,71 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-y1sj2e1n.js";
97
+ } from "./index-yevn4jpe.js";
98
98
  import"./index-d5qf7hvh.js";
99
- import"./index-k73ehxa1.js";
100
- import"./index-dme7wvwg.js";
101
- import"./index-f8cc92g7.js";
102
- import"./index-rrne6g2m.js";
103
- import"./index-arqv4psy.js";
104
- import"./index-83r0v5tn.js";
99
+ import"./index-qhey6vc3.js";
100
+ import"./index-30h1pk05.js";
101
+ import"./index-nwwk3dej.js";
102
+ import"./index-cyenn3pf.js";
103
+ import"./index-21ree67h.js";
104
+ import"./index-gp9yzr1v.js";
105
105
  import"./index-txdagbh7.js";
106
106
  import"./index-9br68j86.js";
107
107
  import"./index-cw912re7.js";
108
- import"./index-f91fhch0.js";
109
- import"./index-ce8p9t28.js";
110
- import"./index-pdcperq5.js";
108
+ import"./index-64phnth4.js";
109
+ import"./index-mr0wn36f.js";
110
+ import"./index-wnzxcr0z.js";
111
111
  import"./index-fyfbpz4f.js";
112
- import"./index-mtepgqan.js";
112
+ import"./index-dfyv3xkd.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-5sjq3shs.js";
115
- import"./index-m7cwnt9r.js";
116
- import"./index-gmjg65tm.js";
114
+ import"./index-ze520xw1.js";
115
+ import"./index-5zqakgp4.js";
116
+ import"./index-bvqqwx84.js";
117
117
  import"./index-b43rt5ph.js";
118
118
  import"./index-q7sjgr1y.js";
119
- import"./index-3r6k6qa7.js";
120
- import"./index-09gv90d7.js";
121
- import"./index-sjkg2hc4.js";
122
- import"./index-m3z83nhs.js";
123
- import"./index-8vbahc4c.js";
119
+ import"./index-00zx94vn.js";
120
+ import"./index-8f0kscpg.js";
121
+ import"./index-nprngf8p.js";
122
+ import"./index-nsyxj57e.js";
123
+ import"./index-kear8gb7.js";
124
124
  import"./index-p612v1mv.js";
125
- import"./index-shrf0wt3.js";
126
- import"./index-syedr4e3.js";
125
+ import"./index-3dywbkyr.js";
126
+ import"./index-m35hybf0.js";
127
127
  import"./index-rtry5xyf.js";
128
- import"./index-s7a9dqtb.js";
128
+ import"./index-x7k3dps5.js";
129
129
  import"./index-3qf1vxtb.js";
130
130
  import"./index-n832052r.js";
131
- import"./index-jhd3pmd1.js";
132
- import"./index-z7z3g5wt.js";
133
- import"./index-z6we1abx.js";
134
- import"./index-g409c7ke.js";
135
- import"./index-962qme08.js";
136
- import"./index-hhkm64wh.js";
137
- import"./index-n4fzmqz8.js";
131
+ import"./index-an8b5gda.js";
132
+ import"./index-yv76j77m.js";
133
+ import"./index-a8xbvsse.js";
134
+ import"./index-pyf517sz.js";
135
+ import"./index-h439y187.js";
136
+ import"./index-wst6n478.js";
137
+ import"./index-rdm3px0g.js";
138
138
  import"./index-ry16d01s.js";
139
- import"./index-gs12223x.js";
140
- import"./index-18rfc7qv.js";
139
+ import"./index-qwsh0h2g.js";
140
+ import"./index-j950hqmq.js";
141
141
  import"./index-vzm6zre7.js";
142
142
  import"./index-ae75rja9.js";
143
- import"./index-0q839sg6.js";
144
- import"./index-vgpedapd.js";
143
+ import"./index-8ybjqg51.js";
144
+ import"./index-4r5pmtvk.js";
145
145
  import"./index-7g4c7s5r.js";
146
- import"./index-x7pm61wk.js";
147
- import"./index-tcj8v6my.js";
146
+ import"./index-v3xc4sde.js";
147
+ import"./index-z6qreakh.js";
148
148
  import"./index-1xnse449.js";
149
149
  import"./index-ee6ydtfe.js";
150
- import"./index-wjet7x0a.js";
150
+ import"./index-seetnhpx.js";
151
151
  import"./index-0mhftbpp.js";
152
152
  import"./index-a1w58b47.js";
153
153
  import {
154
154
  init_schema,
155
155
  stripKnownSwarmPrefix
156
- } from "./index-2b1hd1fx.js";
156
+ } from "./index-exatbqwj.js";
157
157
  import {
158
158
  AGENT_TOOL_MAP,
159
159
  ORCHESTRATOR_NAME,
160
160
  init_constants
161
- } from "./index-g5m43paw.js";
161
+ } from "./index-sxt7fgcw.js";
162
162
  import"./index-bk5tah7q.js";
163
163
  import"./index-bpmtbmy9.js";
164
164
  import"./index-zpsr8rpc.js";
@@ -1,30 +1,30 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-8vbahc4c.js";
4
+ } from "./index-kear8gb7.js";
5
5
  import {
6
6
  deleteCoordinationState,
7
7
  importCoordinationOnce,
8
8
  listCoordinationStates,
9
9
  transitionCoordinationState,
10
10
  withCoordinationTransaction
11
- } from "./index-962qme08.js";
11
+ } from "./index-h439y187.js";
12
12
  import {
13
13
  getProjectDb,
14
14
  projectDbExists
15
- } from "./index-hhkm64wh.js";
15
+ } from "./index-wst6n478.js";
16
16
  import {
17
17
  observeStoreHealth
18
- } from "./index-gs12223x.js";
18
+ } from "./index-qwsh0h2g.js";
19
19
  import {
20
20
  withEvidenceLock
21
- } from "./index-vgpedapd.js";
21
+ } from "./index-4r5pmtvk.js";
22
22
  import {
23
23
  atomicWriteSwarmFileSync
24
- } from "./index-x7pm61wk.js";
24
+ } from "./index-v3xc4sde.js";
25
25
  import {
26
26
  telemetry
27
- } from "./index-tcj8v6my.js";
27
+ } from "./index-z6qreakh.js";
28
28
  import {
29
29
  canonicalRootKey,
30
30
  canonicalRootKeyFresh,
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  SUMMARIZER_EXEMPT_TOOL_NAMES,
5
5
  init_constants
6
- } from "./index-g5m43paw.js";
6
+ } from "./index-sxt7fgcw.js";
7
7
  import {
8
8
  OUTCOME_BLOCK_THRESHOLD,
9
9
  init_knowledge_types
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.167.2",
24
+ version: "7.168.0",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -320,7 +320,7 @@ function resolveExternalSkillsConfig(input) {
320
320
  };
321
321
  return merged;
322
322
  }
323
- var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
323
+ var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
324
324
  var init_schema = __esm(() => {
325
325
  init_zod();
326
326
  init_package();
@@ -1478,6 +1478,7 @@ var init_schema = __esm(() => {
1478
1478
  lane_permissions: exports_external.enum(["scoped_allow", "deny", "off"]).default("scoped_allow"),
1479
1479
  serialization_release_after_dispatches: exports_external.number().int().positive().default(5),
1480
1480
  serialization_release_after_ms: exports_external.number().int().positive().default(60000),
1481
+ session_create_timeout_ms: exports_external.number().int().min(1000).max(120000).default(30000),
1481
1482
  runtime_isolation: exports_external.object({
1482
1483
  enabled: exports_external.boolean().default(false),
1483
1484
  port_base: exports_external.number().int().nonnegative().max(65535).optional(),
@@ -1653,6 +1654,13 @@ var init_schema = __esm(() => {
1653
1654
  stall_min_steps: exports_external.number().int().min(0).max(1e4).default(5),
1654
1655
  stall_token_threshold: exports_external.number().int().min(0).max(1e6).default(200)
1655
1656
  }).strict();
1657
+ DispatchProtectionConfigSchema = exports_external.object({
1658
+ enabled: exports_external.boolean().default(true),
1659
+ spawn_failure_threshold: exports_external.number().int().min(1).max(50).default(3),
1660
+ half_open_after_ms: exports_external.number().int().min(1).max(3600000).default(30000),
1661
+ rate_per_second: exports_external.number().min(0).max(1e4).default(10),
1662
+ burst_capacity: exports_external.number().int().min(1).max(1e4).default(10)
1663
+ }).strict();
1656
1664
  PluginConfigSchema = exports_external.object({
1657
1665
  $schema: exports_external.string().optional().catch(undefined).describe("JSON Schema URL for editor validation/autocomplete of this file (issue #1663). Ignored at runtime; malformed values are ignored too."),
1658
1666
  config_format_version: exports_external.number().int().min(0).default(1).describe("Config format version for the migration table. Increment when fields are deprecated. Distinct from knowledge.schema_version."),
@@ -1681,6 +1689,7 @@ var init_schema = __esm(() => {
1681
1689
  hooks: HooksConfigSchema.optional().describe("Hook subsystem toggles and settings."),
1682
1690
  pr_review_resilience: PrReviewResilienceConfigSchema.optional().describe("PR review base-wave staged canary/fanout resilience settings."),
1683
1691
  lane_liveness_watchdog: LaneLivenessWatchdogConfigSchema.optional().describe("Lane liveness watchdog: execution deadline and stall escalation for PR workflow lanes."),
1692
+ dispatch_protection: DispatchProtectionConfigSchema.optional().describe("Dispatch protection: action-local spawn-failure circuit breaker and token-bucket rate limiting for native task delegations."),
1684
1693
  pr_review_legacy_transcript_compatibility: exports_external.boolean().optional().describe("Deprecated migration-only opt-in for transcript-row PR-review base and micro discovery lanes."),
1685
1694
  gates: GateConfigSchema.optional().describe("Quality gate configuration (v6.9 anti-slop features)."),
1686
1695
  context_budget: ContextBudgetConfigSchema.optional().describe("Context budget thresholds."),
@@ -1910,4 +1919,4 @@ var init_schema = __esm(() => {
1910
1919
  });
1911
1920
  });
1912
1921
 
1913
- export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
1922
+ export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
@@ -11,7 +11,7 @@ import {
11
11
  assertProjectRoot,
12
12
  atomicWriteFile,
13
13
  withEvidenceLock
14
- } from "./index-vgpedapd.js";
14
+ } from "./index-4r5pmtvk.js";
15
15
  import {
16
16
  exports_external,
17
17
  init_zod
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-dme7wvwg.js";
7
+ } from "./index-30h1pk05.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-hhkm64wh.js";
7
+ } from "./index-wst6n478.js";
8
8
 
9
9
  // src/db/coordination-store.ts
10
10
  import { createHash } from "crypto";
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-0q839sg6.js";
14
+ } from "./index-8ybjqg51.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-vgpedapd.js";
17
+ } from "./index-4r5pmtvk.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-x7pm61wk.js";
23
+ } from "./index-v3xc4sde.js";
24
24
  import {
25
25
  init_knowledge_types,
26
26
  isActiveStatus
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
739
739
  const {
740
740
  readAuthoritativeKnowledgeCounterRollups,
741
741
  effectiveRetrievalOutcomes
742
- } = await import("./knowledge-events-abzm5vfh.js");
742
+ } = await import("./knowledge-events-bgs2kxe0.js");
743
743
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
744
744
  const flagIds = new Set;
745
745
  for (const e of atFloor) {
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
806
806
  });
807
807
  }
808
808
  if (action === "quarantine" && toQuarantine.length > 0) {
809
- const { quarantineEntry } = await import("./knowledge-validator-pn3m5r41.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-chc4aez6.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-zykgnsag.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-08049cjb.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-ehq2vtkq.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-s0d5xter.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -7,7 +7,7 @@ import {
7
7
  readCachedTextFile,
8
8
  wasObservedToExist,
9
9
  wasRecentlyWrittenByThisProcess
10
- } from "./index-x7pm61wk.js";
10
+ } from "./index-v3xc4sde.js";
11
11
  import {
12
12
  SwarmError
13
13
  } from "./index-ee6ydtfe.js";
@@ -132,14 +132,14 @@ function isPathWithin(candidate, base) {
132
132
  }
133
133
  return normalizedCandidate === normalizedBase || normalizedCandidate.startsWith(`${normalizedBase}${path.sep}`);
134
134
  }
135
- async function readSwarmFileAsync(directory, filename, cache) {
136
- if (cache !== undefined) {
135
+ async function readSwarmFileAsync(directory, filename, cache, reader, useArtifactCache = true) {
136
+ if (cache !== undefined && useArtifactCache) {
137
137
  const key = `${directory}::${filename}`;
138
138
  const cached = cache.get(key);
139
139
  if (cached !== undefined) {
140
140
  return cached;
141
141
  }
142
- const promise = readSwarmFileAsync(directory, filename);
142
+ const promise = readSwarmFileAsync(directory, filename, undefined, reader, useArtifactCache);
143
143
  cache.set(key, promise);
144
144
  return promise;
145
145
  }
@@ -150,12 +150,17 @@ async function readSwarmFileAsync(directory, filename, cache) {
150
150
  let resolvedPath = "";
151
151
  try {
152
152
  resolvedPath = _internals.validateSwarmPath(directory, filename);
153
- return await _internals.readCachedTextFile(resolvedPath, async () => {
153
+ const read = async () => {
154
+ if (reader !== undefined)
155
+ return reader(resolvedPath);
154
156
  const file = bunFile(resolvedPath);
155
157
  return await file.text();
156
- });
158
+ };
159
+ return useArtifactCache ? await _internals.readCachedTextFile(resolvedPath, read) : await read();
157
160
  } catch (err) {
158
161
  const code = err?.code;
162
+ if (reader !== undefined && (code === undefined || code === "ERR_ENCODING_INVALID_ENCODED_DATA"))
163
+ throw err;
159
164
  if (code === "ENOENT") {
160
165
  const retryWorthy = resolvedPath !== "" && (wasRecentlyWrittenByThisProcess(resolvedPath, RECENT_WRITE_WINDOW_MS) || wasObservedToExist(resolvedPath));
161
166
  if (!retryWorthy)
@@ -11,7 +11,7 @@ import {
11
11
  readLinkPointer,
12
12
  resolveKnowledgeStoreDir,
13
13
  resolveLinkDir
14
- } from "./index-0q839sg6.js";
14
+ } from "./index-8ybjqg51.js";
15
15
 
16
16
  // src/knowledge/curation-policy.ts
17
17
  import { readFile as readFile2 } from "fs/promises";
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-m3z83nhs.js";
6
+ } from "./index-nsyxj57e.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-18rfc7qv.js";
14
+ } from "./index-j950hqmq.js";
15
15
  import {
16
16
  init_knowledge_types,
17
17
  isActiveStatus
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
224
  alreadyInactive: true
225
225
  };
226
226
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-pn3m5r41.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-zykgnsag.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-chc4aez6.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-ehq2vtkq.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-08049cjb.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-s0d5xter.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-8vbahc4c.js";
4
+ } from "./index-kear8gb7.js";
5
5
  import {
6
6
  bunWrite
7
7
  } from "./index-p612v1mv.js";
@@ -18,18 +18,18 @@ import {
18
18
  releaseCoordinationLease,
19
19
  transitionCoordinationState,
20
20
  withCoordinationTransaction
21
- } from "./index-962qme08.js";
21
+ } from "./index-h439y187.js";
22
22
  import {
23
23
  getProjectDb,
24
24
  projectDbExists
25
- } from "./index-hhkm64wh.js";
25
+ } from "./index-wst6n478.js";
26
26
  import {
27
27
  observeDelegationLedgerPressure
28
- } from "./index-gs12223x.js";
28
+ } from "./index-qwsh0h2g.js";
29
29
  import {
30
30
  EvidenceLockTimeoutError,
31
31
  withEvidenceLock
32
- } from "./index-vgpedapd.js";
32
+ } from "./index-4r5pmtvk.js";
33
33
  import {
34
34
  canonicalRootKeyFresh,
35
35
  sameProjectRoot
@@ -4524,7 +4524,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
4524
4524
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
4525
4525
  if (candidates.length === 0)
4526
4526
  return 0;
4527
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-jy9rad28.js");
4527
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-a35acvj1.js");
4528
4528
  let transferred = 0;
4529
4529
  for (const record of candidates) {
4530
4530
  try {
@@ -1,36 +1,36 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-8vbahc4c.js";
4
+ } from "./index-kear8gb7.js";
5
5
  import {
6
6
  observeReceiptTransition
7
- } from "./index-gs12223x.js";
7
+ } from "./index-qwsh0h2g.js";
8
8
  import {
9
9
  resolveHiveEventsPath
10
10
  } from "./index-ae75rja9.js";
11
11
  import {
12
12
  resolveKnowledgeStoreDir
13
- } from "./index-0q839sg6.js";
13
+ } from "./index-8ybjqg51.js";
14
14
  import {
15
15
  assertProjectRoot,
16
16
  atomicWriteFile
17
- } from "./index-vgpedapd.js";
17
+ } from "./index-4r5pmtvk.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  emit
23
- } from "./index-tcj8v6my.js";
23
+ } from "./index-z6qreakh.js";
24
24
  import {
25
25
  canonicalRootKey
26
26
  } from "./index-1xnse449.js";
27
27
  import {
28
28
  loadPluginConfigWithMeta
29
- } from "./index-wjet7x0a.js";
29
+ } from "./index-seetnhpx.js";
30
30
  import {
31
31
  KnowledgeConfigSchema,
32
32
  init_schema
33
- } from "./index-2b1hd1fx.js";
33
+ } from "./index-exatbqwj.js";
34
34
  import {
35
35
  init_logger,
36
36
  warn
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2813
2813
  }
2814
2814
  let bumps = 0;
2815
2815
  if (deltas.length > 0) {
2816
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-q4a92eq7.js");
2816
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-stbmb1b9.js");
2817
2817
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2818
2818
  }
2819
2819
  return {
@@ -5,7 +5,7 @@ import {
5
5
  batchDurabilityClass,
6
6
  classifyDbWriteError,
7
7
  getProjectDb
8
- } from "./index-hhkm64wh.js";
8
+ } from "./index-wst6n478.js";
9
9
  import {
10
10
  _internals,
11
11
  canonicalRootKeyFresh
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-962qme08.js";
5
+ } from "./index-h439y187.js";
6
6
  import {
7
7
  DURABILITY_CLASSES,
8
8
  getProjectDb,
9
9
  projectDbExists,
10
10
  withImmediateTransaction
11
- } from "./index-hhkm64wh.js";
11
+ } from "./index-wst6n478.js";
12
12
  import {
13
13
  init_logger,
14
14
  warn
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-83r0v5tn.js";
12
+ } from "./index-gp9yzr1v.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteSwarmFile
4
- } from "./index-x7pm61wk.js";
4
+ } from "./index-v3xc4sde.js";
5
5
  import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
8
8
  telemetry
9
- } from "./index-tcj8v6my.js";
9
+ } from "./index-z6qreakh.js";
10
10
  import {
11
11
  canonicalRootKeyFresh
12
12
  } from "./index-1xnse449.js";
@@ -7,8 +7,10 @@ function createNodeDatabaseCtor(DatabaseSyncCtor) {
7
7
  raw;
8
8
  stmts = new Map;
9
9
  savepointCounter = 0;
10
- constructor(filename) {
11
- this.raw = new DatabaseSyncCtor(filename, { allowExtension: true });
10
+ constructor(filename, options) {
11
+ const immutableReadOnly = typeof options === "number" && (options & 1) !== 0 && (options & 64) !== 0 && filename.startsWith("file:");
12
+ const readOnly = immutableReadOnly || typeof options === "object" && options?.readonly === true;
13
+ this.raw = new DatabaseSyncCtor(immutableReadOnly ? new URL(filename) : filename, readOnly ? { allowExtension: false, readOnly: true } : { allowExtension: true });
12
14
  }
13
15
  statement(sql) {
14
16
  let stmt = this.stmts.get(sql);