omnius 1.0.963 → 1.0.965

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.
@@ -11,7 +11,8 @@ export interface NativeFileWriteObservation {
11
11
  readonly schema: 'omnius.native-file-write-observation.v1';
12
12
  readonly kind: 'pre_effect_overwrite_refusal' | 'committed_mutation';
13
13
  readonly canonicalTarget: string;
14
- readonly beforeSha256: string;
14
+ /** Null identifies a FileWrite creation that committed from an absent path. */
15
+ readonly beforeSha256: string | null;
15
16
  readonly afterSha256: string;
16
17
  readonly scope: Readonly<NativeFileWriteInvocationScope>;
17
18
  }
@@ -75,6 +75,16 @@ export interface CommandEvidenceReceipt {
75
75
  };
76
76
  /** Optional immutable pointer to a spilled full command transcript. */
77
77
  outputRef?: string;
78
+ /** Native direct execution substituted for a display-only test pipeline. */
79
+ verificationPreview?: {
80
+ framework: "pytest" | "python_unittest";
81
+ outputRef: string;
82
+ stdoutSha256: string;
83
+ stderrSha256: string;
84
+ passedTests: number;
85
+ /** Present when scoped verifier inputs were captured unchanged before and after execution. */
86
+ testedRevision?: string;
87
+ };
78
88
  /** Exact explicit task artifacts observed by this local command, when the
79
89
  * controller can attest the relationship. This is never inferred from
80
90
  * display output and never grants verification authority by itself. */
@@ -241,6 +251,12 @@ export interface ToolInvocationContext {
241
251
  assertCurrent?: () => void;
242
252
  /** Host-authored correlation for one actual process; never model arguments. */
243
253
  shellRun?: import("./shell-runs.js").ShellRunInvocation;
254
+ /** An exact host recheck can only take the direct validator path. */
255
+ canonicalVerifierRecheck?: Readonly<{
256
+ command: string;
257
+ cwd: string;
258
+ testedRevision: string;
259
+ }>;
244
260
  /** Current runner-owned task context for bounded UI policy requests. Never tool/page input. */
245
261
  uiTaskContext?: {
246
262
  goal: string;
@@ -80,6 +80,8 @@ export interface ImmutableEvidenceChunk {
80
80
  }
81
81
  export interface EvidenceSearchFilters {
82
82
  documentIds?: string[];
83
+ /** Exact source documents already carried by the active request. */
84
+ excludeDocumentIds?: string[];
83
85
  source?: string;
84
86
  sourceUri?: string;
85
87
  messageId?: string;
@@ -249,6 +249,7 @@ export declare function preserveMemoryResultOnTelemetryFailure<T>(result: T, sin
249
249
  }>;
250
250
  export declare function renderMemoryCapabilitiesForModel(capabilities: readonly MemoryCapabilityV1[], options?: {
251
251
  maxChars?: number;
252
+ compact?: boolean;
252
253
  }): string;
253
254
  export declare const renderMemoryCapabilityForModel: (capability: MemoryCapabilityV1, options?: {
254
255
  maxChars?: number;
@@ -11,7 +11,7 @@ import { type OwnedInferenceDispatchFailureV1, type OwnedInferenceWaitContext, t
11
11
  import type { SpanMeta } from "./types.js";
12
12
  import { type InferencePressureCoordinator } from "./inference-pressure.js";
13
13
  import { type InterruptionLifecycleMode, type InterruptionOperationKind, type InterruptionEffectClass, type InterruptionSnapshot, type InterruptionTransitionReceipt } from "./interruption-lifecycle.js";
14
- import { type OwnedModelWaitCheckpointV1 } from "./owned-model-wait.js";
14
+ import { type OwnedModelBlocker, type OwnedModelWaitCheckpointV1 } from "./owned-model-wait.js";
15
15
  import type { AgentRunEvent } from "./runEvents.js";
16
16
  import { type ProgressiveToolDescriptor, type TrustedToolExecutionProfile } from "./tool-exposure-policy.js";
17
17
  import { type SteeringInput, type SteeringIntakeReceipt } from "./steeringIntake.js";
@@ -555,16 +555,20 @@ export interface AgenticRunnerOptions {
555
555
  * This mirrors how Claude Code loads CLAUDE.md and project context.
556
556
  */
557
557
  dynamicContext?: string;
558
+ /** Native terminal tasks can use a compact model-facing capability directory. */
559
+ compactTaskContext?: boolean;
558
560
  /** Current frontend-issued authored sources; ordinary dynamic/retrieved text cannot mint this authority. */
559
561
  authoredInstructionSources?: AuthoredInstructionSourcesV1;
560
562
  explicitWorkMode?: ExplicitWorkModeSelection;
561
563
  explicitWorkModeCustody?: ExplicitWorkModeCustody;
562
564
  /** Explicit host runtime/registry pin for cold provider-wait observation; never model arguments. */
563
565
  ownedInferenceWaitRuntimeFingerprint?: string;
564
- /** Optional operational polling budget. Zero keeps ownership until Stop or authoritative completion. */
566
+ /** Total body-free observation budget. A zero or omitted value uses the runtime default. */
565
567
  ownedInferenceWaitObservationBudgetMs?: number;
566
568
  /** Bound each body-free status request without renewing the original generation. */
567
569
  ownedInferenceWaitObservationTimeoutMs?: number;
570
+ /** End an unattended caller at a model blocker while preserving the paused checkpoint. */
571
+ returnWhenOwnedModelBlocked?: boolean;
568
572
  /** Exact host-owned passive Telegram spans; quoted source text cannot grant this ownership. */
569
573
  telegramPassiveHistory?: TelegramPassiveHistoryManifest;
570
574
  /** Independently bound current native message owner for passive history. */
@@ -773,6 +777,8 @@ export interface AgenticRunnerOptions {
773
777
  * OMNIUS_COMPLETION_VERIFY_CMD.
774
778
  */
775
779
  completionVerifyCommand?: string;
780
+ /** Explicit host-declared deliverable paths to write against a current test result. */
781
+ verificationArtifactPaths?: readonly string[];
776
782
  /**
777
783
  * Focus supervisor mode. The supervisor turns scattered loop/failure/context
778
784
  * signals into one stateful next-action contract. "auto" may enforce a
@@ -864,7 +870,8 @@ export interface AgenticRunnerOptions {
864
870
  maxContextWindowTokens?: number;
865
871
  /**
866
872
  * Lossless long-context paging above the physical transformer window.
867
- * `auto` activates after the scoped immutable corpus crosses triggerTokens;
873
+ * `auto` activates when the resident request crosses triggerTokens or the
874
+ * current trajectory identifies missing knowledge and nonresident evidence exists;
868
875
  * `on` is useful for qualification and small synthetic cases.
869
876
  */
870
877
  virtualContext?: {
@@ -982,6 +989,8 @@ export interface AgenticRunnerOptions {
982
989
  interruptionOwnerId?: string;
983
990
  /** Adopt and resume a valid paused generation recovered from stateDir. */
984
991
  resumeInterrupted?: boolean;
992
+ /** Exact host-authorized explicit resume of a checkpointed unsent dispatch. */
993
+ resumeOwnedModelBlockerOperationId?: string;
985
994
  /** Host opts in only after revalidating the exact native Telegram owner. */
986
995
  refreshTelegramNativeContextOnResume?: boolean;
987
996
  }
@@ -1092,6 +1101,8 @@ export interface AgenticEvent {
1092
1101
  success?: boolean;
1093
1102
  /** Host-owned foreground readiness state; waiting retains the current task. */
1094
1103
  inferenceWaiting?: boolean;
1104
+ /** A settled local wait with an explicit operator prerequisite. */
1105
+ ownedModelBlocker?: OwnedModelBlocker | null;
1095
1106
  /** Fresh host-observed effect for advisory lifecycle; never goal acceptance. */
1096
1107
  effectObserved?: boolean;
1097
1108
  turn?: number;
@@ -1401,6 +1412,8 @@ export interface AgenticResult {
1401
1412
  /** Estimated tokens from content length (chars/4) — used when API doesn't report usage */
1402
1413
  estimatedTokens: number;
1403
1414
  summary: string;
1415
+ /** The run ended at a saved local pause, with no terminal completion. */
1416
+ ownedModelBlocker?: Readonly<OwnedModelBlocker>;
1404
1417
  runtimeFailure?: TerminalRuntimeFailure;
1405
1418
  /** A user answer owned by the exact task_complete call whose success was
1406
1419
  * admitted and committed. The text is either that call's explicit user_reply
@@ -1831,6 +1844,7 @@ export declare class AgenticRunner {
1831
1844
  private readonly _interruptionMode;
1832
1845
  private readonly _interruptionOwnerId;
1833
1846
  private readonly _resumeInterrupted;
1847
+ private readonly _resumeOwnedModelBlockerOperationId?;
1834
1848
  private readonly _canonicalProjectionMode;
1835
1849
  private readonly _completionReadinessMode;
1836
1850
  private _lastCanonicalProjectionComparison;
@@ -2084,6 +2098,7 @@ export declare class AgenticRunner {
2084
2098
  private _completionFrontierFeedbackCount;
2085
2099
  private _completionLedger;
2086
2100
  private _nativeShellVerificationEvidence;
2101
+ private _nativeShellVerificationReceipts;
2087
2102
  private readonly _nativeFileWriteCallProofs;
2088
2103
  private readonly _consumedFileWriteObservations;
2089
2104
  private _consumedShellVerificationObservations;
@@ -2158,6 +2173,8 @@ export declare class AgenticRunner {
2158
2173
  private _runStartTime;
2159
2174
  private _ownedInferenceWaitCheckpoint?;
2160
2175
  private _restoredOwnedInferenceWait;
2176
+ private _ownedModelBlocker?;
2177
+ private _ownedModelBlockerSuperseded;
2161
2178
  private _retiredOwnedInferenceWaits;
2162
2179
  private _ownedInferenceWaitReceipt?;
2163
2180
  private _ownedInferenceWaitController?;
@@ -2437,6 +2454,7 @@ export declare class AgenticRunner {
2437
2454
  private _completionReadinessConstraints;
2438
2455
  private _completionReadinessAuthorityLedger;
2439
2456
  private _lastVerificationInvalidatingMutation;
2457
+ private _allMutationPathsOutsideVerifier;
2440
2458
  private _completionReadinessVerificationAuthority;
2441
2459
  private _completionReadinessDeliveryAuthority;
2442
2460
  private _readCurrentNativeCompletionDeficit;
@@ -2486,6 +2504,7 @@ export declare class AgenticRunner {
2486
2504
  private stopSuccessfulProcedureWorker;
2487
2505
  private successfulProcedureMemory;
2488
2506
  private sanitizeHistoricalProcedureText;
2507
+ private recallTerminalProcedureHints;
2489
2508
  private usesConversationProfile;
2490
2509
  private _initializeConversationReportEvidence;
2491
2510
  private inlinePersistentMemoryBlockedByInteractiveSurface;
@@ -2608,11 +2627,16 @@ export declare class AgenticRunner {
2608
2627
  getOwnedInferenceWaitState(): Readonly<OwnedModelWaitCheckpointV1> | undefined;
2609
2628
  /** Historical observation pointers; these never reopen current dispatch. */
2610
2629
  getRetiredOwnedInferenceWaits(): readonly Readonly<OwnedModelWaitCheckpointV1>[];
2630
+ private readonly _consumedOwnedInferenceWaits;
2631
+ /** Called only after publishing the checkpoint or terminal receipt which replaced the old turn. */
2632
+ private _retireConsumedModelRequests;
2611
2633
  private _ownedModelPolicySha256;
2612
2634
  /** This is a private live-object proof, not a serialized steering field. */
2613
2635
  private _pendingNativeControlCustodyIsCurrent;
2614
2636
  private _persistOwnedModelWait;
2615
2637
  private _ownedModelWaitTicket;
2638
+ private _blockOwnedModelWait;
2639
+ private _ownedModelBlockerSummary;
2616
2640
  private _observeOwnedModelWait;
2617
2641
  private readonly _pendingAuxiliaryModelDispatches;
2618
2642
  /** Host observation of this exact current native backend argument, never an execution grant. */
@@ -2713,6 +2737,7 @@ export declare class AgenticRunner {
2713
2737
  private _recordContextWindowDump;
2714
2738
  /** Refresh exact transport fields after validated memory materialization. */
2715
2739
  private _refreshCanonicalTransportTrace;
2740
+ private _immutableEvidenceDocumentId;
2716
2741
  /**
2717
2742
  * Append exact source material to the virtual-memory backing corpus. This is
2718
2743
  * intentionally independent of prompt compaction and generated summaries:
@@ -3270,6 +3295,8 @@ export declare class AgenticRunner {
3270
3295
  private _refreshClaimDiscoveryStateFromEvidence;
3271
3296
  private _completionArtifactHashes;
3272
3297
  private _shellVerificationFamily;
3298
+ /** Recover only a current, independently configured verifier before another model dispatch. */
3299
+ private _recoverLegacyVerification;
3273
3300
  private _currentVerificationEvidence;
3274
3301
  /** Select only evidence produced for this task and current workspace state. */
3275
3302
  private _selectCurrentVerification;
@@ -4232,7 +4259,7 @@ export declare class AgenticRunner {
4232
4259
  /**
4233
4260
  * Resume a paused task. The run loop continues from where it left off.
4234
4261
  */
4235
- resume(): InterruptionTransitionReceipt | null;
4262
+ resume(operatorRequested?: boolean): InterruptionTransitionReceipt | null;
4236
4263
  /** Whether the runner is currently paused */
4237
4264
  get isPaused(): boolean;
4238
4265
  /** Exact interruption state for CLI, daemon, and admin status surfaces. */
@@ -30,6 +30,8 @@ export interface LiveVirtualContextProjectionInput {
30
30
  infer: LiveVirtualContextInference;
31
31
  query: string;
32
32
  scopeId: string;
33
+ /** Source identities proven to be fully resident in the active request. */
34
+ excludeDocumentIds?: string[];
33
35
  mode?: LiveVirtualContextMode;
34
36
  triggerTokens?: number;
35
37
  /** Measured resident request input, not the size of the archived corpus. */
@@ -40,7 +40,7 @@ export declare class MemoryCapabilityContext {
40
40
  constructor(sink?: ((trace: MemoryQueryTraceV1) => void | Promise<void>) | undefined);
41
41
  bind(binding: HostMemoryBindingV1): void;
42
42
  capabilities(runtime: RuntimeMemoryAvailability[], adapters: readonly MemoryCapabilityV1[]): MemoryCapabilityV1[];
43
- project(messages: ChatMessage[], capabilities: readonly MemoryCapabilityV1[], maxChars?: number): ChatMessage[];
43
+ project(messages: ChatMessage[], capabilities: readonly MemoryCapabilityV1[], maxChars?: number, compact?: boolean): ChatMessage[];
44
44
  /** Caller must obtain result from the registered adapter's identity-checking hook. */
45
45
  observe(result: MemorySearchResultV1, callId: string, output: string): void;
46
46
  admit(messages: ChatMessage[], requestFingerprint: string): MemoryCapabilityContextAudit | null;
@@ -85,6 +85,7 @@ interface Custody {
85
85
  }
86
86
  export declare const OWNED_INFERENCE_STORE_MAX_BYTES: number;
87
87
  export declare const OWNED_INFERENCE_STORE_MAX_CAPTURES = 2048;
88
+ type OwnerEpoch = Omit<OwnedInferenceWaitOwnerV1, "operationId">;
88
89
  /** Credential material is hashed, never persisted. Scope includes client/GPU/queue constraints. */
89
90
  export declare function ownedInferenceScopeSha256(url: string, headers: ConstructorParameters<typeof Headers>[0] | undefined): string;
90
91
  /** Called only after the backend identifies its selected managed-broker protocol. */
@@ -108,6 +109,43 @@ export declare function restoreOwnedInferenceWait(input: {
108
109
  endpoint: string;
109
110
  model: string;
110
111
  }): OwnedInferenceWaitReceiptV1;
112
+ /** The caller must re-open its durable successor or terminal record, and
113
+ * exclude the current and retired-but-recoverable checkpoint references. */
114
+ export declare function retireConsumedOwnedInferenceWait(receipt: OwnedInferenceWaitReceiptV1, proof: {
115
+ owner: OwnedInferenceWaitOwnerV1;
116
+ resultReference: string;
117
+ assertCurrent: () => void;
118
+ successor?: OwnedInferenceSuccessorProof["successor"];
119
+ protectedRefs?: readonly string[];
120
+ }): {
121
+ reclaimedBytes: number;
122
+ };
123
+ export interface OwnedInferenceSuccessorProof {
124
+ stateDir: string;
125
+ owner: OwnerEpoch;
126
+ successor: {
127
+ turn: number;
128
+ operationId: string;
129
+ custodyRef?: string;
130
+ };
131
+ protectedRefs: readonly string[];
132
+ resultReference: string;
133
+ assertCurrent: () => void;
134
+ }
135
+ export declare function retireLegacyConsumedOwnedInferenceWaits(proof: OwnedInferenceSuccessorProof): {
136
+ retiredCaptures: number;
137
+ reclaimedBytes: number;
138
+ };
139
+ /** A confirmed request rejected by the logical cap may be considered again
140
+ * only after authentic terminal reclamation and a fresh writable-capacity
141
+ * probe. The retry still acquires its own normal reservation. */
142
+ export declare function reconcileOwnedInferenceCapacity(stateDir: string, dispatchError: unknown): {
143
+ canRetry: boolean;
144
+ reclaimedBytes: number;
145
+ chargedBytes: number;
146
+ availableBytes: number;
147
+ reason: "capacity_available" | "still_over_quota" | "storage_unavailable" | "unqualified_failure";
148
+ };
111
149
  export declare function readIssuedOwnedInferenceWait(value: unknown): OwnedInferenceWaitReceiptV1 | undefined;
112
150
  export declare function readOwnedInferenceWait(error: unknown): OwnedInferenceWaitReceiptV1 | undefined;
113
151
  export declare function attachOwnedInferenceWait(error: unknown, receipt: OwnedInferenceWaitReceiptV1): void;
@@ -1,4 +1,10 @@
1
- import type { OwnedInferenceWaitOwnerV1 } from "./owned-inference-wait.js";
1
+ import type { OwnedInferenceDispatchFailureV1, OwnedInferenceWaitOwnerV1 } from "./owned-inference-wait.js";
2
+ export interface OwnedModelBlocker {
3
+ reason: string;
4
+ dispatch: "confirmed_unsent" | "possibly_sent";
5
+ checkpointSaved: boolean;
6
+ canResume: boolean;
7
+ }
2
8
  /** Host attempt custody. This is not a provider admission or observer grant. */
3
9
  export interface OwnedModelWaitCheckpointV1 {
4
10
  schema: "omnius.owned-model-wait-checkpoint.v1";
@@ -16,11 +22,14 @@ export interface OwnedModelWaitCheckpointV1 {
16
22
  runtimeFingerprint: string;
17
23
  authoredManifestRef?: string;
18
24
  custodyRef?: string;
19
- state: "pending" | "waiting" | "unsupported" | "unresolved" | "semantic_progress" | "response_received";
25
+ state: "pending" | "waiting" | "unsupported" | "unresolved" | "semantic_progress" | "response_received" | "blocked";
20
26
  reason: string;
27
+ dispatchFailure?: OwnedInferenceDispatchFailureV1;
28
+ capacityRecoveryAttempted?: boolean;
21
29
  semanticProgress: boolean;
22
30
  retiredByInputId?: string;
23
31
  startedAtMs: number;
24
32
  observationBudgetMs: number;
25
33
  }
26
34
  export declare function isOwnedModelWaitCheckpointV1(value: unknown): value is OwnedModelWaitCheckpointV1;
35
+ export declare function isMatchingOwnedModelDispatchFailure(record: OwnedModelWaitCheckpointV1, receipt: OwnedInferenceDispatchFailureV1): boolean;
@@ -4,6 +4,16 @@ import { type MemoryWorkerRunResult } from "../memory/memoryIngestion.js";
4
4
  import { type UserTaskNoteScope } from "./memory-consolidation.js";
5
5
  import { type CompletionReadinessSnapshot } from "./completionReadiness.js";
6
6
  import type { TaskExecutionSnapshotV1 } from "./taskExecutionSnapshot.js";
7
+ export interface SuccessfulProcedureImitationExample {
8
+ procedureId: string;
9
+ procedureSha256: string;
10
+ traceSha256: string;
11
+ terminalSha256: string;
12
+ goal: string;
13
+ /** Historical labels exclude tool arguments, absolute paths, and command output. */
14
+ successfulTools: string[];
15
+ verifierEvidenceIds: string[];
16
+ }
7
17
  export interface SuccessfulProcedureFile {
8
18
  path: string;
9
19
  sha256: string;
@@ -101,7 +111,16 @@ export declare class SuccessfulProcedureMemory {
101
111
  private embeddingConfig;
102
112
  private vectorSet;
103
113
  private embeddingProfile;
114
+ private storedProcedure;
104
115
  private checkedStoredProcedure;
116
+ /** Exact, opt-in offline source read. Only real executed verification
117
+ * retained in the committed terminal may qualify an imitation example. */
118
+ readImitationExample(input: {
119
+ scope: UserTaskNoteScope;
120
+ procedureId: string;
121
+ assertCurrent: () => void;
122
+ signal?: AbortSignal;
123
+ }): SuccessfulProcedureImitationExample;
105
124
  private hasProcedureVector;
106
125
  private enqueueProcedureChunk;
107
126
  /** Reconcile only an explicitly authenticated owner's historical cases. No task evidence is created. */
@@ -137,6 +156,8 @@ export declare class SuccessfulProcedureMemory {
137
156
  query: string;
138
157
  signal?: AbortSignal;
139
158
  assertCurrent: () => void;
159
+ /** Request projection can inspect existing lexical cases without inference or access writes. */
160
+ lexicalOnly?: boolean;
140
161
  }): Promise<{
141
162
  text: string;
142
163
  caseIds: string[];
@@ -248963,6 +248963,9 @@ init_process_lifecycle();
248963
248963
  // packages/execution/dist/tools/desktop-control.js
248964
248964
  init_system_deps();
248965
248965
 
248966
+ // packages/execution/dist/verificationRevision.js
248967
+ var MAX_BYTES = 24 * 1024 * 1024;
248968
+
248966
248969
  // packages/execution/dist/index.js
248967
248970
  init_native_operation_observation();
248968
248971
  init_native_memory_operation_observation();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 42681625 bytes
4
- sha256: 3877e8e258160f0e15dad00202bf5b174ff3e63234620cb6e4c901d220bf238b
3
+ size: 42787331 bytes
4
+ sha256: 438bf4a61162a86d9637d896d62dd1bef7df1cd5a70b4e3ca32fb58c98159b03