opencode-swarm 7.145.1 → 7.146.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/.opencode/skills/phase-wrap/SKILL.md +3 -2
  2. package/README.md +5 -1
  3. package/dist/cli/{config-doctor-96jmxr7s.js → config-doctor-vs6hvbew.js} +3 -3
  4. package/dist/cli/{core-w78pc1hh.js → core-jvvm935f.js} +2 -2
  5. package/dist/cli/{curation-policy-smyc2mrm.js → curation-policy-xv0j8zyt.js} +6 -6
  6. package/dist/cli/{curator-59hzdxrv.js → curator-5bxh1djq.js} +28 -28
  7. package/dist/cli/{curator-llm-factory-g794pv51.js → curator-llm-factory-pe6skby4.js} +28 -28
  8. package/dist/cli/{evidence-summary-service-41m0cna6.js → evidence-summary-service-6m9jmzk8.js} +12 -12
  9. package/dist/cli/{gate-evidence-7aywx7qa.js → gate-evidence-84sfx6g8.js} +7 -7
  10. package/dist/cli/{guardrail-explain-j88dhm6w.js → guardrail-explain-jhbxq8yb.js} +29 -29
  11. package/dist/cli/{guardrail-log-xcb3ke8s.js → guardrail-log-vpbp3rm4.js} +4 -4
  12. package/dist/cli/{hive-promoter-nnnx5692.js → hive-promoter-mmmfszv8.js} +28 -28
  13. package/dist/cli/{index-34tawmyx.js → index-0a0asz2s.js} +1 -1
  14. package/dist/cli/{index-2qrd8mfa.js → index-4p3qfb05.js} +1 -1
  15. package/dist/cli/{index-gey2257h.js → index-5e5a1y2r.js} +1 -1
  16. package/dist/cli/{index-17e73wac.js → index-5qwmpamg.js} +1 -1
  17. package/dist/cli/{index-41t3hgaa.js → index-92cxd0r1.js} +247 -29
  18. package/dist/cli/{index-rtkttser.js → index-97psh79d.js} +1 -1
  19. package/dist/cli/{index-gf03198s.js → index-bghwrr59.js} +1 -1
  20. package/dist/cli/{index-tw8ck794.js → index-bma2wrqx.js} +2 -2
  21. package/dist/cli/{index-v3y3qg48.js → index-cpg98bh1.js} +17 -1
  22. package/dist/cli/{index-kxzgnz2h.js → index-d4e6wpkg.js} +14 -7
  23. package/dist/cli/{index-sfemjcb8.js → index-f17j50dx.js} +5 -5
  24. package/dist/cli/{index-7axx11dt.js → index-fay8h6v8.js} +25 -5
  25. package/dist/cli/{index-19v4tccw.js → index-fyr2wbvz.js} +2 -2
  26. package/dist/cli/{index-cqfp05jb.js → index-fzqhn96z.js} +3 -3
  27. package/dist/cli/{index-mrkgxfeh.js → index-g3xt1d16.js} +4 -4
  28. package/dist/cli/{index-evpgszmp.js → index-gxbhp7sx.js} +2 -2
  29. package/dist/cli/{index-mpf01swm.js → index-j20fzn0w.js} +2 -2
  30. package/dist/cli/{index-xz4x17z0.js → index-j43qndgc.js} +30 -30
  31. package/dist/cli/{index-neh8azwc.js → index-jfcgnvg6.js} +3 -3
  32. package/dist/cli/{index-qpke2x5h.js → index-kfmee1cr.js} +6 -6
  33. package/dist/cli/{index-4evasm2b.js → index-kggqpefz.js} +5 -5
  34. package/dist/cli/{index-90w06fqr.js → index-kwxp0z0n.js} +4 -4
  35. package/dist/cli/{index-b7ntt9cw.js → index-n6ke10ck.js} +4 -4
  36. package/dist/cli/{index-fwnhh6s7.js → index-nsr5b69r.js} +2 -2
  37. package/dist/cli/{index-bst6epnr.js → index-pz2py5v7.js} +1876 -1065
  38. package/dist/cli/{index-8ef23wex.js → index-q2mvacjr.js} +4 -4
  39. package/dist/cli/{index-dppzthm9.js → index-qyvjp0bq.js} +2 -2
  40. package/dist/cli/{index-tm0bezd9.js → index-s8qyaqs2.js} +1 -1
  41. package/dist/cli/{index-ymyke19q.js → index-vk15nbh4.js} +2 -2
  42. package/dist/cli/{index-dzan8czb.js → index-x8pm918t.js} +1 -1
  43. package/dist/cli/{index-ff66fbjt.js → index-zd1mfygt.js} +177 -29
  44. package/dist/cli/{index-zpp507z0.js → index-zsmsy1dh.js} +2 -2
  45. package/dist/cli/index.js +28 -28
  46. package/dist/cli/{knowledge-escalator-s6acdpwj.js → knowledge-escalator-c9p3w12b.js} +12 -12
  47. package/dist/cli/{knowledge-events-jprkz49t.js → knowledge-events-d201414m.js} +10 -10
  48. package/dist/cli/{knowledge-link-zvtmj756.js → knowledge-link-82ew2yc4.js} +5 -5
  49. package/dist/cli/{knowledge-store-mc4awds4.js → knowledge-store-ds45k9th.js} +6 -6
  50. package/dist/cli/{knowledge-validator-pe4ncrvj.js → knowledge-validator-707vsncy.js} +8 -8
  51. package/dist/cli/{model-preflight-77dwxfv5.js → model-preflight-7ea00h34.js} +1 -1
  52. package/dist/cli/{pending-delegations-epzht3d7.js → pending-delegations-kkrczqv7.js} +3 -3
  53. package/dist/cli/{pr-subscriptions-2ahy8g87.js → pr-subscriptions-2xn238xt.js} +3 -3
  54. package/dist/cli/{runner-ra9pjhp2.js → runner-pqsf809k.js} +6 -6
  55. package/dist/cli/{scan-cursor-hdzhqwzj.js → scan-cursor-znhqb8xa.js} +7 -7
  56. package/dist/cli/{schema-pg85z06v.js → schema-dnnm0p40.js} +2 -2
  57. package/dist/cli/{scope-persistence-v8we8ja7.js → scope-persistence-4n24a1e2.js} +8 -8
  58. package/dist/cli/{skill-generator-ctskfct2.js → skill-generator-5s0p3y8k.js} +14 -14
  59. package/dist/cli/{telemetry-c21dgffc.js → telemetry-t109dhv7.js} +1 -1
  60. package/dist/cli/{worktree-collision-ownership-f7se4wbf.js → worktree-collision-ownership-2jtg2my1.js} +3 -3
  61. package/dist/cli/{worktree-isolation-j4qb7mgb.js → worktree-isolation-1v2mythh.js} +28 -28
  62. package/dist/commands/memory.d.ts +8 -0
  63. package/dist/commands/registry.d.ts +8 -0
  64. package/dist/config/schema.d.ts +16 -2
  65. package/dist/evidence/task-gate-repair.d.ts +26 -0
  66. package/dist/evidence/task-gate-requirements.d.ts +20 -0
  67. package/dist/gate-evidence.d.ts +7 -0
  68. package/dist/hooks/knowledge-receipt-ledger-storage.d.ts +2 -0
  69. package/dist/hooks/knowledge-receipt-ledger.d.ts +72 -3
  70. package/dist/hooks/knowledge-receipt-observability.d.ts +1 -1
  71. package/dist/hooks/phase-complete-directive-gate.d.ts +9 -0
  72. package/dist/index.js +593 -537
  73. package/dist/memory/config.d.ts +20 -0
  74. package/dist/memory/errors.d.ts +14 -0
  75. package/dist/memory/gateway.d.ts +32 -0
  76. package/dist/memory/index.d.ts +3 -2
  77. package/dist/memory/pii.d.ts +66 -0
  78. package/dist/memory/prompt-block.d.ts +1 -1
  79. package/dist/memory/provider.d.ts +15 -0
  80. package/dist/memory/redaction.d.ts +31 -8
  81. package/dist/memory/schema.d.ts +18 -0
  82. package/dist/memory/sentinel.d.ts +12 -0
  83. package/dist/memory/sqlite-provider.d.ts +93 -0
  84. package/dist/memory/types.d.ts +9 -0
  85. package/dist/plan/manager.d.ts +8 -0
  86. package/dist/review/diff-source.d.ts +30 -0
  87. package/dist/review/engine.d.ts +1 -0
  88. package/dist/review/evidence.d.ts +16 -2
  89. package/dist/review/phase-runner.d.ts +1 -0
  90. package/dist/tools/completion-verify.d.ts +2 -0
  91. package/dist/tools/convene-council.d.ts +1 -1
  92. package/dist/tools/index.d.ts +4 -0
  93. package/dist/tools/manifest.d.ts +4 -0
  94. package/dist/tools/phase-complete/gates/final-review-gate.d.ts +3 -3
  95. package/dist/tools/phase-complete/gates/types.d.ts +2 -2
  96. package/dist/tools/phase-complete/preflight-report.d.ts +66 -0
  97. package/dist/tools/phase-complete/snapshot-identity.d.ts +1 -0
  98. package/dist/tools/phase-complete.d.ts +66 -3
  99. package/dist/tools/record-directive-override.d.ts +14 -0
  100. package/dist/tools/repair-gate-evidence.d.ts +6 -0
  101. package/dist/tools/repair-knowledge-receipt-ledger.d.ts +27 -0
  102. package/dist/tools/run-phase-review.d.ts +37 -0
  103. package/dist/tools/submit-phase-council-verdicts.d.ts +1 -1
  104. package/dist/tools/tool-metadata.d.ts +32 -16
  105. package/dist/tools/write-final-council-evidence.d.ts +1 -1
  106. package/dist/tools/write-retro.d.ts +2 -0
  107. package/package.json +12 -2
