@rulvar/core 1.241.0 → 1.243.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1122,6 +1122,16 @@ type JournalEntry = {
1122
1122
  cap?: number;
1123
1123
  };
1124
1124
  /**
1125
+ * Terminal agent entries whose invocation was aborted by the host's
1126
+ * finish rejection (RV3702): the declared finish contract rejected
1127
+ * the candidate past its repair bound, so the span died by host
1128
+ * hand with its wires fine. Stamped at settle from the typed abort
1129
+ * reason; never on a defective (throwing) validator, whose abort
1130
+ * carries its own reason, because a host defect is not a verdict on
1131
+ * the candidate. Policy, never identity, exactly like usageByModel.
1132
+ */
1133
+ hostRejected?: boolean;
1134
+ /**
1125
1135
  * Terminal escalated entries ONLY: the schema-validated
1126
1136
  * EscalationReport with runtime-filled costToDate and salvage; replay
1127
1137
  * synthesizes the byte-identical report from here (DEF-1).
@@ -2599,6 +2609,15 @@ type AgentEvents = {
2599
2609
  */
2600
2610
  retryCount?: number;
2601
2611
  /**
2612
+ * Present and true when the invocation was aborted by the host's
2613
+ * finish rejection (RV3702): the declared finish contract
2614
+ * rejected the candidate past its repair bound. Journaled on the
2615
+ * terminal agent entry (unlike retryCount), so a replayed
2616
+ * agent:end carries it too and both surfaces of the RV3404 cut
2617
+ * read the same count.
2618
+ */
2619
+ hostRejected?: boolean;
2620
+ /**
2602
2621
  * The exploration guard counters (RV-210). Present live whenever
2603
2622
  * any exploration guard limit was configured for the invocation;
2604
2623
  * on replay present only when the guard abort journaled it in the
@@ -3826,6 +3845,8 @@ interface TerminalPatch {
3826
3845
  used: number;
3827
3846
  cap?: number;
3828
3847
  };
3848
+ /** Terminal agent entries: the host finish rejection stamp (RV3702); see JournalEntry. */
3849
+ hostRejected?: boolean;
3829
3850
  /** Terminal escalated entries: the validated EscalationReport. */
3830
3851
  escalation?: unknown;
3831
3852
  /**
@@ -6428,6 +6449,10 @@ interface BudgetAccountView {
6428
6449
  finalizeReserveUsd: number;
6429
6450
  /** The synthesis payload hold (cycle 76); zero when none is committed. */
6430
6451
  synthesisReserveUsd: number;
6452
+ /** The repair round's verdict hold (RV3701); zero when none is committed. */
6453
+ convergenceReserveUsd: number;
6454
+ /** The repair round's mechanical leg (RV3802); zero when none is committed. */
6455
+ repairReserveUsd: number;
6431
6456
  parentScope?: string;
6432
6457
  }
6433
6458
  /**
@@ -6727,6 +6752,48 @@ declare class RunBudget {
6727
6752
  commitSynthesisReserve(scope: string, reserveUsd: number): void;
6728
6753
  /** The synthesis dispatch consumes its reserve; see commitSynthesisReserve. */
6729
6754
  releaseSynthesisReserve(scope: string): void;
