@agentskit/harness 0.10.0 → 0.12.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.
- package/CHANGELOG.md +32 -0
- package/README.md +1 -1
- package/capabilities/public-surface.json +107 -84
- package/dist/cli.js +407 -73
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +211 -56
- package/dist/index.js +373 -85
- package/dist/index.js.map +1 -1
- package/docs/ADR-0003-doc-bridge-context-binding.md +10 -3
- package/docs/ADR-0031-loop-observability.md +36 -0
- package/docs/LOOP.md +7 -0
- package/docs/MODULE-BOUNDARIES.md +1 -0
- package/loop.config.example.yaml +1 -1
- package/package.json +2 -2
- package/release/manifest.json +3 -3
- package/release/notes.md +19 -0
package/dist/index.d.ts
CHANGED
|
@@ -734,6 +734,9 @@ declare const validateCapabilityManifest: (value: unknown) => CapabilityManifest
|
|
|
734
734
|
interface DocBridgeContextProviderOptions {
|
|
735
735
|
readonly root: string;
|
|
736
736
|
readonly indexPath?: string;
|
|
737
|
+
/** Reject indexes older than this many hours; 0 or undefined disables the age guard. */
|
|
738
|
+
readonly maxAgeHours?: number;
|
|
739
|
+
readonly now?: () => number;
|
|
737
740
|
}
|
|
738
741
|
interface DocBridgeIndexInspection {
|
|
739
742
|
readonly present: boolean;
|
|
@@ -745,7 +748,7 @@ interface DocBridgeIndexInspection {
|
|
|
745
748
|
}
|
|
746
749
|
/** Read-only inspection for doctor freshness checks (no network, no rebuild). */
|
|
747
750
|
declare const inspectDocBridgeIndex: (root: string, indexPath?: string, now?: number) => DocBridgeIndexInspection;
|
|
748
|
-
declare const createDocBridgeContextProvider: ({ root, indexPath }: DocBridgeContextProviderOptions) => ContextProvider;
|
|
751
|
+
declare const createDocBridgeContextProvider: ({ root, indexPath, maxAgeHours, now }: DocBridgeContextProviderOptions) => ContextProvider;
|
|
749
752
|
|
|
750
753
|
interface CommandResult {
|
|
751
754
|
readonly code: number | null;
|
|
@@ -2412,6 +2415,18 @@ declare const orcaStatus: (runner: CommandRunner, options?: OrcaCliOptions) => P
|
|
|
2412
2415
|
declare const orcaWorktrees: (runner: CommandRunner, options?: OrcaCliOptions) => Promise<readonly OrcaWorktree[]>;
|
|
2413
2416
|
declare const orcaAgentHooks: (runner: CommandRunner, options?: OrcaCliOptions) => Promise<Readonly<Record<string, OrcaAgentHookState>>>;
|
|
2414
2417
|
declare const orcaAccountList: (runner: CommandRunner, options?: OrcaCliOptions) => Promise<unknown>;
|
|
2418
|
+
interface OrcaMemorySample {
|
|
2419
|
+
/** Bytes the OS can hand to a new process right now, from macOS's real memory-pressure API — not a `vm_stat`
|
|
2420
|
+
* page-category approximation. Verified 2026-09-13 to read roughly 2x higher than the harness's own `vm_stat`
|
|
2421
|
+
* sum at the same instant, so prefer this when it's available. */
|
|
2422
|
+
readonly availableBytes: number;
|
|
2423
|
+
readonly totalBytes: number | null;
|
|
2424
|
+
/** Real RSS (bytes) of every currently-running dispatched worker session Orca can see, for averaging into a
|
|
2425
|
+
* measured per-agent cost instead of the static `machine.agentRssMb` guess. */
|
|
2426
|
+
readonly agentRssSamples: readonly number[];
|
|
2427
|
+
}
|
|
2428
|
+
/** Best-effort: a failed or unparseable `diagnostics memory` call must never block slot assessment. */
|
|
2429
|
+
declare const orcaDiagnosticsMemory: (runner: CommandRunner, options?: OrcaCliOptions) => Promise<OrcaMemorySample | null>;
|
|
2415
2430
|
interface OrcaCreatedWorktree {
|
|
2416
2431
|
readonly id: string;
|
|
2417
2432
|
readonly path: string;
|
|
@@ -2751,6 +2766,7 @@ declare const LoopConfigSchema: z.ZodObject<{
|
|
|
2751
2766
|
"artificial-analysis": "artificial-analysis";
|
|
2752
2767
|
builtin: "builtin";
|
|
2753
2768
|
}>>>;
|
|
2769
|
+
cliCacheHours: z.ZodDefault<z.ZodNumber>;
|
|
2754
2770
|
artificialAnalysis: z.ZodPrefault<z.ZodObject<{
|
|
2755
2771
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2756
2772
|
apiKeyEnv: z.ZodDefault<z.ZodString>;
|
|
@@ -3092,6 +3108,13 @@ interface SlotInput {
|
|
|
3092
3108
|
readonly osRelease?: string;
|
|
3093
3109
|
readonly freeBytes?: number;
|
|
3094
3110
|
readonly totalBytes?: number;
|
|
3111
|
+
/**
|
|
3112
|
+
* `orca diagnostics memory` result, when the caller fetched one. Preferred over the `vm_stat` approximation and
|
|
3113
|
+
* the static `machine.agentRssMb` guess — verified 2026-09-13 that Orca's own macOS memory-pressure reading runs
|
|
3114
|
+
* roughly 2x higher than this module's `vm_stat` sum at the same instant, and Orca already measures real
|
|
3115
|
+
* per-session RSS instead of guessing it. `freeBytes`/`totalBytes` (explicit test overrides) still win over this.
|
|
3116
|
+
*/
|
|
3117
|
+
readonly orcaMemory?: OrcaMemorySample | null;
|
|
3095
3118
|
}
|
|
3096
3119
|
/** Parse `vm_stat` (macOS): reclaimable = free + inactive + speculative + purgeable pages. */
|
|
3097
3120
|
declare const parseVmStat: (output: string) => number | null;
|
|
@@ -3153,6 +3176,17 @@ declare const resolveAlias: (provider: string, modelId: string, aliases?: Readon
|
|
|
3153
3176
|
/** Parse `grok models` human output into model ids. */
|
|
3154
3177
|
declare const parseGrokModelsOutput: (stdout: string) => readonly string[];
|
|
3155
3178
|
declare const listCliModels: (provider: string, bin: string, runner: CommandRunner, timeoutMs?: number) => Promise<readonly string[]>;
|
|
3179
|
+
declare const readCliModelsCache: (stateDir: string, provider: string) => {
|
|
3180
|
+
readonly fetchedAt: string;
|
|
3181
|
+
readonly ids: readonly string[];
|
|
3182
|
+
} | null;
|
|
3183
|
+
declare const writeCliModelsCache: (stateDir: string, provider: string, ids: readonly string[], now?: Date) => void;
|
|
3184
|
+
/**
|
|
3185
|
+
* `listCliModels`, but cached for `cacheHours` (like `readAaCache`/`writeAaCache` below): a provider's CLI model
|
|
3186
|
+
* list barely changes between releases, so spawning the CLI (e.g. `grok models`) on every tick/deliver run for
|
|
3187
|
+
* every role that needs it is wasted subprocess time — cache once, reuse until stale.
|
|
3188
|
+
*/
|
|
3189
|
+
declare const listCliModelsCached: (provider: string, bin: string, runner: CommandRunner, stateDir: string, cacheHours: number, now?: () => Date) => Promise<readonly string[]>;
|
|
3156
3190
|
interface ArtificialAnalysisModel {
|
|
3157
3191
|
readonly slug: string;
|
|
3158
3192
|
readonly name: string;
|
|
@@ -3753,7 +3787,7 @@ declare const dispatchRecordPath: (stateDir: string, identifier: string) => stri
|
|
|
3753
3787
|
declare const briefPath: (stateDir: string, identifier: string) => string;
|
|
3754
3788
|
declare const readDispatchRecord: (stateDir: string, identifier: string) => DispatchRecordFile | null;
|
|
3755
3789
|
declare const writeDispatchRecord: (stateDir: string, record: DispatchRecordFile) => string;
|
|
3756
|
-
declare const appendLoopEvent: (stateDir: string, event: Record<string, unknown>, bus?: LoopEventBus) => void;
|
|
3790
|
+
declare const appendLoopEvent: (stateDir: string, event: Record<string, unknown>, bus?: LoopEventBus, now?: () => Date) => void;
|
|
3757
3791
|
interface LoopState {
|
|
3758
3792
|
readonly person: string;
|
|
3759
3793
|
readonly providers: readonly ProviderAvailability[];
|
|
@@ -3764,6 +3798,8 @@ interface LoopState {
|
|
|
3764
3798
|
readonly leases: readonly DispatchLease[];
|
|
3765
3799
|
readonly busy: ReadonlySet<string>;
|
|
3766
3800
|
readonly candidates: readonly LoopIssue[];
|
|
3801
|
+
/** Catalog-discovered candidates per role (`models.routing.mode: catalog`), already resolved for `routing` above — reused by `runTick` for `generateContract`'s candidate fallback so it isn't resolved twice per tick. */
|
|
3802
|
+
readonly extrasByRole: Partial<Record<ModelRole, readonly ModelReference[]>>;
|
|
3767
3803
|
}
|
|
3768
3804
|
declare const gatherLoopState: (input: {
|
|
3769
3805
|
readonly loaded: LoadedLoopConfig;
|
|
@@ -3909,7 +3945,7 @@ interface DeliverInput {
|
|
|
3909
3945
|
}
|
|
3910
3946
|
declare const deliveryStatePath: (stateDir: string, identifier: string) => string;
|
|
3911
3947
|
declare const readDeliveryState: (stateDir: string, identifier: string) => DeliveryState;
|
|
3912
|
-
/** Every issue the loop dispatched
|
|
3948
|
+
/** Every issue the loop ever dispatched (finished or not) — callers that only care about in-flight work must filter on `readDeliveryState(...).finishedAt` themselves. */
|
|
3913
3949
|
declare const listDispatched: (stateDir: string) => readonly DispatchRecordFile[];
|
|
3914
3950
|
declare const precheckDeliver: (stateDir: string) => {
|
|
3915
3951
|
readonly work: boolean;
|
|
@@ -3987,9 +4023,16 @@ declare const parseAutomationRuns: (result: unknown) => readonly {
|
|
|
3987
4023
|
declare const loopStatus: (input: Pick<InstallInput, "configPath" | "loaded" | "runner">) => Promise<LoopStatusReport>;
|
|
3988
4024
|
|
|
3989
4025
|
declare const rotationStatePath: (stateDir: string) => string;
|
|
4026
|
+
/**
|
|
4027
|
+
* A lease protects the issue identity, but delivery work must not stop the
|
|
4028
|
+
* queue from moving on to independent work. Only leases with no delivery
|
|
4029
|
+
* state yet represent an implementation worker that should hold rotation.
|
|
4030
|
+
* Missing or invalid state stays fail-closed and remains blocking.
|
|
4031
|
+
*/
|
|
4032
|
+
declare const countRotationBlockingLeases: (loaded: LoadedLoopConfig, leases: readonly DispatchLease[]) => number;
|
|
3990
4033
|
/** Effective owner for this machine; without rotation the versioned config remains authoritative. */
|
|
3991
4034
|
declare const queueOwner: (loaded: LoadedLoopConfig) => string;
|
|
3992
|
-
/** Advance once, only after the current owner has no dispatchable work and no active lease. */
|
|
4035
|
+
/** Advance once, only after the current owner has no dispatchable work and no active implementation lease. */
|
|
3993
4036
|
declare const advanceQueueOwner: (loaded: LoadedLoopConfig, input: {
|
|
3994
4037
|
readonly queueEmpty: boolean;
|
|
3995
4038
|
readonly activeLeases: number;
|
|
@@ -4175,56 +4218,6 @@ interface DebriefReport {
|
|
|
4175
4218
|
declare const buildDebriefReport: (input: DebriefInput) => DebriefReport;
|
|
4176
4219
|
declare const renderDebriefMarkdown: (report: DebriefReport) => string;
|
|
4177
4220
|
|
|
4178
|
-
type WatchEventKind = 'DONE' | 'FAILED' | 'ACTION_REQUIRED' | 'PROGRESS';
|
|
4179
|
-
interface WatchEvent {
|
|
4180
|
-
readonly kind: WatchEventKind;
|
|
4181
|
-
readonly issue: string;
|
|
4182
|
-
readonly message: string;
|
|
4183
|
-
readonly phase: string;
|
|
4184
|
-
readonly pr: number | null;
|
|
4185
|
-
readonly finalOutcome: DeliverOutcome | null;
|
|
4186
|
-
readonly at: string;
|
|
4187
|
-
}
|
|
4188
|
-
interface WatchTargetSnapshot {
|
|
4189
|
-
readonly issue: string;
|
|
4190
|
-
readonly phase: string;
|
|
4191
|
-
readonly signature: string;
|
|
4192
|
-
readonly delivery: DeliveryState;
|
|
4193
|
-
readonly dispatch: DispatchRecordFile | null;
|
|
4194
|
-
readonly pr: PullRequestSnapshot | null;
|
|
4195
|
-
}
|
|
4196
|
-
interface WatchInput {
|
|
4197
|
-
readonly configPath?: string;
|
|
4198
|
-
readonly loaded?: LoadedLoopConfig;
|
|
4199
|
-
readonly runner?: CommandRunner;
|
|
4200
|
-
readonly issue?: string;
|
|
4201
|
-
readonly intervalMs?: number;
|
|
4202
|
-
readonly once?: boolean;
|
|
4203
|
-
readonly timeoutMs?: number;
|
|
4204
|
-
readonly livePr?: boolean;
|
|
4205
|
-
readonly now?: () => Date;
|
|
4206
|
-
readonly sleep?: (ms: number) => Promise<void>;
|
|
4207
|
-
readonly onEvent?: (event: WatchEvent) => void;
|
|
4208
|
-
}
|
|
4209
|
-
declare const classifyWatchPhase: (delivery: DeliveryState, pr: PullRequestSnapshot | null) => string;
|
|
4210
|
-
declare const classifyWatchEvent: (phase: string, delivery: DeliveryState, pr: PullRequestSnapshot | null, at: string, issue: string) => WatchEvent;
|
|
4211
|
-
declare const snapshotWatchTargets: (input: {
|
|
4212
|
-
readonly loaded: LoadedLoopConfig;
|
|
4213
|
-
readonly runner?: CommandRunner;
|
|
4214
|
-
readonly issue?: string;
|
|
4215
|
-
readonly livePr?: boolean;
|
|
4216
|
-
readonly now?: () => Date;
|
|
4217
|
-
}) => Promise<readonly WatchTargetSnapshot[]>;
|
|
4218
|
-
interface WatchReport {
|
|
4219
|
-
readonly status: 'done' | 'failed' | 'waiting' | 'action-required';
|
|
4220
|
-
readonly generatedAt: string;
|
|
4221
|
-
readonly events: readonly WatchEvent[];
|
|
4222
|
-
readonly targets: readonly WatchTargetSnapshot[];
|
|
4223
|
-
}
|
|
4224
|
-
/** Poll delivery state (and optionally live PRs). Emits DONE / FAILED / ACTION_REQUIRED / PROGRESS. Read-only. */
|
|
4225
|
-
declare const watchDeliveries: (input: WatchInput) => Promise<WatchReport>;
|
|
4226
|
-
declare const formatWatchEvent: (event: WatchEvent) => string;
|
|
4227
|
-
|
|
4228
4221
|
interface LoopEvent {
|
|
4229
4222
|
readonly at: string;
|
|
4230
4223
|
readonly type: string;
|
|
@@ -4319,7 +4312,11 @@ interface RetroReport {
|
|
|
4319
4312
|
readonly suggestions: readonly RetroSuggestion[];
|
|
4320
4313
|
readonly digest: string;
|
|
4321
4314
|
}
|
|
4322
|
-
|
|
4315
|
+
/** `sinceMs`, when given, skips a rotated archive whose rotation time is older than the window — every event in
|
|
4316
|
+
* that file was written before its own rotation, so if the rotation itself predates `sinceMs` nothing inside can
|
|
4317
|
+
* be in range (see `appendLoopEvent` in tick.ts for the rotation side). Omit `sinceMs` to read everything, exactly
|
|
4318
|
+
* as before archives existed. */
|
|
4319
|
+
declare const readLoopEvents: (stateDir: string, sinceMs?: number) => readonly LoopEvent[];
|
|
4323
4320
|
declare const parseSince: (value: string | undefined, now: Date) => Date;
|
|
4324
4321
|
/** Collapse an escalation reason to its head phrase so identical shapes group together. */
|
|
4325
4322
|
declare const normalizeReason: (reason: string) => string;
|
|
@@ -4358,6 +4355,164 @@ declare const runRetroStage: (input: {
|
|
|
4358
4355
|
readonly dryRun?: boolean;
|
|
4359
4356
|
}) => Promise<RetroStageReport>;
|
|
4360
4357
|
|
|
4358
|
+
type ObservabilitySeverity = 'warning' | 'action_required';
|
|
4359
|
+
interface ObservabilityAnomaly {
|
|
4360
|
+
readonly id: string;
|
|
4361
|
+
readonly severity: ObservabilitySeverity;
|
|
4362
|
+
readonly issue: string | null;
|
|
4363
|
+
readonly message: string;
|
|
4364
|
+
readonly evidence: Readonly<Record<string, unknown>>;
|
|
4365
|
+
}
|
|
4366
|
+
interface ObservabilityMetrics {
|
|
4367
|
+
readonly queueReady: number;
|
|
4368
|
+
readonly freeSlots: number;
|
|
4369
|
+
readonly runningWorkers: number;
|
|
4370
|
+
readonly maxAgents: number;
|
|
4371
|
+
readonly activeClaims: number;
|
|
4372
|
+
readonly inFlight: number;
|
|
4373
|
+
readonly held: number;
|
|
4374
|
+
readonly merged: number;
|
|
4375
|
+
readonly blocked: number;
|
|
4376
|
+
readonly fixRounds: number;
|
|
4377
|
+
readonly reviewFindings: number;
|
|
4378
|
+
readonly reviewIncomplete: number;
|
|
4379
|
+
readonly medianLeadTimeMin: number | null;
|
|
4380
|
+
readonly providerRemainingPercent: Readonly<Record<string, number | null>>;
|
|
4381
|
+
readonly machine: {
|
|
4382
|
+
readonly cpuCount: number;
|
|
4383
|
+
readonly load1PerCpuPercent: number;
|
|
4384
|
+
readonly memoryUsedPercent: number;
|
|
4385
|
+
readonly freeRamGb: number;
|
|
4386
|
+
};
|
|
4387
|
+
readonly memory: {
|
|
4388
|
+
readonly recalls: number;
|
|
4389
|
+
readonly hits: number;
|
|
4390
|
+
readonly approxCharsSaved: number;
|
|
4391
|
+
};
|
|
4392
|
+
readonly cache: {
|
|
4393
|
+
readonly cachedContracts: number;
|
|
4394
|
+
};
|
|
4395
|
+
readonly tokens: {
|
|
4396
|
+
readonly input: number;
|
|
4397
|
+
readonly output: number;
|
|
4398
|
+
readonly total: number;
|
|
4399
|
+
readonly cacheRead: number;
|
|
4400
|
+
readonly cacheWrite: number;
|
|
4401
|
+
};
|
|
4402
|
+
readonly events: Readonly<Record<string, number>>;
|
|
4403
|
+
}
|
|
4404
|
+
interface ObservabilityReport {
|
|
4405
|
+
readonly status: 'healthy' | 'action_required';
|
|
4406
|
+
readonly generatedAt: string;
|
|
4407
|
+
readonly project: string;
|
|
4408
|
+
readonly person: string;
|
|
4409
|
+
readonly windowHours: number;
|
|
4410
|
+
readonly anomalies: readonly ObservabilityAnomaly[];
|
|
4411
|
+
readonly metrics: ObservabilityMetrics;
|
|
4412
|
+
}
|
|
4413
|
+
interface ObservabilityTerminal {
|
|
4414
|
+
readonly handle: string;
|
|
4415
|
+
readonly status: string;
|
|
4416
|
+
readonly worktreeId: string | null;
|
|
4417
|
+
readonly lastOutputAt: number | null;
|
|
4418
|
+
readonly preview: string;
|
|
4419
|
+
}
|
|
4420
|
+
interface ObservabilitySnapshot {
|
|
4421
|
+
readonly generatedAt: string;
|
|
4422
|
+
readonly project: string;
|
|
4423
|
+
readonly person: string;
|
|
4424
|
+
readonly windowHours: number;
|
|
4425
|
+
readonly workerIdleTimeoutMin: number;
|
|
4426
|
+
readonly queueReady: number;
|
|
4427
|
+
readonly freeSlots: number;
|
|
4428
|
+
readonly runningWorkers: number;
|
|
4429
|
+
readonly maxAgents: number;
|
|
4430
|
+
readonly activeClaims: number;
|
|
4431
|
+
readonly missingDeliveryIssues: readonly string[];
|
|
4432
|
+
readonly terminals: readonly ObservabilityTerminal[];
|
|
4433
|
+
readonly finalizedDirtyWorktrees: readonly {
|
|
4434
|
+
readonly worktreeId: string;
|
|
4435
|
+
readonly issue: string | null;
|
|
4436
|
+
readonly files: number;
|
|
4437
|
+
}[];
|
|
4438
|
+
readonly issues: readonly Pick<DebriefIssueRow, 'issue' | 'phase' | 'ageMin' | 'heldFor'>[];
|
|
4439
|
+
readonly events: readonly LoopEvent[];
|
|
4440
|
+
readonly merged: number;
|
|
4441
|
+
readonly blocked: number;
|
|
4442
|
+
readonly fixRounds: number;
|
|
4443
|
+
readonly reviewFindings: number;
|
|
4444
|
+
readonly reviewIncomplete: number;
|
|
4445
|
+
readonly medianLeadTimeMin: number | null;
|
|
4446
|
+
readonly providerRemainingPercent: Readonly<Record<string, number | null>>;
|
|
4447
|
+
readonly machine: ObservabilityMetrics['machine'];
|
|
4448
|
+
readonly memory: ObservabilityMetrics['memory'];
|
|
4449
|
+
readonly cache: ObservabilityMetrics['cache'];
|
|
4450
|
+
readonly tokens: ObservabilityMetrics['tokens'];
|
|
4451
|
+
}
|
|
4452
|
+
/** Pure, deterministic anomaly assessment. No network calls or writes. */
|
|
4453
|
+
declare const assessObservability: (input: ObservabilitySnapshot) => ObservabilityReport;
|
|
4454
|
+
/** Collect current read-only state from the existing doctor, debrief and event log. */
|
|
4455
|
+
declare const runObservability: (input: {
|
|
4456
|
+
readonly configPath?: string;
|
|
4457
|
+
readonly loaded?: LoadedLoopConfig;
|
|
4458
|
+
readonly runner: CommandRunner;
|
|
4459
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
4460
|
+
readonly platform?: NodeJS.Platform;
|
|
4461
|
+
readonly since?: string;
|
|
4462
|
+
readonly now?: () => Date;
|
|
4463
|
+
}) => Promise<ObservabilityReport>;
|
|
4464
|
+
declare const renderObservabilityMarkdown: (report: ObservabilityReport) => string;
|
|
4465
|
+
|
|
4466
|
+
type WatchEventKind = 'DONE' | 'FAILED' | 'ACTION_REQUIRED' | 'PROGRESS';
|
|
4467
|
+
interface WatchEvent {
|
|
4468
|
+
readonly kind: WatchEventKind;
|
|
4469
|
+
readonly issue: string;
|
|
4470
|
+
readonly message: string;
|
|
4471
|
+
readonly phase: string;
|
|
4472
|
+
readonly pr: number | null;
|
|
4473
|
+
readonly finalOutcome: DeliverOutcome | null;
|
|
4474
|
+
readonly at: string;
|
|
4475
|
+
}
|
|
4476
|
+
interface WatchTargetSnapshot {
|
|
4477
|
+
readonly issue: string;
|
|
4478
|
+
readonly phase: string;
|
|
4479
|
+
readonly signature: string;
|
|
4480
|
+
readonly delivery: DeliveryState;
|
|
4481
|
+
readonly dispatch: DispatchRecordFile | null;
|
|
4482
|
+
readonly pr: PullRequestSnapshot | null;
|
|
4483
|
+
}
|
|
4484
|
+
interface WatchInput {
|
|
4485
|
+
readonly configPath?: string;
|
|
4486
|
+
readonly loaded?: LoadedLoopConfig;
|
|
4487
|
+
readonly runner?: CommandRunner;
|
|
4488
|
+
readonly issue?: string;
|
|
4489
|
+
readonly intervalMs?: number;
|
|
4490
|
+
readonly once?: boolean;
|
|
4491
|
+
readonly timeoutMs?: number;
|
|
4492
|
+
readonly livePr?: boolean;
|
|
4493
|
+
readonly now?: () => Date;
|
|
4494
|
+
readonly sleep?: (ms: number) => Promise<void>;
|
|
4495
|
+
readonly onEvent?: (event: WatchEvent) => void;
|
|
4496
|
+
}
|
|
4497
|
+
declare const classifyWatchPhase: (delivery: DeliveryState, pr: PullRequestSnapshot | null) => string;
|
|
4498
|
+
declare const classifyWatchEvent: (phase: string, delivery: DeliveryState, pr: PullRequestSnapshot | null, at: string, issue: string) => WatchEvent;
|
|
4499
|
+
declare const snapshotWatchTargets: (input: {
|
|
4500
|
+
readonly loaded: LoadedLoopConfig;
|
|
4501
|
+
readonly runner?: CommandRunner;
|
|
4502
|
+
readonly issue?: string;
|
|
4503
|
+
readonly livePr?: boolean;
|
|
4504
|
+
readonly now?: () => Date;
|
|
4505
|
+
}) => Promise<readonly WatchTargetSnapshot[]>;
|
|
4506
|
+
interface WatchReport {
|
|
4507
|
+
readonly status: 'done' | 'failed' | 'waiting' | 'action-required';
|
|
4508
|
+
readonly generatedAt: string;
|
|
4509
|
+
readonly events: readonly WatchEvent[];
|
|
4510
|
+
readonly targets: readonly WatchTargetSnapshot[];
|
|
4511
|
+
}
|
|
4512
|
+
/** Poll delivery state (and optionally live PRs). Emits DONE / FAILED / ACTION_REQUIRED / PROGRESS. Read-only. */
|
|
4513
|
+
declare const watchDeliveries: (input: WatchInput) => Promise<WatchReport>;
|
|
4514
|
+
declare const formatWatchEvent: (event: WatchEvent) => string;
|
|
4515
|
+
|
|
4361
4516
|
/** One recorded failure for an issue, kept for diagnostics (`loop retro`, `loop status`). */
|
|
4362
4517
|
interface IssueFailureRecord {
|
|
4363
4518
|
readonly kind: string;
|
|
@@ -4440,4 +4595,4 @@ declare const discoverIntake: (runner: CommandRunner, input: {
|
|
|
4440
4595
|
readonly now: () => Date;
|
|
4441
4596
|
}, options?: GitHubCliOptions) => Promise<readonly IntakeRecord[]>;
|
|
4442
4597
|
|
|
4443
|
-
export { AGENT_REGISTRY_SCHEMA_VERSION, ARTIFACT_SCHEMA_VERSION, ARTIFACT_TYPES, ASSURANCE_LEVELS, type AdapterMetadata, type AdapterTelemetry, type AdversarialReviewResult, type AgentAdapter, type AgentEvalCase, type AgentEvalReport, type AgentEvalSuite, type AgentMemoryAdapter, type AgentMemoryHit, type AgentMemoryKvStore, type AgentMemoryRecord, type AgentRegistry, type AgentRegistryEntry, AgentRegistryEntrySchema, AgentRegistrySchema, type AgentSessionOptions, type AgentUsage, type ApprovedAssumption, type ArgvRagContextProviderOptions, type ArtifactBinding, type ArtifactEnvelope, type ArtifactEnvelopeInput, type ArtifactType, type ArtificialAnalysisModel, type AssuranceLevel, type AutomationStatus, type AutonomyMode, BENCHMARK_SCHEMA_VERSION, BLOCK_STATUSES, type BenchmarkBinding, type BenchmarkComparison, type BenchmarkImprovementDirection, type BenchmarkManifest, type BenchmarkObservation, type BenchmarkObservationEvidence, type BenchmarkObservationInput, type BenchmarkObservationStatus, type BenchmarkReport, type BenchmarkRun, type BenchmarkSummary, type BenchmarkTask, type BlockAssessment, type BlockManifest, type BlockStatus, CAPABILITY_KINDS, CAPABILITY_MANIFEST_SCHEMA_VERSION, CHECK_CATEGORIES, COMPATIBILITY_COMPONENTS, COMPATIBILITY_SCHEMA_VERSION, CONTEXT_PROVIDER_SLOT, CONTRACT_CLOSE, CONTRACT_OPEN, CONTRACT_SCHEMA_VERSION, type CacheUsage, type CapabilityDescriptor, type CapabilityKind, type CapabilityManifest, type CapabilityManifestInput, type CatalogModel, type ChangedFile, type CheckCategory, type CheckOutcome, type CheckResult, type ChecksAssessment, type ClaimResult, type CodeReviewInput, type CodeReviewOutcome, type CodingAgentAdapter, type CodingAgentHandlerResult, type CodingAgentRequest, type CodingAgentResult, type CommandResult, type CommandRunOptions, type CommandRunner, type CompatibilityComponent, type CompatibilityComponentId, type CompatibilityManifest, type CompatibilityObservation, type CompatibilityReport, type CompatibilityStatus, type ContextProvider, type ContextQuery, type ContextReference, type ContextSnapshot, type ContractAssessment, type ContractOutcome, ContractOutcomeSchema, type ContractScope, type CooldownEntry, type CooldownState, type CoordinationIdentity, type CriterionStatus, type CycleIterationMetrics, type CycleMatrixRow, type CycleStepResult, type CycleStepStatus, type DebriefInput, type DebriefIssueRow, type DebriefReport, type DecisionPacket, type DeliverInput, type DeliverOutcome, type DeliverReport, type DeliverResult, type DeliveryState, type DetectProvidersInput, type DiscoveryAmbiguity, type DiscoveryCurrentInput, type DiscoveryCurrentResult, type DiscoveryDecisionLogEntry, type DiscoveryInput, type DiscoveryOption, type DiscoveryResult, type DispatchLease, type DispatchLedger, type DispatchRecord, type DispatchRecordFile, type Disposer, type DocBridgeIndexInspection, type DockerMount, type DockerRuntimeEvidence, type DockerToolDefinition, type DoctorCheck, type DoctorCheckStatus, EVAL_COMPONENTS, EVAL_LAYERS, EVAL_MANIFEST_SCHEMA_VERSION, EVENT_LOG_GENESIS, EVIDENCE_BUNDLE_SCHEMA_VERSION, type EffortLevel, type EvalBatteryReport, type EvalCaseDefinition, type EvalCaseReport, type EvalComponent, type EvalExpectation, type EvalLayer, type EvalManifest, type EvalObservation, type EvalObservationStatus, type EventLogLock, type EventLogLockRecovery, type EventLogLockStatus, type EventLogVerification, type EventStore, type EvidenceArtifact, type EvidenceBundle, type EvidenceBundleFile, type EvidenceBundleSignature, type EvidenceBundleVerification, type EvidenceReference, type ExecutePhaseProfileOptions, type FailureClass, type FailureClassification, type FetchQueueInput, FileArtifactStore, FileEventStore, type FilePreflightPlan, type GateAssessment, type GateBinding, type GateCriterion, type GenerateContractInput, type GitHubCliOptions, type GuidedInstallIO, type GuidedInstallInput, type GuidedInstallReport, HARNESS_ERROR_CATALOG, HARNESS_ERROR_CODES, HARNESS_EVENT_ENVELOPE_SCHEMA_VERSION, HARNESS_EVENT_SCHEMA_VERSION, HARNESS_EVENT_TYPES, HARNESS_PLUGIN_API_VERSION, HARNESS_REPO_URL, type HandoffBriefInput, HarnessError, type HarnessErrorClassification, type HarnessErrorDisposition, type HarnessEvent, type HarnessEventContext, type HarnessEventEnvelope, type HarnessEventEnvelopeInput, type HarnessEventInput, type HarnessEventListener, type HarnessEventPayloads, type HarnessEventProvenance, type HarnessEventType, type HarnessPlugin, type HarnessPluginContext, IMPROVEMENT_CYCLE_STEPS, type ImprovementCycleAssessment, type ImprovementCycleInput, type ImprovementCycleIteration, type ImprovementCycleStep, type InstallAction, type InstallInput, type InstallReport, type IntakeRecord, type IssueFailureRecord, type IssueFailureState, LEARNING_STATUSES, LEGAL_TRANSITIONS, LOOP_CONFIG_FILE, LOOP_CONFIG_SCHEMA_VERSION, LOOP_LOCAL_CONFIG_FILE, LOOP_STAGES, type LearningRecord, type LearningStatus, type LearningsLedger, type LinearIssueDetail, type LinearListInput, type LinearQueueFilter, type LinearWriteOptions, type LlmCache, type LlmCacheKeyInput, type LlmCacheStats, type LoadedConfig, type LoadedLoopConfig, type LocalConfigAnswers, type LocalConfigPrompter, type LoopConfig, type LoopConfigInput, LoopConfigSchema, type LoopDoctorInput, type LoopDoctorReport, type LoopEvent, type LoopEventBus, type LoopEventListener, type LoopEventPayload, type LoopHookListener, type LoopHookName, type LoopHookPayload, type LoopHookResult, type LoopIssue, type LoopPluginModule, type LoopProviderConfig, type LoopStage, type LoopStageName, type LoopState, type LoopStatusReport, MEMORY_SCOPES, MODEL_ROLES, type MachineMetrics, type MachineSample, type MachineThresholds, type McpPolicy, type McpToolBridge, type McpToolBridgeOptions, type McpToolCallInput, type McpToolCallResult, type MemoryContextPlan, type MemoryPromptSelection, type MemoryScope, type MemoryUsage, type MetricStatus, type ModelBinding, type ModelPolicy, type ModelQuality, type ModelReference, type ModelRole, type NormalizedPhaseProfile, type OptimizationComparison, type OptimizationObservation, type OrcaAgentHookState, type OrcaAutomation, type OrcaAutomationSpec, type OrcaCliOptions, type OrcaCreatedWorktree, type OrcaDispatchInput, type OrcaDispatchPlan, type OrcaLeaseState, type OrcaLifecycleInput, type OrcaLifecycleProjection, type OrcaStatus as OrcaRuntimeStatus, type OrcaSendReceipt, type OrcaTerminal, type OrcaWorktree, type OutcomeProgress, type OutcomeProgressStatus, PHASE_DECISIONS, PHASE_EFFECTS, PHASE_EFFECT_ACTIONS, PHASE_MODES, PR_FIELDS, type ParallelismUsage, type PhaseAmbiguity, type PhaseContext, type PhaseDecision, type PhaseDecisionPacket, type PhaseDefinition, type PhaseEffect, type PhaseEffectAction, type PhaseEffectPolicy, type PhaseExecution, type PhaseExecutionReport, type PhaseGateEvaluator, type PhaseGateResult, type PhaseHandler, type PhaseHandlerResult, type PhaseMachineMetrics, type PhaseMode, type PhasePreflight, type PhasePreflightResult, type PhaseProfile, type PhaseResumeState, type PhaseRetryPolicy, type PhaseRoutePlan, type PhaseTelemetry, type PhaseTokenMetrics, type PiiKind, type PiiMatch, type PiiScanResult, type PilotAssessment, type PilotEntry, type PilotManifest, type PinnedSkill, type PinnedSkillRef, type PluginContribution, type PluginRegistry, type PluginSlot, type PolicyDecision, type PolicyGate, type PolicyRequest, type PolicyRule, type ProcessToolDefinition, type ProductionEvidence, type ProviderAuthStatus, type ProviderAvailability, type ProviderCatalog, type ProviderFailure, type ProviderSpec, type ProviderUsage, type PullRequestApproval, type PullRequestCheck, type PullRequestDraft, type PullRequestSnapshot, QUALITY_DIMENSIONS, type QaTransitionAssessment, type QualityDimension, type QualityDimensionScore, type QualityMatrix, REVIEW_SEVERITIES, RUN_STATES, type RagContextProviderOptions, type RagQueryResult, type RankedModel, type RecoveryObservation, type RecoveryPolicy, type RecoveryResult, type RepositoryProfile, type ResolvedAgent, type RetroInput, type RetroIssueRow, type RetroReport, type RetroStageReport, type RetroSuggestion, type RetroTarget, type RetroWindow, type ReviewFinding, type ReviewLens, type ReviewSeverity, type ReviewVerdict, type RichIO, type RoutingDecision, type RoutingSkip, type RunOutcome, type RunReconciliation, type RunState, type RuntimeConfig, type RuntimeExperimentCandidate, type RuntimeExperimentResult, STATES, SURFACE_NAMES, type SessionRecorder, type SlotAssessment, type SlotInput, type SourceSnapshot, type StagePauseEntry, type StagePauseState, type StateTransition, type StatusBlock, type StatusSnapshot, type StoredContract, type StructuredEvidence, type SurfaceName, type SurfaceRequirement, type TaskContract, TaskContractSchema, type TeamMember, type TickCandidateResult, type TickInput, type TickOutcome, type TickReport, type TokenUsage, type ToolDefinition, type ToolExecutionRequest, type ToolExecutionResult, type ToolRuntime, type TrackingAdapter, type TrackingConfig, type TrackingTransition, type TrustedEvidenceKey, type UsageMetric, type UsageWindow, type VerificationCheck, type VerificationConfig, type VerificationRun, WIP_STATES, type WatchEvent, type WatchEventKind, type WatchInput, type WatchReport, type WatchTargetSnapshot, type WatchdogBlocker, type WatchdogBudget, type WatchdogResult, type WipAssessment, type WipAssessmentInput, type WipEntry, type WipState, type WorkerBriefInput, type WorkflowNode, type WorkflowResult, activeCooldowns, adaptiveConcurrency, advanceQueueOwner, appendLoopEvent, approveRun, approvedDecision, artifactDigest, artifactFilePath, artifactIsFresh, artifactMarkdownPath, assertHuman, assessAcceptance, assessAgentEval, assessBlock, assessChecks, assessCompatibility, assessContract, assessDiscovery, assessImprovementCycle, assessIntegration, assessPilot, assessPreflight, assessProduction, assessQaTransition, assessSlots, assessWip, assessWorktreeCleanup, atLeast, authStatusFor, authorizeRun, automationName, automationPrompt, automationSpecs, availableMemoryBytes, benchmarkRuns, branchFor, briefPath, buildDebriefReport, buildListIssuesArgv, buildRetroReport, buildReviewArgv, buildSuggestions, busyIssues, cancelRun, classifyFailure, classifyHarnessError, classifyProviderFailure, classifyWatchEvent, classifyWatchPhase, cleanTaskArtifacts, clearIssueFailures, clearProviderCooldown, compareOptimization, compareVersions, composePullRequest, contractIsFresh, contractPath, cooldownPath, cooldownUntil, countRunningWorkers, createArgvRagContextProvider, createArtifactEnvelope, createCapabilityManifest, createCodingAgentAdapter, createCompatibilityManifest, createConfiguredToolRuntime, createDispatchLedger, createDocBridgeContextProvider, createDockerToolRuntime, createEvalManifest, createFileMemoryAdapter, createFileMemoryKvStore, createHarnessEventEnvelope, createInMemoryMemoryAdapter, createKvMemoryAdapter, createLinearTrackingAdapter, createLlmCache, createLlmCacheKey, createLoopEventBus, createMachineMonitor, createMcpToolBridge, createModelPolicy, createOrcaDispatchPlan, createOrcaLifecycleProjection, createPhaseArtifact, createPhaseProfile, createPluginRegistry, createPluginSlot, createPolicyGate, createProcessRunner, createProcessToolRuntime, createPullRequestApproval, createQualityMatrix, createRagContextProvider, createRichIO, createSessionRecorder, createStatusSnapshot, createToolRuntime, createTrackingAdapter, createTrackingTransition, deliveryStatePath, detectProviders, discoverIntake, dispatchRecordPath, evaluateWatchdog, executePhaseProfile, exportEvidenceBundle, extractResetsAt, fetchArtificialAnalysisModels, fetchLinearIssue, fetchLinearQueue, fetchTeamMembers, filterAndOrderQueue, findExecutable, formatWatchEvent, gatherLoopState, generateContract, githubComment, githubCommentArgv, githubCommentExists, githubLabelRemove, githubMerge, githubMergeArgv, githubOpenPullRequests, githubPullRequest, githubPullRequestsForBranch, hasLocalConfig, hashContextSnapshot, hashContextSnapshots, hashMcpArgs, inspectDocBridgeIndex, inspectEventLogLock, installLoopAutomations, installPreflight, intakeIssueId, intakePath, isDiscoveryCurrent, isIssuePaused, isStagePaused, isWsl, issueFailurePath, launchWorkerTerminal, learningToMemoryRecord, learningsPath, linearAttach, linearAttachArgv, linearCommentAdd, linearCommentAddArgv, linearLabelAdd, linearLabelArgv, linearLabelRemove, linearStatusSet, linearStatusSetArgv, listCliModels, listDispatched, listIntake, listPausedIssues, loadAgentRegistry, loadAliases, loadBenchmarkManifest, loadBuiltinCatalog, loadConfig, loadLatestRun, loadLoopConfig, loadLoopPlugins, loadPinnedSkills, localConfigPath, loopStatus, markProviderExhausted, memoryDigestOf, mergeLoopConfig, modelFor, normalizeReason, openLoopMemory, orcaAccountList, orcaAgentHooks, orcaAutomationCreateArgv, orcaAutomationEditArgv, orcaAutomationRemove, orcaAutomationRun, orcaAutomationRuns, orcaAutomationsList, orcaJson, orcaStatus, orcaTerminalCreate, orcaTerminalList, orcaTerminalScreen, orcaTerminalSend, orcaTerminalWait, orcaVersion, orcaWorktreeCreate, orcaWorktreeRemove, orcaWorktreeSet, orcaWorktreeSetArgv, orcaWorktrees, parseAgentRegistryText, parseArtificialAnalysisPayload, parseAutomationRuns, parseContractOutput, parseGrokModelsOutput, parseJsonEnvelope, parseLinearIssueDetail, parseLinearIssues, parseLoopConfigText, parseMemInfo, parseModelRef, parseOrcaAgentHooks, parseOrcaAutomations, parseOrcaSendReceipt, parseOrcaStatus, parseOrcaTerminals, parseOrcaVersion, parseOrcaWorktreeCreate, parseOrcaWorktrees, parseProviderUsage, parsePullRequest, parseRagQueryOutput, parseRetro, parseReviewResult, parseSince, parseTeamMembers, parseUsageWindows, parseVmStat, pauseIssue, planFilePreflight, planMemoryContext, planPhaseProfile, planRun, precheckCommand, precheckDeliver, precheckTick, preferMemoryOverDocBridge, promoteLearnings, promoteLearningsToMemory, promptLocalConfig, providerIdentity, providerSpecs, queueOwner, rankModels, readAaCache, readArtifactFile, readContextSnapshots, readCooldowns, readDeliveryState, readDispatchRecord, readEvidenceTrustStore, readIntake, readIssueFailures, readLearningsLedger, readLoopEvents, readOutcomeProgress, readStagePause, readStoredContract, reconcileRun, recordBenchmarkObservation, recordIssueFailure, recordStageRunResult, recoverEventLogLock, recoveryDelayMs, remainingUsagePercent, renderArtifactMarkdown, renderContractPrompt, renderDebriefMarkdown, renderFindingsForWorker, renderHandoffBrief, renderHeadlessArgv, renderLocalConfig, renderPinnedSkills, renderRetroMarkdown, renderTuiCommand, renderWorkerBrief, resolveAgentForRole, resolveAlias, resolveCatalogCandidates, resolveDocContext, resumeIssue, resumeStage, resumeStateFromArtifacts, retroLearnings, retryRun, rotationStatePath, routeAllRoles, runAdversarialReview, runAgentEval, runCodeReview, runDeliver, runEvalBattery, runGuidedInstall, runLoopDoctor, runRetroStage, runTick, runWithRecovery, runWorkflow, sampleMachine, scanForPii, selectMemoryForPrompt, selectModel, selectRuntime, severityRank, shellQuote, skillDigest, skillRefs, snapshotWatchTargets, stageEntry, stagePausePath, startRun, summarizeMachine, tiersFor, touchesProtectedPaths, transition, undeclaredOrcaProviders, uninstallLoopAutomations, unknownTelemetry, untrusted, upsertProposedLearnings, usageRankTuple, validateAdapterMetadata, validateArtifactEnvelope, validateBenchmarkManifest, validateBlockManifest, validateCacheableOperation, validateCapabilityManifest, validateCompatibilityManifest, validateConfig, validateContextSnapshot, validateContextSnapshots, validateEvalManifest, validateHarnessErrorClassification, validateHarnessEventEnvelope, validateLoopConfig, validateMemoryRecord, validateOptimizationObservation, validatePhaseTelemetry, validateSafeCommand, validateStatusSnapshot, verifyEvidenceBundle, verifyPullRequestApproval, verifyRun, watchDeliveries, worktreeNameFor, writeAaCache, writeDispatchRecord, writeIdFor, writeLearningsLedger, writeLocalConfig, writeStoredContract };
|
|
4598
|
+
export { AGENT_REGISTRY_SCHEMA_VERSION, ARTIFACT_SCHEMA_VERSION, ARTIFACT_TYPES, ASSURANCE_LEVELS, type AdapterMetadata, type AdapterTelemetry, type AdversarialReviewResult, type AgentAdapter, type AgentEvalCase, type AgentEvalReport, type AgentEvalSuite, type AgentMemoryAdapter, type AgentMemoryHit, type AgentMemoryKvStore, type AgentMemoryRecord, type AgentRegistry, type AgentRegistryEntry, AgentRegistryEntrySchema, AgentRegistrySchema, type AgentSessionOptions, type AgentUsage, type ApprovedAssumption, type ArgvRagContextProviderOptions, type ArtifactBinding, type ArtifactEnvelope, type ArtifactEnvelopeInput, type ArtifactType, type ArtificialAnalysisModel, type AssuranceLevel, type AutomationStatus, type AutonomyMode, BENCHMARK_SCHEMA_VERSION, BLOCK_STATUSES, type BenchmarkBinding, type BenchmarkComparison, type BenchmarkImprovementDirection, type BenchmarkManifest, type BenchmarkObservation, type BenchmarkObservationEvidence, type BenchmarkObservationInput, type BenchmarkObservationStatus, type BenchmarkReport, type BenchmarkRun, type BenchmarkSummary, type BenchmarkTask, type BlockAssessment, type BlockManifest, type BlockStatus, CAPABILITY_KINDS, CAPABILITY_MANIFEST_SCHEMA_VERSION, CHECK_CATEGORIES, COMPATIBILITY_COMPONENTS, COMPATIBILITY_SCHEMA_VERSION, CONTEXT_PROVIDER_SLOT, CONTRACT_CLOSE, CONTRACT_OPEN, CONTRACT_SCHEMA_VERSION, type CacheUsage, type CapabilityDescriptor, type CapabilityKind, type CapabilityManifest, type CapabilityManifestInput, type CatalogModel, type ChangedFile, type CheckCategory, type CheckOutcome, type CheckResult, type ChecksAssessment, type ClaimResult, type CodeReviewInput, type CodeReviewOutcome, type CodingAgentAdapter, type CodingAgentHandlerResult, type CodingAgentRequest, type CodingAgentResult, type CommandResult, type CommandRunOptions, type CommandRunner, type CompatibilityComponent, type CompatibilityComponentId, type CompatibilityManifest, type CompatibilityObservation, type CompatibilityReport, type CompatibilityStatus, type ContextProvider, type ContextQuery, type ContextReference, type ContextSnapshot, type ContractAssessment, type ContractOutcome, ContractOutcomeSchema, type ContractScope, type CooldownEntry, type CooldownState, type CoordinationIdentity, type CriterionStatus, type CycleIterationMetrics, type CycleMatrixRow, type CycleStepResult, type CycleStepStatus, type DebriefInput, type DebriefIssueRow, type DebriefReport, type DecisionPacket, type DeliverInput, type DeliverOutcome, type DeliverReport, type DeliverResult, type DeliveryState, type DetectProvidersInput, type DiscoveryAmbiguity, type DiscoveryCurrentInput, type DiscoveryCurrentResult, type DiscoveryDecisionLogEntry, type DiscoveryInput, type DiscoveryOption, type DiscoveryResult, type DispatchLease, type DispatchLedger, type DispatchRecord, type DispatchRecordFile, type Disposer, type DocBridgeIndexInspection, type DockerMount, type DockerRuntimeEvidence, type DockerToolDefinition, type DoctorCheck, type DoctorCheckStatus, EVAL_COMPONENTS, EVAL_LAYERS, EVAL_MANIFEST_SCHEMA_VERSION, EVENT_LOG_GENESIS, EVIDENCE_BUNDLE_SCHEMA_VERSION, type EffortLevel, type EvalBatteryReport, type EvalCaseDefinition, type EvalCaseReport, type EvalComponent, type EvalExpectation, type EvalLayer, type EvalManifest, type EvalObservation, type EvalObservationStatus, type EventLogLock, type EventLogLockRecovery, type EventLogLockStatus, type EventLogVerification, type EventStore, type EvidenceArtifact, type EvidenceBundle, type EvidenceBundleFile, type EvidenceBundleSignature, type EvidenceBundleVerification, type EvidenceReference, type ExecutePhaseProfileOptions, type FailureClass, type FailureClassification, type FetchQueueInput, FileArtifactStore, FileEventStore, type FilePreflightPlan, type GateAssessment, type GateBinding, type GateCriterion, type GenerateContractInput, type GitHubCliOptions, type GuidedInstallIO, type GuidedInstallInput, type GuidedInstallReport, HARNESS_ERROR_CATALOG, HARNESS_ERROR_CODES, HARNESS_EVENT_ENVELOPE_SCHEMA_VERSION, HARNESS_EVENT_SCHEMA_VERSION, HARNESS_EVENT_TYPES, HARNESS_PLUGIN_API_VERSION, HARNESS_REPO_URL, type HandoffBriefInput, HarnessError, type HarnessErrorClassification, type HarnessErrorDisposition, type HarnessEvent, type HarnessEventContext, type HarnessEventEnvelope, type HarnessEventEnvelopeInput, type HarnessEventInput, type HarnessEventListener, type HarnessEventPayloads, type HarnessEventProvenance, type HarnessEventType, type HarnessPlugin, type HarnessPluginContext, IMPROVEMENT_CYCLE_STEPS, type ImprovementCycleAssessment, type ImprovementCycleInput, type ImprovementCycleIteration, type ImprovementCycleStep, type InstallAction, type InstallInput, type InstallReport, type IntakeRecord, type IssueFailureRecord, type IssueFailureState, LEARNING_STATUSES, LEGAL_TRANSITIONS, LOOP_CONFIG_FILE, LOOP_CONFIG_SCHEMA_VERSION, LOOP_LOCAL_CONFIG_FILE, LOOP_STAGES, type LearningRecord, type LearningStatus, type LearningsLedger, type LinearIssueDetail, type LinearListInput, type LinearQueueFilter, type LinearWriteOptions, type LlmCache, type LlmCacheKeyInput, type LlmCacheStats, type LoadedConfig, type LoadedLoopConfig, type LocalConfigAnswers, type LocalConfigPrompter, type LoopConfig, type LoopConfigInput, LoopConfigSchema, type LoopDoctorInput, type LoopDoctorReport, type LoopEvent, type LoopEventBus, type LoopEventListener, type LoopEventPayload, type LoopHookListener, type LoopHookName, type LoopHookPayload, type LoopHookResult, type LoopIssue, type LoopPluginModule, type LoopProviderConfig, type LoopStage, type LoopStageName, type LoopState, type LoopStatusReport, MEMORY_SCOPES, MODEL_ROLES, type MachineMetrics, type MachineSample, type MachineThresholds, type McpPolicy, type McpToolBridge, type McpToolBridgeOptions, type McpToolCallInput, type McpToolCallResult, type MemoryContextPlan, type MemoryPromptSelection, type MemoryScope, type MemoryUsage, type MetricStatus, type ModelBinding, type ModelPolicy, type ModelQuality, type ModelReference, type ModelRole, type NormalizedPhaseProfile, type ObservabilityAnomaly, type ObservabilityMetrics, type ObservabilityReport, type ObservabilitySeverity, type ObservabilitySnapshot, type ObservabilityTerminal, type OptimizationComparison, type OptimizationObservation, type OrcaAgentHookState, type OrcaAutomation, type OrcaAutomationSpec, type OrcaCliOptions, type OrcaCreatedWorktree, type OrcaDispatchInput, type OrcaDispatchPlan, type OrcaLeaseState, type OrcaLifecycleInput, type OrcaLifecycleProjection, type OrcaMemorySample, type OrcaStatus as OrcaRuntimeStatus, type OrcaSendReceipt, type OrcaTerminal, type OrcaWorktree, type OutcomeProgress, type OutcomeProgressStatus, PHASE_DECISIONS, PHASE_EFFECTS, PHASE_EFFECT_ACTIONS, PHASE_MODES, PR_FIELDS, type ParallelismUsage, type PhaseAmbiguity, type PhaseContext, type PhaseDecision, type PhaseDecisionPacket, type PhaseDefinition, type PhaseEffect, type PhaseEffectAction, type PhaseEffectPolicy, type PhaseExecution, type PhaseExecutionReport, type PhaseGateEvaluator, type PhaseGateResult, type PhaseHandler, type PhaseHandlerResult, type PhaseMachineMetrics, type PhaseMode, type PhasePreflight, type PhasePreflightResult, type PhaseProfile, type PhaseResumeState, type PhaseRetryPolicy, type PhaseRoutePlan, type PhaseTelemetry, type PhaseTokenMetrics, type PiiKind, type PiiMatch, type PiiScanResult, type PilotAssessment, type PilotEntry, type PilotManifest, type PinnedSkill, type PinnedSkillRef, type PluginContribution, type PluginRegistry, type PluginSlot, type PolicyDecision, type PolicyGate, type PolicyRequest, type PolicyRule, type ProcessToolDefinition, type ProductionEvidence, type ProviderAuthStatus, type ProviderAvailability, type ProviderCatalog, type ProviderFailure, type ProviderSpec, type ProviderUsage, type PullRequestApproval, type PullRequestCheck, type PullRequestDraft, type PullRequestSnapshot, QUALITY_DIMENSIONS, type QaTransitionAssessment, type QualityDimension, type QualityDimensionScore, type QualityMatrix, REVIEW_SEVERITIES, RUN_STATES, type RagContextProviderOptions, type RagQueryResult, type RankedModel, type RecoveryObservation, type RecoveryPolicy, type RecoveryResult, type RepositoryProfile, type ResolvedAgent, type RetroInput, type RetroIssueRow, type RetroReport, type RetroStageReport, type RetroSuggestion, type RetroTarget, type RetroWindow, type ReviewFinding, type ReviewLens, type ReviewSeverity, type ReviewVerdict, type RichIO, type RoutingDecision, type RoutingSkip, type RunOutcome, type RunReconciliation, type RunState, type RuntimeConfig, type RuntimeExperimentCandidate, type RuntimeExperimentResult, STATES, SURFACE_NAMES, type SessionRecorder, type SlotAssessment, type SlotInput, type SourceSnapshot, type StagePauseEntry, type StagePauseState, type StateTransition, type StatusBlock, type StatusSnapshot, type StoredContract, type StructuredEvidence, type SurfaceName, type SurfaceRequirement, type TaskContract, TaskContractSchema, type TeamMember, type TickCandidateResult, type TickInput, type TickOutcome, type TickReport, type TokenUsage, type ToolDefinition, type ToolExecutionRequest, type ToolExecutionResult, type ToolRuntime, type TrackingAdapter, type TrackingConfig, type TrackingTransition, type TrustedEvidenceKey, type UsageMetric, type UsageWindow, type VerificationCheck, type VerificationConfig, type VerificationRun, WIP_STATES, type WatchEvent, type WatchEventKind, type WatchInput, type WatchReport, type WatchTargetSnapshot, type WatchdogBlocker, type WatchdogBudget, type WatchdogResult, type WipAssessment, type WipAssessmentInput, type WipEntry, type WipState, type WorkerBriefInput, type WorkflowNode, type WorkflowResult, activeCooldowns, adaptiveConcurrency, advanceQueueOwner, appendLoopEvent, approveRun, approvedDecision, artifactDigest, artifactFilePath, artifactIsFresh, artifactMarkdownPath, assertHuman, assessAcceptance, assessAgentEval, assessBlock, assessChecks, assessCompatibility, assessContract, assessDiscovery, assessImprovementCycle, assessIntegration, assessObservability, assessPilot, assessPreflight, assessProduction, assessQaTransition, assessSlots, assessWip, assessWorktreeCleanup, atLeast, authStatusFor, authorizeRun, automationName, automationPrompt, automationSpecs, availableMemoryBytes, benchmarkRuns, branchFor, briefPath, buildDebriefReport, buildListIssuesArgv, buildRetroReport, buildReviewArgv, buildSuggestions, busyIssues, cancelRun, classifyFailure, classifyHarnessError, classifyProviderFailure, classifyWatchEvent, classifyWatchPhase, cleanTaskArtifacts, clearIssueFailures, clearProviderCooldown, compareOptimization, compareVersions, composePullRequest, contractIsFresh, contractPath, cooldownPath, cooldownUntil, countRotationBlockingLeases, countRunningWorkers, createArgvRagContextProvider, createArtifactEnvelope, createCapabilityManifest, createCodingAgentAdapter, createCompatibilityManifest, createConfiguredToolRuntime, createDispatchLedger, createDocBridgeContextProvider, createDockerToolRuntime, createEvalManifest, createFileMemoryAdapter, createFileMemoryKvStore, createHarnessEventEnvelope, createInMemoryMemoryAdapter, createKvMemoryAdapter, createLinearTrackingAdapter, createLlmCache, createLlmCacheKey, createLoopEventBus, createMachineMonitor, createMcpToolBridge, createModelPolicy, createOrcaDispatchPlan, createOrcaLifecycleProjection, createPhaseArtifact, createPhaseProfile, createPluginRegistry, createPluginSlot, createPolicyGate, createProcessRunner, createProcessToolRuntime, createPullRequestApproval, createQualityMatrix, createRagContextProvider, createRichIO, createSessionRecorder, createStatusSnapshot, createToolRuntime, createTrackingAdapter, createTrackingTransition, deliveryStatePath, detectProviders, discoverIntake, dispatchRecordPath, evaluateWatchdog, executePhaseProfile, exportEvidenceBundle, extractResetsAt, fetchArtificialAnalysisModels, fetchLinearIssue, fetchLinearQueue, fetchTeamMembers, filterAndOrderQueue, findExecutable, formatWatchEvent, gatherLoopState, generateContract, githubComment, githubCommentArgv, githubCommentExists, githubLabelRemove, githubMerge, githubMergeArgv, githubOpenPullRequests, githubPullRequest, githubPullRequestsForBranch, hasLocalConfig, hashContextSnapshot, hashContextSnapshots, hashMcpArgs, inspectDocBridgeIndex, inspectEventLogLock, installLoopAutomations, installPreflight, intakeIssueId, intakePath, isDiscoveryCurrent, isIssuePaused, isStagePaused, isWsl, issueFailurePath, launchWorkerTerminal, learningToMemoryRecord, learningsPath, linearAttach, linearAttachArgv, linearCommentAdd, linearCommentAddArgv, linearLabelAdd, linearLabelArgv, linearLabelRemove, linearStatusSet, linearStatusSetArgv, listCliModels, listCliModelsCached, listDispatched, listIntake, listPausedIssues, loadAgentRegistry, loadAliases, loadBenchmarkManifest, loadBuiltinCatalog, loadConfig, loadLatestRun, loadLoopConfig, loadLoopPlugins, loadPinnedSkills, localConfigPath, loopStatus, markProviderExhausted, memoryDigestOf, mergeLoopConfig, modelFor, normalizeReason, openLoopMemory, orcaAccountList, orcaAgentHooks, orcaAutomationCreateArgv, orcaAutomationEditArgv, orcaAutomationRemove, orcaAutomationRun, orcaAutomationRuns, orcaAutomationsList, orcaDiagnosticsMemory, orcaJson, orcaStatus, orcaTerminalCreate, orcaTerminalList, orcaTerminalScreen, orcaTerminalSend, orcaTerminalWait, orcaVersion, orcaWorktreeCreate, orcaWorktreeRemove, orcaWorktreeSet, orcaWorktreeSetArgv, orcaWorktrees, parseAgentRegistryText, parseArtificialAnalysisPayload, parseAutomationRuns, parseContractOutput, parseGrokModelsOutput, parseJsonEnvelope, parseLinearIssueDetail, parseLinearIssues, parseLoopConfigText, parseMemInfo, parseModelRef, parseOrcaAgentHooks, parseOrcaAutomations, parseOrcaSendReceipt, parseOrcaStatus, parseOrcaTerminals, parseOrcaVersion, parseOrcaWorktreeCreate, parseOrcaWorktrees, parseProviderUsage, parsePullRequest, parseRagQueryOutput, parseRetro, parseReviewResult, parseSince, parseTeamMembers, parseUsageWindows, parseVmStat, pauseIssue, planFilePreflight, planMemoryContext, planPhaseProfile, planRun, precheckCommand, precheckDeliver, precheckTick, preferMemoryOverDocBridge, promoteLearnings, promoteLearningsToMemory, promptLocalConfig, providerIdentity, providerSpecs, queueOwner, rankModels, readAaCache, readArtifactFile, readCliModelsCache, readContextSnapshots, readCooldowns, readDeliveryState, readDispatchRecord, readEvidenceTrustStore, readIntake, readIssueFailures, readLearningsLedger, readLoopEvents, readOutcomeProgress, readStagePause, readStoredContract, reconcileRun, recordBenchmarkObservation, recordIssueFailure, recordStageRunResult, recoverEventLogLock, recoveryDelayMs, remainingUsagePercent, renderArtifactMarkdown, renderContractPrompt, renderDebriefMarkdown, renderFindingsForWorker, renderHandoffBrief, renderHeadlessArgv, renderLocalConfig, renderObservabilityMarkdown, renderPinnedSkills, renderRetroMarkdown, renderTuiCommand, renderWorkerBrief, resolveAgentForRole, resolveAlias, resolveCatalogCandidates, resolveDocContext, resumeIssue, resumeStage, resumeStateFromArtifacts, retroLearnings, retryRun, rotationStatePath, routeAllRoles, runAdversarialReview, runAgentEval, runCodeReview, runDeliver, runEvalBattery, runGuidedInstall, runLoopDoctor, runObservability, runRetroStage, runTick, runWithRecovery, runWorkflow, sampleMachine, scanForPii, selectMemoryForPrompt, selectModel, selectRuntime, severityRank, shellQuote, skillDigest, skillRefs, snapshotWatchTargets, stageEntry, stagePausePath, startRun, summarizeMachine, tiersFor, touchesProtectedPaths, transition, undeclaredOrcaProviders, uninstallLoopAutomations, unknownTelemetry, untrusted, upsertProposedLearnings, usageRankTuple, validateAdapterMetadata, validateArtifactEnvelope, validateBenchmarkManifest, validateBlockManifest, validateCacheableOperation, validateCapabilityManifest, validateCompatibilityManifest, validateConfig, validateContextSnapshot, validateContextSnapshots, validateEvalManifest, validateHarnessErrorClassification, validateHarnessEventEnvelope, validateLoopConfig, validateMemoryRecord, validateOptimizationObservation, validatePhaseTelemetry, validateSafeCommand, validateStatusSnapshot, verifyEvidenceBundle, verifyPullRequestApproval, verifyRun, watchDeliveries, worktreeNameFor, writeAaCache, writeCliModelsCache, writeDispatchRecord, writeIdFor, writeLearningsLedger, writeLocalConfig, writeStoredContract };
|