Skip to content

feat: Impact.Blocks becomes Impact.RebuildAround, the answer also for an object an operation leaves broken - #62

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
feat/impact-rebuild-around
Nov 12, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
feat/impact-rebuild-around

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #61

Problem

Impact.Blocks was "the operation fails while the object exists". Spike E (#20) measured a case that needs the same action and is not a failure: a trigger whose body reads a column stays in the catalog through the column's rename and drop, on PostgreSQL and on SQL Server, and fails when it next fires. Lost would leave the broken trigger in place. The maintainer decided on 2026-11-12 to rename the case rather than stretch its documentation.

Change

  • Contributors/SchemaChange.cs: Impact.Blocks is Impact.RebuildAround, documented as "the object cannot stay as it is through the operation: the operation fails while it exists, or leaves it broken". The union keeps four cases.
  • SchemaKitStrings.ImpactReturnedNull names the new case.
  • design/schemakit-core-plan.md: the answer table of section 3.7, and the note under the measured tables, which now says that Blocks and Stale there are observations and both are answered RebuildAround.
  • The probe that answers ImpactOf uses the new case.

spikes/E.ImpactTable keeps Blocks and Stale as its own outcome names: they are what a server was seen to do, not the contract's answers.

The contract is experimental (SK9001); nothing outside the repository compiles against it.

Tests

Kernel tests without a server, on SDK 11.0.100 in the checkout: 326 before and after. Probes: 125 pass. The PostgreSQL integration tests did not run locally; CI runs them.

With the rename under src/ only, three tests failed, which is what holds the closed union and the surface: A_closed_union_has_the_cases_it_was_decided_with (Impact), The_public_types_are_the_ones_meant_to_be and An_impact_that_is_null_is_refused. Each is updated to the new name.

🤖 Generated with Claude Code

… an object an operation leaves broken

Spike E measured a trigger whose body reads a column: it stays in the catalog
through the column's rename and drop and fails when it next fires. That needs
the action of Blocks, drop before and create after, and is not a failure of
the operation. The case is renamed to what SchemaKit does.

Closes #61

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 12, 2026
@CaffeinatedCoder CaffeinatedCoder added enhancement New feature or request package/core Affects CodoMetis.EFCore.SchemaKit (the kernel) area/migrations The differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiring labels Nov 12, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 6687bd0 into main Nov 12, 2026
7 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the feat/impact-rebuild-around branch November 12, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/migrations The differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiring enhancement New feature or request package/core Affects CodoMetis.EFCore.SchemaKit (the kernel)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impact.Blocks becomes Impact.RebuildAround: it is also the answer for an object an operation leaves broken

1 participant