opencode-swarm 7.140.2 → 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.
- package/.opencode/skills/brainstorm/SKILL.md +1 -1
- package/.opencode/skills/ci-failure-batching/SKILL.md +11 -1
- package/.opencode/skills/ci-fix-monitor/SKILL.md +6 -4
- package/.opencode/skills/discover/SKILL.md +1 -1
- package/.opencode/skills/durable-session-state/SKILL.md +82 -0
- package/.opencode/skills/engineering-conventions/SKILL.md +1 -1
- package/.opencode/skills/issue-ingest/SKILL.md +13 -7
- package/.opencode/skills/issue-tracer/SKILL.md +1 -1
- package/.opencode/skills/orchestrating-subagents/SKILL.md +113 -0
- package/.opencode/skills/parallel-work-check/SKILL.md +1 -1
- package/.opencode/skills/swarm-ci-monitor/SKILL.md +5 -3
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +30 -4
- package/.opencode/skills/writing-tests/SKILL.md +1 -1
- package/dist/agents/reviewer-directive-compliance.d.ts +19 -5
- package/dist/cli/{config-doctor-shc0n4q1.js → config-doctor-qqe6172n.js} +3 -3
- package/dist/cli/{core-p5cyej3r.js → core-52k057mf.js} +2 -2
- package/dist/cli/{curation-policy-7n6t8he4.js → curation-policy-9291bdat.js} +5 -7
- package/dist/cli/{curator-zp5qq24c.js → curator-04xqq68e.js} +28 -28
- package/dist/cli/{curator-llm-factory-pr4bdfqw.js → curator-llm-factory-cfm8fhdw.js} +28 -28
- package/dist/cli/{evidence-summary-service-nfdc1ht9.js → evidence-summary-service-em58myd7.js} +8 -8
- package/dist/cli/{gate-evidence-46qeyfc1.js → gate-evidence-ezxfkb22.js} +4 -4
- package/dist/cli/{guardrail-explain-thddj6jv.js → guardrail-explain-pn1bcgfz.js} +29 -29
- package/dist/cli/{guardrail-log-w8fmxe1x.js → guardrail-log-vb5zkegf.js} +4 -4
- package/dist/cli/{hive-promoter-0yg3gxg6.js → hive-promoter-z09khawt.js} +28 -28
- package/dist/cli/index-2rb3x0fk.js +2554 -0
- package/dist/cli/{index-hfvxhk4z.js → index-35qep0v7.js} +1 -1
- package/dist/cli/{index-h2waehqq.js → index-4hp8nvwb.js} +1 -1
- package/dist/cli/{index-1j5my2qy.js → index-7begd9aq.js} +4 -4
- package/dist/cli/{index-n831qq2v.js → index-a1fjhx4w.js} +822 -688
- package/dist/cli/{index-chx92bes.js → index-arza4m4j.js} +2 -2
- package/dist/cli/{index-ry0hgg3m.js → index-bfhwtdsw.js} +34 -0
- package/dist/cli/{index-jfjnn408.js → index-bn17ycxn.js} +1 -1
- package/dist/cli/{index-1m1ksyqt.js → index-c5kr20nz.js} +1 -1
- package/dist/cli/{index-4rje8dc0.js → index-djbhe0yh.js} +30 -30
- package/dist/cli/{index-t59cdg48.js → index-dtam929z.js} +2 -19
- package/dist/cli/{index-n0pja0qs.js → index-dtyeabmj.js} +2 -2
- package/dist/cli/{index-9txca231.js → index-hfjvepk2.js} +11 -9
- package/dist/cli/{index-vjqe1z2w.js → index-hfwzxh3j.js} +3 -3
- package/dist/cli/{index-n408rw7n.js → index-hxvkfx6t.js} +12 -0
- package/dist/cli/{index-brh827g0.js → index-hz0refz4.js} +10 -10
- package/dist/cli/{index-yt3vz0e1.js → index-mpytsq6k.js} +2 -2
- package/dist/cli/{index-rs1f1bh0.js → index-mrpfd1jx.js} +1 -1
- package/dist/cli/{index-0tevsq1a.js → index-pp5m7xga.js} +2 -2
- package/dist/cli/{index-b9rd29ge.js → index-rrb6cz2f.js} +1 -1
- package/dist/cli/{index-adyxbmt5.js → index-ryq97w1x.js} +2 -2
- package/dist/cli/{index-y98ngs4g.js → index-s8g7jh1k.js} +2 -2
- package/dist/cli/{index-bmmzfrc7.js → index-tj04dj06.js} +5 -2
- package/dist/cli/{index-z6md3t8m.js → index-v1an91bq.js} +54 -19
- package/dist/cli/{index-898f16j9.js → index-v3x7j9ey.js} +2 -2
- package/dist/cli/{index-7ax0bkqh.js → index-v3xhc7kg.js} +1 -1
- package/dist/cli/{index-325zmfyj.js → index-vrmkg8fm.js} +46 -15
- package/dist/cli/{index-yyyk63kk.js → index-w4etfamq.js} +2 -2
- package/dist/cli/{index-kbfsp07d.js → index-wk8s1m7b.js} +2 -2
- package/dist/cli/{index-x6mtyj6q.js → index-ysa38bnr.js} +2 -2
- package/dist/cli/index.js +28 -28
- package/dist/cli/{knowledge-escalator-58tw74js.js → knowledge-escalator-gdjnwszd.js} +19 -7
- package/dist/cli/{knowledge-events-knr0pfq4.js → knowledge-events-581x4q7n.js} +18 -5
- package/dist/cli/{knowledge-link-q46k9adx.js → knowledge-link-axx45d1h.js} +4 -4
- package/dist/cli/{knowledge-store-e2srcd89.js → knowledge-store-ttg33482.js} +5 -5
- package/dist/cli/{knowledge-validator-1dtj02q8.js → knowledge-validator-8kywqt8b.js} +7 -8
- package/dist/cli/{pending-delegations-qzrx38y9.js → pending-delegations-btwqsvz4.js} +3 -3
- package/dist/cli/{pr-subscriptions-5s59h4dd.js → pr-subscriptions-83y1cdwv.js} +3 -3
- package/dist/cli/{runner-y78d7ryb.js → runner-fh3r41nw.js} +5 -5
- package/dist/cli/{scan-cursor-7tqsvbp8.js → scan-cursor-j8ytdpam.js} +6 -6
- package/dist/cli/{schema-b046zss2.js → schema-6xfqtpvn.js} +2 -2
- package/dist/cli/{scope-persistence-dr1msqxw.js → scope-persistence-8c72jrgp.js} +4 -4
- package/dist/cli/{skill-generator-bvph9d98.js → skill-generator-n8vm1yhn.js} +18 -9
- package/dist/cli/{telemetry-sc57xtb0.js → telemetry-fb44gpba.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-7a8e6gr9.js → worktree-collision-ownership-f28r473k.js} +3 -3
- package/dist/commands/ci-simulate.d.ts +7 -3
- package/dist/commands/close.d.ts +8 -0
- package/dist/commands/registry.d.ts +2 -2
- package/dist/commands/sdd.d.ts +15 -0
- package/dist/config/bundled-skills.d.ts +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/git/branch.d.ts +1 -1
- package/dist/hooks/compaction-customizer.d.ts +8 -0
- package/dist/hooks/delegate-ack-collector.d.ts +5 -0
- package/dist/hooks/hive-promoter.d.ts +4 -4
- package/dist/hooks/issue-trace-reducer.d.ts +7 -1
- package/dist/hooks/issue-trace-state.d.ts +18 -0
- package/dist/hooks/issue-trace.d.ts +3 -1
- package/dist/hooks/knowledge-application-gate.d.ts +8 -3
- package/dist/hooks/knowledge-application.d.ts +8 -5
- package/dist/hooks/knowledge-escalator.d.ts +9 -5
- package/dist/hooks/knowledge-events.d.ts +21 -8
- package/dist/hooks/knowledge-injector.d.ts +9 -0
- package/dist/hooks/knowledge-receipt-ledger-storage.d.ts +49 -0
- package/dist/hooks/knowledge-receipt-ledger.d.ts +305 -0
- package/dist/hooks/knowledge-receipt-observability.d.ts +28 -0
- package/dist/hooks/knowledge-receipt-validator.d.ts +13 -50
- package/dist/hooks/knowledge-store.d.ts +6 -1
- package/dist/hooks/knowledge-types.d.ts +12 -0
- package/dist/hooks/phase-complete-directive-gate.d.ts +3 -1
- package/dist/hooks/phase-directives.d.ts +4 -4
- package/dist/hooks/pr-workflow-gate.d.ts +34 -1
- package/dist/hooks/promotion-evidence-store.d.ts +14 -8
- package/dist/hooks/reviewer-verdict-parser.d.ts +34 -10
- package/dist/index.js +551 -532
- package/dist/knowledge/curation-policy.d.ts +0 -2
- package/dist/observability/catalog.d.ts +5 -3
- package/dist/observability/legacy.d.ts +4 -3
- package/dist/telemetry.d.ts +1 -1
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/manifest.d.ts +3 -0
- package/dist/tools/phase-complete.d.ts +9 -0
- package/dist/tools/rebind-pr-feedback-head.d.ts +17 -0
- package/dist/tools/record-implementation-review.d.ts +19 -0
- package/dist/tools/record-recurrence-sweep.d.ts +17 -0
- package/dist/tools/run-pr-feedback-stage-a.d.ts +8 -0
- package/dist/tools/tool-metadata.d.ts +12 -0
- package/package.json +3 -1
- package/dist/cli/index-jfp1bgt1.js +0 -666
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Promotion-evidence store (issue #1849 §B2).
|
|
3
3
|
*
|
|
4
|
-
* Append-only, FIFO-bounded
|
|
5
|
-
* produced when
|
|
6
|
-
*
|
|
4
|
+
* Append-only, FIFO-bounded, rebuildable projection of
|
|
5
|
+
* {@link PromotionEvidenceRecord}s produced when an authoritative V2 terminal
|
|
6
|
+
* receipt (applied/violated/contradicted) is filed. V2 receipt history remains
|
|
7
|
+
* the authority if this projection write fails. This is the wiring that feeds #1847's
|
|
7
8
|
* {@link evaluatePromotionPolicy} consumer (previously inert "until #1849
|
|
8
9
|
* produces real receipts").
|
|
9
10
|
*
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
* `.swarm/` (via {@link validateSwarmPath}), NOT the link-aware shared store
|
|
15
16
|
* dir, so it stays per-worktree.
|
|
16
17
|
*/
|
|
18
|
+
import { queryHistoricalOutcomes } from './knowledge-receipt-ledger.js';
|
|
17
19
|
import type { PromotionEvidenceRecord } from './knowledge-types.js';
|
|
18
20
|
/** Resolve the promotion-evidence log path under the project-root `.swarm/`. */
|
|
19
21
|
export declare function resolvePromotionEvidencePath(directory: string): string;
|
|
@@ -25,9 +27,13 @@ export declare function resolvePromotionEvidencePath(directory: string): string;
|
|
|
25
27
|
*/
|
|
26
28
|
export declare function appendPromotionEvidence(directory: string, records: PromotionEvidenceRecord[]): Promise<void>;
|
|
27
29
|
/**
|
|
28
|
-
* Load
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Load authoritative receipt terminals as promotion evidence, grouped by
|
|
31
|
+
* entry_id. The FIFO file above remains a derived projection and is never read.
|
|
32
|
+
* Ledger uncertainty or missing truthful cohort lineage conservatively returns
|
|
33
|
+
* no evidence. Never throws.
|
|
32
34
|
*/
|
|
33
|
-
export declare function loadPromotionEvidenceByEntry(directory: string): Promise<Record<string, PromotionEvidenceRecord[]>>;
|
|
35
|
+
export declare function loadPromotionEvidenceByEntry(directory: string, canonicalCohortId?: string): Promise<Record<string, PromotionEvidenceRecord[]>>;
|
|
36
|
+
/** Dependency seam for authoritative-reader failure and mapping tests. */
|
|
37
|
+
export declare const _internals: {
|
|
38
|
+
queryHistoricalOutcomes: typeof queryHistoricalOutcomes;
|
|
39
|
+
};
|
|
@@ -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
|
|
7
|
-
* to verify,
|
|
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:<
|
|
10
|
-
* VIOLATED:<
|
|
11
|
-
* N/A:<
|
|
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
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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
|
-
|
|
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:
|
|
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.
|