@rulvar/core 1.240.0 → 1.241.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 +110 -10
- package/dist/index.js +133 -7
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -10016,6 +10016,15 @@ interface OrchestrateAcceptance {
|
|
|
10016
10016
|
/** How many rejected finishes are repaired by default: the plan's repair once. */
|
|
10017
10017
|
declare const DEFAULT_FINISH_MAX_REPAIRS = 1;
|
|
10018
10018
|
/**
|
|
10019
|
+
* Character cap of the HOST VALIDATION LESSONS prompt block (RV3603):
|
|
10020
|
+
* the bounded repair round's prompt folds the run's journaled finish
|
|
10021
|
+
* validation failures so the round does not relearn a lesson the run
|
|
10022
|
+
* already bought, and a pathological history must not flood the
|
|
10023
|
+
* composition context. Rows keep journal order; the tail is dropped
|
|
10024
|
+
* and the block names how many rows it dropped.
|
|
10025
|
+
*/
|
|
10026
|
+
declare const FINISH_LESSON_CAP_CHARS = 2e3;
|
|
10027
|
+
/**
|
|
10019
10028
|
* Default maxTurns of the synthesize invocation (RV-211): the finish
|
|
10020
10029
|
* call plus headroom for one validator repair exchange.
|
|
10021
10030
|
*/
|
|
@@ -10038,7 +10047,8 @@ declare const DEFAULT_CLAIM_JUDGE_MAX_TURNS = 3;
|
|
|
10038
10047
|
* finish({ result }) call first passes the configured host validators;
|
|
10039
10048
|
* a rejection returns the failure reasons to the model as the call's
|
|
10040
10049
|
* error tool result and the turn continues (a repair turn: the model
|
|
10041
|
-
* fixes the result and calls finish again), bounded by maxRepairs
|
|
10050
|
+
* fixes the result and calls finish again), bounded by maxRepairs
|
|
10051
|
+
* within the composition invocation (RV3602). A
|
|
10042
10052
|
* rejection past the bound fails the run with the typed FailRunError
|
|
10043
10053
|
* (code 'fail_run', data.source 'orchestrator_finish_validation'),
|
|
10044
10054
|
* BEFORE the acceptance settle, so acceptance never judges a finish the
|
|
@@ -10067,7 +10077,14 @@ interface FinishValidationSpec {
|
|
|
10067
10077
|
* How many rejected finishes are returned to the model for repair
|
|
10068
10078
|
* before the run fails; a nonnegative integer, default
|
|
10069
10079
|
* {@link DEFAULT_FINISH_MAX_REPAIRS}. Zero means the first rejected
|
|
10070
|
-
* finish fails the run.
|
|
10080
|
+
* finish fails the run. The bound belongs to one composition
|
|
10081
|
+
* invocation (RV3602): with the bounded claim repair round armed
|
|
10082
|
+
* (`claimConsistency.onFound: 'repair'`), the initial composition
|
|
10083
|
+
* and the round each enter with the full bound, because the third
|
|
10084
|
+
* comparison run's round inherited a spent run wide pool and its
|
|
10085
|
+
* first regression was final by construction. At most two
|
|
10086
|
+
* invocations exist, so the worst case is `maxRepairs + 1` judged
|
|
10087
|
+
* finishes per invocation, twice.
|
|
10071
10088
|
*/
|
|
10072
10089
|
maxRepairs?: number;
|
|
10073
10090
|
/**
|
|
@@ -10717,10 +10734,15 @@ interface OrchestrateClaimConsistencyMeta {
|
|
|
10717
10734
|
* is a clean verdict, a positive count is a disagreement that stayed
|
|
10718
10735
|
* wherever the posture did not stop the run. The findings themselves
|
|
10719
10736
|
* ride `claimContradictions` beside this meta on the acceptance
|
|
10720
|
-
* envelope,
|
|
10721
|
-
* journaled
|
|
10722
|
-
* 2026-08-12 comparison
|
|
10723
|
-
* finding no terminal
|
|
10737
|
+
* envelope, and since RV3601 the engine lifts them onto RunOutcome,
|
|
10738
|
+
* the journaled settle and `run:end` beside the meta, from the
|
|
10739
|
+
* envelope or the typed error data alike: the 2026-08-12 comparison
|
|
10740
|
+
* run settled ok/complete over a retained finding no terminal
|
|
10741
|
+
* surface could count (this count is that fix, RV3304), then the
|
|
10742
|
+
* 2026-08-13 run failed typed with the findings buried in error
|
|
10743
|
+
* data while the outcome's top level read null. Only the compact
|
|
10744
|
+
* terminal envelope still carries the meta alone, this count
|
|
10745
|
+
* standing in for the details.
|
|
10724
10746
|
*/
|
|
10725
10747
|
findings?: number;
|
|
10726
10748
|
/**
|
|
@@ -11881,6 +11903,17 @@ declare function executeWorkflow<A, R>(internals: RunInternals, wf: Workflow<A,
|
|
|
11881
11903
|
//#endregion
|
|
11882
11904
|
//#region src/engine/cost-report.d.ts
|
|
11883
11905
|
/**
|
|
11906
|
+
* The named fallback bucket of the attribution folds (RV3604): an
|
|
11907
|
+
* absent phase, an EMPTY phase and an empty agentType all fold under
|
|
11908
|
+
* 'unknown' instead of minting a '' key. The third comparison run's
|
|
11909
|
+
* report read `byPhase {"": 5.58}` for the whole run and a '' bucket
|
|
11910
|
+
* beside the named agent types: the empty string passed the `??`
|
|
11911
|
+
* fallback, and a '' key is unaddressable in every downstream table.
|
|
11912
|
+
* Both builders and both live accumulation sites apply this one rule,
|
|
11913
|
+
* so the live report and the journal fold cannot disagree on the key.
|
|
11914
|
+
*/
|
|
11915
|
+
declare function attributionBucket(value: string | undefined): string;
|
|
11916
|
+
/**
|
|
11884
11917
|
* Folds the per-run attribution buckets into the normative CostReport.
|
|
11885
11918
|
* Live attribution buckets never see abandoned subtrees, so a host
|
|
11886
11919
|
* that tracked abandoned spend itself passes it as `abandoned`;
|
|
@@ -11991,8 +12024,15 @@ interface CostReport {
|
|
|
11991
12024
|
};
|
|
11992
12025
|
/** Keyed by canonical ModelRef 'adapterId:model'. */
|
|
11993
12026
|
byModel: Record<string, number>;
|
|
11994
|
-
/**
|
|
12027
|
+
/**
|
|
12028
|
+
* ctx.phase names; phase is structural for this map. Spend with no
|
|
12029
|
+
* phase, or an EMPTY phase, folds under the named 'unknown' bucket
|
|
12030
|
+
* (RV3604): a '' key is unaddressable in every downstream table,
|
|
12031
|
+
* and the third comparison run's report read `byPhase {"": 5.58}`
|
|
12032
|
+
* for the whole run.
|
|
12033
|
+
*/
|
|
11995
12034
|
byPhase: Record<string, number>;
|
|
12035
|
+
/** Spawn agentType names; absent and empty fold under 'unknown' (RV3604). */
|
|
11996
12036
|
byAgentType: Record<string, number>;
|
|
11997
12037
|
byRole: Record<InvocationRole, number>;
|
|
11998
12038
|
/**
|
|
@@ -12177,7 +12217,20 @@ type RunOutcome<R> = {
|
|
|
12177
12217
|
* and the error terminal carried null: the truth now rides every
|
|
12178
12218
|
* terminal that has it, ok and failed alike.
|
|
12179
12219
|
*/
|
|
12180
|
-
claimConsistencyMeta?: Record<string, unknown>;
|
|
12220
|
+
claimConsistencyMeta?: Record<string, unknown>;
|
|
12221
|
+
/**
|
|
12222
|
+
* The judged contradictions themselves (RV3601), lifted from the
|
|
12223
|
+
* same envelope or typed error data as the meta beside them. RV3304
|
|
12224
|
+
* deliberately kept the details off this surface and let the meta's
|
|
12225
|
+
* `findings` count stand in; the 2026-08-13 comparison run then
|
|
12226
|
+
* failed typed with the findings buried in `error.data` while the
|
|
12227
|
+
* outcome's top level read null beside a null meta, so the details
|
|
12228
|
+
* now ride wherever the meta rides (this outcome, the journaled
|
|
12229
|
+
* settle, `run:end`), the compact terminal envelope alone keeping
|
|
12230
|
+
* the meta only. `[]` is the judge's claim of a clean document;
|
|
12231
|
+
* absence means nothing was judged (RV1209).
|
|
12232
|
+
*/
|
|
12233
|
+
claimContradictions?: Record<string, unknown>[]; /** The synthesis-skip marker from the same envelope; same lift and posture (RV2203). */
|
|
12181
12234
|
synthesisSkipped?: boolean | string;
|
|
12182
12235
|
/**
|
|
12183
12236
|
* Whether the artifact THIS terminal carries was accepted by the
|
|
@@ -13568,6 +13621,26 @@ interface JournaledCriticalPath {
|
|
|
13568
13621
|
/** Settled judge-side synthesize spans, counted; same condition. */
|
|
13569
13622
|
judgeSpans?: number;
|
|
13570
13623
|
/**
|
|
13624
|
+
* First stamp to the FIRST settled composition-side span's end
|
|
13625
|
+
* (RV3605): when a candidate deliverable first existed, readable
|
|
13626
|
+
* from the archive. The third comparison run held a mechanically
|
|
13627
|
+
* accepted candidate 25 minutes before it lost typed, and the only
|
|
13628
|
+
* route to that fact was a span dig. Needs everything the wall
|
|
13629
|
+
* needs (one segment) plus everything the split needs (every
|
|
13630
|
+
* synthesize span labelled, or the milestone would count a judge as
|
|
13631
|
+
* a candidate); absent otherwise, never guessed.
|
|
13632
|
+
*/
|
|
13633
|
+
firstCandidateMs?: number;
|
|
13634
|
+
/**
|
|
13635
|
+
* First stamp to the LAST settled composition-side span's end; same
|
|
13636
|
+
* conditions. Time to the accepted deliverable exactly when the
|
|
13637
|
+
* terminal says `deliverableAccepted: true`; on a failed run it is
|
|
13638
|
+
* when the last LOSING candidate settled, so pair it with the
|
|
13639
|
+
* acceptance verdict and never read it as a win on an error
|
|
13640
|
+
* terminal.
|
|
13641
|
+
*/
|
|
13642
|
+
lastCandidateMs?: number;
|
|
13643
|
+
/**
|
|
13571
13644
|
* The window itemization a journal CAN answer (RV3404); present
|
|
13572
13645
|
* exactly when `postFanInMs` is.
|
|
13573
13646
|
*/
|
|
@@ -14759,7 +14832,13 @@ interface PreflightInput {
|
|
|
14759
14832
|
* the mandatory synthesis tail (RV2504): every granted repair can
|
|
14760
14833
|
* write to the output allowance, so the tail
|
|
14761
14834
|
* `synthesis-reserve-below-cap-composition` prices is one
|
|
14762
|
-
* composition plus this many turns, whatever the turn reserve
|
|
14835
|
+
* composition plus this many turns, whatever the turn reserve
|
|
14836
|
+
* says. Since RV3602 the bound belongs to one composition
|
|
14837
|
+
* invocation, so this tail is the price of EACH invocation: the
|
|
14838
|
+
* armed claim repair round (RV3307) runs a second invocation with
|
|
14839
|
+
* its own full bound, and the working room finding already prices
|
|
14840
|
+
* that round at the declared synthesis reserve, the host's own
|
|
14841
|
+
* estimate of exactly this tail.
|
|
14763
14842
|
*/
|
|
14764
14843
|
maxRepairs?: number;
|
|
14765
14844
|
/**
|
|
@@ -15563,6 +15642,27 @@ interface CriticalPath {
|
|
|
15563
15642
|
compositionSpans: number;
|
|
15564
15643
|
/** Completed judge-side synthesize spans, counted (RV3404). */
|
|
15565
15644
|
judgeSpans: number;
|
|
15645
|
+
/**
|
|
15646
|
+
* run:start to the FIRST completed composition-side synthesize
|
|
15647
|
+
* span's end (RV3605): when a candidate deliverable first existed.
|
|
15648
|
+
* The third comparison run held a mechanically accepted candidate
|
|
15649
|
+
* from its 103rd journal seq onward and lost typed 25 minutes
|
|
15650
|
+
* later; nothing on any surface said when the latent document
|
|
15651
|
+
* materialized, and the judge had to dig spans by hand. Absent
|
|
15652
|
+
* without a run:start or a completed composition span, and live
|
|
15653
|
+
* fidelity like every wall figure here.
|
|
15654
|
+
*/
|
|
15655
|
+
firstCandidateMs?: number;
|
|
15656
|
+
/**
|
|
15657
|
+
* run:start to the LAST completed composition-side span's end
|
|
15658
|
+
* (RV3605). On a run whose terminal carries `deliverableAccepted:
|
|
15659
|
+
* true` this is when the accepted composition settled, the time to
|
|
15660
|
+
* accepted deliverable; on a failed run it is when the last LOSING
|
|
15661
|
+
* candidate settled, so pair it with the acceptance verdict and
|
|
15662
|
+
* never read it as a win on an error terminal (the comparison rule
|
|
15663
|
+
* the third experiment wrote down).
|
|
15664
|
+
*/
|
|
15665
|
+
lastCandidateMs?: number;
|
|
15566
15666
|
/** postFanInMs / runWallMs when both are defined and the wall is > 0. */
|
|
15567
15667
|
postFanInShare?: number;
|
|
15568
15668
|
/** synthesisMs / runWallMs under the same conditions. */
|
|
@@ -15783,4 +15883,4 @@ interface SandboxBridge {
|
|
|
15783
15883
|
declare const SANDBOX_AGENT_OPT_KEYS: readonly string[];
|
|
15784
15884
|
declare function createSandboxBridge(ctx: Ctx<never>, options: SandboxBridgeOptions): SandboxBridge;
|
|
15785
15885
|
//#endregion
|
|
15786
|
-
export { AWAIT_SCHEMA, AbandonAttempt, AbandonFold, AbandonPayload, AbandonedSpendView, AbortClass, AcceptanceChildSummary, type AdaptiveEvents, AdmissionController, AdmissionDecision, AdmissionRejectedError, AdmissionStatsBefore, AdmitLineage, AdmitRejectReason, AdmitSpec, AdmitVerdict, AgentCallError, AgentError, type AgentEvents, AgentIdentityInput, type AgentInvocationRow, AgentOpts, AgentProfile, AgentProfilePermissions, AgentProfileTemplateOptions, AgentResult, AgentResultMeta, AgentStatus, type AppliedPricingRow, ApproachSignatureInputs, ApprovalDecision, ApprovalIdentityInput, Artifact, AttemptOutcomeClass, AuditCategory, AuditRecord, AuditRunsOptions, BUDGET_ABORT_REASON, BaseAppend, BillingComponent, BriefOpts, BudgetAccountView, BudgetDefaults, BudgetExhaustedError, BudgetExhaustionDiagnostics, BudgetHooks, BudgetReserve, type Bytes, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, CacheHint, CachePolicy, CacheTtl, CanUseTool, CanonicalId, CanonicalIdentity, CanonicalLadderSpec, CanonicalModelSpec, ChatEvent, ChatRequest, CheckpointState, ChildArtifactPage, ChildExecutionFacts, ChildIdentityInput, ChildResultPage, ChildrenAtFailure, CitationTarget, type ClaimClass, ClaimContradictionFinding, ClaimCoverageGrade, ClaimCoverageInput, type ClaimOp, ClaimPair, ClaimPairOptions, ClaimPairsFold, ClaimPoolReading, type ClaimStatus, ClaimValidationOptions, CollectOpts, CollectedTurn, CompactionConfig, CompiledPermissionChain, CompiledWorkflow, ComponentDelta, ConfigError, Contradiction, ContradictionClaim, ContradictionOptions, ContradictionSource, type CoreEvents, CostAttribution, CostAttributionFacts, type CostBasis, CostReport, CreateEngineOptions, type CriticalPath, Ctx, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, DEFAULT_MAX_TOTAL_SPAWNS, DEFAULT_MAX_TURNS, DEFAULT_MODEL_RETRY_ATTEMPTS, DEFAULT_NO_PROGRESS_TURNS, DEFAULT_PER_RUN_CONCURRENCY, DEFAULT_RETRY_POLICY, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DEFAULT_SYNTHESIS_MAX_TURNS, DEFAULT_SYNTHESIS_NOTE_MAX_TURNS, DataKeyProvider, DebitResult, DecisionChainRow, DeclaredLadder, DedupIndex, DedupNote, DedupedClaims, DelimitedStatementOptions, DerivedKey, DeriverRegistry, type DeterminismConfig, DeterminismError, type DeterminismEvents, type DeterminismMode, DispositionRule, DispositionTable, DocumentedRates, DonorCandidate, DonorRef, DroppedItem, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EffectiveUsageLimits, Effort, Engine, EngineDefaults, EngineQuotaConfig, EngineQuotaRuntime, EntryBillingFold, EntryBillingUnit, EntryKind, EntryRef, EntryStatus, EnvelopeEncryption, EnvelopeEncryptionOptions, ErrorClass, ErrorCode, ErrorPolicy, EscalatedResult, EscalationDecision, EscalationDecisionAbortedError, EscalationDigest, EscalationKind, EscalationLimits, EscalationOptions, EscalationReport, EscalationRequest, EventBus, EvidenceContract, type EvidenceRef, type ExecKeyDerivation, type ExecutorRegistry, type ExplorationSummary, ExtensionAppendInput, ExtensionDispatchSpec, ExternalIdentityInput, ExternalRegistry, ExtractNecessityInput, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FailoverTarget, FailoverTrigger, FallbackField, FallbackTrigger, FencedCodeMode, FileModelKnowledgeStore, FileModelKnowledgeStoreOptions, FileTranscriptStore, type FinalizationWindowBudget, FinishContract, FinishContractCitations, FinishContractGoldenReject, FinishContractManifest, FinishContractSectionPattern, FinishInfo, FinishSelfTestFailure, FinishSelfTestFixtures, FinishSelfTestReport, FinishValidationChild, FinishValidationInput, FinishValidationSpec, FinishValidationVerdict, FinishValidator, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, Gate, GateAudit, type GateRecord, GitWorktreeProvider, GitWorktreeProviderOptions, GraftBoot, HashVersion, HookVerdict, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, IdentityInput, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, IncrementalSynthesisResult, InvalidResolutionError, InvocationRole, type InvocationTable, InvoiceCardinality, InvoiceExport, InvoicePricingProvenance, InvoiceReconciliation, InvoiceRow, type IsolatedExecContext, type IsolatedExecRequest, type IsolatedExecutorTag, type IsolationProvider, type IsolationSpec, Issue$1 as Issue, JOURNAL_ENVELOPE_MARKER, JournalCompatSubCode, JournalCompatibilityError, JournalEntry, JournalIntegrityError, JournalMatcher, JournalMissError, JournalOperation, JournalOrderViolation, type JournalPricingSnapshot, JournalSealedError, JournalSerializationContext, JournalSerializationHook, type JournalStore, JournaledChild, JournaledChildRoster, JournaledCriticalPath, JournaledPostFanIn, JournaledSynthesisCandidate, JournaledSynthesisCandidateReport, type Json, JsonSchema, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, type KbProposal, type KbProposalTrigger, KeyDeriver, KeyRing, KeyedLimiter, KnowledgeCasError, type KnowledgeSnapshot, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LadderSpec, type LeasableStore, type Lease, LeaseHeldError, Ledger, LineageCounters, LineageIndex, LineageRef, LineageRelation, LineageStats, LogicalRunTelemetry, LogicalTaskId, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, MatchResult, McpConfig, McpToolSource, MechanicalGateProfile, MechanicalGateVerdict, MemoryQuotaLimiter, type MetaLookupStore, type ModelCaps, ModelChoice, type ModelClaim, ModelEpochInputs, type ModelKnowledgeHandle, type ModelKnowledgeStore, ModelListConstraint, ModelRef, ModelRetry, ModelSpec, Msg, NoProgressDetector, NodeId, NodeLinkValue, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OnEscalation, OperationDisposition, OrchestrateAcceptance, OrchestrateClaimConsistency, OrchestrateClaimConsistencyMeta, OrchestrateContradictions, OrchestrateContradictionsMeta, OrchestrateDraftToFinal, OrchestrateOptions, OrchestrateSynthesis, OrchestrateSynthesisSkipReason, OrchestratorBudgetSpec, OrchestratorCapConfigError, OrchestratorExtension, OrchestratorExtensionIO, OrchestratorRuntime, Out, OutputContractManifest, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, Part, PendingExternal, PendingToolTurn, PermissionConfig, PermissionGate, PermissionHook, PermissionPreset, PermissionRule, PermissionVerdict, PersistedTerminalRefusal, PersistedTerminalResult, type PhaseRow, PhaseTarget, PilotAgentProfileOptions, PilotAgentProfileResult, type PinnedPricingSegment, PipelineCollected, PipelineOpts, PlanInvariantError, type PostFanInBreakdown, PreflightAdmissionRow, PreflightFinding, PreflightInput, PreflightOrchestratorSpec, PreflightReport, PreflightSpawnReport, PreflightSpawnSpec, PreflightToolCeiling, PriceTable, PricedComponent, PricedComponents, PricedUsage, type Pricing, type PricingTier, ProgressReport, type ProviderAdapter, ProviderCallRecord, ProviderStatement, QUOTA_WINDOW_MS, QualityFloors, QuotaCounters, type QuotaDecision, type QuotaEstimate, type QuotaLimiter, type QuotaReservationRequest, QuotaRule, QuotaWindowSnapshot, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, RandIdentityInput, RandPayload, RateLimitObservation, ReconcileOptions, ReconcileResult, ReconcileStatementOptions, RefEntryAppender, RefEntryClassification, RefusalInfo, RejectedFinishCandidate, RepeatedClaim, ReplayDisposition, ReplayMode, ReplayPlanHashMismatch, Replayer, RepositoryResearchToolset, RepositoryResearchToolsetOptions, ResearchAgentProfileOptions, ResearchAgentProfileResult, ResearchEvidenceEntry, ResolutionArbiter, ResolutionAttempt, ResolutionBy, ResolutionFold, ResolutionLayer, ResolutionOutcome, ResolutionPayload, ResolvedInvocation, ResolvedToolset, ResumeHandle, ResumeOptions, ResumePreview, ResumeReport, RetryClass, RetryPolicy, ReuseConfig, RiskRuleValue, Role, RulvarError, RulvarErrorCode, RunAgentOptions, RunAuditVerdict, RunBudget, RunEventSink, RunExport, RunFactPairOptions, RunFactPairsFold, RunFactsSheet, type RunFilter, RunHandle, RunInternals, type RunMeta, RunOptions, RunOutcome, RunProfile, RunStateAudit, RunStatus, RuntimeEventSink, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxBridge, SandboxBridgeOptions, SandboxError, SandboxHostToWorker, SandboxMethod, SandboxWorkerToHost, SchemaPair, SchemaSpec, SchemaValidationResult, ScopeSegment, ScriptRejected, ScriptRunner, ScrubNote, SecretMasker, SectionMatchMode, SectionPatternEntry, SemanticPassSummary, SemanticPassesSummary, Semaphore, SerializationHook, Settled, SettlementError, ShellPatternRules, ShellSegment, ShellVerdict, SinglePhaseAppend, SpanMinter, SpanRegistry, SpawnAdmissionValue, SpawnAgentParams, SpawnKey, SpawnLineage, SpawnLineageOpt, SpawnOrigin, SpawnRecord, Spend, Stage, type StandardJSONSchemaV1, type StandardSchemaV1, StatementCategoryRow, StatementColumnMap, StatementCoverage, StatementReconciliation, StatementRequestRow, StepIdentityInput, type StreamHooks, StructuredOutputTier, SupersededError, SuspendedAppend, SuspensionState, SynthesisCandidateFailure, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, type TaskClass, TaskDigest, TaskSpec, TelemetryScope, type TerminalEnvelope, TerminalOutcomeFacts, TerminalPatch, TerminalTelemetryScopes, TerminationAccount, TerminationAccountSnapshot, TerminationDeniedValue, TerminationDeniedWriter, TerminationInitValue, TerminationLimits, TerminationResource, ToolAuthority, type ToolBudgetSummary, ToolCalibrationExclusion, ToolCalibrationReport, ToolCalibrationRow, ToolCallRequest, ToolChoice, type ToolContext, ToolContextSeed, ToolContract, type ToolDef, type ToolEvents, type ToolExecutor, type ToolExecutorProvider, ToolInit, type ToolRisk, ToolRuntime, type ToolSource, type ToolSourceSession, ToolsOption, ToolsetAttestation, TranscriptSerializationHook, type TranscriptStore, TriggerClass, TtlState, Usage, UsageLimits, UsageSlice, VerifiedRecommendation, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, WakeBudgetBlock, WakeDigest, WakeTrigger, WireError, Workflow, WorkflowCallOpts, type WorkflowEvent, type WorkflowEventBody, WorkflowRegistry, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimJudgeStageOf, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isClaimJudgeLabel, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, manifestValidators, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, reduceInvocationTable, registryKeyRing, remeasureQueue, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, unionOfIntervalsMs, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -8936,6 +8936,7 @@ const TERMINAL_TELEMETRY_SCOPE = Object.freeze({
|
|
|
8936
8936
|
childrenAtFailure: "cumulative",
|
|
8937
8937
|
semanticPasses: "terminal",
|
|
8938
8938
|
claimConsistencyMeta: "terminal",
|
|
8939
|
+
claimContradictions: "terminal",
|
|
8939
8940
|
synthesisSkipped: "terminal",
|
|
8940
8941
|
deliverableAccepted: "terminal",
|
|
8941
8942
|
resultAvailable: "terminal",
|
|
@@ -9412,6 +9413,8 @@ function reduceCriticalPath(events) {
|
|
|
9412
9413
|
let finalJudgeMs = 0;
|
|
9413
9414
|
let compositionSpans = 0;
|
|
9414
9415
|
let judgeSpans = 0;
|
|
9416
|
+
let firstCompositionEnd;
|
|
9417
|
+
let lastCompositionEnd;
|
|
9415
9418
|
const coordinationModel = [];
|
|
9416
9419
|
const coordinationTools = [];
|
|
9417
9420
|
const synthesisSpans = [];
|
|
@@ -9463,6 +9466,8 @@ function reduceCriticalPath(events) {
|
|
|
9463
9466
|
} else {
|
|
9464
9467
|
finalCompositionMs += wall;
|
|
9465
9468
|
compositionSpans += 1;
|
|
9469
|
+
firstCompositionEnd = firstCompositionEnd === void 0 ? at : firstCompositionEnd;
|
|
9470
|
+
lastCompositionEnd = lastCompositionEnd === void 0 ? at : Math.max(lastCompositionEnd, at);
|
|
9466
9471
|
}
|
|
9467
9472
|
synthesisSpans.push({
|
|
9468
9473
|
from: started.at,
|
|
@@ -9489,6 +9494,8 @@ function reduceCriticalPath(events) {
|
|
|
9489
9494
|
workerSpans
|
|
9490
9495
|
};
|
|
9491
9496
|
if (runStart !== void 0 && runEnd !== void 0) path.runWallMs = Math.max(0, runEnd - runStart);
|
|
9497
|
+
if (runStart !== void 0 && firstCompositionEnd !== void 0) path.firstCandidateMs = Math.max(0, firstCompositionEnd - runStart);
|
|
9498
|
+
if (runStart !== void 0 && lastCompositionEnd !== void 0) path.lastCandidateMs = Math.max(0, lastCompositionEnd - runStart);
|
|
9492
9499
|
if (runEnd !== void 0 && lastWorkerEnd !== void 0) {
|
|
9493
9500
|
path.postFanInMs = Math.max(0, runEnd - lastWorkerEnd);
|
|
9494
9501
|
const windowFrom = Math.min(lastWorkerEnd, runEnd);
|
|
@@ -9583,6 +9590,8 @@ function criticalPathFromJournal(entries) {
|
|
|
9583
9590
|
let finalJudgeMs = 0;
|
|
9584
9591
|
let compositionSpans = 0;
|
|
9585
9592
|
let judgeSpans = 0;
|
|
9593
|
+
let firstCompositionEnd;
|
|
9594
|
+
let lastCompositionEnd;
|
|
9586
9595
|
let labelledSynthesis = false;
|
|
9587
9596
|
let unlabelledSynthesis = false;
|
|
9588
9597
|
const synthSpans = [];
|
|
@@ -9626,6 +9635,8 @@ function criticalPathFromJournal(entries) {
|
|
|
9626
9635
|
} else {
|
|
9627
9636
|
finalCompositionMs += wall;
|
|
9628
9637
|
compositionSpans += 1;
|
|
9638
|
+
firstCompositionEnd = firstCompositionEnd === void 0 ? endedAt : Math.min(firstCompositionEnd, endedAt);
|
|
9639
|
+
lastCompositionEnd = lastCompositionEnd === void 0 ? endedAt : Math.max(lastCompositionEnd, endedAt);
|
|
9629
9640
|
}
|
|
9630
9641
|
synthSpans.push({
|
|
9631
9642
|
from: startedAt,
|
|
@@ -9651,6 +9662,8 @@ function criticalPathFromJournal(entries) {
|
|
|
9651
9662
|
}
|
|
9652
9663
|
if (segments > 1 || runStart === void 0 || runEnd === void 0) return path;
|
|
9653
9664
|
path.runWallMs = Math.max(0, runEnd - runStart);
|
|
9665
|
+
if (splitLegible && firstCompositionEnd !== void 0) path.firstCandidateMs = Math.max(0, firstCompositionEnd - runStart);
|
|
9666
|
+
if (splitLegible && lastCompositionEnd !== void 0) path.lastCandidateMs = Math.max(0, lastCompositionEnd - runStart);
|
|
9654
9667
|
if (lastWorkerEnd !== void 0) {
|
|
9655
9668
|
path.postFanInMs = Math.max(0, runEnd - lastWorkerEnd);
|
|
9656
9669
|
const windowFrom = Math.min(lastWorkerEnd, runEnd);
|
|
@@ -15634,6 +15647,28 @@ function isOrchestratorAccount(scope) {
|
|
|
15634
15647
|
return scope === "orchestrator" || scope.endsWith("/orchestrator");
|
|
15635
15648
|
}
|
|
15636
15649
|
/**
|
|
15650
|
+
* The named fallback bucket of the attribution folds (RV3604): an
|
|
15651
|
+
* absent phase, an EMPTY phase and an empty agentType all fold under
|
|
15652
|
+
* 'unknown' instead of minting a '' key. The third comparison run's
|
|
15653
|
+
* report read `byPhase {"": 5.58}` for the whole run and a '' bucket
|
|
15654
|
+
* beside the named agent types: the empty string passed the `??`
|
|
15655
|
+
* fallback, and a '' key is unaddressable in every downstream table.
|
|
15656
|
+
* Both builders and both live accumulation sites apply this one rule,
|
|
15657
|
+
* so the live report and the journal fold cannot disagree on the key.
|
|
15658
|
+
*/
|
|
15659
|
+
function attributionBucket(value) {
|
|
15660
|
+
return value === void 0 || value === "" ? "unknown" : value;
|
|
15661
|
+
}
|
|
15662
|
+
/** {@link attributionBucket} over a whole live map, merging folded keys. */
|
|
15663
|
+
function foldBuckets(source) {
|
|
15664
|
+
const folded = {};
|
|
15665
|
+
for (const [key, usd] of source) {
|
|
15666
|
+
const bucket = attributionBucket(key);
|
|
15667
|
+
folded[bucket] = (folded[bucket] ?? 0) + usd;
|
|
15668
|
+
}
|
|
15669
|
+
return folded;
|
|
15670
|
+
}
|
|
15671
|
+
/**
|
|
15637
15672
|
* Folds the per-run attribution buckets into the normative CostReport.
|
|
15638
15673
|
* Live attribution buckets never see abandoned subtrees, so a host
|
|
15639
15674
|
* that tracked abandoned spend itself passes it as `abandoned`;
|
|
@@ -15661,8 +15696,8 @@ function buildCostReport(attribution, totalUsd, abandoned = {
|
|
|
15661
15696
|
grossUsd: totalUsd + abandoned.usd,
|
|
15662
15697
|
abandoned,
|
|
15663
15698
|
byModel: Object.fromEntries(attribution.byModel),
|
|
15664
|
-
byPhase:
|
|
15665
|
-
byAgentType:
|
|
15699
|
+
byPhase: foldBuckets(attribution.byPhase),
|
|
15700
|
+
byAgentType: foldBuckets(attribution.byAgentType),
|
|
15666
15701
|
byRole,
|
|
15667
15702
|
orchestrator: {
|
|
15668
15703
|
...orchestrator,
|
|
@@ -15727,9 +15762,9 @@ function costReportFromJournal(entries, priceUsd) {
|
|
|
15727
15762
|
totalUsd += priced.usd;
|
|
15728
15763
|
if (entry.usageApprox === true) usageApprox = true;
|
|
15729
15764
|
const facts = entry.costAttribution;
|
|
15730
|
-
const phase = facts?.phase
|
|
15765
|
+
const phase = attributionBucket(facts?.phase);
|
|
15731
15766
|
byPhase[phase] = (byPhase[phase] ?? 0) + priced.usd;
|
|
15732
|
-
const agentType = facts?.agentType
|
|
15767
|
+
const agentType = attributionBucket(facts?.agentType);
|
|
15733
15768
|
byAgentType[agentType] = (byAgentType[agentType] ?? 0) + priced.usd;
|
|
15734
15769
|
const primaryRole = facts?.role ?? "loop";
|
|
15735
15770
|
for (const unit of priced.units) byRole[unit.role ?? primaryRole] += unit.usd;
|
|
@@ -22592,6 +22627,15 @@ function selfTestFinishValidation(options) {
|
|
|
22592
22627
|
/** How many rejected finishes are repaired by default: the plan's repair once. */
|
|
22593
22628
|
const DEFAULT_FINISH_MAX_REPAIRS = 1;
|
|
22594
22629
|
/**
|
|
22630
|
+
* Character cap of the HOST VALIDATION LESSONS prompt block (RV3603):
|
|
22631
|
+
* the bounded repair round's prompt folds the run's journaled finish
|
|
22632
|
+
* validation failures so the round does not relearn a lesson the run
|
|
22633
|
+
* already bought, and a pathological history must not flood the
|
|
22634
|
+
* composition context. Rows keep journal order; the tail is dropped
|
|
22635
|
+
* and the block names how many rows it dropped.
|
|
22636
|
+
*/
|
|
22637
|
+
const FINISH_LESSON_CAP_CHARS = 2e3;
|
|
22638
|
+
/**
|
|
22595
22639
|
* Default maxTurns of the synthesize invocation (RV-211): the finish
|
|
22596
22640
|
* call plus headroom for one validator repair exchange.
|
|
22597
22641
|
*/
|
|
@@ -24056,10 +24100,33 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
24056
24100
|
callId: decision.callId,
|
|
24057
24101
|
failed: decision.failed,
|
|
24058
24102
|
repairsUsed: decision.repairsUsed,
|
|
24059
|
-
maxRepairs: decision.maxRepairs
|
|
24103
|
+
maxRepairs: decision.maxRepairs,
|
|
24104
|
+
...decision.candidateHash === void 0 ? {} : { candidateHash: decision.candidateHash },
|
|
24105
|
+
...decision.candidateChars === void 0 ? {} : { candidateChars: decision.candidateChars }
|
|
24060
24106
|
} });
|
|
24061
24107
|
const validationDecisions = () => internals.replayer.snapshot().filter((entry) => entry.kind === "decision" && entry.scope === callingState.scope && entry.value?.decisionType === "orchestrator_finish_validation").map((entry) => entry.value);
|
|
24062
24108
|
/**
|
|
24109
|
+
* Where the CURRENT composition invocation's verdicts begin
|
|
24110
|
+
* (RV3602): an index into validationDecisions(), captured from the
|
|
24111
|
+
* journaled verdict count at each synthesis dispatch, so the
|
|
24112
|
+
* mechanical repair pool belongs to one composition invocation.
|
|
24113
|
+
* The third comparison run's initial composition spent the single
|
|
24114
|
+
* run wide repair (default maxRepairs 1), so the bounded claim
|
|
24115
|
+
* repair round (RV3307) entered with zero mechanical retries BY
|
|
24116
|
+
* CONSTRUCTION and its first regression was final: the round was
|
|
24117
|
+
* structurally doomed whenever the initial composition had used
|
|
24118
|
+
* its retry. Cycle 73 scoped the pool to the contract generation;
|
|
24119
|
+
* this scopes it to the invocation on the same doctrine, the pool
|
|
24120
|
+
* spender must be the thing that gets the bound. Replay stable:
|
|
24121
|
+
* a resume replays the identical decision prefix, so the captured
|
|
24122
|
+
* index is identical. Validators bound to the coordination loop
|
|
24123
|
+
* (no synthesis) keep the zero baseline: one loop, one invocation,
|
|
24124
|
+
* the pre RV3602 pool byte for byte. Worst case stays bounded:
|
|
24125
|
+
* at most two composition invocations exist (the initial and one
|
|
24126
|
+
* RV3307 round), each granting at most maxRepairs repair turns.
|
|
24127
|
+
*/
|
|
24128
|
+
let validationInvocationStart = 0;
|
|
24129
|
+
/**
|
|
24063
24130
|
* The contract generation membership test (cycle 73). Without a
|
|
24064
24131
|
* contract there are no generations and every decision is current
|
|
24065
24132
|
* (the pre 1.77 behavior, byte identical). With one, a decision
|
|
@@ -24076,6 +24143,40 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
24076
24143
|
return internals.replayer.snapshot().filter((entry) => entry.kind === "decision" && entry.scope === callingState.scope && entry.value?.decisionType === "orchestrator_finish_validation_bundle").length <= 1;
|
|
24077
24144
|
};
|
|
24078
24145
|
/**
|
|
24146
|
+
* The HOST VALIDATION LESSONS block (RV3603): the third comparison
|
|
24147
|
+
* run's repair round regressed provenance, the exact class the
|
|
24148
|
+
* initial composition's mechanical loop had fixed minutes earlier,
|
|
24149
|
+
* because the round is a FRESH invocation with no memory of
|
|
24150
|
+
* exchanges it never saw. The block folds the run's journaled
|
|
24151
|
+
* finish validation failures (current contract generation only,
|
|
24152
|
+
* deduplicated by validator and reasons, journal order) so the
|
|
24153
|
+
* round keeps the lessons the run already paid for. Derived ONLY
|
|
24154
|
+
* from journaled decisions: a resume re-derives identical bytes.
|
|
24155
|
+
* Capped at {@link FINISH_LESSON_CAP_CHARS}; the dropped row count
|
|
24156
|
+
* is named, never silent.
|
|
24157
|
+
*/
|
|
24158
|
+
const hostValidationLessons = () => {
|
|
24159
|
+
const rows = [];
|
|
24160
|
+
const seen = /* @__PURE__ */ new Set();
|
|
24161
|
+
for (const decision of validationDecisions()) {
|
|
24162
|
+
if (decision.failed.length === 0 || !contractGenerationCurrent(decision)) continue;
|
|
24163
|
+
for (const failure of decision.failed) {
|
|
24164
|
+
const key = JSON.stringify([failure.name, failure.reasons]);
|
|
24165
|
+
if (seen.has(key)) continue;
|
|
24166
|
+
seen.add(key);
|
|
24167
|
+
rows.push({
|
|
24168
|
+
validator: failure.name,
|
|
24169
|
+
reasons: failure.reasons
|
|
24170
|
+
});
|
|
24171
|
+
}
|
|
24172
|
+
}
|
|
24173
|
+
if (rows.length === 0) return [];
|
|
24174
|
+
let kept = rows.length;
|
|
24175
|
+
while (kept > 1 && JSON.stringify(rows.slice(0, kept)).length > 2e3) kept -= 1;
|
|
24176
|
+
const dropped = rows.length - kept;
|
|
24177
|
+
return ["HOST VALIDATION LESSONS: earlier composition attempts in this run failed the declared finish contract exactly so; keep the repaired result clear of these failures while resolving the contradictions. " + JSON.stringify(rows.slice(0, kept)) + (dropped === 0 ? "" : ` (${String(dropped)} lesson row${dropped === 1 ? "" : "s"} truncated)`)];
|
|
24178
|
+
};
|
|
24179
|
+
/**
|
|
24079
24180
|
* The children snapshot (RV-202): spawn order, pure reads of the
|
|
24080
24181
|
* records the orchestrator already tracks, so validators can hold
|
|
24081
24182
|
* a finish result (or the RV510 draft pre-pass) against the
|
|
@@ -24236,7 +24337,7 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
24236
24337
|
reasons: verdict.reasons
|
|
24237
24338
|
});
|
|
24238
24339
|
}
|
|
24239
|
-
const repairsUsed = known.filter((candidate) => candidate.verdict !== "accepted" && contractGenerationCurrent(candidate)).length;
|
|
24340
|
+
const repairsUsed = known.filter((candidate, index) => index >= validationInvocationStart && candidate.verdict !== "accepted" && contractGenerationCurrent(candidate)).length;
|
|
24240
24341
|
const rejectedCandidate = failed.length > 0;
|
|
24241
24342
|
let candidateRef;
|
|
24242
24343
|
if (rejectedCandidate && validationSpec.retainRejectedCandidates === true) {
|
|
@@ -25438,6 +25539,7 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
25438
25539
|
...draftGaps === void 0 ? [] : ["DRAFT CONTRACT GAPS: the coordination draft failed exactly these declared validators; repair the named gaps and preserve the draft otherwise. " + JSON.stringify(draftGaps)],
|
|
25439
25540
|
...opts?.contradictions?.onFound !== "carry" || contradictionsFound === void 0 || contradictionsFound.length === 0 ? [] : ["CHILD CONTRADICTIONS: the settled children read these cited locations differently; resolve each one EXPLICITLY in the final result (say which reading holds and why it does) instead of silently picking one. " + JSON.stringify(contradictionsFound)],
|
|
25440
25541
|
...opts?.claimConsistency?.onFound !== "carry" && opts?.claimConsistency?.onFound !== "repair" || claimFindingsFound === void 0 || claimFindingsFound.length === 0 ? [] : ["CLAIM CONTRADICTIONS: the composed draft contradicts the settled child pool at these cited locations; resolve each one EXPLICITLY in the final result (say which reading holds and why) instead of keeping the inverted claim. " + JSON.stringify(claimFindingsFound)],
|
|
25542
|
+
...opts?.claimConsistency?.onFound !== "carry" && opts?.claimConsistency?.onFound !== "repair" || claimFindingsFound === void 0 || claimFindingsFound.length === 0 ? [] : hostValidationLessons(),
|
|
25441
25543
|
...spec.policyFacts === true ? [(() => {
|
|
25442
25544
|
const byStatus = {};
|
|
25443
25545
|
let extensionsGranted = 0;
|
|
@@ -25563,6 +25665,7 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
25563
25665
|
}
|
|
25564
25666
|
}
|
|
25565
25667
|
};
|
|
25668
|
+
validationInvocationStart = validationDecisions().length;
|
|
25566
25669
|
const synthesized = await runtime.runInScope(synthesisState, () => ctx.agent(prompt, synthesisOpts));
|
|
25567
25670
|
noteInternalSettle(synthesized);
|
|
25568
25671
|
synthesisSchemaRejectedExchanges = synthesized.schemaRejectedTerminalExchanges ?? 0;
|
|
@@ -26292,10 +26395,30 @@ function makeOrchestratorWorkflow(goal, opts) {
|
|
|
26292
26395
|
synthesizedFinal = await runSynthesis(result.output);
|
|
26293
26396
|
} catch (thrown) {
|
|
26294
26397
|
await journalSynthesisAdmissionDecline(thrown);
|
|
26398
|
+
const hostRejection = thrown instanceof FailRunError && typeof thrown.data === "object" && thrown.data !== null && !Array.isArray(thrown.data) && thrown.data.source === "orchestrator_finish_validation" ? thrown.data : void 0;
|
|
26399
|
+
if (hostRejection !== void 0) throw new FailRunError(`the claim-consistency repair round dispatched and its repaired candidate failed host validation (${thrown instanceof Error ? thrown.message.slice(0, 300) : String(thrown)}); ${String(carried.length)} judged contradiction${carried.length === 1 ? "" : "s"} stand unconsumed and a gate armed to repair must not pass silently`, { data: {
|
|
26400
|
+
source: "orchestrator_claim_consistency",
|
|
26401
|
+
claimContradictions: carried,
|
|
26402
|
+
claimConsistencyMeta,
|
|
26403
|
+
repairsUsed: 1,
|
|
26404
|
+
roundDispatched: true,
|
|
26405
|
+
preRepairHash,
|
|
26406
|
+
finishValidation: {
|
|
26407
|
+
...hostRejection.callId === void 0 ? {} : { callId: hostRejection.callId },
|
|
26408
|
+
...hostRejection.failed === void 0 ? {} : { failed: hostRejection.failed },
|
|
26409
|
+
...hostRejection.repairsUsed === void 0 ? {} : { repairsUsed: hostRejection.repairsUsed },
|
|
26410
|
+
...hostRejection.maxRepairs === void 0 ? {} : { maxRepairs: hostRejection.maxRepairs },
|
|
26411
|
+
...hostRejection.candidateHash === void 0 ? {} : { candidateHash: hostRejection.candidateHash },
|
|
26412
|
+
...hostRejection.candidateChars === void 0 ? {} : { candidateChars: hostRejection.candidateChars }
|
|
26413
|
+
},
|
|
26414
|
+
...acceptanceSnapshot
|
|
26415
|
+
} });
|
|
26295
26416
|
throw new FailRunError(`the claim-consistency repair round could not dispatch (${thrown instanceof Error ? thrown.message.slice(0, 300) : String(thrown)}); ${String(carried.length)} judged contradiction${carried.length === 1 ? "" : "s"} stand unconsumed and a gate armed to repair must not pass silently`, { data: {
|
|
26296
26417
|
source: "orchestrator_claim_consistency",
|
|
26297
26418
|
claimContradictions: carried,
|
|
26419
|
+
claimConsistencyMeta,
|
|
26298
26420
|
repairsUsed: 0,
|
|
26421
|
+
roundDispatched: false,
|
|
26299
26422
|
preRepairHash,
|
|
26300
26423
|
...acceptanceSnapshot
|
|
26301
26424
|
} });
|
|
@@ -28119,6 +28242,8 @@ function liftRunCompletion(candidate) {
|
|
|
28119
28242
|
}
|
|
28120
28243
|
const metaCandidate = candidate.claimConsistencyMeta;
|
|
28121
28244
|
if (typeof metaCandidate === "object" && metaCandidate !== null && !Array.isArray(metaCandidate)) lifted.claimConsistencyMeta = { ...metaCandidate };
|
|
28245
|
+
const findingsCandidate = candidate.claimContradictions;
|
|
28246
|
+
if (Array.isArray(findingsCandidate) && findingsCandidate.every((row) => typeof row === "object" && row !== null && !Array.isArray(row) && typeof row.reason === "string")) lifted.claimContradictions = findingsCandidate.map((row) => ({ ...row }));
|
|
28122
28247
|
const skippedCandidate = candidate.synthesisSkipped;
|
|
28123
28248
|
if (typeof skippedCandidate === "boolean" || typeof skippedCandidate === "string") lifted.synthesisSkipped = skippedCandidate;
|
|
28124
28249
|
const acceptedCandidate = candidate.deliverableAccepted;
|
|
@@ -28755,6 +28880,7 @@ function createEngine(options) {
|
|
|
28755
28880
|
if (lifted.acceptanceChildren !== void 0) outcomeFacts.acceptanceChildren = lifted.acceptanceChildren;
|
|
28756
28881
|
if (lifted.semanticPasses !== void 0) outcomeFacts.semanticPasses = lifted.semanticPasses;
|
|
28757
28882
|
if (lifted.claimConsistencyMeta !== void 0) outcomeFacts.claimConsistencyMeta = lifted.claimConsistencyMeta;
|
|
28883
|
+
if (lifted.claimContradictions !== void 0) outcomeFacts.claimContradictions = lifted.claimContradictions;
|
|
28758
28884
|
if (lifted.synthesisSkipped !== void 0) outcomeFacts.synthesisSkipped = lifted.synthesisSkipped;
|
|
28759
28885
|
if (lifted.deliverableAccepted !== void 0) outcomeFacts.deliverableAccepted = lifted.deliverableAccepted;
|
|
28760
28886
|
if (lifted.resultAvailable !== void 0) outcomeFacts.resultAvailable = lifted.resultAvailable;
|
|
@@ -29444,4 +29570,4 @@ function createSandboxBridge(ctx, options) {
|
|
|
29444
29570
|
};
|
|
29445
29571
|
}
|
|
29446
29572
|
//#endregion
|
|
29447
|
-
export { AWAIT_SCHEMA, AdmissionController, AdmissionRejectedError, AgentCallError, BUDGET_ABORT_REASON, BudgetExhaustedError, CANCEL_AGENT_SCHEMA, CHECKPOINT_FORMAT_V1, CLAIM_JUDGE_LABEL, CLAIM_STATEMENT_MAX_CHARS, CLAIM_TTL_DAYS, COMPACTION_SUMMARY_PREFIX, CURRENT_HASH_VERSION, ConfigError, DECISION_CHAIN_KINDS, DEFAULT_ANCHOR_PATTERN, DEFAULT_ARTIFACT_PATTERN, DEFAULT_CHILD_BUDGET_FRACTION, DEFAULT_CHILD_RESULT_PAGE_CHARS, DEFAULT_CITATION_PATTERN, DEFAULT_CITATION_SAMPLE, DEFAULT_CLAIM_JUDGE_MAX_TURNS, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ESCALATION_LIMITS, DEFAULT_EVIDENCE_CALLS_PER_ENTRY, DEFAULT_EVIDENCE_GRADE_PHRASES, DEFAULT_EVIDENCE_MIN_SHARE, DEFAULT_EVIDENCE_OVERHEAD_CALLS, DEFAULT_FINISH_MAX_REPAIRS, DEFAULT_FLAT_RESERVE_USD, DEFAULT_MAX_CHILDREN_PER_NODE, DEFAULT_MAX_CLAIM_PAIRS, DEFAULT_MAX_CONTRADICTIONS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_EXCERPT_CHARS, DEFAULT_MAX_OSCILLATIONS_PER_KEY, DEFAULT_MAX_PAIR_EXCERPT_CHARS, DEFAULT_MAX_PINNED_WORKTREES, DEFAULT_MAX_POOL_PER_PAIR, DEFAULT_MAX_QUOTA_DENIALS, DEFAULT_MAX_REVISIONS_PER_RUN, DEFAULT_MAX_RUN_FACT_PAIRS, DEFAULT_MAX_TOTAL_SPAWNS, DEFAULT_MAX_TURNS, DEFAULT_MODEL_RETRY_ATTEMPTS, DEFAULT_NO_PROGRESS_TURNS, DEFAULT_PER_RUN_CONCURRENCY, DEFAULT_RETRY_POLICY, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DEFAULT_SYNTHESIS_MAX_TURNS, DEFAULT_SYNTHESIS_NOTE_MAX_TURNS, DedupIndex, DeterminismError, EMIT_RESULT_TOOL, EMPTY_AUTHORITY_HASH, EMPTY_SCHEMA_HASH, EMPTY_TOOLSET_HASH, ESCALATE_TOOL_NAME, ESCALATION_REPORT_SCHEMA, ESCALATION_REQUEST_SCHEMA, EVENT_SEGMENT_STRIDE, EXPOSURE_WAIT_SWEEP_MS, EscalationDecisionAbortedError, EventBus, ExternalRegistry, FINALIZE_SYNTHESIS_INSTRUCTION, FINAL_COMPOSITION_LABEL, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FileModelKnowledgeStore, FileTranscriptStore, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, GitWorktreeProvider, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, InvalidResolutionError, JOURNAL_ENVELOPE_MARKER, JournalCompatibilityError, JournalIntegrityError, JournalMatcher, JournalMissError, JournalOrderViolation, JournalSealedError, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, KeyedLimiter, KnowledgeCasError, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LeaseHeldError, LineageIndex, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, ModelRetry, NoProgressDetector, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OrchestratorCapConfigError, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, PlanInvariantError, QUOTA_WINDOW_MS, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, ReplayPlanHashMismatch, Replayer, ResolutionArbiter, ResolutionFold, RulvarError, RunBudget, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxError, ScriptRejected, Semaphore, SettlementError, SpanRegistry, SupersededError, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, TerminationAccount, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, auditRun, auditRuns, buildAbandonFold, buildAdapterRegistry, buildCostReport, buildDeriverRegistry, buildOrchestratorTools, buildTerminationInitValue, buildToolContext, canRideLoopTurn, canonicalIsolationTag, canonicalizeLadder, canonicalizeSchema, capIssues, capsHashOf, checkFloors, checkpointRefFor, childCoveragePrefix, childRostersFromJournal, citationTargetsValidator, citedValueValidator, claimCoverageOf, claimExpired, claimExpiry, claimIssues, claimJudgeStageOf, claimOpIssues, classifyAgentError, classifyAttemptOutcome, collectDeclaredLadders, compactMessages, compareRates, compilePermissionChain, compilePermissionPreset, compileSecretMasker, compileVerifiedLayer, constantTimeEqual, costReportFromJournal, countsAgainstLimit, createCanonicalIdMinter, createCtx, createEngine, createEnvelopeEncryption, createSandboxBridge, criticalPathFromJournal, currentOnlyKeyRing, decodeCheckpoint, dedupeRepeatedClaims, defineWorkflow, deriveContentKey, deriverV1, deriverV2, digestOf, dispatchProjectionReserveUsd, dispositionHook, emptyDigestBlocks, emptyToolset, encodeCheckpoint, enforceToolsetAttestation, entryUsageSlices, escalateTool, evaluatePermission, evaluateReuse, evidenceGradeValidator, evidencePreservedValidator, executeWorkflow, executionFactsOf, exhaustionCodeOf, extractCandidate, failoverTriggerOf, fallbackTriggerOf, filterClaimsForRun, finalizeFires, findContradictions, finishContract, foldLedger, foldTermination, formatCharacterValidator, formatRePrompt, formatScopePath, hasFencedWrites, hasMetaLookup, hashRunArgs, hashRunOutput, hashWorkflowBody, hashWorkflowSource, headingStructureValidator, identityJcs, implementationAgentProfile, invoiceFromJournal, isClaimJudgeLabel, isEscalated, isSchemaPairSpec, isStandardSchemaSpec, isStrictCompatibleSchema, journalPricingSnapshot, kMaxOf, knowledgeHash, ladderLengthOf, ladderRungChoice, lastRunSettle, latestProgressReport, lexShellCommand, liftRetainedParts, lineageWeightOf, localKeyProvider, logicalRunTelemetry, makeOrchestratorWorkflow, manifestValidators, maskSecrets, maskSecretsDeep, maskSecretsJson, matchArgvPattern, matchShellCommand, mcp, memoryQuotaLimiter, mergeQuotaDenial, mergeUsageLimits, metaMatchesFilter, minMatchesValidator, modelEpochOf, modelKnowledgeCard, modelSpecIdentity, needsSeparateExtract, nextFailover, nodeLinkKey, normalizeApproachTag, normalizeEntry, normalizeFallbacks, orchestrate, orchestratorAdmissionEstCostUsd, pairDraftClaims, pairRunFactClaims, parallelScope, parseModelRef, parseScopePath, persistedTerminalEnvelope, phiInitialOf, pilotAgentProfile, pipelineScope, planNodeScope, preflightEstimate, priceComponentsOf, priceEntryBilling, priceEntryUsage, priceUsdOf, profileCard, profileRegistrySnapshotHash, progressReportTool, projectHistory, projectIdentity, projectToJsonSchema, proposalStatement, providerOf, quotaActualRequestsDelta, quotaActualTokens, quotaEstimateTokens, quotaRuleAdmission, quotaRuleKey, quotaRuleMatches, readRunMeta, readTerminationInit, reconcileRunMeta, reconcileStatement, reduceAuditTrail, reduceCriticalPath, reduceDecisionChain, reduceInvocationTable, registryKeyRing, remeasureQueue, renderContractRequirements, replayDisposition, repositoryResearchToolset, requiredFieldsValidator, requiredMentionsValidator, requiredSectionsValidator, researchAgentProfile, resolveModelInvocation, resolvePricing, resolveToolset, retryClassOf, retryDelayMs, reviewAgentProfile, roleConfiguredInRouting, roundOneDisposition, runAgent, runProfile, sanitizeTerminalText, sanitizeTokenCount, sanitizeUsage, sanitizeUsageDelta, scanJournalCompatibility, schemaHash, schemaHashOfSpec, sectionCitationsValidator, sectionPatternCountValidator, selectStructuredOutputTier, selfTestFinishValidation, shouldCompact, snapshotQuotaRules, snapshotUsage, spawnDepthOf, spliceSections, statementFromRows, statementRowsFromDelimited, stripFencedBlocks, sumUsage, summarizeInstruction, summarizeOutput, synthesisCandidatesFromJournal, terminalEnvelopeOf, terminationConfigDrift, tierWithinCaps, toApprovalDecision, toJournalValue, tool, toolAuthority, toolCalibrationFromJournal, toolContract, toolContractHash, toolsetAuthorityHash, toolsetHash, ttlState, unionOfIntervalsMs, usageViolations, validateDetachedResolution, validateEditorialCommit, validateEngineQuotaConfig, validateEntryShape, validateEscalationLimits, validateEscalationReport, validateQuotaRules, validateRetryPolicy, validateSchemaSpec, validateTerminationLimits, validateToolsetAttestation, validateUsageLimits, wordCountValidator, workflowScope, workflowSourceRef, wrapJournalStore, wrapTranscriptStore };
|
|
29573
|
+
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_LESSON_CAP_CHARS, FINISH_SCHEMA, FINISH_SECTIONAL_SCHEMA, FINISH_TOOL_NAME, FUTURE_RATES_TOLERANCE_MS, FailRunError, FileModelKnowledgeStore, FileTranscriptStore, GET_CHILD_RESULT_SCHEMA, GET_CHILD_RESULT_TOOL_NAME, GET_SETTLED_CHILD_RESULTS_SCHEMA, GET_SETTLED_CHILD_RESULTS_TOOL_NAME, GitWorktreeProvider, IMPLEMENTATION_PROFILE_LIMITS, INBOX_PROPOSAL_TTL_DAYS, IN_FLIGHT_EXPOSURE_REFUSAL_PREFIX, InMemoryStore, InMemoryTranscriptStore, InProcessRunner, InvalidResolutionError, JOURNAL_ENVELOPE_MARKER, JournalCompatibilityError, JournalIntegrityError, JournalMatcher, JournalMissError, JournalOrderViolation, JournalSealedError, JsonlFileStore, KB_ACTIVE_CLAIMS_CAP, KB_CARD_RENDER_BUDGET_CHARS, KeyedLimiter, KnowledgeCasError, LARGE_VALUE_WARN_BYTES, LEGACY_LTID_PREFIX, LEGACY_SIGNATURE_INPUTS, LINEAGE_SIG_VERSION, LeaseHeldError, LineageIndex, MASKED_SECRET, MAX_CHILD_RESULT_PAGE_CHARS, MAX_CRITICAL_UNCOVERED, MAX_DEPTH_CEILING, MAX_RUN_FACTS_SHEET_CHARS, MAX_RUN_ID_LENGTH, MAX_TIMER_DELAY_MS, ModelRetry, NoProgressDetector, NonSerializableValueError, ORCHESTRATE_WORKFLOW_NAME, OrchestratorCapConfigError, PARALLEL_AGENTS_SCHEMA, PROGRESS_REPORT_TOOL_NAME, ParallelSiteCounter, PlanInvariantError, QUOTA_WINDOW_MS, READ_CHILD_ARTIFACT_SCHEMA, READ_CHILD_ARTIFACT_TOOL_NAME, RESEARCH_PROFILE_LIMITS, REVIEW_PROFILE_LIMITS, ROLE_EFFORT_DEFAULTS, ROOT_ACCOUNT, ROOT_SCOPE, RUN_FACTS_ANCHOR, RUN_PROFILES, RUN_SETTLE_DECISION_TYPE, ReplayPlanHashMismatch, Replayer, ResolutionArbiter, ResolutionFold, RulvarError, RunBudget, SANDBOX_AGENT_OPT_KEYS, SPAWN_ADMISSION_DECISION_TYPE, SPAWN_AGENT_SCHEMA, SYNTHESIS_NOTE_LABEL, SandboxError, ScriptRejected, Semaphore, SettlementError, SpanRegistry, SupersededError, TERMINAL_TELEMETRY_SCOPE, TOOL_NAME_PATTERN, TerminationAccount, WAIT_FOR_EVENTS_SCHEMA, WAIT_FOR_EVENTS_TOOL_NAME, WAKE_SUMMARY_RENDER_BUDGET_CHARS, accountSpendFromJournal, admissionReserveUsd, affordableOutputTokens, agentErrorFromWire, agentErrorToWire, agentResultWire, agentScope, applyClaimOps, applyStructuredOutputTier, approachSigCoarse, approachSigOf, archiveDeprecatedModelOps, assertFencedWrites, assertSafeRunId, atCompactionThreshold, attestToolset, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.241.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",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"build": "tsdown",
|
|
47
47
|
"typecheck": "tsc --noEmit",
|
|
48
48
|
"lint": "eslint .",
|
|
49
|
+
"test": "pnpm -w exec vitest run --project @rulvar/core",
|
|
49
50
|
"pack-check": "publint --pack pnpm && attw --pack . --profile esm-only"
|
|
50
51
|
}
|
|
51
52
|
}
|