Skip to content

A contributor that implements ISchemaContributor directly passes the base class's refusals by #48

Closed

Description

@CaffeinatedCoder

Found by the analysis of #46.

Problem

The refusals that make Plan and ImpactOf trustworthy are in SchemaContributor<TDeclaration, TDescriptor>: an InPlace with no statement, statements beside another answer, a null answer, a descriptor that is not a record. ISchemaContributor is public, AddSchemaContributor<T>() is constrained to class, ISchemaContributor, and SchemaContributorRegistry takes any ISchemaContributor. A class that implements the interface itself is registered and none of those refusals runs.

Evidence

The analysis registered such a class. The registry accepted it; its Plan answered InPlace with no statement and its ImpactOf returned null, neither refused. Contributors/Internal/SchemaContributorRegistry.cs checks the owner, the placement and one contributor per owner, and nothing else.

Also: on the base class only Plan and ImpactOf have a null check. Resolve and Claims returning null are not refused.

Decide before the contract freezes at rc.1

Either the registry refuses a contributor that does not derive from SchemaContributor<,>, or the planner (#24) applies the checks around every call, whoever implements the interface.

Done when

A direct implementation is refused when the registry is built, or its InPlace without statements and its null answers are refused by the planner, with a test that fails without the check. Resolve and Claims returning null are refused.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    bug
    package/core
    severity/medium
    area/migrations
    on Nov 11, 2026
  3. added a commit that references this issue on Nov 12, 2026
    d492540
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/migrationsbugpackage/coreseverity/medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions