@rulvar/core 1.232.0 → 1.234.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 +138 -15
  2. package/dist/index.js +156 -11
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1085,6 +1085,24 @@ type JournalEntry = {
1085
1085
  citation?: string;
1086
1086
  }>;
1087
1087
  /**
1088
+ * Terminal agent entries: the durable subset of the tool-budget
1089
+ * summary (RV3002): the loop's executed-call counter and the
1090
+ * effective cap at the end, journaled at settle whenever the live
1091
+ * result carried a summary. The counter has always been durable in
1092
+ * the terminal checkpoint, but checkpoints are blobs and journal
1093
+ * folds read entries only, so without this field observed
1094
+ * calls-per-evidence-entry calibration cannot be a pure fold. Replay
1095
+ * restores AgentResult.toolBudget from here unconditionally; entries
1096
+ * without the field (every pre-existing journal) keep the RV509
1097
+ * decision-conditional path byte for byte. Live-only summary fields
1098
+ * (unitsUsed, noticesFired, limiter, and the rest) never journal.
1099
+ * Policy, never identity, exactly like evidence.
1100
+ */
1101
+ toolBudget?: {
1102
+ used: number;
1103
+ cap?: number;
1104
+ };
1105
+ /**
1088
1106
  * Terminal escalated entries ONLY: the schema-validated
1089
1107
  * EscalationReport with runtime-filled costToDate and salvage; replay
1090
1108
  * synthesizes the byte-identical report from here (DEF-1).
@@ -2357,16 +2375,19 @@ interface ExplorationSummary {
2357
2375
  * visible BEFORE the terminal 'limit' a starved worker would settle
2358
2376
  * with. Attached to the full AgentResult and to the live `agent:end`
2359
2377
  * event whenever maxToolCalls, toolUnits, or toolBudgetExtension is
2360
- * configured. The snapshot itself never journals, but since RV509 it
2361
- * has a durable subset: an extension grant and the finalization-window
2362
- * entry journal as decision entries the moment they fire, a
2363
- * crash-resume restores them from the journal, and a replayed result
2364
- * carries `used` (from the terminal checkpoint), the granted `cap`,
2365
- * `extensionsGranted`, and `finalizationWindowEntered` whenever the
2366
- * invocation journaled at least one such decision. Every other field
2367
- * (unitsUsed/unitsMax, noticesFired, finalizationReserveUsed, limiter,
2368
- * and the cap of a grant-free run) is live-only fidelity, exactly like
2369
- * transportRetries, and stays absent on replay.
2378
+ * configured. The durable subset: since RV3002 the terminal entry
2379
+ * journals `used` and the effective `cap` at settle, so a replayed
2380
+ * result restores them unconditionally on new journals; an extension
2381
+ * grant and the finalization-window entry journal as decision entries
2382
+ * the moment they fire (RV509) and merge into the restored summary as
2383
+ * `extensionsGranted` and `finalizationWindowEntered`. A journal
2384
+ * written before the entry field shipped keeps the RV509 behavior byte
2385
+ * for byte: `used` from the terminal checkpoint plus the
2386
+ * decision-backed fields, present exactly when the invocation
2387
+ * journaled at least one decision. Every other field
2388
+ * (unitsUsed/unitsMax, noticesFired, finalizationReserveUsed, limiter)
2389
+ * is live-only fidelity, exactly like transportRetries, and stays
2390
+ * absent on replay.
2370
2391
  */
2371
2392
  interface ToolBudgetSummary {
2372
2393
  /** Executed tool calls (the loop's own counter). */
@@ -3732,6 +3753,11 @@ interface TerminalPatch {
3732
3753
  claim: string;
3733
3754
  citation?: string;
3734
3755
  }>;
3756
+ /** Terminal agent entries: the durable tool-budget subset; see JournalEntry. */
3757
+ toolBudget?: {
3758
+ used: number;
3759
+ cap?: number;
3760
+ };
3735
3761
  /** Terminal escalated entries: the validated EscalationReport. */
3736
3762
  escalation?: unknown;
3737
3763
  /**
@@ -7854,6 +7880,19 @@ interface ResumeOptions {
7854
7880
  */
7855
7881
  args?: unknown;
7856
7882
  /**
7883
+ * What an in-process body-hash mismatch does (RV3001). The default
7884
+ * 'warn' keeps the historical design: the mismatch emits the loud
7885
+ * `RULVAR_RESUME_HASH_MISMATCH` warning and the resume proceeds,
7886
+ * because the journal decides replay versus live per content keys
7887
+ * and reports orphans honestly. 'refuse' turns the same mismatch
7888
+ * into a typed ConfigError BEFORE ownership, meta writes, or any
7889
+ * append: the pin for hosts that treat an edited body as a
7890
+ * different workflow. The vocabulary is
7891
+ * {@link EvidenceContract.enforce}'s. Name mismatches and compiled
7892
+ * source mismatches are hard errors regardless, exactly as before.
7893
+ */
7894
+ bodyHash?: "warn" | "refuse";
7895
+ /**
7857
7896
  * Dry-run: replay-strict matching; the first would-be-live call throws
7858
7897
  * JournalMissError and the run settles with that typed error, zero live
7859
7898
  * calls performed.
@@ -7905,7 +7944,9 @@ interface Engine {
7905
7944
  * Rebinds a journal to a workflow definition and resumes. Requires wf
7906
7945
  * for in-process workflows;
7907
7946
  * a name mismatch is a typed ConfigError; a body-hash mismatch warns
7908
- * loudly and proceeds (the journal decides replay per content keys).
7947
+ * loudly and proceeds (the journal decides replay per content keys),
7948
+ * unless {@link ResumeOptions.bodyHash} is 'refuse', which makes it
7949
+ * a typed ConfigError before any durable mutation (RV3001).
7909
7950
  * A compiled run resumes WITHOUT wf: the engine rehydrates the
7910
7951
  * persisted source pinned by workflowHash; supplying a compiled wf
7911
7952
  * whose source hash differs from the recorded one is a typed
@@ -10532,8 +10573,23 @@ interface OrchestrateSynthesis {
10532
10573
  * (harness-observed, not production evidence). Folded ONLY from
10533
10574
  * journal-replayed material; off by default, and the prompt stays
10534
10575
  * byte identical when unset.
10535
- */
10536
- runFacts?: boolean;
10576
+ *
10577
+ * The object form (RV3004) keeps the child line and adds opt-ins.
10578
+ * `workflowSoFar: true` appends a RUN FACTS SO FAR line: the same
10579
+ * counters folded over the settled children PLUS this
10580
+ * orchestration's own settled internal spans as of this dispatch's
10581
+ * composition (coordination turns, draft claim judges, judged
10582
+ * contradiction passes, synthesis notes), so the number the model
10583
+ * quotes sits next to the invoice instead of a third of it. The
10584
+ * composing dispatch itself and anything still running are excluded
10585
+ * by construction, the line says so, and dollars stay absent for
10586
+ * the same replay reason as the child line. `runFacts: true` keeps
10587
+ * today's prompt bytes exactly; the SO FAR line exists only under
10588
+ * the object opt-in.
10589
+ */
10590
+ runFacts?: boolean | {
10591
+ workflowSoFar?: boolean;
10592
+ };
10537
10593
  /**
10538
10594
  * Admission estimate for the synthesize invocation, like
10539
10595
  * AgentOpts.estCost: under a tight orchestrator cap the default
@@ -10577,7 +10633,9 @@ interface OrchestrateSynthesis {
10577
10633
  dedupeClaims?: boolean;
10578
10634
  /**
10579
10635
  * UsageLimits of ONE incremental note invocation; default
10580
- * { maxTurns: 2 }. Ignored in 'single' mode.
10636
+ * { maxTurns: 2 }. In mode 'single' the declaration is a typed
10637
+ * ConfigError (RV3102): no note invocation exists for the limits to
10638
+ * bound, and until the gate it was silently ignored.
10581
10639
  */
10582
10640
  noteLimits?: UsageLimits;
10583
10641
  /**
@@ -13057,6 +13115,11 @@ interface JournaledChild {
13057
13115
  minEntries: number;
13058
13116
  met: boolean;
13059
13117
  };
13118
+ /** The RV3002 durable tool-budget subset, when the terminal journaled it. */
13119
+ toolBudget?: {
13120
+ used: number;
13121
+ cap?: number;
13122
+ };
13060
13123
  /**
13061
13124
  * Present and true when the orchestration ABANDONED this child's
13062
13125
  * branch (RV2804): the work happened and the provider billed it, and
@@ -13312,6 +13375,66 @@ interface JournaledSynthesisCandidateReport {
13312
13375
  */
13313
13376
  declare function synthesisCandidatesFromJournal(entries: readonly JournalEntry[], priceUsd?: (servedBy: ModelRef, usage: Usage) => number | undefined): JournaledSynthesisCandidateReport;
13314
13377
  //#endregion
13378
+ //#region src/stores/tool-calibration.d.ts
13379
+ /** One dispatch carrying BOTH sides of the calibration pair (RV3003). */
13380
+ interface ToolCalibrationRow {
13381
+ /** The scope the dispatch journaled under. */
13382
+ scope: string;
13383
+ /** The dispatch seq (the terminal's `ref`): the child's handle. */
13384
+ handle: number;
13385
+ /** The profile the dispatch ran under, when the terminal recorded it. */
13386
+ agentType?: string;
13387
+ /** The journaled terminal status. */
13388
+ status: string;
13389
+ /** Successful `record_evidence` executions the RV806 verdict counted. */
13390
+ recordedEntries: number;
13391
+ /** The declared floor the verdict was judged against. */
13392
+ minEntries: number;
13393
+ /** Executed tool calls the RV3002 terminal subset journaled. */
13394
+ toolCallsUsed: number;
13395
+ /** `toolCallsUsed / recordedEntries`; absent when recordedEntries is 0. */
13396
+ callsPerEntry?: number;
13397
+ }
13398
+ /** A dispatch named but excluded from the rate: one side is NOT RECORDED. */
13399
+ interface ToolCalibrationExclusion {
13400
+ scope: string;
13401
+ handle: number;
13402
+ status: string;
13403
+ }
13404
+ /** The observed calls-per-evidence-entry calibration of one journal (RV3003). */
13405
+ interface ToolCalibrationReport {
13406
+ /** Terminal agent dispatches the journal holds, the partition's whole. */
13407
+ dispatches: number;
13408
+ /** Dispatches carrying both the verdict and the counter, in seq order. */
13409
+ observed: ToolCalibrationRow[];
13410
+ /**
13411
+ * The observed aggregate over `observed` rows: summed executed calls
13412
+ * against summed recorded entries, with the rate absent when the
13413
+ * entry sum is 0. Absent entirely when no row paired.
13414
+ */
13415
+ aggregate?: {
13416
+ toolCallsUsed: number;
13417
+ recordedEntries: number;
13418
+ callsPerEntry?: number;
13419
+ };
13420
+ /** A declared contract whose counter was never journaled (pre-RV3002 journals). */
13421
+ evidenceOnly: ToolCalibrationExclusion[];
13422
+ /** A journaled counter with no declared contract: nothing to divide by. */
13423
+ budgetOnly: ToolCalibrationExclusion[];
13424
+ /** Dispatches carrying neither side. */
13425
+ unobserved: number;
13426
+ }
13427
+ /**
13428
+ * Folds the observed tool-budget calibration from a journal (RV3003):
13429
+ * every terminal agent entry is partitioned by which sides of the
13430
+ * evidence/counter pair it recorded, the paired rows carry their
13431
+ * per-dispatch rate, and the aggregate is the number a host compares
13432
+ * against its declared `estCallsPerEntry`. Pure over the entries, so
13433
+ * live and resumed journals fold identically; nothing is re-derived
13434
+ * and no checkpoint blob is read.
13435
+ */
13436
+ declare function toolCalibrationFromJournal(entries: readonly JournalEntry[]): ToolCalibrationReport;
13437
+ //#endregion
13315
13438
  //#region src/stores/jsonl.d.ts
13316
13439
  declare class JsonlFileStore implements MetaLookupStore {
13317
13440
  private readonly dir;
@@ -15128,4 +15251,4 @@ interface SandboxBridge {
15128
15251
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
15129
15252
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
15130
15253
  //#endregion
15131
- export { AWAIT_SCHEMA, AbandonAttempt, AbandonFold, AbandonPayload, AbandonedSpendView, AbortClass, AcceptanceChildSummary, type AdaptiveEvents, AdmissionController, AdmissionDecision, AdmissionRejectedError, AdmissionStatsBefore, AdmitLineage, AdmitRejectReason, AdmitSpec, AdmitVerdict, AgentCallError, AgentError, type AgentEvents, AgentIdentityInput, type AgentInvocationRow, AgentOpts, AgentProfile, AgentProfilePermissions, AgentProfileTemplateOptions, AgentResult, AgentResultMeta, AgentStatus, type AppliedPricingRow, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditCategory, AuditRecord, AuditRunsOptions, BUDGET_ABORT_REASON, BaseAppend, BillingComponent, BriefOpts, BudgetAccountView, BudgetDefaults, BudgetExhaustedError, BudgetExhaustionDiagnostics, BudgetHooks, BudgetReserve, type Bytes, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, CacheHint, CachePolicy, CacheTtl, CanUseTool, CanonicalId, CanonicalIdentity, CanonicalLadderSpec, CanonicalModelSpec, ChatEvent, ChatRequest, CheckpointState, ChildArtifactPage, ChildExecutionFacts, ChildIdentityInput, ChildResultPage, ChildrenAtFailure, CitationTarget, type ClaimClass, ClaimContradictionFinding, ClaimCoverageGrade, ClaimCoverageInput, type ClaimOp, ClaimPair, ClaimPairOptions, ClaimPairsFold, ClaimPoolReading, type ClaimStatus, ClaimValidationOptions, CollectOpts, CollectedTurn, CompactionConfig, CompiledPermissionChain, CompiledWorkflow, ComponentDelta, ConfigError, Contradiction, ContradictionClaim, ContradictionOptions, ContradictionSource, type CoreEvents, CostAttribution, CostAttributionFacts, type CostBasis, CostReport, CreateEngineOptions, type CriticalPath, Ctx, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, 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, DecisionChainRow, DeclaredLadder, DedupIndex, DedupNote, DedupedClaims, DelimitedStatementOptions, DerivedKey, DeriverRegistry, type DeterminismConfig, DeterminismError, type DeterminismEvents, type DeterminismMode, DispositionRule, DispositionTable, DocumentedRates, DonorCandidate, DonorRef, DroppedItem, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EffectiveUsageLimits, Effort, Engine, EngineDefaults, EngineQuotaConfig, EngineQuotaRuntime, EntryBillingFold, EntryBillingUnit, EntryKind, EntryRef, EntryStatus, EnvelopeEncryption, EnvelopeEncryptionOptions, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, EvidenceContract, type EvidenceRef, type ExecKeyDerivation, type ExecutorRegistry, type ExplorationSummary, ExtensionAppendInput, ExtensionDispatchSpec, ExternalIdentityInput, ExternalRegistry, ExtractNecessityInput, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FailoverTarget, FailoverTrigger, FallbackField, FallbackTrigger, FencedCodeMode, FileModelKnowledgeStore, FileModelKnowledgeStoreOptions, FileTranscriptStore, type FinalizationWindowBudget, FinishContract, FinishContractCitations, FinishContractGoldenReject, FinishContractManifest, FinishContractSectionPattern, FinishInfo, FinishSelfTestFailure, FinishSelfTestFixtures, FinishSelfTestReport, FinishValidationChild, FinishValidationInput, FinishValidationSpec, FinishValidationVerdict, FinishValidator, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, Gate, GateAudit, type GateRecord, GitWorktreeProvider, GitWorktreeProviderOptions, GraftBoot, HashVersion, HookVerdict, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, InvoiceCardinality, InvoiceExport, InvoicePricingProvenance, 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, type JournalPricingSnapshot, JournalSealedError, JournalSerializationContext, JournalSerializationHook, type JournalStore, JournaledChild, JournaledChildRoster, JournaledCriticalPath, JournaledSynthesisCandidate, JournaledSynthesisCandidateReport, 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, LogicalRunTelemetry, LogicalTaskId, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, 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, OrchestrateClaimConsistency, OrchestrateClaimConsistencyMeta, OrchestrateContradictions, OrchestrateContradictionsMeta, OrchestrateDraftToFinal, OrchestrateOptions, OrchestrateSynthesis, OrchestrateSynthesisSkipReason, OrchestratorBudgetSpec, OrchestratorCapConfigError, OrchestratorExtension, OrchestratorExtensionIO, OrchestratorRuntime, Out, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, PersistedTerminalRefusal, PersistedTerminalResult, type PhaseRow, PhaseTarget, PilotAgentProfileOptions, PilotAgentProfileResult, type PinnedPricingSegment, PipelineCollected, PipelineOpts, PlanInvariantError, type PostFanInBreakdown, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedComponent, PricedComponents, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, ProviderStatement, 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_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, RateLimitObservation, ReconcileOptions, ReconcileResult, ReconcileStatementOptions, RefEntryAppender, RefEntryClassification, RefusalInfo, RejectedFinishCandidate, 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, RunFactPairOptions, RunFactPairsFold, RunFactsSheet, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, SecretMasker, SectionMatchMode, SectionPatternEntry, SemanticPassSummary, SemanticPassesSummary, Semaphore, SerializationHook, Settled, SettlementError, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StatementCategoryRow, StatementColumnMap, StatementCoverage, StatementReconciliation, StatementRequestRow, StepIdentityInput, type StreamHooks, StructuredOutputTier, SupersededError, SuspendedAppend, SuspensionState, SynthesisCandidateFailure, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, TerminalTelemetryScopes, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolAuthority, type ToolBudgetSummary, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, type ToolExecutorProvider, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, ToolsetAttestation, 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, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, 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, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
15254
+ export { AWAIT_SCHEMA, AbandonAttempt, AbandonFold, AbandonPayload, AbandonedSpendView, AbortClass, AcceptanceChildSummary, type AdaptiveEvents, AdmissionController, AdmissionDecision, AdmissionRejectedError, AdmissionStatsBefore, AdmitLineage, AdmitRejectReason, AdmitSpec, AdmitVerdict, AgentCallError, AgentError, type AgentEvents, AgentIdentityInput, type AgentInvocationRow, AgentOpts, AgentProfile, AgentProfilePermissions, AgentProfileTemplateOptions, AgentResult, AgentResultMeta, AgentStatus, type AppliedPricingRow, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditCategory, AuditRecord, AuditRunsOptions, BUDGET_ABORT_REASON, BaseAppend, BillingComponent, BriefOpts, BudgetAccountView, BudgetDefaults, BudgetExhaustedError, BudgetExhaustionDiagnostics, BudgetHooks, BudgetReserve, type Bytes, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, CacheHint, CachePolicy, CacheTtl, CanUseTool, CanonicalId, CanonicalIdentity, CanonicalLadderSpec, CanonicalModelSpec, ChatEvent, ChatRequest, CheckpointState, ChildArtifactPage, ChildExecutionFacts, ChildIdentityInput, ChildResultPage, ChildrenAtFailure, CitationTarget, type ClaimClass, ClaimContradictionFinding, ClaimCoverageGrade, ClaimCoverageInput, type ClaimOp, ClaimPair, ClaimPairOptions, ClaimPairsFold, ClaimPoolReading, type ClaimStatus, ClaimValidationOptions, CollectOpts, CollectedTurn, CompactionConfig, CompiledPermissionChain, CompiledWorkflow, ComponentDelta, ConfigError, Contradiction, ContradictionClaim, ContradictionOptions, ContradictionSource, type CoreEvents, CostAttribution, CostAttributionFacts, type CostBasis, CostReport, CreateEngineOptions, type CriticalPath, Ctx, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, 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, DecisionChainRow, DeclaredLadder, DedupIndex, DedupNote, DedupedClaims, DelimitedStatementOptions, DerivedKey, DeriverRegistry, type DeterminismConfig, DeterminismError, type DeterminismEvents, type DeterminismMode, DispositionRule, DispositionTable, DocumentedRates, DonorCandidate, DonorRef, DroppedItem, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EffectiveUsageLimits, Effort, Engine, EngineDefaults, EngineQuotaConfig, EngineQuotaRuntime, EntryBillingFold, EntryBillingUnit, EntryKind, EntryRef, EntryStatus, EnvelopeEncryption, EnvelopeEncryptionOptions, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, EvidenceContract, type EvidenceRef, type ExecKeyDerivation, type ExecutorRegistry, type ExplorationSummary, ExtensionAppendInput, ExtensionDispatchSpec, ExternalIdentityInput, ExternalRegistry, ExtractNecessityInput, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FailoverTarget, FailoverTrigger, FallbackField, FallbackTrigger, FencedCodeMode, FileModelKnowledgeStore, FileModelKnowledgeStoreOptions, FileTranscriptStore, type FinalizationWindowBudget, FinishContract, FinishContractCitations, FinishContractGoldenReject, FinishContractManifest, FinishContractSectionPattern, FinishInfo, FinishSelfTestFailure, FinishSelfTestFixtures, FinishSelfTestReport, FinishValidationChild, FinishValidationInput, FinishValidationSpec, FinishValidationVerdict, FinishValidator, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, Gate, GateAudit, type GateRecord, GitWorktreeProvider, GitWorktreeProviderOptions, GraftBoot, HashVersion, HookVerdict, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, InvoiceCardinality, InvoiceExport, InvoicePricingProvenance, 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, type JournalPricingSnapshot, JournalSealedError, JournalSerializationContext, JournalSerializationHook, type JournalStore, JournaledChild, JournaledChildRoster, JournaledCriticalPath, JournaledSynthesisCandidate, JournaledSynthesisCandidateReport, 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, LogicalRunTelemetry, LogicalTaskId, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, 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, OrchestrateClaimConsistency, OrchestrateClaimConsistencyMeta, OrchestrateContradictions, OrchestrateContradictionsMeta, OrchestrateDraftToFinal, OrchestrateOptions, OrchestrateSynthesis, OrchestrateSynthesisSkipReason, OrchestratorBudgetSpec, OrchestratorCapConfigError, OrchestratorExtension, OrchestratorExtensionIO, OrchestratorRuntime, Out, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, PersistedTerminalRefusal, PersistedTerminalResult, type PhaseRow, PhaseTarget, PilotAgentProfileOptions, PilotAgentProfileResult, type PinnedPricingSegment, PipelineCollected, PipelineOpts, PlanInvariantError, type PostFanInBreakdown, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedComponent, PricedComponents, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, ProviderStatement, 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_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, RateLimitObservation, ReconcileOptions, ReconcileResult, ReconcileStatementOptions, RefEntryAppender, RefEntryClassification, RefusalInfo, RejectedFinishCandidate, 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, RunFactPairOptions, RunFactPairsFold, RunFactsSheet, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, SecretMasker, SectionMatchMode, SectionPatternEntry, SemanticPassSummary, SemanticPassesSummary, Semaphore, SerializationHook, Settled, SettlementError, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StatementCategoryRow, StatementColumnMap, StatementCoverage, StatementReconciliation, StatementRequestRow, StepIdentityInput, type StreamHooks, StructuredOutputTier, SupersededError, SuspendedAppend, SuspensionState, SynthesisCandidateFailure, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, TerminalTelemetryScopes, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolAuthority, type ToolBudgetSummary, ToolCalibrationExclusion, ToolCalibrationReport, ToolCalibrationRow, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, type ToolExecutorProvider, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, ToolsetAttestation, 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, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, 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, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
package/dist/index.js CHANGED
@@ -7902,6 +7902,7 @@ var Replayer = class {
7902
7902
  if (patch.checkpointRef !== void 0) entry.checkpointRef = patch.checkpointRef;
7903
7903
  if (patch.evidence !== void 0) entry.evidence = patch.evidence;
7904
7904
  if (patch.evidenceEntries !== void 0) entry.evidenceEntries = patch.evidenceEntries;
7905
+ if (patch.toolBudget !== void 0) entry.toolBudget = patch.toolBudget;
7905
7906
  if (patch.artifacts !== void 0) entry.artifacts = toJournalValue(patch.artifacts, "terminal artifacts");
7906
7907
  if (patch.escalation !== void 0) entry.escalation = toJournalValue(patch.escalation, "escalation report");
7907
7908
  if (patch.memoizeOutcome !== void 0) entry.memoizeOutcome = patch.memoizeOutcome;
@@ -8972,7 +8973,8 @@ function childRostersFromJournal(entries) {
8972
8973
  ...abandoned.isAbandoned(dispatch.seq) ? { abandoned: true } : {},
8973
8974
  ...terminal?.costAttribution?.agentType === void 0 ? {} : { agentType: terminal.costAttribution.agentType },
8974
8975
  ...terminal === void 0 ? {} : { status: terminal.status },
8975
- ...terminal?.evidence === void 0 ? {} : { evidence: { ...terminal.evidence } }
8976
+ ...terminal?.evidence === void 0 ? {} : { evidence: { ...terminal.evidence } },
8977
+ ...terminal?.toolBudget === void 0 ? {} : { toolBudget: { ...terminal.toolBudget } }
8976
8978
  });
8977
8979
  }
8978
8980
  return [...rosters.values()];
@@ -9657,6 +9659,62 @@ function synthesisCandidatesFromJournal(entries, priceUsd) {
9657
9659
  };
9658
9660
  }
9659
9661
  //#endregion
9662
+ //#region src/stores/tool-calibration.ts
9663
+ /**
9664
+ * Folds the observed tool-budget calibration from a journal (RV3003):
9665
+ * every terminal agent entry is partitioned by which sides of the
9666
+ * evidence/counter pair it recorded, the paired rows carry their
9667
+ * per-dispatch rate, and the aggregate is the number a host compares
9668
+ * against its declared `estCallsPerEntry`. Pure over the entries, so
9669
+ * live and resumed journals fold identically; nothing is re-derived
9670
+ * and no checkpoint blob is read.
9671
+ */
9672
+ function toolCalibrationFromJournal(entries) {
9673
+ const ordered = [...entries].sort((a, b) => a.seq - b.seq);
9674
+ const observed = [];
9675
+ const evidenceOnly = [];
9676
+ const budgetOnly = [];
9677
+ let dispatches = 0;
9678
+ let unobserved = 0;
9679
+ for (const entry of ordered) {
9680
+ if (entry.kind !== "agent" || entry.ref === void 0 || entry.status === "running") continue;
9681
+ dispatches += 1;
9682
+ const named = {
9683
+ scope: entry.scope,
9684
+ handle: entry.ref,
9685
+ status: String(entry.status ?? "")
9686
+ };
9687
+ if (entry.evidence !== void 0 && entry.toolBudget !== void 0) observed.push({
9688
+ ...named,
9689
+ ...entry.costAttribution?.agentType === void 0 || entry.costAttribution.agentType === "" ? {} : { agentType: entry.costAttribution.agentType },
9690
+ recordedEntries: entry.evidence.recordedEntries,
9691
+ minEntries: entry.evidence.minEntries,
9692
+ toolCallsUsed: entry.toolBudget.used,
9693
+ ...entry.evidence.recordedEntries > 0 ? { callsPerEntry: entry.toolBudget.used / entry.evidence.recordedEntries } : {}
9694
+ });
9695
+ else if (entry.evidence !== void 0) evidenceOnly.push(named);
9696
+ else if (entry.toolBudget !== void 0) budgetOnly.push(named);
9697
+ else unobserved += 1;
9698
+ }
9699
+ const report = {
9700
+ dispatches,
9701
+ observed,
9702
+ evidenceOnly,
9703
+ budgetOnly,
9704
+ unobserved
9705
+ };
9706
+ if (observed.length > 0) {
9707
+ const toolCallsUsed = observed.reduce((sum, row) => sum + row.toolCallsUsed, 0);
9708
+ const recordedEntries = observed.reduce((sum, row) => sum + row.recordedEntries, 0);
9709
+ report.aggregate = {
9710
+ toolCallsUsed,
9711
+ recordedEntries,
9712
+ ...recordedEntries > 0 ? { callsPerEntry: toolCallsUsed / recordedEntries } : {}
9713
+ };
9714
+ }
9715
+ return report;
9716
+ }
9717
+ //#endregion
9660
9718
  //#region src/stores/jsonl.ts
9661
9719
  /**
9662
9720
  * JsonlFileStore (M2-T01): the durable file store. One JSON entry per
@@ -18341,7 +18399,13 @@ function createCtx(internals, rootWorkflow) {
18341
18399
  }
18342
18400
  {
18343
18401
  const durable = readToolBudgetDecisions(internals.replayer.snapshot(), matched.running.seq);
18344
- if (durable !== void 0 && replayedToolCallsUsed !== void 0) {
18402
+ if (terminal?.toolBudget !== void 0) {
18403
+ const restoredSummary = { used: terminal.toolBudget.used };
18404
+ if (terminal.toolBudget.cap !== void 0) restoredSummary.cap = terminal.toolBudget.cap;
18405
+ if (durable !== void 0 && durable.extensionsGranted > 0) restoredSummary.extensionsGranted = durable.extensionsGranted;
18406
+ if (durable !== void 0 && durable.finalizationWindowEntered) restoredSummary.finalizationWindowEntered = true;
18407
+ result.toolBudget = restoredSummary;
18408
+ } else if (durable !== void 0 && replayedToolCallsUsed !== void 0) {
18345
18409
  const restoredSummary = { used: replayedToolCallsUsed };
18346
18410
  if (durable.cap !== void 0) restoredSummary.cap = durable.cap;
18347
18411
  if (durable.extensionsGranted > 0) restoredSummary.extensionsGranted = durable.extensionsGranted;
@@ -19107,6 +19171,10 @@ function createCtx(internals, rootWorkflow) {
19107
19171
  if (result.artifacts !== void 0) terminalPatch.artifacts = result.artifacts;
19108
19172
  if (result.evidence !== void 0) terminalPatch.evidence = result.evidence;
19109
19173
  if (result.evidenceEntries !== void 0) terminalPatch.evidenceEntries = [...result.evidenceEntries];
19174
+ if (result.toolBudget !== void 0) terminalPatch.toolBudget = {
19175
+ used: result.toolBudget.used,
19176
+ ...result.toolBudget.cap === void 0 ? {} : { cap: result.toolBudget.cap }
19177
+ };
19110
19178
  if (result.abortClass !== void 0) {
19111
19179
  terminalPatch.memoizeOutcome = true;
19112
19180
  if (terminalPatch.error !== void 0) {
@@ -22331,6 +22399,11 @@ function validateOrchestrateOptions(opts) {
22331
22399
  if (floor && opts.finishValidation === void 0) throw new ConfigError("orchestrate synthesis.fallbackToValidDraft requires finishValidation: without a declared finish contract there is nothing to judge the draft valid by");
22332
22400
  }
22333
22401
  if (symmetry.context !== void 0 && symmetry.context !== "digests" && symmetry.context !== "full") throw new ConfigError("orchestrate synthesis.context must be 'digests' or 'full'; got " + JSON.stringify(symmetry.context));
22402
+ if (synthesis.mode === "incremental") {
22403
+ if (symmetry.exposeChildResultTools === true) throw new ConfigError("orchestrate synthesis.exposeChildResultTools is meaningless in mode 'incremental': the deterministic reconciliation dispatches no synthesis to hold the tools");
22404
+ if (symmetry.context === "full") throw new ConfigError("orchestrate synthesis.context 'full' is meaningless in mode 'incremental': the deterministic reconciliation composes no prompt to embed the outputs in");
22405
+ if (synthesis.limits !== void 0) throw new ConfigError("orchestrate synthesis.limits is meaningless in mode 'incremental': no single synthesis invocation exists for the limits to bound; declare noteLimits for the note invocations instead");
22406
+ }
22334
22407
  const index = synthesis.evidenceIndex;
22335
22408
  if (index !== void 0) {
22336
22409
  if (index !== true && (typeof index !== "object" || index === null)) throw new ConfigError(`orchestrate synthesis.evidenceIndex must be true or an object with pattern and flags; got ${JSON.stringify(index)}`);
@@ -22350,7 +22423,10 @@ function validateOrchestrateOptions(opts) {
22350
22423
  if (probe.test("")) throw new ConfigError("orchestrate synthesis.evidenceIndex.pattern must not be able to match the empty string (an empty match would index fabricated evidence); got " + JSON.stringify(pattern));
22351
22424
  }
22352
22425
  }
22353
- if (synthesis.noteLimits !== void 0) validateUsageLimits(synthesis.noteLimits, "orchestrate synthesis.noteLimits");
22426
+ if (synthesis.noteLimits !== void 0) {
22427
+ validateUsageLimits(synthesis.noteLimits, "orchestrate synthesis.noteLimits");
22428
+ if (synthesis.mode !== "incremental") throw new ConfigError("orchestrate synthesis.noteLimits is meaningless in mode 'single': only 'incremental' dispatches note invocations for the limits to bound");
22429
+ }
22354
22430
  if (synthesis.effort !== void 0 && ![
22355
22431
  "low",
22356
22432
  "medium",
@@ -22362,7 +22438,14 @@ function validateOrchestrateOptions(opts) {
22362
22438
  if (synthesis.instructions !== void 0 && typeof synthesis.instructions !== "string") throw new ConfigError(`orchestrate synthesis.instructions must be a string; got ${typeof synthesis.instructions}`);
22363
22439
  const facts = synthesis;
22364
22440
  if (facts.policyFacts !== void 0 && typeof facts.policyFacts !== "boolean") throw new ConfigError(`orchestrate synthesis.policyFacts must be a boolean; got ${typeof facts.policyFacts}`);
22365
- if (facts.runFacts !== void 0 && typeof facts.runFacts !== "boolean") throw new ConfigError(`orchestrate synthesis.runFacts must be a boolean; got ${typeof facts.runFacts}`);
22441
+ if (facts.policyFacts === true && synthesis.mode === "incremental") throw new ConfigError("orchestrate synthesis.policyFacts is meaningless in mode 'incremental': the deterministic reconciliation dispatches no synthesis for the facts to ride");
22442
+ if ((facts.runFacts === true || typeof facts.runFacts === "object" && facts.runFacts !== null) && synthesis.mode === "incremental") throw new ConfigError("orchestrate synthesis.runFacts is meaningless in mode 'incremental': the deterministic reconciliation dispatches no synthesis for the facts to ride");
22443
+ if (facts.runFacts !== void 0 && typeof facts.runFacts !== "boolean") {
22444
+ if (typeof facts.runFacts !== "object" || facts.runFacts === null || Array.isArray(facts.runFacts)) throw new ConfigError(`orchestrate synthesis.runFacts must be a boolean or { workflowSoFar?: boolean }; got ${typeof facts.runFacts}`);
22445
+ const runFactsSpec = facts.runFacts;
22446
+ for (const key of Object.keys(runFactsSpec)) if (key !== "workflowSoFar") throw new ConfigError(`orchestrate synthesis.runFacts carries unknown key '${key}'; the object form takes only workflowSoFar`);
22447
+ if (runFactsSpec["workflowSoFar"] !== void 0 && typeof runFactsSpec["workflowSoFar"] !== "boolean") throw new ConfigError(`orchestrate synthesis.runFacts.workflowSoFar must be a boolean; got ${typeof runFactsSpec["workflowSoFar"]}`);
22448
+ }
22366
22449
  if (synthesis.estCost !== void 0) requireNonNegativeNumber(synthesis.estCost, "orchestrate synthesis.estCost");
22367
22450
  }
22368
22451
  if (opts.contradictions !== void 0) {
@@ -24110,7 +24193,10 @@ function makeOrchestratorWorkflow(goal, opts) {
24110
24193
  ...spec.estCost === void 0 ? {} : { estCost: spec.estCost },
24111
24194
  [kTerminalTool]: { name: FINISH_TOOL_NAME }
24112
24195
  };
24113
- return runtime.runInScope(noteState, () => ctx.agent(prompt, noteOpts));
24196
+ return runtime.runInScope(noteState, () => ctx.agent(prompt, noteOpts)).then((settled) => {
24197
+ noteInternalSettle(settled);
24198
+ return settled;
24199
+ });
24114
24200
  };
24115
24201
  /**
24116
24202
  * Note dispatch is idempotent per child: the settle hook and the
@@ -24268,6 +24354,33 @@ function makeOrchestratorWorkflow(goal, opts) {
24268
24354
  */
24269
24355
  let synthesisSkipDecisionRef;
24270
24356
  /**
24357
+ * The orchestration's own settled internal spans so far (RV3004):
24358
+ * the coordination dispatch, claim judges, synthesis notes, and
24359
+ * settled compositions, folded through
24360
+ * {@link executionFactsOf} in dispatch order the moment each
24361
+ * settles. Replay-stable by the same argument as the RUN FACTS
24362
+ * child line: every ingredient restores verbatim from the journal
24363
+ * and the settle order is deterministic, so a resumed composition
24364
+ * re-derives identical SO FAR bytes. A dispatch that never settled
24365
+ * (a declined judge admission, a crash) contributes nothing, which
24366
+ * is RV1209, not an undercount.
24367
+ */
24368
+ const internalSpansSoFar = {
24369
+ spans: 0,
24370
+ wireRequests: 0,
24371
+ wireIdsMissing: 0,
24372
+ inputTokens: 0,
24373
+ outputTokens: 0
24374
+ };
24375
+ const noteInternalSettle = (settled) => {
24376
+ const facts = executionFactsOf(settled);
24377
+ internalSpansSoFar.spans += 1;
24378
+ internalSpansSoFar.wireRequests += facts.wireRequests;
24379
+ internalSpansSoFar.wireIdsMissing += facts.wireIdsMissing;
24380
+ internalSpansSoFar.inputTokens += facts.inputTokens;
24381
+ internalSpansSoFar.outputTokens += facts.outputTokens;
24382
+ };
24383
+ /**
24271
24384
  * The bounded contradiction pass's findings (RV1302), set exactly
24272
24385
  * when the pass is configured: an EMPTY array is a fact (the pass
24273
24386
  * ran and the pool agreed) and `undefined` is a different fact
@@ -24567,6 +24680,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24567
24680
  let judged;
24568
24681
  try {
24569
24682
  judged = await runtime.runInScope(judgeState, () => ctx.agent(judgePrompt, judgeOpts));
24683
+ noteInternalSettle(judged);
24570
24684
  } catch (declined) {
24571
24685
  if (!(declined instanceof BudgetExhaustedError)) throw declined;
24572
24686
  claimConsistencyMeta = finishMeta({
@@ -24884,6 +24998,8 @@ function makeOrchestratorWorkflow(goal, opts) {
24884
24998
  };
24885
24999
  });
24886
25000
  })();
25001
+ const runFactsEnabled = spec.runFacts === true || typeof spec.runFacts === "object" && spec.runFacts !== null;
25002
+ const runFactsSoFar = typeof spec.runFacts === "object" && spec.runFacts !== null && spec.runFacts.workflowSoFar === true;
24887
25003
  const prompt = [
24888
25004
  "You are the synthesis invocation of an orchestrated run. Compose the FINAL result of the run from the goal, the coordination draft, and the settled child evidence below by calling finish({ result }) EXACTLY once. Preserve the evidence and citations the draft relies on; do not invent findings. " + (exposeTools ? "Beside finish, get_child_result and read_child_artifact page any SETTLED child's FULL output and artifacts by handle (each DIGEST row carries its handle); read what the validators will hold you to before finishing." : "No other tool exists."),
24889
25005
  ...repeatedClaims === void 0 ? [] : ["Repeated claims across children were deduplicated before this prompt: only the first occurrence of each repeated line remains in the digest, and the REPEATED CLAIMS index below lists each one with its reporters."],
@@ -24913,7 +25029,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24913
25029
  finalizationReservesUsed: reservesUsed
24914
25030
  })}`;
24915
25031
  })()] : [],
24916
- ...spec.runFacts === true ? [(() => {
25032
+ ...runFactsEnabled ? [(() => {
24917
25033
  const byStatus = {};
24918
25034
  let wireRequests = 0;
24919
25035
  let wireIdsMissing = 0;
@@ -24939,6 +25055,29 @@ function makeOrchestratorWorkflow(goal, opts) {
24939
25055
  outputTokens
24940
25056
  })} (live-observed by run ${internals.runId}, this run's own harness; production evidence it is not; the settled children ONLY, excluding this orchestrator, judges, and synthesis; the whole run's totals are the terminal envelope and invoice)`;
24941
25057
  })()] : [],
25058
+ ...runFactsSoFar ? [(() => {
25059
+ let wireRequests = internalSpansSoFar.wireRequests;
25060
+ let wireIdsMissing = internalSpansSoFar.wireIdsMissing;
25061
+ let inputTokens = internalSpansSoFar.inputTokens;
25062
+ let outputTokens = internalSpansSoFar.outputTokens;
25063
+ for (const [, record] of settledEntries) {
25064
+ const facts = executionFactsOf(record.settled);
25065
+ wireRequests += facts.wireRequests;
25066
+ wireIdsMissing += facts.wireIdsMissing;
25067
+ inputTokens += facts.inputTokens;
25068
+ outputTokens += facts.outputTokens;
25069
+ }
25070
+ return `RUN FACTS SO FAR: ${JSON.stringify({
25071
+ scope: "run-so-far-at-this-dispatch",
25072
+ runId: internals.runId,
25073
+ children: settledEntries.length,
25074
+ internalSpans: internalSpansSoFar.spans,
25075
+ wireRequests,
25076
+ wireIdsMissing,
25077
+ inputTokens,
25078
+ outputTokens
25079
+ })} (live-observed by run ${internals.runId}, this run's own harness; production evidence it is not; the settled children PLUS this orchestration's settled coordination, judge, note, and composition spans as of THIS dispatch; it excludes this dispatch itself and anything still running, so the whole run's totals remain the terminal envelope and invoice)`;
25080
+ })()] : [],
24942
25081
  `GOAL: ${goal}`,
24943
25082
  `DRAFT: ${draftJson}`,
24944
25083
  `DIGEST: ${digestJson}`,
@@ -24996,6 +25135,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24996
25135
  }
24997
25136
  };
24998
25137
  const synthesized = await runtime.runInScope(synthesisState, () => ctx.agent(prompt, synthesisOpts));
25138
+ noteInternalSettle(synthesized);
24999
25139
  synthesisSchemaRejectedExchanges = synthesized.schemaRejectedTerminalExchanges ?? 0;
25000
25140
  synthesisSchemaRecoveredExchanges = synthesized.schemaRecoveredTerminalExchanges ?? 0;
25001
25141
  if (configuredReserveUsd > 0) {
@@ -25124,6 +25264,7 @@ function makeOrchestratorWorkflow(goal, opts) {
25124
25264
  let result;
25125
25265
  try {
25126
25266
  result = await runtime.runInScope(orchestratorState, () => ctx.agent(orchestratorPrompt(goal, opts?.maxSpawns, promptLines.length === 0 ? void 0 : promptLines), agentOpts));
25267
+ noteInternalSettle(result);
25127
25268
  } catch (thrown) {
25128
25269
  if (thrown instanceof BudgetExhaustedError) {
25129
25270
  const repairEntryRef = thrown.data?.entryRef;
@@ -28210,6 +28351,7 @@ function createEngine(options) {
28210
28351
  const handlePromise = (async () => {
28211
28352
  if (resumeOptions?.run?.budgetUsd !== void 0) requireNonNegativeNumber(resumeOptions.run.budgetUsd, "ResumeOptions.run.budgetUsd");
28212
28353
  if (resumeOptions?.run?.maxInFlightExposureUsd !== void 0) requireNonNegativeNumber(resumeOptions.run.maxInFlightExposureUsd, "ResumeOptions.run.maxInFlightExposureUsd");
28354
+ if (resumeOptions?.bodyHash !== void 0 && resumeOptions.bodyHash !== "warn" && resumeOptions.bodyHash !== "refuse") throw new ConfigError(`ResumeOptions.bodyHash must be 'warn' or 'refuse'; got ` + JSON.stringify(resumeOptions.bodyHash));
28213
28355
  const meta = await readRunMeta(journal, runId);
28214
28356
  let supplied = wf;
28215
28357
  if (supplied === void 0 && meta?.workflowSourceRef === void 0) {
@@ -28238,10 +28380,13 @@ function createEngine(options) {
28238
28380
  if (meta?.workflowHash !== void 0 && meta.workflowHash !== expectedHash) throw new ConfigError(`resume binding mismatch: the supplied CompiledWorkflow source hash differs from the one recorded for run '${runId}'`);
28239
28381
  } else {
28240
28382
  const expectedHash = hashWorkflowBody(supplied);
28241
- if (meta?.workflowHash !== void 0 && meta.workflowHash !== expectedHash) process.emitWarning(`resume: the body of workflow '${supplied.name}' changed since run '${runId}' started; orphans and misses will be reported honestly`, {
28242
- code: "RULVAR_RESUME_HASH_MISMATCH",
28243
- type: "RulvarWarning"
28244
- });
28383
+ if (meta?.workflowHash !== void 0 && meta.workflowHash !== expectedHash) {
28384
+ if (resumeOptions?.bodyHash === "refuse") throw new ConfigError(`resume: the body of workflow '${supplied.name}' changed since run '${runId}' started and ResumeOptions.bodyHash is 'refuse'; resume with the original body, or drop the option to proceed under the loud warning`);
28385
+ process.emitWarning(`resume: the body of workflow '${supplied.name}' changed since run '${runId}' started; orphans and misses will be reported honestly`, {
28386
+ code: "RULVAR_RESUME_HASH_MISMATCH",
28387
+ type: "RulvarWarning"
28388
+ });
28389
+ }
28245
28390
  }
28246
28391
  bound = supplied;
28247
28392
  }
@@ -28739,4 +28884,4 @@ function createSandboxBridge(ctx, options) {
28739
28884
  };
28740
28885
  }
28741
28886
  //#endregion
28742
- export { AWAIT_SCHEMA, AdmissionController, AdmissionRejectedError, AgentCallError, BUDGET_ABORT_REASON, BudgetExhaustedError, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, ConfigError, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, 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, DedupIndex, DeterminismError, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EscalationDecisionAbortedError, EventBus, ExternalRegistry, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FileModelKnowledgeStore, FileTranscriptStore, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, GitWorktreeProvider, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, InvalidResolutionError, JOURNAL_ENVELOPE_MARKER, JournalCompatibilityError, JournalMatcher, JournalMissError, JournalOrderViolation, JournalSealedError, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, KeyedLimiter, KnowledgeCasError, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LeaseHeldError, LineageIndex, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, ModelRetry, NoProgressDetector, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OrchestratorCapConfigError, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, PlanInvariantError, QUOTA_WINDOW_MS, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, ReplayPlanHashMismatch, Replayer, ResolutionArbiter, ResolutionFold, RulvarError, RunBudget, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxError, ScriptRejected, Semaphore, SettlementError, SpanRegistry, SupersededError, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, TerminationAccount, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, 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, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
28887
+ export { AWAIT_SCHEMA, AdmissionController, AdmissionRejectedError, AgentCallError, BUDGET_ABORT_REASON, BudgetExhaustedError, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, ConfigError, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, 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, DedupIndex, DeterminismError, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EscalationDecisionAbortedError, EventBus, ExternalRegistry, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FileModelKnowledgeStore, FileTranscriptStore, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, GitWorktreeProvider, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, InvalidResolutionError, JOURNAL_ENVELOPE_MARKER, JournalCompatibilityError, JournalMatcher, JournalMissError, JournalOrderViolation, JournalSealedError, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, KeyedLimiter, KnowledgeCasError, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LeaseHeldError, LineageIndex, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, ModelRetry, NoProgressDetector, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OrchestratorCapConfigError, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, PlanInvariantError, QUOTA_WINDOW_MS, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, ReplayPlanHashMismatch, Replayer, ResolutionArbiter, ResolutionFold, RulvarError, RunBudget, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxError, ScriptRejected, Semaphore, SettlementError, SpanRegistry, SupersededError, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, TerminationAccount, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, 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, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/core",
3
- "version": "1.232.0",
3
+ "version": "1.234.0",
4
4
  "description": "Rulvar core: L0 contracts, journal kernel, ctx primitives, agent runtime, model router, tool system, dynamic orchestrator, InMemory and JSONL stores, event stream.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",