docs(workspace): initialize organization profile and workspace AGENTS guidelines
This commit is contained in:
1 parent
94ff53ad0b
commit
13285ec492
4 files changed
+136
-2
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
# Independent sub-repositories (tracked separately)
|
||||
armonia-api/
|
||||
armonia-dashboard/
|
||||
armonia-landing/
|
||||
|
||||
# Editor / Obsidian / OS
|
||||
.obsidian/
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
.direnv/
|
||||
@@ -0,0 +1,76 @@
|
||||
# Armonía del Ser — Workspace Guidelines
|
||||
|
||||
This file defines the strict runtime, development, and toolchain constraints for AI agents. You must adhere to these behavioral boundaries without deviation.
|
||||
|
||||
For operational context & ecosystem topology: [See README](./README.md)
|
||||
|
||||
---
|
||||
## 1. System Discovery & Single Source of Truth (SSOT)
|
||||
|
||||
Do not assume architectural requirements or business logic rules. You must explicitly read the dedicated documentation inside each repository before modifying or writing code:
|
||||
- **Repository Technical Blueprint:** Read the local `AGENTS.md` inside the target sub-repository (`armonia-api/`, `armonia-dashboard/`, or `armonia-landing/`) for repository-specific architecture, Nix `devShell` setup, and verification commands.
|
||||
- **Product Requirements & Domain Model:** Review `docs/SRS.md` in the relevant repository.
|
||||
- **System Topography:** Review `docs/architecture.md`.
|
||||
- **Architectural Context & History:** Review Decisions in `docs/decisions/000*.md`.
|
||||
|
||||
### Documentation Drift Prevention Rule
|
||||
Documentation must evolve symmetrically alongside the source code. If a feature implementation or bug fix alters system behavior, changes an invariant, or introduces a new pattern:
|
||||
1. **Self-Documenting Code:** Write highly expressive code using explicit domain-driven function naming and clear test assertions.
|
||||
2. **Inline & Static Sync:** You must simultaneously update the corresponding inline comments, type hints, Markdown documentation files, and Mermaid diagrams in the same commit.
|
||||
|
||||
---
|
||||
|
||||
## 2. Git & Branching Constraints
|
||||
|
||||
### Pre-Development Workflow
|
||||
Before writing, modifying, or refactoring any code, you must execute the following terminal operations:
|
||||
- **Clean Tree:** Verify the working directory is clean by running `git status`.
|
||||
- **Sync Main:** Run: `git checkout main && git pull origin main`
|
||||
- **Isolated Branch:** Check out a dedicated branch matching the patterns below.
|
||||
|
||||
### Branch Naming Conventions
|
||||
- **Features:** `feat/<issue-id>-<short-description>` (e.g., `feat/123-add-login-form`)
|
||||
- **Fixes:** `fix/<issue-id>-<short-description>` (e.g., `fix/456-resolve-null-pointer`)
|
||||
- **Chores/Refactors:** `chore/<short-description>` (e.g., `chore/bump-dependencies`)
|
||||
|
||||
### Commit & Push Policy
|
||||
- **Main Protection:** **NEVER** commit or push changes directly to the `main` branch.
|
||||
- **Format:** Follow the [Conventional Commits](https://conventionalcommits.org) specification.
|
||||
- **NixOS SSH Push Rule:** Prefix Git network push/pull operations with bypass flags to account for Nix store symlinks:
|
||||
```bash
|
||||
GIT_SSH_COMMAND="ssh -F /dev/null" git push
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Quality Assurance & TDD Mandate
|
||||
|
||||
### Test-Driven Development (TDD) Lifecycle
|
||||
You must handle feature additions or bug fixes using an isolated **Red-Green-Refactor** workflow:
|
||||
1. **Red:** Write dedicated, failing unit/integration tests before writing production logic.
|
||||
2. **Green:** Write the minimal code required to pass the new tests.
|
||||
3. **Refactor:** Clean code structures while maintaining green test flags.
|
||||
|
||||
### Anti-Regression & Tautology Safeguards
|
||||
- **Strict Isolation:** Never modify or disable historical test suites written for other features.
|
||||
- **No Tautological Tests:** Avoid writing meaningless assertions (e.g., matching basic types without checking real mutation mechanics or mocking database queries to return dummy values without exercising real SQLite/SQLModel constraints).
|
||||
|
||||
### Pre-Merge Toolchain Policy
|
||||
Each sub-repository provides its own Nix `devShell` (`flake.nix` + `.envrc`) and defines its exact pre-commit verification gates in its local `AGENTS.md`. You must run and pass the target repository's verification suite locally with zero warnings or errors before proposing a commit or opening a pull request.
|
||||
|
||||
---
|
||||
|
||||
## 4. Gitea Organization & CLI (`tea`) Protocol
|
||||
|
||||
All repositories are hosted inside the private Gitea instance. Do not make unauthenticated external requests; always leverage the pre-configured `tea` CLI.
|
||||
|
||||
### Core Commands
|
||||
- **List Repository Issues:** `tea issues list --repo armonia-del-ser/<repo-name>`
|
||||
- **Read Issue Comments:** `tea issues <index> --repo armonia-del-ser/<repo-name> --comments`
|
||||
- **Log Activity Comment:** `tea comment <index> --repo armonia-del-ser/<repo-name> "<comment>"`
|
||||
- **Propose Pull Request:** `tea pr create --repo armonia-del-ser/<repo-name> --head <branch> --base main --title "<title>" --description "<body>"`
|
||||
|
||||
### Workflow Discipline
|
||||
1. **Traceability:** Reference the working Gitea issue number in branch headers and commit message footers (e.g., `Refs: #1`).
|
||||
2. **Secret Safety:** Never print or parse credentials, and never expose paths matching `~/.config/tea/config.yml` on terminal logs.
|
||||
|
||||
@@ -1,3 +1,50 @@
|
||||
# .profile
|
||||
# ARMONÍA DEL SER
|
||||
|
||||
Armonía del Ser — Ecosystem Architecture, Operational Context & Workspace Guidelines
|
||||
## Owner:
|
||||
Jasmin Isaza
|
||||
## Ecosystem Architecture & Repositories
|
||||
|
||||
The project is structured into decoupled repositories with concrete roles:
|
||||
|
||||
| Repository | Path | Role & Technology | Target Platform | Stack |
|
||||
| :---------------------- | :------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **`armonia-api`** | `armonia-api/` | Core backend REST API, operational source of truth, separated booking/payment state engine, Google OAuth + Turso allowlist, and Google Calendar coordination. | Google Cloud Run ($0 free tier) | [uv](https://docs.astral.sh/uv/), [Python 3.13](https://www.python.org/downloads/release/python-31316/), [FastAPI-standard](https://fastapi.tiangolo.com/), [SQLModel](https://sqlmodel.tiangolo.com/), [Turso libSQL](https://docs.turso.tech/libsql), [Google Calendar](https://developers.google.com/workspace/calendar/api/concepts), [ruff](https://docs.astral.sh/ruff/), [pyright](https://microsoft.github.io/pyright/#/), [pytest](https://docs.pytest.org/en/stable/) |
|
||||
| **`armonia-dashboard`** | `armonia-dashboard/` | Administrative mobile-first operational control surface for operators to review, follow-up, and acknowledge payments, authorize delayed-payment exceptions, release slots, and track packages. | Cloudflare Pages ($0 free tier) | [Vite+](https://viteplus.dev/), [Tailwind](https://tailwindcss.com/), [HTMX](https://htmx.org/), [Biome](https://biomejs.dev/) |
|
||||
| **`armonia-landing`** | `armonia-landing/` | Public client-facing landing page, catalog showcase, and self-service reservation portal. | Cloudflare Pages ($0 free tier) | [Vite+](https://viteplus.dev/), [Tailwind](https://tailwindcss.com/), [HTMX](https://htmx.org/), [Biome](https://biomejs.dev/) |
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
CV[Clients / Visitors] --> AL[armonia-landing]
|
||||
AL -->|Public booking requests| API[armonia-api]
|
||||
|
||||
OP[Operators] --> DASH[armonia-dashboard]
|
||||
DASH -->|Google OAuth + Turso Allowlist| API
|
||||
|
||||
API -->|Operational SSOT & allowlist| DB[(Turso Database<br/>libSQL)]
|
||||
API -->|Schedule coordination & sync health| GC[Google Calendar API]
|
||||
API -->|Manual follow-up via wa.me| WA[WhatsApp Deep Links]
|
||||
```
|
||||
|
||||
All repositories are hosted in [`armonia-del-ser`](https://gitea.roadtotech.me/armonia-del-ser):
|
||||
## Canonical Business Description
|
||||
|
||||
En Armonía del Ser, somos un hogar de sanación y equilibrio. Nace de mi camino profesional y personal en 2007, combinando mis conocimientos en enfermería, psicología, temazcales, constelaciones, flores de Bach y herbolaria entre otros.
|
||||
|
||||
Hoy, ofrecemos un espacio integral donde cuerpo, mente y espíritu se encuentran. Aquí guiamos meditaciones, retiros, círculos de cacao, trabajamos con cuencos de cuarzo, equilibrio de chakras y limpieza energética. También ofrecemos atención psicológica, desintoxicaciones, rituales personalizados y celebraciones sagradas. Te invitamos a conectar con tu esencia y descubrir tu propia armonía.
|
||||
|
||||
Somos un centro de atención Psicológicas, terapias alternativas y de la salud, integrativo
|
||||
que te ayudan a encontrarte con tu verdadero Ser, a estar en equilibrio con tu entorno y descubrir el Amor, la alegría, la salud y la abundancia, que son tu verdadera razón de Ser.
|
||||
|
||||
|
||||
## Operational Context
|
||||
|
||||
- **Business Name**: Armonía del Ser - Centro Holístico (founded in 2007 by Jasmin).
|
||||
- **Location**: Vicente Guerrero, Felipe Ángeles, 43640 Tulancingo, Hgo., Mexico.
|
||||
- **Contact / WhatsApp**: `+52 775 148 7912`
|
||||
- **Core Offerings**:
|
||||
- *Group Sessions (Presencial & Online)*: Círculo de Cacao (Lunes 6 PM Presencial / Martes 7 PM Online), Meditación con cuencos (Martes 7 AM / Sábados 8 AM), Meditación con ejercicios conscientes (Martes 8 AM), Constelaciones Familiares (Jueves 7 PM Online), Clase de los 4 Elementos y Tarot (Viernes 9 AM Online), Meditación guiada (Sábados 7 AM), plus low-cost community workshops (e.g., *Curso de Abundancia y Prosperidad*, \$50 MXN/session).
|
||||
- *1-on-1 Consultations*: Atención Psicológica Individual (con cita previa, presencial u online), Flores de Bach, herbolaria, limpieza energética.
|
||||
- **Primary Discovery Source**: [`armonia-del-ser/armonia-api#1`](https://gitea.roadtotech.me/armonia-del-ser/armonia-api/issues/1) (*Discovery Interview: Jasmin & Assistant Operational Feedback*).
|
||||
- **Operational Realities**:
|
||||
- **20-Year Local Word-of-Mouth**: Most clients arrive via WhatsApp direct messages, phone calls, or in-person conversations.
|
||||
- **Collaborative Administration**: Both Jasmin and her remote assistant register participants, follow up on pending payments 48h prior, acknowledge payments, and update session counters.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
Reference in new issue
Block a user