Skip to content

Core: tri-state environment compatibility comparison #45

Open

Description

@AamiriYouness

Implements ADR-0006 Decisions 3-4.

  • EnvironmentCompatibility, EnvironmentDimensionOutcome, EnvironmentDocumentPresence enums.
  • EnvironmentComparison(Verdict, BaselinePresence, CurrentPresence, Dimensions).
  • EnvironmentDimensionComparison(Dimension, Role, Outcome, BaselineValue: string?, CurrentValue: string?).
  • Reducer:
    • only Filter dimensions participate in the aggregate verdict;
    • precedence is Incompatible > Unknown > Compatible;
    • document absence short-circuits the aggregate verdict to Unknown;
    • every Filter / Advisory dimension is still emitted as Unknown under absence;
    • the present side's value is retained.
  • Field equality per Decision 3: strict typed/ordinal comparison, no normalization.
  • Sentinel values (e.g. HardwareTimerKind.Unknown) always produce Unknown, never Match, even when both sides carry the sentinel.

Depends on: #42.

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:coresize:mtype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions