@tiangong-lca/foundry 0.1.2
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/LICENSE +21 -0
- package/README.md +532 -0
- package/docs/architecture.md +450 -0
- package/docs/foundry-task-contracts.md +147 -0
- package/docs/import-profiles/bafu/constraints.md +343 -0
- package/docs/import-profiles/bafu/leaf-process-classification-authoring.md +153 -0
- package/docs/import-profiles/bafu/profile.md +183 -0
- package/docs/import-profiles/uslci/constraints.md +29 -0
- package/docs/import-profiles/uslci/profile.md +43 -0
- package/docs/import-profiles/worldsteel/constraints.md +77 -0
- package/docs/import-profiles/worldsteel/import-coverage.md +93 -0
- package/docs/import-profiles/worldsteel/import-plan.md +375 -0
- package/docs/import-profiles/worldsteel/profile.md +78 -0
- package/docs/package-distribution-contract.md +287 -0
- package/docs/public-runtime-contract.md +218 -0
- package/docs/runtime-context-contract.md +138 -0
- package/docs/safety-policy.md +164 -0
- package/docs/task-authorization-contract.md +131 -0
- package/docs/uslci-import-runbook.md +336 -0
- package/docs/workspace-migration-contract.md +127 -0
- package/package-dist/assets/foundry-package-descriptor.json +1661 -0
- package/package-dist/scripts/foundry-facade.d.ts +78 -0
- package/package-dist/scripts/foundry-facade.js +1317 -0
- package/package-dist/scripts/foundry-runtime.d.ts +180 -0
- package/package-dist/scripts/foundry-runtime.js +190 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-attempt-ledger.d.ts +27 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-attempt-ledger.js +85 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-resume-contract.d.ts +38 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-resume-contract.js +90 -0
- package/package-dist/scripts/lib/bundle-row-types.d.ts +44 -0
- package/package-dist/scripts/lib/bundle-row-types.js +46 -0
- package/package-dist/scripts/lib/bundle-sample-utils.d.ts +183 -0
- package/package-dist/scripts/lib/bundle-sample-utils.js +526 -0
- package/package-dist/scripts/lib/bundle-source-context.d.ts +31 -0
- package/package-dist/scripts/lib/bundle-source-context.js +142 -0
- package/package-dist/scripts/lib/canonical-description.d.ts +12 -0
- package/package-dist/scripts/lib/canonical-description.js +72 -0
- package/package-dist/scripts/lib/canonical-support-rewrites.d.ts +127 -0
- package/package-dist/scripts/lib/canonical-support-rewrites.js +527 -0
- package/package-dist/scripts/lib/decision-owners/classification.d.ts +245 -0
- package/package-dist/scripts/lib/decision-owners/classification.js +754 -0
- package/package-dist/scripts/lib/decision-owners/identity-preflight.d.ts +333 -0
- package/package-dist/scripts/lib/decision-owners/identity-preflight.js +1353 -0
- package/package-dist/scripts/lib/decision-owners/identity-task.d.ts +130 -0
- package/package-dist/scripts/lib/decision-owners/identity-task.js +494 -0
- package/package-dist/scripts/lib/decision-owners/identity.d.ts +74 -0
- package/package-dist/scripts/lib/decision-owners/identity.js +443 -0
- package/package-dist/scripts/lib/decision-owners/location.d.ts +239 -0
- package/package-dist/scripts/lib/decision-owners/location.js +704 -0
- package/package-dist/scripts/lib/decision-task-utils.d.ts +484 -0
- package/package-dist/scripts/lib/decision-task-utils.js +735 -0
- package/package-dist/scripts/lib/finalize-owners/cli-wrappers.d.ts +52 -0
- package/package-dist/scripts/lib/finalize-owners/cli-wrappers.js +146 -0
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.d.ts +79 -0
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.js +515 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.d.ts +234 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.js +1720 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts +140 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.js +656 -0
- package/package-dist/scripts/lib/foundry-args.d.ts +7 -0
- package/package-dist/scripts/lib/foundry-args.js +38 -0
- package/package-dist/scripts/lib/foundry-authentication-environment.d.ts +17 -0
- package/package-dist/scripts/lib/foundry-authentication-environment.js +55 -0
- package/package-dist/scripts/lib/foundry-authorization-input.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-authorization-input.js +151 -0
- package/package-dist/scripts/lib/foundry-command-metadata.d.ts +32 -0
- package/package-dist/scripts/lib/foundry-command-metadata.js +1012 -0
- package/package-dist/scripts/lib/foundry-command-registry.d.ts +34 -0
- package/package-dist/scripts/lib/foundry-command-registry.js +241 -0
- package/package-dist/scripts/lib/foundry-command-spec.d.ts +1 -0
- package/package-dist/scripts/lib/foundry-command-spec.js +1 -0
- package/package-dist/scripts/lib/foundry-decision-owners.d.ts +17 -0
- package/package-dist/scripts/lib/foundry-decision-owners.js +68 -0
- package/package-dist/scripts/lib/foundry-decision-routing.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-decision-routing.js +38 -0
- package/package-dist/scripts/lib/foundry-execution-admission.d.ts +33 -0
- package/package-dist/scripts/lib/foundry-execution-admission.js +225 -0
- package/package-dist/scripts/lib/foundry-execution-attempt.d.ts +11 -0
- package/package-dist/scripts/lib/foundry-execution-attempt.js +33 -0
- package/package-dist/scripts/lib/foundry-execution-context-format.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-execution-context-format.js +83 -0
- package/package-dist/scripts/lib/foundry-facade-store.d.ts +25 -0
- package/package-dist/scripts/lib/foundry-facade-store.js +449 -0
- package/package-dist/scripts/lib/foundry-finalize-owners.d.ts +21 -0
- package/package-dist/scripts/lib/foundry-finalize-owners.js +203 -0
- package/package-dist/scripts/lib/foundry-identity-owners.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-identity-owners.js +58 -0
- package/package-dist/scripts/lib/foundry-managed-host.d.ts +7 -0
- package/package-dist/scripts/lib/foundry-managed-host.js +173 -0
- package/package-dist/scripts/lib/foundry-migration-adoption-plan.d.ts +39 -0
- package/package-dist/scripts/lib/foundry-migration-adoption-plan.js +467 -0
- package/package-dist/scripts/lib/foundry-migration-adoption.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-migration-adoption.js +187 -0
- package/package-dist/scripts/lib/foundry-migration-authority.d.ts +42 -0
- package/package-dist/scripts/lib/foundry-migration-authority.js +280 -0
- package/package-dist/scripts/lib/foundry-migration-inventory.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-migration-inventory.js +148 -0
- package/package-dist/scripts/lib/foundry-migration-plan.d.ts +48 -0
- package/package-dist/scripts/lib/foundry-migration-plan.js +234 -0
- package/package-dist/scripts/lib/foundry-migration-replay.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-migration-replay.js +134 -0
- package/package-dist/scripts/lib/foundry-migration-stage.d.ts +15 -0
- package/package-dist/scripts/lib/foundry-migration-stage.js +152 -0
- package/package-dist/scripts/lib/foundry-migration-transfer-io.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-migration-transfer-io.js +226 -0
- package/package-dist/scripts/lib/foundry-migration-transfer.d.ts +36 -0
- package/package-dist/scripts/lib/foundry-migration-transfer.js +350 -0
- package/package-dist/scripts/lib/foundry-operation-result.d.ts +71 -0
- package/package-dist/scripts/lib/foundry-operation-result.js +264 -0
- package/package-dist/scripts/lib/foundry-owner-execution-store.d.ts +319 -0
- package/package-dist/scripts/lib/foundry-owner-execution-store.js +293 -0
- package/package-dist/scripts/lib/foundry-owner-readback.d.ts +22 -0
- package/package-dist/scripts/lib/foundry-owner-readback.js +189 -0
- package/package-dist/scripts/lib/foundry-owner-trace-acceptance.d.ts +15 -0
- package/package-dist/scripts/lib/foundry-owner-trace-acceptance.js +68 -0
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +56 -0
- package/package-dist/scripts/lib/foundry-package-contract.js +392 -0
- package/package-dist/scripts/lib/foundry-private-path.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-private-path.js +20 -0
- package/package-dist/scripts/lib/foundry-runtime-cache.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-runtime-cache.js +25 -0
- package/package-dist/scripts/lib/foundry-runtime-command-policy.d.ts +20 -0
- package/package-dist/scripts/lib/foundry-runtime-command-policy.js +173 -0
- package/package-dist/scripts/lib/foundry-runtime-context-types.d.ts +59 -0
- package/package-dist/scripts/lib/foundry-runtime-context-types.js +1 -0
- package/package-dist/scripts/lib/foundry-runtime-context.d.ts +27 -0
- package/package-dist/scripts/lib/foundry-runtime-context.js +668 -0
- package/package-dist/scripts/lib/foundry-runtime-environment.d.ts +9 -0
- package/package-dist/scripts/lib/foundry-runtime-environment.js +90 -0
- package/package-dist/scripts/lib/foundry-runtime-error.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-runtime-error.js +8 -0
- package/package-dist/scripts/lib/foundry-runtime-identity.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-runtime-identity.js +127 -0
- package/package-dist/scripts/lib/foundry-runtime-paths.d.ts +16 -0
- package/package-dist/scripts/lib/foundry-runtime-paths.js +159 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.d.ts +66 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.js +223 -0
- package/package-dist/scripts/lib/foundry-runtime-selection-record.d.ts +16 -0
- package/package-dist/scripts/lib/foundry-runtime-selection-record.js +32 -0
- package/package-dist/scripts/lib/foundry-runtime-selection.d.ts +14 -0
- package/package-dist/scripts/lib/foundry-runtime-selection.js +123 -0
- package/package-dist/scripts/lib/foundry-runtime-utils.d.ts +178 -0
- package/package-dist/scripts/lib/foundry-runtime-utils.js +603 -0
- package/package-dist/scripts/lib/foundry-semantic-input.d.ts +30 -0
- package/package-dist/scripts/lib/foundry-semantic-input.js +132 -0
- package/package-dist/scripts/lib/foundry-task-authorization.d.ts +68 -0
- package/package-dist/scripts/lib/foundry-task-authorization.js +350 -0
- package/package-dist/scripts/lib/foundry-task-io.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-task-io.js +92 -0
- package/package-dist/scripts/lib/foundry-task-registration.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-task-registration.js +384 -0
- package/package-dist/scripts/lib/foundry-task-start-spec.d.ts +34 -0
- package/package-dist/scripts/lib/foundry-task-start-spec.js +161 -0
- package/package-dist/scripts/lib/foundry-task-store.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-task-store.js +466 -0
- package/package-dist/scripts/lib/foundry-task-types.d.ts +99 -0
- package/package-dist/scripts/lib/foundry-task-types.js +1 -0
- package/package-dist/scripts/lib/foundry-workflow-approval-continuation.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-workflow-approval-continuation.js +136 -0
- package/package-dist/scripts/lib/foundry-workflow-assessment.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-workflow-assessment.js +231 -0
- package/package-dist/scripts/lib/foundry-workflow-authorization.d.ts +22 -0
- package/package-dist/scripts/lib/foundry-workflow-authorization.js +174 -0
- package/package-dist/scripts/lib/foundry-workflow-context.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-workflow-context.js +99 -0
- package/package-dist/scripts/lib/foundry-workflow-decisions.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-workflow-decisions.js +123 -0
- package/package-dist/scripts/lib/foundry-workflow-execution.d.ts +8 -0
- package/package-dist/scripts/lib/foundry-workflow-execution.js +248 -0
- package/package-dist/scripts/lib/foundry-workflow-finalize.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-workflow-finalize.js +264 -0
- package/package-dist/scripts/lib/foundry-workflow-identity-apply.d.ts +14 -0
- package/package-dist/scripts/lib/foundry-workflow-identity-apply.js +159 -0
- package/package-dist/scripts/lib/foundry-workflow-identity.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-workflow-identity.js +153 -0
- package/package-dist/scripts/lib/foundry-workflow-import.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-workflow-import.js +70 -0
- package/package-dist/scripts/lib/foundry-workflow-io.d.ts +11 -0
- package/package-dist/scripts/lib/foundry-workflow-io.js +77 -0
- package/package-dist/scripts/lib/foundry-workflow-reference-verify.d.ts +41 -0
- package/package-dist/scripts/lib/foundry-workflow-reference-verify.js +266 -0
- package/package-dist/scripts/lib/foundry-workflow-rows.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-workflow-rows.js +47 -0
- package/package-dist/scripts/lib/foundry-workflow-semantic.d.ts +5 -0
- package/package-dist/scripts/lib/foundry-workflow-semantic.js +367 -0
- package/package-dist/scripts/lib/foundry-workflow-state.d.ts +37 -0
- package/package-dist/scripts/lib/foundry-workflow-state.js +158 -0
- package/package-dist/scripts/lib/full-context-proof.d.ts +51 -0
- package/package-dist/scripts/lib/full-context-proof.js +932 -0
- package/package-dist/scripts/lib/identity-preflight-artifacts.d.ts +184 -0
- package/package-dist/scripts/lib/identity-preflight-artifacts.js +573 -0
- package/package-dist/scripts/lib/identity-preflight-proof.d.ts +117 -0
- package/package-dist/scripts/lib/identity-preflight-proof.js +341 -0
- package/package-dist/scripts/lib/identity-reference-rewrite-utils.d.ts +147 -0
- package/package-dist/scripts/lib/identity-reference-rewrite-utils.js +817 -0
- package/package-dist/scripts/lib/import-curation/authoring-packages.d.ts +28 -0
- package/package-dist/scripts/lib/import-curation/authoring-packages.js +92 -0
- package/package-dist/scripts/lib/import-curation/curation-cleanup.d.ts +32 -0
- package/package-dist/scripts/lib/import-curation/curation-cleanup.js +203 -0
- package/package-dist/scripts/lib/import-curation/curation-gate.d.ts +47 -0
- package/package-dist/scripts/lib/import-curation/curation-gate.js +528 -0
- package/package-dist/scripts/lib/import-curation/internal/artifact-inputs.d.ts +24 -0
- package/package-dist/scripts/lib/import-curation/internal/artifact-inputs.js +152 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-patch-workflow.d.ts +3 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-patch-workflow.js +3 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-task-workflow.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-task-workflow.js +1 -0
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.d.ts +56 -0
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +206 -0
- package/package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.d.ts +14 -0
- package/package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.js +14 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-payload.d.ts +70 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-payload.js +141 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-types.d.ts +25 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-types.js +45 -0
- package/package-dist/scripts/lib/import-curation/internal/full-context-proof.d.ts +129 -0
- package/package-dist/scripts/lib/import-curation/internal/full-context-proof.js +552 -0
- package/package-dist/scripts/lib/import-curation/internal/hash-utils.d.ts +2 -0
- package/package-dist/scripts/lib/import-curation/internal/hash-utils.js +10 -0
- package/package-dist/scripts/lib/import-curation/internal/mutation-manifest-workflow.d.ts +15 -0
- package/package-dist/scripts/lib/import-curation/internal/mutation-manifest-workflow.js +15 -0
- package/package-dist/scripts/lib/import-curation/internal/prewrite-cleanup.d.ts +31 -0
- package/package-dist/scripts/lib/import-curation/internal/prewrite-cleanup.js +467 -0
- package/package-dist/scripts/lib/import-curation/internal/profiles-config.d.ts +47 -0
- package/package-dist/scripts/lib/import-curation/internal/profiles-config.js +88 -0
- package/package-dist/scripts/lib/import-curation/internal/runtime-io.d.ts +23 -0
- package/package-dist/scripts/lib/import-curation/internal/runtime-io.js +132 -0
- package/package-dist/scripts/lib/import-curation/internal/trace-summary.d.ts +53 -0
- package/package-dist/scripts/lib/import-curation/internal/trace-summary.js +114 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-authoring-tasks.d.ts +141 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-authoring-tasks.js +854 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-apply-context.d.ts +20 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-apply-context.js +46 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-full-context.d.ts +110 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-full-context.js +782 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-dry-run-context.d.ts +24 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-dry-run-context.js +191 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-evidence-scope.d.ts +80 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-evidence-scope.js +359 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-decision-context.d.ts +146 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-decision-context.js +381 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-preflight.d.ts +223 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-preflight.js +1079 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-collect.d.ts +41 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-collect.js +412 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence-context.d.ts +117 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence-context.js +278 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence.d.ts +59 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence.js +593 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-queue-context.d.ts +58 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-queue-context.js +263 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-reference-closure.d.ts +177 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-reference-closure.js +812 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-row-transform-context.d.ts +159 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-row-transform-context.js +466 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-semantic-actions.d.ts +152 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-semantic-actions.js +1377 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-source-reference-context.d.ts +38 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-source-reference-context.js +116 -0
- package/package-dist/scripts/lib/import-curation/mutation-manifest.d.ts +51 -0
- package/package-dist/scripts/lib/import-curation/mutation-manifest.js +542 -0
- package/package-dist/scripts/lib/import-curation/patch-collect.d.ts +18 -0
- package/package-dist/scripts/lib/import-curation/patch-collect.js +172 -0
- package/package-dist/scripts/lib/import-curation/profiles.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/profiles.js +1 -0
- package/package-dist/scripts/lib/import-curation/trace-summary.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/trace-summary.js +1 -0
- package/package-dist/scripts/lib/oauth-session-reference.d.ts +1 -0
- package/package-dist/scripts/lib/oauth-session-reference.js +20 -0
- package/package-dist/scripts/lib/post-authoring-finalize-utils.d.ts +95 -0
- package/package-dist/scripts/lib/post-authoring-finalize-utils.js +548 -0
- package/package-dist/scripts/lib/post-write-root-proof.d.ts +44 -0
- package/package-dist/scripts/lib/post-write-root-proof.js +169 -0
- package/package-dist/scripts/lib/reference-description-text.d.ts +2 -0
- package/package-dist/scripts/lib/reference-description-text.js +12 -0
- package/package-dist/scripts/lib/remote-verification-accepted-diff.d.ts +42 -0
- package/package-dist/scripts/lib/remote-verification-accepted-diff.js +424 -0
- package/package-dist/scripts/lib/same-identity-commit-recovery.d.ts +8 -0
- package/package-dist/scripts/lib/same-identity-commit-recovery.js +52 -0
- package/package-dist/scripts/lib/source-semantics.d.ts +255 -0
- package/package-dist/scripts/lib/source-semantics.js +888 -0
- package/package-dist/scripts/lib/stage-contract.d.ts +36 -0
- package/package-dist/scripts/lib/stage-contract.js +25 -0
- package/package-dist/scripts/lib/task-authorization.d.ts +84 -0
- package/package-dist/scripts/lib/task-authorization.js +210 -0
- package/package-dist/scripts/lib/tidas-adapter.d.ts +113 -0
- package/package-dist/scripts/lib/tidas-adapter.js +525 -0
- package/package-dist/scripts/lib/tidas-language-utils.d.ts +8 -0
- package/package-dist/scripts/lib/tidas-language-utils.js +206 -0
- package/package-dist/scripts/lib/tidas-row-utils.d.ts +70 -0
- package/package-dist/scripts/lib/tidas-row-utils.js +225 -0
- package/package-dist/scripts/lib/trace-coverage.d.ts +53 -0
- package/package-dist/scripts/lib/trace-coverage.js +178 -0
- package/package-dist/scripts/package-entry.d.ts +2 -0
- package/package-dist/scripts/package-entry.js +4 -0
- package/package-dist/scripts/public-api.d.ts +80 -0
- package/package-dist/scripts/public-api.js +28 -0
- package/package-dist/scripts/runtime-entry.d.ts +23 -0
- package/package-dist/scripts/runtime-entry.js +424 -0
- package/package.json +93 -0
- package/specs/canonical-support/flow-properties-unit-groups.json +2692 -0
- package/specs/import-profiles.json +118 -0
- package/specs/prewrite-content-policy.json +105 -0
- package/specs/schemas/authorization-derivation.schema.json +34 -0
- package/specs/schemas/execution-context.schema.json +68 -0
- package/specs/schemas/foundry-authorization-input.schema.json +120 -0
- package/specs/schemas/foundry-facade-request-index.schema.json +78 -0
- package/specs/schemas/foundry-managed-runtime.schema.json +122 -0
- package/specs/schemas/foundry-migration-activation.schema.json +213 -0
- package/specs/schemas/foundry-migration-adoption-plan.schema.json +548 -0
- package/specs/schemas/foundry-migration-transfer-receipt.schema.json +93 -0
- package/specs/schemas/foundry-operation-result.schema.json +147 -0
- package/specs/schemas/foundry-package-descriptor.schema.json +134 -0
- package/specs/schemas/foundry-runtime-selection.schema.json +59 -0
- package/specs/schemas/foundry-semantic-input.schema.json +36 -0
- package/specs/schemas/foundry-task-start.schema.json +123 -0
- package/specs/schemas/foundry-workspace-migration-pending.schema.json +17 -0
- package/specs/schemas/foundry-workspace-migration-plan.schema.json +59 -0
- package/specs/schemas/foundry-workspace-migration-transfer-plan.schema.json +357 -0
- package/specs/schemas/foundry-workspace-v2.schema.json +70 -0
- package/specs/schemas/runtime-qualification.schema.json +63 -0
- package/specs/schemas/task-authorization.schema.json +154 -0
- package/specs/schemas/tidas-runtime-expectation.schema.json +54 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/workspace-migration-transfer-plan.schema.json",
|
|
4
|
+
"title": "Foundry complete-source migration transfer plan v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"request_id",
|
|
10
|
+
"actor_id",
|
|
11
|
+
"destination_workspace",
|
|
12
|
+
"account_intent",
|
|
13
|
+
"runtime",
|
|
14
|
+
"source_inventory",
|
|
15
|
+
"stages",
|
|
16
|
+
"omitted_private_paths",
|
|
17
|
+
"blockers",
|
|
18
|
+
"source_must_remain_unchanged",
|
|
19
|
+
"remote_write_allowed",
|
|
20
|
+
"plan_sha256",
|
|
21
|
+
"source_queue",
|
|
22
|
+
"external_inputs"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schema": {
|
|
26
|
+
"const": "tiangong-foundry.workspace-migration-transfer-plan.v2"
|
|
27
|
+
},
|
|
28
|
+
"request_id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
31
|
+
},
|
|
32
|
+
"actor_id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]{0,255}$"
|
|
35
|
+
},
|
|
36
|
+
"destination_workspace": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"maxLength": 4096
|
|
40
|
+
},
|
|
41
|
+
"account_intent": {
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "null"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["project_ref", "user_id"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"project_ref": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[a-z0-9]{20}$"
|
|
54
|
+
},
|
|
55
|
+
"user_id": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"runtime": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"package_name",
|
|
68
|
+
"package_version",
|
|
69
|
+
"manifest_sha256",
|
|
70
|
+
"entry_sha256",
|
|
71
|
+
"platform",
|
|
72
|
+
"scope",
|
|
73
|
+
"payload_sha256"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"package_name": {
|
|
77
|
+
"const": "@tiangong-lca/foundry"
|
|
78
|
+
},
|
|
79
|
+
"package_version": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 80
|
|
83
|
+
},
|
|
84
|
+
"manifest_sha256": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
87
|
+
},
|
|
88
|
+
"entry_sha256": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
91
|
+
},
|
|
92
|
+
"platform": {
|
|
93
|
+
"enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
94
|
+
},
|
|
95
|
+
"scope": {
|
|
96
|
+
"enum": ["entry-only", "installed-package"]
|
|
97
|
+
},
|
|
98
|
+
"payload_sha256": {
|
|
99
|
+
"oneOf": [
|
|
100
|
+
{
|
|
101
|
+
"type": "string",
|
|
102
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "null"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"allOf": [
|
|
111
|
+
{
|
|
112
|
+
"if": {
|
|
113
|
+
"properties": {
|
|
114
|
+
"scope": {
|
|
115
|
+
"const": "installed-package"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": ["scope"]
|
|
119
|
+
},
|
|
120
|
+
"then": {
|
|
121
|
+
"properties": {
|
|
122
|
+
"payload_sha256": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"else": {
|
|
129
|
+
"properties": {
|
|
130
|
+
"payload_sha256": {
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"source_inventory": {
|
|
139
|
+
"$ref": "https://tiangong-lca.local/foundry/workspace-migration-plan.schema.json"
|
|
140
|
+
},
|
|
141
|
+
"stages": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"maxItems": 128,
|
|
144
|
+
"items": {
|
|
145
|
+
"$ref": "#/$defs/stage"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"omitted_private_paths": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"maxItems": 10000,
|
|
151
|
+
"uniqueItems": true,
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"maxLength": 4096
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"blockers": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"maxItems": 10000,
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": ["code", "path"],
|
|
165
|
+
"properties": {
|
|
166
|
+
"code": {
|
|
167
|
+
"enum": [
|
|
168
|
+
"migration_unhashed_file",
|
|
169
|
+
"migration_source_schema_unsupported",
|
|
170
|
+
"migration_private_marker"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"path": {
|
|
174
|
+
"oneOf": [
|
|
175
|
+
{
|
|
176
|
+
"type": "string",
|
|
177
|
+
"minLength": 1,
|
|
178
|
+
"maxLength": 4096
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "null"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"source_must_remain_unchanged": {
|
|
189
|
+
"const": true
|
|
190
|
+
},
|
|
191
|
+
"remote_write_allowed": {
|
|
192
|
+
"const": false
|
|
193
|
+
},
|
|
194
|
+
"plan_sha256": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
197
|
+
},
|
|
198
|
+
"source_queue": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": ["exists", "entries", "tree_sha256"],
|
|
202
|
+
"properties": {
|
|
203
|
+
"exists": {
|
|
204
|
+
"type": "boolean"
|
|
205
|
+
},
|
|
206
|
+
"entries": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"maxItems": 10000,
|
|
209
|
+
"items": {
|
|
210
|
+
"$ref": "https://tiangong-lca.local/foundry/workspace-migration-plan.schema.json#/$defs/entry"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"tree_sha256": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"external_inputs": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"maxItems": 1000,
|
|
222
|
+
"items": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"required": ["path", "bytes", "sha256"],
|
|
226
|
+
"properties": {
|
|
227
|
+
"path": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1,
|
|
230
|
+
"maxLength": 4096
|
|
231
|
+
},
|
|
232
|
+
"bytes": {
|
|
233
|
+
"type": "integer",
|
|
234
|
+
"minimum": 0,
|
|
235
|
+
"maximum": 67108864
|
|
236
|
+
},
|
|
237
|
+
"sha256": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"$defs": {
|
|
246
|
+
"stage": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"properties": {
|
|
250
|
+
"path": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"minLength": 1,
|
|
253
|
+
"maxLength": 4096
|
|
254
|
+
},
|
|
255
|
+
"sha256": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
258
|
+
},
|
|
259
|
+
"stage_id": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._/-]{0,255}$"
|
|
262
|
+
},
|
|
263
|
+
"producer_id": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]{0,255}$"
|
|
266
|
+
},
|
|
267
|
+
"revision": {
|
|
268
|
+
"type": "integer",
|
|
269
|
+
"minimum": 1,
|
|
270
|
+
"maximum": 9007199254740991
|
|
271
|
+
},
|
|
272
|
+
"scope_binding_sha256": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
275
|
+
},
|
|
276
|
+
"disposition": {
|
|
277
|
+
"enum": [
|
|
278
|
+
"UNATTEMPTED",
|
|
279
|
+
"SUCCEEDED_EXACT_READBACK",
|
|
280
|
+
"SUCCEEDED_RECOVERED_EXACT_READBACK",
|
|
281
|
+
"UNKNOWN_DO_NOT_REPLAY"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
"migration_action": {
|
|
285
|
+
"enum": ["rebuild-local-preparation", "retain-terminal", "owner-readback-only"]
|
|
286
|
+
},
|
|
287
|
+
"grants_write_authority": {
|
|
288
|
+
"const": false
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"path",
|
|
293
|
+
"sha256",
|
|
294
|
+
"stage_id",
|
|
295
|
+
"producer_id",
|
|
296
|
+
"revision",
|
|
297
|
+
"scope_binding_sha256",
|
|
298
|
+
"disposition",
|
|
299
|
+
"migration_action",
|
|
300
|
+
"grants_write_authority"
|
|
301
|
+
],
|
|
302
|
+
"allOf": [
|
|
303
|
+
{
|
|
304
|
+
"if": {
|
|
305
|
+
"properties": {
|
|
306
|
+
"disposition": {
|
|
307
|
+
"const": "UNATTEMPTED"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": ["disposition"]
|
|
311
|
+
},
|
|
312
|
+
"then": {
|
|
313
|
+
"properties": {
|
|
314
|
+
"migration_action": {
|
|
315
|
+
"const": "rebuild-local-preparation"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"if": {
|
|
322
|
+
"properties": {
|
|
323
|
+
"disposition": {
|
|
324
|
+
"const": "UNKNOWN_DO_NOT_REPLAY"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"required": ["disposition"]
|
|
328
|
+
},
|
|
329
|
+
"then": {
|
|
330
|
+
"properties": {
|
|
331
|
+
"migration_action": {
|
|
332
|
+
"const": "owner-readback-only"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"if": {
|
|
339
|
+
"properties": {
|
|
340
|
+
"disposition": {
|
|
341
|
+
"enum": ["SUCCEEDED_EXACT_READBACK", "SUCCEEDED_RECOVERED_EXACT_READBACK"]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"required": ["disposition"]
|
|
345
|
+
},
|
|
346
|
+
"then": {
|
|
347
|
+
"properties": {
|
|
348
|
+
"migration_action": {
|
|
349
|
+
"const": "retain-terminal"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/foundry-workspace-v2.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"layout_version",
|
|
9
|
+
"workspace_id",
|
|
10
|
+
"created_at_utc",
|
|
11
|
+
"required_features",
|
|
12
|
+
"migration",
|
|
13
|
+
"extensions"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema": {
|
|
17
|
+
"const": "tiangong-foundry.workspace.v2"
|
|
18
|
+
},
|
|
19
|
+
"layout_version": {
|
|
20
|
+
"const": 2
|
|
21
|
+
},
|
|
22
|
+
"workspace_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
25
|
+
},
|
|
26
|
+
"created_at_utc": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
29
|
+
},
|
|
30
|
+
"required_features": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"maxItems": 64,
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
36
|
+
},
|
|
37
|
+
"uniqueItems": true,
|
|
38
|
+
"allOf": [
|
|
39
|
+
{
|
|
40
|
+
"contains": {
|
|
41
|
+
"const": "migration-adoption-v1"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"contains": {
|
|
46
|
+
"const": "registered-tasks-v2"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"migration": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["plan_sha256", "activation_sha256"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"plan_sha256": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
59
|
+
},
|
|
60
|
+
"activation_sha256": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"extensions": {
|
|
67
|
+
"type": "object"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/runtime-qualification.schema.json",
|
|
4
|
+
"title": "Foundry portable runtime qualification identity v1",
|
|
5
|
+
"description": "Diagnostic identity only. A serialized document is never process-local execution authority.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema", "qualification_sha256", "cli", "tidas"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": { "const": "tiangong-foundry.runtime-qualification.v1" },
|
|
11
|
+
"qualification_sha256": { "$ref": "#/$defs/sha256" },
|
|
12
|
+
"cli": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["package_version", "platform", "content_sha256", "node_version", "node_sha256"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"package_version": { "const": "0.1.12" },
|
|
18
|
+
"platform": {
|
|
19
|
+
"enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
20
|
+
},
|
|
21
|
+
"content_sha256": { "$ref": "#/$defs/sha256" },
|
|
22
|
+
"node_version": { "type": "string", "minLength": 1 },
|
|
23
|
+
"node_sha256": { "$ref": "#/$defs/sha256" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"tidas": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": [
|
|
30
|
+
"binary_version",
|
|
31
|
+
"executable",
|
|
32
|
+
"asset_fingerprint",
|
|
33
|
+
"protocols",
|
|
34
|
+
"event_schema_versions"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"binary_version": { "type": "string", "pattern": "^0\\.[23]\\.(0|[1-9][0-9]*)$" },
|
|
38
|
+
"executable": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["bytes", "sha256"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"bytes": { "type": "integer", "minimum": 1, "maximum": 536870912 },
|
|
44
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"asset_fingerprint": { "$ref": "#/$defs/sha256" },
|
|
48
|
+
"protocols": { "$ref": "#/$defs/stringSet" },
|
|
49
|
+
"event_schema_versions": { "$ref": "#/$defs/stringSet" }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
55
|
+
"stringSet": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"minItems": 1,
|
|
58
|
+
"maxItems": 32,
|
|
59
|
+
"uniqueItems": true,
|
|
60
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Foundry task authorization v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"binding",
|
|
9
|
+
"issued_at_utc",
|
|
10
|
+
"expires_at_utc",
|
|
11
|
+
"remote_state_code",
|
|
12
|
+
"allowed_actions",
|
|
13
|
+
"qa_waivers",
|
|
14
|
+
"evidence"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": {
|
|
18
|
+
"const": "tiangong-foundry.task-authorization.v1"
|
|
19
|
+
},
|
|
20
|
+
"binding": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"workspace_id",
|
|
25
|
+
"task_id",
|
|
26
|
+
"actor_id",
|
|
27
|
+
"project_ref",
|
|
28
|
+
"user_id",
|
|
29
|
+
"profile_id",
|
|
30
|
+
"profile_sha256",
|
|
31
|
+
"input_scope_sha256"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"workspace_id": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 256
|
|
38
|
+
},
|
|
39
|
+
"task_id": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"maxLength": 256
|
|
43
|
+
},
|
|
44
|
+
"actor_id": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 256
|
|
48
|
+
},
|
|
49
|
+
"project_ref": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"maxLength": 256
|
|
53
|
+
},
|
|
54
|
+
"user_id": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"maxLength": 256
|
|
58
|
+
},
|
|
59
|
+
"profile_id": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 256
|
|
63
|
+
},
|
|
64
|
+
"profile_sha256": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
67
|
+
},
|
|
68
|
+
"input_scope_sha256": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"issued_at_utc": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"format": "date-time"
|
|
77
|
+
},
|
|
78
|
+
"expires_at_utc": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": "date-time"
|
|
81
|
+
},
|
|
82
|
+
"remote_state_code": {
|
|
83
|
+
"const": 0
|
|
84
|
+
},
|
|
85
|
+
"allowed_actions": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"maxItems": 5,
|
|
88
|
+
"uniqueItems": true,
|
|
89
|
+
"items": {
|
|
90
|
+
"enum": [
|
|
91
|
+
"elementary_flow_write",
|
|
92
|
+
"elementary_flow_create_new",
|
|
93
|
+
"flowproperty_write",
|
|
94
|
+
"unitgroup_write",
|
|
95
|
+
"canonical_support_local_mint"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"qa_waivers": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"maxItems": 1,
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": ["dataset_type", "code", "evidence_ids"],
|
|
106
|
+
"properties": {
|
|
107
|
+
"dataset_type": {
|
|
108
|
+
"const": "process"
|
|
109
|
+
},
|
|
110
|
+
"code": {
|
|
111
|
+
"const": "process_material_balance_deviation"
|
|
112
|
+
},
|
|
113
|
+
"evidence_ids": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"minItems": 1,
|
|
116
|
+
"uniqueItems": true,
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"evidence": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"minItems": 1,
|
|
127
|
+
"maxItems": 32,
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": ["id", "kind", "reference", "sha256"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"id": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1,
|
|
136
|
+
"maxLength": 256
|
|
137
|
+
},
|
|
138
|
+
"kind": {
|
|
139
|
+
"enum": ["user-decision", "source-model"]
|
|
140
|
+
},
|
|
141
|
+
"reference": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1,
|
|
144
|
+
"maxLength": 2048
|
|
145
|
+
},
|
|
146
|
+
"sha256": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/tidas-runtime-expectation.schema.json",
|
|
4
|
+
"title": "Foundry TIDAS runtime expectation v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "platform", "binary_version", "executable", "validation"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "tiangong-foundry.tidas-runtime-expectation.v1" },
|
|
10
|
+
"platform": {
|
|
11
|
+
"enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
12
|
+
},
|
|
13
|
+
"binary_version": { "type": "string", "pattern": "^0\\.[23]\\.(0|[1-9][0-9]*)$" },
|
|
14
|
+
"executable": { "$ref": "#/$defs/contentFact" },
|
|
15
|
+
"validation": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["schema_version", "asset_fingerprint", "protocols", "event_schema_versions"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema_version": { "const": "tidas.validation-describe.v1" },
|
|
21
|
+
"asset_fingerprint": { "$ref": "#/$defs/sha256" },
|
|
22
|
+
"protocols": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"minItems": 1,
|
|
25
|
+
"maxItems": 32,
|
|
26
|
+
"uniqueItems": true,
|
|
27
|
+
"contains": { "const": "document-validation-batch.v1" },
|
|
28
|
+
"items": { "$ref": "#/$defs/boundedString" }
|
|
29
|
+
},
|
|
30
|
+
"event_schema_versions": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"maxItems": 32,
|
|
34
|
+
"uniqueItems": true,
|
|
35
|
+
"contains": { "const": "tidas.validation-final-event.v1" },
|
|
36
|
+
"items": { "$ref": "#/$defs/boundedString" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
43
|
+
"boundedString": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
44
|
+
"contentFact": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["bytes", "sha256"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"bytes": { "type": "integer", "minimum": 1, "maximum": 536870912 },
|
|
50
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|