Skip to content

Core: EnvironmentSetValidator for multi-document coherence #44

Open

Description

@AamiriYouness

Implements ADR-0006 Decision 1's coherence rules.

  • EnvironmentSetValidator, invoked alongside ObservationSetValidator via ValidationResult.Combine in ParsePath's multi-document flow.
  • New BGV3xx diagnostic codes for:
    • mixed document-level HostEnvironmentInfo presence;
    • conflicting known coherence values.
  • Check the current diagnostic-code registry before assigning numbers; none are reserved by the ADR.
  • Intersection semantics:
    • equal known values -> preserved;
    • known vs missing -> null;
    • differing known concrete values -> reject;
    • all documents report the same sentinel -> preserve the sentinel;
    • concrete value in some documents and sentinel in others -> coherent, aggregate to null.
  • Reuses BenchmarkResultParseException; no new exception type.

Depends on: #43.

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