M-0: check-no-schema-migration-in-turn.sh boundary gate (Failure Mode 5) #99

Open
opened 2026-05-12 19:36:46 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:36:46 +00:00 (Migrated from github.com)

Goal

Add check-no-schema-migration-in-turn.sh boundary gate that blocks any .sql or Migration_.swift file change in M-7's branch. Pre-emptive mitigation for Failure Mode 5 (in-flight turn lost during M-7 deploy).

Scope

  • Boundary script greps for SQL/migration file changes when on migration/m7-turn branch
  • Fails PR if schema delta proposed in M-7
  • Schema migrations belong to quiet phases, not keystone migration commits

Files

  • scripts/check-no-schema-migration-in-turn.sh (new)

Acceptance

  • Gate green on develop
  • Gate fails when test SQL file added on m7-turn branch (negative test)

Test

Negative test: stage migrations/v3.sql on m7-turn branch → gate fails. Positive: no schema delta → green.

Parent epic

#4

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §5.5 Failure Mode 5

## Goal Add check-no-schema-migration-in-turn.sh boundary gate that blocks any *.sql or Migration_*.swift file change in M-7's branch. Pre-emptive mitigation for Failure Mode 5 (in-flight turn lost during M-7 deploy). ## Scope - Boundary script greps for SQL/migration file changes when on `migration/m7-turn` branch - Fails PR if schema delta proposed in M-7 - Schema migrations belong to quiet phases, not keystone migration commits ## Files - `scripts/check-no-schema-migration-in-turn.sh` (new) ## Acceptance - [ ] Gate green on develop - [ ] Gate fails when test SQL file added on m7-turn branch (negative test) ## Test Negative test: stage `migrations/v3.sql` on m7-turn branch → gate fails. Positive: no schema delta → green. ## Parent epic #4 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §5.5 Failure Mode 5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#99