@@ -29,13 +29,13 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-ff66fbjt.js";
33
- import"./index-neh8azwc.js";
32
+ } from "./index-zd1mfygt.js";
33
+ import"./index-jfcgnvg6.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-17e73wac.js";
37
- import"./index-7axx11dt.js";
38
- import"./index-v3y3qg48.js";
36
+ import"./index-5qwmpamg.js";
37
+ import"./index-fay8h6v8.js";
38
+ import"./index-cpg98bh1.js";
39
39
  import"./index-9e6fdz2h.js";
40
40
  import"./index-4rhhvd1a.js";
41
41
  import"./index-w8pgjr75.js";
@@ -43,12 +43,12 @@ import"./index-z6xqpmqg.js";
43
43
  import"./index-zj6t9zgx.js";
44
44
  import"./index-zjygnfay.js";
45
45
  import"./index-ae75rja9.js";
46
- import"./index-dzan8czb.js";
47
- import"./index-mpf01swm.js";
46
+ import"./index-x8pm918t.js";
47
+ import"./index-j20fzn0w.js";
48
48
  import"./index-bk5tah7q.js";
49
- import"./index-4evasm2b.js";
50
- import"./index-gf03198s.js";
51
- import"./index-dppzthm9.js";
49
+ import"./index-kggqpefz.js";
50
+ import"./index-bghwrr59.js";
51
+ import"./index-qyvjp0bq.js";
52
52
  import"./index-7g4c7s5r.js";
