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.
- package/dist/{providerRegistry.d.ts → _types/backend-vllm/providerRegistry.d.ts} +0 -1
- package/dist/_types/backend-vllm/types.d.ts +209 -0
- package/dist/_types/execution/av/media-capability.d.ts +94 -0
- package/dist/_types/execution/delegation-contract.d.ts +102 -0
- package/dist/_types/execution/evidence.d.ts +68 -0
- package/dist/_types/execution/html-source-evidence.d.ts +65 -0
- package/dist/_types/execution/mcp/types.d.ts +169 -0
- package/dist/_types/execution/mutation-contract.d.ts +102 -0
- package/dist/_types/execution/nol/artifacts.d.ts +39 -0
- package/dist/_types/execution/nol/checkpoint-edits.d.ts +98 -0
- package/dist/_types/execution/nol/distributions.d.ts +128 -0
- package/dist/_types/execution/nol/gguf-checkpoint-edits.d.ts +194 -0
- package/dist/_types/execution/nol/gguf-control-reader.d.ts +224 -0
- package/dist/_types/execution/nol/lora-exports.d.ts +129 -0
- package/dist/_types/execution/nol/neuronary.d.ts +212 -0
- package/dist/_types/execution/nol/pytorch-control-reader.d.ts +143 -0
- package/dist/_types/execution/nol/qwen35-head-sites.d.ts +61 -0
- package/dist/_types/execution/nol/worker-assets.d.ts +82 -0
- package/dist/_types/execution/nol/worker-protocol.d.ts +94 -0
- package/dist/_types/execution/page-content-source.d.ts +40 -0
- package/dist/_types/execution/rapid-computer-use/artifact-store.d.ts +21 -0
- package/dist/_types/execution/rapid-computer-use/contracts.d.ts +320 -0
- package/dist/_types/execution/rapid-computer-use/decision.d.ts +70 -0
- package/dist/_types/execution/rapid-computer-use/desktop-verification.d.ts +23 -0
- package/dist/_types/execution/rapid-computer-use/geometry.d.ts +57 -0
- package/dist/_types/execution/rapid-computer-use/planner.d.ts +78 -0
- package/dist/_types/execution/rapid-computer-use/trace.d.ts +80 -0
- package/dist/_types/execution/rapid-computer-use/visual.d.ts +48 -0
- package/dist/_types/execution/shell-runs.d.ts +78 -0
- package/dist/_types/execution/streamed-web-source.d.ts +64 -0
- package/dist/_types/execution/tools/browser-page-fallback.d.ts +25 -0
- package/dist/_types/execution/tools/network-egress-policy.d.ts +30 -0
- package/dist/_types/execution/tools/pdf-native-tables.d.ts +46 -0
- package/dist/_types/execution/tools/todo-store.d.ts +133 -0
- package/dist/_types/execution/tools/web-fetch.d.ts +57 -0
- package/dist/_types/execution/tools/workboard.d.ts +1223 -0
- package/dist/_types/execution/types.d.ts +549 -0
- package/dist/_types/execution/web-source.d.ts +14 -0
- package/dist/_types/memory/artifactReviewSourceIndex.d.ts +133 -0
- package/dist/_types/memory/contextMemoryLedger.d.ts +213 -0
- package/dist/_types/memory/db.d.ts +12 -0
- package/dist/_types/memory/embeddings.d.ts +36 -0
- package/dist/_types/memory/immutableEvidenceStore.d.ts +165 -0
- package/dist/_types/memory/memoryIngestion.d.ts +65 -0
- package/dist/_types/memory/memoryTypes.d.ts +312 -0
- package/dist/_types/memory/sourceCorpusStore.d.ts +331 -0
- package/dist/_types/memory/structuredMemoryStore.d.ts +105 -0
- package/dist/_types/memory/unifiedMemoryStore.d.ts +127 -0
- package/dist/_types/memory/virtualMemory.d.ts +187 -0
- package/dist/_types/orchestrator/agentic-page-content-receipt.d.ts +20 -0
- package/dist/_types/orchestrator/agentic-web-fetch-receipt.d.ts +20 -0
- package/dist/_types/orchestrator/agenticRunner.d.ts +5219 -0
- package/dist/_types/orchestrator/app-state.d.ts +171 -0
- package/dist/_types/orchestrator/artifactClaimCritic.d.ts +63 -0
- package/dist/_types/orchestrator/artifactQuality.d.ts +15 -0
- package/dist/_types/orchestrator/artifactSemanticIntegrity.d.ts +203 -0
- package/dist/_types/orchestrator/canonical-context-projection.d.ts +254 -0
- package/dist/_types/orchestrator/canonical-source-body-projection.d.ts +51 -0
- package/dist/_types/orchestrator/completion-review-pending.d.ts +24 -0
- package/dist/_types/orchestrator/completionContract.d.ts +103 -0
- package/dist/_types/orchestrator/completionFinalization.d.ts +224 -0
- package/dist/_types/orchestrator/completionLedger.d.ts +429 -0
- package/dist/_types/orchestrator/completionReadiness.d.ts +234 -0
- package/dist/_types/orchestrator/context-admission.d.ts +93 -0
- package/dist/_types/orchestrator/context-dump-retention.d.ts +25 -0
- package/dist/_types/orchestrator/context-fabric.d.ts +133 -0
- package/dist/_types/orchestrator/contextEngine.d.ts +68 -0
- package/dist/_types/orchestrator/contextWindowDump.d.ts +327 -0
- package/dist/_types/orchestrator/convergence-breaker.d.ts +225 -0
- package/dist/_types/orchestrator/convergence-progress.d.ts +66 -0
- package/dist/_types/orchestrator/deliveryCoverage.d.ts +181 -0
- package/dist/_types/orchestrator/document-persistence-goal-binding.d.ts +106 -0
- package/dist/_types/orchestrator/durable-document-worker.d.ts +85 -0
- package/dist/_types/orchestrator/evidenceBranch.d.ts +291 -0
- package/dist/_types/orchestrator/expected-inference-response.d.ts +55 -0
- package/dist/_types/orchestrator/expectedOutcomeContract.d.ts +58 -0
- package/dist/_types/orchestrator/failure-taxonomy.d.ts +36 -0
- package/dist/_types/orchestrator/focusSupervisor.d.ts +436 -0
- package/dist/_types/orchestrator/forced-update-requirement-recovery.d.ts +105 -0
- package/dist/_types/orchestrator/hooks.d.ts +100 -0
- package/dist/_types/orchestrator/inference-pressure.d.ts +61 -0
- package/dist/_types/orchestrator/integrationClosure.d.ts +89 -0
- package/dist/_types/orchestrator/interruption-lifecycle.d.ts +154 -0
- package/dist/_types/orchestrator/live-memory-passages.d.ts +51 -0
- package/dist/_types/orchestrator/liveVirtualContext.d.ts +84 -0
- package/dist/_types/orchestrator/memory-compiler.d.ts +254 -0
- package/dist/_types/orchestrator/memory-consolidation.d.ts +134 -0
- package/dist/_types/orchestrator/model-router.d.ts +17 -0
- package/dist/_types/orchestrator/modelResponseDiagnostics.d.ts +71 -0
- package/dist/_types/orchestrator/nativeRequirementAmendment.d.ts +63 -0
- package/dist/_types/orchestrator/nol/coordinator.d.ts +204 -0
- package/dist/_types/orchestrator/nol/datasets.d.ts +58 -0
- package/dist/_types/orchestrator/nol/discovery.d.ts +286 -0
- package/dist/_types/orchestrator/nol/evaluation.d.ts +59 -0
- package/dist/_types/orchestrator/nol/model-validation.d.ts +198 -0
- package/dist/_types/orchestrator/nol/statistics.d.ts +142 -0
- package/dist/_types/orchestrator/nol/store.d.ts +133 -0
- package/dist/_types/orchestrator/nol/variant-registry.d.ts +292 -0
- package/dist/_types/orchestrator/ollama-context-policy.d.ts +34 -0
- package/dist/_types/orchestrator/personality.d.ts +66 -0
- package/dist/_types/orchestrator/prompt-cache.d.ts +24 -0
- package/dist/_types/orchestrator/remote-inference-fallback.d.ts +224 -0
- package/dist/_types/orchestrator/remote-inference-policy.d.ts +58 -0
- package/dist/_types/orchestrator/request-budget.d.ts +75 -0
- package/dist/_types/orchestrator/requirementCoverage.d.ts +69 -0
- package/dist/_types/orchestrator/reviewedInterpretation.d.ts +111 -0
- package/dist/_types/orchestrator/runEvents.d.ts +115 -0
- package/dist/_types/orchestrator/runtime-rollout.d.ts +63 -0
- package/dist/_types/orchestrator/semanticVerification.d.ts +135 -0
- package/dist/_types/orchestrator/source-wide-extraction.d.ts +202 -0
- package/dist/_types/orchestrator/steeringIntake.d.ts +123 -0
- package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +89 -0
- package/dist/_types/orchestrator/structuredMemoryInference.d.ts +62 -0
- package/dist/_types/orchestrator/successful-procedure-memory.d.ts +127 -0
- package/dist/_types/orchestrator/supportedAnswer.d.ts +68 -0
- package/dist/_types/orchestrator/taskEffectEvidence.d.ts +38 -0
- package/dist/_types/orchestrator/taskExecutionSnapshot.d.ts +67 -0
- package/dist/_types/orchestrator/taskObjective.d.ts +310 -0
- package/dist/_types/orchestrator/taskObjectiveContinuation.d.ts +134 -0
- package/dist/_types/orchestrator/taskRequirementReview.d.ts +246 -0
- package/dist/_types/orchestrator/taskRequirements.d.ts +80 -0
- package/dist/_types/orchestrator/taskSemanticAdmission.d.ts +159 -0
- package/dist/_types/orchestrator/taskWorkDelegation.d.ts +147 -0
- package/dist/_types/orchestrator/taskWorkPlan.d.ts +177 -0
- package/dist/_types/orchestrator/telegram-passive-history.d.ts +42 -0
- package/dist/_types/orchestrator/terminalTaskReport.d.ts +91 -0
- package/dist/_types/orchestrator/todoObservability.d.ts +147 -0
- package/dist/_types/orchestrator/tool-exposure-policy.d.ts +100 -0
- package/dist/_types/orchestrator/trajectory-checkpoint.d.ts +159 -0
- package/dist/_types/orchestrator/types.d.ts +185 -0
- package/dist/_types/schemas/dispatch.d.ts +53 -0
- package/dist/_types/schemas/feature-workflow.d.ts +362 -0
- package/dist/_types/schemas/messages.d.ts +15 -0
- package/dist/_types/schemas/nol-assets.d.ts +955 -0
- package/dist/_types/schemas/nol-json.d.ts +2 -0
- package/dist/_types/schemas/nol.d.ts +3995 -0
- package/dist/_types/schemas/patch.d.ts +47 -0
- package/dist/_types/schemas/plan.d.ts +47 -0
- package/dist/_types/schemas/repoProfile.d.ts +116 -0
- package/dist/_types/schemas/retrieval.d.ts +44 -0
- package/dist/_types/schemas/task.d.ts +57 -0
- package/dist/_types/schemas/tools.d.ts +16 -0
- package/dist/_types/schemas/verification.d.ts +31 -0
- package/dist/api/py-embed.js +3353 -1829
- package/dist/assets/nol-checkpoint-editor.py +701 -0
- package/dist/assets/nol-gguf-checkpoint-editor.py +785 -0
- package/dist/assets/nol-gguf-control-reader.py +428 -0
- package/dist/assets/nol-gne-tools-worker.py +425 -0
- package/dist/assets/nol-gne-worker.py +1081 -0
- package/dist/assets/nol-lora-exporter.py +349 -0
- package/dist/assets/nol-pytorch-control-reader.py +470 -0
- package/dist/assets/nol-transformers-nnsight-worker.py +512 -0
- package/dist/assets/nol-transformers-peft-validation-worker.py +385 -0
- package/dist/assets/nol-transformers-peft-worker.py +488 -0
- package/dist/assets/nol-transformers-research-worker.py +472 -0
- package/dist/assets/nol-transformers-worker.py +920 -0
- package/dist/assets/nol-vllm-owned-worker.py +803 -0
- package/dist/assets/nol-vllm-runtime.py +695 -0
- package/dist/assets/nol-vllm-tokenizer.py +93 -0
- package/dist/assets/nol-vllm-worker.py +201 -0
- package/dist/computer-use/configured-planner.d.ts +37 -0
- package/dist/computer-use/configured-point.d.ts +35 -0
- package/dist/computer-use/host-session.d.ts +60 -0
- package/dist/computer-use/runner-ui-port.d.ts +37 -0
- package/dist/computer-use/session-review.d.ts +14 -0
- package/dist/computer-use/task-spec.d.ts +84 -0
- package/dist/discovery.d.ts +16 -2
- package/dist/index.js +2 -2
- package/dist/library.d.ts +94 -10
- package/dist/library.js +144003 -87414
- package/dist/memory-maintenance-worker.js +1676 -511
- package/dist/nol/cpu-control-reader-profile.d.ts +93 -0
- package/dist/nol/cpu-control-reader-service.d.ts +87 -0
- package/dist/nol/cuda-lease.d.ts +111 -0
- package/dist/nol/cuda-mutations.d.ts +34 -0
- package/dist/nol/export-runtime-config.d.ts +114 -0
- package/dist/nol/export-service.d.ts +143 -0
- package/dist/nol/facade.d.ts +147 -0
- package/dist/nol/gguf-cpu-control-reader-profile.d.ts +106 -0
- package/dist/nol/gguf-cpu-control-reader-service.d.ts +91 -0
- package/dist/nol/gguf-model-control-verifier.d.ts +120 -0
- package/dist/nol/gguf-parameter-inventory.d.ts +28 -0
- package/dist/nol/gne-adapter.d.ts +134 -0
- package/dist/nol/gne-agent-evaluation.d.ts +84 -0
- package/dist/nol/gne-profile.d.ts +124 -0
- package/dist/nol/gne-tools-profile.d.ts +148 -0
- package/dist/nol/gne-tools-transport.d.ts +194 -0
- package/dist/nol/model-actions.d.ts +662 -0
- package/dist/nol/model-control-verifier.d.ts +135 -0
- package/dist/nol/model-json-scorer.d.ts +13 -0
- package/dist/nol/model-runtime-config.d.ts +830 -0
- package/dist/nol/model-serving.d.ts +130 -0
- package/dist/nol/model-subject-adapter.d.ts +72 -0
- package/dist/nol/model-validation-factory.d.ts +113 -0
- package/dist/nol/neuronary-catalog.d.ts +130 -0
- package/dist/nol/orphan-custody.d.ts +72 -0
- package/dist/nol/peft-conformance.d.ts +48 -0
- package/dist/nol/peft-control-types.d.ts +137 -0
- package/dist/nol/peft-control-verifier.d.ts +8 -0
- package/dist/nol/peft-model-actions.d.ts +41 -0
- package/dist/nol/peft-model-authority.d.ts +146 -0
- package/dist/nol/peft-model-controls.d.ts +20 -0
- package/dist/nol/peft-model-host.d.ts +47 -0
- package/dist/nol/peft-model-profile.d.ts +161 -0
- package/dist/nol/peft-model-runtime-config.d.ts +174 -0
- package/dist/nol/peft-model-subject-adapter.d.ts +36 -0
- package/dist/nol/peft-validation.d.ts +105 -0
- package/dist/nol/persistent-parameter-inventory.d.ts +32 -0
- package/dist/nol/runtime.d.ts +100 -0
- package/dist/nol/sqlite-store.d.ts +80 -0
- package/dist/nol/transformers-adapter.d.ts +119 -0
- package/dist/nol/transformers-nnsight.d.ts +87 -0
- package/dist/nol/transformers-peft.d.ts +107 -0
- package/dist/nol/transformers-research.d.ts +114 -0
- package/dist/nol/variant-service.d.ts +143 -0
- package/dist/nol/variant-store.d.ts +51 -0
- package/dist/nol/vllm-actions.d.ts +774 -0
- package/dist/nol/vllm-adapter.d.ts +1473 -0
- package/dist/nol/vllm-authority.d.ts +55 -0
- package/dist/nol/vllm-conformance.d.ts +662 -0
- package/dist/nol/vllm-profile.d.ts +850 -0
- package/dist/nol/vllm-protocol.d.ts +1505 -0
- package/dist/nol/vllm-runtime-config.d.ts +120 -0
- package/dist/nol/vllm-runtime.d.ts +34 -0
- package/dist/nol/vllm-startup.d.ts +235 -0
- package/dist/omni-setup-worker.js +3433 -1909
- package/dist/service-version.d.ts +0 -1
- package/dist/tui/async-process.d.ts +27 -0
- package/dist/tui/native/worker.js +3 -1
- package/dist/tui/telegram-action-session-registry.d.ts +136 -0
- package/dist/tui/telegram-cognition-queue.d.ts +154 -0
- package/dist/tui/telegram-context-packet-v2.d.ts +99 -0
- package/dist/tui/telegram-input-ownership.d.ts +78 -0
- package/dist/tui/telegram-turn-contract-v2.d.ts +62 -0
- package/dist/update-worker-runtime.js +4216 -2603
- package/docs/DISCOVERY.json +389 -0
- package/docs/DISCOVERY.md +4 -0
- package/npm-shrinkwrap.json +28 -12
- package/package.json +3 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CompletionEvidence } from "./completionLedger.js";
|
|
2
|
+
import type { ExternalEffectReceiptV1, TaskObjectiveContractV1 } from "./taskObjective.js";
|
|
3
|
+
import type { TaskWorkPlanV1 } from "./taskWorkPlan.js";
|
|
4
|
+
export interface TaskEffectStateEvidenceV1 {
|
|
5
|
+
schema: "omnius.task-effect-state-evidence.v1";
|
|
6
|
+
runId: string;
|
|
7
|
+
taskEpoch: number;
|
|
8
|
+
artifacts: Array<{
|
|
9
|
+
path: string;
|
|
10
|
+
status: "available" | "missing" | "outside_owner" | "unavailable" | "changed_during_read";
|
|
11
|
+
sourceEvidenceIds: string[];
|
|
12
|
+
sha256?: string;
|
|
13
|
+
byteLength?: number;
|
|
14
|
+
content?: string;
|
|
15
|
+
}>;
|
|
16
|
+
externalEffects: ExternalEffectReceiptV1[];
|
|
17
|
+
stateSha256: string;
|
|
18
|
+
}
|
|
19
|
+
/** Host-only physical storage adapter, used exclusively for recorded mutation targets. */
|
|
20
|
+
export type TaskMutationArtifactByteReader = (request: {
|
|
21
|
+
runId: string;
|
|
22
|
+
taskEpoch: number;
|
|
23
|
+
workspaceRoot: string;
|
|
24
|
+
path: string;
|
|
25
|
+
sourceEvidenceIds: readonly string[];
|
|
26
|
+
maxBytes: number;
|
|
27
|
+
}) => Uint8Array | null;
|
|
28
|
+
/** Reopen host-recorded mutation targets; model prose and read-only paths grant no access. */
|
|
29
|
+
export declare function reopenTaskEffectStateEvidence(input: {
|
|
30
|
+
runId: string;
|
|
31
|
+
taskEpoch: number;
|
|
32
|
+
workspaceRoot: string;
|
|
33
|
+
evidence: readonly CompletionEvidence[];
|
|
34
|
+
contract?: TaskObjectiveContractV1;
|
|
35
|
+
plan?: TaskWorkPlanV1;
|
|
36
|
+
isCurrentInheritedOutcome?: (entry: CompletionEvidence) => boolean;
|
|
37
|
+
readMutationArtifactBytes?: TaskMutationArtifactByteReader;
|
|
38
|
+
}): TaskEffectStateEvidenceV1;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { CompletionEvidence, CompletionLedger } from "./completionLedger.js";
|
|
2
|
+
import type { TaskObjectiveContractV1, ObjectiveFrontierSnapshotV1 } from "./taskObjective.js";
|
|
3
|
+
import { type TaskWorkPlanV1 } from "./taskWorkPlan.js";
|
|
4
|
+
import type { TaskEffectStateEvidenceV1 } from "./taskEffectEvidence.js";
|
|
5
|
+
import type { SourceReviewStateEvidenceV1 } from "./semanticVerification.js";
|
|
6
|
+
export declare function taskExecutionDigest(value: unknown): string;
|
|
7
|
+
/** Semantic evidence population: new receipt IDs, timestamps and prose do not constitute new facts. */
|
|
8
|
+
export declare function taskExecutionEvidenceDigest(evidence: readonly CompletionEvidence[]): string;
|
|
9
|
+
/** Current physical source identity belongs to the evidence population, not prose. */
|
|
10
|
+
export declare function taskExecutionStateEvidenceDigest(evidence: readonly CompletionEvidence[], effectState?: TaskEffectStateEvidenceV1, sourceState?: SourceReviewStateEvidenceV1): string;
|
|
11
|
+
export interface TaskExecutionSnapshotV1 {
|
|
12
|
+
schema: "omnius.task-execution-snapshot.v1";
|
|
13
|
+
runId: string;
|
|
14
|
+
taskEpoch: number;
|
|
15
|
+
contract: TaskObjectiveContractV1;
|
|
16
|
+
contractSha256: string;
|
|
17
|
+
requirementSetSha256?: string;
|
|
18
|
+
evidenceSnapshotSha256: string;
|
|
19
|
+
evidence: CompletionEvidence[];
|
|
20
|
+
effectStateEvidence?: TaskEffectStateEvidenceV1;
|
|
21
|
+
sourceReviewStateEvidence?: SourceReviewStateEvidenceV1;
|
|
22
|
+
frontier: ObjectiveFrontierSnapshotV1 | null;
|
|
23
|
+
workPlan: TaskWorkPlanV1 | null;
|
|
24
|
+
workPlanSha256?: string;
|
|
25
|
+
selectedWork?: {
|
|
26
|
+
id: string;
|
|
27
|
+
purpose: string;
|
|
28
|
+
requirementIds?: string[];
|
|
29
|
+
criterionIds: string[];
|
|
30
|
+
sourceRefs: string[];
|
|
31
|
+
pendingOperationRef?: string;
|
|
32
|
+
};
|
|
33
|
+
/** Unreconciled legacy lifecycle tickets; audit fences, never a second active plan. */
|
|
34
|
+
pendingLegacyOperationRefs?: string[];
|
|
35
|
+
snapshotSha256: string;
|
|
36
|
+
}
|
|
37
|
+
/** A replacement plan never clears an original pending operation identity. */
|
|
38
|
+
export declare function getUnresolvedRetiredLegacyOperationRefs(ledger: CompletionLedger | null | undefined): string[];
|
|
39
|
+
export declare function createTaskExecutionSnapshot(input: {
|
|
40
|
+
runId: string;
|
|
41
|
+
taskEpoch: number;
|
|
42
|
+
contract: TaskObjectiveContractV1 | null;
|
|
43
|
+
ledger: CompletionLedger | null;
|
|
44
|
+
frontier: ObjectiveFrontierSnapshotV1 | null;
|
|
45
|
+
effectStateEvidence?: TaskEffectStateEvidenceV1;
|
|
46
|
+
sourceReviewStateEvidence?: SourceReviewStateEvidenceV1;
|
|
47
|
+
}): TaskExecutionSnapshotV1 | null;
|
|
48
|
+
export interface TaskPlanProposalEntry {
|
|
49
|
+
id: string;
|
|
50
|
+
content: string;
|
|
51
|
+
status: string;
|
|
52
|
+
taskEpoch?: number;
|
|
53
|
+
requirementIds?: string[];
|
|
54
|
+
acceptanceIds?: string[];
|
|
55
|
+
sourceRefs?: string[];
|
|
56
|
+
blockedBy?: string[];
|
|
57
|
+
parentId?: string;
|
|
58
|
+
}
|
|
59
|
+
/** Model plans select methods/order. They never produce criterion acceptance or effect receipts. */
|
|
60
|
+
export declare function projectTaskWorkPlanProposal(input: {
|
|
61
|
+
contract: TaskObjectiveContractV1;
|
|
62
|
+
previous?: TaskWorkPlanV1;
|
|
63
|
+
entries: readonly TaskPlanProposalEntry[];
|
|
64
|
+
evidenceIds: readonly string[];
|
|
65
|
+
evidence?: readonly CompletionEvidence[];
|
|
66
|
+
}): TaskWorkPlanV1 | null;
|
|
67
|
+
export declare function renderTaskExecutionSnapshot(snapshot: TaskExecutionSnapshotV1): string;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { type SupportedAnswerBindingV1, type SupportedAnswerObligationV1 } from "./supportedAnswer.js";
|
|
2
|
+
import { type TaskRequirementSetV1, type TaskEffectProvenanceV1 } from "./taskRequirements.js";
|
|
3
|
+
import { type RequirementCoverageObligationV1, type RequirementCoverageBindingV1 } from "./requirementCoverage.js";
|
|
4
|
+
import { type SemanticVerificationObligationV1, type SemanticVerificationBindingV1, type SourceReviewStateEvidenceV1 } from "./semanticVerification.js";
|
|
5
|
+
import { type DocumentPersistenceGoalBindingV1, type DocumentPersistenceReviewEvidenceV1 } from "./document-persistence-goal-binding.js";
|
|
6
|
+
import type { CompletionEvidence, CompletionEvidenceKind, CompletionEvidenceRole } from "./completionLedger.js";
|
|
7
|
+
import type { ExpectedOutcomeContractV1 } from "./expectedOutcomeContract.js";
|
|
8
|
+
export declare const TASK_OBJECTIVE_SCHEMA: "omnius.task-objective-contract.v1";
|
|
9
|
+
export declare const EXTERNAL_EFFECT_RECEIPT_SCHEMA: "omnius.external-effect-receipt.v1";
|
|
10
|
+
export declare const VERIFICATION_RECEIPT_SCHEMA: "omnius.verification-receipt.v1";
|
|
11
|
+
export declare const NEEDS_INPUT_SCHEMA: "omnius.needs-input-contract.v1";
|
|
12
|
+
export declare const OBJECTIVE_FRONTIER_SCHEMA: "omnius.objective-frontier.v1";
|
|
13
|
+
export declare const OBJECTIVE_CONVERGENCE_SCHEMA: "omnius.run-convergence-state.v1";
|
|
14
|
+
export declare const OBJECTIVE_EXTERNAL_BLOCKER_SCHEMA: "omnius.objective-external-blocker.v1";
|
|
15
|
+
export declare const OBJECTIVE_PREPARATORY_PROGRESS_SCHEMA: "omnius.objective-preparatory-progress.v1";
|
|
16
|
+
/** Host-observed preparation is progress, never acceptance evidence. */
|
|
17
|
+
export interface ObjectivePreparatoryProgressV1 {
|
|
18
|
+
schema: typeof OBJECTIVE_PREPARATORY_PROGRESS_SCHEMA;
|
|
19
|
+
runId: string;
|
|
20
|
+
taskEpoch: number;
|
|
21
|
+
objectiveRef: string;
|
|
22
|
+
objectiveHash: string;
|
|
23
|
+
objectiveRevision: number;
|
|
24
|
+
kind: "capability_discovery" | "source_metadata" | "source_routing" | "source_observation" | "durable_work";
|
|
25
|
+
toolName?: string;
|
|
26
|
+
producerId?: "telegram_native_manifest" | "telegram_export_review" | "telegram_source_review";
|
|
27
|
+
intentOnly?: true;
|
|
28
|
+
workId?: string;
|
|
29
|
+
sequence?: number;
|
|
30
|
+
stateSha256?: string;
|
|
31
|
+
toolNames?: string[];
|
|
32
|
+
criterionId?: string;
|
|
33
|
+
sourceId?: string;
|
|
34
|
+
sourceHash?: string;
|
|
35
|
+
}
|
|
36
|
+
export type ObjectiveEvidenceKindV1 = "visible_response" | "observation" | "mutation" | "verification" | "delivery" | "external_effect" | "provider_registration" | "transport" | "authenticated_session" | "human_input";
|
|
37
|
+
export type ObjectiveCriterionModeV1 = "work" | "verification" | "delivery" | "user_input";
|
|
38
|
+
export interface ObjectiveDeliveryTargetV1 {
|
|
39
|
+
surface: string;
|
|
40
|
+
targetId: string;
|
|
41
|
+
threadId?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface TaskObjectiveCriterionV1 {
|
|
44
|
+
id: string;
|
|
45
|
+
description: string;
|
|
46
|
+
requiredEvidenceKinds: ObjectiveEvidenceKindV1[];
|
|
47
|
+
status: "open" | "satisfied" | "blocked";
|
|
48
|
+
mode?: ObjectiveCriterionModeV1;
|
|
49
|
+
acceptableVerifierMethods?: string[];
|
|
50
|
+
requiresUserInput?: boolean;
|
|
51
|
+
/** Native host source-answer obligation; generic observation cannot satisfy it. */
|
|
52
|
+
supportedAnswer?: SupportedAnswerObligationV1;
|
|
53
|
+
/** Candidate-bound complete native requirement coverage, separate from factual source review. */
|
|
54
|
+
requirementCoverage?: RequirementCoverageObligationV1;
|
|
55
|
+
/** Explicit admitted source comparison; generic verification kinds cannot certify it. */
|
|
56
|
+
semanticVerification?: SemanticVerificationObligationV1;
|
|
57
|
+
/** Exact host-generated effect lineage; an effect: label is not provenance. */
|
|
58
|
+
effectProvenance?: TaskEffectProvenanceV1;
|
|
59
|
+
}
|
|
60
|
+
export interface TaskObjectiveContractV1 {
|
|
61
|
+
schema: typeof TASK_OBJECTIVE_SCHEMA;
|
|
62
|
+
taskEpoch: number;
|
|
63
|
+
originalRequestRef: string;
|
|
64
|
+
originalRequestHash: string;
|
|
65
|
+
goal: string;
|
|
66
|
+
criteria: TaskObjectiveCriterionV1[];
|
|
67
|
+
exclusions: string[];
|
|
68
|
+
unknowns: string[];
|
|
69
|
+
deliveryTarget?: ObjectiveDeliveryTargetV1;
|
|
70
|
+
revision: number;
|
|
71
|
+
requirements?: TaskRequirementSetV1;
|
|
72
|
+
}
|
|
73
|
+
export interface ExternalEffectDestinationV1 {
|
|
74
|
+
url: string;
|
|
75
|
+
provider: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ExternalEffectReceiptV1 {
|
|
78
|
+
schema: typeof EXTERNAL_EFFECT_RECEIPT_SCHEMA;
|
|
79
|
+
effectKind: string;
|
|
80
|
+
semanticTarget: string;
|
|
81
|
+
idempotencyKey: string;
|
|
82
|
+
effectState: "pending" | "applied" | "absent" | "unknown";
|
|
83
|
+
artifactRevision?: string;
|
|
84
|
+
evidenceId: string;
|
|
85
|
+
criterionIds: string[];
|
|
86
|
+
evidenceKinds?: ObjectiveEvidenceKindV1[];
|
|
87
|
+
destination?: ExternalEffectDestinationV1;
|
|
88
|
+
}
|
|
89
|
+
export interface ExternalEffectIntentV1 {
|
|
90
|
+
effectKind: string;
|
|
91
|
+
semanticTarget: string;
|
|
92
|
+
idempotencyKey: string;
|
|
93
|
+
criterionIds: string[];
|
|
94
|
+
}
|
|
95
|
+
export interface VerificationReceiptV1 {
|
|
96
|
+
schema: typeof VERIFICATION_RECEIPT_SCHEMA;
|
|
97
|
+
/** Stable identity of this verifier observation itself. */
|
|
98
|
+
evidenceId: string;
|
|
99
|
+
criterionId: string;
|
|
100
|
+
artifactEvidenceId: string;
|
|
101
|
+
artifactRevision?: string;
|
|
102
|
+
verifierMethod: string;
|
|
103
|
+
outcome: "passed" | "artifact_failed" | "verifier_invalid" | "downstream_auth_required" | "inconclusive";
|
|
104
|
+
evidenceIds: string[];
|
|
105
|
+
evidenceKinds?: ObjectiveEvidenceKindV1[];
|
|
106
|
+
/** Exact native candidate/source binding; never inferred from text. */
|
|
107
|
+
supportedAnswer?: SupportedAnswerBindingV1;
|
|
108
|
+
requirementCoverage?: RequirementCoverageBindingV1;
|
|
109
|
+
semanticVerification?: SemanticVerificationBindingV1;
|
|
110
|
+
documentPersistenceGoal?: DocumentPersistenceGoalBindingV1;
|
|
111
|
+
}
|
|
112
|
+
export interface ObjectiveExternalBlockerV1 {
|
|
113
|
+
schema: typeof OBJECTIVE_EXTERNAL_BLOCKER_SCHEMA;
|
|
114
|
+
criterionIds: string[];
|
|
115
|
+
evidenceId: string;
|
|
116
|
+
blockerKind: string;
|
|
117
|
+
retryable: boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface NeedsInputContractV1 {
|
|
120
|
+
schema: typeof NEEDS_INPUT_SCHEMA;
|
|
121
|
+
runId: string;
|
|
122
|
+
taskEpoch: number;
|
|
123
|
+
question: string;
|
|
124
|
+
missingCriterionIds: string[];
|
|
125
|
+
evidenceIds: string[];
|
|
126
|
+
resumeToken: string;
|
|
127
|
+
createdAtIso: string;
|
|
128
|
+
resumedAtIso?: string;
|
|
129
|
+
}
|
|
130
|
+
export type ObjectiveFrontierDecision = "continue" | "verify_due" | "deliver_due" | "needs_input" | "externally_blocked" | "no_delta";
|
|
131
|
+
export interface ObjectiveCriterionStateV1 {
|
|
132
|
+
id: string;
|
|
133
|
+
status: "open" | "satisfied" | "blocked";
|
|
134
|
+
evidenceIds: string[];
|
|
135
|
+
missingEvidenceKinds: ObjectiveEvidenceKindV1[];
|
|
136
|
+
contradictionEvidenceIds: string[];
|
|
137
|
+
acceptedArtifactEvidenceId?: string;
|
|
138
|
+
acceptedArtifactRevision?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface ObjectiveVerificationDueV1 {
|
|
141
|
+
criterionId: string;
|
|
142
|
+
artifactEvidenceId?: string;
|
|
143
|
+
artifactRevision?: string;
|
|
144
|
+
acceptableVerifierMethods: string[];
|
|
145
|
+
expectedEvidenceKinds: ObjectiveEvidenceKindV1[];
|
|
146
|
+
}
|
|
147
|
+
export interface ObjectiveFrontierSnapshotV1 {
|
|
148
|
+
schema: typeof OBJECTIVE_FRONTIER_SCHEMA;
|
|
149
|
+
runId: string;
|
|
150
|
+
taskEpoch: number;
|
|
151
|
+
contractRevision: number;
|
|
152
|
+
fingerprint: string;
|
|
153
|
+
decision: ObjectiveFrontierDecision;
|
|
154
|
+
criteria: ObjectiveCriterionStateV1[];
|
|
155
|
+
openCriterionIds: string[];
|
|
156
|
+
satisfiedCriterionIds: string[];
|
|
157
|
+
blockedCriterionIds: string[];
|
|
158
|
+
evidenceSequence: number;
|
|
159
|
+
verificationDue?: ObjectiveVerificationDueV1;
|
|
160
|
+
blockerEvidenceIds: string[];
|
|
161
|
+
controlAction?: "scrutinize_verifier" | "alternate_action" | "bounded_review";
|
|
162
|
+
}
|
|
163
|
+
export interface ObjectiveFrontierDeltaV1 {
|
|
164
|
+
previousFingerprint?: string;
|
|
165
|
+
currentFingerprint: string;
|
|
166
|
+
materiallyChanged: boolean;
|
|
167
|
+
changedCriterionIds: string[];
|
|
168
|
+
decision: ObjectiveFrontierDecision;
|
|
169
|
+
/** Preparation can reset convergence without changing acceptance facts. */
|
|
170
|
+
preparatoryProgress?: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface RunConvergenceStateV1 {
|
|
173
|
+
schema: typeof OBJECTIVE_CONVERGENCE_SCHEMA;
|
|
174
|
+
frontierFingerprint: string;
|
|
175
|
+
noDeltaStreak: number;
|
|
176
|
+
lastMaterialChangeSequence: number;
|
|
177
|
+
lastActionFamily?: string;
|
|
178
|
+
/** Full host-computed operation hashes, scoped to the executed objective and family. */
|
|
179
|
+
lastActionArgsSha256?: string;
|
|
180
|
+
lastActionResultSha256?: string;
|
|
181
|
+
lastActionScopeSha256?: string;
|
|
182
|
+
targetedCriterionId?: string;
|
|
183
|
+
artifactRevision?: string;
|
|
184
|
+
threshold: number;
|
|
185
|
+
/** Stable, bounded credit identities; restored receipts cannot renew them. */
|
|
186
|
+
preparatoryProgressKeys?: string[];
|
|
187
|
+
discoveredToolNames?: string[];
|
|
188
|
+
preparatoryAttemptKeys?: string[];
|
|
189
|
+
/** One numeric frontier per registered tool, not a population/call-sized key list. */
|
|
190
|
+
durableToolWork?: Record<string, {
|
|
191
|
+
workId: string;
|
|
192
|
+
sequence: number;
|
|
193
|
+
stateSha256: string;
|
|
194
|
+
attemptedSha256?: string;
|
|
195
|
+
}>;
|
|
196
|
+
}
|
|
197
|
+
export interface ObjectiveReconciliationResultV1 {
|
|
198
|
+
frontier: ObjectiveFrontierSnapshotV1;
|
|
199
|
+
delta: ObjectiveFrontierDeltaV1;
|
|
200
|
+
convergence: RunConvergenceStateV1;
|
|
201
|
+
}
|
|
202
|
+
export declare function normalizeTaskObjectiveContractV1(value: unknown): TaskObjectiveContractV1 | null;
|
|
203
|
+
export declare function createTaskObjectiveContractV1(input: {
|
|
204
|
+
taskEpoch: number;
|
|
205
|
+
originalRequestRef: string;
|
|
206
|
+
goal: string;
|
|
207
|
+
criteria: TaskObjectiveCriterionV1[];
|
|
208
|
+
exclusions?: string[];
|
|
209
|
+
unknowns?: string[];
|
|
210
|
+
deliveryTarget?: ObjectiveDeliveryTargetV1;
|
|
211
|
+
revision?: number;
|
|
212
|
+
requirements?: TaskRequirementSetV1;
|
|
213
|
+
}): TaskObjectiveContractV1;
|
|
214
|
+
export declare function taskObjectiveFromExpectedOutcome(input: {
|
|
215
|
+
taskEpoch: number;
|
|
216
|
+
runId: string;
|
|
217
|
+
goal: string;
|
|
218
|
+
expectedOutcome: ExpectedOutcomeContractV1;
|
|
219
|
+
deliveryTarget?: ObjectiveDeliveryTargetV1;
|
|
220
|
+
}): TaskObjectiveContractV1;
|
|
221
|
+
export declare function normalizeExternalEffectReceiptV1(value: unknown): ExternalEffectReceiptV1 | null;
|
|
222
|
+
export declare function normalizeVerificationReceiptV1(value: unknown): VerificationReceiptV1 | null;
|
|
223
|
+
export declare function normalizeObjectiveExternalBlockerV1(value: unknown): ObjectiveExternalBlockerV1 | null;
|
|
224
|
+
export declare function normalizeNeedsInputContractV1(value: unknown): NeedsInputContractV1 | null;
|
|
225
|
+
export declare function normalizeRunConvergenceStateV1(value: unknown): RunConvergenceStateV1 | null;
|
|
226
|
+
export declare function reconcileTaskObjective(input: {
|
|
227
|
+
runId: string;
|
|
228
|
+
contract: TaskObjectiveContractV1;
|
|
229
|
+
evidence: readonly CompletionEvidence[];
|
|
230
|
+
externalEffects?: readonly ExternalEffectReceiptV1[];
|
|
231
|
+
verificationReceipts?: readonly VerificationReceiptV1[];
|
|
232
|
+
sourceReviewStateEvidence?: SourceReviewStateEvidenceV1;
|
|
233
|
+
documentPersistenceEvidence?: DocumentPersistenceReviewEvidenceV1;
|
|
234
|
+
evidenceSnapshotSha256?: string;
|
|
235
|
+
externalBlockers?: readonly ObjectiveExternalBlockerV1[];
|
|
236
|
+
previousFrontier?: ObjectiveFrontierSnapshotV1;
|
|
237
|
+
convergence?: RunConvergenceStateV1;
|
|
238
|
+
needsInput?: NeedsInputContractV1;
|
|
239
|
+
actionFamily?: string;
|
|
240
|
+
actionArgsSha256?: string;
|
|
241
|
+
actionResultSha256?: string;
|
|
242
|
+
targetedCriterionId?: string;
|
|
243
|
+
artifactRevision?: string;
|
|
244
|
+
noDeltaThreshold?: number;
|
|
245
|
+
/** False when rebuilding a persisted projection without observing an action. */
|
|
246
|
+
observeAttempt?: boolean;
|
|
247
|
+
/** Runtime-observed changed bytes of an admitted mutation, never acceptance. */
|
|
248
|
+
materialArtifactChanged?: boolean;
|
|
249
|
+
preparatoryProgress?: ObjectivePreparatoryProgressV1;
|
|
250
|
+
/** Exact bound source operation that actually reached its executor. */
|
|
251
|
+
preparatoryIntent?: ObjectivePreparatoryProgressV1;
|
|
252
|
+
}): ObjectiveReconciliationResultV1;
|
|
253
|
+
export declare function evaluateExternalEffectAdmission(input: {
|
|
254
|
+
intent: ExternalEffectIntentV1;
|
|
255
|
+
receipts: readonly ExternalEffectReceiptV1[];
|
|
256
|
+
}): {
|
|
257
|
+
allowed: true;
|
|
258
|
+
} | {
|
|
259
|
+
allowed: false;
|
|
260
|
+
reason: "already_applied" | "pending_or_unknown";
|
|
261
|
+
evidenceId: string;
|
|
262
|
+
};
|
|
263
|
+
export declare function objectivePreparationIntentIsAvailable(input: {
|
|
264
|
+
frontier: ObjectiveFrontierSnapshotV1;
|
|
265
|
+
preparatoryIntent?: ObjectivePreparatoryProgressV1;
|
|
266
|
+
objectiveContract?: TaskObjectiveContractV1 | null;
|
|
267
|
+
convergence?: RunConvergenceStateV1 | null;
|
|
268
|
+
}): boolean;
|
|
269
|
+
export declare function evaluateObjectiveToolAdmission(input: {
|
|
270
|
+
frontier: ObjectiveFrontierSnapshotV1 | null | undefined;
|
|
271
|
+
toolName: string;
|
|
272
|
+
effectIntent?: ExternalEffectIntentV1 | null;
|
|
273
|
+
/** Host-bound one-shot authority to refine an exact pending reply candidate. */
|
|
274
|
+
deliveryReadyReadOnlyRefinement?: boolean;
|
|
275
|
+
previousActionFamily?: string;
|
|
276
|
+
/** Full current arguments, computed by the host rather than model prose. */
|
|
277
|
+
actionArgsSha256?: string;
|
|
278
|
+
/** The owning runtime checked retained execution history, not just the last call. */
|
|
279
|
+
unattemptedOperation?: boolean;
|
|
280
|
+
/** A host-bound unread source/stage, not a model-selected permission. */
|
|
281
|
+
preparatoryIntent?: ObjectivePreparatoryProgressV1;
|
|
282
|
+
objectiveContract?: TaskObjectiveContractV1 | null;
|
|
283
|
+
convergence?: RunConvergenceStateV1 | null;
|
|
284
|
+
}): {
|
|
285
|
+
allowed: true;
|
|
286
|
+
} | {
|
|
287
|
+
allowed: false;
|
|
288
|
+
reason: "delivery_due" | "awaiting_input" | "externally_blocked" | "plateau_review_due" | "alternate_action_required";
|
|
289
|
+
criterionIds: string[];
|
|
290
|
+
};
|
|
291
|
+
export declare function createNeedsInputContractV1(input: {
|
|
292
|
+
runId: string;
|
|
293
|
+
taskEpoch: number;
|
|
294
|
+
question: string;
|
|
295
|
+
missingCriterionIds: string[];
|
|
296
|
+
evidenceIds?: string[];
|
|
297
|
+
now?: Date | string | number;
|
|
298
|
+
}): NeedsInputContractV1;
|
|
299
|
+
export declare function resumeNeedsInputContractV1(input: {
|
|
300
|
+
contract: NeedsInputContractV1;
|
|
301
|
+
runId: string;
|
|
302
|
+
taskEpoch: number;
|
|
303
|
+
resumeToken: string;
|
|
304
|
+
now?: Date | string | number;
|
|
305
|
+
}): NeedsInputContractV1;
|
|
306
|
+
export declare function objectiveKindsForLegacyEvidence(input: {
|
|
307
|
+
kind: CompletionEvidenceKind;
|
|
308
|
+
role?: CompletionEvidenceRole;
|
|
309
|
+
success?: boolean;
|
|
310
|
+
}): ObjectiveEvidenceKindV1[];
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { ArtifactReviewSourceIndexEntry, ArtifactReviewSourceIssuerReference } from "../memory/artifactReviewSourceIndex.js";
|
|
2
|
+
import { type ExpectedOutcomeContractV1 } from "./expectedOutcomeContract.js";
|
|
3
|
+
import { type CompletionLedger, type CompletionEvidence } from "./completionLedger.js";
|
|
4
|
+
import { type TaskObjectiveContractV1 } from "./taskObjective.js";
|
|
5
|
+
export interface TaskObjectiveContinuationStrengtheningV1 {
|
|
6
|
+
schema: "omnius.task-objective-continuation-strengthening.v1";
|
|
7
|
+
kind: "supported_answer_obligation";
|
|
8
|
+
predecessorContractSha256: string;
|
|
9
|
+
recipientContractSha256: string;
|
|
10
|
+
criterionId: string;
|
|
11
|
+
}
|
|
12
|
+
/** Independently supplied host admission; task/model prose cannot mint it. */
|
|
13
|
+
export interface TaskObjectiveContinuationScopeV1 {
|
|
14
|
+
schema: "omnius.task-objective-continuation-scope.v1";
|
|
15
|
+
admissionKind: "same_native_input_retry" | "issued_task_continuation";
|
|
16
|
+
hostRetryAdmissionId: string | null;
|
|
17
|
+
sessionId: string;
|
|
18
|
+
sessionKey: string;
|
|
19
|
+
taskId: string;
|
|
20
|
+
originalInputId: string;
|
|
21
|
+
currentInputId: string;
|
|
22
|
+
originalNativeInputSha256: string;
|
|
23
|
+
currentNativeInputSha256: string;
|
|
24
|
+
actorKey: string;
|
|
25
|
+
chatId: string;
|
|
26
|
+
messageThreadId: number;
|
|
27
|
+
predecessorBridgeRunId: string;
|
|
28
|
+
recipientBridgeRunId: string;
|
|
29
|
+
previousGeneration: number;
|
|
30
|
+
currentGeneration: number;
|
|
31
|
+
decisionId: string | null;
|
|
32
|
+
decisionPayloadSha256: string;
|
|
33
|
+
/** Independent host binding to a single stronger recipient policy. */
|
|
34
|
+
contractStrengtheningSha256?: string;
|
|
35
|
+
/** Exact committed semantic correction, independent of a stronger-only policy migration. */
|
|
36
|
+
reviewedInterpretationSha256?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface TaskObjectiveContinuationInputV1 {
|
|
39
|
+
schema: "omnius.task-objective-continuation-input.v1";
|
|
40
|
+
scope: TaskObjectiveContinuationScopeV1;
|
|
41
|
+
predecessor: {
|
|
42
|
+
ledgerPath: string;
|
|
43
|
+
runId: string;
|
|
44
|
+
taskEpoch: number;
|
|
45
|
+
ledgerSha256: string;
|
|
46
|
+
};
|
|
47
|
+
objective: {
|
|
48
|
+
originalRequestRef: string;
|
|
49
|
+
originalRequestHash: string;
|
|
50
|
+
revision: number;
|
|
51
|
+
contractSha256: string;
|
|
52
|
+
};
|
|
53
|
+
expectedOutcomeContract: ExpectedOutcomeContractV1;
|
|
54
|
+
expectedOutcomeSha256: string;
|
|
55
|
+
manifestSha256: string;
|
|
56
|
+
/** Original objective above remains the exact predecessor proof. */
|
|
57
|
+
contractStrengthening?: TaskObjectiveContinuationStrengtheningV1;
|
|
58
|
+
reviewedInterpretationSha256?: string;
|
|
59
|
+
resources: Array<{
|
|
60
|
+
criterionId: string;
|
|
61
|
+
messageId: number;
|
|
62
|
+
fileUniqueId: string;
|
|
63
|
+
pathAliases: string[];
|
|
64
|
+
sourceSha256?: string;
|
|
65
|
+
}>;
|
|
66
|
+
}
|
|
67
|
+
export interface TaskObjectiveContinuationRecordV1 {
|
|
68
|
+
schema: "omnius.task-objective-continuation-record.v1";
|
|
69
|
+
recipientRunId: string;
|
|
70
|
+
taskEpoch: number;
|
|
71
|
+
authoritySha256: string;
|
|
72
|
+
input: TaskObjectiveContinuationInputV1;
|
|
73
|
+
adoptions: Array<{
|
|
74
|
+
sourceId: string;
|
|
75
|
+
issuer: ArtifactReviewSourceIssuerReference;
|
|
76
|
+
criterionIds: string[];
|
|
77
|
+
sourceSha256: string;
|
|
78
|
+
}>;
|
|
79
|
+
importedEvidence: Array<{
|
|
80
|
+
evidenceId: string;
|
|
81
|
+
issuerRunId: string;
|
|
82
|
+
predecessorRunId: string;
|
|
83
|
+
predecessorLedgerSha256: string;
|
|
84
|
+
criterionIds: string[];
|
|
85
|
+
}>;
|
|
86
|
+
maximumInheritedEvidenceOrdinal: number;
|
|
87
|
+
/** Completion-ledger entry IDs (ev_...), not inner verifier IDs. Retired
|
|
88
|
+
* answer reviews remain diagnostic bookkeeping with original issuer lineage;
|
|
89
|
+
* only their acceptance authority is retired across continuation hops. */
|
|
90
|
+
retiredSupportedAnswerReviewEvidenceIds?: string[];
|
|
91
|
+
}
|
|
92
|
+
/** The only supported migration appends one open answer verification slot.
|
|
93
|
+
* It never changes existing goal, effects, criteria, or native source scope. */
|
|
94
|
+
export declare function createTaskObjectiveContinuationStrengtheningV1(input: {
|
|
95
|
+
predecessorContract: TaskObjectiveContractV1;
|
|
96
|
+
recipientContract: TaskObjectiveContractV1;
|
|
97
|
+
resources: readonly {
|
|
98
|
+
criterionId: string;
|
|
99
|
+
}[];
|
|
100
|
+
}): {
|
|
101
|
+
contractStrengthening: TaskObjectiveContinuationStrengtheningV1;
|
|
102
|
+
contractStrengtheningSha256: string;
|
|
103
|
+
};
|
|
104
|
+
/** Must be called under the existing source-index write transaction. A same
|
|
105
|
+
* host admission can reconcile work that provably never reached inference;
|
|
106
|
+
* every contender still has to commit and recheck before transport. */
|
|
107
|
+
export declare function claimTaskObjectiveContinuation(record: TaskObjectiveContinuationRecordV1): void;
|
|
108
|
+
/** The recipient ledger has been durably saved before this transition. */
|
|
109
|
+
export declare function commitTaskObjectiveContinuation(record: TaskObjectiveContinuationRecordV1): void;
|
|
110
|
+
/** The physical dispatch owner calls this inside the same synchronous lock.
|
|
111
|
+
* Old or partially committed recipients cannot make a backend request. */
|
|
112
|
+
export declare function startTaskObjectiveContinuationInference(record: TaskObjectiveContinuationRecordV1): void;
|
|
113
|
+
/** The independently constructed host scope is mandatory. Neither the seed
|
|
114
|
+
* nor a model-produced continuation request is its own admission authority. */
|
|
115
|
+
export declare function admitTaskObjectiveContinuation(input: {
|
|
116
|
+
seed: TaskObjectiveContinuationInputV1;
|
|
117
|
+
scope: TaskObjectiveContinuationScopeV1 | undefined;
|
|
118
|
+
sessionId: string;
|
|
119
|
+
stateDir: string;
|
|
120
|
+
recipientRunId: string;
|
|
121
|
+
contract: TaskObjectiveContractV1 | undefined;
|
|
122
|
+
expectedOutcome: ExpectedOutcomeContractV1 | undefined;
|
|
123
|
+
}): {
|
|
124
|
+
ledger: CompletionLedger;
|
|
125
|
+
record: TaskObjectiveContinuationRecordV1;
|
|
126
|
+
};
|
|
127
|
+
/** An unchanged imported row keeps its original issuer, not a new invocation.
|
|
128
|
+
* Physical source/process validity remains the current consumer's obligation. */
|
|
129
|
+
export declare function taskObjectiveContinuationAuthorizesEvidence(ledger: CompletionLedger | undefined | null, entry: CompletionEvidence): boolean;
|
|
130
|
+
/** A datastore alias alone is never reviewer authority. The recipient's
|
|
131
|
+
* admitted ledger must bind this exact original row and native resource. */
|
|
132
|
+
export declare function taskObjectiveContinuationAuthorizesSource(ledger: CompletionLedger | undefined | null, entry: ArtifactReviewSourceIndexEntry): boolean;
|
|
133
|
+
/** Canonical JSON proof shared by the trusted producer and consumer. */
|
|
134
|
+
export declare function taskObjectiveContinuationDigest(value: unknown): string;
|