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