docs: align SchemaBot integration contract with execution-mode verdicts - #18
Open
Kiran01bm wants to merge 1 commit into
Open
docs: align SchemaBot integration contract with execution-mode verdicts#18Kiran01bm wants to merge 1 commit into
Kiran01bm wants to merge 1 commit into
Conversation
The internal low-level design's SchemaBot section was rewritten around schemabot's execution-mode verdicts, direct execution, and engine-keyed consent copy; propagate that contract to the OSS integration doc (the single home for it) and carry the PK-reshape route decision into the refused-operations table. Links verified against block/schemabot main.
Kiran01bm
marked this pull request as ready for review
August 7, 2026 03:44
Kiran01bm
requested review from
JashLal,
aparajon,
eeSeeGee,
jayjanssen,
jemiahw and
morgo
as code owners
August 7, 2026 03:44
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docs-only sweep aligning the public doc set with the latest internal low-level design. The one real drift was the SchemaBot integration contract: SchemaBot has since shipped per-statement execution-mode verdicts, a direct-execution policy, and engine-keyed consent copy, and
docs/schemabot-integration.md— the designated single home for that contract — predated all of it.What
docs/schemabot-integration.md:PlanreturnsTableChange{…, ExecutionMode, ModeReason}and maps a pg-sprite refusal toengine.ExecutionModeBlockedat plan time (previously misplaced underApply).Applymust re-resolve the routing decision at execution time rather than trusting the stored plan-time verdict.blocked/directverdict vocabulary, the v1 decision that PostgreSQL targets do not getdirect_execution(the native route holdsACCESS EXCLUSIVEand blocks reads, so MySQL's risk framing does not transfer), plan-time-advisory / apply-time-re-resolve as OC-4, fail-closed partition ordering, the transactional-DDL advantage (LK-4), and the split-outcome consent-copy wording.docs/low-level-design.md: the ALTER/DROP PRIMARY KEY refusal row regains its route decision — PK reshape goes through expand/contract; SchemaBot's small-table direct-execution answer is deliberately not adopted on PostgreSQL.Why
The adapter contract shapes pg-sprite's verdict and plan surfaces long before the adapter exists; documenting the current upstream contract (verdict fields, TOCTOU discipline, ordering rules) keeps the seam accurate for both external users and the future integration. All upstream references were verified against
block/schemabotmain(pkg/engine/engine.goverdict vocabulary,docs/direct-execution.md § Engine compatibility).References