53
53
  import"./index-bpmtbmy9.js";
54
54
  import"./index-ed5ykebp.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-dzan8czb.js";
16
- import"./index-mpf01swm.js";
17
- import"./index-4evasm2b.js";
18
- import"./index-gf03198s.js";
19
- import"./index-dppzthm9.js";
15
+ } from "./index-x8pm918t.js";
16
+ import"./index-j20fzn0w.js";
17
+ import"./index-kggqpefz.js";
18
+ import"./index-bghwrr59.js";
19
+ import"./index-qyvjp0bq.js";
20
20
  import"./index-7g4c7s5r.js";
21
21
  import"./index-bpmtbmy9.js";
22
22
  import"./index-ed5ykebp.js";
@@ -41,16 +41,16 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-qpke2x5h.js";
44
+ } from "./index-kfmee1cr.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
48
- import"./index-dzan8czb.js";
49
- import"./index-mpf01swm.js";
48
+ import"./index-x8pm918t.js";
49
+ import"./index-j20fzn0w.js";
50
50
  import"./index-bk5tah7q.js";
51
- import"./index-4evasm2b.js";
52
- import"./index-gf03198s.js";
53
- import"./index-dppzthm9.js";
51
+ import"./index-kggqpefz.js";
52
+ import"./index-bghwrr59.js";
53
+ import"./index-qyvjp0bq.js";
54
54
  import"./index-7g4c7s5r.js";
55
55
  import"./index-bpmtbmy9.js";
56
56
  import"./index-ed5ykebp.js";
@@ -23,17 +23,17 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-8ef23wex.js";
27
- import"./index-2qrd8mfa.js";
26
+ } from "./index-q2mvacjr.js";
27
+ import"./index-4p3qfb05.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-qpke2x5h.js";
29
+ import"./index-kfmee1cr.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-dzan8czb.js";
32
- import"./index-mpf01swm.js";
31
+ import"./index-x8pm918t.js";
32
+ import"./index-j20fzn0w.js";
33
33
  import"./index-bk5tah7q.js";
34
- import"./index-4evasm2b.js";
35
- import"./index-gf03198s.js";
36
- import"./index-dppzthm9.js";
34
+ import"./index-kggqpefz.js";
35
+ import"./index-bghwrr59.js";
36
+ import"./index-qyvjp0bq.js";
37
37
  import"./index-7g4c7s5r.js";
38
38
  import"./index-bpmtbmy9.js";
39
39
  import"./index-ed5ykebp.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  DEFAULT_MODELS,
4
4
  init_constants
5
- } from "./index-v3y3qg48.js";
5
+ } from "./index-cpg98bh1.js";
6
6
  import"./index-zjygnfay.js";
7
7
  import"./index-a76rekgs.js";
8
8
 
@@ -54,13 +54,13 @@ import {
54
54
  sweepStaleDelegations,
55
55
  updateCoderSettlement,
56
56
  writeDelegationFallback
57
- } from "./index-rtkttser.js";
57
+ } from "./index-97psh79d.js";
58
58
  import"./index-w8pgjr75.js";
59
59
  import"./index-z6xqpmqg.js";
60
60
  import"./index-zj6t9zgx.js";
61
61
  import"./index-zjygnfay.js";
62
- import"./index-gf03198s.js";
63
- import"./index-dppzthm9.js";
62
+ import"./index-bghwrr59.js";
63
+ import"./index-qyvjp0bq.js";
64
64
  import"./index-7g4c7s5r.js";
65
65
  import"./index-bpmtbmy9.js";
66
66
  import"./index-ed5ykebp.js";
@@ -9,13 +9,13 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-gey2257h.js";
12
+ } from "./index-5e5a1y2r.js";
13
13
  import"./index-w8pgjr75.js";
14
14
  import"./index-z6xqpmqg.js";
15
15
  import"./index-zj6t9zgx.js";
16
16
  import"./index-zjygnfay.js";
17
- import"./index-gf03198s.js";
18
- import"./index-dppzthm9.js";
17
+ import"./index-bghwrr59.js";
18
+ import"./index-qyvjp0bq.js";
19
19
  import"./index-7g4c7s5r.js";
20
20
  import"./index-bpmtbmy9.js";
21
21
  import"./index-ed5ykebp.js";
@@ -3,14 +3,14 @@ import {
3
3
  _internals,
4
4
  createModelEvaluationExecutor,
5
5
  runEvaluation
6
- } from "./index-34tawmyx.js";
7
- import"./index-fwnhh6s7.js";
6
+ } from "./index-0a0asz2s.js";
7
+ import"./index-nsr5b69r.js";
8
8
  import"./index-y8552snf.js";
9
9
  import"./index-zj6t9zgx.js";
10
- import"./index-mpf01swm.js";
11
- import"./index-4evasm2b.js";
12
- import"./index-gf03198s.js";
13
- import"./index-dppzthm9.js";
10
+ import"./index-j20fzn0w.js";
11
+ import"./index-kggqpefz.js";
12
+ import"./index-bghwrr59.js";
13
+ import"./index-qyvjp0bq.js";
14
14
  import"./index-7g4c7s5r.js";
15
15
  import"./index-bpmtbmy9.js";
16
16
  import"./index-ed5ykebp.js";
@@ -4,17 +4,17 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-evpgszmp.js";
8
- import"./index-qpke2x5h.js";
7
+ } from "./index-gxbhp7sx.js";
8
+ import"./index-kfmee1cr.js";
9
9
  import"./index-9e6fdz2h.js";
10
10
  import"./index-4rhhvd1a.js";
11
11
  import"./index-ae75rja9.js";
12
- import"./index-dzan8czb.js";
13
- import"./index-mpf01swm.js";
12
+ import"./index-x8pm918t.js";
13
+ import"./index-j20fzn0w.js";
14
14
  import"./index-bk5tah7q.js";
15
- import"./index-4evasm2b.js";
16
- import"./index-gf03198s.js";
17
- import"./index-dppzthm9.js";
15
+ import"./index-kggqpefz.js";
16
+ import"./index-bghwrr59.js";
17
+ import"./index-qyvjp0bq.js";
18
18
  import"./index-7g4c7s5r.js";
19
19
  import"./index-bpmtbmy9.js";
20
20
  import"./index-ed5ykebp.js";
@@ -97,8 +97,8 @@ import {
97
97
  resolveGeneratedAgentRole,
98
98
  resolveGuardrailsConfig,
99
99
  stripKnownSwarmPrefix
100
- } from "./index-7axx11dt.js";
101
- import"./index-v3y3qg48.js";
100
+ } from "./index-fay8h6v8.js";
101
+ import"./index-cpg98bh1.js";
102
102
  import"./index-zjygnfay.js";
103
103
  import"./index-bk5tah7q.js";
104
104
  import"./index-bpmtbmy9.js";
@@ -23,12 +23,12 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-90w06fqr.js";
27
- import"./index-cqfp05jb.js";
26
+ } from "./index-kwxp0z0n.js";
27
+ import"./index-fzqhn96z.js";
28
28
  import"./index-556ja8an.js";
29
- import"./index-17e73wac.js";
30
- import"./index-7axx11dt.js";
31
- import"./index-v3y3qg48.js";
29
+ import"./index-5qwmpamg.js";
30
+ import"./index-fay8h6v8.js";
31
+ import"./index-cpg98bh1.js";
32
32
  import"./index-9e6fdz2h.js";
33
33
  import"./index-4rhhvd1a.js";
34
34
  import"./index-w8pgjr75.js";
@@ -36,9 +36,9 @@ import"./index-z6xqpmqg.js";
36
36
  import"./index-zj6t9zgx.js";
37
37
  import"./index-zjygnfay.js";
38
38
  import"./index-bk5tah7q.js";
39
- import"./index-4evasm2b.js";
40
- import"./index-gf03198s.js";
41
- import"./index-dppzthm9.js";
39
+ import"./index-kggqpefz.js";
40
+ import"./index-bghwrr59.js";
41
+ import"./index-qyvjp0bq.js";
42
42
  import"./index-7g4c7s5r.js";
43
43
  import"./index-bpmtbmy9.js";
44
44
  import"./index-ed5ykebp.js";
@@ -33,18 +33,18 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-mrkgxfeh.js";
37
- import"./index-8ef23wex.js";
38
- import"./index-2qrd8mfa.js";
36
+ } from "./index-g3xt1d16.js";
37
+ import"./index-q2mvacjr.js";
38
+ import"./index-4p3qfb05.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-qpke2x5h.js";
41
- import"./index-ff66fbjt.js";
42
- import"./index-neh8azwc.js";
40
+ import"./index-kfmee1cr.js";
41
+ import"./index-zd1mfygt.js";
42
+ import"./index-jfcgnvg6.js";
43
43
  import"./index-gprxjmm7.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-17e73wac.js";
46
- import"./index-7axx11dt.js";
47
- import"./index-v3y3qg48.js";
45
+ import"./index-5qwmpamg.js";
46
+ import"./index-fay8h6v8.js";
47
+ import"./index-cpg98bh1.js";
48
48
  import"./index-9e6fdz2h.js";
49
49
  import"./index-4rhhvd1a.js";
50
50
  import"./index-w8pgjr75.js";
@@ -52,12 +52,12 @@ import"./index-z6xqpmqg.js";
52
52
  import"./index-zj6t9zgx.js";
53
53
  import"./index-zjygnfay.js";
54
54
  import"./index-ae75rja9.js";
55
- import"./index-dzan8czb.js";
56
- import"./index-mpf01swm.js";
55
+ import"./index-x8pm918t.js";
56
+ import"./index-j20fzn0w.js";
57
57
  import"./index-bk5tah7q.js";
58
- import"./index-4evasm2b.js";
59
- import"./index-gf03198s.js";
60
- import"./index-dppzthm9.js";
58
+ import"./index-kggqpefz.js";
59
+ import"./index-bghwrr59.js";
60
+ import"./index-qyvjp0bq.js";
61
61
  import"./index-7g4c7s5r.js";
62
62
  import"./index-bpmtbmy9.js";
63
63
  import"./index-ed5ykebp.js";
