opencode-swarm 7.182.0 → 7.183.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 (94) 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/background/pending-delegations.d.ts +21 -1
  4. package/dist/cli/{coder-settlement-vwwxs7t1.js → coder-settlement-rserb0hm.js} +11 -11
  5. package/dist/cli/{config-doctor-7wyqt1ke.js → config-doctor-r4fmzprn.js} +2 -2
  6. package/dist/cli/{core-739y5zsf.js → core-rzek3e2n.js} +3 -3
  7. package/dist/cli/{curation-policy-bwj3wanw.js → curation-policy-g0jjwrg5.js} +5 -5
  8. package/dist/cli/{curator-drift-mbpc200k.js → curator-drift-a0r5krfx.js} +8 -8
  9. package/dist/cli/curator-llm-factory-xp4hgd8r.js +74 -0
  10. package/dist/cli/{curator-qrcydww2.js → curator-v84tfqcr.js} +38 -38
  11. package/dist/cli/{evidence-summary-service-w6hw58bc.js → evidence-summary-service-t4csk176.js} +17 -17
  12. package/dist/cli/{gate-evidence-2dqabzxy.js → gate-evidence-3z04zprn.js} +6 -6
  13. package/dist/cli/guardrail-explain-j2y5sj4d.js +75 -0
  14. package/dist/cli/{guardrail-log-h3vxqte8.js → guardrail-log-cbzdh4qj.js} +7 -7
  15. package/dist/cli/{guardrail-reset-n1ameem0.js → guardrail-reset-5e75rz44.js} +38 -38
  16. package/dist/cli/{hive-promoter-ev201390.js → hive-promoter-f54nrhqn.js} +38 -38
  17. package/dist/cli/{index-5cvm6ykc.js → index-08x7gsnf.js} +1 -1
  18. package/dist/cli/{index-1kpa3an2.js → index-0bpr8vag.js} +2 -2
  19. package/dist/cli/{index-td54jp0w.js → index-1hnknn34.js} +3 -3
  20. package/dist/cli/{index-34k5sg2a.js → index-31e105jf.js} +1 -1
  21. package/dist/cli/{index-qgewm1x8.js → index-3qy7v4k1.js} +2 -2
  22. package/dist/cli/{index-wnkx6gs0.js → index-3rb5gs4w.js} +1 -1
  23. package/dist/cli/{index-zryhqf6h.js → index-4hnk9npg.js} +4 -4
  24. package/dist/cli/{index-0vvnwq2f.js → index-4xr4gtwd.js} +1 -1
  25. package/dist/cli/{index-s1y70y0w.js → index-5cve9g2b.js} +1 -1
  26. package/dist/cli/{index-9h1n6s76.js → index-5t08vc6m.js} +1 -1
  27. package/dist/cli/{index-fae4qp3c.js → index-6dm6ettv.js} +1 -1
  28. package/dist/cli/{index-v8ja5zcr.js → index-6h81yvyc.js} +2 -2
  29. package/dist/cli/{index-awwqf5v7.js → index-77650pyg.js} +2 -2
  30. package/dist/cli/{index-6q23tysf.js → index-80qhm8aq.js} +1 -1
  31. package/dist/cli/{index-vj5da9w4.js → index-8me6m6ew.js} +2 -2
  32. package/dist/cli/{index-8qkc4xdx.js → index-908k7jhw.js} +4 -4
  33. package/dist/cli/{index-wyvzrp4x.js → index-9f930sy8.js} +3 -3
  34. package/dist/cli/{index-fyzakptj.js → index-ak1dd17g.js} +3 -3
  35. package/dist/cli/{index-2qw3rxcq.js → index-b26hje53.js} +5 -5
  36. package/dist/cli/{index-extyzd5c.js → index-bqphhrwf.js} +6 -6
  37. package/dist/cli/{index-zqd0tnwj.js → index-bsjwchw7.js} +19 -10
  38. package/dist/cli/{index-4a9kyt9z.js → index-dg3f2sqq.js} +2 -2
  39. package/dist/cli/{index-z2m4n1sm.js → index-gaykghrm.js} +8 -8
  40. package/dist/cli/{index-d4wj3jyg.js → index-h01p5ygy.js} +7 -7
  41. package/dist/cli/{index-wbqvjdne.js → index-hb1zqz50.js} +1 -1
  42. package/dist/cli/{index-0yj2ebtj.js → index-hsvsz3mj.js} +1 -1
  43. package/dist/cli/{index-hd3kacp0.js → index-j8ty457v.js} +2 -2
  44. package/dist/cli/{index-db8tzj7b.js → index-jb7ywm4w.js} +6 -6
  45. package/dist/cli/{index-e2cdym66.js → index-jk05g11c.js} +7 -7
  46. package/dist/cli/{index-q0k4zdfg.js → index-mt0s67hg.js} +2 -2
  47. package/dist/cli/{index-yqc672pn.js → index-nazzb4em.js} +2280 -2037
  48. package/dist/cli/{index-25m6rekr.js → index-nmh0s6dg.js} +1 -1
  49. package/dist/cli/{index-x7z5fbs3.js → index-qjzbs971.js} +4 -4
  50. package/dist/cli/{index-kbxeq0r2.js → index-raws06d3.js} +3 -3
  51. package/dist/cli/{index-6qntafey.js → index-rhw6m7s9.js} +1 -1
  52. package/dist/cli/{index-mkpdcbye.js → index-tt705bap.js} +86 -48
  53. package/dist/cli/{index-ysch2gg6.js → index-w196wb3a.js} +40 -40
  54. package/dist/cli/{index-820e6w22.js → index-w81jmdkt.js} +2 -2
  55. package/dist/cli/{index-hg4gx6wa.js → index-wpn7ftw1.js} +2 -2
  56. package/dist/cli/{index-y41v2h6s.js → index-xtysafzj.js} +38 -38
  57. package/dist/cli/{index-cxxpkw6v.js → index-y5hhkx1n.js} +7 -7
  58. package/dist/cli/{index-k38nw0xx.js → index-ydefv5fn.js} +1 -1
  59. package/dist/cli/{index-q3qqyp4d.js → index-z425p51d.js} +13 -13
  60. package/dist/cli/index.js +39 -39
  61. package/dist/cli/{knowledge-escalator-1shry4k7.js → knowledge-escalator-cs7fjgy0.js} +12 -12
  62. package/dist/cli/{knowledge-events-e2hdj3kq.js → knowledge-events-262c1jg2.js} +10 -10
  63. package/dist/cli/{knowledge-link-akjk6gby.js → knowledge-link-8kcms7pj.js} +4 -4
  64. package/dist/cli/{knowledge-store-t2c8spdv.js → knowledge-store-yjrkfens.js} +5 -5
  65. package/dist/cli/{knowledge-validator-d7amfzsx.js → knowledge-validator-t98cvpt5.js} +7 -7
  66. package/dist/cli/{mcp-174sj68r.js → mcp-wj6143vj.js} +1 -1
  67. package/dist/cli/{model-preflight-6x39q1pq.js → model-preflight-tz4ar9ys.js} +38 -38
  68. package/dist/cli/{pending-delegations-n9hp95ad.js → pending-delegations-vvbkqe24.js} +11 -11
  69. package/dist/cli/{pr-subscriptions-b0pbkkpr.js → pr-subscriptions-maeppcws.js} +11 -11
  70. package/dist/cli/{pr-workflow-gate-5374j5nm.js → pr-workflow-gate-en54gabv.js} +38 -38
  71. package/dist/cli/{runner-xfagxzkx.js → runner-618229m8.js} +5 -5
  72. package/dist/cli/{scan-cursor-qqt0v8e4.js → scan-cursor-sxwh1ax8.js} +6 -6
  73. package/dist/cli/{schema-6mh6et27.js → schema-fb8vm14k.js} +1 -1
  74. package/dist/cli/{scope-persistence-astxnj1c.js → scope-persistence-sc2zhr15.js} +14 -14
  75. package/dist/cli/{server-dqq8v0bs.js → server-7ksq9wr7.js} +38 -38
  76. package/dist/cli/{skill-generator-s9y7098d.js → skill-generator-ccmq47cm.js} +14 -14
  77. package/dist/cli/{snapshot-coordination-init-gs4258xn.js → snapshot-coordination-init-h8eg88w2.js} +38 -38
  78. package/dist/cli/{speckit-checkoff-y5ynwxhq.js → speckit-checkoff-vkqn317p.js} +4 -4
  79. package/dist/cli/{telemetry-6k8t2mrw.js → telemetry-vqyy5nha.js} +1 -1
  80. package/dist/cli/{workspace-snapshot-7e9me3q7.js → workspace-snapshot-t22m6gbd.js} +3 -3
  81. package/dist/cli/{worktree-collision-ownership-hrv6e3ps.js → worktree-collision-ownership-8hr7aycc.js} +12 -12
  82. package/dist/cli/{worktree-isolation-wksm23tp.js → worktree-isolation-gwq3y9tf.js} +38 -38
  83. package/dist/commands/registry.d.ts +1 -1
  84. package/dist/commands/report.d.ts +20 -4
  85. package/dist/hooks/guardrails/stage-a-route.d.ts +16 -0
  86. package/dist/index.js +410 -409
  87. package/dist/observability/catalog.d.ts +2 -2
  88. package/dist/observability/envelope.d.ts +4 -0
  89. package/dist/services/execution-attempt.d.ts +80 -0
  90. package/dist/services/task-cohort.d.ts +123 -0
  91. package/dist/telemetry.d.ts +1 -1
  92. package/package.json +1 -1
  93. package/dist/cli/curator-llm-factory-m039mxt9.js +0 -74
  94. package/dist/cli/guardrail-explain-kaebxfq3.js +0 -75
