opencode-swarm 7.180.1 → 7.181.1

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 (84) 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-ee8bmg83.js} +4 -4
  5. package/dist/cli/{config-doctor-ebat06eq.js → config-doctor-mnmxzg86.js} +3 -3
  6. package/dist/cli/{core-8k41qh0d.js → core-m9yymv84.js} +2 -2
  7. package/dist/cli/{curator-8yb3qkxs.js → curator-7nmwpcxy.js} +23 -23
  8. package/dist/cli/{curator-drift-3av9hffm.js → curator-drift-q42fr0c9.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-htgqafq0.js → curator-llm-factory-s1b2p162.js} +23 -23
  10. package/dist/cli/{evidence-summary-service-s258ea5t.js → evidence-summary-service-m2b0mxmr.js} +9 -9
  11. package/dist/cli/{gate-evidence-fqxpf3xz.js → gate-evidence-4y2x85g4.js} +3 -3
  12. package/dist/cli/{guardrail-explain-r0qxa4zy.js → guardrail-explain-nvmf3y7j.js} +24 -24
  13. package/dist/cli/{guardrail-log-j2wdmvmy.js → guardrail-log-202rfw7b.js} +4 -4
  14. package/dist/cli/{guardrail-reset-wb2eqbvf.js → guardrail-reset-7nt7z18b.js} +23 -23
  15. package/dist/cli/{hive-promoter-kxpc3r17.js → hive-promoter-segsykns.js} +23 -23
  16. package/dist/cli/{index-z2zrcecq.js → index-3qhx9dx0.js} +2500 -1345
  17. package/dist/cli/{index-3bbjpbmn.js → index-4h54k8h3.js} +2 -2
  18. package/dist/cli/{index-v7fx8q3z.js → index-908yea8v.js} +1 -1
  19. package/dist/cli/{index-v0par978.js → index-9j5jjqks.js} +1 -1
  20. package/dist/cli/{index-n5carmk0.js → index-a7z6jygf.js} +2 -2
  21. package/dist/cli/{index-bhmrgbyv.js → index-b2zbak7v.js} +6 -2
  22. package/dist/cli/{index-xj5z92qz.js → index-basp4sxt.js} +1 -1
  23. package/dist/cli/{index-yf7tdhpz.js → index-cyyvc1cd.js} +1 -1
  24. package/dist/cli/{index-wx3wz7ya.js → index-edb3sgxg.js} +2 -2
  25. package/dist/cli/{index-2q5m4m2r.js → index-g5wjasjn.js} +3 -3
  26. package/dist/cli/{index-rp4akjrm.js → index-g9ax7jyf.js} +15 -4
  27. package/dist/cli/{index-dzm5nfh7.js → index-gqe4sm73.js} +1 -1
  28. package/dist/cli/{index-855qxtdm.js → index-gydvqmtg.js} +4 -4
  29. package/dist/cli/{index-3zvp7t5d.js → index-hxe22tx3.js} +5 -5
  30. package/dist/cli/{index-tnhk72rs.js → index-jqjdejqe.js} +2 -2
  31. package/dist/cli/{index-z2xf153n.js → index-kjstkfgh.js} +3 -3
  32. package/dist/cli/{index-rejpbgxp.js → index-m65tnv4j.js} +1 -1
  33. package/dist/cli/{index-600aqfvm.js → index-na3br902.js} +23 -23
  34. package/dist/cli/{index-cj64vp08.js → index-pee6ykkg.js} +1 -1
  35. package/dist/cli/{index-xd0e4amf.js → index-q1prchye.js} +5 -5
  36. package/dist/cli/{index-k5vwnnym.js → index-r6p6x0pb.js} +16 -7
  37. package/dist/cli/{index-k6f0nryj.js → index-rw0wy2y7.js} +3 -3
  38. package/dist/cli/{index-gw5egd8j.js → index-rxs0rrv1.js} +25 -25
  39. package/dist/cli/{index-g062wnw1.js → index-tczqm089.js} +1 -1
  40. package/dist/cli/{index-50v672wd.js → index-vs83acgx.js} +3 -3
  41. package/dist/cli/{index-w872yykk.js → index-y4zjbrqs.js} +4 -0
  42. package/dist/cli/{index-gy3tcmk4.js → index-yhx94xpr.js} +4 -4
  43. package/dist/cli/{index-as4xaams.js → index-ztph1v9m.js} +1 -1
  44. package/dist/cli/index.js +24 -24
  45. package/dist/cli/{knowledge-escalator-n30h6ran.js → knowledge-escalator-r9chkas8.js} +7 -7
  46. package/dist/cli/{knowledge-events-k2qqase2.js → knowledge-events-5j2n6age.js} +5 -5
  47. package/dist/cli/{knowledge-store-zy226v5a.js → knowledge-store-mybx9bmx.js} +1 -1
  48. package/dist/cli/{knowledge-validator-qgyxdpc9.js → knowledge-validator-v1sj9tv4.js} +2 -2
  49. package/dist/cli/{mcp-pj7acze3.js → mcp-7yx5230p.js} +1 -1
  50. package/dist/cli/{model-preflight-61xgqwcs.js → model-preflight-ckvv1arg.js} +1 -1
  51. package/dist/cli/{pending-delegations-sgnnyw55.js → pending-delegations-amjfmc7t.js} +2 -2
  52. package/dist/cli/{pr-subscriptions-7fb7xm3q.js → pr-subscriptions-rctqs0gk.js} +1 -1
  53. package/dist/cli/{pr-workflow-gate-5dqcrkz6.js → pr-workflow-gate-9he8ys4e.js} +23 -23
  54. package/dist/cli/{runner-p9hstpxn.js → runner-tzgwvvn1.js} +1 -1
  55. package/dist/cli/{scan-cursor-jc7wwb7e.js → scan-cursor-pxqkphrh.js} +2 -2
  56. package/dist/cli/{schema-5k68crjb.js → schema-n8pk3f80.js} +6 -2
  57. package/dist/cli/{scope-persistence-xeg4khwk.js → scope-persistence-p992x2yd.js} +6 -6
  58. package/dist/cli/{server-ej6tzd7t.js → server-ywrd2q6z.js} +23 -23
  59. package/dist/cli/{skill-generator-nspt9b3n.js → skill-generator-cdppktqx.js} +8 -8
  60. package/dist/cli/{snapshot-coordination-init-3rs3zpaa.js → snapshot-coordination-init-z42ev5g9.js} +23 -23
  61. package/dist/cli/{speckit-checkoff-dqf636ya.js → speckit-checkoff-6ynv46bn.js} +4 -4
  62. package/dist/cli/{worktree-collision-ownership-rbzgbvj4.js → worktree-collision-ownership-65971p3m.js} +2 -2
  63. package/dist/cli/{worktree-isolation-6zpnzr70.js → worktree-isolation-xf7dfc46.js} +23 -23
  64. package/dist/commands/harness-opt.d.ts +44 -0
  65. package/dist/commands/registry.d.ts +56 -0
  66. package/dist/config/schema.d.ts +20 -0
  67. package/dist/gate-evidence.d.ts +21 -0
  68. package/dist/harness/store.d.ts +9 -0
  69. package/dist/index.js +263 -251
  70. package/dist/services/harness-optimizer/comparative.d.ts +81 -0
  71. package/dist/services/harness-optimizer/controller.d.ts +126 -0
  72. package/dist/services/harness-optimizer/execution.d.ts +68 -0
  73. package/dist/services/harness-optimizer/index.d.ts +10 -0
  74. package/dist/services/harness-optimizer/lineage.d.ts +70 -0
  75. package/dist/services/harness-optimizer/manifest.d.ts +65 -0
  76. package/dist/services/harness-optimizer/oracle.d.ts +40 -0
  77. package/dist/tools/index.d.ts +1 -0
  78. package/dist/tools/manifest.d.ts +1 -0
  79. package/dist/tools/recover-rework-task.d.ts +5 -0
  80. package/dist/tools/tool-metadata.d.ts +4 -0
  81. package/dist/workflow/rework-recovery.d.ts +38 -0
  82. package/dist/workflow/stage-a-repair.d.ts +42 -0
  83. package/opencode-swarm.schema.json +42 -0
  84. package/package.json +1 -1
@@ -25,28 +25,28 @@ import {
25
25
  redactSecrets,
26
26
  resolveWriteTargets,
27
27
  symbols
28
- } from "./index-z2zrcecq.js";
28
+ } from "./index-3qhx9dx0.js";
29
29
  import {
30
30
  checkFileAuthority,
31
31
  checkWriteTargetForSymlink
32
- } from "./index-tnhk72rs.js";
32
+ } from "./index-jqjdejqe.js";
33
33
  import {
34
34
  getProfileForFile
35
35
  } from "./index-hamqvzqn.js";
36
36
  import {
37
37
  pLimit
38
- } from "./index-rejpbgxp.js";
38
+ } from "./index-m65tnv4j.js";
39
39
  import"./index-nhxykfyy.js";
40
- import"./index-bhmrgbyv.js";
40
+ import"./index-b2zbak7v.js";
41
41
  import {
42
42
  _internals,
43
43
  loadPlan,
44
44
  loadPlanJsonOnly,
45
45
  saveEvidence
46
- } from "./index-xd0e4amf.js";
46
+ } from "./index-q1prchye.js";
47
47
  import"./index-s0zgz4p1.js";
48
48
  import"./index-txdagbh7.js";
49
- import"./index-g062wnw1.js";
49
+ import"./index-tczqm089.js";
50
50
  import {
51
51
  containsControlChars,
52
52
  createTargetWithinRootValidator,
@@ -55,16 +55,16 @@ import {
55
55
  validateTargetWithinRoot,
56
56
  validateWorkspaceRoot
57
57
  } from "./index-6b295cas.js";
58
- import"./index-50v672wd.js";
59
- import"./index-3zvp7t5d.js";
58
+ import"./index-vs83acgx.js";
59
+ import"./index-hxe22tx3.js";
60
60
  import {
61
61
  resolveCohortId
62
- } from "./index-yf7tdhpz.js";
62
+ } from "./index-cyyvc1cd.js";
63
63
  import"./index-rdec0y3z.js";
64
64
  import"./index-y30y1rkg.js";
65
65
  import"./index-cjapb4hy.js";
66
66
  import"./index-zsrtt42s.js";
67
- import"./index-z2xf153n.js";
67
+ import"./index-kjstkfgh.js";
68
68
  import"./index-bdpgfep1.js";
69
69
  import"./index-92m05mew.js";
70
70
  import {
@@ -72,16 +72,16 @@ import {
72
72
  getParserForFile
73
73
  } from "./index-pt7h91zc.js";
74
74
  import"./index-q7sjgr1y.js";
75
- import"./index-v7fx8q3z.js";
76
- import"./index-k5vwnnym.js";
77
- import"./index-n5carmk0.js";
78
- import"./index-v0par978.js";
75
+ import"./index-908yea8v.js";
76
+ import"./index-r6p6x0pb.js";
77
+ import"./index-a7z6jygf.js";
78
+ import"./index-9j5jjqks.js";
79
79
  import {
80
80
  effectiveRetrievalOutcomes,
81
81
  newTraceId,
82
82
  readAuthoritativeKnowledgeCounterRollups,
83
83
  recordKnowledgeEvent
84
- } from "./index-2q5m4m2r.js";
84
+ } from "./index-g5wjasjn.js";
85
85
  import"./index-gc6h1fmf.js";
86
86
  import"./index-2s7dvzff.js";
