omnius 1.0.964 → 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;
@@ -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";
@@ -563,10 +563,12 @@ export interface AgenticRunnerOptions {
563
563
  explicitWorkModeCustody?: ExplicitWorkModeCustody;
564
564
  /** Explicit host runtime/registry pin for cold provider-wait observation; never model arguments. */
565
565
  ownedInferenceWaitRuntimeFingerprint?: string;
566
- /** 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. */
567
567
  ownedInferenceWaitObservationBudgetMs?: number;
568
568
  /** Bound each body-free status request without renewing the original generation. */
569
569
  ownedInferenceWaitObservationTimeoutMs?: number;
570
+ /** End an unattended caller at a model blocker while preserving the paused checkpoint. */
571
+ returnWhenOwnedModelBlocked?: boolean;
570
572
  /** Exact host-owned passive Telegram spans; quoted source text cannot grant this ownership. */
571
573
  telegramPassiveHistory?: TelegramPassiveHistoryManifest;
572
574
  /** Independently bound current native message owner for passive history. */
@@ -775,6 +777,8 @@ export interface AgenticRunnerOptions {
775
777
  * OMNIUS_COMPLETION_VERIFY_CMD.
776
778
  */
777
779
  completionVerifyCommand?: string;
780
+ /** Explicit host-declared deliverable paths to write against a current test result. */
781
+ verificationArtifactPaths?: readonly string[];
778
782
  /**
779
783
  * Focus supervisor mode. The supervisor turns scattered loop/failure/context
780
784
  * signals into one stateful next-action contract. "auto" may enforce a
@@ -985,6 +989,8 @@ export interface AgenticRunnerOptions {
985
989
  interruptionOwnerId?: string;
986
990
  /** Adopt and resume a valid paused generation recovered from stateDir. */
987
991
  resumeInterrupted?: boolean;
992
+ /** Exact host-authorized explicit resume of a checkpointed unsent dispatch. */
993
+ resumeOwnedModelBlockerOperationId?: string;
988
994
  /** Host opts in only after revalidating the exact native Telegram owner. */
989
995
  refreshTelegramNativeContextOnResume?: boolean;
990
996
  }
@@ -1095,6 +1101,8 @@ export interface AgenticEvent {
1095
1101
  success?: boolean;
1096
1102
  /** Host-owned foreground readiness state; waiting retains the current task. */
1097
1103
  inferenceWaiting?: boolean;
1104
+ /** A settled local wait with an explicit operator prerequisite. */
1105
+ ownedModelBlocker?: OwnedModelBlocker | null;
1098
1106
  /** Fresh host-observed effect for advisory lifecycle; never goal acceptance. */
1099
1107
  effectObserved?: boolean;
1100
1108
  turn?: number;
@@ -1404,6 +1412,8 @@ export interface AgenticResult {
1404
1412
  /** Estimated tokens from content length (chars/4) — used when API doesn't report usage */
1405
1413
  estimatedTokens: number;
1406
1414
  summary: string;
1415
+ /** The run ended at a saved local pause, with no terminal completion. */
1416
+ ownedModelBlocker?: Readonly<OwnedModelBlocker>;
1407
1417
  runtimeFailure?: TerminalRuntimeFailure;
1408
1418
  /** A user answer owned by the exact task_complete call whose success was
1409
1419
  * admitted and committed. The text is either that call's explicit user_reply
@@ -1834,6 +1844,7 @@ export declare class AgenticRunner {
1834
1844
  private readonly _interruptionMode;
1835
1845
  private readonly _interruptionOwnerId;
1836
1846
  private readonly _resumeInterrupted;
1847
+ private readonly _resumeOwnedModelBlockerOperationId?;
1837
1848
  private readonly _canonicalProjectionMode;
1838
1849
  private readonly _completionReadinessMode;
1839
1850
  private _lastCanonicalProjectionComparison;
@@ -2087,6 +2098,7 @@ export declare class AgenticRunner {
2087
2098
  private _completionFrontierFeedbackCount;
2088
2099
  private _completionLedger;
2089
2100
  private _nativeShellVerificationEvidence;
2101
+ private _nativeShellVerificationReceipts;
2090
2102
  private readonly _nativeFileWriteCallProofs;
2091
2103
  private readonly _consumedFileWriteObservations;
2092
2104
  private _consumedShellVerificationObservations;
@@ -2161,6 +2173,8 @@ export declare class AgenticRunner {
2161
2173
  private _runStartTime;
2162
2174
  private _ownedInferenceWaitCheckpoint?;
2163
2175
  private _restoredOwnedInferenceWait;
2176
+ private _ownedModelBlocker?;
2177
+ private _ownedModelBlockerSuperseded;
2164
2178
  private _retiredOwnedInferenceWaits;
2165
2179
  private _ownedInferenceWaitReceipt?;
2166
2180
  private _ownedInferenceWaitController?;
@@ -2440,6 +2454,7 @@ export declare class AgenticRunner {
2440
2454
  private _completionReadinessConstraints;
2441
2455
  private _completionReadinessAuthorityLedger;
2442
2456
  private _lastVerificationInvalidatingMutation;
2457
+ private _allMutationPathsOutsideVerifier;
2443
2458
  private _completionReadinessVerificationAuthority;
2444
2459
  private _completionReadinessDeliveryAuthority;
2445
2460
  private _readCurrentNativeCompletionDeficit;
@@ -2612,11 +2627,16 @@ export declare class AgenticRunner {
2612
2627
  getOwnedInferenceWaitState(): Readonly<OwnedModelWaitCheckpointV1> | undefined;
2613
2628
  /** Historical observation pointers; these never reopen current dispatch. */
2614
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;
2615
2633
  private _ownedModelPolicySha256;
2616
2634
  /** This is a private live-object proof, not a serialized steering field. */
2617
2635
  private _pendingNativeControlCustodyIsCurrent;
2618
2636
  private _persistOwnedModelWait;
2619
2637
  private _ownedModelWaitTicket;
2638
+ private _blockOwnedModelWait;
2639
+ private _ownedModelBlockerSummary;
2620
2640
  private _observeOwnedModelWait;
2621
2641
  private readonly _pendingAuxiliaryModelDispatches;
2622
2642
  /** Host observation of this exact current native backend argument, never an execution grant. */
@@ -3275,6 +3295,8 @@ export declare class AgenticRunner {
3275
3295
  private _refreshClaimDiscoveryStateFromEvidence;
3276
3296
  private _completionArtifactHashes;
3277
3297
  private _shellVerificationFamily;
3298
+ /** Recover only a current, independently configured verifier before another model dispatch. */
3299
+ private _recoverLegacyVerification;
3278
3300
  private _currentVerificationEvidence;
3279
3301
  /** Select only evidence produced for this task and current workspace state. */
3280
3302
  private _selectCurrentVerification;
@@ -4237,7 +4259,7 @@ export declare class AgenticRunner {
4237
4259
  /**
4238
4260
  * Resume a paused task. The run loop continues from where it left off.
4239
4261
  */
4240
- resume(): InterruptionTransitionReceipt | null;
4262
+ resume(operatorRequested?: boolean): InterruptionTransitionReceipt | null;
4241
4263
  /** Whether the runner is currently paused */
4242
4264
  get isPaused(): boolean;
4243
4265
  /** Exact interruption state for CLI, daemon, and admin status surfaces. */
@@ -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;
@@ -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: 42707889 bytes
4
- sha256: f08cff099f762b1811046e9c9db9cec4b26d4d727d588d3ea201b32b51f08acb
3
+ size: 42787331 bytes
4
+ sha256: 438bf4a61162a86d9637d896d62dd1bef7df1cd5a70b4e3ca32fb58c98159b03