From 24901c550edc35da3a365e95b6990d5dda9b2802 Mon Sep 17 00:00:00 2001 From: Prashant Shendre Date: Sat, 10 Oct 2026 19:12:44 +0530 Subject: [PATCH] process directory refactored out --- .agents | 1 + .gitignore | 1 + .../process_change_register.md | 35 -- AGENTS.md | 19 +- CLAUDE.md | 5 +- GEMINI.md | 5 +- README.md | 328 +++++++----------- .../skills/up-arch-risk-spike/SKILL.md | 4 +- .../.agents}/skills/up-brd-extract/SKILL.md | 4 +- .../skills/up-change-request-impact/SKILL.md | 2 +- .../.agents}/skills/up-code-generate/SKILL.md | 2 +- .../skills/up-context-checkpoint/SKILL.md | 2 +- .../.agents}/skills/up-defect-fix/SKILL.md | 2 +- .../skills/up-hld-lld-generate/SKILL.md | 4 +- .../skills/up-iteration-plan/SKILL.md | 4 +- .../skills/up-legacy-gap-analysis/SKILL.md | 2 +- .../up-parallel-work-integrate/SKILL.md | 0 .../skills/up-process-change/SKILL.md | 12 +- .../skills/up-project-bootstrap/SKILL.md | 10 +- .../skills/up-requirements-elicit/SKILL.md | 0 .../.agents}/skills/up-srs-derive/SKILL.md | 4 +- .../skills/up-test-model-generate/SKILL.md | 2 +- .../skills/up-traceability-gate/SKILL.md | 4 +- .../.agents}/skills/up-uat-handover/SKILL.md | 4 +- .../skills/up-use-case-author/SKILL.md | 4 +- .../skills/up-wireframe-spec/SKILL.md | 2 +- .../02_Skills_Usage_Guide.md | 4 +- process/AGENTS.md | 79 +++++ .../AI_Native_Unified_Process_v1.md | 20 +- process/README.md | 254 ++++++++++++++ .../frappe_app_centric_development_guide.md | 23 +- process/process_change_register.md | 37 ++ .../scripts}/generate_manual_qa_workbook.py | 13 +- .../scripts}/init-new-project.sh | 16 +- {scripts => process/scripts}/run_tests.sh | 11 +- .../scripts}/verify_traceability_gates.py | 13 +- .../templates/tech-profile-presets.md | 4 +- .../templates/tech-profile.template.yaml | 2 +- scripts | 1 + tech-profile.yaml | 2 +- 40 files changed, 627 insertions(+), 314 deletions(-) create mode 120000 .agents delete mode 100644 04_generated_documentation/00_process_control/process_change_register.md rename {.agents => process/.agents}/skills/up-arch-risk-spike/SKILL.md (96%) rename {.agents => process/.agents}/skills/up-brd-extract/SKILL.md (94%) rename {.agents => process/.agents}/skills/up-change-request-impact/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-code-generate/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-context-checkpoint/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-defect-fix/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-hld-lld-generate/SKILL.md (95%) rename {.agents => process/.agents}/skills/up-iteration-plan/SKILL.md (97%) rename {.agents => process/.agents}/skills/up-legacy-gap-analysis/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-parallel-work-integrate/SKILL.md (100%) rename {.agents => process/.agents}/skills/up-process-change/SKILL.md (87%) rename {.agents => process/.agents}/skills/up-project-bootstrap/SKILL.md (89%) rename {.agents => process/.agents}/skills/up-requirements-elicit/SKILL.md (100%) rename {.agents => process/.agents}/skills/up-srs-derive/SKILL.md (95%) rename {.agents => process/.agents}/skills/up-test-model-generate/SKILL.md (98%) rename {.agents => process/.agents}/skills/up-traceability-gate/SKILL.md (97%) rename {.agents => process/.agents}/skills/up-uat-handover/SKILL.md (95%) rename {.agents => process/.agents}/skills/up-use-case-author/SKILL.md (96%) rename {.agents => process/.agents}/skills/up-wireframe-spec/SKILL.md (97%) rename {00_prompts => process}/02_Skills_Usage_Guide.md (94%) create mode 100644 process/AGENTS.md rename {00_prompts => process}/AI_Native_Unified_Process_v1.md (90%) create mode 100644 process/README.md rename {00_prompts => process}/framework_guides/frappe_app_centric_development_guide.md (93%) create mode 100644 process/process_change_register.md rename {scripts => process/scripts}/generate_manual_qa_workbook.py (99%) rename {scripts => process/scripts}/init-new-project.sh (82%) rename {scripts => process/scripts}/run_tests.sh (95%) rename {scripts => process/scripts}/verify_traceability_gates.py (98%) rename {00_prompts => process}/templates/tech-profile-presets.md (98%) rename {00_prompts => process}/templates/tech-profile.template.yaml (99%) create mode 120000 scripts diff --git a/.agents b/.agents new file mode 120000 index 0000000..4db8ea2 --- /dev/null +++ b/.agents @@ -0,0 +1 @@ +process/.agents \ No newline at end of file diff --git a/.gitignore b/.gitignore index aa3cc85..c88e422 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ out/ *~ .DS_Store Thumbs.db + diff --git a/04_generated_documentation/00_process_control/process_change_register.md b/04_generated_documentation/00_process_control/process_change_register.md deleted file mode 100644 index ddf4597..0000000 --- a/04_generated_documentation/00_process_control/process_change_register.md +++ /dev/null @@ -1,35 +0,0 @@ -# Process Change Request (PCR) Register — Meta-Governance - -| Field | Value | -|---|---| -| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.3 Meta-Governance §8.8) | -| **Document Path** | `04_generated_documentation/00_process_control/process_change_register.md` | -| **Gated By** | `up-process-change` | -| **Scope** | Meta-Process Specifications, Skills, Quality Gates, Tooling, Framework Presets | -| **Product Changes** | Governed separately via `up-change-request-impact` in [`change_request_register.md`](change_request_register.md) (`CR-xxx`) | -| **Last Updated** | 2026-10-03 | - ---- - -## 1. Overview & Governance Rule - -All modifications to the **AI-Native Unified Process (UP-AI)** itself—including new stages, new skills, revised gate rules, CLI validators, technology profile templates, or framework reference guides—must be proposed, evaluated, and tracked as **Process Change Requests (`PCR-xxx`)** in this register. - -This guarantees: -1. **Zero Collision with Product Scope:** Product functional changes (`CR-xxx`) remain clean and isolated in `change_request_register.md`. -2. **Version Auditability:** Every minor or major framework version bump (v1.1, v1.2, v1.3, ...) maps directly to an approved, closed `PCR-xxx`. -3. **Pristine Client Handover:** When client code is packaged or pushed via `git subtree`, internal meta-governance records are cleanly separated. - ---- - -## 2. Process Change Request Ledger - -| PCR-ID | Trigger Type | Raised By | Date | Originating Scope | Description | Affected Skills & Docs | Process Impact / Version | Disposition | Status | -|---|---|---|---|---|---|---|---|---|---| -| `PCR-001` | Process-Adjustment | Process Lead / CMMI Specialist | 2026-10-03 | CMMI Level 3 Compliance & Automation | Hardened framework with deterministic CLI quality gate validator (`scripts/verify_traceability_gates.py`), CMMI 3-tier tailoring framework, Human Review Brief protocol, and differentiated test coverage budgets. | `00_prompts/AI_Native_Unified_Process_v1.md`, `scripts/verify_traceability_gates.py`, `04_generated_documentation/00_process_control/tailoring_guidelines.md` | UP-AI v1.1 bump; deterministic verification of Gates 5.1, 9.1, 14.1 | Approved | Closed | -| `PCR-002` | Process-Adjustment | Requirements Lead | 2026-10-03 | Inception / Stage 0B | Introduced canonical skill `up-requirements-elicit` (.agents/skills/up-requirements-elicit/) at Stage 0B to conduct Socratic stakeholder elicitation and synthesize authoritative `01_BRD/PRD_Specification.md` with minted `BRD-FR-xxx` IDs when upstream BRD is absent. | `.agents/skills/up-requirements-elicit/`, `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md` | UP-AI v1.2 bump; added Stage 0B to process lifecycle | Approved | Closed | -| `PCR-003` | Process-Adjustment | Multi-Stack Architect | 2026-10-03 | Construction & Stack Agnosticism | Added native Frappe Framework support, ready-reference technology presets (`tech-profile-presets.md` for Frappe, Django, Spring Boot, FastAPI, NestJS), and multi-framework test runner dispatch in `scripts/run_tests.sh`. Segregated `PCR-xxx` from `CR-xxx`. | `00_prompts/templates/tech-profile-presets.md`, `scripts/run_tests.sh`, `.agents/skills/up-code-generate/`, `.agents/skills/up-arch-risk-spike/`, `.agents/skills/up-wireframe-spec/`, `.agents/skills/up-process-change/` | UP-AI v1.3 bump; dynamic Frappe test & migration execution; governance ID segregation | Approved | Closed | -| `PCR-004` | Process-Adjustment | Framework Lead / DevOps Architect | 2026-10-03 | Developer Workflows & Framework Topologies | Recreated canonical reference guide for Frappe App-Centric Development Model (`00_prompts/framework_guides/frappe_app_centric_development_guide.md`) detailing VS Code DevContainers, Antigravity integration, parallel sub-agent git worktrees, Pattern 1 clean downstream distribution via `git subtree push`, and production packaging hygiene (`pyproject.toml` and `.gitattributes` export-ignore). | `00_prompts/framework_guides/frappe_app_centric_development_guide.md`, `00_prompts/templates/tech-profile-presets.md`, `00_prompts/02_Skills_Usage_Guide.md`, `README.md` | Provides persistent operational blueprints for framework containerization and git subtree distribution | Approved | Closed | -| `PCR-005` | Process-Adjustment | Quality Assurance Architect / Process Lead | 2026-10-10 | Construction & Quality Gate Hardening | Hardened Gate 14.1 and the construction process against Goodhart's Law and superficial AI completion: (1) Deterministic semantic test density validation for Excel QA workbooks asserting total test cases >= 20; (2) Mandatory Bruno API collection check asserting >=1 .bru file per declared API surface; (3) Mandatory Functional Test Model checks asserting all 4 test dimensions (Happy, Boundary/Edge, Negative, FSM Invariant); (4) Automated test execution binding in Gate 14.1; (5) Differentiated requirement lifecycle states ('Baselined' -> 'In Construction' -> 'Implemented (Domain/Schema)' -> 'Delivered (E2E Verified)'); (6) Explicit binding anti-placeholder and anti-superficiality rules in AGENTS.md. | `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md`, `AGENTS.md`, `scripts/verify_traceability_gates.py`, `scripts/generate_manual_qa_workbook.py`, `.agents/skills/up-traceability-gate/`, `.agents/skills/up-test-model-generate/`, `.agents/skills/up-code-generate/`, `.agents/skills/up-defect-fix/` | UP-AI v1.4 bump; Gate 14.1 semantic density enforcement and anti-superficiality rules | Approved | Closed | - - diff --git a/AGENTS.md b/AGENTS.md index f88d205..eb7c208 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,20 +1,23 @@ -# Repository Agent Guide — UP-AI v1.0 +# Repository Agent Guide — UP-AI v1.5 Project Gateway ## Purpose -This repository defines and applies the universal AI-Native Unified Process (**UP-AI v1.0 Generic Framework**). Keep work use-case-driven, architecture-centric, iterative, traceable, and resumable. +This repository applies the universal AI-Native Unified Process (**UP-AI v1.5 Generic Framework**). The core process specification, automation scripts, and skills are maintained under `process/` (managed via `git subtree`). Keep work use-case-driven, architecture-centric, iterative, traceable, and resumable. ## Read Efficiently Read only what the task requires. Use this source-of-truth order: -1. `README.md` for repository orientation and developer workflow. -2. `00_prompts/AI_Native_Unified_Process_v1.md` for authoritative process, stages, gates, and artifact rules. -3. `00_prompts/02_Skills_Usage_Guide.md` for stage order and skill invocation. -4. `.agents/skills//SKILL.md` for the canonical procedure of an applicable skill. -5. `04_generated_documentation/00_process_control/` for current decisions, assumptions, ambiguities, change requests, traceability, and checkpoints. +1. `tech-profile.yaml` for active technology stack and tailoring tier. +2. `process/AGENTS.md` for authoritative process behavior, anti-placeholder rules, and stage gating. +3. `process/AI_Native_Unified_Process_v1.md` for authoritative process, stages, gates, and artifact rules. +4. `process/02_Skills_Usage_Guide.md` for stage order and skill invocation. +5. `.agents/skills//SKILL.md` (symlinked from `process/.agents/skills/`) for canonical skill procedures. +6. `04_generated_documentation/00_process_control/` for current project decisions, assumptions, ambiguities, change requests (`CR-xxx`), traceability, and checkpoints. +7. `process/process_change_register.md` for framework-level meta-process changes (`PCR-xxx`). + +**Single Canonical Skills Location:** All AI agent skills are canonical and located under `.agents/skills//SKILL.md` (symlinked to `process/.agents/skills/`). All AI agent platforms (Antigravity, Claude Code, Cursor, Codex) read directly from `.agents/skills/` without file duplication or synchronization scripts. -**Single Canonical Skills Location:** All AI agent skills are canonical and located under `.agents/skills//SKILL.md`. All AI agent platforms (Antigravity, Claude Code, Cursor, Codex) read directly from `.agents/skills/` without file duplication or synchronization scripts. ## Working Rules diff --git a/CLAUDE.md b/CLAUDE.md index 3ba79d0..9392fe3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,2 +1,3 @@ -Please pickup instructions from AGENTS.md. -All AI agent skills are canonical and located under `.agents/skills//SKILL.md`. +Please pickup instructions from AGENTS.md and process/AGENTS.md. +All AI agent skills are canonical and located under `.agents/skills//SKILL.md` (version-controlled in `process/.agents/skills/`). + diff --git a/GEMINI.md b/GEMINI.md index 3ba79d0..9392fe3 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -1,2 +1,3 @@ -Please pickup instructions from AGENTS.md. -All AI agent skills are canonical and located under `.agents/skills//SKILL.md`. +Please pickup instructions from AGENTS.md and process/AGENTS.md. +All AI agent skills are canonical and located under `.agents/skills//SKILL.md` (version-controlled in `process/.agents/skills/`). + diff --git a/README.md b/README.md index 46d71ca..4576b92 100644 --- a/README.md +++ b/README.md @@ -1,217 +1,114 @@ -# AI-Native Unified Process (UP-AI v1.3) — Universal Framework +# Universal Enterprise Platform (`up-frappe`) -[![Process Version](https://img.shields.io/badge/Process-UP--AI%20v1.3%20Generic-blue.svg)](00_prompts/AI_Native_Unified_Process_v1.md) -[![Quality Standard](https://img.shields.io/badge/SEI--CMMI-Level%203%20Governed-green.svg)](00_prompts/AI_Native_Unified_Process_v1.md) -[![Automated Coverage](https://img.shields.io/badge/Test%20Coverage-Tiered%20%E2%89%A595%2F90%2F80%25-brightgreen.svg)](00_prompts/AI_Native_Unified_Process_v1.md) +[![Governed Standard](https://img.shields.io/badge/Governed%20By-UP--AI%20v1.5-blue.svg)](process/AI_Native_Unified_Process_v1.md) +[![Quality Standard](https://img.shields.io/badge/SEI--CMMI-Level%203%20Governed-green.svg)](process/AI_Native_Unified_Process_v1.md) +[![Automated Coverage](https://img.shields.io/badge/Test%20Coverage-Tiered%20%E2%89%A595%2F90%2F80%25-brightgreen.svg)](process/AI_Native_Unified_Process_v1.md) [![Agent Skills](https://img.shields.io/badge/Skills-19%20Canonical%20Skills-orange.svg)](.agents/skills/) -**UP-AI v1.3** is an enterprise-grade, stack-agnostic software engineering framework combining the rigor of the **Unified Process (UP)** and **SEI-CMMI Level 3** governance with the speed of **AI-Native pair programming and autonomous multi-agent orchestration**. - -It governs software delivery from Socratic requirements elicitation (OpenUP / AI Hero) through architectural risk spikes, iterative construction, tiered multi-path test generation, 21-sheet QA workbook compilation, and UAT acceptance across multiple implementation frameworks (Frappe, Django, Spring Boot, FastAPI, NestJS). +Enterprise software platform governed by the **AI-Native Unified Process (UP-AI v1.5)** and **SEI-CMMI Level 3** standards. The project combines domain-driven requirements, architecture risk spikes, iterative construction slices, multi-tier automated test coverage, and deterministic traceability quality gates. --- -## Key Architecture & Philosophy +## Architecture & Decoupled Framework Model + +This repository employs a **cleanly decoupled dual-layer architecture**, separating the product development instance from the underlying process framework engine: ``` +-----------------------------------------------------------------------------------+ -| PROJECT ARCHETYPE SELECTION | -| (via tech-profile.yaml) | +| PROJECT INSTANCE (Product Layer) | +| 01_BRD/ <-- Business Requirements & PRDs | +| 04_generated_docs/ <-- Governed Stage Artifacts (Traceability, LLDs, QA) | +| docs/api/bruno/ <-- Bruno API Collections & Test Fixtures | +| tech-profile.yaml <-- Declarative Active Stack Configuration (Preset A-E) | +| app code <-- Production Source Code, Controllers, Migrations | +-----------------------------------------------------------------------------------+ - | - +---> GREENFIELD TRACK (0-to-1 Build): - | Stage 0 (Bootstrap) -> [Stage 0B (Requirements Elicitation / PRD Synthesis if unsupplied)] - | -> Stage 1 (PRD Feature Extraction) -> Stage 1B (Domain Model) - | -> Stage 6 (Arch Risk Spike) -> Stage 7 (Walking Skeleton) -> Stage 5 (Use Cases) - | - +---> BROWNFIELD TRACK (Legacy Modernization / Migration): - Stage 0 (Bootstrap) -> Stage 1 (BRD Target Scope) -> Stage 2 (AST & API Mining) - -> Stage 3 (DB Schema & UI Mining) -> Stage 4 (Parity Gap Matrix) -> Stage 5 (Use Cases) - | - v + │ + Discovered via Root Symlinks: + ├── .agents ---> process/.agents + └── scripts ---> process/scripts + │ + ▼ ++-----------------------------------------------------------------------------------+ +| PROCESS FRAMEWORK ENGINE (process/ - Git Subtree) | +| AI_Native_Unified_Process_v1.md <-- Core Process Specification (UP-AI v1.5) | +| 02_Skills_Usage_Guide.md <-- Stage-by-Stage Agent Skill Invocation Guide | +| process_change_register.md <-- Meta-Governance Ledger (PCR-xxx) | +| .agents/skills/ <-- 19 Canonical AI Agent Skills (up-*) | +| scripts/ <-- Deterministic Gate Validators & Compilers | +| templates/ & framework_guides/ <-- Technology Profile Presets & Topology Guides| +| AGENTS.md & README.md <-- Standalone Process Documentation | ++-----------------------------------------------------------------------------------+ +``` -+-----------------------------------------------------------------------------------+ -| ELABORATION PHASE: | -| Gate 5.1 (UC-FR Gate) -> Stage 8 (SRS Derivation) -> Stage 9 (HLD/LLD) -> Gate 9.1| -+-----------------------------------------------------------------------------------+ - | - v -+-----------------------------------------------------------------------------------+ -| ITERATIVE CONSTRUCTION LOOP (Repeats per Vertical Feature Slice): | -| Stage 10 (Plan & Surface Matrix) -> Stage 11 (Wireframes & Screen Specs) | -| -> Stage 12 (Test Model, Bruno, 21-Sheet QA Workbook) | -| -> Stage 13 (Wave-Based Code Gen: Backend + Frontend + Migrations + Sandboxes) | -| -> Stage 14 (Code Review, Defect Triage & Gate 14.1 Definition-of-Done) | -+-----------------------------------------------------------------------------------+ - | - v -+-----------------------------------------------------------------------------------+ -| TRANSITION PHASE: Stage 15 (CI/CD) -> Stage 16 (UAT) -> Stage 17 (Client Handover)| -| -> Stage 18 (Review-Ready Baselines) | -+-----------------------------------------------------------------------------------+ +### Why Decouple via `git subtree`? +1. **Independent Process Evolution:** The process framework evolutions (`PCR-xxx`) are version-controlled in `process/` and can be pulled or pushed to a standalone process repository without mixing with project git history. +2. **Clean Product Deliverables:** Client deliverables and production releases only package product code and formal artifacts, excluding internal skills and prompt transcripts. +3. **Zero Configuration for AI Agents:** AI agent tools (Antigravity, Claude Code, Cursor, Codex) look for `.agents/skills/` and `scripts/` at the workspace root. Root-level relative symlinks ensure complete native discovery without file duplication. + +--- + +## Active Technology Configuration (`tech-profile.yaml`) + +The project stack and governance tailoring tier are declared in [`tech-profile.yaml`](tech-profile.yaml). For ready-to-copy configurations for major stacks (Frappe, Django, Spring Boot, FastAPI, NestJS), see [`process/templates/tech-profile-presets.md`](process/templates/tech-profile-presets.md): + +- **Architecture:** Modular Monolith with Multi-Tenancy (Row-Level Security / Site-based isolation). +- **Backend:** Configured per `tech-profile.yaml` (Frappe / FastAPI / Django / Spring Boot). +- **Testing:** Automated test runners dispatched dynamically via `scripts/run_tests.sh`. +- **API Standards:** REST / OpenAPI with versioned Bruno collections in `docs/api/bruno/`. +- **Governance Tier:** Tier 2 (Standard Enterprise) CMMI Level 3. + +--- + +## Developer & AI Agent Quickstart + +### 1. Reading Instructions & Rules +All AI agents follow instructions declared in: +- [`AGENTS.md`](AGENTS.md) — Root project gateway delegating to [`process/AGENTS.md`](process/AGENTS.md) for anti-placeholder rules, granular requirement lifecycle states, and session transcript protocols. +- [`CLAUDE.md`](CLAUDE.md) / [`GEMINI.md`](GEMINI.md) — Agent platform gateways. + +### 2. Validating Traceability Quality Gates +Quality gates are enforced deterministically via Python CLI tooling: +```bash +# Verify all quality gates (Gate 5.1, Gate 9.1, Gate 14.1) +python3 scripts/verify_traceability_gates.py --all + +# Verify a specific iteration's Gate 14.1 with automated test execution hook +python3 scripts/verify_traceability_gates.py --gate 14.1 --iteration iteration-01 --run-tests +``` + +Gate 14.1 enforces **semantic density**: +- Asserts $\ge 20$ concrete test cases populated across the 21-sheet Excel QA workbook. +- Asserts git-versioned `.bru` requests in `docs/api/bruno/` for all declared endpoints. +- Asserts 4-dimension functional test models (Happy, Boundary, Negative, FSM Invariant). + +### 3. Compiling Manual QA Workbooks +Compile the 21-sheet Excel Manual QA Workbook using the dual-engine generator (supports `openpyxl` with zero-dependency XML fallback): +```bash +python3 scripts/generate_manual_qa_workbook.py --iteration iteration-01 +``` + +### 4. Running Automated Tests +Run tests at any scope: +```bash +# Run all tests in the project +scripts/run_tests.sh --scope project + +# Run tests for a specific iteration +scripts/run_tests.sh --scope iteration --target iteration-01 ``` --- -## The 8 Non-Negotiable UP-AI Principles +## Process Framework Git Subtree Management -1. **Dual-Track Inception Routing:** Greenfield projects bypass legacy discovery (Stages 2–4) directly to PRD modeling and risk spikes; Brownfield projects perform automated AST code mining, database schema reconstruction, and visual UI discovery. -2. **Atomic Use Case Requirements Spine:** Requirements are authored *inside* their owning use case (`UC-xxx` $\rightarrow$ `FR-xxx`), preventing orphaned specifications. -3. **Continuous Deterministic Quality Gates:** Hard-blocking gates (Gate 5.1, Gate 9.1, Gate 14.1) validate graph completeness deterministically via `scripts/verify_traceability_gates.py` before stage transitions. -4. **First-Class Change Request (CR) Lifecycle:** Scope changes, requirement gaps, and NFR shifts compute blast-radius impact graphs *before* documents or code are modified (`up-change-request-impact`). -5. **Risk-Driven Architecture Spikes:** Disposable walking skeletons validate high-risk architectural bottlenecks (data isolation, concurrency, external integrations) before full-scale construction. -6. **Wave 0 Deterministic Sandboxing:** External dependencies MUST provide local, deterministic sandbox adapters under `app/integrations/sandbox/` to guarantee 100% offline, reproducible CI execution. -7. **Differentiated Automated Test Coverage Budgets:** Enforces multi-path automated testing across Happy Path, Alternate/Boundary, Negative/Failure, and FSM Invariant dimensions with tiered thresholds ($\ge 95\%$ core domain/FSMs, $\ge 90\%$ integration adapters, $\ge 80\%$ UI components + Playwright E2E). -8. **Dual Manual QA Deliverables:** Every iteration produces both a Markdown testing guide and a 30-column, 21-sheet Excel Manual QA Workbook (`.xlsx`) via deterministic compiler tooling (`scripts/generate_manual_qa_workbook.py`). +To synchronize the process framework with the upstream framework repository: ---- +```bash +# Pull framework updates from upstream process repository +git subtree pull --prefix=process main --squash -## Declarative Technology Profile (`tech-profile.yaml`) - -The entire agent skill suite dynamically adapts to your project's technology stack via [`tech-profile.yaml`](tech-profile.yaml) at the repository root. Ready-to-copy configurations for **Frappe**, **Django**, **Spring Boot**, **FastAPI**, and **NestJS** are available in [`00_prompts/templates/tech-profile-presets.md`](00_prompts/templates/tech-profile-presets.md). - -For containerized developer topologies, native Antigravity AI execution, sub-agent git worktrees, and clean downstream distribution via `git subtree push`, see the framework deep-dive guides: -- [Frappe App-Centric Development Guide](00_prompts/framework_guides/frappe_app_centric_development_guide.md) (`frappe_docker`, VS Code DevContainers, and git subtree distribution) - -```yaml -project: - name: "Universal Enterprise Platform" - code: "UEP" - archetype: "greenfield" # 'greenfield' or 'brownfield' - -governance: - tailoring_tier: "tier_2_standard_enterprise" # tier_1_high_assurance | tier_2_standard_enterprise | tier_3_fast_track - enforce_deterministic_gates: true - -stack: - architecture_pattern: "modular_monolith" # modular_monolith | microservices | event_driven | serverless - multi_tenancy: - enabled: true - model: "row_level_security" # row_level_security | schema_per_tenant | database_per_tenant (Frappe sites) - - backend: - language: "python" # python | typescript | go | java | csharp | rust - framework: "fastapi" # fastapi | frappe | django | express | nestjs | gin | spring_boot - orm: "sqlalchemy" # sqlalchemy | doctype | prisma | typeorm | django_orm | hibernate - migrations: "alembic" # alembic | bench_migrate | prisma | flyway | django_migrations - test_framework: "pytest" # pytest | frappe_test_runner | junit5 | vitest - - frontend: - framework: "react" # react | vue | angular | svelte | nextjs | flutter - language: "typescript" - ui_library: "tailwind_shadcn" - e2e_framework: "playwright" - -quality_targets: - coverage_thresholds: - backend_domain_fsm: 95.0 - integration_adapters: 90.0 - frontend_components: 80.0 - test_coverage_threshold: 95.0 -``` - - ---- - -## Autonomous Multi-Agent Topology - -AI agents execute specialized roles across the lifecycle: - -| Agent Persona | Role & Responsibilities | Primary Skills | -|---|---|---| -| Agent Persona | Role & Responsibilities | Primary Skills | -|---|---|---| -| **`@requirements-analyst`** | Socratic elicitation, PRD/BRD extraction, ambiguity logging, use-case authoring | `up-requirements-elicit`, `up-brd-extract`, `up-use-case-author` | -| **`@spike-architect`** | Risk scoring, walking skeleton spike, domain HLD/LLD templates | `up-arch-risk-spike`, `up-hld-lld-generate` | -| **`@ui-designer-dev`** | Wireframe specs, UI tokens, responsive frontend components | `up-wireframe-spec`, `up-code-generate` | -| **`@backend-dev`** | Database migrations, deterministic API routers, Wave 0 sandboxes | `up-code-generate` | -| **`@adversarial-tester`** | Multi-path test suites ($\ge 95\%$), Bruno API collections, 21-sheet QA workbooks | `up-test-model-generate`, `up-defect-fix` | -| **`@gatekeeper`** | Enforces quality gates (5.1, 9.1, 14.1), verifies delivery surfaces, computes CR impact | `up-traceability-gate`, `up-change-request-impact` | - ---- - -## Quickstart: Creating a New Project from this Framework - -1. **Clone or create a new repository from this branch:** - ```bash - git clone -b process-generic my-new-project - cd my-new-project - git remote set-url origin - git push -u origin main - ``` - -2. **Configure project stack:** - ```bash - cp 00_prompts/templates/tech-profile.template.yaml tech-profile.yaml - # Edit tech-profile.yaml with your project name, archetype, and stack choices - ``` - -3. **Bootstrap governance workspace (Stage 0):** - ```bash - # In your AI IDE prompt (Cursor / Claude / Antigravity / Gemini): - /up-project-bootstrap --archetype greenfield - ``` - -4. **Elicit requirements (Stage 0B, if PRD not supplied):** - ```bash - /up-requirements-elicit --interactive - ``` - ---- - -## Repository Structure - -``` -. -├── .agents/skills/ # Canonical, cross-agent skill definitions (19 skills) -│ ├── up-project-bootstrap/ # Stage 0: Workspace & governance setup -│ ├── up-requirements-elicit/ # Stage 0B: Socratic requirements elicitation & PRD synthesis -│ ├── up-brd-extract/ # Stage 1: Business feature extraction -│ ├── up-legacy-gap-analysis/ # Stages 2-4: Legacy code & screen mining (Brownfield) -│ ├── up-use-case-author/ # Stage 5: Atomic use-case & FR authoring -│ ├── up-arch-risk-spike/ # Stages 6-7: Architecture risk spike & walking skeleton -│ ├── up-srs-derive/ # Stage 8: System requirements & NFR derivation -│ ├── up-hld-lld-generate/ # Stage 9: High-level & low-level design -│ ├── up-iteration-plan/ # Stage 10: Construction iteration planning -│ ├── up-wireframe-spec/ # Stage 11: Screen specifications & routes -│ ├── up-test-model-generate/ # Stage 12: Multi-path tests & 21-sheet QA workbook -│ ├── up-code-generate/ # Stage 13: Wave-based code generation -│ ├── up-defect-fix/ # Stage 14: Defect triage & review -│ ├── up-traceability-gate/ # Gates 5.1, 9.1, 14.1 completeness checks -│ ├── up-parallel-work-integrate/ # Multi-branch AI lane reconciliation -│ ├── up-change-request-impact/ # Formal CR blast-radius analyzer -│ ├── up-context-checkpoint/ # AI session checkpoint & resume protocol -│ ├── up-process-change/ # Meta-governance process updates -│ └── up-uat-handover/ # Stages 15-18: UAT packaging & release -├── 00_prompts/ -│ ├── AI_Native_Unified_Process_v1.md # Core UP-AI v1.3 Process Specification -│ ├── 02_Skills_Usage_Guide.md # Stage-by-stage invocation guide -│ ├── framework_guides/ # Deep-dive guides for framework topologies -│ │ └── frappe_app_centric_development_guide.md # DevContainers, Antigravity, & subtree distribution -│ └── templates/ -│ ├── tech-profile.template.yaml # Declarative stack configuration template -│ └── tech-profile-presets.md # Ready-reference configurations (Frappe, Django, Spring, etc.) -├── 01_BRD/ # Business Requirements & PRD inputs -├── 04_generated_documentation/ # Governed engineering documentation (Chronological Stages) -│ ├── 00_process_control/ # Stage 0: Registers, Context, Decisions, Checkpoints -│ ├── 01_source_inventories/ # Stage 1: PRD/BRD Feature extractions (BRD-FR-xxx) -│ ├── 02_legacy_analysis/ # Stages 2–4: Brownfield code, DB & screen mining -│ ├── 03_requirements/ # Stages 5 & 8: Atomic Use Cases (UC-xxx) & System Reqs -│ ├── 04_architecture_design/ # Stages 6, 7, 9: Risk Spike, HLD, LLD API/Table Contracts -│ ├── 05_iteration_planning/ # Stage 10: Iteration Backlog, Plan, Surface Matrix -│ ├── 06_wireframes/ # Stage 11: Screen Specifications, Design Tokens (DESIGN.md) -│ ├── 07_test_design/ # Stage 12: Test Strategy, Multi-Path Models, QA Workbooks -│ └── 08_review_ready_baselines/ # Stage 18: Handover & Acceptance Baselines -├── scripts/ -│ ├── init-new-project.sh # Scaffolds new projects with UP-AI directory structure -│ ├── generate_manual_qa_workbook.py # 21-sheet Excel Manual QA Workbook compiler -│ ├── verify_traceability_gates.py # Deterministic CLI quality gate validator (Gates 5.1, 9.1, 14.1) -│ └── run_tests.sh # Multi-level test runner (--scope project|iteration|uc|fr) -├── AGENTS.md # AI pair programming guidelines & transcript rules -├── CLAUDE.md # Claude Code instructions pointer -├── GEMINI.md # Gemini instructions pointer -├── tech-profile.yaml # Active declarative project configuration -└── README.md # Framework orientation & guide +# Push framework improvements back to upstream process repository +git subtree push --prefix=process main ``` --- @@ -237,8 +134,43 @@ Functional Req: FR-xxx (child of exactly one UC-xxx) --- -## License & Governance +## Repository Layout -This framework is governed under the **AI-Native Unified Process Specification v1.3** ([`AI_Native_Unified_Process_v1.md`](00_prompts/AI_Native_Unified_Process_v1.md)). Process modifications follow the formal `up-process-change` lifecycle (Process-Adjustment CRs / PCRs). +``` +. +├── .agents -> process/.agents # Root discovery symlink for AI agent platforms +├── scripts -> process/scripts # Root discovery symlink for automation CLI tools +├── process/ # Decoupled UP-AI v1.5 Process Framework (git subtree) +│ ├── .agents/skills/ # 19 Canonical AI Agent Skills +│ ├── scripts/ # Quality gate validators, test runners, QA compilers +│ ├── templates/ # Tech profile templates and stack presets +│ ├── framework_guides/ # Frappe DevContainers & architecture guides +│ ├── AI_Native_Unified_Process_v1.md # Authoritative Process Specification (v1.5) +│ ├── 02_Skills_Usage_Guide.md # Stage-by-stage skill invocation guide +│ ├── process_change_register.md # Meta-governance ledger (PCR-xxx) +│ ├── AGENTS.md # Authoritative process agent guide +│ └── README.md # Framework documentation +├── 01_BRD/ # Business Requirements Documents & PRDs +├── 04_generated_documentation/ # Governed engineering documentation (Stages 00–08) +│ ├── 00_process_control/ # Registers (CR, Ambiguity, Decisions), Checkpoints, Traceability +│ ├── 01_source_inventories/ # Extracted BRD features (BRD-FR-xxx) +│ ├── 03_requirements/ # Atomic Use Cases (UC-xxx) and functional specs +│ ├── 04_architecture_design/ # Risk spike, HLD, and DocType LLD contracts +│ ├── 05_iteration_planning/ # Iteration plans, backlogs, surface matrices +│ ├── 06_wireframes/ # Screen specifications and UI design tokens +│ └── 07_test_design/ # Functional test models, manual QA guides and workbooks +├── docs/api/bruno/ # Versioned Bruno API collections per module +├── prompts/ # Session transcripts (auditable, git-versioned) +├── tech-profile.yaml # Active declarative project configuration +├── AGENTS.md # Project agent guide gateway +├── CLAUDE.md # Claude Code gateway +├── GEMINI.md # Gemini gateway +└── README.md # Project overview and orientation +``` +--- +## Governance & Process Modifications + +- **Product Changes:** Functional scope changes, requirement gaps, and defect fixes are governed via `up-change-request-impact` in [`04_generated_documentation/00_process_control/change_request_register.md`](04_generated_documentation/00_process_control/change_request_register.md) (`CR-xxx`). +- **Process Changes:** Changes to the process framework, gates, skills, or templates are governed via `up-process-change` in [`process/process_change_register.md`](process/process_change_register.md) (`PCR-xxx`). diff --git a/.agents/skills/up-arch-risk-spike/SKILL.md b/process/.agents/skills/up-arch-risk-spike/SKILL.md similarity index 96% rename from .agents/skills/up-arch-risk-spike/SKILL.md rename to process/.agents/skills/up-arch-risk-spike/SKILL.md index 86e0af6..b8d23a7 100644 --- a/.agents/skills/up-arch-risk-spike/SKILL.md +++ b/process/.agents/skills/up-arch-risk-spike/SKILL.md @@ -1,6 +1,6 @@ --- name: up-arch-risk-spike -description: Score every use case on architectural risk (data isolation/multi-tenancy, external integration dependency, financial/transactional sensitivity, high-volume/real-time streaming, novelty/complexity), shortlist architecturally significant ones, then build and validate a thin end-to-end architecture walking skeleton (HLD + LLD + deployment) against only that shortlist before full-breadth design begins. Covers Stages 6-7 (Elaboration) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Score every use case on architectural risk (data isolation/multi-tenancy, external integration dependency, financial/transactional sensitivity, high-volume/real-time streaming, novelty/complexity), shortlist architecturally significant ones, then build and validate a thin end-to-end architecture walking skeleton (HLD + LLD + deployment) against only that shortlist before full-breadth design begins. Covers Stages 6-7 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-arch-risk-spike — Stages 6–7 (Elaboration) @@ -20,7 +20,7 @@ Retire architecture risk early by proving the hardest parts of the system (data - `tech-profile.yaml` (identifies architecture pattern, database model, auth provider, and external sandboxes) - `04_generated_documentation/03_requirements/use_cases/` (all authored use cases) - `04_generated_documentation/00_process_control/master_context.md` -- `00_prompts/AI_Native_Unified_Process_v1.md` §5 "Stage 6" and "Stage 7" +- `process/AI_Native_Unified_Process_v1.md` §5 "Stage 6" and "Stage 7" ## Procedure diff --git a/.agents/skills/up-brd-extract/SKILL.md b/process/.agents/skills/up-brd-extract/SKILL.md similarity index 94% rename from .agents/skills/up-brd-extract/SKILL.md rename to process/.agents/skills/up-brd-extract/SKILL.md index 4823768..23cc22e 100644 --- a/.agents/skills/up-brd-extract/SKILL.md +++ b/process/.agents/skills/up-brd-extract/SKILL.md @@ -1,6 +1,6 @@ --- name: up-brd-extract -description: Extract every distinct business feature, requirement, and constraint from the Business Requirements Document (BRD/PRD) and assign each a BRD-FR-xxx ID — the root of the traceability chain. Use this right after up-project-bootstrap, whenever the BRD is updated/re-versioned (e.g. "BRD v2"), or whenever you need to confirm what the BRD authoritatively requires before touching legacy code. This is Stage 1 (Inception) of the UP-AI v1.0 Unified Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Extract every distinct business feature, requirement, and constraint from the Business Requirements Document (BRD/PRD) and assign each a BRD-FR-xxx ID — the root of the traceability chain. Use this right after up-project-bootstrap, whenever the BRD is updated/re-versioned (e.g. "BRD v2"), or whenever you need to confirm what the BRD authoritatively requires before touching legacy code. This is Stage 1 (Inception) of the UP-AI v1.0 Unified Process (process/AI_Native_Unified_Process_v1.md). --- # up-brd-extract — Stage 1 (Inception) @@ -18,7 +18,7 @@ Extract the authoritative business features from the BRD/PRD and assign each one - `01_BRD/` (full PRD/BRD contents) - `04_generated_documentation/00_process_control/master_context.md` (from Stage 0) -- `00_prompts/AI_Native_Unified_Process_v1.md` §4 "Stage 1" +- `process/AI_Native_Unified_Process_v1.md` §4 "Stage 1" ## Procedure diff --git a/.agents/skills/up-change-request-impact/SKILL.md b/process/.agents/skills/up-change-request-impact/SKILL.md similarity index 98% rename from .agents/skills/up-change-request-impact/SKILL.md rename to process/.agents/skills/up-change-request-impact/SKILL.md index 944d1d7..9f2d2eb 100644 --- a/.agents/skills/up-change-request-impact/SKILL.md +++ b/process/.agents/skills/up-change-request-impact/SKILL.md @@ -1,6 +1,6 @@ --- name: up-change-request-impact -description: Raise a formal Change Request (CR-xxx) for any bug fix that's actually a requirements gap, new BRD ask, NFR change, or scope adjustment arriving after baseline, and compute its full blast radius by walking the traceability graph BEFORE any document is edited. Use this any time a change is proposed at any stage of the process - during Elaboration, mid-iteration in Construction, during an iteration retrospective, during UAT, or even after production handover. This is the cross-cutting mechanic that keeps the process robust against unforeseen future change. Covers UP-AI v1.0 (00_prompts/AI_Native_Unified_Process_v1.md). +description: Raise a formal Change Request (CR-xxx) for any bug fix that's actually a requirements gap, new BRD ask, NFR change, or scope adjustment arriving after baseline, and compute its full blast radius by walking the traceability graph BEFORE any document is edited. Use this any time a change is proposed at any stage of the process - during Elaboration, mid-iteration in Construction, during an iteration retrospective, during UAT, or even after production handover. This is the cross-cutting mechanic that keeps the process robust against unforeseen future change. Covers UP-AI v1.0 (process/AI_Native_Unified_Process_v1.md). --- # up-change-request-impact — Cross-cutting (any stage, any phase) diff --git a/.agents/skills/up-code-generate/SKILL.md b/process/.agents/skills/up-code-generate/SKILL.md similarity index 98% rename from .agents/skills/up-code-generate/SKILL.md rename to process/.agents/skills/up-code-generate/SKILL.md index 6908717..9f951de 100644 --- a/.agents/skills/up-code-generate/SKILL.md +++ b/process/.agents/skills/up-code-generate/SKILL.md @@ -1,6 +1,6 @@ --- name: up-code-generate -description: Generate production-grade backend services, frontend views/screens, database migrations, API contracts, and integration adapters for the stories in the current iteration's backlog, with explicit delivery-surface coverage across portal/frontend, API, data, integration, infrastructure, and QA. Use this after up-wireframe-spec and up-test-model-generate have produced the iteration's screens, surface matrix, and test cases. Covers Stage 13 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Generate production-grade backend services, frontend views/screens, database migrations, API contracts, and integration adapters for the stories in the current iteration's backlog, with explicit delivery-surface coverage across portal/frontend, API, data, integration, infrastructure, and QA. Use this after up-wireframe-spec and up-test-model-generate have produced the iteration's screens, surface matrix, and test cases. Covers Stage 13 (Construction) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-code-generate — Stage 13 (Construction, per iteration) diff --git a/.agents/skills/up-context-checkpoint/SKILL.md b/process/.agents/skills/up-context-checkpoint/SKILL.md similarity index 98% rename from .agents/skills/up-context-checkpoint/SKILL.md rename to process/.agents/skills/up-context-checkpoint/SKILL.md index 85e2412..45a3dc2 100644 --- a/.agents/skills/up-context-checkpoint/SKILL.md +++ b/process/.agents/skills/up-context-checkpoint/SKILL.md @@ -1,6 +1,6 @@ --- name: up-context-checkpoint -description: Save or resume a lightweight checkpoint of in-progress AI-agent work — which stage/iteration is active, what was just completed, what's mid-flight, what decisions are still pending, and the exact next action — so a new session (or a different agent) can rehydrate context and continue without re-deriving it from scratch. Use this at the end of any work session before context runs low or before handing off, and at the start of any session that continues prior work. This is a cross-cutting mechanic supporting AI-agent-driven development with agents/skills/templates in UP-AI v1.0 (00_prompts/AI_Native_Unified_Process_v1.md). +description: Save or resume a lightweight checkpoint of in-progress AI-agent work — which stage/iteration is active, what was just completed, what's mid-flight, what decisions are still pending, and the exact next action — so a new session (or a different agent) can rehydrate context and continue without re-deriving it from scratch. Use this at the end of any work session before context runs low or before handing off, and at the start of any session that continues prior work. This is a cross-cutting mechanic supporting AI-agent-driven development with agents/skills/templates in UP-AI v1.0 (process/AI_Native_Unified_Process_v1.md). --- # up-context-checkpoint — Cross-cutting (any stage, any phase) diff --git a/.agents/skills/up-defect-fix/SKILL.md b/process/.agents/skills/up-defect-fix/SKILL.md similarity index 98% rename from .agents/skills/up-defect-fix/SKILL.md rename to process/.agents/skills/up-defect-fix/SKILL.md index 4d8e6fb..d0d02c9 100644 --- a/.agents/skills/up-defect-fix/SKILL.md +++ b/process/.agents/skills/up-defect-fix/SKILL.md @@ -1,6 +1,6 @@ --- name: up-defect-fix -description: Review code from the current iteration and fix approved defects one at a time, including real-runtime API and browser-E2E portal findings, escalating to a Change Request whenever the root cause turns out to be an incomplete or wrong requirement rather than a coding mistake. Use this after up-code-generate has produced a story's implementation, during code review, QA, or UAT of the current iteration. This is Stage 14 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Review code from the current iteration and fix approved defects one at a time, including real-runtime API and browser-E2E portal findings, escalating to a Change Request whenever the root cause turns out to be an incomplete or wrong requirement rather than a coding mistake. Use this after up-code-generate has produced a story's implementation, during code review, QA, or UAT of the current iteration. This is Stage 14 (Construction) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-defect-fix — Stage 14 (Construction, per iteration) diff --git a/.agents/skills/up-hld-lld-generate/SKILL.md b/process/.agents/skills/up-hld-lld-generate/SKILL.md similarity index 95% rename from .agents/skills/up-hld-lld-generate/SKILL.md rename to process/.agents/skills/up-hld-lld-generate/SKILL.md index 79b9ff8..9d2784e 100644 --- a/.agents/skills/up-hld-lld-generate/SKILL.md +++ b/process/.agents/skills/up-hld-lld-generate/SKILL.md @@ -1,6 +1,6 @@ --- name: up-hld-lld-generate -description: Design HLD/LLD for the remaining, non-architecturally-significant use cases by applying the validated service template from the architecture spike, rather than architecting each module independently from scratch. Use this after up-srs-derive has produced SRS/NFR requirements for the full FR set, following the up-arch-risk-spike walking skeleton. This is Stage 9 (Elaboration) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Design HLD/LLD for the remaining, non-architecturally-significant use cases by applying the validated service template from the architecture spike, rather than architecting each module independently from scratch. Use this after up-srs-derive has produced SRS/NFR requirements for the full FR set, following the up-arch-risk-spike walking skeleton. This is Stage 9 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-hld-lld-generate — Stage 9 (Elaboration) @@ -19,7 +19,7 @@ Complete HLD/LLD for all remaining modules by reusing the pattern already proven - `architecture_spike_report.md` (service template and validated patterns) - `04_generated_documentation/00_process_control/architecture_risk_register.md` (which use cases are NOT architecturally significant) - `04_generated_documentation/03_requirements/use_cases/` (FR-xxx with derived SRS from Stage 8) -- `00_prompts/AI_Native_Unified_Process_v1.md` §5 "Stage 9" +- `process/AI_Native_Unified_Process_v1.md` §5 "Stage 9" ## Procedure diff --git a/.agents/skills/up-iteration-plan/SKILL.md b/process/.agents/skills/up-iteration-plan/SKILL.md similarity index 97% rename from .agents/skills/up-iteration-plan/SKILL.md rename to process/.agents/skills/up-iteration-plan/SKILL.md index 54f197e..cb54cdd 100644 --- a/.agents/skills/up-iteration-plan/SKILL.md +++ b/process/.agents/skills/up-iteration-plan/SKILL.md @@ -1,6 +1,6 @@ --- name: up-iteration-plan -description: Select the next iteration's vertical slice of 3-8 related use cases and produce a scoped iteration backlog, plan, and delivery-surface matrix covering frontend portals, APIs, data, integrations, infrastructure, and QA. Use this at the start of every Construction iteration, including the very first one once the Elaboration exit gate (QG-E) has passed. This is Stage 10 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Select the next iteration's vertical slice of 3-8 related use cases and produce a scoped iteration backlog, plan, and delivery-surface matrix covering frontend portals, APIs, data, integrations, infrastructure, and QA. Use this at the start of every Construction iteration, including the very first one once the Elaboration exit gate (QG-E) has passed. This is Stage 10 (Construction) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-iteration-plan — Stage 10 (Construction, loop entry point) @@ -21,7 +21,7 @@ Plan one iteration at a time — a vertical slice of related use cases taken end - `04_generated_documentation/00_process_control/traceability_graph.md` (which FRs/use cases are not yet Delivered) - Previous iteration's `retrospective.md`, if any (carried-over stories, raised CRs) - `04_generated_documentation/07_test_design/regression_test_cases.md` (flaky or deprecated-pending-replacement regression debt to carry forward) -- `00_prompts/AI_Native_Unified_Process_v1.md` §6 "Stage 10" +- `process/AI_Native_Unified_Process_v1.md` §6 "Stage 10" ## Procedure diff --git a/.agents/skills/up-legacy-gap-analysis/SKILL.md b/process/.agents/skills/up-legacy-gap-analysis/SKILL.md similarity index 98% rename from .agents/skills/up-legacy-gap-analysis/SKILL.md rename to process/.agents/skills/up-legacy-gap-analysis/SKILL.md index 06729aa..98b3a4d 100644 --- a/.agents/skills/up-legacy-gap-analysis/SKILL.md +++ b/process/.agents/skills/up-legacy-gap-analysis/SKILL.md @@ -23,7 +23,7 @@ Build a catalogued, indexed understanding of the legacy system (modules, APIs, D - `04_generated_documentation/01_source_inventories/brd_inventory.md` - `02_legacy_source_code/` (the specific module folder(s) in scope) - `03_old_screenshots/` (if UI screenshots are available) -- `00_prompts/AI_Native_Unified_Process_v1.md` §4 "Stages 2–4" +- `process/AI_Native_Unified_Process_v1.md` §4 "Stages 2–4" ## Procedure diff --git a/.agents/skills/up-parallel-work-integrate/SKILL.md b/process/.agents/skills/up-parallel-work-integrate/SKILL.md similarity index 100% rename from .agents/skills/up-parallel-work-integrate/SKILL.md rename to process/.agents/skills/up-parallel-work-integrate/SKILL.md diff --git a/.agents/skills/up-process-change/SKILL.md b/process/.agents/skills/up-process-change/SKILL.md similarity index 87% rename from .agents/skills/up-process-change/SKILL.md rename to process/.agents/skills/up-process-change/SKILL.md index 87daf01..c26c374 100644 --- a/.agents/skills/up-process-change/SKILL.md +++ b/process/.agents/skills/up-process-change/SKILL.md @@ -1,13 +1,13 @@ --- name: up-process-change -description: Apply a change to the process itself - a new stage, a new gate, a new document format, a new skill - through a dedicated Process Change Request (PCR-xxx), producing a version bump (v1.1, v1.2, ...) and changelog entry in AI_Native_Unified_Process_v1.md. Governed separately from product changes to prevent governance ID collisions. Covers UP-AI v1.3 Meta-Governance (00_prompts/AI_Native_Unified_Process_v1.md §8.8). +description: Apply a change to the process itself - a new stage, a new gate, a new document format, a new skill - through a dedicated Process Change Request (PCR-xxx), producing a version bump (v1.1, v1.2, ...) and changelog entry in AI_Native_Unified_Process_v1.md. Governed separately from product changes to prevent governance ID collisions. Covers UP-AI v1.3 Meta-Governance (process/AI_Native_Unified_Process_v1.md §8.8). --- # up-process-change — Cross-cutting meta-governance ## Objective -Ensure the process document governs its own evolution the same disciplined way it governs the product's requirements: any proposed change to stages, gates, formats, skills, or presets is raised as a **`PCR-xxx` (Process Change Request)**, impact-analyzed against *this document's sections* (not the product's traceability graph), approved, and landed as a version bump with a changelog entry in `04_generated_documentation/00_process_control/process_change_register.md`. +Ensure the process document governs its own evolution the same disciplined way it governs the product's requirements: any proposed change to stages, gates, formats, skills, or presets is raised as a **`PCR-xxx` (Process Change Request)**, impact-analyzed against *this document's sections* (not the product's traceability graph), approved, and landed as a version bump with a changelog entry in `process/process_change_register.md`. ## When to invoke @@ -17,8 +17,8 @@ Ensure the process document governs its own evolution the same disciplined way i ## Read first -- `00_prompts/AI_Native_Unified_Process_v1.md` (current version, especially Appendix A changelog) -- `04_generated_documentation/00_process_control/process_change_register.md` +- `process/AI_Native_Unified_Process_v1.md` (current version, especially Appendix A changelog) +- `process/process_change_register.md` - The relevant `.agents/skills/up-*/SKILL.md` file(s), if a skill itself needs to change ## Procedure @@ -32,7 +32,7 @@ Add a row to `process_change_register.md` with ID `PCR-xxx`, Disposition "Propos ``` A process change has been proposed: [PCR-xxx description]. -Read 00_prompts/AI_Native_Unified_Process_v1.md in full (or the +Read process/AI_Native_Unified_Process_v1.md in full (or the specific sections named) and report: 1. Which numbered sections/stages/gates would need to change. 2. Which .agents/skills/up-*/SKILL.md files would need to change. @@ -48,7 +48,7 @@ Approve, defer, or reject. Process changes that alter the ID scheme or the trace ### Step 4 — Apply and version-bump -Update `00_prompts/AI_Native_Unified_Process_v1.md`: +Update `process/AI_Native_Unified_Process_v1.md`: - Apply the change to the affected section(s) only. - Bump the document version (v1.1, v1.2, …) in the header table. - Add a row to Appendix A (Version Changelog) citing the `PCR-xxx`. diff --git a/.agents/skills/up-project-bootstrap/SKILL.md b/process/.agents/skills/up-project-bootstrap/SKILL.md similarity index 89% rename from .agents/skills/up-project-bootstrap/SKILL.md rename to process/.agents/skills/up-project-bootstrap/SKILL.md index edb093d..a137b44 100644 --- a/.agents/skills/up-project-bootstrap/SKILL.md +++ b/process/.agents/skills/up-project-bootstrap/SKILL.md @@ -1,6 +1,6 @@ --- name: up-project-bootstrap -description: Bootstrap the Inception-phase workspace, declarative tech profile (tech-profile.yaml), and governance files (master context, assumptions register, glossary, decision log, folder discovery report) for any Greenfield or Brownfield development program before deep source analysis begins. Use this at the very start of a new engagement, when 04_generated_documentation/00_process_control/ is empty or missing, or when re-establishing governance scaffolding after a reset. This is Stage 0 of the UP-AI v1.0 Generic Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Bootstrap the Inception-phase workspace, declarative tech profile (tech-profile.yaml), and governance files (master context, assumptions register, glossary, decision log, folder discovery report) for any Greenfield or Brownfield development program before deep source analysis begins. Use this at the very start of a new engagement, when 04_generated_documentation/00_process_control/ is empty or missing, or when re-establishing governance scaffolding after a reset. This is Stage 0 of the UP-AI v1.0 Generic Process (process/AI_Native_Unified_Process_v1.md). --- # up-project-bootstrap — Stage 0 (Inception) @@ -21,17 +21,17 @@ Create a controlled workspace before deep source-code or requirements analysis h ## Read first -- `tech-profile.yaml` (if present) or `00_prompts/templates/tech-profile.template.yaml` +- `tech-profile.yaml` (if present) or `process/templates/tech-profile.template.yaml` - `01_BRD/` or PRD inputs directory (folder and file names only) - `02_legacy_source_code/` & `03_old_screenshots/` (Brownfield archetype only) -- `00_prompts/AI_Native_Unified_Process_v1.md` §4 "Stage 0" and §2 (ID scheme) +- `process/AI_Native_Unified_Process_v1.md` §4 "Stage 0" and §2 (ID scheme) ## Procedure You are acting as a senior business analyst, solution architect, and CMMI Level 3 process consultant. Context & Scope Setup: -1. Check for `tech-profile.yaml` at project root. If missing, copy `00_prompts/templates/tech-profile.template.yaml` to `tech-profile.yaml` and configure it based on target project parameters. +1. Check for `tech-profile.yaml` at project root. If missing, copy `process/templates/tech-profile.template.yaml` to `tech-profile.yaml` and configure it based on target project parameters. 2. Identify project archetype: - **Greenfield Track:** Focuses on target PRD/BRD, target architecture, and domain modeling. Does not mandate legacy discovery. - **Brownfield Track:** Inventories legacy codebases, database schemas, and screenshots as specified in `tech-profile.yaml`. @@ -48,7 +48,7 @@ Rules: - Do not invent detailed business rules. - Capture only known facts, assumptions, risks, and open questions. - If `assumptions_register.md` / `decision_log.md` already exist with entries, do not overwrite — validate schema and append. -- Every ID minted anywhere in this process follows the scheme in `00_prompts/AI_Native_Unified_Process_v1.md` §2. +- Every ID minted anywhere in this process follows the scheme in `process/AI_Native_Unified_Process_v1.md` §2. - Keep output concise, structured, and markdown formatted. ## Output expected diff --git a/.agents/skills/up-requirements-elicit/SKILL.md b/process/.agents/skills/up-requirements-elicit/SKILL.md similarity index 100% rename from .agents/skills/up-requirements-elicit/SKILL.md rename to process/.agents/skills/up-requirements-elicit/SKILL.md diff --git a/.agents/skills/up-srs-derive/SKILL.md b/process/.agents/skills/up-srs-derive/SKILL.md similarity index 95% rename from .agents/skills/up-srs-derive/SKILL.md rename to process/.agents/skills/up-srs-derive/SKILL.md index e4172ba..0c8e626 100644 --- a/.agents/skills/up-srs-derive/SKILL.md +++ b/process/.agents/skills/up-srs-derive/SKILL.md @@ -1,6 +1,6 @@ --- name: up-srs-derive -description: Derive system requirements (NFRs, screen-to-system mapping, API/data/integration/validation/audit requirement formats) from the gated functional-requirement set, with every SRS/NFR item explicitly declaring the FR-xxx it derives from. Use this after the architecture spike (up-arch-risk-spike) has validated the highest-risk architecture, and before full HLD/LLD fan-out. This is Stage 8 (Elaboration) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Derive system requirements (NFRs, screen-to-system mapping, API/data/integration/validation/audit requirement formats) from the gated functional-requirement set, with every SRS/NFR item explicitly declaring the FR-xxx it derives from. Use this after the architecture spike (up-arch-risk-spike) has validated the highest-risk architecture, and before full HLD/LLD fan-out. This is Stage 8 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-srs-derive — Stage 8 (Elaboration) @@ -18,7 +18,7 @@ Derive SRS/NFR requirements from the use-case-owned functional requirements, usi - `04_generated_documentation/03_requirements/use_cases/` (all FR-xxx, with parent_uc) - `architecture_spike_report.md` -- `00_prompts/AI_Native_Unified_Process_v1.md` §5 "Stage 8" +- `process/AI_Native_Unified_Process_v1.md` §5 "Stage 8" ## Procedure diff --git a/.agents/skills/up-test-model-generate/SKILL.md b/process/.agents/skills/up-test-model-generate/SKILL.md similarity index 98% rename from .agents/skills/up-test-model-generate/SKILL.md rename to process/.agents/skills/up-test-model-generate/SKILL.md index 084e178..b7fe557 100644 --- a/.agents/skills/up-test-model-generate/SKILL.md +++ b/process/.agents/skills/up-test-model-generate/SKILL.md @@ -1,6 +1,6 @@ --- name: up-test-model-generate -description: Generate functional, unit, API/contract, browser-E2E, smoke, and usability test cases for the current iteration's stories, maintain Bruno API collections and a reproducible, tagged regression suite runnable at multiple scopes (project/iteration/UC/FR), compile the 21-sheet Manual QA Excel workbook, and produce the iteration's Manual Testing Guide for QA. Use this after up-iteration-plan has selected the iteration's use-case slice, and before or alongside up-code-generate. Covers Stage 12 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Generate functional, unit, API/contract, browser-E2E, smoke, and usability test cases for the current iteration's stories, maintain Bruno API collections and a reproducible, tagged regression suite runnable at multiple scopes (project/iteration/UC/FR), compile the 21-sheet Manual QA Excel workbook, and produce the iteration's Manual Testing Guide for QA. Use this after up-iteration-plan has selected the iteration's use-case slice, and before or alongside up-code-generate. Covers Stage 12 (Construction) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-test-model-generate — Stage 12 (Construction, per iteration) diff --git a/.agents/skills/up-traceability-gate/SKILL.md b/process/.agents/skills/up-traceability-gate/SKILL.md similarity index 97% rename from .agents/skills/up-traceability-gate/SKILL.md rename to process/.agents/skills/up-traceability-gate/SKILL.md index 831495f..065c47b 100644 --- a/.agents/skills/up-traceability-gate/SKILL.md +++ b/process/.agents/skills/up-traceability-gate/SKILL.md @@ -1,6 +1,6 @@ --- name: up-traceability-gate -description: Run the enforced traceability completeness check against the single traceability graph and the iteration delivery-surface matrix — scanning for use cases with zero requirements, requirements with no owning use case, requirements with no SRS/HLD/LLD linkage, unimplemented frontend/API/data/integration surfaces, or iterations that closed with undelivered scope. Use this at the end of Stage 5, Stage 9, every Construction iteration, before any baseline/sign-off, and any time drift is suspected. Covers Gates 5.1, 9.1, and 14.1 of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Run the enforced traceability completeness check against the single traceability graph and the iteration delivery-surface matrix — scanning for use cases with zero requirements, requirements with no owning use case, requirements with no SRS/HLD/LLD linkage, unimplemented frontend/API/data/integration surfaces, or iterations that closed with undelivered scope. Use this at the end of Stage 5, Stage 9, every Construction iteration, before any baseline/sign-off, and any time drift is suspected. Covers Gates 5.1, 9.1, and 14.1 of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-traceability-gate — Gates 5.1 / 9.1 / 14.1 (cross-cutting) @@ -31,7 +31,7 @@ Three mandatory checkpoints, plus ad hoc use: - `04_generated_documentation/07_test_design/regression_test_cases.md` (Gate 14.1 only — regression-suite health check) - Current iteration's `parallel_work_plan.md`, if present (Gate 14.1 only), plus `integration_manifest.md` produced by `up-parallel-work-integrate` when named branches were used - `04_generated_documentation/00_process_control/traceability_graph.md` (previous state, if any) -- `00_prompts/AI_Native_Unified_Process_v1.md` §9 (Quality Gates) +- `process/AI_Native_Unified_Process_v1.md` §9 (Quality Gates) ## Procedure diff --git a/.agents/skills/up-uat-handover/SKILL.md b/process/.agents/skills/up-uat-handover/SKILL.md similarity index 95% rename from .agents/skills/up-uat-handover/SKILL.md rename to process/.agents/skills/up-uat-handover/SKILL.md index 347138b..1b668c6 100644 --- a/.agents/skills/up-uat-handover/SKILL.md +++ b/process/.agents/skills/up-uat-handover/SKILL.md @@ -1,6 +1,6 @@ --- name: up-uat-handover -description: Prepare DevOps/CI-CD, UAT release packaging, client handover, and the final review-ready baseline once Construction has delivered the full release scope. Use this once the traceability graph shows the release's use-case scope is 100% Delivered (or explicitly Deferred via an approved CR). Covers Stages 15-18 (Transition) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Prepare DevOps/CI-CD, UAT release packaging, client handover, and the final review-ready baseline once Construction has delivered the full release scope. Use this once the traceability graph shows the release's use-case scope is 100% Delivered (or explicitly Deferred via an approved CR). Covers Stages 15-18 (Transition) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-uat-handover — Stages 15–18 (Transition) @@ -19,7 +19,7 @@ Deploy, validate through UAT, hand over to the client, and produce the final bas - `04_generated_documentation/00_process_control/traceability_graph.md` (confirm 100% Delivered-or-Deferred-with-CR for release scope) - `04_generated_documentation/05_iteration_planning/iterations/` (all completed iterations) - `04_generated_documentation/07_test_design/regression_test_cases.md` (cumulative suite) -- `00_prompts/AI_Native_Unified_Process_v1.md` §7 "Stages 15–18" +- `process/AI_Native_Unified_Process_v1.md` §7 "Stages 15–18" ## Procedure diff --git a/.agents/skills/up-use-case-author/SKILL.md b/process/.agents/skills/up-use-case-author/SKILL.md similarity index 96% rename from .agents/skills/up-use-case-author/SKILL.md rename to process/.agents/skills/up-use-case-author/SKILL.md index 974943f..1c7c5bd 100644 --- a/.agents/skills/up-use-case-author/SKILL.md +++ b/process/.agents/skills/up-use-case-author/SKILL.md @@ -1,6 +1,6 @@ --- name: up-use-case-author -description: Author ONE use case as a single, self-contained requirements artifact — narrative plus its embedded child functional requirements (FR-xxx). Use this whenever a new use case needs to be documented or an existing use case needs its functional requirements filled in. This is Stage 5 (Elaboration) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Author ONE use case as a single, self-contained requirements artifact — narrative plus its embedded child functional requirements (FR-xxx). Use this whenever a new use case needs to be documented or an existing use case needs its functional requirements filled in. This is Stage 5 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-use-case-author — Stage 5 (Elaboration) @@ -19,7 +19,7 @@ Author each use case as the single, atomic, requirements-owning artifact — fun - `04_generated_documentation/01_source_inventories/brd_inventory.md` (BRD-FR-xxx) - Relevant `04_generated_documentation/02_legacy_analysis/` files (if Brownfield) -- `00_prompts/AI_Native_Unified_Process_v1.md` §5 "Stage 5" +- `process/AI_Native_Unified_Process_v1.md` §5 "Stage 5" ## Procedure diff --git a/.agents/skills/up-wireframe-spec/SKILL.md b/process/.agents/skills/up-wireframe-spec/SKILL.md similarity index 97% rename from .agents/skills/up-wireframe-spec/SKILL.md rename to process/.agents/skills/up-wireframe-spec/SKILL.md index 2da0ed7..4557ca0 100644 --- a/.agents/skills/up-wireframe-spec/SKILL.md +++ b/process/.agents/skills/up-wireframe-spec/SKILL.md @@ -1,6 +1,6 @@ --- name: up-wireframe-spec -description: Generate wireframes and field-level screen specifications for the use cases in the current iteration's slice, while mapping every portal/screen/route to an accountable frontend implementation and browser-QA task. Use this after up-iteration-plan has selected the iteration's use-case slice. This is Stage 11 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). +description: Generate wireframes and field-level screen specifications for the use cases in the current iteration's slice, while mapping every portal/screen/route to an accountable frontend implementation and browser-QA task. Use this after up-iteration-plan has selected the iteration's use-case slice. This is Stage 11 (Construction) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md). --- # up-wireframe-spec — Stage 11 (Construction, per iteration) diff --git a/00_prompts/02_Skills_Usage_Guide.md b/process/02_Skills_Usage_Guide.md similarity index 94% rename from 00_prompts/02_Skills_Usage_Guide.md rename to process/02_Skills_Usage_Guide.md index e24f729..8087b52 100644 --- a/00_prompts/02_Skills_Usage_Guide.md +++ b/process/02_Skills_Usage_Guide.md @@ -1,6 +1,6 @@ -# Skills Usage Guide — Invoking UP-AI v1.4 (Universal Generic Edition) +# Skills Usage Guide — Invoking UP-AI v1.5 (Universal Generic Edition) -**Purpose:** The 19 skills under `.agents/skills/` are the canonical executable forms of `00_prompts/AI_Native_Unified_Process_v1.md`. This guide shows, stage by stage, which skill to invoke and how across both **Greenfield (0-to-1)** and **Brownfield (Modernization)** projects. Hardened under UP-AI v1.4 (`PCR-005`) with deterministic semantic density validation (≥20 test cases in QA workbooks), mandatory Bruno API collections, and granular requirement lifecycles. +**Purpose:** The 19 skills under `.agents/skills/` (version-controlled in `process/.agents/skills/`) are the canonical executable forms of `process/AI_Native_Unified_Process_v1.md`. This guide shows, stage by stage, which skill to invoke and how across both **Greenfield (0-to-1)** and **Brownfield (Modernization)** projects. Hardened under UP-AI v1.4 (`PCR-005`) with deterministic semantic density validation (≥20 test cases in QA workbooks), mandatory Bruno API collections, and decoupled git-subtree architecture (`PCR-006`). diff --git a/process/AGENTS.md b/process/AGENTS.md new file mode 100644 index 0000000..ee97644 --- /dev/null +++ b/process/AGENTS.md @@ -0,0 +1,79 @@ +# Authoritative Process Agent Guide — UP-AI v1.5 + +## Purpose + +This directory defines the universal AI-Native Unified Process (**UP-AI v1.5 Generic Framework**). It is designed to be version-controlled independently (via `git subtree` or as a standalone submodule/repo) while governing product development. Keep work use-case-driven, architecture-centric, iterative, traceable, and resumable. + +## Read Efficiently + +Read only what the task requires. Use this source-of-truth order: + +1. `tech-profile.yaml` (at project root) for active technology stack and tailoring tier. +2. `process/AI_Native_Unified_Process_v1.md` for authoritative process, stages, gates, and artifact rules. +3. `process/02_Skills_Usage_Guide.md` for stage order and skill invocation. +4. `.agents/skills//SKILL.md` (physically in `process/.agents/skills/`) for the canonical procedure of an applicable skill. +5. `04_generated_documentation/00_process_control/` for current project decisions, assumptions, ambiguities, change requests (`CR-xxx`), traceability, and checkpoints. +6. `process/process_change_register.md` for process framework modifications (`PCR-xxx`). + +**Single Canonical Skills Location:** All AI agent skills are canonical and located under `.agents/skills//SKILL.md` (symlinked from `process/.agents/skills/`). All AI agent platforms (Antigravity, Claude Code, Cursor, Codex) read directly from `.agents/skills/` without file duplication or synchronization scripts. + + +## Working Rules + +- Inspect relevant artifacts and current repository state before editing; do not infer current scope from old prompts or stale plans. +- Preserve established IDs, metadata, document structure, cross-references, and traceability links. +- Follow the strict chronological folder structure under `04_generated_documentation/` (`00_process_control` through `08_review_ready_baselines`). +- Make the smallest complete change. Do not regenerate unaffected documents or silently expand scope. +- Do not invent missing business behavior. Record unresolved questions in the ambiguity register and request a decision. +- Before changing baselined requirements, architecture, scope, or NFRs, invoke `up-change-request-impact`; perform impact analysis and obtain the required disposition before editing affected artifacts. +- Use `up-process-change` for changes to this process, its gates, formats, or skills. +- Run the applicable `up-traceability-gate` at Gate 5.1, Gate 9.1, and each iteration's Gate 14.1. Do not treat scope as delivered while critical gate findings remain. +- Use `up-context-checkpoint` before a long pause, handoff, context exhaustion, or unresolved human decision. On continuation, verify the latest relevant checkpoint against repository state before relying on it. +- Never overwrite or revert unrelated work. Never commit, push, or alter git history unless explicitly requested. +- Verify changed code with the narrowest relevant tests first, then broader checks when warranted (`scripts/run_tests.sh --scope `). Report commands run and any checks not run. +- **Strict Anti-Placeholder Rule (No Superficial Completion):** Never treat the mere structural existence of a file or template as fulfillment of its contents. Zero-row QA workbooks, empty sheet templates, stub test suites, mock-only implementations where real logic was scoped, and unimplemented UI surfaces must be flagged as `Incomplete / Pending Construction`, NEVER as `Delivered` or `Gate Passed`. Conflating a shallow pass from a script with genuine engineering completeness is a critical process failure. +- **Granular Requirements Lifecycle:** Requirements MUST NOT jump directly from `Baselined` to `Delivered`. Traceability and governance must record intermediate states: + - `Baselined` → Requirements & architecture locked. + - `In Construction` → Iteration planned, test models authored. + - `Implemented (Domain/Schema)` → Backend controllers, DocTypes/schemas, and unit tests passing. + - `Delivered (E2E Verified)` → Migrations executed, Bruno API collections verified, UI/portal screens wired, manual QA workbooks densely populated, and all 4 test dimensions (Happy, Boundary, Negative, FSM Invariant) pass automated & manual checks. + +## Session Transcript (Required) + +Every AI-assisted conversation that performs work in this repository MUST maintain one running transcript in `prompts/`. The primary agent owns the file for the entire conversation, including activity delegated to subagents. + +### Start And Naming + +- At the first actionable request, create `prompts/YYYYMMDDTHHMMSSZ-session-.md` using the session start time in UTC. +- Use only lowercase ASCII letters, digits, and hyphens in ``. +- If the name already exists, append `-02`, `-03`, and so on. Never overwrite a prior transcript. +- Reuse that same file for all subsequent turns in the conversation. Do not create a file per turn or per subagent. +- Leave existing non-session files in `prompts/` unchanged. + +### Record + +Append entries in chronological order with an ISO 8601 UTC timestamp and speaker or agent label. Record: + +- Each user prompt, preserving its substance and wording after redaction. +- Each substantive assistant response, or a faithful concise summary when the response mainly contains generated content already saved in the repository. +- Decisions, assumptions, clarifications, blockers, and requested approvals. +- A concise action summary listing files created/changed and verification outcomes. +- For every subagent: its agent label, delegated prompt, and returned response or faithful result summary. + +### Exclude And Protect + +- Do not record hidden reasoning, chain-of-thought, internal scratch work, raw tool protocol, large command output, dependency logs, generated binaries, or full code diffs. +- Prefer a concise summary plus repository path for large generated content. Include small snippets only when needed to understand a decision. +- Redact secrets, credentials, access tokens, private keys, session cookies, personal data, and sensitive customer data as `[REDACTED]`. Do not persist a secret merely because it appeared in a prompt or tool result. +- Transcript logging complements process checkpoints; it does not replace `up-context-checkpoint` or governance registers. +- Update the transcript during the session and ensure the latest user request, response, actions, and subagent results are present before ending or handing off. + +## Completion + +Before reporting completion: + +1. Confirm the requested artifacts or code changes exist and are internally consistent. +2. Run applicable tests, validation, and traceability gates. +3. Update governance records or checkpoints when the process requires them. +4. Update the session transcript without embedding full diffs or sensitive data. +5. Summarize changed files, verification, open risks, and any required user decision. diff --git a/00_prompts/AI_Native_Unified_Process_v1.md b/process/AI_Native_Unified_Process_v1.md similarity index 90% rename from 00_prompts/AI_Native_Unified_Process_v1.md rename to process/AI_Native_Unified_Process_v1.md index 6b0fafc..8f3b370 100644 --- a/00_prompts/AI_Native_Unified_Process_v1.md +++ b/process/AI_Native_Unified_Process_v1.md @@ -1,15 +1,15 @@ -**AI-Native Unified Process + SEI-CMM Level 3 — v1.4 (Universal Generic Edition)** +**AI-Native Unified Process + SEI-CMM Level 3 — v1.5 (Universal Generic Edition)** *Use-Case-Driven, Architecture-Centric, Iterative and Incremental Process for Generating Requirements, Architecture, Wireframes, Test Models, Production Code, and Cloud Deployment across Greenfield and Brownfield Initiatives* | Field | Description | |---|---| -| Document Version | v1.4 (Gate 14.1 Semantic Density & Anti-Superficiality Hardening via `PCR-005`) | -| Architecture Scope | Universal, stack-agnostic AI-Native Software Development Framework (`UP-AI v1.4`) | +| Document Version | v1.5 (Process-Project Decoupling, Portable Git Subtree Architecture & Relative Path Enforcement via `PCR-006`) | +| Architecture Scope | Universal, stack-agnostic AI-Native Software Development Framework (`UP-AI v1.5`) | | Source inputs | Configured via `tech-profile.yaml`: `01_BRD` / PRDs (Greenfield & Brownfield, synthesized via `up-requirements-elicit` if unsupplied); `02_legacy_source_code` & `03_old_screenshots` (Brownfield only). | -| Target architecture | Configured via `tech-profile.yaml` & `tech-profile-presets.md`: Modular Monolith (Frappe, Django, FastAPI, Spring Boot, NestJS) or Microservices; multi-tenancy models (PostgreSQL RLS, schema-per-tenant, database-per-tenant Frappe sites); cloud-agnostic containerized deployments. | +| Target architecture | Configured via `tech-profile.yaml` & `templates/tech-profile-presets.md`: Modular Monolith (Frappe, Django, FastAPI, Spring Boot, NestJS) or Microservices; multi-tenancy models (PostgreSQL RLS, schema-per-tenant, database-per-tenant Frappe sites); cloud-agnostic containerized deployments. | | Technology profile | Declarative `tech-profile.yaml` defining active backend, frontend, ORM, migrations, auth provider, database, governance tailoring tier, and Wave 0 integration sandboxes. | -| Tooling & Execution | Orchestrated via 19 canonical AI Agent Skills (`.agents/skills/`), multi-agent topologies (§1.2), deterministic gate validator (`scripts/verify_traceability_gates.py`), multi-framework test runner (`scripts/run_tests.sh`), context-checkpointing (`up-context-checkpoint`), and QA workbook compiler (`scripts/generate_manual_qa_workbook.py`). | +| Tooling & Execution | Orchestrated via 19 canonical AI Agent Skills (`.agents/skills/` symlinked to `process/.agents/skills/`), multi-agent topologies (§1.2), deterministic gate validator (`scripts/verify_traceability_gates.py`), multi-framework test runner (`scripts/run_tests.sh`), context-checkpointing (`up-context-checkpoint`), and QA workbook compiler (`scripts/generate_manual_qa_workbook.py`). | @@ -17,9 +17,9 @@ # 0. Executive Summary -## 0.1 Universal AI-Native Principles (v1.4) +## 0.1 Universal AI-Native Principles (v1.5) -Nine core mechanics govern this universal process across all project types: +Ten core mechanics govern this universal process across all project types: 1. **Dual-Track Inception Routing:** Greenfield projects proceed via PRD extraction, Domain-Driven Design (DDD) Bounded Contexts, and Architecture Spikes; Brownfield projects execute automated AST code mining, DB schema reverse-engineering, screenshot visual analysis, and parity gap mapping. 2. **Use Case as the Atomic Requirement Unit; FRS as a Generated Rollup:** Requirements are authored *inside* their owning use case from the start (Stage 5), eliminating requirement-UC orphan discrepancies. @@ -30,6 +30,7 @@ Nine core mechanics govern this universal process across all project types: 7. **Wave 0 Deterministic Sandboxing & Test Idempotency:** External dependencies MUST provide local, deterministic sandbox adapters under `app/integrations/sandbox/`, enabling 100% offline, reproducible automated testing without third-party flakiness. 8. **Differentiated Multi-Path Automated Test Coverage & Dual QA:** Enforces multi-path automated testing (Happy, Alternate, Boundary, Negative, FSM Invariants) with tiered coverage budgets ($\ge 95\%$ core domain/FSMs, $\ge 90\%$ integration adapters, $\ge 80\%$ UI component branch coverage + Playwright E2E) and auto-compiled 21-sheet manual QA workbooks densely populated with concrete test cases ($\ge 20$). 9. **Strict Anti-Superficiality & Granular Status Progression (Anti-Goodhart's Law):** Prohibits declaring tasks or gates complete on the basis of file existence or placeholder templates. Requirements MUST progress strictly through defined lifecycle states: `Baselined` → `In Construction` → `Implemented (Domain/Schema)` → `Delivered (E2E Verified)`. Jumping directly from `Baselined` to `Delivered` without end-to-end evidence is prohibited. +10. **Decoupled Meta-Process & Git Subtree Portability:** The universal process framework lives in `process/` and evolves independently from project implementations, maintaining its own canonical skills (`process/.agents/skills/`), deterministic scripts (`process/scripts/`), and meta-governance ledger (`process/process_change_register.md`), seamlessly exposed to project-level AI tooling via root symlinks and portable across repositories via `git subtree`. --- @@ -316,7 +317,7 @@ Passing this deterministic CLI check is mandatory before gate closure; agent sel ## 8.8 Meta-Governance Process Updates (`up-process-change`) -Process adjustments follow their own dedicated meta-governance lifecycle, tracked as **`PCR-xxx` (Process Change Requests)** in `04_generated_documentation/00_process_control/process_change_register.md`. They increment document minor versions (v1.1, v1.2, ...) with an audit trail in Appendix A, strictly segregated from product requirements (`CR-xxx`) to prevent governance ID collisions and client deliverable pollution. +Process adjustments follow their own dedicated meta-governance lifecycle, tracked as **`PCR-xxx` (Process Change Requests)** in `process/process_change_register.md`. They increment document minor versions (v1.1, v1.2, ...) with an audit trail in Appendix A, strictly segregated from product requirements (`CR-xxx`) to prevent governance ID collisions and client deliverable pollution. --- @@ -342,7 +343,8 @@ Process adjustments follow their own dedicated meta-governance lifecycle, tracke | **v1.2** | 2026-10-03 | **Requirements Elicitation Hardening (`PCR-002`):** Introduced canonical skill `up-requirements-elicit` (.agents/skills/up-requirements-elicit/) at Stage 0B (Inception) to conduct Socratic stakeholder elicitation and synthesize authoritative `01_BRD/PRD_Specification.md` with root `BRD-FR-xxx` IDs when a formal requirements document is not supplied. Synthesized from OpenUP Requirements Discipline (Vision, Stakeholders, System Boundaries) and AI Hero Socratic patterns. | | **v1.3** | 2026-10-03 | **Multi-Stack & Frappe Framework Integration (`PCR-003`):** (1) Created ready-reference `tech-profile-presets.md` covering Frappe, Django, Spring Boot, FastAPI, and NestJS; (2) Upgraded `scripts/run_tests.sh` with multi-framework test runner dispatch (`bench run-tests`, `mvn/gradle`, `pytest`); (3) Updated `up-code-generate`, `up-arch-risk-spike`, and `up-wireframe-spec` with Frappe DocType schema generation, `bench migrate` synchronization, site-based multi-tenancy, and Frappe Desk screen conventions; (4) Segregated Process Change Requests (`PCR-xxx`) into `process_change_register.md` to prevent ID collisions with product changes (`CR-xxx`). | | **v1.4** | 2026-10-10 | **Gate 14.1 Semantic Density & Anti-Superficiality Hardening (`PCR-005`):** (1) Hardened `scripts/verify_traceability_gates.py` to enforce semantic density on 21-sheet Excel workbooks ($\ge 20$ populated test cases), blocking zero-row/stub templates with `Critical` exit codes; (2) Added mandatory Bruno API collection check asserting git-versioned `.bru` requests in `docs/api/bruno/` for all declared API surfaces; (3) Added 4-dimension functional test model verification (Happy Path, Boundary/Edge, Negative/Security, FSM Invariant); (4) Bound automated test execution (`--run-tests` hook) to Gate 14.1 closure; (5) Enforced granular requirement lifecycle states (`Baselined` → `In Construction` → `Implemented (Domain/Schema)` → `Delivered (E2E Verified)`); (6) Upgraded `scripts/generate_manual_qa_workbook.py` with dual-engine execution (openpyxl + zero-dependency zipfile/XML) and auto-population; (7) Injected binding anti-placeholder and anti-superficiality rules into `AGENTS.md`. | -| **v1.5+** | (Future) | Process adjustments approved via `PCR-xxx` (Trigger Type `Process-Adjustment`) are version-bumped and recorded here per §8.8. | +| **v1.5** | 2026-10-10 | **Process-Project Decoupling, Git Subtree Architecture & Relative Path Enforcement (`PCR-006`):** (1) Cleanly decoupled the universal UP-AI framework (`process/`) from project instance assets (`04_generated_documentation/`, `01_BRD/`, `docs/`, `tech-profile.yaml`), enabling independent framework versioning and `git subtree` management; (2) Relocated canonical skills to `process/.agents/skills/` and scripts to `process/scripts/` with root discovery symlinks (`.agents`, `scripts`) for seamless AI agent platform integration; (3) Moved meta-governance ledger to `process/process_change_register.md`, strictly isolating framework modifications (`PCR-xxx`) from product change requests (`CR-xxx`); (4) Hardened script execution with upward repository root discovery (`find_repo_root()`); (5) Enforced strict 100% relative path hygiene across all skills, templates, documentation, and agent rules, eliminating legacy `00_prompts/` references and machine-specific paths; (6) Split documentation into project root `README.md` and standalone framework `process/README.md`. | +| **v1.6+** | (Future) | Process adjustments approved via `PCR-xxx` (Trigger Type `Process-Adjustment`) are version-bumped and recorded here per §8.8. | diff --git a/process/README.md b/process/README.md new file mode 100644 index 0000000..b5e412b --- /dev/null +++ b/process/README.md @@ -0,0 +1,254 @@ +# AI-Native Unified Process (UP-AI v1.5) — Universal Framework + +[![Process Version](https://img.shields.io/badge/Process-UP--AI%20v1.5%20Generic-blue.svg)](AI_Native_Unified_Process_v1.md) +[![Quality Standard](https://img.shields.io/badge/SEI--CMMI-Level%203%20Governed-green.svg)](AI_Native_Unified_Process_v1.md) +[![Automated Coverage](https://img.shields.io/badge/Test%20Coverage-Tiered%20%E2%89%A595%2F90%2F80%25-brightgreen.svg)](AI_Native_Unified_Process_v1.md) +[![Agent Skills](https://img.shields.io/badge/Skills-19%20Canonical%20Skills-orange.svg)](.agents/skills/) + +**UP-AI v1.5** is an enterprise-grade, stack-agnostic software engineering framework combining the rigor of the **Unified Process (UP)** and **SEI-CMMI Level 3** governance with the speed of **AI-Native pair programming and autonomous multi-agent orchestration**. + +It governs software delivery from Socratic requirements elicitation (OpenUP / AI Hero) through architectural risk spikes, iterative construction, tiered multi-path test generation, 21-sheet QA workbook compilation, and UAT acceptance across multiple implementation frameworks (Frappe, Django, Spring Boot, FastAPI, NestJS). + +--- + +## Key Architecture & Philosophy + +``` ++-----------------------------------------------------------------------------------+ +| PROJECT ARCHETYPE SELECTION | +| (via tech-profile.yaml) | ++-----------------------------------------------------------------------------------+ + | + +---> GREENFIELD TRACK (0-to-1 Build): + | Stage 0 (Bootstrap) -> [Stage 0B (Requirements Elicitation / PRD Synthesis if unsupplied)] + | -> Stage 1 (PRD Feature Extraction) -> Stage 1B (Domain Model) + | -> Stage 6 (Arch Risk Spike) -> Stage 7 (Walking Skeleton) -> Stage 5 (Use Cases) + | + +---> BROWNFIELD TRACK (Legacy Modernization / Migration): + Stage 0 (Bootstrap) -> Stage 1 (BRD Target Scope) -> Stage 2 (AST & API Mining) + -> Stage 3 (DB Schema & UI Mining) -> Stage 4 (Parity Gap Matrix) -> Stage 5 (Use Cases) + | + v + ++-----------------------------------------------------------------------------------+ +| ELABORATION PHASE: | +| Gate 5.1 (UC-FR Gate) -> Stage 8 (SRS Derivation) -> Stage 9 (HLD/LLD) -> Gate 9.1| ++-----------------------------------------------------------------------------------+ + | + v ++-----------------------------------------------------------------------------------+ +| ITERATIVE CONSTRUCTION LOOP (Repeats per Vertical Feature Slice): | +| Stage 10 (Plan & Surface Matrix) -> Stage 11 (Wireframes & Screen Specs) | +| -> Stage 12 (Test Model, Bruno, 21-Sheet QA Workbook) | +| -> Stage 13 (Wave-Based Code Gen: Backend + Frontend + Migrations + Sandboxes) | +| -> Stage 14 (Code Review, Defect Triage & Gate 14.1 Definition-of-Done) | ++-----------------------------------------------------------------------------------+ + | + v ++-----------------------------------------------------------------------------------+ +| TRANSITION PHASE: Stage 15 (CI/CD) -> Stage 16 (UAT) -> Stage 17 (Client Handover)| +| -> Stage 18 (Review-Ready Baselines) | ++-----------------------------------------------------------------------------------+ +``` + +--- + +## The 8 Non-Negotiable UP-AI Principles + +1. **Dual-Track Inception Routing:** Greenfield projects bypass legacy discovery (Stages 2–4) directly to PRD modeling and risk spikes; Brownfield projects perform automated AST code mining, database schema reconstruction, and visual UI discovery. +2. **Atomic Use Case Requirements Spine:** Requirements are authored *inside* their owning use case (`UC-xxx` $\rightarrow$ `FR-xxx`), preventing orphaned specifications. +3. **Continuous Deterministic Quality Gates:** Hard-blocking gates (Gate 5.1, Gate 9.1, Gate 14.1) validate graph completeness deterministically via `scripts/verify_traceability_gates.py` before stage transitions. +4. **First-Class Change Request (CR) Lifecycle:** Scope changes, requirement gaps, and NFR shifts compute blast-radius impact graphs *before* documents or code are modified (`up-change-request-impact`). +5. **Risk-Driven Architecture Spikes:** Disposable walking skeletons validate high-risk architectural bottlenecks (data isolation, concurrency, external integrations) before full-scale construction. +6. **Wave 0 Deterministic Sandboxing:** External dependencies MUST provide local, deterministic sandbox adapters under `app/integrations/sandbox/` to guarantee 100% offline, reproducible CI execution. +7. **Differentiated Automated Test Coverage Budgets:** Enforces multi-path automated testing across Happy Path, Alternate/Boundary, Negative/Failure, and FSM Invariant dimensions with tiered thresholds ($\ge 95\%$ core domain/FSMs, $\ge 90\%$ integration adapters, $\ge 80\%$ UI components + Playwright E2E). +8. **Dual Manual QA Deliverables:** Every iteration produces both a Markdown testing guide and a 30-column, 21-sheet Excel Manual QA Workbook (`.xlsx`) via deterministic compiler tooling (`scripts/generate_manual_qa_workbook.py`). + +--- + +## Declarative Technology Profile (`tech-profile.yaml`) + +The entire agent skill suite dynamically adapts to your project's technology stack via [`tech-profile.yaml`](../tech-profile.yaml) at the repository root. Ready-to-copy configurations for **Frappe**, **Django**, **Spring Boot**, **FastAPI**, and **NestJS** are available in [`templates/tech-profile-presets.md`](templates/tech-profile-presets.md). + +For containerized developer topologies, native Antigravity AI execution, sub-agent git worktrees, and clean downstream distribution via `git subtree push`, see the framework deep-dive guides: +- [Frappe App-Centric Development Guide](framework_guides/frappe_app_centric_development_guide.md) (`frappe_docker`, VS Code DevContainers, and git subtree distribution) + +```yaml +project: + name: "Universal Enterprise Platform" + code: "UEP" + archetype: "greenfield" # 'greenfield' or 'brownfield' + +governance: + tailoring_tier: "tier_2_standard_enterprise" # tier_1_high_assurance | tier_2_standard_enterprise | tier_3_fast_track + enforce_deterministic_gates: true + +stack: + architecture_pattern: "modular_monolith" # modular_monolith | microservices | event_driven | serverless + multi_tenancy: + enabled: true + model: "row_level_security" # row_level_security | schema_per_tenant | database_per_tenant (Frappe sites) + + backend: + language: "python" # python | typescript | go | java | csharp | rust + framework: "fastapi" # fastapi | frappe | django | express | nestjs | gin | spring_boot + orm: "sqlalchemy" # sqlalchemy | doctype | prisma | typeorm | django_orm | hibernate + migrations: "alembic" # alembic | bench_migrate | prisma | flyway | django_migrations + test_framework: "pytest" # pytest | frappe_test_runner | junit5 | vitest + + frontend: + framework: "react" # react | vue | angular | svelte | nextjs | flutter + language: "typescript" + ui_library: "tailwind_shadcn" + e2e_framework: "playwright" + +quality_targets: + coverage_thresholds: + backend_domain_fsm: 95.0 + integration_adapters: 90.0 + frontend_components: 80.0 + test_coverage_threshold: 95.0 +``` + + +--- + +## Autonomous Multi-Agent Topology + +AI agents execute specialized roles across the lifecycle: + +| Agent Persona | Role & Responsibilities | Primary Skills | +|---|---|---| +| Agent Persona | Role & Responsibilities | Primary Skills | +|---|---|---| +| **`@requirements-analyst`** | Socratic elicitation, PRD/BRD extraction, ambiguity logging, use-case authoring | `up-requirements-elicit`, `up-brd-extract`, `up-use-case-author` | +| **`@spike-architect`** | Risk scoring, walking skeleton spike, domain HLD/LLD templates | `up-arch-risk-spike`, `up-hld-lld-generate` | +| **`@ui-designer-dev`** | Wireframe specs, UI tokens, responsive frontend components | `up-wireframe-spec`, `up-code-generate` | +| **`@backend-dev`** | Database migrations, deterministic API routers, Wave 0 sandboxes | `up-code-generate` | +| **`@adversarial-tester`** | Multi-path test suites ($\ge 95\%$), Bruno API collections, 21-sheet QA workbooks | `up-test-model-generate`, `up-defect-fix` | +| **`@gatekeeper`** | Enforces quality gates (5.1, 9.1, 14.1), verifies delivery surfaces, computes CR impact | `up-traceability-gate`, `up-change-request-impact` | + +--- + +## Quickstart: Creating a New Project from this Framework + +1. **Clone or create a new repository from this branch:** + ```bash + git clone -b process-generic my-new-project + cd my-new-project + git remote set-url origin + git push -u origin main + ``` + +2. **Configure project stack:** + ```bash + cp process/templates/tech-profile.template.yaml tech-profile.yaml + # Edit tech-profile.yaml with your project name, archetype, and stack choices + ``` + +3. **Bootstrap governance workspace (Stage 0):** + ```bash + # In your AI IDE prompt (Cursor / Claude / Antigravity / Gemini): + /up-project-bootstrap --archetype greenfield + ``` + +4. **Elicit requirements (Stage 0B, if PRD not supplied):** + ```bash + /up-requirements-elicit --interactive + ``` + +--- + +## Process Framework Layout (`process/`) + +When version-controlled as a standalone repository or integrated via `git subtree`: + +``` +process/ +├── .agents/skills/ # Canonical, cross-agent skill definitions (19 skills) +│ ├── up-project-bootstrap/ # Stage 0: Workspace & governance setup +│ ├── up-requirements-elicit/ # Stage 0B: Socratic requirements elicitation & PRD synthesis +│ ├── up-brd-extract/ # Stage 1: Business feature extraction +│ ├── up-legacy-gap-analysis/ # Stages 2-4: Legacy code & screen mining (Brownfield) +│ ├── up-use-case-author/ # Stage 5: Atomic use-case & FR authoring +│ ├── up-arch-risk-spike/ # Stages 6-7: Architecture risk spike & walking skeleton +│ ├── up-srs-derive/ # Stage 8: System requirements & NFR derivation +│ ├── up-hld-lld-generate/ # Stage 9: High-level & low-level design +│ ├── up-iteration-plan/ # Stage 10: Construction iteration planning +│ ├── up-wireframe-spec/ # Stage 11: Screen specifications & routes +│ ├── up-test-model-generate/ # Stage 12: Multi-path tests & 21-sheet QA workbook +│ ├── up-code-generate/ # Stage 13: Wave-based code generation +│ ├── up-defect-fix/ # Stage 14: Defect triage & review +│ ├── up-traceability-gate/ # Gates 5.1, 9.1, 14.1 completeness checks +│ ├── up-parallel-work-integrate/ # Multi-branch AI lane reconciliation +│ ├── up-change-request-impact/ # Formal CR blast-radius analyzer +│ ├── up-context-checkpoint/ # AI session checkpoint & resume protocol +│ ├── up-process-change/ # Meta-governance process updates (PCR-xxx) +│ └── up-uat-handover/ # Stages 15-18: UAT packaging & release +├── scripts/ # Deterministic automation tooling +│ ├── init-new-project.sh # Scaffolds new projects with UP-AI directory structure +│ ├── generate_manual_qa_workbook.py # 21-sheet Excel Manual QA Workbook compiler +│ ├── verify_traceability_gates.py # Deterministic CLI quality gate validator (Gates 5.1, 9.1, 14.1) +│ └── run_tests.sh # Multi-level test runner (--scope project|iteration|uc|fr) +├── templates/ +│ ├── tech-profile.template.yaml # Declarative stack configuration template +│ └── tech-profile-presets.md # Ready-reference configurations (Frappe, Django, Spring, etc.) +├── framework_guides/ # Deep-dive guides for framework topologies +│ └── frappe_app_centric_development_guide.md # DevContainers, Antigravity, & subtree distribution +├── AI_Native_Unified_Process_v1.md # Core UP-AI v1.5 Process Specification +├── 02_Skills_Usage_Guide.md # Stage-by-stage invocation guide +├── process_change_register.md # Meta-governance ledger (PCR-xxx) +├── AGENTS.md # Authoritative process agent guide +└── README.md # Framework orientation & guide +``` + +--- + +## Git Subtree Project Integration + +The process framework lives in `process/` alongside project-specific source code and generated documentation, linked seamlessly to root AI tooling via symlinks: + +```bash +# In the target project repository: +# 1. Add process framework via git subtree +git subtree add --prefix=process main --squash + +# 2. Establish root discovery symlinks for AI IDEs +ln -s process/.agents .agents +ln -s process/scripts scripts + +# 3. Pull future process updates +git subtree pull --prefix=process main --squash + +# 4. Push framework contributions back to upstream process repo +git subtree push --prefix=process main +``` + +--- + +## Single Traceability Chain + +Every requirement, design artifact, code commit, and test case follows a strictly verifiable ID prefix: + +``` +PRD / BRD Feature: BRD-FR-xxx + │ + ▼ +Use Case: UC-xxx + │ + ▼ +Functional Req: FR-xxx (child of exactly one UC-xxx) + │ + ├──► System & NFR Req: SRS-xxx / NFR-xxx + ├──► Architecture Spec: HLD- / LLD-API-xxx / LLD-TBL-xxx + ├──► Backlog User Story: STORY-xxx + └──► Multi-Path Tests: TC-xxx (Unit | API | Contract | E2E | Smoke | Usability) +``` + +--- + +## License & Governance + +This framework is governed under the **AI-Native Unified Process Specification v1.5** ([`AI_Native_Unified_Process_v1.md`](AI_Native_Unified_Process_v1.md)). Process modifications follow the formal `up-process-change` lifecycle (Process-Adjustment CRs / PCRs) recorded in [`process_change_register.md`](process_change_register.md). + + diff --git a/00_prompts/framework_guides/frappe_app_centric_development_guide.md b/process/framework_guides/frappe_app_centric_development_guide.md similarity index 93% rename from 00_prompts/framework_guides/frappe_app_centric_development_guide.md rename to process/framework_guides/frappe_app_centric_development_guide.md index ef3589a..d23e14c 100644 --- a/00_prompts/framework_guides/frappe_app_centric_development_guide.md +++ b/process/framework_guides/frappe_app_centric_development_guide.md @@ -7,8 +7,8 @@ | **AI Agent Integration** | Antigravity AI Assistant / Extension | | **Governed Architecture** | App-Centric Development Model | | **Distribution Pattern** | Pattern 1: Clean Downstream Git Subtree Push | -| **Governed Standard** | UP-AI v1.3 (SEI-CMMI Level 3) | -| **Document Path** | `00_prompts/framework_guides/frappe_app_centric_development_guide.md` | +| **Governed Standard** | UP-AI v1.5 (SEI-CMMI Level 3) | +| **Document Path** | `process/framework_guides/frappe_app_centric_development_guide.md` | --- @@ -33,7 +33,7 @@ flowchart TD SITES["sites/dev.localhost (MariaDB + Redis)"] subgraph App_Repo["apps/my_custom_app/ (UP-AI Internal Git Repo)"] - UP_HARNESS[".agents/skills/
00_prompts/
04_generated_docs/
prompts/ (transcripts)"] + UP_HARNESS[".agents/skills/
process/
04_generated_docs/
prompts/ (transcripts)"] APP_CODE["my_custom_app/
hooks.py, DocTypes, controllers
pyproject.toml, public tests"] end @@ -64,10 +64,11 @@ Host Development Folder (e.g. ~/projects/my_project/development) ├── apps/ │ ├── frappe/ <--- Core framework (read-only dependency) │ └── my_custom_app/ <--- YOUR REPOSITORY (UP-AI Process + App Source) - │ ├── .agents/ <--- 19 Canonical AI Agent Skills (Internal) - │ │ └── skills/ - │ ├── 00_prompts/ <--- Process Specs, Tech Presets & Guides (Internal) + │ ├── .agents/ <--- AI Agent Skills (Symlinked to process/.agents) + │ ├── process/ <--- Process Framework (Managed via git subtree) │ │ ├── AI_Native_Unified_Process_v1.md + │ │ ├── .agents/skills/ + │ │ ├── scripts/ │ │ └── templates/tech-profile-presets.md │ ├── 01_BRD/ <--- Business Requirements Document (PRD) │ ├── 04_generated_documentation/ <--- CMMI Traceability & Architecture (Internal) @@ -131,7 +132,7 @@ Navigate to the newly created app directory: ```bash cd /workspace/development/frappe-bench/apps/my_custom_app ``` -Overlay the UP-AI framework directories (`.agents/`, `00_prompts/`, `04_generated_documentation/`, `scripts/`, `tech-profile.yaml`). +Overlay the UP-AI framework directories (`.agents/`, `process/`, `04_generated_documentation/`, `scripts/`, `tech-profile.yaml`). ### Step 5: Configure `tech-profile.yaml` with Preset A Ensure `tech-profile.yaml` at the root of `my_custom_app/` uses **Preset A**: @@ -210,7 +211,7 @@ To publish your Frappe app to a customer or production repository without exposi ``` Internal Development Repo Customer / Production Remote ├── .agents/ (EXCLUDED) -├── 00_prompts/ (EXCLUDED) +├── process/ (EXCLUDED) ├── 04_generated_docs/ (EXCLUDED) ├── prompts/ (EXCLUDED) ├── scripts/ (EXCLUDED) @@ -237,7 +238,7 @@ Internal Development Repo Customer / Production Remote * Scans commit history and extracts only commits that modified files inside `my_custom_app/`. * Rewrites the commit tree so `my_custom_app/` becomes the root (`/`) of the customer repository. * Preserves commit authors, commit dates, and commit messages. - * Completely filters out all commits and files related to `.agents/`, `00_prompts/`, and `04_generated_documentation/`. + * Completely filters out all commits and files related to `.agents/`, `process/`, and `04_generated_documentation/`. 4. **Tagging a Customer Release:** ```bash @@ -260,7 +261,7 @@ Frappe apps are standard Python packages. `pyproject.toml` explicitly scopes pac include = ["my_custom_app/**"] exclude = [ ".agents/**", - "00_prompts/**", + "process/**", "04_generated_documentation/**", "prompts/**", "scripts/**", @@ -273,7 +274,7 @@ When Frappe Bench installs the app in production via `pip install`, only files i Create a `.gitattributes` file at the root of `my_custom_app/`: ```gitattributes .agents export-ignore -00_prompts export-ignore +process export-ignore 04_generated_documentation export-ignore prompts export-ignore scripts export-ignore diff --git a/process/process_change_register.md b/process/process_change_register.md new file mode 100644 index 0000000..08f53a8 --- /dev/null +++ b/process/process_change_register.md @@ -0,0 +1,37 @@ +# Process Change Request (PCR) Register — Meta-Governance + +| Field | Value | +|---|---| +| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.5 Meta-Governance §8.8) | +| **Document Path** | `process/process_change_register.md` | +| **Gated By** | `up-process-change` | +| **Scope** | Meta-Process Specifications, Skills, Quality Gates, Tooling, Framework Presets | +| **Product Changes** | Governed separately via `up-change-request-impact` in [`04_generated_documentation/00_process_control/change_request_register.md`](../04_generated_documentation/00_process_control/change_request_register.md) (`CR-xxx`) | +| **Last Updated** | 2026-10-10 | + +--- + +## 1. Overview & Governance Rule + +All modifications to the **AI-Native Unified Process (UP-AI)** itself—including new stages, new skills, revised gate rules, CLI validators, technology profile templates, or framework reference guides—must be proposed, evaluated, and tracked as **Process Change Requests (`PCR-xxx`)** in this register. + +This guarantees: +1. **Zero Collision with Product Scope:** Product functional changes (`CR-xxx`) remain clean and isolated in `change_request_register.md`. +2. **Version Auditability:** Every minor or major framework version bump (v1.1, v1.2, v1.3, ...) maps directly to an approved, closed `PCR-xxx`. +3. **Pristine Client Handover:** When client code is packaged or pushed via `git subtree`, internal meta-governance records are cleanly separated. + +--- + +## 2. Process Change Request Ledger + +| PCR-ID | Trigger Type | Raised By | Date | Originating Scope | Description | Affected Skills & Docs | Process Impact / Version | Disposition | Status | +|---|---|---|---|---|---|---|---|---|---| +| `PCR-001` | Process-Adjustment | Process Lead / CMMI Specialist | 2026-10-03 | CMMI Level 3 Compliance & Automation | Hardened framework with deterministic CLI quality gate validator (`scripts/verify_traceability_gates.py`), CMMI 3-tier tailoring framework, Human Review Brief protocol, and differentiated test coverage budgets. | `process/AI_Native_Unified_Process_v1.md`, `scripts/verify_traceability_gates.py`, `04_generated_documentation/00_process_control/tailoring_guidelines.md` | UP-AI v1.1 bump; deterministic verification of Gates 5.1, 9.1, 14.1 | Approved | Closed | +| `PCR-002` | Process-Adjustment | Requirements Lead | 2026-10-03 | Inception / Stage 0B | Introduced canonical skill `up-requirements-elicit` (.agents/skills/up-requirements-elicit/) at Stage 0B to conduct Socratic stakeholder elicitation and synthesize authoritative `01_BRD/PRD_Specification.md` with minted `BRD-FR-xxx` IDs when upstream BRD is absent. | `.agents/skills/up-requirements-elicit/`, `process/AI_Native_Unified_Process_v1.md`, `process/02_Skills_Usage_Guide.md` | UP-AI v1.2 bump; added Stage 0B to process lifecycle | Approved | Closed | +| `PCR-003` | Process-Adjustment | Multi-Stack Architect | 2026-10-03 | Construction & Stack Agnosticism | Added native Frappe Framework support, ready-reference technology presets (`tech-profile-presets.md` for Frappe, Django, Spring Boot, FastAPI, NestJS), and multi-framework test runner dispatch in `scripts/run_tests.sh`. Segregated `PCR-xxx` from `CR-xxx`. | `process/templates/tech-profile-presets.md`, `scripts/run_tests.sh`, `.agents/skills/up-code-generate/`, `.agents/skills/up-arch-risk-spike/`, `.agents/skills/up-wireframe-spec/`, `.agents/skills/up-process-change/` | UP-AI v1.3 bump; dynamic Frappe test & migration execution; governance ID segregation | Approved | Closed | +| `PCR-004` | Process-Adjustment | Framework Lead / DevOps Architect | 2026-10-03 | Developer Workflows & Framework Topologies | Recreated canonical reference guide for Frappe App-Centric Development Model (`process/framework_guides/frappe_app_centric_development_guide.md`) detailing VS Code DevContainers, Antigravity integration, parallel sub-agent git worktrees, Pattern 1 clean downstream distribution via `git subtree push`, and production packaging hygiene (`pyproject.toml` and `.gitattributes` export-ignore). | `process/framework_guides/frappe_app_centric_development_guide.md`, `process/templates/tech-profile-presets.md`, `process/02_Skills_Usage_Guide.md`, `README.md` | Provides persistent operational blueprints for framework containerization and git subtree distribution | Approved | Closed | +| `PCR-005` | Process-Adjustment | Quality Assurance Architect / Process Lead | 2026-10-10 | Construction & Quality Gate Hardening | Hardened Gate 14.1 and the construction process against Goodhart's Law and superficial AI completion: (1) Deterministic semantic test density validation for Excel QA workbooks asserting total test cases >= 20; (2) Mandatory Bruno API collection check asserting >=1 .bru file per declared API surface; (3) Mandatory Functional Test Model checks asserting all 4 test dimensions (Happy, Boundary/Edge, Negative, FSM Invariant); (4) Automated test execution binding in Gate 14.1; (5) Differentiated requirement lifecycle states ('Baselined' -> 'In Construction' -> 'Implemented (Domain/Schema)' -> 'Delivered (E2E Verified)'); (6) Explicit binding anti-placeholder and anti-superficiality rules in AGENTS.md. | `process/AI_Native_Unified_Process_v1.md`, `process/02_Skills_Usage_Guide.md`, `AGENTS.md`, `scripts/verify_traceability_gates.py`, `scripts/generate_manual_qa_workbook.py`, `.agents/skills/up-traceability-gate/`, `.agents/skills/up-test-model-generate/`, `.agents/skills/up-code-generate/`, `.agents/skills/up-defect-fix/` | UP-AI v1.4 bump; Gate 14.1 semantic density enforcement and anti-superficiality rules | Approved | Closed | +| `PCR-006` | Process-Adjustment | Process Architect / AI Engineering Lead | 2026-10-10 | Process-Project Decoupling, Git Subtree Architecture & Relative Path Enforcement | Cleanly decoupled the universal AI-Native Unified Process framework (`process/`) from project instance assets (`04_generated_documentation/`, `01_BRD/`, `docs/`, `tech-profile.yaml`). Consolidated all process specifications, templates, framework guides, skills (`process/.agents/skills/`), and automation scripts (`process/scripts/`) under `process/`. Established root symlinks (`.agents -> process/.agents`, `scripts -> process/scripts`) for seamless discovery by root-level AI agent platforms while enabling clean standalone `git subtree` versioning. Moved `process_change_register.md` into `process/` to isolate meta-governance (`PCR-xxx`) from product governance (`CR-xxx`). Hardened scripts with upward repo root discovery (`find_repo_root()`). Enforced 100% relative path hygiene across all skills, templates, documentation, and agent rules—eliminating legacy `00_prompts/` references and hardcoded machine paths. Split repository documentation into project root `README.md` and framework `process/README.md`. | `process/AI_Native_Unified_Process_v1.md`, `process/02_Skills_Usage_Guide.md`, `process/process_change_register.md`, `process/.agents/skills/*/SKILL.md`, `process/scripts/*`, `AGENTS.md`, `process/AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `tech-profile.yaml`, `README.md`, `process/README.md` | UP-AI v1.5 bump; independent git subtree versioning of process framework and strict relative path portability | Approved | Closed | + + + diff --git a/scripts/generate_manual_qa_workbook.py b/process/scripts/generate_manual_qa_workbook.py similarity index 99% rename from scripts/generate_manual_qa_workbook.py rename to process/scripts/generate_manual_qa_workbook.py index 20db2d3..1d8315f 100755 --- a/scripts/generate_manual_qa_workbook.py +++ b/process/scripts/generate_manual_qa_workbook.py @@ -854,8 +854,16 @@ def build_workbook(iteration: str, name: str, output_path: str, cases_by_categor summary_metadata, notes, traceability_rows) +def find_repo_root(start_file: Path) -> Path: + curr = start_file.resolve().parent + for p in [curr] + list(curr.parents): + if (p / "04_generated_documentation").exists() or (p / "tech-profile.yaml").exists(): + return p + return start_file.resolve().parent.parent + + def main(): - parser = argparse.ArgumentParser(description="Compile 21-sheet Manual QA Excel Workbook (UP-AI v1.4)") + parser = argparse.ArgumentParser(description="Compile 21-sheet Manual QA Excel Workbook (UP-AI v1.5)") parser.add_argument("--iteration", required=True, help="Iteration number (e.g. 01, 02)") parser.add_argument("--name", required=True, help="Iteration Name (e.g. IAM_Multi_Tenant_Core)") parser.add_argument("--output", help="Optional output path") @@ -866,10 +874,11 @@ def main(): it_str = it_clean.zfill(2) default_out = f"04_generated_documentation/07_test_design/manual_qa/workbooks/Iteration{it_str}_{args.name}_Complete_Manual_Testcases.xlsx" out_path = args.output or default_out - repo_root = Path(args.repo_root) if args.repo_root else Path(__file__).resolve().parent.parent + repo_root = Path(args.repo_root) if args.repo_root else find_repo_root(Path(__file__)) build_workbook(iteration=it_str, name=args.name, output_path=out_path, repo_root=repo_root) + if __name__ == "__main__": main() diff --git a/scripts/init-new-project.sh b/process/scripts/init-new-project.sh similarity index 82% rename from scripts/init-new-project.sh rename to process/scripts/init-new-project.sh index 440c115..8b25dbd 100755 --- a/scripts/init-new-project.sh +++ b/process/scripts/init-new-project.sh @@ -10,7 +10,14 @@ set -euo pipefail -repo_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" +script_dir="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +repo_root="$script_dir" +while [[ "$repo_root" != "/" && ! -f "$repo_root/tech-profile.yaml" && ! -d "$repo_root/04_generated_documentation" ]]; do + repo_root="$(dirname "$repo_root")" +done +if [[ "$repo_root" == "/" ]]; then + repo_root="$(CDPATH= cd -- "$script_dir/../.." && pwd)" +fi project_name="New Project" project_code="NP" @@ -45,19 +52,20 @@ while [[ $# -gt 0 ]]; do esac done -printf '== Initializing UP-AI v1.0 for [%s] (Code: %s, Archetype: %s) ==\n' "$project_name" "$project_code" "$archetype" +printf '== Initializing UP-AI v1.5 for [%s] (Code: %s, Archetype: %s) ==\n' "$project_name" "$project_code" "$archetype" # 1. Initialize tech-profile.yaml if not present if [[ ! -f "$repo_root/tech-profile.yaml" ]]; then - if [[ -f "$repo_root/00_prompts/templates/tech-profile.template.yaml" ]]; then + if [[ -f "$repo_root/process/templates/tech-profile.template.yaml" ]]; then printf 'Creating tech-profile.yaml from template...\n' - cp "$repo_root/00_prompts/templates/tech-profile.template.yaml" "$repo_root/tech-profile.yaml" + cp "$repo_root/process/templates/tech-profile.template.yaml" "$repo_root/tech-profile.yaml" sed -i "s/name: .*/name: \"$project_name\"/" "$repo_root/tech-profile.yaml" sed -i "s/code: .*/code: \"$project_code\"/" "$repo_root/tech-profile.yaml" sed -i "s/archetype: .*/archetype: \"$archetype\"/" "$repo_root/tech-profile.yaml" fi fi + # 2. Create chronological directory structure mkdir -p "$repo_root/01_BRD" mkdir -p "$repo_root/04_generated_documentation/00_process_control/checkpoints" diff --git a/scripts/run_tests.sh b/process/scripts/run_tests.sh similarity index 95% rename from scripts/run_tests.sh rename to process/scripts/run_tests.sh index 3c2c67f..41fa5f8 100755 --- a/scripts/run_tests.sh +++ b/process/scripts/run_tests.sh @@ -30,13 +30,22 @@ set -euo pipefail -repo_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" +script_dir="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +repo_root="$script_dir" +while [[ "$repo_root" != "/" && ! -f "$repo_root/tech-profile.yaml" && ! -d "$repo_root/04_generated_documentation" ]]; do + repo_root="$(dirname "$repo_root")" +done +if [[ "$repo_root" == "/" ]]; then + repo_root="$(CDPATH= cd -- "$script_dir/../.." && pwd)" +fi + workspace_dir="$repo_root/05_implementation_workspace" bruno_root="$workspace_dir" env_name="dev" scope="" usage() { + printf 'Usage: %s --scope [--env ]\n' "$0" >&2 exit 1 } diff --git a/scripts/verify_traceability_gates.py b/process/scripts/verify_traceability_gates.py similarity index 98% rename from scripts/verify_traceability_gates.py rename to process/scripts/verify_traceability_gates.py index 7e53aa9..cd3a94e 100755 --- a/scripts/verify_traceability_gates.py +++ b/process/scripts/verify_traceability_gates.py @@ -472,8 +472,16 @@ class QualityGateValidator: return True +def find_repo_root(start_file: Path) -> Path: + curr = start_file.resolve().parent + for p in [curr] + list(curr.parents): + if (p / "04_generated_documentation").exists() or (p / "tech-profile.yaml").exists(): + return p + return start_file.resolve().parent.parent + + def main(): - parser = argparse.ArgumentParser(description="Deterministic Quality Gate Validator (UP-AI v1.4)") + parser = argparse.ArgumentParser(description="Deterministic Quality Gate Validator (UP-AI v1.5)") parser.add_argument("--gate", choices=["5.1", "9.1", "14.1"], help="Specific gate to validate") parser.add_argument("--iteration", default=None, help="Target iteration for Gate 14.1 (e.g. iteration-01)") parser.add_argument("--run-tests", action="store_true", help="Execute automated test runner during Gate 14.1 validation") @@ -482,9 +490,10 @@ def main(): args = parser.parse_args() - repo_root = Path(args.repo_root) if args.repo_root else Path(__file__).resolve().parent.parent + repo_root = Path(args.repo_root) if args.repo_root else find_repo_root(Path(__file__)) validator = QualityGateValidator(repo_root) + overall_pass = True if args.all or not args.gate: diff --git a/00_prompts/templates/tech-profile-presets.md b/process/templates/tech-profile-presets.md similarity index 98% rename from 00_prompts/templates/tech-profile-presets.md rename to process/templates/tech-profile-presets.md index 33bb6ed..2d7008f 100644 --- a/00_prompts/templates/tech-profile-presets.md +++ b/process/templates/tech-profile-presets.md @@ -3,8 +3,8 @@ | Field | Value | |---|---| | **Document** | `tech-profile-presets.md` | -| **Location** | `00_prompts/templates/tech-profile-presets.md` | -| **Governed Process** | UP-AI v1.3 | +| **Location** | `process/templates/tech-profile-presets.md` | +| **Governed Process** | UP-AI v1.5 | | **Purpose** | Ready-reference configuration snippets for `tech-profile.yaml` | --- diff --git a/00_prompts/templates/tech-profile.template.yaml b/process/templates/tech-profile.template.yaml similarity index 99% rename from 00_prompts/templates/tech-profile.template.yaml rename to process/templates/tech-profile.template.yaml index 86c5af3..b20b3a5 100644 --- a/00_prompts/templates/tech-profile.template.yaml +++ b/process/templates/tech-profile.template.yaml @@ -30,7 +30,7 @@ inception: # Architecture & Target Technology Stack # (For pre-packaged stack presets like Frappe, Django, Spring Boot, FastAPI, or NestJS, -# see `00_prompts/templates/tech-profile-presets.md`) +# see `process/templates/tech-profile-presets.md`) stack: architecture_pattern: "modular_monolith" # Options: modular_monolith | microservices | event_driven | serverless multi_tenancy: diff --git a/scripts b/scripts new file mode 120000 index 0000000..85f028e --- /dev/null +++ b/scripts @@ -0,0 +1 @@ +process/scripts \ No newline at end of file diff --git a/tech-profile.yaml b/tech-profile.yaml index 2b04915..9f7a88d 100644 --- a/tech-profile.yaml +++ b/tech-profile.yaml @@ -30,7 +30,7 @@ inception: # Architecture & Target Technology Stack # (For pre-packaged stack presets like Frappe, Django, Spring Boot, FastAPI, or NestJS, -# see `00_prompts/templates/tech-profile-presets.md`) +# see `process/templates/tech-profile-presets.md`) stack: architecture_pattern: "modular_monolith" # Options: modular_monolith | microservices | event_driven | serverless multi_tenancy: