docs(03-01): complete backend foundation plan — billing, encryption, HMAC OAuth, LLM key CRUD, usage aggregation

- Create 03-01-SUMMARY.md with full plan documentation
- Update STATE.md: progress 79%, 4 new decisions, session stopped at 03-01
- Update ROADMAP.md: Phase 3 plan progress (1/4 summaries)
- Update REQUIREMENTS.md: mark AGNT-07, LLM-03, PRTA-03, PRTA-05, PRTA-06 complete
This commit is contained in:
2026-03-23 21:38:10 -06:00
parent 3c8fc255bc
commit e0342f8ec1
4 changed files with 224 additions and 18 deletions

View File

@@ -23,13 +23,13 @@ Requirements for beta-ready release. Each maps to roadmap phases.
- [x] **AGNT-04**: Agent can invoke registered tools to perform actions (tool registry + execution)
- [x] **AGNT-05**: Agent escalates to human when configured rules trigger, transferring full conversation context
- [x] **AGNT-06**: Every agent action (LLM call, tool invocation, handoff) is logged in an audit trail
- [ ] **AGNT-07**: Agent token usage is tracked per-agent per-tenant with configurable budget limits
- [x] **AGNT-07**: Agent token usage is tracked per-agent per-tenant with configurable budget limits
### LLM Backend
- [x] **LLM-01**: LiteLLM router abstracts LLM provider selection with fallback routing
- [x] **LLM-02**: Platform supports Ollama (local) and commercial APIs (Anthropic, OpenAI) as LLM providers
- [ ] **LLM-03**: Tenant can provide their own API keys for supported LLM providers (BYO keys, encrypted at rest)
- [x] **LLM-03**: Tenant can provide their own API keys for supported LLM providers (BYO keys, encrypted at rest)
### Multi-Tenancy & Security
@@ -42,10 +42,10 @@ Requirements for beta-ready release. Each maps to roadmap phases.
- [x] **PRTA-01**: Operator can create, view, update, and delete tenants
- [x] **PRTA-02**: Operator can design agents via a dedicated Agent Designer module — defining job description, statement of work, persona, system prompt, tool assignments, and escalation rules
- [ ] **PRTA-03**: Operator can connect messaging channels (Slack, WhatsApp) via guided wizard
- [x] **PRTA-03**: Operator can connect messaging channels (Slack, WhatsApp) via guided wizard
- [ ] **PRTA-04**: New tenants are guided through structured onboarding (connect channel, configure agent, test message)
- [ ] **PRTA-05**: Operator can manage subscription plans and billing via Stripe integration
- [ ] **PRTA-06**: Portal displays agent cost tracking and usage metrics per tenant
- [x] **PRTA-05**: Operator can manage subscription plans and billing via Stripe integration
- [x] **PRTA-06**: Portal displays agent cost tracking and usage metrics per tenant
## v2 Requirements
@@ -106,20 +106,20 @@ Which phases cover which requirements. Updated during roadmap creation.
| AGNT-04 | Phase 2 | Complete |
| AGNT-05 | Phase 2 | Complete |
| AGNT-06 | Phase 2 | Complete |
| AGNT-07 | Phase 3 | Pending |
| AGNT-07 | Phase 3 | Complete |
| LLM-01 | Phase 1 | Complete |
| LLM-02 | Phase 1 | Complete |
| LLM-03 | Phase 3 | Pending |
| LLM-03 | Phase 3 | Complete |
| TNNT-01 | Phase 1 | Complete |
| TNNT-02 | Phase 1 | Complete |
| TNNT-03 | Phase 1 | Complete |
| TNNT-04 | Phase 1 | Complete |
| PRTA-01 | Phase 1 | Complete |
| PRTA-02 | Phase 1 | Complete |
| PRTA-03 | Phase 3 | Pending |
| PRTA-03 | Phase 3 | Complete |
| PRTA-04 | Phase 3 | Pending |
| PRTA-05 | Phase 3 | Pending |
| PRTA-06 | Phase 3 | Pending |
| PRTA-05 | Phase 3 | Complete |
| PRTA-06 | Phase 3 | Complete |
**Coverage:**
- v1 requirements: 25 total