@rulvar/core 1.231.0 → 1.232.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
@@ -8709,6 +8709,22 @@ interface ClaimPairOptions {
8709
8709
  * 40).
8710
8710
  */
8711
8711
  critical?: readonly string[];
8712
+ /**
8713
+ * The declared coverage target (RV2903), in (0, 1]: size the
8714
+ * reported pairs to COVER at least this share of the citing
8715
+ * sentences instead of taking the first `max` pairs blind. The
8716
+ * ninth comparison run judged 43 of 115 citing sentences because
8717
+ * its host guessed `max: 56`, and nothing sized the pass to a goal.
8718
+ * Under a target the selection is coverage-first: every critical
8719
+ * candidate, then ONE candidate per still-uncovered sentence in
8720
+ * draft order until the target is met; pairs that only deepen an
8721
+ * already covered sentence are skipped, because under a declared
8722
+ * target the bounded budget buys coverage, not depth. `max` stays a
8723
+ * hard ceiling, and `truncated` then means exactly that the ceiling
8724
+ * cut selection the target still wanted. Unset = the exact
8725
+ * historical first-`max` selection, byte for byte.
8726
+ */
8727
+ targetCoverageShare?: number;
8712
8728
  }
8713
8729
  /** What the fold produced, beside the pairs themselves. */
8714
8730
  interface ClaimPairsFold {
@@ -8727,6 +8743,13 @@ interface ClaimPairsFold {
8727
8743
  */
8728
8744
  coveredCitingSentences: number;
8729
8745
  /**
8746
+ * Present when `targetCoverageShare` was declared (RV2903): the
8747
+ * sentence count the target resolved to against THIS draft, so a
8748
+ * consumer holds `coveredCitingSentences` against the goal the
8749
+ * selection was sized for, not against a share it must re-derive.
8750
+ */
8751
+ targetCoveredSentences?: number;
8752
+ /**
8730
8753
  * Present only when `critical` was given: the critical draft anchors
8731
8754
  * (verbatim, draft order, deduplicated) with no reported pair, capped
8732
8755
  * at {@link MAX_CRITICAL_UNCOVERED} entries.
@@ -10252,6 +10275,22 @@ interface OrchestrateClaimConsistency {
10252
10275
  /** Bound on each excerpt; default {@link DEFAULT_MAX_PAIR_EXCERPT_CHARS}. */
10253
10276
  maxExcerptChars?: number;
10254
10277
  /**
10278
+ * The declared coverage target (RV2903), in (0, 1]: the pass sizes
10279
+ * itself to COVER this share of the draft's citing sentences instead
10280
+ * of judging the first `max` pairs blind. The ninth comparison run
10281
+ * covered 43 of 115 citing sentences because its host guessed
10282
+ * `max: 56` plus the default run-fact bound, and the honest
10283
+ * 'partial' grade was the constant's echo, not a policy. Under a
10284
+ * target the pairing selects coverage-first (criticals, then one
10285
+ * pair per uncovered sentence until the target is met; `max` stays a
10286
+ * hard ceiling), the run-fact pass judges EVERY matched candidate
10287
+ * instead of the default bound, and an undeclared
10288
+ * `minimumCoverageRatio` defaults to the target, so the RV1809
10289
+ * floor machinery (the `lowCoverage` block, `onLowCoverage`, the
10290
+ * strict CLI exit) enforces the same number that sized the pass.
10291
+ */
10292
+ coverageTarget?: number;
10293
+ /**
10255
10294
  * Critical anchor declarations (RV1603): paths (a file, or a
10256
10295
  * directory matched as a prefix) or span anchors
10257
10296
  * (`src/exec.ts:250-300`). Pairs whose draft anchor matches sort
@@ -10353,6 +10392,12 @@ interface OrchestrateClaimConsistencyMeta {
10353
10392
  */
10354
10393
  coveredCitingSentences: number;
10355
10394
  /**
10395
+ * Present when `coverageTarget` was declared (RV2903): the share the
10396
+ * pass sized itself for, echoed so a persisted outcome says WHAT the
10397
+ * coverage was held against, not only what it reached.
10398
+ */
10399
+ coverageTarget?: number;
10400
+ /**
10356
10401
  * Present when `critical` was declared: the critical draft anchors
10357
10402
  * with no judged pair (capped at {@link MAX_CRITICAL_UNCOVERED});
10358
10403
  * `[]` means every declared claim the draft cited was judged.
@@ -13177,6 +13222,96 @@ interface JournaledCriticalPath {
13177
13222
  */
13178
13223
  declare function criticalPathFromJournal(entries: readonly JournalEntry[]): JournaledCriticalPath;
13179
13224
  //#endregion
13225
+ //#region src/stores/synthesis-candidates.d.ts
13226
+ /** One failed validator on a journaled finish verdict, verbatim. */
13227
+ interface SynthesisCandidateFailure {
13228
+ name: string;
13229
+ reasons: readonly string[];
13230
+ }
13231
+ /** One finish candidate, folded from its journaled verdict (RV2902). */
13232
+ interface JournaledSynthesisCandidate {
13233
+ /** The journaled verdict: 'accepted', 'repair', or 'rejected'. */
13234
+ verdict: "accepted" | "repair" | "rejected";
13235
+ /** The verdict decision's seq: the candidate's address in the run. */
13236
+ verdictSeq: number;
13237
+ /** The verdict decision's stamp, when the entry carried one. */
13238
+ verdictAt?: string;
13239
+ /** The finish call id the verdict was keyed by. */
13240
+ callId?: string;
13241
+ /** Repairs spent BEFORE this candidate, from the verdict itself. */
13242
+ repairsUsed?: number;
13243
+ maxRepairs?: number;
13244
+ /** The contract generation the verdict was rendered under. */
13245
+ contractHash?: string;
13246
+ /** The non-accepted candidate's identity (RV2507), when journaled. */
13247
+ candidateHash?: string;
13248
+ candidateChars?: number;
13249
+ /** The rejected candidate's transcript blob, under retention. */
13250
+ candidateRef?: string;
13251
+ /** The failed validators with their reasons, verbatim. */
13252
+ failed: readonly SynthesisCandidateFailure[];
13253
+ /** The hosting span's dispatch label (RV2901), when journaled. */
13254
+ spanLabel?: string;
13255
+ /**
13256
+ * Wall from the previous boundary (the span's start, or the prior
13257
+ * verdict) to this verdict's stamp. Absent when the candidate is not
13258
+ * hosted by a settled synthesize span or a stamp is missing.
13259
+ */
13260
+ windowMs?: number;
13261
+ /**
13262
+ * Provider wire requests inside this candidate's window (absorbed
13263
+ * continuations counted). Present only when the incremental rows
13264
+ * cover the hosting span's terminal call records exactly.
13265
+ */
13266
+ wires?: number;
13267
+ /** Summed recorded usage of the window's wires; same condition. */
13268
+ usage?: Usage;
13269
+ /**
13270
+ * Window wires that recorded NO usage on a non-ok outcome: the
13271
+ * provider may have billed them anyway, so `costUsd` is a floor
13272
+ * whenever this is nonzero.
13273
+ */
13274
+ usageUnknownWires?: number;
13275
+ /**
13276
+ * The window priced per call at the caller's table. Present only
13277
+ * when a price function was given and it priced EVERY window wire;
13278
+ * an unpriced model drops the field rather than shrinking it.
13279
+ */
13280
+ costUsd?: number;
13281
+ }
13282
+ /** What `synthesisCandidatesFromJournal` folded, beside the candidates. */
13283
+ interface JournaledSynthesisCandidateReport {
13284
+ /** Every hosted candidate, in verdict seq order. */
13285
+ candidates: readonly JournaledSynthesisCandidate[];
13286
+ /** Settled synthesize spans the journal holds. */
13287
+ synthesisSpans: number;
13288
+ /**
13289
+ * Finish verdicts NOT hosted by a settled synthesize span: draft
13290
+ * stage validations in the coordination span, and verdicts inside a
13291
+ * synthesis that never settled. Counted, never guessed into
13292
+ * candidates.
13293
+ */
13294
+ unhostedVerdicts: number;
13295
+ /**
13296
+ * Settled synthesize spans whose incremental billing rows do not
13297
+ * cover their terminal call records (the rows append asynchronously
13298
+ * and may be missing); their candidates carry verdict facts only.
13299
+ */
13300
+ unattributedSpans: number;
13301
+ /** Wires after a span's LAST verdict: attributed to no candidate. */
13302
+ tailWires: number;
13303
+ }
13304
+ /**
13305
+ * Fold the finish candidates (RV2902) out of a run's journal: each
13306
+ * journaled validation verdict with the window of wall, wires, usage,
13307
+ * and priced cost that produced the candidate it judged.
13308
+ *
13309
+ * @param entries the journal of one run, in any order
13310
+ * @param priceUsd prices one call's usage at its serving model, the
13311
+ * same shape `invoiceFromJournal` takes; omit to fold without money
13312
+ */
13313
+ declare function synthesisCandidatesFromJournal(entries: readonly JournalEntry[], priceUsd?: (servedBy: ModelRef, usage: Usage) => number | undefined): JournaledSynthesisCandidateReport;
13314
+ //#endregion
13180
13315
  //#region src/stores/jsonl.d.ts
13181
13316
  declare class JsonlFileStore implements MetaLookupStore {
13182
13317
  private readonly dir;
@@ -13773,6 +13908,32 @@ declare function statementFromRows(input: {
13773
13908
  rows: readonly Record<string, unknown>[];
13774
13909
  map: StatementColumnMap;
13775
13910
  }): ProviderStatement;
13911
+ /** How {@link statementRowsFromDelimited} splits cells; default ','. */
13912
+ interface DelimitedStatementOptions {
13913
+ delimiter?: "," | ";" | " " | "|";
13914
+ }
13915
+ /**
13916
+ * Parses a delimited billing export (the CSV/TSV a provider console
13917
+ * hands a host) into the header-keyed rows {@link statementFromRows}
13918
+ * consumes (RV2908). The library deliberately hard-codes NO provider's
13919
+ * export format: the host owns the column map, this owns only the
13920
+ * delimited grammar, and the pair closes the last manual step between
13921
+ * a downloaded export and {@link reconcileStatement}.
13922
+ *
13923
+ * Fail-closed at the record, like the rest of this module: a data row
13924
+ * whose cell count differs from the header, a quote opened and never
13925
+ * closed, a stray quote inside an unquoted cell, an empty or duplicate
13926
+ * header name, all refuse typed with the line instead of flowing a
13927
+ * shifted column into a reconciliation, because a column shifted one
13928
+ * to the left prices `outputTokens` as dollars and calls it evidence.
13929
+ * RFC 4180 quoting is honored (quoted cells may carry the delimiter,
13930
+ * doubled quotes, and line breaks); CRLF and lone LF both delimit
13931
+ * records; one trailing empty line is an artifact of every exporter
13932
+ * and is ignored. Cells come back as raw strings, so an empty cell
13933
+ * reads as "the export does not carry this figure" downstream, exactly
13934
+ * the absence contract `statementFromRows` documents.
13935
+ */
13936
+ declare function statementRowsFromDelimited(text: string, options?: DelimitedStatementOptions): Record<string, string>[];
13776
13937
  //#endregion
13777
13938
  //#region src/engine/persisted-terminal.d.ts
13778
13939
  /**
@@ -14876,6 +15037,23 @@ interface PostFanInBreakdown {
14876
15037
  * composition in {@link reduceCriticalPath}.
14877
15038
  */
14878
15039
  declare const CLAIM_JUDGE_LABEL = "claim-consistency-judge";
15040
+ /**
15041
+ * The label the final synthesis (composition) invocation dispatches
15042
+ * under (RV2901). The engine labelling its OWN dispatches is what lets
15043
+ * `criticalPathFromJournal` split the synthesize bucket offline: the
15044
+ * split demands a label on EVERY synthesize span, and the comparison
15045
+ * run that shipped the journal fold still refused it because this one
15046
+ * dispatch stayed anonymous while the claim judge was labelled.
15047
+ */
15048
+ declare const FINAL_COMPOSITION_LABEL = "final-composition";
15049
+ /**
15050
+ * The label an incremental synthesis note dispatches under (RV2901).
15051
+ * Notes ride role 'synthesize' and are composition-side work, so both
15052
+ * reducers count them toward the composition half of the split; the
15053
+ * label exists so a journal reader can tell WHICH composition spans
15054
+ * were notes without guessing from their size.
15055
+ */
15056
+ declare const SYNTHESIS_NOTE_LABEL = "synthesis-note";
14879
15057
  declare function reduceCriticalPath(events: Iterable<WorkflowEvent>): CriticalPath;
14880
15058
  //#endregion
14881
15059
  //#region src/runner/sandbox-bridge.d.ts
@@ -14950,4 +15128,4 @@ interface SandboxBridge {
14950
15128
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
14951
15129
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
14952
15130
  //#endregion
14953
- 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, JournaledCriticalPath, 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, 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, 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 };
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 };
package/dist/index.js CHANGED
@@ -9221,6 +9221,23 @@ function reduceInvocationTable(events) {
9221
9221
  * composition in {@link reduceCriticalPath}.
9222
9222
  */
9223
9223
  const CLAIM_JUDGE_LABEL = "claim-consistency-judge";
9224
+ /**
9225
+ * The label the final synthesis (composition) invocation dispatches
9226
+ * under (RV2901). The engine labelling its OWN dispatches is what lets
9227
+ * `criticalPathFromJournal` split the synthesize bucket offline: the
9228
+ * split demands a label on EVERY synthesize span, and the comparison
9229
+ * run that shipped the journal fold still refused it because this one
9230
+ * dispatch stayed anonymous while the claim judge was labelled.
9231
+ */
9232
+ const FINAL_COMPOSITION_LABEL = "final-composition";
9233
+ /**
9234
+ * The label an incremental synthesis note dispatches under (RV2901).
9235
+ * Notes ride role 'synthesize' and are composition-side work, so both
9236
+ * reducers count them toward the composition half of the split; the
9237
+ * label exists so a journal reader can tell WHICH composition spans
9238
+ * were notes without guessing from their size.
9239
+ */
9240
+ const SYNTHESIS_NOTE_LABEL = "synthesis-note";
9224
9241
  /** Total length of the union of possibly overlapping intervals. */
9225
9242
  function unionLength(intervals) {
9226
9243
  const positive = intervals.filter((interval) => interval.to > interval.from);
@@ -9380,7 +9397,7 @@ function reduceCriticalPath(events) {
9380
9397
  }
9381
9398
  //#endregion
9382
9399
  //#region src/stores/critical-path.ts
9383
- const parse = (at) => {
9400
+ const parse$1 = (at) => {
9384
9401
  if (at === void 0) return;
9385
9402
  const ms = Date.parse(at);
9386
9403
  return Number.isFinite(ms) ? ms : void 0;
@@ -9403,8 +9420,8 @@ function criticalPathFromJournal(entries) {
9403
9420
  let labelledSynthesis = false;
9404
9421
  let unlabelledSynthesis = false;
9405
9422
  for (const entry of ordered) {
9406
- const startedAt = parse(entry.startedAt);
9407
- const endedAt = parse(entry.endedAt);
9423
+ const startedAt = parse$1(entry.startedAt);
9424
+ const endedAt = parse$1(entry.endedAt);
9408
9425
  if (startedAt !== void 0) runStart = runStart === void 0 ? startedAt : Math.min(runStart, startedAt);
9409
9426
  const last = endedAt ?? startedAt;
9410
9427
  if (last !== void 0) runEnd = runEnd === void 0 ? last : Math.max(runEnd, last);
@@ -9453,6 +9470,193 @@ function criticalPathFromJournal(entries) {
9453
9470
  return path;
9454
9471
  }
9455
9472
  //#endregion
9473
+ //#region src/stores/synthesis-candidates.ts
9474
+ const parse = (at) => {
9475
+ if (at === void 0) return;
9476
+ const ms = Date.parse(at);
9477
+ return Number.isFinite(ms) ? ms : void 0;
9478
+ };
9479
+ const VERDICTS = /* @__PURE__ */ new Set([
9480
+ "accepted",
9481
+ "repair",
9482
+ "rejected"
9483
+ ]);
9484
+ const OPTIONAL_USAGE_KEYS = [
9485
+ "reasoningTokens",
9486
+ "cacheWrite5mTokens",
9487
+ "cacheWrite1hTokens"
9488
+ ];
9489
+ function sumUsage$1(rows) {
9490
+ const total = {
9491
+ inputTokens: 0,
9492
+ outputTokens: 0,
9493
+ cacheReadTokens: 0,
9494
+ cacheWriteTokens: 0
9495
+ };
9496
+ for (const row of rows) {
9497
+ if (row.usage === void 0) continue;
9498
+ total.inputTokens += row.usage.inputTokens;
9499
+ total.outputTokens += row.usage.outputTokens;
9500
+ total.cacheReadTokens += row.usage.cacheReadTokens;
9501
+ total.cacheWriteTokens += row.usage.cacheWriteTokens;
9502
+ for (const key of OPTIONAL_USAGE_KEYS) {
9503
+ const share = row.usage[key];
9504
+ if (share !== void 0) total[key] = (total[key] ?? 0) + share;
9505
+ }
9506
+ }
9507
+ return total;
9508
+ }
9509
+ const usageUnknown = (row) => {
9510
+ if (row.outcome === "ok") return false;
9511
+ const usage = row.usage;
9512
+ if (usage === void 0) return true;
9513
+ return usage.inputTokens === 0 && usage.outputTokens === 0 && usage.cacheReadTokens === 0 && usage.cacheWriteTokens === 0 && (usage.reasoningTokens ?? 0) === 0;
9514
+ };
9515
+ /**
9516
+ * Fold the finish candidates (RV2902) out of a run's journal: each
9517
+ * journaled validation verdict with the window of wall, wires, usage,
9518
+ * and priced cost that produced the candidate it judged.
9519
+ *
9520
+ * @param entries the journal of one run, in any order
9521
+ * @param priceUsd prices one call's usage at its serving model, the
9522
+ * same shape `invoiceFromJournal` takes; omit to fold without money
9523
+ */
9524
+ function synthesisCandidatesFromJournal(entries, priceUsd) {
9525
+ const ordered = [...entries].sort((a, b) => a.seq - b.seq);
9526
+ const spans = [];
9527
+ for (const entry of ordered) {
9528
+ if (entry.kind !== "agent" || entry.status === "running" || entry.status === "suspended" || entry.costAttribution?.role !== "synthesize" || typeof entry.ref !== "number") continue;
9529
+ spans.push({
9530
+ runningSeq: entry.ref,
9531
+ terminalSeq: entry.seq,
9532
+ startedAt: parse(entry.startedAt),
9533
+ ...entry.costAttribution.label === void 0 ? {} : { label: entry.costAttribution.label },
9534
+ records: entry.providerCalls,
9535
+ wires: [],
9536
+ verdictSeqs: []
9537
+ });
9538
+ }
9539
+ const bySeqOpen = /* @__PURE__ */ new Map();
9540
+ for (const span of spans) bySeqOpen.set(span.runningSeq, span);
9541
+ const verdicts = [];
9542
+ for (const entry of ordered) {
9543
+ if (entry.kind !== "decision") continue;
9544
+ const value = entry.value;
9545
+ if (value === void 0) continue;
9546
+ if (value.decisionType === "provider-call") {
9547
+ const wire = value;
9548
+ if (typeof wire.agentRef !== "number") continue;
9549
+ const span = bySeqOpen.get(wire.agentRef);
9550
+ const record = wire.record;
9551
+ if (span === void 0 || record === void 0 || typeof record.ordinal !== "number") continue;
9552
+ span.wires.push({
9553
+ seq: entry.seq,
9554
+ ordinal: record.ordinal,
9555
+ ...typeof record.servedBy === "string" ? { servedBy: record.servedBy } : {},
9556
+ outcome: typeof record.outcome === "string" ? record.outcome : "ok",
9557
+ ...record.usage === void 0 ? {} : { usage: record.usage },
9558
+ wireRequests: typeof record.wireRequests === "number" ? record.wireRequests : 1
9559
+ });
9560
+ continue;
9561
+ }
9562
+ if (value.decisionType !== "orchestrator_finish_validation") continue;
9563
+ const verdictValue = value;
9564
+ if (typeof verdictValue.verdict !== "string" || !VERDICTS.has(verdictValue.verdict)) continue;
9565
+ let host;
9566
+ for (const span of spans) if (entry.seq > span.runningSeq && entry.seq < span.terminalSeq) {
9567
+ if (host === void 0 || span.runningSeq > host.runningSeq) host = span;
9568
+ }
9569
+ if (host !== void 0) host.verdictSeqs.push(entry.seq);
9570
+ verdicts.push({
9571
+ seq: entry.seq,
9572
+ ...entry.startedAt === void 0 ? {} : { at: entry.startedAt },
9573
+ value: verdictValue,
9574
+ ...host === void 0 ? {} : { span: host }
9575
+ });
9576
+ }
9577
+ const attributable = /* @__PURE__ */ new Set();
9578
+ let unattributedSpans = 0;
9579
+ for (const span of spans) {
9580
+ const recorded = (span.records ?? []).map((record) => record.ordinal).sort((a, b) => a - b);
9581
+ const rows = [...span.wires].map((wire) => wire.ordinal).sort((a, b) => a - b);
9582
+ if (span.records !== void 0 && recorded.length === rows.length && recorded.every((ordinal, index) => ordinal === rows[index])) attributable.add(span);
9583
+ else unattributedSpans += 1;
9584
+ }
9585
+ let tailWires = 0;
9586
+ for (const span of spans) {
9587
+ if (!attributable.has(span)) continue;
9588
+ const lastVerdict = span.verdictSeqs.length === 0 ? void 0 : Math.max(...span.verdictSeqs);
9589
+ if (lastVerdict === void 0) continue;
9590
+ for (const wire of span.wires) if (wire.seq > lastVerdict) tailWires += wire.wireRequests;
9591
+ }
9592
+ const candidates = [];
9593
+ let unhostedVerdicts = 0;
9594
+ const previousBoundary = /* @__PURE__ */ new Map();
9595
+ for (const verdict of verdicts) {
9596
+ const value = verdict.value;
9597
+ if (verdict.span === void 0) {
9598
+ unhostedVerdicts += 1;
9599
+ continue;
9600
+ }
9601
+ const span = verdict.span;
9602
+ const boundary = previousBoundary.get(span) ?? {
9603
+ seq: span.runningSeq,
9604
+ ...span.startedAt === void 0 ? {} : { at: span.startedAt }
9605
+ };
9606
+ const verdictAtMs = parse(verdict.at);
9607
+ previousBoundary.set(span, {
9608
+ seq: verdict.seq,
9609
+ ...verdictAtMs === void 0 ? {} : { at: verdictAtMs }
9610
+ });
9611
+ const candidate = {
9612
+ verdict: value.verdict,
9613
+ verdictSeq: verdict.seq,
9614
+ ...verdict.at === void 0 ? {} : { verdictAt: verdict.at },
9615
+ ...typeof value.callId === "string" ? { callId: value.callId } : {},
9616
+ ...typeof value.repairsUsed === "number" ? { repairsUsed: value.repairsUsed } : {},
9617
+ ...typeof value.maxRepairs === "number" ? { maxRepairs: value.maxRepairs } : {},
9618
+ ...typeof value.contractHash === "string" ? { contractHash: value.contractHash } : {},
9619
+ ...typeof value.candidateHash === "string" ? { candidateHash: value.candidateHash } : {},
9620
+ ...typeof value.candidateChars === "number" ? { candidateChars: value.candidateChars } : {},
9621
+ ...typeof value.candidateRef === "string" ? { candidateRef: value.candidateRef } : {},
9622
+ failed: Array.isArray(value.failed) ? value.failed.filter((failure) => typeof failure.name === "string").map((failure) => ({
9623
+ name: failure.name,
9624
+ reasons: Array.isArray(failure.reasons) ? failure.reasons.filter((reason) => typeof reason === "string") : []
9625
+ })) : [],
9626
+ ...span.label === void 0 ? {} : { spanLabel: span.label }
9627
+ };
9628
+ if (boundary.at !== void 0 && verdictAtMs !== void 0) candidate.windowMs = Math.max(0, verdictAtMs - boundary.at);
9629
+ if (attributable.has(span)) {
9630
+ const window = span.wires.filter((wire) => wire.seq > boundary.seq && wire.seq < verdict.seq);
9631
+ candidate.wires = window.reduce((sum, wire) => sum + wire.wireRequests, 0);
9632
+ candidate.usage = sumUsage$1(window);
9633
+ const unknown = window.filter((wire) => usageUnknown(wire)).length;
9634
+ if (unknown > 0) candidate.usageUnknownWires = unknown;
9635
+ if (priceUsd !== void 0) {
9636
+ let priced = 0;
9637
+ let complete = true;
9638
+ for (const wire of window) {
9639
+ const usd = wire.servedBy === void 0 || wire.usage === void 0 ? void 0 : priceUsd(wire.servedBy, wire.usage);
9640
+ if (usd === void 0) {
9641
+ complete = false;
9642
+ break;
9643
+ }
9644
+ priced += usd;
9645
+ }
9646
+ if (complete) candidate.costUsd = priced;
9647
+ }
9648
+ }
9649
+ candidates.push(candidate);
9650
+ }
9651
+ return {
9652
+ candidates,
9653
+ synthesisSpans: spans.length,
9654
+ unhostedVerdicts,
9655
+ unattributedSpans,
9656
+ tailWires
9657
+ };
9658
+ }
9659
+ //#endregion
9456
9660
  //#region src/stores/jsonl.ts
9457
9661
  /**
9458
9662
  * JsonlFileStore (M2-T01): the durable file store. One JSON entry per
@@ -16125,6 +16329,94 @@ function statementFromRows(input) {
16125
16329
  })
16126
16330
  };
16127
16331
  }
16332
+ /**
16333
+ * Parses a delimited billing export (the CSV/TSV a provider console
16334
+ * hands a host) into the header-keyed rows {@link statementFromRows}
16335
+ * consumes (RV2908). The library deliberately hard-codes NO provider's
16336
+ * export format: the host owns the column map, this owns only the
16337
+ * delimited grammar, and the pair closes the last manual step between
16338
+ * a downloaded export and {@link reconcileStatement}.
16339
+ *
16340
+ * Fail-closed at the record, like the rest of this module: a data row
16341
+ * whose cell count differs from the header, a quote opened and never
16342
+ * closed, a stray quote inside an unquoted cell, an empty or duplicate
16343
+ * header name, all refuse typed with the line instead of flowing a
16344
+ * shifted column into a reconciliation, because a column shifted one
16345
+ * to the left prices `outputTokens` as dollars and calls it evidence.
16346
+ * RFC 4180 quoting is honored (quoted cells may carry the delimiter,
16347
+ * doubled quotes, and line breaks); CRLF and lone LF both delimit
16348
+ * records; one trailing empty line is an artifact of every exporter
16349
+ * and is ignored. Cells come back as raw strings, so an empty cell
16350
+ * reads as "the export does not carry this figure" downstream, exactly
16351
+ * the absence contract `statementFromRows` documents.
16352
+ */
16353
+ function statementRowsFromDelimited(text, options) {
16354
+ const delimiter = options?.delimiter ?? ",";
16355
+ const records = [];
16356
+ let cells = [];
16357
+ let cell = "";
16358
+ let quoted = false;
16359
+ let cellHadQuote = false;
16360
+ let line = 1;
16361
+ const endCell = () => {
16362
+ cells.push(cell);
16363
+ cell = "";
16364
+ cellHadQuote = false;
16365
+ };
16366
+ const endRecord = () => {
16367
+ endCell();
16368
+ records.push(cells);
16369
+ cells = [];
16370
+ };
16371
+ for (let index = 0; index < text.length; index += 1) {
16372
+ const char = text[index];
16373
+ if (quoted) {
16374
+ if (char === "\"") {
16375
+ if (text[index + 1] === "\"") {
16376
+ cell += "\"";
16377
+ index += 1;
16378
+ continue;
16379
+ }
16380
+ quoted = false;
16381
+ continue;
16382
+ }
16383
+ if (char === "\n") line += 1;
16384
+ cell += char;
16385
+ continue;
16386
+ }
16387
+ if (char === "\"") {
16388
+ if (cell.length > 0 || cellHadQuote) throw new ConfigError(`statementRowsFromDelimited: line ${String(line)} carries a quote inside an unquoted cell; quote the whole cell (RFC 4180) or fix the export`);
16389
+ quoted = true;
16390
+ cellHadQuote = true;
16391
+ continue;
16392
+ }
16393
+ if (char === delimiter) {
16394
+ endCell();
16395
+ continue;
16396
+ }
16397
+ if (char === "\r" && text[index + 1] === "\n") continue;
16398
+ if (char === "\n") {
16399
+ endRecord();
16400
+ line += 1;
16401
+ continue;
16402
+ }
16403
+ cell += char;
16404
+ }
16405
+ if (quoted) throw new ConfigError(`statementRowsFromDelimited: a quoted cell opened on line ${String(line)} never closes; the export is torn`);
16406
+ if (cell.length > 0 || cellHadQuote || cells.length > 0) endRecord();
16407
+ if (records.length === 0) throw new ConfigError("statementRowsFromDelimited: the export carries no header record");
16408
+ const header = records[0];
16409
+ const seen = /* @__PURE__ */ new Set();
16410
+ header.forEach((name, index) => {
16411
+ if (name.length === 0) throw new ConfigError(`statementRowsFromDelimited: header column ${String(index)} is empty; every column needs a name for the map to address`);
16412
+ if (seen.has(name)) throw new ConfigError(`statementRowsFromDelimited: header names column '${name}' twice; an ambiguous address cannot be mapped`);
16413
+ seen.add(name);
16414
+ });
16415
+ return records.slice(1).map((record, index) => {
16416
+ if (record.length !== header.length) throw new ConfigError(`statementRowsFromDelimited: data record ${String(index)} carries ${String(record.length)} cell(s) against ${String(header.length)} header column(s); a shifted column prices the wrong figure, so a ragged export refuses instead`);
16417
+ return Object.fromEntries(header.map((name, column) => [name, record[column]]));
16418
+ });
16419
+ }
16128
16420
  //#endregion
16129
16421
  //#region src/engine/persisted-terminal.ts
16130
16422
  const REFUSAL_MESSAGES = {
@@ -21201,6 +21493,8 @@ function pairDraftClaims(draftText, rows, options) {
21201
21493
  const max = requirePositiveInteger(options?.max ?? 40, "pairDraftClaims max");
21202
21494
  const maxPoolPerPair = requirePositiveInteger(options?.maxPoolPerPair ?? 3, "pairDraftClaims maxPoolPerPair");
21203
21495
  const maxExcerptChars = requirePositiveInteger(options?.maxExcerptChars ?? 400, "pairDraftClaims maxExcerptChars");
21496
+ const targetShare = options?.targetCoverageShare;
21497
+ if (targetShare !== void 0 && (typeof targetShare !== "number" || !Number.isFinite(targetShare) || targetShare <= 0 || targetShare > 1)) throw new ConfigError(`pairDraftClaims targetCoverageShare must be a number in (0, 1]; got ` + JSON.stringify(targetShare));
21204
21498
  const poolByPath = /* @__PURE__ */ new Map();
21205
21499
  for (const row of rows) for (const sentence of sentencesOf(row.text)) {
21206
21500
  const anchors = anchorsOf(sentence, pattern);
@@ -21292,13 +21586,37 @@ function pairDraftClaims(draftText, rows, options) {
21292
21586
  });
21293
21587
  }
21294
21588
  }
21295
- const reported = (critical === void 0 ? candidates : [...candidates.filter((candidate) => candidate.critical), ...candidates.filter((candidate) => !candidate.critical)]).slice(0, max);
21589
+ const ordered = critical === void 0 ? candidates : [...candidates.filter((candidate) => candidate.critical), ...candidates.filter((candidate) => !candidate.critical)];
21590
+ let reported;
21591
+ let maxCut;
21592
+ let targetSentences;
21593
+ if (targetShare === void 0) {
21594
+ reported = ordered.slice(0, max);
21595
+ maxCut = candidates.length > reported.length;
21596
+ } else {
21597
+ targetSentences = Math.min(draftCitingSentences, Math.ceil(targetShare * draftCitingSentences));
21598
+ const covering = /* @__PURE__ */ new Set();
21599
+ const wanted = [];
21600
+ for (const candidate of ordered) {
21601
+ if (candidate.critical) {
21602
+ wanted.push(candidate);
21603
+ covering.add(candidate.sentence);
21604
+ continue;
21605
+ }
21606
+ if (covering.size >= targetSentences || covering.has(candidate.sentence)) continue;
21607
+ wanted.push(candidate);
21608
+ covering.add(candidate.sentence);
21609
+ }
21610
+ reported = wanted.slice(0, max);
21611
+ maxCut = wanted.length > reported.length;
21612
+ }
21296
21613
  const coveredSentences = new Set(reported.map((candidate) => candidate.sentence));
21297
21614
  const fold = {
21298
21615
  pairs: reported.map((candidate) => candidate.pair),
21299
- truncated: candidates.length > reported.length,
21616
+ truncated: maxCut,
21300
21617
  draftCitingSentences,
21301
- coveredCitingSentences: coveredSentences.size
21618
+ coveredCitingSentences: coveredSentences.size,
21619
+ ...targetSentences === void 0 ? {} : { targetCoveredSentences: targetSentences }
21302
21620
  };
21303
21621
  if (critical !== void 0) {
21304
21622
  const reportedAnchors = new Set(reported.map((candidate) => candidate.pair.anchor));
@@ -22105,10 +22423,14 @@ function validateOrchestrateOptions(opts) {
22105
22423
  if (consistency.runFacts !== true) throw new ConfigError("orchestrate claimConsistency.runFactTerms rides the runFacts pass; set claimConsistency.runFacts true");
22106
22424
  if (!Array.isArray(consistency.runFactTerms) || consistency.runFactTerms.some((term) => typeof term !== "string" || term.length === 0)) throw new ConfigError("orchestrate claimConsistency.runFactTerms must be an array of nonempty strings; got " + JSON.stringify(consistency.runFactTerms));
22107
22425
  }
22108
- for (const [label, ratio] of [["minimumCoverageRatio", consistency.minimumCoverageRatio], ["runFactCoverageRatio", consistency.runFactCoverageRatio]]) if (ratio !== void 0 && (typeof ratio !== "number" || !Number.isFinite(ratio) || ratio <= 0 || ratio > 1)) throw new ConfigError(`orchestrate claimConsistency.${label} must be a number in (0, 1]; got ` + JSON.stringify(ratio));
22426
+ for (const [label, ratio] of [
22427
+ ["minimumCoverageRatio", consistency.minimumCoverageRatio],
22428
+ ["runFactCoverageRatio", consistency.runFactCoverageRatio],
22429
+ ["coverageTarget", consistency.coverageTarget]
22430
+ ]) if (ratio !== void 0 && (typeof ratio !== "number" || !Number.isFinite(ratio) || ratio <= 0 || ratio > 1)) throw new ConfigError(`orchestrate claimConsistency.${label} must be a number in (0, 1]; got ` + JSON.stringify(ratio));
22109
22431
  if (consistency.runFactCoverageRatio !== void 0 && consistency.runFacts !== true) throw new ConfigError("orchestrate claimConsistency.runFactCoverageRatio rides the runFacts pass; set claimConsistency.runFacts true");
22110
22432
  if (consistency.onLowCoverage !== void 0 && consistency.onLowCoverage !== "report" && consistency.onLowCoverage !== "fail") throw new ConfigError("orchestrate claimConsistency.onLowCoverage must be 'report' or 'fail'; got " + JSON.stringify(consistency.onLowCoverage));
22111
- if (consistency.onLowCoverage !== void 0 && consistency.minimumCoverageRatio === void 0 && consistency.runFactCoverageRatio === void 0) throw new ConfigError("orchestrate claimConsistency.onLowCoverage needs a declared floor; set minimumCoverageRatio or runFactCoverageRatio");
22433
+ if (consistency.onLowCoverage !== void 0 && consistency.minimumCoverageRatio === void 0 && consistency.runFactCoverageRatio === void 0 && consistency.coverageTarget === void 0) throw new ConfigError("orchestrate claimConsistency.onLowCoverage needs a declared floor; set minimumCoverageRatio, runFactCoverageRatio, or coverageTarget");
22112
22434
  if (consistency.judge !== void 0) {
22113
22435
  const judge = consistency.judge;
22114
22436
  if (typeof judge !== "object" || judge === null || Array.isArray(judge)) throw new ConfigError(`orchestrate claimConsistency.judge must be an object; got ${JSON.stringify(consistency.judge)}`);
@@ -23780,6 +24102,7 @@ function makeOrchestratorWorkflow(goal, opts) {
23780
24102
  const noteOpts = {
23781
24103
  role: "synthesize",
23782
24104
  result: "full",
24105
+ label: SYNTHESIS_NOTE_LABEL,
23783
24106
  tools: finishOnly,
23784
24107
  limits: spec.noteLimits ?? { maxTurns: 2 },
23785
24108
  ...spec.model === void 0 ? {} : { model: spec.model },
@@ -24116,7 +24439,8 @@ function makeOrchestratorWorkflow(goal, opts) {
24116
24439
  max: spec.max ?? 40,
24117
24440
  ...spec.maxPoolPerPair === void 0 ? {} : { maxPoolPerPair: spec.maxPoolPerPair },
24118
24441
  ...spec.maxExcerptChars === void 0 ? {} : { maxExcerptChars: spec.maxExcerptChars },
24119
- ...spec.critical === void 0 ? {} : { critical: spec.critical }
24442
+ ...spec.critical === void 0 ? {} : { critical: spec.critical },
24443
+ ...spec.coverageTarget === void 0 ? {} : { targetCoverageShare: spec.coverageTarget }
24120
24444
  });
24121
24445
  const runFold = spec.runFacts === true ? pairRunFactClaims(draftText, {
24122
24446
  text: `The run ${internals.runId} made ${String(factWires)} provider wire requests across ${String(poolChildren)} accepted children, with token totals ${String(factInput)} input and ${String(factOutput)} output (the run's own recorded execution facts; harness-observed, not production evidence). ${factRows.join(" ")}`,
@@ -24129,7 +24453,8 @@ function makeOrchestratorWorkflow(goal, opts) {
24129
24453
  ]
24130
24454
  }, {
24131
24455
  ...spec.runFactTerms === void 0 ? {} : { terms: spec.runFactTerms },
24132
- ...spec.maxExcerptChars === void 0 ? {} : { maxExcerptChars: spec.maxExcerptChars }
24456
+ ...spec.maxExcerptChars === void 0 ? {} : { maxExcerptChars: spec.maxExcerptChars },
24457
+ ...spec.coverageTarget === void 0 ? {} : { max: Number.MAX_SAFE_INTEGER }
24133
24458
  }) : void 0;
24134
24459
  const allPairs = runFold === void 0 ? fold.pairs : [...fold.pairs, ...runFold.pairs];
24135
24460
  const onFound = spec.onFound ?? "report";
@@ -24139,6 +24464,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24139
24464
  pairs: allPairs.length,
24140
24465
  truncated: fold.truncated,
24141
24466
  coveredCitingSentences: fold.coveredCitingSentences,
24467
+ ...spec.coverageTarget === void 0 ? {} : { coverageTarget: spec.coverageTarget },
24142
24468
  ...fold.criticalUncovered === void 0 ? {} : {
24143
24469
  criticalUncovered: fold.criticalUncovered,
24144
24470
  criticalUncoveredTotal: fold.criticalUncoveredTotal ?? 0
@@ -24149,14 +24475,15 @@ function makeOrchestratorWorkflow(goal, opts) {
24149
24475
  runFactCandidates: runFold.candidates
24150
24476
  },
24151
24477
  ...(() => {
24478
+ const coverageFloor = spec.minimumCoverageRatio ?? spec.coverageTarget;
24152
24479
  const coverageRatio = fold.draftCitingSentences === 0 ? 1 : fold.coveredCitingSentences / fold.draftCitingSentences;
24153
24480
  const runFactRatio = runFold === void 0 || runFold.candidates === 0 ? void 0 : runFold.pairs.length / runFold.candidates;
24154
- const belowCoverage = spec.minimumCoverageRatio !== void 0 && fold.draftCitingSentences > 0 && coverageRatio < spec.minimumCoverageRatio;
24481
+ const belowCoverage = coverageFloor !== void 0 && fold.draftCitingSentences > 0 && coverageRatio < coverageFloor;
24155
24482
  const belowRunFacts = spec.runFactCoverageRatio !== void 0 && runFactRatio !== void 0 && runFactRatio < spec.runFactCoverageRatio;
24156
24483
  if (!belowCoverage && !belowRunFacts) return {};
24157
24484
  return { lowCoverage: {
24158
24485
  coverageRatio,
24159
- ...spec.minimumCoverageRatio === void 0 ? {} : { coverageFloor: spec.minimumCoverageRatio },
24486
+ ...coverageFloor === void 0 ? {} : { coverageFloor },
24160
24487
  ...runFactRatio === void 0 ? {} : { runFactRatio },
24161
24488
  ...spec.runFactCoverageRatio === void 0 ? {} : { runFactFloor: spec.runFactCoverageRatio }
24162
24489
  } };
@@ -24653,6 +24980,7 @@ function makeOrchestratorWorkflow(goal, opts) {
24653
24980
  const synthesisOpts = {
24654
24981
  role: "synthesize",
24655
24982
  result: "full",
24983
+ label: FINAL_COMPOSITION_LABEL,
24656
24984
  tools: synthesisTools,
24657
24985
  [kExposureWait]: true,
24658
24986
  limits: spec.limits ?? { maxTurns: 4 },
@@ -28411,4 +28739,4 @@ function createSandboxBridge(ctx, options) {
28411
28739
  };
28412
28740
  }
28413
28741
  //#endregion
28414
- 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, 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, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/core",
3
- "version": "1.231.0",
3
+ "version": "1.232.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",