@agentskit/harness 0.12.0 → 0.14.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/dist/index.d.ts CHANGED
@@ -486,6 +486,8 @@ interface TrackingConfig {
486
486
  readonly required: boolean;
487
487
  readonly target?: string;
488
488
  readonly reason?: string;
489
+ /** Goal approval covers tracking unless a project explicitly opts out. */
490
+ readonly authorization?: 'goal' | 'separate';
489
491
  }
490
492
  interface BenchmarkBinding {
491
493
  readonly suiteId: string;
@@ -2190,6 +2192,14 @@ interface LearningRecord {
2190
2192
  readonly text: string;
2191
2193
  readonly status: LearningStatus;
2192
2194
  readonly recordedAt: string;
2195
+ /**
2196
+ * How many retros proposed this same lesson. Absent reads as 1.
2197
+ *
2198
+ * The id is content-derived, so a recurring lesson used to be silently deduplicated and looked exactly
2199
+ * like a one-off. Counting is what separates a pattern from an anecdote — and it is the number
2200
+ * `memory.recurrence` uses to offer a promotion.
2201
+ */
2202
+ readonly sightings?: number;
2193
2203
  }
2194
2204
  declare const parseRetro: (markdown: string, source: string, recordedAt?: string) => readonly LearningRecord[];
2195
2205
  declare const promoteLearnings: (records: readonly LearningRecord[], input: {
@@ -2240,9 +2250,10 @@ declare const modelFor: (policy: ModelPolicy, role: ModelRole) => ModelBinding;
2240
2250
  * PR/issue comment — a segment lifted from an issue description or a code-review finding can carry a secret that
2241
2251
  * was never meant to leave the private context it came from. Pure and kernel-safe: no adapters, no network, no
2242
2252
  * state. Pattern-based, not a claim of completeness — it catches the shapes that show up in practice (emails,
2243
- * common provider API-key prefixes, phone numbers, card-number-shaped digit runs), not every possible secret.
2253
+ * common provider API-key prefixes, PEM private-key blocks, phone numbers, card-number-shaped digit runs), not
2254
+ * every possible secret.
2244
2255
  */
2245
- type PiiKind = 'email' | 'api-key' | 'phone' | 'credit-card';
2256
+ type PiiKind = 'email' | 'api-key' | 'phone' | 'credit-card' | 'private-key';
2246
2257
  interface PiiMatch {
2247
2258
  readonly kind: PiiKind;
2248
2259
  readonly index: number;
@@ -2370,8 +2381,16 @@ declare const exportEvidenceBundle: ({ configPath, runId, outputPath, privateKey
2370
2381
  readonly privateKeyPath: string;
2371
2382
  readonly keyId: string;
2372
2383
  }) => Promise<EvidenceBundle>;
2373
- declare const verifyEvidenceBundle: (path: string, { trustedKeys }?: {
2384
+ /** Per-file and total caps on decoded evidence content: without them, a corrupted or hostile bundle could carry
2385
+ * arbitrarily large (or arbitrarily many) `contentBase64` blobs and exhaust memory during verification, before
2386
+ * any hash or signature check ever runs. The base64-length pre-check happens before `Buffer.from` decodes
2387
+ * anything, so an oversized single file is rejected without allocating its decoded buffer at all. */
2388
+ declare const EVIDENCE_MAX_FILE_BYTES: number;
2389
+ declare const EVIDENCE_MAX_TOTAL_BYTES: number;
2390
+ declare const verifyEvidenceBundle: (path: string, { trustedKeys, maxFileBytes, maxTotalBytes }?: {
2374
2391
  readonly trustedKeys?: readonly TrustedEvidenceKey[];
2392
+ readonly maxFileBytes?: number;
2393
+ readonly maxTotalBytes?: number;
2375
2394
  }) => EvidenceBundleVerification;
2376
2395
  declare const readEvidenceTrustStore: (path: string) => readonly TrustedEvidenceKey[];
2377
2396
 
@@ -2546,11 +2565,40 @@ interface LoopIssue {
2546
2565
  interface LinearQueueFilter {
2547
2566
  readonly states: readonly string[];
2548
2567
  readonly excludeLabels: readonly string[];
2568
+ /** Every one of these must be present on the issue (AND). Empty = no constraint. */
2549
2569
  readonly requireLabels: readonly string[];
2570
+ /**
2571
+ * At least ONE of these must be present (OR). Empty or absent = no constraint.
2572
+ *
2573
+ * This is what lets a machine declare the slices of the board it drains — `layer:L2` or `layer:L3` —
2574
+ * which `requireLabels` cannot express: it demands all of them on the same issue, so listing two
2575
+ * layers matches nothing at all. A queue that silently returns zero is the worst failure mode this
2576
+ * loop has, because it is indistinguishable from "no work to do".
2577
+ *
2578
+ * Optional on purpose: the config schema always supplies it, and a caller that builds the filter by
2579
+ * hand keeps working untouched. A new field on a published type should not crash an existing consumer.
2580
+ */
2581
+ readonly anyLabels?: readonly string[];
2550
2582
  readonly projects: readonly string[];
2551
2583
  readonly order: readonly ('priority' | 'updatedAt' | 'createdAt')[];
2552
2584
  readonly maxQueue: number;
2585
+ /**
2586
+ * Whose queue this is.
2587
+ *
2588
+ * `person` (the default, and the only historical behaviour) drains the issues ASSIGNED to
2589
+ * `linear.person`: the assignee is ownership, and an issue nobody owns is invisible.
2590
+ *
2591
+ * `unassigned` inverts that: the queue is the issues with NO assignee, ordered by priority, and the
2592
+ * assignee becomes a TRANSIENT CLAIM — the loop writes it when it dispatches and clears it when the
2593
+ * item comes back. That is what lets several machines drain one queue without two of them picking the
2594
+ * same issue, and it is why an unowned issue is the normal state rather than a lost one.
2595
+ *
2596
+ * Absent reads as `person`, so a caller that builds the filter by hand keeps the historical behaviour.
2597
+ */
2598
+ readonly queueOwnership?: 'person' | 'unassigned';
2553
2599
  }
2600
+ /** The `--assignee` value the queue is listed with. `null` is Orca's literal for "unassigned". */
2601
+ declare const queueAssigneeFilter: (filter: Pick<LinearQueueFilter, "queueOwnership">, person: string) => string;
2554
2602
  interface LinearListInput {
2555
2603
  readonly bin?: string;
2556
2604
  readonly workspaceId: string;
@@ -2587,6 +2635,15 @@ interface LinearWriteOptions {
2587
2635
  declare const fetchLinearIssue: (runner: CommandRunner, identifier: string, options: LinearWriteOptions) => Promise<LinearIssueDetail>;
2588
2636
  /** Deterministic UUID (v4 layout) derived from a stable key, for Orca's `--write-id` idempotency. */
2589
2637
  declare const writeIdFor: (key: string) => string;
2638
+ declare const linearAssigneeSetArgv: (input: {
2639
+ readonly issue: string;
2640
+ readonly assignee: string;
2641
+ readonly workspaceId: string;
2642
+ }, bin?: string) => readonly string[];
2643
+ declare const linearAssigneeClearArgv: (input: {
2644
+ readonly issue: string;
2645
+ readonly workspaceId: string;
2646
+ }, bin?: string) => readonly string[];
2590
2647
  declare const linearStatusSetArgv: (input: {
2591
2648
  readonly issue: string;
2592
2649
  readonly to: string;
@@ -2620,6 +2677,19 @@ declare const linearCommentAdd: (runner: CommandRunner, input: {
2620
2677
  readonly body: string;
2621
2678
  readonly dedupeKey?: string;
2622
2679
  }, options: LinearWriteOptions) => Promise<unknown>;
2680
+ /**
2681
+ * Claim an issue for this machine. Under `queueOwnership: 'unassigned'` this is what takes the issue
2682
+ * OUT of every other machine's queue, so it runs right after the dispatch succeeds — never before, or a
2683
+ * failed dispatch would leave the item claimed by nobody's worker.
2684
+ */
2685
+ declare const linearAssigneeSet: (runner: CommandRunner, input: {
2686
+ readonly issue: string;
2687
+ readonly assignee: string;
2688
+ }, options: LinearWriteOptions) => Promise<unknown>;
2689
+ /** Release the claim, putting the issue back in the unassigned queue. Pairs with `linearAssigneeSet`. */
2690
+ declare const linearAssigneeClear: (runner: CommandRunner, input: {
2691
+ readonly issue: string;
2692
+ }, options: LinearWriteOptions) => Promise<unknown>;
2623
2693
  declare const linearLabelAdd: (runner: CommandRunner, input: {
2624
2694
  readonly issue: string;
2625
2695
  readonly labels: readonly string[];
@@ -2681,9 +2751,14 @@ declare const LoopConfigSchema: z.ZodObject<{
2681
2751
  owners: z.ZodDefault<z.ZodArray<z.ZodString>>;
2682
2752
  advanceWhenEmpty: z.ZodDefault<z.ZodBoolean>;
2683
2753
  }, z.core.$strip>>;
2754
+ queueOwnership: z.ZodDefault<z.ZodEnum<{
2755
+ person: "person";
2756
+ unassigned: "unassigned";
2757
+ }>>;
2684
2758
  states: z.ZodDefault<z.ZodArray<z.ZodString>>;
2685
2759
  excludeLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
2686
2760
  requireLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
2761
+ anyLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
2687
2762
  projects: z.ZodDefault<z.ZodArray<z.ZodString>>;
2688
2763
  order: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2689
2764
  createdAt: "createdAt";
@@ -2697,6 +2772,26 @@ declare const LoopConfigSchema: z.ZodObject<{
2697
2772
  blockedLabel: z.ZodDefault<z.ZodString>;
2698
2773
  needsInfoLabel: z.ZodDefault<z.ZodString>;
2699
2774
  }, z.core.$strip>;
2775
+ knownFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
2776
+ path: z.ZodString;
2777
+ issue: z.ZodString;
2778
+ reason: z.ZodString;
2779
+ }, z.core.$strip>>>;
2780
+ reviewOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
2781
+ anyLabels: z.ZodArray<z.ZodString>;
2782
+ votes: z.ZodOptional<z.ZodNumber>;
2783
+ minSeverity: z.ZodOptional<z.ZodEnum<{
2784
+ blocker: "blocker";
2785
+ high: "high";
2786
+ nit: "nit";
2787
+ med: "med";
2788
+ }>>;
2789
+ profile: z.ZodOptional<z.ZodEnum<{
2790
+ fast: "fast";
2791
+ full: "full";
2792
+ }>>;
2793
+ reason: z.ZodOptional<z.ZodString>;
2794
+ }, z.core.$strip>>>;
2700
2795
  models: z.ZodObject<{
2701
2796
  orchestrator: z.ZodArray<z.ZodArray<z.ZodString>>;
2702
2797
  reviewer: z.ZodArray<z.ZodArray<z.ZodString>>;
@@ -2729,33 +2824,33 @@ declare const LoopConfigSchema: z.ZodObject<{
2729
2824
  roles: z.ZodPrefault<z.ZodObject<{
2730
2825
  orchestrator: z.ZodPrefault<z.ZodObject<{
2731
2826
  quality: z.ZodDefault<z.ZodEnum<{
2827
+ fast: "fast";
2732
2828
  frontier: "frontier";
2733
2829
  balanced: "balanced";
2734
- fast: "fast";
2735
2830
  }>>;
2736
2831
  preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
2737
2832
  }, z.core.$strip>>;
2738
2833
  reviewer: z.ZodPrefault<z.ZodObject<{
2739
2834
  quality: z.ZodDefault<z.ZodEnum<{
2835
+ fast: "fast";
2740
2836
  frontier: "frontier";
2741
2837
  balanced: "balanced";
2742
- fast: "fast";
2743
2838
  }>>;
2744
2839
  preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
2745
2840
  }, z.core.$strip>>;
2746
2841
  builder: z.ZodPrefault<z.ZodObject<{
2747
2842
  quality: z.ZodDefault<z.ZodEnum<{
2843
+ fast: "fast";
2748
2844
  frontier: "frontier";
2749
2845
  balanced: "balanced";
2750
- fast: "fast";
2751
2846
  }>>;
2752
2847
  preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
2753
2848
  }, z.core.$strip>>;
2754
2849
  watcher: z.ZodPrefault<z.ZodObject<{
2755
2850
  quality: z.ZodDefault<z.ZodEnum<{
2851
+ fast: "fast";
2756
2852
  frontier: "frontier";
2757
2853
  balanced: "balanced";
2758
- fast: "fast";
2759
2854
  }>>;
2760
2855
  preferCreators: z.ZodDefault<z.ZodArray<z.ZodString>>;
2761
2856
  }, z.core.$strip>>;
@@ -2951,6 +3046,10 @@ declare const LoopConfigSchema: z.ZodObject<{
2951
3046
  }>>>;
2952
3047
  shrinkIssueCharsWhenMemory: z.ZodDefault<z.ZodBoolean>;
2953
3048
  issueCharsWithMemory: z.ZodDefault<z.ZodNumber>;
3049
+ recurrence: z.ZodPrefault<z.ZodObject<{
3050
+ minSightings: z.ZodDefault<z.ZodNumber>;
3051
+ maxPerRun: z.ZodDefault<z.ZodNumber>;
3052
+ }, z.core.$strip>>;
2954
3053
  }, z.core.$strip>>;
2955
3054
  agents: z.ZodPrefault<z.ZodObject<{
2956
3055
  registryPath: z.ZodDefault<z.ZodString>;
@@ -3041,6 +3140,19 @@ declare const providerIdentity: (config: LoopConfig, provider: string) => {
3041
3140
  };
3042
3141
  type EffortLevel = z.infer<typeof effortLevel>;
3043
3142
  declare const renderTuiCommand: (settings: LoopProviderConfig, model: string, effort?: EffortLevel) => string;
3143
+ /** The review settings in force for one issue — `delivery.review` with any label override applied. */
3144
+ type EffectiveReviewSettings = LoopConfig['delivery']['review'] & {
3145
+ readonly overriddenBy: string | null;
3146
+ };
3147
+ /**
3148
+ * Resolve the review settings for an issue from its labels (`reviewOverrides`).
3149
+ *
3150
+ * First match wins, and only the fields it names are replaced — an override that sets `votes` must not
3151
+ * silently reset the deadline, the transport or the CLI. `overriddenBy` carries the matched label so the
3152
+ * deliver log can say WHY a review cost two votes instead of one; a stricter gate that cannot explain
3153
+ * itself reads as a bug.
3154
+ */
3155
+ declare const resolveReviewSettings: (config: LoopConfig, labels?: readonly string[]) => EffectiveReviewSettings;
3044
3156
  /** Substitute `{model}` / `{prompt}` inside each headless argv element; the prompt stays one argv element, never shell-joined. */
3045
3157
  declare const renderHeadlessArgv: (settings: LoopProviderConfig, model: string, prompt: string, effort?: EffortLevel) => readonly string[] | null;
3046
3158
 
@@ -3429,8 +3541,29 @@ interface LearningsLedger {
3429
3541
  declare const learningsPath: (stateDir: string) => string;
3430
3542
  declare const readLearningsLedger: (stateDir: string) => LearningsLedger;
3431
3543
  declare const writeLearningsLedger: (stateDir: string, ledger: LearningsLedger) => void;
3432
- /** Merge proposed learnings into the ledger without changing promoted/rejected rows. */
3544
+ /**
3545
+ * Merge proposed learnings into the ledger without changing promoted/rejected rows.
3546
+ *
3547
+ * A lesson proposed again **counts**: the id is content-derived, so recurrence used to be silently
3548
+ * deduplicated and a pattern was indistinguishable from a one-off. `sightings` is what
3549
+ * `memory.recurrence` reads to offer a promotion.
3550
+ */
3433
3551
  declare const upsertProposedLearnings: (stateDir: string, proposed: readonly LearningRecord[]) => LearningsLedger;
3552
+ /**
3553
+ * What the ledger WOULD look like after this merge, without writing it.
3554
+ *
3555
+ * `loop retro --dry-run` has to show the same recurrence hint as a real run; computing it from the
3556
+ * unwritten merge is what keeps the dry run honest instead of showing counts one retro behind.
3557
+ */
3558
+ declare const upsertProposedLearningsDryRun: (stateDir: string, proposed: readonly LearningRecord[]) => LearningsLedger;
3559
+ /**
3560
+ * Lessons that recurred enough to deserve a human's keystroke, newest-count first.
3561
+ *
3562
+ * Deliberately a *suggestion*: `promoteLearnings` refuses a non-human actor (ADR-0019), and memory is
3563
+ * read into every worker brief — a wrong lesson promoted without a human becomes a wrong instruction on
3564
+ * every future task. This removes the analysis, not the decision.
3565
+ */
3566
+ declare const learningsReadyToPromote: (ledger: LearningsLedger, config: Pick<LoopConfig, "memory">) => readonly LearningRecord[];
3434
3567
  declare const promoteLearningsToMemory: (input: {
3435
3568
  readonly stateDir: string;
3436
3569
  readonly config: LoopConfig;
@@ -3743,6 +3876,12 @@ interface DispatchRecordFile {
3743
3876
  readonly initialRemainingPercent: number | null;
3744
3877
  /** Absolute path to the Orca worktree, so `loop status`/`debrief`/`watch` can best-effort read `progress.json` from it. */
3745
3878
  readonly worktreePath: string;
3879
+ /**
3880
+ * The issue's labels at dispatch time, frozen here so `deliver` can resolve `reviewOverrides` without
3881
+ * a second Linear read — and so a label edited mid-flight cannot change the gate a running item is
3882
+ * judged by. Absent on records written before this field existed; readers fall back to no override.
3883
+ */
3884
+ readonly labels?: readonly string[];
3746
3885
  }
3747
3886
  interface TickInput {
3748
3887
  readonly configPath?: string;
@@ -4180,7 +4319,14 @@ interface DebriefIssueRow {
4180
4319
  readonly pr: number | null;
4181
4320
  readonly prUrl: string | null;
4182
4321
  readonly dispatchedAt: string | null;
4322
+ /** Quanto tempo o worker está no item, contado do despacho. É a idade do worker, não da fase. */
4183
4323
  readonly ageMin: number | null;
4324
+ /**
4325
+ * Quanto tempo o item está **nesta fase**, contado do evento que a começou (a revisão corrente, e
4326
+ * não o despacho original). Sem isto, um item que entrou em revisão há 10 min aparecia com a idade
4327
+ * do despacho — 3 h — e parecia travado quando não estava.
4328
+ */
4329
+ readonly phaseAgeMin: number | null;
4184
4330
  readonly fixRounds: number;
4185
4331
  readonly reviewStatus: string | null;
4186
4332
  readonly heldFor: string | null;
@@ -4425,6 +4571,8 @@ interface ObservabilitySnapshot {
4425
4571
  readonly workerIdleTimeoutMin: number;
4426
4572
  readonly queueReady: number;
4427
4573
  readonly freeSlots: number;
4574
+ /** A scheduled loop stage currently owns the coordination lock. */
4575
+ readonly stageBusy?: boolean;
4428
4576
  readonly runningWorkers: number;
4429
4577
  readonly maxAgents: number;
4430
4578
  readonly activeClaims: number;
@@ -4595,4 +4743,4 @@ declare const discoverIntake: (runner: CommandRunner, input: {
4595
4743
  readonly now: () => Date;
4596
4744
  }, options?: GitHubCliOptions) => Promise<readonly IntakeRecord[]>;
4597
4745
 
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 };
4746
+ 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, EVIDENCE_MAX_FILE_BYTES, EVIDENCE_MAX_TOTAL_BYTES, type EffectiveReviewSettings, 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, learningsReadyToPromote, linearAssigneeClear, linearAssigneeClearArgv, linearAssigneeSet, linearAssigneeSetArgv, 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, queueAssigneeFilter, 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, resolveReviewSettings, 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, upsertProposedLearningsDryRun, 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 };