test_the_flow_json_shape_is_in_the_manifest

Tests › tests/test_export.py

passed Passed in the packaged run.

What this test is for

Why it exists

PS1 (owner Q/A 2026-11-19): `clew wiki flow` JSON is covered, recorded after P5's sequence changes (block lanes, the actor, loop folding, replay values) so 2.0.0 ships its final shape. A later change is additive or bumps `flow_version`.

Given

  1. —
→

When

  1. flow = wire_manifest()["flow"]
→

Then

  1. ✓ flow["flow_version"] equals FLOW_VERSION
  2. ✓ {"Flow", "Lane", "Step"} is at most set(flow["types"])
  3. ✓ flow["types"]["Flow"] contains "actor"
  4. ✓ flow["types"]["Flow"] contains "lanes"

tests/test_export.py:208 · its file's page

What it checks (3)

  1. assert flow["flow_version"] == FLOW_VERSION observes wire_manifest via flow
  2. assert {"Flow", "Lane", "Step"} <= set(flow["types"]) observes wire_manifest via flow
  3. assert "actor" in flow["types"]["Flow"] and "lanes" in flow["types"]["Flow"] observes wire_manifest via flow

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_the_flow_json_shape_is_in_the_manifest→wire_manifest

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_the_flow_json_shape_is_in_the_manifest · 3 checkswire_manifestREQ-DDB-QUERY-014 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.