omnius 1.0.972 → 1.0.973

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.
@@ -16,9 +16,31 @@ export interface InterruptionRunIdentity {
16
16
  }
17
17
  export type InterruptionOperationKind = "model" | "read_tool" | "mutating_tool" | "delivery" | "browser" | "media" | "scheduled_action" | "background_cognition" | "sub_agent" | "process";
18
18
  export type InterruptionEffectClass = "read_only" | "external_effect";
19
+ /** The exact admitted operand of an external-effect tool call, recorded by the
20
+ * runner at admission (never by the model or a later message), so recovery can
21
+ * re-classify it with the registered native classifier. */
22
+ export interface InterruptionOperationSubject {
23
+ tool: "shell";
24
+ command: string;
25
+ }
26
+ /** Native proof that an interrupted shell command changed nothing. */
27
+ export interface InterruptedShellObservationClassifier {
28
+ isReadOnly: (command: string) => boolean;
29
+ /** Legacy records written before subjects existed. The resolver must use a
30
+ * native journal (process leases), never transcript or message text. */
31
+ legacySubject?: (input: {
32
+ operationId: string;
33
+ admittedAt: string;
34
+ acknowledgedAt: string;
35
+ }) => {
36
+ command: string;
37
+ evidence: string;
38
+ } | undefined;
39
+ }
19
40
  export interface InterruptionAcknowledgement {
20
41
  id: string;
21
42
  kind: InterruptionOperationKind;
43
+ subject?: InterruptionOperationSubject;
22
44
  effect: InterruptionEffectClass;
23
45
  ownerId: string;
24
46
  generation: number;
@@ -32,6 +54,7 @@ export interface AmbiguousInterruptionEffect {
32
54
  ownerId: string;
33
55
  generation: number;
34
56
  state: "unknown_after_interrupt" | "confirmed_applied" | "confirmed_absent";
57
+ subject?: InterruptionOperationSubject;
35
58
  recordedAt: string;
36
59
  resolvedAt?: string;
37
60
  evidenceId?: string;
@@ -135,6 +158,7 @@ export declare class InterruptionLifecycle {
135
158
  kind: InterruptionOperationKind;
136
159
  effect: InterruptionEffectClass;
137
160
  ownerId: string;
161
+ subject?: InterruptionOperationSubject;
138
162
  }): InterruptionOperationTicket | null;
139
163
  acknowledgeOperation(ticket: InterruptionOperationTicket, outcome?: "completed" | "cancelled" | "unknown"): boolean;
140
164
  /** Reopen client observation of the same retained read-only model operation.
@@ -153,6 +177,15 @@ export declare class InterruptionLifecycle {
153
177
  interruptionEffect?: InterruptionEffectClass;
154
178
  };
155
179
  }): number;
180
+ /** Settle interrupted shell calls whose exact admitted command the current
181
+ * registered native classifier proves read-only. A read-only command has no
182
+ * external effect to be absent or applied, so this never authorizes replay
183
+ * of anything that could change state; every other shell effect keeps its
184
+ * fence. Evidence names the classified command digest (and journal source). */
185
+ reconcileInterruptedReadOnlyShell(input: {
186
+ expected: Pick<InterruptionRunIdentity, "sessionId" | "runId" | "taskEpoch" | "owner">;
187
+ classifier: InterruptedShellObservationClassifier;
188
+ }): number;
156
189
  replaceChildLineage(childLineage: string[]): void;
157
190
  private markTerminal;
158
191
  private ownerMatches;
@@ -248939,6 +248939,10 @@ init_model_broker();
248939
248939
  init_evidence();
248940
248940
  init_process_lifecycle();
248941
248941
 
248942
+ // packages/execution/dist/shell-interruption-evidence.js
248943
+ init_process_lifecycle();
248944
+ var LEASE_JOURNAL_MAX_BYTES = 64 * 1024 * 1024;
248945
+
248942
248946
  // packages/execution/dist/background-process-receipt.js
248943
248947
  init_process_lifecycle();
248944
248948
 
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: 43110737 bytes
4
- sha256: 78a96f7576ab6a872cee851898a6b97c89ec44e733f99f07771cca6210482337
3
+ size: 43120518 bytes
4
+ sha256: 3e4ab533cd3885cd082fa52492d41c575cdaca658f6e7ac68efe72a3374e79f8