# EndiorBot Documentation Index

**Framework:** SDLC **6.3.1** · **Identity:** Solo Developer Power Tool

> Stage-shaped home for product and engineering docs. Command SSOT lives in code (`./endiorbot.mjs`); stage semantics (WHY → WHAT → HOW → …) defined in [`stage-command-workflow-spine.md`](00-foundation/stage-command-workflow-spine.md).

**Documentation language:** Per SDLC 6.3.1, application docs under `docs/` are authored in **English**. Product-facing OTT strings may use other languages when explicitly scoped.

---

## 10-Stage Lifecycle (SDLC 6.3.1 Pillar 1)

### Core Pipeline (00 → 05)

Design → build → test traceability is **mandatory**. Stage 03 is the integration bridge.

| Stage | Folder | Question | Key Artifacts |
|-------|--------|----------|---------------|
| **00** Foundation | [`00-foundation/`](00-foundation/) | **WHY** | Product vision, problem statement, business case |
| **01** Planning | [`01-planning/`](01-planning/) | **WHAT** | Requirements, user stories, roadmap |
| **02** Design | [`02-design/`](02-design/) | **HOW** | 51 ADRs, 20+ technical specs, architecture review |
| **03** Integrate | [`03-integrate/`](03-integrate/) | **CONNECT** | API specs, channel contracts, provider pipeline |
| **04** Build | [`04-build/`](04-build/) | **BUILD** | 25 active sprint plans (Sprint 126-146), coding standards, CLI reference |
| **05** Test | [`05-test/`](05-test/) | **VERIFY** | Master test plan, E2E reports, bug tracking |

### Extended Lifecycle (06 → 09)

| Stage | Folder | Question | Key Artifacts |
|-------|--------|----------|---------------|
| **06** Deploy | [`06-deploy/`](06-deploy/) | **SHIP** | Deploy guide, PID lockfile, Kimi proxy setup |
| **07** Operate | [`07-operate/`](07-operate/) | **RUN** | Usage guide (20 workflows), circuit breaker ops |
| **08** Collaborate | [`08-collaborate/`](08-collaborate/) | **ALIGN** | SDLC compliance, knowledge transfer, community publish |
| **09** Govern | [`09-govern/`](09-govern/) | **IMPROVE** | Governance status |

### Archive

| Folder | Contents |
|--------|----------|
| [`10-Archive/`](10-Archive/) | Sprint 29-55 plans, autonomy epic (consolidated), old reports |

---

## Quality Gates (SDLC 6.3.1 Pillar 4)

| Gate | Stage | Evidence Required |
|------|-------|-------------------|
| G0 / G0.1 | 00 Foundation | Problem statement, stakeholder sign-off |
| G1 | 01 Planning | Requirements, user stories, estimates |
| G2 | 02 Design | ADRs, architecture docs, API specs |
| G3 | 04 Build | Code complete, tests passing, coverage |
| G4 | 06 Deploy | MRP, security scan, deployment ready |
| G-Sprint | 04 Build | Sprint plan, goals, completion report |

---

## Reference & Templates

> **Note:** `docs/reference/` is **EndiorBot-specific** — scaffold templates, SOUL definitions, SDLC API, and migration guides generated by EndiorBot's `init` command. This directory is NOT part of the 10-stage lifecycle; it is the product's own template registry that `endiorbot init` uses to scaffold new projects.

| Resource | Location | Purpose |
|----------|----------|---------|
| **Templates** | | |
| SOUL templates (14 agents) | [`reference/templates/souls/`](reference/templates/souls/) | Agent persona definitions (SASE model) |
| Team templates (7 teams) | [`reference/templates/teams/`](reference/templates/teams/) | Multi-agent team configurations |
| Tier configs (LITE→ENTERPRISE) | [`reference/templates/configs/`](reference/templates/configs/) | `.sdlc-config.json` per tier |
| Scaffold templates | [`reference/templates/`](reference/templates/) | AGENTS.md, IDENTITY.md, CLAUDE.md, TOOLS.md, etc. |
| Command catalog | [`reference/templates/COMMANDS.md`](reference/templates/COMMANDS.md) | 39 unified commands across 5 channels |
| **SDLC Integration** | | |
| SDLC API | [`reference/sdlc/API.md`](reference/sdlc/API.md) | Programmatic SDLC API reference |
| Migration guide | [`reference/sdlc/MIGRATION.md`](reference/sdlc/MIGRATION.md) | OpenClaw → EndiorBot migration |
| Config schemas | [`reference/sdlc/schemas/`](reference/sdlc/schemas/) | JSON schemas for `.sdlc-config.json` |

---

## Key Entry Points

| Document | Purpose |
|----------|---------|
| [Product Vision](00-foundation/product-vision.md) | North star + autonomy levels (L1-L4) |
| [Stage × Command Spine](00-foundation/stage-command-workflow-spine.md) | Stage alignment, CLI/OTT/Web mapping |
| [Usage Guide](07-operate/USAGE-GUIDE.md) | 20 workflows — setup to advanced |
| [Deploy Guide](06-deploy/README.md) | Deployment options, Docker, Desktop, npm |
| [ADR-052 Agent-Model Tier Mapping](02-design/01-ADRs/ADR-052-agent-model-tier-mapping.md) | CC-first routing + fallback chains |

---

## Current State (Sprint 145, 2026-04-27)

| Metric | Value |
|--------|-------|
| Tests | 8,124+ passing |
| Unified commands | 39 (across all channels) |
| SOUL agents | 14 |
| Channels | 5 (CLI, Web, Telegram, Zalo, Desktop) |
| Providers | 5 active (Claude Code, Kimi, OpenAI, Ollama, MCP Gateway) |
| ADRs | 51 approved |
| Sprint plans | 25 active (Sprint 126-146), 111 archived |
| Framework | SDLC 6.3.1 (7-Pillar, 10-Stage, 4-Tier) |

### Sprint 144-145 Highlights

| Feature | Sprint | Impact |
|---------|--------|--------|
| CC-first routing (ADR-052 amendment) | 143 | All Tier 2 agents use Claude Code primary, Kimi fallback |
| PID lockfile singleton serve | 144 | Prevents duplicate processes (`--force` to takeover) |
| Provider circuit breaker | 144 | 2 failures → skip provider → 60s cooldown → recovery |
| OTT 60s timeout | 144 | Telegram/Zalo/Web = 60s CC timeout (CLI stays 180s) |
| Desktop app | 144 | 7 pages, gateway auto-start, API key management |
| Community publish cleanup | 144 | Internal refs removed, domain endior.net, MIT license |

---

*EndiorBot | SDLC **6.3.1** — docs/ stage index | Updated Sprint 145 (2026-04-27)*
