Skip to content

refactor(e2e): add a typed target evidence API #6353

Closed

Description

@jyaunches

Parent: #6346

Problem

Sixty-one live specs manually write target.json and 34 manually write target-result.json. The payloads repeat runner: vitest and related metadata, while field names already drift between contract and contracts.

Proposed change

Extend the artifact/fixture layer with a typed target evidence API, for example target.declare(metadata) and target.complete(result), while retaining ArtifactSink as the redaction and publication boundary.

Acceptance criteria

  • Define typed target metadata and result shapes with an extension field for target-specific data.
  • Supply invariant fields such as runner centrally.
  • Validate or normalize contract/ contracts naming.
  • Preserve JSON filenames and redaction behavior expected by CI.
  • Migrate existing manual target.json and target-result.json writes.
  • Add focused e2e-support tests for schema validation, redaction, and emitted files.
  • No scenario assertion changes.

PR boundary

One evidence-layer PR; do not change workflow artifact upload behavior.

Activity

  1. added
    refactor
    area: e2e
    on Jul 6, 2026
  2. added a commit that references this issue on Jul 7, 2026
    9fe4cb3
  3. added a commit that references this issue on Jul 12, 2026
    b60c57e
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: e2erefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions