Added support for frappe and updated tech profile templates
This commit is contained in:
parent
359f2175ad
commit
258ce89071
|
|
@ -27,7 +27,7 @@ Retire architecture risk early by proving the hardest parts of the system (data
|
|||
**Stage 6 — Architectural Risk Ranking:**
|
||||
|
||||
Read every use case and evaluate against 5 standard architectural risk dimensions (scored 1 to 5):
|
||||
1. **Data Isolation & Multi-Tenancy:** Cross-tenant boundaries, Row-Level Security, or schema isolation complexity.
|
||||
1. **Data Isolation & Multi-Tenancy:** Cross-tenant boundaries, Row-Level Security (PostgreSQL RLS), schema isolation, or site-based isolation (e.g. Frappe `database_per_tenant` sites).
|
||||
2. **External Integration Dependency:** Third-party APIs, webhooks, payment gateways, messaging systems.
|
||||
3. **Financial & Transactional Sensitivity:** Balances, ledgers, irreversible state transitions, atomic operations.
|
||||
4. **Throughput & Concurrency:** Real-time ingestion, streaming, heavy background queues, lock contention.
|
||||
|
|
@ -38,8 +38,8 @@ Compute total `RISK-xxx` score. Mark the top 15–20% (or any UC scoring 4–5 o
|
|||
**Stage 7 — Architecture Spike / Walking Skeleton:**
|
||||
|
||||
Using only the architecturally significant use cases, design:
|
||||
1. Architecture component boundaries (HLD) matching `tech-profile.yaml` architecture pattern.
|
||||
2. LLD detail (internal APIs, database schema, domain events, state machines) for these components.
|
||||
1. Architecture component boundaries (HLD) matching `tech-profile.yaml` architecture pattern (e.g. modular monolith, Frappe app modules, Django apps, Spring Boot services).
|
||||
2. LLD detail (internal APIs, database schema/DocTypes, domain events, state machines) for these components.
|
||||
3. Explicitly validate: data-scoping models, authentication/token propagation, sandbox mock contracts, and error resilience.
|
||||
|
||||
Produce `architecture_spike_report.md` documenting:
|
||||
|
|
|
|||
|
|
@ -32,11 +32,19 @@ Pick the next `STORY-xxx` with status "Ready" from the iteration backlog. Implem
|
|||
|
||||
Confirm every applicable surface in `iteration_surface_matrix.md` has an owner and repository path. If the story requires a frontend screen, frontend code is mandatory unless an approved `CR-xxx`/`DEC-xxx` explicitly defers it.
|
||||
|
||||
**Backend service generation:** Implement against the LLD API contract exactly — request/response shapes, status codes, error format, RBAC checks, tenant-context propagation, validation, and audit logging. Use the backend language/framework specified in `tech-profile.yaml`. Write unit and integration tests covering the story's acceptance criteria. Add or update API collections (Bruno `.bru` or OpenAPI spec) for added/changed endpoints.
|
||||
**Backend service generation:** Implement against the LLD API contract exactly — request/response shapes, status codes, error format, RBAC checks, tenant-context propagation, validation, and audit logging. Use the backend language/framework specified in `tech-profile.yaml`.
|
||||
- When `framework: frappe`, organize code within the target Frappe App, authoring DocType controllers (`<doctype>.py`), whitelisted remote procedures (`@frappe.whitelist()`), server scripts, and event hooks (`hooks.py`).
|
||||
- When `framework: django` or `fastapi` or `spring_boot`, implement service controllers, repositories, and API routers matching LLD endpoint contracts.
|
||||
Write unit and integration tests covering the story's acceptance criteria. Add or update API collections (Bruno `.bru` or OpenAPI spec) for added/changed endpoints.
|
||||
|
||||
**Frontend screen generation:** Implement against the iteration's wireframe/field-level spec — fields, validation, navigation, error states. Reuse `DESIGN.md` component library and tokens. Write corresponding component and browser-E2E tests (e.g. Playwright) tagged with `UC-xxx`/`FR-xxx`/`STORY-xxx`.
|
||||
**Frontend screen generation:** Implement against the iteration's wireframe/field-level spec — fields, validation, navigation, error states.
|
||||
- When `frontend.framework: frappe_desk`, configure DocType FormViews, ListViews, Workspaces, and client scripts (`<doctype>.js`), or custom Vue/React SPAs using `@frappe/ui`.
|
||||
- When standard React/Vue/Angular, reuse `DESIGN.md` component library, tokens, and Tailwind/shadcn controls.
|
||||
Write corresponding component and browser-E2E tests (e.g. Playwright) tagged with `UC-xxx`/`FR-xxx`/`STORY-xxx`.
|
||||
|
||||
**Database implementation:** Generate migrations matching the LLD table definitions via the migration tool in `tech-profile.yaml` (e.g. Alembic, Prisma, Flyway); do not hand-edit schema outside migrations.
|
||||
**Database implementation:** Generate schema matching the LLD table definitions via the migration mechanism configured in `tech-profile.yaml`:
|
||||
- When `framework: frappe`, author DocType schema JSON files (`<doctype>.json`) with fieldtypes, options, and permissions, synchronized into MariaDB/PostgreSQL via `bench migrate`.
|
||||
- When SQLAlchemy/Django/Spring Boot/Prisma, generate migration files via Alembic, Django migrations, Flyway, or Prisma; do not hand-edit schema outside migrations.
|
||||
|
||||
**Integration adapters:** Implement external API triggers, requests, and failure handling against the contracts in `tech-profile.yaml`. Consume and verify against the Wave 0 Sandbox/Mock adapters so test suites run 100% deterministically and offline without external API dependencies.
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Produce wireframes and field-level screen specifications for the views/screens t
|
|||
|
||||
For every `UC-xxx` in the current iteration's backlog:
|
||||
1. Enumerate the screens/views referenced by its `FR-xxx` children (`referenced screens` field).
|
||||
2. For each screen, identify its archetype and check for applicable shared patterns in `DESIGN.md` before designing custom layouts. Produce a wireframe-level layout description (regions, key controls, state guards) and a field-level specification (field name, type, validation, source FR, backend processing expectation).
|
||||
2. For each screen, identify its archetype and check for applicable shared patterns in `DESIGN.md` (or Frappe Desk Form/List/Workspace views if `frontend.framework: frappe_desk`) before designing custom layouts. Produce a wireframe-level layout description (regions, key controls, state guards) and a field-level specification (field name, type, validation, source FR, backend processing expectation).
|
||||
3. Update `wireframe_index.md` to include the new screens, tagged to their owning `UC-xxx`/`FR-xxx` and iteration number.
|
||||
4. Reconcile every referenced screen, route, and actor-specific flow against `iteration_surface_matrix.md`; assign frontend implementation and browser-QA ownership.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Skills Usage Guide — Invoking UP-AI v1.2 (Universal Generic Edition)
|
||||
# Skills Usage Guide — Invoking UP-AI v1.3 (Universal Generic Edition)
|
||||
|
||||
**Purpose:** The 19 skills under `.agents/skills/` are the canonical executable forms of `00_prompts/AI_Native_Unified_Process_v1.md`. This guide shows, stage by stage, which skill to invoke and how across both **Greenfield (0-to-1)** and **Brownfield (Modernization)** projects.
|
||||
|
||||
|
|
@ -18,12 +18,23 @@
|
|||
|
||||
---
|
||||
|
||||
## Technology Stack Presets (`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 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)
|
||||
- **Preset E: Node.js / NestJS** (TypeScript, PostgreSQL, Prisma, Vitest, Next.js)
|
||||
|
||||
---
|
||||
|
||||
## 1. Inception (Stages 0–4) — Dual-Track Execution
|
||||
|
||||
### Greenfield Track (0-to-1 Development)
|
||||
| Stage | Skill | Action |
|
||||
|---|---|---|
|
||||
| 0 | `up-project-bootstrap` | Initialize workspace with `tech-profile.yaml` configured as `archetype: greenfield` |
|
||||
| 0 | `up-project-bootstrap` | Initialize workspace with `tech-profile.yaml` configured from presets |
|
||||
| 0B | `up-requirements-elicit` | *If BRD unsupplied:* Conduct Socratic interview and synthesize `01_BRD/PRD_Specification.md` |
|
||||
| 1 | `up-brd-extract` | Extract business features and requirements from PRD/BRD, mint `BRD-FR-xxx` IDs |
|
||||
| 1B / 6 | `up-arch-risk-spike` | Score domain risks, build thin walking skeleton before use-case authoring |
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
**AI-Native Unified Process + SEI-CMM Level 3 — v1.2 (Universal Generic Edition)**
|
||||
**AI-Native Unified Process + SEI-CMM Level 3 — v1.3 (Universal Generic Edition)**
|
||||
|
||||
*Use-Case-Driven, Architecture-Centric, Iterative and Incremental Process for Generating Requirements, Architecture, Wireframes, Test Models, Production Code, and Cloud Deployment across Greenfield and Brownfield Initiatives*
|
||||
|
||||
| Field | Description |
|
||||
|---|---|
|
||||
| Document Version | v1.2 (Requirements Elicitation Hardened Baseline via `CR-002`) |
|
||||
| Architecture Scope | Universal, stack-agnostic AI-Native Software Development Framework (`UP-AI v1.2`) |
|
||||
| Document Version | v1.3 (Multi-Stack & Frappe Framework Integration via `CR-003`) |
|
||||
| Architecture Scope | Universal, stack-agnostic AI-Native Software Development Framework (`UP-AI v1.3`) |
|
||||
| Source inputs | Configured via `tech-profile.yaml`: `01_BRD` / PRDs (Greenfield & Brownfield, synthesized via `up-requirements-elicit` if unsupplied); `02_legacy_source_code` & `03_old_screenshots` (Brownfield only). |
|
||||
| Target architecture | Configured via `tech-profile.yaml`: Supports Modular Monolith, Microservices, Event-Driven, or Serverless architectures; multi-tenancy models (Row-Level Security, schema-per-tenant, DB-per-tenant); cloud-agnostic containerized deployments. |
|
||||
| Target architecture | Configured via `tech-profile.yaml` & `tech-profile-presets.md`: Modular Monolith (Frappe, Django, FastAPI, Spring Boot, NestJS) or Microservices; multi-tenancy models (PostgreSQL RLS, schema-per-tenant, database-per-tenant Frappe sites); cloud-agnostic containerized deployments. |
|
||||
| Technology profile | Declarative `tech-profile.yaml` defining active backend, frontend, ORM, migrations, auth provider, database, governance tailoring tier, and Wave 0 integration sandboxes. |
|
||||
| Tooling & Execution | Orchestrated via 19 canonical AI Agent Skills (`.agents/skills/`), multi-agent topologies (§1.2), deterministic gate validator (`scripts/verify_traceability_gates.py`), context-checkpointing (`up-context-checkpoint`), automated test runner (`scripts/run_tests.sh`), and QA workbook compiler (`scripts/generate_manual_qa_workbook.py`). |
|
||||
| Tooling & Execution | Orchestrated via 19 canonical AI Agent Skills (`.agents/skills/`), multi-agent topologies (§1.2), deterministic gate validator (`scripts/verify_traceability_gates.py`), multi-framework test runner (`scripts/run_tests.sh`), context-checkpointing (`up-context-checkpoint`), and QA workbook compiler (`scripts/generate_manual_qa_workbook.py`). |
|
||||
|
||||
|
||||
---
|
||||
|
|
@ -329,6 +329,8 @@ Process adjustments follow the same formal change lifecycle as product code, inc
|
|||
| **v1.0** | 2026-09-03 | Initial baselined release of the universal, stack-agnostic **AI-Native Unified Process Framework (UP-AI v1.0)**. Incorporates native dual-track inception, atomic use-case requirements authoring, continuous traceability gates (5.1, 9.1, 14.1), formal change request blast-radius analysis, risk-driven elaboration spikes, wave-based construction loops with 11-dimension delivery surfaces, Wave 0 deterministic sandboxes, ≥95.0% multi-path automated test coverage, 21-sheet manual QA workbook compilation, and single canonical skill layout (`.agents/skills/`). |
|
||||
| **v1.1** | 2026-10-03 | **Governance & Automation Hardening (`CR-001`):** (1) Implemented deterministic CLI gate validator `scripts/verify_traceability_gates.py` for Gates 5.1, 9.1, and 14.1 to eliminate agent self-policing bias; (2) Added CMMI 3-tier process tailoring matrix (§8.5) in `tech-profile.yaml` (High-Assurance, Standard Enterprise, Fast-Track); (3) Formulated Human Review Optimization Brief protocol (§8.6) to mitigate automation bias/fatigue; (4) Formalized differentiated coverage budgets (§2.2 Rule 8) separating core domain FSMs ($\ge 95\%$) from adapters ($\ge 90\%$) and frontend components ($\ge 80\%$ + Playwright E2E). |
|
||||
| **v1.2** | 2026-10-03 | **Requirements Elicitation Hardening (`CR-002`):** Introduced canonical skill `up-requirements-elicit` (.agents/skills/up-requirements-elicit/) at Stage 0B (Inception) to conduct Socratic stakeholder elicitation and synthesize authoritative `01_BRD/PRD_Specification.md` with root `BRD-FR-xxx` IDs when a formal requirements document is not supplied. Synthesized from OpenUP Requirements Discipline (Vision, Stakeholders, System Boundaries) and AI Hero Socratic patterns. |
|
||||
| **v1.3+** | (Future) | Process adjustments approved via `CR-xxx` (Trigger Type `Process-Adjustment`) are version-bumped and recorded here per §8.8. |
|
||||
| **v1.3** | 2026-10-03 | **Multi-Stack & Frappe Framework Integration (`CR-003`):** (1) Created ready-reference `tech-profile-presets.md` covering Frappe, Django, Spring Boot, FastAPI, and NestJS; (2) Upgraded `scripts/run_tests.sh` with multi-framework test runner dispatch (`bench run-tests`, `mvn/gradle`, `pytest`); (3) Updated `up-code-generate`, `up-arch-risk-spike`, and `up-wireframe-spec` with Frappe DocType schema generation, `bench migrate` synchronization, site-based multi-tenancy, and Frappe Desk screen conventions. |
|
||||
| **v1.4+** | (Future) | Process adjustments approved via `CR-xxx` (Trigger Type `Process-Adjustment`) are version-bumped and recorded here per §8.8. |
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,257 @@
|
|||
# Declarative Technology Profile Presets — UP-AI Framework
|
||||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| **Document** | `tech-profile-presets.md` |
|
||||
| **Location** | `00_prompts/templates/tech-profile-presets.md` |
|
||||
| **Governed Process** | UP-AI v1.3 |
|
||||
| **Purpose** | Ready-reference configuration snippets for `tech-profile.yaml` |
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
UP-AI is strictly stack-agnostic. All agent skills dynamically read [`tech-profile.yaml`](../../tech-profile.yaml) at the project root to discover the target language, backend framework, ORM, migration tool, frontend framework, database, and testing tools.
|
||||
|
||||
To configure a project, copy the appropriate preset block below into your `tech-profile.yaml` under the `stack:` and `governance:` keys.
|
||||
|
||||
---
|
||||
|
||||
## Preset A: Frappe Framework (Full-Stack Python + MariaDB + DocType Engine)
|
||||
|
||||
> **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`).
|
||||
|
||||
```yaml
|
||||
# ==============================================================================
|
||||
# UP-AI Preset A: Frappe Framework
|
||||
# ==============================================================================
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith"
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "database_per_tenant" # Frappe sites (bench new-site) provide isolated DBs
|
||||
|
||||
backend:
|
||||
language: "python"
|
||||
framework: "frappe" # Frappe Framework v14 / v15
|
||||
orm: "doctype" # Frappe DocType / Document meta-model
|
||||
migrations: "bench_migrate" # bench migrate / DocType JSON sync
|
||||
api_standard: "rest_openapi" # Frappe REST resource API (/api/resource/...) & @frappe.whitelist()
|
||||
test_framework: "frappe_test_runner" # bench --site <site> run-tests --app <app>
|
||||
coverage_tool: "coverage"
|
||||
|
||||
frontend:
|
||||
framework: "frappe_desk" # Standard Frappe Desk (or "vue" / "react" via @frappe/ui)
|
||||
language: "javascript"
|
||||
state_management: "context_api"
|
||||
ui_library: "frappe_desk" # Frappe Desk UI controls & form views
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "cypress"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "frappe_auth" # Frappe session, OAuth2 bearer, or token-based auth
|
||||
protocol: "session_cookie_or_token"
|
||||
token_standard: "token_header"
|
||||
authorization_model: "rbac" # Frappe DocType Role & Permission Manager
|
||||
|
||||
database:
|
||||
primary: "mariadb" # MariaDB (Frappe default) or "postgresql"
|
||||
cache_and_streams: "redis" # Frappe native Redis (cache, queue, socketio)
|
||||
search_engine: "none"
|
||||
|
||||
sandboxes:
|
||||
- id: "identity_provider"
|
||||
service_name: "Auth & Identity"
|
||||
mock_adapter_path: "sandbox/identity_mock.py"
|
||||
mock_mode: "deterministic"
|
||||
- id: "payment_gateway"
|
||||
service_name: "Payment Gateway"
|
||||
mock_adapter_path: "sandbox/payment_mock.py"
|
||||
mock_mode: "deterministic"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Preset B: Django / Django REST Framework (Python + PostgreSQL + DRF)
|
||||
|
||||
> **Best for:** Scalable Python web applications, REST APIs, and data-driven systems leveraging the Django ecosystem.
|
||||
|
||||
```yaml
|
||||
# ==============================================================================
|
||||
# UP-AI Preset B: Django & Django REST Framework
|
||||
# ==============================================================================
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith"
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "row_level_security" # or "schema_per_tenant" via django-tenants
|
||||
|
||||
backend:
|
||||
language: "python"
|
||||
framework: "django"
|
||||
orm: "django_orm" # django.db.models
|
||||
migrations: "django_migrations" # python manage.py makemigrations / migrate
|
||||
api_standard: "rest_openapi" # Django REST Framework + drf-spectacular
|
||||
test_framework: "pytest" # pytest-django
|
||||
coverage_tool: "pytest-cov"
|
||||
|
||||
frontend:
|
||||
framework: "react"
|
||||
language: "typescript"
|
||||
state_management: "zustand"
|
||||
ui_library: "tailwind_shadcn"
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "custom_oidc" # or Keycloak / django-allauth
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac"
|
||||
|
||||
database:
|
||||
primary: "postgresql"
|
||||
cache_and_streams: "valkey" # or redis
|
||||
search_engine: "pg_trgm"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Preset C: Java / Spring Boot (Java 17/21 + PostgreSQL + Hibernate)
|
||||
|
||||
> **Best for:** Enterprise, high-throughput financial, banking, and mission-critical backend microservices or modular monoliths.
|
||||
|
||||
```yaml
|
||||
# ==============================================================================
|
||||
# UP-AI Preset C: Java / Spring Boot
|
||||
# ==============================================================================
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith" # or "microservices"
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "schema_per_tenant" # or "database_per_tenant"
|
||||
|
||||
backend:
|
||||
language: "java"
|
||||
framework: "spring_boot" # Spring Boot 3.x
|
||||
orm: "hibernate" # Spring Data JPA
|
||||
migrations: "flyway" # Flyway or Liquibase
|
||||
api_standard: "rest_openapi" # Springdoc OpenAPI 3
|
||||
test_framework: "junit5" # JUnit 5 + Mockito + Testcontainers
|
||||
coverage_tool: "jacoco"
|
||||
|
||||
frontend:
|
||||
framework: "react"
|
||||
language: "typescript"
|
||||
state_management: "zustand"
|
||||
ui_library: "tailwind_shadcn"
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "keycloak"
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac" # Spring Security 6
|
||||
|
||||
database:
|
||||
primary: "postgresql"
|
||||
cache_and_streams: "valkey" # or redis
|
||||
search_engine: "none"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Preset D: FastAPI Modular Monolith (UP-AI Baseline Default)
|
||||
|
||||
> **Best for:** High-performance async Python APIs, AI-native backends, microservices, and modern SaaS with Row-Level Security.
|
||||
|
||||
```yaml
|
||||
# ==============================================================================
|
||||
# UP-AI Preset D: FastAPI Modular Monolith (Default Baseline)
|
||||
# ==============================================================================
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith"
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "row_level_security" # PostgreSQL RLS + session tenant context
|
||||
|
||||
backend:
|
||||
language: "python"
|
||||
framework: "fastapi"
|
||||
orm: "sqlalchemy" # SQLAlchemy 2.0 Async
|
||||
migrations: "alembic" # Alembic
|
||||
api_standard: "rest_openapi" # FastAPI OpenAPI
|
||||
test_framework: "pytest"
|
||||
coverage_tool: "pytest-cov"
|
||||
|
||||
frontend:
|
||||
framework: "react"
|
||||
language: "typescript"
|
||||
state_management: "zustand"
|
||||
ui_library: "tailwind_shadcn"
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "keycloak"
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac"
|
||||
|
||||
database:
|
||||
primary: "postgresql"
|
||||
cache_and_streams: "valkey"
|
||||
search_engine: "none"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Preset E: Node.js / NestJS (TypeScript + PostgreSQL + Prisma)
|
||||
|
||||
> **Best for:** Full-stack TypeScript applications, enterprise Node.js microservices, and reactive APIs.
|
||||
|
||||
```yaml
|
||||
# ==============================================================================
|
||||
# UP-AI Preset E: NestJS & Prisma
|
||||
# ==============================================================================
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith"
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "schema_per_tenant" # or RLS with Prisma client extensions
|
||||
|
||||
backend:
|
||||
language: "typescript"
|
||||
framework: "nestjs"
|
||||
orm: "prisma"
|
||||
migrations: "prisma" # npx prisma migrate
|
||||
api_standard: "rest_openapi" # NestJS Swagger/OpenAPI
|
||||
test_framework: "vitest" # or jest
|
||||
coverage_tool: "vitest"
|
||||
|
||||
frontend:
|
||||
framework: "nextjs"
|
||||
language: "typescript"
|
||||
state_management: "zustand"
|
||||
ui_library: "tailwind_shadcn"
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "keycloak"
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac"
|
||||
|
||||
database:
|
||||
primary: "postgresql"
|
||||
cache_and_streams: "valkey"
|
||||
search_engine: "none"
|
||||
```
|
||||
|
|
@ -29,38 +29,40 @@ inception:
|
|||
screenshots_dir: "03_legacy_screen_shots"
|
||||
|
||||
# Architecture & Target Technology Stack
|
||||
# (For pre-packaged stack presets like Frappe, Django, Spring Boot, FastAPI, or NestJS,
|
||||
# see `00_prompts/templates/tech-profile-presets.md`)
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith" # Options: modular_monolith | microservices | event_driven | serverless
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "row_level_security" # Options: row_level_security | schema_per_tenant | database_per_tenant
|
||||
model: "row_level_security" # Options: row_level_security | schema_per_tenant | database_per_tenant (Frappe sites)
|
||||
|
||||
backend:
|
||||
language: "python" # Options: python | typescript | go | java | csharp | rust
|
||||
framework: "fastapi" # Options: fastapi | django | express | nestjs | gin | spring_boot | dotnet_core
|
||||
orm: "sqlalchemy" # Options: sqlalchemy | prisma | typeorm | gorm | hibernate | ef_core
|
||||
migrations: "alembic" # Options: alembic | prisma | flyway | golang_migrate | dbup
|
||||
framework: "fastapi" # Options: fastapi | frappe | django | express | nestjs | gin | spring_boot | dotnet_core
|
||||
orm: "sqlalchemy" # Options: sqlalchemy | doctype | prisma | typeorm | django_orm | gorm | hibernate | ef_core
|
||||
migrations: "alembic" # Options: alembic | bench_migrate | prisma | flyway | django_migrations | golang_migrate | dbup
|
||||
api_standard: "rest_openapi" # Options: rest_openapi | graphql | grpc
|
||||
test_framework: "pytest"
|
||||
coverage_tool: "pytest-cov"
|
||||
test_framework: "pytest" # Options: pytest | frappe_test_runner | junit5 | vitest
|
||||
coverage_tool: "pytest-cov" # Options: pytest-cov | coverage | jacoco | vitest
|
||||
|
||||
frontend:
|
||||
framework: "react" # Options: react | vue | angular | svelte | nextjs | flutter
|
||||
framework: "react" # Options: react | frappe_desk | vue | angular | svelte | nextjs | flutter
|
||||
language: "typescript"
|
||||
state_management: "zustand" # Options: zustand | redux_toolkit | pinia | context_api
|
||||
ui_library: "tailwind_shadcn" # Options: tailwind_shadcn | mui | ant_design | vanilla_css
|
||||
ui_library: "tailwind_shadcn" # Options: tailwind_shadcn | frappe_desk | mui | ant_design | vanilla_css
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "keycloak" # Options: keycloak | auth0 | cognito | supabase_auth | firebase_auth | custom_oidc
|
||||
provider: "keycloak" # Options: keycloak | frappe_auth | auth0 | cognito | supabase_auth | firebase_auth | custom_oidc
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac" # Options: rbac | rbac_abac | casbin | opa
|
||||
|
||||
database:
|
||||
primary: "postgresql" # Options: postgresql | mysql | mariadb | mongodb | dynamodb
|
||||
primary: "postgresql" # Options: postgresql | mariadb | mysql | mongodb | dynamodb
|
||||
cache_and_streams: "valkey" # Options: valkey | redis | none
|
||||
search_engine: "none" # Options: elasticsearch | opensearch | pg_trgm | none
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.0) |
|
||||
| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.3) |
|
||||
| **Document Path** | `04_generated_documentation/00_process_control/change_request_register.md` |
|
||||
| **Gated By** | `up-change-request-impact`, `up-process-change` |
|
||||
| **Baseline Version** | UP-AI v1.0 Baseline (Clean Register) |
|
||||
| **Last Updated** | 2026-09-03 |
|
||||
| **Baseline Version** | UP-AI v1.3 Baseline |
|
||||
| **Last Updated** | 2026-10-03 |
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -16,6 +16,8 @@
|
|||
|---|---|---|---|---|---|---|---|---|---|
|
||||
| `CR-001` | Process-Adjustment | Joint (User/Assistant) | 2026-10-03 | Meta-Governance | Upgrade UP-AI framework to v1.1: (1) Add deterministic CLI gate validator `scripts/verify_traceability_gates.py`, (2) Formalize CMMI 3-tier process tailoring matrix, (3) Integrate Human Review Brief protocol, and (4) Differentiate test coverage targets in `tech-profile.yaml`. | `AI_Native_Unified_Process_v1.md`, `tech-profile.yaml`, `tech-profile.template.yaml`, `.agents/skills/up-traceability-gate/SKILL.md`, `.agents/skills/up-code-generate/SKILL.md`, `.agents/skills/up-test-model-generate/SKILL.md`, `README.md`, `scripts/verify_traceability_gates.py` | Process spec §2.2, §8.5, §8.6, §9, Appendix A; tech profile configs; 3 canonical skills; 1 new CLI tool. | Approved | Closed |
|
||||
| `CR-002` | Process-Adjustment | User/Assistant | 2026-10-03 | Inception / Meta-Gov | Introduce canonical skill `up-requirements-elicit` (Stage 0B) for Socratic requirements elicitation and automated BRD/PRD synthesis when an authoritative requirements document is not supplied, synthesized from OpenUP Requirements Discipline and AI Hero socratic patterns. | `.agents/skills/up-requirements-elicit/SKILL.md`, `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md`, `README.md` | Inception lifecycle (§1, §4), 19th canonical skill, Skills guide §1. | Approved | Closed |
|
||||
| `CR-003` | Process-Adjustment | User/Assistant | 2026-10-03 | Construction / Architecture | Native Frappe Framework Support & Multi-Stack Tech Profile Presets: (1) Author `tech-profile-presets.md` covering Frappe, Django, Spring Boot, FastAPI, and NestJS, (2) Upgrade `scripts/run_tests.sh` with multi-framework test runner dispatch (`bench run-tests`, `mvn/gradle`, `pytest`), (3) Update `up-code-generate`, `up-arch-risk-spike`, and `up-wireframe-spec` with DocType, bench migrate, site-tenancy, and Desk rules. | `00_prompts/templates/tech-profile-presets.md`, `00_prompts/templates/tech-profile.template.yaml`, `tech-profile.yaml`, `scripts/run_tests.sh`, `.agents/skills/up-code-generate/SKILL.md`, `.agents/skills/up-arch-risk-spike/SKILL.md`, `.agents/skills/up-wireframe-spec/SKILL.md`, `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md`, `README.md` | Multi-stack runtime execution across Construction, Elaboration, and test runners; reference presets artifact. | Approved | Closed |
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
# Checkpoint 004 — Frappe Framework Integration & Multi-Stack Presets (UP-AI v1.3)
|
||||
|
||||
- **Checkpoint ID:** `CKPT-004`
|
||||
- **Date:** 2026-10-03
|
||||
- **Active Stage:** Construction & Architecture Hardening / Multi-Stack Enablement
|
||||
- **Active Track:** Universal / Greenfield / Brownfield
|
||||
- **Process Version:** UP-AI v1.3
|
||||
- **Associated Change Request:** `CR-003` (Closed)
|
||||
|
||||
---
|
||||
|
||||
## 1. Completed in this Session
|
||||
- Implemented native Frappe Framework support and pre-packaged stack presets:
|
||||
- Authored [`00_prompts/templates/tech-profile-presets.md`](../../../00_prompts/templates/tech-profile-presets.md) with drop-in configuration blocks for:
|
||||
- **Preset A:** Frappe Framework (Python, MariaDB, DocTypes, `bench migrate`, site-based multi-tenancy `database_per_tenant`, Frappe Desk / Vue)
|
||||
- **Preset B:** Django / Django REST Framework (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)
|
||||
- **Preset E:** Node.js / NestJS (TypeScript, PostgreSQL, Prisma, Vitest, Next.js)
|
||||
- Upgraded `scripts/run_tests.sh` with automated stack detection and multi-framework test runner dispatch (`bench run-tests`, `mvn/gradle`, `pytest`).
|
||||
- Updated canonical skills `.agents/skills/up-code-generate/SKILL.md`, `.agents/skills/up-arch-risk-spike/SKILL.md`, and `.agents/skills/up-wireframe-spec/SKILL.md` with explicit Frappe DocType, bench migrate, site-tenancy, and Frappe Desk rules.
|
||||
- Updated `tech-profile.template.yaml` and active `tech-profile.yaml` with extended options and preset pointers.
|
||||
- Bumped process specification `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md`, and `README.md` to **UP-AI v1.3**.
|
||||
- Registered and closed `CR-003` in `04_generated_documentation/00_process_control/change_request_register.md`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Mid-Flight / Open Items
|
||||
- None.
|
||||
|
||||
---
|
||||
|
||||
## 3. Exact Next Action
|
||||
- To switch active project stack to Frappe: Copy Preset A from `00_prompts/templates/tech-profile-presets.md` into `tech-profile.yaml`.
|
||||
- Run `/up-project-bootstrap` or proceed directly with `/up-requirements-elicit` or `/up-code-generate`.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.2) |
|
||||
| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.3) |
|
||||
| **Document Path** | `04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md` |
|
||||
| **Gated By** | `up-context-checkpoint` |
|
||||
| **Last Updated** | 2026-10-03 |
|
||||
|
|
@ -16,5 +16,7 @@
|
|||
| `CKPT-001` | 2026-09-03 | Stage 0 (Bootstrap Baseline) | Workspace initialized with `tech-profile.yaml`, generic governance registers, and `UC-001` reference slice. | None | Author new use cases with `/up-use-case-author` or plan iteration with `/up-iteration-plan`. | `checkpoint-001-bootstrap-baseline.md` |
|
||||
| `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. CR-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. CR-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`. CR-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` |
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ Target capabilities include:
|
|||
|
||||
## 2. Active Technology Profile
|
||||
|
||||
Derived authoritatively from [`tech-profile.yaml`](file:///home/ps-ub/w/din/h-lp5-v2/tech-profile.yaml):
|
||||
Derived authoritatively from [`tech-profile.yaml`](../../tech-profile.yaml):
|
||||
|
||||
```yaml
|
||||
stack:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| **Parent Use Case** | [`UC-001`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent Use Case** | [`UC-001`](use-case.md) |
|
||||
| **Document** | `functional-reqs.md` |
|
||||
| **Status** | Baselined |
|
||||
| **Version** | 1.0.0 |
|
||||
|
|
|
|||
|
|
@ -62,6 +62,6 @@ It guarantees that:
|
|||
|
||||
## 6. Child Functional Requirements
|
||||
|
||||
- [`FR-AUTH-001: Multi-Tenant OIDC PKCE Login`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-001)
|
||||
- [`FR-AUTH-002: Role-Based Access Control & RLS Scoping`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-002)
|
||||
- [`FR-AUTH-003: Session Monitoring & Token Revocation`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/functional-reqs.md#fr-auth-003)
|
||||
- [`FR-AUTH-001: Multi-Tenant OIDC PKCE Login`](functional-reqs.md#fr-auth-001)
|
||||
- [`FR-AUTH-002: Role-Based Access Control & RLS Scoping`](functional-reqs.md#fr-auth-002)
|
||||
- [`FR-AUTH-003: Session Monitoring & Token Revocation`](functional-reqs.md#fr-auth-003)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|---|---|
|
||||
| **Document** | `LLD-001_auth_service.md` |
|
||||
| **Component** | `HLD-AUTH` (Identity & Access Management) |
|
||||
| **Parent Use Case** | [`UC-001`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent Use Case** | [`UC-001`](../../03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent FRs** | `FR-AUTH-001`, `FR-AUTH-002`, `FR-AUTH-003` |
|
||||
| **Status** | Baselined |
|
||||
| **Version** | 1.0.0 |
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
| Field | Value |
|
||||
|---|---|
|
||||
| **Iteration** | `iteration-01` |
|
||||
| **Parent Use Case** | [`UC-001`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent Use Case** | [`UC-001`](../../../03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Status** | Ready for Construction |
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
| Field | Value |
|
||||
|---|---|
|
||||
| **Test Suite** | `TC-001_auth_service.md` |
|
||||
| **Parent Use Case** | [`UC-001`](file:///home/ps-ub/w/din/h-lp5-v2/04_generated_documentation/03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent Use Case** | [`UC-001`](../../../03_requirements/use_cases/uc-001_user-authentication/use-case.md) |
|
||||
| **Parent FRs** | `FR-AUTH-001`, `FR-AUTH-002`, `FR-AUTH-003` |
|
||||
| **Status** | Baselined |
|
||||
|
||||
|
|
|
|||
20
README.md
20
README.md
|
|
@ -1,13 +1,13 @@
|
|||
# AI-Native Unified Process (UP-AI v1.2) — Universal Framework
|
||||
# AI-Native Unified Process (UP-AI v1.3) — Universal Framework
|
||||
|
||||
[](00_prompts/AI_Native_Unified_Process_v1.md)
|
||||
[](00_prompts/AI_Native_Unified_Process_v1.md)
|
||||
[](00_prompts/AI_Native_Unified_Process_v1.md)
|
||||
[](00_prompts/AI_Native_Unified_Process_v1.md)
|
||||
[](.agents/skills/)
|
||||
|
||||
**UP-AI v1.2** is an enterprise-grade, stack-agnostic software engineering framework combining the rigor of the **Unified Process (UP)** and **SEI-CMMI Level 3** governance with the speed of **AI-Native pair programming and autonomous multi-agent orchestration**.
|
||||
**UP-AI v1.3** is an enterprise-grade, stack-agnostic software engineering framework combining the rigor of the **Unified Process (UP)** and **SEI-CMMI Level 3** governance with the speed of **AI-Native pair programming and autonomous multi-agent orchestration**.
|
||||
|
||||
It governs software delivery from Socratic requirements elicitation (OpenUP / AI Hero) through architectural risk spikes, iterative construction, tiered multi-path test generation, 21-sheet QA workbook compilation, and UAT acceptance.
|
||||
It governs software delivery from Socratic requirements elicitation (OpenUP / AI Hero) through architectural risk spikes, iterative construction, tiered multi-path test generation, 21-sheet QA workbook compilation, and UAT acceptance across multiple implementation frameworks (Frappe, Django, Spring Boot, FastAPI, NestJS).
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ It governs software delivery from Socratic requirements elicitation (OpenUP / AI
|
|||
|
||||
## Declarative Technology Profile (`tech-profile.yaml`)
|
||||
|
||||
The entire agent skill suite dynamically adapts to your project's technology stack via `tech-profile.yaml` at the repository root.
|
||||
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).
|
||||
|
||||
```yaml
|
||||
project:
|
||||
|
|
@ -84,14 +84,14 @@ stack:
|
|||
architecture_pattern: "modular_monolith" # modular_monolith | microservices | event_driven | serverless
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "row_level_security" # row_level_security | schema_per_tenant | database_per_tenant
|
||||
model: "row_level_security" # row_level_security | schema_per_tenant | database_per_tenant (Frappe sites)
|
||||
|
||||
backend:
|
||||
language: "python" # python | typescript | go | java | csharp | rust
|
||||
framework: "fastapi" # fastapi | django | express | nestjs | gin | spring_boot
|
||||
orm: "sqlalchemy" # sqlalchemy | prisma | typeorm | gorm | hibernate
|
||||
migrations: "alembic" # alembic | prisma | flyway | golang_migrate
|
||||
test_framework: "pytest"
|
||||
framework: "fastapi" # fastapi | frappe | django | express | nestjs | gin | spring_boot
|
||||
orm: "sqlalchemy" # sqlalchemy | doctype | prisma | typeorm | django_orm | hibernate
|
||||
migrations: "alembic" # alembic | bench_migrate | prisma | flyway | django_migrations
|
||||
test_framework: "pytest" # pytest | frappe_test_runner | junit5 | vitest
|
||||
|
||||
frontend:
|
||||
framework: "react" # react | vue | angular | svelte | nextjs | flutter
|
||||
|
|
|
|||
|
|
@ -107,3 +107,45 @@ or https://www.aihero.dev/skills .
|
|||
3. *MIT Sloan CISR (Ross, Weill, Robertson)*: Enterprise architecture value is in cross-system portfolio governance, not single-system builds.
|
||||
4. *Ivar Jacobson (Essence / SEMAT - OMG Standard)*: Agile use-case-driven thin kernels outperform document-heavy frameworks.
|
||||
- **Tailoring Recommendation:** Recommend keeping UP-AI's Tier 2/Tier 3 lightweight for standalone apps, reserving heavy BDAT artifacts exclusively for Tier 1 High-Assurance enterprise/regulated programs.
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-03T12:38:00Z — Turn 6
|
||||
|
||||
### User Prompt
|
||||
> Yes. Would like to target Frappe framework also. So make the necessacary changes. Also ensure the sample configurations like 'Option A: Frappe Framework Configuration', 'Option B:...', are also mentioned in some appropriate file for ready referance
|
||||
|
||||
### Actions & Key Decisions
|
||||
- **Change Request:** Registered and closed `CR-003` (Process-Adjustment: Frappe Framework Native Integration & Multi-Stack Tech Profile Presets) in `04_generated_documentation/00_process_control/change_request_register.md`.
|
||||
- **Created Reference Presets Document:** Authored `00_prompts/templates/tech-profile-presets.md` providing drop-in configuration blocks for:
|
||||
- Preset A: Frappe Framework (Python, MariaDB, DocTypes, `bench migrate`, site-based multi-tenancy `database_per_tenant`, Frappe Desk / Vue)
|
||||
- Preset B: Django / Django REST Framework (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)
|
||||
- Preset E: Node.js / NestJS (TypeScript, PostgreSQL, Prisma, Vitest, Next.js)
|
||||
- **Updated Test Dispatcher Script:** Upgraded `scripts/run_tests.sh` to dynamically detect stack from `tech-profile.yaml` and dispatch to `bench run-tests` (Frappe), `mvnw/gradlew test` (Spring Boot), or `pytest` (FastAPI/Django).
|
||||
- **Hardened Canonical Skills:**
|
||||
- `up-code-generate`: Added Frappe App structure, DocType controllers (`<doctype>.py`), `@frappe.whitelist()`, DocType JSON schemas, `bench migrate`, and Frappe Desk / client scripts (`<doctype>.js`).
|
||||
- `up-arch-risk-spike`: Added site-based multi-tenancy (`database_per_tenant`) and Frappe App module risk evaluations.
|
||||
- `up-wireframe-spec`: Added Frappe Desk FormViews, ListViews, and Workspaces mapping.
|
||||
- **Updated Tech Profiles & Templates:** Updated `tech-profile.template.yaml` and `tech-profile.yaml` with explicit Frappe options and pointer to presets document.
|
||||
- **Bumped Process Specification:** Bumped `00_prompts/AI_Native_Unified_Process_v1.md`, `00_prompts/02_Skills_Usage_Guide.md`, and `README.md` to **UP-AI v1.3**.
|
||||
- **Checkpoint & Index:** Created `checkpoint-004-frappe-stack-integration.md` and indexed `CKPT-004` in `checkpoint_index.md`.
|
||||
- **Verification:** Ran `python3 scripts/verify_traceability_gates.py --all` (0 critical issues) and verified `./scripts/run_tests.sh --scope project` with dynamic framework detection.
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-03T13:00:00Z — Turn 7
|
||||
|
||||
### User Prompt
|
||||
> Many of the files generated in the response for the previous turn contain hard coded paths e.g. the README.md contains 'file:///home/ps-ch/w/process/up-frappe/tech-profile.yaml' - would these not break if the repo is checked out at another location? Shouldn't the filepaths in the README, skills, ... files updated in previous response contain relative paths? If yes, kindly update the absolute paths (generated in previous response) with appropriate relative paths
|
||||
|
||||
### Actions & Key Decisions
|
||||
- **Path Portability Audit:** Performed a comprehensive codebase audit scanning for hardcoded `/home/` and `file:///` URIs across all repository files.
|
||||
- **Path Normalization:** Replaced 100% of hardcoded machine-specific absolute paths with portable repo-relative markdown links across:
|
||||
- `README.md`: Replaced `file:///home/ps-ch/.../tech-profile.yaml` with `tech-profile.yaml` and `00_prompts/templates/tech-profile-presets.md`.
|
||||
- `00_prompts/02_Skills_Usage_Guide.md`: Replaced absolute links with `../tech-profile.yaml` and `templates/tech-profile-presets.md`.
|
||||
- `00_prompts/templates/tech-profile-presets.md`: Replaced absolute link with `../../tech-profile.yaml`.
|
||||
- `04_generated_documentation/00_process_control/checkpoints/checkpoint-004-frappe-stack-integration.md`: Replaced absolute link with `../../../00_prompts/templates/tech-profile-presets.md`.
|
||||
- Legacy reference files: Also cleaned up older absolute paths in `iteration_backlog.md`, `use-case.md`, `functional-reqs.md`, `master_context.md`, `LLD-001_auth_service.md`, and `TC-001_auth_service.md`.
|
||||
- **Verification:** Verified with `grep -rn "/home/" . --exclude-dir=.git` and `grep -rn "file:///" . --exclude-dir=.git`, confirming zero hardcoded absolute paths remain in the repository. Ran `python3 scripts/verify_traceability_gates.py --all` (0 critical issues).
|
||||
|
|
|
|||
|
|
@ -81,21 +81,96 @@ fi
|
|||
|
||||
printf '== run_tests.sh: scope=%s env=%s ==\n' "$scope" "$env_name"
|
||||
|
||||
# ---- pytest (backend unit/integration) ----
|
||||
pytest_found=0
|
||||
if command -v pytest >/dev/null 2>&1; then
|
||||
while IFS= read -r -d '' tests_dir; do
|
||||
pytest_found=1
|
||||
printf -- '-- pytest: %s\n' "$tests_dir"
|
||||
if [[ "$scope" == "project" ]]; then
|
||||
pytest "$tests_dir"
|
||||
else
|
||||
pytest "$tests_dir" -m "$pytest_marker"
|
||||
fi
|
||||
done < <(find "$workspace_dir" -type d -name tests -not -path '*/node_modules/*' -not -path '*/.venv/*' -print0 2>/dev/null)
|
||||
# Detect configured framework and test runner from tech-profile.yaml
|
||||
backend_framework="fastapi"
|
||||
backend_test_framework="pytest"
|
||||
if [[ -f "$repo_root/tech-profile.yaml" ]]; then
|
||||
read -r backend_framework backend_test_framework < <(python3 -c "
|
||||
import yaml
|
||||
try:
|
||||
with open('$repo_root/tech-profile.yaml') as f:
|
||||
cfg = yaml.safe_load(f) or {}
|
||||
st = cfg.get('stack', {}).get('backend', {})
|
||||
print(st.get('framework', 'fastapi'), st.get('test_framework', 'pytest'))
|
||||
except Exception:
|
||||
print('fastapi pytest')
|
||||
" 2>/dev/null || echo "fastapi pytest")
|
||||
fi
|
||||
if [[ "$pytest_found" -eq 0 ]]; then
|
||||
printf -- '-- pytest: no tests/ directory found under %s yet (skipped)\n' "$workspace_dir"
|
||||
|
||||
printf -- '-- detected stack: framework=%s test_runner=%s\n' "$backend_framework" "$backend_test_framework"
|
||||
|
||||
# ---- Backend Test Runner Dispatch ----
|
||||
if [[ "$backend_framework" == "frappe" || "$backend_test_framework" == "frappe_test_runner" ]]; then
|
||||
# ---- Frappe Framework Test Runner ----
|
||||
frappe_found=0
|
||||
frappe_site="${FRAPPE_SITE:-site1.local}"
|
||||
if command -v bench >/dev/null 2>&1; then
|
||||
frappe_found=1
|
||||
printf -- '-- frappe: executing bench run-tests (site=%s)\n' "$frappe_site"
|
||||
if [[ "$scope" == "project" ]]; then
|
||||
bench --site "$frappe_site" run-tests
|
||||
else
|
||||
bench --site "$frappe_site" run-tests --module "$pytest_marker" 2>/dev/null || \
|
||||
bench --site "$frappe_site" run-tests --doctype "$upper_hyphenated" 2>/dev/null || \
|
||||
bench --site "$frappe_site" run-tests
|
||||
fi
|
||||
elif [[ -d "$workspace_dir" ]] && command -v pytest >/dev/null 2>&1; then
|
||||
# Fallback to pytest if python unit tests exist in workspace
|
||||
while IFS= read -r -d '' tests_dir; do
|
||||
frappe_found=1
|
||||
printf -- '-- pytest (frappe python tests): %s\n' "$tests_dir"
|
||||
if [[ "$scope" == "project" ]]; then
|
||||
pytest "$tests_dir"
|
||||
else
|
||||
pytest "$tests_dir" -m "$pytest_marker"
|
||||
fi
|
||||
done < <(find "$workspace_dir" -type d -name tests -not -path '*/node_modules/*' -not -path '*/.venv/*' -print0 2>/dev/null)
|
||||
fi
|
||||
if [[ "$frappe_found" -eq 0 ]]; then
|
||||
printf -- '-- frappe: bench CLI not found in PATH or no tests directory under %s yet (skipped)\n' "$workspace_dir"
|
||||
fi
|
||||
|
||||
elif [[ "$backend_framework" == "spring_boot" || "$backend_test_framework" == "junit5" ]]; then
|
||||
# ---- Java / Spring Boot Test Runner (Maven / Gradle) ----
|
||||
java_test_found=0
|
||||
if [[ -f "$workspace_dir/mvnw" ]] || command -v mvn >/dev/null 2>&1; then
|
||||
java_test_found=1
|
||||
mvn_cmd="$workspace_dir/mvnw"
|
||||
[[ -x "$mvn_cmd" ]] || mvn_cmd="mvn"
|
||||
printf -- '-- spring_boot: executing %s test\n' "$mvn_cmd"
|
||||
if [[ "$scope" == "project" ]]; then
|
||||
(cd "$workspace_dir" && "$mvn_cmd" test)
|
||||
else
|
||||
(cd "$workspace_dir" && "$mvn_cmd" test -Dtest="*${upper_hyphenated}*")
|
||||
fi
|
||||
elif [[ -f "$workspace_dir/gradlew" ]] || command -v gradle >/dev/null 2>&1; then
|
||||
java_test_found=1
|
||||
gradle_cmd="$workspace_dir/gradlew"
|
||||
[[ -x "$gradle_cmd" ]] || gradle_cmd="gradle"
|
||||
printf -- '-- spring_boot: executing %s test\n' "$gradle_cmd"
|
||||
(cd "$workspace_dir" && "$gradle_cmd" test)
|
||||
fi
|
||||
if [[ "$java_test_found" -eq 0 ]]; then
|
||||
printf -- '-- spring_boot: no mvnw/gradlew found under %s yet (skipped)\n' "$workspace_dir"
|
||||
fi
|
||||
|
||||
else
|
||||
# ---- Default Pytest (FastAPI, Django, etc.) ----
|
||||
pytest_found=0
|
||||
if command -v pytest >/dev/null 2>&1; then
|
||||
while IFS= read -r -d '' tests_dir; do
|
||||
pytest_found=1
|
||||
printf -- '-- pytest: %s\n' "$tests_dir"
|
||||
if [[ "$scope" == "project" ]]; then
|
||||
pytest "$tests_dir"
|
||||
else
|
||||
pytest "$tests_dir" -m "$pytest_marker"
|
||||
fi
|
||||
done < <(find "$workspace_dir" -type d -name tests -not -path '*/node_modules/*' -not -path '*/.venv/*' -print0 2>/dev/null)
|
||||
fi
|
||||
if [[ "$pytest_found" -eq 0 ]]; then
|
||||
printf -- '-- pytest: no tests/ directory found under %s yet (skipped)\n' "$workspace_dir"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ---- Playwright (browser E2E / smoke) ----
|
||||
|
|
|
|||
|
|
@ -29,38 +29,40 @@ inception:
|
|||
screenshots_dir: "03_legacy_screen_shots"
|
||||
|
||||
# Architecture & Target Technology Stack
|
||||
# (For pre-packaged stack presets like Frappe, Django, Spring Boot, FastAPI, or NestJS,
|
||||
# see `00_prompts/templates/tech-profile-presets.md`)
|
||||
stack:
|
||||
architecture_pattern: "modular_monolith" # Options: modular_monolith | microservices | event_driven | serverless
|
||||
multi_tenancy:
|
||||
enabled: true
|
||||
model: "row_level_security" # Options: row_level_security | schema_per_tenant | database_per_tenant
|
||||
model: "row_level_security" # Options: row_level_security | schema_per_tenant | database_per_tenant (Frappe sites)
|
||||
|
||||
backend:
|
||||
language: "python" # Options: python | typescript | go | java | csharp | rust
|
||||
framework: "fastapi" # Options: fastapi | django | express | nestjs | gin | spring_boot | dotnet_core
|
||||
orm: "sqlalchemy" # Options: sqlalchemy | prisma | typeorm | gorm | hibernate | ef_core
|
||||
migrations: "alembic" # Options: alembic | prisma | flyway | golang_migrate | dbup
|
||||
framework: "fastapi" # Options: fastapi | frappe | django | express | nestjs | gin | spring_boot | dotnet_core
|
||||
orm: "sqlalchemy" # Options: sqlalchemy | doctype | prisma | typeorm | django_orm | gorm | hibernate | ef_core
|
||||
migrations: "alembic" # Options: alembic | bench_migrate | prisma | flyway | django_migrations | golang_migrate | dbup
|
||||
api_standard: "rest_openapi" # Options: rest_openapi | graphql | grpc
|
||||
test_framework: "pytest"
|
||||
coverage_tool: "pytest-cov"
|
||||
test_framework: "pytest" # Options: pytest | frappe_test_runner | junit5 | vitest
|
||||
coverage_tool: "pytest-cov" # Options: pytest-cov | coverage | jacoco | vitest
|
||||
|
||||
frontend:
|
||||
framework: "react" # Options: react | vue | angular | svelte | nextjs | flutter
|
||||
framework: "react" # Options: react | frappe_desk | vue | angular | svelte | nextjs | flutter
|
||||
language: "typescript"
|
||||
state_management: "zustand" # Options: zustand | redux_toolkit | pinia | context_api
|
||||
ui_library: "tailwind_shadcn" # Options: tailwind_shadcn | mui | ant_design | vanilla_css
|
||||
ui_library: "tailwind_shadcn" # Options: tailwind_shadcn | frappe_desk | mui | ant_design | vanilla_css
|
||||
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
||||
test_framework: "vitest"
|
||||
e2e_framework: "playwright"
|
||||
|
||||
authentication:
|
||||
provider: "keycloak" # Options: keycloak | auth0 | cognito | supabase_auth | firebase_auth | custom_oidc
|
||||
provider: "keycloak" # Options: keycloak | frappe_auth | auth0 | cognito | supabase_auth | firebase_auth | custom_oidc
|
||||
protocol: "oidc_pkce"
|
||||
token_standard: "jwt_bearer"
|
||||
authorization_model: "rbac_abac" # Options: rbac | rbac_abac | casbin | opa
|
||||
|
||||
database:
|
||||
primary: "postgresql" # Options: postgresql | mysql | mariadb | mongodb | dynamodb
|
||||
primary: "postgresql" # Options: postgresql | mariadb | mysql | mongodb | dynamodb
|
||||
cache_and_streams: "valkey" # Options: valkey | redis | none
|
||||
search_engine: "none" # Options: elasticsearch | opensearch | pg_trgm | none
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue