pi-daddy 0.22.0 → 0.23.0
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/CHANGELOG.md +30 -0
- package/contracts/daily-view/v1/README.md +114 -0
- package/contracts/daily-view/v1/fixtures/view.json +525 -0
- package/contracts/daily-view/v1/fixtures/view.txt +75 -0
- package/contracts/daily-view/v1/fixtures/work.jsonl +17 -0
- package/contracts/daily-view/v1/p03/README.md +26 -0
- package/contracts/daily-view/v1/p03/fixtures/retained-executions.json +241 -0
- package/contracts/daily-view/v1/p03/projection.schema.json +194 -0
- package/contracts/daily-view/v1/p03/provenance.json +21 -0
- package/contracts/dashboard-host/v1/README.md +176 -0
- package/contracts/debrief/v1/README.md +146 -0
- package/contracts/debrief/v1/intervention/README.md +32 -0
- package/contracts/debrief/v1/intervention/fixtures/artifact-3ee11136beb864f518252e5024dae9197421fbf97b6e981d3243c782b5c44bd0.txt +1 -0
- package/contracts/debrief/v1/intervention/fixtures/artifact-58905d872dd3c54a9705f67b05fa82edbad7af6476ae8993faf1a7b9fadfb905.txt +1 -0
- package/contracts/debrief/v1/intervention/fixtures/assessment.json +29 -0
- package/contracts/debrief/v1/intervention/fixtures/blind-view.json +20 -0
- package/contracts/debrief/v1/intervention/fixtures/choice.json +7 -0
- package/contracts/debrief/v1/intervention/fixtures/manifest.json +57 -0
- package/contracts/debrief/v1/intervention/fixtures/reveal.json +39 -0
- package/contracts/debrief/v1/provenance.json +89 -0
- package/contracts/debrief/v1/work-capture/README.md +38 -0
- package/contracts/debrief/v1/work-capture/fixtures/batch.json +17 -0
- package/contracts/debrief/v1/work-capture/fixtures/cases.json +184 -0
- package/contracts/debrief/v1/work-capture/fixtures/review.json +184 -0
- package/contracts/debrief/v1/work-capture/review-request.schema.json +41 -0
- package/contracts/debrief/v1/work-capture/work-case.schema.json +190 -0
- package/contracts/debrief/v2/README.md +71 -0
- package/contracts/debrief/v2/input-pin.json +66 -0
- package/contracts/debrief/v2/intervention-upstream.md +40 -0
- package/contracts/debrief/v2/work-signals-upstream.md +22 -0
- package/contracts/dispatch-control/v1/README.md +109 -0
- package/contracts/dispatch-control/v1/request.schema.json +19 -0
- package/contracts/effect-profile/v1/README.md +124 -0
- package/contracts/execution-retention/v1/README.md +109 -0
- package/contracts/execution-retention/v2/README.md +148 -0
- package/contracts/execution-retention/v2/fixtures/interrupted-native-bytes.json +91 -0
- package/contracts/execution-retention/v2/fixtures/missing-native-session.json +91 -0
- package/contracts/execution-retention/v2/fixtures/native-file-unknown-branch.json +91 -0
- package/contracts/execution-retention/v2/fixtures/native-id-without-bytes.json +91 -0
- package/contracts/execution-retention/v2/fixtures/native-live-branch.json +90 -0
- package/contracts/execution-retention/v2/fixtures/replaced-native-session.json +92 -0
- package/contracts/execution-retention/v2/fixtures/result-82c620cdfeb8ca6b858cf653d7f5e2eedca5315d6244216d60e8b36f03223d6a.bin +1 -0
- package/contracts/execution-retention/v2/fixtures/session-2ec1f134bc739984434f7fca689e1c3d1c39fce2dcadae709e9b6faedfcc4ac7.bin +3 -0
- package/contracts/execution-retention/v2/fixtures/session-9bdb4bd16a901da31580acf056bda525225259e15ec409e0410480109011772f.bin +3 -0
- package/contracts/execution-retention/v2/manifest.schema.json +858 -0
- package/contracts/experiment/v1/README.md +164 -0
- package/contracts/factory-order/v1/README.md +151 -0
- package/contracts/factory-order/v1/adoption-pin.json +8 -0
- package/contracts/intent-control/v1/README.md +135 -0
- package/contracts/intent-control/v1/request.schema.json +1096 -0
- package/contracts/intent-control/v2/README.md +34 -0
- package/contracts/intent-control/v2/request.schema.json +1070 -0
- package/contracts/ledger/v4/README.md +241 -0
- package/contracts/ledger/v4/fixtures/layout-options.json +428 -0
- package/contracts/ledger/v4/fixtures/work-acceptance.json +57 -0
- package/contracts/ledger/v4/fixtures/work-occurrence.json +44 -0
- package/contracts/ledger/v4/fixtures/work-revision.json +26 -0
- package/contracts/ledger/v4/fixtures/work-snapshot.json +73 -0
- package/contracts/ledger/v4/ledger-event.schema.json +162 -0
- package/contracts/ordinary-control/v1/README.md +59 -0
- package/contracts/producer-ipc/v1/README.md +137 -0
- package/dist/check-runner.d.ts +5 -0
- package/dist/check-runner.d.ts.map +1 -1
- package/dist/check-runner.js +16 -2
- package/dist/check-runner.js.map +1 -1
- package/dist/control-journal.d.ts +20 -0
- package/dist/control-journal.d.ts.map +1 -0
- package/dist/control-journal.js +73 -0
- package/dist/control-journal.js.map +1 -0
- package/dist/daily-view-input.d.ts +44 -0
- package/dist/daily-view-input.d.ts.map +1 -0
- package/dist/daily-view-input.js +68 -0
- package/dist/daily-view-input.js.map +1 -0
- package/dist/daily-view-render.d.ts +4 -0
- package/dist/daily-view-render.d.ts.map +1 -0
- package/dist/daily-view-render.js +41 -0
- package/dist/daily-view-render.js.map +1 -0
- package/dist/daily-view.d.ts +74 -0
- package/dist/daily-view.d.ts.map +1 -0
- package/dist/daily-view.js +170 -0
- package/dist/daily-view.js.map +1 -0
- package/dist/dashboard-cli.d.ts +26 -1
- package/dist/dashboard-cli.d.ts.map +1 -1
- package/dist/dashboard-cli.js +121 -3
- package/dist/dashboard-cli.js.map +1 -1
- package/dist/dashboard-harness.d.ts +19 -0
- package/dist/dashboard-harness.d.ts.map +1 -0
- package/dist/dashboard-harness.js +75 -0
- package/dist/dashboard-harness.js.map +1 -0
- package/dist/dashboard-herdr.d.ts.map +1 -1
- package/dist/dashboard-herdr.js +7 -2
- package/dist/dashboard-herdr.js.map +1 -1
- package/dist/dashboard-host-contract.d.ts +111 -0
- package/dist/dashboard-host-contract.d.ts.map +1 -0
- package/dist/dashboard-host-contract.js +14 -0
- package/dist/dashboard-host-contract.js.map +1 -0
- package/dist/dashboard-host-transport.d.ts +15 -0
- package/dist/dashboard-host-transport.d.ts.map +1 -0
- package/dist/dashboard-host-transport.js +122 -0
- package/dist/dashboard-host-transport.js.map +1 -0
- package/dist/dashboard-host.d.ts +149 -0
- package/dist/dashboard-host.d.ts.map +1 -0
- package/dist/dashboard-host.js +329 -0
- package/dist/dashboard-host.js.map +1 -0
- package/dist/dashboard-observation.d.ts +28 -0
- package/dist/dashboard-observation.d.ts.map +1 -0
- package/dist/dashboard-observation.js +86 -0
- package/dist/dashboard-observation.js.map +1 -0
- package/dist/debrief-contract.d.ts +65 -0
- package/dist/debrief-contract.d.ts.map +1 -0
- package/dist/debrief-contract.js +151 -0
- package/dist/debrief-contract.js.map +1 -0
- package/dist/debrief-fixture.d.ts +16 -0
- package/dist/debrief-fixture.d.ts.map +1 -0
- package/dist/debrief-fixture.js +41 -0
- package/dist/debrief-fixture.js.map +1 -0
- package/dist/debrief-host.d.ts +59 -0
- package/dist/debrief-host.d.ts.map +1 -0
- package/dist/debrief-host.js +49 -0
- package/dist/debrief-host.js.map +1 -0
- package/dist/debrief-render.d.ts +5 -0
- package/dist/debrief-render.d.ts.map +1 -0
- package/dist/debrief-render.js +65 -0
- package/dist/debrief-render.js.map +1 -0
- package/dist/debrief.d.ts +90 -0
- package/dist/debrief.d.ts.map +1 -0
- package/dist/debrief.js +263 -0
- package/dist/debrief.js.map +1 -0
- package/dist/delegate-types.d.ts +2 -0
- package/dist/delegate-types.d.ts.map +1 -1
- package/dist/delegate-types.js.map +1 -1
- package/dist/delegate.d.ts.map +1 -1
- package/dist/delegate.js +1 -0
- package/dist/delegate.js.map +1 -1
- package/dist/dispatch-control.d.ts +45 -0
- package/dist/dispatch-control.d.ts.map +1 -0
- package/dist/dispatch-control.js +76 -0
- package/dist/dispatch-control.js.map +1 -0
- package/dist/effect-profile-runtime.d.ts +40 -0
- package/dist/effect-profile-runtime.d.ts.map +1 -0
- package/dist/effect-profile-runtime.js +51 -0
- package/dist/effect-profile-runtime.js.map +1 -0
- package/dist/effect-profile.d.ts +40 -0
- package/dist/effect-profile.d.ts.map +1 -0
- package/dist/effect-profile.js +152 -0
- package/dist/effect-profile.js.map +1 -0
- package/dist/execution-retention.d.ts +90 -0
- package/dist/execution-retention.d.ts.map +1 -0
- package/dist/execution-retention.js +247 -0
- package/dist/execution-retention.js.map +1 -0
- package/dist/experiment-contract.d.ts +56 -0
- package/dist/experiment-contract.d.ts.map +1 -0
- package/dist/experiment-contract.js +80 -0
- package/dist/experiment-contract.js.map +1 -0
- package/dist/experiment-state.d.ts +22 -0
- package/dist/experiment-state.d.ts.map +1 -0
- package/dist/experiment-state.js +79 -0
- package/dist/experiment-state.js.map +1 -0
- package/dist/experiment-store.d.ts +28 -0
- package/dist/experiment-store.d.ts.map +1 -0
- package/dist/experiment-store.js +130 -0
- package/dist/experiment-store.js.map +1 -0
- package/dist/experiment.d.ts +65 -0
- package/dist/experiment.d.ts.map +1 -0
- package/dist/experiment.js +357 -0
- package/dist/experiment.js.map +1 -0
- package/dist/factory-contract.d.ts +79 -0
- package/dist/factory-contract.d.ts.map +1 -0
- package/dist/factory-contract.js +89 -0
- package/dist/factory-contract.js.map +1 -0
- package/dist/factory-migration.d.ts +20 -0
- package/dist/factory-migration.d.ts.map +1 -0
- package/dist/factory-migration.js +55 -0
- package/dist/factory-migration.js.map +1 -0
- package/dist/factory-order.d.ts +848 -0
- package/dist/factory-order.d.ts.map +1 -0
- package/dist/factory-order.js +83 -0
- package/dist/factory-order.js.map +1 -0
- package/dist/factory-registry.d.ts +121 -0
- package/dist/factory-registry.d.ts.map +1 -0
- package/dist/factory-registry.js +133 -0
- package/dist/factory-registry.js.map +1 -0
- package/dist/file-lock.d.ts +8 -2
- package/dist/file-lock.d.ts.map +1 -1
- package/dist/file-lock.js +78 -19
- package/dist/file-lock.js.map +1 -1
- package/dist/herdr-poll.d.ts +8 -0
- package/dist/herdr-poll.d.ts.map +1 -1
- package/dist/herdr-poll.js +23 -0
- package/dist/herdr-poll.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/intent-application.d.ts +17 -0
- package/dist/intent-application.d.ts.map +1 -0
- package/dist/intent-application.js +113 -0
- package/dist/intent-application.js.map +1 -0
- package/dist/intent-control.d.ts +201 -0
- package/dist/intent-control.d.ts.map +1 -0
- package/dist/intent-control.js +110 -0
- package/dist/intent-control.js.map +1 -0
- package/dist/intent-scheduling.d.ts +9 -0
- package/dist/intent-scheduling.d.ts.map +1 -0
- package/dist/intent-scheduling.js +15 -0
- package/dist/intent-scheduling.js.map +1 -0
- package/dist/ledger-append.d.ts +15 -0
- package/dist/ledger-append.d.ts.map +1 -0
- package/dist/ledger-append.js +94 -0
- package/dist/ledger-append.js.map +1 -0
- package/dist/ledger.d.ts +11 -0
- package/dist/ledger.d.ts.map +1 -1
- package/dist/ledger.js +3 -7
- package/dist/ledger.js.map +1 -1
- package/dist/native-session-target.d.ts +9 -0
- package/dist/native-session-target.d.ts.map +1 -0
- package/dist/native-session-target.js +29 -0
- package/dist/native-session-target.js.map +1 -0
- package/dist/native-session.d.ts +59 -0
- package/dist/native-session.d.ts.map +1 -0
- package/dist/native-session.js +154 -0
- package/dist/native-session.js.map +1 -0
- package/dist/order-schedule.d.ts +37 -0
- package/dist/order-schedule.d.ts.map +1 -0
- package/dist/order-schedule.js +81 -0
- package/dist/order-schedule.js.map +1 -0
- package/dist/ordinary-children.d.ts +52 -0
- package/dist/ordinary-children.d.ts.map +1 -0
- package/dist/ordinary-children.js +93 -0
- package/dist/ordinary-children.js.map +1 -0
- package/dist/producer-ipc-contract.d.ts +29 -0
- package/dist/producer-ipc-contract.d.ts.map +1 -0
- package/dist/producer-ipc-contract.js +29 -0
- package/dist/producer-ipc-contract.js.map +1 -0
- package/dist/producer-ipc.d.ts +55 -0
- package/dist/producer-ipc.d.ts.map +1 -0
- package/dist/producer-ipc.js +143 -0
- package/dist/producer-ipc.js.map +1 -0
- package/dist/resource-budget.d.ts +334 -0
- package/dist/resource-budget.d.ts.map +1 -0
- package/dist/resource-budget.js +415 -0
- package/dist/resource-budget.js.map +1 -0
- package/dist/retention-contract.d.ts +73 -0
- package/dist/retention-contract.d.ts.map +1 -0
- package/dist/retention-contract.js +104 -0
- package/dist/retention-contract.js.map +1 -0
- package/dist/retention-json.d.ts +3 -0
- package/dist/retention-json.d.ts.map +1 -0
- package/dist/retention-json.js +32 -0
- package/dist/retention-json.js.map +1 -0
- package/dist/run-child.d.ts +4 -0
- package/dist/run-child.d.ts.map +1 -1
- package/dist/run-child.js +16 -2
- package/dist/run-child.js.map +1 -1
- package/dist/run-herdr.d.ts +6 -0
- package/dist/run-herdr.d.ts.map +1 -1
- package/dist/run-herdr.js +19 -6
- package/dist/run-herdr.js.map +1 -1
- package/dist/vendor/adoption.d.ts +129 -0
- package/dist/vendor/adoption.d.ts.map +1 -0
- package/dist/vendor/adoption.js +102 -0
- package/dist/vendor/adoption.js.map +1 -0
- package/dist/work-ledger-destination.d.ts +20 -0
- package/dist/work-ledger-destination.d.ts.map +1 -0
- package/dist/work-ledger-destination.js +131 -0
- package/dist/work-ledger-destination.js.map +1 -0
- package/dist/work-ledger-json.d.ts +25 -0
- package/dist/work-ledger-json.d.ts.map +1 -0
- package/dist/work-ledger-json.js +267 -0
- package/dist/work-ledger-json.js.map +1 -0
- package/dist/work-ledger-occurrences.d.ts +227 -0
- package/dist/work-ledger-occurrences.d.ts.map +1 -0
- package/dist/work-ledger-occurrences.js +115 -0
- package/dist/work-ledger-occurrences.js.map +1 -0
- package/dist/work-ledger-projection.d.ts +295 -0
- package/dist/work-ledger-projection.d.ts.map +1 -0
- package/dist/work-ledger-projection.js +237 -0
- package/dist/work-ledger-projection.js.map +1 -0
- package/dist/work-ledger-snapshot.d.ts +29 -0
- package/dist/work-ledger-snapshot.d.ts.map +1 -0
- package/dist/work-ledger-snapshot.js +267 -0
- package/dist/work-ledger-snapshot.js.map +1 -0
- package/dist/work-ledger-types.d.ts +261 -0
- package/dist/work-ledger-types.d.ts.map +1 -0
- package/dist/work-ledger-types.js +13 -0
- package/dist/work-ledger-types.js.map +1 -0
- package/dist/work-ledger-validation.d.ts +14 -0
- package/dist/work-ledger-validation.d.ts.map +1 -0
- package/dist/work-ledger-validation.js +226 -0
- package/dist/work-ledger-validation.js.map +1 -0
- package/dist/work-ledger.d.ts +43 -0
- package/dist/work-ledger.d.ts.map +1 -0
- package/dist/work-ledger.js +225 -0
- package/dist/work-ledger.js.map +1 -0
- package/extensions/delegate-chain.ts +1 -0
- package/extensions/delegation-native.ts +12 -0
- package/extensions/delegation.ts +4 -3
- package/extensions/execute-child.ts +34 -4
- package/extensions/grants.ts +2 -0
- package/extensions/ordinary-runtime.ts +14 -0
- package/extensions/run-delegation.ts +7 -7
- package/extensions/session.ts +3 -1
- package/package.json +78 -4
- package/src/check-runner.ts +20 -2
- package/src/control-journal.ts +26 -0
- package/src/daily-view-input.ts +59 -0
- package/src/daily-view-render.ts +44 -0
- package/src/daily-view.ts +152 -0
- package/src/dashboard-cli.ts +103 -4
- package/src/dashboard-harness.ts +28 -0
- package/src/dashboard-herdr.ts +7 -2
- package/src/dashboard-host-contract.ts +42 -0
- package/src/dashboard-host-transport.ts +38 -0
- package/src/dashboard-host.ts +168 -0
- package/src/dashboard-observation.ts +44 -0
- package/src/debrief-contract.ts +127 -0
- package/src/debrief-fixture.ts +29 -0
- package/src/debrief-host.ts +53 -0
- package/src/debrief-render.ts +49 -0
- package/src/debrief.ts +198 -0
- package/src/delegate-types.ts +2 -0
- package/src/delegate.ts +1 -0
- package/src/dispatch-control.ts +81 -0
- package/src/effect-profile-runtime.ts +46 -0
- package/src/effect-profile.ts +129 -0
- package/src/execution-retention.ts +230 -0
- package/src/experiment-contract.ts +66 -0
- package/src/experiment-state.ts +44 -0
- package/src/experiment-store.ts +90 -0
- package/src/experiment.ts +231 -0
- package/src/factory-contract.ts +47 -0
- package/src/factory-migration.ts +29 -0
- package/src/factory-order.ts +56 -0
- package/src/factory-registry.ts +60 -0
- package/src/file-lock.ts +47 -11
- package/src/herdr-poll.ts +18 -0
- package/src/index.ts +32 -0
- package/src/intent-application.ts +90 -0
- package/src/intent-control.ts +107 -0
- package/src/intent-scheduling.ts +14 -0
- package/src/ledger-append.ts +72 -0
- package/src/ledger.ts +3 -9
- package/src/native-session-target.ts +23 -0
- package/src/native-session.ts +139 -0
- package/src/order-schedule.ts +42 -0
- package/src/ordinary-children.ts +59 -0
- package/src/producer-ipc-contract.ts +26 -0
- package/src/producer-ipc.ts +107 -0
- package/src/resource-budget.ts +349 -0
- package/src/retention-contract.ts +84 -0
- package/src/retention-json.ts +20 -0
- package/src/run-child.ts +13 -2
- package/src/run-herdr.ts +11 -7
- package/src/vendor/adoption.ts +109 -0
- package/src/work-ledger-destination.ts +113 -0
- package/src/work-ledger-json.ts +228 -0
- package/src/work-ledger-occurrences.ts +99 -0
- package/src/work-ledger-projection.ts +262 -0
- package/src/work-ledger-snapshot.ts +246 -0
- package/src/work-ledger-types.ts +229 -0
- package/src/work-ledger-validation.ts +174 -0
- package/src/work-ledger.ts +186 -0
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
import { type FactoryOrderCharter, type FactoryAuthority } from "./factory-contract.ts";
|
|
2
|
+
import { type FactoryRegistryBinding } from "./factory-registry.ts";
|
|
3
|
+
import type { ExperimentCancellation } from "./experiment-contract.ts";
|
|
4
|
+
import type { FactoryDecision } from "./order-schedule.ts";
|
|
5
|
+
import type { DigestProfile } from "./effect-profile.ts";
|
|
6
|
+
export { migrateFactoryOrder, factoryMigrationDigest, type FactoryMigration } from "./factory-migration.ts";
|
|
7
|
+
export { createFactoryRegistry, openFactoryRegistry, type FactoryRegistryBinding } from "./factory-registry.ts";
|
|
8
|
+
export { parseFactoryOrder, factoryOrderDigest, fixedPolicyDigest, factoryDecisionDigest, activationRequestDigest, type FactoryOrderCharter, type FactoryAuthority, type FixedPolicy, type ActivationRequest } from "./factory-contract.ts";
|
|
9
|
+
export declare function createFactoryOrder(inputRegistry: FactoryRegistryBinding, input: FactoryOrderCharter, host: FactoryAuthority | null): Promise<import("./experiment-store.ts").ExperimentBinding>;
|
|
10
|
+
export declare function openFactoryOrder(inputRegistry: FactoryRegistryBinding, orderId: string, host: FactoryAuthority | null): Promise<Readonly<{
|
|
11
|
+
bindingDigest: string;
|
|
12
|
+
binding: import("./experiment-store.ts").ExperimentBinding;
|
|
13
|
+
pin: {
|
|
14
|
+
readonly revision: number;
|
|
15
|
+
readonly candidateDigest: string;
|
|
16
|
+
readonly adoptionId: string | null;
|
|
17
|
+
};
|
|
18
|
+
inspect: () => Promise<{
|
|
19
|
+
readonly version: string;
|
|
20
|
+
readonly orderId: string;
|
|
21
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
22
|
+
readonly policyPin: {
|
|
23
|
+
readonly revision: number;
|
|
24
|
+
readonly candidateDigest: string;
|
|
25
|
+
readonly adoptionId: string | null;
|
|
26
|
+
};
|
|
27
|
+
readonly orderDigest: string;
|
|
28
|
+
readonly nodes: readonly ({
|
|
29
|
+
readonly obligation: {
|
|
30
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly revision: number;
|
|
33
|
+
readonly digest: string;
|
|
34
|
+
};
|
|
35
|
+
readonly nodeId: string;
|
|
36
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
37
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
38
|
+
readonly executionId: string | null;
|
|
39
|
+
readonly evidenceDigest: string | null;
|
|
40
|
+
} | {
|
|
41
|
+
readonly obligation: {
|
|
42
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly revision: number;
|
|
45
|
+
readonly digest: string;
|
|
46
|
+
};
|
|
47
|
+
readonly state: "superseded";
|
|
48
|
+
readonly action: "none";
|
|
49
|
+
readonly nodeId: string;
|
|
50
|
+
readonly executionId: string | null;
|
|
51
|
+
readonly evidenceDigest: string | null;
|
|
52
|
+
})[];
|
|
53
|
+
readonly resources: {
|
|
54
|
+
readonly attempts: number;
|
|
55
|
+
readonly inputBytes: number;
|
|
56
|
+
readonly active: number;
|
|
57
|
+
readonly reservations: readonly {
|
|
58
|
+
readonly intent?: {
|
|
59
|
+
readonly selection: {
|
|
60
|
+
readonly snapshot: {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly digest: string;
|
|
63
|
+
};
|
|
64
|
+
readonly event: {
|
|
65
|
+
readonly eventId: string;
|
|
66
|
+
readonly digest: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly revision: number;
|
|
70
|
+
readonly obligation: {
|
|
71
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly revision: number;
|
|
74
|
+
readonly digest: string;
|
|
75
|
+
};
|
|
76
|
+
} | undefined;
|
|
77
|
+
readonly owner: string;
|
|
78
|
+
readonly state: "reserved" | "settled";
|
|
79
|
+
readonly outcome: string | null;
|
|
80
|
+
readonly attemptId: string;
|
|
81
|
+
readonly orderId: string;
|
|
82
|
+
readonly experimentId: string;
|
|
83
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
84
|
+
readonly parentAttemptId: string | null;
|
|
85
|
+
readonly inputBytes: number;
|
|
86
|
+
readonly inputDigest: string;
|
|
87
|
+
}[];
|
|
88
|
+
} | null;
|
|
89
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
90
|
+
readonly diagnostics: readonly string[];
|
|
91
|
+
readonly superseded: boolean;
|
|
92
|
+
readonly dispatchAuthorized: boolean;
|
|
93
|
+
readonly modelTransport: string;
|
|
94
|
+
readonly acceptance: string;
|
|
95
|
+
readonly freshness: string;
|
|
96
|
+
}>;
|
|
97
|
+
reconcile: () => Promise<{
|
|
98
|
+
readonly version: string;
|
|
99
|
+
readonly orderId: string;
|
|
100
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
101
|
+
readonly policyPin: {
|
|
102
|
+
readonly revision: number;
|
|
103
|
+
readonly candidateDigest: string;
|
|
104
|
+
readonly adoptionId: string | null;
|
|
105
|
+
};
|
|
106
|
+
readonly orderDigest: string;
|
|
107
|
+
readonly nodes: readonly ({
|
|
108
|
+
readonly obligation: {
|
|
109
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
110
|
+
readonly id: string;
|
|
111
|
+
readonly revision: number;
|
|
112
|
+
readonly digest: string;
|
|
113
|
+
};
|
|
114
|
+
readonly nodeId: string;
|
|
115
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
116
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
117
|
+
readonly executionId: string | null;
|
|
118
|
+
readonly evidenceDigest: string | null;
|
|
119
|
+
} | {
|
|
120
|
+
readonly obligation: {
|
|
121
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
122
|
+
readonly id: string;
|
|
123
|
+
readonly revision: number;
|
|
124
|
+
readonly digest: string;
|
|
125
|
+
};
|
|
126
|
+
readonly state: "superseded";
|
|
127
|
+
readonly action: "none";
|
|
128
|
+
readonly nodeId: string;
|
|
129
|
+
readonly executionId: string | null;
|
|
130
|
+
readonly evidenceDigest: string | null;
|
|
131
|
+
})[];
|
|
132
|
+
readonly resources: {
|
|
133
|
+
readonly attempts: number;
|
|
134
|
+
readonly inputBytes: number;
|
|
135
|
+
readonly active: number;
|
|
136
|
+
readonly reservations: readonly {
|
|
137
|
+
readonly intent?: {
|
|
138
|
+
readonly selection: {
|
|
139
|
+
readonly snapshot: {
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly digest: string;
|
|
142
|
+
};
|
|
143
|
+
readonly event: {
|
|
144
|
+
readonly eventId: string;
|
|
145
|
+
readonly digest: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly revision: number;
|
|
149
|
+
readonly obligation: {
|
|
150
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
151
|
+
readonly id: string;
|
|
152
|
+
readonly revision: number;
|
|
153
|
+
readonly digest: string;
|
|
154
|
+
};
|
|
155
|
+
} | undefined;
|
|
156
|
+
readonly owner: string;
|
|
157
|
+
readonly state: "reserved" | "settled";
|
|
158
|
+
readonly outcome: string | null;
|
|
159
|
+
readonly attemptId: string;
|
|
160
|
+
readonly orderId: string;
|
|
161
|
+
readonly experimentId: string;
|
|
162
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
163
|
+
readonly parentAttemptId: string | null;
|
|
164
|
+
readonly inputBytes: number;
|
|
165
|
+
readonly inputDigest: string;
|
|
166
|
+
}[];
|
|
167
|
+
} | null;
|
|
168
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
169
|
+
readonly diagnostics: readonly string[];
|
|
170
|
+
readonly superseded: boolean;
|
|
171
|
+
readonly dispatchAuthorized: boolean;
|
|
172
|
+
readonly modelTransport: string;
|
|
173
|
+
readonly acceptance: string;
|
|
174
|
+
readonly freshness: string;
|
|
175
|
+
}>;
|
|
176
|
+
advance(profile: DigestProfile): Promise<Readonly<{
|
|
177
|
+
boundary: Promise<{
|
|
178
|
+
readonly version: string;
|
|
179
|
+
readonly orderId: string;
|
|
180
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
181
|
+
readonly policyPin: {
|
|
182
|
+
readonly revision: number;
|
|
183
|
+
readonly candidateDigest: string;
|
|
184
|
+
readonly adoptionId: string | null;
|
|
185
|
+
};
|
|
186
|
+
readonly orderDigest: string;
|
|
187
|
+
readonly nodes: readonly ({
|
|
188
|
+
readonly obligation: {
|
|
189
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
190
|
+
readonly id: string;
|
|
191
|
+
readonly revision: number;
|
|
192
|
+
readonly digest: string;
|
|
193
|
+
};
|
|
194
|
+
readonly nodeId: string;
|
|
195
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
196
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
197
|
+
readonly executionId: string | null;
|
|
198
|
+
readonly evidenceDigest: string | null;
|
|
199
|
+
} | {
|
|
200
|
+
readonly obligation: {
|
|
201
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
202
|
+
readonly id: string;
|
|
203
|
+
readonly revision: number;
|
|
204
|
+
readonly digest: string;
|
|
205
|
+
};
|
|
206
|
+
readonly state: "superseded";
|
|
207
|
+
readonly action: "none";
|
|
208
|
+
readonly nodeId: string;
|
|
209
|
+
readonly executionId: string | null;
|
|
210
|
+
readonly evidenceDigest: string | null;
|
|
211
|
+
})[];
|
|
212
|
+
readonly resources: {
|
|
213
|
+
readonly attempts: number;
|
|
214
|
+
readonly inputBytes: number;
|
|
215
|
+
readonly active: number;
|
|
216
|
+
readonly reservations: readonly {
|
|
217
|
+
readonly intent?: {
|
|
218
|
+
readonly selection: {
|
|
219
|
+
readonly snapshot: {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly digest: string;
|
|
222
|
+
};
|
|
223
|
+
readonly event: {
|
|
224
|
+
readonly eventId: string;
|
|
225
|
+
readonly digest: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly revision: number;
|
|
229
|
+
readonly obligation: {
|
|
230
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
231
|
+
readonly id: string;
|
|
232
|
+
readonly revision: number;
|
|
233
|
+
readonly digest: string;
|
|
234
|
+
};
|
|
235
|
+
} | undefined;
|
|
236
|
+
readonly owner: string;
|
|
237
|
+
readonly state: "reserved" | "settled";
|
|
238
|
+
readonly outcome: string | null;
|
|
239
|
+
readonly attemptId: string;
|
|
240
|
+
readonly orderId: string;
|
|
241
|
+
readonly experimentId: string;
|
|
242
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
243
|
+
readonly parentAttemptId: string | null;
|
|
244
|
+
readonly inputBytes: number;
|
|
245
|
+
readonly inputDigest: string;
|
|
246
|
+
}[];
|
|
247
|
+
} | null;
|
|
248
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
249
|
+
readonly diagnostics: readonly string[];
|
|
250
|
+
readonly superseded: boolean;
|
|
251
|
+
readonly dispatchAuthorized: boolean;
|
|
252
|
+
readonly modelTransport: string;
|
|
253
|
+
readonly acceptance: string;
|
|
254
|
+
readonly freshness: string;
|
|
255
|
+
} | {
|
|
256
|
+
readonly version: string;
|
|
257
|
+
readonly orderId: string;
|
|
258
|
+
readonly scope: string;
|
|
259
|
+
readonly policyPin: {
|
|
260
|
+
readonly revision: number;
|
|
261
|
+
readonly candidateDigest: string;
|
|
262
|
+
readonly adoptionId: string | null;
|
|
263
|
+
};
|
|
264
|
+
readonly orderDigest: string;
|
|
265
|
+
readonly nodes: readonly {
|
|
266
|
+
readonly nodeId: string;
|
|
267
|
+
readonly obligation: {
|
|
268
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
269
|
+
readonly id: string;
|
|
270
|
+
readonly revision: number;
|
|
271
|
+
readonly digest: string;
|
|
272
|
+
};
|
|
273
|
+
readonly state: string;
|
|
274
|
+
readonly action: string;
|
|
275
|
+
readonly executionId: null;
|
|
276
|
+
readonly evidenceDigest: null;
|
|
277
|
+
}[];
|
|
278
|
+
readonly resources: null;
|
|
279
|
+
readonly superseded: null;
|
|
280
|
+
readonly dispatchAuthorized: boolean;
|
|
281
|
+
readonly modelTransport: string;
|
|
282
|
+
readonly acceptance: string;
|
|
283
|
+
readonly freshness: string;
|
|
284
|
+
readonly control: string;
|
|
285
|
+
} | {
|
|
286
|
+
readonly control: "unknown" | "failed";
|
|
287
|
+
readonly diagnostics: readonly string[];
|
|
288
|
+
readonly dispatchAuthorized: boolean;
|
|
289
|
+
readonly nodes: readonly ({
|
|
290
|
+
readonly action: "stakeholder";
|
|
291
|
+
readonly obligation: {
|
|
292
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
293
|
+
readonly id: string;
|
|
294
|
+
readonly revision: number;
|
|
295
|
+
readonly digest: string;
|
|
296
|
+
};
|
|
297
|
+
readonly nodeId: string;
|
|
298
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
299
|
+
readonly executionId: string | null;
|
|
300
|
+
readonly evidenceDigest: string | null;
|
|
301
|
+
} | {
|
|
302
|
+
readonly action: "stakeholder";
|
|
303
|
+
readonly obligation: {
|
|
304
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
305
|
+
readonly id: string;
|
|
306
|
+
readonly revision: number;
|
|
307
|
+
readonly digest: string;
|
|
308
|
+
};
|
|
309
|
+
readonly state: "superseded";
|
|
310
|
+
readonly nodeId: string;
|
|
311
|
+
readonly executionId: string | null;
|
|
312
|
+
readonly evidenceDigest: string | null;
|
|
313
|
+
} | {
|
|
314
|
+
readonly action: "stakeholder";
|
|
315
|
+
readonly nodeId: string;
|
|
316
|
+
readonly obligation: {
|
|
317
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
318
|
+
readonly id: string;
|
|
319
|
+
readonly revision: number;
|
|
320
|
+
readonly digest: string;
|
|
321
|
+
};
|
|
322
|
+
readonly state: string;
|
|
323
|
+
readonly executionId: null;
|
|
324
|
+
readonly evidenceDigest: null;
|
|
325
|
+
})[];
|
|
326
|
+
readonly version: string;
|
|
327
|
+
readonly orderId: string;
|
|
328
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
329
|
+
readonly policyPin: {
|
|
330
|
+
readonly revision: number;
|
|
331
|
+
readonly candidateDigest: string;
|
|
332
|
+
readonly adoptionId: string | null;
|
|
333
|
+
};
|
|
334
|
+
readonly orderDigest: string;
|
|
335
|
+
readonly resources: {
|
|
336
|
+
readonly attempts: number;
|
|
337
|
+
readonly inputBytes: number;
|
|
338
|
+
readonly active: number;
|
|
339
|
+
readonly reservations: readonly {
|
|
340
|
+
readonly intent?: {
|
|
341
|
+
readonly selection: {
|
|
342
|
+
readonly snapshot: {
|
|
343
|
+
readonly id: string;
|
|
344
|
+
readonly digest: string;
|
|
345
|
+
};
|
|
346
|
+
readonly event: {
|
|
347
|
+
readonly eventId: string;
|
|
348
|
+
readonly digest: string;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly revision: number;
|
|
352
|
+
readonly obligation: {
|
|
353
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
354
|
+
readonly id: string;
|
|
355
|
+
readonly revision: number;
|
|
356
|
+
readonly digest: string;
|
|
357
|
+
};
|
|
358
|
+
} | undefined;
|
|
359
|
+
readonly owner: string;
|
|
360
|
+
readonly state: "reserved" | "settled";
|
|
361
|
+
readonly outcome: string | null;
|
|
362
|
+
readonly attemptId: string;
|
|
363
|
+
readonly orderId: string;
|
|
364
|
+
readonly experimentId: string;
|
|
365
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
366
|
+
readonly parentAttemptId: string | null;
|
|
367
|
+
readonly inputBytes: number;
|
|
368
|
+
readonly inputDigest: string;
|
|
369
|
+
}[];
|
|
370
|
+
} | null;
|
|
371
|
+
readonly superseded: boolean;
|
|
372
|
+
readonly modelTransport: string;
|
|
373
|
+
readonly acceptance: string;
|
|
374
|
+
readonly freshness: string;
|
|
375
|
+
} | {
|
|
376
|
+
readonly control: "unknown" | "failed";
|
|
377
|
+
readonly diagnostics: readonly string[];
|
|
378
|
+
readonly dispatchAuthorized: boolean;
|
|
379
|
+
readonly nodes: readonly ({
|
|
380
|
+
readonly action: "stakeholder";
|
|
381
|
+
readonly obligation: {
|
|
382
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
383
|
+
readonly id: string;
|
|
384
|
+
readonly revision: number;
|
|
385
|
+
readonly digest: string;
|
|
386
|
+
};
|
|
387
|
+
readonly nodeId: string;
|
|
388
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
389
|
+
readonly executionId: string | null;
|
|
390
|
+
readonly evidenceDigest: string | null;
|
|
391
|
+
} | {
|
|
392
|
+
readonly action: "stakeholder";
|
|
393
|
+
readonly obligation: {
|
|
394
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
395
|
+
readonly id: string;
|
|
396
|
+
readonly revision: number;
|
|
397
|
+
readonly digest: string;
|
|
398
|
+
};
|
|
399
|
+
readonly state: "superseded";
|
|
400
|
+
readonly nodeId: string;
|
|
401
|
+
readonly executionId: string | null;
|
|
402
|
+
readonly evidenceDigest: string | null;
|
|
403
|
+
} | {
|
|
404
|
+
readonly action: "stakeholder";
|
|
405
|
+
readonly nodeId: string;
|
|
406
|
+
readonly obligation: {
|
|
407
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
408
|
+
readonly id: string;
|
|
409
|
+
readonly revision: number;
|
|
410
|
+
readonly digest: string;
|
|
411
|
+
};
|
|
412
|
+
readonly state: string;
|
|
413
|
+
readonly executionId: null;
|
|
414
|
+
readonly evidenceDigest: null;
|
|
415
|
+
})[];
|
|
416
|
+
readonly version: string;
|
|
417
|
+
readonly orderId: string;
|
|
418
|
+
readonly scope: string;
|
|
419
|
+
readonly policyPin: {
|
|
420
|
+
readonly revision: number;
|
|
421
|
+
readonly candidateDigest: string;
|
|
422
|
+
readonly adoptionId: string | null;
|
|
423
|
+
};
|
|
424
|
+
readonly orderDigest: string;
|
|
425
|
+
readonly resources: null;
|
|
426
|
+
readonly superseded: null;
|
|
427
|
+
readonly modelTransport: string;
|
|
428
|
+
readonly acceptance: string;
|
|
429
|
+
readonly freshness: string;
|
|
430
|
+
}>;
|
|
431
|
+
completion: Promise<{
|
|
432
|
+
readonly version: string;
|
|
433
|
+
readonly orderId: string;
|
|
434
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
435
|
+
readonly policyPin: {
|
|
436
|
+
readonly revision: number;
|
|
437
|
+
readonly candidateDigest: string;
|
|
438
|
+
readonly adoptionId: string | null;
|
|
439
|
+
};
|
|
440
|
+
readonly orderDigest: string;
|
|
441
|
+
readonly nodes: readonly ({
|
|
442
|
+
readonly obligation: {
|
|
443
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
444
|
+
readonly id: string;
|
|
445
|
+
readonly revision: number;
|
|
446
|
+
readonly digest: string;
|
|
447
|
+
};
|
|
448
|
+
readonly nodeId: string;
|
|
449
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
450
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
451
|
+
readonly executionId: string | null;
|
|
452
|
+
readonly evidenceDigest: string | null;
|
|
453
|
+
} | {
|
|
454
|
+
readonly obligation: {
|
|
455
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
456
|
+
readonly id: string;
|
|
457
|
+
readonly revision: number;
|
|
458
|
+
readonly digest: string;
|
|
459
|
+
};
|
|
460
|
+
readonly state: "superseded";
|
|
461
|
+
readonly action: "none";
|
|
462
|
+
readonly nodeId: string;
|
|
463
|
+
readonly executionId: string | null;
|
|
464
|
+
readonly evidenceDigest: string | null;
|
|
465
|
+
})[];
|
|
466
|
+
readonly resources: {
|
|
467
|
+
readonly attempts: number;
|
|
468
|
+
readonly inputBytes: number;
|
|
469
|
+
readonly active: number;
|
|
470
|
+
readonly reservations: readonly {
|
|
471
|
+
readonly intent?: {
|
|
472
|
+
readonly selection: {
|
|
473
|
+
readonly snapshot: {
|
|
474
|
+
readonly id: string;
|
|
475
|
+
readonly digest: string;
|
|
476
|
+
};
|
|
477
|
+
readonly event: {
|
|
478
|
+
readonly eventId: string;
|
|
479
|
+
readonly digest: string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
readonly revision: number;
|
|
483
|
+
readonly obligation: {
|
|
484
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
485
|
+
readonly id: string;
|
|
486
|
+
readonly revision: number;
|
|
487
|
+
readonly digest: string;
|
|
488
|
+
};
|
|
489
|
+
} | undefined;
|
|
490
|
+
readonly owner: string;
|
|
491
|
+
readonly state: "reserved" | "settled";
|
|
492
|
+
readonly outcome: string | null;
|
|
493
|
+
readonly attemptId: string;
|
|
494
|
+
readonly orderId: string;
|
|
495
|
+
readonly experimentId: string;
|
|
496
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
497
|
+
readonly parentAttemptId: string | null;
|
|
498
|
+
readonly inputBytes: number;
|
|
499
|
+
readonly inputDigest: string;
|
|
500
|
+
}[];
|
|
501
|
+
} | null;
|
|
502
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
503
|
+
readonly diagnostics: readonly string[];
|
|
504
|
+
readonly superseded: boolean;
|
|
505
|
+
readonly dispatchAuthorized: boolean;
|
|
506
|
+
readonly modelTransport: string;
|
|
507
|
+
readonly acceptance: string;
|
|
508
|
+
readonly freshness: string;
|
|
509
|
+
} | {
|
|
510
|
+
readonly version: string;
|
|
511
|
+
readonly orderId: string;
|
|
512
|
+
readonly scope: string;
|
|
513
|
+
readonly policyPin: {
|
|
514
|
+
readonly revision: number;
|
|
515
|
+
readonly candidateDigest: string;
|
|
516
|
+
readonly adoptionId: string | null;
|
|
517
|
+
};
|
|
518
|
+
readonly orderDigest: string;
|
|
519
|
+
readonly nodes: readonly {
|
|
520
|
+
readonly nodeId: string;
|
|
521
|
+
readonly obligation: {
|
|
522
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
523
|
+
readonly id: string;
|
|
524
|
+
readonly revision: number;
|
|
525
|
+
readonly digest: string;
|
|
526
|
+
};
|
|
527
|
+
readonly state: string;
|
|
528
|
+
readonly action: string;
|
|
529
|
+
readonly executionId: null;
|
|
530
|
+
readonly evidenceDigest: null;
|
|
531
|
+
}[];
|
|
532
|
+
readonly resources: null;
|
|
533
|
+
readonly superseded: null;
|
|
534
|
+
readonly dispatchAuthorized: boolean;
|
|
535
|
+
readonly modelTransport: string;
|
|
536
|
+
readonly acceptance: string;
|
|
537
|
+
readonly freshness: string;
|
|
538
|
+
readonly control: string;
|
|
539
|
+
} | {
|
|
540
|
+
readonly control: "unknown" | "failed";
|
|
541
|
+
readonly diagnostics: readonly string[];
|
|
542
|
+
readonly dispatchAuthorized: boolean;
|
|
543
|
+
readonly nodes: readonly ({
|
|
544
|
+
readonly action: "stakeholder";
|
|
545
|
+
readonly obligation: {
|
|
546
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
547
|
+
readonly id: string;
|
|
548
|
+
readonly revision: number;
|
|
549
|
+
readonly digest: string;
|
|
550
|
+
};
|
|
551
|
+
readonly nodeId: string;
|
|
552
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
553
|
+
readonly executionId: string | null;
|
|
554
|
+
readonly evidenceDigest: string | null;
|
|
555
|
+
} | {
|
|
556
|
+
readonly action: "stakeholder";
|
|
557
|
+
readonly obligation: {
|
|
558
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
559
|
+
readonly id: string;
|
|
560
|
+
readonly revision: number;
|
|
561
|
+
readonly digest: string;
|
|
562
|
+
};
|
|
563
|
+
readonly state: "superseded";
|
|
564
|
+
readonly nodeId: string;
|
|
565
|
+
readonly executionId: string | null;
|
|
566
|
+
readonly evidenceDigest: string | null;
|
|
567
|
+
} | {
|
|
568
|
+
readonly action: "stakeholder";
|
|
569
|
+
readonly nodeId: string;
|
|
570
|
+
readonly obligation: {
|
|
571
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
572
|
+
readonly id: string;
|
|
573
|
+
readonly revision: number;
|
|
574
|
+
readonly digest: string;
|
|
575
|
+
};
|
|
576
|
+
readonly state: string;
|
|
577
|
+
readonly executionId: null;
|
|
578
|
+
readonly evidenceDigest: null;
|
|
579
|
+
})[];
|
|
580
|
+
readonly version: string;
|
|
581
|
+
readonly orderId: string;
|
|
582
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
583
|
+
readonly policyPin: {
|
|
584
|
+
readonly revision: number;
|
|
585
|
+
readonly candidateDigest: string;
|
|
586
|
+
readonly adoptionId: string | null;
|
|
587
|
+
};
|
|
588
|
+
readonly orderDigest: string;
|
|
589
|
+
readonly resources: {
|
|
590
|
+
readonly attempts: number;
|
|
591
|
+
readonly inputBytes: number;
|
|
592
|
+
readonly active: number;
|
|
593
|
+
readonly reservations: readonly {
|
|
594
|
+
readonly intent?: {
|
|
595
|
+
readonly selection: {
|
|
596
|
+
readonly snapshot: {
|
|
597
|
+
readonly id: string;
|
|
598
|
+
readonly digest: string;
|
|
599
|
+
};
|
|
600
|
+
readonly event: {
|
|
601
|
+
readonly eventId: string;
|
|
602
|
+
readonly digest: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly revision: number;
|
|
606
|
+
readonly obligation: {
|
|
607
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
608
|
+
readonly id: string;
|
|
609
|
+
readonly revision: number;
|
|
610
|
+
readonly digest: string;
|
|
611
|
+
};
|
|
612
|
+
} | undefined;
|
|
613
|
+
readonly owner: string;
|
|
614
|
+
readonly state: "reserved" | "settled";
|
|
615
|
+
readonly outcome: string | null;
|
|
616
|
+
readonly attemptId: string;
|
|
617
|
+
readonly orderId: string;
|
|
618
|
+
readonly experimentId: string;
|
|
619
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
620
|
+
readonly parentAttemptId: string | null;
|
|
621
|
+
readonly inputBytes: number;
|
|
622
|
+
readonly inputDigest: string;
|
|
623
|
+
}[];
|
|
624
|
+
} | null;
|
|
625
|
+
readonly superseded: boolean;
|
|
626
|
+
readonly modelTransport: string;
|
|
627
|
+
readonly acceptance: string;
|
|
628
|
+
readonly freshness: string;
|
|
629
|
+
} | {
|
|
630
|
+
readonly control: "unknown" | "failed";
|
|
631
|
+
readonly diagnostics: readonly string[];
|
|
632
|
+
readonly dispatchAuthorized: boolean;
|
|
633
|
+
readonly nodes: readonly ({
|
|
634
|
+
readonly action: "stakeholder";
|
|
635
|
+
readonly obligation: {
|
|
636
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
637
|
+
readonly id: string;
|
|
638
|
+
readonly revision: number;
|
|
639
|
+
readonly digest: string;
|
|
640
|
+
};
|
|
641
|
+
readonly nodeId: string;
|
|
642
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
643
|
+
readonly executionId: string | null;
|
|
644
|
+
readonly evidenceDigest: string | null;
|
|
645
|
+
} | {
|
|
646
|
+
readonly action: "stakeholder";
|
|
647
|
+
readonly obligation: {
|
|
648
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
649
|
+
readonly id: string;
|
|
650
|
+
readonly revision: number;
|
|
651
|
+
readonly digest: string;
|
|
652
|
+
};
|
|
653
|
+
readonly state: "superseded";
|
|
654
|
+
readonly nodeId: string;
|
|
655
|
+
readonly executionId: string | null;
|
|
656
|
+
readonly evidenceDigest: string | null;
|
|
657
|
+
} | {
|
|
658
|
+
readonly action: "stakeholder";
|
|
659
|
+
readonly nodeId: string;
|
|
660
|
+
readonly obligation: {
|
|
661
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
662
|
+
readonly id: string;
|
|
663
|
+
readonly revision: number;
|
|
664
|
+
readonly digest: string;
|
|
665
|
+
};
|
|
666
|
+
readonly state: string;
|
|
667
|
+
readonly executionId: null;
|
|
668
|
+
readonly evidenceDigest: null;
|
|
669
|
+
})[];
|
|
670
|
+
readonly version: string;
|
|
671
|
+
readonly orderId: string;
|
|
672
|
+
readonly scope: string;
|
|
673
|
+
readonly policyPin: {
|
|
674
|
+
readonly revision: number;
|
|
675
|
+
readonly candidateDigest: string;
|
|
676
|
+
readonly adoptionId: string | null;
|
|
677
|
+
};
|
|
678
|
+
readonly orderDigest: string;
|
|
679
|
+
readonly resources: null;
|
|
680
|
+
readonly superseded: null;
|
|
681
|
+
readonly modelTransport: string;
|
|
682
|
+
readonly acceptance: string;
|
|
683
|
+
readonly freshness: string;
|
|
684
|
+
}>;
|
|
685
|
+
started: readonly Promise<"spawned" | "settled-without-spawn">[];
|
|
686
|
+
}>>;
|
|
687
|
+
decide(request: FactoryDecision, host: FactoryAuthority | null): Promise<{
|
|
688
|
+
readonly version: string;
|
|
689
|
+
readonly orderId: string;
|
|
690
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
691
|
+
readonly policyPin: {
|
|
692
|
+
readonly revision: number;
|
|
693
|
+
readonly candidateDigest: string;
|
|
694
|
+
readonly adoptionId: string | null;
|
|
695
|
+
};
|
|
696
|
+
readonly orderDigest: string;
|
|
697
|
+
readonly nodes: readonly ({
|
|
698
|
+
readonly obligation: {
|
|
699
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
700
|
+
readonly id: string;
|
|
701
|
+
readonly revision: number;
|
|
702
|
+
readonly digest: string;
|
|
703
|
+
};
|
|
704
|
+
readonly nodeId: string;
|
|
705
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
706
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
707
|
+
readonly executionId: string | null;
|
|
708
|
+
readonly evidenceDigest: string | null;
|
|
709
|
+
} | {
|
|
710
|
+
readonly obligation: {
|
|
711
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
712
|
+
readonly id: string;
|
|
713
|
+
readonly revision: number;
|
|
714
|
+
readonly digest: string;
|
|
715
|
+
};
|
|
716
|
+
readonly state: "superseded";
|
|
717
|
+
readonly action: "none";
|
|
718
|
+
readonly nodeId: string;
|
|
719
|
+
readonly executionId: string | null;
|
|
720
|
+
readonly evidenceDigest: string | null;
|
|
721
|
+
})[];
|
|
722
|
+
readonly resources: {
|
|
723
|
+
readonly attempts: number;
|
|
724
|
+
readonly inputBytes: number;
|
|
725
|
+
readonly active: number;
|
|
726
|
+
readonly reservations: readonly {
|
|
727
|
+
readonly intent?: {
|
|
728
|
+
readonly selection: {
|
|
729
|
+
readonly snapshot: {
|
|
730
|
+
readonly id: string;
|
|
731
|
+
readonly digest: string;
|
|
732
|
+
};
|
|
733
|
+
readonly event: {
|
|
734
|
+
readonly eventId: string;
|
|
735
|
+
readonly digest: string;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
readonly revision: number;
|
|
739
|
+
readonly obligation: {
|
|
740
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
741
|
+
readonly id: string;
|
|
742
|
+
readonly revision: number;
|
|
743
|
+
readonly digest: string;
|
|
744
|
+
};
|
|
745
|
+
} | undefined;
|
|
746
|
+
readonly owner: string;
|
|
747
|
+
readonly state: "reserved" | "settled";
|
|
748
|
+
readonly outcome: string | null;
|
|
749
|
+
readonly attemptId: string;
|
|
750
|
+
readonly orderId: string;
|
|
751
|
+
readonly experimentId: string;
|
|
752
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
753
|
+
readonly parentAttemptId: string | null;
|
|
754
|
+
readonly inputBytes: number;
|
|
755
|
+
readonly inputDigest: string;
|
|
756
|
+
}[];
|
|
757
|
+
} | null;
|
|
758
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
759
|
+
readonly diagnostics: readonly string[];
|
|
760
|
+
readonly superseded: boolean;
|
|
761
|
+
readonly dispatchAuthorized: boolean;
|
|
762
|
+
readonly modelTransport: string;
|
|
763
|
+
readonly acceptance: string;
|
|
764
|
+
readonly freshness: string;
|
|
765
|
+
}>;
|
|
766
|
+
cancel(request: ExperimentCancellation, host: FactoryAuthority | null): Promise<{
|
|
767
|
+
readonly version: string;
|
|
768
|
+
readonly orderId: string;
|
|
769
|
+
readonly scope: "pinned" | "changed-or-unavailable";
|
|
770
|
+
readonly policyPin: {
|
|
771
|
+
readonly revision: number;
|
|
772
|
+
readonly candidateDigest: string;
|
|
773
|
+
readonly adoptionId: string | null;
|
|
774
|
+
};
|
|
775
|
+
readonly orderDigest: string;
|
|
776
|
+
readonly nodes: readonly ({
|
|
777
|
+
readonly obligation: {
|
|
778
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
779
|
+
readonly id: string;
|
|
780
|
+
readonly revision: number;
|
|
781
|
+
readonly digest: string;
|
|
782
|
+
};
|
|
783
|
+
readonly nodeId: string;
|
|
784
|
+
readonly state: "eligible" | "running" | "unknown" | "exhausted" | "decision-required" | "decision-rejected" | "dependency-blocked" | "satisfied";
|
|
785
|
+
readonly action: "dispatch" | "decide" | "wait" | "stakeholder" | "none";
|
|
786
|
+
readonly executionId: string | null;
|
|
787
|
+
readonly evidenceDigest: string | null;
|
|
788
|
+
} | {
|
|
789
|
+
readonly obligation: {
|
|
790
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
791
|
+
readonly id: string;
|
|
792
|
+
readonly revision: number;
|
|
793
|
+
readonly digest: string;
|
|
794
|
+
};
|
|
795
|
+
readonly state: "superseded";
|
|
796
|
+
readonly action: "none";
|
|
797
|
+
readonly nodeId: string;
|
|
798
|
+
readonly executionId: string | null;
|
|
799
|
+
readonly evidenceDigest: string | null;
|
|
800
|
+
})[];
|
|
801
|
+
readonly resources: {
|
|
802
|
+
readonly attempts: number;
|
|
803
|
+
readonly inputBytes: number;
|
|
804
|
+
readonly active: number;
|
|
805
|
+
readonly reservations: readonly {
|
|
806
|
+
readonly intent?: {
|
|
807
|
+
readonly selection: {
|
|
808
|
+
readonly snapshot: {
|
|
809
|
+
readonly id: string;
|
|
810
|
+
readonly digest: string;
|
|
811
|
+
};
|
|
812
|
+
readonly event: {
|
|
813
|
+
readonly eventId: string;
|
|
814
|
+
readonly digest: string;
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly revision: number;
|
|
818
|
+
readonly obligation: {
|
|
819
|
+
readonly kind: import("./work-ledger-types.ts").RevisionKind;
|
|
820
|
+
readonly id: string;
|
|
821
|
+
readonly revision: number;
|
|
822
|
+
readonly digest: string;
|
|
823
|
+
};
|
|
824
|
+
} | undefined;
|
|
825
|
+
readonly owner: string;
|
|
826
|
+
readonly state: "reserved" | "settled";
|
|
827
|
+
readonly outcome: string | null;
|
|
828
|
+
readonly attemptId: string;
|
|
829
|
+
readonly orderId: string;
|
|
830
|
+
readonly experimentId: string;
|
|
831
|
+
readonly kind: "primary" | "retry" | "shadow" | "descendant";
|
|
832
|
+
readonly parentAttemptId: string | null;
|
|
833
|
+
readonly inputBytes: number;
|
|
834
|
+
readonly inputDigest: string;
|
|
835
|
+
}[];
|
|
836
|
+
} | null;
|
|
837
|
+
readonly control: "unknown" | "failed" | "not-assessed";
|
|
838
|
+
readonly diagnostics: readonly string[];
|
|
839
|
+
readonly superseded: boolean;
|
|
840
|
+
readonly dispatchAuthorized: boolean;
|
|
841
|
+
readonly modelTransport: string;
|
|
842
|
+
readonly acceptance: string;
|
|
843
|
+
readonly freshness: string;
|
|
844
|
+
}>;
|
|
845
|
+
readArtifact: (executionId: string) => Promise<Uint8Array>;
|
|
846
|
+
}>>;
|
|
847
|
+
export type FactoryOrderView = Awaited<ReturnType<Awaited<ReturnType<typeof openFactoryOrder>>["inspect"]>>;
|
|
848
|
+
//# sourceMappingURL=factory-order.d.ts.map
|