opencode-swarm 7.188.7 → 7.188.9

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 (81) 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/{auto-checkpoint-1z9d2jrk.js → auto-checkpoint-8hn7sczv.js} +4 -4
  4. package/dist/cli/{checkpoint-f8165pv4.js → checkpoint-zagm80g6.js} +8 -8
  5. package/dist/cli/{coder-settlement-gaby6spt.js → coder-settlement-ea9wk0fa.js} +3 -3
  6. package/dist/cli/{config-doctor-4wgw6nak.js → config-doctor-482f83pc.js} +7 -7
  7. package/dist/cli/{core-y89texpp.js → core-jev9px23.js} +1 -1
  8. package/dist/cli/{curator-drift-rpwrx355.js → curator-drift-tzr8cq9d.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-1qbcj7vs.js → curator-llm-factory-vwxengt1.js} +26 -26
  10. package/dist/cli/{curator-tkz65fvw.js → curator-sw5w1yxn.js} +26 -26
  11. package/dist/cli/{dispatch-qvcztbpf.js → dispatch-h8m1jntz.js} +47 -220
  12. package/dist/cli/{doctor-knowledge-receipt-phase-id-11q7en6t.js → doctor-knowledge-receipt-phase-id-78hqh9ds.js} +4 -4
  13. package/dist/cli/{evidence-summary-service-hn7vdm45.js → evidence-summary-service-dpx7844s.js} +9 -9
  14. package/dist/cli/{gate-evidence-sxh3r64f.js → gate-evidence-v5fbpnfe.js} +2 -2
  15. package/dist/cli/{guardrail-explain-e0wbeyk1.js → guardrail-explain-020gkz5c.js} +27 -27
  16. package/dist/cli/{guardrail-log-gzrj46h0.js → guardrail-log-z14b98cn.js} +3 -3
  17. package/dist/cli/{guardrail-reset-7z62s1j5.js → guardrail-reset-cg6kfk8r.js} +26 -26
  18. package/dist/cli/{hive-promoter-88d95wk8.js → hive-promoter-bse7dh34.js} +26 -26
  19. package/dist/cli/{index-7eajwwfg.js → index-0dp2ak7d.js} +1 -1
  20. package/dist/cli/{index-snwj9ptc.js → index-0e49htcs.js} +1 -1
  21. package/dist/cli/{index-61kszszd.js → index-0whh6em0.js} +2 -2
  22. package/dist/cli/{index-7k9hdn0b.js → index-2mmbzyqb.js} +1 -1
  23. package/dist/cli/{index-y3sk68m5.js → index-4xc838p0.js} +1 -1
  24. package/dist/cli/{index-5102w44y.js → index-64e9z08z.js} +2 -2
  25. package/dist/cli/{index-0j5ggeem.js → index-6nx6qf7v.js} +1 -1
  26. package/dist/cli/{index-2wctq2hn.js → index-7jtxt3qp.js} +1 -1
  27. package/dist/cli/{index-m9g7s9ee.js → index-804rs273.js} +1 -1
  28. package/dist/cli/{index-c016phsk.js → index-akkskstq.js} +4 -4
  29. package/dist/cli/{index-yj1cwps4.js → index-b2g020d7.js} +1 -1
  30. package/dist/cli/{index-xj3k6x1h.js → index-b913b1yc.js} +1 -1
  31. package/dist/cli/{index-c937rpbm.js → index-byfk6w9a.js} +3 -3
  32. package/dist/cli/{index-ytms8x1h.js → index-bzeegaem.js} +2 -2
  33. package/dist/cli/{index-vx8a8w3b.js → index-c0tjwb5k.js} +496 -201
  34. package/dist/cli/{index-kap459mr.js → index-cxybg712.js} +2 -2
  35. package/dist/cli/{index-03ad14qc.js → index-d1z2yrwq.js} +2 -2
  36. package/dist/cli/{index-ffmw6af9.js → index-ddgmj923.js} +26 -26
  37. package/dist/cli/{index-g39cmzpj.js → index-dhkgby53.js} +2 -2
  38. package/dist/cli/{index-eh0sg1pz.js → index-g0we5tpv.js} +3 -3
  39. package/dist/cli/{index-ghjg1rxe.js → index-gd602ztc.js} +1 -1
  40. package/dist/cli/{index-9tes309n.js → index-hjyakvcq.js} +1 -1
  41. package/dist/cli/{index-rw0c6qtt.js → index-kjb143pz.js} +3 -3
  42. package/dist/cli/{index-a4s5yrdd.js → index-ng5n8tp0.js} +3 -3
  43. package/dist/cli/{index-2vtrjm19.js → index-peyrzden.js} +28 -28
  44. package/dist/cli/{index-7zyktm9f.js → index-ps6fyxfc.js} +5 -5
  45. package/dist/cli/{index-xsdphmet.js → index-q6y176gs.js} +6 -6
  46. package/dist/cli/{index-pnfd3s7s.js → index-qdp9ny78.js} +1 -1
  47. package/dist/cli/{index-emh69vk9.js → index-sndyex1t.js} +304 -166
  48. package/dist/cli/{index-8sqyx5rh.js → index-t6tew3pf.js} +1 -1
  49. package/dist/cli/{index-y8z9x87e.js → index-v71w06rr.js} +1 -1
  50. package/dist/cli/index.js +27 -27
  51. package/dist/cli/{knowledge-escalator-ejfb2e7c.js → knowledge-escalator-wah5yybk.js} +7 -7
  52. package/dist/cli/{knowledge-events-3fzfehwy.js → knowledge-events-akz8013r.js} +5 -5
  53. package/dist/cli/{knowledge-store-swxk4tr6.js → knowledge-store-hy12373e.js} +1 -1
  54. package/dist/cli/{knowledge-validator-0a1at9gm.js → knowledge-validator-yrqkdt1w.js} +2 -2
  55. package/dist/cli/{mcp-0ah7s1j0.js → mcp-0srnsd05.js} +1 -1
  56. package/dist/cli/{model-preflight-nfvapzyj.js → model-preflight-m3v8hn9k.js} +26 -26
  57. package/dist/cli/{pending-delegations-hynywgkj.js → pending-delegations-40txwk2h.js} +2 -2
  58. package/dist/cli/{pr-subscriptions-k86p5qcn.js → pr-subscriptions-w6n5s9c7.js} +1 -1
  59. package/dist/cli/{pr-workflow-gate-3ett6hjh.js → pr-workflow-gate-mx9t1p5j.js} +26 -26
  60. package/dist/cli/{scan-cursor-9961dhv1.js → scan-cursor-phbwfaya.js} +2 -2
  61. package/dist/cli/{schema-s5zbnzmv.js → schema-t1xwd728.js} +1 -1
  62. package/dist/cli/{scope-persistence-2w562h83.js → scope-persistence-m6qrwt3d.js} +5 -5
  63. package/dist/cli/{server-vrk0k61v.js → server-7pt2zhnc.js} +26 -26
  64. package/dist/cli/{skill-generator-bfcjzp20.js → skill-generator-pnv8efrw.js} +8 -8
  65. package/dist/cli/{snapshot-coordination-init-8ykpp5m6.js → snapshot-coordination-init-514wtctt.js} +26 -26
  66. package/dist/cli/{speckit-checkoff-3x52vw64.js → speckit-checkoff-beh1nw7v.js} +3 -3
  67. package/dist/cli/{worktree-collision-ownership-kjw1pqfc.js → worktree-collision-ownership-f5wca0gg.js} +2 -2
  68. package/dist/cli/{worktree-isolation-xdgm4ekx.js → worktree-isolation-bd6c5x8h.js} +26 -26
  69. package/dist/commands/recover.d.ts +1 -1
  70. package/dist/commands/registry.d.ts +1 -1
  71. package/dist/hooks/knowledge-receipt-ledger.d.ts +23 -0
  72. package/dist/hooks/knowledge-receipt-validator.d.ts +10 -0
  73. package/dist/index.js +213 -213
  74. package/dist/lang/backends/java.d.ts +39 -0
  75. package/dist/lang/default-backend.d.ts +15 -0
  76. package/dist/state.d.ts +48 -0
  77. package/dist/tools/test-runner.d.ts +31 -1
  78. package/dist/utils/windows-batch.d.ts +53 -0
  79. package/dist/workflow/session-view.d.ts +47 -0
  80. package/dist/workflow/stage-a-repair.d.ts +1 -0
  81. package/package.json +1 -1
@@ -33,21 +33,21 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-c937rpbm.js";
36
+ } from "./index-byfk6w9a.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-kap459mr.js";
39
- import"./index-61kszszd.js";
38
+ import"./index-cxybg712.js";
39
+ import"./index-0whh6em0.js";
40
40
  import"./index-m9zzj4ee.js";
41
41
  import"./index-7hr5m7yp.js";
42
42
  import"./index-2s7dvzff.js";
43
- import"./index-m9g7s9ee.js";
43
+ import"./index-804rs273.js";
44
44
  import"./index-q9kefh33.js";
45
45
  import"./index-rtry5xyf.js";
46
- import"./index-5102w44y.js";
46
+ import"./index-64e9z08z.js";
47
47
  import"./index-kbkk7vnh.js";
48
48
  import"./index-0725jpp7.js";
49
49
  import"./index-1xa8wq76.js";
50
- import"./index-c016phsk.js";
50
+ import"./index-akkskstq.js";
51
51
  import"./index-vzm6zre7.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-8q8783g0.js";
@@ -60,9 +60,9 @@ import"./index-ejhxgyvm.js";
60
60
  import"./index-7g4c7s5r.js";
61
61
  import"./index-p2tqzwh6.js";
62
62
  import"./index-gx2vp8gx.js";
