Files
stack/docs/MISSION-MANIFEST.md
2026-03-04 21:30:55 -06:00

70 lines
3.9 KiB
Markdown

# Mission Manifest — MS22-P2 Named Agent Fleet
> Persistent document tracking full mission scope, status, and session history.
> Updated by the orchestrator at each phase transition and milestone completion.
## Mission
**ID:** ms22-p2-named-agent-fleet-20260304
**Statement:** Implement named agent fleet (jarvis, builder, medic) with per-agent personalities, model assignments, Discord channel routing, and WebUI selector.
**PRD:** `docs/PRD-MS22-P2-AGENT-FLEET.md`
**Phase:** Execution
**Status:** in-progress
**Last Updated:** 2026-03-05
## Success Criteria
1. AgentTemplate and UserAgent tables exist and are seeded with jarvis/builder/medic
2. Admin CRUD endpoints at `/admin/agent-templates` work and are guarded
3. User agent CRUD endpoints allow per-user agent customization
4. Chat proxy routes messages to correct agent by name
5. Discord channel → agent routing maps #jarvis/#builder/#medic-alerts
6. WebUI shows agent selector and connects to correct agent
7. All CI gates green
## Milestones
| # | ID | Name | Status | Tasks | Notes |
| --- | ------------- | ------------- | ---------- | -------------- | --------------------- |
| 1 | schema-seed | Schema+Seed | ✅ done | P2-001, P2-002 | PRs #675, #677 merged |
| 2 | admin-crud | Admin CRUD | ✅ done | P2-003 | PR #678 merged |
| 3 | user-crud | User CRUD | ✅ done | P2-004 | PR #682 merged |
| 4 | agent-routing | Agent Routing | ✅ done | P2-005, P2-006 | PR #684 merged |
| 5 | discord-ui | Discord+UI | 🔄 partial | P2-007, P2-008 | P2-008 done (PR #685) |
| 6 | verification | Verification | ⬜ pending | P2-009, P2-010 | Final gate |
## Task Summary
See `docs/TASKS.md` — MS22 Phase 2 section for full task details.
| Task | Status | PR | Notes |
| ----------------------- | -------------- | ---- | ------------------------------ |
| P2-001 Schema | ✅ done | #675 | AgentTemplate + UserAgent |
| P2-002 Seed | ✅ done | #677 | jarvis/builder/medic templates |
| P2-003 Admin CRUD | ✅ done | #678 | /admin/agent-templates |
| P2-004 User CRUD | ✅ done | #682 | /api/agents |
| P2-005 Status endpoints | ✅ done | #684 | Agent status API |
| P2-006 Chat routing | ✅ done | #684 | Agent routing in chat proxy |
| P2-007 Discord routing | ⬜ not-started | — | |
| P2-008 WebUI selector | ✅ done | #685 | AgentSelector component |
| P2-009 Unit tests | ⬜ not-started | — | |
| P2-010 E2E verification | ⬜ not-started | — | |
## Token Budget
| Phase | Est | Used |
| ----------------- | -------- | ------------------ |
| Schema+Seed+CRUD | 30K | ~15K |
| User CRUD+Routing | 40K | ~25K |
| Discord+UI | 30K | ~15K (P2-008 done) |
| Verification | 10K | — |
| **Total** | **110K** | **~55K** |
## Session Log
| Date | Work Done |
| ---------- | ----------------------------------------------------------------------------------------------------------------- |
| 2026-03-05 | Session 3: Completed P2-008 (WebUI agent selector) PR #685. Milestones 1-4 + P2-008 complete (3 tasks remaining). |
| 2026-03-04 | Session 2: Fixed CI security audit, merged PRs #681, #678, #682. Milestones 1-3 complete (4/6 remaining). |
| 2026-03-04 | P2-001..003 shipped; CI fix; postgres rebuilt; mission initialized |