@rulvar/core 1.60.0 → 1.62.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +344 -3
  2. package/dist/index.js +2783 -2124
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -663,6 +663,49 @@ interface UsageSlice {
663
663
  role?: InvocationRole;
664
664
  }
665
665
  /**
666
+ * One live provider dispatch of an agent invocation (P1.3, the durable
667
+ * reconciliation ledger): every wire call the engine actually made,
668
+ * successful or not, with the usage it consumed and the provider's
669
+ * response id when the adapter surfaced one. Quota-denied attempts and
670
+ * abort short circuits that never reached the adapter mint no record:
671
+ * the ledger enumerates exactly the calls a provider could bill.
672
+ * Records are minted from the same sanitized usage the phase slices
673
+ * accumulate, so per-model sums over an entry's records reconcile with
674
+ * `usageByModel` (and with `usage`) by construction on a fully live
675
+ * invocation.
676
+ */
677
+ interface ProviderCallRecord {
678
+ /** 1-based dispatch order across the whole invocation, phases included. */
679
+ ordinal: number;
680
+ /** The invocation phase that paid the call. */
681
+ role: InvocationRole;
682
+ servedBy: ModelRef;
683
+ /** 1-based try number on the serving target; retries increment it. */
684
+ attempt: number;
685
+ /**
686
+ * 'ok' = a terminal finish; 'error' = a wire failure after dispatch
687
+ * (the provider may still have billed the recorded usage); 'aborted' =
688
+ * the stream was severed by `aborted` below.
689
+ */
690
+ outcome: "ok" | "error" | "aborted";
691
+ /**
692
+ * The provider's response id from the finish metadata
693
+ * (`providerMetadata[<adapter id>].responseId`, surfaced by both
694
+ * shipped adapters). Absent when the adapter reported none or the
695
+ * call never finished; the invoice export marks such rows instead of
696
+ * dropping them.
697
+ */
698
+ responseId?: string;
699
+ /** This call's usage exactly, sanitized like every accounted number. */
700
+ usage: Usage;
701
+ /** True when the stream was cut, so the usage is a lower bound. */
702
+ usageApprox?: boolean;
703
+ /** WireError.code on 'error' outcomes. */
704
+ errorCode?: string;
705
+ /** What severed an 'aborted' call. */
706
+ aborted?: "budget" | "external" | "idle";
707
+ }
708
+ /**
666
709
  * Cost-attribution facts a live run knows at settlement and a pure
667
710
  * journal fold cannot re-derive: the innermost phase name at the call
668
711
  * site, the agent profile, the primary invocation role, the budget
@@ -752,6 +795,18 @@ type JournalEntry = {
752
795
  */
753
796
  costAttribution?: CostAttributionFacts;
754
797
  /**
798
+ * Terminal agent entries: the per-dispatch reconciliation ledger
799
+ * (P1.3), one record per live provider call the invocation made,
800
+ * failed and retried attempts included, so every billable wire call
801
+ * maps to a journal entry and the invoice export can name the
802
+ * provider response ids behind the usage total. Absent on entries
803
+ * written before this shipped and on fully replayed invocations
804
+ * (which made no calls); the invoice fold surfaces such entries as
805
+ * unattributed rows instead of losing their spend. Policy, never
806
+ * identity, exactly like usageByModel.
807
+ */
808
+ providerCalls?: ProviderCallRecord[];
809
+ /**
755
810
  * The serving adapters' declared usage-telemetry semantics at write
756
811
  * time (ProviderAdapter.usageSemantics), stamped so cost numbers stay
757
812
  * auditable across normalization corrections: an UNSTAMPED OpenAI
@@ -2627,6 +2682,8 @@ interface TerminalPatch {
2627
2682
  usageByModel?: UsageSlice[];
2628
2683
  /** Attribution facts behind the CostReport breakdowns; see JournalEntry. */
2629
2684
  costAttribution?: CostAttributionFacts;
2685
+ /** The per-dispatch reconciliation ledger (P1.3); see JournalEntry. */
2686
+ providerCalls?: ProviderCallRecord[];
2630
2687
  /** The serving adapter's usage-semantics version; see JournalEntry. */
2631
2688
  usageSemantics?: string;
2632
2689
  transcriptRef?: string;
@@ -3096,6 +3153,15 @@ interface CheckpointState {
3096
3153
  * exactly as they did then.
3097
3154
  */
3098
3155
  usageByModel?: UsageSlice[];
3156
+ /**
3157
+ * The per-dispatch reconciliation ledger so far (P1.3), carried at
3158
+ * every boundary so a kill-and-resume keeps pre-kill wire calls
3159
+ * attributable. Absent before the first call and on checkpoints
3160
+ * written before the ledger shipped: those restore none, and the
3161
+ * invoice fold surfaces the restored usage as an unattributed
3162
+ * remainder instead of losing it.
3163
+ */
3164
+ providerCalls?: ProviderCallRecord[];
3099
3165
  toolCallsUsed: number;
3100
3166
  schemaAttempts: number;
3101
3167
  /** Compaction points; producers arrive with M4-T03. */
@@ -3988,6 +4054,17 @@ interface AgentResult<T> {
3988
4054
  * which (usage, servedBy) already describes exactly.
3989
4055
  */
3990
4056
  usageByModel?: UsageSlice[];
4057
+ /**
4058
+ * The per-dispatch reconciliation ledger (P1.3): one record per live
4059
+ * provider call this invocation made, failed and retried attempts
4060
+ * included, each with its own usage and the provider's response id
4061
+ * when the adapter surfaced one. Journaled on the terminal entry and
4062
+ * restored verbatim on replay, so a live result and its replayed one
4063
+ * read the same ledger; `invoiceFromJournal` folds the same records
4064
+ * into the invoice export. Absent when the invocation made no wire
4065
+ * call (a fully replayed invocation).
4066
+ */
4067
+ providerCalls?: ProviderCallRecord[];
3991
4068
  transcriptRef: string;
3992
4069
  artifacts?: Artifact[];
3993
4070
  error?: AgentError;
@@ -5340,8 +5417,13 @@ declare class AdmissionController {
5340
5417
  }
5341
5418
  //#endregion
5342
5419
  //#region src/engine/cost-report.d.ts
5343
- /** Folds the per-run attribution buckets into the normative CostReport. */
5344
- declare function buildCostReport(attribution: CostAttribution, totalUsd: number): CostReport;
5420
+ /**
5421
+ * Folds the per-run attribution buckets into the normative CostReport.
5422
+ * Live attribution buckets never see abandoned subtrees, so a host
5423
+ * that tracked abandoned spend itself passes it as `abandoned`;
5424
+ * omitted, the report shows a gross equal to the net.
5425
+ */
5426
+ declare function buildCostReport(attribution: CostAttribution, totalUsd: number, abandoned?: CostReport["abandoned"]): CostReport;
5345
5427
  /**
5346
5428
  * The pure journal fold: the complete CostReport from terminal entries,
5347
5429
  * the same summation the kernel ledger uses (terminal usage exactly
@@ -5366,7 +5448,37 @@ interface PendingExternal {
5366
5448
  }
5367
5449
  /** Full contract: https://docs.rulvar.com/guide/observability. */
5368
5450
  interface CostReport {
5451
+ /**
5452
+ * The NET ledger: priced terminal usage with abandoned subtrees
5453
+ * contributing zero (their spend is a sunk cost of branches the
5454
+ * orchestrator discarded, not of the work the run kept). The
5455
+ * provider still billed them: reconcile invoices against `grossUsd`,
5456
+ * never this.
5457
+ */
5369
5458
  totalUsd: number;
5459
+ /**
5460
+ * The gross/net split (P1.3): totalUsd + abandoned.usd, every priced
5461
+ * terminal slice with abandonment included. This is the immutable
5462
+ * provider-spend figure an invoice reconciles against; abandoning a
5463
+ * branch never shrinks it.
5464
+ */
5465
+ grossUsd: number;
5466
+ /**
5467
+ * Priced spend under abandoned subtrees, exactly the part totalUsd
5468
+ * excludes. `unpriced` here surfaces abandoned slices with no price
5469
+ * row (the top-level `unpriced` lists only slices contributing to
5470
+ * totalUsd), and `usageApprox` follows the same semantics as the
5471
+ * top-level flag over the abandoned entries; grossUsd is an estimate
5472
+ * whenever either flag is raised.
5473
+ */
5474
+ abandoned: {
5475
+ usd: number;
5476
+ unpriced: Array<{
5477
+ model: string;
5478
+ usage: Usage;
5479
+ }>;
5480
+ usageApprox?: boolean;
5481
+ };
5370
5482
  /** Keyed by canonical ModelRef 'adapterId:model'. */
5371
5483
  byModel: Record<string, number>;
5372
5484
  /** ctx.phase names; phase is structural for this map. */
@@ -8171,6 +8283,235 @@ declare class FileTranscriptStore implements TranscriptStore {
8171
8283
  delete(ref: string): Promise<void>;
8172
8284
  }
8173
8285
  //#endregion
8286
+ //#region src/engine/invoice.d.ts
8287
+ /** How a row lines up against a provider invoice. */
8288
+ type InvoiceReconciliation = "matched" | "missing-provider-id" | "unconfirmed" | "unattributed";
8289
+ /** One billable provider call (or an unattributed usage remainder). */
8290
+ interface InvoiceRow {
8291
+ /** The terminal journal entry the row folds from. */
8292
+ entrySeq: number;
8293
+ scope: string;
8294
+ key: string;
8295
+ /** The call's dispatch ordinal within its invocation; remainder and slice rows continue past it. */
8296
+ ordinal: number;
8297
+ servedBy: ModelRef;
8298
+ role?: InvocationRole;
8299
+ /** 1-based try number on the serving target (retries increment it). */
8300
+ attempt?: number;
8301
+ outcome: ProviderCallRecord["outcome"] | "unattributed";
8302
+ responseId?: string;
8303
+ usage: Usage;
8304
+ usageApprox?: boolean;
8305
+ /** This row priced at its own model's rate; absent when no price row covers it. */
8306
+ usd?: number;
8307
+ /** The row lies under an abandoned subtree: in grossUsd, not in netUsd. */
8308
+ abandoned?: true;
8309
+ reconciliation: InvoiceReconciliation;
8310
+ }
8311
+ /** The machine-readable invoice: rows plus the ledger totals. */
8312
+ interface InvoiceExport {
8313
+ rows: InvoiceRow[];
8314
+ /** Every priced terminal slice, abandonment included: equals CostReport.grossUsd. */
8315
+ totalUsd: number;
8316
+ /** The net ledger (abandoned subtrees contribute zero): equals CostReport.totalUsd. */
8317
+ netUsd: number;
8318
+ /** The abandoned share: totalUsd - netUsd, equals CostReport.abandoned.usd. */
8319
+ abandonedUsd: number;
8320
+ /** Usage on models absent from pricing, net and abandoned alike; never a silent zero. */
8321
+ unpriced: Array<{
8322
+ model: string;
8323
+ usage: Usage;
8324
+ }>;
8325
+ /** Rows whose reconciliation is not 'matched'. */
8326
+ reconciliationFailures: number;
8327
+ /** Present and true when any contributing entry carried approximate usage. */
8328
+ usageApprox?: boolean;
8329
+ }
8330
+ /**
8331
+ * The pure invoice fold. Pass the same entries and price table you
8332
+ * would pass `costReportFromJournal`; the totals are that report's
8333
+ * gross/net split verbatim.
8334
+ */
8335
+ declare function invoiceFromJournal(entries: readonly JournalEntry[], priceUsd: (servedBy: ModelRef, usage: Usage) => number | undefined): InvoiceExport;
8336
+ //#endregion
8337
+ //#region src/engine/preflight.d.ts
8338
+ /**
8339
+ * One intended spawn of the wave under estimation: the same layers the
8340
+ * engine reads at ctx.agent time (call limits over profile limits over
8341
+ * engine defaults; call estCost over profile estCost over the priced
8342
+ * estimate over the flat default), plus the two stand-ins a static
8343
+ * estimate needs: `estInputTokens` replaces the adapter countTokens the
8344
+ * runtime would call over the real prompt, and `count` declares how
8345
+ * many spawns of this shape the first wave holds.
8346
+ */
8347
+ interface PreflightSpawnSpec {
8348
+ /** Display label; defaults to the role name. */
8349
+ label?: string;
8350
+ /** Default 'loop', exactly like ctx.agent. */
8351
+ role?: InvocationRole;
8352
+ /** A registered AgentProfile name from defaults.profiles. */
8353
+ profile?: string;
8354
+ /** Wins over the profile model over defaults.routing[role]. */
8355
+ model?: ModelSpec;
8356
+ /** The call-layer limits, merged exactly like AgentOpts.limits. */
8357
+ limits?: UsageLimits;
8358
+ /** The call-layer admission reserve hint, exactly AgentOpts.estCost. */
8359
+ estCost?: number;
8360
+ /**
8361
+ * The prompt-size stand-in for the runtime's adapter countTokens:
8362
+ * feeds the priced admission estimate and the per-turn and quota
8363
+ * exposure floors. Absent, the reserve falls through to the flat
8364
+ * default exactly like a runtime spawn whose adapter cannot count.
8365
+ */
8366
+ estInputTokens?: number;
8367
+ /** How many spawns of this shape the wave declares; default 1. */
8368
+ count?: number;
8369
+ }
8370
+ /** The OrchestrateOptions slice the estimator consumes. */
8371
+ interface PreflightOrchestratorSpec {
8372
+ budget?: OrchestratorBudgetSpec;
8373
+ /** The per-orchestrate spawn cap, exactly OrchestrateOptions.maxSpawns. */
8374
+ maxSpawns?: number;
8375
+ /** The orchestrator agent's own limits, exactly OrchestrateOptions.limits. */
8376
+ limits?: UsageLimits;
8377
+ /**
8378
+ * Whether the orchestration runs under a plan extension (PlanRunner):
8379
+ * only extension runs commit the finalize reserve against the run
8380
+ * root, so only they subtract it from spawn-admission headroom.
8381
+ */
8382
+ extension?: boolean;
8383
+ }
8384
+ /** The full input: engine surface, run surface, and the declared wave. */
8385
+ interface PreflightInput {
8386
+ /** The same object createEngine would receive (adapters used for pure caps() only). */
8387
+ engine?: Partial<Pick<CreateEngineOptions, "adapters" | "defaults" | "budgetDefaults" | "concurrency" | "quota" | "pricing">>;
8388
+ /** The RunOptions slice: the run ceiling and run-level limits. */
8389
+ run?: Pick<RunOptions, "budgetUsd" | "limits">;
8390
+ /** Present when the run is a dynamic orchestration. */
8391
+ orchestrator?: PreflightOrchestratorSpec;
8392
+ /** The declared first spawn wave, in admission order. */
8393
+ spawns?: PreflightSpawnSpec[];
8394
+ /**
8395
+ * The quota rule set behind the configured limiter, when the host
8396
+ * uses a rule-driven implementation (memoryQuotaLimiter,
8397
+ * SqliteQuotaLimiter): the SPI hides rules behind reserve(), so the
8398
+ * demand comparison needs them declared here.
8399
+ */
8400
+ quotaRules?: readonly QuotaRule[];
8401
+ }
8402
+ /** One linter verdict; `spawn` names the wave entry it is about. */
8403
+ interface PreflightFinding {
8404
+ severity: "error" | "warning" | "info";
8405
+ /** Stable kebab-case code for machine consumption. */
8406
+ code: string;
8407
+ message: string;
8408
+ spawn?: string;
8409
+ }
8410
+ /** Per-tool executed-call ceiling and the limiter that provides it. */
8411
+ interface PreflightToolCeiling {
8412
+ /** A named tool, or '(any)' for a tool no cap or cost names. */
8413
+ tool: string;
8414
+ /** Executed calls possible for this tool alone; null = unlimited. */
8415
+ ceiling: number | null;
8416
+ /** The limiter producing the ceiling, when one binds. */
8417
+ boundBy?: "maxCallsPerTool" | "toolUnits" | "maxToolCalls";
8418
+ }
8419
+ /** The effective picture of one declared spawn shape. */
8420
+ interface PreflightSpawnReport {
8421
+ label: string;
8422
+ role: InvocationRole;
8423
+ count: number;
8424
+ /** The resolved serving target; absent when no model resolves (see findings). */
8425
+ servedBy?: ModelRef;
8426
+ /** True when the serving model has no price row: a USD ceiling cannot bound it. */
8427
+ unpriced?: true;
8428
+ /** The SAME merge the runtime applies: call over profile over engine defaults. */
8429
+ limits: EffectiveUsageLimits;
8430
+ /** The layer-1 admission reserve this spawn would be admitted under. */
8431
+ admissionReserveUsd: number;
8432
+ /** Which arm of the reserve formula produced the number. */
8433
+ reserveSource: "estCost" | "profile-estCost" | "priced-estimate" | "flat-default" | "unpriced-zero";
8434
+ /** The per-turn output bound: caps.maxOutputTokens clamped by the limits field. */
8435
+ maxOutputTokensPerTurn?: number;
8436
+ /**
8437
+ * The cost floor of ONE turn at the declared estimates: estInputTokens
8438
+ * (default 0) plus the output bound, priced like settlement. A real
8439
+ * turn grows with the prompt, so this is a floor, never a cap.
8440
+ */
8441
+ turnFloorUsd?: number;
8442
+ /** Executed-call ceiling across any tool mix; null = unlimited. */
8443
+ executedToolCallCeiling: number | null;
8444
+ /** Per-tool ceilings for every tool a cap or a unit cost names. */
8445
+ toolCeilings: PreflightToolCeiling[];
8446
+ }
8447
+ /** One wave entry of the admission projection. */
8448
+ interface PreflightAdmissionRow {
8449
+ label: string;
8450
+ reserveUsd: number;
8451
+ admitted: boolean;
8452
+ deniedBy?: "budget" | "spawn-cap" | "orchestrator-max-spawns" | "orchestrator-cap";
8453
+ }
8454
+ /** The machine-readable preflight report; JSON-serializable throughout. */
8455
+ interface PreflightReport {
8456
+ concurrency: {
8457
+ perRun: number;
8458
+ perProvider?: Record<string, number>;
8459
+ };
8460
+ budget: {
8461
+ ceilingUsd?: number;
8462
+ flatReserveUsd: number;
8463
+ lifetimeSpawnCap: number;
8464
+ childBudgetFraction: number;
8465
+ maxDepth: number;
8466
+ orchestrator?: {
8467
+ /** min(capUsd, (capFraction ?? 0.2) x ceiling); absent when unresolvable. */effectiveCapUsd?: number;
8468
+ finalizeReserveUsd: number;
8469
+ finalizeTurns: number; /** Whether the finalize reserve is committed against the run root (extension runs). */
8470
+ reserveCommitted: boolean;
8471
+ };
8472
+ };
8473
+ quota: {
8474
+ configured: boolean;
8475
+ tenant?: string;
8476
+ rules?: number;
8477
+ };
8478
+ /** The run-level merge an undeclared spawn would receive. */
8479
+ runLimits: EffectiveUsageLimits;
8480
+ spawns: PreflightSpawnReport[];
8481
+ admission: {
8482
+ ceilingUsd?: number;
8483
+ reservedForFinalizationUsd: number;
8484
+ wave: PreflightAdmissionRow[];
8485
+ admitted: number;
8486
+ denied: number;
8487
+ };
8488
+ exposure: {
8489
+ /** Concurrent in-flight turns the declared wave can hold. */maxInFlight: number;
8490
+ /**
8491
+ * The one-more-turn cost floor past a ceiling crossing: the sum of
8492
+ * the maxInFlight most expensive declared turn floors. The
8493
+ * documented overshoot bound is one turn per in-flight agent; real
8494
+ * turns grow with the prompt, so this is the floor of that bound.
8495
+ */
8496
+ overshootOneTurnFloorUsd?: number; /** Per-provider first-wave demand at the declared estimates. */
8497
+ perProvider: Record<string, {
8498
+ inFlight: number;
8499
+ requestsPerWave: number;
8500
+ tokensPerWaveFloor: number;
8501
+ }>;
8502
+ };
8503
+ findings: PreflightFinding[];
8504
+ }
8505
+ /**
8506
+ * Computes the preflight report: the effective merged limits per
8507
+ * declared spawn, the layer-1 admission projection over the declared
8508
+ * wave, the per-tool and weighted-unit bottleneck ordering, the
8509
+ * concurrency and quota exposure at the declared estimates, and the
8510
+ * linter findings. Pure: no engine is constructed, no store is opened,
8511
+ * no adapter stream is dispatched, and no journal entry is written.
8512
+ */
8513
+ declare function preflightEstimate(input: PreflightInput): PreflightReport;
8514
+ //#endregion
8174
8515
  //#region src/engine/run-profiles.d.ts
8175
8516
  interface RunProfile {
8176
8517
  /** Per-role canonical effort hints (the model refs come from the host). */
@@ -8672,4 +9013,4 @@ interface SandboxBridge {
8672
9013
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
8673
9014
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
8674
9015
  //#endregion
8675
- 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, AgentProfileTemplateOptions, AgentResult, AgentResultMeta, AgentStatus, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditCategory, AuditRecord, 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, DataKeyProvider, 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, EngineQuotaConfig, EngineQuotaRuntime, EntryKind, EntryRef, EntryStatus, EnvelopeEncryption, EnvelopeEncryptionOptions, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, type EvidenceRef, type ExecutorRegistry, 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, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, type IsolatedExecContext, type IsolatedExecRequest, type IsolatedExecutorTag, type IsolationProvider, type IsolationSpec, Issue$1 as Issue, JOURNAL_ENVELOPE_MARKER, JournalCompatSubCode, JournalCompatibilityError, JournalEntry, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, JournalSerializationContext, 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, MemoryQuotaLimiter, 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, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, type PhaseRow, PhaseTarget, PipelineCollected, PipelineOpts, PlanInvariantError, PriceTable, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, QUOTA_WINDOW_MS, QualityFloors, QuotaCounters, type QuotaDecision, type QuotaEstimate, type QuotaLimiter, type QuotaReservationRequest, QuotaRule, QuotaWindowSnapshot, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, 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, ResearchAgentProfileOptions, ResearchAgentProfileResult, 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, RunExport, 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, SecretMasker, 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, type ToolExecutorProvider, 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, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, 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, implementationAgentProfile, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, parallelScope, parseModelRef, parseScopePath, phiInitialOf, pipelineScope, planNodeScope, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reduceAuditTrail, reduceCriticalPath, reduceInvocationTable, registryKeyRing, remeasureQueue, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, 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, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateUsageLimits, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
9016
+ 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, AgentProfileTemplateOptions, AgentResult, AgentResultMeta, AgentStatus, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditCategory, AuditRecord, 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, DataKeyProvider, 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, EngineQuotaConfig, EngineQuotaRuntime, EntryKind, EntryRef, EntryStatus, EnvelopeEncryption, EnvelopeEncryptionOptions, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, type EvidenceRef, type ExecutorRegistry, 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, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, InvoiceExport, InvoiceReconciliation, InvoiceRow, type IsolatedExecContext, type IsolatedExecRequest, type IsolatedExecutorTag, type IsolationProvider, type IsolationSpec, Issue$1 as Issue, JOURNAL_ENVELOPE_MARKER, JournalCompatSubCode, JournalCompatibilityError, JournalEntry, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, JournalSerializationContext, 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, MemoryQuotaLimiter, 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, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, type PhaseRow, PhaseTarget, PipelineCollected, PipelineOpts, PlanInvariantError, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, QUOTA_WINDOW_MS, QualityFloors, QuotaCounters, type QuotaDecision, type QuotaEstimate, type QuotaLimiter, type QuotaReservationRequest, QuotaRule, QuotaWindowSnapshot, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, 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, ResearchAgentProfileOptions, ResearchAgentProfileResult, 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, RunExport, 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, SecretMasker, 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, type ToolExecutorProvider, 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, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, 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, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, parallelScope, parseModelRef, parseScopePath, phiInitialOf, pipelineScope, planNodeScope, preflightEstimate, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reduceAuditTrail, reduceCriticalPath, reduceInvocationTable, registryKeyRing, remeasureQueue, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, 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, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateUsageLimits, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };