Skip to content

feat(variant): Phase 2 — variant config loading + validate/coverage wiring #287

@avrabe

Description

@avrabe

Context

Phase 1 MVP shipped in #285: Artifact::fields_per_variant + fields_for_variant() Cow-based resolver, yaml_hir typed parser. The building block is in place; nothing consumes it yet across validate / coverage / serve.

Phase 2 scope

Per docs/design/variant-aware-properties.md:

  1. Load variant configs from artifacts/variants/*.yaml into the schema/project context.
  2. Add --variant <name> flag to relevant commands (validate, coverage, list, query).
  3. Validate honours per-variant field overlays when checking required-fields / allowed-values per artifact type.
  4. Coverage scopes counts by active variant where the variant alters delegated chains.
  5. Serve / docs surface the active variant in the artifact view.

Out of scope (Phase 3+)

  • Multi-variant cross-product reports.
  • Variant-aware supplier anchors (when: clause on external-anchor).

Refs: design doc §6 Phase 2, original issue #255.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions