opencode-swarm 7.178.0 → 7.178.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.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-d2bfb25j.js → coder-settlement-m03dfyec.js} +11 -11
- package/dist/cli/{config-doctor-905x2s1c.js → config-doctor-x8b260sh.js} +2 -2
- package/dist/cli/{core-k7wfx1wx.js → core-2d0xcyby.js} +3 -3
- package/dist/cli/{curation-policy-n4hd2wsa.js → curation-policy-7am15ht9.js} +5 -5
- package/dist/cli/{curator-wyadq69k.js → curator-5kfkqzc9.js} +37 -37
- package/dist/cli/{curator-drift-smqmej5v.js → curator-drift-d93pwt8h.js} +5 -5
- package/dist/cli/curator-llm-factory-rgdb2ee5.js +72 -0
- package/dist/cli/{evidence-summary-service-r3wcprfk.js → evidence-summary-service-959pwbwb.js} +16 -16
- package/dist/cli/{gate-evidence-tq9rb2aj.js → gate-evidence-66kjx6zj.js} +6 -6
- package/dist/cli/guardrail-explain-rre9ntq3.js +73 -0
- package/dist/cli/{guardrail-log-m6twga6x.js → guardrail-log-t0ydqz5s.js} +7 -7
- package/dist/cli/{guardrail-reset-86esv8cr.js → guardrail-reset-6gad352a.js} +37 -37
- package/dist/cli/{hive-promoter-s87hkb40.js → hive-promoter-zgnagx67.js} +37 -37
- package/dist/cli/{index-yeh78c1g.js → index-0pmh1kks.js} +2 -2
- package/dist/cli/{index-kfk403mc.js → index-1hgqs8j8.js} +4 -4
- package/dist/cli/{index-swxaa0zs.js → index-1jcy4gc6.js} +37 -37
- package/dist/cli/{index-qk29b7s4.js → index-1qnykdaw.js} +39 -39
- package/dist/cli/{index-zex7644g.js → index-1zrrerev.js} +2 -2
- package/dist/cli/{index-pm7c6f66.js → index-2b0ktpbf.js} +2 -2
- package/dist/cli/{index-2vhkwy6v.js → index-2e6txjp7.js} +2 -2
- package/dist/cli/{index-2mdk6nt9.js → index-2pyba37z.js} +7 -7
- package/dist/cli/{index-2b1whj28.js → index-3pzwsesm.js} +2 -2
- package/dist/cli/{index-rp0jk48x.js → index-4e4zsj2g.js} +7 -7
- package/dist/cli/{index-vfc7d22n.js → index-6e8fpjdg.js} +1 -1
- package/dist/cli/{index-wkde35ej.js → index-7kty6f59.js} +8 -8
- package/dist/cli/{index-mpcp6rmj.js → index-7n4dtzk4.js} +1 -1
- package/dist/cli/{index-d5dexrv1.js → index-b50qevsm.js} +4 -4
- package/dist/cli/{index-y6a2bkp1.js → index-bb148vht.js} +2 -2
- package/dist/cli/{index-2bmhe2jn.js → index-byfrearz.js} +3 -3
- package/dist/cli/{index-sqngtwyq.js → index-eq1n57tg.js} +1 -1
- package/dist/cli/{index-jzxeymr0.js → index-h0kyy9rd.js} +93 -227
- package/dist/cli/{index-bfz1jvcn.js → index-h4nh6s8b.js} +1 -1
- package/dist/cli/{index-p27az2hc.js → index-j7w16s92.js} +3 -3
- package/dist/cli/{index-azy3tw6c.js → index-kj599831.js} +2 -2
- package/dist/cli/{index-ke3m026z.js → index-ksq6cqg0.js} +14 -7
- package/dist/cli/{index-j3rkh9mp.js → index-kz9pcqn9.js} +2 -2
- package/dist/cli/{index-zsp9de3k.js → index-ne9zamcs.js} +7 -7
- package/dist/cli/{index-q9vb5e7n.js → index-nrfjjqm4.js} +1 -1
- package/dist/cli/{index-tnjmn0dn.js → index-nzekzzs2.js} +4 -4
- package/dist/cli/{index-wfbh1bx8.js → index-pk97v7b8.js} +3 -3
- package/dist/cli/{index-gg44hytk.js → index-pyxs697r.js} +33 -8
- package/dist/cli/{index-18hjycr1.js → index-qbs49vge.js} +30 -2
- package/dist/cli/{index-zsm8h8y1.js → index-r78kphsr.js} +4 -4
- package/dist/cli/{index-zmb8fjp5.js → index-s4bkey0q.js} +1 -1
- package/dist/cli/{index-yj1kr0ft.js → index-t8dqe4ns.js} +1 -1
- package/dist/cli/{index-j1v54ahd.js → index-w1b5qqnp.js} +2 -2
- package/dist/cli/{index-heg4em8j.js → index-wajcx84s.js} +2917 -2722
- package/dist/cli/{index-w4yjy3vp.js → index-whjrhatw.js} +1 -1
- package/dist/cli/{index-qs8eth8h.js → index-x1m1nnry.js} +3 -3
- package/dist/cli/{index-at0ygwwp.js → index-x54339yd.js} +5 -5
- package/dist/cli/{index-29begjkp.js → index-xr3eye3f.js} +8 -8
- package/dist/cli/{index-ffqy30e5.js → index-xr9n0vjv.js} +1 -1
- package/dist/cli/{index-y74n1sy8.js → index-yew23624.js} +7 -7
- package/dist/cli/{index-wbkxbgk8.js → index-zv3j0v08.js} +1 -1
- package/dist/cli/index.js +38 -38
- package/dist/cli/{knowledge-escalator-rgz471df.js → knowledge-escalator-5r6mww64.js} +12 -12
- package/dist/cli/{knowledge-events-4mq0ypx9.js → knowledge-events-typjw0sd.js} +10 -10
- package/dist/cli/{knowledge-link-npk50523.js → knowledge-link-mvykydxg.js} +4 -4
- package/dist/cli/{knowledge-store-gft25s5t.js → knowledge-store-9qcf3emn.js} +5 -5
- package/dist/cli/{knowledge-validator-ejqacbx4.js → knowledge-validator-k6ydsxzy.js} +7 -7
- package/dist/cli/{mcp-emaeeq4s.js → mcp-tedxsgey.js} +1 -1
- package/dist/cli/{pending-delegations-4bhkcykk.js → pending-delegations-d20fnrzv.js} +12 -12
- package/dist/cli/{pr-subscriptions-h1n6dbds.js → pr-subscriptions-awwhg139.js} +12 -12
- package/dist/cli/{pr-workflow-gate-wn6v5za8.js → pr-workflow-gate-ke79bb9c.js} +37 -37
- package/dist/cli/{runner-ffy5ahhz.js → runner-y3sydwtj.js} +5 -5
- package/dist/cli/{scan-cursor-e63t0g5b.js → scan-cursor-16s6dp7f.js} +6 -6
- package/dist/cli/{schema-4k4hr33y.js → schema-nqjp43vq.js} +1 -1
- package/dist/cli/{scope-persistence-qcw3rtxq.js → scope-persistence-8z1hwdr2.js} +19 -15
- package/dist/cli/{server-58s1wwap.js → server-x16hp9aq.js} +44 -42
- package/dist/cli/{skill-generator-fhj13jmq.js → skill-generator-xadg43ph.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-5fawrj35.js → snapshot-coordination-init-3yyzb2c4.js} +37 -37
- package/dist/cli/{telemetry-ca8dmn26.js → telemetry-c9wv2cfw.js} +1 -1
- package/dist/cli/{workspace-snapshot-v5qyjxg0.js → workspace-snapshot-rfnn80dg.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-hjk0jx19.js → worktree-collision-ownership-drqhmmtd.js} +13 -13
- package/dist/cli/{worktree-isolation-aj20bs6q.js → worktree-isolation-aebdyb1m.js} +37 -37
- package/dist/config/plan-schema.d.ts +23 -0
- package/dist/evidence/phase-participation.d.ts +3 -2
- package/dist/hooks/delegation-gate.d.ts +1 -1
- package/dist/hooks/extractors.d.ts +5 -1
- package/dist/index.js +506 -504
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/memory-family-migration.d.ts +35 -3
- package/dist/plan/ledger.d.ts +14 -0
- package/dist/plan/manager.d.ts +0 -2
- package/dist/plan/parallel-verdict.d.ts +28 -14
- package/dist/scope/scope-persistence.d.ts +41 -0
- package/dist/tools/plan-conflict-check.d.ts +7 -6
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-qhhxev17.js +0 -72
- package/dist/cli/guardrail-explain-kvgejh24.js +0 -73
package/dist/memory/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { createMemoryLifecycleHooks, type MemoryLifecycleHookOptions, type Memor
|
|
|
10
10
|
export { backupLegacyJsonl, getLegacyJsonlFileStatus, getLegacyOutcomeJsonlSignature, type JsonlBackupResult, type JsonlImportPayload, type JsonlInvalidRow, type JsonlMigrationReport, LEGACY_JSONL_MIGRATION_NAME, LEGACY_JSONL_MIGRATION_VERSION, LEGACY_JSONL_OUTCOME_META_KEY, readLegacyJsonl, readMigrationReport, resolveMemoryStorageDir, resolveSqliteDatabasePath, writeJsonlExport, writeMigrationReport, } from './jsonl-migration';
|
|
11
11
|
export { LocalJsonlMemoryProvider } from './local-jsonl-provider';
|
|
12
12
|
export { buildMemoryMaintenanceReport, type MemoryMaintenanceReport, type MemoryMaintenanceReportOptions, type MemoryRecallUsageByMemory, type MemoryRecallUsageByRole, type MemorySupersededChain, shouldCompactMemory, } from './maintenance';
|
|
13
|
+
export { MemoryMigrationLockError } from './memory-family-migration';
|
|
13
14
|
export { invalidateMemoryStoreDirCache, isMemoryLinked, MEMORY_LINK_POINTER_FILENAME, type MemoryLinkPointer, readMemoryLinkPointer, removeMemoryLinkPointer, resolveMemoryStoreDir, writeMemoryLinkPointer, } from './memory-link';
|
|
14
15
|
export type { MemoryOutcomeEvent } from './outcome-events';
|
|
15
16
|
export { computePiiScore, createPiiDetector, type PiiDetector, type PiiFinding, type PiiType, RegexPiiDetector, summarizePiiFindings, } from './pii';
|
|
@@ -18,15 +18,46 @@
|
|
|
18
18
|
* (`handleMemoryLinkCommand`), so a mid-migration failure leaves the worktree
|
|
19
19
|
* in its prior link state and a retry is idempotent.
|
|
20
20
|
*
|
|
21
|
-
* Lock discipline: `proper-lockfile` on the destination
|
|
22
|
-
* bumped `stale` (30s) for the migration
|
|
23
|
-
* knowledge family so there is one source
|
|
21
|
+
* Lock discipline: `proper-lockfile` on the destination storage dir (cohort
|
|
22
|
+
* OR local — both directions) with a bumped `stale` (30s) for the migration
|
|
23
|
+
* critical section — reused from the knowledge family so there is one source
|
|
24
|
+
* of truth for the lock config. `realpath: false` keeps the lock identity on
|
|
25
|
+
* the literal path so it is the SAME lock the local JSONL provider takes on
|
|
26
|
+
* this directory (PRR-U1): symlinked roots (e.g. macOS /var → /private/var)
|
|
27
|
+
* must not split the exclusion into two identities.
|
|
28
|
+
* Admission is fail-closed (#2577): if the destination lock cannot be
|
|
29
|
+
* acquired (a legitimate concurrent writer holds it, or acquisition fails for
|
|
30
|
+
* a storage reason), the migration throws a typed
|
|
31
|
+
* {@link MemoryMigrationLockError} and never runs unlocked.
|
|
24
32
|
*
|
|
25
33
|
* No writes happen here on the plugin-init path (invariant 1). Called only
|
|
26
34
|
* from the `/swarm memory link` / `/swarm memory unlink` command handlers.
|
|
27
35
|
*/
|
|
28
36
|
import { type MemoryOutcomeEvent } from './outcome-events.js';
|
|
29
37
|
import type { VettedMemoryRoot } from './storage-root.js';
|
|
38
|
+
/**
|
|
39
|
+
* Minimal typing for the async `proper-lockfile` API this engine uses,
|
|
40
|
+
* exposed through {@link _internals} so tests can classify acquisition
|
|
41
|
+
* failures deterministically (same DI pattern as `src/full-auto/state.ts`).
|
|
42
|
+
*/
|
|
43
|
+
type MigrationLockFile = {
|
|
44
|
+
lock: typeof import('proper-lockfile')['lock'];
|
|
45
|
+
};
|
|
46
|
+
/** Failure category for destination-lock admission (#2577, #2575 contract). */
|
|
47
|
+
export type MemoryMigrationLockErrorCategory = 'contention' | 'storage';
|
|
48
|
+
/**
|
|
49
|
+
* Typed failure for acquiring the destination migration lock. Thrown BEFORE
|
|
50
|
+
* the merge loop opens, so no destination or source write ever happens on a
|
|
51
|
+
* failed admission. Mirrors `FullAutoStateLockError` in
|
|
52
|
+
* `src/full-auto/state.ts` (#2575): stable category + code, cause preserved
|
|
53
|
+
* for diagnostics, and messages that never echo absolute host paths.
|
|
54
|
+
*/
|
|
55
|
+
export declare class MemoryMigrationLockError extends Error {
|
|
56
|
+
readonly category: MemoryMigrationLockErrorCategory;
|
|
57
|
+
readonly cause: unknown;
|
|
58
|
+
readonly code: `MEMORY_MIGRATION_LOCK_${Uppercase<MemoryMigrationLockErrorCategory>}`;
|
|
59
|
+
constructor(category: MemoryMigrationLockErrorCategory, message: string, cause?: unknown);
|
|
60
|
+
}
|
|
30
61
|
export interface MemoryFamilyMigrationCounts {
|
|
31
62
|
readonly perMember: ReadonlyArray<{
|
|
32
63
|
filename: string;
|
|
@@ -102,5 +133,6 @@ export declare const _internals: {
|
|
|
102
133
|
stageSqliteDb: typeof stageSqliteDb;
|
|
103
134
|
mergeStagedSqlite: typeof mergeStagedSqlite;
|
|
104
135
|
countRowsSafe: typeof countRowsSafe;
|
|
136
|
+
lockfile: MigrationLockFile;
|
|
105
137
|
};
|
|
106
138
|
export {};
|
package/dist/plan/ledger.d.ts
CHANGED
|
@@ -163,6 +163,20 @@ export declare function computePlanLedgerHash(plan: Plan): string;
|
|
|
163
163
|
* any structural change (description, acceptance, dependencies, files, added
|
|
164
164
|
* or removed tasks/phases) always must.
|
|
165
165
|
*
|
|
166
|
+
* DELIBERATE exception, recorded with #2532 (PLAN-4): `current_phase` — the
|
|
167
|
+
* execution cursor — IS included in this hash (and in
|
|
168
|
+
* {@link computePlanLedgerHash}). Unlike task/phase statuses, a cursor
|
|
169
|
+
* advance therefore DOES change the baseline hash: bindings and approved
|
|
170
|
+
* snapshots declared against the pre-advance plan stop matching, exactly as
|
|
171
|
+
* they already do for any save_plan revision. This is intentional — the
|
|
172
|
+
* hash bytes are persisted on every live binding (`planStructureHash`,
|
|
173
|
+
* verified with strict equality) and every critic-approved snapshot
|
|
174
|
+
* (`payload_hash`), so changing the normalization would silently invalidate
|
|
175
|
+
* all pre-existing state at upgrade. The bounded safety property: only a
|
|
176
|
+
* phase-boundary advancement moves the cursor (task-status churn inside a
|
|
177
|
+
* phase is hash-excluded), so mid-phase parallel siblings keep their
|
|
178
|
+
* bindings across ordinary task completion.
|
|
179
|
+
*
|
|
166
180
|
* This mirrors {@link computePlanLedgerHash}'s normalization byte-for-byte
|
|
167
181
|
* EXCEPT it omits the two status fields from the hashed payload. The two
|
|
168
182
|
* functions are deliberately distinct: {@link computePlanLedgerHash} is
|
package/dist/plan/manager.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ import { getWorktreeMergeFailure } from '../hooks/delegation-gate/worktree-merge
|
|
|
44
44
|
import { recordTaskAttempt } from '../services/run-memory.js';
|
|
45
45
|
import { isEpicModeActiveForProject } from '../turbo/epic/state.js';
|
|
46
46
|
import { commitTaskCompletion } from '../turbo/epic/task-commit.js';
|
|
47
|
-
import { readTaskScopes } from '../turbo/lean/conflicts.js';
|
|
48
47
|
import { type LedgerEvent, type LedgerEventInput, ledgerExists, loadLastApprovedPlan, readLedgerEventsWithIntegrity, replayFromLedger, takeSnapshotWithRetry } from './ledger';
|
|
49
48
|
/** Reset the startup ledger check flag. For testing only. */
|
|
50
49
|
export declare function resetStartupLedgerCheck(): void;
|
|
@@ -69,7 +68,6 @@ export declare const _internals: {
|
|
|
69
68
|
regeneratePlanMarkdown: typeof regeneratePlanMarkdown;
|
|
70
69
|
isGitRepo: typeof isGitRepo;
|
|
71
70
|
isEpicModeActiveForProject: typeof isEpicModeActiveForProject;
|
|
72
|
-
readTaskScopes: typeof readTaskScopes;
|
|
73
71
|
commitTaskCompletion: typeof commitTaskCompletion;
|
|
74
72
|
getWorktreeMergeFailure: typeof getWorktreeMergeFailure;
|
|
75
73
|
recordTaskAttempt: typeof recordTaskAttempt;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Plan-time parallel-execution verdict helper (#1656 / #1674 v8 flagship).
|
|
3
3
|
*
|
|
4
|
-
* Pure,
|
|
4
|
+
* Pure, side-effect-free pairwise conflict analysis for N proposed
|
|
5
5
|
* parallel task groups. Used by BOTH:
|
|
6
6
|
* - the `plan_conflict_check` tool (architect-facing advisory — see
|
|
7
7
|
* `src/tools/plan-conflict-check.ts`), and
|
|
@@ -14,23 +14,30 @@
|
|
|
14
14
|
* means.
|
|
15
15
|
*
|
|
16
16
|
* Design notes:
|
|
17
|
-
* - Sync by design: it reads only
|
|
18
|
-
* the
|
|
19
|
-
* `toolBefore` on every tool call
|
|
20
|
-
* helper would violate the bounded-gate
|
|
17
|
+
* - Sync by design: it reads only the authoritative v2 scope-binding store
|
|
18
|
+
* (the same authority `declare_scope` writes) via the hardened
|
|
19
|
+
* fail-closed readers. The gate runs in `toolBefore` on every tool call
|
|
20
|
+
* and must stay bounded; an async helper would violate the bounded-gate
|
|
21
|
+
* spirit. One binding-set scan is hoisted per verdict, never per task.
|
|
22
|
+
* - #2532 (PARALLEL-4): scope resolution deliberately does NOT consult the
|
|
23
|
+
* legacy v1 `.swarm/scopes/scope-<taskId>.json` projection — no production
|
|
24
|
+
* code writes it in the project root (its one writer targets lane
|
|
25
|
+
* worktrees), so v2-declared disjoint scopes used to be reported as
|
|
26
|
+
* `unknown_scopes` and parallel-first could never engage.
|
|
21
27
|
* - The helper itself NEVER calls `getCoChangePairs` (async + `git log`).
|
|
22
28
|
* Co-change signal is opt-in and supplied by the caller (the tool) via
|
|
23
29
|
* `options.cochangePairs`. The gate never supplies it, keeping the
|
|
24
30
|
* enforcement path git-free and fast.
|
|
25
|
-
* - Fail-closed: a
|
|
26
|
-
* with everything, so `verdict` can never be
|
|
27
|
-
* lacks a declared scope. This is the v8
|
|
31
|
+
* - Fail-closed: a task with no single live exact-plan v2 binding →
|
|
32
|
+
* `unknown`, which conflicts with everything, so `verdict` can never be
|
|
33
|
+
* `all_disjoint` while any task lacks a declared scope. This is the v8
|
|
34
|
+
* safety guarantee.
|
|
28
35
|
* - Writes nothing. Honors issue #1656's "read-only (writes nothing)" tool
|
|
29
36
|
* acceptance criterion.
|
|
30
37
|
*/
|
|
38
|
+
import { type Plan } from '../config/plan-schema.js';
|
|
31
39
|
import type { CoChangeEntry } from '../tools/co-change-analyzer.js';
|
|
32
40
|
import { type CoChangeThreshold } from '../turbo/epic/cochange-conflict.js';
|
|
33
|
-
import { normalizePath, pathsConflict, readTaskScopes } from '../turbo/lean/conflicts.js';
|
|
34
41
|
/**
|
|
35
42
|
* Per-pair conflict classification. Mirrors `EpicPairVerdict`'s signal
|
|
36
43
|
* decomposition but flattens `none` into `disjoint` for the plan-level view.
|
|
@@ -70,14 +77,22 @@ export interface ComputeParallelVerdictOptions {
|
|
|
70
77
|
cochangePairs?: CoChangeEntry[];
|
|
71
78
|
/** Override the co-change threshold. Defaults to `DEFAULT_PARALLEL_COCHANGE_THRESHOLD`. */
|
|
72
79
|
cochangeThreshold?: CoChangeThreshold;
|
|
80
|
+
/**
|
|
81
|
+
* The plan the verdict is computed against (issue #2532). Bindings must
|
|
82
|
+
* match its exact identity (`planId` + `planStructureHash`). When omitted,
|
|
83
|
+
* the helper synchronously reads `<directory>/.swarm/plan.json`; a missing
|
|
84
|
+
* or unparseable plan resolves every task to `unknown` (fail-closed).
|
|
85
|
+
*/
|
|
86
|
+
plan?: Plan;
|
|
73
87
|
}
|
|
74
88
|
/**
|
|
75
89
|
* Compute a pairwise conflict verdict for the given task ids.
|
|
76
90
|
*
|
|
77
|
-
* Pure + synchronous. Reads only
|
|
78
|
-
*
|
|
91
|
+
* Pure + synchronous. Reads only the authoritative v2 binding store (plus a
|
|
92
|
+
* bounded plan.json read when `options.plan` is omitted). Writes nothing.
|
|
93
|
+
* Fail-closed on any read/parse error (treats the task as `unknown`).
|
|
79
94
|
*
|
|
80
|
-
* @param directory Project root (for
|
|
95
|
+
* @param directory Project root (for the binding store and plan.json reads).
|
|
81
96
|
* @param taskIds Task ids to analyze. Caller is responsible for min-length
|
|
82
97
|
* validation (the tool requires ≥2; the gate only calls this
|
|
83
98
|
* with ≥2 pending tasks).
|
|
@@ -90,5 +105,4 @@ export declare function computeParallelVerdict(directory: string, taskIds: strin
|
|
|
90
105
|
* Equivalent to `computeParallelVerdict(...).verdict === 'all_disjoint'` but
|
|
91
106
|
* exposed as a named predicate so the gate reads as intent.
|
|
92
107
|
*/
|
|
93
|
-
export declare function isProvablyDisjoint(directory: string, taskIds: string[]): boolean;
|
|
94
|
-
export { normalizePath, pathsConflict, readTaskScopes };
|
|
108
|
+
export declare function isProvablyDisjoint(directory: string, taskIds: string[], options?: ComputeParallelVerdictOptions): boolean;
|
|
@@ -117,6 +117,47 @@ export declare function readScopeBindingFromDisk(input: {
|
|
|
117
117
|
requireDispatchCorrelation?: boolean;
|
|
118
118
|
requireDeclaration?: boolean;
|
|
119
119
|
}): ScopeBinding | null;
|
|
120
|
+
/**
|
|
121
|
+
* Resolve the currently-declared scope FILES for a task from the authoritative
|
|
122
|
+
* v2 binding store (issue #2532 / PARALLEL-4).
|
|
123
|
+
*
|
|
124
|
+
* Scheduling/conflict consumers (the v8 parallel verdict, Rule-2 auto-commit)
|
|
125
|
+
* must resolve task scopes from the same authority `declare_scope` writes —
|
|
126
|
+
* never from the legacy v1 `scope-<taskId>.json` projection, which no
|
|
127
|
+
* production code writes in the project root. This is a scheduling read, NOT
|
|
128
|
+
* write authorization: it deliberately does not require owner-session or
|
|
129
|
+
* dispatch correlation, but it DOES require an exact `planStructureHash`
|
|
130
|
+
* match so a declaration made against an older plan revision cannot certify
|
|
131
|
+
* disjointness for the current one.
|
|
132
|
+
*
|
|
133
|
+
* Fail-closed: zero live candidates (undeclared or store failure), live
|
|
134
|
+
* candidates that DISAGREE on the file set, or an empty file list all return
|
|
135
|
+
* `null`, which callers treat as "unknown scope" → serial. Multiple live
|
|
136
|
+
* candidates that AGREE on the exact same file set are NOT ambiguous: the
|
|
137
|
+
* delegation gate mints a dispatch-correlated binding (activation 'active',
|
|
138
|
+
* child owner) alongside the architect's declaration binding for the same
|
|
139
|
+
* task with the same files, and the scheduling question — "what is this
|
|
140
|
+
* task's currently-declared scope?" — has one answer whenever they agree.
|
|
141
|
+
*
|
|
142
|
+
* `bindingSet` lets a multi-task caller hoist ONE
|
|
143
|
+
* `readAllAuthoritativeScopeBindings` scan for the whole verdict (pass the
|
|
144
|
+
* result of {@link readAuthoritativeScopeBindingSet}); omit it for a
|
|
145
|
+
* single-task read.
|
|
146
|
+
*/
|
|
147
|
+
export declare function readDeclaredScopeFilesFromBindings(input: {
|
|
148
|
+
directory: string;
|
|
149
|
+
taskId: string;
|
|
150
|
+
plan: Plan;
|
|
151
|
+
bindingSet?: ScopeBinding[] | null;
|
|
152
|
+
}): string[] | null;
|
|
153
|
+
/**
|
|
154
|
+
* Hoisted single read of the authoritative v2 binding set for multi-task
|
|
155
|
+
* scheduling consumers (issue #2532): one bounded scan shared by every
|
|
156
|
+
* per-task {@link readDeclaredScopeFilesFromBindings} call in a verdict.
|
|
157
|
+
* Returns `null` when the store is unreadable/overloaded so callers fail
|
|
158
|
+
* closed to "unknown scope" per task.
|
|
159
|
+
*/
|
|
160
|
+
export declare function readAuthoritativeScopeBindingSet(directory: string): ScopeBinding[] | null;
|
|
120
161
|
export declare function resolveScopeBindingFromDisk(input: {
|
|
121
162
|
directory: string;
|
|
122
163
|
taskId: string;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* READ-ONLY CONTRACT (issue #1656 acceptance): this tool writes NOTHING — not
|
|
9
9
|
* to `.swarm/`, not to the source tree. It calls no other tools. The only I/O
|
|
10
|
-
* is reading `.swarm/plan.json` (via `loadPlanJsonOnly`) and
|
|
11
|
-
*
|
|
12
|
-
* `computeParallelVerdict
|
|
13
|
-
* opts in via `use_cochange: true`).
|
|
10
|
+
* is reading `.swarm/plan.json` (via `loadPlanJsonOnly`) and the
|
|
11
|
+
* authoritative v2 scope-binding store (via `readDeclaredScopeFilesFromBindings`
|
|
12
|
+
* inside `computeParallelVerdict`, #2532), plus an optional `git log` (only
|
|
13
|
+
* when the caller opts in via `use_cochange: true`).
|
|
14
14
|
*
|
|
15
15
|
* Why this tool exists alongside the gate: the gate (`delegation-gate.ts`)
|
|
16
16
|
* independently recomputes the verdict INLINE at coder-dispatch time via the
|
|
@@ -50,8 +50,9 @@ export interface PlanConflictCheckResult {
|
|
|
50
50
|
/**
|
|
51
51
|
* Pure executor (no createSwarmTool wrapper) so it is directly unit-testable.
|
|
52
52
|
*
|
|
53
|
-
* Reads `.swarm/plan.json` (to confirm the task ids exist) and
|
|
54
|
-
*
|
|
53
|
+
* Reads `.swarm/plan.json` (to confirm the task ids exist) and the
|
|
54
|
+
* authoritative v2 scope-binding store (via `computeParallelVerdict`,
|
|
55
|
+
* #2532). Writes nothing.
|
|
55
56
|
*/
|
|
56
57
|
export declare function executePlanConflictCheck(args: {
|
|
57
58
|
task_ids: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.178.
|
|
3
|
+
"version": "7.178.1",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-heg4em8j.js";
|
|
5
|
-
import"./index-hnvmj9wx.js";
|
|
6
|
-
import"./index-q9vb5e7n.js";
|
|
7
|
-
import"./index-qs8eth8h.js";
|
|
8
|
-
import"./index-bfz1jvcn.js";
|
|
9
|
-
import"./index-vfc7d22n.js";
|
|
10
|
-
import"./index-jzxeymr0.js";
|
|
11
|
-
import"./index-mpcp6rmj.js";
|
|
12
|
-
import"./index-txdagbh7.js";
|
|
13
|
-
import"./index-n1tcj1q7.js";
|
|
14
|
-
import"./index-6b295cas.js";
|
|
15
|
-
import"./index-zsm8h8y1.js";
|
|
16
|
-
import"./index-at0ygwwp.js";
|
|
17
|
-
import"./index-zex7644g.js";
|
|
18
|
-
import"./index-fyfbpz4f.js";
|
|
19
|
-
import"./index-y74n1sy8.js";
|
|
20
|
-
import"./index-549wxbe1.js";
|
|
21
|
-
import"./index-zsrtt42s.js";
|
|
22
|
-
import"./index-wkde35ej.js";
|
|
23
|
-
import"./index-pm7c6f66.js";
|
|
24
|
-
import"./index-2b1whj28.js";
|
|
25
|
-
import"./index-pt7h91zc.js";
|
|
26
|
-
import"./index-q7sjgr1y.js";
|
|
27
|
-
import"./index-kfk403mc.js";
|
|
28
|
-
import"./index-p27az2hc.js";
|
|
29
|
-
import"./index-rp0jk48x.js";
|
|
30
|
-
import"./index-29begjkp.js";
|
|
31
|
-
import"./index-zmb8fjp5.js";
|
|
32
|
-
import"./index-2s7dvzff.js";
|
|
33
|
-
import"./index-d5dexrv1.js";
|
|
34
|
-
import"./index-ffqy30e5.js";
|
|
35
|
-
import"./index-rtry5xyf.js";
|
|
36
|
-
import"./index-2vhkwy6v.js";
|
|
37
|
-
import"./index-frcemc0b.js";
|
|
38
|
-
import"./index-wrt875kh.js";
|
|
39
|
-
import"./index-gg44hytk.js";
|
|
40
|
-
import"./index-ke3m026z.js";
|
|
41
|
-
import"./index-j1v54ahd.js";
|
|
42
|
-
import"./index-y6a2bkp1.js";
|
|
43
|
-
import"./index-w4yjy3vp.js";
|
|
44
|
-
import"./index-tnjmn0dn.js";
|
|
45
|
-
import"./index-rdm3px0g.js";
|
|
46
|
-
import"./index-ry16d01s.js";
|
|
47
|
-
import"./index-yeh78c1g.js";
|
|
48
|
-
import"./index-2mdk6nt9.js";
|
|
49
|
-
import"./index-vzm6zre7.js";
|
|
50
|
-
import"./index-ae75rja9.js";
|
|
51
|
-
import"./index-yj1kr0ft.js";
|
|
52
|
-
import"./index-j3rkh9mp.js";
|
|
53
|
-
import"./index-7g4c7s5r.js";
|
|
54
|
-
import"./index-wfbh1bx8.js";
|
|
55
|
-
import"./index-zsp9de3k.js";
|
|
56
|
-
import"./index-1xnse449.js";
|
|
57
|
-
import"./index-c1ggtmpm.js";
|
|
58
|
-
import"./index-18hjycr1.js";
|
|
59
|
-
import"./index-zz7gzw57.js";
|
|
60
|
-
import"./index-4ddpvd5c.js";
|
|
61
|
-
import"./index-wbkxbgk8.js";
|
|
62
|
-
import"./index-m2n1rhgv.js";
|
|
63
|
-
import"./index-bk5tah7q.js";
|
|
64
|
-
import"./index-gknz3bv1.js";
|
|
65
|
-
import"./index-zpsr8rpc.js";
|
|
66
|
-
import"./index-wvghb3x6.js";
|
|
67
|
-
import"./index-9rwhas09.js";
|
|
68
|
-
import"./index-zgwm4ryv.js";
|
|
69
|
-
import"./index-a76rekgs.js";
|
|
70
|
-
export {
|
|
71
|
-
createCuratorLLMDelegate
|
|
72
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
handleGuardrailExplain
|
|
4
|
-
} from "./index-azy3tw6c.js";
|
|
5
|
-
import"./index-heg4em8j.js";
|
|
6
|
-
import"./index-hnvmj9wx.js";
|
|
7
|
-
import"./index-q9vb5e7n.js";
|
|
8
|
-
import"./index-qs8eth8h.js";
|
|
9
|
-
import"./index-bfz1jvcn.js";
|
|
10
|
-
import"./index-vfc7d22n.js";
|
|
11
|
-
import"./index-jzxeymr0.js";
|
|
12
|
-
import"./index-mpcp6rmj.js";
|
|
13
|
-
import"./index-txdagbh7.js";
|
|
14
|
-
import"./index-n1tcj1q7.js";
|
|
15
|
-
import"./index-6b295cas.js";
|
|
16
|
-
import"./index-zsm8h8y1.js";
|
|
17
|
-
import"./index-at0ygwwp.js";
|
|
18
|
-
import"./index-zex7644g.js";
|
|
19
|
-
import"./index-fyfbpz4f.js";
|
|
20
|
-
import"./index-y74n1sy8.js";
|
|
21
|
-
import"./index-549wxbe1.js";
|
|
22
|
-
import"./index-zsrtt42s.js";
|
|
23
|
-
import"./index-wkde35ej.js";
|
|
24
|
-
import"./index-pm7c6f66.js";
|
|
25
|
-
import"./index-2b1whj28.js";
|
|
26
|
-
import"./index-pt7h91zc.js";
|
|
27
|
-
import"./index-q7sjgr1y.js";
|
|
28
|
-
import"./index-kfk403mc.js";
|
|
29
|
-
import"./index-p27az2hc.js";
|
|
30
|
-
import"./index-rp0jk48x.js";
|
|
31
|
-
import"./index-29begjkp.js";
|
|
32
|
-
import"./index-zmb8fjp5.js";
|
|
33
|
-
import"./index-2s7dvzff.js";
|
|
34
|
-
import"./index-d5dexrv1.js";
|
|
35
|
-
import"./index-ffqy30e5.js";
|
|
36
|
-
import"./index-rtry5xyf.js";
|
|
37
|
-
import"./index-2vhkwy6v.js";
|
|
38
|
-
import"./index-frcemc0b.js";
|
|
39
|
-
import"./index-wrt875kh.js";
|
|
40
|
-
import"./index-gg44hytk.js";
|
|
41
|
-
import"./index-ke3m026z.js";
|
|
42
|
-
import"./index-j1v54ahd.js";
|
|
43
|
-
import"./index-y6a2bkp1.js";
|
|
44
|
-
import"./index-w4yjy3vp.js";
|
|
45
|
-
import"./index-tnjmn0dn.js";
|
|
46
|
-
import"./index-rdm3px0g.js";
|
|
47
|
-
import"./index-ry16d01s.js";
|
|
48
|
-
import"./index-yeh78c1g.js";
|
|
49
|
-
import"./index-2mdk6nt9.js";
|
|
50
|
-
import"./index-vzm6zre7.js";
|
|
51
|
-
import"./index-ae75rja9.js";
|
|
52
|
-
import"./index-yj1kr0ft.js";
|
|
53
|
-
import"./index-j3rkh9mp.js";
|
|
54
|
-
import"./index-7g4c7s5r.js";
|
|
55
|
-
import"./index-wfbh1bx8.js";
|
|
56
|
-
import"./index-zsp9de3k.js";
|
|
57
|
-
import"./index-1xnse449.js";
|
|
58
|
-
import"./index-c1ggtmpm.js";
|
|
59
|
-
import"./index-18hjycr1.js";
|
|
60
|
-
import"./index-zz7gzw57.js";
|
|
61
|
-
import"./index-4ddpvd5c.js";
|
|
62
|
-
import"./index-wbkxbgk8.js";
|
|
63
|
-
import"./index-m2n1rhgv.js";
|
|
64
|
-
import"./index-bk5tah7q.js";
|
|
65
|
-
import"./index-gknz3bv1.js";
|
|
66
|
-
import"./index-zpsr8rpc.js";
|
|
67
|
-
import"./index-wvghb3x6.js";
|
|
68
|
-
import"./index-9rwhas09.js";
|
|
69
|
-
import"./index-zgwm4ryv.js";
|
|
70
|
-
import"./index-a76rekgs.js";
|
|
71
|
-
export {
|
|
72
|
-
handleGuardrailExplain
|
|
73
|
-
};
|