6755
+ /**
6756
+ * Registers the repair round's verdict reserve (RV3701, the third
6757
+ * comparison experiment's arc): absolute dollars held on the
6758
+ * orchestrator account AND the run root for the verdict pass (the
6759
+ * round's second judge invocation) that must follow a DISPATCHED
6760
+ * claim repair round. The third comparison run
6761
+ * proved the round's two invocation tail is only as convergent as
6762
+ * the money left when the candidate materializes; with the verdict
6763
+ * money held from the moment the round is admitted, the round's own
6764
+ * repair turns (the layer-2b clamp prices output from a remainder
6765
+ * this hold shrinks) and any concurrent admission (the hold joins
6766
+ * the projected admission sum) cannot eat it, so a round the budget
6767
+ * can only START is refused before any wire call instead of being
6768
+ * paid for and left unjudgeable. Exactly the synthesis reserve
6769
+ * mechanics: released to the invocation it was held FOR (the
6770
+ * verdict pass dispatch), never joined to the severing check.
6771
+ * Idempotent per account: registering again adjusts the root by the
6772
+ * delta.
6773
+ */
6774
+ commitConvergenceReserve(scope: string, reserveUsd: number): void;
6775
+ /** The verdict pass dispatch consumes its reserve; see commitConvergenceReserve. */
6776
+ releaseConvergenceReserve(scope: string): void;
6777
+ /**
6778
+ * Registers the repair round's MECHANICAL leg (RV3802), the money
6779
+ * twin of the RV3602 per-invocation pool: the round's finish
6780
+ * contract can grant one bounded mechanical repair turn, and the
6781
+ * third comparison run's round entered exactly that turn's price
6782
+ * short of certainty (the repair existed by pool and by contract,
6783
+ * but nothing guaranteed the money would still be there when the
6784
+ * candidate materialized). Held beside the verdict leg from the
6785
+ * moment the round is admitted; released EARLY, to the round's own
6786
+ * finish loop, at its first journaled verdict (a 'repair' verdict is
6787
+ * about to spend the freed money on the granted turn, an 'accepted'
6788
+ * one never needed it), where the verdict leg lives until the judge
6789
+ * dispatch. Exactly the convergence reserve mechanics otherwise:
6790
+ * joins the projected admission sum and both remainders, named in
6791
+ * the refusal clause, never joined to the severing check, idempotent
6792
+ * per account with the root adjusted by the delta.
6793
+ */
6794
+ commitRepairReserve(scope: string, reserveUsd: number): void;
6795
+ /** The round's finish loop consumes its leg; see commitRepairReserve. */
6796
+ releaseRepairReserve(scope: string): void;
6730
6797
  /** The reserve is replaced by real spend when the spawn settles. */
6731
6798
  releaseReserve(reserveUsd: number, accountScope?: string): void;
6732
6799
  /**
@@ -8331,12 +8398,42 @@ interface FinishValidationInput {
8331
8398
  */
8332
8399
  readonly runId?: string;
8333
8400
  }
8401
+ /**
8402
+ * One structured repair hint on a failed verdict (RV3801): the exact
8403
+ * edit whose application satisfies this validator, precise enough for
8404
+ * the HOST to perform without a provider wire. The third comparison
8405
+ * run died with its repair pool spent on a failure class whose remedy
8406
+ * the evidence-grade verdict already prescribed word for word (write
8407
+ * this run's id inside each offending sentence); a remedy that
8408
+ * deterministic must not cost a model turn. A hint is advisory: the
8409
+ * finish loop attempts the patch only when EVERY failure of the
8410
+ * candidate carries hints, re-runs the FULL validator set over the
8411
+ * patched document, and falls back to the ordinary model repair pool
8412
+ * when the patch does not survive re-validation.
8413
+ */
8414
+ interface FinishRepairHint {
8415
+ /** The one host-side edit the loop knows how to apply. */
8416
+ readonly mechanism: "insert-run-id";
8417
+ /** Offset of the offending sentence's first character in the judged text. */
8418
+ readonly start: number;
8419
+ /** Offset one past the offending sentence's last character. */
8420
+ readonly end: number;
8421
+ /**
8422
+ * The offending sentence verbatim (never normalized or clipped): the
8423
+ * loop refuses the patch unless `text.slice(start, end)` equals it,
8424
+ * so a stale hint can never edit the wrong bytes.
8425
+ */
8426
+ readonly sentence: string;
8427
+ /** The identifier whose insertion the verdict prescribes. */
8428
+ readonly insert: string;
8429
+ }
8334
8430
  /** The verdict of one validator over one finish attempt. */
8335
8431
  type FinishValidationVerdict = {
8336
8432
  ok: true;
8337
8433
  } | {
8338
8434
  ok: false;
8339
8435
  reasons: string[];
8436
+ repairHints?: FinishRepairHint[];
8340
8437
  };
8341
8438
  /**
8342
8439
  * A deterministic host validator of the orchestrator finish result.
@@ -8474,6 +8571,33 @@ declare const DEFAULT_CITATION_PATTERN = "[\\w./-]+\\.\\w+:\\d+";
8474
8571
  /** The default preserved share, the improvement plan's RV-202 gate. */
8475
8572
  declare const DEFAULT_EVIDENCE_MIN_SHARE = .95;
