|
|
||
|---|---|---|
| .github/workflows | ||
| process | ||
| project_code | ||
| project_sdlc | ||
| .agents | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| GEMINI.md | ||
| README.md | ||
| scripts | ||
| tech-profile.yaml | ||
README.md
Universal Enterprise Platform (up-frappe)
Enterprise software platform governed by the AI-Native Unified Process (UP-AI v1.8) and SEI-CMMI Level 3 standards. The project combines domain-driven requirements, architecture risk spikes, unified authorization matrix design, 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) |
| project_sdlc/ <-- Project Lifecycle Artifacts (BRD, Requirements, QA) |
| project_code/ <-- 100% Self-Contained Deliverable Codebase & Bruno APIs |
| tech-profile.yaml <-- Declarative Active Stack Configuration (Preset A-E) |
+-----------------------------------------------------------------------------------+
│
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.8) |
| Skills_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, CLAUDE.md, GEMINI.md <-- Standalone Process Agent Guides & Gateways |
+-----------------------------------------------------------------------------------+
Why Decouple via git subtree?
- Independent Process Evolution: The process framework evolutions (
PCR-xxx) are version-controlled inprocess/and can be pulled or pushed to a standalone process repository without mixing with project git history. - Clean Product Deliverables: Client deliverables and production releases only package product code and formal artifacts, excluding internal skills and prompt transcripts.
- Zero Configuration for AI Agents: AI agent tools (Antigravity, Claude Code, Cursor, Codex) look for
.agents/skills/andscripts/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. For ready-to-copy configurations for major stacks (Frappe, Django, Spring Boot, FastAPI, NestJS), see 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
project_code/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. This is a development setup, not a production deployment profile.
2. Reading Instructions & Rules
All AI agents follow instructions declared in:
AGENTS.md— Root project gateway delegating toprocess/AGENTS.mdfor anti-placeholder rules, granular requirement lifecycle states, and session transcript protocols.CLAUDE.md/GEMINI.md— Agent platform gateways.
3. Validating Traceability Quality Gates
Quality gates are enforced deterministically via Python CLI tooling:
# 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 20concrete test cases populated across the 21-sheet Excel QA workbook. - Asserts git-versioned
.brurequests inproject_code/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):
python3 scripts/generate_manual_qa_workbook.py --iteration iteration-01
5. Running Automated Tests
Run tests at any scope:
# 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:
# 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 (3-Directory Top-Level Architecture — PCR-007)
.
├── .agents -> process/.agents # Root discovery symlink for AI agent platforms
├── scripts -> process/scripts # Root discovery symlink for automation CLI tools
├── AGENTS.md -> process/AGENTS.md # Root symlink for authoritative agent guide
├── CLAUDE.md -> process/CLAUDE.md # Root symlink for Claude Code
├── GEMINI.md -> process/GEMINI.md # Root symlink for Gemini / Antigravity
│
├── process/ # Universal UP-AI v1.8 Process Framework (git subtree)
│ ├── .agents/skills/ # 19 Canonical AI Agent Skills (up-*)
│ ├── scripts/ # Quality gate validators, test runners, QA compilers
│ ├── templates/ # Tech profile templates and stack presets
│ ├── framework_guides/ # Topology & DevContainer architecture guides
│ ├── AI_Native_Unified_Process_v1.md # Authoritative Process Specification (v1.8)
│ ├── Skills_GUIDE.md # Stage-by-stage skill invocation guide
│ ├── process_change_register.md # Meta-governance ledger (PCR-xxx)
│ ├── AGENTS.md # Authoritative process agent guide
│ ├── CLAUDE.md # Claude Code gateway pointer
│ ├── GEMINI.md # Gemini gateway pointer
│ └── README.md # Process framework documentation
│
├── project_sdlc/ # Project Lifecycle Artifacts & Engineering Records
│ ├── 00_process_control/ # Governance, registers (CR, Ambiguity, Decisions), checkpoints, traceability
│ ├── 01_BRD/ # Business Requirements Documents & PRDs
│ ├── 01_source_inventories/ # Extracted BRD features (BRD-FR-xxx)
│ ├── 02_legacy_analysis/ # Brownfield legacy code/DB mining (empty for greenfield)
│ ├── 03_requirements/ # Atomic Use Cases (UC-xxx) and functional specs
│ ├── 04_architecture_design/ # Architecture risk spikes, HLD, and LLD contracts
│ ├── 05_iteration_planning/ # Iteration plans, backlogs, surface matrices (Iter 01–07)
│ ├── 06_wireframes/ # Screen specifications and UI design tokens (DESIGN.md)
│ ├── 07_test_design/ # Functional test models, 21-sheet QA workbooks, regression suites
│ ├── 08_review_ready_baselines/ # Formal review-ready baselines
│ └── prompts/ # Auditable, git-versioned AI session transcripts
│
├── project_code/ # 100% Self-Contained Customer Release Codebase
│ ├── backend/ # FastAPI service, domain FSMs, models, alembic migrations
│ ├── frontend/ # React + TypeScript + Vite SPA portal
│ ├── tests/ # Multi-path unit (197) and live container E2E suites
│ ├── sandbox/ # Deterministic external mocks (IdP, payment, fleet, SMS)
│ ├── docker/ # Production & development Docker configurations
│ ├── docs/ # Customer runbooks & versioned Bruno API collections
│ └── compose.yaml # Local orchestration compose
│
├── tech-profile.yaml # Active declarative project configuration
└── 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-impactinproject_sdlc/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-changeinprocess/process_change_register.md(PCR-xxx).