@shapeshift-labs/frontier-swarm 0.5.4 → 0.5.6
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/README.md +18 -3
- package/benchmarks/package-bench.mjs +13 -0
- package/dist/index.d.ts +247 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +970 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ The published Frontier package family is generated from one shared package catal
|
|
|
36
36
|
- [`@shapeshift-labs/frontier-workflow`](https://www.npmjs.com/package/@shapeshift-labs/frontier-workflow): Serializable durable workflow/process manifests for Frontier apps, including steps, waits, approvals, timers, retries, expected patches, compensation, records, timelines, and registry graph output.
|
|
37
37
|
- [`@shapeshift-labs/frontier-worker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-worker): Serializable worker and edge task descriptors for Frontier apps, including queues, idempotency keys, retry and timeout policy, declared reads/writes/effects, snapshots, patch outputs, produced assets, execution records, logs, trace links, proof hashes, dedupe indexes, and registry graph output.
|
|
38
38
|
- [`@shapeshift-labs/frontier-queue`](https://www.npmjs.com/package/@shapeshift-labs/frontier-queue): Serializable durable queue state, leases, retries, dedupe keys, patch-carrying jobs, dead-letter records, replay evidence, and queue inspection for Frontier apps.
|
|
39
|
-
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, and result artifacts.
|
|
39
|
+
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, normalized job evidence, coordinator query artifacts, and result artifacts.
|
|
40
40
|
- [`@shapeshift-labs/frontier-lang-kernel`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kernel): Runtime-neutral semantic source graph, type/lattice/extern declarations, patch bundles, replay, hashing, evidence records, and merge-admission kernel for Frontier Lang.
|
|
41
41
|
- [`@shapeshift-labs/frontier-lang-parser`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-parser): Dependency-light Frontier Lang parser for modules, entities, state, actions, effects, types, externs, targets, and lattice declarations.
|
|
42
42
|
- [`@shapeshift-labs/frontier-lang-checker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-checker): Checker and diagnostics for Frontier Lang semantic documents, including type symbols, effects, regions, lattice laws, CRDT metadata, and patch evidence.
|
|
@@ -45,7 +45,13 @@ The published Frontier package family is generated from one shared package catal
|
|
|
45
45
|
- [`@shapeshift-labs/frontier-lang-rust`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-rust): Rust projection adapter for Frontier Lang semantic documents, including structs, aliases, and action stubs.
|
|
46
46
|
- [`@shapeshift-labs/frontier-lang-python`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-python): Python projection adapter for Frontier Lang semantic documents, including dataclasses, typed patch records, and action stubs.
|
|
47
47
|
- [`@shapeshift-labs/frontier-lang-c`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-c): C header projection adapter for Frontier Lang semantic documents, including structs and action prototypes.
|
|
48
|
-
- [`@shapeshift-labs/frontier-lang-compiler`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-compiler): Compiler facade for Frontier Lang source documents, including parse, check, hash, diagnostics,
|
|
48
|
+
- [`@shapeshift-labs/frontier-lang-compiler`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-compiler): Compiler facade for Frontier Lang source documents, including parse, check, hash, diagnostics, projection to TypeScript, JavaScript, Rust, Python, and C, and native source-import adapters for semantic merge evidence.
|
|
49
|
+
- [`@shapeshift-labs/frontier-lang-swift`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-swift): Swift source-language importer package for Frontier Lang semantic documents, including package-level metadata, SwiftSyntax adapter helpers, native import results, and semantic sidecar generation for SwiftSyntax/SwiftParser-shaped syntax trees.
|
|
50
|
+
- [`@shapeshift-labs/frontier-lang-kotlin`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kotlin): Kotlin PSI source-language importer package for Frontier Lang semantic documents, including package-level metadata, Kotlin PSI adapter helpers, native import results, and semantic sidecar generation for Kotlin PSI/KtFile-shaped syntax trees.
|
|
51
|
+
- [`@shapeshift-labs/frontier-lang-java`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-java): Java source-language importer package for Frontier Lang semantic documents, including package-level metadata, Java AST adapter helpers, native import results, and semantic sidecar generation for javac/JDT/JavaParser-shaped ASTs.
|
|
52
|
+
- [`@shapeshift-labs/frontier-lang-go`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-go): Go source-language importer package for Frontier Lang semantic documents, including package-level metadata, Go AST adapter helpers, native import results, and semantic sidecar generation for go/ast File or Package trees.
|
|
53
|
+
- [`@shapeshift-labs/frontier-lang-csharp`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-csharp): C# Roslyn source-language importer package for Frontier Lang semantic documents, including package-level metadata, Roslyn adapter helpers, native import results, and semantic sidecar generation for SyntaxTree/SyntaxNode-shaped ASTs.
|
|
54
|
+
- [`@shapeshift-labs/frontier-lang-clang`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-clang): Clang AST source-language importer package for Frontier Lang semantic documents, including package-level metadata, Clang AST JSON adapter helpers, native import results, and semantic sidecar generation for C/C++ translation units.
|
|
49
55
|
- [`@shapeshift-labs/frontier-lang-cli`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-cli): Command line interface for parsing, checking, hashing, and emitting Frontier Lang projects.
|
|
50
56
|
- [`@shapeshift-labs/frontier-lang`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang): Umbrella package for Frontier Lang kernel, parser, checker, and projection adapters.
|
|
51
57
|
- [`@shapeshift-labs/frontier-kv`](https://www.npmjs.com/package/@shapeshift-labs/frontier-kv): Serializable in-memory key/value state for Frontier apps, including TTL, versioned compare-and-set, batched patch mutations, scans, watchers, snapshots, JSONL event evidence, and replay verification.
|
|
@@ -133,6 +139,12 @@ Package source repositories:
|
|
|
133
139
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-python`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-python)
|
|
134
140
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-c`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-c)
|
|
135
141
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-compiler`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-compiler)
|
|
142
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-swift`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-swift)
|
|
143
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-kotlin`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-kotlin)
|
|
144
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-java`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-java)
|
|
145
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-go`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-go)
|
|
146
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-csharp`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-csharp)
|
|
147
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-clang`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-clang)
|
|
136
148
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-cli`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-cli)
|
|
137
149
|
- [`siliconjungle/-shapeshift-labs-frontier-lang`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang)
|
|
138
150
|
- [`siliconjungle/-shapeshift-labs-frontier-kv`](https://github.com/siliconjungle/-shapeshift-labs-frontier-kv)
|
|
@@ -280,6 +292,8 @@ The scale APIs are runtime-neutral and serializable:
|
|
|
280
292
|
- `createSwarmReviewerLanePlan` turns risky/conflicting merge bundles into reviewer-lane tasks,
|
|
281
293
|
- `createSwarmRunStoreShards` describes sharded event/result/checkpoint paths for large run stores,
|
|
282
294
|
- `createSwarmMergeAdmission` limits ready merges by count, touched paths/regions, and risk budget,
|
|
295
|
+
- `createSwarmCoordinatorDashboard` and `querySwarmCoordinatorDashboard` combine merge index entries, queue overlays, evidence indexes, admission decisions, duplicate groups, semantic sidecar summaries, source citations, and worker liveness into one coordinator-query surface with a compact merge score per job,
|
|
296
|
+
- `createSwarmAdaptiveLoadPlan` treats declared concurrency/resource values as maximums and derives lower effective caps from deterministic observations such as browser/resource contention, stale patches, merge conflicts, empty semantic sidecars, log noise, discovery-only overproduction, failed evidence, and healthy throughput,
|
|
283
297
|
- `createSwarmPatchStackPlan` clusters compatible bundles into candidate patch stacks by lane, path, region, disposition, and risk so reviewers can evaluate batches instead of individual worker directories,
|
|
284
298
|
- `createSwarmContextPack` gives workers compact task context: relevant files, API maps, known failures, focused/oracle commands, expected evidence, exclusions, evidence schema, playbooks, and explicit dead ends to avoid,
|
|
285
299
|
- `createSwarmOracleCorpus` indexes deterministic reference artifacts such as traces, snapshots, classifications, expected outputs, or fixtures without assuming a project domain,
|
|
@@ -330,6 +344,7 @@ That lets a parent swarm route implementation jobs to a deep model while evidenc
|
|
|
330
344
|
- `createSwarmArtifactRoutingPlan`, `createSwarmSchedulerRecommendations`
|
|
331
345
|
- `createSwarmFixtureCatalog`, `createSwarmProgressModel`, `createSwarmAutoReviewReport`, `createSwarmRebaseReport`
|
|
332
346
|
- `createSwarmUsageGovernor`, `checkSwarmUsageGovernor`
|
|
347
|
+
- `createSwarmAdaptiveLoadPlan`, `createSwarmScheduleInputFromAdaptiveLoadPlan`
|
|
333
348
|
- `classifySwarmMergeReadiness`, `classifySwarmMergeDisposition`
|
|
334
349
|
- `resolveSwarmChangedRegions`, `checkSwarmRegionOwnership`
|
|
335
350
|
- `decomposeSwarmFeature`
|
|
@@ -347,7 +362,7 @@ Run the package-local benchmark:
|
|
|
347
362
|
npm run bench
|
|
348
363
|
```
|
|
349
364
|
|
|
350
|
-
The benchmark writes `benchmarks/results/frontier-swarm-package-bench-latest.json` when run from the monorepo. These are Frontier-only package measurements for plan creation, manifest validation, hierarchical compute resolution, ownership checks, scheduling/leases, queue snapshots, queue overlays, merge bundles, merge indexes, merge admission, hotspot reports, context packs, oracle corpora, replay/debug/evidence helper creation, lane playbooks, patch stack plans, event routing, run checkpoints, JSONL, and proof hashing.
|
|
365
|
+
The benchmark writes `benchmarks/results/frontier-swarm-package-bench-latest.json` when run from the monorepo. These are Frontier-only package measurements for plan creation, manifest validation, hierarchical compute resolution, ownership checks, scheduling/leases, adaptive load planning, queue snapshots, queue overlays, merge bundles, merge indexes, merge admission, hotspot reports, context packs, oracle corpora, replay/debug/evidence helper creation, lane playbooks, patch stack plans, event routing, run checkpoints, JSONL, and proof hashing.
|
|
351
366
|
|
|
352
367
|
## Source Repository
|
|
353
368
|
|
|
@@ -4,6 +4,7 @@ import { performance } from 'node:perf_hooks';
|
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import {
|
|
6
6
|
checkSwarmOwnership,
|
|
7
|
+
createSwarmAdaptiveLoadPlan,
|
|
7
8
|
createSwarmContextPack,
|
|
8
9
|
createSwarmHotspotReport,
|
|
9
10
|
createSwarmLanePlaybook,
|
|
@@ -85,6 +86,18 @@ const rows = [
|
|
|
85
86
|
leases = createSwarmLeases({ schedule, workerId: 'bench-worker', now: 1000 + cursor++, leaseMs: 60000, count: 16 });
|
|
86
87
|
return schedule.ready.length + leases.length;
|
|
87
88
|
}),
|
|
89
|
+
measure('adaptive-load-' + taskCount, 8, () => createSwarmAdaptiveLoadPlan({
|
|
90
|
+
plan,
|
|
91
|
+
schedule,
|
|
92
|
+
mode: 'balanced',
|
|
93
|
+
maxLimits: { maxReadyJobs: 128 },
|
|
94
|
+
currentLimits: { maxReadyJobs: 64 },
|
|
95
|
+
observations: [
|
|
96
|
+
{ kind: 'semantic-empty', jobId: plan.jobs[cursor % plan.jobs.length].id, lane: plan.jobs[cursor % plan.jobs.length].lane },
|
|
97
|
+
{ kind: 'log-noise', lane: 'runtime', value: 200000 }
|
|
98
|
+
],
|
|
99
|
+
generatedAt: 1500 + cursor++
|
|
100
|
+
}).summary.decisionCount),
|
|
88
101
|
measure('queue-snapshot-' + taskCount, 8, () => {
|
|
89
102
|
const snapshot = createSwarmQueueSnapshot({ plan, run, leases, generatedAt: 2000 + cursor++ });
|
|
90
103
|
return snapshot.summary.jobCount + snapshot.summary.leaseCount;
|
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,10 @@ export declare const FRONTIER_SWARM_LANE_PLAYBOOK_KIND = "frontier.swarm.lane-pl
|
|
|
89
89
|
export declare const FRONTIER_SWARM_LANE_PLAYBOOK_VERSION = 1;
|
|
90
90
|
export declare const FRONTIER_SWARM_PATCH_STACK_PLAN_KIND = "frontier.swarm.patch-stack-plan";
|
|
91
91
|
export declare const FRONTIER_SWARM_PATCH_STACK_PLAN_VERSION = 1;
|
|
92
|
+
export declare const FRONTIER_SWARM_COORDINATOR_DASHBOARD_KIND = "frontier.swarm.coordinator-dashboard";
|
|
93
|
+
export declare const FRONTIER_SWARM_COORDINATOR_DASHBOARD_VERSION = 1;
|
|
94
|
+
export declare const FRONTIER_SWARM_ADAPTIVE_LOAD_PLAN_KIND = "frontier.swarm.adaptive-load-plan";
|
|
95
|
+
export declare const FRONTIER_SWARM_ADAPTIVE_LOAD_PLAN_VERSION = 1;
|
|
92
96
|
export declare const FRONTIER_SWARM_DEFAULT_CODEX_COMPUTE_ID = "codex.gpt-5.5.xhigh";
|
|
93
97
|
export declare const FRONTIER_SWARM_DEFAULT_MODEL = "gpt-5.5";
|
|
94
98
|
export declare const FRONTIER_SWARM_DEFAULT_REASONING_EFFORT = "xhigh";
|
|
@@ -111,6 +115,13 @@ export type FrontierSwarmBlackboardEntryKind = 'fact' | 'divergence' | 'rejected
|
|
|
111
115
|
export type FrontierSwarmProgressStatus = 'not-started' | 'declared' | 'implemented' | 'structure-verified' | 'visual-verified' | 'functional-verified' | 'collaboration-verified' | 'accepted' | 'rejected' | 'blocked' | string;
|
|
112
116
|
export type FrontierSwarmAutoReviewFindingKind = 'stub-risk' | 'missing-evidence' | 'ownership-violation' | 'overlarge-patch' | 'weak-evidence' | 'strict-source-policy' | string;
|
|
113
117
|
export type FrontierSwarmRebaseStatus = 'clean-apply' | 'textual-conflict' | 'semantic-overlap' | 'stale-evidence' | 'needs-rerun' | string;
|
|
118
|
+
export type FrontierSwarmCoordinatorLiveness = 'running' | 'finished' | 'missing' | 'unknown' | string;
|
|
119
|
+
export type FrontierSwarmCoordinatorAdmissionStatus = 'admitted' | 'deferred' | 'not-admissible' | 'unknown' | string;
|
|
120
|
+
export type FrontierSwarmAdaptiveMode = 'off' | 'observe' | 'conservative' | 'balanced' | 'aggressive' | string;
|
|
121
|
+
export type FrontierSwarmAdaptiveObservationKind = 'resource-capacity' | 'lane-capacity' | 'concurrency-key-capacity' | 'compute-capacity' | 'ready-capacity' | 'evidence-failure' | 'merge-conflict' | 'stale-patch' | 'browser-contention' | 'semantic-empty' | 'semantic-weak' | 'log-noise' | 'discovery-only-output' | 'duplicate-output' | 'budget-pressure' | 'slow-job' | 'healthy-throughput' | string;
|
|
122
|
+
export type FrontierSwarmAdaptiveObservationSeverity = 'info' | 'warning' | 'error' | 'critical' | string;
|
|
123
|
+
export type FrontierSwarmAdaptiveDecisionAction = 'observe' | 'decrease' | 'increase' | 'hold' | string;
|
|
124
|
+
export type FrontierSwarmAdaptiveDecisionTarget = 'max-ready-jobs' | 'lane' | 'concurrency-key' | 'compute' | 'resource' | string;
|
|
114
125
|
export interface FrontierSwarmComputeInput {
|
|
115
126
|
id: string;
|
|
116
127
|
kind?: FrontierSwarmComputeKind;
|
|
@@ -2465,6 +2476,235 @@ export interface FrontierSwarmPatchStack {
|
|
|
2465
2476
|
conflicts: FrontierSwarmMergeConflict[];
|
|
2466
2477
|
gateHints: string[];
|
|
2467
2478
|
}
|
|
2479
|
+
export interface FrontierSwarmCoordinatorProcessInput {
|
|
2480
|
+
pid?: number;
|
|
2481
|
+
role?: string;
|
|
2482
|
+
jobId?: string;
|
|
2483
|
+
runId?: string;
|
|
2484
|
+
status?: FrontierSwarmCoordinatorLiveness;
|
|
2485
|
+
startedAt?: number;
|
|
2486
|
+
lastSeenAt?: number;
|
|
2487
|
+
command?: readonly string[];
|
|
2488
|
+
metadata?: unknown;
|
|
2489
|
+
}
|
|
2490
|
+
export interface FrontierSwarmCoordinatorProcess {
|
|
2491
|
+
pid?: number;
|
|
2492
|
+
role: string;
|
|
2493
|
+
jobId?: string;
|
|
2494
|
+
runId?: string;
|
|
2495
|
+
status: FrontierSwarmCoordinatorLiveness;
|
|
2496
|
+
startedAt?: number;
|
|
2497
|
+
lastSeenAt?: number;
|
|
2498
|
+
command: string[];
|
|
2499
|
+
metadata?: JsonObject;
|
|
2500
|
+
}
|
|
2501
|
+
export interface FrontierSwarmCoordinatorSourceCitation {
|
|
2502
|
+
path: string;
|
|
2503
|
+
kind: string;
|
|
2504
|
+
symbol?: string;
|
|
2505
|
+
region?: string;
|
|
2506
|
+
confidence?: number;
|
|
2507
|
+
metadata?: JsonObject;
|
|
2508
|
+
}
|
|
2509
|
+
export interface FrontierSwarmCoordinatorDashboardInput {
|
|
2510
|
+
id?: string;
|
|
2511
|
+
plan?: FrontierSwarmPlan;
|
|
2512
|
+
run?: FrontierSwarmRun;
|
|
2513
|
+
bundles?: readonly FrontierSwarmMergeBundle[];
|
|
2514
|
+
mergeIndex?: FrontierSwarmMergeIndex;
|
|
2515
|
+
queueOverlay?: FrontierSwarmQueueOverlay;
|
|
2516
|
+
evidenceIndex?: FrontierSwarmEvidenceIndex;
|
|
2517
|
+
admission?: FrontierSwarmMergeAdmission;
|
|
2518
|
+
processes?: readonly FrontierSwarmCoordinatorProcessInput[];
|
|
2519
|
+
generatedAt?: number;
|
|
2520
|
+
metadata?: unknown;
|
|
2521
|
+
}
|
|
2522
|
+
export interface FrontierSwarmCoordinatorDashboard {
|
|
2523
|
+
kind: typeof FRONTIER_SWARM_COORDINATOR_DASHBOARD_KIND;
|
|
2524
|
+
version: typeof FRONTIER_SWARM_COORDINATOR_DASHBOARD_VERSION;
|
|
2525
|
+
id: string;
|
|
2526
|
+
runId?: string;
|
|
2527
|
+
planId?: string;
|
|
2528
|
+
generatedAt: number;
|
|
2529
|
+
jobs: FrontierSwarmCoordinatorJob[];
|
|
2530
|
+
duplicateGroups: FrontierSwarmCoordinatorDuplicateGroup[];
|
|
2531
|
+
processes: FrontierSwarmCoordinatorProcess[];
|
|
2532
|
+
byLane: Record<string, string[]>;
|
|
2533
|
+
byDisposition: Record<string, string[]>;
|
|
2534
|
+
byLiveness: Record<string, string[]>;
|
|
2535
|
+
mergeIndex?: FrontierSwarmMergeIndex;
|
|
2536
|
+
queueOverlay?: FrontierSwarmQueueOverlay;
|
|
2537
|
+
evidenceIndex?: FrontierSwarmEvidenceIndex;
|
|
2538
|
+
admission?: FrontierSwarmMergeAdmission;
|
|
2539
|
+
summary: {
|
|
2540
|
+
jobCount: number;
|
|
2541
|
+
readyToApplyCount: number;
|
|
2542
|
+
needsHumanPortCount: number;
|
|
2543
|
+
failedEvidenceCount: number;
|
|
2544
|
+
staleAgainstHeadCount: number;
|
|
2545
|
+
duplicateGroupCount: number;
|
|
2546
|
+
semanticSidecarCount: number;
|
|
2547
|
+
semanticRegionCount: number;
|
|
2548
|
+
averageMergeScore: number;
|
|
2549
|
+
};
|
|
2550
|
+
metadata?: JsonObject;
|
|
2551
|
+
}
|
|
2552
|
+
export interface FrontierSwarmCoordinatorJob {
|
|
2553
|
+
jobId: string;
|
|
2554
|
+
taskId?: string;
|
|
2555
|
+
lane?: string;
|
|
2556
|
+
title?: string;
|
|
2557
|
+
status: FrontierSwarmJobStatus;
|
|
2558
|
+
liveness: FrontierSwarmCoordinatorLiveness;
|
|
2559
|
+
mergeReadiness: FrontierSwarmMergeReadiness;
|
|
2560
|
+
disposition: FrontierSwarmMergeDisposition;
|
|
2561
|
+
riskLevel: FrontierSwarmRiskLevel;
|
|
2562
|
+
mergeScore: number;
|
|
2563
|
+
mergeScoreReasons: string[];
|
|
2564
|
+
admissionStatus: FrontierSwarmCoordinatorAdmissionStatus;
|
|
2565
|
+
admissionReasons: string[];
|
|
2566
|
+
staleAgainstHead: boolean;
|
|
2567
|
+
duplicateGroupId?: string;
|
|
2568
|
+
duplicateOf?: string;
|
|
2569
|
+
changedPaths: string[];
|
|
2570
|
+
changedRegions: string[];
|
|
2571
|
+
semanticRegions: string[];
|
|
2572
|
+
ownershipViolations: string[];
|
|
2573
|
+
patchPath?: string;
|
|
2574
|
+
evidencePaths: string[];
|
|
2575
|
+
primaryEvidencePath?: string;
|
|
2576
|
+
sourceCitations: FrontierSwarmCoordinatorSourceCitation[];
|
|
2577
|
+
tests: {
|
|
2578
|
+
passed: number;
|
|
2579
|
+
failed: number;
|
|
2580
|
+
requiredFailed: number;
|
|
2581
|
+
};
|
|
2582
|
+
semanticImport?: FrontierSwarmSemanticImportSummary;
|
|
2583
|
+
generatedAt: number;
|
|
2584
|
+
}
|
|
2585
|
+
export interface FrontierSwarmCoordinatorDuplicateGroup {
|
|
2586
|
+
id: string;
|
|
2587
|
+
key: string;
|
|
2588
|
+
jobIds: string[];
|
|
2589
|
+
reason: string;
|
|
2590
|
+
}
|
|
2591
|
+
export interface FrontierSwarmCoordinatorDashboardQuery {
|
|
2592
|
+
jobId?: string;
|
|
2593
|
+
lane?: string;
|
|
2594
|
+
disposition?: FrontierSwarmMergeDisposition;
|
|
2595
|
+
liveness?: FrontierSwarmCoordinatorLiveness;
|
|
2596
|
+
admissionStatus?: FrontierSwarmCoordinatorAdmissionStatus;
|
|
2597
|
+
pathIncludes?: string;
|
|
2598
|
+
region?: string;
|
|
2599
|
+
hasSemanticImport?: boolean;
|
|
2600
|
+
hasSemanticRegions?: boolean;
|
|
2601
|
+
staleAgainstHead?: boolean;
|
|
2602
|
+
duplicateOnly?: boolean;
|
|
2603
|
+
minMergeScore?: number;
|
|
2604
|
+
maxMergeScore?: number;
|
|
2605
|
+
}
|
|
2606
|
+
export interface FrontierSwarmCoordinatorDashboardQueryResult {
|
|
2607
|
+
jobs: FrontierSwarmCoordinatorJob[];
|
|
2608
|
+
summary: {
|
|
2609
|
+
jobCount: number;
|
|
2610
|
+
averageMergeScore: number;
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2613
|
+
export interface FrontierSwarmAdaptiveScheduleLimitsInput {
|
|
2614
|
+
maxReadyJobs?: number;
|
|
2615
|
+
maxLaneConcurrency?: Record<string, number>;
|
|
2616
|
+
maxConcurrencyKeyConcurrency?: Record<string, number>;
|
|
2617
|
+
maxComputeConcurrency?: Record<string, number>;
|
|
2618
|
+
resourceQuotas?: Record<string, number>;
|
|
2619
|
+
}
|
|
2620
|
+
export interface FrontierSwarmAdaptiveObservationInput {
|
|
2621
|
+
id?: string;
|
|
2622
|
+
kind: FrontierSwarmAdaptiveObservationKind;
|
|
2623
|
+
severity?: FrontierSwarmAdaptiveObservationSeverity;
|
|
2624
|
+
at?: number;
|
|
2625
|
+
value?: number;
|
|
2626
|
+
jobId?: string;
|
|
2627
|
+
taskId?: string;
|
|
2628
|
+
lane?: string;
|
|
2629
|
+
compute?: string;
|
|
2630
|
+
concurrencyKey?: string;
|
|
2631
|
+
resource?: string;
|
|
2632
|
+
path?: string;
|
|
2633
|
+
region?: string;
|
|
2634
|
+
reason?: string;
|
|
2635
|
+
reasons?: readonly string[];
|
|
2636
|
+
metadata?: unknown;
|
|
2637
|
+
}
|
|
2638
|
+
export interface FrontierSwarmAdaptiveObservation {
|
|
2639
|
+
id: string;
|
|
2640
|
+
kind: FrontierSwarmAdaptiveObservationKind;
|
|
2641
|
+
severity: FrontierSwarmAdaptiveObservationSeverity;
|
|
2642
|
+
at: number;
|
|
2643
|
+
value: number;
|
|
2644
|
+
jobId?: string;
|
|
2645
|
+
taskId?: string;
|
|
2646
|
+
lane?: string;
|
|
2647
|
+
compute?: string;
|
|
2648
|
+
concurrencyKey?: string;
|
|
2649
|
+
resource?: string;
|
|
2650
|
+
path?: string;
|
|
2651
|
+
region?: string;
|
|
2652
|
+
reasons: string[];
|
|
2653
|
+
metadata?: JsonObject;
|
|
2654
|
+
}
|
|
2655
|
+
export interface FrontierSwarmAdaptiveLoadPlanInput {
|
|
2656
|
+
id?: string;
|
|
2657
|
+
plan?: FrontierSwarmPlan;
|
|
2658
|
+
run?: FrontierSwarmRun;
|
|
2659
|
+
schedule?: FrontierSwarmSchedule;
|
|
2660
|
+
mergeIndex?: FrontierSwarmMergeIndex;
|
|
2661
|
+
dashboard?: FrontierSwarmCoordinatorDashboard;
|
|
2662
|
+
admission?: FrontierSwarmMergeAdmission;
|
|
2663
|
+
mode?: FrontierSwarmAdaptiveMode;
|
|
2664
|
+
maxLimits?: FrontierSwarmAdaptiveScheduleLimitsInput;
|
|
2665
|
+
currentLimits?: FrontierSwarmAdaptiveScheduleLimitsInput;
|
|
2666
|
+
minLimits?: FrontierSwarmAdaptiveScheduleLimitsInput;
|
|
2667
|
+
observations?: readonly FrontierSwarmAdaptiveObservationInput[];
|
|
2668
|
+
generatedAt?: number;
|
|
2669
|
+
metadata?: unknown;
|
|
2670
|
+
}
|
|
2671
|
+
export interface FrontierSwarmAdaptiveLoadDecision {
|
|
2672
|
+
id: string;
|
|
2673
|
+
action: FrontierSwarmAdaptiveDecisionAction;
|
|
2674
|
+
target: FrontierSwarmAdaptiveDecisionTarget;
|
|
2675
|
+
key?: string;
|
|
2676
|
+
previous?: number;
|
|
2677
|
+
next?: number;
|
|
2678
|
+
max?: number;
|
|
2679
|
+
min?: number;
|
|
2680
|
+
reason: string;
|
|
2681
|
+
observationIds: string[];
|
|
2682
|
+
}
|
|
2683
|
+
export interface FrontierSwarmAdaptiveLoadPlan {
|
|
2684
|
+
kind: typeof FRONTIER_SWARM_ADAPTIVE_LOAD_PLAN_KIND;
|
|
2685
|
+
version: typeof FRONTIER_SWARM_ADAPTIVE_LOAD_PLAN_VERSION;
|
|
2686
|
+
id: string;
|
|
2687
|
+
planId?: string;
|
|
2688
|
+
runId?: string;
|
|
2689
|
+
mode: FrontierSwarmAdaptiveMode;
|
|
2690
|
+
generatedAt: number;
|
|
2691
|
+
maxLimits: FrontierSwarmScheduleLimits;
|
|
2692
|
+
currentLimits: FrontierSwarmScheduleLimits;
|
|
2693
|
+
minLimits: FrontierSwarmScheduleLimits;
|
|
2694
|
+
effectiveLimits: FrontierSwarmScheduleLimits;
|
|
2695
|
+
observations: FrontierSwarmAdaptiveObservation[];
|
|
2696
|
+
decisions: FrontierSwarmAdaptiveLoadDecision[];
|
|
2697
|
+
summary: {
|
|
2698
|
+
observationCount: number;
|
|
2699
|
+
bottleneckCount: number;
|
|
2700
|
+
decisionCount: number;
|
|
2701
|
+
reducedCount: number;
|
|
2702
|
+
increasedCount: number;
|
|
2703
|
+
effectiveMaxReadyJobs?: number;
|
|
2704
|
+
maxReadyJobs?: number;
|
|
2705
|
+
};
|
|
2706
|
+
metadata?: JsonObject;
|
|
2707
|
+
}
|
|
2468
2708
|
export interface FrontierSwarmProof {
|
|
2469
2709
|
kind: typeof FRONTIER_SWARM_PROOF_KIND;
|
|
2470
2710
|
version: typeof FRONTIER_SWARM_PROOF_VERSION;
|
|
@@ -2536,6 +2776,13 @@ export declare function checkSwarmUsageGovernor(governorInput: FrontierSwarmUsag
|
|
|
2536
2776
|
}): FrontierSwarmUsageGovernorDecision;
|
|
2537
2777
|
export declare function createSwarmLanePlaybook(input: FrontierSwarmLanePlaybookInput): FrontierSwarmLanePlaybook;
|
|
2538
2778
|
export declare function createSwarmPatchStackPlan(input: FrontierSwarmPatchStackPlanInput): FrontierSwarmPatchStackPlan;
|
|
2779
|
+
export declare function createSwarmCoordinatorDashboard(input?: FrontierSwarmCoordinatorDashboardInput): FrontierSwarmCoordinatorDashboard;
|
|
2780
|
+
export declare function querySwarmCoordinatorDashboard(dashboard: FrontierSwarmCoordinatorDashboard, query?: FrontierSwarmCoordinatorDashboardQuery): FrontierSwarmCoordinatorDashboardQueryResult;
|
|
2781
|
+
export declare function createSwarmAdaptiveLoadPlan(input?: FrontierSwarmAdaptiveLoadPlanInput): FrontierSwarmAdaptiveLoadPlan;
|
|
2782
|
+
export declare function createSwarmScheduleInputFromAdaptiveLoadPlan(plan: FrontierSwarmPlan, adaptive: FrontierSwarmAdaptiveLoadPlan, input?: {
|
|
2783
|
+
run?: FrontierSwarmRun;
|
|
2784
|
+
now?: number;
|
|
2785
|
+
}): FrontierSwarmScheduleInput;
|
|
2539
2786
|
export declare function resolveSwarmCompute(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: FrontierSwarmTask | FrontierSwarmTaskInput): FrontierSwarmCompute;
|
|
2540
2787
|
export declare function createSwarmProof(input: FrontierSwarmManifest | FrontierSwarmPlan | FrontierSwarmRun, options?: {
|
|
2541
2788
|
generatedAt?: number;
|