The previous fixture translation covered the registry and execution suites; the
same defect class was still live everywhere else. Every DRAFT write consults the
native evidence hold, the product never creates that state implicitly, so a test
whose storage root is not activated refuses with
NATIVE_RESULT_RETENTION_UNAVAILABLE before reaching anything it asserts.
Fixed in this commit (root built by the test itself, activation made explicit):
- services/dashboard_testing/scenario: test_pack_materializer.py,
test_pack_materializer_errors.py and test_pack_registry.py each set
DRAFT_STORAGE_ROOT to an unactivated temp dir; their storage_root fixture now
activates it. test_metric_graph_v2_admission.py declared a helper parameter
named initialized_storage_root but passed tmp_path into it, so the fixture that
activates was never requested; the two tests now request it. (25 failures)
- tests/test_mcp_initial_scenario_e2e.py, tests/test_mcp_agent_run_reachability.py,
tests/test_mcp_scenario_profile_e2e.py and
tests/api/test_dashboard_testing_verification_persistence.py: same pattern over
DRAFT_STORAGE_ROOT and HANDLE_STORAGE_ROOT. (1 failure + 2 errors + 1 failure)
One assertion in the scenario suite was mine to fix: commit a32d4cc6 re-derived
the captured admission fixture's digests, and
test_metric_published_admission_authority.py pins graph_content_hash and
binding_digest as literals. Both now carry the values read back from the
verified fixture (aa3ef503..., 0f2492aa...) - taken from the artifact, not from
the migration log, after a first attempt copied values that the earlier revision
of the migration script had computed but never stored. The fixture itself
re-verifies from scratch: context bytes, fingerprint, binding, authority and
selection digests, entry digest, wrapper digest, catalog digest, revision hash,
plan hash and graph/plan equality all recompute correctly, with no stale
identity string left.
No production code touched; every refusal still refuses. registry 18 failed/960
passed, execution 7 failed/407 passed, scenario 414 passed.
Eight registry tests and four API tests failed with "canonical graph does not
satisfy its declared schema". The raise site is editor/apply.py:115, and the
cause is the shared registry fixture: the base revision's graph_snapshot declares
canonical identity - schema_version 1 plus a structured objective, which is what
has_canonical_identity looks for - while carrying only the legacy
schema_version/compiler_version/scenario_id/revision_hash/objective/phases shape.
The strict path is therefore taken and canonical_registered_snapshot does not
parse: dashboard_context, input_fingerprints and steps are required and
objective requires selected_case_ids.
The editor tests now seed a base snapshot that satisfies the schema, through one
shared helper (tests/.../registry/editor_canonical_base.py) used by both registry
files and the API route file. It merges only the fields the canonical schema
requires, so the fixture's own identity survives and a test that pre-seeds
context_authority before proposing still sees it. The step id is not cosmetic:
editor operations address steps by id and the canonical set_assertion handler
resolves s["id"], so the supplied step is the one the operations name.
The shared tests/fixtures/scenario_registry/registry.json is NOT rewritten here.
Two other suites assert properties of its current shape - an empty topological
order for the base revision in test_scenario_runner_plan.py, and a 2222-vs-7777
diff whose only changed key is revision_hash in tests/api/test_scenario_registry.py
- so conforming that fixture for real is a separate coordinated change, and the
helper records that as its @REJECTED rationale rather than leaving the trap
implicit.
No assertion was weakened and no production code was touched: the strict refusal
for a graph that declares canonical identity without satisfying it is unchanged
and still covered by test_registered_editor_authority.py.
registry: 31 failed -> 23 failed, 955 passed, 0 new failures.
tests/api/test_scenario_editor_routes.py: 4 failed -> 0 (7 passed).
Add scoped verification and seven-day risk acceptance, a readable sixteen-metric baseline comparison, visual findings, and responsive case actions. Provide personal subscriptions and an in-app inbox with authorized target names.
Retain isolated Docker fixtures and browser audits for normal flows, access and CAS refusals, HTTP500, uncertain VLM results, polling and acceptance expiry. Verify scoped semantic contracts and record independent UX/UI scores of 4/5 and 4.1/5.
Discover dashboard filters, datasets and metrics from a parsed reference URL; capture and review baseline candidates with source provenance. Improve scenario DAG and run result views, add isolated browser coverage, and align contracts and ADRs.