Skip to content

Versioned schemas for the artifacts stages exchange #327

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 4. Size: M.

Problem

Stage artifacts are implicit dicts, so a reader cannot validate what another stage or another person produced.

  • Web Fetch: ProviderResult and AttemptRecord are dataclasses (web_fetch/models.py:33-70) but metrics and provider_metadata are untyped and results.jsonl has no schema.
  • Web Extract has no dataclasses; Search result rows are dicts; browser tracks tag dicts with schema strings (trajectory_replay/remote_runtime.py:541).
  • A cohort size is part of a schema name: webarena_three_method_inputs/1 (trajectory_replay/webarena_results.py:297, 526, 555, remote_execution.py:850, 1207), with scripts/run_remote_three_method_cohort.py hash-bound at remote_execution.py:943.

Direction

Give call records and scored results of each track a named, versioned schema, validated where a stage reads them, and share the common fields (method identity, case, timing, evidence bindings, verdict) across tracks. New schema names carry no cohort size; the existing three-method schema stays readable as a historical version.

Done when

  • Each track validates its call records and scored results on read.
  • The report builder and result exporter consume the scored-results schema only.

Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Done: shared harness/record_schema.py; Web Fetch, Web Search, Web Extract, Browser Use and Trajectory Replay records are versioned and validated on read, and report builders and exporters read through them (#371, #374, #378). Remaining unvalidated reads in hash-bound Extract pipeline.py/repair.py are tracked in #379.

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

    refactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions