iter-03 Mkt Desk, Sauda rocurement, GateInward n Weighbridge, Lab QC … |
||
|---|---|---|
| 01_BRD | ||
| 04_generated_documentation | ||
| 05_implementation_workspace | ||
| docs/api/bruno | ||
| process | ||
| prompts | ||
| sandbox | ||
| .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.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?
- 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
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 indocs/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
.
├── .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-impactin04_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-changeinprocess/process_change_register.md(PCR-xxx).