@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,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/operation-result.schema.json",
|
|
4
|
+
"title": "Foundry public operation result v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"operation",
|
|
10
|
+
"status",
|
|
11
|
+
"task_id",
|
|
12
|
+
"artifacts",
|
|
13
|
+
"blockers",
|
|
14
|
+
"next_actions",
|
|
15
|
+
"runtime_identity",
|
|
16
|
+
"permissions"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schema": { "const": "tiangong-foundry.operation-result.v1" },
|
|
20
|
+
"operation": {
|
|
21
|
+
"enum": [
|
|
22
|
+
"unknown",
|
|
23
|
+
"workspace.init",
|
|
24
|
+
"doctor",
|
|
25
|
+
"task.start",
|
|
26
|
+
"task.status",
|
|
27
|
+
"task.resume",
|
|
28
|
+
"workspace.migrate"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"status": {
|
|
32
|
+
"enum": ["ready", "running", "needs_auth", "needs_input", "blocked", "completed", "failed"]
|
|
33
|
+
},
|
|
34
|
+
"task_id": { "oneOf": [{ "$ref": "#/$defs/id" }, { "type": "null" }] },
|
|
35
|
+
"artifacts": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"maxItems": 10000,
|
|
38
|
+
"items": {
|
|
39
|
+
"oneOf": [{ "$ref": "#/$defs/fileArtifact" }, { "$ref": "#/$defs/inlineArtifact" }]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"blockers": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"maxItems": 10000,
|
|
45
|
+
"items": { "$ref": "#/$defs/blocker" }
|
|
46
|
+
},
|
|
47
|
+
"next_actions": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"maxItems": 1000,
|
|
50
|
+
"items": {
|
|
51
|
+
"oneOf": [{ "$ref": "#/$defs/humanAction" }, { "$ref": "#/$defs/commandAction" }]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"runtime_identity": { "oneOf": [{ "type": "object" }, { "type": "null" }] },
|
|
55
|
+
"permissions": { "$ref": "#/$defs/permissions" }
|
|
56
|
+
},
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"if": { "properties": { "status": { "enum": ["ready", "running", "completed"] } } },
|
|
60
|
+
"then": { "properties": { "blockers": { "type": "array", "maxItems": 0 } } },
|
|
61
|
+
"else": { "properties": { "blockers": { "type": "array", "minItems": 1 } } }
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"$defs": {
|
|
65
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
66
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
67
|
+
"fileArtifact": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["kind", "role", "path", "bytes", "sha256"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"kind": { "const": "file" },
|
|
73
|
+
"role": { "$ref": "#/$defs/id" },
|
|
74
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
75
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
76
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"inlineArtifact": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["kind", "role", "bytes", "sha256", "value"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"kind": { "const": "inline" },
|
|
85
|
+
"role": { "$ref": "#/$defs/id" },
|
|
86
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
87
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
88
|
+
"value": {}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"blocker": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["code", "message", "scope"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"code": { "$ref": "#/$defs/id" },
|
|
97
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
98
|
+
"scope": { "oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"humanAction": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["kind", "code", "instructions"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"kind": { "const": "human" },
|
|
107
|
+
"code": { "$ref": "#/$defs/id" },
|
|
108
|
+
"instructions": { "type": "string", "minLength": 1, "maxLength": 8192 }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"commandAction": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["kind", "code", "executable", "argv", "cwd", "purpose", "binding_sha256"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"kind": { "const": "command" },
|
|
117
|
+
"code": { "$ref": "#/$defs/id" },
|
|
118
|
+
"executable": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
119
|
+
"argv": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"maxItems": 256,
|
|
122
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
123
|
+
},
|
|
124
|
+
"cwd": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
125
|
+
"purpose": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
126
|
+
"binding_sha256": { "$ref": "#/$defs/sha256" }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"permissions": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["state", "requested_actions", "approval_reference"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"state": { "enum": ["not_required", "required", "granted", "invalid"] },
|
|
135
|
+
"requested_actions": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"maxItems": 32,
|
|
138
|
+
"uniqueItems": true,
|
|
139
|
+
"items": { "$ref": "#/$defs/id" }
|
|
140
|
+
},
|
|
141
|
+
"approval_reference": {
|
|
142
|
+
"oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/package-descriptor.schema.json",
|
|
4
|
+
"title": "Foundry package descriptor v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "package", "runtime", "files", "files_sha256"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "tiangong-foundry.package-descriptor.v1"
|
|
11
|
+
},
|
|
12
|
+
"package": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["name", "version", "cli_dependency", "bin", "public_api", "types"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": {
|
|
18
|
+
"const": "@tiangong-lca/foundry"
|
|
19
|
+
},
|
|
20
|
+
"version": {
|
|
21
|
+
"const": "0.1.2"
|
|
22
|
+
},
|
|
23
|
+
"cli_dependency": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["name", "version"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"const": "@tiangong-lca/cli"
|
|
30
|
+
},
|
|
31
|
+
"version": {
|
|
32
|
+
"const": "0.1.12"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"const": "package-dist/scripts/package-entry.js"
|
|
38
|
+
},
|
|
39
|
+
"public_api": {
|
|
40
|
+
"const": "package-dist/scripts/public-api.js"
|
|
41
|
+
},
|
|
42
|
+
"types": {
|
|
43
|
+
"const": "package-dist/scripts/public-api.d.ts"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"runtime": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": [
|
|
51
|
+
"layout_schema",
|
|
52
|
+
"supported_platforms",
|
|
53
|
+
"workspace_read_schemas",
|
|
54
|
+
"workspace_write_schema",
|
|
55
|
+
"protocol_schemas",
|
|
56
|
+
"workspace_write_schemas"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"layout_schema": {
|
|
60
|
+
"const": "tiangong-foundry.runtime-layout.v2"
|
|
61
|
+
},
|
|
62
|
+
"supported_platforms": {
|
|
63
|
+
"const": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
64
|
+
},
|
|
65
|
+
"workspace_read_schemas": {
|
|
66
|
+
"const": ["tiangong-foundry.workspace.v1", "tiangong-foundry.workspace.v2"]
|
|
67
|
+
},
|
|
68
|
+
"workspace_write_schema": {
|
|
69
|
+
"const": "tiangong-foundry.workspace.v1"
|
|
70
|
+
},
|
|
71
|
+
"protocol_schemas": {
|
|
72
|
+
"const": [
|
|
73
|
+
"tiangong-foundry.operation-result.v1",
|
|
74
|
+
"tiangong-foundry.task-start.v1",
|
|
75
|
+
"tiangong-foundry.semantic-input.v1",
|
|
76
|
+
"tiangong-foundry.authorization-input.v1",
|
|
77
|
+
"tiangong-foundry.facade-request-index.v1",
|
|
78
|
+
"tiangong-foundry.workspace-migration-plan.v1",
|
|
79
|
+
"tiangong-foundry.workspace-migration-transfer-plan.v2",
|
|
80
|
+
"tiangong-foundry.migration-transfer-receipt.v1",
|
|
81
|
+
"tiangong-foundry.workspace-migration-pending.v1",
|
|
82
|
+
"tiangong-foundry.migration-adoption-plan.v1",
|
|
83
|
+
"tiangong-foundry.migration-activation.v1",
|
|
84
|
+
"tiangong-foundry.workspace.v2",
|
|
85
|
+
"tiangong-foundry.workspace-runtime-selection.v1",
|
|
86
|
+
"tiangong-foundry.managed-runtime.v1",
|
|
87
|
+
"tiangong-foundry.runtime-qualification.v1",
|
|
88
|
+
"tiangong-foundry.tidas-runtime-expectation.v1",
|
|
89
|
+
"tiangong-foundry.execution-context.v1",
|
|
90
|
+
"tiangong-foundry.authorization-derivation.v1",
|
|
91
|
+
"tiangong-foundry.task-authorization.v1"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"workspace_write_schemas": {
|
|
95
|
+
"const": ["tiangong-foundry.workspace.v1", "tiangong-foundry.workspace.v2"]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"files": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"minItems": 1,
|
|
102
|
+
"maxItems": 5000,
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"required": ["path", "bytes", "sha256"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"path": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"minLength": 1,
|
|
111
|
+
"maxLength": 4096
|
|
112
|
+
},
|
|
113
|
+
"bytes": {
|
|
114
|
+
"type": "integer",
|
|
115
|
+
"minimum": 0,
|
|
116
|
+
"maximum": 33554432
|
|
117
|
+
},
|
|
118
|
+
"sha256": {
|
|
119
|
+
"$ref": "#/$defs/sha256"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"files_sha256": {
|
|
125
|
+
"$ref": "#/$defs/sha256"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"$defs": {
|
|
129
|
+
"sha256": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/foundry-runtime-selection.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"workspace_id",
|
|
9
|
+
"request_id",
|
|
10
|
+
"actor_id",
|
|
11
|
+
"previous_manifest_sha256",
|
|
12
|
+
"selected_manifest_sha256",
|
|
13
|
+
"access",
|
|
14
|
+
"lease_ids",
|
|
15
|
+
"record_sha256"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schema": {
|
|
19
|
+
"const": "tiangong-foundry.workspace-runtime-selection.v1"
|
|
20
|
+
},
|
|
21
|
+
"workspace_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
24
|
+
},
|
|
25
|
+
"request_id": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
28
|
+
},
|
|
29
|
+
"actor_id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]{0,255}$"
|
|
32
|
+
},
|
|
33
|
+
"previous_manifest_sha256": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
36
|
+
},
|
|
37
|
+
"selected_manifest_sha256": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
40
|
+
},
|
|
41
|
+
"access": {
|
|
42
|
+
"enum": ["read", "write"]
|
|
43
|
+
},
|
|
44
|
+
"lease_ids": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"maxItems": 2,
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1,
|
|
50
|
+
"maxLength": 256
|
|
51
|
+
},
|
|
52
|
+
"minItems": 2
|
|
53
|
+
},
|
|
54
|
+
"record_sha256": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/semantic-input.schema.json",
|
|
4
|
+
"title": "Foundry semantic input v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "task_id", "actor_id", "assessment_sha256", "submissions"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "tiangong-foundry.semantic-input.v1" },
|
|
10
|
+
"task_id": { "type": "string", "pattern": "^task-[0-9a-f]{64}-r[0-9]{4}$" },
|
|
11
|
+
"actor_id": { "type": "string", "maxLength": 256, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]*$" },
|
|
12
|
+
"assessment_sha256": { "$ref": "#/$defs/sha" },
|
|
13
|
+
"submissions": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"maxItems": 1000,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["kind", "authoring_task_sha256", "file", "sha256"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"kind": { "enum": ["patch", "classification", "location", "identity"] },
|
|
23
|
+
"authoring_task_sha256": { "$ref": "#/$defs/sha" },
|
|
24
|
+
"file": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 4096,
|
|
28
|
+
"pattern": "^[^\\u0000\\r\\n]+$"
|
|
29
|
+
},
|
|
30
|
+
"sha256": { "$ref": "#/$defs/sha" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"$defs": { "sha": { "type": "string", "pattern": "^[0-9a-f]{64}$" } }
|
|
36
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/task-start.schema.json",
|
|
4
|
+
"title": "Foundry task-start spec v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"request_id",
|
|
10
|
+
"actor_id",
|
|
11
|
+
"lane",
|
|
12
|
+
"profile_id",
|
|
13
|
+
"target_entities",
|
|
14
|
+
"sources",
|
|
15
|
+
"seed",
|
|
16
|
+
"account_intent",
|
|
17
|
+
"preparation"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema": { "const": "tiangong-foundry.task-start.v1" },
|
|
21
|
+
"request_id": { "$ref": "#/$defs/id" },
|
|
22
|
+
"actor_id": { "$ref": "#/$defs/id" },
|
|
23
|
+
"lane": {
|
|
24
|
+
"enum": ["external-dataset-curated-import", "source-evidence-dataset-development"]
|
|
25
|
+
},
|
|
26
|
+
"profile_id": { "$ref": "#/$defs/id" },
|
|
27
|
+
"target_entities": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"maxItems": 8,
|
|
31
|
+
"uniqueItems": true,
|
|
32
|
+
"items": {
|
|
33
|
+
"enum": [
|
|
34
|
+
"contact",
|
|
35
|
+
"source",
|
|
36
|
+
"support",
|
|
37
|
+
"flow",
|
|
38
|
+
"flowproperty",
|
|
39
|
+
"unitgroup",
|
|
40
|
+
"process",
|
|
41
|
+
"lifecyclemodel"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"sources": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"minItems": 1,
|
|
48
|
+
"maxItems": 1000,
|
|
49
|
+
"items": { "$ref": "#/$defs/selection" }
|
|
50
|
+
},
|
|
51
|
+
"seed": { "oneOf": [{ "$ref": "#/$defs/selection" }, { "type": "null" }] },
|
|
52
|
+
"account_intent": {
|
|
53
|
+
"oneOf": [{ "$ref": "#/$defs/accountIntent" }, { "type": "null" }]
|
|
54
|
+
},
|
|
55
|
+
"preparation": {
|
|
56
|
+
"oneOf": [{ "$ref": "#/$defs/cleanupPreparation" }, { "type": "null" }]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"allOf": [
|
|
60
|
+
{
|
|
61
|
+
"if": {
|
|
62
|
+
"properties": { "lane": { "const": "source-evidence-dataset-development" } },
|
|
63
|
+
"required": ["lane"]
|
|
64
|
+
},
|
|
65
|
+
"then": { "properties": { "seed": { "$ref": "#/$defs/selection" } } }
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"$defs": {
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"maxLength": 256,
|
|
73
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]*$"
|
|
74
|
+
},
|
|
75
|
+
"selection": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["path"],
|
|
79
|
+
"properties": { "path": { "type": "string", "minLength": 1, "maxLength": 4096 } }
|
|
80
|
+
},
|
|
81
|
+
"accountIntent": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": ["project_ref", "user_id", "session_reference"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"project_ref": { "type": "string", "pattern": "^[a-z0-9]{20}$" },
|
|
87
|
+
"user_id": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
|
|
90
|
+
},
|
|
91
|
+
"account_mode": { "enum": ["ordinary", "production-test"] },
|
|
92
|
+
"session_reference": {
|
|
93
|
+
"oneOf": [{ "type": "string", "minLength": 1, "maxLength": 4096 }, { "type": "null" }]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"cleanupPreparation": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["operation", "type", "input", "source_input", "output_directory"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"operation": { "const": "dataset-curation-cleanup" },
|
|
103
|
+
"type": {
|
|
104
|
+
"enum": [
|
|
105
|
+
"contact",
|
|
106
|
+
"source",
|
|
107
|
+
"support",
|
|
108
|
+
"flow",
|
|
109
|
+
"flowproperty",
|
|
110
|
+
"unitgroup",
|
|
111
|
+
"process",
|
|
112
|
+
"lifecyclemodel"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"input": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
116
|
+
"source_input": {
|
|
117
|
+
"oneOf": [{ "type": "string", "minLength": 1, "maxLength": 4096 }, { "type": "null" }]
|
|
118
|
+
},
|
|
119
|
+
"output_directory": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/workspace-migration-pending.schema.json",
|
|
4
|
+
"title": "Inactive migration control marker",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "plan_sha256"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"const": "tiangong-foundry.workspace-migration-pending.v1"
|
|
11
|
+
},
|
|
12
|
+
"plan_sha256": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tiangong-lca.local/foundry/workspace-migration-plan.schema.json",
|
|
4
|
+
"title": "Foundry workspace migration dry-run plan v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"workspace_root",
|
|
10
|
+
"foundry_root_exists",
|
|
11
|
+
"marker_schema",
|
|
12
|
+
"disposition",
|
|
13
|
+
"write_allowed",
|
|
14
|
+
"entries",
|
|
15
|
+
"tree_sha256"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schema": { "const": "tiangong-foundry.workspace-migration-plan.v1" },
|
|
19
|
+
"workspace_root": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
20
|
+
"foundry_root_exists": { "type": "boolean" },
|
|
21
|
+
"marker_schema": {
|
|
22
|
+
"oneOf": [{ "type": "string", "minLength": 1, "maxLength": 256 }, { "type": "null" }]
|
|
23
|
+
},
|
|
24
|
+
"disposition": {
|
|
25
|
+
"enum": ["no_state", "current_layout", "explicit_migration_required"]
|
|
26
|
+
},
|
|
27
|
+
"write_allowed": { "const": false },
|
|
28
|
+
"entries": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"maxItems": 10000,
|
|
31
|
+
"items": { "$ref": "#/$defs/entry" }
|
|
32
|
+
},
|
|
33
|
+
"tree_sha256": { "$ref": "#/$defs/sha256" }
|
|
34
|
+
},
|
|
35
|
+
"$defs": {
|
|
36
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
37
|
+
"entry": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["path", "kind", "bytes", "sha256", "state_class"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
43
|
+
"kind": { "enum": ["directory", "file"] },
|
|
44
|
+
"bytes": { "oneOf": [{ "type": "integer", "minimum": 0 }, { "type": "null" }] },
|
|
45
|
+
"sha256": { "oneOf": [{ "$ref": "#/$defs/sha256" }, { "type": "null" }] },
|
|
46
|
+
"state_class": {
|
|
47
|
+
"enum": [
|
|
48
|
+
"workspace-control",
|
|
49
|
+
"local-preparation",
|
|
50
|
+
"terminal-success",
|
|
51
|
+
"attempted-or-unknown",
|
|
52
|
+
"authorization-or-account",
|
|
53
|
+
"unclassified"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|