@@ -13,7 +13,7 @@ import {
13
13
  startHeartbeatTracking,
14
14
  stopHeartbeatTracking,
15
15
  telemetry
16
- } from "./index-dppzthm9.js";
16
+ } from "./index-qyvjp0bq.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-a76rekgs.js";
19
19
  export {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  scanDelegationFallbacksForRecovery,
7
7
  scanDelegationsForRecovery
8
- } from "./index-rtkttser.js";
8
+ } from "./index-97psh79d.js";
9
9
  import {
10
10
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
11
11
  removeWorktreeProvisioningOwner,
@@ -22,8 +22,8 @@ import {
22
22
  bunSpawn
23
23
  } from "./index-zj6t9zgx.js";
24
24
  import"./index-zjygnfay.js";
25
- import"./index-gf03198s.js";
26
- import"./index-dppzthm9.js";
25
+ import"./index-bghwrr59.js";
26
+ import"./index-qyvjp0bq.js";
27
27
  import"./index-7g4c7s5r.js";
28
28
  import"./index-bpmtbmy9.js";
29
29
  import"./index-ed5ykebp.js";
@@ -21,48 +21,48 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-bst6epnr.js";
25
- import"./index-34tawmyx.js";
26
- import"./index-ymyke19q.js";
27
- import"./index-tw8ck794.js";
28
- import"./index-kxzgnz2h.js";
29
- import"./index-fwnhh6s7.js";
24
+ } from "./index-pz2py5v7.js";
25
+ import"./index-0a0asz2s.js";
26
+ import"./index-vk15nbh4.js";
27
+ import"./index-bma2wrqx.js";
28
+ import"./index-d4e6wpkg.js";
29
+ import"./index-nsr5b69r.js";
30
30
  import"./index-134d35c1.js";
31
31
  import"./index-abtrcs16.js";
32
32
  import"./index-y8552snf.js";
33
- import"./index-sfemjcb8.js";
34
- import"./index-evpgszmp.js";
33
+ import"./index-f17j50dx.js";
34
+ import"./index-gxbhp7sx.js";
35
35
  import"./index-70ha9e09.js";
36
36
  import"./index-c8s9a3zh.js";
37
37
  import"./index-9ss2m4rs.js";
38
38
  import"./index-z9yhhk6q.js";
39
- import"./index-gey2257h.js";
40
- import"./index-mrkgxfeh.js";
41
- import"./index-8ef23wex.js";
42
- import"./index-2qrd8mfa.js";
39
+ import"./index-5e5a1y2r.js";
40
+ import"./index-g3xt1d16.js";
41
+ import"./index-q2mvacjr.js";
42
+ import"./index-4p3qfb05.js";
43
43
  import"./index-rtry5xyf.js";
44
44
  import"./index-zsrtt42s.js";
45
- import"./index-rtkttser.js";
45
+ import"./index-97psh79d.js";
46
46
  import"./index-e1pxav9g.js";
47
- import"./index-41t3hgaa.js";
48
- import"./index-zpp507z0.js";
49
- import"./index-90w06fqr.js";
50
- import"./index-cqfp05jb.js";
47
+ import"./index-92cxd0r1.js";
48
+ import"./index-zsmsy1dh.js";
49
+ import"./index-kwxp0z0n.js";
50
+ import"./index-fzqhn96z.js";
51
51
  import"./index-556ja8an.js";
52
52
  import"./index-7sy3aa9m.js";
53
53
  import"./index-wx8zdh4a.js";
54
54
  import"./index-3g0xk6tk.js";
55
55
  import"./index-85gkedsf.js";
56
- import"./index-qpke2x5h.js";
57
- import"./index-ff66fbjt.js";
56
+ import"./index-kfmee1cr.js";
57
+ import"./index-zd1mfygt.js";
58
58
  import {
59
59
  resolveWorktreeIsolationConfig
60
- } from "./index-neh8azwc.js";
60
+ } from "./index-jfcgnvg6.js";
61
61
  import"./index-gprxjmm7.js";
62
62
  import"./index-n832052r.js";
63
- import"./index-17e73wac.js";
64
- import"./index-7axx11dt.js";
65
- import"./index-v3y3qg48.js";
63
+ import"./index-5qwmpamg.js";
64
+ import"./index-fay8h6v8.js";
65
+ import"./index-cpg98bh1.js";
66
66
  import"./index-9e6fdz2h.js";
67
67
  import"./index-4rhhvd1a.js";
68
68
  import"./index-w8pgjr75.js";
@@ -70,12 +70,12 @@ import"./index-z6xqpmqg.js";
70
70
  import"./index-zj6t9zgx.js";
71
71
  import"./index-zjygnfay.js";
72
72
  import"./index-ae75rja9.js";
73
- import"./index-dzan8czb.js";
74
- import"./index-mpf01swm.js";
73
+ import"./index-x8pm918t.js";
74
+ import"./index-j20fzn0w.js";
75
75
  import"./index-bk5tah7q.js";
76
- import"./index-4evasm2b.js";
77
- import"./index-gf03198s.js";
78
- import"./index-dppzthm9.js";
76
+ import"./index-kggqpefz.js";
77
+ import"./index-bghwrr59.js";
78
+ import"./index-qyvjp0bq.js";
79
79
  import"./index-7g4c7s5r.js";
80
80
  import"./index-bpmtbmy9.js";
81
81
  import"./index-ed5ykebp.js";
@@ -10,3 +10,11 @@ export declare function handleMemoryMigrateCommand(directory: string, _args: str
10
10
  export declare function handleMemoryImportCommand(directory: string, _args: string[]): Promise<string>;
11
11
  export declare function handleMemoryExportCommand(directory: string, _args: string[]): Promise<string>;
12
12
  export declare function handleMemoryEvaluateCommand(directory: string, args: string[]): Promise<string>;
13
+ /**
14
+ * #1466: `/swarm memory audit-verify` — lazily verify the memory_events
15
+ * hash chain (migration v13) and the _meta chain head. Tampering with any
16
+ * chained row, deleting a middle row, or editing the last row breaks the
17
+ * verification. Non-SQLite providers report the gap explicitly instead of
18
+ * pretending to verify.
19
+ */
20
+ export declare function handleMemoryAuditVerifyCommand(directory: string, args: string[]): Promise<string>;
@@ -1021,6 +1021,14 @@ export declare const COMMAND_REGISTRY: {
1021
1021
  readonly category: "diagnostics";
1022
1022
  readonly toolPolicy: "agent";
1023
1023
  };
1024
+ readonly 'memory audit-verify': {
1025
+ readonly handler: (ctx: CommandContext) => Promise<string>;
1026
+ readonly description: "Verify the memory audit-log hash chain (tamper detection)";
1027
+ readonly subcommandOf: "memory";
1028
+ readonly args: "--json";
1029
+ readonly category: "diagnostics";
1030
+ readonly toolPolicy: "agent";
1031
+ };
1024
1032
  readonly 'memory import': {
1025
1033
  readonly handler: (ctx: CommandContext) => Promise<string>;
1026
1034
  readonly description: "Import legacy JSONL memory into SQLite";
@@ -358,8 +358,8 @@ export type PipelineConfig = z.infer<typeof PipelineConfigSchema>;
358
358
  export declare const PhaseCompleteConfigSchema: z.ZodObject<{
359
359
  enabled: z.ZodDefault<z.ZodBoolean>;
360
360
  required_agents: z.ZodDefault<z.ZodArray<z.ZodEnum<{
361
- reviewer: "reviewer";
362
361
  coder: "coder";
362
+ reviewer: "reviewer";
363
363
  test_engineer: "test_engineer";
364
364
  }>>>;
365
365
  require_docs: z.ZodDefault<z.ZodBoolean>;
@@ -841,6 +841,13 @@ export declare const MemoryConfigSchema: z.ZodObject<{
841
841
  }, z.core.$strip>>;
842
842
  redaction: z.ZodDefault<z.ZodObject<{
843
843
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
844
+ detectPii: z.ZodDefault<z.ZodBoolean>;
845
+ piiDetector: z.ZodDefault<z.ZodEnum<{
846
+ regex: "regex";
847
+ ner: "ner";
848
+ }>>;
849
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
850
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
844
851
  }, z.core.$strip>>;
845
852
  maintenance: z.ZodDefault<z.ZodObject<{
846
853
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
@@ -1778,8 +1785,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
1778
1785
  phase_complete: z.ZodOptional<z.ZodObject<{
1779
1786
  enabled: z.ZodDefault<z.ZodBoolean>;
1780
1787
  required_agents: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1781
- reviewer: "reviewer";
1782
1788
  coder: "coder";
1789
+ reviewer: "reviewer";
1783
1790
  test_engineer: "test_engineer";
1784
1791
  }>>>;
1785
1792
  require_docs: z.ZodDefault<z.ZodBoolean>;
@@ -2232,6 +2239,13 @@ export declare const PluginConfigSchema: z.ZodObject<{
2232
2239
  }, z.core.$strip>>;
2233
2240
  redaction: z.ZodDefault<z.ZodObject<{
2234
2241
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
2242
+ detectPii: z.ZodDefault<z.ZodBoolean>;
2243
+ piiDetector: z.ZodDefault<z.ZodEnum<{
2244
+ regex: "regex";
2245
+ ner: "ner";
2246
+ }>>;
2247
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
2248
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
2235
2249
  }, z.core.$strip>>;
2236
2250
  maintenance: z.ZodDefault<z.ZodObject<{
2237
2251
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
@@ -0,0 +1,26 @@
1
+ export declare const TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL = "requirements_reconstruction";
2
+ export interface RepairGateEvidenceArgs {
3
+ task_id: string;
4
+ reason: string;
5
+ expected_sha256?: string;
6
+ expected_generation?: number;
7
+ }
8
+ export interface RepairGateEvidenceContext {
9
+ sessionID?: string;
10
+ messageID?: string;
11
+ }
12
+ export interface RepairGateEvidenceResult {
13
+ success: boolean;
14
+ message: string;
15
+ errors?: string[];
16
+ repaired?: boolean;
17
+ task_id?: string;
18
+ required_gates?: string[];
19
+ requirements_state?: 'known' | 'unknown';
20
+ quarantine_digest?: string;
21
+ quarantine_path?: string;
22
+ repaired_generation?: number;
23
+ next_actions?: string[];
24
+ }
25
+ export declare function taskGateEvidenceQuarantinePath(directory: string, taskId: string, digest: string): string;
26
+ export declare function repairTaskGateEvidence(args: RepairGateEvidenceArgs, directory: string, context?: RepairGateEvidenceContext): Promise<RepairGateEvidenceResult>;
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import type { TaskEvidence, TaskWorkflowTransitionEvent } from '../gate-evidence.js';
3
+ declare const TaskGateRequirementsReceiptSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<1>;
5
+ taskId: z.ZodString;
6
+ generation: z.ZodNumber;
7
+ normalizedRole: z.ZodString;
8
+ testEngineerExempt: z.ZodNullable<z.ZodBoolean>;
9
+ requiredGates: z.ZodArray<z.ZodString>;
10
+ sourceEvent: z.ZodString;
11
+ sourceTransitionId: z.ZodNullable<z.ZodString>;
12
+ recordedAt: z.ZodString;
13
+ previousChainHash: z.ZodNullable<z.ZodString>;
14
+ chainHash: z.ZodString;
15
+ }, z.core.$strict>;
16
+ export type TaskGateRequirementsReceipt = z.infer<typeof TaskGateRequirementsReceiptSchema>;
17
+ export declare function taskGateRequirementsReceiptPath(directory: string, taskId: string): string;
18
+ export declare function readTaskGateRequirementsReceipts(directory: string, taskId: string): Promise<TaskGateRequirementsReceipt[]>;
19
+ export declare function appendTaskGateRequirementsReceiptIfNeeded(directory: string, taskId: string, current: TaskEvidence | null, next: TaskEvidence, event: TaskWorkflowTransitionEvent): Promise<void>;
20
+ export {};
@@ -56,10 +56,17 @@ export interface TaskEvidence {
56
56
  required_gates: string[];
57
57
  gates: Record<string, GateEvidence>;
58
58
  turbo?: boolean;
59
+ requirements_state?: 'known' | 'unknown';
59
60
  /** Durable proof that the coder dispatch was classified as exact Markdown-only. */
60
61
  test_engineer_exempt?: boolean;
61
62
  /** Exact-task workflow metadata. Missing on legacy evidence written before #2098. */
62
63
  workflow?: TaskWorkflowMetadata;
64
+ /** Immutable source identity for an idempotent fail-closed evidence repair. */
65
+ repair_provenance?: {
66
+ source_sha256: string | null;
67
+ source_generation: number | null;
68
+ requirements_receipt_hash: string | null;
69
+ };
63
70
  }
64
71
  /**
65
72
  * Fence ordinary evidence writers while a terminal or repair plan/evidence
@@ -31,6 +31,8 @@ declare function recoverLockIfSafe(paths: ReceiptLedgerPaths): Promise<void>;
31
31
  export declare function withReceiptLedgerLock<T>(directory: string, action: (paths: ReceiptLedgerPaths) => Promise<T>): Promise<T>;
32
32
  export declare function receiptRecordHash(value: unknown): string;
33
33
  export declare function readUtf8IfPresent(filePath: string, maxBytes?: number): Promise<string | null>;
34
+ /** Read an authoritative receipt artifact without lossy text decoding. */
35
+ export declare function readBytesIfPresent(filePath: string, maxBytes?: number): Promise<Buffer | null>;
34
36
  export declare function appendFsynced(filePath: string, line: string): Promise<void>;
35
37
  export declare function atomicWriteFsynced(targetPath: string, content: string): Promise<void>;
36
38
  export declare function fileMtimeMs(filePath: string): Promise<number | null>;