@@ -8,66 +8,66 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-yqc672pn.js";
12
- import"./index-wyvzrp4x.js";
11
+ } from "./index-nazzb4em.js";
12
+ import"./index-9f930sy8.js";
13
13
  import"./index-hamqvzqn.js";
14
- import"./index-0yj2ebtj.js";
15
- import"./index-td54jp0w.js";
16
- import"./index-34k5sg2a.js";
17
- import"./index-q3qqyp4d.js";
18
- import"./index-k38nw0xx.js";
14
+ import"./index-hsvsz3mj.js";
15
+ import"./index-1hnknn34.js";
16
+ import"./index-31e105jf.js";
17
+ import"./index-z425p51d.js";
18
+ import"./index-ydefv5fn.js";
19
19
  import"./index-txdagbh7.js";
20
- import"./index-0vvnwq2f.js";
20
+ import"./index-4xr4gtwd.js";
21
21
  import"./index-6b295cas.js";
22
- import"./index-zryhqf6h.js";
23
- import"./index-2qw3rxcq.js";
24
- import"./index-q0k4zdfg.js";
22
+ import"./index-4hnk9npg.js";
23
+ import"./index-b26hje53.js";
24
+ import"./index-mt0s67hg.js";
25
25
  import"./index-rdec0y3z.js";
26
- import"./index-d4wj3jyg.js";
26
+ import"./index-h01p5ygy.js";
27
27
  import"./index-cjapb4hy.js";
28
28
  import"./index-zsrtt42s.js";
29
- import"./index-cxxpkw6v.js";
30
- import"./index-v8ja5zcr.js";
31
- import"./index-1kpa3an2.js";
29
+ import"./index-y5hhkx1n.js";
30
+ import"./index-6h81yvyc.js";
31
+ import"./index-0bpr8vag.js";
32
32
  import"./index-pt7h91zc.js";
33
33
  import"./index-q7sjgr1y.js";
34
- import"./index-vj5da9w4.js";
35
- import"./index-8qkc4xdx.js";
36
- import"./index-kbxeq0r2.js";
37
- import"./index-zqd0tnwj.js";
38
- import"./index-z2m4n1sm.js";
39
- import"./index-25m6rekr.js";
34
+ import"./index-8me6m6ew.js";
35
+ import"./index-908k7jhw.js";
36
+ import"./index-raws06d3.js";
37
+ import"./index-bsjwchw7.js";
38
+ import"./index-gaykghrm.js";
39
+ import"./index-nmh0s6dg.js";
40
40
  import"./index-2s7dvzff.js";
41
- import"./index-x7z5fbs3.js";
42
- import"./index-9h1n6s76.js";
41
+ import"./index-qjzbs971.js";
42
+ import"./index-5t08vc6m.js";
43
43
  import"./index-rtry5xyf.js";
44
- import"./index-qgewm1x8.js";
44
+ import"./index-3qy7v4k1.js";
45
45
  import"./index-frcemc0b.js";
46
46
  import"./index-0725jpp7.js";
