ubiquitous-invention/packages/database/migrations/meta
Randall Stillwell 72aa2a5f0c feat(backlog): workflow_prompt with task → epic → plan inheritance
Adds the data layer for per-item agent prompts. Markdown frontmatter
gets an `agent_prompt:` block scalar that survives the importer
round-trip (newlines preserved), and `resolveWorkflowPrompt()` walks
task → epic → plan → built-in default returning both the resolved
string and the source level. Walk is slug-based, not parent_id-based,
because the importer leaves parent_id briefly null mid-transaction.

tRPC `backlog.getWorkflowPrompt` returns ownOverride + effectivePrompt
so future UI can render the override box + preview without two
queries. `backlog.updateWorkflowPrompt` is owner/admin-gated (prompts
change downstream Cursor/Claude behavior) and audit-logged on every
write.

UI deferred — apps/web doesn't have a backlog-item detail panel yet;
the existing object-detail panel is for the objects table. Follow-up
filed at Task-workflow-prompt-task-detail-ui.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 22:18:18 -05:00
..
0000_snapshot.json feat: ECHODO app shell, Coolify deploy, Authentik + Umami 2026-04-26 14:34:34 -05:00
0001_snapshot.json feat: ECHODO app shell, Coolify deploy, Authentik + Umami 2026-04-26 14:34:34 -05:00
0002_snapshot.json feat: ECHODO app shell, Coolify deploy, Authentik + Umami 2026-04-26 14:34:34 -05:00
0003_snapshot.json multi-tenancy: promote workspaces to top-level table 2026-05-06 23:02:55 -05:00
0004_snapshot.json auth: case-insensitive emails, Authentik SSO, first-signin workspace provisioning 2026-06-01 23:45:00 -05:00
0005_snapshot.json feat(identity): schema + helpers + read-only profile UI (Task 1, part 1/2) 2026-06-02 10:07:50 -05:00
0006_snapshot.json feat(invites): workspace_invites schema + tRPC router + role management (Task 2, part 1/2) 2026-06-02 10:27:44 -05:00
0007_snapshot.json feat(audit): append-only audit_log, workspace archive cascade + restore, audit view 2026-06-02 15:35:16 -05:00
0008_snapshot.json feat(backlog): workflow_prompt with task → epic → plan inheritance 2026-06-02 22:18:18 -05:00
0009_snapshot.json feat(runs): agent_runs table + tRPC router + settings UI 2026-06-02 22:16:04 -05:00
_journal.json feat(runs): agent_runs table + tRPC router + settings UI 2026-06-02 22:16:04 -05:00