63
- import"./index-9tes309n.js";
63
+ import"./index-hjyakvcq.js";
64
64
  import"./index-zxdawwc7.js";
65
- import"./index-ghjg1rxe.js";
65
+ import"./index-gd602ztc.js";
66
66
  import"./index-zfbxfm2m.js";
67
67
  import"./index-bk5tah7q.js";
68
68
  import"./index-gknz3bv1.js";
@@ -8,50 +8,50 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-emh69vk9.js";
12
- import"./index-7k9hdn0b.js";
13
- import"./index-g39cmzpj.js";
14
- import"./index-y8z9x87e.js";
15
- import"./index-vx8a8w3b.js";
11
+ } from "./index-sndyex1t.js";
12
+ import"./index-2mmbzyqb.js";
13
+ import"./index-dhkgby53.js";
14
+ import"./index-v71w06rr.js";
15
+ import"./index-c0tjwb5k.js";
16
16
  import"./index-k8sarme1.js";
17
17
  import"./index-8xabhfwr.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-snwj9ptc.js";
19
+ import"./index-0e49htcs.js";
20
20
  import"./index-rdec0y3z.js";
21
- import"./index-pnfd3s7s.js";
22
- import"./index-rw0c6qtt.js";
23
- import"./index-c937rpbm.js";
24
- import"./index-xsdphmet.js";
21
+ import"./index-qdp9ny78.js";
22
+ import"./index-kjb143pz.js";
23
+ import"./index-byfk6w9a.js";
24
+ import"./index-q6y176gs.js";
25
25
  import"./index-kaqdzhj3.js";
26
26
  import"./index-9czp2dcg.js";
27
27
  import"./index-cjapb4hy.js";
28
28
  import"./index-f6exny9m.js";
29
29
  import"./index-pt7h91zc.js";
30
30
  import"./index-q7sjgr1y.js";
31
- import"./index-a4s5yrdd.js";
32
- import"./index-7zyktm9f.js";
31
+ import"./index-ng5n8tp0.js";
32
+ import"./index-ps6fyxfc.js";
33
33
  import"./index-6b295cas.js";
34
34
  import"./index-9nyqt3kb.js";
35
- import"./index-2wctq2hn.js";
35
+ import"./index-7jtxt3qp.js";
36
36
  import"./index-zsrtt42s.js";
