omnius 1.0.923 → 1.0.925

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 (239) hide show
  1. package/dist/{providerRegistry.d.ts → _types/backend-vllm/providerRegistry.d.ts} +0 -1
  2. package/dist/_types/backend-vllm/types.d.ts +209 -0
  3. package/dist/_types/execution/av/media-capability.d.ts +94 -0
  4. package/dist/_types/execution/delegation-contract.d.ts +102 -0
  5. package/dist/_types/execution/evidence.d.ts +68 -0
  6. package/dist/_types/execution/html-source-evidence.d.ts +65 -0
  7. package/dist/_types/execution/mcp/types.d.ts +169 -0
  8. package/dist/_types/execution/mutation-contract.d.ts +102 -0
  9. package/dist/_types/execution/nol/artifacts.d.ts +39 -0
  10. package/dist/_types/execution/nol/checkpoint-edits.d.ts +98 -0
  11. package/dist/_types/execution/nol/distributions.d.ts +128 -0
  12. package/dist/_types/execution/nol/gguf-checkpoint-edits.d.ts +194 -0
  13. package/dist/_types/execution/nol/gguf-control-reader.d.ts +224 -0
  14. package/dist/_types/execution/nol/lora-exports.d.ts +129 -0
  15. package/dist/_types/execution/nol/neuronary.d.ts +212 -0
  16. package/dist/_types/execution/nol/pytorch-control-reader.d.ts +143 -0
  17. package/dist/_types/execution/nol/qwen35-head-sites.d.ts +61 -0
  18. package/dist/_types/execution/nol/worker-assets.d.ts +82 -0
  19. package/dist/_types/execution/nol/worker-protocol.d.ts +94 -0
  20. package/dist/_types/execution/page-content-source.d.ts +40 -0
  21. package/dist/_types/execution/rapid-computer-use/artifact-store.d.ts +21 -0
  22. package/dist/_types/execution/rapid-computer-use/contracts.d.ts +320 -0
  23. package/dist/_types/execution/rapid-computer-use/decision.d.ts +70 -0
  24. package/dist/_types/execution/rapid-computer-use/desktop-verification.d.ts +23 -0
  25. package/dist/_types/execution/rapid-computer-use/geometry.d.ts +57 -0
  26. package/dist/_types/execution/rapid-computer-use/planner.d.ts +78 -0
  27. package/dist/_types/execution/rapid-computer-use/trace.d.ts +80 -0
  28. package/dist/_types/execution/rapid-computer-use/visual.d.ts +48 -0
  29. package/dist/_types/execution/shell-runs.d.ts +78 -0
  30. package/dist/_types/execution/streamed-web-source.d.ts +64 -0
  31. package/dist/_types/execution/tools/browser-page-fallback.d.ts +25 -0
  32. package/dist/_types/execution/tools/network-egress-policy.d.ts +30 -0
  33. package/dist/_types/execution/tools/pdf-native-tables.d.ts +46 -0
  34. package/dist/_types/execution/tools/todo-store.d.ts +133 -0
  35. package/dist/_types/execution/tools/web-fetch.d.ts +57 -0
  36. package/dist/_types/execution/tools/workboard.d.ts +1223 -0
  37. package/dist/_types/execution/types.d.ts +549 -0
  38. package/dist/_types/execution/web-source.d.ts +14 -0
  39. package/dist/_types/memory/artifactReviewSourceIndex.d.ts +133 -0
  40. package/dist/_types/memory/contextMemoryLedger.d.ts +213 -0
  41. package/dist/_types/memory/db.d.ts +12 -0
  42. package/dist/_types/memory/embeddings.d.ts +36 -0
  43. package/dist/_types/memory/immutableEvidenceStore.d.ts +165 -0
  44. package/dist/_types/memory/memoryIngestion.d.ts +65 -0
  45. package/dist/_types/memory/memoryTypes.d.ts +312 -0
  46. package/dist/_types/memory/sourceCorpusStore.d.ts +331 -0
  47. package/dist/_types/memory/structuredMemoryStore.d.ts +105 -0
  48. package/dist/_types/memory/unifiedMemoryStore.d.ts +127 -0
  49. package/dist/_types/memory/virtualMemory.d.ts +187 -0
  50. package/dist/_types/orchestrator/agentic-page-content-receipt.d.ts +20 -0
  51. package/dist/_types/orchestrator/agentic-web-fetch-receipt.d.ts +20 -0
  52. package/dist/_types/orchestrator/agenticRunner.d.ts +5219 -0
  53. package/dist/_types/orchestrator/app-state.d.ts +171 -0
  54. package/dist/_types/orchestrator/artifactClaimCritic.d.ts +63 -0
  55. package/dist/_types/orchestrator/artifactQuality.d.ts +15 -0
  56. package/dist/_types/orchestrator/artifactSemanticIntegrity.d.ts +203 -0
  57. package/dist/_types/orchestrator/canonical-context-projection.d.ts +254 -0
  58. package/dist/_types/orchestrator/canonical-source-body-projection.d.ts +51 -0
  59. package/dist/_types/orchestrator/completion-review-pending.d.ts +24 -0
  60. package/dist/_types/orchestrator/completionContract.d.ts +103 -0
  61. package/dist/_types/orchestrator/completionFinalization.d.ts +224 -0
  62. package/dist/_types/orchestrator/completionLedger.d.ts +429 -0
  63. package/dist/_types/orchestrator/completionReadiness.d.ts +234 -0
  64. package/dist/_types/orchestrator/context-admission.d.ts +93 -0
  65. package/dist/_types/orchestrator/context-dump-retention.d.ts +25 -0
  66. package/dist/_types/orchestrator/context-fabric.d.ts +133 -0
  67. package/dist/_types/orchestrator/contextEngine.d.ts +68 -0
  68. package/dist/_types/orchestrator/contextWindowDump.d.ts +327 -0
  69. package/dist/_types/orchestrator/convergence-breaker.d.ts +225 -0
  70. package/dist/_types/orchestrator/convergence-progress.d.ts +66 -0
  71. package/dist/_types/orchestrator/deliveryCoverage.d.ts +181 -0
  72. package/dist/_types/orchestrator/document-persistence-goal-binding.d.ts +106 -0
  73. package/dist/_types/orchestrator/durable-document-worker.d.ts +85 -0
  74. package/dist/_types/orchestrator/evidenceBranch.d.ts +291 -0
  75. package/dist/_types/orchestrator/expected-inference-response.d.ts +55 -0
  76. package/dist/_types/orchestrator/expectedOutcomeContract.d.ts +58 -0
  77. package/dist/_types/orchestrator/failure-taxonomy.d.ts +36 -0
  78. package/dist/_types/orchestrator/focusSupervisor.d.ts +436 -0
  79. package/dist/_types/orchestrator/forced-update-requirement-recovery.d.ts +105 -0
  80. package/dist/_types/orchestrator/hooks.d.ts +100 -0
  81. package/dist/_types/orchestrator/inference-pressure.d.ts +61 -0
  82. package/dist/_types/orchestrator/integrationClosure.d.ts +89 -0
  83. package/dist/_types/orchestrator/interruption-lifecycle.d.ts +154 -0
  84. package/dist/_types/orchestrator/live-memory-passages.d.ts +51 -0
  85. package/dist/_types/orchestrator/liveVirtualContext.d.ts +84 -0
  86. package/dist/_types/orchestrator/memory-compiler.d.ts +254 -0
  87. package/dist/_types/orchestrator/memory-consolidation.d.ts +134 -0
  88. package/dist/_types/orchestrator/model-router.d.ts +17 -0
  89. package/dist/_types/orchestrator/modelResponseDiagnostics.d.ts +71 -0
  90. package/dist/_types/orchestrator/nativeRequirementAmendment.d.ts +63 -0
  91. package/dist/_types/orchestrator/nol/coordinator.d.ts +204 -0
  92. package/dist/_types/orchestrator/nol/datasets.d.ts +58 -0
  93. package/dist/_types/orchestrator/nol/discovery.d.ts +286 -0
  94. package/dist/_types/orchestrator/nol/evaluation.d.ts +59 -0
  95. package/dist/_types/orchestrator/nol/model-validation.d.ts +198 -0
  96. package/dist/_types/orchestrator/nol/statistics.d.ts +142 -0
  97. package/dist/_types/orchestrator/nol/store.d.ts +133 -0
  98. package/dist/_types/orchestrator/nol/variant-registry.d.ts +292 -0
  99. package/dist/_types/orchestrator/ollama-context-policy.d.ts +34 -0
  100. package/dist/_types/orchestrator/personality.d.ts +66 -0
  101. package/dist/_types/orchestrator/prompt-cache.d.ts +24 -0
  102. package/dist/_types/orchestrator/remote-inference-fallback.d.ts +224 -0
  103. package/dist/_types/orchestrator/remote-inference-policy.d.ts +58 -0
  104. package/dist/_types/orchestrator/request-budget.d.ts +75 -0
  105. package/dist/_types/orchestrator/requirementCoverage.d.ts +69 -0
  106. package/dist/_types/orchestrator/reviewedInterpretation.d.ts +111 -0
  107. package/dist/_types/orchestrator/runEvents.d.ts +115 -0
  108. package/dist/_types/orchestrator/runtime-rollout.d.ts +63 -0
  109. package/dist/_types/orchestrator/semanticVerification.d.ts +135 -0
  110. package/dist/_types/orchestrator/source-wide-extraction.d.ts +202 -0
  111. package/dist/_types/orchestrator/steeringIntake.d.ts +123 -0
  112. package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +89 -0
  113. package/dist/_types/orchestrator/structuredMemoryInference.d.ts +62 -0
  114. package/dist/_types/orchestrator/successful-procedure-memory.d.ts +127 -0
  115. package/dist/_types/orchestrator/supportedAnswer.d.ts +68 -0
  116. package/dist/_types/orchestrator/taskEffectEvidence.d.ts +38 -0
  117. package/dist/_types/orchestrator/taskExecutionSnapshot.d.ts +67 -0
  118. package/dist/_types/orchestrator/taskObjective.d.ts +310 -0
  119. package/dist/_types/orchestrator/taskObjectiveContinuation.d.ts +134 -0
  120. package/dist/_types/orchestrator/taskRequirementReview.d.ts +246 -0
  121. package/dist/_types/orchestrator/taskRequirements.d.ts +80 -0
  122. package/dist/_types/orchestrator/taskSemanticAdmission.d.ts +159 -0
  123. package/dist/_types/orchestrator/taskWorkDelegation.d.ts +147 -0
  124. package/dist/_types/orchestrator/taskWorkPlan.d.ts +177 -0
  125. package/dist/_types/orchestrator/telegram-passive-history.d.ts +42 -0
  126. package/dist/_types/orchestrator/terminalTaskReport.d.ts +91 -0
  127. package/dist/_types/orchestrator/todoObservability.d.ts +147 -0
  128. package/dist/_types/orchestrator/tool-exposure-policy.d.ts +100 -0
  129. package/dist/_types/orchestrator/trajectory-checkpoint.d.ts +159 -0
  130. package/dist/_types/orchestrator/types.d.ts +185 -0
  131. package/dist/_types/schemas/dispatch.d.ts +53 -0
  132. package/dist/_types/schemas/feature-workflow.d.ts +362 -0
  133. package/dist/_types/schemas/messages.d.ts +15 -0
  134. package/dist/_types/schemas/nol-assets.d.ts +955 -0
  135. package/dist/_types/schemas/nol-json.d.ts +2 -0
  136. package/dist/_types/schemas/nol.d.ts +3995 -0
  137. package/dist/_types/schemas/patch.d.ts +47 -0
  138. package/dist/_types/schemas/plan.d.ts +47 -0
  139. package/dist/_types/schemas/repoProfile.d.ts +116 -0
  140. package/dist/_types/schemas/retrieval.d.ts +44 -0
  141. package/dist/_types/schemas/task.d.ts +57 -0
  142. package/dist/_types/schemas/tools.d.ts +16 -0
  143. package/dist/_types/schemas/verification.d.ts +31 -0
  144. package/dist/api/py-embed.js +3353 -1829
  145. package/dist/assets/nol-checkpoint-editor.py +701 -0
  146. package/dist/assets/nol-gguf-checkpoint-editor.py +785 -0
  147. package/dist/assets/nol-gguf-control-reader.py +428 -0
  148. package/dist/assets/nol-gne-tools-worker.py +425 -0
  149. package/dist/assets/nol-gne-worker.py +1081 -0
  150. package/dist/assets/nol-lora-exporter.py +349 -0
  151. package/dist/assets/nol-pytorch-control-reader.py +470 -0
  152. package/dist/assets/nol-transformers-nnsight-worker.py +512 -0
  153. package/dist/assets/nol-transformers-peft-validation-worker.py +385 -0
  154. package/dist/assets/nol-transformers-peft-worker.py +488 -0
  155. package/dist/assets/nol-transformers-research-worker.py +472 -0
  156. package/dist/assets/nol-transformers-worker.py +920 -0
  157. package/dist/assets/nol-vllm-owned-worker.py +803 -0
  158. package/dist/assets/nol-vllm-runtime.py +695 -0
  159. package/dist/assets/nol-vllm-tokenizer.py +93 -0
  160. package/dist/assets/nol-vllm-worker.py +201 -0
  161. package/dist/computer-use/configured-planner.d.ts +37 -0
  162. package/dist/computer-use/configured-point.d.ts +35 -0
  163. package/dist/computer-use/host-session.d.ts +60 -0
  164. package/dist/computer-use/runner-ui-port.d.ts +37 -0
  165. package/dist/computer-use/session-review.d.ts +14 -0
  166. package/dist/computer-use/task-spec.d.ts +84 -0
  167. package/dist/discovery.d.ts +16 -2
  168. package/dist/index.js +2 -2
  169. package/dist/library.d.ts +94 -10
  170. package/dist/library.js +144003 -87414
  171. package/dist/memory-maintenance-worker.js +1676 -511
  172. package/dist/nol/cpu-control-reader-profile.d.ts +93 -0
  173. package/dist/nol/cpu-control-reader-service.d.ts +87 -0
  174. package/dist/nol/cuda-lease.d.ts +111 -0
  175. package/dist/nol/cuda-mutations.d.ts +34 -0
  176. package/dist/nol/export-runtime-config.d.ts +114 -0
  177. package/dist/nol/export-service.d.ts +143 -0
  178. package/dist/nol/facade.d.ts +147 -0
  179. package/dist/nol/gguf-cpu-control-reader-profile.d.ts +106 -0
  180. package/dist/nol/gguf-cpu-control-reader-service.d.ts +91 -0
  181. package/dist/nol/gguf-model-control-verifier.d.ts +120 -0
  182. package/dist/nol/gguf-parameter-inventory.d.ts +28 -0
  183. package/dist/nol/gne-adapter.d.ts +134 -0
  184. package/dist/nol/gne-agent-evaluation.d.ts +84 -0
  185. package/dist/nol/gne-profile.d.ts +124 -0
  186. package/dist/nol/gne-tools-profile.d.ts +148 -0
  187. package/dist/nol/gne-tools-transport.d.ts +194 -0
  188. package/dist/nol/model-actions.d.ts +662 -0
  189. package/dist/nol/model-control-verifier.d.ts +135 -0
  190. package/dist/nol/model-json-scorer.d.ts +13 -0
  191. package/dist/nol/model-runtime-config.d.ts +830 -0
  192. package/dist/nol/model-serving.d.ts +130 -0
  193. package/dist/nol/model-subject-adapter.d.ts +72 -0
  194. package/dist/nol/model-validation-factory.d.ts +113 -0
  195. package/dist/nol/neuronary-catalog.d.ts +130 -0
  196. package/dist/nol/orphan-custody.d.ts +72 -0
  197. package/dist/nol/peft-conformance.d.ts +48 -0
  198. package/dist/nol/peft-control-types.d.ts +137 -0
  199. package/dist/nol/peft-control-verifier.d.ts +8 -0
  200. package/dist/nol/peft-model-actions.d.ts +41 -0
  201. package/dist/nol/peft-model-authority.d.ts +146 -0
  202. package/dist/nol/peft-model-controls.d.ts +20 -0
  203. package/dist/nol/peft-model-host.d.ts +47 -0
  204. package/dist/nol/peft-model-profile.d.ts +161 -0
  205. package/dist/nol/peft-model-runtime-config.d.ts +174 -0
  206. package/dist/nol/peft-model-subject-adapter.d.ts +36 -0
  207. package/dist/nol/peft-validation.d.ts +105 -0
  208. package/dist/nol/persistent-parameter-inventory.d.ts +32 -0
  209. package/dist/nol/runtime.d.ts +100 -0
  210. package/dist/nol/sqlite-store.d.ts +80 -0
  211. package/dist/nol/transformers-adapter.d.ts +119 -0
  212. package/dist/nol/transformers-nnsight.d.ts +87 -0
  213. package/dist/nol/transformers-peft.d.ts +107 -0
  214. package/dist/nol/transformers-research.d.ts +114 -0
  215. package/dist/nol/variant-service.d.ts +143 -0
  216. package/dist/nol/variant-store.d.ts +51 -0
  217. package/dist/nol/vllm-actions.d.ts +774 -0
  218. package/dist/nol/vllm-adapter.d.ts +1473 -0
  219. package/dist/nol/vllm-authority.d.ts +55 -0
  220. package/dist/nol/vllm-conformance.d.ts +662 -0
  221. package/dist/nol/vllm-profile.d.ts +850 -0
  222. package/dist/nol/vllm-protocol.d.ts +1505 -0
  223. package/dist/nol/vllm-runtime-config.d.ts +120 -0
  224. package/dist/nol/vllm-runtime.d.ts +34 -0
  225. package/dist/nol/vllm-startup.d.ts +235 -0
  226. package/dist/omni-setup-worker.js +3433 -1909
  227. package/dist/service-version.d.ts +0 -1
  228. package/dist/tui/async-process.d.ts +27 -0
  229. package/dist/tui/native/worker.js +3 -1
  230. package/dist/tui/telegram-action-session-registry.d.ts +136 -0
  231. package/dist/tui/telegram-cognition-queue.d.ts +154 -0
  232. package/dist/tui/telegram-context-packet-v2.d.ts +99 -0
  233. package/dist/tui/telegram-input-ownership.d.ts +78 -0
  234. package/dist/tui/telegram-turn-contract-v2.d.ts +62 -0
  235. package/dist/update-worker-runtime.js +4216 -2603
  236. package/docs/DISCOVERY.json +389 -0
  237. package/docs/DISCOVERY.md +4 -0
  238. package/npm-shrinkwrap.json +28 -12
  239. package/package.json +3 -2
@@ -0,0 +1,246 @@
1
+ import { type TaskRequirementNativeEvidenceV1, type TaskRequirementSetV1 } from "./taskRequirements.js";
2
+ import type { SourceReviewStateEvidenceV1 } from "./semanticVerification.js";
3
+ import { type DocumentPersistenceReviewEvidenceV1 } from "./document-persistence-goal-binding.js";
4
+ /** The host supplies the current canonical requirements and actual evidence.
5
+ * Model prose cannot choose the requirement population or grant effects. */
6
+ export interface TaskRequirementReviewInput {
7
+ requirements: TaskRequirementSetV1;
8
+ request: string;
9
+ candidate: string;
10
+ evidence: unknown;
11
+ /** Exact host-retained original request and accepted steering from the
12
+ * current semantic admission. Artifact/candidate text cannot supply this. */
13
+ nativeSourceEvidence?: TaskRequirementNativeEvidenceV1[];
14
+ mode?: "whole_task" | "source_member";
15
+ /** A host-computed semantic evidence fingerprint. The exact inference
16
+ * packet has a separate digest, including all rendered audit metadata. */
17
+ evidenceSnapshotSha256?: string;
18
+ /** Host-reopened, operation-bound sources; candidate text cannot supply this. */
19
+ sourceReviewStateEvidence?: SourceReviewStateEvidenceV1;
20
+ /** A specialized source critic may check result coverage without issuing
21
+ * source-review authority. The independent semantic obligation stays open. */
22
+ resultCoverageOnly?: true;
23
+ /** Actual current commits and complete reviewed source assignments, never model supplied. */
24
+ documentPersistenceEvidence?: DocumentPersistenceReviewEvidenceV1;
25
+ }
26
+ export interface TaskRequirementCheckV1 {
27
+ requirementId: string;
28
+ status: "satisfied" | "unsatisfied" | "unassessed" | "not_applicable";
29
+ reason: string;
30
+ /** Literal substrings of the exact candidate, validated by the host. */
31
+ candidateQuotes: string[];
32
+ supportingEvidenceIds?: string[];
33
+ supportingEffectEvidenceIds?: string[];
34
+ }
35
+ /** Host-generated diagnostics, never accepted from reviewer output. The full
36
+ * current check inventory must validate before this issue can be returned. */
37
+ export interface TaskRequirementReviewStructuralIssueV1 {
38
+ schema: "omnius.task-requirement-review-structural-issue.v1";
39
+ code: "candidate_quote_not_exact";
40
+ path: `/checks/${number}/candidateQuotes/${number}`;
41
+ requirementId: string;
42
+ }
43
+ export interface TaskRequirementReviewResult {
44
+ accepted: boolean;
45
+ verificationOutcome: "passed" | "artifact_failed" | "verifier_invalid" | "inconclusive";
46
+ reason: string;
47
+ checks: TaskRequirementCheckV1[];
48
+ requirementSetSha256: string;
49
+ candidateSha256: string;
50
+ evidenceSnapshotSha256: string;
51
+ reviewInputSha256: string;
52
+ structuralIssue?: TaskRequirementReviewStructuralIssueV1;
53
+ }
54
+ export declare function getTaskResultRequirementIds(requirements: TaskRequirementSetV1): string[];
55
+ export declare const TASK_REQUIREMENT_REVIEW_SCHEMA: {
56
+ readonly type: "object";
57
+ readonly additionalProperties: false;
58
+ readonly required: readonly [
59
+ "checks",
60
+ "reason"
61
+ ];
62
+ readonly properties: {
63
+ readonly reason: {
64
+ readonly type: "string";
65
+ };
66
+ readonly checks: {
67
+ readonly type: "array";
68
+ readonly items: {
69
+ readonly type: "object";
70
+ readonly additionalProperties: false;
71
+ readonly required: readonly [
72
+ "requirementId",
73
+ "status",
74
+ "reason",
75
+ "candidateQuotes"
76
+ ];
77
+ readonly properties: {
78
+ readonly requirementId: {
79
+ readonly type: "string";
80
+ };
81
+ readonly status: {
82
+ readonly type: "string";
83
+ readonly enum: readonly [
84
+ "satisfied",
85
+ "unsatisfied",
86
+ "unassessed",
87
+ "not_applicable"
88
+ ];
89
+ };
90
+ readonly reason: {
91
+ readonly type: "string";
92
+ };
93
+ readonly candidateQuotes: {
94
+ readonly type: "array";
95
+ readonly description: "Quotes copied from the exact candidate. A satisfied check needs at least one quote; unsatisfied or unassessed may use [] when the deficiency has no candidate span.";
96
+ readonly items: {
97
+ readonly type: "string";
98
+ readonly description: "A nonempty exact contiguous substring of candidate after JSON decoding. Preserve all characters, whitespace and punctuation; do not paraphrase, add ellipses or quote source/request text instead.";
99
+ };
100
+ };
101
+ };
102
+ };
103
+ };
104
+ };
105
+ };
106
+ /** Constrain this physical review to the host-selected result population.
107
+ * The complete native context remains available without granting more check
108
+ * identifiers. Uniqueness and exact semantic coverage remain parser guards. */
109
+ export declare function buildTaskRequirementReviewResponseSchema(requirements: TaskRequirementSetV1, mode?: TaskRequirementReviewInput["mode"], sourceReviewStateEvidence?: SourceReviewStateEvidenceV1, resultCoverageOnly?: boolean, documentPersistenceEvidence?: DocumentPersistenceReviewEvidenceV1, candidate?: string): {
110
+ properties: {
111
+ checks: {
112
+ items: {
113
+ properties: {
114
+ candidateQuotes: {
115
+ readonly type: "array";
116
+ readonly description: "Quotes copied from the exact candidate. A satisfied check needs at least one quote; unsatisfied or unassessed may use [] when the deficiency has no candidate span.";
117
+ readonly items: {
118
+ readonly type: "string";
119
+ readonly description: "A nonempty exact contiguous substring of candidate after JSON decoding. Preserve all characters, whitespace and punctuation; do not paraphrase, add ellipses or quote source/request text instead.";
120
+ };
121
+ } | {
122
+ minItems: number;
123
+ description: string;
124
+ items: {
125
+ type: string;
126
+ additionalProperties: boolean;
127
+ required: string[];
128
+ description: string;
129
+ properties: {
130
+ spanId: {
131
+ type: string;
132
+ enum: string[];
133
+ };
134
+ };
135
+ };
136
+ type: "array";
137
+ };
138
+ requirementId: {
139
+ description: string;
140
+ enum?: string[] | undefined;
141
+ type: "string";
142
+ };
143
+ status: {
144
+ type: string;
145
+ enum: string[];
146
+ };
147
+ reason: {
148
+ readonly type: "string";
149
+ };
150
+ };
151
+ type: "object";
152
+ additionalProperties: false;
153
+ required: readonly [
154
+ "requirementId",
155
+ "status",
156
+ "reason",
157
+ "candidateQuotes"
158
+ ];
159
+ anyOf?: undefined;
160
+ } | {
161
+ anyOf: {
162
+ required: string[];
163
+ properties: {
164
+ supportingEffectEvidenceIds?: {
165
+ type: string;
166
+ uniqueItems: boolean;
167
+ maxItems: number;
168
+ items: {
169
+ enum?: string[] | undefined;
170
+ type: string;
171
+ };
172
+ } | undefined;
173
+ supportingEvidenceIds?: {
174
+ items: {
175
+ enum?: string[] | undefined;
176
+ type: string;
177
+ };
178
+ maxItems: number;
179
+ type: string;
180
+ uniqueItems: boolean;
181
+ } | undefined;
182
+ candidateQuotes: {
183
+ readonly type: "array";
184
+ readonly description: "Quotes copied from the exact candidate. A satisfied check needs at least one quote; unsatisfied or unassessed may use [] when the deficiency has no candidate span.";
185
+ readonly items: {
186
+ readonly type: "string";
187
+ readonly description: "A nonempty exact contiguous substring of candidate after JSON decoding. Preserve all characters, whitespace and punctuation; do not paraphrase, add ellipses or quote source/request text instead.";
188
+ };
189
+ } | {
190
+ minItems: number;
191
+ description: string;
192
+ items: {
193
+ type: string;
194
+ additionalProperties: boolean;
195
+ required: string[];
196
+ description: string;
197
+ properties: {
198
+ spanId: {
199
+ type: string;
200
+ enum: string[];
201
+ };
202
+ };
203
+ };
204
+ type: "array";
205
+ };
206
+ requirementId: {
207
+ type: string;
208
+ const: string;
209
+ };
210
+ status: {
211
+ type: string;
212
+ enum: string[];
213
+ };
214
+ reason: {
215
+ readonly type: "string";
216
+ };
217
+ };
218
+ type: "object";
219
+ additionalProperties: false;
220
+ }[];
221
+ };
222
+ enum?: never[][] | undefined;
223
+ description: string;
224
+ minItems: number;
225
+ maxItems: number;
226
+ type: "array";
227
+ };
228
+ reason: {
229
+ readonly type: "string";
230
+ };
231
+ };
232
+ type: "object";
233
+ additionalProperties: false;
234
+ required: readonly [
235
+ "checks",
236
+ "reason"
237
+ ];
238
+ };
239
+ export declare function buildTaskRequirementReviewRequest(input: TaskRequirementReviewInput): {
240
+ systemPrompt: string;
241
+ userPrompt: string;
242
+ responseSchema: ReturnType<typeof buildTaskRequirementReviewResponseSchema>;
243
+ };
244
+ /** Structural coverage is enforced here; semantic judgments remain fallible
245
+ * model review. No parser-generated pass can certify omitted checks. */
246
+ export declare function parseTaskRequirementReviewResponse(input: TaskRequirementReviewInput, raw: string): TaskRequirementReviewResult;
@@ -0,0 +1,80 @@
1
+ import type { ExpectedOutcomeRequiredEffectV1 } from "./expectedOutcomeContract.js";
2
+ export declare const TASK_REQUIREMENT_SET_SCHEMA: "omnius.task-requirements.v1";
3
+ export declare const TASK_EFFECT_PROVENANCE_SCHEMA: "omnius.task-effect-provenance.v1";
4
+ export interface TaskRequirementBasisV1 {
5
+ evidenceRef: string;
6
+ sourceSha256: string;
7
+ /** UTF-16 character offsets in the exact host-retained evidence text. */
8
+ range?: {
9
+ start: number;
10
+ end: number;
11
+ };
12
+ interpretation: "explicit" | "semantic_necessity";
13
+ }
14
+ export interface TaskRequirementV1 {
15
+ id: string;
16
+ kind: "content" | "transformation" | "constraint" | "state_change" | "delivery";
17
+ statement: string;
18
+ basis: TaskRequirementBasisV1[];
19
+ criterionIds: string[];
20
+ requiredEffects: ExpectedOutcomeRequiredEffectV1[];
21
+ /** Explicit reviewed acceptance method. Omission retains legacy execution verification. */
22
+ verificationMethod?: "source_review" | "execution";
23
+ }
24
+ export interface TaskRequirementSetV1 {
25
+ schema: typeof TASK_REQUIREMENT_SET_SCHEMA;
26
+ nativeScopeSha256: string;
27
+ nativeEvidenceSnapshotSha256: string;
28
+ interpretationRevision: number;
29
+ requirements: TaskRequirementV1[];
30
+ }
31
+ /** Host-reopened native records. Model-selected references cannot create these. */
32
+ export interface TaskRequirementNativeEvidenceV1 {
33
+ evidenceRef: string;
34
+ sourceSha256: string;
35
+ text: string;
36
+ role: "current_request" | "adopted_antecedent";
37
+ }
38
+ export interface TaskEffectProvenanceV1 {
39
+ schema: typeof TASK_EFFECT_PROVENANCE_SCHEMA;
40
+ producer: "host_expected_outcome";
41
+ effect: ExpectedOutcomeRequiredEffectV1;
42
+ requirementIds: string[];
43
+ nativeScopeSha256: string;
44
+ nativeEvidenceSnapshotSha256: string;
45
+ }
46
+ export declare function normalizeTaskRequirementSetV1(value: unknown): TaskRequirementSetV1 | null;
47
+ export declare function digestTaskRequirementSetV1(value: TaskRequirementSetV1): string;
48
+ /** Compatibility name for host adapters using the design's SHA spelling. */
49
+ export declare const taskRequirementSetSha256: typeof digestTaskRequirementSetV1;
50
+ export declare function digestTaskRequirementNativeEvidenceV1(evidence: readonly TaskRequirementNativeEvidenceV1[]): string;
51
+ /** Validates source capability and coordinates, never semantic entailment. */
52
+ export declare function validateTaskRequirementEvidenceV1(input: {
53
+ requirements: TaskRequirementSetV1;
54
+ evidence: readonly TaskRequirementNativeEvidenceV1[];
55
+ nativeScopeSha256: string;
56
+ nativeEvidenceSnapshotSha256?: string;
57
+ }): boolean;
58
+ export declare function taskRequirementCriterionIds(value: TaskRequirementSetV1): string[];
59
+ export declare function validateTaskRequirementSetV1(input: {
60
+ requirements: TaskRequirementSetV1;
61
+ criteria: readonly {
62
+ id: string;
63
+ requiredEvidenceKinds: readonly string[];
64
+ }[];
65
+ }): boolean;
66
+ export declare function normalizeTaskEffectProvenanceV1(value: unknown): TaskEffectProvenanceV1 | null;
67
+ export declare function createTaskEffectProvenanceV1(input: {
68
+ requirements: TaskRequirementSetV1;
69
+ effect: ExpectedOutcomeRequiredEffectV1;
70
+ criterionId: string;
71
+ }): TaskEffectProvenanceV1;
72
+ export declare function validateTaskEffectProvenanceV1(input: {
73
+ provenance: TaskEffectProvenanceV1;
74
+ requirements: TaskRequirementSetV1;
75
+ criterion: {
76
+ id: string;
77
+ requiredEvidenceKinds: readonly string[];
78
+ mode?: string;
79
+ };
80
+ }): boolean;
@@ -0,0 +1,159 @@
1
+ import { type ExpectedOutcomeContractV1 } from "./expectedOutcomeContract.js";
2
+ import { type TaskObjectiveContractV1 } from "./taskObjective.js";
3
+ import { type TaskRequirementNativeEvidenceV1 } from "./taskRequirements.js";
4
+ import type { CompletionEvidence, CompletionLedger } from "./completionLedger.js";
5
+ import type { SteeringInput } from "./steeringIntake.js";
6
+ import { type TaskWorkPlanV1 } from "./taskWorkPlan.js";
7
+ /** Host-only admission of an independently reviewed interpretation of actual
8
+ * human input. Model tool arguments and heuristic claim discovery cannot issue it. */
9
+ export interface TaskSemanticAdmissionV1 {
10
+ schema: "omnius.task-semantic-admission.v1";
11
+ sessionId: string;
12
+ originalInputId: string;
13
+ currentInputId: string;
14
+ originalRequestSha256: string;
15
+ contractSha256: string;
16
+ expectedOutcomeSha256: string;
17
+ nativeScopeSha256: string;
18
+ nativeEvidence: TaskRequirementNativeEvidenceV1[];
19
+ scope?: {
20
+ surface: "tui";
21
+ projectRoot: string;
22
+ conversationId: string;
23
+ ownerKey: string;
24
+ };
25
+ review: {
26
+ requestId: string;
27
+ model: string;
28
+ providerProtocol: string;
29
+ requestSha256: string;
30
+ resultSha256: string;
31
+ };
32
+ }
33
+ export interface TaskSemanticContinuationV1 {
34
+ schema: "omnius.task-semantic-continuation.v1";
35
+ predecessor: {
36
+ ledgerPath: string;
37
+ runId: string;
38
+ taskEpoch: number;
39
+ ledgerSha256: string;
40
+ };
41
+ predecessorAdmission?: TaskSemanticAdmissionV1;
42
+ /** Migration requires a fresh complete-source host review; it imports no
43
+ * prior acceptance evidence from a coarse effect-only objective. */
44
+ legacySourceReview?: {
45
+ originalRequestRef: string;
46
+ originalRequestHash: string;
47
+ priorContractSha256: string;
48
+ sourceEvidenceSnapshotSha256: string;
49
+ sessionId: string;
50
+ scope: NonNullable<TaskSemanticAdmissionV1["scope"]>;
51
+ };
52
+ }
53
+ export interface TaskSemanticContinuationRecordV1 {
54
+ schema: "omnius.task-semantic-continuation-record.v1";
55
+ recipientRunId: string;
56
+ input: TaskSemanticContinuationV1;
57
+ admissionSha256: string;
58
+ importedEvidence: Array<{
59
+ evidenceId: string;
60
+ evidenceSha256: string;
61
+ criterionIds: string[];
62
+ }>;
63
+ }
64
+ /** Locate the exact durable recipient after an admission/transport crash.
65
+ * Live nonterminal owners retain their claim; no timeout erases work. The
66
+ * ordinary runner lifecycle separately reconciles actual uncertain effects. */
67
+ export declare function recoverTaskSemanticContinuationV1(input: {
68
+ predecessorLedgerPath: string;
69
+ sessionId: string;
70
+ scope: NonNullable<TaskSemanticAdmissionV1["scope"]>;
71
+ }): {
72
+ ledgerPath: string;
73
+ ledgerSha256: string;
74
+ ledger: CompletionLedger;
75
+ } | null;
76
+ export interface TaskSemanticAdmissionReviewInput {
77
+ admission: TaskSemanticAdmissionV1;
78
+ contract: TaskObjectiveContractV1;
79
+ expectedOutcome: ExpectedOutcomeContractV1;
80
+ steeringInputs: SteeringInput[];
81
+ runId: string;
82
+ taskEpoch: number;
83
+ signal: AbortSignal;
84
+ assertCurrent: () => void;
85
+ }
86
+ export interface TaskSemanticAdmissionReviewResult {
87
+ admission: TaskSemanticAdmissionV1;
88
+ contract: TaskObjectiveContractV1;
89
+ expectedOutcome: ExpectedOutcomeContractV1;
90
+ }
91
+ /** Derived statuses never change the immutable admitted acceptance policy. */
92
+ export declare const taskSemanticObjectivePolicy: (contract: TaskObjectiveContractV1) => {
93
+ criteria: {
94
+ status: "open";
95
+ id: string;
96
+ description: string;
97
+ requiredEvidenceKinds: import("./taskObjective.js").ObjectiveEvidenceKindV1[];
98
+ mode?: import("./taskObjective.js").ObjectiveCriterionModeV1;
99
+ acceptableVerifierMethods?: string[];
100
+ requiresUserInput?: boolean;
101
+ supportedAnswer?: import("./supportedAnswer.js").SupportedAnswerObligationV1;
102
+ requirementCoverage?: import("./requirementCoverage.js").RequirementCoverageObligationV1;
103
+ semanticVerification?: import("./semanticVerification.js").SemanticVerificationObligationV1;
104
+ effectProvenance?: import("./taskRequirements.js").TaskEffectProvenanceV1;
105
+ }[];
106
+ schema: typeof import("./taskObjective.js").TASK_OBJECTIVE_SCHEMA;
107
+ taskEpoch: number;
108
+ originalRequestRef: string;
109
+ originalRequestHash: string;
110
+ goal: string;
111
+ exclusions: string[];
112
+ unknowns: string[];
113
+ deliveryTarget?: import("./taskObjective.js").ObjectiveDeliveryTargetV1;
114
+ revision: number;
115
+ requirements?: import("./taskRequirements.js").TaskRequirementSetV1;
116
+ };
117
+ export declare function validateTaskSemanticAdmissionV1(input: {
118
+ admission: TaskSemanticAdmissionV1 | undefined;
119
+ sessionId: string;
120
+ contract: TaskObjectiveContractV1 | undefined | null;
121
+ expectedOutcome?: ExpectedOutcomeContractV1;
122
+ }): boolean;
123
+ export declare function createTaskSemanticAdmissionV1(input: {
124
+ sessionId: string;
125
+ originalInputId: string;
126
+ currentInputId: string;
127
+ contract: TaskObjectiveContractV1;
128
+ expectedOutcome: ExpectedOutcomeContractV1;
129
+ nativeEvidence: TaskRequirementNativeEvidenceV1[];
130
+ scope?: TaskSemanticAdmissionV1["scope"];
131
+ review: TaskSemanticAdmissionV1["review"];
132
+ }): TaskSemanticAdmissionV1;
133
+ /** Execution ownership compiled from admitted authority, not a new acceptance
134
+ * checklist. A single unit keeps the complete human request together and only
135
+ * actual invocation outcomes may satisfy its declared observation/mutation kinds. */
136
+ export declare function createTaskSemanticWorkPlanV1(contract: TaskObjectiveContractV1): TaskWorkPlanV1 | undefined;
137
+ /** The source bytes and admitted conversation are independent of the model's
138
+ * continuity prose. Old verifier/candidate receipts remain audit records and
139
+ * cannot grant fresh source comparison or final-answer acceptance. */
140
+ export declare function admitTaskSemanticContinuationV1(input: {
141
+ continuation: TaskSemanticContinuationV1;
142
+ admission: TaskSemanticAdmissionV1;
143
+ contract: TaskObjectiveContractV1;
144
+ expectedOutcome: ExpectedOutcomeContractV1;
145
+ sessionId: string;
146
+ stateDir: string;
147
+ workingDirectory: string;
148
+ recipientRunId: string;
149
+ restoreLedger: (value: unknown) => CompletionLedger;
150
+ }): {
151
+ ledger: CompletionLedger;
152
+ record: TaskSemanticContinuationRecordV1;
153
+ };
154
+ /** Recheck the single-recipient claim at transport admission, including cold
155
+ * recovery; a prior model request can never be authorized by a new host claim. */
156
+ export declare function startTaskSemanticContinuationInference(record: TaskSemanticContinuationRecordV1, options?: {
157
+ persistenceFaultForTest?: (stage: "prepared_before_claim" | "claim_committed") => void;
158
+ }): void;
159
+ export declare function taskSemanticContinuationAuthorizesEvidence(ledger: CompletionLedger | null | undefined, entry: CompletionEvidence): boolean;
@@ -0,0 +1,147 @@
1
+ import type { ArtifactReviewSourceIndex, ArtifactReviewSourceIndexEntry, ArtifactReviewSourceIssuerReference } from "../memory/artifactReviewSourceIndex.js";
2
+ import type { SourceCorpusStore } from "../memory/sourceCorpusStore.js";
3
+ import { type TaskNativeExecutionScopeV1 } from "./reviewedInterpretation.js";
4
+ import type { TaskExecutionSnapshotV1 } from "./taskExecutionSnapshot.js";
5
+ import type { CompletionLedger } from "./completionLedger.js";
6
+ export interface TaskDocumentSourceV1 {
7
+ sourceId: string;
8
+ sourceRef: string;
9
+ criterionId: string;
10
+ sourceSha256: string;
11
+ path: string;
12
+ mediaKind: string;
13
+ }
14
+ export interface TaskWorkDelegationParentV1 {
15
+ snapshot: TaskExecutionSnapshotV1;
16
+ nativeScope: TaskNativeExecutionScopeV1;
17
+ backendScopeSha256: string;
18
+ /** Exact active parent document_workers lifecycle ticket, if called by a
19
+ * tool. Other pending operations remain a hard fence. */
20
+ dispatchOperationRef?: string;
21
+ /** Native interpretation/steering and other live ownership gates. */
22
+ assertCurrent(): void;
23
+ }
24
+ export interface TaskWorkDelegationDefinitionV1 {
25
+ schema: "omnius.task-work-delegation-definition.v1";
26
+ taskId: string;
27
+ scopeId: string;
28
+ actorKey: string;
29
+ originalInputId: string;
30
+ taskEpoch: number;
31
+ nativeScopeSha256: string;
32
+ objectiveRef: string;
33
+ objectiveHash: string;
34
+ contractRevision: number;
35
+ requirementSetSha256: string;
36
+ policySha256: string;
37
+ unitId: string;
38
+ unitDefinitionSha256: string;
39
+ backendScopeSha256: string;
40
+ sources: TaskDocumentSourceV1[];
41
+ }
42
+ export interface TaskWorkDelegationV1 {
43
+ schema: "omnius.task-work-delegation.v1";
44
+ id: string;
45
+ definition: TaskWorkDelegationDefinitionV1;
46
+ parentRunId: string;
47
+ /** Runtime owner binding is outside the stable source-operation identity;
48
+ * a fresh admitted run creates its own binding before durable replay. */
49
+ parentNativeScopeSha256: string;
50
+ dispatchSnapshotSha256: string;
51
+ parentOperationRef?: string;
52
+ }
53
+ export interface TaskDocumentWorkerResultV1 {
54
+ workerOwner: {
55
+ scopeId: string;
56
+ runId: string;
57
+ taskEpoch: number;
58
+ };
59
+ issuer: ArtifactReviewSourceIssuerReference;
60
+ /** Advisory derived content is never a source/semantic acceptance receipt. */
61
+ output: string;
62
+ }
63
+ export interface TaskWorkDelegationReceiptV1 {
64
+ schema: "omnius.task-work-delegation-receipt.v1";
65
+ delegationId: string;
66
+ definitionSha256: string;
67
+ claimId: string;
68
+ source: TaskDocumentSourceV1;
69
+ workerOwner: TaskDocumentWorkerResultV1["workerOwner"];
70
+ issuer: ArtifactReviewSourceIssuerReference;
71
+ bodySha256: string;
72
+ outputSha256: string;
73
+ recipient: {
74
+ scopeId: string;
75
+ runId: string;
76
+ taskEpoch: number;
77
+ };
78
+ }
79
+ /** Native identity is stable across local cache materializations. Paths remain
80
+ * separately verified execution custody, never a source identity. */
81
+ export declare function taskDocumentSourceIdentityV1(source: TaskDocumentSourceV1): {
82
+ sourceId: string;
83
+ sourceRef: string;
84
+ criterionId: string;
85
+ sourceSha256: string;
86
+ mediaKind: string;
87
+ };
88
+ export declare function taskWorkDelegationIdentityV1(definition: TaskWorkDelegationDefinitionV1): {
89
+ sources: {
90
+ sourceId: string;
91
+ sourceRef: string;
92
+ criterionId: string;
93
+ sourceSha256: string;
94
+ mediaKind: string;
95
+ }[];
96
+ schema: "omnius.task-work-delegation-definition.v1";
97
+ taskId: string;
98
+ scopeId: string;
99
+ actorKey: string;
100
+ originalInputId: string;
101
+ taskEpoch: number;
102
+ nativeScopeSha256: string;
103
+ objectiveRef: string;
104
+ objectiveHash: string;
105
+ contractRevision: number;
106
+ requirementSetSha256: string;
107
+ policySha256: string;
108
+ unitId: string;
109
+ unitDefinitionSha256: string;
110
+ backendScopeSha256: string;
111
+ };
112
+ /** Host selects only real sources serving the current plan. This grants read
113
+ * operations, never criteria, reviewer acceptance, mutations or delivery. */
114
+ export declare function createTaskWorkDelegationV1(input: TaskWorkDelegationParentV1 & {
115
+ sources: readonly TaskDocumentSourceV1[];
116
+ }): TaskWorkDelegationV1;
117
+ /** Accepted sibling observations may advance evidence. They cannot change the
118
+ * current goal, plan definition, native owner, model profile or source grants. */
119
+ export declare function assertTaskWorkDelegationCurrentV1(grant: TaskWorkDelegationV1, current: TaskWorkDelegationParentV1): void;
120
+ export declare function createTaskWorkDelegationReceiptV1(input: {
121
+ grant: TaskWorkDelegationV1;
122
+ claimId: string;
123
+ source: TaskDocumentSourceV1;
124
+ result: TaskDocumentWorkerResultV1;
125
+ entry: ArtifactReviewSourceIndexEntry;
126
+ }): TaskWorkDelegationReceiptV1;
127
+ /** Pure catalog authorization. Native stores and physical bytes still must be
128
+ * reopened by the ordinary catalog/source reviewer. */
129
+ export declare function taskWorkDelegationAuthorizesSourceV1(grant: TaskWorkDelegationV1, receipt: TaskWorkDelegationReceiptV1, entry: ArtifactReviewSourceIndexEntry): boolean;
130
+ /** Durable authority reopening, independent of a live coordinator registry.
131
+ * The result remains an observation: raw native stores and current source
132
+ * bytes must also pass their ordinary projector before factual use. */
133
+ export declare function reopenTaskWorkDelegationSourceV1(input: {
134
+ corpus: SourceCorpusStore;
135
+ index: ArtifactReviewSourceIndex;
136
+ grant: TaskWorkDelegationV1;
137
+ receipt: TaskWorkDelegationReceiptV1;
138
+ }): ArtifactReviewSourceIndexEntry;
139
+ /** Shared host catalog authorization. This never upgrades advice into source
140
+ * evidence: the operation's immutable committed proof and current canonical
141
+ * task bindings must all exist independently of the serialized ledger. */
142
+ export declare function taskWorkDelegationLedgerAuthorizesSourceV1(input: {
143
+ ledger: Pick<CompletionLedger, "runId" | "taskEpoch" | "evidence" | "objectiveContract" | "workPlan">;
144
+ corpus: SourceCorpusStore;
145
+ index: ArtifactReviewSourceIndex;
146
+ entry: ArtifactReviewSourceIndexEntry;
147
+ }): boolean;