agentic-dev 0.1.0 → 0.2.0
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/.agent/prd.json +29 -0
- package/.agent/progress.txt +1 -0
- package/.agent/prompt.md +21 -0
- package/.agent/ralph-loop-state.json +13 -0
- package/.agent/ralph-supervisor-state.json +12 -0
- package/.agent/ralph-supervisor.sh +238 -0
- package/.agent/ralph.sh +305 -0
- package/.agent/runs/README.md +7 -0
- package/.agent/sdd-build-ast-audit.json +13 -0
- package/.claude/CLAUDE.md +44 -0
- package/.claude/agentic-dev.json +3 -0
- package/.claude/agents/ai-dev.md +27 -0
- package/.claude/agents/backend-dev.md +26 -0
- package/.claude/agents/db-dev.md +26 -0
- package/.claude/agents/devops.md +27 -0
- package/.claude/agents/frontend-dev.md +25 -0
- package/.claude/agents/github-ops.md +25 -0
- package/.claude/agents/test-dev.md +26 -0
- package/.claude/agents/uiux-designer.md +25 -0
- package/.claude/settings.json +49 -0
- package/.claude/settings.local.json +8 -0
- package/.claude/skills/commit/SKILL.md +37 -0
- package/.claude/skills/dev-browser/SKILL.md +30 -0
- package/.claude/skills/otro/SKILL.md +43 -0
- package/.claude/skills/planning-with-files/SKILL.md +37 -0
- package/.claude/skills/prd/SKILL.md +27 -0
- package/.claude/skills/ralph-loop/SKILL.md +42 -0
- package/.claude/skills/sdd/SKILL.md +13 -0
- package/.claude/skills/sdd-dev/SKILL.md +71 -0
- package/.claude/skills/sdd-development/SKILL.md +13 -0
- package/.claude/workspace-config.json +3 -0
- package/.codex/agentic-dev.json +3 -0
- package/.codex/agents/README.md +22 -0
- package/.codex/agents/api.toml +11 -0
- package/.codex/agents/architecture.toml +11 -0
- package/.codex/agents/ci.toml +11 -0
- package/.codex/agents/gitops.toml +11 -0
- package/.codex/agents/orchestrator.toml +11 -0
- package/.codex/agents/quality.toml +11 -0
- package/.codex/agents/runtime.toml +11 -0
- package/.codex/agents/security.toml +11 -0
- package/.codex/agents/specs.toml +11 -0
- package/.codex/agents/ui.toml +11 -0
- package/.codex/config.toml +46 -0
- package/.codex/skills/SKILL.md +13 -0
- package/.codex/skills/agents/openai.yaml +4 -0
- package/.codex/skills/commit/SKILL.md +219 -0
- package/.codex/skills/commit/references/commit_examples.md +292 -0
- package/.codex/skills/dev-browser/SKILL.md +211 -0
- package/.codex/skills/dev-browser/bun.lock +443 -0
- package/.codex/skills/dev-browser/package-lock.json +2988 -0
- package/.codex/skills/dev-browser/package.json +31 -0
- package/.codex/skills/dev-browser/references/scraping.md +155 -0
- package/.codex/skills/dev-browser/scripts/start-relay.ts +32 -0
- package/.codex/skills/dev-browser/scripts/start-server.ts +117 -0
- package/.codex/skills/dev-browser/server.sh +24 -0
- package/.codex/skills/dev-browser/src/client.ts +474 -0
- package/.codex/skills/dev-browser/src/index.ts +287 -0
- package/.codex/skills/dev-browser/src/relay.ts +731 -0
- package/.codex/skills/dev-browser/src/snapshot/__tests__/snapshot.test.ts +223 -0
- package/.codex/skills/dev-browser/src/snapshot/browser-script.ts +877 -0
- package/.codex/skills/dev-browser/src/snapshot/index.ts +14 -0
- package/.codex/skills/dev-browser/src/snapshot/inject.ts +13 -0
- package/.codex/skills/dev-browser/src/types.ts +34 -0
- package/.codex/skills/dev-browser/tsconfig.json +36 -0
- package/.codex/skills/dev-browser/vitest.config.ts +12 -0
- package/.codex/skills/otro/SKILL.md +74 -0
- package/.codex/skills/otro/agents/openai.yaml +4 -0
- package/.codex/skills/otro/references/agent-prompts.md +61 -0
- package/.codex/skills/otro/references/contracts.md +146 -0
- package/.codex/skills/otro/references/orchestration-loop.md +51 -0
- package/.codex/skills/otro/references/runtime.md +79 -0
- package/.codex/skills/otro/runs/README.md +11 -0
- package/.codex/skills/otro/schemas/step_plan.schema.json +289 -0
- package/.codex/skills/otro/schemas/task_result.schema.json +142 -0
- package/.codex/skills/otro/schemas/wave_plan.schema.json +4 -0
- package/.codex/skills/otro/scripts/README.md +38 -0
- package/.codex/skills/otro/scripts/bump_validation_header.py +179 -0
- package/.codex/skills/otro/scripts/check_validation_header.py +84 -0
- package/.codex/skills/otro/scripts/common.py +303 -0
- package/.codex/skills/otro/scripts/init_run.sh +68 -0
- package/.codex/skills/otro/scripts/plan_loop.py +8 -0
- package/.codex/skills/otro/scripts/plan_step.py +367 -0
- package/.codex/skills/otro/scripts/plan_wave.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_loop.py +8 -0
- package/.codex/skills/otro/scripts/reconcile_step.py +37 -0
- package/.codex/skills/otro/scripts/reconcile_wave.py +8 -0
- package/.codex/skills/otro/scripts/run_loop.py +300 -0
- package/.codex/skills/otro/scripts/run_loop_step.py +8 -0
- package/.codex/skills/otro/scripts/run_step.py +246 -0
- package/.codex/skills/otro/scripts/run_wave.py +8 -0
- package/.codex/skills/otro/validation/validation.md +15 -0
- package/.codex/skills/planning-with-files/SKILL.md +42 -0
- package/.codex/skills/planning-with-files/agents/openai.yaml +4 -0
- package/.codex/skills/planning-with-files/assets/plan-template.md +37 -0
- package/.codex/skills/planning-with-files/references/plan-rules.md +35 -0
- package/.codex/skills/planning-with-files/scripts/new_plan.sh +65 -0
- package/.codex/skills/prd/SKILL.md +235 -0
- package/.codex/skills/ralph-loop/SKILL.md +46 -0
- package/.codex/skills/ralph-loop/agents/openai.yaml +4 -0
- package/.codex/skills/ralph-loop/references/failure-triage.md +32 -0
- package/.codex/skills/ralph-loop/scripts/loop_until_success.sh +97 -0
- package/.codex/skills/sdd/SKILL.md +184 -0
- package/.codex/skills/sdd/agents/openai.yaml +4 -0
- package/.codex/skills/sdd/references/section-map.md +67 -0
- package/.dockerignore +8 -0
- package/.env.example +50 -0
- package/.gitignore +16 -0
- package/AGENTS.md +78 -0
- package/README.md +83 -47
- package/SDD_SKILL.md +589 -0
- package/bin/agentic-dev.mjs +97 -0
- package/client/admin/.dockerignore +3 -0
- package/client/admin/.env.example +1 -0
- package/client/admin/Dockerfile +16 -0
- package/client/admin/Dockerfile.dev +18 -0
- package/client/admin/README.md +20 -0
- package/client/admin/index.html +12 -0
- package/client/admin/package.json +41 -0
- package/client/admin/postcss.config.js +6 -0
- package/client/admin/scripts/ui-parity-admin-adapter.mjs +65 -0
- package/client/admin/src/api/alerts.ts +33 -0
- package/client/admin/src/api/client.ts +71 -0
- package/client/admin/src/api/orders.ts +33 -0
- package/client/admin/src/api/support.ts +11 -0
- package/client/admin/src/app/App.tsx +23 -0
- package/client/admin/src/auth/AuthProvider.tsx +122 -0
- package/client/admin/src/auth/ProtectedRoute.tsx +22 -0
- package/client/admin/src/auth/auth-client.ts +38 -0
- package/client/admin/src/auth/types.ts +18 -0
- package/client/admin/src/components/AdminNotificationsDrawer.tsx +162 -0
- package/client/admin/src/components/AdminShell.tsx +76 -0
- package/client/admin/src/components/ui/button.tsx +34 -0
- package/client/admin/src/components/ui/input.tsx +21 -0
- package/client/admin/src/lib/cn.ts +6 -0
- package/client/admin/src/lib/specRouteCatalog.json +30 -0
- package/client/admin/src/lib/specScreens.json +22 -0
- package/client/admin/src/main.tsx +17 -0
- package/client/admin/src/pages/AdminDashboardPage.tsx +171 -0
- package/client/admin/src/pages/AdminLoginPage.tsx +75 -0
- package/client/admin/src/pages/AdminQueuePage.tsx +107 -0
- package/client/admin/src/pages/AdminSupportPage.tsx +61 -0
- package/client/admin/src/styles/globals.css +17 -0
- package/client/admin/src/theme-vars.ts +18 -0
- package/client/admin/src/theme.ts +25 -0
- package/client/admin/src/vite-env.d.ts +1 -0
- package/client/admin/tailwind.config.js +8 -0
- package/client/admin/tsconfig.json +25 -0
- package/client/admin/vite.config.ts +12 -0
- package/client/landing/.dockerignore +3 -0
- package/client/landing/.env.example +1 -0
- package/client/landing/Dockerfile +16 -0
- package/client/landing/Dockerfile.dev +18 -0
- package/client/landing/README.md +18 -0
- package/client/landing/index.html +12 -0
- package/client/landing/package.json +41 -0
- package/client/landing/postcss.config.js +6 -0
- package/client/landing/scripts/ui-parity-landing-adapter.mjs +65 -0
- package/client/landing/src/App.tsx +21 -0
- package/client/landing/src/api/catalog.ts +30 -0
- package/client/landing/src/api/client.ts +30 -0
- package/client/landing/src/auth/AuthProvider.tsx +122 -0
- package/client/landing/src/auth/ProtectedRoute.tsx +22 -0
- package/client/landing/src/auth/auth-client.ts +38 -0
- package/client/landing/src/auth/types.ts +18 -0
- package/client/landing/src/components/LandingShell.tsx +34 -0
- package/client/landing/src/lib/specRouteCatalog.json +23 -0
- package/client/landing/src/lib/specScreens.json +17 -0
- package/client/landing/src/main.tsx +17 -0
- package/client/landing/src/pages/LandingHomePage.tsx +215 -0
- package/client/landing/src/pages/LandingLoginPage.tsx +90 -0
- package/client/landing/src/pages/LandingWorkspacePage.tsx +126 -0
- package/client/landing/src/styles/globals.css +17 -0
- package/client/landing/src/theme-vars.ts +16 -0
- package/client/landing/src/theme.ts +21 -0
- package/client/landing/src/vite-env.d.ts +1 -0
- package/client/landing/tailwind.config.js +8 -0
- package/client/landing/tsconfig.json +25 -0
- package/client/landing/vite.config.ts +12 -0
- package/client/mobile/.dockerignore +2 -0
- package/client/mobile/.env.example +1 -0
- package/client/mobile/Dockerfile +16 -0
- package/client/mobile/Dockerfile.dev +18 -0
- package/client/mobile/README.md +19 -0
- package/client/mobile/index.html +12 -0
- package/client/mobile/package.json +42 -0
- package/client/mobile/postcss.config.js +6 -0
- package/client/mobile/scripts/ui-parity-mobile-adapter.mjs +67 -0
- package/client/mobile/src/App.tsx +1 -0
- package/client/mobile/src/api/client.ts +62 -0
- package/client/mobile/src/api/fulfillment.ts +55 -0
- package/client/mobile/src/api/shipping.ts +56 -0
- package/client/mobile/src/app/App.tsx +23 -0
- package/client/mobile/src/auth/AuthProvider.tsx +122 -0
- package/client/mobile/src/auth/ProtectedRoute.tsx +27 -0
- package/client/mobile/src/auth/auth-client.ts +38 -0
- package/client/mobile/src/auth/types.ts +18 -0
- package/client/mobile/src/components/InShell.tsx +74 -0
- package/client/mobile/src/components/ui/button.tsx +35 -0
- package/client/mobile/src/components/ui/card.tsx +15 -0
- package/client/mobile/src/components/ui/input.tsx +21 -0
- package/client/mobile/src/lib/cn.ts +6 -0
- package/client/mobile/src/lib/specRouteCatalog.json +26 -0
- package/client/mobile/src/lib/specScreens.json +22 -0
- package/client/mobile/src/lib/useSpeechRecognitionInput.ts +271 -0
- package/client/mobile/src/main.tsx +17 -0
- package/client/mobile/src/pages/DashboardPage.tsx +172 -0
- package/client/mobile/src/pages/FulfillmentPage.tsx +138 -0
- package/client/mobile/src/pages/LoginPage.tsx +74 -0
- package/client/mobile/src/pages/ShippingPage.tsx +338 -0
- package/client/mobile/src/styles/globals.css +23 -0
- package/client/mobile/src/theme-vars.ts +16 -0
- package/client/mobile/src/theme.ts +21 -0
- package/client/mobile/src/vite-env.d.ts +1 -0
- package/client/mobile/tailwind.config.js +8 -0
- package/client/mobile/tsconfig.json +25 -0
- package/client/mobile/vite.config.ts +12 -0
- package/client/platform/.dockerignore +3 -0
- package/client/platform/.env.example +1 -0
- package/client/platform/Dockerfile +16 -0
- package/client/platform/Dockerfile.dev +18 -0
- package/client/platform/README.md +47 -0
- package/client/platform/index.html +12 -0
- package/client/platform/package.json +42 -0
- package/client/platform/postcss.config.js +6 -0
- package/client/platform/scripts/ui-parity-platform-adapter.mjs +66 -0
- package/client/platform/src/api/client.ts +30 -0
- package/client/platform/src/api/orders.ts +42 -0
- package/client/platform/src/app/App.tsx +21 -0
- package/client/platform/src/auth/AuthProvider.tsx +122 -0
- package/client/platform/src/auth/ProtectedRoute.tsx +22 -0
- package/client/platform/src/auth/auth-client.ts +38 -0
- package/client/platform/src/auth/types.ts +18 -0
- package/client/platform/src/components/AppShell.tsx +59 -0
- package/client/platform/src/components/ui/button.tsx +35 -0
- package/client/platform/src/components/ui/card.tsx +7 -0
- package/client/platform/src/components/ui/input.tsx +21 -0
- package/client/platform/src/lib/cn.ts +6 -0
- package/client/platform/src/lib/specRouteCatalog.json +23 -0
- package/client/platform/src/lib/specScreens.json +17 -0
- package/client/platform/src/main.tsx +17 -0
- package/client/platform/src/pages/DashboardPage.tsx +158 -0
- package/client/platform/src/pages/LoginPage.tsx +72 -0
- package/client/platform/src/pages/OrdersPage.tsx +123 -0
- package/client/platform/src/styles/globals.css +17 -0
- package/client/platform/src/theme-vars.ts +18 -0
- package/client/platform/src/theme.ts +25 -0
- package/client/platform/src/vite-env.d.ts +1 -0
- package/client/platform/tailwind.config.js +8 -0
- package/client/platform/tsconfig.json +25 -0
- package/client/platform/vite.config.ts +12 -0
- package/compose.yml +206 -0
- package/infra/compose/.env.dev.example +28 -0
- package/infra/compose/.env.prod.example +29 -0
- package/infra/compose/README.md +35 -0
- package/infra/compose/dev.yml +125 -0
- package/infra/compose/prod.yml +126 -0
- package/infra/terraform/README.md +34 -0
- package/infra/terraform/aws/data/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/data/README.md +18 -0
- package/infra/terraform/aws/data/main.tf +147 -0
- package/infra/terraform/aws/data/outputs.tf +14 -0
- package/infra/terraform/aws/data/variables.tf +57 -0
- package/infra/terraform/aws/data/versions.tf +10 -0
- package/infra/terraform/aws/domain/.terraform.lock.hcl +25 -0
- package/infra/terraform/aws/domain/README.md +20 -0
- package/infra/terraform/aws/domain/env/dev.tfvars.example +6 -0
- package/infra/terraform/aws/domain/env/prod.tfvars.example +7 -0
- package/infra/terraform/aws/domain/main.tf +149 -0
- package/infra/terraform/aws/domain/outputs.tf +29 -0
- package/infra/terraform/aws/domain/variables.tf +58 -0
- package/infra/terraform/aws/domain/versions.tf +10 -0
- package/infra/terraform/openstack/README.md +38 -0
- package/infra/terraform/openstack/dev/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/dev/README.md +18 -0
- package/infra/terraform/openstack/dev/main.tf +49 -0
- package/infra/terraform/openstack/dev/providers.tf +15 -0
- package/infra/terraform/openstack/dev/terraform.tfvars.example +54 -0
- package/infra/terraform/openstack/dev/variables.tf +210 -0
- package/infra/terraform/openstack/dev/versions.tf +10 -0
- package/infra/terraform/openstack/modules/environment_host/main.tf +143 -0
- package/infra/terraform/openstack/modules/environment_host/outputs.tf +25 -0
- package/infra/terraform/openstack/modules/environment_host/templates/docker-host-user-data.sh.tftpl +40 -0
- package/infra/terraform/openstack/modules/environment_host/variables.tf +145 -0
- package/infra/terraform/openstack/modules/environment_host/versions.tf +7 -0
- package/infra/terraform/openstack/prod/.terraform.lock.hcl +24 -0
- package/infra/terraform/openstack/prod/README.md +18 -0
- package/infra/terraform/openstack/prod/main.tf +49 -0
- package/infra/terraform/openstack/prod/providers.tf +15 -0
- package/infra/terraform/openstack/prod/terraform.tfvars.example +55 -0
- package/infra/terraform/openstack/prod/variables.tf +210 -0
- package/infra/terraform/openstack/prod/versions.tf +10 -0
- package/infra/terraform/openstack/server/.terraform.lock.hcl +45 -0
- package/infra/terraform/openstack/server/README.md +47 -0
- package/infra/terraform/openstack/server/main.tf +161 -0
- package/infra/terraform/openstack/server/outputs.tf +30 -0
- package/infra/terraform/openstack/server/providers.tf +30 -0
- package/infra/terraform/openstack/server/templates/server-user-data.sh.tftpl +50 -0
- package/infra/terraform/openstack/server/variables.tf +233 -0
- package/infra/terraform/openstack/server/zz_aspace.auto.tfvars.example.json +29 -0
- package/lib/scaffold.mjs +373 -0
- package/package.json +33 -12
- package/pnpm-workspace.yaml +2 -0
- package/scripts/dev/audit_sdd_build_ast.py +277 -0
- package/sdd/01_planning/01_feature/INDEX.md +16 -0
- package/sdd/01_planning/01_feature/README.md +76 -0
- package/sdd/01_planning/01_feature/alerts_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/auth_feature_spec.md +57 -0
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +61 -0
- package/sdd/01_planning/01_feature/fulfillment_feature_spec.md +58 -0
- package/sdd/01_planning/01_feature/health_feature_spec.md +52 -0
- package/sdd/01_planning/01_feature/inventory_feature_spec.md +60 -0
- package/sdd/01_planning/01_feature/order_feature_spec.md +63 -0
- package/sdd/01_planning/01_feature/shipping_feature_spec.md +55 -0
- package/sdd/01_planning/01_feature/support_feature_spec.md +53 -0
- package/sdd/01_planning/01_feature/user_feature_spec.md +54 -0
- package/sdd/01_planning/02_screen/INDEX.md +13 -0
- package/sdd/01_planning/02_screen/README.md +41 -0
- package/sdd/01_planning/02_screen/admin_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/assets/README.md +16 -0
- package/sdd/01_planning/02_screen/assets/example/README.md +13 -0
- 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/platform_screen_spec.pdf +0 -0
- package/sdd/01_planning/03_architecture/INDEX.md +9 -0
- package/sdd/01_planning/03_architecture/README.md +25 -0
- package/sdd/01_planning/03_architecture/architecture_document_structure.md +77 -0
- package/sdd/01_planning/03_architecture/backend/README.md +10 -0
- package/sdd/01_planning/03_architecture/frontend/README.md +12 -0
- package/sdd/01_planning/03_architecture/infra/README.md +10 -0
- package/sdd/01_planning/03_architecture/tech-research/README.md +4 -0
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +84 -0
- package/sdd/01_planning/04_data/INDEX.md +4 -0
- package/sdd/01_planning/04_data/README.md +10 -0
- package/sdd/01_planning/04_data/templates_data_modeling.md +119 -0
- package/sdd/01_planning/05_api/README.md +12 -0
- package/sdd/01_planning/05_api/templates_api_contract.md +90 -0
- package/sdd/01_planning/06_iac/README.md +11 -0
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +46 -0
- package/sdd/01_planning/07_integration/README.md +11 -0
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +46 -0
- package/sdd/01_planning/08_nonfunctional/README.md +7 -0
- package/sdd/01_planning/09_security/README.md +7 -0
- package/sdd/01_planning/10_test/README.md +12 -0
- package/sdd/01_planning/10_test/templates_test_strategy.md +60 -0
- package/sdd/01_planning/INDEX.md +19 -0
- package/sdd/01_planning/README.md +17 -0
- package/sdd/02_plan/01_feature/README.md +34 -0
- package/sdd/02_plan/01_feature/_feature_todo_template.md +29 -0
- package/sdd/02_plan/02_screen/INDEX.md +19 -0
- package/sdd/02_plan/02_screen/README.md +39 -0
- package/sdd/02_plan/02_screen/_screen_todo_template.md +60 -0
- package/sdd/02_plan/03_architecture/README.md +23 -0
- package/sdd/02_plan/03_architecture/architecture_document_governance.md +40 -0
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +53 -0
- package/sdd/02_plan/03_architecture/repository_governance.md +39 -0
- package/sdd/02_plan/03_architecture/runtime_and_structure_governance.md +38 -0
- package/sdd/02_plan/03_architecture/templates-hexagonal-template-architecture.md +9 -0
- package/sdd/02_plan/03_architecture/toolchain_governance.md +98 -0
- package/sdd/02_plan/04_data/README.md +5 -0
- package/sdd/02_plan/05_api/README.md +5 -0
- package/sdd/02_plan/06_iac/README.md +11 -0
- package/sdd/02_plan/06_iac/dev_runtime_delivery.md +36 -0
- package/sdd/02_plan/06_iac/template_runtime_delivery.md +50 -0
- package/sdd/02_plan/07_integration/README.md +5 -0
- package/sdd/02_plan/07_integration/frontend_live_integration.md +31 -0
- package/sdd/02_plan/08_nonfunctional/README.md +5 -0
- package/sdd/02_plan/08_nonfunctional/repository_hygiene.md +26 -0
- package/sdd/02_plan/09_security/README.md +5 -0
- package/sdd/02_plan/10_test/README.md +11 -0
- package/sdd/02_plan/10_test/regression_verification.md +39 -0
- package/sdd/02_plan/10_test/templates/README.md +8 -0
- package/sdd/02_plan/10_test/templates/ui_parity_platform_contract.template.yaml +23 -0
- package/sdd/02_plan/10_test/verification_strategy.md +43 -0
- package/sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep +1 -0
- package/sdd/02_plan/README.md +40 -0
- package/sdd/03_build/01_feature/README.md +20 -0
- package/sdd/03_build/01_feature/domain/README.md +3 -0
- package/sdd/03_build/01_feature/domain/account_and_access.md +20 -0
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +20 -0
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +21 -0
- package/sdd/03_build/01_feature/domain/support_and_observability.md +21 -0
- package/sdd/03_build/01_feature/domain_surfaces.md +28 -0
- package/sdd/03_build/01_feature/service/README.md +3 -0
- package/sdd/03_build/01_feature/service/admin_surface.md +15 -0
- package/sdd/03_build/01_feature/service/landing_surface.md +13 -0
- package/sdd/03_build/01_feature/service/mobile_surface.md +14 -0
- package/sdd/03_build/01_feature/service/platform_surface.md +14 -0
- package/sdd/03_build/02_screen/README.md +25 -0
- package/sdd/03_build/02_screen/_screen_build_template.md +26 -0
- package/sdd/03_build/02_screen/admin/README.md +5 -0
- package/sdd/03_build/02_screen/landing/README.md +5 -0
- package/sdd/03_build/02_screen/mobile/README.md +5 -0
- package/sdd/03_build/02_screen/platform/README.md +5 -0
- package/sdd/03_build/03_architecture/README.md +10 -0
- package/sdd/03_build/03_architecture/architecture_document_governance.md +30 -0
- package/sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md +24 -0
- package/sdd/03_build/03_architecture/repository_governance.md +18 -0
- package/sdd/03_build/03_architecture/toolchain_governance.md +36 -0
- package/sdd/03_build/06_iac/README.md +3 -0
- package/sdd/03_build/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/03_build/06_iac/template_runtime_delivery.md +49 -0
- package/sdd/03_build/07_integration/README.md +3 -0
- package/sdd/03_build/07_integration/frontend_live_integration.md +11 -0
- package/sdd/03_build/08_nonfunctional/README.md +3 -0
- package/sdd/03_build/08_nonfunctional/repository_hygiene.md +10 -0
- package/sdd/03_build/10_test/README.md +9 -0
- package/sdd/03_build/10_test/regression_verification.md +16 -0
- package/sdd/03_build/10_test/verification_harness.md +11 -0
- package/sdd/03_build/README.md +35 -0
- package/sdd/04_verify/01_feature/README.md +5 -0
- package/sdd/04_verify/01_feature/domain_verification.md +14 -0
- package/sdd/04_verify/01_feature/service_verification.md +22 -0
- package/sdd/04_verify/02_screen/README.md +6 -0
- package/sdd/04_verify/02_screen/_screen_verify_template.md +20 -0
- package/sdd/04_verify/02_screen/admin/README.md +4 -0
- package/sdd/04_verify/02_screen/landing/README.md +4 -0
- package/sdd/04_verify/02_screen/mobile/README.md +4 -0
- package/sdd/04_verify/02_screen/platform/README.md +4 -0
- package/sdd/04_verify/03_architecture/README.md +10 -0
- package/sdd/04_verify/03_architecture/architecture_document_governance.md +15 -0
- package/sdd/04_verify/03_architecture/build_ast_runtime_tree_governance.md +28 -0
- package/sdd/04_verify/03_architecture/repository_governance.md +16 -0
- package/sdd/04_verify/03_architecture/toolchain_governance.md +58 -0
- package/sdd/04_verify/06_iac/README.md +3 -0
- package/sdd/04_verify/06_iac/dev_runtime_delivery.md +10 -0
- package/sdd/04_verify/06_iac/template_runtime_delivery.md +42 -0
- package/sdd/04_verify/07_integration/README.md +3 -0
- package/sdd/04_verify/07_integration/frontend_live_integration.md +16 -0
- package/sdd/04_verify/08_nonfunctional/README.md +3 -0
- package/sdd/04_verify/08_nonfunctional/repository_hygiene.md +14 -0
- package/sdd/04_verify/10_test/README.md +9 -0
- package/sdd/04_verify/10_test/regression_verification.md +16 -0
- package/sdd/04_verify/10_test/ui_parity/README.md +4 -0
- package/sdd/04_verify/10_test/ui_parity/loop_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/reference/.gitkeep +0 -0
- package/sdd/04_verify/10_test/ui_parity/staged_runs/.gitkeep +0 -0
- package/sdd/04_verify/10_test/verification_harness.md +17 -0
- package/sdd/04_verify/README.md +22 -0
- package/sdd/05_operate/01_runbooks/.gitkeep +1 -0
- package/sdd/05_operate/01_runbooks/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/README.md +4 -0
- package/sdd/05_operate/02_delivery_status/service_status.md +16 -0
- package/sdd/05_operate/README.md +12 -0
- package/sdd/99_toolchain/01_automation/.gitkeep +1 -0
- package/sdd/99_toolchain/01_automation/README.md +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py +132 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_route_gap.py +85 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +75 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh +84 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh +33 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh +51 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +76 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_frontend_target.py +52 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py +56 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh +100 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh +140 -0
- package/sdd/99_toolchain/01_automation/agentic-dev/validate_json_schema.py +39 -0
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +291 -0
- 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/platform_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/platform_screen_capture/orders.png +0 -0
- package/sdd/99_toolchain/01_automation/build_asset_recipes.py +10 -0
- package/sdd/99_toolchain/01_automation/build_screen_spec_pdf.py +427 -0
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +148 -0
- package/sdd/99_toolchain/01_automation/harness-layout.md +34 -0
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +319 -0
- package/sdd/99_toolchain/01_automation/playwright_exactness_manifest.py +21 -0
- package/sdd/99_toolchain/01_automation/run_playwright_exactness.py +87 -0
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +321 -0
- package/sdd/99_toolchain/01_automation/spec_asset_builder.py +274 -0
- package/sdd/99_toolchain/01_automation/ui-contract-projection.md +79 -0
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/extract-reference-pages.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs +58 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/normalize-reference-assets.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs +187 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs +50 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs +62 -0
- package/sdd/99_toolchain/01_automation/ui-parity/cli/upload-parity1.mjs +2 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/collector-metadata.schema.json +33 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/proof-result.schema.json +76 -0
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/route-gap-report.schema.json +95 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/capture-runner.mjs +55 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-adapter.mjs +25 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-contract.mjs +81 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/paths.mjs +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/core/proof-runner.mjs +255 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +23 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-proof-interface.md +60 -0
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +82 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/playwright-runtime.mjs +16 -0
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/static-runtime.mjs +6 -0
- package/sdd/99_toolchain/02_policies/.gitkeep +1 -0
- package/sdd/99_toolchain/02_policies/build-ast-governance-policy.md +22 -0
- package/sdd/99_toolchain/02_policies/compose-runtime-baseline-policy.md +24 -0
- package/sdd/99_toolchain/02_policies/convention-storage-policy.md +26 -0
- package/sdd/99_toolchain/02_policies/main-push-before-dev-deploy-policy.md +27 -0
- package/sdd/99_toolchain/02_policies/otro-orchestration-policy.md +30 -0
- package/sdd/99_toolchain/02_policies/regression-verification-policy.md +22 -0
- package/sdd/99_toolchain/03_templates/.gitkeep +1 -0
- package/sdd/99_toolchain/03_templates/asset_recipe_manifest.example.py +38 -0
- package/sdd/99_toolchain/03_templates/generated_assets/README.md +11 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-lockup.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-mark.svg +3 -0
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-wordmark.svg +3 -0
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +21 -0
- package/sdd/99_toolchain/README.md +23 -0
- package/sdd/README.md +21 -0
- package/server/.dockerignore +4 -0
- package/server/.env.example +19 -0
- package/server/Dockerfile +22 -0
- package/server/Dockerfile.dev +19 -0
- package/server/README.md +33 -0
- package/server/__init__.py +0 -0
- package/server/api/__init__.py +1 -0
- package/server/api/http/__init__.py +4 -0
- package/server/api/http/app.py +53 -0
- package/server/api/http/router.py +24 -0
- package/server/config.py +52 -0
- package/server/contexts/__init__.py +12 -0
- package/server/contexts/alerts/__init__.py +1 -0
- package/server/contexts/alerts/application/__init__.py +13 -0
- package/server/contexts/alerts/application/services.py +41 -0
- package/server/contexts/alerts/contracts/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/__init__.py +3 -0
- package/server/contexts/alerts/contracts/http/router.py +37 -0
- package/server/contexts/alerts/domain/__init__.py +15 -0
- package/server/contexts/alerts/domain/models.py +29 -0
- package/server/contexts/alerts/infrastructure/__init__.py +11 -0
- package/server/contexts/alerts/infrastructure/repository.py +41 -0
- package/server/contexts/auth/__init__.py +1 -0
- package/server/contexts/auth/application/__init__.py +3 -0
- package/server/contexts/auth/application/ports.py +10 -0
- package/server/contexts/auth/application/services.py +64 -0
- package/server/contexts/auth/contracts/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/__init__.py +4 -0
- package/server/contexts/auth/contracts/http/dependencies.py +37 -0
- package/server/contexts/auth/contracts/http/router.py +19 -0
- package/server/contexts/auth/domain/__init__.py +3 -0
- package/server/contexts/auth/domain/models.py +24 -0
- package/server/contexts/auth/infrastructure/__init__.py +4 -0
- package/server/contexts/auth/infrastructure/adapters/memory.py +19 -0
- package/server/contexts/auth/infrastructure/adapters/mongodb.py +24 -0
- package/server/contexts/auth/infrastructure/adapters/sqlalchemy.py +74 -0
- package/server/contexts/auth/infrastructure/repository.py +28 -0
- package/server/contexts/catalog/__init__.py +1 -0
- package/server/contexts/catalog/application/__init__.py +28 -0
- package/server/contexts/catalog/application/ports.py +15 -0
- package/server/contexts/catalog/application/services.py +154 -0
- package/server/contexts/catalog/contracts/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/__init__.py +3 -0
- package/server/contexts/catalog/contracts/http/router.py +60 -0
- package/server/contexts/catalog/domain/__init__.py +45 -0
- package/server/contexts/catalog/domain/models.py +113 -0
- package/server/contexts/catalog/infrastructure/__init__.py +4 -0
- package/server/contexts/catalog/infrastructure/adapters/memory.py +62 -0
- package/server/contexts/catalog/infrastructure/repository.py +8 -0
- package/server/contexts/fulfillment/__init__.py +1 -0
- package/server/contexts/fulfillment/application/__init__.py +13 -0
- package/server/contexts/fulfillment/application/ports.py +20 -0
- package/server/contexts/fulfillment/application/services.py +85 -0
- package/server/contexts/fulfillment/contracts/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/__init__.py +3 -0
- package/server/contexts/fulfillment/contracts/http/router.py +40 -0
- package/server/contexts/fulfillment/domain/__init__.py +25 -0
- package/server/contexts/fulfillment/domain/models.py +73 -0
- package/server/contexts/fulfillment/infrastructure/__init__.py +13 -0
- package/server/contexts/fulfillment/infrastructure/adapters/memory.py +43 -0
- package/server/contexts/fulfillment/infrastructure/repository.py +97 -0
- package/server/contexts/health/__init__.py +1 -0
- package/server/contexts/health/application/__init__.py +3 -0
- package/server/contexts/health/application/services.py +2 -0
- package/server/contexts/health/contracts/__init__.py +3 -0
- package/server/contexts/health/contracts/http/__init__.py +3 -0
- package/server/contexts/health/contracts/http/router.py +10 -0
- package/server/contexts/inventory/__init__.py +1 -0
- package/server/contexts/inventory/application/__init__.py +28 -0
- package/server/contexts/inventory/application/ports.py +11 -0
- package/server/contexts/inventory/application/services.py +214 -0
- package/server/contexts/inventory/contracts/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/__init__.py +3 -0
- package/server/contexts/inventory/contracts/http/router.py +82 -0
- package/server/contexts/inventory/domain/__init__.py +33 -0
- package/server/contexts/inventory/domain/models.py +93 -0
- package/server/contexts/inventory/infrastructure/__init__.py +4 -0
- package/server/contexts/inventory/infrastructure/adapters/memory.py +24 -0
- package/server/contexts/inventory/infrastructure/repository.py +8 -0
- package/server/contexts/orders/__init__.py +1 -0
- package/server/contexts/orders/application/__init__.py +19 -0
- package/server/contexts/orders/application/services.py +127 -0
- package/server/contexts/orders/contracts/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/__init__.py +3 -0
- package/server/contexts/orders/contracts/http/router.py +82 -0
- package/server/contexts/orders/domain/__init__.py +29 -0
- package/server/contexts/orders/domain/models.py +95 -0
- package/server/contexts/orders/infrastructure/__init__.py +7 -0
- package/server/contexts/orders/infrastructure/repository.py +104 -0
- package/server/contexts/shipping/__init__.py +1 -0
- package/server/contexts/shipping/application/__init__.py +13 -0
- package/server/contexts/shipping/application/services.py +92 -0
- package/server/contexts/shipping/contracts/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/__init__.py +3 -0
- package/server/contexts/shipping/contracts/http/router.py +40 -0
- package/server/contexts/shipping/domain/__init__.py +19 -0
- package/server/contexts/shipping/domain/models.py +48 -0
- package/server/contexts/shipping/infrastructure/__init__.py +9 -0
- package/server/contexts/shipping/infrastructure/repository.py +50 -0
- package/server/contexts/support/__init__.py +1 -0
- package/server/contexts/support/application/__init__.py +13 -0
- package/server/contexts/support/application/services.py +29 -0
- package/server/contexts/support/contracts/__init__.py +3 -0
- package/server/contexts/support/contracts/http/__init__.py +3 -0
- package/server/contexts/support/contracts/http/router.py +40 -0
- package/server/contexts/support/domain/__init__.py +13 -0
- package/server/contexts/support/domain/models.py +27 -0
- package/server/contexts/support/infrastructure/__init__.py +11 -0
- package/server/contexts/support/infrastructure/repository.py +70 -0
- package/server/contexts/user/__init__.py +1 -0
- package/server/contexts/user/application/__init__.py +3 -0
- package/server/contexts/user/application/ports.py +11 -0
- package/server/contexts/user/application/services.py +44 -0
- package/server/contexts/user/contracts/__init__.py +3 -0
- package/server/contexts/user/contracts/http/__init__.py +3 -0
- package/server/contexts/user/contracts/http/router.py +26 -0
- package/server/contexts/user/domain/__init__.py +3 -0
- package/server/contexts/user/domain/models.py +22 -0
- package/server/contexts/user/infrastructure/__init__.py +3 -0
- package/server/contexts/user/infrastructure/adapters/memory.py +27 -0
- package/server/contexts/user/infrastructure/adapters/mongodb.py +41 -0
- package/server/contexts/user/infrastructure/adapters/sqlalchemy.py +94 -0
- package/server/contexts/user/infrastructure/factory.py +28 -0
- package/server/data/README.md +24 -0
- package/server/data/bootstrap/alerts.json +38 -0
- package/server/data/bootstrap/auth_accounts.json +18 -0
- package/server/data/bootstrap/catalog_products.json +179 -0
- package/server/data/bootstrap/fulfillment_events.json +5 -0
- package/server/data/bootstrap/fulfillment_notes.json +5 -0
- package/server/data/bootstrap/fulfillment_tasks.json +50 -0
- package/server/data/bootstrap/inventory_levels.json +80 -0
- package/server/data/bootstrap/orders.json +62 -0
- package/server/data/bootstrap/shipping_shipments.json +50 -0
- package/server/data/bootstrap/support_faqs.json +26 -0
- package/server/data/bootstrap/users.json +20 -0
- package/server/data/bootstrap_loader.py +15 -0
- package/server/docker-entrypoint.sh +56 -0
- package/server/main.py +3 -0
- package/server/pyproject.toml +36 -0
- package/server/shared/__init__.py +1 -0
- package/server/shared/application/__init__.py +3 -0
- package/server/shared/application/health.py +2 -0
- package/server/shared/infrastructure/__init__.py +10 -0
- package/server/shared/infrastructure/runtime.py +6 -0
- package/server/shared/infrastructure/security.py +33 -0
- package/server/tests/e2e/test_domain_feature_flows.py +483 -0
- package/server/tests/test_health.py +49 -0
- package/server/uv.lock +1169 -0
- package/bin/agentic-dev.js +0 -9
- package/src/cli.js +0 -37
- package/src/init-command.js +0 -230
- package/src/lib/command.js +0 -14
- package/src/lib/fs.js +0 -92
- package/src/lib/git.js +0 -57
- package/src/lib/github.js +0 -77
- package/src/lib/prompt.js +0 -52
- package/src/lib/system.js +0 -15
- package/src/lib/template.js +0 -143
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
usage() {
|
|
5
|
+
cat <<'EOF'
|
|
6
|
+
Usage: run_frontend_target.sh <action> [repo_root] [target]
|
|
7
|
+
|
|
8
|
+
Actions:
|
|
9
|
+
build
|
|
10
|
+
preview
|
|
11
|
+
scaffold
|
|
12
|
+
route_gap
|
|
13
|
+
materialize_references
|
|
14
|
+
proof
|
|
15
|
+
EOF
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if [[ $# -lt 1 ]]; then
|
|
19
|
+
usage >&2
|
|
20
|
+
exit 1
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
action="$1"
|
|
24
|
+
repo_root="$(cd "${2:-$(pwd)}" && pwd)"
|
|
25
|
+
target_name="${3:-${FRONTEND_TARGET:-}}"
|
|
26
|
+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
27
|
+
resolver_path="${script_dir}/resolve_frontend_target.py"
|
|
28
|
+
payload="$(python3 "${resolver_path}" "${repo_root}" "${target_name}")"
|
|
29
|
+
|
|
30
|
+
read_target_value() {
|
|
31
|
+
local key="$1"
|
|
32
|
+
python3 - "${payload}" "${key}" <<'PY'
|
|
33
|
+
import json
|
|
34
|
+
import sys
|
|
35
|
+
|
|
36
|
+
payload = json.loads(sys.argv[1])
|
|
37
|
+
key = sys.argv[2]
|
|
38
|
+
value = payload
|
|
39
|
+
for part in key.split("."):
|
|
40
|
+
if not isinstance(value, dict):
|
|
41
|
+
raise SystemExit(1)
|
|
42
|
+
value = value.get(part)
|
|
43
|
+
if isinstance(value, (dict, list)):
|
|
44
|
+
print(json.dumps(value, ensure_ascii=False))
|
|
45
|
+
elif value is None:
|
|
46
|
+
raise SystemExit(1)
|
|
47
|
+
else:
|
|
48
|
+
print(str(value))
|
|
49
|
+
PY
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
target_id="$(read_target_value "name")"
|
|
53
|
+
target_dir="$(read_target_value "target.dir")"
|
|
54
|
+
adapter_path="$(read_target_value "target.adapter_path")"
|
|
55
|
+
screens_path="$(read_target_value "target.screens_path")"
|
|
56
|
+
routes_path="$(read_target_value "target.routes_path")"
|
|
57
|
+
parity_contract_path="$(read_target_value "target.parity_contract_path")"
|
|
58
|
+
route_gap_output="$(read_target_value "target.route_gap_output")"
|
|
59
|
+
route_gap_markdown_output="$(read_target_value "target.route_gap_markdown_output")"
|
|
60
|
+
proof_output="$(read_target_value "target.proof_output")"
|
|
61
|
+
|
|
62
|
+
cd "${repo_root}"
|
|
63
|
+
|
|
64
|
+
case "${action}" in
|
|
65
|
+
build)
|
|
66
|
+
npm --prefix "${target_dir}" run build
|
|
67
|
+
;;
|
|
68
|
+
preview)
|
|
69
|
+
npm --prefix "${target_dir}" run preview
|
|
70
|
+
;;
|
|
71
|
+
scaffold)
|
|
72
|
+
node sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs \
|
|
73
|
+
--adapter "${adapter_path}" \
|
|
74
|
+
--out "${parity_contract_path}"
|
|
75
|
+
;;
|
|
76
|
+
route_gap)
|
|
77
|
+
node sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs \
|
|
78
|
+
--service "${target_id}" \
|
|
79
|
+
--screens "${screens_path}" \
|
|
80
|
+
--routes "${routes_path}" \
|
|
81
|
+
--out "${route_gap_output}" \
|
|
82
|
+
--markdown-out "${route_gap_markdown_output}"
|
|
83
|
+
;;
|
|
84
|
+
materialize_references)
|
|
85
|
+
node sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs \
|
|
86
|
+
--adapter "${adapter_path}" \
|
|
87
|
+
--contract "${parity_contract_path}"
|
|
88
|
+
;;
|
|
89
|
+
proof)
|
|
90
|
+
node sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs \
|
|
91
|
+
--adapter "${adapter_path}" \
|
|
92
|
+
--contract "${parity_contract_path}" \
|
|
93
|
+
--out "${proof_output}"
|
|
94
|
+
;;
|
|
95
|
+
*)
|
|
96
|
+
echo "Unsupported frontend action: ${action}" >&2
|
|
97
|
+
usage >&2
|
|
98
|
+
exit 1
|
|
99
|
+
;;
|
|
100
|
+
esac
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
usage() {
|
|
5
|
+
cat <<'EOF'
|
|
6
|
+
Usage: run_repo_phase.sh <phase> [repo_root] [target]
|
|
7
|
+
|
|
8
|
+
Run a repo-local command from the nearest repo contract.
|
|
9
|
+
|
|
10
|
+
Supported phases:
|
|
11
|
+
plan_audit
|
|
12
|
+
build
|
|
13
|
+
proof
|
|
14
|
+
deploy_dev
|
|
15
|
+
verify_dev
|
|
16
|
+
full_dev
|
|
17
|
+
EOF
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if [[ $# -lt 1 ]]; then
|
|
21
|
+
usage >&2
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
phase="$1"
|
|
26
|
+
repo_root="${2:-$(pwd)}"
|
|
27
|
+
frontend_target="${3:-}"
|
|
28
|
+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
29
|
+
resolver_path="${script_dir}/resolve_repo_contract.py"
|
|
30
|
+
frontend_resolver_path="${script_dir}/resolve_frontend_target.py"
|
|
31
|
+
proof_schema_path="${script_dir}/../ui-parity/contracts/proof-result.schema.json"
|
|
32
|
+
route_gap_schema_path="${script_dir}/../ui-parity/contracts/route-gap-report.schema.json"
|
|
33
|
+
schema_validator_path="${script_dir}/validate_json_schema.py"
|
|
34
|
+
|
|
35
|
+
resolve_contract() {
|
|
36
|
+
"${resolver_path}" "${repo_root}"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
load_contract_value() {
|
|
40
|
+
local contract_path="$1"
|
|
41
|
+
local key="$2"
|
|
42
|
+
python3 - "${contract_path}" "${key}" <<'PY'
|
|
43
|
+
import json
|
|
44
|
+
import sys
|
|
45
|
+
|
|
46
|
+
contract_path, key = sys.argv[1], sys.argv[2]
|
|
47
|
+
with open(contract_path, "r", encoding="utf-8") as handle:
|
|
48
|
+
data = json.load(handle)
|
|
49
|
+
|
|
50
|
+
keys = key.split(".")
|
|
51
|
+
value = data
|
|
52
|
+
for part in keys:
|
|
53
|
+
if not isinstance(value, dict):
|
|
54
|
+
raise SystemExit(1)
|
|
55
|
+
value = value.get(part)
|
|
56
|
+
|
|
57
|
+
if not isinstance(value, str) or not value.strip():
|
|
58
|
+
raise SystemExit(1)
|
|
59
|
+
|
|
60
|
+
print(value.strip())
|
|
61
|
+
PY
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
run_single_phase() {
|
|
65
|
+
local contract_path="$1"
|
|
66
|
+
local repo_root_path="$2"
|
|
67
|
+
local single_phase="$3"
|
|
68
|
+
local command
|
|
69
|
+
command="$(load_contract_value "${contract_path}" "commands.${single_phase}")" || {
|
|
70
|
+
echo "Phase command not found in ${contract_path}: ${single_phase}" >&2
|
|
71
|
+
exit 1
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
printf 'Running phase `%s` from %s\n' "${single_phase}" "${contract_path}"
|
|
75
|
+
(
|
|
76
|
+
cd "${repo_root_path}"
|
|
77
|
+
if [[ -n "${frontend_target}" ]]; then
|
|
78
|
+
export FRONTEND_TARGET="${frontend_target}"
|
|
79
|
+
fi
|
|
80
|
+
eval "${command}"
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
if [[ "${single_phase}" == "plan_audit" ]]; then
|
|
84
|
+
local route_gap_output
|
|
85
|
+
route_gap_output="$(python3 "${frontend_resolver_path}" "${repo_root_path}" "${frontend_target}" | python3 -c 'import json,sys; print(json.load(sys.stdin)["target"]["route_gap_output"])')" || \
|
|
86
|
+
route_gap_output="$(load_contract_value "${contract_path}" "artifacts.route_gap_output")" || {
|
|
87
|
+
echo "Route gap artifact path not found in ${contract_path}" >&2
|
|
88
|
+
exit 1
|
|
89
|
+
}
|
|
90
|
+
if [[ ! -f "${repo_root_path}/${route_gap_output}" ]]; then
|
|
91
|
+
echo "Expected route gap artifact missing: ${repo_root_path}/${route_gap_output}" >&2
|
|
92
|
+
exit 1
|
|
93
|
+
fi
|
|
94
|
+
python3 "${schema_validator_path}" "${route_gap_schema_path}" "${repo_root_path}/${route_gap_output}"
|
|
95
|
+
python3 "${script_dir}/analyze_route_gap.py" --gate "${repo_root_path}/${route_gap_output}"
|
|
96
|
+
fi
|
|
97
|
+
|
|
98
|
+
if [[ "${single_phase}" == "proof" || "${single_phase}" == "verify_dev" ]]; then
|
|
99
|
+
local proof_output
|
|
100
|
+
proof_output="$(python3 "${frontend_resolver_path}" "${repo_root_path}" "${frontend_target}" | python3 -c 'import json,sys; print(json.load(sys.stdin)["target"]["proof_output"])')" || \
|
|
101
|
+
proof_output="$(load_contract_value "${contract_path}" "artifacts.proof_output")" || {
|
|
102
|
+
echo "Proof artifact path not found in ${contract_path}" >&2
|
|
103
|
+
exit 1
|
|
104
|
+
}
|
|
105
|
+
if [[ ! -f "${repo_root_path}/${proof_output}" ]]; then
|
|
106
|
+
echo "Expected proof artifact missing: ${repo_root_path}/${proof_output}" >&2
|
|
107
|
+
exit 1
|
|
108
|
+
fi
|
|
109
|
+
python3 "${schema_validator_path}" "${proof_schema_path}" "${repo_root_path}/${proof_output}"
|
|
110
|
+
if [[ "${single_phase}" == "proof" ]]; then
|
|
111
|
+
python3 "${script_dir}/analyze_proof_results.py" --gate "${repo_root_path}/${proof_output}"
|
|
112
|
+
fi
|
|
113
|
+
fi
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if [[ ! -f "${resolver_path}" ]]; then
|
|
117
|
+
echo "Missing contract resolver: ${resolver_path}" >&2
|
|
118
|
+
exit 1
|
|
119
|
+
fi
|
|
120
|
+
|
|
121
|
+
contract_path="$(resolve_contract)" || exit 1
|
|
122
|
+
repo_root="$(cd "$(dirname "${contract_path}")/.." && pwd)"
|
|
123
|
+
|
|
124
|
+
case "${phase}" in
|
|
125
|
+
plan_audit|build|proof|deploy_dev|verify_dev)
|
|
126
|
+
run_single_phase "${contract_path}" "${repo_root}" "${phase}"
|
|
127
|
+
;;
|
|
128
|
+
full_dev)
|
|
129
|
+
run_single_phase "${contract_path}" "${repo_root}" plan_audit
|
|
130
|
+
run_single_phase "${contract_path}" "${repo_root}" build
|
|
131
|
+
run_single_phase "${contract_path}" "${repo_root}" proof
|
|
132
|
+
run_single_phase "${contract_path}" "${repo_root}" deploy_dev
|
|
133
|
+
run_single_phase "${contract_path}" "${repo_root}" verify_dev
|
|
134
|
+
;;
|
|
135
|
+
*)
|
|
136
|
+
echo "Unsupported phase: ${phase}" >&2
|
|
137
|
+
usage >&2
|
|
138
|
+
exit 1
|
|
139
|
+
;;
|
|
140
|
+
esac
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import json
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from jsonschema import Draft202012Validator
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> int:
|
|
10
|
+
if len(sys.argv) != 3:
|
|
11
|
+
print("Usage: validate_json_schema.py <schema-json> <instance-json>", file=sys.stderr)
|
|
12
|
+
return 1
|
|
13
|
+
|
|
14
|
+
schema_path = Path(sys.argv[1])
|
|
15
|
+
instance_path = Path(sys.argv[2])
|
|
16
|
+
if not schema_path.is_file():
|
|
17
|
+
print(f"Schema not found: {schema_path}", file=sys.stderr)
|
|
18
|
+
return 1
|
|
19
|
+
if not instance_path.is_file():
|
|
20
|
+
print(f"Instance not found: {instance_path}", file=sys.stderr)
|
|
21
|
+
return 1
|
|
22
|
+
|
|
23
|
+
schema = json.loads(schema_path.read_text(encoding="utf-8"))
|
|
24
|
+
instance = json.loads(instance_path.read_text(encoding="utf-8"))
|
|
25
|
+
validator = Draft202012Validator(schema)
|
|
26
|
+
errors = sorted(validator.iter_errors(instance), key=lambda error: list(error.absolute_path))
|
|
27
|
+
if errors:
|
|
28
|
+
print("schema_validation=fail")
|
|
29
|
+
for error in errors[:20]:
|
|
30
|
+
path_label = ".".join(str(part) for part in error.absolute_path) or "<root>"
|
|
31
|
+
print(f"- {path_label}: {error.message}")
|
|
32
|
+
return 2
|
|
33
|
+
|
|
34
|
+
print("schema_validation=pass")
|
|
35
|
+
return 0
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == "__main__":
|
|
39
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# Agentic Parity Harness Design
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
이 템플릿은 단일 서비스 starter가 아니라, 복제 후 각 서비스가 자기 저장소 안에서 SDD 기반 하네스를 완결적으로 소유하는 출발점이다.
|
|
6
|
+
|
|
7
|
+
따라서 이 문서의 목표는 다음이다.
|
|
8
|
+
|
|
9
|
+
- 템플릿을 복제한 각 서비스 레포가 외부 하네스 저장소 없이도 `build -> proof -> deploy_dev -> verify_dev`를 실행하게 한다.
|
|
10
|
+
- `agentic-dev` 계약, parity proof, phase runner, 분석기 같은 하네스 도구를 모두 `99_toolchain` 아래 정본으로 둔다.
|
|
11
|
+
- UI parity strict proof를 프론트엔드 템플릿의 기본 하네스로 포함한다.
|
|
12
|
+
- `proof`와 DEV 검증을 선택이 아니라 기본 강제 phase로 설계한다.
|
|
13
|
+
- 스킬은 하네스 도구의 구현체가 아니라, `99_toolchain` 도구를 호출하는 인터페이스로만 동작한다.
|
|
14
|
+
- 외부 collector/연구 시스템은 integration 대상일 뿐, 서비스 레포 내부 구현으로 복사하지 않는다.
|
|
15
|
+
|
|
16
|
+
## Core Position
|
|
17
|
+
|
|
18
|
+
이 설계에서는 `agentic-dev`와 parity proof를 separate ad-hoc scripts로 흩어두지 않는다.
|
|
19
|
+
|
|
20
|
+
대신 다음처럼 해석한다.
|
|
21
|
+
|
|
22
|
+
- `agentic-dev`
|
|
23
|
+
- 서비스별 phase 계약
|
|
24
|
+
- `99_toolchain`
|
|
25
|
+
- 그 계약을 실행하는 공용 하네스 런타임의 repo-local 정본
|
|
26
|
+
- skill
|
|
27
|
+
- `99_toolchain` 실행기를 호출하는 얇은 orchestration surface
|
|
28
|
+
|
|
29
|
+
그리고 템플릿에서는 하네스 런타임을 `99_toolchain`으로 흡수한다.
|
|
30
|
+
|
|
31
|
+
즉 복제 후 각 서비스 레포 안에는 둘 다 존재한다.
|
|
32
|
+
|
|
33
|
+
- 서비스별 계약 파일
|
|
34
|
+
- `99_toolchain` 하네스 실행기
|
|
35
|
+
|
|
36
|
+
이렇게 해야 각 서비스 레포가 self-contained 가 된다.
|
|
37
|
+
|
|
38
|
+
## Design Principles
|
|
39
|
+
|
|
40
|
+
- self-contained first:
|
|
41
|
+
- 복제된 서비스 레포는 외부 skill 저장소가 없어도 하네스를 실행할 수 있어야 한다.
|
|
42
|
+
- toolchain-owned execution:
|
|
43
|
+
- 하네스 실행 스크립트와 분석기는 `99_toolchain`의 소유물이어야 한다.
|
|
44
|
+
- repo-local contract:
|
|
45
|
+
- 각 서비스는 자기 `build`, `proof`, `deploy_dev`, `verify_dev`, `proof_output`를 자기 레포 안에서 선언한다.
|
|
46
|
+
- deterministic proof:
|
|
47
|
+
- `proof`는 strict parity 또는 동등한 결정적 UI 증거를 남겨야 한다.
|
|
48
|
+
- evidence-first:
|
|
49
|
+
- 성공/실패는 콘솔 로그가 아니라 `sdd/04_verify/...` 산출물로 판단한다.
|
|
50
|
+
- deploy discipline:
|
|
51
|
+
- DEV 반영이 필요한 작업은 `main push -> DEV deploy -> DEV verify`를 따른다.
|
|
52
|
+
- external integration boundary:
|
|
53
|
+
- collector/backend/research 시스템은 외부에 두고, repo에는 adapter와 contract만 둔다.
|
|
54
|
+
|
|
55
|
+
## Required Template Surface
|
|
56
|
+
|
|
57
|
+
### 1. Toolchain-owned agentic runtime
|
|
58
|
+
|
|
59
|
+
템플릿 안에 다음 runtime을 `sdd/99_toolchain/01_automation/agentic-dev/`로 포함한다.
|
|
60
|
+
|
|
61
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh`
|
|
62
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py`
|
|
63
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh`
|
|
64
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py`
|
|
65
|
+
- optional:
|
|
66
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/bootstrap_spec_workspace.sh`
|
|
67
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json`
|
|
68
|
+
|
|
69
|
+
설계 규칙:
|
|
70
|
+
|
|
71
|
+
- 이 파일들은 외부 저장소 참조가 아니라 템플릿 payload다.
|
|
72
|
+
- 템플릿 개선 시 상위 `templates`에서 갱신하고, 각 서비스는 필요시 역전파한다.
|
|
73
|
+
- 각 서비스 레포는 이 runtime을 자기 소유 코드처럼 취급한다.
|
|
74
|
+
- skill은 이 디렉터리의 실행기를 호출해야 하며, 별도 구현을 복제하면 안 된다.
|
|
75
|
+
|
|
76
|
+
### 2. Agentic contract layer
|
|
77
|
+
|
|
78
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json`
|
|
79
|
+
- `.codex/agentic-dev.json`
|
|
80
|
+
- `.claude/agentic-dev.json`
|
|
81
|
+
|
|
82
|
+
필수 contract shape:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"schema_version": 1,
|
|
87
|
+
"name": "<service-name>",
|
|
88
|
+
"spec": {
|
|
89
|
+
"planning_paths": ["sdd/01_planning", "sdd/02_plan"],
|
|
90
|
+
"canonical_targets_dir": "sdd/02_plan"
|
|
91
|
+
},
|
|
92
|
+
"commands": {
|
|
93
|
+
"build": "<repo-local build command>",
|
|
94
|
+
"proof": "<repo-local deterministic proof command>",
|
|
95
|
+
"deploy_dev": "<repo-local DEV deploy command>",
|
|
96
|
+
"verify_dev": "<repo-local DEV verify command>"
|
|
97
|
+
},
|
|
98
|
+
"artifacts": {
|
|
99
|
+
"proof_output": "sdd/04_verify/10_test/<tool>/<latest>.json"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
설계 규칙:
|
|
105
|
+
|
|
106
|
+
- vendored runner는 `.codex -> .claude -> sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json` 순서로 contract를 찾는다.
|
|
107
|
+
- `.codex/agentic-dev.json`, `.claude/agentic-dev.json`는 canonical contract만 가리킨다.
|
|
108
|
+
- 서비스별 차이는 오직 이 contract와 repo-local commands에서 표현한다.
|
|
109
|
+
|
|
110
|
+
### 3. UI parity engine layer
|
|
111
|
+
|
|
112
|
+
Frontend-capable template의 parity 실행 도구 정본은 `99_toolchain` 아래에 둔다.
|
|
113
|
+
|
|
114
|
+
상세 구조와 레이어 분리는 [parity-execution-tooling-design.md](parity-execution-tooling-design.md)를 따른다.
|
|
115
|
+
|
|
116
|
+
Frontend-capable template에는 다음 두 층이 있어야 한다.
|
|
117
|
+
|
|
118
|
+
- toolchain-owned engine:
|
|
119
|
+
- `sdd/99_toolchain/01_automation/ui-parity/*`
|
|
120
|
+
- app-specific adapter:
|
|
121
|
+
- `frontend/scripts/ui-parity-platform-adapter.mjs`
|
|
122
|
+
|
|
123
|
+
참조 구현 기준으로 초기 이관 대상 스크립트 묶음은 다음과 같다.
|
|
124
|
+
|
|
125
|
+
- `frontend/scripts/ui-parity-core.mjs`
|
|
126
|
+
- `frontend/scripts/ui-parity-runner.mjs`
|
|
127
|
+
- `frontend/scripts/ui-parity-runtimes.mjs`
|
|
128
|
+
- `frontend/scripts/ui-parity-auth.mjs`
|
|
129
|
+
- `frontend/scripts/ui-parity-scaffold.mjs`
|
|
130
|
+
- `frontend/scripts/ui-parity-route-gap-report.mjs`
|
|
131
|
+
- `frontend/scripts/ui-parity-extract-reference-pages.mjs`
|
|
132
|
+
- `frontend/scripts/ui-parity-materialize-reference-assets.mjs`
|
|
133
|
+
- `frontend/scripts/ui-parity-normalize-reference-assets.mjs`
|
|
134
|
+
- optional:
|
|
135
|
+
- `frontend/scripts/ui-parity-playwright-runner.mjs`
|
|
136
|
+
- `frontend/scripts/ui-parity-stagehand-runner.mjs`
|
|
137
|
+
- `frontend/scripts/ui-parity-parity1-upload.mjs`
|
|
138
|
+
|
|
139
|
+
`frontend/package.json`에는 최소한 다음 entrypoint를 둔다.
|
|
140
|
+
|
|
141
|
+
- `ui:parity:scaffold`
|
|
142
|
+
- `ui:parity:proof`
|
|
143
|
+
- `ui:parity`
|
|
144
|
+
- `ui:parity:route-gap`
|
|
145
|
+
|
|
146
|
+
### 4. Repo-local orchestration layer
|
|
147
|
+
|
|
148
|
+
`scripts/dev/` 래퍼는 선택 레이어다.
|
|
149
|
+
|
|
150
|
+
- base template에는 포함하지 않는다.
|
|
151
|
+
- loop/sweep/edit-once가 필요할 때만 repo별로 추가한다.
|
|
152
|
+
|
|
153
|
+
설계 규칙:
|
|
154
|
+
|
|
155
|
+
- loop/sweep는 repo-local npm entrypoint를 호출한다.
|
|
156
|
+
- research export는 dependency가 있으면 수행하고, 없으면 warning 수준으로 남기되 proof를 실패시키지 않는다.
|
|
157
|
+
|
|
158
|
+
### 5. Contract and evidence layer
|
|
159
|
+
|
|
160
|
+
표준 SDD 경로:
|
|
161
|
+
|
|
162
|
+
- `sdd/02_plan/10_test/<service>/ui_parity_<target>_contract.yaml`
|
|
163
|
+
- `sdd/02_plan/99_generated/from_planning/ui_parity/`
|
|
164
|
+
- `sdd/04_verify/10_test/ui_parity/`
|
|
165
|
+
|
|
166
|
+
권장 evidence 구조:
|
|
167
|
+
|
|
168
|
+
- `reference/`
|
|
169
|
+
- `<timestamp>/actual/`
|
|
170
|
+
- `<timestamp>/diff/`
|
|
171
|
+
- `loop_runs/`
|
|
172
|
+
- `staged_runs/`
|
|
173
|
+
- `ui_parity_latest.json`
|
|
174
|
+
- `<service>_agentic_dev_latest.json`
|
|
175
|
+
|
|
176
|
+
## Harness Enforcement Model
|
|
177
|
+
|
|
178
|
+
### Required phases
|
|
179
|
+
|
|
180
|
+
모든 프론트엔드 포함 서비스 템플릿은 아래 phase를 기본 강제한다.
|
|
181
|
+
|
|
182
|
+
1. `build`
|
|
183
|
+
2. `proof`
|
|
184
|
+
3. `deploy_dev`
|
|
185
|
+
4. `verify_dev`
|
|
186
|
+
|
|
187
|
+
강제 규칙:
|
|
188
|
+
|
|
189
|
+
- 프론트엔드 변경이 있는 repo는 `proof` 생략을 허용하지 않는다.
|
|
190
|
+
- `proof_output`이 생성되지 않으면 `proof` 성공으로 보지 않는다.
|
|
191
|
+
- DEV 반영이 필요한 작업은 `deploy_dev`와 `verify_dev`를 반드시 통과해야 한다.
|
|
192
|
+
- DEV 반영 전에는 `main push`가 선행되어야 한다.
|
|
193
|
+
- phase 실행은 항상 repo 내부 `sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh`를 기준으로 한다.
|
|
194
|
+
|
|
195
|
+
### Gate semantics
|
|
196
|
+
|
|
197
|
+
- `build`
|
|
198
|
+
- 빌드 또는 정적 검증 통과
|
|
199
|
+
- `proof`
|
|
200
|
+
- strict parity 또는 deterministic UI proof 수행
|
|
201
|
+
- latest artifact 생성
|
|
202
|
+
- `deploy_dev`
|
|
203
|
+
- repo-local DEV deploy 명령 성공
|
|
204
|
+
- `verify_dev`
|
|
205
|
+
- 실제 DEV endpoint 또는 runtime smoke check 성공
|
|
206
|
+
|
|
207
|
+
### Failure semantics
|
|
208
|
+
|
|
209
|
+
- `proof` 실패:
|
|
210
|
+
- latest json, actual/diff artifacts, 관련 loop evidence를 남긴다.
|
|
211
|
+
- `deploy_dev` 실패:
|
|
212
|
+
- 증거 문서에 실패 명령과 시점을 남긴다.
|
|
213
|
+
- `verify_dev` 실패:
|
|
214
|
+
- `fix -> redeploy -> reverify` 루프로 되돌린다.
|
|
215
|
+
|
|
216
|
+
## Boundary Model
|
|
217
|
+
|
|
218
|
+
### Vendored into each service repo
|
|
219
|
+
|
|
220
|
+
템플릿 복제 후 각 서비스가 직접 소유해야 하는 것:
|
|
221
|
+
|
|
222
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/*`
|
|
223
|
+
- `sdd/99_toolchain/01_automation/ui-parity/*`
|
|
224
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json`
|
|
225
|
+
- `.codex/agentic-dev.json`
|
|
226
|
+
- `.claude/agentic-dev.json`
|
|
227
|
+
- `frontend/scripts/ui-parity-platform-adapter.mjs`
|
|
228
|
+
- app-side collector upload adapter
|
|
229
|
+
- repo-local loop/sweep scripts
|
|
230
|
+
- evidence path declarations
|
|
231
|
+
|
|
232
|
+
### Kept external
|
|
233
|
+
|
|
234
|
+
서비스 레포 밖에 남겨야 하는 것:
|
|
235
|
+
|
|
236
|
+
- `parity-1` collector backend
|
|
237
|
+
- `parity-1` objective/research implementation
|
|
238
|
+
- 실제 collector URL, API key, 저장소 위치 같은 환경값
|
|
239
|
+
|
|
240
|
+
### Reference source only
|
|
241
|
+
|
|
242
|
+
다음은 참조 구현일 뿐, 런타임 dependency로 남길 필요는 없다.
|
|
243
|
+
|
|
244
|
+
- `say828-agent-market/codex/skills/universal-agentic-dev`
|
|
245
|
+
|
|
246
|
+
정책:
|
|
247
|
+
|
|
248
|
+
- 템플릿은 여기서 아이디어와 runner를 가져올 수 있다.
|
|
249
|
+
- 하지만 최종 서비스 레포는 외부 skill 저장소가 없어도 실행 가능해야 한다.
|
|
250
|
+
|
|
251
|
+
## Template Rollout Recommendation
|
|
252
|
+
|
|
253
|
+
### Base template
|
|
254
|
+
|
|
255
|
+
`templates`에는 최소한 다음을 넣는다.
|
|
256
|
+
|
|
257
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json` example
|
|
258
|
+
- `.codex/agentic-dev.json`
|
|
259
|
+
- `.claude/agentic-dev.json`
|
|
260
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/` vendored runtime
|
|
261
|
+
- `sdd/99_toolchain/01_automation/ui-parity/` parity tooling
|
|
262
|
+
- optional `scripts/dev/` parity orchestration wrappers
|
|
263
|
+
- `sdd/02_plan/10_test/templates/ui_parity_platform_contract.template.yaml`
|
|
264
|
+
- `sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep`
|
|
265
|
+
- `sdd/04_verify/10_test/ui_parity/.gitkeep`
|
|
266
|
+
|
|
267
|
+
### Frontend template
|
|
268
|
+
|
|
269
|
+
`templates/client/platform` 또는 별도 frontend template에는 다음을 넣는다.
|
|
270
|
+
|
|
271
|
+
- parity npm scripts
|
|
272
|
+
- `client/platform/scripts/ui-parity-platform-adapter.mjs`
|
|
273
|
+
- minimal screen catalog / route catalog placeholder
|
|
274
|
+
- proof output path convention
|
|
275
|
+
|
|
276
|
+
그리고 repo root에는 다음 toolchain 실행기를 둔다.
|
|
277
|
+
|
|
278
|
+
- `sdd/99_toolchain/01_automation/ui-parity/*`
|
|
279
|
+
- `sdd/99_toolchain/01_automation/agentic-dev/*`
|
|
280
|
+
|
|
281
|
+
### Sanitization rules
|
|
282
|
+
|
|
283
|
+
- `dist/`, `node_modules/`, captured images, timestamped runs, 실제 reference asset은 템플릿에 넣지 않는다.
|
|
284
|
+
- contract 예시에는 실환경 URL 대신 placeholder를 둔다.
|
|
285
|
+
|
|
286
|
+
## Non-Goals
|
|
287
|
+
|
|
288
|
+
- `parity-1` collector/objective 코드를 서비스 레포 안으로 복사하지 않는다.
|
|
289
|
+
- 특정 서비스의 화면 수, screen code, reference asset을 템플릿 공통값으로 고정하지 않는다.
|
|
290
|
+
- 중앙 공용 하네스 서버나 외부 skill 저장소가 없으면 실행할 수 없는 구조를 강제하지 않는다.
|
|
291
|
+
- 하네스 구현을 skill 내부 로직으로 숨겨 두지 않는다.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|