177 lines
10 KiB
Markdown
177 lines
10 KiB
Markdown
# Universal Enterprise Platform (`up-frappe`)
|
||
|
||
[](process/AI_Native_Unified_Process_v1.md)
|
||
[](process/AI_Native_Unified_Process_v1.md)
|
||
[](process/AI_Native_Unified_Process_v1.md)
|
||
[](.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) |
|
||
| app code <-- Production Source Code, Controllers, Migrations |
|
||
+-----------------------------------------------------------------------------------+
|
||
│
|
||
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. 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
|
||
```
|
||
|
||
---
|
||
|
||
## 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 <process-repo-url> main --squash
|
||
|
||
# Push framework improvements back to upstream process repository
|
||
git subtree push --prefix=process <process-repo-url> 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-<SERVICE> / 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`).
|