@rulvar/core 1.238.0 → 1.239.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 +223 -4
- package/dist/index.js +208 -23
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5764,10 +5764,13 @@ interface RunAgentOptions<S extends SchemaSpec = JsonSchema> {
|
|
|
5764
5764
|
* before one existed; with the seam the crash window shrinks to the
|
|
5765
5765
|
* single in-flight turn. Restored records (a checkpoint reboot)
|
|
5766
5766
|
* never re-emit: they were journaled by the segment that minted
|
|
5767
|
-
* them.
|
|
5767
|
+
* them. A returned promise is AWAITED before the loop proceeds
|
|
5768
|
+
* (RV3405, the awaited receipt posture): the caller decides the
|
|
5769
|
+
* durability, the loop honors it; a void return keeps the RV2008
|
|
5770
|
+
* fire and forget byte for byte.
|
|
5768
5771
|
*/
|
|
5769
5772
|
billing?: {
|
|
5770
|
-
onProviderCall: (record: ProviderCallRecord) => void
|
|
5773
|
+
onProviderCall: (record: ProviderCallRecord) => void | Promise<void>;
|
|
5771
5774
|
};
|
|
5772
5775
|
events?: RuntimeEventSink;
|
|
5773
5776
|
transcript?: {
|
|
@@ -7663,6 +7666,20 @@ interface EngineDefaults {
|
|
|
7663
7666
|
* identity, journals, or cassette keys.
|
|
7664
7667
|
*/
|
|
7665
7668
|
cache?: CachePolicy;
|
|
7669
|
+
/**
|
|
7670
|
+
* The receipt posture of the incremental billing seam (RV3405).
|
|
7671
|
+
* RV2008 journals every ProviderCallRecord the moment its wire call
|
|
7672
|
+
* settles, but the append is fire and forget: the loop never blocks
|
|
7673
|
+
* its dispatch path on journal IO, so the receipt most likely to
|
|
7674
|
+
* lose the race with a crash is exactly the wire being paid for at
|
|
7675
|
+
* the moment of death. `'awaited'` makes the loop await each receipt
|
|
7676
|
+
* append before the turn proceeds (the RV601 intent before effect
|
|
7677
|
+
* precedent), buying durable payment evidence for one journal IO
|
|
7678
|
+
* await per wire call; a failed append still degrades loudly to the
|
|
7679
|
+
* terminal lane (the RV2008 warning), never fails the run. Default
|
|
7680
|
+
* `'async'`: byte identical to RV2008.
|
|
7681
|
+
*/
|
|
7682
|
+
billingReceipts?: "async" | "awaited";
|
|
7666
7683
|
}
|
|
7667
7684
|
interface BudgetDefaults {
|
|
7668
7685
|
/** Last resort of the admission reserve formula; default 0.50. */
|
|
@@ -11773,7 +11790,8 @@ interface RunInternals {
|
|
|
11773
11790
|
toolsets?: Record<string, ToolsOption>; /** Registered mechanical gate profiles (M7-T10). */
|
|
11774
11791
|
gates?: Record<string, MechanicalGateProfile>; /** Engine-wide admission countTokens policy (RV1804); default 'allow'. */
|
|
11775
11792
|
countTokens?: "allow" | "deny"; /** The engine-wide prompt-cache policy (RV2006); profile and call opts win. */
|
|
11776
|
-
cache?: CachePolicy;
|
|
11793
|
+
cache?: CachePolicy; /** The receipt posture of the billing seam (RV3405); default 'async'. */
|
|
11794
|
+
billingReceipts?: "async" | "awaited";
|
|
11777
11795
|
};
|
|
11778
11796
|
/** Telemetry compat posture (RV1810). */
|
|
11779
11797
|
telemetry?: {
|
|
@@ -13529,6 +13547,60 @@ interface JournaledCriticalPath {
|
|
|
13529
13547
|
finalCompositionMs?: number;
|
|
13530
13548
|
/** Synthesis that IS the claim judge; same all-or-nothing condition. */
|
|
13531
13549
|
semanticJudgeMs?: number;
|
|
13550
|
+
/**
|
|
13551
|
+
* The stage split of `semanticJudgeMs` (RV3404), same all-or-nothing
|
|
13552
|
+
* condition: the draft pass is the exact judge label and every
|
|
13553
|
+
* suffixed variant is a post draft pass over the composed document
|
|
13554
|
+
* (the final pass and the repair round's re-judge both dispatch
|
|
13555
|
+
* `-final`, RV2509/RV3307). One classifier decides on both surfaces:
|
|
13556
|
+
* {@link claimJudgeStageOf}.
|
|
13557
|
+
*/
|
|
13558
|
+
draftJudgeMs?: number;
|
|
13559
|
+
/** The post draft half of the split; same condition. */
|
|
13560
|
+
finalJudgeMs?: number;
|
|
13561
|
+
/**
|
|
13562
|
+
* Settled synthesize spans counted by side, same condition (RV3404):
|
|
13563
|
+
* `compositionSpans: 2` in an archived journal is the legible
|
|
13564
|
+
* signature of the bounded repair round (RV3307), readable years
|
|
13565
|
+
* after the process that paid for it exited.
|
|
13566
|
+
*/
|
|
13567
|
+
compositionSpans?: number;
|
|
13568
|
+
/** Settled judge-side synthesize spans, counted; same condition. */
|
|
13569
|
+
judgeSpans?: number;
|
|
13570
|
+
/**
|
|
13571
|
+
* The window itemization a journal CAN answer (RV3404); present
|
|
13572
|
+
* exactly when `postFanInMs` is.
|
|
13573
|
+
*/
|
|
13574
|
+
postFanIn?: JournaledPostFanIn;
|
|
13575
|
+
}
|
|
13576
|
+
/**
|
|
13577
|
+
* The synthesis half of the RV710 decomposition, asked of a journal
|
|
13578
|
+
* (RV3404). The live breakdown also itemizes the coordinator's model
|
|
13579
|
+
* and tool time inside the window; a journal cannot: a terminal agent
|
|
13580
|
+
* entry spans the WHOLE invocation, and the coordinator's per turn
|
|
13581
|
+
* stamps died with the process that emitted them. So this block claims
|
|
13582
|
+
* exactly what the stamps prove: how much of the window settled
|
|
13583
|
+
* synthesize spans cover, the split of that cover when every span is
|
|
13584
|
+
* labelled, and how much of the window NO settled synthesize span
|
|
13585
|
+
* accounts for. `unaccountedMs` is a superset of the live `residueMs`
|
|
13586
|
+
* by construction (the coordinator's own tail time lives in it here),
|
|
13587
|
+
* which is why it refuses to share the name.
|
|
13588
|
+
*/
|
|
13589
|
+
interface JournaledPostFanIn {
|
|
13590
|
+
/** Union of settled synthesize spans clipped to the window. */
|
|
13591
|
+
synthesisCoveredMs: number;
|
|
13592
|
+
/**
|
|
13593
|
+
* The composition half of the covered spans, clipped; present under
|
|
13594
|
+
* the same all-or-nothing labelling condition as the top level
|
|
13595
|
+
* split, and equal to the live breakdown's reading of the same run.
|
|
13596
|
+
*/
|
|
13597
|
+
finalCompositionMs?: number;
|
|
13598
|
+
/** The judge half, clipped; same condition. */
|
|
13599
|
+
semanticJudgeMs?: number;
|
|
13600
|
+
/** `postFanInMs` minus `synthesisCoveredMs`, floored at zero. */
|
|
13601
|
+
unaccountedMs: number;
|
|
13602
|
+
/** `unaccountedMs / postFanInMs` when the window is positive. */
|
|
13603
|
+
unaccountedShare?: number;
|
|
13532
13604
|
}
|
|
13533
13605
|
/**
|
|
13534
13606
|
* Fold a run's critical path out of its journal.
|
|
@@ -14061,6 +14133,41 @@ interface InvoiceExport {
|
|
|
14061
14133
|
responseId?: string;
|
|
14062
14134
|
}>;
|
|
14063
14135
|
};
|
|
14136
|
+
/**
|
|
14137
|
+
* The orphaned receipt lane (RV3405): incremental provider-call rows
|
|
14138
|
+
* of agents whose TERMINAL entry does not cover them. The window is
|
|
14139
|
+
* real: the loop journals a receipt as each wire settles (RV2008),
|
|
14140
|
+
* the turn checkpoint lands later, and a crash between the two
|
|
14141
|
+
* resumes from a checkpoint that never saw the paid wire, so the
|
|
14142
|
+
* settled terminal's record set forgets the payment while the
|
|
14143
|
+
* receipt lane remembers it. Real money, priced and summed apart
|
|
14144
|
+
* from the settled totals exactly like `unsettled` (run_settle stays
|
|
14145
|
+
* the billing boundary); this lane is why a provider statement
|
|
14146
|
+
* billing that wire is explainable to the cent instead of reading as
|
|
14147
|
+
* a foreign row. Coverage is decided by response id when either side
|
|
14148
|
+
* carries one, else by the full (ordinal, servedBy, attempt,
|
|
14149
|
+
* outcome) coordinate plus byte equal usage: after a resume the
|
|
14150
|
+
* redispatched wire REUSES the ordinal, and reading the replacement
|
|
14151
|
+
* as the orphan would silently absorb the double payment the resume
|
|
14152
|
+
* honestly made. Present only when such rows exist; a journal
|
|
14153
|
+
* without a mid turn crash never carries it.
|
|
14154
|
+
*/
|
|
14155
|
+
orphanedReceipts?: {
|
|
14156
|
+
usd: number;
|
|
14157
|
+
wireRequests: number;
|
|
14158
|
+
rows: Array<{
|
|
14159
|
+
agentRef: number;
|
|
14160
|
+
scope: string;
|
|
14161
|
+
ordinal: number;
|
|
14162
|
+
servedBy: ModelRef;
|
|
14163
|
+
role: string;
|
|
14164
|
+
attempt: number;
|
|
14165
|
+
outcome: string;
|
|
14166
|
+
usage: Usage;
|
|
14167
|
+
usd?: number;
|
|
14168
|
+
responseId?: string;
|
|
14169
|
+
}>;
|
|
14170
|
+
};
|
|
14064
14171
|
}
|
|
14065
14172
|
/**
|
|
14066
14173
|
* The pure invoice fold. Pass the same entries and price table you
|
|
@@ -14243,6 +14350,23 @@ interface StatementReconciliation {
|
|
|
14243
14350
|
* alone would have closed money against it.
|
|
14244
14351
|
*/
|
|
14245
14352
|
monetarySettleable: boolean;
|
|
14353
|
+
/**
|
|
14354
|
+
* Statement rows explained by the invoice's receipt lanes (RV3405):
|
|
14355
|
+
* per request export rows whose response id matches an `unsettled`
|
|
14356
|
+
* or `orphanedReceipts` row of the invoice, i.e. OUR paid wires that
|
|
14357
|
+
* the settled rows do not carry (a crash before settle, a terminal
|
|
14358
|
+
* whose record set forgot the payment). Counted APART on purpose:
|
|
14359
|
+
* their dollars never enter the totals, the coverage, `settleable`
|
|
14360
|
+
* or `monetarySettleable`, because money the run did not settle must
|
|
14361
|
+
* not close; they exist so the statement drift is explainable to the
|
|
14362
|
+
* cent instead of reading as foreign rows. Present only when the
|
|
14363
|
+
* caller passed the lanes and at least one row matched.
|
|
14364
|
+
*/
|
|
14365
|
+
receiptMatchedRows?: number;
|
|
14366
|
+
/** Statement side dollars over those rows, when the export claims any. */
|
|
14367
|
+
receiptMatchedUsd?: number;
|
|
14368
|
+
/** First matched receipt ids (at most 20). */
|
|
14369
|
+
receiptIdSample?: string[];
|
|
14246
14370
|
}
|
|
14247
14371
|
/**
|
|
14248
14372
|
* Reconciles the invoice against a normalized provider export. Pure and
|
|
@@ -14261,6 +14385,24 @@ interface StatementReconciliation {
|
|
|
14261
14385
|
*/
|
|
14262
14386
|
declare function reconcileStatement(invoice: {
|
|
14263
14387
|
rows: readonly InvoiceRow[];
|
|
14388
|
+
/**
|
|
14389
|
+
* The invoice's receipt lanes (RV3405), passed straight off the
|
|
14390
|
+
* InvoiceExport when the caller wants statement rows for crashed
|
|
14391
|
+
* or terminal forgotten wires EXPLAINED instead of counted
|
|
14392
|
+
* foreign. Requests mode only (the join is by response id), and
|
|
14393
|
+
* strictly opt in: a bare `{ rows }` invoice reads byte for byte
|
|
14394
|
+
* as before.
|
|
14395
|
+
*/
|
|
14396
|
+
unsettled?: {
|
|
14397
|
+
rows: ReadonlyArray<{
|
|
14398
|
+
responseId?: string;
|
|
14399
|
+
}>;
|
|
14400
|
+
};
|
|
14401
|
+
orphanedReceipts?: {
|
|
14402
|
+
rows: ReadonlyArray<{
|
|
14403
|
+
responseId?: string;
|
|
14404
|
+
}>;
|
|
14405
|
+
};
|
|
14264
14406
|
}, statement: ProviderStatement, options: ReconcileStatementOptions): StatementReconciliation;
|
|
14265
14407
|
/**
|
|
14266
14408
|
* Column mapping for {@link statementFromRows}: each field names the
|
|
@@ -14510,6 +14652,29 @@ interface PreflightOrchestratorSpec {
|
|
|
14510
14652
|
judge?: {
|
|
14511
14653
|
estCost?: number;
|
|
14512
14654
|
};
|
|
14655
|
+
/**
|
|
14656
|
+
* Mirrors OrchestrateClaimConsistency.onFound (RV3402). Declaring
|
|
14657
|
+
* `'repair'` prices the bounded post judge round (RV3307) into the
|
|
14658
|
+
* static arithmetic: the working room adds one more judge pass and
|
|
14659
|
+
* one more composition (priced at the declared
|
|
14660
|
+
* `budget.synthesisReserveUsd`, the host's own estimate of one
|
|
14661
|
+
* composition), and the tail spawn count adds the round's two
|
|
14662
|
+
* invocations. The 2026-08-12 comparison shape motivates the
|
|
14663
|
+
* polarity: a ceiling sized to the exact plan converts a triggered
|
|
14664
|
+
* repair into the typed decline, and preflight should say so
|
|
14665
|
+
* before the first wire, not the journal after the last. Pairings
|
|
14666
|
+
* orchestrate() refuses at intake (repair at the draft stage,
|
|
14667
|
+
* repair without a synthesis, carry at the final stage, RV3301)
|
|
14668
|
+
* surface as error findings: the run would refuse to start.
|
|
14669
|
+
*/
|
|
14670
|
+
onFound?: "report" | "carry" | "fail" | "repair";
|
|
14671
|
+
/**
|
|
14672
|
+
* Mirrors OrchestrateClaimConsistency.stage (RV3402): `'both'`
|
|
14673
|
+
* dispatches the judge twice at worst, and the working room and
|
|
14674
|
+
* tail spawn arithmetic price passes, not declarations. Absent
|
|
14675
|
+
* keeps the historical one pass reading byte for byte.
|
|
14676
|
+
*/
|
|
14677
|
+
stage?: "draft" | "final" | "both";
|
|
14513
14678
|
};
|
|
14514
14679
|
/**
|
|
14515
14680
|
* The `reserve-line-headroom` threshold in coordination turn floors
|
|
@@ -15378,6 +15543,26 @@ interface CriticalPath {
|
|
|
15378
15543
|
* included, summed (RV1604).
|
|
15379
15544
|
*/
|
|
15380
15545
|
semanticJudgeMs: number;
|
|
15546
|
+
/**
|
|
15547
|
+
* The stage split of `semanticJudgeMs` (RV3404): the draft pass
|
|
15548
|
+
* dispatches under the exact {@link CLAIM_JUDGE_LABEL} and every
|
|
15549
|
+
* suffixed variant is a post draft pass (today the final pass and
|
|
15550
|
+
* the repair round's re-judge, both `-final`, RV2509/RV3307). Always
|
|
15551
|
+
* the exact partition: `draftJudgeMs + finalJudgeMs` equals
|
|
15552
|
+
* `semanticJudgeMs`.
|
|
15553
|
+
*/
|
|
15554
|
+
draftJudgeMs: number;
|
|
15555
|
+
/** The post draft half of the split; see `draftJudgeMs`. */
|
|
15556
|
+
finalJudgeMs: number;
|
|
15557
|
+
/**
|
|
15558
|
+
* Completed composition-side synthesize spans, counted (RV3404): two
|
|
15559
|
+
* compositions on one run is the legible signature of the bounded
|
|
15560
|
+
* repair round (RV3307), and a count survives where milliseconds
|
|
15561
|
+
* invite guessing.
|
|
15562
|
+
*/
|
|
15563
|
+
compositionSpans: number;
|
|
15564
|
+
/** Completed judge-side synthesize spans, counted (RV3404). */
|
|
15565
|
+
judgeSpans: number;
|
|
15381
15566
|
/** postFanInMs / runWallMs when both are defined and the wall is > 0. */
|
|
15382
15567
|
postFanInShare?: number;
|
|
15383
15568
|
/** synthesisMs / runWallMs under the same conditions. */
|
|
@@ -15474,6 +15659,40 @@ interface PostFanInBreakdown {
|
|
|
15474
15659
|
*/
|
|
15475
15660
|
declare const CLAIM_JUDGE_LABEL = "claim-consistency-judge";
|
|
15476
15661
|
/**
|
|
15662
|
+
* Whether a synthesize span's label names a claim-consistency judge
|
|
15663
|
+
* invocation: the exact {@link CLAIM_JUDGE_LABEL}, or a suffixed
|
|
15664
|
+
* variant of it (the final pass dispatches under
|
|
15665
|
+
* `claim-consistency-judge-final` since RV2509 so the two passes of
|
|
15666
|
+
* `stage: 'both'` stay separable). BOTH reducers must classify through
|
|
15667
|
+
* this one predicate (RV3302): the live fold compared the label for
|
|
15668
|
+
* exact equality while the journal fold accepted the suffix, and the
|
|
15669
|
+
* 2026-08-12 comparison run reported semanticJudgeMs 0 with the whole
|
|
15670
|
+
* 272923 ms window read as final composition on the live surface
|
|
15671
|
+
* while the journal fold correctly split 224864 against 48059.
|
|
15672
|
+
*/
|
|
15673
|
+
declare function isClaimJudgeLabel(label: string | undefined): boolean;
|
|
15674
|
+
/**
|
|
15675
|
+
* Which pass a claim-consistency judge label names (RV3404): the exact
|
|
15676
|
+
* {@link CLAIM_JUDGE_LABEL} is the draft pass, and every suffixed
|
|
15677
|
+
* variant is a post draft pass over the composed document (today the
|
|
15678
|
+
* final pass and the repair round's re-judge, both dispatching under
|
|
15679
|
+
* `-final`, RV2509/RV3307). `undefined` for every other label. One
|
|
15680
|
+
* classifier for both reducers, the RV3302 doctrine extended from the
|
|
15681
|
+
* judge predicate to the stage: the split must never read differently
|
|
15682
|
+
* off the live stream and off the journal of one run.
|
|
15683
|
+
*/
|
|
15684
|
+
declare function claimJudgeStageOf(label: string | undefined): "draft" | "final" | undefined;
|
|
15685
|
+
/**
|
|
15686
|
+
* Total length of the union of possibly overlapping intervals, exported
|
|
15687
|
+
* (RV3404) so the journal fold computes its window coverage through the
|
|
15688
|
+
* SAME arithmetic the live RV710 decomposition uses, never a sibling
|
|
15689
|
+
* implementation that can drift.
|
|
15690
|
+
*/
|
|
15691
|
+
declare function unionOfIntervalsMs(intervals: ReadonlyArray<{
|
|
15692
|
+
from: number;
|
|
15693
|
+
to: number;
|
|
15694
|
+
}>): number;
|
|
15695
|
+
/**
|
|
15477
15696
|
* The label the final synthesis (composition) invocation dispatches
|
|
15478
15697
|
* under (RV2901). The engine labelling its OWN dispatches is what lets
|
|
15479
15698
|
* `criticalPathFromJournal` split the synthesize bucket offline: the
|
|
@@ -15564,4 +15783,4 @@ interface SandboxBridge {
|
|
|
15564
15783
|
declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
|
|
15565
15784
|
declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
|
|
15566
15785
|
//#endregion
|
|
15567
|
-
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, JournalIntegrityError, 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, OutputContractManifest, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, PersistedTerminalRefusal, PersistedTerminalResult, type PhaseRow, PhaseTarget, PilotAgentProfileOptions, PilotAgentProfileResult, type PinnedPricingSegment, PipelineCollected, PipelineOpts, PlanInvariantError, type PostFanInBreakdown, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedComponent, PricedComponents, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, ProviderStatement, QUOTA_WINDOW_MS, QualityFloors, QuotaCounters, type QuotaDecision, type QuotaEstimate, type QuotaLimiter, type QuotaReservationRequest, QuotaRule, QuotaWindowSnapshot, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, RateLimitObservation, ReconcileOptions, ReconcileResult, ReconcileStatementOptions, RefEntryAppender, RefEntryClassification, RefusalInfo, RejectedFinishCandidate, RepeatedClaim, ReplayDisposition, ReplayMode, ReplayPlanHashMismatch, Replayer, RepositoryResearchToolset, RepositoryResearchToolsetOptions, ResearchAgentProfileOptions, ResearchAgentProfileResult, ResearchEvidenceEntry, ResolutionArbiter, ResolutionAttempt, ResolutionBy, ResolutionFold, ResolutionLayer, ResolutionOutcome, ResolutionPayload, ResolvedInvocation, ResolvedToolset, ResumeHandle, ResumeOptions, ResumePreview, ResumeReport, RetryClass, RetryPolicy, ReuseConfig, RiskRuleValue, Role, RulvarError, RulvarErrorCode, RunAgentOptions, RunAuditVerdict, RunBudget, RunEventSink, RunExport, RunFactPairOptions, RunFactPairsFold, RunFactsSheet, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, SecretMasker, SectionMatchMode, SectionPatternEntry, SemanticPassSummary, SemanticPassesSummary, Semaphore, SerializationHook, Settled, SettlementError, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StatementCategoryRow, StatementColumnMap, StatementCoverage, StatementReconciliation, StatementRequestRow, StepIdentityInput, type StreamHooks, StructuredOutputTier, SupersededError, SuspendedAppend, SuspensionState, SynthesisCandidateFailure, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, TerminalTelemetryScopes, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolAuthority, type ToolBudgetSummary, ToolCalibrationExclusion, ToolCalibrationReport, ToolCalibrationRow, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, type ToolExecutorProvider, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, ToolsetAttestation, TranscriptSerializationHook, type TranscriptStore, TriggerClass, TtlState, Usage, UsageLimits, UsageSlice, VerifiedRecommendation, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, WakeBudgetBlock, WakeDigest, WakeTrigger, WireError, Workflow, WorkflowCallOpts, type WorkflowEvent, type WorkflowEventBody, WorkflowRegistry, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, manifestValidators, 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, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
|
|
15786
|
+
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, JournalIntegrityError, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, type JournalPricingSnapshot, JournalSealedError, JournalSerializationContext, JournalSerializationHook, type JournalStore, JournaledChild, JournaledChildRoster, JournaledCriticalPath, JournaledPostFanIn, 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, OutputContractManifest, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, PersistedTerminalRefusal, PersistedTerminalResult, type PhaseRow, PhaseTarget, PilotAgentProfileOptions, PilotAgentProfileResult, type PinnedPricingSegment, PipelineCollected, PipelineOpts, PlanInvariantError, type PostFanInBreakdown, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedComponent, PricedComponents, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, ProviderStatement, QUOTA_WINDOW_MS, QualityFloors, QuotaCounters, type QuotaDecision, type QuotaEstimate, type QuotaLimiter, type QuotaReservationRequest, QuotaRule, QuotaWindowSnapshot, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, RateLimitObservation, ReconcileOptions, ReconcileResult, ReconcileStatementOptions, RefEntryAppender, RefEntryClassification, RefusalInfo, RejectedFinishCandidate, RepeatedClaim, ReplayDisposition, ReplayMode, ReplayPlanHashMismatch, Replayer, RepositoryResearchToolset, RepositoryResearchToolsetOptions, ResearchAgentProfileOptions, ResearchAgentProfileResult, ResearchEvidenceEntry, ResolutionArbiter, ResolutionAttempt, ResolutionBy, ResolutionFold, ResolutionLayer, ResolutionOutcome, ResolutionPayload, ResolvedInvocation, ResolvedToolset, ResumeHandle, ResumeOptions, ResumePreview, ResumeReport, RetryClass, RetryPolicy, ReuseConfig, RiskRuleValue, Role, RulvarError, RulvarErrorCode, RunAgentOptions, RunAuditVerdict, RunBudget, RunEventSink, RunExport, RunFactPairOptions, RunFactPairsFold, RunFactsSheet, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, SecretMasker, SectionMatchMode, SectionPatternEntry, SemanticPassSummary, SemanticPassesSummary, Semaphore, SerializationHook, Settled, SettlementError, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StatementCategoryRow, StatementColumnMap, StatementCoverage, StatementReconciliation, StatementRequestRow, StepIdentityInput, type StreamHooks, StructuredOutputTier, SupersededError, SuspendedAppend, SuspensionState, SynthesisCandidateFailure, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, TerminalTelemetryScopes, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolAuthority, type ToolBudgetSummary, ToolCalibrationExclusion, ToolCalibrationReport, ToolCalibrationRow, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, type ToolExecutorProvider, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, ToolsetAttestation, TranscriptSerializationHook, type TranscriptStore, TriggerClass, TtlState, Usage, UsageLimits, UsageSlice, VerifiedRecommendation, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, WakeBudgetBlock, WakeDigest, WakeTrigger, WireError, Workflow, WorkflowCallOpts, type WorkflowEvent, type WorkflowEventBody, WorkflowRegistry, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimJudgeStageOf, 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, isClaimJudgeLabel, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, manifestValidators, 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, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, unionOfIntervalsMs, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
|
package/dist/index.js
CHANGED
|
@@ -9342,7 +9342,30 @@ const CLAIM_JUDGE_LABEL = "claim-consistency-judge";
|
|
|
9342
9342
|
* while the journal fold correctly split 224864 against 48059.
|
|
9343
9343
|
*/
|
|
9344
9344
|
function isClaimJudgeLabel(label) {
|
|
9345
|
-
return
|
|
9345
|
+
return claimJudgeStageOf(label) !== void 0;
|
|
9346
|
+
}
|
|
9347
|
+
/**
|
|
9348
|
+
* Which pass a claim-consistency judge label names (RV3404): the exact
|
|
9349
|
+
* {@link CLAIM_JUDGE_LABEL} is the draft pass, and every suffixed
|
|
9350
|
+
* variant is a post draft pass over the composed document (today the
|
|
9351
|
+
* final pass and the repair round's re-judge, both dispatching under
|
|
9352
|
+
* `-final`, RV2509/RV3307). `undefined` for every other label. One
|
|
9353
|
+
* classifier for both reducers, the RV3302 doctrine extended from the
|
|
9354
|
+
* judge predicate to the stage: the split must never read differently
|
|
9355
|
+
* off the live stream and off the journal of one run.
|
|
9356
|
+
*/
|
|
9357
|
+
function claimJudgeStageOf(label) {
|
|
9358
|
+
if (label === "claim-consistency-judge") return "draft";
|
|
9359
|
+
return label?.startsWith(`claim-consistency-judge-`) ?? false ? "final" : void 0;
|
|
9360
|
+
}
|
|
9361
|
+
/**
|
|
9362
|
+
* Total length of the union of possibly overlapping intervals, exported
|
|
9363
|
+
* (RV3404) so the journal fold computes its window coverage through the
|
|
9364
|
+
* SAME arithmetic the live RV710 decomposition uses, never a sibling
|
|
9365
|
+
* implementation that can drift.
|
|
9366
|
+
*/
|
|
9367
|
+
function unionOfIntervalsMs(intervals) {
|
|
9368
|
+
return unionLength([...intervals]);
|
|
9346
9369
|
}
|
|
9347
9370
|
/**
|
|
9348
9371
|
* The label the final synthesis (composition) invocation dispatches
|
|
@@ -9385,6 +9408,10 @@ function reduceCriticalPath(events) {
|
|
|
9385
9408
|
let synthesisMs = 0;
|
|
9386
9409
|
let finalCompositionMs = 0;
|
|
9387
9410
|
let semanticJudgeMs = 0;
|
|
9411
|
+
let draftJudgeMs = 0;
|
|
9412
|
+
let finalJudgeMs = 0;
|
|
9413
|
+
let compositionSpans = 0;
|
|
9414
|
+
let judgeSpans = 0;
|
|
9388
9415
|
const coordinationModel = [];
|
|
9389
9416
|
const coordinationTools = [];
|
|
9390
9417
|
const synthesisSpans = [];
|
|
@@ -9425,10 +9452,18 @@ function reduceCriticalPath(events) {
|
|
|
9425
9452
|
if (started === void 0) break;
|
|
9426
9453
|
if (started.role === "synthesize") {
|
|
9427
9454
|
const wall = Math.max(0, at - started.at);
|
|
9428
|
-
const
|
|
9455
|
+
const stage = claimJudgeStageOf(started.label);
|
|
9456
|
+
const judge = stage !== void 0;
|
|
9429
9457
|
synthesisMs += wall;
|
|
9430
|
-
if (judge)
|
|
9431
|
-
|
|
9458
|
+
if (judge) {
|
|
9459
|
+
semanticJudgeMs += wall;
|
|
9460
|
+
judgeSpans += 1;
|
|
9461
|
+
if (stage === "draft") draftJudgeMs += wall;
|
|
9462
|
+
else finalJudgeMs += wall;
|
|
9463
|
+
} else {
|
|
9464
|
+
finalCompositionMs += wall;
|
|
9465
|
+
compositionSpans += 1;
|
|
9466
|
+
}
|
|
9432
9467
|
synthesisSpans.push({
|
|
9433
9468
|
from: started.at,
|
|
9434
9469
|
to: at,
|
|
@@ -9447,6 +9482,10 @@ function reduceCriticalPath(events) {
|
|
|
9447
9482
|
synthesisMs,
|
|
9448
9483
|
finalCompositionMs,
|
|
9449
9484
|
semanticJudgeMs,
|
|
9485
|
+
draftJudgeMs,
|
|
9486
|
+
finalJudgeMs,
|
|
9487
|
+
compositionSpans,
|
|
9488
|
+
judgeSpans,
|
|
9450
9489
|
workerSpans
|
|
9451
9490
|
};
|
|
9452
9491
|
if (runStart !== void 0 && runEnd !== void 0) path.runWallMs = Math.max(0, runEnd - runStart);
|
|
@@ -9540,8 +9579,13 @@ function criticalPathFromJournal(entries) {
|
|
|
9540
9579
|
let synthesisMs = 0;
|
|
9541
9580
|
let finalCompositionMs = 0;
|
|
9542
9581
|
let semanticJudgeMs = 0;
|
|
9582
|
+
let draftJudgeMs = 0;
|
|
9583
|
+
let finalJudgeMs = 0;
|
|
9584
|
+
let compositionSpans = 0;
|
|
9585
|
+
let judgeSpans = 0;
|
|
9543
9586
|
let labelledSynthesis = false;
|
|
9544
9587
|
let unlabelledSynthesis = false;
|
|
9588
|
+
const synthSpans = [];
|
|
9545
9589
|
for (const entry of ordered) {
|
|
9546
9590
|
const startedAt = parse$1(entry.startedAt);
|
|
9547
9591
|
const endedAt = parse$1(entry.endedAt);
|
|
@@ -9566,11 +9610,28 @@ function criticalPathFromJournal(entries) {
|
|
|
9566
9610
|
const label = entry.costAttribution?.label;
|
|
9567
9611
|
if (label === void 0) {
|
|
9568
9612
|
unlabelledSynthesis = true;
|
|
9613
|
+
synthSpans.push({
|
|
9614
|
+
from: startedAt,
|
|
9615
|
+
to: endedAt
|
|
9616
|
+
});
|
|
9569
9617
|
continue;
|
|
9570
9618
|
}
|
|
9571
9619
|
labelledSynthesis = true;
|
|
9572
|
-
|
|
9573
|
-
|
|
9620
|
+
const stage = claimJudgeStageOf(label);
|
|
9621
|
+
if (stage !== void 0) {
|
|
9622
|
+
semanticJudgeMs += wall;
|
|
9623
|
+
judgeSpans += 1;
|
|
9624
|
+
if (stage === "draft") draftJudgeMs += wall;
|
|
9625
|
+
else finalJudgeMs += wall;
|
|
9626
|
+
} else {
|
|
9627
|
+
finalCompositionMs += wall;
|
|
9628
|
+
compositionSpans += 1;
|
|
9629
|
+
}
|
|
9630
|
+
synthSpans.push({
|
|
9631
|
+
from: startedAt,
|
|
9632
|
+
to: endedAt,
|
|
9633
|
+
judge: stage !== void 0
|
|
9634
|
+
});
|
|
9574
9635
|
}
|
|
9575
9636
|
const segments = logicalRunTelemetry(ordered).segments;
|
|
9576
9637
|
const path = {
|
|
@@ -9579,13 +9640,49 @@ function criticalPathFromJournal(entries) {
|
|
|
9579
9640
|
unclassifiedSpans,
|
|
9580
9641
|
segments
|
|
9581
9642
|
};
|
|
9582
|
-
|
|
9643
|
+
const splitLegible = labelledSynthesis && !unlabelledSynthesis;
|
|
9644
|
+
if (splitLegible) {
|
|
9583
9645
|
path.finalCompositionMs = finalCompositionMs;
|
|
9584
9646
|
path.semanticJudgeMs = semanticJudgeMs;
|
|
9647
|
+
path.draftJudgeMs = draftJudgeMs;
|
|
9648
|
+
path.finalJudgeMs = finalJudgeMs;
|
|
9649
|
+
path.compositionSpans = compositionSpans;
|
|
9650
|
+
path.judgeSpans = judgeSpans;
|
|
9585
9651
|
}
|
|
9586
9652
|
if (segments > 1 || runStart === void 0 || runEnd === void 0) return path;
|
|
9587
9653
|
path.runWallMs = Math.max(0, runEnd - runStart);
|
|
9588
|
-
if (lastWorkerEnd !== void 0)
|
|
9654
|
+
if (lastWorkerEnd !== void 0) {
|
|
9655
|
+
path.postFanInMs = Math.max(0, runEnd - lastWorkerEnd);
|
|
9656
|
+
const windowFrom = Math.min(lastWorkerEnd, runEnd);
|
|
9657
|
+
const windowTo = runEnd;
|
|
9658
|
+
const clipped = [];
|
|
9659
|
+
for (const span of synthSpans) {
|
|
9660
|
+
if (span.to < windowFrom || span.from > windowTo) continue;
|
|
9661
|
+
clipped.push({
|
|
9662
|
+
from: Math.max(span.from, windowFrom),
|
|
9663
|
+
to: Math.min(span.to, windowTo),
|
|
9664
|
+
...span.judge === void 0 ? {} : { judge: span.judge }
|
|
9665
|
+
});
|
|
9666
|
+
}
|
|
9667
|
+
const synthesisCoveredMs = unionOfIntervalsMs(clipped);
|
|
9668
|
+
const block = {
|
|
9669
|
+
synthesisCoveredMs,
|
|
9670
|
+
unaccountedMs: Math.max(0, path.postFanInMs - synthesisCoveredMs)
|
|
9671
|
+
};
|
|
9672
|
+
if (splitLegible) {
|
|
9673
|
+
let judgeClippedMs = 0;
|
|
9674
|
+
let compositionClippedMs = 0;
|
|
9675
|
+
for (const span of clipped) {
|
|
9676
|
+
const wall = span.to - span.from;
|
|
9677
|
+
if (span.judge === true) judgeClippedMs += wall;
|
|
9678
|
+
else compositionClippedMs += wall;
|
|
9679
|
+
}
|
|
9680
|
+
block.finalCompositionMs = compositionClippedMs;
|
|
9681
|
+
block.semanticJudgeMs = judgeClippedMs;
|
|
9682
|
+
}
|
|
9683
|
+
if (path.postFanInMs > 0) block.unaccountedShare = block.unaccountedMs / path.postFanInMs;
|
|
9684
|
+
path.postFanIn = block;
|
|
9685
|
+
}
|
|
9589
9686
|
if (path.runWallMs > 0) {
|
|
9590
9687
|
if (path.postFanInMs !== void 0) path.postFanInShare = path.postFanInMs / path.runWallMs;
|
|
9591
9688
|
path.synthesisShare = synthesisMs / path.runWallMs;
|
|
@@ -13498,7 +13595,10 @@ async function runAgent(options) {
|
|
|
13498
13595
|
if (outcome.aborted !== void 0) record.aborted = outcome.aborted;
|
|
13499
13596
|
else if (outcome.wireError !== void 0) record.errorCode = outcome.wireError.code;
|
|
13500
13597
|
providerCalls.push(record);
|
|
13501
|
-
|
|
13598
|
+
{
|
|
13599
|
+
const receipt = options.billing?.onProviderCall(record);
|
|
13600
|
+
if (receipt !== void 0) await receipt;
|
|
13601
|
+
}
|
|
13502
13602
|
addCallUsd(site.role, target.resolved.ref, accounted);
|
|
13503
13603
|
const limited = outcome.wireError?.data;
|
|
13504
13604
|
if (limited?.kind === "rate-limit" && typeof limited.reportedLimits === "object" && limited.reportedLimits !== null) rateLimitObservations.set(`${target.adapter.id}:${target.resolved.model}`, {
|
|
@@ -16004,16 +16104,40 @@ function invoiceFromJournal(entries, priceUsd, options) {
|
|
|
16004
16104
|
}
|
|
16005
16105
|
}
|
|
16006
16106
|
const unallocatedUsd = allocateRows(rows, entries, priceUsd, report.grossUsd);
|
|
16007
|
-
const
|
|
16107
|
+
const terminalByRef = new Map(entries.filter((entry) => entry.kind === "agent" && entry.status !== "running").map((entry) => [entry.ref, entry]));
|
|
16008
16108
|
const runningBySeq = new Map(entries.filter((entry) => entry.kind === "agent" && entry.status === "running").map((entry) => [entry.seq, entry]));
|
|
16009
16109
|
const unsettledRows = [];
|
|
16110
|
+
const orphanedRows = [];
|
|
16010
16111
|
for (const entry of entries) {
|
|
16011
16112
|
if (entry.kind !== "decision") continue;
|
|
16012
16113
|
const value = entry.value;
|
|
16013
|
-
if (value?.decisionType !== "provider-call" || typeof value.agentRef !== "number"
|
|
16014
|
-
const running = runningBySeq.get(value.agentRef);
|
|
16114
|
+
if (value?.decisionType !== "provider-call" || typeof value.agentRef !== "number") continue;
|
|
16015
16115
|
const record = value.record;
|
|
16016
|
-
if (
|
|
16116
|
+
if (record?.usage === void 0 || typeof record.ordinal !== "number" || typeof record.servedBy !== "string") continue;
|
|
16117
|
+
const terminal = terminalByRef.get(value.agentRef);
|
|
16118
|
+
if (terminal !== void 0) {
|
|
16119
|
+
const receiptUsage = record.usage;
|
|
16120
|
+
if ((terminal.providerCalls ?? []).some((call) => {
|
|
16121
|
+
if (typeof record.responseId === "string" || call.responseId !== void 0) return call.responseId === record.responseId;
|
|
16122
|
+
return call.ordinal === record.ordinal && call.servedBy === record.servedBy && call.attempt === (typeof record.attempt === "number" ? record.attempt : 1) && call.outcome === (typeof record.outcome === "string" ? record.outcome : "ok") && USAGE_FIELDS.every((field) => (call.usage[field] ?? 0) === (receiptUsage[field] ?? 0)) && (call.usage.reasoningTokens ?? 0) === (receiptUsage.reasoningTokens ?? 0);
|
|
16123
|
+
})) continue;
|
|
16124
|
+
const usd = rowUsd(priceUsd, record.servedBy, record.usage, entry.seq);
|
|
16125
|
+
orphanedRows.push({
|
|
16126
|
+
agentRef: value.agentRef,
|
|
16127
|
+
scope: terminal.scope,
|
|
16128
|
+
ordinal: record.ordinal,
|
|
16129
|
+
servedBy: record.servedBy,
|
|
16130
|
+
role: typeof record.role === "string" ? record.role : "loop",
|
|
16131
|
+
attempt: typeof record.attempt === "number" ? record.attempt : 1,
|
|
16132
|
+
outcome: typeof record.outcome === "string" ? record.outcome : "ok",
|
|
16133
|
+
usage: rowUsage(record.usage),
|
|
16134
|
+
...usd === void 0 ? {} : { usd },
|
|
16135
|
+
...typeof record.responseId === "string" ? { responseId: record.responseId } : {}
|
|
16136
|
+
});
|
|
16137
|
+
continue;
|
|
16138
|
+
}
|
|
16139
|
+
const running = runningBySeq.get(value.agentRef);
|
|
16140
|
+
if (running === void 0) continue;
|
|
16017
16141
|
const usd = rowUsd(priceUsd, record.servedBy, record.usage, entry.seq);
|
|
16018
16142
|
unsettledRows.push({
|
|
16019
16143
|
agentRef: value.agentRef,
|
|
@@ -16033,6 +16157,11 @@ function invoiceFromJournal(entries, priceUsd, options) {
|
|
|
16033
16157
|
wireRequests: unsettledRows.length,
|
|
16034
16158
|
rows: unsettledRows
|
|
16035
16159
|
};
|
|
16160
|
+
const orphanedReceipts = orphanedRows.length === 0 ? void 0 : {
|
|
16161
|
+
usd: orphanedRows.reduce((sum, row) => sum + (row.usd ?? 0), 0),
|
|
16162
|
+
wireRequests: orphanedRows.length,
|
|
16163
|
+
rows: orphanedRows
|
|
16164
|
+
};
|
|
16036
16165
|
const usageApprox = report.usageApprox === true || report.abandoned.usageApprox === true;
|
|
16037
16166
|
const invoice = {
|
|
16038
16167
|
rows,
|
|
@@ -16046,6 +16175,7 @@ function invoiceFromJournal(entries, priceUsd, options) {
|
|
|
16046
16175
|
reconciliationFailures: rows.filter((row) => row.reconciliation !== "provider-id-present").length,
|
|
16047
16176
|
cardinality: cardinalityOf(rows),
|
|
16048
16177
|
...unsettled === void 0 ? {} : { unsettled },
|
|
16178
|
+
...orphanedReceipts === void 0 ? {} : { orphanedReceipts },
|
|
16049
16179
|
...(() => {
|
|
16050
16180
|
const count = rows.filter((row) => row.usageUnknown === true).length;
|
|
16051
16181
|
return count === 0 ? {} : { usageUnknownRows: count };
|
|
@@ -16180,6 +16310,9 @@ function reconcileStatement(invoice, statement, options) {
|
|
|
16180
16310
|
const unmatchedIdSample = [];
|
|
16181
16311
|
let statementOnlyRows = 0;
|
|
16182
16312
|
const statementOnlyIdSample = [];
|
|
16313
|
+
let receiptMatchedRows = 0;
|
|
16314
|
+
let receiptMatchedUsd = 0;
|
|
16315
|
+
const receiptIdSample = [];
|
|
16183
16316
|
let statementTotalUsd;
|
|
16184
16317
|
let statementComponents;
|
|
16185
16318
|
let matchedStatementRows = 0;
|
|
@@ -16277,7 +16410,15 @@ function reconcileStatement(invoice, statement, options) {
|
|
|
16277
16410
|
}
|
|
16278
16411
|
}
|
|
16279
16412
|
}
|
|
16413
|
+
const receiptIds = /* @__PURE__ */ new Set();
|
|
16414
|
+
for (const lane of [invoice.unsettled, invoice.orphanedReceipts]) for (const row of lane?.rows ?? []) if (typeof row.responseId === "string") receiptIds.add(row.responseId);
|
|
16280
16415
|
for (const row of statement.rows) if (!matchedStatement.has(row.responseId) && !partialSegmentIds.has(row.responseId)) {
|
|
16416
|
+
if (receiptIds.has(row.responseId)) {
|
|
16417
|
+
receiptMatchedRows += 1;
|
|
16418
|
+
if (row.usd !== void 0) receiptMatchedUsd += row.usd;
|
|
16419
|
+
if (receiptIdSample.length < SAMPLE_CAP) receiptIdSample.push(row.responseId);
|
|
16420
|
+
continue;
|
|
16421
|
+
}
|
|
16281
16422
|
statementOnlyRows += 1;
|
|
16282
16423
|
if (statementOnlyIdSample.length < SAMPLE_CAP) statementOnlyIdSample.push(row.responseId);
|
|
16283
16424
|
}
|
|
@@ -16426,7 +16567,12 @@ function reconcileStatement(invoice, statement, options) {
|
|
|
16426
16567
|
verdict,
|
|
16427
16568
|
dollarCoverage,
|
|
16428
16569
|
settleable,
|
|
16429
|
-
monetarySettleable: settleable && dollarCoverage === "complete"
|
|
16570
|
+
monetarySettleable: settleable && dollarCoverage === "complete",
|
|
16571
|
+
...receiptMatchedRows === 0 ? {} : {
|
|
16572
|
+
receiptMatchedRows,
|
|
16573
|
+
receiptMatchedUsd,
|
|
16574
|
+
receiptIdSample
|
|
16575
|
+
}
|
|
16430
16576
|
};
|
|
16431
16577
|
}
|
|
16432
16578
|
/** A cell that is absent by export convention: missing, null, or ''. */
|
|
@@ -19051,7 +19197,7 @@ function createCtx(internals, rootWorkflow) {
|
|
|
19051
19197
|
if (cachePolicy !== void 0) runAgentOptions.cache = cachePolicy;
|
|
19052
19198
|
}
|
|
19053
19199
|
runAgentOptions.billing = { onProviderCall: (record) => {
|
|
19054
|
-
internals.replayer.appendSinglePhase({
|
|
19200
|
+
const append = internals.replayer.appendSinglePhase({
|
|
19055
19201
|
scope: state.scope,
|
|
19056
19202
|
key: `pc:${String(running.seq)}:${String(record.ordinal)}`,
|
|
19057
19203
|
kind: "decision",
|
|
@@ -19063,13 +19209,14 @@ function createCtx(internals, rootWorkflow) {
|
|
|
19063
19209
|
agentRef: running.seq,
|
|
19064
19210
|
record
|
|
19065
19211
|
}
|
|
19066
|
-
}).catch((thrown) => {
|
|
19212
|
+
}).then(() => void 0).catch((thrown) => {
|
|
19067
19213
|
internals.events.emit({
|
|
19068
19214
|
type: "log",
|
|
19069
19215
|
level: "warn",
|
|
19070
19216
|
msg: `incremental billing row failed to append; the terminal entry remains the canonical record (${thrown instanceof Error ? thrown.message : String(thrown)})`
|
|
19071
19217
|
}, spanId);
|
|
19072
19218
|
});
|
|
19219
|
+
if (internals.defaults.billingReceipts === "awaited") return append;
|
|
19073
19220
|
} };
|
|
19074
19221
|
runAgentOptions.summarize = summarize;
|
|
19075
19222
|
if (profile?.compaction !== void 0) runAgentOptions.compaction = profile.compaction;
|
|
@@ -26429,6 +26576,36 @@ function preflightEstimate(input) {
|
|
|
26429
26576
|
if (input.orchestrator.estInputTokens !== void 0) requireNonNegativeInteger(input.orchestrator.estInputTokens, "preflight.orchestrator.estInputTokens");
|
|
26430
26577
|
if (input.orchestrator.acceptance?.minSpawnedChildren !== void 0) requirePositiveInteger$2(input.orchestrator.acceptance.minSpawnedChildren, "preflight.orchestrator.acceptance.minSpawnedChildren");
|
|
26431
26578
|
if (input.orchestrator.claimConsistency?.judge?.estCost !== void 0) requireNonNegativeNumber(input.orchestrator.claimConsistency.judge.estCost, "preflight.orchestrator.claimConsistency.judge.estCost");
|
|
26579
|
+
{
|
|
26580
|
+
const posture = input.orchestrator.claimConsistency;
|
|
26581
|
+
if (posture?.onFound !== void 0 && ![
|
|
26582
|
+
"report",
|
|
26583
|
+
"carry",
|
|
26584
|
+
"fail",
|
|
26585
|
+
"repair"
|
|
26586
|
+
].includes(posture.onFound)) throw new ConfigError(`preflight.orchestrator.claimConsistency.onFound must be 'report', 'carry', 'fail' or 'repair'; got ${JSON.stringify(posture.onFound)}`);
|
|
26587
|
+
if (posture?.stage !== void 0 && ![
|
|
26588
|
+
"draft",
|
|
26589
|
+
"final",
|
|
26590
|
+
"both"
|
|
26591
|
+
].includes(posture.stage)) throw new ConfigError(`preflight.orchestrator.claimConsistency.stage must be 'draft', 'final' or 'both'; got ${JSON.stringify(posture.stage)}`);
|
|
26592
|
+
const stage = posture?.stage ?? "draft";
|
|
26593
|
+
if (posture?.onFound === "repair" && stage === "draft") say({
|
|
26594
|
+
severity: "error",
|
|
26595
|
+
code: "claim-posture-refused-at-intake",
|
|
26596
|
+
message: "claimConsistency.onFound 'repair' needs stage 'final' or 'both' (at the draft stage the repair IS the carry, RV3307): the run would refuse to start"
|
|
26597
|
+
});
|
|
26598
|
+
if (posture?.onFound === "repair" && input.orchestrator.synthesis === void 0) say({
|
|
26599
|
+
severity: "error",
|
|
26600
|
+
code: "claim-posture-refused-at-intake",
|
|
26601
|
+
message: "claimConsistency.onFound 'repair' requires a synthesis: the bounded round is one more composition, and without one there is nothing to repair with: the run would refuse to start"
|
|
26602
|
+
});
|
|
26603
|
+
if (posture?.onFound === "carry" && stage === "final") say({
|
|
26604
|
+
severity: "error",
|
|
26605
|
+
code: "claim-posture-refused-at-intake",
|
|
26606
|
+
message: "claimConsistency.onFound 'carry' cannot pair with stage 'final' (RV3301): the final pass has no synthesis prompt left to ride, and the run would refuse to start; declare onFound 'repair' for the bounded post judge round"
|
|
26607
|
+
});
|
|
26608
|
+
}
|
|
26432
26609
|
const spec = input.orchestrator.budget;
|
|
26433
26610
|
const fraction = spec?.capFraction ?? .2;
|
|
26434
26611
|
const fromFraction = ceilingUsd === void 0 ? void 0 : fraction * ceilingUsd;
|
|
@@ -26999,25 +27176,31 @@ function preflightEstimate(input) {
|
|
|
26999
27176
|
code: "ceiling-headroom-thin",
|
|
27000
27177
|
message: `the ceiling headroom is ${(ceilingHeadroomShare * 100).toFixed(2)} percent of the ceiling (${(ceilingHeadroomUsd ?? 0).toFixed(4)} USD over the required minimum ${(requiredMinimumCeilingUsd ?? 0).toFixed(4)} USD), below the declared ${(minCeilingHeadroomShare * 100).toFixed(2)} percent floor: a small pricing or context drift refuses the whole wave at admission; raise the ceiling or slim the wave`
|
|
27001
27178
|
});
|
|
27179
|
+
const claimPosture = input.orchestrator?.claimConsistency;
|
|
27180
|
+
const repairArmed = claimPosture?.onFound === "repair";
|
|
27181
|
+
const worstJudgePasses = ((claimPosture?.stage ?? "draft") === "both" ? 2 : 1) + (repairArmed ? 1 : 0);
|
|
27002
27182
|
{
|
|
27003
27183
|
const judgeEstUsd = input.orchestrator?.claimConsistency?.judge?.estCost;
|
|
27004
27184
|
if (judgeEstUsd !== void 0 && effectiveCapUsd !== void 0 && synthesisHoldUsd > 0) {
|
|
27005
27185
|
const workingRoomUsd = effectiveCapUsd - synthesisHoldUsd;
|
|
27006
|
-
|
|
27186
|
+
const repairCompositionUsd = repairArmed ? synthesisHoldUsd : 0;
|
|
27187
|
+
if (workingRoomUsd < liveRootExposureTermUsd + judgeEstUsd * worstJudgePasses + repairCompositionUsd) say({
|
|
27007
27188
|
severity: "warning",
|
|
27008
27189
|
code: "orchestrator-working-room",
|
|
27009
|
-
message: `the orchestrator account's working room past the held synthesis reserve is ${workingRoomUsd.toFixed(4)} USD (cap ${effectiveCapUsd.toFixed(4)} minus the ${synthesisHoldUsd.toFixed(4)} USD hold), below one coordination turn floor (${liveRootExposureTermUsd.toFixed(4)} USD) plus the declared ${judgeEstUsd.toFixed(4)} USD claim-consistency judge estimate: the judge admission will be declined once the coordination loop has taken even one turn, and the pass degrades to its journaled declined verdict (RV2106); raise the cap, shrink the judge estimate, or shrink the synthesis reserve
|
|
27190
|
+
message: `the orchestrator account's working room past the held synthesis reserve is ${workingRoomUsd.toFixed(4)} USD (cap ${effectiveCapUsd.toFixed(4)} minus the ${synthesisHoldUsd.toFixed(4)} USD hold), below one coordination turn floor (${liveRootExposureTermUsd.toFixed(4)} USD) plus the declared ${judgeEstUsd.toFixed(4)} USD claim-consistency judge estimate` + (worstJudgePasses === 1 ? "" : ` across ${String(worstJudgePasses)} passes at worst (RV3402)`) + (repairArmed ? ` plus one repair round composition priced at the ${synthesisHoldUsd.toFixed(4)} USD reserve (RV3307)` : "") + ": the judge admission will be declined once the coordination loop has taken even one turn, and " + (claimPosture?.onFound === "fail" || claimPosture?.onFound === "repair" ? `under the armed '${claimPosture.onFound}' posture the declined judge stops the run typed (RV3307)` : "the pass degrades to its journaled declined verdict (RV2106)") + "; raise the cap, shrink the judge estimate, or shrink the synthesis reserve"
|
|
27010
27191
|
});
|
|
27011
27192
|
}
|
|
27012
27193
|
}
|
|
27013
27194
|
if (orchestrateWave && wave.length > 0 && admitted === wave.length) {
|
|
27014
27195
|
const lifetimeSpawnCap = input.engine?.budgetDefaults?.lifetimeSpawnCap ?? 500;
|
|
27015
|
-
const judgeDeclared = input.orchestrator?.claimConsistency
|
|
27196
|
+
const judgeDeclared = input.orchestrator?.claimConsistency !== void 0;
|
|
27016
27197
|
const synthesisDeclared = input.orchestrator?.synthesis !== void 0;
|
|
27017
|
-
const
|
|
27198
|
+
const judgeSpawns = judgeDeclared ? worstJudgePasses : 0;
|
|
27199
|
+
const repairSpawns = repairArmed && synthesisDeclared ? 1 : 0;
|
|
27200
|
+
const plannedSpawns = wave.length + judgeSpawns + (synthesisDeclared ? 1 : 0) + repairSpawns;
|
|
27018
27201
|
const spawnHeadroom = lifetimeSpawnCap - plannedSpawns;
|
|
27019
27202
|
if (spawnHeadroom <= 0) {
|
|
27020
|
-
const breakdown = `the admitted wave of ${String(wave.length)} agent invocations` + (judgeDeclared ? " plus the claim-consistency judge" : "") + (synthesisDeclared ? " plus the synthesis invocation" : "") + ` is ${String(plannedSpawns)} against budgetDefaults.lifetimeSpawnCap ` + String(lifetimeSpawnCap);
|
|
27203
|
+
const breakdown = `the admitted wave of ${String(wave.length)} agent invocations` + (judgeDeclared ? judgeSpawns === 1 ? " plus the claim-consistency judge" : ` plus ${String(judgeSpawns)} claim-consistency judge passes at worst` : "") + (synthesisDeclared ? " plus the synthesis invocation" : "") + (repairSpawns === 0 ? "" : " plus the repair round composition") + ` is ${String(plannedSpawns)} against budgetDefaults.lifetimeSpawnCap ` + String(lifetimeSpawnCap);
|
|
27021
27204
|
say({
|
|
27022
27205
|
severity: "warning",
|
|
27023
27206
|
code: "tail-spawn-budget",
|
|
@@ -28097,6 +28280,7 @@ function createEngine(options) {
|
|
|
28097
28280
|
if (profile.countTokens !== void 0 && !["allow", "deny"].includes(profile.countTokens)) throw new ConfigError(`createEngine defaults.profiles['${name}'].countTokens must be 'allow' or 'deny'`);
|
|
28098
28281
|
}
|
|
28099
28282
|
if (options.defaults?.countTokens !== void 0 && !["allow", "deny"].includes(options.defaults.countTokens)) throw new ConfigError("createEngine defaults.countTokens must be 'allow' or 'deny'");
|
|
28283
|
+
if (options.defaults?.billingReceipts !== void 0 && !["async", "awaited"].includes(options.defaults.billingReceipts)) throw new ConfigError("createEngine defaults.billingReceipts must be 'async' or 'awaited'");
|
|
28100
28284
|
if (options.telemetry?.quotaDeniedAgentError !== void 0 && typeof options.telemetry.quotaDeniedAgentError !== "boolean") throw new ConfigError("createEngine telemetry.quotaDeniedAgentError must be a boolean");
|
|
28101
28285
|
validateDeterminismConfig(options.determinism);
|
|
28102
28286
|
validateEngineQuotaConfig(options.quota);
|
|
@@ -28294,7 +28478,8 @@ function createEngine(options) {
|
|
|
28294
28478
|
...defaults.toolsets === void 0 ? {} : { toolsets: defaults.toolsets },
|
|
28295
28479
|
...defaults.gates === void 0 ? {} : { gates: defaults.gates },
|
|
28296
28480
|
...defaults.countTokens === void 0 ? {} : { countTokens: defaults.countTokens },
|
|
28297
|
-
...defaults.cache === void 0 ? {} : { cache: defaults.cache }
|
|
28481
|
+
...defaults.cache === void 0 ? {} : { cache: defaults.cache },
|
|
28482
|
+
...defaults.billingReceipts === void 0 ? {} : { billingReceipts: defaults.billingReceipts }
|
|
28298
28483
|
},
|
|
28299
28484
|
...options.telemetry === void 0 ? {} : { telemetry: options.telemetry },
|
|
28300
28485
|
errorPolicy: wf.errorPolicy,
|
|
@@ -29259,4 +29444,4 @@ function createSandboxBridge(ctx, options) {
|
|
|
29259
29444
|
};
|
|
29260
29445
|
}
|
|
29261
29446
|
//#endregion
|
|
29262
|
-
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, JournalIntegrityError, 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, manifestValidators, 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, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
|
|
29447
|
+
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, JournalIntegrityError, 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, claimJudgeStageOf, 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, isClaimJudgeLabel, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, manifestValidators, 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, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, unionOfIntervalsMs, 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.
|
|
3
|
+
"version": "1.239.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",
|