# Universal Enterprise Platform (`up-frappe`) [![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/) 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. --- ## 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 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) | | 05_implementation_workspace/ <-- Product source, runtime and container assets | +-----------------------------------------------------------------------------------+ │ 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 | +-----------------------------------------------------------------------------------+ ``` ### 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. Starting local development dependencies PostgreSQL, Keycloak, and Valkey can be run as local containers with Docker Compose. See the [Compose development guide](05_implementation_workspace/docs/development/docker-compose.md). This is a development setup, not a production deployment profile. ### 2. 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. ### 3. 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). ### 4. 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 ``` ### 5. 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 ``` --- ## Process Framework Git Subtree Management 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 # Push framework improvements back to upstream process repository 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) ``` --- ## Repository Layout ``` . ├── .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`).