omnius 1.0.991 → 1.0.992

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.
Files changed (54) hide show
  1. package/.aiwg/addons/omnius-docs/README.md +3 -0
  2. package/.aiwg/addons/omnius-docs/skills/omnius-task-graph/SKILL.md +42 -0
  3. package/dist/_types/execution/native-memory-view-provider.d.ts +5 -1
  4. package/dist/_types/execution/nol/worker-assets.d.ts +2 -0
  5. package/dist/_types/memory/immutableEvidenceStore.d.ts +4 -1
  6. package/dist/_types/memory/memoryCapability.d.ts +2 -0
  7. package/dist/_types/memory/structuredMemoryStore.d.ts +3 -1
  8. package/dist/_types/orchestrator/agenticRunner.d.ts +25 -11
  9. package/dist/_types/orchestrator/completionFinalization.d.ts +19 -1
  10. package/dist/_types/orchestrator/contentAddressedArtifactStore.d.ts +1 -4
  11. package/dist/_types/orchestrator/historicalToolObservation.d.ts +36 -0
  12. package/dist/_types/orchestrator/interruption-lifecycle.d.ts +3 -0
  13. package/dist/_types/orchestrator/native-provider-delivery.d.ts +3 -0
  14. package/dist/_types/orchestrator/semanticVerification.d.ts +8 -1
  15. package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +1 -0
  16. package/dist/_types/orchestrator/successful-procedure-memory.d.ts +7 -0
  17. package/dist/_types/orchestrator/task-recall-review-evidence.d.ts +37 -0
  18. package/dist/_types/orchestrator/taskRequirementReview.d.ts +3 -0
  19. package/dist/_types/orchestrator/taskSemanticAdmission.d.ts +9 -0
  20. package/dist/_types/orchestrator/taskWorkPlan.d.ts +4 -1
  21. package/dist/api/py-embed.js +3 -0
  22. package/dist/assets/nol-task-memory-promotion-worker.py +240 -0
  23. package/dist/index.js +2 -2
  24. package/dist/library.d.ts +1 -0
  25. package/dist/library.js +22592 -20124
  26. package/dist/memory-maintenance-worker.js +4255 -4252
  27. package/dist/nol/task-memory-promotion.d.ts +240 -0
  28. package/dist/omni-setup-worker.js +3 -0
  29. package/dist/postinstall-daemon.cjs +3 -0
  30. package/dist/preinstall.cjs +5 -0
  31. package/dist/tui/native/worker.js +40 -1
  32. package/dist/update-worker-runtime.js +24374 -8901
  33. package/dist/update-worker.js +35 -9
  34. package/docs/DISCOVERY.json +637 -1
  35. package/docs/DISCOVERY.md +16 -0
  36. package/docs/guides/system-tray.md +6 -0
  37. package/docs/reference/slash-commands.md +59 -2
  38. package/docs/reference/task-observability.md +27 -0
  39. package/docs/work-orders/WO-behavioral-memory-graph-20261123.md +122 -0
  40. package/docs/work-orders/WO-native-agent-collaboration-20261124.md +96 -0
  41. package/docs/work-orders/WO-telegram-admin-command-and-artifact-20261124.md +117 -0
  42. package/docs/work-orders/WO-telegram-ellipsis-and-stale-release-20261124.md +129 -0
  43. package/docs/work-orders/WO-telegram-live-worker-view-20261124.md +114 -0
  44. package/docs/work-orders/WO-telegram-long-horizon-continuity-20261123.md +43 -0
  45. package/docs/work-orders/WO-telegram-model-source-and-broker-capacity-20261124.md +68 -0
  46. package/docs/work-orders/WO-update-publish-provenance-20261125.md +79 -0
  47. package/docs/work-orders/WO-verified-update-transaction-20261124.md +46 -0
  48. package/docs/work-orders/human-memory-task-recall/README.md +57 -0
  49. package/docs/work-orders/human-memory-task-recall/WO-01-task-board.md +320 -0
  50. package/docs/work-orders/human-memory-task-recall/WO-02-consolidation.md +95 -0
  51. package/docs/work-orders/human-memory-task-recall/WO-03-promotion.md +226 -0
  52. package/docs/work-orders/human-memory-task-recall/WO-04-qualification.md +580 -0
  53. package/npm-shrinkwrap.json +2 -2
  54. package/package.json +8 -3
@@ -21,3 +21,6 @@ Documentation-routing skills:
21
21
  - `omnius-ops-docs`
22
22
 
23
23
  For cross-cutting delivery work, the add-on also exposes `evidence-directed-delivery`, `workspace-reality-audit`, `test-surface-audit`, `runtime-provenance-audit`, `hardware-evidence-audit`, `secrets-and-config-audit`, and `agent-failure-recovery`. These skills are feedback-oriented: they help an agent discover evidence gaps and recover from actual failures without treating planning telemetry as a completion veto.
24
+
25
+ Use `omnius-task-graph` to inspect task dependencies, verify receipt lineage,
26
+ and reopen the sources behind recalled task facts.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: omnius-task-graph
3
+ description: Inspect a durable Omnius task graph, verify action and receipt lineage, and follow exact source links in task memory.
4
+ compaction_strategy: structured
5
+ ---
6
+
7
+ # omnius-task-graph
8
+
9
+ Use this skill to reopen a task after interruption, check a progress claim, or
10
+ find the original evidence behind a remembered fact.
11
+
12
+ ## Triggers
13
+
14
+ - task graph
15
+ - action and receipt lineage
16
+ - task memory lineage
17
+ - verify sub-agent progress
18
+
19
+ ## Procedure
20
+
21
+ 1. Use `/tasks` to obtain the exact task ID in the current workspace. Inspect
22
+ it with `/tasks graph <task-id>` in the terminal or authorized Telegram
23
+ admin DM. The shell equivalent is
24
+ `omnius tasks graph <task-id> --repo <workspace> --json`.
25
+ 2. Check the task owner, run, epoch, and attempt state. Follow dependency and
26
+ receipt links to explain what ran, what settled, and what evidence is still
27
+ missing. Only an attached runner supports a claim that work is active.
28
+ A historical receipt can explain prior work. A missing source leaves the
29
+ claim unverified.
30
+ 3. To follow memory lineage from a known episode ID, invoke
31
+ `memory_search` with `store: task_recall` and `query: neighbors:<episode-id>`.
32
+ Follow the returned `source:<episode-id>` handles to reopen the exact
33
+ originals. Review competing values in their original context and against
34
+ the current request. Use `source:` for any original required as proof.
35
+ 4. Report the smallest evidence-backed next step. Use the existing task
36
+ admission, work-unit selection, and completion checks for any action.
37
+ Current accepted steering supplies the task direction. Keep former goals
38
+ and records associated with their original task when the operator pivots.
39
+
40
+ When a status reply mentions sub-agents, identify the current worker or its
41
+ terminal receipt before reporting it as active or done. Distinguish a sent
42
+ status message from verification of the work it describes.
@@ -11,8 +11,10 @@ export interface NativeMemoryViewBinding {
11
11
  export declare const NATIVE_MEMORY_STORES: readonly [
12
12
  "structured_records",
13
13
  "project_temporal_graph",
14
- "successful_procedures"
14
+ "successful_procedures",
15
+ "task_recall"
15
16
  ];
17
+ export declare function nativeMemoryRouteId(store: NativeMemoryStore): string;
16
18
  export type NativeMemoryStore = typeof NATIVE_MEMORY_STORES[number];
17
19
  export interface NativeMemoryViewRequest {
18
20
  store: NativeMemoryStore;
@@ -31,6 +33,8 @@ export interface NativeMemoryViewItem {
31
33
  sourceKind: MemorySourceKind;
32
34
  title?: string;
33
35
  parentIds?: string[];
36
+ /** Host-built exact query for opening a previously issued observation. */
37
+ exactQuery?: string;
34
38
  /** Private native occurrence key; never model-rendered or an opener. */
35
39
  nativeId: string;
36
40
  }
@@ -69,6 +69,8 @@ export declare function resolveNolTransformersPeftValidationWorkerAsset(options?
69
69
  /** Explicit owned vLLM code inventory, including both loader companions and the
70
70
  * independent CPU tokenizer. Resolution selects no model or execution backend. */
71
71
  export declare function resolveNolVllmWorkerAsset(options?: NolVllmWorkerResolveOptions): Promise<NolVllmWorkerAsset>;
72
+ /** Resolves the reviewed promotion worker source. No model or process is started. */
73
+ export declare function resolveNolTaskMemoryPromotionWorkerAsset(options?: NolAssetResolveOptions): Promise<NolRuntimeCodeAsset>;
72
74
  /** Explicit v2 conditional-gradient code with its frozen EA companion.
73
75
  * Inspection grants no operation, numerical or compute authority. */
74
76
  export declare function resolveNolTransformersNnsightWorkerAsset(options?: NolTransformersExtensionResolveOptions): Promise<NolTransformersExtensionAsset>;
@@ -7,6 +7,7 @@ type SqliteStatement = {
7
7
  };
8
8
  };
9
9
  type SqliteDatabase = {
10
+ readonly inTransaction?: boolean;
10
11
  exec(sql: string): void;
11
12
  prepare(sql: string): SqliteStatement;
12
13
  };
@@ -129,7 +130,9 @@ export interface EvidenceEmbeddingInput {
129
130
  */
130
131
  export declare class ImmutableEvidenceStore {
131
132
  private readonly db;
132
- constructor(db: SqliteDatabase);
133
+ constructor(db: SqliteDatabase, options?: {
134
+ readOnly?: boolean;
135
+ });
133
136
  private ensureSchema;
134
137
  appendDocument(input: ImmutableEvidenceDocumentInput, drafts: ImmutableEvidenceChunkDraft[]): {
135
138
  document: ImmutableEvidenceDocument;
@@ -131,6 +131,8 @@ export interface MemorySearchMatchV1 {
131
131
  title?: string;
132
132
  routeId?: string;
133
133
  relationCandidates?: MemoryRelationCandidateV1[];
134
+ /** Read-only navigation hint. The next query independently checks authorization. */
135
+ taskRecallNeighborQuery?: string;
134
136
  }
135
137
  export interface MemorySearchBranchV1 {
136
138
  branchId: string;
@@ -90,6 +90,7 @@ export declare function normalizeMemoryTimestamp(value: string, label?: string):
90
90
  export declare class StructuredMemoryStore {
91
91
  private readonly db;
92
92
  private extractionTransaction;
93
+ private extractionTaskRecallScope;
93
94
  private readonly sourceStoreRef;
94
95
  constructor(db: SqliteDatabase, options?: {
95
96
  readOnly?: boolean;
@@ -100,8 +101,9 @@ export declare class StructuredMemoryStore {
100
101
  * Callbacks are synchronous; no model operation can hold this transaction. */
101
102
  commitExtractionBatch(input: {
102
103
  records: StructuredMemoryInput[];
103
- assertCurrent: () => void;
104
+ assertCurrent: (phase: "before" | "after") => void;
104
105
  settle: (records: StructuredMemoryRecord[]) => boolean;
106
+ taskRecallScope?: boolean;
105
107
  }): StructuredMemoryRecord[];
106
108
  private captureSource;
107
109
  /** Host-only access/availability state. Historical time never rewinds a present revocation. */
@@ -47,6 +47,7 @@ import { type StructuredMemoryExtractionContext } from "./structured-memory-extr
47
47
  import type { ArtifactMode } from "./artifactQuality.js";
48
48
  import type { ArtifactMaterialization, CommandEvidenceReceipt, DocumentExtractionReceipt, ToolRuntimeSession } from "../execution/types.js";
49
49
  import type { WorkboardSnapshot } from "../execution/tools/workboard.js";
50
+ import { SuccessfulProcedureMemory } from "./successful-procedure-memory.js";
50
51
  import type { HooksConfig } from "./hooks.js";
51
52
  import type { AppState } from "./app-state.js";
52
53
  import { type FailureDiagnosis } from "./failure-taxonomy.js";
@@ -644,6 +645,8 @@ export interface AgenticRunnerOptions {
644
645
  /** Stable authenticated requester scope supplied by the host. Never infer
645
646
  * another user's memory access from task text or a model-selected actor. */
646
647
  taskMemoryOwnerKey?: string;
648
+ /** Host-observed Telegram topic. Required for the Telegram task recall scope. */
649
+ taskRecallTopicId?: number;
647
650
  /**
648
651
  * Selects the model-facing control plane for this run.
649
652
  *
@@ -998,6 +1001,15 @@ export interface AgenticRunnerOptions {
998
1001
  interruptionOwnerId?: string;
999
1002
  /** Adopt and resume a valid paused generation recovered from stateDir. */
1000
1003
  resumeInterrupted?: boolean;
1004
+ /** A live crash journal requires a complete checkpoint for this exact owner. */
1005
+ exactRestartCheckpoint?: {
1006
+ runId: string;
1007
+ taskEpoch: number;
1008
+ ownerGeneration: number;
1009
+ ownerId?: string;
1010
+ };
1011
+ /** Persist the current frontend owner after archiving a fresh foreground boundary. */
1012
+ onForegroundCheckpoint?: () => void | Promise<void>;
1001
1013
  /** Exact host-authorized explicit resume of a checkpointed unsent dispatch. */
1002
1014
  resumeOwnedModelBlockerOperationId?: string;
1003
1015
  /** Host opts in only after revalidating the exact native Telegram owner. */
@@ -2155,6 +2167,7 @@ export declare class AgenticRunner {
2155
2167
  /** Lossless backing corpus for virtualized context; generated memory is separate. */
2156
2168
  private _immutableEvidenceStore;
2157
2169
  private _structuredMemoryStore;
2170
+ private _taskRecall;
2158
2171
  private _virtualMemoryReceiptStore;
2159
2172
  private _contextMemoryTaskRecordId;
2160
2173
  /** Latest declared live graph roots, never a transcript-derived controller. */
@@ -2535,6 +2548,8 @@ export declare class AgenticRunner {
2535
2548
  /** Candidate host experience only. Telegram still needs current final review
2536
2549
  * and physical provider acknowledgements before it can enter success memory. */
2537
2550
  getTaskProcedureExperience(): typeof this._taskProcedureExperience;
2551
+ /** Host-only projection of an independently archived successful procedure. */
2552
+ recordTaskRecallVerifiedProcedure(memory: SuccessfulProcedureMemory, assertCurrent: () => void): void;
2538
2553
  private stopSuccessfulProcedureWorker;
2539
2554
  private successfulProcedureMemory;
2540
2555
  private sanitizeHistoricalProcedureText;
@@ -2693,18 +2708,9 @@ export declare class AgenticRunner {
2693
2708
  private _ownedModelWaitTicket;
2694
2709
  private _restorableBlockedModelObservation;
2695
2710
  private _canObserveFinalResponse;
2711
+ /** The caller has verified a terminal loss receipt for this exact model request. */
2712
+ private _replayLostOwnedModelResponse;
2696
2713
  private _blockOwnedModelWait;
2697
- /**
2698
- * Recover a model request whose response was lost (process restart, machine
2699
- * reboot, dropped stream, broker loss) by retiring its custody and letting
2700
- * the loop re-issue the request from the same saved turn. Model operations
2701
- * are read-only: tool effects only follow a response the runner received, so
2702
- * the retained history is exactly the last safe full turn. Refuses when an
2703
- * external effect is ambiguous, the task identity or workspace moved, the
2704
- * request is a verified final delivery (reconciled separately), or the
2705
- * bounded per-turn replay budget is spent; those still fence for review.
2706
- */
2707
- private _replayLostOwnedModelRequest;
2708
2714
  private _ownedModelBlockerSummary;
2709
2715
  private _observeOwnedModelWait;
2710
2716
  private readonly _pendingAuxiliaryModelDispatches;
@@ -3834,6 +3840,7 @@ export declare class AgenticRunner {
3834
3840
  private _nativeMemoryViews?;
3835
3841
  private _nativeStructuredStateCustody?;
3836
3842
  private nativeStructuredStateCustody;
3843
+ private taskRecallScope;
3837
3844
  private nativeMemoryViews;
3838
3845
  /** Current host authorization, separate from historical three-field execution receipts. */
3839
3846
  getMemoryExecutionBinding(): Readonly<HostMemoryBindingV1> | undefined;
@@ -4142,6 +4149,12 @@ export declare class AgenticRunner {
4142
4149
  get activeRunId(): string;
4143
4150
  private _nativeProviderDeliveryScope;
4144
4151
  private _stageNativeProviderDelivery;
4152
+ /** Bind the native host's choice before the first provider operation. */
4153
+ bindPendingProviderDeliveryDisposition(original: unknown, disposition: 'status' | 'completion'): boolean;
4154
+ private _saveNativeProviderDeliveryRecord;
4155
+ /** Retire a status-only stage and keep its candidate and unresolved work in
4156
+ * an incomplete terminal receipt. Telegram status IDs are audit evidence. */
4157
+ retirePendingProviderDeliveryAfterStatus(original: unknown, messageIds: readonly number[]): CompletionFinalizationRecord | null;
4145
4158
  /** Original hot custody only. A cold/JSON ticket cannot reissue delivery or completion. */
4146
4159
  isCurrentPendingProviderDelivery(original: unknown): boolean;
4147
4160
  /** No model/tool invocation. The pinned native host issuer proves the whole delivered presentation. */
@@ -4344,6 +4357,7 @@ export declare class AgenticRunner {
4344
4357
  * current policy or execution authority after an application update. */
4345
4358
  private _refreshPausedTelegramNativeContext;
4346
4359
  private _readPausedRunCheckpoint;
4360
+ private _assertCrashCheckpointEffects;
4347
4361
  private _validForcedIntake;
4348
4362
  private _restoreForcedIntake;
4349
4363
  private _recoverForcedUpdateRequirements;
@@ -36,6 +36,24 @@ export interface TerminalContextAdmissionFailure extends TerminalRuntimeFailureS
36
36
  phase: "before_transport";
37
37
  contextAdmission: ContextAdmissionReceipt;
38
38
  }
39
+ declare const CHECKPOINT_STORAGE_CODES: readonly [
40
+ "EACCES",
41
+ "EDQUOT",
42
+ "EIO",
43
+ "EISDIR",
44
+ "ENOSPC",
45
+ "ENOTDIR",
46
+ "EPERM",
47
+ "EROFS"
48
+ ];
49
+ export interface TerminalCheckpointStorageFailure extends TerminalRuntimeFailureScope {
50
+ code: "checkpoint_storage_unavailable";
51
+ phase: "before_transport";
52
+ dispatchAttempted: false;
53
+ retryable: false;
54
+ storageCode: typeof CHECKPOINT_STORAGE_CODES[number];
55
+ }
56
+ export declare function isCheckpointStorageCode(value: unknown): value is TerminalCheckpointStorageFailure["storageCode"];
39
57
  export interface TerminalModelEmptyResponseFailure extends TerminalRuntimeFailureScope {
40
58
  code: "model_empty_response_stall";
41
59
  phase: "after_transport";
@@ -74,7 +92,7 @@ export interface TerminalRepeatedObservationFailure extends TerminalRuntimeFailu
74
92
  operationSha256: string;
75
93
  resultSha256: string;
76
94
  }
77
- export type TerminalRuntimeFailure = TerminalContextAdmissionFailure | TerminalModelEmptyResponseFailure | TerminalInferenceFailure | TerminalLocalInferenceReadinessFailure | TerminalRepeatedFailedToolFailure | TerminalRepeatedObservationFailure;
95
+ export type TerminalRuntimeFailure = TerminalContextAdmissionFailure | TerminalCheckpointStorageFailure | TerminalModelEmptyResponseFailure | TerminalInferenceFailure | TerminalLocalInferenceReadinessFailure | TerminalRepeatedFailedToolFailure | TerminalRepeatedObservationFailure;
78
96
  /**
79
97
  * Immutable, local identity of the process that authored a terminal receipt.
80
98
  *
@@ -112,8 +112,6 @@ export interface ContentAddressedArtifactStoreOptions {
112
112
  rootDir?: string;
113
113
  /** Largest exact body accepted in one store operation. Default: 32 MiB. */
114
114
  maxArtifactBytes?: number;
115
- /** Maximum combined object bytes. Overrides root-local limits.json; otherwise defaults to 512 MiB. */
116
- maxStoreBytes?: number;
117
115
  /** Maximum provenance records attached to one content hash. Default: 64. */
118
116
  maxManifestRecords?: number;
119
117
  }
@@ -130,7 +128,6 @@ export declare function parseArtifactReference(reference: string): string;
130
128
  export declare class ContentAddressedArtifactStore {
131
129
  readonly rootDir: string;
132
130
  readonly maxArtifactBytes: number;
133
- readonly maxStoreBytes: number;
134
131
  readonly maxManifestRecords: number;
135
132
  private fileCommitTail;
136
133
  constructor(options?: ContentAddressedArtifactStoreOptions);
@@ -138,7 +135,7 @@ export declare class ContentAddressedArtifactStore {
138
135
  put(input: StoreCanonicalArtifactInput): StoredCanonicalArtifact;
139
136
  /**
140
137
  * Archive a complete host-owned UTF-8 file using bounded memory. Unlike put,
141
- * this path has no legacy per-object/store byte ceiling: disk/I/O failures and
138
+ * this path streams without a fixed inline-object ceiling. Disk/I/O failures and
142
139
  * caller cancellation fail explicitly. Expected producer fixity is checked
143
140
  * before any manifest is published. No supplied path enters an artifact URI.
144
141
  */
@@ -0,0 +1,36 @@
1
+ import type { CommandEvidenceReceipt } from "../execution/types.js";
2
+ import type { ContentAddressedArtifactStore } from "./contentAddressedArtifactStore.js";
3
+ /** Historical bytes, never a current source-read, verification or effect grant. */
4
+ export interface HistoricalToolObservationV1 {
5
+ schema: "omnius.historical-tool-observation.v1";
6
+ scopeId: string;
7
+ runId: string;
8
+ taskEpoch: number;
9
+ toolCallId: string;
10
+ artifactUri: string;
11
+ bodySha256: string;
12
+ }
13
+ interface ObservationBody {
14
+ scopeId: string;
15
+ runId: string;
16
+ taskEpoch: number;
17
+ toolCallId: string;
18
+ toolName: string;
19
+ args: Record<string, unknown>;
20
+ success: boolean;
21
+ output: string;
22
+ error?: string;
23
+ receipt?: CommandEvidenceReceipt;
24
+ }
25
+ /** Called by receipt settlement with actual executor data, before preview truncation. */
26
+ export declare function persistHistoricalToolObservation(store: ContentAddressedArtifactStore, input: ObservationBody): HistoricalToolObservationV1 | undefined;
27
+ /** The caller must first admit the exact predecessor ledger and issuer lineage. */
28
+ export declare function reopenHistoricalToolObservation(store: ContentAddressedArtifactStore, supplied: unknown, expected: {
29
+ scopeId: string;
30
+ runId: string;
31
+ taskEpoch: number;
32
+ toolName: string;
33
+ success: boolean;
34
+ receipt?: CommandEvidenceReceipt;
35
+ }): string | undefined;
36
+ export {};
@@ -108,6 +108,9 @@ export interface InterruptionLifecycleOptions {
108
108
  persistenceFaultForTest?: (stage: "temporary_synced" | "after_rename_before_directory_sync") => void;
109
109
  }
110
110
  export type InterruptionLifecycleMode = "off" | "shadow" | "enforce";
111
+ export declare function isInterruptionSnapshot(value: unknown): value is InterruptionSnapshot;
112
+ /** Read the existing journal without adopting, recovering, or advancing it. */
113
+ export declare function readDurableInterruptionSnapshot(stateDir: string, sessionId: string): InterruptionSnapshot | null;
111
114
  export declare function interruptionLifecycleMode(env?: NodeJS.ProcessEnv): InterruptionLifecycleMode;
112
115
  export declare function formatInterruptionAcknowledgement(receipt: InterruptionTransitionReceipt): string;
113
116
  export declare class InterruptionLifecycle {
@@ -27,6 +27,9 @@ export interface NativeProviderDeliveryStageV1 {
27
27
  readonly evidenceSnapshotSha256: string;
28
28
  readonly effectStateSha256: string;
29
29
  readonly readinessHash: string;
30
+ /** The host assigns this before dispatch. A status never satisfies the goal. */
31
+ readonly disposition?: 'status' | 'completion';
32
+ readonly statusMessageIds?: readonly number[];
30
33
  readonly acknowledged?: {
31
34
  readonly presentationSha256: string;
32
35
  readonly receipts: readonly CompletionDeliveryReceipt[];
@@ -38,9 +38,16 @@ export interface SourceReviewWebReadV1 extends Omit<SourceReviewReadV1, "schema"
38
38
  issuerSha256: string;
39
39
  receipt: WebFetchReceipt;
40
40
  }
41
+ /** Exact historical results from one authorized native recall query. */
42
+ export interface SourceReviewTaskRecallReadV1 extends Omit<SourceReviewReadV1, "schema" | "path"> {
43
+ schema: "omnius.source-review-task-recall-read.v1";
44
+ scopeId: string;
45
+ bodySha256: string;
46
+ observationSha256: string;
47
+ }
41
48
  export interface SourceReviewStateReadV1 {
42
49
  evidenceId: string;
43
- sourceRead: SourceReviewReadV1 | SourceReviewArtifactReadV1 | SourceReviewWebReadV1;
50
+ sourceRead: SourceReviewReadV1 | SourceReviewArtifactReadV1 | SourceReviewWebReadV1 | SourceReviewTaskRecallReadV1;
44
51
  operationSha256: string;
45
52
  resultBodySha256: string;
46
53
  status: "current" | "changed" | "missing" | "outside_owner" | "unavailable" | "changed_during_read";
@@ -90,6 +90,7 @@ export declare class StructuredMemoryExtractionQueue {
90
90
  createWorker(options: StructuredMemoryExtractionWorkerOptions): {
91
91
  runOnce(signal?: AbortSignal): Promise<StructuredMemoryExtractionRunResult>;
92
92
  };
93
+ private consolidateTaskRecall;
93
94
  private execute;
94
95
  }
95
96
  /** A client-lifetime handle. Terminal task closure neither admits nor cancels it. */
@@ -126,6 +126,13 @@ export declare class SuccessfulProcedureMemory {
126
126
  private embeddingProfile;
127
127
  private storedProcedure;
128
128
  private checkedStoredProcedure;
129
+ readRunImitationExample(input: {
130
+ scope: UserTaskNoteScope;
131
+ runId: string;
132
+ taskEpoch: number;
133
+ assertCurrent: () => void;
134
+ signal?: AbortSignal;
135
+ }): SuccessfulProcedureImitationExample;
129
136
  /** Exact, opt-in offline source read. Only real executed verification
130
137
  * retained in the committed terminal may qualify an imitation example. */
131
138
  readImitationExample(input: {
@@ -0,0 +1,37 @@
1
+ import type { MemorySearchResultV1 } from "../memory/memoryCapability.js";
2
+ import type { CompletionEvidence } from "./completionLedger.js";
3
+ import type { ContentAddressedArtifactStore } from "./contentAddressedArtifactStore.js";
4
+ import { type HistoricalToolObservationV1 } from "./historicalToolObservation.js";
5
+ import type { SourceReviewStateReadV1 } from "./semanticVerification.js";
6
+ type Owner = {
7
+ scopeId: string;
8
+ runId: string;
9
+ taskEpoch: number;
10
+ taskRecallScopeId: string;
11
+ };
12
+ type RecordView = {
13
+ occurrenceId: string;
14
+ sourceSha256: string;
15
+ kind: "observation" | "derived_claim";
16
+ text: string;
17
+ };
18
+ export type TaskRecallReviewObservation = {
19
+ evidenceId: string;
20
+ toolCallId: string;
21
+ query: string;
22
+ records: RecordView[];
23
+ };
24
+ /** Accept only a result already reopened from the native tool's current issuer. */
25
+ export declare function persistTaskRecallReviewObservation(store: ContentAddressedArtifactStore, input: Owner & {
26
+ toolCallId: string;
27
+ args: Record<string, unknown>;
28
+ issued: MemorySearchResultV1;
29
+ }): {
30
+ taskRecallScopeId: string;
31
+ recordsSha256: string;
32
+ observation: HistoricalToolObservationV1;
33
+ } | undefined;
34
+ /** Reopen original historical result bytes for this owner, never method credit or live state. */
35
+ export declare function reopenTaskRecallReviewObservations(store: ContentAddressedArtifactStore, evidence: readonly CompletionEvidence[], owner: Owner): TaskRecallReviewObservation[];
36
+ export declare function reopenTaskRecallSourceReviewReads(store: ContentAddressedArtifactStore, evidence: readonly CompletionEvidence[], owner: Owner): SourceReviewStateReadV1[];
37
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { type TaskRequirementNativeEvidenceV1, type TaskRequirementSetV1 } from "./taskRequirements.js";
2
2
  import type { SourceReviewStateEvidenceV1 } from "./semanticVerification.js";
3
+ import type { TaskRecallReviewObservation } from "./task-recall-review-evidence.js";
3
4
  import { type DocumentPersistenceReviewEvidenceV1 } from "./document-persistence-goal-binding.js";
4
5
  /** The host supplies the current canonical requirements and actual evidence.
5
6
  * Model prose cannot choose the requirement population or grant effects. */
@@ -17,6 +18,8 @@ export interface TaskRequirementReviewInput {
17
18
  evidenceSnapshotSha256?: string;
18
19
  /** Host-reopened, operation-bound sources; candidate text cannot supply this. */
19
20
  sourceReviewStateEvidence?: SourceReviewStateEvidenceV1;
21
+ /** Authentic scoped historical memory text reopened by the host. */
22
+ taskRecallObservations?: TaskRecallReviewObservation[];
20
23
  /** A specialized source critic may check result coverage without issuing
21
24
  * source-review authority. The independent semantic obligation stays open. */
22
25
  resultCoverageOnly?: true;
@@ -37,6 +37,7 @@ export interface TaskSemanticContinuationV1 {
37
37
  runId: string;
38
38
  taskEpoch: number;
39
39
  ledgerSha256: string;
40
+ stoppedOwnerGeneration?: number;
40
41
  };
41
42
  predecessorAdmission?: TaskSemanticAdmissionV1;
42
43
  /** Migration requires a fresh complete-source host review; it imports no
@@ -134,6 +135,13 @@ export declare function createTaskSemanticAdmissionV1(input: {
134
135
  * checklist. A single unit keeps the complete human request together and only
135
136
  * actual invocation outcomes may satisfy its declared observation/mutation kinds. */
136
137
  export declare function createTaskSemanticWorkPlanV1(contract: TaskObjectiveContractV1): TaskWorkPlanV1 | undefined;
138
+ type StoppedSemanticPredecessor = TaskSemanticContinuationV1["predecessor"];
139
+ /** Preserve the terminal interruption independently of the mutable session journal. */
140
+ export declare function preserveStoppedTaskSemanticPredecessorV1(input: {
141
+ stateDir: string;
142
+ sessionId: string;
143
+ predecessor: StoppedSemanticPredecessor;
144
+ }): boolean;
137
145
  /** The source bytes and admitted conversation are independent of the model's
138
146
  * continuity prose. Old verifier/candidate receipts remain audit records and
139
147
  * cannot grant fresh source comparison or final-answer acceptance. */
@@ -157,3 +165,4 @@ export declare function startTaskSemanticContinuationInference(record: TaskSeman
157
165
  persistenceFaultForTest?: (stage: "prepared_before_claim" | "claim_committed") => void;
158
166
  }): void;
159
167
  export declare function taskSemanticContinuationAuthorizesEvidence(ledger: CompletionLedger | null | undefined, entry: CompletionEvidence): boolean;
168
+ export {};
@@ -136,6 +136,10 @@ export interface TaskWorkPlanBindingInputV1 {
136
136
  }
137
137
  export declare function taskWorkPolicySha256V1(contract: TaskObjectiveContractV1): string;
138
138
  export declare function taskWorkUnitDefinitionSha256V1(unit: TaskWorkUnitV1): string;
139
+ declare function ownedOutcome(entry: CompletionEvidence, unit: TaskWorkUnitV1, plan: TaskWorkPlanV1, contract: TaskObjectiveContractV1, runId: string): boolean;
140
+ export { ownedOutcome as isTaskWorkOwnedOutcomeV1 };
141
+ /** Missing typed observations in the supplied frontier. Dispatch still requires the current execution owner. */
142
+ export declare function taskWorkReadinessGapsV1(unit: TaskWorkUnitV1, evidence: readonly CompletionEvidence[], frontier: ObjectiveFrontierSnapshotV1): string[];
139
143
  type TaskWorkProgressHandoffInputV1 = TaskWorkPlanBindingInputV1 & {
140
144
  frontier: ObjectiveFrontierSnapshotV1;
141
145
  runId: string;
@@ -174,4 +178,3 @@ export declare function reconcileTaskWorkPlanProgressV1(input: {
174
178
  effectState?: TaskEffectStateEvidenceV1;
175
179
  isCurrentInheritedOutcome?: (entry: CompletionEvidence) => boolean;
176
180
  }): TaskWorkPlanV1;
177
- export {};
@@ -297278,6 +297278,9 @@ var memoryContentHash = (value) => createHash2("sha256").update(value).digest("h
297278
297278
  var stableMemoryHash = (value) => memoryContentHash(canonical(value));
297279
297279
  var UNBOUND = stableMemoryHash({ memoryBinding: "unavailable" });
297280
297280
 
297281
+ // packages/memory/dist/taskRecallMemory.js
297282
+ var MAX_SOURCE_BYTES2 = 256 * 1024;
297283
+
297281
297284
  // packages/memory/dist/virtualMemory.js
297282
297285
  var DEFAULT_CAPACITIES = {
297283
297286
  L0: 8e3,