@rulvar/core 1.228.0 → 1.230.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2216,6 +2216,22 @@ type CoreEvents = {
2216
2216
  */
2217
2217
  belowFloorOkChildren?: string[];
2218
2218
  /**
2219
+ * What the children had produced when the run died BEFORE any
2220
+ * acceptance verdict (RV2602), lifted on its own rather than with
2221
+ * the completion, because it exists for the terminal where there
2222
+ * is no completion to lift. Present exactly when children were
2223
+ * spawned and no acceptance verdict exists, so it never overlaps
2224
+ * the fields above. Frozen at the moment of death, ahead of the
2225
+ * RV1903 exit barrier, which is why `unsettled` can be non-empty.
2226
+ */
2227
+ childrenAtFailure?: {
2228
+ spawned: number;
2229
+ settled: number;
2230
+ statusCounts: Record<string, number>;
2231
+ belowFloorOkChildren?: string[];
2232
+ unsettled?: string[];
2233
+ };
2234
+ /**
2219
2235
  * Present and false ONLY when nothing durable records this
2220
2236
  * terminal: a settlement write failed (the run_settle journal
2221
2237
  * append or the terminal RunMeta projection, RV907), or the
@@ -5577,6 +5593,16 @@ interface RunAgentOptions<S extends SchemaSpec = JsonSchema> {
5577
5593
  remaining: number;
5578
5594
  reserveCalls: number;
5579
5595
  budget: FinalizationWindowBudget;
5596
+ /**
5597
+ * Present exactly when RV1208 widened the reserve past the
5598
+ * configured one (RV2601): the outstanding evidence entries, and
5599
+ * the floor they are outstanding against. Absent means the
5600
+ * configured reserve is what bound, so the arithmetic behind an
5601
+ * unexpected reserve is always in the journal and never only in
5602
+ * the notice the model read.
5603
+ */
5604
+ evidenceDeficit?: number;
5605
+ minEntries?: number;
5580
5606
  }) => Promise<void>;
5581
5607
  };
5582
5608
  /** Emits agent:stream deltas when true (telemetry only). */
@@ -11701,6 +11727,28 @@ interface RejectedFinishCandidate {
11701
11727
  /** Transcript ref holding the bytes; absent unless retention is on and the write succeeded. */
11702
11728
  ref?: string;
11703
11729
  }
