opencode-swarm 7.180.1 → 7.181.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 (75) hide show
  1. package/README.md +14 -0
  2. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  3. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  4. package/dist/cli/{coder-settlement-b57917a3.js → coder-settlement-pqrfkm9d.js} +3 -3
  5. package/dist/cli/{config-doctor-ebat06eq.js → config-doctor-bjqg57jr.js} +2 -2
  6. package/dist/cli/{core-8k41qh0d.js → core-3t3dzkrc.js} +1 -1
  7. package/dist/cli/{curator-drift-3av9hffm.js → curator-drift-gay4fx5j.js} +4 -4
  8. package/dist/cli/{curator-llm-factory-htgqafq0.js → curator-llm-factory-1wx0bd8k.js} +22 -22
  9. package/dist/cli/{curator-8yb3qkxs.js → curator-y8qr4xgh.js} +22 -22
  10. package/dist/cli/{evidence-summary-service-s258ea5t.js → evidence-summary-service-jeewwfpg.js} +8 -8
  11. package/dist/cli/{gate-evidence-fqxpf3xz.js → gate-evidence-ncnfxz7t.js} +2 -2
  12. package/dist/cli/{guardrail-explain-r0qxa4zy.js → guardrail-explain-cg9e3rr8.js} +23 -23
  13. package/dist/cli/{guardrail-log-j2wdmvmy.js → guardrail-log-tjcnpwhv.js} +3 -3
  14. package/dist/cli/{guardrail-reset-wb2eqbvf.js → guardrail-reset-ey81kcdq.js} +22 -22
  15. package/dist/cli/{hive-promoter-kxpc3r17.js → hive-promoter-ghcynvfv.js} +22 -22
  16. package/dist/cli/{index-v7fx8q3z.js → index-06f6h0fv.js} +1 -1
  17. package/dist/cli/{index-xj5z92qz.js → index-0vvpe98m.js} +1 -1
  18. package/dist/cli/{index-gw5egd8j.js → index-1rcwsfwz.js} +24 -24
  19. package/dist/cli/{index-cj64vp08.js → index-6aj0ej18.js} +1 -1
  20. package/dist/cli/{index-yf7tdhpz.js → index-886rpw6w.js} +1 -1
  21. package/dist/cli/{index-xd0e4amf.js → index-dn0wqvv2.js} +5 -5
  22. package/dist/cli/{index-wx3wz7ya.js → index-ge1w25n8.js} +2 -2
  23. package/dist/cli/{index-bhmrgbyv.js → index-gez80bfr.js} +5 -1
  24. package/dist/cli/{index-2q5m4m2r.js → index-gm67qky7.js} +3 -3
  25. package/dist/cli/{index-3zvp7t5d.js → index-jysjhvpv.js} +5 -5
  26. package/dist/cli/{index-855qxtdm.js → index-jzg3wrx6.js} +3 -3
  27. package/dist/cli/{index-z2zrcecq.js → index-m31a2q35.js} +2492 -1342
  28. package/dist/cli/{index-rejpbgxp.js → index-m65tnv4j.js} +1 -1
  29. package/dist/cli/{index-g062wnw1.js → index-m7havzy4.js} +1 -1
  30. package/dist/cli/{index-600aqfvm.js → index-mkpczxy7.js} +22 -22
  31. package/dist/cli/{index-k5vwnnym.js → index-n7syegpa.js} +1 -1
  32. package/dist/cli/{index-3bbjpbmn.js → index-pb3vrqsf.js} +2 -2
  33. package/dist/cli/{index-k6f0nryj.js → index-pc3cw1xm.js} +2 -2
  34. package/dist/cli/{index-gy3tcmk4.js → index-r1cnmq4j.js} +4 -4
  35. package/dist/cli/{index-rp4akjrm.js → index-rqm075jf.js} +14 -3
  36. package/dist/cli/{index-dzm5nfh7.js → index-s5ghg4kg.js} +1 -1
  37. package/dist/cli/{index-tnhk72rs.js → index-t5gqdkqx.js} +1 -1
  38. package/dist/cli/{index-v0par978.js → index-t8hv63wy.js} +1 -1
  39. package/dist/cli/{index-as4xaams.js → index-wxjvb4vq.js} +1 -1
  40. package/dist/cli/{index-z2xf153n.js → index-xq9gsfsc.js} +3 -3
  41. package/dist/cli/{index-50v672wd.js → index-yet4r7kp.js} +3 -3
  42. package/dist/cli/{index-n5carmk0.js → index-ytxgr424.js} +1 -1
  43. package/dist/cli/index.js +23 -23
  44. package/dist/cli/{knowledge-escalator-n30h6ran.js → knowledge-escalator-jrkx2b6j.js} +6 -6
  45. package/dist/cli/{knowledge-events-k2qqase2.js → knowledge-events-bha1zpbk.js} +4 -4
  46. package/dist/cli/{knowledge-store-zy226v5a.js → knowledge-store-q438tkyd.js} +1 -1
  47. package/dist/cli/{knowledge-validator-qgyxdpc9.js → knowledge-validator-3nx18fst.js} +2 -2
  48. package/dist/cli/{mcp-pj7acze3.js → mcp-98693syb.js} +1 -1
  49. package/dist/cli/{pending-delegations-sgnnyw55.js → pending-delegations-nkpvtkz4.js} +2 -2
  50. package/dist/cli/{pr-subscriptions-7fb7xm3q.js → pr-subscriptions-qrvhr6jw.js} +1 -1
  51. package/dist/cli/{pr-workflow-gate-5dqcrkz6.js → pr-workflow-gate-k44gdrqd.js} +22 -22
  52. package/dist/cli/{runner-p9hstpxn.js → runner-tzgwvvn1.js} +1 -1
  53. package/dist/cli/{scan-cursor-jc7wwb7e.js → scan-cursor-qjdn8kv6.js} +2 -2
  54. package/dist/cli/{schema-5k68crjb.js → schema-pyax2tq7.js} +5 -1
  55. package/dist/cli/{scope-persistence-xeg4khwk.js → scope-persistence-dyc17kze.js} +5 -5
  56. package/dist/cli/{server-ej6tzd7t.js → server-bmzj5vt2.js} +22 -22
  57. package/dist/cli/{skill-generator-nspt9b3n.js → skill-generator-mp29bht6.js} +7 -7
  58. package/dist/cli/{snapshot-coordination-init-3rs3zpaa.js → snapshot-coordination-init-azkzphpy.js} +22 -22
  59. package/dist/cli/{speckit-checkoff-dqf636ya.js → speckit-checkoff-1cqfakw2.js} +3 -3
  60. package/dist/cli/{worktree-collision-ownership-rbzgbvj4.js → worktree-collision-ownership-58sab2m6.js} +2 -2
  61. package/dist/cli/{worktree-isolation-6zpnzr70.js → worktree-isolation-9egt1ccv.js} +22 -22
  62. package/dist/commands/harness-opt.d.ts +44 -0
  63. package/dist/commands/registry.d.ts +56 -0
  64. package/dist/config/schema.d.ts +20 -0
  65. package/dist/harness/store.d.ts +9 -0
  66. package/dist/index.js +259 -247
  67. package/dist/services/harness-optimizer/comparative.d.ts +81 -0
  68. package/dist/services/harness-optimizer/controller.d.ts +126 -0
  69. package/dist/services/harness-optimizer/execution.d.ts +68 -0
  70. package/dist/services/harness-optimizer/index.d.ts +10 -0
  71. package/dist/services/harness-optimizer/lineage.d.ts +70 -0
  72. package/dist/services/harness-optimizer/manifest.d.ts +65 -0
  73. package/dist/services/harness-optimizer/oracle.d.ts +40 -0
  74. package/opencode-swarm.schema.json +42 -0
  75. package/package.json +1 -1
@@ -474,6 +474,62 @@ export declare const COMMAND_REGISTRY: {
474
474
  readonly category: "utility";
475
475
  readonly toolPolicy: "agent";
476
476
  };
477
+ readonly 'harness-opt': {
478
+ readonly handler: (ctx: CommandContext) => Promise<string>;
479
+ readonly description: "Governed HarnessOpt capstone (issue #2503). Freezes the comparative task set and drives isolated, approved, reversible optimization rounds through the evaluation substrate.";
480
+ readonly args: "plan|run|status|stop|history [--tasks <json>] [--split train|validation|test] [--seed <s>] [--confirm] [--json] [--reason <text>]";
481
+ readonly details: "Disabled by default. `run` requires harness_opt.enabled=true AND --confirm, executes one governed round in a disposable worktree (a test split consumes the held-out set exactly once, substrate-enforced), and records durable lineage with task-cost accounting (unknown-not-zero). Activation/rollback stay on /swarm approve-write + the harness store; the controller never mutates the live harness.";
482
+ readonly category: "utility";
483
+ readonly toolPolicy: "agent";
484
+ };
485
+ readonly 'harness-opt plan': {
486
+ readonly handler: (ctx: CommandContext) => Promise<string>;
487
+ readonly description: "Freeze the comparative task set and report loop status (dry-run)";
488
+ readonly subcommandOf: "harness-opt";
489
+ readonly args: "--tasks <json> [--split train|validation|test] [--seed <s>] [--json]";
490
+ readonly category: "utility";
491
+ readonly toolPolicy: "agent";
492
+ };
493
+ readonly 'harness-opt run': {
494
+ readonly handler: (ctx: CommandContext) => Promise<string>;
495
+ readonly description: "Execute ONE governed optimization round in a disposable worktree. Requires harness_opt.enabled=true and --confirm; a test split consumes the held-out set exactly once.";
496
+ readonly subcommandOf: "harness-opt";
497
+ readonly args: "--tasks <json> --confirm [--split train|validation|test] [--seed <s>] [--json]";
498
+ readonly category: "utility";
499
+ readonly toolPolicy: "human-only";
500
+ };
501
+ readonly 'harness-opt status': {
502
+ readonly handler: (ctx: CommandContext) => Promise<string>;
503
+ readonly description: "Show loop status and the latest round lineage summary";
504
+ readonly subcommandOf: "harness-opt";
505
+ readonly args: "[--json]";
506
+ readonly category: "utility";
507
+ readonly toolPolicy: "agent";
508
+ };
509
+ readonly 'harness-opt stop': {
510
+ readonly handler: (ctx: CommandContext) => Promise<string>;
511
+ readonly description: "Human-only operator stop: halt governed rounds with a recorded reason";
512
+ readonly subcommandOf: "harness-opt";
513
+ readonly args: "[--reason <text>] [--json]";
514
+ readonly category: "utility";
515
+ readonly toolPolicy: "human-only";
516
+ };
517
+ readonly 'harness-opt compare': {
518
+ readonly handler: (ctx: CommandContext) => Promise<string>;
519
+ readonly description: "Separately executable comparative evaluation (issue #2503): baseline, ablation, and simple-agent arms on one frozen task population with an independently validated manifest, the independent oracle verdict, and a retained pilot-graduation record.";
520
+ readonly subcommandOf: "harness-opt";
521
+ readonly args: "--tasks <json> --confirm [--manifest <json>] [--seed <s>] [--lower-ci <n>] [--json]";
522
+ readonly category: "utility";
523
+ readonly toolPolicy: "human-only";
524
+ };
525
+ readonly 'harness-opt history': {
526
+ readonly handler: (ctx: CommandContext) => Promise<string>;
527
+ readonly description: "List durable round lineage records (bounded to the last 20)";
528
+ readonly subcommandOf: "harness-opt";
529
+ readonly args: "[--json]";
530
+ readonly category: "utility";
531
+ readonly toolPolicy: "agent";
532
+ };
477
533
  readonly review: {
478
534
  readonly handler: typeof handleReviewCommand;
479
535
  readonly description: "Run the independent review model against a selected Git diff";
@@ -1149,6 +1149,17 @@ export declare const HarnessEvolutionConfigSchema: z.ZodObject<{
1149
1149
  }, z.core.$strict>;
1150
1150
  export type HarnessEvolutionConfig = z.infer<typeof HarnessEvolutionConfigSchema>;
1151
1151
  export declare const DEFAULT_HARNESS_EVOLUTION_CONFIG: HarnessEvolutionConfig;
1152
+ export declare const HarnessOptConfigSchema: z.ZodObject<{
1153
+ enabled: z.ZodDefault<z.ZodBoolean>;
1154
+ max_rounds: z.ZodDefault<z.ZodNumber>;
1155
+ max_transient_retries: z.ZodDefault<z.ZodNumber>;
1156
+ max_wall_clock_ms: z.ZodDefault<z.ZodNumber>;
1157
+ max_spend_usd: z.ZodOptional<z.ZodNumber>;
1158
+ run_ablation_arm: z.ZodDefault<z.ZodBoolean>;
1159
+ run_simple_agent_arm: z.ZodDefault<z.ZodBoolean>;
1160
+ }, z.core.$strict>;
1161
+ export type HarnessOptConfig = z.infer<typeof HarnessOptConfigSchema>;
1162
+ export declare const DEFAULT_HARNESS_OPT_CONFIG: HarnessOptConfig;
1152
1163
  export declare const SkillImproverConfigSchema: z.ZodObject<{
1153
1164
  enabled: z.ZodDefault<z.ZodBoolean>;
1154
1165
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2817,6 +2828,15 @@ export declare const PluginConfigSchema: z.ZodObject<{
2817
2828
  max_replay_records: z.ZodDefault<z.ZodNumber>;
2818
2829
  max_output_bytes: z.ZodDefault<z.ZodNumber>;
2819
2830
  }, z.core.$strict>>;
2831
+ harness_opt: z.ZodOptional<z.ZodObject<{
2832
+ enabled: z.ZodDefault<z.ZodBoolean>;
2833
+ max_rounds: z.ZodDefault<z.ZodNumber>;
2834
+ max_transient_retries: z.ZodDefault<z.ZodNumber>;
2835
+ max_wall_clock_ms: z.ZodDefault<z.ZodNumber>;
2836
+ max_spend_usd: z.ZodOptional<z.ZodNumber>;
2837
+ run_ablation_arm: z.ZodDefault<z.ZodBoolean>;
2838
+ run_simple_agent_arm: z.ZodDefault<z.ZodBoolean>;
2839
+ }, z.core.$strict>>;
2820
2840
  spec_writer: z.ZodOptional<z.ZodObject<{
2821
2841
  enabled: z.ZodDefault<z.ZodBoolean>;
2822
2842
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1,3 +1,4 @@
1
+ import type { HarnessEvolutionConfig } from '../config/schema.js';
1
2
  import { type WriteApprovalRequest } from '../security/write-authority.js';
2
3
  import { type BlueprintPatchV1, type HarnessBlueprintV1, type PromptArtifactV1 } from './contracts.js';
3
4
  import type { HarnessSourceCandidateV1 } from './source-candidate.js';
@@ -93,6 +94,9 @@ export type ActivateHarnessCandidateResult = {
93
94
  } | {
94
95
  status: 'candidate_not_activatable';
95
96
  reason: string;
97
+ } | {
98
+ status: 'allowlist_revoked';
99
+ reason: string;
96
100
  } | {
97
101
  status: 'consumer_mismatch';
98
102
  reason: string;
@@ -120,6 +124,9 @@ export type RollbackHarnessVersionResult = {
120
124
  } | {
121
125
  status: 'version_not_found';
122
126
  reason: string;
127
+ } | {
128
+ status: 'allowlist_revoked';
129
+ reason: string;
123
130
  } | {
124
131
  status: 'consumer_mismatch';
125
132
  reason: string;
@@ -229,6 +236,7 @@ export declare function activateHarnessCandidate(args: {
229
236
  expectedCurrentGeneration: number;
230
237
  targetContentHash: string;
231
238
  allowedPathDigest: string;
239
+ config?: HarnessEvolutionConfig;
232
240
  maxVersions?: number;
233
241
  maxReplayRecords?: number;
234
242
  maxInactiveCandidates?: number;
@@ -242,6 +250,7 @@ export declare function rollbackHarnessVersion(args: {
242
250
  expectedCurrentGeneration: number;
243
251
  targetContentHash: string;
244
252
  allowedPathDigest: string;
253
+ config?: HarnessEvolutionConfig;
245
254
  maxVersions?: number;
246
255
  maxReplayRecords?: number;
247
256
  maxInactiveCandidates?: number;