Skip to content

SchemaKit 11.0.0-preview.1: the first slice of the new API, on EF Core 11 / Npgsql 11 under the new ids #2

Open
3 of 3 issues completed
CaffeinatedCoder/EFCore.ComplexIndexes
#47

Description

@CaffeinatedCoder

Decided 2026-11-14 by the maintainer: gate A. preview.1 ships soon, on the path of the comment of 2026-11-14 below: the confirmed defects fixed or refused (#98 first, then #102, #101, #99 with #100, #103, #110), the lambda factories out of the kernel (#112), the provider capability stamp and the version check (#113), the minimum that publishes (#35, #5, #34, #106, #73). The stored form of a template is declared not final for this preview (#9). The binder, the ordered plan, the measured impact table, the landing function and the second provider (#114, #115, #117, #118, #119) are preview.2's. GPT's condition stands: if #112 cannot specify the unmarked value API so that binding later changes no public answer, the binder comes first.


Added 2026-11-12: the migration guide's first cut (#73) is part of preview.1. It covers what this preview ships (the wiring, exclusion constraints and their lambda filters) and lists every other 5.x usage with the preview it comes with. The guide is complete at rc.1.


Decided 2026-11-12 by the maintainer: the lambda translator (#26) comes before the PostgreSQL package (#25), so that an exclusion constraint in preview.1 takes a lambda filter. The plan had the translator in preview.2. A 5.x consumer that passes its exclusion filters as lambdas could otherwise not try preview.1 without rewriting them as SQL.


Scope decided 2026-11-11 (plan, section 6): preview.1 is the kernel host with the three wiring guards, exclusion constraints on PostgreSQL, their 5.x reader, and the exclusion half of the handover. It starts only after spikes A and B pass. There is no rename and no cut any more: this is a new repository, and "on main" below means here. .targets files are not part of it (plan, section 3.2).


State on 2026-11-11. .NET 11 and EF Core 11.0.0 are generally available. Npgsql.EntityFrameworkCore.PostgreSQL is at 11.0.0-rc.3, which pins EF Core rc.3 exactly, so the platform bullet below reads rc.3 where it says rc.2, and the floors move to [11.0.0, 12.0.0) when Npgsql ships 11.0.0. CodoMetis.ValueRanges.EFCore.PostgreSQL 11.0.0-preview.1 is not on NuGet yet (CaffeinatedCoder/CodoMetis.ValueRanges#332). Still blocked by #11.

Rescoped 2026-10-19 (later): SchemaKit gets a new API (#11), and no preview ships the 5.x API under the new ids. 11.0.0-preview.1 is the first slice of that API: the kernel plus at least one feature end to end, as #11 names it. The retarget and rename below still happen, but on the new code, not as a preview of the old surface. Blocked by CaffeinatedCoder/EFCore.ComplexIndexes#55 (5.5.0 and the cut) and #11.

Rewritten 2026-10-19 for the spin-off (#1). The long-lived net11 branch is dropped, as CodoMetis.ValueRanges dropped its own (CaffeinatedCoder/CodoMetis.ValueRanges#280).

This starts after v5.5.0 is tagged and release/5.x is cut at the tag (CaffeinatedCoder/EFCore.ComplexIndexes#36). Then, on main:

CaffeinatedCoder/EFCore.ComplexIndexes#47 holds the retarget measurements on EF Core 11 rc.1: no source change, 339/339 tests passing, byte-identical SQL, differ registration and snapshot round-trip unchanged. They show the EF Core 11 internals under the differ are unchanged, which the new kernel relies on. CaffeinatedCoder/EFCore.ComplexIndexes#47 is not merged as it is.

Measure, with the output pasted here:

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added this to the 11.0.0 milestone on Oct 18, 2026
  2. added
    chore
    package/core
    package/postgresql
    package/sqlserver
    area/migrations
    on Oct 18, 2026
  3. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Sequencing note (2026-10-18): CodoMetis.ValueRanges' integration suite and consumer smoke test now reference EFCore.ComplexIndexes.PostgreSQL 5.4.0 (its PRs CaffeinatedCoder/EFCore.ComplexIndexes#158/#159), whose Npgsql EF pin [10.0.0, 11.0.0) cannot restore on net11.0. ValueRanges' retarget (its CaffeinatedCoder/EFCore.ComplexIndexes#103) therefore waits for this preview, or excludes those tests on net11.0 until it exists. This issue goes first in the cross-repo order.

  4. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Measured on the net11 branch (PR CaffeinatedCoder/EFCore.ComplexIndexes#47, draft), 2026-10-18:

  5. changed the title [-]Retarget to net11.0 / EF Core 11 RC2 / Npgsql 11 RC on a net11 branch and publish 11.0.0-preview.1[/-] [+]SchemaKit 11.0.0-preview.1: retarget main to EF Core 11 / Npgsql 11 rc.2 under the new ids[/+] on Oct 19, 2026
  6. changed the title [-]SchemaKit 11.0.0-preview.1: retarget main to EF Core 11 / Npgsql 11 rc.2 under the new ids[/-] [+]SchemaKit 11.0.0-preview.1: the first slice of the new API, on EF Core 11 / Npgsql 11 under the new ids[/+] on Oct 19, 2026
  7. added
    chore
    package/core
    package/postgresql
    package/sqlserver
    area/migrations
    on Nov 11, 2026
  8. added this to the 11.0.0 milestone on Nov 11, 2026
  9. CaffeinatedCoder commented on Nov 14, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Proposed 2026-11-14, after the pre-preview review of main @ 948496a. Not decided: the maintainer's call on each line, and on the gate at the end. Four analysts ran the code on PostgreSQL 16 and 18, GPT read it cold twice and debated the plan and the architecture in five rounds; every finding below was reproduced before it was filed.

    What the review found

    Baseline green: 512 kernel tests, 176 of the PostgreSQL package with the live ones, 125 probes. From a packed consumer outside the repository every runtime and design-time path is sound on both servers (the table on #34), and so are the snapshot round trip and the 5.x exclusion handover by catalog. Thirteen defects: #98 to #110.

    The path to preview.1

    The feature is wrong without these:

    It freezes, or keeps a later step open:

    It cannot ship without these:

    Cheap, and better before than after: #104, #108, #109, #107.

    Not in preview.1: the binder (#114), the timeline (#115), the effect adapters (#116), the measured impact table (#117), the landing function (#118) and the second provider (#119), which are preview.2's with PgIndex (#27); Sql.Raw<T> in an element (#25); the epoch corpus and the two open resolver rules (#33, #43); #22; a guard for #105, which gets a line in the guide and a report upstream.

    The gate, for the maintainer

    Both reviewers argue for A, GPT on one condition: that #112 can specify the unmarked value API now so that binding later changes no public answer. If it cannot, B. The strongest case for B is that only a real second provider finds a mistake in a public value that reading does not.

  10. CaffeinatedCoder commented on Nov 17, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Decided 2026-11-17 by the maintainer: the rest of #112 (what Predicate and KeyTarget show a consumer, and refusing a literal compared with a converted property and a nullable path) moves to preview.2, with #114. Its first point shipped in #132 and the cast refusal in #103. A preview promises nothing (#9), which answers the condition above: the value API may change in preview.2.

  11. CaffeinatedCoder commented on Nov 17, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Pre-tag review of 948496a..0ee827d, 2026-11-17. It covered every file under src/ the range changed, plus the tests beside them. It ran the skill migration-safety-review and one code-analyst with 59 seeded mutations, and every finding below was reproduced on 0ee827d.

    Nothing found blocks the tag. Filed for after it:

    Found sound:

    • IsOwn in both diff directions and in HasDifferences(snapshot, snapshot).
    • KeepInPlace over swaps, chains, and names EF Core takes, gives up or renames.
    • Name claims under the default schema.
    • The TPC and shared-table refusals.
    • GoesWith/KeyColumns.
    • The 5.x entity-type and operation lists, checked against the 5.x source.
    • The version check's commit stripping and its NoInlining split.
    • The owners table across model rebuilds.
    • The translator's conversion check, ConvertChecked and the enum refusal.
    • [ConstantExpected].

    Offline suites on 0ee827d: kernel 725, PostgreSQL 180, second provider 85, all passing.

    Not covered: no server was running, so none of the live tests ran (PostgreSQL 16/18, SQL Server), nor the consumer smoke test with Mixed/. release.yml was not run again beyond #14's dry run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationschorepackage/corepackage/postgresqlpackage/sqlserver

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions