omnius 1.0.926 → 1.0.928

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.
@@ -40,6 +40,7 @@ import { type TerminalTaskReport } from "./terminalTaskReport.js";
40
40
  import { type TerminalRuntimeFailure } from "./completionFinalization.js";
41
41
  import { type CompletionReadinessSnapshot } from "./completionReadiness.js";
42
42
  import { type CompletionDeliveryReceipt, type ExpectedOutcomeAssessmentV1, type ExpectedOutcomeContractV1, type ExpectedOutcomeRequiredEffectV1 } from "./expectedOutcomeContract.js";
43
+ import { type TodoSnapshot } from "./todoObservability.js";
43
44
  import { z } from "zod";
44
45
  import { type ProviderProtocol } from "../backend-vllm/providerRegistry.js";
45
46
  import type { PersonalityProfile } from "./personality.js";
@@ -69,7 +70,7 @@ import { type TrajectoryCheckpoint, type TrajectoryCheckpointMode, type Trajecto
69
70
  import { type ContextWindowMemoryCompilationPlanAudit } from "./contextWindowDump.js";
70
71
  import { type MemoryCompilationAnalysis, type MemoryCompilerInvalidOutputDetail } from "./memory-compiler.js";
71
72
  import { type ModelResponseDiagnostics, type ModelResponseDiagnosticReceipt } from "./modelResponseDiagnostics.js";
72
- import { type FocusSupervisorMode } from "./focusSupervisor.js";
73
+ import { type FocusContextSnapshot, type FocusSupervisorMode } from "./focusSupervisor.js";
73
74
  import { type IssuedAgenticWebFetchReceiptV1 } from "./agentic-web-fetch-receipt.js";
74
75
  import { type IssuedAgenticPageContentReceiptV1 } from "./agentic-page-content-receipt.js";
75
76
  import { type TaskObjectiveContinuationInputV1, type TaskObjectiveContinuationScopeV1 } from "./taskObjectiveContinuation.js";
@@ -1358,6 +1359,8 @@ export interface AgenticResult {
1358
1359
  taskEpoch: number;
1359
1360
  terminalReceiptId: string;
1360
1361
  authority: "router_expected_effect_mismatch" | "provider_delivery_pending" | "declared_incomplete";
1362
+ /** Model-declared degraded status; this field grants no suspension or completion. */
1363
+ declaredStatus?: "incomplete" | "needs_input";
1361
1364
  };
1362
1365
  /** Exact adapter-accepted draft retained only for missing work evidence.
1363
1366
  * This is never visible-response, completion, or provider-delivery authority. */
@@ -1551,6 +1554,7 @@ export interface RunnerContextPressureSnapshot {
1551
1554
  droppedSignals?: number;
1552
1555
  truncatedSignals?: number;
1553
1556
  semanticChunkCount?: number;
1557
+ semanticContext?: FocusContextSnapshot["semanticContext"];
1554
1558
  }
1555
1559
  export interface DynamicContextConsolidationDecision {
1556
1560
  shouldRun: boolean;
@@ -1578,7 +1582,7 @@ export declare function shouldRunDynamicContextConsolidation(input: {
1578
1582
  * shapes is left untouched.
1579
1583
  */
1580
1584
  export declare function normalizeShellCommandForFingerprint(command: string): string;
1581
- export declare function getSystemPromptForTier(tier: string): string;
1585
+ export declare function getSystemPromptForTier(_tier: string): string;
1582
1586
  export declare function getConversationSystemPrompt(): string;
1583
1587
  /** Shape of a todo item for the reminder. Matches the shape written by
1584
1588
  * TodoWriteTool and read from ~/.omnius/todos/{session}.json. */
@@ -1852,6 +1856,7 @@ export declare class AgenticRunner {
1852
1856
  private _messageTurns;
1853
1857
  private _toolCallTurns;
1854
1858
  private _restoredControlTurnFloor;
1859
+ private _restoredRolloutContext;
1855
1860
  /** Set of todo IDs that have already been chunked */
1856
1861
  private _todoChunked;
1857
1862
  /**
@@ -1881,6 +1886,7 @@ export declare class AgenticRunner {
1881
1886
  private _expectedOutcomeNativeEffectAuthority;
1882
1887
  private _completionDeliveryReceipts;
1883
1888
  private _todoObservabilitySnapshot;
1889
+ private _todoObservabilityRunId;
1884
1890
  private _todoObservabilityRevision;
1885
1891
  private _recentEnoents;
1886
1892
  private _microcompactHintEmitted;
@@ -2201,6 +2207,7 @@ export declare class AgenticRunner {
2201
2207
  private _lastContextFrameDiagnostics;
2202
2208
  private _lastContextPressureSnapshot;
2203
2209
  private _lastFocusContextSnapshot;
2210
+ private readonly _semanticObservationHashes;
2204
2211
  private _lastActiveForgettingReport;
2205
2212
  private _lastContextConsolidationTurn;
2206
2213
  /** WO-CE-BOUNDARY: Context engine instance for structured context assembly */
@@ -2974,6 +2981,8 @@ export declare class AgenticRunner {
2974
2981
  */
2975
2982
  private _detectDebugLoop;
2976
2983
  private readSessionTodos;
2984
+ /** Detached latest checklist already observed by this exact run and epoch. */
2985
+ getTodoSnapshot(): TodoSnapshot | undefined;
2977
2986
  private _emitTodoObservabilitySnapshot;
2978
2987
  private _operationalWorkGraphPersistenceKey;
2979
2988
  /** Refresh the canonical graph from code-owned stores. */
@@ -3045,10 +3054,8 @@ export declare class AgenticRunner {
3045
3054
  */
3046
3055
  private _compileFixPathsTouchProjectSources;
3047
3056
  /**
3048
- * Action rails are an explicitly opt-in diagnostic experiment, never a
3049
- * normal-model policy. They created deadlocks by denying the very reads and
3050
- * edits needed to revise a hypothesis. Evidence and the tools' own atomic
3051
- * checks remain available without a controller admission gate.
3057
+ * Inferred action-order gates are retired, including legacy env opt-ins.
3058
+ * Tool-level source, ownership, and atomic-write checks remain active.
3052
3059
  */
3053
3060
  private _enforcesStrictActionBoundaries;
3054
3061
  /** Consecutive preflight blocks before the gate yields instead of blocking. */
@@ -3902,7 +3909,6 @@ export declare class AgenticRunner {
3902
3909
  * metadata and tool-result links are retained untouched for provider
3903
3910
  * protocol correctness; only stale assistant-visible planning prose changes.
3904
3911
  */
3905
- private _retireLinkedAssistantReadIntents;
3906
3912
  private _emitSteeringLifecycle;
3907
3913
  private _setBackendTurnAbortSignal;
3908
3914
  private _requestSteeringPreemption;
@@ -4532,10 +4538,8 @@ export declare class AgenticRunner {
4532
4538
  /** Build feedback-only frontier from current, observed execution state. */
4533
4539
  private _buildRunFrontier;
4534
4540
  /**
4535
- * The only late control block visible to a model. It is regenerated from
4536
- * authoritative run state on each request; it never carries prompt history.
4537
- * Large models receive state only. Small/medium models may receive one
4538
- * bounded directive with an explicit expiry and exit condition.
4541
+ * Ephemeral facts from this run. Replaces prior host observations without
4542
+ * changing user messages, assistant history, or linked tool results.
4539
4543
  */
4540
4544
  private _buildRecentActionGroundTruth;
4541
4545
  /** Legacy REG/recovery prose is retained in telemetry only, never in model history. */
@@ -49,7 +49,16 @@ export interface TerminalRepeatedFailedToolFailure extends TerminalRuntimeFailur
49
49
  operationSha256: string;
50
50
  resultSha256: string;
51
51
  }
52
- export type TerminalRuntimeFailure = TerminalContextAdmissionFailure | TerminalModelEmptyResponseFailure | TerminalInferenceFailure | TerminalRepeatedFailedToolFailure;
52
+ export interface TerminalRepeatedObservationFailure extends TerminalRuntimeFailureScope {
53
+ code: "repeated_observation_stall";
54
+ phase: "after_tool";
55
+ retryable: false;
56
+ toolName: string;
57
+ repeatedAttempts: number;
58
+ operationSha256: string;
59
+ resultSha256: string;
60
+ }
61
+ export type TerminalRuntimeFailure = TerminalContextAdmissionFailure | TerminalModelEmptyResponseFailure | TerminalInferenceFailure | TerminalRepeatedFailedToolFailure | TerminalRepeatedObservationFailure;
53
62
  /**
54
63
  * Immutable, local identity of the process that authored a terminal receipt.
55
64
  *
@@ -16,6 +16,7 @@ export declare function createFocusConvergenceScope(input: {
16
16
  originalRequestHash: string;
17
17
  };
18
18
  }): string;
19
+ /** Legacy configuration grammar; every value resolves to passive observation. */
19
20
  export type FocusSupervisorMode = "off" | "auto" | "strict";
20
21
  export interface NegativeObservationScope {
21
22
  taskEpoch: number;
@@ -67,12 +68,21 @@ export interface FocusDirectiveSatisfaction {
67
68
  export type FocusRequiredNextAction = "use_cached_evidence" | "update_todos" | "read_authoritative_target" | "disambiguate_edit_match" | "edit_different_target" | "run_verification" | "delegate_isolated_fix" | "creative_pivot_or_research" | "report_blocked" | "report_incomplete";
68
69
  export type FocusCompletionStatus = "completed" | "blocked" | "incomplete" | "no_changes_required" | "needs_input";
69
70
  export interface FocusContextSnapshot {
71
+ /** Complete final outbound input, including tool schemas and late materialization. */
70
72
  estimatedTokens?: number;
71
73
  rawDiscoveryChars?: number;
72
74
  activeEvidenceChars?: number;
73
75
  activeFrameChars?: number;
74
76
  signalToNoiseRatio?: number;
77
+ /** Complete outbound input / actual model capacity; never a semantic-item fraction. */
75
78
  pressureRatio?: number;
79
+ /** Local semantic-summary diagnostics, separate from physical request occupancy. */
80
+ semanticContext?: {
81
+ rawTokens: number;
82
+ totalTokens: number;
83
+ unconsolidatedRatio: number;
84
+ targetRawTokenBudget: number;
85
+ };
76
86
  droppedSignals?: number;
77
87
  truncatedSignals?: number;
78
88
  }
@@ -391,12 +401,7 @@ export declare class FocusSupervisor {
391
401
  private inject;
392
402
  private block;
393
403
  }
394
- /**
395
- * SILENCE: resolve whether the live supervisor should suppress hard blocks.
396
- * Defaults to silenced (true) — the operator directive is that the supervisor
397
- * must not stop agents or re-serve cached responses. Set
398
- * OMNIUS_FOCUS_SUPERVISOR_SILENT to 0/false/off to restore blocking.
399
- */
404
+ /** Legacy compatibility resolver. No environment setting reactivates blocks. */
400
405
  export declare function resolveFocusSupervisorSilent(envValue?: string | undefined): boolean;
401
406
  export declare function resolveFocusSupervisorMode(configured?: FocusSupervisorMode, envValue?: string | undefined): FocusSupervisorMode;
402
407
  /**
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: 41445357 bytes
4
- sha256: 5c1de45bf964973338c334cc8299d33a792f6c3b6a67e389ddf387f5e6bbd653
3
+ size: 41358739 bytes
4
+ sha256: 1b824ef062216085861c0a56e838de9f2fede5bbe6cdedf7c5b2962dd5b919f8