Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/joseluis-dev/harness-ai/llms.txt

Use this file to discover all available pages before exploring further.

Harness AI follows a 14-phase incremental roadmap numbered 0 through 13. Each phase delivers a self-contained increment of capability — every new phase adds functionality while preserving all architectural invariants and acceptance criteria established by prior phases. The MVP spans Phases 0–5 fully, Phase 6 partially (harness base included; full CRUD UI excluded); Phases 7–13 extend the system into advanced automation, observability, and controlled cloud AI access.

Phases at a Glance

PhaseNameMVP?Key capabilities added
0Base ejecutable local✅ MVPMonorepo, Astro SSR, PostgreSQL, Redis, runtime Python, Docker Compose, migrations, health checks, executions table, audit_events table, RQ job queue, executions UI
1Integración de identidad externa✅ MVPmcp-identity-connector, actor resolution, fail-closed gate for sensitive writes
2Model Gateway local con vLLM✅ MVPLocal AI execution, POST /v1/chat and POST /v1/embed endpoints, model.call audit, allow_cloud=false default policy
3MCP SQL readonly✅ MVPmcp-readonly-sql service, SQL view allowlist, SELECT-only agent, tool_registry seed row
4Watcher documental e ingestión✅ MVPFile watcher, document checksum registry, text extraction, versioned document records
5Embeddings y RAG básico✅ MVPpgvector, local embedding model, chunking strategy, permission-filtered document retrieval, citation support
6Administración de agentes/herramientas/políticas⚠️ Partial MVPHarness base included; full CRUD UI for agents/tools/OAuth clients/scopes/policies excluded from strict MVP
7Webhooks n8n❌ Not MVPHMAC-signed webhooks, n8n as OAuth client, event allowlist, outbound webhook support
8Telegram seguro (NUEVO)❌ Not MVPTelegram bot routing through Harness Core, identity resolution via mcp-identity-connector, all messages audited, source_type=telegram
9Aprobación humana❌ Not MVPapproval_requests table, 202 + approval_id response for DESTRUCTIVE/EXTERNAL operations, approval UI in admin panel
10LangGraph para expedientes❌ Not MVPexpediente_review_graph workflow, multi-step document processing, conditional approval gates
11Agentes especializados❌ Not MVPDomain-specific institutional agents (contratación, expedientes, reportes, soporte TI, normativo)
12Observabilidad avanzada❌ Not MVPStructured metrics, distributed tracing (OpenTelemetry), cost dashboards, audit export
13Proveedores externos de IA❌ Not MVPOpenAI, Anthropic, Gemini under explicit allow_cloud=true policy; data_classification enforced; local fallback

Phase Dependencies

The roadmap has several hard dependency edges that must be respected:
  • Phase 8 (Telegram seguro) requires both Phase 1 (identity — to map telegram_user_id → institutional user) and Phase 7 (n8n webhooks — to reuse the HMAC-signed webhook pattern).
  • Phase 9 (Human approval) gates all DESTRUCTIVE and EXTERNAL_SIDE_EFFECT operations. Phases 10 and 11 both depend on Phase 9 being active.
  • Phase 10 (LangGraph) requires Phase 3 (SQL readonly), Phase 5 (RAG), and Phase 9 (human approval) to be complete.
  • Phase 13 (External providers) is always the last phase; it extends the Model Gateway built in Phase 2 and relies on Phase 12 observability for cost enforcement.
Phase 6 is intentionally split: the harness base (tool registry APIs, auth-sdk, policy engine) is part of the MVP. The full CRUD UI for agents, tools, OAuth clients, scopes, and versioned policies may be delivered in a subsequent iteration. See deployment/02-mvp-definition.md for the canonical MVP boundary.
The 30-step implementation order from references/03-implementation-order.md groups work as follows:
1

Phase 0 — Steps 1–12

Create the monorepo, Docker Compose local stack, PostgreSQL, Redis, Astro app, runtime Python, base migrations, executions table, audit_events table, job queue, fictitious execution smoke test, and audit registration.
2

Phase 1 — Step 13

Implement the identity connector mock (mcp-identity-connector) so all downstream phases can attribute actions to a real institutional actor.
3

Phase 2 — Steps 14–15

Implement the model gateway mock, then wire the vllm_local provider.
4

Phase 3 — Steps 16–17

Implement mcp-readonly-sql and the sql_readonly_agent.
5

Phase 4 — Steps 18–20

Implement the document watcher, document registry, and text extraction.
6

Phase 5 — Steps 21–24

Implement chunks, embeddings, retrieval, and the RAG agent.
7

Phase 6 — Steps 25–26

Implement the documents UI and the audit UI (MVP scope for Phase 6).
8

Phases 7–13 — Steps 27–30 (post-MVP)

n8n webhooks (27), Telegram (27b), human approval (28), LangGraph (29), and external providers (30). These steps are activated after the MVP is stable and accepted.
Each phase must fully satisfy its acceptance criteria before the next phase begins. A phase that passes 4 of 5 acceptance checks is not complete. The criteria are integral, not gradual — this mirrors the architectural maturity standard defined in references/04-architectural-maturity.md.
Navigate to each individual phase page for the full list of acceptance criteria, implementation details, curl commands, and operational notes: Phase 0 · Phase 1 · Phase 2 · Phase 3 · Phases 4–13

Build docs developers (and LLMs) love