8476
8573
  /**
8574
+ * The deterministic edit behind the `insert-run-id` mechanism
8575
+ * (RV3801): the id lands INSIDE the sentence, before its trailing
8576
+ * terminator run (a `.`, `!`, or `?` with any closing quotes,
8577
+ * brackets, or markdown emphasis after it), or at the very end when
8578
+ * the sentence carries no terminator. Inside matters: appended AFTER
8579
+ * the terminator the id would belong to the NEXT sentence under the
8580
+ * shared `sentencesOf` segmentation and the re-validation would fail
8581
+ * the same sentence again. Exported so tests and hosts can reproduce
8582
+ * the loop's exact bytes.
8583
+ */
8584
+ declare function insertRunIdIntoSentence(sentence: string, insert: string): string;
8585
+ /**
8586
+ * Applies `insert-run-id` repair hints to a judged text (RV3801): each
8587
+ * `[start, end)` window is replaced by
8588
+ * {@link insertRunIdIntoSentence}(window, insert), right to left so
8589
+ * earlier offsets stay valid, every other byte identical. Fail closed:
8590
+ * `undefined` (never a partial patch) when the set is empty, any
8591
+ * window is out of bounds or empty, or two windows overlap; the caller
8592
+ * treats a refused patch exactly like an absent one and proceeds to
8593
+ * the model repair pool.
8594
+ */
8595
+ declare function applyFinishRepairHints(text: string, hints: readonly {
8596
+ start: number;
8597
+ end: number;
8598
+ insert: string;
8599
+ }[]): string | undefined;
8600
+ /**
8477
8601
  * The RV-202 evidence preservation contract: the finish result must
8478
8602
  * PRESERVE the citations the children actually produced. Distinct
8479
8603
  * matches of `pattern` are collected across the outputs of children
@@ -8638,6 +8762,13 @@ declare const DEFAULT_ARTIFACT_PATTERN = "(?:run[ -]?[0-9A-HJKMNP-TV-Z]{6,26}|[\
8638
8762
  * the repair instruction is executable rather than aspirational. An id
8639
8763
  * shorter than `MIN_RUN_ID_ARTIFACT_CHARS` (six) is ignored, and
8640
8764
  * without an id the verdict is byte identical to the historical one.
8765
+ *
8766
+ * With the id in hand the failure also carries {@link FinishRepairHint}
8767
+ * rows (RV3801), one per offending sentence, so the finish loop can
8768
+ * perform the verdict's own prescription host side without spending a
8769
+ * provider wire; the reasons stay byte identical either way, and the
8770
+ * hints are bounded (at most `MAX_REPAIR_HINTS` offenders) and fail
8771
+ * closed (an id whose bytes could split a sentence is never hinted).
8641
8772
  * Default name 'evidence-grade'.
8642
8773
  */
8643
8774
  declare function evidenceGradeValidator(options?: {
@@ -10015,6 +10146,28 @@ interface OrchestrateAcceptance {
10015
10146
  }
10016
10147
  /** How many rejected finishes are repaired by default: the plan's repair once. */
10017
10148
  declare const DEFAULT_FINISH_MAX_REPAIRS = 1;
10149
+ /** The sectional round's owning sections and marker roster (RV3803). */
10150
+ interface SectionalRoundPlan {
10151
+ /** Every H2 marker of the retained document, in document order. */
10152
+ sections: string[];
10153
+ /** The markers owning at least one finding excerpt, document order. */
10154
+ targets: string[];
10155
+ }
10156
+ /**
10157
+ * Plans the sectional claim repair round (RV3803): which H2 sections
10158
+ * of the accepted pre-repair document own the judged findings. The
10159
+ * third comparison run's round regenerated the WHOLE 43k character
10160
+ * document to consume findings that lived in a handful of sentences,
10161
+ * and the tail after fan-in was 80.1 percent of the run's wall. Each
10162
+ * finding's `draftExcerpt` (whitespace collapsed by the pairing fold)
10163
+ * is located in the document through a collapse-aware scan, and its
10164
+ * owning section is the nearest H2 line above it. Fail closed to the
10165
+ * FULL regeneration (undefined, the historical round byte for byte)
10166
+ * whenever the plan cannot be exact: no excerpts, a document without
10167
+ * H2 headings, duplicated markers (the splice grammar needs unique
10168
+ * lines), or any excerpt the scan cannot locate.
10169
+ */
10170
+ declare function sectionalRoundPlan(document: string, excerpts: readonly string[]): SectionalRoundPlan | undefined;
10018
10171
  /**
10019
10172
  * Character cap of the HOST VALIDATION LESSONS prompt block (RV3603):
10020
10173
  * the bounded repair round's prompt folds the run's journaled finish
@@ -10129,6 +10282,21 @@ interface FinishValidationSpec {
10129
10282
  */
10130
10283
  repairTurnReserve?: number;
10131
10284
  /**
10285
+ * The declared price of ONE mechanical repair turn in USD (RV3802),
10286
+ * the money twin of `repairTurnReserve`'s turn grant: the bounded
10287
+ * claim repair round (`claimConsistency.onFound: 'repair'`) holds
10288
+ * this beside the verdict money (RV3701) from the moment the round
10289
+ * is admitted, so the one repair turn the round's own finish
10290
+ * contract can grant is funded when the candidate materializes; the
10291
+ * leg releases to the round's finish loop at its first journaled
10292
+ * verdict. Undeclared, the hold falls back to the run's own observed
10293
+ * last mechanical repair price (`lastMechanicalRepairCostUsd` over
10294
+ * the journal, absent when no priced repair window exists), else
10295
+ * zero, which keeps every pre-RV3802 admission byte identical. A
10296
+ * nonnegative finite number; refused typed otherwise.
10297
+ */
10298
+ estRepairCostUsd?: number;
10299
+ /**
10132
10300
  * The coordination draft gate (the v1.74 experiment review, P0.3),
10133
10301
  * meaningful ONLY with `synthesis` configured: with validators bound
10134
10302
  * to the synthesis finish, the coordination finish is an unvalidated
@@ -11751,6 +11919,8 @@ interface CostAttribution {
11751
11919
  byModel: Map<string, number>;
11752
11920
  byPhase: Map<string, number>;
11753
11921
  byAgentType: Map<string, number>;
11922
+ /** Keyed by the raw journal scope (RV3805); '' is the root's own scope. */
11923
+ byScope: Map<string, number>;
11754
11924
  byRole: Map<InvocationRole, number>;
11755
11925
  unpriced: Array<{
11756
11926
  model: string;
@@ -11914,6 +12084,16 @@ declare function executeWorkflow<A, R>(internals: RunInternals, wf: Workflow<A,
11914
12084
  */
11915
12085
  declare function attributionBucket(value: string | undefined): string;
11916
12086
  /**
12087
+ * The scope key rule of the byScope rollup (RV3805). The root's OWN
12088
+ * scope is the empty string BY CONSTRUCTION: present data whose string
12089
+ * happens to be empty, not an absence, so it folds under the
12090
+ * addressable name 'root' instead of the RV3604 'unknown' fallback,
12091
+ * which stays reserved for a scope that is truly missing. Children
12092
+ * keep their scope strings verbatim. One rule for both builders, so
12093
+ * the live report and the journal fold cannot disagree on the key.
12094
+ */
12095
+ declare function scopeBucket(scope: string | undefined): string;
12096
+ /**
11917
12097
  * Folds the per-run attribution buckets into the normative CostReport.
11918
12098
  * Live attribution buckets never see abandoned subtrees, so a host
11919
12099
  * that tracked abandoned spend itself passes it as `abandoned`;
@@ -12036,6 +12216,18 @@ interface CostReport {
12036
12216
  byAgentType: Record<string, number>;
12037
12217
  byRole: Record<InvocationRole, number>;
12038
12218
  /**
12219
+ * Spend per journal scope (RV3805): the root and every child are
12220
+ * addressable rows whose sum equals `totalUsd`, so the children
12221
+ * versus whole-workflow cut (the third comparison analysis had to
12222
+ * hand-aggregate it from invoice rows) reads off the report
12223
+ * directly. The root's OWN scope is the empty string BY
12224
+ * CONSTRUCTION, present data rather than an absence, so it folds
12225
+ * under the named 'root' bucket; children keep their scope strings
12226
+ * verbatim, and only a truly absent scope folds under 'unknown',
12227
+ * the RV3604 fallback.
12228
+ */
12229
+ byScope: Record<string, number>;
12230
+ /**
12039
12231
  * All-zero with forcedFinish false in runs without a dynamic
12040
12232
  * orchestrator (or when no cap resolved, so no sub-account opened).
12041
12233
  * Folded purely from the journal: spentUsd is the priced usage of
@@ -13641,6 +13833,15 @@ interface JournaledCriticalPath {
13641
13833
  */
13642
13834
  lastCandidateMs?: number;
13643
13835
  /**
13836
+ * Settled agent spans whose invocation was aborted by the host's
13837
+ * finish rejection (RV3702): the journaled `hostRejected` stamps
13838
+ * counted. Unconditional (the stamp is self contained: no label, no
13839
+ * segment condition) and zero when none, exactly the live reading
13840
+ * of the same run: the layer split (wires fine, document refused by
13841
+ * host) stays readable years after the process exited.
13842
+ */
13843
+ hostRejectedSpans: number;
13844
+ /**
13644
13845
  * The window itemization a journal CAN answer (RV3404); present
13645
13846
  * exactly when `postFanInMs` is.
13646
13847
  */
@@ -13713,6 +13914,13 @@ interface JournaledSynthesisCandidate {
13713
13914
  /** The hosting span's dispatch label (RV2901), when journaled. */
13714
13915
  spanLabel?: string;
13715
13916
  /**
13917
+ * The hosting span's running entry seq (RV3802): the span's identity
13918
+ * within the run, so two candidates can be read as neighbors of ONE
13919
+ * composition invocation (the repair-turn pairing below) instead of
13920
+ * accidental neighbors across spans. Absent exactly when unhosted.
13921
+ */
13922
+ spanSeq?: number;
13923
+ /**
13716
13924
  * Wall from the previous boundary (the span's start, or the prior
13717
13925
  * verdict) to this verdict's stamp. Absent when the candidate is not
13718
13926
  * hosted by a settled synthesize span or a stamp is missing.
@@ -13771,6 +13979,20 @@ interface JournaledSynthesisCandidateReport {
13771
13979
  * same shape `invoiceFromJournal` takes; omit to fold without money
13772
13980
  */
13773
13981
  declare function synthesisCandidatesFromJournal(entries: readonly JournalEntry[], priceUsd?: (servedBy: ModelRef, usage: Usage) => number | undefined): JournaledSynthesisCandidateReport;
13982
+ /**
13983
+ * The observed price of the run's LAST mechanical repair turn
13984
+ * (RV3802): the window of the candidate that FOLLOWED a 'repair'
13985
+ * verdict inside the same settled synthesize span, priced by the same
13986
+ * per-call fold every candidate window uses. This is the fallback the
13987
+ * repair round's mechanical money leg sizes itself from when the host
13988
+ * declared no estimate: by the time the round is admitted the initial
13989
+ * composition has settled, so a mechanical repair it performed is a
13990
+ * priced window in the journal. Fail closed under RV1209: no such
13991
+ * pairing, an unattributed span, or an unpriceable window all return
13992
+ * undefined (never a guessed number), and the caller treats undefined
13993
+ * as an inert zero-size leg.
13994
+ */
13995
+ declare function lastMechanicalRepairCostUsd(entries: readonly JournalEntry[], priceUsd?: (servedBy: ModelRef, usage: Usage) => number | undefined): number | undefined;
13774
13996
  //#endregion
13775
13997
  //#region src/stores/tool-calibration.d.ts
13776
13998
  /** One dispatch carrying BOTH sides of the calibration pair (RV3003). */
@@ -13925,6 +14147,28 @@ interface PinnedPricingSegment {
13925
14147
  pricingVersion?: string;
13926
14148
  /** The applied rows THIS settle pinned. */
13927
14149
  rows: AppliedPricingRow[];
14150
+ /**
14151
+ * sha256 over the canonical JSON of THIS pin's rows (RV3703): the
14152
+ * version string is a label the table author chose, and the third
14153
+ * experiment's arc found a price defect that a label cannot expose;
14154
+ * the hash is the content. Two tables sharing a version string but
14155
+ * disagreeing on rates are distinguishable, and two folds of one
14156
+ * journal always derive the same hex. Computed at read time from
14157
+ * the pinned bytes: the journal is unchanged and every existing pin
14158
+ * gains it.
14159
+ */
14160
+ rowsHash: string;
14161
+ /**
14162
+ * The freshness range of THIS pin's dated rows (RV3703): the oldest
14163
+ * and newest `ratesVerifiedAt` among rows carrying a parsable one,
14164
+ * the machine-readable age of the table that priced the segment.
14165
+ * Absent when no row is dated: freshness is then unattested, never
14166
+ * guessed.
14167
+ */
14168
+ ratesVerifiedAt?: {
14169
+ oldest: string;
14170
+ newest: string;
14171
+ };
13928
14172
  }
13929
14173
  /** What `journalPricingSnapshot` rebuilds from a pinned run settle. */
13930
14174
  interface JournalPricingSnapshot {
@@ -13932,6 +14176,16 @@ interface JournalPricingSnapshot {
13932
14176
  pricingVersion?: string;
13933
14177
  /** The last pin's rows: the union covering the whole settled journal. */
13934
14178
  rows: AppliedPricingRow[];
14179
+ /** The last pin's content hash (RV3703); see PinnedPricingSegment.rowsHash. */
14180
+ rowsHash: string;
14181
+ /**
14182
+ * The last pin's freshness range (RV3703); see the per-segment
14183
+ * field. Absent when no row of the last pin is dated.
14184
+ */
14185
+ ratesVerifiedAt?: {
14186
+ oldest: string;
14187
+ newest: string;
14188
+ };
13935
14189
  /**
13936
14190
  * The seq of the last pinning settle: rows at or past it belong to a
13937
14191
  * segment no pin covers yet, so a caller composing with a live table
@@ -14738,7 +14992,18 @@ interface PreflightOrchestratorSpec {
14738
14992
  * before the first wire, not the journal after the last. Pairings
14739
14993
  * orchestrate() refuses at intake (repair at the draft stage,
14740
14994
  * repair without a synthesis, carry at the final stage, RV3301)
14741
- * surface as error findings: the run would refuse to start.
14995
+ * surface as error findings: the run would refuse to start. This
14996
+ * static arithmetic has a runtime twin (RV3701): at the moment a
14997
+ * round actually dispatches, the engine holds the money of the round's second judge pass
14998
+ * (this same `judge.estCost` first, else the run's own observed
14999
+ * post draft judge price) until that pass admits, so the
15000
+ * declared estimate is not only judged before the run but enforced
15001
+ * inside it. The mechanical leg has the same twin (RV3802): the
15002
+ * one repair turn the round's finish contract can grant is held as
15003
+ * `finishValidation.estRepairCostUsd` (else the run's observed
15004
+ * last mechanical repair price) beside the verdict money, released
15005
+ * to the round's finish loop at its first verdict; the runtime
15006
+ * enforcement of the `repairTurnReserve` turn grant's price.
14742
15007
  */
14743
15008
  onFound?: "report" | "carry" | "fail" | "repair";
14744
15009
  /**
@@ -15559,6 +15824,14 @@ interface AgentInvocationRow {
15559
15824
  replayed: boolean;
15560
15825
  /** True when the span's agent:end never arrived. */
15561
15826
  open: boolean;
15827
+ /**
15828
+ * Present and true when the invocation was aborted by the host's
15829
+ * finish rejection (RV3702): the declared finish contract rejected
15830
+ * the candidate past its repair bound, so the span died by host
15831
+ * hand with its wires fine. From the agent:end stamp; absent
15832
+ * everywhere else.
15833
+ */
15834
+ hostRejected?: boolean;
15562
15835
  phases: PhaseRow[];
15563
15836
  }
15564
15837
  /** The reduced table plus the per-role aggregate across every span. */
@@ -15669,6 +15942,15 @@ interface CriticalPath {
15669
15942
  synthesisShare?: number;
15670
15943
  /** Settled non-coordination agent spans that anchored the fan-in. */
15671
15944
  workerSpans: number;
15945
+ /**
15946
+ * Settled spans whose invocation was aborted by the host's finish
15947
+ * rejection (RV3702): the `hostRejected` stamps counted. The count
15948
+ * is unconditional (the stamp is self contained, no labelling
15949
+ * condition applies) and zero when none: on the third comparison
15950
+ * run's shape it reads 1, the round's composition, telling the host
15951
+ * rejection apart from a provider death at the cut level.
15952
+ */
15953
+ hostRejectedSpans: number;
15672
15954
  /** The RV710 decomposition of the window; present with postFanInMs. */
15673
15955
  postFanIn?: PostFanInBreakdown;
15674
15956
  }
@@ -15883,4 +16165,4 @@ interface SandboxBridge {
15883
16165
  declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
15884
16166
  declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
15885
16167
  //#endregion
15886
- 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_LESSON_CAP_CHARS, 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, attributionBucket, 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 };
16168
+ 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_LESSON_CAP_CHARS, 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, FinishRepairHint, 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, SectionalRoundPlan, 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, applyFinishRepairHints, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, attributionBucket, 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, insertRunIdIntoSentence, invoiceFromJournal, isClaimJudgeLabel, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastMechanicalRepairCostUsd, 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, scopeBucket, sectionCitationsValidator, sectionPatternCountValidator, sectionalRoundPlan, 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 };