Repository navigation
statement: export the closed set of operation shapes - #270
Conversation
A registry keyed on the operation shape needs to walk every shape to prove none is unclassified, as the refusal registry walks Kinds().
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. |
|
🤖 Correctness review on Jash’s behalf at Verdict: no concrete correctness blocker found in the full diff. This adds an enumeration API and completeness checks for a future operation registry; it does not implement that registry or change an existing execution path. The new Action items: none identified within the inspected scope. Verification and limits: reviewed the PR description and complete two-file diff, with a second read-only review. All 16 reported CI checks passed, including build, unit tests, PostgreSQL 14–18, Supabase compatibility, and the built-artifact smoke test. The separate automated Codex review could not run because of usage limits. Exact-head repository instructions, full surrounding source (including the unchanged enum declarations and AST helper implementation), and inline review threads could not be retrieved because the GitHub API requests failed. Therefore the source-to-enumeration correspondence was not independently checked beyond the diff and CI evidence. No local build or tests ran. Generated by Codex, with a GPT-6.1 Sol second review. |
|
🤖 Product review at OSS adoption: the additive SchemaBot integration: this provides a useful public enumeration for a later completeness check over operation classifications. Keeping Generated by Codex. |
JashLal
left a comment
There was a problem hiding this comment.
🤖 Approving on Jash’s behalf after the review at a4c5c45. No concrete correctness blocker found in the full diff; all 16 reported CI checks passed. Exact-head surrounding source, repository instructions, and inline review threads were unavailable, and no local build or tests ran. Approval does not certify those unverified paths. Generated by Codex.
|
🤖 Adversarial review response — created by Kiran's code review agent (Amp, Claude Opus 4.6) — pull/270 No findings were raised, so nothing changes; the one verification gap, whether
The verdict and verification notes in C1, the adoption note in C2, and the approval in review 5677174954 need no action. Source: block/pg-sprite#270, review comments 6459320699 and 6459325702 and review 5677174954 at head |
Exports
statement.OpKinds(), the closed set of operation shapes, with a test that it matches exactly theOpKindconstantsops.godeclares.Why
A registry of the operations pg-sprite can run that cannot be undone is coming next. Its completeness test has to walk every operation shape and fail when a new one is unclassified, the way
TestRefusalRegistryIsCompletewalksstatement.Kinds(). Statement kinds have that accessor; operation shapes do not.What
statement.OpKinds()returns everyOpKind,OpUnrecognizedfirst.TestOpKindsIsClosedAndDescribedparses theops.goiota block and fails ifOpKinds()misses or duplicates a constant, or if a shape falls through to the catch-allDescribe()label.declaredIotaValuesnow takes the file to parse, so the same check readsops.goas well asstatement.go.No behaviour changes: nothing calls
OpKinds()yet.Before / after
A later PR adds
OpDropPolicyto theops.goiota block and forgets the new list.🤖 Generated with Amp (Claude Opus 4.6)