37
- import"./index-yj1cwps4.js";
38
- import"./index-8sqyx5rh.js";
39
- import"./index-xj3k6x1h.js";
37
+ import"./index-b2g020d7.js";
38
+ import"./index-t6tew3pf.js";
39
+ import"./index-b913b1yc.js";
40
40
  import"./index-g4fs6z4e.js";
41
- import"./index-7eajwwfg.js";
42
- import"./index-kap459mr.js";
43
- import"./index-61kszszd.js";
41
+ import"./index-0dp2ak7d.js";
42
+ import"./index-cxybg712.js";
43
+ import"./index-0whh6em0.js";
44
44
  import"./index-m9zzj4ee.js";
45
45
  import"./index-7hr5m7yp.js";
46
46
  import"./index-2s7dvzff.js";
47
- import"./index-m9g7s9ee.js";
47
+ import"./index-804rs273.js";
48
48
  import"./index-q9kefh33.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-5102w44y.js";
50
+ import"./index-64e9z08z.js";
51
51
  import"./index-kbkk7vnh.js";
52
52
  import"./index-0725jpp7.js";
53
- import"./index-y3sk68m5.js";
54
- import"./index-ytms8x1h.js";
53
+ import"./index-4xc838p0.js";
54
+ import"./index-bzeegaem.js";
55
55
  import"./index-wrdktgpy.js";
56
56
  import"./index-x1eh2636.js";
57
57
  import"./index-ntda6tje.js";
@@ -60,7 +60,7 @@ import"./index-ry16d01s.js";
60
60
  import"./index-rdm3px0g.js";
61
61
  import"./index-7pmbnjvj.js";
62
62
  import"./index-1xa8wq76.js";
63
- import"./index-c016phsk.js";
63
+ import"./index-akkskstq.js";
64
64
  import"./index-vzm6zre7.js";
65
65
  import"./index-ae75rja9.js";
66
66
  import"./index-8q8783g0.js";
@@ -73,9 +73,9 @@ import"./index-ejhxgyvm.js";
73
73
  import"./index-7g4c7s5r.js";
74
74
  import"./index-p2tqzwh6.js";
75
75
  import"./index-gx2vp8gx.js";
76
- import"./index-9tes309n.js";
76
+ import"./index-hjyakvcq.js";
77
77
  import"./index-zxdawwc7.js";
78
- import"./index-ghjg1rxe.js";
78
+ import"./index-gd602ztc.js";
79
79
  import"./index-zfbxfm2m.js";
80
80
  import"./index-bk5tah7q.js";
81
81
  import"./index-gknz3bv1.js";
@@ -7,13 +7,13 @@ import {
7
7
  parseSpeckitTasksContent,
8
8
  propagateSpeckitCheckoff,
9
9
  writeSpeckitCheckoffLedger
10
- } from "./index-yj1cwps4.js";
10
+ } from "./index-b2g020d7.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
13
  import"./index-p2tqzwh6.js";
14
- import"./index-9tes309n.js";
14
+ import"./index-hjyakvcq.js";
15
15
  import"./index-zxdawwc7.js";
16
- import"./index-ghjg1rxe.js";
16
+ import"./index-gd602ztc.js";
17
17
  import"./index-zfbxfm2m.js";
18
18
  import"./index-bk5tah7q.js";
19
19
  import"./index-gknz3bv1.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  scanDelegationFallbacksForRecovery,
15
15
  scanDelegationsForRecovery
16
- } from "./index-7eajwwfg.js";
16
+ } from "./index-0dp2ak7d.js";
17
17
  import"./index-7hr5m7yp.js";
18
18
  import"./index-2s7dvzff.js";
19
19
  import"./index-x1eh2636.js";
@@ -23,7 +23,7 @@ import"./index-ry16d01s.js";
23
23
  import"./index-rdm3px0g.js";
24
24
  import"./index-7pmbnjvj.js";
25
25
  import"./index-1xa8wq76.js";
26
- import"./index-c016phsk.js";
26
+ import"./index-akkskstq.js";
27
27
  import"./index-vzm6zre7.js";
28
28
  import"./index-ae75rja9.js";
29
29
  import"./index-8q8783g0.js";
@@ -21,52 +21,52 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-emh69vk9.js";
25
- import"./index-7k9hdn0b.js";
26
- import"./index-g39cmzpj.js";
27
- import"./index-y8z9x87e.js";
28
- import"./index-vx8a8w3b.js";
24
+ } from "./index-sndyex1t.js";
25
+ import"./index-2mmbzyqb.js";
26
+ import"./index-dhkgby53.js";
27
+ import"./index-v71w06rr.js";
28
+ import"./index-c0tjwb5k.js";
29
29
  import"./index-k8sarme1.js";
30
30
  import"./index-8xabhfwr.js";
31
31
  import"./index-txdagbh7.js";
32
- import"./index-snwj9ptc.js";
32
+ import"./index-0e49htcs.js";
33
33
  import"./index-rdec0y3z.js";
34
- import"./index-pnfd3s7s.js";
35
- import"./index-rw0c6qtt.js";
36
- import"./index-c937rpbm.js";
37
- import"./index-xsdphmet.js";
34
+ import"./index-qdp9ny78.js";
35
+ import"./index-kjb143pz.js";
36
+ import"./index-byfk6w9a.js";
37
+ import"./index-q6y176gs.js";
38
38
  import"./index-kaqdzhj3.js";
39
39
  import"./index-9czp2dcg.js";
40
40
  import"./index-cjapb4hy.js";
41
41
  import"./index-f6exny9m.js";
42
42
  import"./index-pt7h91zc.js";
43
43
  import"./index-q7sjgr1y.js";
44
- import"./index-a4s5yrdd.js";
45
- import"./index-7zyktm9f.js";
44
+ import"./index-ng5n8tp0.js";
45
+ import"./index-ps6fyxfc.js";
46
46
  import"./index-6b295cas.js";
47
47
  import"./index-9nyqt3kb.js";
48
- import"./index-2wctq2hn.js";
48
+ import"./index-7jtxt3qp.js";
49
49
  import"./index-zsrtt42s.js";
50
- import"./index-yj1cwps4.js";
51
- import"./index-8sqyx5rh.js";
52
- import"./index-xj3k6x1h.js";
50
+ import"./index-b2g020d7.js";
51
+ import"./index-t6tew3pf.js";
52
+ import"./index-b913b1yc.js";
53
53
  import"./index-g4fs6z4e.js";
54
- import"./index-7eajwwfg.js";
55
- import"./index-kap459mr.js";
56
- import"./index-61kszszd.js";
54
+ import"./index-0dp2ak7d.js";
55
+ import"./index-cxybg712.js";
56
+ import"./index-0whh6em0.js";
57
57
  import"./index-m9zzj4ee.js";
58
58
  import"./index-7hr5m7yp.js";
59
59
  import"./index-2s7dvzff.js";
60
- import"./index-m9g7s9ee.js";
60
+ import"./index-804rs273.js";
61
61
  import"./index-q9kefh33.js";
62
62
  import"./index-rtry5xyf.js";
63
63
  import {
64
64
  resolveWorktreeIsolationConfig
65
- } from "./index-5102w44y.js";
65
+ } from "./index-64e9z08z.js";
66
66
  import"./index-kbkk7vnh.js";
67
67
  import"./index-0725jpp7.js";
68
- import"./index-y3sk68m5.js";
69
- import"./index-ytms8x1h.js";
68
+ import"./index-4xc838p0.js";
69
+ import"./index-bzeegaem.js";
70
70
  import"./index-wrdktgpy.js";
71
71
  import"./index-x1eh2636.js";
72
72
  import"./index-ntda6tje.js";
@@ -75,7 +75,7 @@ import"./index-ry16d01s.js";
75
75
  import"./index-rdm3px0g.js";
76
76
  import"./index-7pmbnjvj.js";
77
77
  import"./index-1xa8wq76.js";
78
- import"./index-c016phsk.js";
78
+ import"./index-akkskstq.js";
79
79
  import"./index-vzm6zre7.js";
80
80
  import"./index-ae75rja9.js";
81
81
  import"./index-8q8783g0.js";
@@ -88,9 +88,9 @@ import"./index-ejhxgyvm.js";
88
88
  import"./index-7g4c7s5r.js";
89
89
  import"./index-p2tqzwh6.js";
90
90
  import"./index-gx2vp8gx.js";
91
- import"./index-9tes309n.js";
91
+ import"./index-hjyakvcq.js";
92
92
  import"./index-zxdawwc7.js";
93
- import"./index-ghjg1rxe.js";
93
+ import"./index-gd602ztc.js";
94
94
  import"./index-zfbxfm2m.js";
95
95
  import"./index-bk5tah7q.js";
96
96
  import"./index-gknz3bv1.js";
@@ -14,4 +14,4 @@
14
14
  * Human-only by policy: agents already self-heal dead-owner settlements via
15
15
  * update_task_status, and --force must stay an operator decision.
16
16
  */
17
- export declare function handleRecoverCommand(directory: string, args: string[]): Promise<string>;
17
+ export declare function handleRecoverCommand(directory: string, args: string[], sessionID?: string): Promise<string>;
@@ -1085,7 +1085,7 @@ export declare const COMMAND_REGISTRY: {
1085
1085
  readonly recover: {
1086
1086
  readonly handler: (ctx: CommandContext) => Promise<string>;
1087
1087
  readonly description: "Recover wedged coder settlements [task_id] [--force]";
1088
- readonly details: "Settles stale coder-settlement WALs in .swarm/coder-settlements/ — the CODER_DISPATCH_IN_PROGRESS wedge where a dispatch's completion never fired (issue #2268). Safe mode recovers settlements whose owner process is gone. --force also releases ownership keys held by this process: use only when no dispatch is genuinely running (a late completion then reports CODER_SETTLEMENT_IDEMPOTENCY_CONFLICT, safe to ignore). Never interrupts another live OpenCode process. Also repairs tasks wedged at coder_delegated with unattributed green pre_check evidence — the post-reset TASK_WORKFLOW_STAGE_A_REQUIRED wedge — and the settlement-wedge class (issue #2828): a task whose workflow drifted to idle or blocked while a COMMITTED accepted coder settlement and green post-settlement pre-check evidence still justify Stage A gets the missing stage_a_passed written directly, with a settlementRecovery marker and a stage_a_repair audit event in .swarm/events.jsonl; the architect-side audited escape hatch for the same receipts is the recover_stage_a_task tool. Note that --force affects only in-process settlement-WAL ownership and does not override Stage A wedge-classification refusals. Pass [task_id] to scope both phases to one task. Diagnose and repair emit per-category status explanations (missing/stale/ambiguous/corrupt/live_wedge/settlement_wedge) with shell-correct invocation guidance per host — see docs/troubleshooting/recovery-runbook.md (#2665). Human-only.";
1088
+ readonly details: "Settles stale coder-settlement WALs in .swarm/coder-settlements/ — the CODER_DISPATCH_IN_PROGRESS wedge where a dispatch's completion never fired (issue #2268). Safe mode recovers settlements whose owner process is gone. --force also releases ownership keys held by this process: use only when no dispatch is genuinely running (a late completion then reports CODER_SETTLEMENT_IDEMPOTENCY_CONFLICT, safe to ignore). Never interrupts another live OpenCode process. Also repairs tasks wedged at coder_delegated with unattributed green pre_check evidence — the post-reset TASK_WORKFLOW_STAGE_A_REQUIRED wedge — and the settlement-wedge class (issue #2828): a task whose workflow drifted to idle or blocked while a COMMITTED accepted coder settlement and green post-settlement pre-check evidence still justify Stage A gets the missing stage_a_passed written directly, with a settlementRecovery marker and a stage_a_repair audit event in .swarm/events.jsonl; the architect-side audited escape hatch for the same receipts is the recover_stage_a_task tool. Both recovery surfaces also refresh the invoking session's in-memory task workflow view, so a blocked-start wedge does not survive the recovery in the session that ran it (#3043). Note that --force affects only in-process settlement-WAL ownership and does not override Stage A wedge-classification refusals. Pass [task_id] to scope both phases to one task. Diagnose and repair emit per-category status explanations (missing/stale/ambiguous/corrupt/live_wedge/settlement_wedge) with shell-correct invocation guidance per host — see docs/troubleshooting/recovery-runbook.md (#2665). Human-only.";
1089
1089
  readonly args: "[task_id] [--force]";
1090
1090
  readonly category: "utility";
1091
1091
  readonly toolPolicy: "human-only";
@@ -252,6 +252,16 @@ export interface TerminalBatchInput {
252
252
  event_id?: string;
253
253
  }>;
254
254
  no_relevant_knowledge?: boolean;
255
+ /**
256
+ * Issue #3036: sessions authorized to file this batch beyond the filer
257
+ * itself — resolved server-side from registered dispatch lineage (the
258
+ * knowledge_receipt tool passes the filer plus its dispatch parent). A
259
+ * membership whose stamp is in this set is fileable even when it differs
260
+ * from the filer's session (a legitimately dispatched child filing the
261
+ * architect-stamped delegate_directive exposure). Unrelated to the
262
+ * `authorization` terminal-override field below.
263
+ */
264
+ authorized_filing_sessions?: string[];
255
265
  authorization?: {
256
266
  actor: 'manual-override' | 'reviewer-remediation' | 'phase-override';
257
267
  reason: string;
@@ -259,6 +269,12 @@ export interface TerminalBatchInput {
259
269
  expected_outcome?: ReceiptOutcome;
260
270
  };
261
271
  }
272
+ /**
273
+ * Issue #3036: upper bound on lineage-attested sessions accepted per terminal
274
+ * batch (applied after trim + dedupe). The only production caller passes at
275
+ * most two host-minted ids (filer + dispatch parent).
276
+ */
277
+ export declare const MAX_AUTHORIZED_FILING_SESSIONS = 8;
262
278
  export declare function validateAndCommitTerminalBatch(directory: string, input: TerminalBatchInput): Promise<ReceiptLedgerResult<{
263
279
  accepted: Array<{
264
280
  entry_id: string;
@@ -282,6 +298,13 @@ export declare function validateAndCommitTerminalBatch(directory: string, input:
282
298
  }>;
283
299
  closes_no_relevant: boolean;
284
300
  terminal_event_id?: string;
301
+ /**
302
+ * Issue #3036: entry_id → the membership's recorded session id for every
303
+ * wrong_session rejection in this batch. Out-of-band by design — the
304
+ * per-item `rejected` shape stays byte-identical for existing consumers —
305
+ * so the validator can name both sides of the mismatch and a remedy.
306
+ */
307
+ wrong_session_membership_sessions?: Record<string, string>;
285
308
  }>>;
286
309
  interface ApplicationMarkerBatchInput {
287
310
  trace_id: string;
@@ -40,6 +40,12 @@ export interface ReceiptValidationContext {
40
40
  cohort_id?: string;
41
41
  source_link_id?: string;
42
42
  grace_days?: number;
43
+ /**
44
+ * Issue #3036: additional sessions authorized to file this receipt beyond
45
+ * the filer itself, resolved server-side from registered dispatch lineage
46
+ * by the knowledge_receipt tool (the filer plus its dispatch parent).
47
+ */
48
+ authorized_filing_sessions?: string[];
43
49
  items: ReceiptItem[];
44
50
  no_relevant_knowledge: boolean;
45
51
  }
@@ -55,6 +61,8 @@ export type ReceiptValidationResult = {
55
61
  rejected_items?: Array<{
56
62
  item: ReceiptItem;
57
63
  reason: ReceiptRejectReason;
64
+ /** Issue #3036: named-mismatch + remedy text for wrong_session rejections. */
65
+ detail?: string;
58
66
  }>;
59
67
  } | {
60
68
  ok: false;
@@ -64,6 +72,8 @@ export type ReceiptValidationResult = {
64
72
  rejected_items?: Array<{
65
73
  item: ReceiptItem;
66
74
  reason: ReceiptRejectReason;
75
+ /** Issue #3036: named-mismatch + remedy text for wrong_session rejections. */
76
+ detail?: string;
67
77
  }>;
68
78
  };
69
79
  export declare const NO_TRACE_SENTINEL = "none";