agentic-dev 0.2.11 → 0.2.13
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 +72 -54
- package/bin/agentic-dev.mjs +162 -11
- package/lib/github.mjs +246 -0
- package/lib/orchestration-assets.mjs +249 -0
- package/lib/scaffold.mjs +89 -0
- package/package.json +8 -19
- package/.dockerignore +0 -8
- package/.env.example +0 -50
- package/.gitignore +0 -16
- package/AGENTS.md +0 -86
- package/SDD_SKILL.md +0 -589
- package/compose.yml +0 -206
- package/infra/compose/.env.dev.example +0 -28
- package/infra/compose/.env.prod.example +0 -29
- package/infra/compose/README.md +0 -35
- package/infra/compose/dev.yml +0 -125
- package/infra/compose/prod.yml +0 -126
- package/infra/terraform/README.md +0 -34
- package/infra/terraform/aws/data/.terraform.lock.hcl +0 -25
- package/infra/terraform/aws/data/README.md +0 -18
- package/infra/terraform/aws/data/main.tf +0 -147
- package/infra/terraform/aws/data/outputs.tf +0 -14
- package/infra/terraform/aws/data/variables.tf +0 -57
- package/infra/terraform/aws/data/versions.tf +0 -10
- package/infra/terraform/aws/domain/.terraform.lock.hcl +0 -25
- package/infra/terraform/aws/domain/README.md +0 -20
- package/infra/terraform/aws/domain/env/dev.tfvars.example +0 -6
- package/infra/terraform/aws/domain/env/prod.tfvars.example +0 -7
- package/infra/terraform/aws/domain/main.tf +0 -149
- package/infra/terraform/aws/domain/outputs.tf +0 -29
- package/infra/terraform/aws/domain/variables.tf +0 -58
- package/infra/terraform/aws/domain/versions.tf +0 -10
- package/infra/terraform/openstack/README.md +0 -38
- package/infra/terraform/openstack/dev/.terraform.lock.hcl +0 -24
- package/infra/terraform/openstack/dev/README.md +0 -18
- package/infra/terraform/openstack/dev/main.tf +0 -49
- package/infra/terraform/openstack/dev/providers.tf +0 -15
- package/infra/terraform/openstack/dev/terraform.tfvars.example +0 -54
- package/infra/terraform/openstack/dev/variables.tf +0 -210
- package/infra/terraform/openstack/dev/versions.tf +0 -10
- package/infra/terraform/openstack/modules/environment_host/main.tf +0 -143
- package/infra/terraform/openstack/modules/environment_host/outputs.tf +0 -25
- package/infra/terraform/openstack/modules/environment_host/templates/docker-host-user-data.sh.tftpl +0 -40
- package/infra/terraform/openstack/modules/environment_host/variables.tf +0 -145
- package/infra/terraform/openstack/modules/environment_host/versions.tf +0 -7
- package/infra/terraform/openstack/prod/.terraform.lock.hcl +0 -24
- package/infra/terraform/openstack/prod/README.md +0 -18
- package/infra/terraform/openstack/prod/main.tf +0 -49
- package/infra/terraform/openstack/prod/providers.tf +0 -15
- package/infra/terraform/openstack/prod/terraform.tfvars.example +0 -55
- package/infra/terraform/openstack/prod/variables.tf +0 -210
- package/infra/terraform/openstack/prod/versions.tf +0 -10
- package/infra/terraform/openstack/server/.terraform.lock.hcl +0 -45
- package/infra/terraform/openstack/server/README.md +0 -47
- package/infra/terraform/openstack/server/main.tf +0 -161
- package/infra/terraform/openstack/server/outputs.tf +0 -30
- package/infra/terraform/openstack/server/providers.tf +0 -30
- package/infra/terraform/openstack/server/templates/server-user-data.sh.tftpl +0 -50
- package/infra/terraform/openstack/server/variables.tf +0 -233
- package/infra/terraform/openstack/server/zz_aspace.auto.tfvars.example.json +0 -29
- package/pnpm-workspace.yaml +0 -2
- package/scripts/dev/audit_sdd_build_ast.py +0 -277
- package/sdd/01_planning/01_feature/INDEX.md +0 -16
- package/sdd/01_planning/01_feature/README.md +0 -76
- package/sdd/01_planning/01_feature/alerts_feature_spec.md +0 -55
- package/sdd/01_planning/01_feature/auth_feature_spec.md +0 -57
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +0 -61
- package/sdd/01_planning/01_feature/fulfillment_feature_spec.md +0 -58
- package/sdd/01_planning/01_feature/health_feature_spec.md +0 -52
- package/sdd/01_planning/01_feature/inventory_feature_spec.md +0 -60
- package/sdd/01_planning/01_feature/order_feature_spec.md +0 -63
- package/sdd/01_planning/01_feature/shipping_feature_spec.md +0 -55
- package/sdd/01_planning/01_feature/support_feature_spec.md +0 -53
- package/sdd/01_planning/01_feature/user_feature_spec.md +0 -54
- package/sdd/01_planning/02_screen/INDEX.md +0 -13
- package/sdd/01_planning/02_screen/README.md +0 -41
- package/sdd/01_planning/02_screen/admin_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/assets/README.md +0 -16
- package/sdd/01_planning/02_screen/assets/example/README.md +0 -13
- package/sdd/01_planning/02_screen/landing_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/mobile_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/web_screen_spec.pdf +0 -0
- package/sdd/01_planning/03_architecture/INDEX.md +0 -9
- package/sdd/01_planning/03_architecture/README.md +0 -25
- package/sdd/01_planning/03_architecture/architecture_document_structure.md +0 -77
- package/sdd/01_planning/03_architecture/backend/README.md +0 -10
- package/sdd/01_planning/03_architecture/frontend/README.md +0 -12
- package/sdd/01_planning/03_architecture/infra/README.md +0 -10
- package/sdd/01_planning/03_architecture/tech-research/README.md +0 -4
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +0 -84
- package/sdd/01_planning/04_data/INDEX.md +0 -4
- package/sdd/01_planning/04_data/README.md +0 -10
- package/sdd/01_planning/04_data/templates_data_modeling.md +0 -119
- package/sdd/01_planning/05_api/README.md +0 -12
- package/sdd/01_planning/05_api/templates_api_contract.md +0 -90
- package/sdd/01_planning/06_iac/README.md +0 -11
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +0 -46
- package/sdd/01_planning/07_integration/README.md +0 -11
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +0 -46
- package/sdd/01_planning/08_nonfunctional/README.md +0 -7
- package/sdd/01_planning/09_security/README.md +0 -7
- package/sdd/01_planning/10_test/README.md +0 -12
- package/sdd/01_planning/10_test/templates_test_strategy.md +0 -60
- package/sdd/01_planning/INDEX.md +0 -19
- package/sdd/01_planning/README.md +0 -17
- package/sdd/02_plan/01_feature/README.md +0 -34
- package/sdd/02_plan/01_feature/_feature_todo_template.md +0 -29
- package/sdd/02_plan/02_screen/INDEX.md +0 -19
- package/sdd/02_plan/02_screen/README.md +0 -39
- package/sdd/02_plan/02_screen/_screen_todo_template.md +0 -60
- package/sdd/02_plan/03_architecture/README.md +0 -23
- package/sdd/02_plan/03_architecture/architecture_document_governance.md +0 -40
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +0 -53
- package/sdd/02_plan/03_architecture/repository_governance.md +0 -39
- package/sdd/02_plan/03_architecture/runtime_and_structure_governance.md +0 -38
- package/sdd/02_plan/03_architecture/templates-hexagonal-template-architecture.md +0 -9
- package/sdd/02_plan/03_architecture/toolchain_governance.md +0 -98
- package/sdd/02_plan/04_data/README.md +0 -5
- package/sdd/02_plan/05_api/README.md +0 -5
- package/sdd/02_plan/06_iac/README.md +0 -11
- package/sdd/02_plan/06_iac/dev_runtime_delivery.md +0 -36
- package/sdd/02_plan/06_iac/template_runtime_delivery.md +0 -50
- package/sdd/02_plan/07_integration/README.md +0 -5
- package/sdd/02_plan/07_integration/frontend_live_integration.md +0 -31
- package/sdd/02_plan/08_nonfunctional/README.md +0 -5
- package/sdd/02_plan/08_nonfunctional/repository_hygiene.md +0 -26
- package/sdd/02_plan/09_security/README.md +0 -5
- package/sdd/02_plan/10_test/README.md +0 -11
- package/sdd/02_plan/10_test/regression_verification.md +0 -39
- package/sdd/02_plan/10_test/templates/README.md +0 -8
- package/sdd/02_plan/10_test/templates/ui_parity_web_contract.template.yaml +0 -23
- package/sdd/02_plan/10_test/verification_strategy.md +0 -43
- package/sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep +0 -1
- package/sdd/02_plan/README.md +0 -40
- package/sdd/03_build/01_feature/README.md +0 -20
- package/sdd/03_build/01_feature/domain/README.md +0 -3
- package/sdd/03_build/01_feature/domain/account_and_access.md +0 -20
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +0 -20
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +0 -21
- package/sdd/03_build/01_feature/domain/support_and_observability.md +0 -21
- package/sdd/03_build/01_feature/domain_surfaces.md +0 -28
- package/sdd/03_build/01_feature/service/README.md +0 -3
- package/sdd/03_build/01_feature/service/admin_surface.md +0 -15
- package/sdd/03_build/01_feature/service/landing_surface.md +0 -13
- package/sdd/03_build/01_feature/service/mobile_surface.md +0 -14
- package/sdd/03_build/01_feature/service/web_surface.md +0 -14
- package/sdd/03_build/02_screen/README.md +0 -25
- package/sdd/03_build/02_screen/_screen_build_template.md +0 -26
- package/sdd/03_build/02_screen/admin/README.md +0 -5
- package/sdd/03_build/02_screen/landing/README.md +0 -5
- package/sdd/03_build/02_screen/mobile/README.md +0 -5
- package/sdd/03_build/02_screen/web/README.md +0 -5
- package/sdd/03_build/03_architecture/README.md +0 -10
- package/sdd/03_build/03_architecture/architecture_document_governance.md +0 -30
- package/sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md +0 -24
- package/sdd/03_build/03_architecture/repository_governance.md +0 -18
- package/sdd/03_build/03_architecture/toolchain_governance.md +0 -36
- package/sdd/03_build/06_iac/README.md +0 -3
- package/sdd/03_build/06_iac/dev_runtime_delivery.md +0 -10
- package/sdd/03_build/06_iac/template_runtime_delivery.md +0 -49
- package/sdd/03_build/07_integration/README.md +0 -3
- package/sdd/03_build/07_integration/frontend_live_integration.md +0 -11
- package/sdd/03_build/08_nonfunctional/README.md +0 -3
- package/sdd/03_build/08_nonfunctional/repository_hygiene.md +0 -10
- package/sdd/03_build/10_test/README.md +0 -9
- package/sdd/03_build/10_test/regression_verification.md +0 -16
- package/sdd/03_build/10_test/verification_harness.md +0 -11
- package/sdd/03_build/README.md +0 -35
- package/sdd/03_verify/01_feature/README.md +0 -5
- package/sdd/03_verify/01_feature/domain_verification.md +0 -14
- package/sdd/03_verify/01_feature/service_verification.md +0 -22
- package/sdd/03_verify/02_screen/README.md +0 -6
- package/sdd/03_verify/02_screen/_screen_verify_template.md +0 -20
- package/sdd/03_verify/02_screen/admin/README.md +0 -4
- package/sdd/03_verify/02_screen/landing/README.md +0 -4
- package/sdd/03_verify/02_screen/mobile/README.md +0 -4
- package/sdd/03_verify/02_screen/web/README.md +0 -4
- package/sdd/03_verify/03_architecture/README.md +0 -10
- package/sdd/03_verify/03_architecture/architecture_document_governance.md +0 -15
- package/sdd/03_verify/03_architecture/build_ast_runtime_tree_governance.md +0 -28
- package/sdd/03_verify/03_architecture/repository_governance.md +0 -16
- package/sdd/03_verify/03_architecture/toolchain_governance.md +0 -58
- package/sdd/03_verify/06_iac/README.md +0 -3
- package/sdd/03_verify/06_iac/dev_runtime_delivery.md +0 -10
- package/sdd/03_verify/06_iac/template_runtime_delivery.md +0 -42
- package/sdd/03_verify/07_integration/README.md +0 -3
- package/sdd/03_verify/07_integration/frontend_live_integration.md +0 -16
- package/sdd/03_verify/08_nonfunctional/README.md +0 -3
- package/sdd/03_verify/08_nonfunctional/repository_hygiene.md +0 -14
- package/sdd/03_verify/10_test/README.md +0 -9
- package/sdd/03_verify/10_test/regression_verification.md +0 -16
- package/sdd/03_verify/10_test/ui_parity/README.md +0 -4
- package/sdd/03_verify/10_test/ui_parity/loop_runs/.gitkeep +0 -0
- package/sdd/03_verify/10_test/ui_parity/reference/.gitkeep +0 -0
- package/sdd/03_verify/10_test/ui_parity/staged_runs/.gitkeep +0 -0
- package/sdd/03_verify/10_test/verification_harness.md +0 -17
- package/sdd/03_verify/README.md +0 -22
- package/sdd/05_operate/01_runbooks/.gitkeep +0 -1
- package/sdd/05_operate/01_runbooks/README.md +0 -4
- package/sdd/05_operate/02_delivery_status/README.md +0 -4
- package/sdd/05_operate/02_delivery_status/service_status.md +0 -16
- package/sdd/05_operate/README.md +0 -12
- package/sdd/99_toolchain/01_automation/.gitkeep +0 -1
- package/sdd/99_toolchain/01_automation/README.md +0 -76
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py +0 -132
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_route_gap.py +0 -85
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +0 -75
- package/sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh +0 -84
- package/sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh +0 -33
- package/sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh +0 -51
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +0 -76
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_frontend_target.py +0 -52
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py +0 -56
- package/sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh +0 -100
- package/sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh +0 -140
- package/sdd/99_toolchain/01_automation/agentic-dev/validate_json_schema.py +0 -39
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +0 -291
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/queue.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/support.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/home.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/workspace.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/fulfillment.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/orders.png +0 -0
- package/sdd/99_toolchain/01_automation/build_asset_recipes.py +0 -10
- package/sdd/99_toolchain/01_automation/build_screen_spec_pdf.py +0 -427
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +0 -148
- package/sdd/99_toolchain/01_automation/harness-layout.md +0 -34
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +0 -319
- package/sdd/99_toolchain/01_automation/playwright_exactness_manifest.py +0 -21
- package/sdd/99_toolchain/01_automation/run_playwright_exactness.py +0 -87
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +0 -321
- package/sdd/99_toolchain/01_automation/spec_asset_builder.py +0 -274
- package/sdd/99_toolchain/01_automation/ui-contract-projection.md +0 -79
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +0 -60
- package/sdd/99_toolchain/01_automation/ui-parity/cli/extract-reference-pages.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs +0 -58
- package/sdd/99_toolchain/01_automation/ui-parity/cli/normalize-reference-assets.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs +0 -187
- package/sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs +0 -50
- package/sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs +0 -62
- package/sdd/99_toolchain/01_automation/ui-parity/cli/upload-parity1.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/collector-metadata.schema.json +0 -33
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/proof-result.schema.json +0 -76
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/route-gap-report.schema.json +0 -95
- package/sdd/99_toolchain/01_automation/ui-parity/core/capture-runner.mjs +0 -55
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-adapter.mjs +0 -25
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-contract.mjs +0 -81
- package/sdd/99_toolchain/01_automation/ui-parity/core/paths.mjs +0 -23
- package/sdd/99_toolchain/01_automation/ui-parity/core/proof-runner.mjs +0 -255
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +0 -23
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-proof-interface.md +0 -60
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +0 -82
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/playwright-runtime.mjs +0 -16
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/static-runtime.mjs +0 -6
- package/sdd/99_toolchain/02_policies/.gitkeep +0 -1
- package/sdd/99_toolchain/02_policies/build-ast-governance-policy.md +0 -22
- package/sdd/99_toolchain/02_policies/compose-runtime-baseline-policy.md +0 -24
- package/sdd/99_toolchain/02_policies/convention-storage-policy.md +0 -26
- package/sdd/99_toolchain/02_policies/main-push-before-dev-deploy-policy.md +0 -27
- package/sdd/99_toolchain/02_policies/regression-verification-policy.md +0 -22
- package/sdd/99_toolchain/03_templates/.gitkeep +0 -1
- package/sdd/99_toolchain/03_templates/asset_recipe_manifest.example.py +0 -38
- package/sdd/99_toolchain/03_templates/generated_assets/README.md +0 -11
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-lockup.svg +0 -3
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-mark.svg +0 -3
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-wordmark.svg +0 -3
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +0 -21
- package/sdd/99_toolchain/README.md +0 -23
- package/sdd/README.md +0 -21
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -Eeuo pipefail
|
|
3
|
-
|
|
4
|
-
mkdir -p ${runtime_root}
|
|
5
|
-
|
|
6
|
-
cat > ${runtime_root}/server.env <<'ENVEOF'
|
|
7
|
-
${backend_env_text}
|
|
8
|
-
ENVEOF
|
|
9
|
-
|
|
10
|
-
install_container_runtime() {
|
|
11
|
-
if command -v apt-get >/dev/null 2>&1; then
|
|
12
|
-
export DEBIAN_FRONTEND=noninteractive
|
|
13
|
-
apt-get update
|
|
14
|
-
apt-get install -y docker.io git ca-certificates curl
|
|
15
|
-
elif command -v dnf >/dev/null 2>&1; then
|
|
16
|
-
dnf update -y
|
|
17
|
-
dnf install -y docker git ca-certificates curl
|
|
18
|
-
else
|
|
19
|
-
yum update -y
|
|
20
|
-
yum install -y docker git ca-certificates curl
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
systemctl enable docker
|
|
24
|
-
systemctl start docker
|
|
25
|
-
usermod -aG docker ubuntu >/dev/null 2>&1 || true
|
|
26
|
-
|
|
27
|
-
docker rm -f ${backend_container_name} >/dev/null 2>&1 || true
|
|
28
|
-
|
|
29
|
-
if [ -n "${backend_container_image}" ]; then
|
|
30
|
-
docker pull "${backend_container_image}"
|
|
31
|
-
docker run -d \
|
|
32
|
-
--name "${backend_container_name}" \
|
|
33
|
-
--restart unless-stopped \
|
|
34
|
-
--env-file ${runtime_root}/server.env \
|
|
35
|
-
-p ${backend_port}:${backend_port} \
|
|
36
|
-
"${backend_container_image}"
|
|
37
|
-
elif [ -n "${backend_repo_url}" ]; then
|
|
38
|
-
rm -rf "${runtime_root}/src"
|
|
39
|
-
git clone --depth 1 --branch "${backend_repo_ref}" "${backend_repo_url}" "${runtime_root}/src"
|
|
40
|
-
docker build -t ${backend_container_name}:bootstrap "${runtime_root}/src/${backend_repo_subdir}"
|
|
41
|
-
docker run -d \
|
|
42
|
-
--name "${backend_container_name}" \
|
|
43
|
-
--restart unless-stopped \
|
|
44
|
-
--env-file ${runtime_root}/server.env \
|
|
45
|
-
-p ${backend_port}:${backend_port} \
|
|
46
|
-
${backend_container_name}:bootstrap
|
|
47
|
-
fi
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
install_container_runtime
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
variable "auth_url" {
|
|
2
|
-
type = string
|
|
3
|
-
description = "OpenStack Keystone auth URL."
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
variable "region" {
|
|
7
|
-
type = string
|
|
8
|
-
description = "OpenStack region name."
|
|
9
|
-
default = "RegionOne"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
variable "interface" {
|
|
13
|
-
type = string
|
|
14
|
-
description = "OpenStack endpoint interface."
|
|
15
|
-
default = "public"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
variable "auth_type" {
|
|
19
|
-
type = string
|
|
20
|
-
description = "OpenStack auth type."
|
|
21
|
-
default = "password"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
variable "username" {
|
|
25
|
-
type = string
|
|
26
|
-
description = "OpenStack username."
|
|
27
|
-
default = ""
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
variable "password" {
|
|
31
|
-
type = string
|
|
32
|
-
description = "OpenStack password."
|
|
33
|
-
default = ""
|
|
34
|
-
sensitive = true
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
variable "project_name" {
|
|
38
|
-
type = string
|
|
39
|
-
description = "OpenStack project name."
|
|
40
|
-
default = ""
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
variable "user_domain_name" {
|
|
44
|
-
type = string
|
|
45
|
-
description = "OpenStack user domain name."
|
|
46
|
-
default = "Default"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
variable "project_domain_name" {
|
|
50
|
-
type = string
|
|
51
|
-
description = "OpenStack project domain name."
|
|
52
|
-
default = "Default"
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
variable "application_credential_id" {
|
|
56
|
-
type = string
|
|
57
|
-
description = "OpenStack application credential id."
|
|
58
|
-
default = ""
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
variable "application_credential_secret" {
|
|
62
|
-
type = string
|
|
63
|
-
description = "OpenStack application credential secret."
|
|
64
|
-
default = ""
|
|
65
|
-
sensitive = true
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
variable "insecure" {
|
|
69
|
-
type = bool
|
|
70
|
-
description = "Disable TLS validation."
|
|
71
|
-
default = false
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
variable "service_name" {
|
|
75
|
-
type = string
|
|
76
|
-
description = "Service short name."
|
|
77
|
-
default = "template-service"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
variable "application_name" {
|
|
81
|
-
type = string
|
|
82
|
-
description = "Human-readable application name passed to the backend environment."
|
|
83
|
-
default = "Template API"
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
variable "phase" {
|
|
87
|
-
type = string
|
|
88
|
-
description = "Deployment phase."
|
|
89
|
-
default = "dev"
|
|
90
|
-
|
|
91
|
-
validation {
|
|
92
|
-
condition = contains(["dev", "prod"], lower(var.phase))
|
|
93
|
-
error_message = "phase must be one of: dev, prod"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
variable "external_network_name" {
|
|
98
|
-
type = string
|
|
99
|
-
description = "External provider network used for router gateway and floating IP."
|
|
100
|
-
default = "public"
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
variable "app_network_name" {
|
|
104
|
-
type = string
|
|
105
|
-
description = "Tenant app network name. Leave empty to derive from service+phase."
|
|
106
|
-
default = ""
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
variable "app_subnet_name" {
|
|
110
|
-
type = string
|
|
111
|
-
description = "Tenant app subnet name. Leave empty to derive from service+phase."
|
|
112
|
-
default = ""
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
variable "app_subnet_cidr" {
|
|
116
|
-
type = string
|
|
117
|
-
description = "App subnet CIDR."
|
|
118
|
-
default = "10.42.0.0/24"
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
variable "dns_nameservers" {
|
|
122
|
-
type = list(string)
|
|
123
|
-
description = "Optional DNS nameservers for the app subnet."
|
|
124
|
-
default = ["1.1.1.1", "8.8.8.8"]
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
variable "backend_image_name" {
|
|
128
|
-
type = string
|
|
129
|
-
description = "Boot image name for the API compute instance."
|
|
130
|
-
default = "ubuntu-24.04-noble-amd64"
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
variable "instance_flavor_name" {
|
|
134
|
-
type = string
|
|
135
|
-
description = "Flavor for the API compute instance."
|
|
136
|
-
default = "m1.small"
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
variable "backend_port" {
|
|
140
|
-
type = number
|
|
141
|
-
description = "API service port."
|
|
142
|
-
default = 8080
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
variable "associate_floating_ip" {
|
|
146
|
-
type = bool
|
|
147
|
-
description = "Whether to attach a floating IP to the API instance."
|
|
148
|
-
default = true
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
variable "backend_ingress_cidrs" {
|
|
152
|
-
type = list(string)
|
|
153
|
-
description = "CIDRs allowed to reach the API service port."
|
|
154
|
-
default = ["0.0.0.0/0"]
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
variable "ssh_ingress_cidrs" {
|
|
158
|
-
type = list(string)
|
|
159
|
-
description = "CIDRs allowed to SSH to the API instance."
|
|
160
|
-
default = []
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
variable "ssh_keypair_name" {
|
|
164
|
-
type = string
|
|
165
|
-
description = "OpenStack keypair name used for browser-terminal SSH access."
|
|
166
|
-
default = ""
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
variable "ssh_public_key" {
|
|
170
|
-
type = string
|
|
171
|
-
description = "Public key material registered in OpenStack for browser-terminal SSH access."
|
|
172
|
-
default = ""
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
variable "desired_state" {
|
|
176
|
-
type = string
|
|
177
|
-
description = "Desired server instance power state."
|
|
178
|
-
default = "running"
|
|
179
|
-
|
|
180
|
-
validation {
|
|
181
|
-
condition = contains(["running", "stopped"], lower(var.desired_state))
|
|
182
|
-
error_message = "desired_state must be one of: running, stopped"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
variable "backend_container_image" {
|
|
187
|
-
type = string
|
|
188
|
-
description = "Prebuilt backend image. If empty, repo bootstrap build is used."
|
|
189
|
-
default = ""
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
variable "backend_container_name" {
|
|
193
|
-
type = string
|
|
194
|
-
description = "Runtime container name."
|
|
195
|
-
default = "template-service-server"
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
variable "backend_repo_url" {
|
|
199
|
-
type = string
|
|
200
|
-
description = "Repo URL used for bootstrap build."
|
|
201
|
-
default = "https://github.com/example-org/example-service.git"
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
variable "backend_repo_ref" {
|
|
205
|
-
type = string
|
|
206
|
-
description = "Repo ref for bootstrap build."
|
|
207
|
-
default = "main"
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
variable "backend_repo_subdir" {
|
|
211
|
-
type = string
|
|
212
|
-
description = "Repo-relative server directory."
|
|
213
|
-
default = "server"
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
variable "jwt_secret_key" {
|
|
217
|
-
type = string
|
|
218
|
-
description = "JWT secret key. Leave empty to auto-generate."
|
|
219
|
-
default = ""
|
|
220
|
-
sensitive = true
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
variable "backend_env" {
|
|
224
|
-
type = map(string)
|
|
225
|
-
description = "Additional backend environment variables."
|
|
226
|
-
default = {}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
variable "tags" {
|
|
230
|
-
type = map(string)
|
|
231
|
-
description = "Additional metadata tags."
|
|
232
|
-
default = {}
|
|
233
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"auth_type": "password",
|
|
3
|
-
"auth_url": "https://keystone.example.com:5000/v3",
|
|
4
|
-
"backend_repo_ref": "main",
|
|
5
|
-
"backend_repo_url": "https://github.com/example-org/example-service.git",
|
|
6
|
-
"backend_image_name": "ubuntu-24.04-noble-amd64",
|
|
7
|
-
"backend_port": 8080,
|
|
8
|
-
"instance_flavor_name": "m1.small",
|
|
9
|
-
"ssh_ingress_cidrs": ["0.0.0.0/0"],
|
|
10
|
-
"ssh_keypair_name": "template-dev-terminal",
|
|
11
|
-
"ssh_public_key": "ssh-ed25519 AAAA... replace-me",
|
|
12
|
-
"insecure": false,
|
|
13
|
-
"interface": "public",
|
|
14
|
-
"phase": "dev",
|
|
15
|
-
"external_network_name": "public",
|
|
16
|
-
"app_subnet_cidr": "10.52.0.0/24",
|
|
17
|
-
"project_domain_name": "Default",
|
|
18
|
-
"project_name": "template-service",
|
|
19
|
-
"region": "RegionOne",
|
|
20
|
-
"service_name": "template-service",
|
|
21
|
-
"application_name": "Template API",
|
|
22
|
-
"user_domain_name": "Default",
|
|
23
|
-
"username": "admin",
|
|
24
|
-
"backend_env": {
|
|
25
|
-
"API_PREFIX": "/api/v1",
|
|
26
|
-
"DATABASE_BACKEND": "postgres",
|
|
27
|
-
"POSTGRES_URL": "postgresql://template:template@db:5432/template"
|
|
28
|
-
}
|
|
29
|
-
}
|
package/pnpm-workspace.yaml
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import argparse
|
|
6
|
-
import json
|
|
7
|
-
import re
|
|
8
|
-
from pathlib import Path
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
ROOT = Path(__file__).resolve().parents[2]
|
|
12
|
-
|
|
13
|
-
SERVICE_DOCS = {
|
|
14
|
-
"mobile": ROOT / "sdd/03_build/01_feature/service/mobile_surface.md",
|
|
15
|
-
"web": ROOT / "sdd/03_build/01_feature/service/web_surface.md",
|
|
16
|
-
"admin": ROOT / "sdd/03_build/01_feature/service/admin_surface.md",
|
|
17
|
-
"landing": ROOT / "sdd/03_build/01_feature/service/landing_surface.md",
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
BUILD_AST_DOC = ROOT / "sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def read(path: Path) -> str:
|
|
24
|
-
return path.read_text(encoding="utf-8")
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def score(value: float, maximum: float) -> int:
|
|
28
|
-
if maximum <= 0:
|
|
29
|
-
return 0
|
|
30
|
-
scaled = round((value / maximum) * 10)
|
|
31
|
-
return max(0, min(10, scaled))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def contains_all(text: str, needles: list[str]) -> bool:
|
|
35
|
-
return all(needle in text for needle in needles)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def ast_similarity() -> tuple[int, list[str]]:
|
|
39
|
-
findings: list[str] = []
|
|
40
|
-
points = 0.0
|
|
41
|
-
maximum = 10.0
|
|
42
|
-
|
|
43
|
-
mobile = read(SERVICE_DOCS["mobile"])
|
|
44
|
-
if contains_all(
|
|
45
|
-
mobile,
|
|
46
|
-
[
|
|
47
|
-
"client/mobile/src/main.tsx",
|
|
48
|
-
"AuthProvider",
|
|
49
|
-
"BrowserRouter",
|
|
50
|
-
"client/mobile/src/app/App.tsx",
|
|
51
|
-
"ProtectedRoute",
|
|
52
|
-
"InShell",
|
|
53
|
-
"DashboardPage",
|
|
54
|
-
"FulfillmentPage",
|
|
55
|
-
"ShippingPage",
|
|
56
|
-
],
|
|
57
|
-
):
|
|
58
|
-
points += 2.5
|
|
59
|
-
else:
|
|
60
|
-
findings.append("mobile surface summary does not reflect the real provider/router/shell chain.")
|
|
61
|
-
|
|
62
|
-
web = read(SERVICE_DOCS["web"])
|
|
63
|
-
if contains_all(
|
|
64
|
-
web,
|
|
65
|
-
[
|
|
66
|
-
"client/web/src/main.tsx",
|
|
67
|
-
"AuthProvider",
|
|
68
|
-
"BrowserRouter",
|
|
69
|
-
"client/web/src/app/App.tsx",
|
|
70
|
-
"ProtectedRoute",
|
|
71
|
-
"AppShell",
|
|
72
|
-
"DashboardPage",
|
|
73
|
-
"OrdersPage",
|
|
74
|
-
],
|
|
75
|
-
):
|
|
76
|
-
points += 2.5
|
|
77
|
-
else:
|
|
78
|
-
findings.append("web surface summary does not reflect the real app shell route tree.")
|
|
79
|
-
|
|
80
|
-
admin = read(SERVICE_DOCS["admin"])
|
|
81
|
-
if contains_all(
|
|
82
|
-
admin,
|
|
83
|
-
[
|
|
84
|
-
"client/admin/src/main.tsx",
|
|
85
|
-
"AuthProvider",
|
|
86
|
-
"BrowserRouter",
|
|
87
|
-
"client/admin/src/app/App.tsx",
|
|
88
|
-
"ProtectedRoute",
|
|
89
|
-
"AdminShell",
|
|
90
|
-
"AdminDashboardPage",
|
|
91
|
-
"AdminQueuePage",
|
|
92
|
-
"AdminSupportPage",
|
|
93
|
-
],
|
|
94
|
-
):
|
|
95
|
-
points += 2.5
|
|
96
|
-
else:
|
|
97
|
-
findings.append("admin surface summary does not reflect the real admin shell route tree.")
|
|
98
|
-
|
|
99
|
-
landing = read(SERVICE_DOCS["landing"])
|
|
100
|
-
if contains_all(
|
|
101
|
-
landing,
|
|
102
|
-
[
|
|
103
|
-
"client/landing/src/main.tsx",
|
|
104
|
-
"AuthProvider",
|
|
105
|
-
"BrowserRouter",
|
|
106
|
-
"client/landing/src/App.tsx",
|
|
107
|
-
"LandingHomePage",
|
|
108
|
-
"LandingLoginPage",
|
|
109
|
-
"ProtectedRoute",
|
|
110
|
-
"LandingShell",
|
|
111
|
-
"LandingWorkspacePage",
|
|
112
|
-
],
|
|
113
|
-
):
|
|
114
|
-
points += 2.5
|
|
115
|
-
else:
|
|
116
|
-
findings.append("landing surface summary does not reflect the public and gated route assembly.")
|
|
117
|
-
|
|
118
|
-
return score(points, maximum), findings
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def implementation_traceability() -> tuple[int, list[str]]:
|
|
122
|
-
findings: list[str] = []
|
|
123
|
-
points = 0.0
|
|
124
|
-
maximum = 10.0
|
|
125
|
-
|
|
126
|
-
mobile = read(SERVICE_DOCS["mobile"])
|
|
127
|
-
if contains_all(
|
|
128
|
-
mobile,
|
|
129
|
-
[
|
|
130
|
-
"server/main.py",
|
|
131
|
-
"server/api/http/app.py",
|
|
132
|
-
"server/api/http/router.py",
|
|
133
|
-
"contexts/auth/contracts/http/router.py",
|
|
134
|
-
"contexts/fulfillment/contracts/http/router.py",
|
|
135
|
-
"contexts/shipping/contracts/http/router.py",
|
|
136
|
-
],
|
|
137
|
-
):
|
|
138
|
-
points += 2.0
|
|
139
|
-
else:
|
|
140
|
-
findings.append("mobile surface summary does not trace route leaves to backend contract leaves.")
|
|
141
|
-
|
|
142
|
-
web = read(SERVICE_DOCS["web"])
|
|
143
|
-
if contains_all(
|
|
144
|
-
web,
|
|
145
|
-
[
|
|
146
|
-
"server/main.py",
|
|
147
|
-
"server/api/http/app.py",
|
|
148
|
-
"server/api/http/router.py",
|
|
149
|
-
"contexts/auth/contracts/http/router.py",
|
|
150
|
-
"contexts/catalog/contracts/http/router.py",
|
|
151
|
-
"contexts/orders/contracts/http/router.py",
|
|
152
|
-
],
|
|
153
|
-
):
|
|
154
|
-
points += 2.0
|
|
155
|
-
else:
|
|
156
|
-
findings.append("web surface summary does not trace dashboard and orders routes to backend contracts.")
|
|
157
|
-
|
|
158
|
-
admin = read(SERVICE_DOCS["admin"])
|
|
159
|
-
if contains_all(
|
|
160
|
-
admin,
|
|
161
|
-
[
|
|
162
|
-
"server/main.py",
|
|
163
|
-
"server/api/http/app.py",
|
|
164
|
-
"server/api/http/router.py",
|
|
165
|
-
"contexts/alerts/contracts/http/router.py",
|
|
166
|
-
"contexts/inventory/contracts/http/router.py",
|
|
167
|
-
"contexts/support/contracts/http/router.py",
|
|
168
|
-
],
|
|
169
|
-
):
|
|
170
|
-
points += 2.0
|
|
171
|
-
else:
|
|
172
|
-
findings.append("admin surface summary does not trace admin routes to backend contracts.")
|
|
173
|
-
|
|
174
|
-
landing = read(SERVICE_DOCS["landing"])
|
|
175
|
-
if contains_all(
|
|
176
|
-
landing,
|
|
177
|
-
[
|
|
178
|
-
"server/main.py",
|
|
179
|
-
"server/api/http/app.py",
|
|
180
|
-
"server/api/http/router.py",
|
|
181
|
-
"contexts/catalog/contracts/http/router.py",
|
|
182
|
-
"contexts/health/contracts/http/router.py",
|
|
183
|
-
"contexts/user/contracts/http/router.py",
|
|
184
|
-
],
|
|
185
|
-
):
|
|
186
|
-
points += 2.0
|
|
187
|
-
else:
|
|
188
|
-
findings.append("landing surface summary does not trace public/workspace routes to backend contracts.")
|
|
189
|
-
|
|
190
|
-
architecture = read(BUILD_AST_DOC)
|
|
191
|
-
if contains_all(
|
|
192
|
-
architecture,
|
|
193
|
-
[
|
|
194
|
-
".agent/ralph.sh",
|
|
195
|
-
".claude/agents/",
|
|
196
|
-
".codex/skills/SKILL.md",
|
|
197
|
-
"infra/terraform/README.md",
|
|
198
|
-
],
|
|
199
|
-
):
|
|
200
|
-
points += 2.0
|
|
201
|
-
else:
|
|
202
|
-
findings.append("build AST architecture summary does not retain the canonical harness and infra roots.")
|
|
203
|
-
|
|
204
|
-
return score(points, maximum), findings
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
def human_agent_readability() -> tuple[int, list[str]]:
|
|
208
|
-
findings: list[str] = []
|
|
209
|
-
points = 10.0
|
|
210
|
-
maximum = 10.0
|
|
211
|
-
|
|
212
|
-
build_md_files = sorted((ROOT / "sdd/03_build").rglob("*.md"))
|
|
213
|
-
combined = "\n".join(read(path) for path in build_md_files)
|
|
214
|
-
|
|
215
|
-
pattern_penalties = [
|
|
216
|
-
(r"## Current Build Note", 2.0, "build docs still use a Current Build Note section instead of current-state structure."),
|
|
217
|
-
(r"\bRalph\b", 2.0, "build docs still contain Ralph loop narrative."),
|
|
218
|
-
(r"2026-\d{2}-\d{2}", 2.0, "build docs still contain dated history markers."),
|
|
219
|
-
(r"이번 턴", 1.0, "build docs still contain turn-specific execution narrative."),
|
|
220
|
-
(r"run `\d+", 1.0, "build docs still contain run-id style execution narrative."),
|
|
221
|
-
(r"\biteration\b", 1.0, "build docs still contain iteration-oriented loop narrative."),
|
|
222
|
-
]
|
|
223
|
-
|
|
224
|
-
for pattern, penalty, message in pattern_penalties:
|
|
225
|
-
if re.search(pattern, combined):
|
|
226
|
-
points -= penalty
|
|
227
|
-
findings.append(message)
|
|
228
|
-
|
|
229
|
-
for path in SERVICE_DOCS.values():
|
|
230
|
-
if len(read(path).splitlines()) > 80:
|
|
231
|
-
points -= 0.5
|
|
232
|
-
findings.append(f"{path.name} is too large to serve as a concise runtime tree summary.")
|
|
233
|
-
|
|
234
|
-
if points < 0:
|
|
235
|
-
points = 0
|
|
236
|
-
|
|
237
|
-
return score(points, maximum), findings
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
def main() -> int:
|
|
241
|
-
parser = argparse.ArgumentParser()
|
|
242
|
-
parser.add_argument("--write", type=Path, default=None)
|
|
243
|
-
args = parser.parse_args()
|
|
244
|
-
|
|
245
|
-
ast_score, ast_findings = ast_similarity()
|
|
246
|
-
trace_score, trace_findings = implementation_traceability()
|
|
247
|
-
readability_score, readability_findings = human_agent_readability()
|
|
248
|
-
|
|
249
|
-
payload = {
|
|
250
|
-
"scores": {
|
|
251
|
-
"ast_similarity": ast_score,
|
|
252
|
-
"implementation_traceability": trace_score,
|
|
253
|
-
"human_agent_readability": readability_score,
|
|
254
|
-
},
|
|
255
|
-
"all_ten": ast_score == 10 and trace_score == 10 and readability_score == 10,
|
|
256
|
-
"findings": {
|
|
257
|
-
"ast_similarity": ast_findings,
|
|
258
|
-
"implementation_traceability": trace_findings,
|
|
259
|
-
"human_agent_readability": readability_findings,
|
|
260
|
-
},
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
output = json.dumps(payload, ensure_ascii=False, indent=2)
|
|
264
|
-
print(output)
|
|
265
|
-
|
|
266
|
-
if args.write is not None:
|
|
267
|
-
target = args.write
|
|
268
|
-
if not target.is_absolute():
|
|
269
|
-
target = ROOT / target
|
|
270
|
-
target.parent.mkdir(parents=True, exist_ok=True)
|
|
271
|
-
target.write_text(output + "\n", encoding="utf-8")
|
|
272
|
-
|
|
273
|
-
return 0 if payload["all_ten"] else 1
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
if __name__ == "__main__":
|
|
277
|
-
raise SystemExit(main())
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Feature Index
|
|
2
|
-
|
|
3
|
-
현재 canonical feature spec은 backend domain 기준으로 작성한다.
|
|
4
|
-
|
|
5
|
-
- [auth_feature_spec.md](./auth_feature_spec.md)
|
|
6
|
-
- [alerts_feature_spec.md](./alerts_feature_spec.md)
|
|
7
|
-
- [catalog_feature_spec.md](./catalog_feature_spec.md)
|
|
8
|
-
- [fulfillment_feature_spec.md](./fulfillment_feature_spec.md)
|
|
9
|
-
- [health_feature_spec.md](./health_feature_spec.md)
|
|
10
|
-
- [inventory_feature_spec.md](./inventory_feature_spec.md)
|
|
11
|
-
- [order_feature_spec.md](./order_feature_spec.md)
|
|
12
|
-
- [shipping_feature_spec.md](./shipping_feature_spec.md)
|
|
13
|
-
- [support_feature_spec.md](./support_feature_spec.md)
|
|
14
|
-
- [user_feature_spec.md](./user_feature_spec.md)
|
|
15
|
-
|
|
16
|
-
현재 canonical owner domain은 `auth`, `user`, `catalog`, `inventory`, `orders`, `fulfillment`, `shipping`, `alerts`, `support`, `health`다.
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Feature Planning
|
|
2
|
-
|
|
3
|
-
## Naming
|
|
4
|
-
|
|
5
|
-
- Folder name: `01_feature`
|
|
6
|
-
- Document naming: `{domain}_feature_spec.md`
|
|
7
|
-
- Source-of-truth feature spec files are backend domain based.
|
|
8
|
-
|
|
9
|
-
## Scope
|
|
10
|
-
|
|
11
|
-
- feature spec은 DDD 관점의 도메인 유스케이스 문서다.
|
|
12
|
-
- route, navigation, sidebar, modal, tab, client local state, 화면 전이는 feature spec에 쓰지 않는다.
|
|
13
|
-
- 위 항목은 `02_screen`에서 관리한다.
|
|
14
|
-
- 하나의 feature code는 하나의 핵심 query 또는 command 유스케이스를 대표한다.
|
|
15
|
-
|
|
16
|
-
## Implementation Basis
|
|
17
|
-
|
|
18
|
-
- `Bounded Context`는 실제 backend owner module에 맞춰 작성한다.
|
|
19
|
-
- feature spec은 현재 구현을 기준으로 먼저 정리하고, 미구현 요구는 `02_plan` backlog로 관리한다.
|
|
20
|
-
- frontend-only mock, redirect, client local state machine은 feature spec에 쓰지 않는다.
|
|
21
|
-
- 개별 domain feature spec은 `Purpose -> Scope -> Actor Summary -> Domain Summary -> Aggregate / Model -> Use Case Matrix` 흐름을 기본 뼈대로 사용한다.
|
|
22
|
-
|
|
23
|
-
## Code Rule
|
|
24
|
-
|
|
25
|
-
- Feature code format: `{DOMAIN}-F{NNN}`
|
|
26
|
-
- 각 segment는 고정 길이로 유지한다.
|
|
27
|
-
|
|
28
|
-
| Segment | Rule | Example |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| `DOMAIN` | 3-letter uppercase domain code | `AUT`, `USR`, `CAT` |
|
|
31
|
-
| `TYPE` | feature 식별자 고정값 | `F` |
|
|
32
|
-
| `NNN` | 3-digit sequence | `001`, `002` |
|
|
33
|
-
|
|
34
|
-
현재 canonical backend domain code는 `AUT`, `USR`, `CAT`, `INV`, `ORD`, `FUL`, `SHP`, `ALR`, `SUP`, `HLT`다.
|
|
35
|
-
|
|
36
|
-
## Required Fields
|
|
37
|
-
|
|
38
|
-
모든 feature row는 아래 정보를 포함한다.
|
|
39
|
-
|
|
40
|
-
| Field | Purpose |
|
|
41
|
-
| --- | --- |
|
|
42
|
-
| `Feature Code` | 유스케이스의 고유 식별자 |
|
|
43
|
-
| `Use Case` | 비즈니스 의도 |
|
|
44
|
-
| `Actor` | 유스케이스를 시작하거나 소비하는 주체 |
|
|
45
|
-
| `Bounded Context` | 해당 유스케이스가 속한 DDD 경계 |
|
|
46
|
-
| `Aggregate / Model` | 핵심 aggregate, entity, policy, read model |
|
|
47
|
-
| `Type` | `Query` 또는 `Command` |
|
|
48
|
-
| `Preconditions` | 유스케이스가 성립하기 위한 선행 조건 |
|
|
49
|
-
| `Domain Outcome` | 도메인 상태 변화 또는 조회 결과 |
|
|
50
|
-
| `Invariant / Business Rule` | 반드시 지켜야 하는 규칙 |
|
|
51
|
-
|
|
52
|
-
개별 domain feature spec은 use case matrix 외에 아래 섹션을 포함한다.
|
|
53
|
-
|
|
54
|
-
| Section | Purpose |
|
|
55
|
-
| --- | --- |
|
|
56
|
-
| `Scope` | 포함/제외 범위를 분리해 screen, transport, backlog와의 경계를 명시한다 |
|
|
57
|
-
| `Actor Summary` | use case matrix에 등장하는 각 actor의 책임과 사용 맥락을 설명한다 |
|
|
58
|
-
|
|
59
|
-
## Document Boundary
|
|
60
|
-
|
|
61
|
-
| Folder | Role |
|
|
62
|
-
| --- | --- |
|
|
63
|
-
| `01_feature` | actor, use case, aggregate, invariant 중심의 도메인 유스케이스 |
|
|
64
|
-
| `02_screen` | route, UI surface, CTA, local interaction, transition |
|
|
65
|
-
| `03_architecture` | bounded context 관계, 시스템 경계, 런타임 구조 |
|
|
66
|
-
| `04_data` | 저장 모델, 관계, 키 정책 |
|
|
67
|
-
| `05_api` | request/response, endpoint contract, transport 규약 |
|
|
68
|
-
|
|
69
|
-
## Writing Rule
|
|
70
|
-
|
|
71
|
-
- feature spec은 도메인 유스케이스 문서다.
|
|
72
|
-
- `Type`은 `Query` 또는 `Command`만 사용한다.
|
|
73
|
-
- use case matrix에 등장하는 모든 actor는 같은 문서의 `Actor Summary`에서 최소 1회 설명한다.
|
|
74
|
-
- actor 이름은 화면 이름이 아니라 도메인 상호작용을 시작하거나 소비하는 주체 기준으로 유지한다.
|
|
75
|
-
- 식별자는 UUID v7을 기준으로 해석하고, legacy numeric id는 기준 식별자로 간주하지 않는다.
|
|
76
|
-
- 기본 정렬은 `created_at` 또는 time-ordered UUID v7을 사용하고, 명시 순서가 필요해질 때만 `order` 계열 필드를 추가한다.
|