opencode-swarm 7.140.3 → 7.140.4

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 (112) hide show
  1. package/.opencode/skills/brainstorm/SKILL.md +1 -1
  2. package/.opencode/skills/ci-failure-batching/SKILL.md +11 -1
  3. package/.opencode/skills/ci-fix-monitor/SKILL.md +6 -4
  4. package/.opencode/skills/discover/SKILL.md +1 -1
  5. package/.opencode/skills/durable-session-state/SKILL.md +82 -0
  6. package/.opencode/skills/engineering-conventions/SKILL.md +1 -1
  7. package/.opencode/skills/issue-ingest/SKILL.md +13 -7
  8. package/.opencode/skills/issue-tracer/SKILL.md +1 -1
  9. package/.opencode/skills/orchestrating-subagents/SKILL.md +113 -0
  10. package/.opencode/skills/parallel-work-check/SKILL.md +1 -1
  11. package/.opencode/skills/swarm-ci-monitor/SKILL.md +5 -3
  12. package/.opencode/skills/swarm-pr-feedback/SKILL.md +30 -4
  13. package/.opencode/skills/writing-tests/SKILL.md +1 -1
  14. package/dist/agents/reviewer-directive-compliance.d.ts +19 -5
  15. package/dist/cli/{config-doctor-fnmfd35x.js → config-doctor-qqe6172n.js} +3 -3
  16. package/dist/cli/{core-p5cyej3r.js → core-52k057mf.js} +2 -2
  17. package/dist/cli/{curation-policy-d52h4g8t.js → curation-policy-9291bdat.js} +5 -7
  18. package/dist/cli/{curator-3zpdqt9r.js → curator-04xqq68e.js} +28 -28
  19. package/dist/cli/{curator-llm-factory-2h0xb62t.js → curator-llm-factory-cfm8fhdw.js} +28 -28
  20. package/dist/cli/{evidence-summary-service-nfdc1ht9.js → evidence-summary-service-em58myd7.js} +8 -8
  21. package/dist/cli/{gate-evidence-46qeyfc1.js → gate-evidence-ezxfkb22.js} +4 -4
  22. package/dist/cli/{guardrail-explain-yktan15c.js → guardrail-explain-pn1bcgfz.js} +29 -29
  23. package/dist/cli/{guardrail-log-82da8y5a.js → guardrail-log-vb5zkegf.js} +4 -4
  24. package/dist/cli/{hive-promoter-af5yaxvt.js → hive-promoter-z09khawt.js} +28 -28
  25. package/dist/cli/index-2rb3x0fk.js +2554 -0
  26. package/dist/cli/{index-hfvxhk4z.js → index-35qep0v7.js} +1 -1
  27. package/dist/cli/{index-h2waehqq.js → index-4hp8nvwb.js} +1 -1
  28. package/dist/cli/{index-8n4c3vec.js → index-7begd9aq.js} +4 -4
  29. package/dist/cli/{index-q1q8b85k.js → index-a1fjhx4w.js} +822 -688
  30. package/dist/cli/{index-xz8f1n1a.js → index-arza4m4j.js} +2 -2
  31. package/dist/cli/{index-ry0hgg3m.js → index-bfhwtdsw.js} +34 -0
  32. package/dist/cli/{index-jfjnn408.js → index-bn17ycxn.js} +1 -1
  33. package/dist/cli/{index-1m1ksyqt.js → index-c5kr20nz.js} +1 -1
  34. package/dist/cli/{index-pj9h75cc.js → index-djbhe0yh.js} +30 -30
  35. package/dist/cli/{index-p9dsb0tw.js → index-dtam929z.js} +2 -19
  36. package/dist/cli/{index-n0pja0qs.js → index-dtyeabmj.js} +2 -2
  37. package/dist/cli/{index-7kdd75se.js → index-hfjvepk2.js} +11 -9
  38. package/dist/cli/{index-j1xmren9.js → index-hfwzxh3j.js} +3 -3
  39. package/dist/cli/{index-n408rw7n.js → index-hxvkfx6t.js} +12 -0
  40. package/dist/cli/{index-brh827g0.js → index-hz0refz4.js} +10 -10
  41. package/dist/cli/{index-gtbmabws.js → index-mpytsq6k.js} +2 -2
  42. package/dist/cli/{index-rs1f1bh0.js → index-mrpfd1jx.js} +1 -1
  43. package/dist/cli/{index-8bnzzv3b.js → index-pp5m7xga.js} +2 -2
  44. package/dist/cli/{index-b9rd29ge.js → index-rrb6cz2f.js} +1 -1
  45. package/dist/cli/{index-adyxbmt5.js → index-ryq97w1x.js} +2 -2
  46. package/dist/cli/{index-95bj4kaw.js → index-s8g7jh1k.js} +2 -2
  47. package/dist/cli/{index-7d5jseea.js → index-tj04dj06.js} +5 -2
  48. package/dist/cli/{index-jvk119ck.js → index-v1an91bq.js} +54 -19
  49. package/dist/cli/{index-898f16j9.js → index-v3x7j9ey.js} +2 -2
  50. package/dist/cli/{index-pg7n141e.js → index-v3xhc7kg.js} +1 -1
  51. package/dist/cli/{index-qksjaxpd.js → index-vrmkg8fm.js} +46 -15
  52. package/dist/cli/{index-yyyk63kk.js → index-w4etfamq.js} +2 -2
  53. package/dist/cli/{index-kbfsp07d.js → index-wk8s1m7b.js} +2 -2
  54. package/dist/cli/{index-wf35ka4z.js → index-ysa38bnr.js} +2 -2
  55. package/dist/cli/index.js +28 -28
  56. package/dist/cli/{knowledge-escalator-7q59skqg.js → knowledge-escalator-gdjnwszd.js} +19 -7
  57. package/dist/cli/{knowledge-events-3nwfdpq7.js → knowledge-events-581x4q7n.js} +18 -5
  58. package/dist/cli/{knowledge-link-q46k9adx.js → knowledge-link-axx45d1h.js} +4 -4
  59. package/dist/cli/{knowledge-store-0d83rhh3.js → knowledge-store-ttg33482.js} +5 -5
  60. package/dist/cli/{knowledge-validator-6mfx91a2.js → knowledge-validator-8kywqt8b.js} +7 -8
  61. package/dist/cli/{pending-delegations-qzrx38y9.js → pending-delegations-btwqsvz4.js} +3 -3
  62. package/dist/cli/{pr-subscriptions-5s59h4dd.js → pr-subscriptions-83y1cdwv.js} +3 -3
  63. package/dist/cli/{runner-y78d7ryb.js → runner-fh3r41nw.js} +5 -5
  64. package/dist/cli/{scan-cursor-rc8q12ss.js → scan-cursor-j8ytdpam.js} +6 -6
  65. package/dist/cli/{schema-n9eaxp3a.js → schema-6xfqtpvn.js} +2 -2
  66. package/dist/cli/{scope-persistence-dr1msqxw.js → scope-persistence-8c72jrgp.js} +4 -4
  67. package/dist/cli/{skill-generator-q7c6vadg.js → skill-generator-n8vm1yhn.js} +18 -9
  68. package/dist/cli/{telemetry-sc57xtb0.js → telemetry-fb44gpba.js} +1 -1
  69. package/dist/cli/{worktree-collision-ownership-7a8e6gr9.js → worktree-collision-ownership-f28r473k.js} +3 -3
  70. package/dist/commands/ci-simulate.d.ts +7 -3
  71. package/dist/commands/close.d.ts +8 -0
  72. package/dist/commands/registry.d.ts +2 -2
  73. package/dist/commands/sdd.d.ts +15 -0
  74. package/dist/config/bundled-skills.d.ts +1 -1
  75. package/dist/config/schema.d.ts +2 -0
  76. package/dist/git/branch.d.ts +1 -1
  77. package/dist/hooks/delegate-ack-collector.d.ts +5 -0
  78. package/dist/hooks/hive-promoter.d.ts +4 -4
  79. package/dist/hooks/issue-trace-reducer.d.ts +7 -1
  80. package/dist/hooks/issue-trace-state.d.ts +18 -0
  81. package/dist/hooks/issue-trace.d.ts +3 -1
  82. package/dist/hooks/knowledge-application-gate.d.ts +8 -3
  83. package/dist/hooks/knowledge-application.d.ts +8 -5
  84. package/dist/hooks/knowledge-escalator.d.ts +9 -5
  85. package/dist/hooks/knowledge-events.d.ts +21 -8
  86. package/dist/hooks/knowledge-injector.d.ts +9 -0
  87. package/dist/hooks/knowledge-receipt-ledger-storage.d.ts +49 -0
  88. package/dist/hooks/knowledge-receipt-ledger.d.ts +305 -0
  89. package/dist/hooks/knowledge-receipt-observability.d.ts +28 -0
  90. package/dist/hooks/knowledge-receipt-validator.d.ts +13 -50
  91. package/dist/hooks/knowledge-store.d.ts +6 -1
  92. package/dist/hooks/knowledge-types.d.ts +12 -0
  93. package/dist/hooks/phase-complete-directive-gate.d.ts +3 -1
  94. package/dist/hooks/phase-directives.d.ts +4 -4
  95. package/dist/hooks/pr-workflow-gate.d.ts +34 -1
  96. package/dist/hooks/promotion-evidence-store.d.ts +14 -8
  97. package/dist/hooks/reviewer-verdict-parser.d.ts +34 -10
  98. package/dist/index.js +550 -531
  99. package/dist/knowledge/curation-policy.d.ts +0 -2
  100. package/dist/observability/catalog.d.ts +5 -3
  101. package/dist/observability/legacy.d.ts +4 -3
  102. package/dist/telemetry.d.ts +1 -1
  103. package/dist/tools/index.d.ts +3 -0
  104. package/dist/tools/manifest.d.ts +3 -0
  105. package/dist/tools/phase-complete.d.ts +9 -0
  106. package/dist/tools/rebind-pr-feedback-head.d.ts +17 -0
  107. package/dist/tools/record-implementation-review.d.ts +19 -0
  108. package/dist/tools/record-recurrence-sweep.d.ts +17 -0
  109. package/dist/tools/run-pr-feedback-stage-a.d.ts +8 -0
  110. package/dist/tools/tool-metadata.d.ts +12 -0
  111. package/package.json +3 -1
  112. package/dist/cli/index-n8jncheh.js +0 -666
@@ -3,21 +3,33 @@
3
3
  * Change 2 / Task 2.3).
4
4
  *
5
5
  * Parses a reviewer's `DIRECTIVE_COMPLIANCE` block (VERIFIED / VIOLATED / N/A
6
- * lines) and reconciles it against the set of directives the reviewer was asked
7
- * to verify, emitting one receipt event per directive (tagged source:'reviewer'):
6
+ * lines) and reconciles it against the exact retrieval memberships the reviewer
7
+ * was asked to verify, committing one authoritative terminal per pair:
8
8
  *
9
- * VERIFIED:<id> type:'applied' (verified === honored)
10
- * VIOLATED:<id> type:'violated' (+ run any verification_predicate)
11
- * N/A:<id> type:'n_a' (neutral)
9
+ * VERIFIED:<trace_id>:<entry_id> -> outcome:'applied'
10
+ * VIOLATED:<trace_id>:<entry_id> -> outcome:'violated'
11
+ * N/A:<trace_id>:<entry_id> -> outcome:'n_a'
12
12
  *
13
- * Anti-spoofing: verdicts for IDs that were not in the verify-set are dropped.
14
- * A CRITICAL directive the reviewer never addressed gets a synthetic
15
- * `violated` / `reviewer_omitted` event. Fail-open: never throws.
13
+ * Anti-spoofing: verdicts for pairs that were not in the verify-set are dropped.
14
+ * An omitted CRITICAL pair gets a `violated` / `reviewer_omitted` terminal.
15
+ * Authority failures return typed uncertainty and never fabricate success.
16
16
  */
