📞Office Number: (281) 598-7969

📞Clinical Question: (409) 839-4600

Fix in this order, verifying each with the actual test (not just typecheck) before moving to the next:
1. Schema fix (1.1): Add a new patch migration (e.g. 063_add_updated_at_to_content_articles) to src/lib/migrations.ts — do NOT edit migration 062 directly since it already ran on the dev DB. Add updated_at column with a sensible default matching the created_at pattern already used elsewhere. After migrating, actually test an article status transition and the penalty cron to confirm no more “no such column” crash.
2. Schedule panel fixes (1.4 + 1.5): Rewrite content-schedule-panel.tsx to call /api/content/schedules and /api/content/articles instead of the legacy batches/tasks endpoints. Fix the assign call to send { schedule_id } not { batch_id }. Either add real dry-run/preview support to /api/content/assign, or remove the d.preview check from the frontend and handle the real immediate-mutation response — pick whichever matches the original spec intent (check CONTENT_SYSTEM_SPEC.md Phase 5). Test the actual upload → assign flow end-to-end after this fix, not just a build check.
3. Credits contract (1.2 + 1.3): Align field names between /api/content/credits and content-credits-panel.tsx — pick one naming convention and update whichever side is wrong. Add the missing /api/content/credits/transactions route. Test by actually clicking into a writer’s row in the UI.
4. Invite fixes (1.6 + 1.7): Add email to the INSERT in the accept-invite route. Implement real email sending via Outlook MCP in the invite route, following the same pattern already working in assign/route.ts and cron/penalty/route.ts.
5. Jacob MCP tools (1.8): Implement the three missing tools in mc-mcp-server.cjs per the spec.
One file-editor subagent at a time, never parallel on the same file. Commit to git after each numbered step passes its real test, not just typecheck/build.

Leave A Comment

All fields marked with an asterisk (*) are required