11730
+ /**
11731
+ * The roster facts of a run that died before any acceptance verdict
11732
+ * (RV2602): a fold over the children's own journaled terminals, so an
11733
+ * `exhausted` or failed orchestration still names the work it paid for.
11734
+ */
11735
+ interface ChildrenAtFailure {
11736
+ /** Children admitted, whether or not they settled. */
11737
+ spawned: number;
11738
+ /** Of those, the ones carrying a terminal at the moment of death. */
11739
+ settled: number;
11740
+ /** Their statuses, counted; the same vocabulary a child terminal uses. */
11741
+ statusCounts: Record<string, number>;
11742
+ /**
11743
+ * Children that settled `ok` under a declared evidence contract they
11744
+ * did not meet. The acceptance fold names these too, but only after
11745
+ * it runs: the fourth parity run's silent worker was `ok` with zero
11746
+ * recorded entries and its run never reached acceptance at all.
11747
+ */
11748
+ belowFloorOkChildren?: string[];
11749
+ /** Children still running when the run gave up; absent when none were. */
11750
+ unsettled?: string[];
11751
+ }
11704
11752
  interface AcceptanceChildSummary {
11705
11753
  child: string;
11706
11754
  status: string;
@@ -11837,7 +11885,28 @@ type RunOutcome<R> = {
11837
11885
  * verdict. Replay-stable: the roster is journaled inside the single
11838
11886
  * acceptance decision.
11839
11887
  */
11840
- acceptanceChildren?: AcceptanceChildSummary[]; /** Pipeline drops and onError:'null' losses; silent losses are forbidden. */
11888
+ acceptanceChildren?: AcceptanceChildSummary[];
11889
+ /**
11890
+ * What the children had produced when the run died BEFORE its
11891
+ * acceptance policy ever rendered a verdict (RV2602).
11892
+ *
11893
+ * Every other field on this envelope describes a policy's claim, and
11894
+ * a policy that never ran claims nothing: an orchestration whose
11895
+ * coordination loop crosses its ceiling mid-roster settles with
11896
+ * `completion` absent, and until this shipped the terminal said
11897
+ * nothing at all about work that was already paid for, even though
11898
+ * every child terminal was in the journal. Deliberately NOT
11899
+ * `childStatusCounts`: that field is the acceptance fold's number,
11900
+ * and a fold done by no policy must not borrow its name.
11901
+ *
11902
+ * Present exactly when children were spawned AND no acceptance
11903
+ * verdict exists, so the two readings never overlap and neither can
11904
+ * be mistaken for the other. Frozen at the moment of death, before
11905
+ * the RV1903 exit barrier settles the stragglers, which is why
11906
+ * `unsettled` can be non-empty: those children had not landed when
11907
+ * the run gave up.
11908
+ */
11909
+ childrenAtFailure?: ChildrenAtFailure; /** Pipeline drops and onError:'null' losses; silent losses are forbidden. */
11841
11910
  dropped: DroppedItem[]; /** Suspensions open at settle time (M2). */
11842
11911
  pending: PendingExternal[];
11843
11912
  usage: Usage;
@@ -12770,6 +12839,12 @@ declare function assertFencedWrites(stores: {
12770
12839
  /** The decisionType of the journaled run settle entry. */
12771
12840
  declare const RUN_SETTLE_DECISION_TYPE = "run_settle";
12772
12841
  /**
12842
+ * The decisionType of the journaled spawn admission (RV2702): the
12843
+ * entry that names every child an orchestration judged, which is what
12844
+ * makes an offline roster a read rather than a guess.
12845
+ */
12846
+ declare const SPAWN_ADMISSION_DECISION_TYPE = "spawn-admission";
12847
+ /**
12773
12848
  * The last journaled run settle of a journal, if any. `outputHash` is
12774
12849
  * present when that settle recorded the result digest (RV-209; settles
12775
12850
  * written before it, or over undefined/non-serializable results, carry
@@ -12780,6 +12855,15 @@ declare function lastRunSettle(entries: readonly JournalEntry[]): {
12780
12855
  seq: number;
12781
12856
  outputHash?: string;
12782
12857
  completion?: "complete" | "partial" | "rejected";
12858
+ /**
12859
+ * The rejected finish candidates the settle recorded (RV2507),
12860
+ * read back for offline readers (RV2605). The settle persists the
12861
+ * whole completion lift, so this needs no re-fold and no
12862
+ * validator re-run; it is parsed defensively, exactly like
12863
+ * `completion`, so a foreign or older journal reads as "not
12864
+ * recorded" rather than as a claim.
12865
+ */
12866
+ rejectedFinishCandidates?: RejectedFinishCandidate[];
12783
12867
  } | undefined;
12784
12868
  /**
12785
12869
  * Whether a terminal figure counts THIS segment's work or the whole
@@ -12801,6 +12885,23 @@ declare function lastRunSettle(entries: readonly JournalEntry[]): {
12801
12885
  */
12802
12886
  type TelemetryScope = "segment" | "cumulative" | "terminal";
12803
12887
  /**
12888
+ * The scope table's type, and the gate that keeps it complete
12889
+ * (RV2701).
12890
+ *
12891
+ * Every field of `RunOutcome` is required, so a new terminal field
12892
+ * does not COMPILE until it declares what it counts; the string index
12893
+ * signature then admits the nested paths a consumer reads off the same
12894
+ * outcome (`cost.orchestrator.wakes`), which are not keys of the type.
12895
+ *
12896
+ * It replaces a sample: the original gate read the keys of one
12897
+ * successful run, which is structurally blind to every field that
12898
+ * exists only on a FAILED terminal, and RV2602's `childrenAtFailure`
12899
+ * (present exactly when no acceptance verdict exists) shipped straight
12900
+ * through it. A table about resumed and killed runs cannot be
12901
+ * defended by an outcome that neither died nor resumed.
12902
+ */
12903
+ type TerminalTelemetryScopes = Readonly<Record<keyof RunOutcome<unknown>, TelemetryScope>> & Readonly<Record<string, TelemetryScope>>;
12904
+ /**
12804
12905
  * The scope of every field the engine writes onto a terminal (RV2510),
12805
12906
  * as one exported table rather than as sentences scattered through
12806
12907
  * field docs.
@@ -12810,12 +12911,10 @@ type TelemetryScope = "segment" | "cumulative" | "terminal";
12810
12911
  * money was cumulative, the wake count and the replay figures were not,
12811
12912
  * and reconciling them into one honest account of the logical run was
12812
12913
  * hand work over a joined journal. Keys are field paths as a consumer
12813
- * reads them off `RunOutcome` (`cost.orchestrator.wakes`); the
12814
- * doctrine test holds this table against the keys a real outcome
12815
- * carries, so a new terminal field cannot ship without declaring what
12816
- * it counts.
12914
+ * reads them off `RunOutcome` (`cost.orchestrator.wakes`), and
12915
+ * {@link TerminalTelemetryScopes} requires every one of them.
12817
12916
  */
12818
- declare const TERMINAL_TELEMETRY_SCOPE: Readonly<Record<string, TelemetryScope>>;
12917
+ declare const TERMINAL_TELEMETRY_SCOPE: TerminalTelemetryScopes;
12819
12918
  /** One logical run's telemetry, folded across every segment (RV2510). */
12820
12919
  interface LogicalRunTelemetry {
12821
12920
  /** How many settles the journal records: the number of segments that ran. */
@@ -12863,6 +12962,72 @@ interface LogicalRunTelemetry {
12863
12962
  * segment that produced them.
12864
12963
  */
12865
12964
  declare function logicalRunTelemetry(entries: readonly JournalEntry[]): LogicalRunTelemetry;
12965
+ /** One child of one orchestration, as the journal holds it (RV2702). */
12966
+ interface JournaledChild {
12967
+ /**
12968
+ * The dispatch seq: the SAME number the orchestrator's own turns used
12969
+ * as the child's handle, so a reader can find it in the transcript
12970
+ * without a second identifier. Handles are journal-derived and stable
12971
+ * across resume (a replayed spawn reports its original dispatch seq),
12972
+ * which is what makes this a name and not an index.
12973
+ */
12974
+ handle: number;
12975
+ /** The profile the child ran under, when the terminal recorded it. */
12976
+ agentType?: string;
12977
+ /**
12978
+ * The status the journal recorded, absent when no terminal followed:
12979
+ * the child was still in flight when the journal ends. This is the
12980
+ * ENTRY status vocabulary, which is where the run's own dispatch
12981
+ * records live.
12982
+ */
12983
+ status?: EntryStatus;
12984
+ /** The RV806 evidence verdict, present under a declared contract. */
12985
+ evidence?: {
12986
+ recordedEntries: number;
12987
+ minEntries: number;
12988
+ met: boolean;
12989
+ };
12990
+ }
12991
+ /** One orchestration's children, folded from its journal (RV2702). */
12992
+ interface JournaledChildRoster {
12993
+ /** The scope the children dispatched under, which identifies the orchestration. */
12994
+ childScope: string;
12995
+ /** Spawn admissions the controller ADMITTED. */
12996
+ admitted: number;
12997
+ /** Spawn admissions it refused: no child ever ran, and none is listed below. */
12998
+ rejected: number;
12999
+ /** Every admitted child the journal holds a dispatch for, in dispatch order. */
13000
+ children: JournaledChild[];
13001
+ }
13002
+ /**
13003
+ * Every orchestration's children, folded from a run's journal (RV2702).
13004
+ *
13005
+ * `childrenAtFailure` (RV2602) answers this for a LIVE consumer, and it
13006
+ * dies with the process that held it: the settle persists the
13007
+ * completion lift and nothing else, so a post-mortem over a journal,
13008
+ * which is all a paid run leaves behind, had no way to ask what the
13009
+ * children produced. Every ingredient was already written down. This
13010
+ * is the fold.
13011
+ *
13012
+ * It reads what resume reads. A `spawn-admission` decision names every
13013
+ * child the controller judged, with its ordinal, its profile, its
13014
+ * verdict, and the scope its dispatch pins to; the dispatch and
13015
+ * terminal `agent` entries under that scope are the child itself, and
13016
+ * the RV806 evidence verdict rides the terminal. Nothing is
13017
+ * re-derived and no validator runs again, so a journal written by any
13018
+ * prior version reads exactly as well as today's, which is the point:
13019
+ * the runs worth a post-mortem are the ones already in the archive.
13020
+ *
13021
+ * Two things it deliberately does NOT claim. It is not the live
13022
+ * roster: this reading happens after the RV1903 exit barrier settled
13023
+ * the stragglers, so a child the live field would have called
13024
+ * unsettled usually has a terminal here, and `status` is absent only
13025
+ * where the journal truly ends mid-flight. And it names children by
13026
+ * their dispatch seq rather than by nodeId, because the seq is the
13027
+ * handle the orchestrator's own turns used and the one a reader can
13028
+ * follow into the transcript.
13029
+ */
13030
+ declare function childRostersFromJournal(entries: readonly JournalEntry[]): JournaledChildRoster[];
12866
13031
  type RunAuditVerdict = "consistent" | "meta-behind" | "stranded" | "suspect";
12867
13032
  interface RunStateAudit {
12868
13033
  runId: string;
@@ -14695,4 +14860,4 @@ interface SandboxBridge {
14695
14860
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
14696
14861
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
14697
14862
  //#endregion
14698
- 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, 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, 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, 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, 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_AGENT_SCHEMA, 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, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, 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, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, 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, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, 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 };
14863
+ 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, 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, 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, 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, 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, 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, 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, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, 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 };
package/dist/index.js CHANGED
@@ -8708,6 +8708,12 @@ function assertFencedWrites(stores) {
8708
8708
  //#region src/stores/reconcile.ts
8709
8709
  /** The decisionType of the journaled run settle entry. */
8710
8710
  const RUN_SETTLE_DECISION_TYPE = "run_settle";
8711
+ /**
8712
+ * The decisionType of the journaled spawn admission (RV2702): the
8713
+ * entry that names every child an orchestration judged, which is what
8714
+ * makes an offline roster a read rather than a guess.
8715
+ */
8716
+ const SPAWN_ADMISSION_DECISION_TYPE = "spawn-admission";
8711
8717
  const RUN_STATUSES = /* @__PURE__ */ new Set([
8712
8718
  "ok",
8713
8719
  "error",
@@ -8736,16 +8742,52 @@ function lastRunSettle(entries) {
8736
8742
  const value = entry.value;
8737
8743
  if (value?.decisionType === "run_settle" && typeof value.runStatus === "string" && RUN_STATUSES.has(value.runStatus)) {
8738
8744
  const completion = value.completion;
8745
+ const rejected = readRejectedFinishCandidates(value.rejectedFinishCandidates);
8739
8746
  return {
8740
8747
  runStatus: value.runStatus,
8741
8748
  seq: entry.seq,
8742
8749
  ...typeof value.outputHash === "string" ? { outputHash: value.outputHash } : {},
8743
- ...completion === "complete" || completion === "partial" || completion === "rejected" ? { completion } : {}
8750
+ ...completion === "complete" || completion === "partial" || completion === "rejected" ? { completion } : {},
8751
+ ...rejected === void 0 ? {} : { rejectedFinishCandidates: rejected }
8744
8752
  };
8745
8753
  }
8746
8754
  }
8747
8755
  }
8748
8756
  /**
8757
+ * The rejected finish candidates of a persisted settle, or `undefined`
8758
+ * (RV2605). The WHOLE list drops on any malformed row, the same posture
8759
+ * the live lift takes (RV2507): a partial history read as complete
8760
+ * would under-report exactly the runs that misbehaved most.
8761
+ */
8762
+ function readRejectedFinishCandidates(raw) {
8763
+ if (!Array.isArray(raw) || raw.length === 0) return;
8764
+ const rows = [];
8765
+ for (const row of raw) {
8766
+ if (typeof row !== "object" || row === null) return;
8767
+ const { callId, verdict, hash, chars, failed, ref } = row;
8768
+ if (typeof callId !== "string" || verdict !== "repair" && verdict !== "rejected" || typeof hash !== "string" || typeof chars !== "number" || !Number.isSafeInteger(chars) || chars < 0 || !Array.isArray(failed) || ref !== void 0 && typeof ref !== "string") return;
8769
+ const validators = [];
8770
+ for (const entry of failed) {
8771
+ if (typeof entry !== "object" || entry === null) return;
8772
+ const { name, reasons } = entry;
8773
+ if (typeof name !== "string" || !Array.isArray(reasons) || reasons.some((reason) => typeof reason !== "string")) return;
8774
+ validators.push({
8775
+ name,
8776
+ reasons
8777
+ });
8778
+ }
8779
+ rows.push({
8780
+ callId,
8781
+ verdict,
8782
+ hash,
8783
+ chars,
8784
+ failed: validators,
8785
+ ...ref === void 0 ? {} : { ref }
8786
+ });
8787
+ }
8788
+ return rows;
8789
+ }
8790
+ /**
8749
8791
  * The scope of every field the engine writes onto a terminal (RV2510),
8750
8792
  * as one exported table rather than as sentences scattered through
8751
8793
  * field docs.
@@ -8755,10 +8797,8 @@ function lastRunSettle(entries) {
8755
8797
  * money was cumulative, the wake count and the replay figures were not,
8756
8798
  * and reconciling them into one honest account of the logical run was
8757
8799
  * hand work over a joined journal. Keys are field paths as a consumer
8758
- * reads them off `RunOutcome` (`cost.orchestrator.wakes`); the
8759
- * doctrine test holds this table against the keys a real outcome
8760
- * carries, so a new terminal field cannot ship without declaring what
8761
- * it counts.
8800
+ * reads them off `RunOutcome` (`cost.orchestrator.wakes`), and
8801
+ * {@link TerminalTelemetryScopes} requires every one of them.
8762
8802
  */
8763
8803
  const TERMINAL_TELEMETRY_SCOPE = Object.freeze({
8764
8804
  status: "terminal",
@@ -8772,6 +8812,7 @@ const TERMINAL_TELEMETRY_SCOPE = Object.freeze({
8772
8812
  salvagedTerminalOutputChildren: "cumulative",
8773
8813
  belowFloorOkChildren: "cumulative",
8774
8814
  acceptanceChildren: "cumulative",
8815
+ childrenAtFailure: "cumulative",
8775
8816
  semanticPasses: "terminal",
8776
8817
  claimConsistencyMeta: "terminal",
8777
8818
  synthesisSkipped: "terminal",
@@ -8833,6 +8874,89 @@ function logicalRunTelemetry(entries) {
8833
8874
  entriesAfterLastSettle: sinceLastSettle
8834
8875
  };
8835
8876
  }
8877
+ /**
8878
+ * Every orchestration's children, folded from a run's journal (RV2702).
8879
+ *
8880
+ * `childrenAtFailure` (RV2602) answers this for a LIVE consumer, and it
8881
+ * dies with the process that held it: the settle persists the
8882
+ * completion lift and nothing else, so a post-mortem over a journal,
8883
+ * which is all a paid run leaves behind, had no way to ask what the
8884
+ * children produced. Every ingredient was already written down. This
8885
+ * is the fold.
8886
+ *
8887
+ * It reads what resume reads. A `spawn-admission` decision names every
8888
+ * child the controller judged, with its ordinal, its profile, its
8889
+ * verdict, and the scope its dispatch pins to; the dispatch and
8890
+ * terminal `agent` entries under that scope are the child itself, and
8891
+ * the RV806 evidence verdict rides the terminal. Nothing is
8892
+ * re-derived and no validator runs again, so a journal written by any
8893
+ * prior version reads exactly as well as today's, which is the point:
8894
+ * the runs worth a post-mortem are the ones already in the archive.
8895
+ *
8896
+ * Two things it deliberately does NOT claim. It is not the live
8897
+ * roster: this reading happens after the RV1903 exit barrier settled
8898
+ * the stragglers, so a child the live field would have called
8899
+ * unsettled usually has a terminal here, and `status` is absent only
8900
+ * where the journal truly ends mid-flight. And it names children by
8901
+ * their dispatch seq rather than by nodeId, because the seq is the
8902
+ * handle the orchestrator's own turns used and the one a reader can
8903
+ * follow into the transcript.
8904
+ */
8905
+ function childRostersFromJournal(entries) {
8906
+ const rosters = /* @__PURE__ */ new Map();
8907
+ const ordered = [...entries].sort((a, b) => a.seq - b.seq);
8908
+ const dispatchesByScope = /* @__PURE__ */ new Map();
8909
+ const terminalsByScopeKey = /* @__PURE__ */ new Map();
8910
+ for (const entry of ordered) {
8911
+ if (entry.kind !== "agent") continue;
8912
+ if (entry.status === "running") {
8913
+ const rows = dispatchesByScope.get(entry.scope);
8914
+ if (rows === void 0) dispatchesByScope.set(entry.scope, [entry]);
8915
+ else rows.push(entry);
8916
+ continue;
8917
+ }
8918
+ const key = JSON.stringify([entry.scope, entry.key]);
8919
+ const rows = terminalsByScopeKey.get(key);
8920
+ if (rows === void 0) terminalsByScopeKey.set(key, [entry]);
8921
+ else rows.push(entry);
8922
+ }
8923
+ const cursors = /* @__PURE__ */ new Map();
8924
+ for (const entry of ordered) {
8925
+ if (entry.kind !== "decision") continue;
8926
+ const value = entry.value;
8927
+ if (value?.decisionType !== "spawn-admission" || value.origin !== "spawn_agent" && value.origin !== "parallel_agents") continue;
8928
+ const childScope = typeof value.childScope === "string" ? value.childScope : entry.scope;
8929
+ let roster = rosters.get(childScope);
8930
+ if (roster === void 0) {
8931
+ roster = {
8932
+ childScope,
8933
+ admitted: 0,
8934
+ rejected: 0,
8935
+ children: []
8936
+ };
8937
+ rosters.set(childScope, roster);
8938
+ }
8939
+ if (value.decision?.verdict?.kind !== "admit") {
8940
+ roster.rejected += 1;
8941
+ continue;
8942
+ }
8943
+ roster.admitted += 1;
8944
+ const rows = dispatchesByScope.get(childScope) ?? [];
8945
+ let cursor = cursors.get(childScope) ?? 0;
8946
+ while (cursor < rows.length && (rows[cursor]?.seq ?? 0) <= entry.seq) cursor += 1;
8947
+ const dispatch = rows[cursor];
8948
+ cursors.set(childScope, cursor + 1);
8949
+ if (dispatch === void 0) continue;
8950
+ const terminal = terminalsByScopeKey.get(JSON.stringify([childScope, dispatch.key]))?.find((candidate) => candidate.seq > dispatch.seq);
8951
+ roster.children.push({
8952
+ handle: dispatch.seq,
8953
+ ...terminal?.costAttribution?.agentType === void 0 ? {} : { agentType: terminal.costAttribution.agentType },
8954
+ ...terminal === void 0 ? {} : { status: terminal.status },
8955
+ ...terminal?.evidence === void 0 ? {} : { evidence: { ...terminal.evidence } }
8956
+ });
8957
+ }
8958
+ return [...rosters.values()];
8959
+ }
8836
8960
  function structure(entries) {
8837
8961
  const referenced = /* @__PURE__ */ new Set();
8838
8962
  for (const entry of entries) if (entry.ref !== void 0) referenced.add(entry.ref);
@@ -11656,10 +11780,11 @@ async function runAgent(options) {
11656
11780
  if (state === void 0) return;
11657
11781
  const reserve = reserveFor(state.budget);
11658
11782
  const deficit = evidenceDeficit();
11783
+ const widenedByDeficit = state.budget !== "turns" && finalizationWindow?.reserveForEvidenceDeficit === true && deficit > 0;
11659
11784
  const commit = () => {
11660
11785
  windowEntered = true;
11661
11786
  windowNoticeFired = true;
11662
- pendingWindowNotices.push(finalizationWindowNoticeText(state.remaining, reserve, state.budget, state.budget !== "turns" && finalizationWindow?.reserveForEvidenceDeficit === true && deficit > 0 ? deficit : void 0));
11787
+ pendingWindowNotices.push(finalizationWindowNoticeText(state.remaining, reserve, state.budget, widenedByDeficit ? deficit : void 0));
11663
11788
  events?.emit({
11664
11789
  type: "log",
11665
11790
  level: "info",
@@ -11674,7 +11799,11 @@ async function runAgent(options) {
11674
11799
  return durable({
11675
11800
  remaining: state.remaining,
11676
11801
  reserveCalls: reserve,
11677
- budget: state.budget
11802
+ budget: state.budget,
11803
+ ...widenedByDeficit ? {
11804
+ evidenceDeficit: deficit,
11805
+ minEntries: options.evidenceContract?.minEntries ?? 0
11806
+ } : {}
11678
11807
  }).then(commit);
11679
11808
  };
11680
11809
  const flushWindowNotices = () => {
@@ -22134,6 +22263,52 @@ function makeOrchestratorWorkflow(goal, opts) {
22134
22263
  };
22135
22264
  barrier.run = exitBarrier;
22136
22265
  /**
22266
+ * Whether an acceptance verdict exists (RV2602). The roster fold
22267
+ * below reports only where no policy ever spoke: two folds of the
22268
+ * same children under two different authorities would be one
22269
+ * reading too many, and the acceptance decision is the authority
22270
+ * wherever it exists.
22271
+ */
22272
+ let acceptanceRendered = false;
22273
+ /**
22274
+ * The pre-acceptance roster (RV2602): what the children had
22275
+ * produced at the moment the run gave up. The facts are already in
22276
+ * the journal, one child terminal at a time, and the terminal said
22277
+ * nothing about them because every surface that names children
22278
+ * hangs off the acceptance fold. The fourth parity run is the
22279
+ * shape: a worker settled `ok` with zero recorded evidence entries
22280
+ * under a declared contract, and the run died before acceptance
22281
+ * could say so.
22282
+ *
22283
+ * Read BEFORE the exit barrier, so it is the roster the verdict
22284
+ * would have frozen, not the one the stragglers land on later.
22285
+ */
22286
+ const rosterAtFailure = () => {
22287
+ if (acceptanceRendered) return;
22288
+ const roster = [...byOrdinal.values()];
22289
+ if (roster.length === 0) return;
22290
+ const statusCounts = {};
22291
+ const belowFloor = [];
22292
+ const unsettled = [];
22293
+ for (const record of roster) {
22294
+ const settled = record.settled;
22295
+ if (settled === void 0) {
22296
+ unsettled.push(record.nodeId);
22297
+ continue;
22298
+ }
22299
+ statusCounts[settled.status] = (statusCounts[settled.status] ?? 0) + 1;
22300
+ if (settled.status === "ok" && settled.evidence !== void 0 && !settled.evidence.met) belowFloor.push(record.nodeId);
22301
+ }
22302
+ return {
22303
+ spawned: roster.length,
22304
+ settled: roster.length - unsettled.length,
22305
+ statusCounts,
22306
+ ...belowFloor.length === 0 ? {} : { belowFloorOkChildren: belowFloor },
22307
+ ...unsettled.length === 0 ? {} : { unsettled }
22308
+ };
22309
+ };
22310
+ barrier.roster = rosterAtFailure;
22311
+ /**
22137
22312
  * The journaled spec behind each recovered ordinal: the idempotent
22138
22313
  * re-execution guard compares it against the incoming call, because
22139
22314
  * after a cross-attempt resume a REGENERATED turn (the boundary
@@ -24899,6 +25074,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24899
25074
  const acceptanceKey = "acceptance";
24900
25075
  const priorAcceptance = internals.replayer.snapshot().find((entry) => entry.kind === "decision" && entry.scope === callingState.scope && entry.key === acceptanceKey);
24901
25076
  let decision;
25077
+ acceptanceRendered = true;
24902
25078
  if (priorAcceptance !== void 0) decision = priorAcceptance.value;
24903
25079
  else {
24904
25080
  const childStatusCounts = {};
@@ -25171,6 +25347,16 @@ function makeOrchestratorWorkflow(goal, opts) {
25171
25347
  const barrier = {};
25172
25348
  try {
25173
25349
  return await orchestrationBody(ctx, barrier);
25350
+ } catch (thrown) {
25351
+ const roster = barrier.roster?.();
25352
+ if (roster === void 0) throw thrown;
25353
+ const widen = (data) => ({
25354
+ ...data ?? {},
25355
+ ...data?.childrenAtFailure === void 0 ? { childrenAtFailure: roster } : {}
25356
+ });
25357
+ if (thrown instanceof BudgetExhaustedError) throw new BudgetExhaustedError(thrown.message, { data: widen(thrown.data) });
25358
+ if (thrown instanceof FailRunError) throw new FailRunError(thrown.message, { data: widen(thrown.data) });
25359
+ throw thrown;
25174
25360
  } finally {
25175
25361
  await barrier.run?.();
25176
25362
  }
@@ -26762,6 +26948,42 @@ function workflowSourceRef(runId) {
26762
26948
  * telemetry, never authority), and an invalid counts record drops the
26763
26949
  * counts while keeping a valid completion.
26764
26950
  */
26951
+ /**
26952
+ * The pre-acceptance roster lift (RV2602), deliberately NOT gated on a
26953
+ * completion.
26954
+ *
26955
+ * Every other lifted field rides {@link liftRunCompletion}, which bails
26956
+ * out the moment there is no completion literal, and that is exactly
26957
+ * right: those fields report what an acceptance policy CLAIMED. This
26958
+ * one exists for the case where no policy ever ran, so gating it on a
26959
+ * completion would gate it on the very thing that is missing.
26960
+ *
26961
+ * Same posture as its siblings otherwise: a well formed record mirrors,
26962
+ * anything malformed drops silently rather than half-mirroring, so a
26963
+ * consumer never reads a partial roster as a whole one.
26964
+ */
26965
+ function liftChildrenAtFailure(candidate) {
26966
+ if (typeof candidate !== "object" || candidate === null || Array.isArray(candidate)) return;
26967
+ const raw = candidate.childrenAtFailure;
26968
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return;
26969
+ const { spawned, settled, statusCounts, belowFloorOkChildren, unsettled } = raw;
26970
+ const count = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
26971
+ if (!count(spawned) || !count(settled)) return;
26972
+ if (typeof statusCounts !== "object" || statusCounts === null || Array.isArray(statusCounts)) return;
26973
+ const entries = Object.entries(statusCounts);
26974
+ if (!entries.every(([, value]) => count(value))) return;
26975
+ const names = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string") ? [...value] : void 0;
26976
+ const below = belowFloorOkChildren === void 0 ? void 0 : names(belowFloorOkChildren);
26977
+ const open = unsettled === void 0 ? void 0 : names(unsettled);
26978
+ if (belowFloorOkChildren !== void 0 && below === void 0 || unsettled !== void 0 && open === void 0) return;
26979
+ return {
26980
+ spawned,
26981
+ settled,
26982
+ statusCounts: Object.fromEntries(entries),
26983
+ ...below === void 0 ? {} : { belowFloorOkChildren: below },
26984
+ ...open === void 0 ? {} : { unsettled: open }
26985
+ };
26986
+ }
26765
26987
  function liftRunCompletion(candidate) {
26766
26988
  if (typeof candidate !== "object" || candidate === null || Array.isArray(candidate)) return;
26767
26989
  const completion = candidate.completion;
@@ -27415,6 +27637,8 @@ function createEngine(options) {
27415
27637
  if (wireError !== void 0) outcomeFacts.error = wireError;
27416
27638
  let lifted = liftRunCompletion(status === "ok" || status === "exhausted" ? outcomeFacts.value : status === "error" ? wireError?.data : void 0);
27417
27639
  if (lifted === void 0 && status === "exhausted") lifted = liftRunCompletion(wireError?.data);
27640
+ const childrenAtFailure = liftChildrenAtFailure(status === "ok" || status === "exhausted" ? outcomeFacts.value : wireError?.data) ?? liftChildrenAtFailure(wireError?.data);
27641
+ if (childrenAtFailure !== void 0) outcomeFacts.childrenAtFailure = childrenAtFailure;
27418
27642
  if (lifted !== void 0) {
27419
27643
  outcomeFacts.completion = lifted.completion;
27420
27644
  if (lifted.childStatusCounts !== void 0) outcomeFacts.childStatusCounts = lifted.childStatusCounts;
@@ -27508,6 +27732,7 @@ function createEngine(options) {
27508
27732
  totalUsd: outcome.cost.totalUsd,
27509
27733
  ...outcome.cost.usageApprox === true ? { usageApprox: true } : {},
27510
27734
  ...lifted === void 0 ? {} : lifted,
27735
+ ...childrenAtFailure === void 0 ? {} : { childrenAtFailure },
27511
27736
  ...settlementFailure !== void 0 ? { settled: false } : supersededBy !== void 0 ? {
27512
27737
  settled: false,
27513
27738
  settledReason: "superseded"
@@ -28091,4 +28316,4 @@ function createSandboxBridge(ctx, options) {
28091
28316
  };
28092
28317
  }
28093
28318
  //#endregion
28094
- 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, 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_AGENT_SCHEMA, 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, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, 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, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, 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 };
28319
+ 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, 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, 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, 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, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/core",
3
- "version": "1.228.0",
3
+ "version": "1.230.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",