Skip to content

follow writ#19: n/a is a finding, compare loses a broken law, NOT VALID declined - #13

Merged
sajonaro merged 1 commit into
db-migration-problems-2from
follow-writ-gaps
Oct 3, 2026
Merged

sajonaro merged 1 commit into
db-migration-problems-2from
follow-writ-gaps

Conversation

@sajonaro

@sajonaro sajonaro commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Follows writ-lang/writ#19. Merge after it. Stacked on #12 (base db-migration-problems-2).

The assertions and READMEs that recorded writ's old behaviour now record the new:

  • agent-guardrails: the cheat that deletes the out arrow now makes writ check exit 1 (it was 0). The README says this scenario is how that was found.

  • compare reports a law declared in both models and broken in the new one as LOST, with its route. Affected:

    • rename-a-column's "the verb that does NOT catch it";
    • the drop-a-column and add-a-required-column READMEs;
    • expense-approval (two-for-large);
    • entitlement-problems' caution paragraph;
    • git-compare's one-capture.

    The migration READMEs now say both gates catch it, rather than "compare is the wrong gate".

  • add-a-foreign-key: writ sql declines NOT VALID (exit 1 under --strict) and VALIDATE CONSTRAINT, each with its reason.

./run-tests.sh all against writ at writ-gaps: 306 checks, 0 failed. Against the released 0.3.0 it fails those seven assertions, which is the point.

🤖 Generated with Claude Code

…w, NOT VALID declined

Assertions and READMEs that recorded the old behaviour now record the new:
- agent-guardrails: the cheat that deletes `out` makes check exit 1 (was 0);
- compare reports a law declared in both and broken in the new model as LOST
  with its route (rename-a-column's "the verb that does NOT catch it", drop,
  add-required, expense-approval, entitlement-problems, git-compare's
  one-capture); the migration READMEs no longer say compare is the wrong gate;
- add-a-foreign-key: writ sql declines NOT VALID (exit 1 under --strict) and
  VALIDATE CONSTRAINT, each with its reason.

Needs writ with branch writ-gaps; 306 checks against it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sajonaro
sajonaro merged commit 1039f13 into db-migration-problems-2 Oct 3, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant