opencode-swarm 7.184.6 → 7.184.8

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 (100) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +3 -3
  2. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +20 -0
  3. package/README.md +9 -4
  4. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  5. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  6. package/dist/cli/{coder-settlement-cxe9fn9d.js → coder-settlement-r66d0hrv.js} +11 -11
  7. package/dist/cli/{config-doctor-f2semh9v.js → config-doctor-4283xkfv.js} +3 -3
  8. package/dist/cli/{core-xf46e82t.js → core-mz92tdmh.js} +4 -4
  9. package/dist/cli/{curation-policy-49f8jx48.js → curation-policy-k43q6b91.js} +4 -4
  10. package/dist/cli/{curator-drift-8ez4czhj.js → curator-drift-apjkb9ef.js} +9 -9
  11. package/dist/cli/curator-llm-factory-79ee75n4.js +75 -0
  12. package/dist/cli/{curator-n2gvb7rc.js → curator-x826phy6.js} +38 -38
  13. package/dist/cli/{evidence-summary-service-e2gt8tnz.js → evidence-summary-service-5tbqybse.js} +17 -17
  14. package/dist/cli/{gate-evidence-9zpdk87c.js → gate-evidence-v6g6bwm5.js} +8 -6
  15. package/dist/cli/guardrail-explain-xdztayqz.js +76 -0
  16. package/dist/cli/{guardrail-log-e4ysdxag.js → guardrail-log-nqg3kd9m.js} +7 -7
  17. package/dist/cli/{guardrail-reset-1fxdaqwf.js → guardrail-reset-vyn98as6.js} +38 -38
  18. package/dist/cli/{hive-promoter-y81jkaj5.js → hive-promoter-y7ddjf37.js} +38 -38
  19. package/dist/cli/{index-b5xcv0ec.js → index-0nzrz0a7.js} +4 -4
  20. package/dist/cli/{index-ar2gsn6b.js → index-14j1jkyy.js} +6 -6
  21. package/dist/cli/{index-ya32wfkp.js → index-1t2ctwkd.js} +1 -1
  22. package/dist/cli/{index-7136wpb2.js → index-239r2znx.js} +46 -19
  23. package/dist/cli/{index-k53a69vb.js → index-2t4zv1ag.js} +7 -14
  24. package/dist/cli/{index-4b8997qs.js → index-4hrc0gmy.js} +7 -7
  25. package/dist/cli/{index-y1xtkdys.js → index-5rpg65jz.js} +7 -7
  26. package/dist/cli/{index-5j6g6kqj.js → index-65xbb93y.js} +3 -3
  27. package/dist/cli/{index-zm08qe68.js → index-6d2fdc4g.js} +5 -5
  28. package/dist/cli/{index-3w3cssas.js → index-6grdzhtz.js} +7 -7
  29. package/dist/cli/{index-5p5tpj50.js → index-6wtf98v6.js} +2 -2
  30. package/dist/cli/{index-3n5zsp31.js → index-7xv2hvr6.js} +2 -2
  31. package/dist/cli/{index-wy3zpwjy.js → index-98a0rxby.js} +1 -1
  32. package/dist/cli/{index-vyjped9g.js → index-b1v0zxnh.js} +2 -2
  33. package/dist/cli/{index-gekvpzaf.js → index-bn604f1g.js} +2 -2
  34. package/dist/cli/{index-9vbsarg2.js → index-cnm1e97z.js} +5 -5
  35. package/dist/cli/{index-d4rhnvtf.js → index-cq0ft5wb.js} +1 -1
  36. package/dist/cli/{index-77g30h6x.js → index-dqb9528c.js} +2 -2
  37. package/dist/cli/{index-xf69xty9.js → index-e1zrgvqg.js} +1 -1
  38. package/dist/cli/{index-wzec3c4g.js → index-ezagem2g.js} +4 -0
  39. package/dist/cli/{index-zzvxj02e.js → index-fr6x6vn2.js} +1 -1
  40. package/dist/cli/{index-475bkab8.js → index-g2r6t7by.js} +1 -1
  41. package/dist/cli/{index-m62eysrr.js → index-gkrsy2vy.js} +168 -105
  42. package/dist/cli/{index-kx3hfpb8.js → index-h5y74yhy.js} +12 -12
  43. package/dist/cli/{index-qksf7d8b.js → index-kdkp3zds.js} +4 -4
  44. package/dist/cli/{index-dtgj8d9k.js → index-n2md4hfb.js} +4 -4
  45. package/dist/cli/{index-kkj76rky.js → index-psdt9tg0.js} +3 -3
  46. package/dist/cli/{index-p45t3c66.js → index-pv82gzpy.js} +1 -1
  47. package/dist/cli/{index-6g664sy8.js → index-q39ecyaq.js} +1 -1
  48. package/dist/cli/{index-skw3bgg1.js → index-q858w0wz.js} +4 -4
  49. package/dist/cli/{index-47wqppx9.js → index-qat6caah.js} +38 -38
  50. package/dist/cli/{index-earq3mda.js → index-qeqn241m.js} +1 -1
  51. package/dist/cli/{index-8x0vtc05.js → index-qntx5f14.js} +3 -3
  52. package/dist/cli/{index-h2vpqaf1.js → index-rdsrbanf.js} +6 -6
  53. package/dist/cli/{index-f0nj3d8z.js → index-rmspt7xm.js} +1 -1
  54. package/dist/cli/{index-jvk95e6y.js → index-s95ghsy1.js} +1 -1
  55. package/dist/cli/{index-w9hxzcz4.js → index-t0mb5a9p.js} +1 -1
  56. package/dist/cli/{index-jjdrhr7z.js → index-tr83fkh2.js} +5 -5
  57. package/dist/cli/{index-ejk27p7n.js → index-w9517q25.js} +40 -40
  58. package/dist/cli/{index-456awy1p.js → index-xqxqepsy.js} +2 -2
  59. package/dist/cli/{index-k1p87csx.js → index-z9b6abs8.js} +2 -2
  60. package/dist/cli/{index-g1aa3sdm.js → index-zce97jmt.js} +2 -2
  61. package/dist/cli/{index-taw9b4v5.js → index-zcka2cmb.js} +1 -1
  62. package/dist/cli/index.js +39 -39
  63. package/dist/cli/{knowledge-escalator-pw06n575.js → knowledge-escalator-2f5kkezr.js} +12 -12
  64. package/dist/cli/{knowledge-events-f4wgd8n2.js → knowledge-events-4qewgabr.js} +10 -10
  65. package/dist/cli/{knowledge-link-ap2274vm.js → knowledge-link-xw6vsbx3.js} +3 -3
  66. package/dist/cli/{knowledge-store-rttx0zb9.js → knowledge-store-04jxzbz5.js} +4 -4
  67. package/dist/cli/{knowledge-validator-nakzbx9d.js → knowledge-validator-x9g76cgh.js} +6 -6
  68. package/dist/cli/{mcp-fdgfryxa.js → mcp-zcmpnd9g.js} +1 -1
  69. package/dist/cli/{model-preflight-wmm3tard.js → model-preflight-y2wvmkmw.js} +38 -38
  70. package/dist/cli/{pending-delegations-eswsasts.js → pending-delegations-44cwy210.js} +10 -10
  71. package/dist/cli/{pr-subscriptions-fvwnd217.js → pr-subscriptions-hmca4kyq.js} +10 -10
  72. package/dist/cli/{pr-workflow-gate-v4e8k3gn.js → pr-workflow-gate-anzvkr87.js} +38 -38
  73. package/dist/cli/{runner-yz3ysehf.js → runner-pvdhxh74.js} +4 -4
  74. package/dist/cli/{scan-cursor-krrzh2x5.js → scan-cursor-t020wayb.js} +5 -5
  75. package/dist/cli/{schema-wv7r4x4q.js → schema-q5xjg4ww.js} +2 -2
  76. package/dist/cli/{scope-persistence-d3jv0v2w.js → scope-persistence-yk8bhh58.js} +14 -14
  77. package/dist/cli/{server-cxf8qmej.js → server-z5r7yyg7.js} +38 -38
  78. package/dist/cli/{skill-generator-gbs540wv.js → skill-generator-gma98zj6.js} +14 -14
  79. package/dist/cli/{snapshot-coordination-init-p98yacqd.js → snapshot-coordination-init-5hgtne5d.js} +38 -38
  80. package/dist/cli/{speckit-checkoff-1zhq6dsh.js → speckit-checkoff-5p71mpy2.js} +5 -5
  81. package/dist/cli/{workspace-snapshot-xwhhznt3.js → workspace-snapshot-553c6cd3.js} +3 -3
  82. package/dist/cli/{worktree-collision-ownership-rm7ybyyc.js → worktree-collision-ownership-z4hg58zq.js} +11 -11
  83. package/dist/cli/{worktree-isolation-vz6et0s2.js → worktree-isolation-505j9dhm.js} +38 -38
  84. package/dist/commands/registry.d.ts +1 -1
  85. package/dist/gate-evidence.d.ts +51 -0
  86. package/dist/hooks/extractors.d.ts +23 -0
  87. package/dist/index.js +43 -44
  88. package/dist/services/context-budget-service.d.ts +12 -1
  89. package/dist/tools/index.d.ts +1 -0
  90. package/dist/tools/manifest.d.ts +1 -0
  91. package/dist/tools/record-branch-freshness.d.ts +6 -0
  92. package/dist/tools/record-trace-validation.d.ts +11 -0
  93. package/dist/tools/recover-stage-a-task.d.ts +5 -0
  94. package/dist/tools/tool-metadata.d.ts +4 -0
  95. package/dist/workflow/settlement-recovery.d.ts +52 -0
  96. package/dist/workflow/stage-a-repair.d.ts +13 -8
  97. package/dist/workflow/task-recovery-status.d.ts +11 -2
  98. package/package.json +1 -1
  99. package/dist/cli/curator-llm-factory-smd5741x.js +0 -75
  100. package/dist/cli/guardrail-explain-e9kjxg97.js +0 -76
@@ -3,68 +3,68 @@ import {
3
3
  getAgentSession,
4
4
  getBlockingActionCircuit,
5
5
  resetActionCircuitExternally
6
- } from "./index-m62eysrr.js";
7
- import"./index-8x0vtc05.js";
6
+ } from "./index-gkrsy2vy.js";
7
+ import"./index-qntx5f14.js";
8
8
  import"./index-hamqvzqn.js";
9
- import"./index-6g664sy8.js";
10
- import"./index-kkj76rky.js";
11
- import"./index-77g30h6x.js";
12
- import"./index-kx3hfpb8.js";
13
- import"./index-ya32wfkp.js";
9
+ import"./index-q39ecyaq.js";
10
+ import"./index-psdt9tg0.js";
11
+ import"./index-dqb9528c.js";
12
+ import"./index-h5y74yhy.js";
13
+ import"./index-1t2ctwkd.js";
14
14
  import"./index-txdagbh7.js";
15
- import"./index-taw9b4v5.js";
15
+ import"./index-zcka2cmb.js";
16
16
  import"./index-6b295cas.js";
17
- import"./index-qksf7d8b.js";
18
- import"./index-zm08qe68.js";
19
- import"./index-k1p87csx.js";
17
+ import"./index-kdkp3zds.js";
18
+ import"./index-6d2fdc4g.js";
19
+ import"./index-z9b6abs8.js";
20
20
  import"./index-rdec0y3z.js";
21
- import"./index-ar2gsn6b.js";
21
+ import"./index-14j1jkyy.js";
22
22
  import"./index-cjapb4hy.js";
23
23
  import"./index-zsrtt42s.js";
24
- import"./index-4b8997qs.js";
25
- import"./index-vyjped9g.js";
26
- import"./index-3n5zsp31.js";
24
+ import"./index-4hrc0gmy.js";
25
+ import"./index-b1v0zxnh.js";
26
+ import"./index-7xv2hvr6.js";
27
27
  import"./index-pt7h91zc.js";
28
28
  import"./index-q7sjgr1y.js";
29
- import"./index-gekvpzaf.js";
30
- import"./index-7136wpb2.js";
31
- import"./index-skw3bgg1.js";
32
- import"./index-h2vpqaf1.js";
33
- import"./index-3w3cssas.js";
34
- import"./index-wy3zpwjy.js";
29
+ import"./index-bn604f1g.js";
30
+ import"./index-239r2znx.js";
31
+ import"./index-q858w0wz.js";
32
+ import"./index-rdsrbanf.js";
33
+ import"./index-6grdzhtz.js";
34
+ import"./index-98a0rxby.js";
35
35
  import"./index-2s7dvzff.js";
36
- import"./index-dtgj8d9k.js";
37
- import"./index-earq3mda.js";
36
+ import"./index-n2md4hfb.js";
37
+ import"./index-qeqn241m.js";
38
38
  import"./index-rtry5xyf.js";
39
- import"./index-5j6g6kqj.js";
39
+ import"./index-65xbb93y.js";
40
40
  import"./index-frcemc0b.js";
41
41
  import"./index-0725jpp7.js";
42
- import"./index-jjdrhr7z.js";
43
- import"./index-9vbsarg2.js";
44
- import"./index-jvk95e6y.js";
45
- import"./index-456awy1p.js";
46
- import"./index-f0nj3d8z.js";
47
- import"./index-w9hxzcz4.js";
42
+ import"./index-tr83fkh2.js";
43
+ import"./index-cnm1e97z.js";
44
+ import"./index-s95ghsy1.js";
45
+ import"./index-xqxqepsy.js";
46
+ import"./index-rmspt7xm.js";
47
+ import"./index-t0mb5a9p.js";
48
48
  import"./index-rdm3px0g.js";
49
49
  import"./index-ry16d01s.js";
50
- import"./index-zzvxj02e.js";
51
- import"./index-y1xtkdys.js";
50
+ import"./index-fr6x6vn2.js";
51
+ import"./index-5rpg65jz.js";
52
52
  import"./index-vzm6zre7.js";
53
53
  import"./index-ae75rja9.js";
54
- import"./index-475bkab8.js";
55
- import"./index-xf69xty9.js";
54
+ import"./index-g2r6t7by.js";
55
+ import"./index-e1zrgvqg.js";
56
56
  import"./index-t7hmqgjy.js";
57
57
  import"./index-x1gyqgze.js";
58
58
  import"./index-mc72pk74.js";
59
59
  import"./index-c1ggtmpm.js";
60
60
  import"./index-ejhxgyvm.js";
61
61
  import"./index-7g4c7s5r.js";
62
- import"./index-k53a69vb.js";
62
+ import"./index-2t4zv1ag.js";
63
63
  import"./index-gx2vp8gx.js";
64
- import"./index-d4rhnvtf.js";
64
+ import"./index-cq0ft5wb.js";
65
65
  import"./index-zxdawwc7.js";
66
- import"./index-g1aa3sdm.js";
67
- import"./index-wzec3c4g.js";
66
+ import"./index-zce97jmt.js";
67
+ import"./index-ezagem2g.js";
68
68
  import"./index-bk5tah7q.js";
69
69
  import"./index-gknz3bv1.js";
70
70
  import"./index-zpsr8rpc.js";
@@ -7,70 +7,70 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-m62eysrr.js";
11
- import"./index-8x0vtc05.js";
10
+ } from "./index-gkrsy2vy.js";
11
+ import"./index-qntx5f14.js";
12
12
  import"./index-hamqvzqn.js";
13
- import"./index-6g664sy8.js";
14
- import"./index-kkj76rky.js";
15
- import"./index-77g30h6x.js";
16
- import"./index-kx3hfpb8.js";
17
- import"./index-ya32wfkp.js";
13
+ import"./index-q39ecyaq.js";
14
+ import"./index-psdt9tg0.js";
15
+ import"./index-dqb9528c.js";
16
+ import"./index-h5y74yhy.js";
17
+ import"./index-1t2ctwkd.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-taw9b4v5.js";
19
+ import"./index-zcka2cmb.js";
20
20
  import"./index-6b295cas.js";
21
- import"./index-qksf7d8b.js";
22
- import"./index-zm08qe68.js";
23
- import"./index-k1p87csx.js";
21
+ import"./index-kdkp3zds.js";
22
+ import"./index-6d2fdc4g.js";
23
+ import"./index-z9b6abs8.js";
24
24
  import"./index-rdec0y3z.js";
25
- import"./index-ar2gsn6b.js";
25
+ import"./index-14j1jkyy.js";
26
26
  import"./index-cjapb4hy.js";
27
27
  import"./index-zsrtt42s.js";
28
- import"./index-4b8997qs.js";
29
- import"./index-vyjped9g.js";
30
- import"./index-3n5zsp31.js";
28
+ import"./index-4hrc0gmy.js";
29
+ import"./index-b1v0zxnh.js";
30
+ import"./index-7xv2hvr6.js";
31
31
  import"./index-pt7h91zc.js";
32
32
  import"./index-q7sjgr1y.js";
33
- import"./index-gekvpzaf.js";
34
- import"./index-7136wpb2.js";
35
- import"./index-skw3bgg1.js";
36
- import"./index-h2vpqaf1.js";
37
- import"./index-3w3cssas.js";
38
- import"./index-wy3zpwjy.js";
33
+ import"./index-bn604f1g.js";
34
+ import"./index-239r2znx.js";
35
+ import"./index-q858w0wz.js";
36
+ import"./index-rdsrbanf.js";
37
+ import"./index-6grdzhtz.js";
38
+ import"./index-98a0rxby.js";
39
39
  import"./index-2s7dvzff.js";
40
- import"./index-dtgj8d9k.js";
41
- import"./index-earq3mda.js";
40
+ import"./index-n2md4hfb.js";
41
+ import"./index-qeqn241m.js";
42
42
  import"./index-rtry5xyf.js";
43
- import"./index-5j6g6kqj.js";
43
+ import"./index-65xbb93y.js";
44
44
  import"./index-frcemc0b.js";
45
45
  import"./index-0725jpp7.js";
46
- import"./index-jjdrhr7z.js";
47
- import"./index-9vbsarg2.js";
48
- import"./index-jvk95e6y.js";
49
- import"./index-456awy1p.js";
50
- import"./index-f0nj3d8z.js";
51
- import"./index-w9hxzcz4.js";
46
+ import"./index-tr83fkh2.js";
47
+ import"./index-cnm1e97z.js";
48
+ import"./index-s95ghsy1.js";
49
+ import"./index-xqxqepsy.js";
50
+ import"./index-rmspt7xm.js";
51
+ import"./index-t0mb5a9p.js";
52
52
  import"./index-rdm3px0g.js";
53
53
  import"./index-ry16d01s.js";
54
- import"./index-zzvxj02e.js";
54
+ import"./index-fr6x6vn2.js";
55
55
  import {
56
56
  resolveHiveKnowledgePath
57
- } from "./index-y1xtkdys.js";
57
+ } from "./index-5rpg65jz.js";
58
58
  import"./index-vzm6zre7.js";
59
59
  import"./index-ae75rja9.js";
60
- import"./index-475bkab8.js";
61
- import"./index-xf69xty9.js";
60
+ import"./index-g2r6t7by.js";
61
+ import"./index-e1zrgvqg.js";
62
62
  import"./index-t7hmqgjy.js";
63
63
  import"./index-x1gyqgze.js";
64
64
  import"./index-mc72pk74.js";
65
65
  import"./index-c1ggtmpm.js";
66
66
  import"./index-ejhxgyvm.js";
67
67
  import"./index-7g4c7s5r.js";
68
- import"./index-k53a69vb.js";
68
+ import"./index-2t4zv1ag.js";
69
69
  import"./index-gx2vp8gx.js";
70
- import"./index-d4rhnvtf.js";
70
+ import"./index-cq0ft5wb.js";
71
71
  import"./index-zxdawwc7.js";
72
- import"./index-g1aa3sdm.js";
73
- import"./index-wzec3c4g.js";
72
+ import"./index-zce97jmt.js";
73
+ import"./index-ezagem2g.js";
74
74
  import"./index-bk5tah7q.js";
75
75
  import"./index-gknz3bv1.js";
76
76
  import"./index-zpsr8rpc.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-5j6g6kqj.js";
5
+ } from "./index-65xbb93y.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -46,7 +46,7 @@ import {
46
46
  loadPluginConfigWithMeta,
47
47
  loadPluginConfigWithMetaAsync,
48
48
  resetConfigAdvisoryDedup
49
- } from "./index-d4rhnvtf.js";
49
+ } from "./index-cq0ft5wb.js";
50
50
  import"./index-zxdawwc7.js";
51
51
  import {
52
52
  AUTO_REVIEW_V8_BURN_IN_DECISION,
@@ -72,7 +72,7 @@ import {
72
72
  TurboConfigSchema,
73
73
  WorktreeIsolationConfigSchema,
74
74
  resolveAutoReviewConfig
75
- } from "./index-g1aa3sdm.js";
75
+ } from "./index-zce97jmt.js";
76
76
  import {
77
77
  ALL_AGENT_NAMES,
78
78
  ALL_SUBAGENT_NAMES,
@@ -82,7 +82,7 @@ import {
82
82
  QA_AGENTS,
83
83
  isQAAgent,
84
84
  isSubagent
85
- } from "./index-wzec3c4g.js";
85
+ } from "./index-ezagem2g.js";
86
86
  import"./index-bk5tah7q.js";
87
87
  import"./index-gknz3bv1.js";
88
88
  import"./index-zpsr8rpc.js";
@@ -1,24 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-wy3zpwjy.js";
4
+ } from "./index-98a0rxby.js";
5
5
  import {
6
6
  deleteCoordinationState,
7
7
  importCoordinationOnce,
8
8
  listCoordinationStates,
9
9
  transitionCoordinationState,
10
10
  withCoordinationTransaction
11
- } from "./index-f0nj3d8z.js";
11
+ } from "./index-rmspt7xm.js";
12
12
  import {
13
13
  getProjectDb,
14
14
  projectDbExists
15
- } from "./index-w9hxzcz4.js";
15
+ } from "./index-t0mb5a9p.js";
16
16
  import {
17
17
  observeStoreHealth
18
- } from "./index-zzvxj02e.js";
18
+ } from "./index-fr6x6vn2.js";
19
19
  import {
20
20
  withEvidenceLock
21
- } from "./index-xf69xty9.js";
21
+ } from "./index-e1zrgvqg.js";
22
22
  import {
23
23
  telemetry
24
24
  } from "./index-x1gyqgze.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./index-mc72pk74.js";
30
30
  import {
31
31
  atomicWriteSwarmFileSync
32
- } from "./index-k53a69vb.js";
32
+ } from "./index-2t4zv1ag.js";
33
33
  import {
34
34
  exports_external,
35
35
  init_zod
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  atomicWriteFile,
12
12
  withEvidenceLock
13
- } from "./index-xf69xty9.js";
13
+ } from "./index-e1zrgvqg.js";
14
14
  import {
15
15
  assertProjectRoot
16
16
  } from "./index-t7hmqgjy.js";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-skw3bgg1.js";
5
+ } from "./index-q858w0wz.js";
6
6
  import {
7
7
  validateSwarmPath
8
- } from "./index-wy3zpwjy.js";
8
+ } from "./index-98a0rxby.js";
9
9
  import {
10
10
  bunSpawn,
11
11
  classifySpawnFailure
@@ -14,7 +14,7 @@ import {
14
14
  atomicWriteFile,
15
15
  taskEvidencePath,
16
16
  withTaskEvidenceLock
17
- } from "./index-xf69xty9.js";
17
+ } from "./index-e1zrgvqg.js";
18
18
  import {
19
19
  assertProjectRoot
20
20
  } from "./index-t7hmqgjy.js";
