Files
gatos-tejada/AGENTS.md
T
kiskaadee 454e14b9fb docs(agents): adopt todo.txt milestone tracking and agent sync rules
- Add root todo.txt tracking foundational and Phase 3 deliverables
- Codify live task tracking and synchronization rule in AGENTS.md
2026-10-13 07:53:08 -05:00

3.6 KiB

Novias del Gato - Agent Guidelines & Workflow Rules

This document specifies the mandatory workflows, constraints, and quality gates for AI agents operating in this repository.


1. Core Operating Constraints

  • No Direct Commits to main: Agents must never commit directly to the main or master branches. All changes must be developed on descriptive feature, bugfix, or documentation branches (feat/*, fix/*, docs/*).
  • No Destructive Git Actions: Commands such as git reset --hard, git restore <file>, git clean -fd, and force-pushes (git push --force) are strictly prohibited without the user's explicit written approval.
  • Secret Redaction: Never print, commit, or log sensitive information (tokens, secrets, private keys, database passwords, API credentials). Use environment variables and .env files (which must be ignored in .gitignore).
  • Session Modes:
    • learning: The user drives and writes the reasoning, the agent asks guiding questions.
    • delivery: The agent may draft code and plans, presenting rationale and trade-offs.
  • Live Task Tracking (todo.txt): Keep todo.txt synchronized with code reality. When a deliverable or milestone is implemented and verified, mark it as completed (x YYYY-MM-DD ...) immediately. Never leave verified work marked as pending or untracked.

2. Verification Gates (Pre-Commit Checklist)

Before any commit is proposed or executed, agents must execute and verify the following commands from the repository or api/ directory:

  1. Ruff Formatting:
    uv run ruff format --check .
    
  2. Ruff Linting:
    uv run ruff check .
    
  3. Static Type Checking (Pyright):
    uv run pyright
    
  4. Automated Test Suite (Pytest):
    uv run pytest
    

No commit may be generated if any of these checks fail or report unhandled errors.


3. Architecture & Domain Directives

  • API-First Architecture: Endpoints and schemas in api/ must stay aligned with docs/openapi_unified.yaml.
  • SSO Identity Provider Pattern: Authentication logic must be decoupled behind the IdentityProvider interface/adapter protocol. Do not hardcode vendor-specific auth checks in core routes.
  • Edge Inference Model Invariant: Vector embeddings (1280 floats via MobileNetV2) are generated on client devices (WebAssembly/WebGL via ONNX Runtime Web). The backend never runs heavy deep learning inference on check-ins; it performs spatial proximity checks (PostGIS) and cosine similarity queries (pgvector).
  • Spatial & Vector Integrity: Coordinates must use EPSG:4326 (WGS84). Embeddings must be 1280-dimension L2-normalized float vectors.

4. Agent Directory & Delegation

When working on specialized sub-domains:

  • Anne Droid (profile/agents/anne-droid.md): Consult for UX flow, client accessibility, or backend API contract changes that impact the UI. Delegate to Anne for frontend component styling, PWA camera/canvas interaction, or client-side tests on feat/anne/* branches.
  • Do not invoke Anne Droid for backend-only logic, database migrations, or Docker infrastructure.

5. Live Task Tracking (todo.txt)

For multi-step engineering milestones and deliverables:

  • Maintain a standard, comment-free todo.txt in the repository root formatted for tuxedo / todo.sh.
  • Prioritize deliverables using standard priorities ((A), (B), (C)), projects (+<component>), and contexts (@<area>).
  • Keep todo.txt synchronized with code reality: when a deliverable is implemented and verified, mark it completed (x YYYY-MM-DD ...) immediately. Never leave verified work marked as pending or untracked.