chore(ms22-p2): initialize mission, update manifest and TASKS

This commit is contained in:
2026-03-04 19:53:57 -06:00
parent 82b1b4cb41
commit 8b38026fed
3 changed files with 78 additions and 84 deletions

View File

@@ -1,52 +1,67 @@
# Mission Manifest — MS21 Multi-Tenant RBAC Data Migration
# 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:** ms21-multi-tenant-rbac-data-migration-20260228
**Statement:** Build multi-tenant user/workspace/team management, break-glass auth, RBAC UI enforcement, and migrate jarvis-brain data into Mosaic Stack
**Phase:** Intake
**Current Milestone:**
**Progress:** 0 / 6 milestones
**Status:** active
**Last Updated:** 2026-02-28 17:10 UTC
**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-04
## Success Criteria
<!-- Define measurable success criteria here -->
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 | Branch | Issue | Started | Completed |
| --- | ------- | -------------------------- | ------- | ------ | ----- | ------- | --------- |
| 1 | phase-1 | Schema and Admin API | pending | — | — | — | — |
| 2 | phase-2 | Break-Glass Authentication | pending | — | — | — | — |
| 3 | phase-3 | Data Migration | pending | — | — | — | — |
| 4 | phase-4 | Admin UI | pending | — | — | — | — |
| 5 | phase-5 | RBAC UI Enforcement | pending | — | — | — | — |
| 6 | phase-6 | Verification | pending | — | — | — | — |
| # | 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 | 🔄 next | P2-004 | Depends on M2 |
| 4 | agent-routing | Agent Routing | ⬜ pending | P2-005, P2-006 | Depends on M3 |
| 5 | discord-ui | Discord+UI | ⬜ pending | P2-007, P2-008 | Depends on M4 |
| 6 | verification | Verification | ⬜ pending | P2-009, P2-010 | Final gate |
## Deployment
## Task Summary
| Target | URL | Method |
| ------ | --- | ------ |
| | | |
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 | ⬜ not-started | — | |
| P2-005 Status endpoints | ⬜ not-started | — | |
| P2-006 Chat routing | ⬜ not-started | — | |
| P2-007 Discord routing | ⬜ not-started | — | |
| P2-008 WebUI selector | ⬜ not-started | — | |
| P2-009 Unit tests | ⬜ not-started | — | |
| P2-010 E2E verification | ⬜ not-started | — | |
## Token Budget
| Metric | Value |
| ------ | ------ |
| Budget | — |
| Used | 0 |
| Mode | normal |
| Phase | Est | Used |
| ----------------- | -------- | -------------------- |
| Schema+Seed+CRUD | 30K | ~10K (done directly) |
| User CRUD+Routing | 40K | — |
| Discord+UI | 30K | — |
| Verification | 10K | — |
| **Total** | **110K** | **~10K** |
## Session History
## Session Log
| Session | Runtime | Started | Duration | Ended Reason | Last Task |
| ------- | ------- | ------- | -------- | ------------ | --------- |
## Scratchpad
Path: `docs/scratchpads/ms21-multi-tenant-rbac-data-migration-20260228.md`
| Date | Work Done |
| ---------- | ------------------------------------------------------------------ |
| 2026-03-04 | P2-001..003 shipped; CI fix; postgres rebuilt; mission initialized |