87
87
  import {
@@ -89,18 +89,18 @@ import {
89
89
  validateActionability,
90
90
  validateActionableFields,
91
91
  validateLesson
92
- } from "./index-dzm5nfh7.js";
92
+ } from "./index-gqe4sm73.js";
93
93
  import {
94
94
  resolveWorktreeId
95
95
  } from "./index-6gcxgx84.js";
96
96
  import"./index-rtry5xyf.js";
97
- import"./index-k6f0nryj.js";
97
+ import"./index-rw0wy2y7.js";
98
98
  import"./index-frcemc0b.js";
99
99
  import"./index-0725jpp7.js";
100
100
  import {
101
101
  normalizeScopeFiles
102
- } from "./index-cj64vp08.js";
103
- import"./index-wx3wz7ya.js";
102
+ } from "./index-pee6ykkg.js";
103
+ import"./index-edb3sgxg.js";
104
104
  import"./index-38cfx8g8.js";
105
105
  import"./index-91dhg3wr.js";
106
106
  import"./index-vmthakz0.js";
@@ -124,7 +124,7 @@ import {
124
124
  resolveSwarmKnowledgePath,
125
125
  transactKnowledge,
126
126
  wordBigrams
127
- } from "./index-gy3tcmk4.js";
127
+ } from "./index-yhx94xpr.js";
128
128
  import"./index-vzm6zre7.js";
129
129
  import"./index-ae75rja9.js";
130
130
  import"./index-12ewkms0.js";
@@ -148,7 +148,7 @@ import"./index-gx2vp8gx.js";
148
148
  import {
149
149
  loadGateOverrides,
150
150
  loadPluginConfigWithMeta
151
- } from "./index-xj5z92qz.js";
151
+ } from "./index-basp4sxt.js";
152
152
  import {
153
153
  init_git_executable,
154
154
  resolveGitExecutableAsync
@@ -157,11 +157,11 @@ import {
157
157
  KnowledgeConfigSchema,
158
158
  init_schema,
159
159
  stripKnownSwarmPrefix
160
- } from "./index-rp4akjrm.js";
160
+ } from "./index-g9ax7jyf.js";
161
161
  import {
162
162
  TOOL_METADATA,
163
163
  init_tool_metadata
164
- } from "./index-w872yykk.js";
164
+ } from "./index-y4zjbrqs.js";
165
165
  import {
166
166
  KNOWLEDGE_SCHEMA_VERSION,
167
167
  init_knowledge_types,
@@ -33,19 +33,19 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-50v672wd.js";
36
+ } from "./index-vs83acgx.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-2q5m4m2r.js";
38
+ import"./index-g5wjasjn.js";
39
39
  import"./index-gc6h1fmf.js";
40
40
  import"./index-2s7dvzff.js";
41
- import"./index-dzm5nfh7.js";
41
+ import"./index-gqe4sm73.js";
42
42
  import"./index-6gcxgx84.js";
43
43
  import"./index-rtry5xyf.js";
44
- import"./index-k6f0nryj.js";
44
+ import"./index-rw0wy2y7.js";
45
45
  import"./index-frcemc0b.js";
46
46
  import"./index-0725jpp7.js";
47
47
  import"./index-516j9vsk.js";
48
- import"./index-gy3tcmk4.js";
48
+ import"./index-yhx94xpr.js";
49
49
  import"./index-vzm6zre7.js";
50
50
  import"./index-ae75rja9.js";
51
51
  import"./index-12ewkms0.js";
@@ -57,10 +57,10 @@ import"./index-ejhxgyvm.js";
57
57
  import"./index-7g4c7s5r.js";
58
58
  import"./index-989v83pb.js";
59
59
  import"./index-gx2vp8gx.js";
60
- import"./index-xj5z92qz.js";
60
+ import"./index-basp4sxt.js";
61
61
  import"./index-zxdawwc7.js";
62
- import"./index-rp4akjrm.js";
63
- import"./index-w872yykk.js";
62
+ import"./index-g9ax7jyf.js";
63
+ import"./index-y4zjbrqs.js";
64
64
  import"./index-bk5tah7q.js";
65
65
  import"./index-gknz3bv1.js";
66
66
  import"./index-zpsr8rpc.js";
@@ -8,44 +8,44 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-z2zrcecq.js";
12
- import"./index-tnhk72rs.js";
11
+ } from "./index-3qhx9dx0.js";
12
+ import"./index-jqjdejqe.js";
13
13
  import"./index-hamqvzqn.js";
14
- import"./index-rejpbgxp.js";
14
+ import"./index-m65tnv4j.js";
15
15
  import"./index-nhxykfyy.js";
16
- import"./index-bhmrgbyv.js";
17
- import"./index-xd0e4amf.js";
16
+ import"./index-b2zbak7v.js";
17
+ import"./index-q1prchye.js";
18
18
  import"./index-s0zgz4p1.js";
19
19
  import"./index-txdagbh7.js";
20
- import"./index-g062wnw1.js";
20
+ import"./index-tczqm089.js";
21
21
  import"./index-6b295cas.js";
22
- import"./index-50v672wd.js";
23
- import"./index-3zvp7t5d.js";
24
- import"./index-yf7tdhpz.js";
22
+ import"./index-vs83acgx.js";
23
+ import"./index-hxe22tx3.js";
24
+ import"./index-cyyvc1cd.js";
25
25
  import"./index-rdec0y3z.js";
26
26
  import"./index-y30y1rkg.js";
27
27
  import"./index-cjapb4hy.js";
28
28
  import"./index-zsrtt42s.js";
29
- import"./index-z2xf153n.js";
29
+ import"./index-kjstkfgh.js";
30
30
  import"./index-bdpgfep1.js";
31
31
  import"./index-92m05mew.js";
32
32
  import"./index-pt7h91zc.js";
33
33
  import"./index-q7sjgr1y.js";
34
- import"./index-v7fx8q3z.js";
35
- import"./index-k5vwnnym.js";
36
- import"./index-n5carmk0.js";
37
- import"./index-v0par978.js";
38
- import"./index-2q5m4m2r.js";
34
+ import"./index-908yea8v.js";
35
+ import"./index-r6p6x0pb.js";
36
+ import"./index-a7z6jygf.js";
37
+ import"./index-9j5jjqks.js";
38
+ import"./index-g5wjasjn.js";
39
39
  import"./index-gc6h1fmf.js";
40
40
  import"./index-2s7dvzff.js";
41
- import"./index-dzm5nfh7.js";
41
+ import"./index-gqe4sm73.js";
42
42
  import"./index-6gcxgx84.js";
43
43
  import"./index-rtry5xyf.js";
44
- import"./index-k6f0nryj.js";
44
+ import"./index-rw0wy2y7.js";
45
45
  import"./index-frcemc0b.js";
46
46
  import"./index-0725jpp7.js";
47
- import"./index-cj64vp08.js";
48
- import"./index-wx3wz7ya.js";
47
+ import"./index-pee6ykkg.js";
48
+ import"./index-edb3sgxg.js";
49
49
  import"./index-38cfx8g8.js";
50
50
  import"./index-91dhg3wr.js";
51
51
  import"./index-vmthakz0.js";
@@ -53,7 +53,7 @@ import"./index-bv4b8tpa.js";
53
53
  import"./index-rdm3px0g.js";
54
54
  import"./index-ry16d01s.js";
55
55
  import"./index-516j9vsk.js";
56
- import"./index-gy3tcmk4.js";
56
+ import"./index-yhx94xpr.js";
57
57
  import"./index-vzm6zre7.js";
58
58
  import"./index-ae75rja9.js";
59
59
  import"./index-12ewkms0.js";
@@ -65,10 +65,10 @@ import"./index-ejhxgyvm.js";
65
65
  import"./index-7g4c7s5r.js";
