Skip to content

test: renew law suites and fixture contracts over the runtime substrate #232

Closed

Description

@Sinity

Ref #227

Outcome

Renew the highest-friction verification helpers and law suites so they reflect the current runtime substrate contracts instead of older dict-shaped or Any-heavy seams.

Problem

The repo baseline is green, but the verification layer still has several dense hotspots where tests and devtools encode historical runtime shapes too loosely: shared storage builders, source/pipeline law suites, validation-lane coverage tests, and the pipeline probe helper all still lean on broad Any, object, casts, or hand-shaped payloads. That makes the verification surface harder to trust and harder to evolve alongside the renewed substrate.

Expected scope

Likely modules include:

  • tests/infra/storage_records.py
  • tests/unit/sources/test_source_laws.py
  • tests/unit/pipeline/test_run_sources.py
  • tests/unit/devtools/test_validation_lanes.py
  • devtools/pipeline_probe.py
  • adjacent follow-through in related law/helper suites where the same contract shape is duplicated

Acceptance criteria

  • Shared test builders express runtime/storage contracts directly instead of through loose container plumbing.
  • Source/pipeline/devtools law suites use clearer typed helpers and less ad hoc casting.
  • The tranche lands as a coherent PR with devtools verify green.

Verification plan

Run targeted pytest and mypy on the touched law/helper suites, then devtools verify.

Activity

  1. added 4 commits that reference this issue on Apr 22, 2026
    f3a62e9
    a05ab96
    50d552d
    8bae490
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions