Entity Overview
All portal entities, their relationships, and the design philosophy behind them.
πΊοΈ Entity Mindmap
π Entity Matrix
| Entity | D1 Table | Mutable? | Lifecycle | API |
|---|---|---|---|---|
| π Task | tasks |
Yes | draft β backlog β active β done β archived | Full CRUD |
| π₯ Feedback | feedback |
Yes | open β processed | parked β archived | Full CRUD |
| π¬ Comment | comments |
No | Append-only | GET/POST |
| π Report | reports |
Yes | Active β archived | Full CRUD |
| π Message | messages |
Yes | Sent/read tracking | Full CRUD |
| π Remote Job | remote_jobs |
Yes | pending β running β done/failed | Full CRUD + SSE |
| β±οΈ Velocity | velocity_logs |
Write-only | β | GET/POST/DEL |
| π Session Log | session_logs |
Write-only | β | GET/POST/DEL |
| π Project | projects |
Yes | active β completed β archived | Full CRUD |
| π΄ Problem | problems |
Yes | π΄ Solve β π‘ Bear β π’ Accept | Full CRUD |
| π³ Nexus | nexus |
Yes | Vision tree nodes | GET/POST/PATCH |
| π§ͺ Distill | distill |
Yes | Pipeline items | GET/POST/PATCH |
| π Learning | learnings |
Write-mostly | β | GET/POST |
| π Workflow Usage | workflow_usage |
Write-only | β | GET/POST |
| βοΈ Preferences | preferences |
Yes | β | GET/PATCH |
𧬠Design Philosophy
Two opposing intents: The portal captures both permanent history (Comments, Logs)
and actionable work-in-progress (Feedback, Tasks). These are deliberately separated into different
entities to prevent conflation.
Two Loops reflected in entities: Entities have D1 tables and API endpoints. Concepts (like "Project" and
"Session") are implicit β tracked via fields or conventions, not their own tables.
Soft-delete everywhere: No record is ever physically deleted. Status PATCHed to
archived. Comments are the extreme case β they are literally append-only with no UPDATE
or DELETE.