@rulvar/core 1.52.0 → 1.54.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
@@ -515,7 +515,13 @@ type ChatEvent = {
515
515
  };
516
516
  /** Strictly 'adapterId:model', no query parameters. */
517
517
  type ModelRef = `${string}:${string}`;
518
- type InvocationRole = "orchestrate" | "plan" | "loop" | "finalize" | "extract" | "summarize";
518
+ /**
519
+ * The seven invocation roles. 'synthesize' is the orchestrator's
520
+ * post-fan-in synthesis invocation (RV-211): it fires only when
521
+ * OrchestrateOptions.synthesis is configured, and the routing key picks
522
+ * its model like any other role without ever summoning it.
523
+ */
524
+ type InvocationRole = "orchestrate" | "plan" | "loop" | "finalize" | "extract" | "summarize" | "synthesize";
519
525
  /**
520
526
  * What authors write wherever a model is configurable: a call override, an
521
527
  * agent profile, a workflow default, or an engine default.
@@ -2952,6 +2958,26 @@ type CoreEvents = {
2952
2958
  * charge. Absent means every contributing turn reported exact usage.
2953
2959
  */
2954
2960
  usageApprox?: boolean;
2961
+ /**
2962
+ * The semantic completion lift (RV-207 tail): present when the
2963
+ * workflow reported semantic completion through the completion
2964
+ * envelope contract: an `ok`/`exhausted` run whose result value is
2965
+ * an object carrying a valid `completion` literal, or an `error`
2966
+ * run whose typed error data carries one (the orchestrator
2967
+ * acceptance path emits both). Transport status says whether the
2968
+ * run ran; completion says whether the work is COMPLETE: an
2969
+ * accepted degraded run is `status: 'ok'` with `completion:
2970
+ * 'partial'`. Replay recomputes the same value from the re-executed
2971
+ * workflow, so the field is identical live and replayed. Absent
2972
+ * when the workflow makes no completion claim.
2973
+ */
2974
+ completion?: "complete" | "partial" | "rejected";
2975
+ /**
2976
+ * Settled child statuses by status name, lifted from the same
2977
+ * envelope (or typed error data) when it carries a valid record of
2978
+ * nonnegative integers. Absent otherwise.
2979
+ */
2980
+ childStatusCounts?: Record<string, number>;
2955
2981
  } | {
2956
2982
  type: "phase:start";
2957
2983
  phase: string;
@@ -3767,8 +3793,8 @@ interface RunAgentOptions<S extends SchemaSpec = JsonSchema> {
3767
3793
  }>;
3768
3794
  };
3769
3795
  agentType?: string;
3770
- /** The primary invocation role of the tool loop; default 'loop' (M6-T05). */
3771
- role?: "loop" | "plan" | "orchestrate";
3796
+ /** The primary invocation role of the tool loop; default 'loop' (M6-T05; RV-211 adds synthesize). */
3797
+ role?: "loop" | "plan" | "orchestrate" | "synthesize";
3772
3798
  label?: string;
3773
3799
  now?: () => number;
3774
3800
  }
@@ -5307,6 +5333,48 @@ declare function hashRunArgs(args: unknown): string | undefined;
5307
5333
  declare function hashRunOutput(value: unknown): string | undefined;
5308
5334
  declare function createEngine(options: CreateEngineOptions): Engine;
5309
5335
  //#endregion
5336
+ //#region src/orchestrator/claims.d.ts
5337
+ /**
5338
+ * Repeated-claim deduplication (RV-211 remainder): a PURE, deterministic
5339
+ * fold that removes byte-repeated claim lines across children BEFORE any
5340
+ * model call, so the synthesis invocation never spends context re-reading
5341
+ * what several children reported identically. Matching is deliberately
5342
+ * conservative: lines compare by whitespace-collapsed exact equality
5343
+ * (trim, inner runs of whitespace to one space), never fuzzily, so two
5344
+ * DISTINCT claims can never merge; the first occurrence survives verbatim
5345
+ * and every later occurrence is dropped and indexed. Empty lines are
5346
+ * structure, not claims: they always survive.
5347
+ *
5348
+ * Public docs: https://docs.rulvar.com/guide/orchestration-modes
5349
+ */
5350
+ /** One claim reported more than once across the input rows. */
5351
+ interface RepeatedClaim {
5352
+ /** The first-seen line, verbatim. */
5353
+ claim: string;
5354
+ /** Reporters in input order; the first entry made the surviving copy. */
5355
+ nodeIds: string[];
5356
+ /** Total occurrences across all rows, the surviving one included. */
5357
+ count: number;
5358
+ }
5359
+ interface DedupedClaims {
5360
+ /** The input rows with every repeated line's later occurrences removed. */
5361
+ rows: {
5362
+ nodeId: string;
5363
+ text: string;
5364
+ }[];
5365
+ /** Claims seen more than once, in first-occurrence order. */
5366
+ repeated: RepeatedClaim[];
5367
+ }
5368
+ /**
5369
+ * Removes later occurrences of repeated claim lines across the rows and
5370
+ * indexes each repeated claim with its reporters. Deterministic: output
5371
+ * depends only on the input order and bytes.
5372
+ */
5373
+ declare function dedupeRepeatedClaims(rows: {
5374
+ nodeId: string;
5375
+ text: string;
5376
+ }[]): DedupedClaims;
5377
+ //#endregion
5310
5378
  //#region src/orchestrator/finish-validators.d.ts
5311
5379
  /**
5312
5380
  * One child as the finish validators see it (the RV-202 provenance
@@ -5934,6 +6002,17 @@ interface OrchestrateAcceptance {
5934
6002
  /** How many rejected finishes are repaired by default: the plan's repair once. */
5935
6003
  declare const DEFAULT_FINISH_MAX_REPAIRS = 1;
5936
6004
  /**
6005
+ * Default maxTurns of the synthesize invocation (RV-211): the finish
6006
+ * call plus headroom for one validator repair exchange.
6007
+ */
6008
+ declare const DEFAULT_SYNTHESIS_MAX_TURNS = 4;
6009
+ /**
6010
+ * Default maxTurns of ONE incremental synthesis note (RV-211 remainder):
6011
+ * a note summarizes a single settled child into a bounded finish call,
6012
+ * so it needs less headroom than the full synthesis invocation.
6013
+ */
6014
+ declare const DEFAULT_SYNTHESIS_NOTE_MAX_TURNS = 2;
6015
+ /**
5937
6016
  * The opt in deterministic validation of the orchestrator finish result
5938
6017
  * (the v1.40.0 improvement plan's RV-204 slice). Every SCHEMA valid
5939
6018
  * finish({ result }) call first passes the configured host validators;
@@ -6022,6 +6101,113 @@ interface OrchestrateOptions {
6022
6101
  * unchanged.
6023
6102
  */
6024
6103
  exposeChildResultTools?: boolean;
6104
+ /**
6105
+ * The opt in post-fan-in synthesis invocation (RV-211): with this set,
6106
+ * the coordination loop's finish({ result }) becomes a DRAFT, and a
6107
+ * SEPARATE fresh invocation with role 'synthesize' (its own model,
6108
+ * effort, and limits through the ordinary resolution chain; the
6109
+ * routing key 'synthesize' picks its model and never summons it)
6110
+ * composes the final run result from the goal, the draft, and the
6111
+ * settled child digest, on the finish-only toolset. When
6112
+ * finishValidation is configured its validators bind the SYNTHESIS
6113
+ * finish (the final output), not the draft. See
6114
+ * {@link OrchestrateSynthesis}.
6115
+ */
6116
+ synthesis?: OrchestrateSynthesis;
6117
+ }
6118
+ /**
6119
+ * The synthesis invocation's own knobs (RV-211). Everything else about
6120
+ * the invocation is deterministic: the prompt derives from the journaled
6121
+ * draft and the settled child digest, the toolset is the single finish
6122
+ * tool (a distinct toolsetHash, exactly like the reserved cap
6123
+ * finalizer), the invocation journals as an ordinary agent entry (a
6124
+ * resume replays it with zero paid calls), and its telemetry is a full
6125
+ * agent span with role 'synthesize' phase pairs, so
6126
+ * `CostReport.byRole.synthesize` and `reduceCriticalPath` attribute it
6127
+ * without heuristics. Failure posture: with finishValidation configured
6128
+ * a failed synthesis fails the run typed (the validated path is
6129
+ * mandatory); without validators the run falls back to the coordination
6130
+ * draft under a journaled 'orchestrator_synthesis_fallback' decision and
6131
+ * a warn log, never silently.
6132
+ */
6133
+ interface OrchestrateSynthesis {
6134
+ /** Model override for the synthesize invocation; the routing key and chain apply otherwise. */
6135
+ model?: ModelSpec;
6136
+ /** Canonical effort of the synthesize invocation. */
6137
+ effort?: Effort;
6138
+ /** UsageLimits of the synthesize invocation; default { maxTurns: 4 }. */
6139
+ limits?: UsageLimits;
6140
+ /** Extra deterministic instruction lines appended to the synthesis prompt. */
6141
+ instructions?: string;
6142
+ /**
6143
+ * Admission estimate for the synthesize invocation, like
6144
+ * AgentOpts.estCost: under a tight orchestrator cap the default
6145
+ * reserve (full maxOutputTokens pricing) can refuse the dispatch; an
6146
+ * explicit estimate is the host speaking. In 'incremental' mode the
6147
+ * estimate applies to EACH note invocation.
6148
+ */
6149
+ estCost?: number;
6150
+ /**
6151
+ * The synthesis shape (RV-211 remainder). Default 'single': one
6152
+ * post-fan-in synthesize invocation composes the final result from the
6153
+ * draft and the whole settled digest. 'incremental': every settled
6154
+ * child triggers ONE bounded synthesize-role NOTE invocation as soon
6155
+ * as it settles (concurrent with the still-running fan-out, which is
6156
+ * what moves synthesis wall time off the post-fan-in critical path),
6157
+ * and the FINAL result is a DETERMINISTIC reconciliation, never
6158
+ * another model call: an {@link IncrementalSynthesisResult} envelope
6159
+ * composed from the draft and the notes in spawn order. The tradeoffs
6160
+ * are explicit: notes are paid DURING the run, so an acceptance
6161
+ * rejection can no longer guarantee "a rejected run never paid for
6162
+ * synthesis"; and because the reconciliation has no model-composed
6163
+ * finish, `finishValidation` cannot bind it: configuring both is a
6164
+ * ConfigError at intake. A note that dies falls back to the child's
6165
+ * raw digest summary under a journaled per-child
6166
+ * 'orchestrator_synthesis_note_fallback' decision and a warn log.
6167
+ * Cap paths are unchanged: a capped run settles through the reserved
6168
+ * finalizer and never reconciles.
6169
+ */
6170
+ mode?: "single" | "incremental";
6171
+ /**
6172
+ * Deduplicate repeated claim lines across children BEFORE any model
6173
+ * call (RV-211 remainder; default false, and the prompt stays byte
6174
+ * identical when unset). In 'single' mode the digest entering the
6175
+ * synthesis prompt keeps only the FIRST occurrence of every repeated
6176
+ * line and a REPEATED CLAIMS index (each claim with its reporters)
6177
+ * rides the prompt beside it. In 'incremental' mode the deterministic
6178
+ * reconciliation dedupes the note texts the same way and the envelope
6179
+ * carries the `repeatedClaims` index. Matching is whitespace-collapsed
6180
+ * exact line equality: nothing fuzzy ever merges two distinct claims.
6181
+ */
6182
+ dedupeClaims?: boolean;
6183
+ /**
6184
+ * UsageLimits of ONE incremental note invocation; default
6185
+ * { maxTurns: 2 }. Ignored in 'single' mode.
6186
+ */
6187
+ noteLimits?: UsageLimits;
6188
+ }
6189
+ /**
6190
+ * The deterministic reconciliation envelope an 'incremental' synthesis
6191
+ * returns as the run result (RV-211 remainder): the coordination draft
6192
+ * plus one section per settled child in spawn order, each carrying the
6193
+ * child's terminal status and its note (the note invocation's finish
6194
+ * output, or the child's raw digest summary when the note fell back).
6195
+ * With `dedupeClaims`, repeated claim lines keep their first occurrence
6196
+ * only and the `repeatedClaims` index lists each with its reporters.
6197
+ * Everything here derives from journaled state, so a resume reproduces
6198
+ * the envelope byte for byte with zero paid calls.
6199
+ */
6200
+ interface IncrementalSynthesisResult {
6201
+ synthesis: "incremental";
6202
+ draft: unknown;
6203
+ sections: {
6204
+ nodeId: string;
6205
+ logicalTaskId: string; /** The child's terminal status. */
6206
+ status: string; /** The note invocation's terminal status ('ok' unless it fell back). */
6207
+ noteStatus: string;
6208
+ note: string;
6209
+ }[];
6210
+ repeatedClaims?: RepeatedClaim[];
6025
6211
  }
6026
6212
  declare const ORCHESTRATE_WORKFLOW_NAME = "rulvar-orchestrate";
6027
6213
  /**
@@ -6285,10 +6471,12 @@ interface AgentOpts<S extends SchemaSpec = SchemaSpec> {
6285
6471
  * The primary invocation role of the agent's tool loop; default
6286
6472
  * 'loop'. The plan and orchestrate entry points set it so the
6287
6473
  * resolution chain, role effort defaults, quality floors, and cost
6288
- * buckets see the right role; extract/finalize/summarize stay
6289
- * trigger-derived and are never settable here (M6-T05 amendment).
6474
+ * buckets see the right role, and the orchestrator's post-fan-in
6475
+ * synthesis invocation (RV-211) runs as 'synthesize';
6476
+ * extract/finalize/summarize stay trigger-derived and are never
6477
+ * settable here (M6-T05 amendment).
6290
6478
  */
6291
- role?: "loop" | "plan" | "orchestrate";
6479
+ role?: "loop" | "plan" | "orchestrate" | "synthesize";
6292
6480
  /** Overrides all roles at once. */
6293
6481
  model?: ModelSpec;
6294
6482
  /** Per-role, wins over profile.routing. */
@@ -6932,6 +7120,44 @@ declare class GitWorktreeProvider implements IsolationProvider {
6932
7120
  }>;
6933
7121
  }
6934
7122
  //#endregion
7123
+ //#region src/tools/research.d.ts
7124
+ interface RepositoryResearchToolsetOptions {
7125
+ /** The confining directory root; everything resolves under it. */
7126
+ root: string;
7127
+ /** Rows per list/search/evidence page; default 50. */
7128
+ pageSize?: number;
7129
+ /** Content budget of one read_file page in characters; default 4000. */
7130
+ readPageChars?: number;
7131
+ /** Files larger than this many bytes are refused; default 262144. */
7132
+ maxFileBytes?: number;
7133
+ /** Walk ceiling per call (files visited); default 20000. */
7134
+ maxScannedFiles?: number;
7135
+ /**
7136
+ * Extra ignored basenames (files and directories), merged over the
7137
+ * always-on defaults '.git' and 'node_modules'.
7138
+ */
7139
+ ignore?: string[];
7140
+ /** Walk dot-entries too; default false. */
7141
+ includeHidden?: boolean;
7142
+ }
7143
+ /** One verified evidence entry recorded by `record_evidence`. */
7144
+ interface ResearchEvidenceEntry {
7145
+ claim: string;
7146
+ /** Root-relative POSIX path, verified to exist at record time. */
7147
+ file: string;
7148
+ /** 'N' or 'N-M', 1-based, verified inside the file's line count. */
7149
+ lines?: string;
7150
+ /** Verified verbatim substring of the file at record time. */
7151
+ quote?: string;
7152
+ }
7153
+ interface RepositoryResearchToolset {
7154
+ /** list_files, search_files, read_file, record_evidence, list_evidence. */
7155
+ tools: ToolDef[];
7156
+ /** Snapshot copy of the evidence collected so far, in record order. */
7157
+ evidence(): ResearchEvidenceEntry[];
7158
+ }
7159
+ declare function repositoryResearchToolset(options: RepositoryResearchToolsetOptions): RepositoryResearchToolset;
7160
+ //#endregion
6935
7161
  //#region src/journal/scope.d.ts
6936
7162
  /**
6937
7163
  * Scope-path grammar (M1-T04): deterministic structural paths, independent
@@ -7597,6 +7823,34 @@ interface InvocationTable {
7597
7823
  * replayed one produce the same usage and cost columns.
7598
7824
  */
7599
7825
  declare function reduceInvocationTable(events: Iterable<WorkflowEvent>): InvocationTable;
7826
+ /**
7827
+ * The critical-path summary of one run (RV-211): the plan's post-fan-in
7828
+ * gate ("synthesis takes at most 40% of wall time with four settled
7829
+ * workers") computed as a pure fold over the same vocabulary, no
7830
+ * heuristics beyond the role tags. Post-fan-in is the interval from the
7831
+ * LAST settled non-coordination agent (any span whose primary role is
7832
+ * neither 'orchestrate' nor 'synthesize') to run:end; the synthesis wall
7833
+ * is the summed span wall of 'synthesize' spans. Wall numbers are LIVE
7834
+ * fidelity: a replayed stream re-stamps emission times, so its intervals
7835
+ * are degenerate, exactly like phase durations. Absent pieces (no
7836
+ * run:end, no worker spans) leave the corresponding fields undefined
7837
+ * rather than guessed at.
7838
+ */
7839
+ interface CriticalPath {
7840
+ /** run:start to run:end; absent while the run is open. */
7841
+ runWallMs?: number;
7842
+ /** Last non-coordination agent:end to run:end; absent without both. */
7843
+ postFanInMs?: number;
7844
+ /** Summed wall of completed 'synthesize' spans (0 when none). */
7845
+ synthesisMs: number;
7846
+ /** postFanInMs / runWallMs when both are defined and the wall is > 0. */
7847
+ postFanInShare?: number;
7848
+ /** synthesisMs / runWallMs under the same conditions. */
7849
+ synthesisShare?: number;
7850
+ /** Settled non-coordination agent spans that anchored the fan-in. */
7851
+ workerSpans: number;
7852
+ }
7853
+ declare function reduceCriticalPath(events: Iterable<WorkflowEvent>): CriticalPath;
7600
7854
  //#endregion
7601
7855
  //#region src/runner/sandbox-bridge.d.ts
7602
7856
  /** Methods a sandbox script may proxy to the host ctx. */
@@ -7670,4 +7924,4 @@ interface SandboxBridge {
7670
7924
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
7671
7925
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
7672
7926
  //#endregion
7673
- export { AWAIT_SCHEMA, AbandonAttempt, AbandonFold, AbandonPayload, AbandonedSpendView, AbortClass, type AdaptiveEvents, AdmissionController, AdmissionDecision, AdmissionRejectedError, AdmissionStatsBefore, AdmitLineage, AdmitRejectReason, AdmitSpec, AdmitVerdict, AgentCallError, AgentError, type AgentEvents, AgentIdentityInput, type AgentInvocationRow, AgentOpts, AgentProfile, AgentProfilePermissions, AgentResult, AgentResultMeta, AgentStatus, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditRunsOptions, BUDGET_ABORT_REASON, BaseAppend, BriefOpts, BudgetAccountView, BudgetDefaults, BudgetExhaustedError, BudgetExhaustionDiagnostics, BudgetHooks, BudgetReserve, type Bytes, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, CacheHint, CacheTtl, CanUseTool, CanonicalId, CanonicalIdentity, CanonicalLadderSpec, CanonicalModelSpec, ChatEvent, ChatRequest, CheckpointState, ChildArtifactPage, ChildIdentityInput, ChildResultPage, type ClaimClass, type ClaimOp, type ClaimStatus, ClaimValidationOptions, CollectOpts, CollectedTurn, CompactionConfig, CompiledPermissionChain, CompiledWorkflow, ConfigError, type CoreEvents, CostAttribution, CostAttributionFacts, CostReport, CreateEngineOptions, Ctx, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_DEPTH, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_TOTAL_SPAWNS, DEFAULT_MAX_TURNS, DEFAULT_MODEL_RETRY_ATTEMPTS, DEFAULT_NO_PROGRESS_TURNS, DEFAULT_PER_RUN_CONCURRENCY, DEFAULT_RETRY_POLICY, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DebitResult, DeclaredLadder, DedupIndex, DedupNote, DerivedKey, DeriverRegistry, type DeterminismConfig, DeterminismError, type DeterminismEvents, type DeterminismMode, DispositionRule, DispositionTable, DonorCandidate, DonorRef, DroppedItem, EMIT_RESULT_TOOL, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EffectiveUsageLimits, Effort, Engine, EngineDefaults, EntryKind, EntryRef, EntryStatus, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, type EvidenceRef, type ExplorationSummary, ExtensionAppendInput, ExtensionDispatchSpec, ExternalIdentityInput, ExternalRegistry, ExtractNecessityInput, FINALIZE_SYNTHESIS_INSTRUCTION, FINISH_SCHEMA, FINISH_TOOL_NAME, FailRunError, FailoverTarget, FailoverTrigger, FallbackField, FallbackTrigger, FileModelKnowledgeStore, FileModelKnowledgeStoreOptions, FileTranscriptStore, FinishInfo, FinishValidationChild, FinishValidationInput, FinishValidationSpec, FinishValidationVerdict, FinishValidator, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, Gate, GateAudit, type GateRecord, GitWorktreeProvider, GitWorktreeProviderOptions, GraftBoot, HashVersion, HookVerdict, INBOX_PROPOSAL_TTL_DAYS, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, InvalidResolutionError, InvocationRole, type InvocationTable, type IsolationProvider, type IsolationSpec, Issue$1 as Issue, JournalCompatSubCode, JournalCompatibilityError, JournalEntry, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, JournalSerializationHook, type JournalStore, type Json, JsonSchema, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, type KbProposal, type KbProposalTrigger, KeyDeriver, KeyRing, KeyedLimiter, KnowledgeCasError, type KnowledgeSnapshot, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LadderSpec, type LeasableStore, type Lease, LeaseHeldError, Ledger, LineageCounters, LineageIndex, LineageRef, LineageRelation, LineageStats, LogicalTaskId, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_DEPTH_CEILING, MatchResult, McpConfig, McpToolSource, MechanicalGateProfile, MechanicalGateVerdict, type MetaLookupStore, type ModelCaps, ModelChoice, type ModelClaim, ModelEpochInputs, type ModelKnowledgeHandle, type ModelKnowledgeStore, ModelListConstraint, ModelRef, ModelRetry, ModelSpec, Msg, NoProgressDetector, NodeId, NodeLinkValue, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OnEscalation, OperationDisposition, OrchestrateAcceptance, OrchestrateOptions, OrchestratorBudgetSpec, OrchestratorCapConfigError, OrchestratorExtension, OrchestratorExtensionIO, OrchestratorRuntime, Out, PARALLEL_AGENTS_SCHEMA, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, type PhaseRow, PhaseTarget, PipelineCollected, PipelineOpts, PlanInvariantError, PriceTable, PricedUsage, type Pricing, type PricingTier, type ProviderAdapter, QualityFloors, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, ReconcileOptions, ReconcileResult, RefEntryAppender, RefEntryClassification, RefusalInfo, ReplayDisposition, ReplayMode, ReplayPlanHashMismatch, Replayer, ResolutionArbiter, ResolutionAttempt, ResolutionBy, ResolutionFold, ResolutionLayer, ResolutionOutcome, ResolutionPayload, ResolvedInvocation, ResolvedToolset, ResumeHandle, ResumeOptions, ResumePreview, ResumeReport, RetryClass, RetryPolicy, ReuseConfig, RiskRuleValue, Role, RulvarError, RulvarErrorCode, RunAgentOptions, RunAuditVerdict, RunBudget, RunEventSink, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_AGENT_SCHEMA, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, Semaphore, SerializationHook, Settled, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StepIdentityInput, StructuredOutputTier, SuspendedAppend, SuspensionState, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TerminalPatch, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, TranscriptSerializationHook, type TranscriptStore, TriggerClass, TtlState, Usage, UsageLimits, UsageSlice, VerifiedRecommendation, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, WakeBudgetBlock, WakeDigest, WakeTrigger, WireError, Workflow, WorkflowCallOpts, type WorkflowEvent, type WorkflowEventBody, WorkflowRegistry, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, atCompactionThreshold, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compilePermissionChain, compilePermissionPreset, compileVerifiedLayer, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createSandboxBridge, currentOnlyKeyRing, decodeCheckpoint, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidencePreservedValidator, executeWorkflow, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, foldTermination, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, identityJcs, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, lexShellCommand, liftRetainedParts, lineageWeightOf, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, parallelScope, parseModelRef, parseScopePath, phiInitialOf, pipelineScope, planNodeScope, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, readRunMeta, readTerminationInit, reconcileRunMeta, reduceInvocationTable, registryKeyRing, remeasureQueue, replayDisposition, requiredFieldsValidator, requiredSectionsValidator, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, selectStructuredOutputTier, shouldCompact, snapshotUsage, spawnDepthOf, summarizeInstruction, summarizeOutput, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolContract, toolsetHash, ttlState, usageViolations, validateEditorialCommit, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateUsageLimits, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
7927
+ export { AWAIT_SCHEMA, AbandonAttempt, AbandonFold, AbandonPayload, AbandonedSpendView, AbortClass, type AdaptiveEvents, AdmissionController, AdmissionDecision, AdmissionRejectedError, AdmissionStatsBefore, AdmitLineage, AdmitRejectReason, AdmitSpec, AdmitVerdict, AgentCallError, AgentError, type AgentEvents, AgentIdentityInput, type AgentInvocationRow, AgentOpts, AgentProfile, AgentProfilePermissions, AgentResult, AgentResultMeta, AgentStatus, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditRunsOptions, BUDGET_ABORT_REASON, BaseAppend, BriefOpts, BudgetAccountView, BudgetDefaults, BudgetExhaustedError, BudgetExhaustionDiagnostics, BudgetHooks, BudgetReserve, type Bytes, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, CacheHint, CacheTtl, CanUseTool, CanonicalId, CanonicalIdentity, CanonicalLadderSpec, CanonicalModelSpec, ChatEvent, ChatRequest, CheckpointState, ChildArtifactPage, ChildIdentityInput, ChildResultPage, type ClaimClass, type ClaimOp, type ClaimStatus, ClaimValidationOptions, CollectOpts, CollectedTurn, CompactionConfig, CompiledPermissionChain, CompiledWorkflow, ConfigError, type CoreEvents, CostAttribution, CostAttributionFacts, CostReport, CreateEngineOptions, type CriticalPath, Ctx, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_DEPTH, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_TOTAL_SPAWNS, DEFAULT_MAX_TURNS, DEFAULT_MODEL_RETRY_ATTEMPTS, DEFAULT_NO_PROGRESS_TURNS, DEFAULT_PER_RUN_CONCURRENCY, DEFAULT_RETRY_POLICY, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DEFAULT_SYNTHESIS_MAX_TURNS, DEFAULT_SYNTHESIS_NOTE_MAX_TURNS, DebitResult, DeclaredLadder, DedupIndex, DedupNote, DedupedClaims, DerivedKey, DeriverRegistry, type DeterminismConfig, DeterminismError, type DeterminismEvents, type DeterminismMode, DispositionRule, DispositionTable, DonorCandidate, DonorRef, DroppedItem, EMIT_RESULT_TOOL, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EffectiveUsageLimits, Effort, Engine, EngineDefaults, EntryKind, EntryRef, EntryStatus, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, type EvidenceRef, type ExplorationSummary, ExtensionAppendInput, ExtensionDispatchSpec, ExternalIdentityInput, ExternalRegistry, ExtractNecessityInput, FINALIZE_SYNTHESIS_INSTRUCTION, FINISH_SCHEMA, FINISH_TOOL_NAME, FailRunError, FailoverTarget, FailoverTrigger, FallbackField, FallbackTrigger, FileModelKnowledgeStore, FileModelKnowledgeStoreOptions, FileTranscriptStore, FinishInfo, FinishValidationChild, FinishValidationInput, FinishValidationSpec, FinishValidationVerdict, FinishValidator, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, Gate, GateAudit, type GateRecord, GitWorktreeProvider, GitWorktreeProviderOptions, GraftBoot, HashVersion, HookVerdict, INBOX_PROPOSAL_TTL_DAYS, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, type IsolationProvider, type IsolationSpec, Issue$1 as Issue, JournalCompatSubCode, JournalCompatibilityError, JournalEntry, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, JournalSerializationHook, type JournalStore, type Json, JsonSchema, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, type KbProposal, type KbProposalTrigger, KeyDeriver, KeyRing, KeyedLimiter, KnowledgeCasError, type KnowledgeSnapshot, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LadderSpec, type LeasableStore, type Lease, LeaseHeldError, Ledger, LineageCounters, LineageIndex, LineageRef, LineageRelation, LineageStats, LogicalTaskId, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_DEPTH_CEILING, MatchResult, McpConfig, McpToolSource, MechanicalGateProfile, MechanicalGateVerdict, type MetaLookupStore, type ModelCaps, ModelChoice, type ModelClaim, ModelEpochInputs, type ModelKnowledgeHandle, type ModelKnowledgeStore, ModelListConstraint, ModelRef, ModelRetry, ModelSpec, Msg, NoProgressDetector, NodeId, NodeLinkValue, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OnEscalation, OperationDisposition, OrchestrateAcceptance, OrchestrateOptions, OrchestrateSynthesis, OrchestratorBudgetSpec, OrchestratorCapConfigError, OrchestratorExtension, OrchestratorExtensionIO, OrchestratorRuntime, Out, PARALLEL_AGENTS_SCHEMA, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, type PhaseRow, PhaseTarget, PipelineCollected, PipelineOpts, PlanInvariantError, PriceTable, PricedUsage, type Pricing, type PricingTier, type ProviderAdapter, QualityFloors, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, ReconcileOptions, ReconcileResult, RefEntryAppender, RefEntryClassification, RefusalInfo, RepeatedClaim, ReplayDisposition, ReplayMode, ReplayPlanHashMismatch, Replayer, RepositoryResearchToolset, RepositoryResearchToolsetOptions, ResearchEvidenceEntry, ResolutionArbiter, ResolutionAttempt, ResolutionBy, ResolutionFold, ResolutionLayer, ResolutionOutcome, ResolutionPayload, ResolvedInvocation, ResolvedToolset, ResumeHandle, ResumeOptions, ResumePreview, ResumeReport, RetryClass, RetryPolicy, ReuseConfig, RiskRuleValue, Role, RulvarError, RulvarErrorCode, RunAgentOptions, RunAuditVerdict, RunBudget, RunEventSink, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_AGENT_SCHEMA, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, Semaphore, SerializationHook, Settled, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StepIdentityInput, StructuredOutputTier, SuspendedAppend, SuspensionState, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TerminalPatch, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, TranscriptSerializationHook, type TranscriptStore, TriggerClass, TtlState, Usage, UsageLimits, UsageSlice, VerifiedRecommendation, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, WakeBudgetBlock, WakeDigest, WakeTrigger, WireError, Workflow, WorkflowCallOpts, type WorkflowEvent, type WorkflowEventBody, WorkflowRegistry, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, atCompactionThreshold, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compilePermissionChain, compilePermissionPreset, compileVerifiedLayer, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createSandboxBridge, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidencePreservedValidator, executeWorkflow, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, foldTermination, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, identityJcs, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, lexShellCommand, liftRetainedParts, lineageWeightOf, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, parallelScope, parseModelRef, parseScopePath, phiInitialOf, pipelineScope, planNodeScope, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, readRunMeta, readTerminationInit, reconcileRunMeta, reduceCriticalPath, reduceInvocationTable, registryKeyRing, remeasureQueue, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredSectionsValidator, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, selectStructuredOutputTier, shouldCompact, snapshotUsage, spawnDepthOf, summarizeInstruction, summarizeOutput, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolContract, toolsetHash, ttlState, usageViolations, validateEditorialCommit, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateUsageLimits, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };