Repository navigation
verdict: name what a stopped run leaves in a typed standing_run field - #708
Conversation
A wrapper that warns about a standing slot or write fence had to parse the refusal's detail sentence.
Codex Review Summary: ❌ FailedThis 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. |
|
🤖 Review 1/2 (correctness) of 4aa0a56: 0 blocking, 2 non-blocking. Inspected the whole change at The change adds a pointer field Invariants ( Non-blocking
Verified
This review was generated by Claude Code (claude-sonnet-5-5). |
|
🤖 Review 2/2 (OSS adoption and integration) of 4aa0a56: 0 blocking, 4 non-blocking. Read the change from two seats: a host that wraps Non-blocking
What reads well for adopters
This review was generated by Claude Code (claude-sonnet-5-5). |
aparajon
left a comment
There was a problem hiding this comment.
🤖 Stamping with comments: 0 blocking, 6 non-blocking (see the review comments above).
This stamp was left by Claude Code (claude-sonnet-5-5).
|
🤖 Local review of P2 — Pin the recorded-fence case without a live fence. The new write-fence integration test covers a live fence. Add a verdict case for This was a static review. I did not run tests locally. GitHub reports 18 passing checks on this head. BuilderBot's result was unavailable, and I couldn't verify unresolved inline threads. CI summary |
A host reading only the field could warn that writes are refused on a table whose recorded fence was dropped by hand. The docs now lead with that, say how each kind of host reads the field and how it pairs with the discard report, and a unit test pins hold write-fence beside writes_blocked false.
|
🤖 Adversarial review response — created by Kiran's code review agent (Amp, claude-opus-5-5) — pull/708, follow-up commit All six findings are fixed in the follow-up commit: the docs now say
No action: C1-F2 (the PostgreSQL 18 leg's container-reaper failure in Source: block/pg-sprite#708, review comments 7365377275, 7365378468 and 7383600924, and reviews 6162611533 and 6173114047 at head |
A refusal that meets a stopped copy-and-swap run now carries
standing_run, a typed field naming what that run left on the database.Why
Copy-and-swap changes a table by building a new copy of it (the shadow table) and keeping it in step with the original, through either a replication slot or a write fence (a trigger that blocks writes). A stopped run leaves those behind, and a slot keeps the server's WAL from being recycled until the run finishes or is discarded. pg-sprite described them only in the refusal's sentence, so a tool around
migrate --jsonthat wanted to warn "a replication slot is holding WAL" had to parse prose.What
pkg/verdict/standing_run.go:standing_runhasshadow(quoted),hold(slotorwrite-fence),slotandpublication(only underhold: slot), andphase. It is omitted when nothing stands.copySwapRunVerdictfrom the*schemachange.StandingRunError, so everycopy-and-swap-refusedcause that carries one has it:cutover-schema-drift,cutover-fidelity-drift,copy-conversion-drift,resume-source-changed,resume-slot-held,resume-slot-backlog, and aresume-row-mismatchwhose row matches the shadow.migrate --desiredgets it through the same function.ErrInvariantViolation, not a guessed value.format_version, and the recentlock_holderandpartitioned_index_faultadditions bumped nothing.hold: write-fence, andwrites_blocked: falsesays no fence stands.schemabot-integration.mdsays the field is the row's record, how amigrate.Runhost and aschemachange.Runnerhost each read it, and which keys matchpg-sprite discard --json. Theresume-source-changedexample incli-output-examples.mdshows the terminal text and the--jsonwith the field. ST-2 and ST-5 indocs/invariants.mdname the field and its tests.migrate --json.Before / after
A live retype of
ordersstopped inverifying; someone then added a column toordersby hand, and the next run is refused.