47
- import"./index-db8tzj7b.js";
48
- import"./index-extyzd5c.js";
49
- import"./index-hg4gx6wa.js";
50
- import"./index-820e6w22.js";
51
- import"./index-wnkx6gs0.js";
52
- import"./index-5cvm6ykc.js";
47
+ import"./index-jb7ywm4w.js";
48
+ import"./index-bqphhrwf.js";
49
+ import"./index-wpn7ftw1.js";
50
+ import"./index-w81jmdkt.js";
51
+ import"./index-3rb5gs4w.js";
52
+ import"./index-08x7gsnf.js";
53
53
  import"./index-rdm3px0g.js";
54
54
  import"./index-ry16d01s.js";
55
- import"./index-awwqf5v7.js";
56
- import"./index-e2cdym66.js";
55
+ import"./index-77650pyg.js";
56
+ import"./index-jk05g11c.js";
57
57
  import"./index-vzm6zre7.js";
58
58
  import"./index-ae75rja9.js";
59
- import"./index-wbqvjdne.js";
60
- import"./index-4a9kyt9z.js";
61
- import"./index-mkpdcbye.js";
59
+ import"./index-hb1zqz50.js";
60
+ import"./index-dg3f2sqq.js";
61
+ import"./index-tt705bap.js";
62
62
  import"./index-1xnse449.js";
63
63
  import"./index-c1ggtmpm.js";
64
64
  import"./index-ejhxgyvm.js";
65
65
  import"./index-7g4c7s5r.js";
66
- import"./index-s1y70y0w.js";
66
+ import"./index-5cve9g2b.js";
67
67
  import"./index-gx2vp8gx.js";
68
- import"./index-6q23tysf.js";
68
+ import"./index-80qhm8aq.js";
69
69
  import"./index-zxdawwc7.js";
70
- import"./index-6qntafey.js";
70
+ import"./index-rhw6m7s9.js";
71
71
  import"./index-wzec3c4g.js";
72
72
  import"./index-bk5tah7q.js";
73
73
  import"./index-gknz3bv1.js";
@@ -7,13 +7,13 @@ import {
7
7
  parseSpeckitTasksContent,
8
8
  propagateSpeckitCheckoff,
9
9
  writeSpeckitCheckoffLedger
10
- } from "./index-vj5da9w4.js";
10
+ } from "./index-8me6m6ew.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
- import"./index-s1y70y0w.js";
14
- import"./index-6q23tysf.js";
13
+ import"./index-5cve9g2b.js";
14
+ import"./index-80qhm8aq.js";
15
15
  import"./index-zxdawwc7.js";
16
- import"./index-6qntafey.js";
16
+ import"./index-rhw6m7s9.js";
17
17
  import"./index-wzec3c4g.js";
18
18
  import"./index-bk5tah7q.js";
19
19
  import"./index-gknz3bv1.js";
@@ -14,7 +14,7 @@ import {
14
14
  startHeartbeatTracking,
15
15
  stopHeartbeatTracking,
16
16
  telemetry
17
- } from "./index-mkpdcbye.js";
17
+ } from "./index-tt705bap.js";
18
18
  import"./index-1xnse449.js";
19
19
  import"./index-c1ggtmpm.js";
20
20
  import"./index-gknz3bv1.js";
@@ -45,12 +45,12 @@ import {
45
45
  shouldSkipSnapshot,
46
46
  switchPrFeedbackTrackingCandidateAsync,
47
47
  workspaceSnapshotMatches
48
- } from "./index-v8ja5zcr.js";
49
- import"./index-25m6rekr.js";
48
+ } from "./index-6h81yvyc.js";
49
+ import"./index-nmh0s6dg.js";
50
50
  import"./index-2s7dvzff.js";
51
51
  import"./index-1xnse449.js";
52
52
  import"./index-c1ggtmpm.js";
53
- import"./index-s1y70y0w.js";
53
+ import"./index-5cve9g2b.js";
54
54
  import"./index-zxdawwc7.js";
55
55
  import"./index-zpsr8rpc.js";
56
56
  import"./index-zgwm4ryv.js";
@@ -9,32 +9,32 @@ import {
9
9
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
10
10
  removeWorktreeProvisioningOwner,
11
11
  scanWorktreeProvisioningOwnersForRecovery
12
- } from "./index-1kpa3an2.js";
12
+ } from "./index-0bpr8vag.js";
13
13
  import {
14
14
  scanDelegationFallbacksForRecovery,
15
15
  scanDelegationsForRecovery
16
- } from "./index-zqd0tnwj.js";
17
- import"./index-25m6rekr.js";
16
+ } from "./index-bsjwchw7.js";
17
+ import"./index-nmh0s6dg.js";
18
18
  import"./index-2s7dvzff.js";
19
- import"./index-820e6w22.js";
20
- import"./index-wnkx6gs0.js";
21
- import"./index-5cvm6ykc.js";
19
+ import"./index-w81jmdkt.js";
20
+ import"./index-3rb5gs4w.js";
21
+ import"./index-08x7gsnf.js";
22
22
  import"./index-rdm3px0g.js";
23
23
  import"./index-ry16d01s.js";
24
- import"./index-awwqf5v7.js";
25
- import"./index-e2cdym66.js";
24
+ import"./index-77650pyg.js";
25
+ import"./index-jk05g11c.js";
26
26
  import"./index-vzm6zre7.js";
27
27
  import"./index-ae75rja9.js";
28
- import"./index-wbqvjdne.js";
29
- import"./index-4a9kyt9z.js";
30
- import"./index-mkpdcbye.js";
28
+ import"./index-hb1zqz50.js";
29
+ import"./index-dg3f2sqq.js";
30
+ import"./index-tt705bap.js";
31
31
  import {
32
32
  canonicalRootKeyFresh
33
33
  } from "./index-1xnse449.js";
34
34
  import"./index-c1ggtmpm.js";
35
35
  import"./index-ejhxgyvm.js";
36
36
  import"./index-7g4c7s5r.js";
37
- import"./index-s1y70y0w.js";
37
+ import"./index-5cve9g2b.js";
38
38
  import"./index-zxdawwc7.js";
39
39
  import"./index-bk5tah7q.js";
40
40
  import"./index-gknz3bv1.js";
@@ -21,68 +21,68 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-yqc672pn.js";
25
- import"./index-wyvzrp4x.js";
24
+ } from "./index-nazzb4em.js";
25
+ import"./index-9f930sy8.js";
26
26
  import"./index-hamqvzqn.js";
27
- import"./index-0yj2ebtj.js";
28
- import"./index-td54jp0w.js";
29
- import"./index-34k5sg2a.js";
30
- import"./index-q3qqyp4d.js";
31
- import"./index-k38nw0xx.js";
27
+ import"./index-hsvsz3mj.js";
28
+ import"./index-1hnknn34.js";
29
+ import"./index-31e105jf.js";
30
+ import"./index-z425p51d.js";
31
+ import"./index-ydefv5fn.js";
32
32
  import"./index-txdagbh7.js";
33
- import"./index-0vvnwq2f.js";
33
+ import"./index-4xr4gtwd.js";
34
34
  import"./index-6b295cas.js";
35
- import"./index-zryhqf6h.js";
36
- import"./index-2qw3rxcq.js";
37
- import"./index-q0k4zdfg.js";
35
+ import"./index-4hnk9npg.js";
36
+ import"./index-b26hje53.js";
37
+ import"./index-mt0s67hg.js";
38
38
  import"./index-rdec0y3z.js";
39
- import"./index-d4wj3jyg.js";
39
+ import"./index-h01p5ygy.js";
40
40
  import"./index-cjapb4hy.js";
41
41
  import"./index-zsrtt42s.js";
42
- import"./index-cxxpkw6v.js";
43
- import"./index-v8ja5zcr.js";
44
- import"./index-1kpa3an2.js";
42
+ import"./index-y5hhkx1n.js";
43
+ import"./index-6h81yvyc.js";
44
+ import"./index-0bpr8vag.js";
45
45
  import"./index-pt7h91zc.js";
46
46
  import"./index-q7sjgr1y.js";
47
- import"./index-vj5da9w4.js";
48
- import"./index-8qkc4xdx.js";
49
- import"./index-kbxeq0r2.js";
50
- import"./index-zqd0tnwj.js";
51
- import"./index-z2m4n1sm.js";
52
- import"./index-25m6rekr.js";
47
+ import"./index-8me6m6ew.js";
48
+ import"./index-908k7jhw.js";
49
+ import"./index-raws06d3.js";
50
+ import"./index-bsjwchw7.js";
51
+ import"./index-gaykghrm.js";
52
+ import"./index-nmh0s6dg.js";
53
53
  import"./index-2s7dvzff.js";
54
- import"./index-x7z5fbs3.js";
55
- import"./index-9h1n6s76.js";
54
+ import"./index-qjzbs971.js";
55
+ import"./index-5t08vc6m.js";
56
56
  import"./index-rtry5xyf.js";
57
57
  import {
58
58
  resolveWorktreeIsolationConfig
59
- } from "./index-qgewm1x8.js";
59
+ } from "./index-3qy7v4k1.js";
60
60
  import"./index-frcemc0b.js";
61
61
  import"./index-0725jpp7.js";
62
- import"./index-db8tzj7b.js";
63
- import"./index-extyzd5c.js";
64
- import"./index-hg4gx6wa.js";
65
- import"./index-820e6w22.js";
66
- import"./index-wnkx6gs0.js";
67
- import"./index-5cvm6ykc.js";
62
+ import"./index-jb7ywm4w.js";
63
+ import"./index-bqphhrwf.js";
64
+ import"./index-wpn7ftw1.js";
65
+ import"./index-w81jmdkt.js";
66
+ import"./index-3rb5gs4w.js";
67
+ import"./index-08x7gsnf.js";
68
68
  import"./index-rdm3px0g.js";
69
69
  import"./index-ry16d01s.js";
70
- import"./index-awwqf5v7.js";
71
- import"./index-e2cdym66.js";
70
+ import"./index-77650pyg.js";
71
+ import"./index-jk05g11c.js";
72
72
  import"./index-vzm6zre7.js";
73
73
  import"./index-ae75rja9.js";
74
- import"./index-wbqvjdne.js";
75
- import"./index-4a9kyt9z.js";
76
- import"./index-mkpdcbye.js";
74
+ import"./index-hb1zqz50.js";
75
+ import"./index-dg3f2sqq.js";
76
+ import"./index-tt705bap.js";
77
77
  import"./index-1xnse449.js";
78
78
  import"./index-c1ggtmpm.js";
79
79
  import"./index-ejhxgyvm.js";
80
80
  import"./index-7g4c7s5r.js";
81
- import"./index-s1y70y0w.js";
81
+ import"./index-5cve9g2b.js";
82
82
  import"./index-gx2vp8gx.js";
83
- import"./index-6q23tysf.js";
83
+ import"./index-80qhm8aq.js";
84
84
  import"./index-zxdawwc7.js";
85
- import"./index-6qntafey.js";
85
+ import"./index-rhw6m7s9.js";
86
86
  import"./index-wzec3c4g.js";
87
87
  import"./index-bk5tah7q.js";
88
88
  import"./index-gknz3bv1.js";
@@ -549,7 +549,7 @@ export declare const COMMAND_REGISTRY: {
549
549
  readonly handler: (ctx: CommandContext) => Promise<string>;
550
550
  readonly description: "Report swarm observability events from the SQLite query authority [--task <id>] [--session <id>] [--trace <id>] [--run <batchId>] [--since <ISO-8601>] [--json]";
551
551
  readonly args: "--task <id>, --session <id>, --trace <id>, --run <batchId>, --since <ISO-8601>, --json";
552
- readonly details: "Bounded, deterministic query over the observability events store in .swarm/swarm.db (the first run performs a bounded, idempotent legacy-import into the local sink). --run filters the lane/dispatch batch axis (workflow.batchId). Unmatched delegation begins are disclosed, never fabricated into ends. --json emits a schemaVersion-tagged block.";
552
+ readonly details: "Bounded, deterministic query over the observability events store in .swarm/swarm.db (the first run performs a bounded, idempotent legacy-import into the local sink). --run filters the lane/dispatch batch axis (workflow.batchId). Unmatched delegation begins are disclosed, never fabricated into ends. Includes a Task attempts (cohort) section (issue #2676): execution-attempt records folded through a snapshot-qualified cohort with per-class counts, known/unavailable cost split, uncertainty, and an explicit causal-rate qualification line. --json emits a schemaVersion-tagged block (schema v2 adds the taskAttempts cohort field).";
553
553
  readonly category: "diagnostics";
554
554
  readonly toolPolicy: "agent";
555
555
  };
@@ -2,7 +2,7 @@
2
2
  * `/swarm report` — bounded, deterministic observability report over the
3
3
  * SQLite-native query authority (issue #2482 / D3, absorbing #2048).
4
4
  *
5
- * - Read-only. Queries `.swarm/swarm.db` `observability_event` via the
5
+ * - Read-only over the stores it queries: queries `.swarm/swarm.db` `observability_event` via the
6
6
  * bounded store queries (`src/db/observability-event-store.ts`); lazily
7
7
  * syncs the rebuildable legacy import (`syncObservabilityImport`) FIRST so
8
8
  * the report covers the bounded `telemetry.jsonl(.1)` window too.
@@ -13,17 +13,33 @@
13
13
  * `--json` emits a versioned JSON block. Each value flag may appear at
14
14
  * most once with a non-empty value; any subset is valid.
15
15
  * - Bounded: row cap + truncated flag (`MAX_REPORT_ROWS`), ordering is
16
- * `occurred_at, rowid` (code-unit string compare — no locale collation),
17
- * so the same query window yields byte-identical output (proven by test).
16
+ * `occurred_at, rowid` (code-unit string compare — no locale collation).
17
+ * Determinism: the markdown report is byte-identical for the same query
18
+ * window (proven by test); the `--json` block additionally carries the
19
+ * cohort snapshot's wall-clock `capturedAt`, which the determinism test
20
+ * normalizes.
18
21
  * - Honest coverage: live vs imported row counts, quarantined rows (excluded
19
22
  * from the timeline), the sink's own health counters, and the delegation
20
23
  * begin/end pairing delta — unmatched begins are DISCLOSED, never
21
24
  * fabricated into ends.
25
+ * - Task-attempts cohort (issue #2676): `execution_attempt_recorded` rows are
26
+ * folded through a SNAPSHOT (denominator cannot drift with the live
27
+ * stores) with per-class counts, known/unavailable cost split, uncertainty,
28
+ * and an explicit causal-rate qualification line. The report stays
29
+ * read-only over the observability stores it queries; the snapshot
30
+ * persists its own provenance manifest under
31
+ * `.swarm/observability/cohorts/` (the report's evidentiary boundary).
22
32
  * - Fail-open: a missing/unopenable store yields an explicit empty report
23
33
  * with `coverage.unavailable`, never an error.
24
34
  */
25
35
  import { type ObservabilityEventFilter } from '../db/observability-event-store.js';
26
- export declare const REPORT_JSON_SCHEMA_VERSION = 1;
36
+ /**
37
+ * v2 (issue #2676): additive `taskAttempts` cohort section — per-class counts,
38
+ * known/unavailable cost split, uncertainty, and the qualification line, built
39
+ * from a population snapshot whose denominator cannot drift with the live
40
+ * stores.
41
+ */
42
+ export declare const REPORT_JSON_SCHEMA_VERSION = 2;
27
43
  interface ParsedReportArgs {
28
44
  filter: ObservabilityEventFilter;
29
45
  json: boolean;
@@ -1,4 +1,5 @@
1
1
  import { appendCoreEventSync } from '../../events/core-events.js';
2
+ import { type ExecutionAttemptClass } from '../../services/execution-attempt.js';
2
3
  /**
3
4
  * Stage A attribution route events (issue #2664).
4
5
  *
@@ -27,8 +28,23 @@ export interface StageAGateRouteEventInput {
27
28
  /** Attributed task, or null when no single task is attributable. */
28
29
  taskId: string | null;
29
30
  guardrailsEnabled: boolean;
31
+ /**
32
+ * The correlation's workflow generation cursor, when the caller holds one
33
+ * (the guardrails pending-gate-task map carries it). Required for the
34
+ * `late` attempt class to be recordable; absent leaves the recorder's
35
+ * fail-open refusal in force.
36
+ */
37
+ generation?: number;
30
38
  }
31
39
  declare function buildEvent(input: StageAGateRouteEventInput): Record<string, unknown>;
40
+ /**
41
+ * Route → execution-attempt class (issue #2676). Stage A route events fire at
42
+ * gate-tool-call COMPLETION (toolAfter), so `valid_pass` is the completed
43
+ * call's outcome record (`result`, success); the four refusal routes are
44
+ * `denial` (outcome unknown — the gate refused before a task outcome
45
+ * existed); `late_result` is `late`; `duplicate_result` is `duplicate`.
46
+ */
47
+ export declare function stageARouteAttemptClass(route: StageAGateRoute): ExecutionAttemptClass;
32
48
  /**
33
49
  * Record one Stage A route event. Fail-open for the hook: append failures
34
50
  * (typed CORE_EVENT_LOCKED / CORE_EVENT_LINE_TOO_LARGE) are logged warn-only