c_agri_trade/process/templates/tech-profile.template.yaml

115 lines
5.3 KiB
YAML

# ==============================================================================
# AI-Native Unified Process (UP-AI v1.0) - Declarative Technology Profile Template
# ==============================================================================
# Copy this template to `/tech-profile.yaml` at the root of your project workspace.
# Configure the technology stack, project archetype, test tools, and integration
# sandboxes according to your project requirements.
#
# All UP-AI agent skills dynamically read this profile during Inception,
# Elaboration, Construction, and Transition phases.
# ==============================================================================
project:
name: "Target Application Name"
code: "APP"
version: "1.0.0"
description: "Target system executive description"
# Archetype: 'greenfield' (0-to-1 development) or 'brownfield' (legacy modernization/migration)
archetype: "greenfield"
# Inception Configuration
inception:
# Source document paths
requirements_inputs:
- "01_BRD/PRD_Specification.md"
# Brownfield-only sources (ignored if archetype is greenfield)
legacy_sources:
source_code_dir: "02_legacy_source_code"
database_dump_dir: "02_legacy_source_code/schema"
screenshots_dir: "03_legacy_screen_shots"
# Architecture & Target Technology Stack
# (For pre-packaged stack presets like Frappe, Django, Spring Boot, FastAPI, or NestJS,
# see `process/templates/tech-profile-presets.md`)
stack:
architecture_pattern: "modular_monolith" # Options: modular_monolith | microservices | event_driven | serverless
multi_tenancy:
enabled: true
model: "row_level_security" # Options: row_level_security | schema_per_tenant | database_per_tenant (Frappe sites)
backend:
language: "python" # Options: python | typescript | go | java | csharp | rust
framework: "fastapi" # Options: fastapi | frappe | django | express | nestjs | gin | spring_boot | dotnet_core
orm: "sqlalchemy" # Options: sqlalchemy | doctype | prisma | typeorm | django_orm | gorm | hibernate | ef_core
migrations: "alembic" # Options: alembic | bench_migrate | prisma | flyway | django_migrations | golang_migrate | dbup
api_standard: "rest_openapi" # Options: rest_openapi | graphql | grpc
test_framework: "pytest" # Options: pytest | frappe_test_runner | junit5 | vitest
coverage_tool: "pytest-cov" # Options: pytest-cov | coverage | jacoco | vitest
frontend:
framework: "react" # Options: react | frappe_desk | vue | angular | svelte | nextjs | flutter
language: "typescript"
state_management: "zustand" # Options: zustand | redux_toolkit | pinia | context_api
ui_library: "tailwind_shadcn" # Options: tailwind_shadcn | frappe_desk | mui | ant_design | vanilla_css
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
test_framework: "vitest"
e2e_framework: "playwright"
authentication:
provider: "keycloak" # Options: keycloak | frappe_auth | auth0 | cognito | supabase_auth | firebase_auth | custom_oidc
protocol: "oidc_pkce"
token_standard: "jwt_bearer"
authorization_model: "rbac_abac" # Options: rbac | rbac_abac | casbin | opa
database:
primary: "postgresql" # Options: postgresql | mariadb | mysql | mongodb | dynamodb
cache_and_streams: "valkey" # Options: valkey | redis | none
search_engine: "none" # Options: elasticsearch | opensearch | pg_trgm | none
# Wave 0 Integration Sandboxes
# Every third-party external dependency MUST declare a deterministic mock/sandbox adapter.
sandboxes:
- id: "identity_provider"
service_name: "Auth & Identity"
mock_adapter_path: "sandbox/identity_mock.py"
mock_mode: "deterministic" # Options: deterministic | replay | live_proxy
- id: "payment_gateway"
service_name: "Payment & Settlement"
mock_adapter_path: "sandbox/payment_mock.py"
mock_mode: "deterministic"
- id: "messaging_service"
service_name: "SMS / Email Notification"
mock_adapter_path: "sandbox/notification_mock.py"
mock_mode: "deterministic"
# Governance & Process Tailoring (CMMI Level 3 / UP-AI v1.1)
governance:
# Tailoring Tier Options:
# - 'tier_1_high_assurance' (Mission-critical / Financial: All 18 stages, >=95% coverage across all tiers, dual QA)
# - 'tier_2_standard_enterprise' (Default: Core UP flow, differentiated coverage, standard QA deliverables)
# - 'tier_3_fast_track' (Internal prototypes: Direct to construction, unit/smoke testing, minimal ceremony)
tailoring_tier: "tier_2_standard_enterprise"
enforce_deterministic_gates: true
gate_validator_script: "scripts/verify_traceability_gates.py"
# Quality Targets & Gate 14.1 Mandates
quality_targets:
# Differentiated Coverage Budgets (UP-AI v1.1)
coverage_thresholds:
backend_domain_fsm: 95.0 # Hard gate for core business FSMs, algorithms, security
integration_adapters: 90.0 # Deterministic sandbox verification
frontend_components: 80.0 # UI component branch coverage + mandatory Playwright E2E
test_coverage_threshold: 95.0 # Baseline fallback
required_test_dimensions:
- "happy_path"
- "alternate_and_boundary"
- "negative_validation_failures"
- "fsm_invariants_and_concurrency"
required_test_levels:
- "unit"
- "api_contract_bruno"
- "browser_e2e_playwright"
- "smoke"
- "manual_qa_workbook_21_sheets" # Enforced by Gate 14.1