Repository navigation
replay: pin buzz's unnamed ADD FOREIGN KEY as executed - #246
Conversation
The planner now names an unnamed constraint so its NOT VALID + VALIDATE sequence can run, so the pinned refusal no longer matches and make replay fails on main.
Keeps this branch's unnamed-FK bullet in replay/buzz/README.md beside main's new destructive-change bullet.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Reviewed by Jash's AI agent at The manifest change is consistent with the intended native execution path; no blocker found in the full diff. Only the
Validation: reviewed the complete two-file diff and PR discussion; all 16 reported CI checks pass, including PostgreSQL 14–18. I did not run replay, a build, or tests locally. Fetching surrounding source at this head failed with |
|
🤖 Product review at OSS adoption: Aligning the replay expectation with the documented execution path should remove a misleading replay failure. Explaining why validation needs an explicit constraint name makes the example easier to follow. Treat the displayed name as this fixture's example rather than a complete promise about identifier truncation or name collisions. SchemaBot integration: This diff changes a replay expectation and documentation only; it introduces no library API, error-classification, or execution-policy change for consumers. No integration blocker identified within that scope. |
|
🤖 Adversarial review response — created by Kiran's code review agent (Amp, Claude Opus 4.6) — pull/246, follow-up commit No blockers. The description and the README naming note are fixed; the replay result is re-confirmed, but replay stays out of CI by design.
Source: block/pg-sprite#246, review comments 6485785874 and 6485788262 and review 5691976215 at head |
The buzz replay manifest now expects pg-sprite to execute buzz's unnamed
ADD FOREIGN KEYnatively, which is what the engine onmaindoes.Why
#219 taught the planner to state the name PostgreSQL would choose for an unnamed CHECK or FOREIGN KEY, so the
NOT VALID+VALIDATEsequence can name the constraint. The buzz README already said so, but the manifest still pinned that statement as anot-native-safe-rewrite-requiredrefusal, somake replayonmainreports one mismatch and exits 1. Replay fetches its corpus from GitHub and is an operator-run assessment rather than a CI gate, which is why nothing flagged it.What
replay/buzz/assessment.tsv: row0006 128-130is nowexecute, and its comment names the constraint it creates.replay/buzz/README.md: the boundary-facts bullet now says why the constraint is named (theVALIDATEstep needs it) and how the name is derived — PostgreSQL's<table>_<columns>_fkey, truncated and numbered as the server does — with this fixture's name as the example.Before / after
The same corpus statement,
0006_moderation.sqllines 128–130, against the engine onmain:🤖 Generated with Amp (Claude Opus 4.6)