Files
evig/scripts
Mao NakamotoandClaude Opus 4.7 817321b095 chore(decisions): migration 087 — drop legacy protocol_decision_* tables (RR.3)
After RR.2 (bridge cutover), protocol_decision_votes +
protocol_decision_outcomes are unreferenced. Pre-cutover audit showed
0 rows in both tables in prod Neon, so this drop is data-loss-free.

NOT APPLIED YET. Application is blocked until the corresponding
runtime code is removed:
  - src/app/api/protocols/[id]/decisions/  (4 dead route handlers)
  - src/lib/services/protocols-voting.ts + test
  - protocolDecisionVotes/Outcomes Drizzle schemas
  - DecisionVoteRecord/OutcomeRecord types
  - The re-exports in src/lib/services/protocols.ts

The sandboxed agent shell rejected rm on these paths this session.
Cleanup script written at scripts/cleanup-rr3-legacy.sh (gitignored —
local helper) deletes the routes + service. After running it, the
schema/type cleanup + migration apply is a few lines.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 09:44:48 +02:00
..