@@ -1827,6 +1827,7 @@ var TaskWorkflowMetadataSchema = exports_external.object({
1827
1827
  updatedAt: exports_external.string(),
1828
1828
  forcedCompletion: exports_external.boolean().optional(),
1829
1829
  supervisedRecovery: exports_external.boolean().optional(),
1830
+ settlementRecovery: exports_external.boolean().optional(),
1830
1831
  noMutationSettlement: exports_external.object({
1831
1832
  generation: exports_external.literal(0),
1832
1833
  transitionId: exports_external.string().min(1).max(512),
@@ -2003,7 +2004,7 @@ function isReadOnlyNoMutationEligible(evidence, options) {
2003
2004
  return deriveApplicableGateSet(evidence, options).readOnlyNoMutation;
2004
2005
  }
2005
2006
  function reduceTaskWorkflowSnapshot(current, event, context) {
2006
- if ((current.state === "complete" || current.state === "blocked" || current.state === "closed") && event.type !== "repair_idle" && !(current.state === "complete" && event.type === "task_completed" || current.state === "blocked" && event.type === "task_blocked" || current.state === "blocked" && event.type === "task_closed")) {
2007
+ if ((current.state === "complete" || current.state === "blocked" || current.state === "closed") && event.type !== "repair_idle" && !(current.state === "complete" && event.type === "task_completed" || current.state === "blocked" && event.type === "task_blocked" || current.state === "blocked" && event.type === "task_closed" || current.state === "blocked" && event.type === "stage_a_passed" && event.settlementRecovery === true)) {
2007
2008
  throw new Error(`TASK_WORKFLOW_TERMINAL: cannot apply ${event.type} from ${current.state}`);
2008
2009
  }
2009
2010
  const outcome = getEventOutcome(event);
@@ -2019,6 +2020,7 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2019
2020
  updatedAt: context.nowIso,
2020
2021
  ...current.forcedCompletion === true ? { forcedCompletion: true } : {},
2021
2022
  ...current.supervisedRecovery === true ? { supervisedRecovery: true } : {},
2023
+ ...current.settlementRecovery === true ? { settlementRecovery: true } : {},
2022
2024
  ...current.noMutationSettlement ? { noMutationSettlement: current.noMutationSettlement } : {}
2023
2025
  };
2024
2026
  switch (event.type) {
@@ -2063,23 +2065,26 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2063
2065
  retryCount: Math.min(current.retryCount + 1, 3),
2064
2066
  retryHistory: [...current.retryHistory, outcome].slice(-3),
2065
2067
  retryEpoch: current.retryEpoch || current.generation + 1,
2066
- supervisedRecovery: undefined
2068
+ supervisedRecovery: undefined,
2069
+ settlementRecovery: undefined
2067
2070
  };
2068
2071
  }
2069
2072
  return {
2070
2073
  ...withoutSettlement,
2071
2074
  generation: current.generation + 1,
2072
2075
  state: "coder_delegated",
2073
- supervisedRecovery: undefined
2076
+ supervisedRecovery: undefined,
2077
+ settlementRecovery: undefined
2074
2078
  };
2075
2079
  }
2076
2080
  case "stage_a_passed":
2077
- if (current.state !== "coder_delegated" && current.state !== "pre_check_passed" && !(current.state === "rework_required" && event.supervisedRecovery === true)) {
2081
+ if (current.state !== "coder_delegated" && current.state !== "pre_check_passed" && !(current.state === "rework_required" && event.supervisedRecovery === true) && !(event.settlementRecovery === true && (current.state === "idle" || current.state === "blocked"))) {
2078
2082
  throw new Error(`TASK_WORKFLOW_CODER_MUTATION_REQUIRED: cannot pass Stage A from ${current.state}`);
2079
2083
  }
2080
2084
  return {
2081
2085
  ...base,
2082
2086
  ...event.supervisedRecovery === true ? { supervisedRecovery: true } : {},
2087
+ ...event.settlementRecovery === true ? { settlementRecovery: true } : {},
2083
2088
  state: "pre_check_passed"
2084
2089
  };
2085
2090
  case "stage_a_failed":
@@ -2140,6 +2145,7 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2140
2145
  const {
2141
2146
  forcedCompletion: _cleared,
2142
2147
  supervisedRecovery: _clearedMarker,
2148
+ settlementRecovery: _clearedSettlementMarker,
2143
2149
  noMutationSettlement: _clearedSettlement,
2144
2150
  ...withoutForced
2145
2151
  } = base;
@@ -2305,16 +2311,30 @@ function updateEvidenceForTransition(existing, event) {
2305
2311
  };
2306
2312
  }
2307
2313
  async function transitionTaskWorkflowEvidence(directory, taskId, event) {
2314
+ const { evidence } = await transitionTaskWorkflowEvidenceWithStatus(directory, taskId, event);
2315
+ return evidence;
2316
+ }
2317
+ async function transitionTaskWorkflowEvidenceWithStatus(directory, taskId, event) {
2308
2318
  assertValidTaskId(taskId);
2309
2319
  let updatedEvidence = null;
2320
+ let duplicated = false;
2310
2321
  await withTaskEvidenceTransaction(directory, taskId, event.type, async (transaction) => {
2322
+ if (transaction.transitionWithStatus) {
2323
+ const result = await transaction.transitionWithStatus(event);
2324
+ updatedEvidence = result.evidence;
2325
+ duplicated = result.duplicated;
2326
+ return;
2327
+ }
2311
2328
  updatedEvidence = await transaction.transition(event);
2312
2329
  });
2313
- return updatedEvidence ?? {
2314
- taskId,
2315
- required_gates: [],
2316
- gates: {},
2317
- workflow: createDefaultWorkflowMetadata(new Date().toISOString())
2330
+ return {
2331
+ evidence: updatedEvidence ?? {
2332
+ taskId,
2333
+ required_gates: [],
2334
+ gates: {},
2335
+ workflow: createDefaultWorkflowMetadata(new Date().toISOString())
2336
+ },
2337
+ duplicated
2318
2338
  };
2319
2339
  }
2320
2340
  async function withTaskEvidenceTransaction(directory, taskId, agent, callback) {
@@ -2341,16 +2361,23 @@ async function withTaskEvidenceTransaction(directory, taskId, agent, callback) {
2341
2361
  current = validated;
2342
2362
  return validated;
2343
2363
  };
2364
+ const transitionWithStatusImpl = async (event) => {
2365
+ const boundEvent = bindTrustedNoMutationSettlement(directory, taskId, event);
2366
+ assertTaskEvidenceWriteAllowed(directory, taskId, boundEvent);
2367
+ const nextEvidence = updateEvidenceForTransition(current, boundEvent);
2368
+ const duplicated = nextEvidence === current;
2369
+ nextEvidence.taskId = taskId;
2370
+ const evidence = await persist(nextEvidence, boundEvent);
2371
+ return { evidence, duplicated };
2372
+ };
2344
2373
  return callback({
2345
2374
  taskId,
2346
2375
  read: () => current,
2347
2376
  transition: async (event) => {
2348
- const boundEvent = bindTrustedNoMutationSettlement(directory, taskId, event);
2349
- assertTaskEvidenceWriteAllowed(directory, taskId, boundEvent);
2350
- const nextEvidence = updateEvidenceForTransition(current, boundEvent);
2351
- nextEvidence.taskId = taskId;
2352
- return persist(nextEvidence, boundEvent);
2353
- }
2377
+ const { evidence } = await transitionWithStatusImpl(event);
2378
+ return evidence;
2379
+ },
2380
+ transitionWithStatus: transitionWithStatusImpl
2354
2381
  });
2355
2382
  });
2356
2383
  }
@@ -2463,4 +2490,4 @@ function compareTaskWorkflowStateRank(left, right) {
2463
2490
  return WORKFLOW_STATE_RANK[left] - WORKFLOW_STATE_RANK[right];
2464
2491
  }
2465
2492
 
2466
- export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords, GitBinaryMissingError, GitSpawnCwdError, isGitBinaryMissing, isSpawnCwdMissing, isSpawnCwdUnreadable, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
2493
+ export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords, GitBinaryMissingError, GitSpawnCwdError, isGitBinaryMissing, isSpawnCwdMissing, isSpawnCwdUnreadable, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, transitionTaskWorkflowEvidenceWithStatus, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
@@ -246,9 +246,6 @@ var SWARM_TEMP_GRAMMARS = [
246
246
  "src/knowledge/identity.ts:230",
247
247
  "src/evidence/phase-participation.ts (pre-#2035; migrated-to=src/evidence/phase-participation.ts:atomicWriteBytes)",
248
248
  "src/turbo/lean/integration.ts:428",
249
- "src/tools/record-branch-freshness.ts:90",
250
- "src/tools/record-trace-validation.ts:134",
251
- "src/tools/record-merge-approval.ts:87",
252
249
  "src/turbo/lean/reviewer.ts:403",
253
250
  "src/plan/ledger.ts:1471",
254
251
  "src/services/synonym-map.ts:389",
@@ -401,10 +398,6 @@ var SWARM_TEMP_GRAMMARS = [
401
398
  "src/tools/write-drift-evidence.ts:275",
402
399
  "src/tools/write-mutation-evidence.ts:169",
403
400
  "src/tools/write-hallucination-evidence.ts:121",
404
- "src/tools/record-implementation-review.ts:87",
405
- "src/tools/record-recurrence-sweep.ts:140",
406
- "src/tools/record-issue-reproduction.ts:85",
407
- "src/tools/record-issue-publication.ts:74",
408
401
  "src/tools/write-final-council-evidence.ts:403"
409
402
  ],
410
403
  note: "constant-name temps: no per-invocation token \u2014 reported when stale, never auto-quarantined (may be an in-flight writer of any process)"
@@ -518,13 +511,13 @@ var WRITER_CLASSIFICATION = Object.freeze({
518
511
  "src/turbo/lean/state.ts": "registered-bespoke",
519
512
  "src/tools/apply-patch.ts": "external",
520
513
  "src/tools/checkpoint.ts": "registered-bespoke",
521
- "src/tools/record-implementation-review.ts": "registered-bespoke",
522
- "src/tools/record-issue-publication.ts": "registered-bespoke",
523
- "src/tools/record-issue-reproduction.ts": "registered-bespoke",
524
- "src/tools/record-recurrence-sweep.ts": "registered-bespoke",
525
- "src/tools/record-branch-freshness.ts": "registered-bespoke",
526
- "src/tools/record-trace-validation.ts": "registered-bespoke",
527
- "src/tools/record-merge-approval.ts": "registered-bespoke",
514
+ "src/tools/record-implementation-review.ts": "migrated",
515
+ "src/tools/record-issue-publication.ts": "migrated",
516
+ "src/tools/record-issue-reproduction.ts": "migrated",
517
+ "src/tools/record-recurrence-sweep.ts": "migrated",
518
+ "src/tools/record-branch-freshness.ts": "migrated",
519
+ "src/tools/record-trace-validation.ts": "migrated",
520
+ "src/tools/record-merge-approval.ts": "migrated",
528
521
  "src/tools/repo-graph/freshness.ts": "registered-bespoke",
529
522
  "src/tools/repo-graph/storage.ts": "registered-bespoke",
530
523
  "src/tools/sast-baseline.ts": "registered-bespoke",
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  captureWorkspaceSnapshotAsync,
4
4
  changedFilesSinceSnapshotAsync
5
- } from "./index-vyjped9g.js";
5
+ } from "./index-b1v0zxnh.js";
6
6
  import {
7
7
  removeWorktreeProvisioningOwner
8
- } from "./index-3n5zsp31.js";
8
+ } from "./index-7xv2hvr6.js";
9
9
  import {
10
10
  SOURCE_WORKTREE_GONE_STAGE,
11
11
  ensureTaskGateRequirementsReceiptForSettledTransition,
@@ -14,13 +14,13 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-7136wpb2.js";
17
+ } from "./index-239r2znx.js";
18
18
  import {
19
19
  validateSwarmPath
20
- } from "./index-wy3zpwjy.js";
20
+ } from "./index-98a0rxby.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-jvk95e6y.js";
23
+ } from "./index-s95ghsy1.js";
24
24
  import {
25
25
  canonicalRootKeyFresh
26
26
  } from "./index-mc72pk74.js";
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
512
512
  awaitingMergeByCallID,
513
513
  cleanupStandardWorktreeForCallId,
514
514
  standardWorktreeByCallID
515
- } = await import("./worktree-isolation-vz6et0s2.js");
515
+ } = await import("./worktree-isolation-505j9dhm.js");
516
516
  standardWorktreeByCallID.delete(descriptor.callID);
517
517
  if (hasResidue)
518
518
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
648
648
  awaitingMergeByCallID,
649
649
  finishStandardWorktreeDispatch,
650
650
  standardWorktreeByCallID
651
- } = await import("./worktree-isolation-vz6et0s2.js");
651
+ } = await import("./worktree-isolation-505j9dhm.js");
652
652
  const descriptor = wal.worktree;
653
653
  const reconstructedDispatch = {
654
654
  callID: descriptor.callID,
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-475bkab8.js";
14
+ } from "./index-g2r6t7by.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-xf69xty9.js";
17
+ } from "./index-e1zrgvqg.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-k53a69vb.js";
23
+ } from "./index-2t4zv1ag.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-f4wgd8n2.js");
742
+ } = await import("./knowledge-events-4qewgabr.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-nakzbx9d.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-wv7r4x4q.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-x9g76cgh.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-q5xjg4ww.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-b5xcv0ec.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-0nzrz0a7.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-d4rhnvtf.js";
5
+ } from "./index-cq0ft5wb.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-g1aa3sdm.js";
8
+ } from "./index-zce97jmt.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-wzec3c4g.js";
12
+ } from "./index-ezagem2g.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-3w3cssas.js";
6
+ } from "./index-6grdzhtz.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-y1xtkdys.js";
14
+ } from "./index-5rpg65jz.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-nakzbx9d.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-x9g76cgh.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-wv7r4x4q.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-b5xcv0ec.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-q5xjg4ww.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-0nzrz0a7.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {