@tiangong-lca/foundry 0.1.19 → 0.1.20
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/README.md +5 -3
- package/docs/architecture.md +5 -3
- package/docs/foundry-task-contracts.md +2 -0
- package/docs/package-distribution-contract.md +5 -3
- package/docs/public-runtime-contract.md +41 -3
- package/docs/runtime-context-contract.md +5 -3
- package/docs/task-authorization-contract.md +2 -0
- package/package-dist/assets/foundry-package-descriptor.json +142 -74
- package/package-dist/scripts/foundry-facade.d.ts +6 -0
- package/package-dist/scripts/foundry-facade.js +35 -0
- package/package-dist/scripts/foundry-runtime.d.ts +2 -1
- package/package-dist/scripts/lib/final-delivery-manifest.d.ts +40 -0
- package/package-dist/scripts/lib/final-delivery-manifest.js +145 -0
- package/package-dist/scripts/lib/final-delivery-review.d.ts +37 -0
- package/package-dist/scripts/lib/final-delivery-review.js +108 -0
- package/package-dist/scripts/lib/finalize-owners/native-draft-handoff.js +4 -3
- package/package-dist/scripts/lib/foundry-edge-repair-preparation.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-edge-repair-preparation.js +90 -1
- package/package-dist/scripts/lib/foundry-edge-session.d.ts +18 -1
- package/package-dist/scripts/lib/foundry-edge-session.js +137 -3
- package/package-dist/scripts/lib/foundry-edge-support.d.ts +1 -1
- package/package-dist/scripts/lib/foundry-interaction-input.js +2 -2
- package/package-dist/scripts/lib/foundry-operation-result.d.ts +1 -1
- package/package-dist/scripts/lib/foundry-operation-result.js +1 -0
- package/package-dist/scripts/lib/foundry-owner-readback.d.ts +3 -2
- package/package-dist/scripts/lib/foundry-owner-readback.js +21 -2
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +3 -3
- package/package-dist/scripts/lib/foundry-package-contract.js +7 -1
- package/package-dist/scripts/lib/foundry-repair-census.d.ts +82 -0
- package/package-dist/scripts/lib/foundry-repair-census.js +574 -0
- package/package-dist/scripts/lib/foundry-repair-scope.d.ts +15 -2
- package/package-dist/scripts/lib/foundry-repair-scope.js +62 -10
- package/package-dist/scripts/lib/foundry-scientific-repair.d.ts +38 -0
- package/package-dist/scripts/lib/foundry-scientific-repair.js +438 -0
- package/package-dist/scripts/lib/foundry-semantic-input.js +1 -1
- package/package-dist/scripts/lib/foundry-task-input-preparation.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-task-input-preparation.js +160 -0
- package/package-dist/scripts/lib/foundry-task-registration.js +19 -1
- package/package-dist/scripts/lib/foundry-task-types.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-workflow-execution.js +3 -0
- package/package-dist/scripts/lib/foundry-workflow-repair.d.ts +5 -0
- package/package-dist/scripts/lib/foundry-workflow-repair.js +151 -0
- package/package-dist/scripts/public-api.d.ts +6 -0
- package/package-dist/scripts/runtime-entry.js +15 -6
- package/package.json +4 -1
- package/specs/schemas/foundry-interaction-draft.schema.json +323 -0
- package/specs/schemas/foundry-operation-result.schema.json +1 -0
- package/specs/schemas/foundry-package-descriptor.schema.json +4 -1
- package/specs/schemas/foundry-scientific-repair.schema.json +66 -0
- package/specs/schemas/foundry-semantic-draft.schema.json +50 -0
- package/specs/schemas/foundry-task-start.schema.json +10 -2
|
@@ -193,7 +193,7 @@ export function parseFoundryInteractionInput(value) {
|
|
|
193
193
|
}
|
|
194
194
|
export function advanceFoundryInteractionState(previous, input, currentSha256, availableEvidence, allowedTypes, verifiedObjectScopes = new Set()) {
|
|
195
195
|
if (input.expected_state_sha256 !== currentSha256)
|
|
196
|
-
invalid("Interaction state
|
|
196
|
+
invalid("Interaction state raw file-byte SHA-256 changed. Reload current_interaction_state.sha256 and prepare the input against that exact state.");
|
|
197
197
|
if (previous && (previous.task_id !== input.task_id || previous.actor_id !== input.actor_id))
|
|
198
198
|
invalid("Interaction state belongs to another task or actor.");
|
|
199
199
|
const events = [...(previous?.events ?? [])];
|
|
@@ -304,7 +304,7 @@ export function readSelectedFoundryInteractionBytes(fact) {
|
|
|
304
304
|
const bytes = fs.readFileSync(fd);
|
|
305
305
|
if (bytes.length !== fact.bytes ||
|
|
306
306
|
createHash("sha256").update(bytes).digest("hex") !== fact.sha256)
|
|
307
|
-
invalid("Interaction input changed after selection.");
|
|
307
|
+
invalid("Interaction input raw file-byte SHA-256 changed after selection. Preserve the selected file bytes and prepare again.");
|
|
308
308
|
return bytes;
|
|
309
309
|
}
|
|
310
310
|
finally {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const FOUNDRY_OPERATION_RESULT_SCHEMA: "tiangong-foundry.operation-result.v1";
|
|
2
2
|
export declare const foundryOperationStatuses: readonly ["ready", "running", "needs_auth", "needs_input", "blocked", "completed", "failed"];
|
|
3
3
|
export declare const foundryOperationPermissionStates: readonly ["not_required", "required", "granted", "invalid"];
|
|
4
|
-
export declare const foundryPublicOperations: readonly ["workspace.init", "doctor", "task.start", "task.status", "task.resume", "task.adopt-runtime", "workspace.migrate"];
|
|
4
|
+
export declare const foundryPublicOperations: readonly ["workspace.init", "doctor", "task.start", "task.status", "task.prepare-input", "task.resume", "task.adopt-runtime", "workspace.migrate"];
|
|
5
5
|
export type FoundryOperationStatus = (typeof foundryOperationStatuses)[number];
|
|
6
6
|
export type FoundryOperationPermissionState = (typeof foundryOperationPermissionStates)[number];
|
|
7
7
|
export type FoundryPublicOperation = "unknown" | (typeof foundryPublicOperations)[number];
|
|
@@ -15,12 +15,13 @@ export declare function readbackFoundryOwner(context: FoundryRuntimeContext, qua
|
|
|
15
15
|
publication_ready?: boolean | undefined;
|
|
16
16
|
report: import("./foundry-runtime-context-types.ts").FoundryInputFact;
|
|
17
17
|
checks: import("./foundry-runtime-context-types.ts").FoundryInputFact;
|
|
18
|
-
blockers: {
|
|
18
|
+
blockers: (Record<string, unknown> | {
|
|
19
19
|
table: string;
|
|
20
20
|
id: string;
|
|
21
21
|
version: string;
|
|
22
22
|
role: string;
|
|
23
|
-
}[];
|
|
23
|
+
})[];
|
|
24
|
+
scientific_readback?: Record<string, unknown> | undefined;
|
|
24
25
|
};
|
|
25
26
|
} | {
|
|
26
27
|
output: string;
|
|
@@ -26,6 +26,7 @@ import { verifySelectedEdgeDraftPlan } from "./foundry-edge-draft-admission.js";
|
|
|
26
26
|
import { isEdgeSupportPlan } from "./foundry-edge-support-plan.js";
|
|
27
27
|
import { createFoundryEdgeActor } from "./foundry-edge-session.js";
|
|
28
28
|
import { verifyFoundryEdgeSupport } from "./foundry-edge-support.js";
|
|
29
|
+
import { verifyScientificRepairAfterReadback } from "./foundry-workflow-repair.js";
|
|
29
30
|
export async function readbackFoundryOwner(context, qualified, request, authentication = { mode: "oauth" }, commitReport) {
|
|
30
31
|
assertQualifiedFoundryRuntime(context, qualified);
|
|
31
32
|
const repair = await withFoundryTaskMetadata(context, (_, entries) => assertFoundryRepairExecution(context, entries, request));
|
|
@@ -40,6 +41,23 @@ export async function readbackFoundryOwner(context, qualified, request, authenti
|
|
|
40
41
|
const verification = await verifyFoundryEdgeSupport(actor, plan, "after");
|
|
41
42
|
const output = resolveFoundryOutput(context, `outputs/owner-readback/${randomUUID()}`);
|
|
42
43
|
fs.mkdirSync(output, { recursive: true, mode: 0o700 });
|
|
44
|
+
let scientificReadback = null;
|
|
45
|
+
const scientificBlockers = [];
|
|
46
|
+
if (repair && !verification.blockers.length) {
|
|
47
|
+
try {
|
|
48
|
+
scientificReadback = await verifyScientificRepairAfterReadback(context, qualified, authentication, path.join(output, "scientific-census"));
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
if (!(error instanceof FoundryContextError))
|
|
52
|
+
throw error;
|
|
53
|
+
scientificBlockers.push({
|
|
54
|
+
code: error.code,
|
|
55
|
+
message: error.message,
|
|
56
|
+
mutation_attempt_consumed: true,
|
|
57
|
+
recovery: "readback_only",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
43
61
|
const report = path.join(output, "edge-verification.json");
|
|
44
62
|
const checks = path.join(output, "edge-checks.json");
|
|
45
63
|
fs.writeFileSync(report, JSON.stringify(verification.responses, null, 2) + "\n", {
|
|
@@ -51,7 +69,7 @@ export async function readbackFoundryOwner(context, qualified, request, authenti
|
|
|
51
69
|
readFoundryInput(context, request.content.input.path);
|
|
52
70
|
const proof = {
|
|
53
71
|
schema: "tiangong-foundry.owner-readback.v1",
|
|
54
|
-
status: verification.blockers.length ? "unresolved" : "verified",
|
|
72
|
+
status: verification.blockers.length || scientificBlockers.length ? "unresolved" : "verified",
|
|
55
73
|
request_scope: request.scope_id,
|
|
56
74
|
input: request.content.input,
|
|
57
75
|
edge_plan_sha256: plan.sha256,
|
|
@@ -66,7 +84,8 @@ export async function readbackFoundryOwner(context, qualified, request, authenti
|
|
|
66
84
|
: {}),
|
|
67
85
|
report: captureFoundryInput(report),
|
|
68
86
|
checks: captureFoundryInput(checks),
|
|
69
|
-
blockers: verification.blockers,
|
|
87
|
+
blockers: [...verification.blockers, ...scientificBlockers],
|
|
88
|
+
...(scientificReadback ? { scientific_readback: scientificReadback } : {}),
|
|
70
89
|
};
|
|
71
90
|
fs.writeFileSync(path.join(output, "owner-readback.json"), JSON.stringify(proof, null, 2) + "\n", { mode: 0o600 });
|
|
72
91
|
return { output, proof };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const FOUNDRY_PACKAGE_DESCRIPTOR_SCHEMA: "tiangong-foundry.package-descriptor.v1";
|
|
2
2
|
export declare const foundryPackageDescriptorPath: "package-dist/assets/foundry-package-descriptor.json";
|
|
3
|
-
export declare const foundryPackageStaticFiles: readonly ["package-dist/", "specs/import-profiles.json", "specs/prewrite-content-policy.json", "specs/canonical-support/flow-properties-unit-groups.json", "specs/schemas/authorization-derivation.schema.json", "specs/schemas/execution-context.schema.json", "specs/schemas/foundry-facade-request-index.schema.json", "specs/schemas/foundry-operation-result.schema.json", "specs/schemas/foundry-package-descriptor.schema.json", "specs/schemas/foundry-task-start.schema.json", "specs/schemas/foundry-semantic-input.schema.json", "specs/schemas/foundry-interaction-input.schema.json", "specs/schemas/foundry-authorization-input.schema.json", "specs/schemas/foundry-reference-input.schema.json", "specs/schemas/foundry-identity-stage-input.schema.json", "specs/schemas/foundry-quality-review-input.schema.json", "specs/schemas/foundry-quality-review-draft.schema.json", "specs/schemas/foundry-workspace-migration-plan.schema.json", "specs/schemas/foundry-workspace-migration-transfer-plan.schema.json", "specs/schemas/foundry-migration-transfer-receipt.schema.json", "specs/schemas/foundry-workspace-migration-pending.schema.json", "specs/schemas/foundry-migration-adoption-plan.schema.json", "specs/schemas/foundry-migration-activation.schema.json", "specs/schemas/foundry-workspace-v2.schema.json", "specs/schemas/foundry-runtime-selection.schema.json", "specs/schemas/foundry-managed-runtime.schema.json", "specs/schemas/foundry-managed-adoption.schema.json", "specs/schemas/runtime-qualification.schema.json", "specs/schemas/task-authorization.schema.json", "specs/schemas/tidas-runtime-expectation.schema.json", "docs/architecture.md", "docs/package-distribution-contract.md", "docs/foundry-task-contracts.md", "docs/public-runtime-contract.md", "docs/runtime-context-contract.md", "docs/workspace-migration-contract.md", "docs/safety-policy.md", "docs/task-authorization-contract.md", "docs/import-profiles/bafu/constraints.md", "docs/import-profiles/bafu/leaf-process-classification-authoring.md", "docs/import-profiles/bafu/profile.md", "docs/import-profiles/uslci/constraints.md", "docs/import-profiles/uslci/profile.md", "docs/uslci-import-runbook.md", "docs/import-profiles/worldsteel/constraints.md", "docs/import-profiles/worldsteel/import-coverage.md", "docs/import-profiles/worldsteel/import-plan.md", "docs/import-profiles/worldsteel/profile.md", "README.md", "LICENSE"];
|
|
3
|
+
export declare const foundryPackageStaticFiles: readonly ["package-dist/", "specs/import-profiles.json", "specs/prewrite-content-policy.json", "specs/canonical-support/flow-properties-unit-groups.json", "specs/schemas/authorization-derivation.schema.json", "specs/schemas/execution-context.schema.json", "specs/schemas/foundry-facade-request-index.schema.json", "specs/schemas/foundry-operation-result.schema.json", "specs/schemas/foundry-package-descriptor.schema.json", "specs/schemas/foundry-task-start.schema.json", "specs/schemas/foundry-semantic-input.schema.json", "specs/schemas/foundry-semantic-draft.schema.json", "specs/schemas/foundry-interaction-draft.schema.json", "specs/schemas/foundry-scientific-repair.schema.json", "specs/schemas/foundry-interaction-input.schema.json", "specs/schemas/foundry-authorization-input.schema.json", "specs/schemas/foundry-reference-input.schema.json", "specs/schemas/foundry-identity-stage-input.schema.json", "specs/schemas/foundry-quality-review-input.schema.json", "specs/schemas/foundry-quality-review-draft.schema.json", "specs/schemas/foundry-workspace-migration-plan.schema.json", "specs/schemas/foundry-workspace-migration-transfer-plan.schema.json", "specs/schemas/foundry-migration-transfer-receipt.schema.json", "specs/schemas/foundry-workspace-migration-pending.schema.json", "specs/schemas/foundry-migration-adoption-plan.schema.json", "specs/schemas/foundry-migration-activation.schema.json", "specs/schemas/foundry-workspace-v2.schema.json", "specs/schemas/foundry-runtime-selection.schema.json", "specs/schemas/foundry-managed-runtime.schema.json", "specs/schemas/foundry-managed-adoption.schema.json", "specs/schemas/runtime-qualification.schema.json", "specs/schemas/task-authorization.schema.json", "specs/schemas/tidas-runtime-expectation.schema.json", "docs/architecture.md", "docs/package-distribution-contract.md", "docs/foundry-task-contracts.md", "docs/public-runtime-contract.md", "docs/runtime-context-contract.md", "docs/workspace-migration-contract.md", "docs/safety-policy.md", "docs/task-authorization-contract.md", "docs/import-profiles/bafu/constraints.md", "docs/import-profiles/bafu/leaf-process-classification-authoring.md", "docs/import-profiles/bafu/profile.md", "docs/import-profiles/uslci/constraints.md", "docs/import-profiles/uslci/profile.md", "docs/uslci-import-runbook.md", "docs/import-profiles/worldsteel/constraints.md", "docs/import-profiles/worldsteel/import-coverage.md", "docs/import-profiles/worldsteel/import-plan.md", "docs/import-profiles/worldsteel/profile.md", "README.md", "LICENSE"];
|
|
4
4
|
declare const packageName = "@tiangong-lca/foundry";
|
|
5
|
-
declare const packageVersion = "0.1.
|
|
5
|
+
declare const packageVersion = "0.1.20";
|
|
6
6
|
declare const cliPackageName = "@tiangong-lca/cli";
|
|
7
7
|
declare const cliPackageVersion = "0.4.0";
|
|
8
8
|
declare const packageBin = "package-dist/scripts/package-entry.js";
|
|
9
9
|
declare const packageApi = "package-dist/scripts/public-api.js";
|
|
10
10
|
declare const packageTypes = "package-dist/scripts/public-api.d.ts";
|
|
11
11
|
declare const supportedPlatforms: readonly ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"];
|
|
12
|
-
declare const protocolSchemas: readonly ["tiangong-foundry.operation-result.v1", "tiangong-foundry.task-start.v1", "tiangong-foundry.semantic-input.v1", "tiangong-foundry.interaction-input.v1", "tiangong-foundry.authorization-input.v1", "tiangong-foundry.reference-input.v1", "tiangong-foundry.identity-stage-input.v1", "tiangong-foundry.quality-review-input.v1", "tiangong-foundry.quality-review-draft.v1", "tiangong-foundry.facade-request-index.v1", "tiangong-foundry.workspace-migration-plan.v1", "tiangong-foundry.workspace-migration-transfer-plan.v2", "tiangong-foundry.migration-transfer-receipt.v1", "tiangong-foundry.workspace-migration-pending.v1", "tiangong-foundry.migration-adoption-plan.v1", "tiangong-foundry.migration-activation.v1", "tiangong-foundry.workspace.v2", "tiangong-foundry.workspace-runtime-selection.v1", "tiangong-foundry.managed-runtime.v1", "tiangong-foundry.managed-adoption.v1", "tiangong-foundry.runtime-qualification.v1", "tiangong-foundry.tidas-runtime-expectation.v1", "tiangong-foundry.execution-context.v1", "tiangong-foundry.authorization-derivation.v1", "tiangong-foundry.task-authorization.v1"];
|
|
12
|
+
declare const protocolSchemas: readonly ["tiangong-foundry.operation-result.v1", "tiangong-foundry.task-start.v1", "tiangong-foundry.semantic-input.v1", "tiangong-foundry.semantic-draft.v1", "tiangong-foundry.interaction-draft.v1", "tiangong-foundry.scientific-repair.v1", "tiangong-foundry.interaction-input.v1", "tiangong-foundry.authorization-input.v1", "tiangong-foundry.reference-input.v1", "tiangong-foundry.identity-stage-input.v1", "tiangong-foundry.quality-review-input.v1", "tiangong-foundry.quality-review-draft.v1", "tiangong-foundry.facade-request-index.v1", "tiangong-foundry.workspace-migration-plan.v1", "tiangong-foundry.workspace-migration-transfer-plan.v2", "tiangong-foundry.migration-transfer-receipt.v1", "tiangong-foundry.workspace-migration-pending.v1", "tiangong-foundry.migration-adoption-plan.v1", "tiangong-foundry.migration-activation.v1", "tiangong-foundry.workspace.v2", "tiangong-foundry.workspace-runtime-selection.v1", "tiangong-foundry.managed-runtime.v1", "tiangong-foundry.managed-adoption.v1", "tiangong-foundry.runtime-qualification.v1", "tiangong-foundry.tidas-runtime-expectation.v1", "tiangong-foundry.execution-context.v1", "tiangong-foundry.authorization-derivation.v1", "tiangong-foundry.task-authorization.v1"];
|
|
13
13
|
export interface FoundryPackageFileFact {
|
|
14
14
|
readonly path: string;
|
|
15
15
|
readonly bytes: number;
|
|
@@ -16,6 +16,9 @@ export const foundryPackageStaticFiles = Object.freeze([
|
|
|
16
16
|
"specs/schemas/foundry-package-descriptor.schema.json",
|
|
17
17
|
"specs/schemas/foundry-task-start.schema.json",
|
|
18
18
|
"specs/schemas/foundry-semantic-input.schema.json",
|
|
19
|
+
"specs/schemas/foundry-semantic-draft.schema.json",
|
|
20
|
+
"specs/schemas/foundry-interaction-draft.schema.json",
|
|
21
|
+
"specs/schemas/foundry-scientific-repair.schema.json",
|
|
19
22
|
"specs/schemas/foundry-interaction-input.schema.json",
|
|
20
23
|
"specs/schemas/foundry-authorization-input.schema.json",
|
|
21
24
|
"specs/schemas/foundry-reference-input.schema.json",
|
|
@@ -57,7 +60,7 @@ export const foundryPackageStaticFiles = Object.freeze([
|
|
|
57
60
|
"LICENSE",
|
|
58
61
|
]);
|
|
59
62
|
const packageName = "@tiangong-lca/foundry";
|
|
60
|
-
const packageVersion = "0.1.
|
|
63
|
+
const packageVersion = "0.1.20";
|
|
61
64
|
const packageDescription = "Control plane for TianGong LCA external dataset import and TIDAS authoring work.";
|
|
62
65
|
const cliPackageName = "@tiangong-lca/cli";
|
|
63
66
|
const cliPackageVersion = "0.4.0";
|
|
@@ -74,6 +77,9 @@ const protocolSchemas = Object.freeze([
|
|
|
74
77
|
"tiangong-foundry.operation-result.v1",
|
|
75
78
|
"tiangong-foundry.task-start.v1",
|
|
76
79
|
"tiangong-foundry.semantic-input.v1",
|
|
80
|
+
"tiangong-foundry.semantic-draft.v1",
|
|
81
|
+
"tiangong-foundry.interaction-draft.v1",
|
|
82
|
+
"tiangong-foundry.scientific-repair.v1",
|
|
77
83
|
"tiangong-foundry.interaction-input.v1",
|
|
78
84
|
"tiangong-foundry.authorization-input.v1",
|
|
79
85
|
"tiangong-foundry.reference-input.v1",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { FoundryAuthentication } from "./foundry-runtime-identity.ts";
|
|
2
|
+
import type { QualifiedFoundryRuntime } from "./foundry-runtime-qualification.ts";
|
|
3
|
+
import { type FoundryRuntimeContext } from "./foundry-runtime-context.ts";
|
|
4
|
+
declare const tables: {
|
|
5
|
+
readonly process: "processes";
|
|
6
|
+
readonly flow: "flows";
|
|
7
|
+
readonly flowproperty: "flowproperties";
|
|
8
|
+
readonly unitgroup: "unitgroups";
|
|
9
|
+
readonly source: "sources";
|
|
10
|
+
readonly contact: "contacts";
|
|
11
|
+
readonly lciamethod: "lciamethods";
|
|
12
|
+
readonly model: "lifecyclemodels";
|
|
13
|
+
};
|
|
14
|
+
type DatasetType = keyof typeof tables;
|
|
15
|
+
export interface FoundryRepairCensusQuery {
|
|
16
|
+
table: (typeof tables)[DatasetType];
|
|
17
|
+
state?: 0 | 100;
|
|
18
|
+
owner?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
version?: string;
|
|
21
|
+
ids?: readonly string[];
|
|
22
|
+
projection?: "dependencies";
|
|
23
|
+
offset: number;
|
|
24
|
+
limit: number;
|
|
25
|
+
}
|
|
26
|
+
export interface FoundryRepairCensusPage {
|
|
27
|
+
raw: string;
|
|
28
|
+
contentRange: string | null;
|
|
29
|
+
status: number;
|
|
30
|
+
identityReceipt?: unknown;
|
|
31
|
+
requestedAtUtc?: string;
|
|
32
|
+
}
|
|
33
|
+
type Reader = (query: FoundryRepairCensusQuery) => Promise<FoundryRepairCensusPage>;
|
|
34
|
+
type Row = Record<string, unknown>;
|
|
35
|
+
interface CensusObservation {
|
|
36
|
+
query: FoundryRepairCensusQuery;
|
|
37
|
+
page: FoundryRepairCensusPage;
|
|
38
|
+
response_sha256: string;
|
|
39
|
+
}
|
|
40
|
+
/** Two complete compact directory scans prove a bounded family's separation from all visible peers. */
|
|
41
|
+
export declare function readFoundryRepairCensus(workerInput: Row, actor: string, read: Reader, phase?: "before" | "after", observe?: (observation: CensusObservation) => void): Promise<{
|
|
42
|
+
proof: {
|
|
43
|
+
schema: string;
|
|
44
|
+
status: string;
|
|
45
|
+
observation_phase: "after" | "before";
|
|
46
|
+
input_object_sha256: string;
|
|
47
|
+
scope: string;
|
|
48
|
+
actor_user_id: string;
|
|
49
|
+
transaction_snapshot: boolean;
|
|
50
|
+
double_scan: boolean;
|
|
51
|
+
body_scope: string;
|
|
52
|
+
directory_complete: boolean;
|
|
53
|
+
directory_body_content_observed: boolean;
|
|
54
|
+
directory_projection_version: string;
|
|
55
|
+
excluded_process_rows: number;
|
|
56
|
+
excluded_model_rows: number;
|
|
57
|
+
family_separation: string;
|
|
58
|
+
directory_process_rows: number;
|
|
59
|
+
directory_model_rows: number;
|
|
60
|
+
directory_flow_rows: number;
|
|
61
|
+
directory_sha256: string;
|
|
62
|
+
family_nodes: number;
|
|
63
|
+
process_rows: number;
|
|
64
|
+
model_rows: number;
|
|
65
|
+
exact_support_rows: number;
|
|
66
|
+
process_census_sha256: string;
|
|
67
|
+
model_census_sha256: string;
|
|
68
|
+
support_census_sha256: string;
|
|
69
|
+
baseline_sha256: string;
|
|
70
|
+
read_pages: number;
|
|
71
|
+
transferred_bytes: number;
|
|
72
|
+
retained_projection_bytes: number;
|
|
73
|
+
exact_family_bytes: number;
|
|
74
|
+
completed_at_utc: string;
|
|
75
|
+
};
|
|
76
|
+
observations: CensusObservation[];
|
|
77
|
+
}>;
|
|
78
|
+
export declare function verifyFoundryRepairCensus(context: FoundryRuntimeContext, qualified: QualifiedFoundryRuntime, authentication: FoundryAuthentication, workerInput: Record<string, unknown>, directory: string, phase?: "before" | "after"): Promise<{
|
|
79
|
+
proof: Record<string, unknown>;
|
|
80
|
+
files: string[];
|
|
81
|
+
}>;
|
|
82
|
+
export {};
|