@empire-builder-kit/nx 1.0.0-rc.4 → 1.0.0-rc.40
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 +18 -0
- package/executors.json +21 -1
- package/generators.json +10 -0
- package/package.json +31 -7
- package/src/aws/child-environment.d.ts +10 -0
- package/src/aws/child-environment.js +77 -0
- package/src/aws/identity.d.ts +13 -0
- package/src/aws/identity.js +41 -0
- package/src/aws-authority/index.d.ts +2 -0
- package/src/aws-authority/index.js +6 -0
- package/src/aws-authority/lambda-policy-ordering.d.ts +38 -0
- package/src/aws-authority/lambda-policy-ordering.js +56 -0
- package/src/aws-authority/stage-authority.d.ts +248 -0
- package/src/aws-authority/stage-authority.js +3558 -0
- package/src/blueprints/external-sandbox.js +21 -9
- package/src/blueprints/manifest.d.ts +1 -1
- package/src/blueprints/resolver.js +28 -15
- package/src/cli/bootstrap.d.ts +1 -1
- package/src/cli/deploy-runtime.d.ts +6 -0
- package/src/cli/deploy-runtime.js +58 -0
- package/src/cli/dev-command.d.ts +16 -4
- package/src/cli/dev-command.js +63 -0
- package/src/cli/main.d.ts +9 -1
- package/src/cli/main.js +139 -20
- package/src/cli/output.d.ts +1 -1
- package/src/cli/output.js +1 -1
- package/src/developer-agent/context.js +41 -9
- package/src/developer-agent/generator-planning.js +20 -6
- package/src/developer-agent/git-inspection.d.ts +6 -2
- package/src/developer-agent/git-inspection.js +78 -6
- package/src/developer-agent/model.d.ts +5 -3
- package/src/developer-agent/model.js +4 -4
- package/src/developer-agent/operation-registry.d.ts +5 -0
- package/src/developer-agent/operation-registry.js +286 -40
- package/src/developer-agent/planning.js +16 -13
- package/src/developer-agent/preview-changes.d.ts +2 -0
- package/src/developer-agent/preview-changes.js +14 -2
- package/src/developer-agent/preview-source.js +3 -0
- package/src/developer-agent/validation.js +25 -9
- package/src/developer-agent/workspace-inspection.js +60 -5
- package/src/executors/blueprint-trust/blueprint-trust.js +6 -0
- package/src/executors/deployment-plan/deployment-plan.d.ts +2 -0
- package/src/executors/deployment-plan/deployment-plan.js +57 -2
- package/src/executors/dev-doctor/dev-doctor.js +13 -6
- package/src/executors/dev-task-cleanup/dev-task-cleanup.d.ts +23 -0
- package/src/executors/dev-task-cleanup/dev-task-cleanup.js +145 -0
- package/src/executors/dev-task-cleanup/schema.json +9 -0
- package/src/executors/dev-task-cleanup/task-stack-absence.d.ts +27 -0
- package/src/executors/dev-task-cleanup/task-stack-absence.js +281 -0
- package/src/executors/dev-task-cleanup/task-stack-checkpoint.d.ts +12 -0
- package/src/executors/dev-task-cleanup/task-stack-checkpoint.js +92 -0
- package/src/executors/fleet/fleet.js +1 -1
- package/src/executors/foundation-preflight/foundation-preflight.d.ts +1 -0
- package/src/executors/foundation-preflight/foundation-preflight.js +6 -2
- package/src/executors/foundation-preflight/schema.json +5 -0
- package/src/executors/foundation-profile-preflight/foundation-profile-preflight.d.ts +13 -2
- package/src/executors/foundation-profile-preflight/foundation-profile-preflight.js +95 -31
- package/src/executors/foundation-profile-preflight/production-database-safeguard.d.ts +65 -0
- package/src/executors/foundation-profile-preflight/production-database-safeguard.js +223 -0
- package/src/executors/foundation-profile-preflight/schema.json +15 -4
- package/src/executors/foundation-remove-preflight/foundation-remove-preflight.d.ts +11 -1
- package/src/executors/foundation-remove-preflight/foundation-remove-preflight.js +70 -20
- package/src/executors/foundation-remove-preflight/schema.json +6 -1
- package/src/executors/github-bootstrap/github-bootstrap.d.ts +1 -0
- package/src/executors/github-bootstrap/github-bootstrap.js +3 -0
- package/src/executors/github-bootstrap/schema.json +7 -1
- package/src/executors/infrastructure-plan/infrastructure-plan.d.ts +29 -136
- package/src/executors/infrastructure-plan/infrastructure-plan.js +230 -3282
- package/src/executors/infrastructure-plan/schema.json +12 -52
- package/src/executors/local-deploy/federated-credential-transport.d.ts +48 -0
- package/src/executors/local-deploy/federated-credential-transport.js +252 -0
- package/src/executors/local-deploy/local-approval.d.ts +18 -0
- package/src/executors/local-deploy/local-approval.js +39 -0
- package/src/executors/local-deploy/local-deploy.d.ts +112 -0
- package/src/executors/local-deploy/local-deploy.js +1404 -0
- package/src/executors/local-deploy/schema.json +70 -0
- package/src/executors/refresh/refresh.js +2 -2
- package/src/executors/remove/remove.js +2 -2
- package/src/executors/router-waf-rehearsal/router-waf-rehearsal.d.ts +42 -0
- package/src/executors/router-waf-rehearsal/router-waf-rehearsal.js +1229 -0
- package/src/executors/router-waf-rehearsal/schema.json +29 -0
- package/src/executors/secret-initialize/schema.json +42 -0
- package/src/executors/secret-initialize/secret-initialize.d.ts +34 -0
- package/src/executors/secret-initialize/secret-initialize.js +297 -0
- package/src/executors/secret-metadata/schema.json +5 -0
- package/src/executors/secret-metadata/secret-metadata.d.ts +16 -2
- package/src/executors/secret-metadata/secret-metadata.js +129 -30
- package/src/executors/sst-lifecycle/generated-secret-retirement.d.ts +53 -0
- package/src/executors/sst-lifecycle/generated-secret-retirement.js +192 -0
- package/src/executors/sst-lifecycle/governed-native-operation.d.ts +48 -0
- package/src/executors/sst-lifecycle/governed-native-operation.js +162 -0
- package/src/executors/sst-lifecycle/logging-preflight.d.ts +5 -0
- package/src/executors/sst-lifecycle/logging-preflight.js +23 -13
- package/src/executors/sst-lifecycle/run-sst-command.d.ts +40 -6
- package/src/executors/sst-lifecycle/run-sst-command.js +779 -70
- package/src/executors/sst-lifecycle/schema.json +8 -1
- package/src/executors/sst-lifecycle/secret-preflight.d.ts +2 -0
- package/src/executors/sst-lifecycle/secret-preflight.js +13 -7
- package/src/executors/sst-lifecycle/sst-environment-source.d.ts +33 -0
- package/src/executors/sst-lifecycle/sst-environment-source.js +267 -0
- package/src/executors/sst-lifecycle/task-unlock.d.ts +15 -0
- package/src/executors/sst-lifecycle/task-unlock.js +126 -0
- package/src/executors/unlock/unlock.js +2 -2
- package/src/foundation/capability-plan.d.ts +43 -0
- package/src/foundation/capability-plan.js +168 -0
- package/src/foundation/discovery.d.ts +14 -11
- package/src/foundation/discovery.js +32 -6
- package/src/foundation/index.d.ts +4 -0
- package/src/foundation/index.js +11 -0
- package/src/foundation/local-database-contract.d.ts +20 -0
- package/src/foundation/local-database-contract.js +262 -13
- package/src/foundation/local-private-smoke-access.d.ts +20 -0
- package/src/foundation/local-private-smoke-access.js +197 -0
- package/src/foundation/logging-preflight.js +1 -1
- package/src/foundation/logging.d.ts +3 -1
- package/src/foundation/logging.js +1 -1
- package/src/foundation/partial-state.d.ts +10 -0
- package/src/foundation/partial-state.js +21 -0
- package/src/foundation/preflight.js +37 -18
- package/src/foundation/private-smoke-access.d.ts +25 -0
- package/src/foundation/private-smoke-access.js +135 -0
- package/src/foundation/private-smoke-admission.d.ts +45 -0
- package/src/foundation/private-smoke-admission.js +180 -0
- package/src/foundation/private-smoke-control-plane.d.ts +18 -0
- package/src/foundation/private-smoke-control-plane.js +184 -0
- package/src/foundation/provision-database-bindings.d.ts +5 -0
- package/src/foundation/provision-database-bindings.js +41 -8
- package/src/foundation/provision-logical-database.js +15 -8
- package/src/foundation/requirements.d.ts +3 -3
- package/src/foundation/requirements.js +24 -12
- package/src/foundation/router-waf-rate-rehearsal.d.ts +97 -0
- package/src/foundation/router-waf-rate-rehearsal.js +210 -0
- package/src/foundation/router-waf.d.ts +149 -0
- package/src/foundation/router-waf.js +809 -0
- package/src/foundation/stages.d.ts +1 -0
- package/src/foundation/stages.js +11 -0
- package/src/generators/blueprint/blueprint.d.ts +5 -0
- package/src/generators/blueprint/blueprint.js +102 -0
- package/src/generators/blueprint/files.d.ts +6 -0
- package/src/generators/blueprint/files.js +217 -0
- package/src/generators/blueprint/schema.d.ts +4 -0
- package/src/generators/blueprint/schema.json +18 -0
- package/src/generators/formatting.d.ts +8 -0
- package/src/generators/formatting.js +141 -0
- package/src/generators/function/function.js +38 -17
- package/src/generators/logging-registry.d.ts +2 -0
- package/src/generators/logging-registry.js +22 -0
- package/src/generators/post-generation-install.js +2 -2
- package/src/generators/preset/dependency-overrides.d.ts +8 -0
- package/src/generators/preset/dependency-overrides.js +55 -0
- package/src/generators/preset/generator.js +43 -3
- package/src/generators/preset/schema.d.ts +10 -0
- package/src/generators/preset/schema.json +47 -0
- package/src/generators/preset/tool-versions.d.ts +2 -0
- package/src/generators/preset/tool-versions.js +3 -1
- package/src/generators/preset/workspace-files-adopter-skills.d.ts +7 -0
- package/src/generators/preset/workspace-files-adopter-skills.js +303 -0
- package/src/generators/preset/workspace-files-ci-acceptance.d.ts +1 -0
- package/src/generators/preset/workspace-files-ci-acceptance.js +791 -0
- package/src/generators/preset/workspace-files-ci-install.d.ts +2 -0
- package/src/generators/preset/workspace-files-ci-install.js +196 -0
- package/src/generators/preset/workspace-files-developer-agent.d.ts +2 -0
- package/src/generators/preset/workspace-files-developer-agent.js +90 -28
- package/src/generators/preset/workspace-files-ecr-inspector.d.ts +18 -0
- package/src/generators/preset/workspace-files-ecr-inspector.js +298 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.js +5 -2
- package/src/generators/preset/workspace-files-performance-cost.d.ts +2 -2
- package/src/generators/preset/workspace-files-performance-cost.js +8 -8
- package/src/generators/preset/workspace-files-performance-load.d.ts +1 -1
- package/src/generators/preset/workspace-files-performance-load.js +39 -25
- package/src/generators/preset/workspace-files-stage-authority.d.ts +6 -0
- package/src/generators/preset/workspace-files-stage-authority.js +518 -0
- package/src/generators/preset/workspace-files-thin-deploy.d.ts +55 -0
- package/src/generators/preset/workspace-files-thin-deploy.js +2473 -0
- package/src/generators/preset/workspace-files-thin-docs.d.ts +7 -0
- package/src/generators/preset/workspace-files-thin-docs.js +352 -0
- package/src/generators/preset/workspace-files-thin-release.d.ts +14 -0
- package/src/generators/preset/workspace-files-thin-release.js +26 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.js +254 -42
- package/src/generators/preset/workspace-files.d.ts +18 -2
- package/src/generators/preset/workspace-files.js +1504 -608
- package/src/generators/repository-policy/repository-policy.js +235 -5
- package/src/generators/repository-policy/schema.d.ts +10 -0
- package/src/generators/repository-policy/schema.json +80 -4
- package/src/generators/repository-policy/tree-policy.d.ts +3 -0
- package/src/generators/repository-policy/tree-policy.js +25 -0
- package/src/generators/slice/built-in-plan-api-contract-files.js +42 -7
- package/src/generators/slice/built-in-plan-api-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-api-files.js +130 -414
- package/src/generators/slice/built-in-plan-async-work-files.js +166 -1969
- package/src/generators/slice/built-in-plan-authorization-files.js +92 -329
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js +60 -2
- package/src/generators/slice/built-in-plan-authorization-storage.d.ts +3 -0
- package/src/generators/slice/built-in-plan-authorization-storage.js +119 -0
- package/src/generators/slice/built-in-plan-background-work-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-background-work-files.js +99 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.js +2 -830
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js +5 -31
- package/src/generators/slice/built-in-plan-data-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-data-files.js +163 -1196
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js +53 -28
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js +37 -2
- package/src/generators/slice/built-in-plan-data-retention-job-files.js +7 -2443
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js +50 -8
- package/src/generators/slice/built-in-plan-data-rights-files.js +6 -4482
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js +44 -25
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js +20 -1
- package/src/generators/slice/built-in-plan-foundation-files.d.ts +2 -1
- package/src/generators/slice/built-in-plan-foundation-files.js +39 -18
- package/src/generators/slice/built-in-plan-frontend-files.js +7 -3
- package/src/generators/slice/built-in-plan-infrastructure-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-infrastructure-files.js +933 -729
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js +67 -11
- package/src/generators/slice/built-in-plan-key-value-cleanup.d.ts +4 -0
- package/src/generators/slice/built-in-plan-key-value-cleanup.js +100 -0
- package/src/generators/slice/built-in-plan-key-value-consumer.d.ts +4 -0
- package/src/generators/slice/built-in-plan-key-value-consumer.js +151 -0
- package/src/generators/slice/built-in-plan-key-value-deletion.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-deletion.js +377 -0
- package/src/generators/slice/built-in-plan-key-value-delivery.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-delivery.js +137 -0
- package/src/generators/slice/built-in-plan-key-value-export.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-export.js +595 -0
- package/src/generators/slice/built-in-plan-key-value-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-files.js +31 -0
- package/src/generators/slice/built-in-plan-key-value-holds.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-holds.js +189 -0
- package/src/generators/slice/built-in-plan-key-value-infrastructure.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-infrastructure.js +102 -0
- package/src/generators/slice/built-in-plan-key-value-performance.d.ts +5 -0
- package/src/generators/slice/built-in-plan-key-value-performance.js +530 -0
- package/src/generators/slice/built-in-plan-key-value-provider.d.ts +4 -0
- package/src/generators/slice/built-in-plan-key-value-provider.js +366 -0
- package/src/generators/slice/built-in-plan-key-value-records.d.ts +3 -0
- package/src/generators/slice/built-in-plan-key-value-records.js +232 -0
- package/src/generators/slice/built-in-plan-key-value-retention-infrastructure.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-retention-infrastructure.js +103 -0
- package/src/generators/slice/built-in-plan-key-value-retention-job-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-retention-job-files.js +160 -0
- package/src/generators/slice/built-in-plan-key-value-retention-maintenance.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-retention-maintenance.js +329 -0
- package/src/generators/slice/built-in-plan-key-value-retention-worker.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-retention-worker.js +477 -0
- package/src/generators/slice/built-in-plan-key-value-retention.d.ts +2 -0
- package/src/generators/slice/built-in-plan-key-value-retention.js +184 -0
- package/src/generators/slice/built-in-plan-metadata-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-metadata-files.js +157 -28
- package/src/generators/slice/built-in-plan-native-runtime-authority-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-native-runtime-authority-files.js +324 -0
- package/src/generators/slice/built-in-plan-operations-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-operations-files.js +585 -97
- package/src/generators/slice/built-in-plan-performance-files.d.ts +2 -1
- package/src/generators/slice/built-in-plan-performance-files.js +220 -1074
- package/src/generators/slice/built-in-plan-project-files.js +141 -135
- package/src/generators/slice/built-in-plan-release-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-release-files.js +310 -70
- package/src/generators/slice/built-in-plan-reliability-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-reliability-files.js +279 -43
- package/src/generators/slice/built-in-plan-secret-runtime-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-secret-runtime-files.js +87 -76
- package/src/generators/slice/built-in-plan-shared.d.ts +4 -2
- package/src/generators/slice/built-in-plan-shared.js +41 -19
- package/src/generators/slice/built-in-plan-sql-events.d.ts +2 -0
- package/src/generators/slice/built-in-plan-sql-events.js +276 -0
- package/src/generators/slice/built-in-plan-testing-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-testing-files.js +304 -172
- package/src/generators/slice/built-in-plan-testing-persistence-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-testing-persistence-files.js +178 -0
- package/src/generators/slice/built-in-plan-thin-release-files.d.ts +11 -0
- package/src/generators/slice/built-in-plan-thin-release-files.js +162 -0
- package/src/generators/slice/built-in-plan-verification-files.js +76 -2
- package/src/generators/slice/built-in-plan-web-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-web-files.js +223 -16
- package/src/generators/slice/built-in-plan-workload-role-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-workload-role-files.js +143 -279
- package/src/generators/slice/built-in-plan.d.ts +11 -1
- package/src/generators/slice/built-in-plan.js +80 -29
- package/src/generators/slice/data-policy-review-seed.d.ts +2 -0
- package/src/generators/slice/data-policy-review-seed.js +22 -0
- package/src/generators/slice/deployed-smoke-readiness.d.ts +2 -0
- package/src/generators/slice/deployed-smoke-readiness.js +214 -0
- package/src/generators/slice/local-source-identity.d.ts +2 -0
- package/src/generators/slice/local-source-identity.js +31 -0
- package/src/generators/slice/persistence-contract.d.ts +14 -0
- package/src/generators/slice/persistence-contract.js +32 -0
- package/src/generators/slice/slice.js +61 -50
- package/src/generators/sql/schema.d.ts +7 -0
- package/src/generators/sql/schema.json +38 -0
- package/src/generators/sql/sql.d.ts +6 -0
- package/src/generators/sql/sql.js +53 -0
- package/src/generators/upgrade/sql-seeded-reconciliation.d.ts +2 -0
- package/src/generators/upgrade/sql-seeded-reconciliation.js +170 -0
- package/src/generators/upgrade/upgrade.d.ts +15 -1
- package/src/generators/upgrade/upgrade.js +435 -44
- package/src/generators/workload/performance-registration.d.ts +1 -0
- package/src/generators/workload/performance-registration.js +9 -11
- package/src/generators/workload/service-performance-files.d.ts +1 -0
- package/src/generators/workload/service-performance-files.js +27 -7
- package/src/generators/workload/workload.d.ts +1 -1
- package/src/generators/workload/workload.js +105 -29
- package/src/git-policy/action-pins.d.ts +5 -0
- package/src/git-policy/action-pins.js +5 -0
- package/src/git-policy/github-bootstrap.d.ts +39 -8
- package/src/git-policy/github-bootstrap.js +329 -175
- package/src/git-policy/routing.d.ts +7 -1
- package/src/git-policy/routing.js +62 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/infrastructure-change/local-capability.d.ts +73 -0
- package/src/infrastructure-change/local-capability.js +114 -0
- package/src/infrastructure-change/model.d.ts +25 -4
- package/src/infrastructure-change/model.js +1 -0
- package/src/infrastructure-change/normalize.d.ts +4 -0
- package/src/infrastructure-change/normalize.js +47 -7
- package/src/infrastructure-change/plan.d.ts +30 -3
- package/src/infrastructure-change/plan.js +323 -13
- package/src/infrastructure-change/risk.d.ts +3 -1
- package/src/infrastructure-change/risk.js +96 -16
- package/src/local-dev/browser-verification.d.ts +37 -0
- package/src/local-dev/browser-verification.js +281 -0
- package/src/local-dev/contracts.d.ts +10 -1
- package/src/local-dev/contracts.js +114 -13
- package/src/local-dev/dev-command-core.js +24 -5
- package/src/local-dev/docker-credential-health.d.ts +14 -0
- package/src/local-dev/docker-credential-health.js +94 -0
- package/src/local-dev/environment-inspector.d.ts +7 -0
- package/src/local-dev/environment-inspector.js +42 -15
- package/src/local-dev/environment-state.js +2 -2
- package/src/local-dev/errors.d.ts +1 -1
- package/src/local-dev/errors.js +2 -0
- package/src/local-dev/fleet-client.js +2 -2
- package/src/local-dev/fleet-configuration.js +57 -25
- package/src/local-dev/fleet-inventory.js +46 -18
- package/src/local-dev/fleet-ipc.d.ts +7 -0
- package/src/local-dev/fleet-ipc.js +14 -2
- package/src/local-dev/fleet-launcher.d.ts +6 -0
- package/src/local-dev/fleet-launcher.js +14 -2
- package/src/local-dev/fleet-logs.js +50 -22
- package/src/local-dev/fleet-process.d.ts +20 -1
- package/src/local-dev/fleet-process.js +197 -41
- package/src/local-dev/fleet-runner-evidence.d.ts +5 -0
- package/src/local-dev/fleet-runner-evidence.js +56 -0
- package/src/local-dev/fleet-runtime.js +268 -229
- package/src/local-dev/fleet-session.d.ts +2 -0
- package/src/local-dev/fleet-session.js +28 -11
- package/src/local-dev/fleet-slice-runner-daemon.js +4 -0
- package/src/local-dev/fleet-state.d.ts +5 -2
- package/src/local-dev/fleet-state.js +25 -4
- package/src/local-dev/fleet-supervisor.d.ts +3 -0
- package/src/local-dev/fleet-supervisor.js +66 -11
- package/src/local-dev/fleet-web-start.d.ts +12 -0
- package/src/local-dev/fleet-web-start.js +48 -0
- package/src/local-dev/identity.js +3 -14
- package/src/local-dev/index.d.ts +1 -0
- package/src/local-dev/index.js +1 -0
- package/src/local-dev/native-completion.d.ts +9 -0
- package/src/local-dev/native-completion.js +130 -0
- package/src/local-dev/nx-workspace.d.ts +4 -2
- package/src/local-dev/nx-workspace.js +11 -6
- package/src/local-dev/personal-stage.d.ts +4 -5
- package/src/local-dev/personal-stage.js +6 -54
- package/src/local-dev/port-claims.d.ts +13 -0
- package/src/local-dev/port-claims.js +46 -0
- package/src/local-dev/ports.d.ts +14 -2
- package/src/local-dev/ports.js +78 -3
- package/src/local-dev/private-state.d.ts +11 -0
- package/src/local-dev/private-state.js +146 -40
- package/src/local-dev/process-group.d.ts +4 -0
- package/src/local-dev/process-group.js +29 -0
- package/src/local-dev/process-identity.d.ts +8 -0
- package/src/local-dev/process-identity.js +31 -1
- package/src/local-dev/proxy.js +11 -12
- package/src/local-dev/runtime-paths.js +1 -1
- package/src/local-dev/slice-claim.js +1 -1
- package/src/local-dev/slice-runner.d.ts +15 -6
- package/src/local-dev/slice-runner.js +189 -54
- package/src/local-dev/task-attachment.d.ts +17 -0
- package/src/local-dev/task-attachment.js +73 -0
- package/src/local-dev/task-authority.d.ts +10 -0
- package/src/local-dev/task-authority.js +27 -0
- package/src/local-dev/task-identity.d.ts +33 -0
- package/src/local-dev/task-identity.js +418 -0
- package/src/local-dev/task-native-writer.d.ts +18 -0
- package/src/local-dev/task-native-writer.js +329 -0
- package/src/local-dev/tls.js +8 -2
- package/src/local-dev/web-launch.d.ts +9 -0
- package/src/local-dev/web-launch.js +130 -0
- package/src/ownership/composition.d.ts +2 -1
- package/src/ownership/composition.js +1 -0
- package/src/performance/cost-collection.d.ts +1 -1
- package/src/performance/cost-collection.js +4 -2
- package/src/performance/cost-controls.d.ts +8 -4
- package/src/performance/cost-controls.js +39 -28
- package/src/performance/evidence.d.ts +1 -1
- package/src/performance/evidence.js +5 -3
- package/src/performance/load-safety.js +5 -3
- package/src/performance/model.d.ts +4 -4
- package/src/performance/model.js +4 -5
- package/src/performance/scenario.d.ts +22 -0
- package/src/performance/scenario.js +100 -92
- package/src/release/index.d.ts +0 -2
- package/src/release/index.js +0 -2
- package/src/release/source-authority.d.ts +5 -5
- package/src/release/source-authority.js +141 -124
- package/src/repository-policy/aurora-preflight.d.ts +1 -1
- package/src/repository-policy/aurora-preflight.js +4 -1
- package/src/repository-policy/capacity-migration.d.ts +3 -0
- package/src/repository-policy/capacity-migration.js +21 -0
- package/src/repository-policy/deployment-plan.d.ts +4 -1
- package/src/repository-policy/deployment-plan.js +9 -0
- package/src/repository-policy/foundation-profile.js +10 -1
- package/src/repository-policy/policy.d.ts +57 -3
- package/src/repository-policy/policy.js +497 -11
- package/src/schemas/blueprint-v1.json +5 -4
- package/src/schemas/foundation-requirement-v1.json +5 -4
- package/src/schemas/performance-policy-v1.json +3 -3
- package/src/schemas/repository-policy-v1.json +130 -6
- package/src/schemas/testing-evidence-result-v1.json +1 -1
- package/src/secrets/adapters.d.ts +7 -2
- package/src/secrets/adapters.js +34 -3
- package/src/secrets/aws-control-plane.d.ts +10 -1
- package/src/secrets/aws-control-plane.js +67 -0
- package/src/secrets/generated-aws-control-plane.d.ts +23 -0
- package/src/secrets/generated-aws-control-plane.js +259 -0
- package/src/secrets/metadata.js +38 -10
- package/src/secrets/model.d.ts +8 -1
- package/src/secrets/model.js +24 -3
- package/src/secrets/operator.d.ts +91 -3
- package/src/secrets/operator.js +463 -13
- package/src/secrets/registry.d.ts +2 -1
- package/src/secrets/registry.js +18 -1
- package/src/secrets/verification.js +9 -1
- package/src/secrets/workload-access.js +10 -2
- package/src/sst-environment-source-format.d.ts +6 -0
- package/src/sst-environment-source-format.js +199 -0
- package/src/supply-chain/action-pins.js +61 -7
- package/src/supply-chain/blueprint-trust-git.js +85 -24
- package/src/supply-chain/blueprint-verification-authority.js +55 -3
- package/src/supply-chain/build-output-bounds.d.ts +2 -0
- package/src/supply-chain/build-output-bounds.js +12 -0
- package/src/supply-chain/build-output.d.ts +7 -1
- package/src/supply-chain/build-output.js +177 -24
- package/src/supply-chain/ecr-scanning.d.ts +5 -3
- package/src/supply-chain/ecr-scanning.js +11 -7
- package/src/supply-chain/ecs-deployed-image.d.ts +5 -3
- package/src/supply-chain/ecs-deployed-image.js +6 -4
- package/src/supply-chain/generated-blueprint-trust-command.js +18 -1
- package/src/supply-chain/generated-command.js +1 -0
- package/src/supply-chain/generated-container-release-command.js +1285 -124
- package/src/supply-chain/generated-ecr-collector-command.d.ts +0 -1
- package/src/supply-chain/generated-ecr-collector-command.js +200 -93
- package/src/supply-chain/generated-files.js +25 -14
- package/src/supply-chain/generated-scanner-command.js +2 -1
- package/src/supply-chain/index.d.ts +1 -1
- package/src/supply-chain/index.js +2 -1
- package/src/supply-chain/sbom.d.ts +1 -1
- package/src/supply-chain/sbom.js +30 -5
- package/src/supply-chain/scanner.js +3 -0
- package/src/testing-evidence/fixture-scope.d.ts +2 -1
- package/src/testing-evidence/fixture-scope.js +4 -2
- package/src/testing-evidence/result.d.ts +2 -1
- package/src/testing-evidence/result.js +18 -4
- package/src/workload-roles/account-baseline.d.ts +11 -0
- package/src/workload-roles/account-baseline.js +253 -16
- package/src/workload-roles/authority.d.ts +3 -1
- package/src/workload-roles/authority.js +48 -2
- package/src/workload-roles/aws-s3-state.js +27 -0
- package/src/workload-roles/boundary.d.ts +2 -1
- package/src/workload-roles/boundary.js +9 -2
- package/src/workload-roles/handler.js +52 -24
- package/src/workload-roles/index.d.ts +10 -17
- package/src/workload-roles/index.js +5 -18
- package/src/workload-roles/injection.js +1 -1
- package/src/workload-roles/provisioner.js +12 -4
- package/src/workload-roles/registration.d.ts +1 -0
- package/src/workload-roles/registration.js +5 -0
- package/src/workload-roles/stage-boundary.js +1 -1
- package/src/workload-roles/standard-slice.js +3 -3
- package/src/workspace-deployment/affected-lifecycle.d.ts +53 -0
- package/src/workspace-deployment/affected-lifecycle.js +84 -0
- package/src/workspace-deployment/identity.d.ts +3 -0
- package/src/workspace-deployment/identity.js +22 -0
- package/src/workspace-deployment/index.d.ts +4 -0
- package/src/workspace-deployment/index.js +8 -0
- package/src/workspace-deployment/migration-evidence.d.ts +29 -0
- package/src/workspace-deployment/migration-evidence.js +83 -0
- package/src/workspace-deployment/migration.d.ts +27 -0
- package/src/workspace-deployment/migration.js +109 -0
- package/src/workspace-deployment/ownership.d.ts +81 -0
- package/src/workspace-deployment/ownership.js +381 -0
- package/src/api-contract/baseline-update.js.map +0 -1
- package/src/api-contract/compatibility.js.map +0 -1
- package/src/api-contract/contract-graph.js.map +0 -1
- package/src/api-contract/evidence.js.map +0 -1
- package/src/api-contract/index.js.map +0 -1
- package/src/api-contract/model.fixtures.d.ts +0 -2
- package/src/api-contract/model.fixtures.js +0 -81
- package/src/api-contract/model.fixtures.js.map +0 -1
- package/src/api-contract/model.js.map +0 -1
- package/src/api-contract/rollout.js.map +0 -1
- package/src/authorization/compatibility.js.map +0 -1
- package/src/authorization/index.js.map +0 -1
- package/src/blueprints/execution.js.map +0 -1
- package/src/blueprints/external-sandbox.js.map +0 -1
- package/src/blueprints/index.js.map +0 -1
- package/src/blueprints/inputs.js.map +0 -1
- package/src/blueprints/manifest.js.map +0 -1
- package/src/blueprints/resolver.js.map +0 -1
- package/src/blueprints/transitions.js.map +0 -1
- package/src/cli/agent-command.js.map +0 -1
- package/src/cli/agent-runtime.js.map +0 -1
- package/src/cli/blueprint-authority.js.map +0 -1
- package/src/cli/blueprint-command.js.map +0 -1
- package/src/cli/bootstrap.js.map +0 -1
- package/src/cli/dev-command.js.map +0 -1
- package/src/cli/main.js.map +0 -1
- package/src/cli/output.js.map +0 -1
- package/src/cli/personal-secret-runtime.js.map +0 -1
- package/src/cli/secret-terminal.js.map +0 -1
- package/src/container-images.js.map +0 -1
- package/src/data-lifecycle/index.js.map +0 -1
- package/src/data-lifecycle/model.fixtures.d.ts +0 -2
- package/src/data-lifecycle/model.fixtures.js +0 -244
- package/src/data-lifecycle/model.fixtures.js.map +0 -1
- package/src/data-lifecycle/model.js.map +0 -1
- package/src/data-lifecycle/sensitive-artifacts.js.map +0 -1
- package/src/data-lifecycle/validation.js.map +0 -1
- package/src/database-retirement/contract.js.map +0 -1
- package/src/database-retirement/index.js.map +0 -1
- package/src/deterministic-order.js.map +0 -1
- package/src/developer-agent/context.js.map +0 -1
- package/src/developer-agent/generator-planning.js.map +0 -1
- package/src/developer-agent/generator-preview.js.map +0 -1
- package/src/developer-agent/git-inspection.js.map +0 -1
- package/src/developer-agent/handoff.js.map +0 -1
- package/src/developer-agent/index.js.map +0 -1
- package/src/developer-agent/model.js.map +0 -1
- package/src/developer-agent/operation-registry.js.map +0 -1
- package/src/developer-agent/ordering.js.map +0 -1
- package/src/developer-agent/planning.js.map +0 -1
- package/src/developer-agent/preview-changes.js.map +0 -1
- package/src/developer-agent/preview-source.js.map +0 -1
- package/src/developer-agent/validation.js.map +0 -1
- package/src/developer-agent/workspace-inspection.js.map +0 -1
- package/src/developer-agent/workspace-path.js.map +0 -1
- package/src/executors/blueprint-trust/blueprint-trust.js.map +0 -1
- package/src/executors/blueprint-verification/blueprint-verification.js.map +0 -1
- package/src/executors/deploy/deploy.js.map +0 -1
- package/src/executors/deployment-plan/deployment-plan.js.map +0 -1
- package/src/executors/dev/dev.js.map +0 -1
- package/src/executors/dev-doctor/dev-doctor.js.map +0 -1
- package/src/executors/dev-setup/dev-setup.js.map +0 -1
- package/src/executors/developer-context/developer-context.js.map +0 -1
- package/src/executors/fleet/fleet.js.map +0 -1
- package/src/executors/foundation-preflight/foundation-preflight.js.map +0 -1
- package/src/executors/foundation-profile-preflight/foundation-profile-preflight.js.map +0 -1
- package/src/executors/foundation-remove-preflight/foundation-remove-preflight.js.map +0 -1
- package/src/executors/github-bootstrap/github-bootstrap.js.map +0 -1
- package/src/executors/infrastructure-plan/infrastructure-plan.js.map +0 -1
- package/src/executors/refresh/refresh.js.map +0 -1
- package/src/executors/remove/remove.js.map +0 -1
- package/src/executors/secret-guardrails/secret-guardrails.js.map +0 -1
- package/src/executors/secret-metadata/secret-metadata.js.map +0 -1
- package/src/executors/sst-lifecycle/logging-preflight.js.map +0 -1
- package/src/executors/sst-lifecycle/run-sst-command.js.map +0 -1
- package/src/executors/sst-lifecycle/secret-preflight.js.map +0 -1
- package/src/executors/unlock/unlock.js.map +0 -1
- package/src/executors/work-markers/work-markers.js.map +0 -1
- package/src/foundation/discovery.js.map +0 -1
- package/src/foundation/index.js.map +0 -1
- package/src/foundation/local-database-contract.js.map +0 -1
- package/src/foundation/logging-preflight.js.map +0 -1
- package/src/foundation/logging.js.map +0 -1
- package/src/foundation/preflight.js.map +0 -1
- package/src/foundation/provision-database-bindings.js.map +0 -1
- package/src/foundation/provision-logical-database.js.map +0 -1
- package/src/foundation/requirements.js.map +0 -1
- package/src/foundation/router-origin-proof.js.map +0 -1
- package/src/foundation/stages.js.map +0 -1
- package/src/frontend-security/index.js.map +0 -1
- package/src/frontend-security/security-headers.js.map +0 -1
- package/src/generators/feature-registry.js.map +0 -1
- package/src/generators/function/function.js.map +0 -1
- package/src/generators/job/job.js.map +0 -1
- package/src/generators/logging-registry.js.map +0 -1
- package/src/generators/post-generation-install.js.map +0 -1
- package/src/generators/preset/generator.js.map +0 -1
- package/src/generators/preset/tool-versions.js.map +0 -1
- package/src/generators/preset/workspace-files-developer-agent.js.map +0 -1
- package/src/generators/preset/workspace-files-foundation-workload-roles.js.map +0 -1
- package/src/generators/preset/workspace-files-performance-cost.js.map +0 -1
- package/src/generators/preset/workspace-files-performance-load.js.map +0 -1
- package/src/generators/preset/workspace-files-workload-role-baseline.js.map +0 -1
- package/src/generators/preset/workspace-files.js.map +0 -1
- package/src/generators/repository-policy/repository-policy.js.map +0 -1
- package/src/generators/service/service.js.map +0 -1
- package/src/generators/slice/built-in-plan-api-contract-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-api-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-async-work-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-authorization-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-deletion-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-retention-job-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-data-rights-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-foundation-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-frontend-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-infrastructure-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-metadata-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-operations-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-performance-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-project-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-release-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-reliability-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-secret-runtime-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-shared.js.map +0 -1
- package/src/generators/slice/built-in-plan-testing-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-verification-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-web-files.js.map +0 -1
- package/src/generators/slice/built-in-plan-workload-role-files.js.map +0 -1
- package/src/generators/slice/built-in-plan.js.map +0 -1
- package/src/generators/slice/slice.js.map +0 -1
- package/src/generators/upgrade/upgrade.js.map +0 -1
- package/src/generators/workload/frozen-container.js.map +0 -1
- package/src/generators/workload/performance-registration.js.map +0 -1
- package/src/generators/workload/reliability-registration.js.map +0 -1
- package/src/generators/workload/service-performance-files.js.map +0 -1
- package/src/generators/workload/workload.js.map +0 -1
- package/src/git-policy/action-pins.js.map +0 -1
- package/src/git-policy/github-bootstrap.js.map +0 -1
- package/src/git-policy/index.js.map +0 -1
- package/src/git-policy/routing.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/infrastructure-change/convergence.js.map +0 -1
- package/src/infrastructure-change/drift.js.map +0 -1
- package/src/infrastructure-change/index.js.map +0 -1
- package/src/infrastructure-change/model.js.map +0 -1
- package/src/infrastructure-change/normalize.js.map +0 -1
- package/src/infrastructure-change/plan.js.map +0 -1
- package/src/infrastructure-change/risk.js.map +0 -1
- package/src/infrastructure-change/summary.js.map +0 -1
- package/src/local-dev/context-discovery.js.map +0 -1
- package/src/local-dev/contract-validation.js.map +0 -1
- package/src/local-dev/contracts.js.map +0 -1
- package/src/local-dev/control-contract.js.map +0 -1
- package/src/local-dev/dev-command-core.js.map +0 -1
- package/src/local-dev/effects.js.map +0 -1
- package/src/local-dev/environment-inspector.js.map +0 -1
- package/src/local-dev/environment-state.js.map +0 -1
- package/src/local-dev/errors.js.map +0 -1
- package/src/local-dev/fleet-client.js.map +0 -1
- package/src/local-dev/fleet-configuration.js.map +0 -1
- package/src/local-dev/fleet-inventory.js.map +0 -1
- package/src/local-dev/fleet-ipc.js.map +0 -1
- package/src/local-dev/fleet-launcher.js.map +0 -1
- package/src/local-dev/fleet-lock.js.map +0 -1
- package/src/local-dev/fleet-logs.js.map +0 -1
- package/src/local-dev/fleet-process.js.map +0 -1
- package/src/local-dev/fleet-runtime.js.map +0 -1
- package/src/local-dev/fleet-session.js.map +0 -1
- package/src/local-dev/fleet-slice-runner-daemon.js.map +0 -1
- package/src/local-dev/fleet-startup.js.map +0 -1
- package/src/local-dev/fleet-state.js.map +0 -1
- package/src/local-dev/fleet-supervisor-daemon.js.map +0 -1
- package/src/local-dev/fleet-supervisor.js.map +0 -1
- package/src/local-dev/gateway-daemon.js.map +0 -1
- package/src/local-dev/gateway.js.map +0 -1
- package/src/local-dev/identity.js.map +0 -1
- package/src/local-dev/index.js.map +0 -1
- package/src/local-dev/local-context.js.map +0 -1
- package/src/local-dev/nx-workspace.js.map +0 -1
- package/src/local-dev/personal-secret-ledger.js.map +0 -1
- package/src/local-dev/personal-stage.js.map +0 -1
- package/src/local-dev/portless.js.map +0 -1
- package/src/local-dev/ports.js.map +0 -1
- package/src/local-dev/private-state.js.map +0 -1
- package/src/local-dev/process-identity.js.map +0 -1
- package/src/local-dev/proxy.js.map +0 -1
- package/src/local-dev/runtime-paths.js.map +0 -1
- package/src/local-dev/secret-slice-claim.js.map +0 -1
- package/src/local-dev/slice-claim.js.map +0 -1
- package/src/local-dev/slice-runner.js.map +0 -1
- package/src/local-dev/tls.js.map +0 -1
- package/src/ownership/composition.js.map +0 -1
- package/src/ownership/foundation-record.js.map +0 -1
- package/src/ownership/hash.js.map +0 -1
- package/src/ownership/index.js.map +0 -1
- package/src/ownership/json-ownership.js.map +0 -1
- package/src/ownership/record.js.map +0 -1
- package/src/ownership/workspace-record.js.map +0 -1
- package/src/performance/cost-collection.js.map +0 -1
- package/src/performance/cost-controls.js.map +0 -1
- package/src/performance/evidence.js.map +0 -1
- package/src/performance/index.js.map +0 -1
- package/src/performance/load-safety.js.map +0 -1
- package/src/performance/model.js.map +0 -1
- package/src/performance/pr-artifact-budget.js.map +0 -1
- package/src/performance/runner.js.map +0 -1
- package/src/performance/scenario-endpoint.js.map +0 -1
- package/src/performance/scenario.js.map +0 -1
- package/src/performance/test-fixtures.d.ts +0 -7
- package/src/performance/test-fixtures.js +0 -169
- package/src/performance/test-fixtures.js.map +0 -1
- package/src/performance/unit-cost.js.map +0 -1
- package/src/release/index.js.map +0 -1
- package/src/release/lifecycle.js.map +0 -1
- package/src/release/manifest.js.map +0 -1
- package/src/release/rollout.js.map +0 -1
- package/src/release/source-authority.js.map +0 -1
- package/src/repository-policy/aurora-preflight.js.map +0 -1
- package/src/repository-policy/deployment-plan.js.map +0 -1
- package/src/repository-policy/foundation-profile.js.map +0 -1
- package/src/repository-policy/index.js.map +0 -1
- package/src/repository-policy/policy.js.map +0 -1
- package/src/secrets/adapters.js.map +0 -1
- package/src/secrets/aws-control-plane.js.map +0 -1
- package/src/secrets/declaration-verification.js.map +0 -1
- package/src/secrets/guardrails.js.map +0 -1
- package/src/secrets/index.js.map +0 -1
- package/src/secrets/metadata.js.map +0 -1
- package/src/secrets/model.js.map +0 -1
- package/src/secrets/operator.js.map +0 -1
- package/src/secrets/permissions.js.map +0 -1
- package/src/secrets/personal-command.js.map +0 -1
- package/src/secrets/personal-ledger.js.map +0 -1
- package/src/secrets/registry.js.map +0 -1
- package/src/secrets/verification.js.map +0 -1
- package/src/secrets/workload-access.js.map +0 -1
- package/src/supply-chain/action-pins.js.map +0 -1
- package/src/supply-chain/blueprint-trust-git.js.map +0 -1
- package/src/supply-chain/blueprint-trust-process.js.map +0 -1
- package/src/supply-chain/blueprint-trust.js.map +0 -1
- package/src/supply-chain/blueprint-verification-authority.js.map +0 -1
- package/src/supply-chain/blueprint-verification-execution.js.map +0 -1
- package/src/supply-chain/build-output.js.map +0 -1
- package/src/supply-chain/common.js.map +0 -1
- package/src/supply-chain/container-artifact-contract.js.map +0 -1
- package/src/supply-chain/container-release.js.map +0 -1
- package/src/supply-chain/ecr-applicability.js.map +0 -1
- package/src/supply-chain/ecr-scanning.js.map +0 -1
- package/src/supply-chain/ecs-deployed-image.js.map +0 -1
- package/src/supply-chain/errors.js.map +0 -1
- package/src/supply-chain/generated-blueprint-trust-command.js.map +0 -1
- package/src/supply-chain/generated-command.js.map +0 -1
- package/src/supply-chain/generated-container-release-command.js.map +0 -1
- package/src/supply-chain/generated-ecr-collector-command.js.map +0 -1
- package/src/supply-chain/generated-files.js.map +0 -1
- package/src/supply-chain/generated-scanner-command.js.map +0 -1
- package/src/supply-chain/index.js.map +0 -1
- package/src/supply-chain/inventory.js.map +0 -1
- package/src/supply-chain/license-expression.js.map +0 -1
- package/src/supply-chain/pnpm-toolchain-authority.js.map +0 -1
- package/src/supply-chain/policy.js.map +0 -1
- package/src/supply-chain/publication.js.map +0 -1
- package/src/supply-chain/sbom.js.map +0 -1
- package/src/supply-chain/scanner.js.map +0 -1
- package/src/supply-chain/vendored-source.js.map +0 -1
- package/src/testing-evidence/fixture-scope.js.map +0 -1
- package/src/testing-evidence/index.js.map +0 -1
- package/src/testing-evidence/quarantine.js.map +0 -1
- package/src/testing-evidence/result.js.map +0 -1
- package/src/testing-evidence/runner-adapter.js.map +0 -1
- package/src/testing-evidence/sensitive-artifacts.js.map +0 -1
- package/src/validation.js.map +0 -1
- package/src/work-markers/index.js.map +0 -1
- package/src/work-markers/work-markers.js.map +0 -1
- package/src/workload-roles/account-baseline.js.map +0 -1
- package/src/workload-roles/authority.js.map +0 -1
- package/src/workload-roles/aws-adapter.js.map +0 -1
- package/src/workload-roles/aws-internal-handler.js.map +0 -1
- package/src/workload-roles/aws-s3-state.js.map +0 -1
- package/src/workload-roles/aws-sdk-control-plane.js.map +0 -1
- package/src/workload-roles/boundary.js.map +0 -1
- package/src/workload-roles/convergence.js.map +0 -1
- package/src/workload-roles/effective-policy.js.map +0 -1
- package/src/workload-roles/handler.js.map +0 -1
- package/src/workload-roles/history.js.map +0 -1
- package/src/workload-roles/index.js.map +0 -1
- package/src/workload-roles/injection.js.map +0 -1
- package/src/workload-roles/manifest.js.map +0 -1
- package/src/workload-roles/provisioner.js.map +0 -1
- package/src/workload-roles/registration.js.map +0 -1
- package/src/workload-roles/stage-boundary.js.map +0 -1
- package/src/workload-roles/standard-slice.js.map +0 -1
|
@@ -158,6 +158,7 @@ function requireExactFoundationAccountCostAuthority(input) {
|
|
|
158
158
|
}
|
|
159
159
|
function createFoundationAccountCostControlPlan(input) {
|
|
160
160
|
const policy = validateFoundationAccountCostPolicy(input.policy);
|
|
161
|
+
const rehearsalStage = input.rehearsalStage ?? 'staging';
|
|
161
162
|
if (!IDENTIFIER.test(input.stage) ||
|
|
162
163
|
input.stage.length > 128 ||
|
|
163
164
|
input.workspace !== policy.workspace) {
|
|
@@ -178,8 +179,14 @@ function createFoundationAccountCostControlPlan(input) {
|
|
|
178
179
|
stage: input.stage,
|
|
179
180
|
workspace: input.workspace,
|
|
180
181
|
};
|
|
181
|
-
if (input.stage
|
|
182
|
-
|
|
182
|
+
if ((input.stage === 'development' && policy.status === 'example') ||
|
|
183
|
+
(input.stage !== rehearsalStage && input.stage !== 'production')) {
|
|
184
|
+
return {
|
|
185
|
+
...shared,
|
|
186
|
+
anomaly: null,
|
|
187
|
+
budget: null,
|
|
188
|
+
status: 'disabled-non-protected-stage',
|
|
189
|
+
};
|
|
183
190
|
}
|
|
184
191
|
requireCommercialBillingRegion(input.region ?? '');
|
|
185
192
|
if (!(0, model_js_1.isIsoInstant)(input.evaluatedAt) ||
|
|
@@ -191,6 +198,29 @@ function createFoundationAccountCostControlPlan(input) {
|
|
|
191
198
|
}
|
|
192
199
|
return {
|
|
193
200
|
...shared,
|
|
201
|
+
anomaly: input.stage === 'production'
|
|
202
|
+
? {
|
|
203
|
+
monitor: {
|
|
204
|
+
dimension: 'SERVICE',
|
|
205
|
+
monitorType: 'DIMENSIONAL',
|
|
206
|
+
owner: 'foundation',
|
|
207
|
+
scope: 'production-account',
|
|
208
|
+
},
|
|
209
|
+
subscription: {
|
|
210
|
+
frequency: 'IMMEDIATE',
|
|
211
|
+
name: stableName(100, input.workspace, 'account-cost-anomaly-alerts'),
|
|
212
|
+
thresholdExpression: {
|
|
213
|
+
dimension: {
|
|
214
|
+
key: 'ANOMALY_TOTAL_IMPACT_ABSOLUTE',
|
|
215
|
+
matchOptions: ['GREATER_THAN_OR_EQUAL'],
|
|
216
|
+
values: [
|
|
217
|
+
(Math.max(1, Math.ceil(policy.monthlyMaximumUsd * 100 * 0.05)) / 100).toFixed(2),
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
}
|
|
223
|
+
: null,
|
|
194
224
|
budget: {
|
|
195
225
|
budgetType: 'COST',
|
|
196
226
|
limitAmount: policy.monthlyMaximumUsd.toFixed(2),
|
|
@@ -218,6 +248,7 @@ function createFoundationAccountCostControlPlan(input) {
|
|
|
218
248
|
}
|
|
219
249
|
function createPerformanceCostControlPlan(input) {
|
|
220
250
|
const policy = (0, model_js_1.validatePerformancePolicy)(input.policy);
|
|
251
|
+
const rehearsalStage = input.rehearsalStage ?? 'staging';
|
|
221
252
|
const accountBudgetAuthority = validateFoundationAccountCostAuthority(input.accountBudgetAuthority);
|
|
222
253
|
if (!IDENTIFIER.test(input.workspace) ||
|
|
223
254
|
input.workspace.length > 128 ||
|
|
@@ -235,6 +266,7 @@ function createPerformanceCostControlPlan(input) {
|
|
|
235
266
|
const materialDigest = `sha256:${(0, model_js_1.performanceDigest)({
|
|
236
267
|
accountBudgetAuthority,
|
|
237
268
|
policyDigest,
|
|
269
|
+
rehearsalStage,
|
|
238
270
|
})}`;
|
|
239
271
|
const shared = {
|
|
240
272
|
accountBudgetAuthority,
|
|
@@ -252,7 +284,8 @@ function createPerformanceCostControlPlan(input) {
|
|
|
252
284
|
stage: input.stage,
|
|
253
285
|
workspace: input.workspace,
|
|
254
286
|
};
|
|
255
|
-
if (input.stage
|
|
287
|
+
if ((input.stage === 'development' && policy.cost.status === 'example') ||
|
|
288
|
+
(input.stage !== rehearsalStage && input.stage !== 'production')) {
|
|
256
289
|
return {
|
|
257
290
|
...shared,
|
|
258
291
|
anomaly: null,
|
|
@@ -263,7 +296,7 @@ function createPerformanceCostControlPlan(input) {
|
|
|
263
296
|
requireCommercialBillingRegion(input.region ?? '');
|
|
264
297
|
requireAdoptedCostPolicy(policy, input.evaluatedAt);
|
|
265
298
|
const budgetNotifications = notifications(policy);
|
|
266
|
-
if (input.stage ===
|
|
299
|
+
if (input.stage === rehearsalStage) {
|
|
267
300
|
return {
|
|
268
301
|
...shared,
|
|
269
302
|
anomaly: null,
|
|
@@ -289,7 +322,7 @@ function createPerformanceCostControlPlan(input) {
|
|
|
289
322
|
tags: {
|
|
290
323
|
key: 'user:ebk:stage',
|
|
291
324
|
matchOptions: ['EQUALS'],
|
|
292
|
-
values: [
|
|
325
|
+
values: [rehearsalStage],
|
|
293
326
|
},
|
|
294
327
|
},
|
|
295
328
|
],
|
|
@@ -306,29 +339,7 @@ function createPerformanceCostControlPlan(input) {
|
|
|
306
339
|
}
|
|
307
340
|
return {
|
|
308
341
|
...shared,
|
|
309
|
-
anomaly:
|
|
310
|
-
monitor: {
|
|
311
|
-
monitorSpecification: JSON.stringify({
|
|
312
|
-
Tags: {
|
|
313
|
-
Key: 'ebk:cost-scope',
|
|
314
|
-
Values: [`${input.workspace}/${policy.slice}/${input.stage}`],
|
|
315
|
-
},
|
|
316
|
-
}),
|
|
317
|
-
monitorType: 'CUSTOM',
|
|
318
|
-
name: stableName(100, input.workspace, policy.slice, 'service-cost-anomalies'),
|
|
319
|
-
},
|
|
320
|
-
subscription: {
|
|
321
|
-
frequency: 'IMMEDIATE',
|
|
322
|
-
name: stableName(100, input.workspace, policy.slice, 'cost-anomaly-alerts'),
|
|
323
|
-
thresholdExpression: {
|
|
324
|
-
dimension: {
|
|
325
|
-
key: 'ANOMALY_TOTAL_IMPACT_ABSOLUTE',
|
|
326
|
-
matchOptions: ['GREATER_THAN_OR_EQUAL'],
|
|
327
|
-
values: [policy.cost.anomalyThresholdUsd.toFixed(2)],
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
},
|
|
342
|
+
anomaly: null,
|
|
332
343
|
pilotBudget: null,
|
|
333
344
|
status: 'ready',
|
|
334
345
|
};
|
|
@@ -14,7 +14,7 @@ export interface PerformanceObservationV1 {
|
|
|
14
14
|
budgetId: string;
|
|
15
15
|
environment: {
|
|
16
16
|
accountFingerprint?: string;
|
|
17
|
-
class: 'ci' | 'local' | 'production' | 'staging';
|
|
17
|
+
class: 'ci' | 'development' | 'local' | 'production' | 'staging';
|
|
18
18
|
region?: string;
|
|
19
19
|
stage?: string;
|
|
20
20
|
};
|
|
@@ -94,8 +94,9 @@ function observationFinding(budget, observation, policy, now, expectedRelease) {
|
|
|
94
94
|
!budget.evidenceProvenance.includes(observation.provenance)) {
|
|
95
95
|
throw new Error('observation identity, population, percentile, unit, scenario, or provenance does not match the budget');
|
|
96
96
|
}
|
|
97
|
-
if (!['ci', 'local', 'production', 'staging'].includes(observation.environment.class) ||
|
|
98
|
-
((observation.environment.class === '
|
|
97
|
+
if (!['ci', 'development', 'local', 'production', 'staging'].includes(observation.environment.class) ||
|
|
98
|
+
((observation.environment.class === 'development' ||
|
|
99
|
+
observation.environment.class === 'production' ||
|
|
99
100
|
observation.environment.class === 'staging') &&
|
|
100
101
|
(!observation.environment.accountFingerprint?.trim() ||
|
|
101
102
|
!observation.environment.region?.trim() ||
|
|
@@ -117,7 +118,8 @@ function observationFinding(budget, observation, policy, now, expectedRelease) {
|
|
|
117
118
|
(budget.metric === 'monthly-cost-usd' ||
|
|
118
119
|
budget.metric === 'unit-cost-usd')) {
|
|
119
120
|
const billing = observation.billingPeriod;
|
|
120
|
-
if ((observation.environment.class !== '
|
|
121
|
+
if ((observation.environment.class !== 'development' &&
|
|
122
|
+
observation.environment.class !== 'production' &&
|
|
121
123
|
observation.environment.class !== 'staging') ||
|
|
122
124
|
billing?.provider !== 'aws-billing-actual' ||
|
|
123
125
|
!(0, model_js_1.isIsoInstant)(billing.start) ||
|
|
@@ -181,8 +181,10 @@ function createProtectedLoadPlan(policyValue, input) {
|
|
|
181
181
|
if (validateEndpoint(input.target.endpoint) !== input.target.endpoint) {
|
|
182
182
|
throw new model_js_1.PerformanceContractError('performance-load-plan-invalid', 'plan/target/endpoint', 'must use the canonical exact HTTPS URL');
|
|
183
183
|
}
|
|
184
|
-
if (input.target.stage !== '
|
|
185
|
-
|
|
184
|
+
if (input.target.stage !== 'development' &&
|
|
185
|
+
input.target.stage !== 'staging' &&
|
|
186
|
+
input.target.stage !== 'production') {
|
|
187
|
+
throw new model_js_1.PerformanceContractError('performance-load-plan-invalid', 'plan/target/stage', 'must equal development, staging, or production');
|
|
186
188
|
}
|
|
187
189
|
if (!model_js_1.PERFORMANCE_WORKLOAD_KINDS.includes(input.workload)) {
|
|
188
190
|
throw new model_js_1.PerformanceContractError('performance-load-plan-invalid', 'plan/workload', 'must be a supported workload kind');
|
|
@@ -331,7 +333,7 @@ function validateProtectedLoadAuthorization(input) {
|
|
|
331
333
|
throw new model_js_1.PerformanceContractError('performance-load-production-refused', 'approval/productionException', 'production load requires explicit human-reviewed exceptional evidence');
|
|
332
334
|
}
|
|
333
335
|
}
|
|
334
|
-
else if (!policy.load.allowedProtectedStages.
|
|
336
|
+
else if (!new Set(policy.load.allowedProtectedStages).has(input.plan.target.stage)) {
|
|
335
337
|
throw new model_js_1.PerformanceContractError('performance-load-authorization-invalid', 'plan/target/stage', 'stage is not permitted by the adopter-owned protected-load policy');
|
|
336
338
|
}
|
|
337
339
|
return {
|
|
@@ -3,11 +3,11 @@ export declare const PERFORMANCE_POLICY_KIND: "ebk-performance-policy";
|
|
|
3
3
|
export declare const PERFORMANCE_EVIDENCE_PROVENANCE: readonly ["estimate", "test", "actual"];
|
|
4
4
|
export declare const PERFORMANCE_POPULATIONS: readonly ["all", "cache-hit", "cache-miss", "cold", "warm"];
|
|
5
5
|
export declare const PERFORMANCE_WORKLOAD_KINDS: readonly ["api-lambda", "async-worker", "browser", "database", "job", "service"];
|
|
6
|
-
export declare const PERFORMANCE_REQUIRED_TAG_KEYS: readonly ["ebk:cost-allocation", "ebk:cost-scope", "ebk:framework-version", "ebk:managed-by", "ebk:owner", "ebk:
|
|
6
|
+
export declare const PERFORMANCE_REQUIRED_TAG_KEYS: readonly ["ebk:cost-allocation", "ebk:cost-scope", "ebk:framework-version", "ebk:managed-by", "ebk:owner", "ebk:slice", "ebk:stage", "ebk:workspace"];
|
|
7
7
|
export type PerformanceEvidenceProvenance = (typeof PERFORMANCE_EVIDENCE_PROVENANCE)[number];
|
|
8
8
|
export type PerformancePopulation = (typeof PERFORMANCE_POPULATIONS)[number];
|
|
9
9
|
export type PerformanceWorkloadKind = (typeof PERFORMANCE_WORKLOAD_KINDS)[number];
|
|
10
|
-
export type PerformanceStage = 'production' | 'staging';
|
|
10
|
+
export type PerformanceStage = 'development' | 'production' | 'staging';
|
|
11
11
|
export interface PerformanceAuthorityHooksV1 {
|
|
12
12
|
/**
|
|
13
13
|
* Opaque reference to the reliability-owned journey/SLO declaration.
|
|
@@ -49,7 +49,7 @@ export interface PerformanceCapacityResourceV1 {
|
|
|
49
49
|
}
|
|
50
50
|
export declare const STANDARD_SERVICE_PER_TASK_CONCURRENCY = 32;
|
|
51
51
|
export interface PerformanceLoadLimitsV1 {
|
|
52
|
-
allowedProtectedStages: readonly ['staging'];
|
|
52
|
+
allowedProtectedStages: readonly ['development'] | readonly ['staging'];
|
|
53
53
|
maximumConcurrency: number;
|
|
54
54
|
maximumDurationSeconds: number;
|
|
55
55
|
maximumEstimatedCostUsd: number;
|
|
@@ -116,7 +116,7 @@ export declare function createStandardResourceTags(input: {
|
|
|
116
116
|
frameworkVersion: string;
|
|
117
117
|
managedBy?: string;
|
|
118
118
|
owner: string;
|
|
119
|
-
productionProfile: 'cost-optimized' | 'standard';
|
|
119
|
+
productionProfile: 'cost-optimized' | 'balanced' | 'standard';
|
|
120
120
|
repository: string;
|
|
121
121
|
slice: string;
|
|
122
122
|
stage: string;
|
package/src/performance/model.js
CHANGED
|
@@ -39,8 +39,6 @@ exports.PERFORMANCE_REQUIRED_TAG_KEYS = [
|
|
|
39
39
|
'ebk:framework-version',
|
|
40
40
|
'ebk:managed-by',
|
|
41
41
|
'ebk:owner',
|
|
42
|
-
'ebk:production-profile',
|
|
43
|
-
'ebk:repository',
|
|
44
42
|
'ebk:slice',
|
|
45
43
|
'ebk:stage',
|
|
46
44
|
'ebk:workspace',
|
|
@@ -296,10 +294,11 @@ function validatePerformancePolicy(value) {
|
|
|
296
294
|
'maximumRequests',
|
|
297
295
|
'productionExceptionalOnly',
|
|
298
296
|
], 'policy/load');
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
const allowedProtectedStages = JSON.stringify(value.load.allowedProtectedStages);
|
|
298
|
+
if ((allowedProtectedStages !== JSON.stringify(['development']) &&
|
|
299
|
+
allowedProtectedStages !== JSON.stringify(['staging'])) ||
|
|
301
300
|
value.load.productionExceptionalOnly !== true) {
|
|
302
|
-
throw new PerformanceContractError('performance-policy-invalid', 'policy/load', 'must default to
|
|
301
|
+
throw new PerformanceContractError('performance-policy-invalid', 'policy/load', 'must default to the profile rehearsal stage and exceptional production only');
|
|
303
302
|
}
|
|
304
303
|
positiveInteger(value.load.maximumConcurrency, 'policy/load/maximumConcurrency');
|
|
305
304
|
positiveInteger(value.load.maximumDurationSeconds, 'policy/load/maximumDurationSeconds');
|
|
@@ -36,6 +36,28 @@ export declare const PROTECTED_LOAD_SCENARIO_ADAPTERS: readonly [{
|
|
|
36
36
|
readonly saturationSignalRef: "database:connection-utilization-percent";
|
|
37
37
|
readonly version: "1.0.0";
|
|
38
38
|
readonly workload: "database";
|
|
39
|
+
}, {
|
|
40
|
+
readonly capacityBound: "rate";
|
|
41
|
+
readonly cleanupPath: "/__ebk/performance/async-worker/cleanup";
|
|
42
|
+
readonly id: "ebk-dynamodb-async-v1";
|
|
43
|
+
readonly mutation: true;
|
|
44
|
+
readonly requestMethod: "POST";
|
|
45
|
+
readonly requestPath: "/__ebk/performance/async-worker";
|
|
46
|
+
readonly scenarioId: "async-key-value-burst";
|
|
47
|
+
readonly saturationSignalRef: "dynamodb:protected-run-unprocessed-effects-percent";
|
|
48
|
+
readonly version: "1.0.0";
|
|
49
|
+
readonly workload: "async-worker";
|
|
50
|
+
}, {
|
|
51
|
+
readonly capacityBound: "concurrency";
|
|
52
|
+
readonly cleanupPath: "/__ebk/performance/database/cleanup";
|
|
53
|
+
readonly id: "ebk-dynamodb-v1";
|
|
54
|
+
readonly mutation: true;
|
|
55
|
+
readonly requestMethod: "POST";
|
|
56
|
+
readonly requestPath: "/__ebk/performance/database";
|
|
57
|
+
readonly scenarioId: "database-read-write";
|
|
58
|
+
readonly saturationSignalRef: "dynamodb:protected-request-budget-utilization-percent";
|
|
59
|
+
readonly version: "1.0.0";
|
|
60
|
+
readonly workload: "database";
|
|
39
61
|
}, {
|
|
40
62
|
readonly capacityBound: "concurrency";
|
|
41
63
|
readonly cleanupPath: "/__ebk/performance/service/cleanup";
|
|
@@ -613,101 +613,109 @@ async function cleanupProtectedLoadScenarioEffects(input) {
|
|
|
613
613
|
});
|
|
614
614
|
let remoteCleanup = 'not-required';
|
|
615
615
|
if (adapter.cleanupPath !== null) {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
accept: 'application/json',
|
|
645
|
-
'content-type': 'application/json',
|
|
646
|
-
...authorizationHeaders({
|
|
647
|
-
authorization,
|
|
648
|
-
hmacKey: input.hmacKey,
|
|
616
|
+
let removedSoFar = 0;
|
|
617
|
+
for (;;) {
|
|
618
|
+
const controller = new AbortController();
|
|
619
|
+
let timeout;
|
|
620
|
+
try {
|
|
621
|
+
const authorization = requestAuthorization({
|
|
622
|
+
adapter,
|
|
623
|
+
capacity,
|
|
624
|
+
hmacKeyId: input.hmacKey.id,
|
|
625
|
+
operation: 'cleanup',
|
|
626
|
+
plan: input.plan,
|
|
627
|
+
requestOrdinal: 1,
|
|
628
|
+
scenario,
|
|
629
|
+
});
|
|
630
|
+
const remainingRuntime = cleanupDeadline - Date.now();
|
|
631
|
+
if (remainingRuntime <= 0) {
|
|
632
|
+
throw invalid('cleanup/deadline', 'exhausted the bounded cleanup runtime before the request');
|
|
633
|
+
}
|
|
634
|
+
const requestTimeout = Math.min(CLEANUP_MAXIMUM_REQUEST_MILLISECONDS, remainingRuntime);
|
|
635
|
+
const request = (async () => {
|
|
636
|
+
const response = await fetchImplementation(scenarioUrl(input.plan, cleanupPath(adapter)), {
|
|
637
|
+
body: JSON.stringify({
|
|
638
|
+
planMaterialDigest: input.plan.materialDigest,
|
|
639
|
+
release: input.plan.release,
|
|
640
|
+
requestOrdinal: 1,
|
|
641
|
+
runId: input.plan.runId,
|
|
642
|
+
scenarioId: input.plan.scenarioId,
|
|
643
|
+
workload: input.plan.workload,
|
|
649
644
|
}),
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
645
|
+
headers: {
|
|
646
|
+
accept: 'application/json',
|
|
647
|
+
'content-type': 'application/json',
|
|
648
|
+
...authorizationHeaders({
|
|
649
|
+
authorization,
|
|
650
|
+
hmacKey: input.hmacKey,
|
|
651
|
+
}),
|
|
652
|
+
'user-agent': 'empire-builder-kit-protected-load-cleanup/1.0.0',
|
|
653
|
+
},
|
|
654
|
+
method: 'POST',
|
|
655
|
+
redirect: 'manual',
|
|
656
|
+
signal: controller.signal,
|
|
657
|
+
});
|
|
658
|
+
return { body: await response.json(), response };
|
|
659
|
+
})();
|
|
660
|
+
const expired = new Promise((_resolve, reject) => {
|
|
661
|
+
timeout = setTimeout(() => {
|
|
662
|
+
controller.abort();
|
|
663
|
+
reject(invalid('cleanup/deadline', 'exceeded the bounded cleanup request deadline'));
|
|
664
|
+
}, requestTimeout);
|
|
655
665
|
});
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
'
|
|
670
|
-
'
|
|
671
|
-
'
|
|
672
|
-
'
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
666
|
+
const { body, response } = await Promise.race([request, expired]);
|
|
667
|
+
onlyKeys(body, [
|
|
668
|
+
'kind',
|
|
669
|
+
'hmacKeyId',
|
|
670
|
+
'planMaterialDigest',
|
|
671
|
+
'release',
|
|
672
|
+
'remainingEffectCount',
|
|
673
|
+
'removedEffectCount',
|
|
674
|
+
'runId',
|
|
675
|
+
'scenarioId',
|
|
676
|
+
'schemaVersion',
|
|
677
|
+
'status',
|
|
678
|
+
'target',
|
|
679
|
+
], 'cleanup/response');
|
|
680
|
+
validateRelease(body.release, input.plan.release, 'cleanup/response/release');
|
|
681
|
+
onlyKeys(body.target, ['accountFingerprint', 'endpoint', 'region', 'slice'], 'cleanup/response/target');
|
|
682
|
+
const incomplete = body.status === 'cleanup-in-progress' &&
|
|
683
|
+
body.remainingEffectCount === null;
|
|
684
|
+
if (!response.ok ||
|
|
685
|
+
body.kind !== 'ebk-protected-load-cleanup-result' ||
|
|
686
|
+
body.hmacKeyId !== input.hmacKey.id ||
|
|
687
|
+
body.planMaterialDigest !== input.plan.materialDigest ||
|
|
688
|
+
(!incomplete && body.remainingEffectCount !== 0) ||
|
|
689
|
+
typeof body.removedEffectCount !== 'number' ||
|
|
690
|
+
!Number.isSafeInteger(body.removedEffectCount) ||
|
|
691
|
+
body.removedEffectCount < (incomplete ? 1 : 0) ||
|
|
692
|
+
body.removedEffectCount > input.plan.maximumRequests - removedSoFar ||
|
|
693
|
+
body.runId !== input.plan.runId ||
|
|
694
|
+
body.scenarioId !== input.plan.scenarioId ||
|
|
695
|
+
body.schemaVersion !== 1 ||
|
|
696
|
+
(!incomplete && body.status !== 'run-absent') ||
|
|
697
|
+
JSON.stringify(body.target) !==
|
|
698
|
+
JSON.stringify({
|
|
699
|
+
accountFingerprint: input.plan.target.accountFingerprint,
|
|
700
|
+
endpoint: scenarioUrl(input.plan, cleanupPath(adapter)),
|
|
701
|
+
region: input.plan.target.region,
|
|
702
|
+
slice: input.plan.slice,
|
|
703
|
+
})) {
|
|
704
|
+
throw invalid('cleanup/response', 'must prove every protected effect for the exact run is absent');
|
|
705
|
+
}
|
|
706
|
+
removedSoFar += body.removedEffectCount;
|
|
707
|
+
if (incomplete)
|
|
708
|
+
continue;
|
|
709
|
+
remoteCleanup = 'run-proved-absent';
|
|
710
|
+
break;
|
|
711
|
+
}
|
|
712
|
+
catch (error) {
|
|
713
|
+
throw invalid('cleanup', `did not prove the exact protected run absent (${error instanceof Error ? error.message : String(error)})`);
|
|
714
|
+
}
|
|
715
|
+
finally {
|
|
716
|
+
if (timeout !== undefined)
|
|
717
|
+
clearTimeout(timeout);
|
|
702
718
|
}
|
|
703
|
-
remoteCleanup = 'run-proved-absent';
|
|
704
|
-
}
|
|
705
|
-
catch (error) {
|
|
706
|
-
throw invalid('cleanup', `did not prove the exact protected run absent (${error instanceof Error ? error.message : String(error)})`);
|
|
707
|
-
}
|
|
708
|
-
finally {
|
|
709
|
-
if (timeout !== undefined)
|
|
710
|
-
clearTimeout(timeout);
|
|
711
719
|
}
|
|
712
720
|
}
|
|
713
721
|
const unsigned = {
|
package/src/release/index.d.ts
CHANGED
package/src/release/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./lifecycle.js"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./manifest.js"), exports);
|
|
6
4
|
tslib_1.__exportStar(require("./rollout.js"), exports);
|
|
7
5
|
tslib_1.__exportStar(require("./source-authority.js"), exports);
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,17 +3,17 @@ export interface ReviewedReleaseCheckoutInput {
|
|
|
3
3
|
releaseSourceCommit: string | undefined;
|
|
4
4
|
repositoryRoot?: string;
|
|
5
5
|
reviewedSourceCommit?: string;
|
|
6
|
+
sstEnvironmentProjectRoot?: string;
|
|
6
7
|
}
|
|
7
8
|
export interface ReviewedReleaseCheckout {
|
|
8
9
|
deploymentSourceCommit: string;
|
|
9
|
-
mode: 'exact-tree'
|
|
10
|
+
mode: 'exact-tree';
|
|
10
11
|
releaseSourceCommit: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Proves that protected release evidence can be consumed from the checked-out
|
|
14
|
-
* deployment commit.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* release source.
|
|
15
|
+
* deployment commit. Merge commits are supported through reviewedSourceCommit,
|
|
16
|
+
* but all three commits must resolve to the same exact source tree. Committed
|
|
17
|
+
* approval descendants and other source mutations are never release authority.
|
|
18
18
|
*/
|
|
19
19
|
export declare function validateReviewedReleaseCheckout(input: ReviewedReleaseCheckoutInput): ReviewedReleaseCheckout;
|