17
17
  import { type DirectiveToVerify } from '../agents/reviewer-directive-compliance.js';
18
+ import { runDirectivePredicate } from '../services/directive-predicate-runner.js';
19
+ import { escalateViolatedEntries } from './knowledge-escalator.js';
20
+ import { recordKnowledgeEvent } from './knowledge-events.js';
21
+ import { validateAndCommitTerminalBatch } from './knowledge-receipt-ledger.js';
22
+ /** Narrow dependency seam for isolated reconciliation ordering tests. */
23
+ export declare const _internals: {
24
+ validateAndCommitTerminalBatch: typeof validateAndCommitTerminalBatch;
25
+ recordKnowledgeEvent: typeof recordKnowledgeEvent;
26
+ runDirectivePredicate: typeof runDirectivePredicate;
27
+ escalateViolatedEntries: typeof escalateViolatedEntries;
28
+ };
18
29
  export type ReviewerVerdict = 'verified' | 'violated' | 'n_a';
19
30
  export interface ParsedReviewerVerdict {
20
- id: string;
31
+ trace_id: string;
32
+ entry_id: string;
21
33
  verdict: ReviewerVerdict;
22
34
  /** evidence=... (VERIFIED/VIOLATED) or reason=... (N/A). */
23
35
  evidence?: string;
@@ -35,11 +47,23 @@ export interface ReconcileReviewerVerdictsParams {
35
47
  }
36
48
  export interface ReconcileReviewerVerdictsResult {
37
49
  emitted: Array<{
50
+ trace_id: string;
51
+ entry_id: string;
52
+ /** Legacy diagnostic alias. */
38
53
  id: string;
39
54
  type: string;
40
55
  source: 'reviewer';
41
56
  }>;
42
- omittedCriticals: string[];
57
+ omittedCriticals: Array<{
58
+ trace_id: string;
59
+ entry_id: string;
60
+ }>;
61
+ uncertainties: Array<{
62
+ trace_id: string;
63
+ entry_id?: string;
64
+ code: string;
65
+ uncertainty?: unknown;
66
+ }>;
43
67
  }
44
68
  /**
45
69
  * Reconcile reviewer verdicts against the verify-set and emit receipt events.