66
66
  import"./index-989v83pb.js";
67
67
  import"./index-gx2vp8gx.js";
68
- import"./index-xj5z92qz.js";
68
+ import"./index-basp4sxt.js";
69
69
  import"./index-zxdawwc7.js";
70
- import"./index-rp4akjrm.js";
71
- import"./index-w872yykk.js";
70
+ import"./index-g9ax7jyf.js";
71
+ import"./index-y4zjbrqs.js";
72
72
  import"./index-bk5tah7q.js";
73
73
  import"./index-gknz3bv1.js";
74
74
  import"./index-zpsr8rpc.js";
@@ -7,14 +7,14 @@ import {
7
7
  parseSpeckitTasksContent,
8
8
  propagateSpeckitCheckoff,
9
9
  writeSpeckitCheckoffLedger
10
- } from "./index-v7fx8q3z.js";
10
+ } from "./index-908yea8v.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
13
  import"./index-989v83pb.js";
14
- import"./index-xj5z92qz.js";
14
+ import"./index-basp4sxt.js";
15
15
  import"./index-zxdawwc7.js";
16
- import"./index-rp4akjrm.js";
17
- import"./index-w872yykk.js";
16
+ import"./index-g9ax7jyf.js";
17
+ import"./index-y4zjbrqs.js";
18
18
  import"./index-bk5tah7q.js";
19
19
  import"./index-gknz3bv1.js";
20
20
  import"./index-zpsr8rpc.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  scanDelegationFallbacksForRecovery,
15
15
  scanDelegationsForRecovery
16
- } from "./index-v0par978.js";
16
+ } from "./index-9j5jjqks.js";
17
17
  import"./index-gc6h1fmf.js";
18
18
  import"./index-2s7dvzff.js";
19
19
  import"./index-91dhg3wr.js";
@@ -22,7 +22,7 @@ import"./index-bv4b8tpa.js";
22
22
  import"./index-rdm3px0g.js";
23
23
  import"./index-ry16d01s.js";
24
24
  import"./index-516j9vsk.js";
25
- import"./index-gy3tcmk4.js";
25
+ import"./index-yhx94xpr.js";
26
26
  import"./index-vzm6zre7.js";
27
27
  import"./index-ae75rja9.js";
28
28
  import"./index-12ewkms0.js";
@@ -21,46 +21,46 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-z2zrcecq.js";
25
- import"./index-tnhk72rs.js";
24
+ } from "./index-3qhx9dx0.js";
25
+ import"./index-jqjdejqe.js";
26
26
  import"./index-hamqvzqn.js";
27
- import"./index-rejpbgxp.js";
27
+ import"./index-m65tnv4j.js";
28
28
  import"./index-nhxykfyy.js";
29
- import"./index-bhmrgbyv.js";
30
- import"./index-xd0e4amf.js";
29
+ import"./index-b2zbak7v.js";
30
+ import"./index-q1prchye.js";
31
31
  import"./index-s0zgz4p1.js";
32
32
  import"./index-txdagbh7.js";
33
- import"./index-g062wnw1.js";
33
+ import"./index-tczqm089.js";
34
34
  import"./index-6b295cas.js";
35
- import"./index-50v672wd.js";
36
- import"./index-3zvp7t5d.js";
37
- import"./index-yf7tdhpz.js";
35
+ import"./index-vs83acgx.js";
36
+ import"./index-hxe22tx3.js";
37
+ import"./index-cyyvc1cd.js";
38
38
  import"./index-rdec0y3z.js";
39
39
  import"./index-y30y1rkg.js";
40
40
  import"./index-cjapb4hy.js";
41
41
  import"./index-zsrtt42s.js";
42
- import"./index-z2xf153n.js";
42
+ import"./index-kjstkfgh.js";
43
43
  import"./index-bdpgfep1.js";
44
44
  import"./index-92m05mew.js";
45
45
  import"./index-pt7h91zc.js";
46
46
  import"./index-q7sjgr1y.js";
47
- import"./index-v7fx8q3z.js";
48
- import"./index-k5vwnnym.js";
49
- import"./index-n5carmk0.js";
50
- import"./index-v0par978.js";
51
- import"./index-2q5m4m2r.js";
47
+ import"./index-908yea8v.js";
48
+ import"./index-r6p6x0pb.js";
49
+ import"./index-a7z6jygf.js";
50
+ import"./index-9j5jjqks.js";
51
+ import"./index-g5wjasjn.js";
52
52
  import"./index-gc6h1fmf.js";
53
53
  import"./index-2s7dvzff.js";
54
- import"./index-dzm5nfh7.js";
54
+ import"./index-gqe4sm73.js";
55
55
  import"./index-6gcxgx84.js";
56
56
  import"./index-rtry5xyf.js";
57
57
  import {
58
58
  resolveWorktreeIsolationConfig
59
- } from "./index-k6f0nryj.js";
59
+ } from "./index-rw0wy2y7.js";
60
60
  import"./index-frcemc0b.js";
61
61
  import"./index-0725jpp7.js";
62
- import"./index-cj64vp08.js";
63
- import"./index-wx3wz7ya.js";
62
+ import"./index-pee6ykkg.js";
63
+ import"./index-edb3sgxg.js";
64
64
  import"./index-38cfx8g8.js";
65
65
  import"./index-91dhg3wr.js";
66
66
  import"./index-vmthakz0.js";
@@ -68,7 +68,7 @@ import"./index-bv4b8tpa.js";
68
68
  import"./index-rdm3px0g.js";
69
69
  import"./index-ry16d01s.js";
70
70
  import"./index-516j9vsk.js";
71
- import"./index-gy3tcmk4.js";
71
+ import"./index-yhx94xpr.js";
72
72
  import"./index-vzm6zre7.js";
73
73
  import"./index-ae75rja9.js";
74
74
  import"./index-12ewkms0.js";
@@ -80,10 +80,10 @@ import"./index-ejhxgyvm.js";
80
80
  import"./index-7g4c7s5r.js";
81
81
  import"./index-989v83pb.js";
82
82
  import"./index-gx2vp8gx.js";
83
- import"./index-xj5z92qz.js";
83
+ import"./index-basp4sxt.js";
84
84
  import"./index-zxdawwc7.js";
85
- import"./index-rp4akjrm.js";
86
- import"./index-w872yykk.js";
85
+ import"./index-g9ax7jyf.js";
86
+ import"./index-y4zjbrqs.js";
87
87
  import"./index-bk5tah7q.js";
88
88
  import"./index-gknz3bv1.js";
89
89
  import"./index-zpsr8rpc.js";
@@ -0,0 +1,44 @@
1
+ /**
2
+ * `/swarm harness-opt` command group (issue #2503 — governed HarnessOpt
3
+ * capstone).
4
+ *
5
+ * Subcommands: plan | run | status | stop | history
6
+ *
7
+ * - JSON output on `--json` (convention: skill-opt.ts).
8
+ * - Disabled by default: `run` requires `config.harness_opt.enabled === true`
9
+ * AND an explicit `--confirm`. The `--confirm` refusal is evaluated FIRST
10
+ * so it stays observable without any config in the command context.
11
+ * - `run` and `stop` are human-gated (`toolPolicy: 'human-only'` on the
12
+ * registry entries); `plan`/`status`/`history` are read-only/proposal-only.
13
+ * - Activation and rollback are NOT here: they stay on the existing
14
+ * human-only `/swarm approve-write` + harness store path.
15
+ * - `run` executes the round through the production evaluation substrate
16
+ * in a disposable worktree; a `test` split consumes the held-out set
17
+ * exactly once (substrate-enforced).
18
+ */
19
+ import { type HarnessOptConfig } from '../config/schema.js';
20
+ import type { EvaluationModelDispatcher } from '../evaluation/model-dispatcher.js';
21
+ export interface HarnessOptRuntime {
22
+ config?: HarnessOptConfig;
23
+ /** Evaluation dispatcher from CommandContext.evaluationModelDispatcher. */
24
+ dispatcher?: EvaluationModelDispatcher;
25
+ parentSessionId?: string;
26
+ }
27
+ /** `/swarm harness-opt plan` — freeze the task set and report (dry-run). */
28
+ export declare function handleHarnessOptPlan(directory: string, args: string[], _runtime?: HarnessOptRuntime): Promise<string>;
29
+ /** `/swarm harness-opt run` — execute ONE governed round (human-only). */
30
+ export declare function handleHarnessOptRun(directory: string, args: string[], runtime?: HarnessOptRuntime): Promise<string>;
31
+ /** `/swarm harness-opt status` — loop status + latest lineage summary. */
32
+ export declare function handleHarnessOptStatus(directory: string, args: string[]): Promise<string>;
33
+ /** `/swarm harness-opt stop` — human-only operator stop (or --resume). */
34
+ export declare function handleHarnessOptStop(directory: string, args: string[]): Promise<string>;
35
+ /** `/swarm harness-opt history` — bounded lineage listing. */
36
+ export declare function handleHarnessOptHistory(directory: string, args: string[]): Promise<string>;
37
+ /** `/swarm harness-opt compare` — the separately executable comparative
38
+ * evaluation work package (issue #2503): three arms on one frozen task
39
+ * population, an independently validated manifest when supplied, the
40
+ * independent oracle's verdict on baseline-vs-candidate summaries, and a
41
+ * pilot-graduation record retaining the observed evidence verbatim.
42
+ * Human-gated: requires --confirm and an evaluation dispatcher; never
43
+ * consumes a held-out split and never mutates the harness. */
44
+ export declare function handleHarnessOptCompare(directory: string, args: string[], runtime?: HarnessOptRuntime): Promise<string>;
@@ -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>>;
@@ -53,6 +53,19 @@ export interface TaskWorkflowMetadata {
53
53
  * the same answer those files would have given anyway.
54
54
  */
55
55
  forcedCompletion?: boolean;
56
+ /**
57
+ * True when this task's current generation entered `pre_check_passed` via the
58
+ * architect-supervised `recover_rework_task` escape hatch (issue #2755) rather
59
+ * than the mechanical pre_check_batch recorder.
60
+ *
61
+ * Same rationale as `forcedCompletion`: the reducer consumes the event-scoped
62
+ * `supervisedRecovery` flag transiently, so without a persisted marker the
63
+ * evidence file becomes byte-identical to a mechanically-earned Stage A pass
64
+ * as soon as the next transition overwrites `lastTransitionId`. Preserved
65
+ * across subsequent transitions in the same generation, cleared by
66
+ * `repair_idle` (which opens a new generation for genuinely new work).
67
+ */
68
+ supervisedRecovery?: boolean;
56
69
  }
57
70
  export interface TaskWorkflowSnapshot extends TaskWorkflowMetadata {
58
71
  authoritative: boolean;
@@ -108,6 +121,14 @@ export type TaskWorkflowTransitionEvent = {
108
121
  transitionId?: string;
109
122
  } | {
110
123
  type: 'stage_a_passed';
124
+ /**
125
+ * Architect-supervised recovery only (issue #2755): the recover_rework_task
126
+ * tool sets this to admit stage_a_passed from rework_required when the
127
+ * Stage B verdict did not require a code change. Mechanical emitters
128
+ * (the guardrails recorder, stage-a-repair) never set it, so they still
129
+ * fail closed with TASK_WORKFLOW_CODER_MUTATION_REQUIRED from that state.
130
+ */
131
+ supervisedRecovery?: boolean;
111
132
  expectedGeneration: number;
112
133
  transitionId?: string;
113
134
  } | {
@@ -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;