From 604469aa0624cc4c6b8564e4895a4d6420a672eb Mon Sep 17 00:00:00 2001 From: Prashant Shendre Date: Sat, 3 Oct 2026 21:18:49 +0530 Subject: [PATCH] Created framework guide for Frappe framework --- 00_prompts/02_Skills_Usage_Guide.md | 4 +- .../frappe_app_centric_development_guide.md | 295 ++++++++++++++++++ 00_prompts/templates/tech-profile-presets.md | 1 + ...heckpoint-005-frappe-devcontainer-guide.md | 36 +++ .../checkpoints/checkpoint_index.md | 1 + .../process_change_register.md | 32 ++ README.md | 13 +- ...3T094245Z-session-process-analysis-cmm3.md | 21 ++ 8 files changed, 397 insertions(+), 6 deletions(-) create mode 100644 00_prompts/framework_guides/frappe_app_centric_development_guide.md create mode 100644 04_generated_documentation/00_process_control/checkpoints/checkpoint-005-frappe-devcontainer-guide.md diff --git a/00_prompts/02_Skills_Usage_Guide.md b/00_prompts/02_Skills_Usage_Guide.md index ec9b8b5..1317327 100644 --- a/00_prompts/02_Skills_Usage_Guide.md +++ b/00_prompts/02_Skills_Usage_Guide.md @@ -18,10 +18,10 @@ --- -## Technology Stack Presets (`tech-profile.yaml`) +## Technology Stack Presets & Framework Guides (`tech-profile.yaml`) UP-AI is stack-agnostic and drives code generation through [`tech-profile.yaml`](../tech-profile.yaml). For ready-to-copy configurations for major stacks, consult [`templates/tech-profile-presets.md`](templates/tech-profile-presets.md): -- **Preset A: Frappe Framework** (Python, MariaDB, DocTypes, `bench migrate`, site-based multi-tenancy) +- **Preset A: Frappe Framework** (Python, MariaDB, DocTypes, `bench migrate`, site-based multi-tenancy) — *See [Frappe App-Centric Development Guide](framework_guides/frappe_app_centric_development_guide.md) for DevContainers, Antigravity integration, and `git subtree push`.* - **Preset B: Django / DRF** (Python, PostgreSQL, Django ORM, `django_migrations`, Tailwind) - **Preset C: Java / Spring Boot** (Java 17/21, PostgreSQL, Hibernate, Flyway, JUnit 5) - **Preset D: FastAPI Modular Monolith** (Python, PostgreSQL RLS, SQLAlchemy, Alembic, React) diff --git a/00_prompts/framework_guides/frappe_app_centric_development_guide.md b/00_prompts/framework_guides/frappe_app_centric_development_guide.md new file mode 100644 index 0000000..ef3589a --- /dev/null +++ b/00_prompts/framework_guides/frappe_app_centric_development_guide.md @@ -0,0 +1,295 @@ +# Frappe App-Centric Development Guide (DevContainers, Antigravity & Clean Subtree Distribution) + +| Field | Value | +|---|---| +| **Target Framework** | Frappe Framework (v14 / v15) | +| **Container Environment** | `frappe_docker` + VS Code DevContainers | +| **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` | + +--- + +## 1. Executive Summary + +This reference guide details the canonical, production-tested workflow for developing Frappe applications using **`frappe_docker`**, **VS Code DevContainers**, the **Antigravity AI coding assistant**, and the **AI-Native Unified Process (UP-AI)**. + +It provides complete operational answers to: +1. **The App-Centric Architecture:** Where to check out and mount the process harness in relation to `frappe_docker` and `frappe-bench`. +2. **Process Segregation:** How to ensure internal agent skills, prompt transcripts, and CMMI governance files remain strictly within the developer environment and are **never** bundled into the production Frappe app or client repository. +3. **Commit History Preservation (Pattern 1):** How to push a pristine Frappe app to a customer remote using `git subtree push`, retaining commit authors, timestamps, and commit history while stripping all internal process files. + +```mermaid +flowchart TD + subgraph Host_System["Host Machine (e.g., ~/projects/)"] + HOST_DEV["development/ (Bind-Mounted into Container)"] + end + + subgraph DevContainer["VS Code DevContainer (frappe_docker)"] + BENCH["/workspace/development/frappe-bench/"] + CORE_APPS["apps/frappe, apps/erpnext"] + 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)"] + APP_CODE["my_custom_app/
hooks.py, DocTypes, controllers
pyproject.toml, public tests"] + end + + BENCH --> CORE_APPS + BENCH --> SITES + BENCH --> App_Repo + end + + subgraph Customer_Remote["Customer Git Remote (Production-Ready)"] + CLEAN_APP["my_custom_app/
hooks.py
DocTypes, controllers
pyproject.toml
Clean Commit History"] + end + + HOST_DEV -.->|Mounted into| BENCH + APP_CODE -->|git subtree push --prefix=my_custom_app| CLEAN_APP +``` + +--- + +## 2. Directory & Topology Layout + +In Frappe, the **app** (`frappe-bench/apps/`) is the single unit of version control, distribution, and deployment. The surrounding `frappe-bench` directory contains MariaDB databases, site configs, Redis queues, and Python virtualenvs that should **never** be committed to git. + +### Canonical File Tree: + +``` +Host Development Folder (e.g. ~/projects/my_project/development) +└── frappe-bench/ <--- Generated by bench inside DevContainer + ├── 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) + │ │ ├── AI_Native_Unified_Process_v1.md + │ │ └── templates/tech-profile-presets.md + │ ├── 01_BRD/ <--- Business Requirements Document (PRD) + │ ├── 04_generated_documentation/ <--- CMMI Traceability & Architecture (Internal) + │ │ ├── 00_process_control/ <--- Registers (CR, PCR, Ambiguity, Decisions) + │ │ ├── 03_requirements/ <--- Use Cases (UC-xxx) & FR-xxx + │ │ ├── 04_architecture_design/ <--- HLD & DocType LLDs + │ │ ├── 05_iteration_planning/ <--- Iteration Plans & Parallel Work Plans + │ │ └── 07_test_design/ <--- Test Models, Bruno API Collections + │ ├── prompts/ <--- Session Transcripts (Internal logs) + │ ├── scripts/ <--- Gate Validators & Test Runner Dispatcher + │ │ ├── verify_traceability_gates.py + │ │ └── run_tests.sh + │ ├── tech-profile.yaml <--- Preset A: Frappe configuration + │ │ + │ ├── my_custom_app/ <--- CLEAN FRAPPE PYTHON PACKAGE (Shipped to Client) + │ │ ├── __init__.py + │ │ ├── hooks.py <--- App entrypoint, event hooks, fixtures + │ │ ├── api.py <--- Whitelisted methods (@frappe.whitelist) + │ │ ├── modules/ <--- Domain modules + │ │ │ └── / + │ │ │ └── doctype/ <--- DocType JSONs & Controllers + │ │ └── www/ <--- Public portal routes + │ ├── frontend/ <--- Optional React/Vue UI (@frappe/ui) + │ └── pyproject.toml <--- Python packaging manifest + └── sites/ + └── dev.localhost/ <--- Active dev site (MariaDB + Redis) +``` + +--- + +## 3. Step-by-Step Setup & Runtime Guide + +### Step 1: Clone `frappe_docker` & Open in VS Code +```bash +git clone https://github.com/frappe/frappe_docker.git +cd frappe_docker +# In VS Code: Command Palette -> "Dev Containers: Reopen in Container" +``` +VS Code will build the devcontainer, initialize MariaDB and Redis services, and mount the host directory into `/workspace/development`. + +### Step 2: Initialize Bench & Create Development Site +Open the VS Code integrated terminal (inside the container): +```bash +cd /workspace/development +bench init --skip-redis-config-generation --frappe-branch version-15 frappe-bench +cd frappe-bench + +# Create the local site: +bench new-site dev.localhost --mariadb-root-password 123 --admin-password admin +``` + +### Step 3: Scaffold Your Custom App +```bash +bench new-app my_custom_app +# Install the app onto your site: +bench --site dev.localhost install-app my_custom_app +``` + +### Step 4: Initialize the UP-AI Governance Harness +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`). + +### Step 5: Configure `tech-profile.yaml` with Preset A +Ensure `tech-profile.yaml` at the root of `my_custom_app/` uses **Preset A**: +```yaml +project: + name: "My Custom App" + code: "MCA" + archetype: "greenfield" + +governance: + tailoring_tier: "tier_2_standard_enterprise" + enforce_deterministic_gates: true + +stack: + architecture_pattern: "modular_monolith" + multi_tenancy: + enabled: true + model: "database_per_tenant" # Frappe site-based isolation + + backend: + language: "python" + framework: "frappe" + orm: "doctype" + migrations: "bench_migrate" # DocType JSON sync via bench migrate + api_standard: "rest_openapi" + test_framework: "frappe_test_runner" + coverage_tool: "coverage" + + frontend: + framework: "frappe_desk" # or "vue" / "react" via @frappe/ui + ui_library: "frappe_desk" + + database: + primary: "mariadb" + cache_and_streams: "redis" +``` + +### Step 6: Open VS Code Directly in the App Root +In VS Code, select **File $\rightarrow$ Open Folder** and navigate to: +`/workspace/development/frappe-bench/apps/my_custom_app` + +* **Why?** This ensures Antigravity's workspace root aligns 1:1 with your git repository, traceability graph, and `tech-profile.yaml`. +* **Execution Advantage:** Antigravity runs inside the container and can directly trigger `bench migrate`, `bench run-tests`, and `verify_traceability_gates.py`. + +--- + +## 4. Sub-Agent Execution with Git Worktrees in DevContainers + +When running parallel sub-agents to implement stories concurrently: + +1. **Worktree Directory Placement:** + Create worktrees under `/workspace/development/worktrees/`: + ```bash + # From /workspace/development/frappe-bench/apps/my_custom_app: + git worktree add ../../../worktrees/lane-backend -b lane/backend-auth + git worktree add ../../../worktrees/lane-frontend -b lane/frontend-auth + ``` +2. **Independent Sub-Agent Operations:** + * **Sub-Agent 1 (Backend):** Authors DocTypes (`.json`), Python controllers, and unit tests in `worktrees/lane-backend`. + * **Sub-Agent 2 (Frontend):** Authors client scripts (`.js`) and Desk views in `worktrees/lane-frontend`. +3. **Semantic Integration:** + When both lanes finish, return to `my_custom_app` on the master lane and run: + ```bash + /up-parallel-work-integrate lane/backend-auth lane/frontend-auth + ``` + This resolves governance ID collisions, merges code, runs `bench migrate`, and executes `scripts/run_tests.sh` before Gate 14.1 sign-off. + +--- + +## 5. Pattern 1: Clean Downstream Distribution (`git subtree push`) + +To publish your Frappe app to a customer or production repository without exposing internal AI skills, prompts, or CMMI registers, use **Git Subtree Push**. + +### How `git subtree push` Works + +``` +Internal Development Repo Customer / Production Remote +├── .agents/ (EXCLUDED) +├── 00_prompts/ (EXCLUDED) +├── 04_generated_docs/ (EXCLUDED) +├── prompts/ (EXCLUDED) +├── scripts/ (EXCLUDED) +│ +└── my_custom_app/ (INCLUDED) ───► / (Root of Customer Repository) + ├── hooks.py ├── hooks.py + ├── pyproject.toml ├── pyproject.toml + └── modules/ └── modules/ +``` + +### Step-by-Step Subtree Distribution Commands + +1. **Add the Customer Remote:** + ```bash + git remote add customer-origin git@github.com:customer-org/my_custom_app.git + ``` + +2. **Push Only the App Directory with Commit History:** + ```bash + git subtree push --prefix=my_custom_app customer-origin main + ``` + +3. **What Git Does:** + * 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/`. + +4. **Tagging a Customer Release:** + ```bash + # Split the subtree into a clean local branch for formal release tagging: + git subtree split --prefix=my_custom_app -b release-v1.0.0 + git tag -a v1.0.0 release-v1.0.0 -m "Release v1.0.0 - Baselined via UP-AI Stage 17" + git push customer-origin v1.0.0 + ``` + +--- + +## 6. Production Packaging Hygiene + +In addition to `git subtree`, two built-in mechanisms guarantee process files never enter production: + +### 1. Python Packaging (`pyproject.toml`) +Frappe apps are standard Python packages. `pyproject.toml` explicitly scopes package discovery: +```toml +[tool.flit.sdist] +include = ["my_custom_app/**"] +exclude = [ + ".agents/**", + "00_prompts/**", + "04_generated_documentation/**", + "prompts/**", + "scripts/**", + "tech-profile.yaml" +] +``` +When Frappe Bench installs the app in production via `pip install`, only files inside `my_custom_app/` are installed into the Python site-packages. + +### 2. Git Archive Export Stripping (`.gitattributes`) +Create a `.gitattributes` file at the root of `my_custom_app/`: +```gitattributes +.agents export-ignore +00_prompts export-ignore +04_generated_documentation export-ignore +prompts export-ignore +scripts export-ignore +tech-profile.yaml export-ignore +``` +Any release tarball or zip generated by GitHub/GitLab will automatically strip all internal governance and agent assets. + +--- + +## 7. Summary & Quick Reference + +| Operational Concern | Canonical Solution | +|---|---| +| **Mount Location** | Bind-mount host folder to `/workspace/development`. | +| **Workspace Root** | Open VS Code directly at `/workspace/development/frappe-bench/apps/my_custom_app`. | +| **Bench Commands** | Antigravity executes `bench migrate` and `bench run-tests` natively in the DevContainer. | +| **Parallel Worktrees** | Create worktrees in `/workspace/development/worktrees/` and reconcile with `up-parallel-work-integrate`. | +| **Customer Delivery** | Push clean app code and commit history using `git subtree push --prefix=my_custom_app customer-origin main`. | +| **Production Wheel** | Python packaging excludes all non-app directories via `pyproject.toml` and `.gitattributes`. | diff --git a/00_prompts/templates/tech-profile-presets.md b/00_prompts/templates/tech-profile-presets.md index d7b19bf..33bb6ed 100644 --- a/00_prompts/templates/tech-profile-presets.md +++ b/00_prompts/templates/tech-profile-presets.md @@ -21,6 +21,7 @@ To configure a project, copy the appropriate preset block below into your `tech- > **Best for:** Rapid enterprise applications, ERP extensions, metadata-driven portals, and internal business platforms using Frappe v14/v15. > **Architecture Note:** Frappe natively unifies the Data Model, Backend Controller, REST API, and Desk UI into **DocTypes**. Multi-tenancy is handled via Frappe's site architecture (`database_per_tenant`). +> **Developer & Container Guide:** For step-by-step setup with VS Code DevContainers (`frappe_docker`), native Antigravity AI execution, parallel sub-agent git worktrees, and clean downstream distribution via `git subtree push`, see [Frappe App-Centric Development Guide](../framework_guides/frappe_app_centric_development_guide.md). ```yaml # ============================================================================== diff --git a/04_generated_documentation/00_process_control/checkpoints/checkpoint-005-frappe-devcontainer-guide.md b/04_generated_documentation/00_process_control/checkpoints/checkpoint-005-frappe-devcontainer-guide.md new file mode 100644 index 0000000..955e771 --- /dev/null +++ b/04_generated_documentation/00_process_control/checkpoints/checkpoint-005-frappe-devcontainer-guide.md @@ -0,0 +1,36 @@ +# Checkpoint 005 — Frappe App-Centric Architecture & DevContainer Guide (UP-AI v1.3) + +- **Checkpoint ID:** `CKPT-005` +- **Date:** 2026-10-03 +- **Active Stage:** Framework Reference Architectures & Developer Topologies +- **Active Track:** Universal / Frappe Framework +- **Process Version:** UP-AI v1.3 +- **Associated Process Change Request:** `PCR-004` (Closed) + +--- + +## 1. Completed in this Session +- Authored canonical framework reference guide [`00_prompts/framework_guides/frappe_app_centric_development_guide.md`](../../../00_prompts/framework_guides/frappe_app_centric_development_guide.md): + - **App-Centric Topology:** Defined file tree and bind-mount strategy between host development folder, `frappe_docker` devcontainer, and inner bench apps (`/workspace/development/frappe-bench/apps/my_custom_app`). + - **Process Segregation:** Ensured internal AI agent assets (`.agents/`), prompts (`00_prompts/`, `prompts/`), scripts (`scripts/`), and CMMI registers (`04_generated_documentation/`) reside strictly within the development app repo and are never leaked to production or customer repositories. + - **Pattern 1 Subtree Distribution:** Documented exact `git subtree push --prefix=my_custom_app customer-origin main` workflow to extract a clean repository with full commit history, authors, and timestamps while completely filtering out process files. + - **Sub-Agent Git Worktrees:** Defined parallel execution topology under `/workspace/development/worktrees/` with semantic integration via `up-parallel-work-integrate`. + - **Production Packaging Defense-in-Depth:** Configured `pyproject.toml` package exclusions and `.gitattributes` (`export-ignore`) for wheel and archive building. +- Linked the reference guide in: + - [`00_prompts/templates/tech-profile-presets.md`](../../../00_prompts/templates/tech-profile-presets.md) (under Preset A: Frappe) + - [`00_prompts/02_Skills_Usage_Guide.md`](../../../00_prompts/02_Skills_Usage_Guide.md) (under Tech Profile Presets & Framework Guides) + - [`README.md`](../../../README.md) (under Declarative Technology Profile & Repository Structure) +- Registered and closed `PCR-004` in [`04_generated_documentation/00_process_control/process_change_register.md`](../process_change_register.md). +- Updated checkpoint index [`04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md`](checkpoint_index.md). + +--- + +## 2. Mid-Flight / Open Items +- None. + +--- + +## 3. Exact Next Action +- Initialize custom app inside `frappe-bench/apps/` using the App-Centric guide. +- Configure `tech-profile.yaml` with Preset A. +- Run `/up-requirements-elicit --interactive` (Greenfield Stage 0B) or `/up-code-generate` (Construction Stage 13). diff --git a/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md b/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md index 09c7802..9e8a803 100644 --- a/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md +++ b/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md @@ -17,6 +17,7 @@ | `CKPT-002` | 2026-10-03 | Meta-Governance / Cross-Cutting | UP-AI v1.1 Hardening: CLI gate validator (`scripts/verify_traceability_gates.py`), CMMI 3-tier tailoring, review brief protocol, differentiated coverage. PCR-001 closed. | None | Extract PRD requirements with `/up-brd-extract` or implement `iteration-01` with `/up-code-generate`. | `checkpoint-002-v1.1-governance-hardening.md` | | `CKPT-003` | 2026-10-03 | Stage 0B (Elicitation / Inception) | UP-AI v1.2: Added `up-requirements-elicit` skill bridging OpenUP and AI Hero patterns, Stage 0B in process spec, 19 skills total. PCR-002 closed. | None | Run `/up-requirements-elicit --interactive` when no BRD exists, then proceed to `/up-brd-extract`. | `checkpoint-003-requirements-elicitation-skill.md` | | `CKPT-004` | 2026-10-03 | Construction & Architecture | UP-AI v1.3: Frappe Framework native support, multi-stack presets (`tech-profile-presets.md`), multi-framework test runner dispatch in `run_tests.sh`. PCR-003 closed. | None | Configure `tech-profile.yaml` with chosen preset (e.g. Frappe), then generate code with `/up-code-generate`. | `checkpoint-004-frappe-stack-integration.md` | +| `CKPT-005` | 2026-10-03 | Framework Topologies | Frappe App-Centric Development Guide (`frappe_app_centric_development_guide.md`), DevContainers, Antigravity integration, parallel worktrees, Pattern 1 git subtree push, and pyproject packaging hygiene. PCR-004 closed. | None | Scaffold Frappe app or initiate Stage 0B requirements elicitation. | `checkpoint-005-frappe-devcontainer-guide.md` | diff --git a/04_generated_documentation/00_process_control/process_change_register.md b/04_generated_documentation/00_process_control/process_change_register.md index e69de29..c3f7143 100644 --- a/04_generated_documentation/00_process_control/process_change_register.md +++ b/04_generated_documentation/00_process_control/process_change_register.md @@ -0,0 +1,32 @@ +# 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 | diff --git a/README.md b/README.md index e487183..46d71ca 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,9 @@ It governs software delivery from Socratic requirements elicitation (OpenUP / AI 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" @@ -181,11 +184,13 @@ AI agents execute specialized roles across the lifecycle: │ ├── 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.2 Process Specification +│ ├── 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.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 @@ -234,6 +239,6 @@ Functional Req: FR-xxx (child of exactly one UC-xxx) ## License & Governance -This framework is governed under the **AI-Native Unified Process Specification v1.2** ([`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). +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). diff --git a/prompts/20261003T094245Z-session-process-analysis-cmm3.md b/prompts/20261003T094245Z-session-process-analysis-cmm3.md index 776563f..27479e4 100644 --- a/prompts/20261003T094245Z-session-process-analysis-cmm3.md +++ b/prompts/20261003T094245Z-session-process-analysis-cmm3.md @@ -210,3 +210,24 @@ or https://www.aihero.dev/skills . 4. *Updated Process Specification:* Updated `00_prompts/AI_Native_Unified_Process_v1.md` §2.1 (ID schema), §8.8 (meta-governance), and Appendix A changelog to cite `PCR-001`, `PCR-002`, `PCR-003`. 5. *Updated Checkpoints & Index:* Updated `checkpoint-002`, `checkpoint-003`, `checkpoint-004`, and `checkpoint_index.md` with `PCR-xxx` citations. - **Verification:** Ran `python3 scripts/verify_traceability_gates.py --all` confirming zero critical issues across Gates 5.1, 9.1, and 14.1. + +--- + +## 2026-10-03T14:38:00Z — Turn 12 + +### User Prompt +> Guess the doubts about frappe app development using devcontainers in vscode with antigravity extension and our process regarding +> - how to ensure process is available only to developers and not in the production code +> - how to maintain the commit history for the frappe app using git subtree +> is conceptually clear. Could you recreate the reference guide for 'The Recommended Architecture: The "App-Centric" Model' and Pattern 1 somewhere so that it can be easily referred to. Maybe similar guides might be required in future for other frameworks also. + +### Actions & Key Decisions +- **Framework Reference Architecture & DevContainer Guide:** + 1. *Created `00_prompts/framework_guides/frappe_app_centric_development_guide.md`:* Authored authoritative reference guide establishing the App-Centric Architecture for Frappe apps under `frappe_docker` DevContainers, Antigravity AI native execution, sub-agent parallel git worktrees, Pattern 1 `git subtree push` for clean downstream distribution preserving commit history, and production packaging hygiene (`pyproject.toml` and `.gitattributes` export-ignore). + 2. *Cross-Referenced Framework Guide:* + - Added guide link to `00_prompts/templates/tech-profile-presets.md` under Preset A (Frappe). + - Added guide link to `00_prompts/02_Skills_Usage_Guide.md` under Tech Profile Presets & Framework Guides. + - Added framework guides directory structure and link to `README.md`. + 3. *Meta-Governance Registration (`PCR-004`):* Logged and closed `PCR-004` in `04_generated_documentation/00_process_control/process_change_register.md`. + 4. *Recorded Checkpoint 005:* Created `04_generated_documentation/00_process_control/checkpoints/checkpoint-005-frappe-devcontainer-guide.md` and updated `checkpoint_index.md`. +- **Verification:** Ran `python3 scripts/verify_traceability_gates.py --all` confirming zero critical gate defects.