test(dashboard-testing): issue isolated current authority for API lifecycles

This commit is contained in:
2026-10-10 23:40:55 +03:00
parent 2d24d9ce66
commit a8a0ca0839
7 changed files with 299 additions and 234 deletions

View File

@@ -13,7 +13,6 @@ from uuid import uuid4
from fastapi.testclient import TestClient
from src.app import app
from src.dependencies import get_current_user
from src.models.agent_run import AgentRun
from src.models.auth import Role, User
@@ -32,103 +31,96 @@ def make_dashboard_testing_admin_user() -> User:
# #region Test.Api.DashboardTesting.Fixtures.CreateCaptureArtifact [C:2] [TYPE Function] [SEMANTICS test,api,dashboard-testing,capture,artifact]
# @BRIEF Create a server-issued capture execution DraftArtifact in the database with deterministic hash.
# @POST Returns (artifact_id, sha256) tuple. The artifact is persisted to session.
# @INVARIANT The artifact has kind="capture_execution" and valid sha256 matching mock raw bytes.
def create_dashboard_testing_capture_artifact(session, run_id: str, result_key: str = "count") -> tuple[str, str]:
"""Create a capture execution DraftArtifact for lifecycle test fixtures.
# @BRIEF Issue current authority from independently authored original query/response bytes and explicit DB scope.
# @POST Returns the actual issued capture ID/hash; protected bytes and frozen release/source/catalog context agree.
# @RATIONALE Synthetic fixture input enters the real issuer; API lifecycle assertions cannot be authorized by copied capture metadata.
def create_dashboard_testing_capture_artifact(session, run_id: str, *, release=None,
catalog_selection=None, response_bytes: bytes | None = None) -> tuple[str, str]:
from hashlib import sha256
from dashboard_candidate_fixture_requests import _fixture_capture_parts, _canonical, _FILTERS_HASH
from tests.services.dashboard_testing.conftest import create_candidate_release_fixture
from src.schemas.dashboard_testing import CaptureCandidateRequest, NormalizedValue
from src.schemas.dashboard_testing.catalog_revision import ExactCatalogRevision
from src.services.agent_runs.artifacts import get_draft_storage
from src.services.dashboard_testing.catalog_capture_binding import freeze_catalog_selection
from src.services.dashboard_testing.catalog_store import seed_catalog
from src.services.dashboard_testing.query_envelope import QueryExecutionEnvelope
from src.services.dashboard_testing.reference_source import build_reference_source
from src.services.dashboard_testing.result_authority import capture_context_sha256, issue_result_authority
from src.services.dashboard_testing.scenario.capture_profile import capture_profile_snapshot
Returns (artifact_id, sha256) with deterministic hash computed from mock raw bytes.
"""
import hashlib
from src.models.agent_run import DraftArtifact
mock_raw = f'{{"result": "{result_key}", "value": 100}}'.encode()
sha256 = hashlib.sha256(mock_raw).hexdigest()
artifact = DraftArtifact(
run_id=run_id,
kind="capture_execution",
name=f"capture:{result_key}:dev",
intended_path="",
content_ref=f"draft:{run_id}:{sha256}",
sha256=sha256,
validation_status="valid",
capture_meta={
"kind": "capture_execution",
"environment_id": "dev",
"dashboard_id": 42,
"chart_id": 1,
"dataset_id": None,
"result_key": result_key,
"source_response_hash": sha256,
"repo_key": "test-repo",
"dash_key": "test-dash",
"normalized_value": {
"kind": "integer",
"canonical_value": "100",
},
},
)
session.add(artifact)
run = session.get(AgentRun, run_id)
if run is None or run.intent != "manual_reference_capture":
raise ValueError("API_FIXTURE_OWNED_RUN_REQUIRED")
if (release is None) != (catalog_selection is None):
raise ValueError("API_FIXTURE_RELEASE_AND_CATALOG_REQUIRED")
if release is None:
release = create_candidate_release_fixture(session, actor=run.user_id, environment_id=run.environment_id)
seed = seed_catalog(session, repository=release.repository_id, dashboard_key="dashboard-42",
actor_id=run.user_id, reason="Explicit API synthetic native fixture", idempotency_key=str(uuid4()))
catalog_selection = ExactCatalogRevision(kind="revision", catalog_id=seed.revision.catalog_id,
catalog_revision_id=seed.revision.catalog_revision_id)
frozen = freeze_catalog_selection(session, catalog_selection, release, 42)
storage = get_draft_storage()
request_bytes, literal_response, descriptor, value, policy = _fixture_capture_parts(run_id)
raw = literal_response if response_bytes is None else response_bytes
storage.store(run_id, descriptor.native_request.sha256, request_bytes)
url = "https://superset.example/superset/dashboard/42/"
url_ref = storage.store(run_id, sha256(url.encode()).hexdigest(), url.encode())
filters = {"schema_version": 1, "filters": [], "filters_hash": _FILTERS_HASH}
source = build_reference_source(url=url, url_kind="dashboard", source_url_ref=url_ref,
environment_id=run.environment_id, dashboard_id=42, filters=filters, query_model_fingerprint="sha256:" + "c" * 64)
identity = sha256(_canonical({key: item for key, item in descriptor.model_dump(mode="json").items()
if key != "native_request"})).hexdigest()
run.context_snapshot = {"release_id": release.id, "reference_source": source, "filters_hash": _FILTERS_HASH,
"query_model_fingerprint": source["query_model_fingerprint"], "capture_profile": capture_profile_snapshot("default"),
"catalog_binding": frozen.model_dump(mode="json"),
"native_result_policy": {"schema_version": 1, "result_identity_sha256": identity, "comparison_policy": policy}}
session.flush()
return artifact.id, sha256
request = CaptureCandidateRequest(agent_run_id=run_id, release_id=release.id, dashboard_id=42,
chart_id=128, dataset_id=256, result_key="sum__revenue", label="SUM(revenue)", normalized_filters=filters,
query_model_fingerprint=source["query_model_fingerprint"], comparison_policy=policy)
envelope = QueryExecutionEnvelope(NormalizedValue.model_validate(value), sha256(raw).hexdigest(), raw)
record = issue_result_authority(session, owner_user_id=run.user_id, request=request, envelope=envelope,
descriptor=descriptor, repository_key="my-repo", dashboard_key="FI-0080", expected_version=0,
expected_context_sha256=capture_context_sha256(run, run.user_id))
session.flush()
return record.capture_artifact_id, record.source_response_hash
# #endregion Test.Api.DashboardTesting.Fixtures.CreateCaptureArtifact
# #region Test.Api.DashboardTesting.Fixtures.MakeCandidatePayload [C:2] [TYPE Function] [SEMANTICS test,api,dashboard-testing,candidate]
# @BRIEF Build a CandidateRequest dict for testing, optionally with a server-issued capture artifact ref.
# @BRIEF Build current literal authoring input for one explicit run and issued capture.
# @INVARIANT For kind=metric, caller MUST provide capture_artifact_ref to satisfy server-side validation.
# source_response_hash must match the capture artifact's sha256.
def make_dashboard_testing_candidate_payload(
agent_run_id: str,
capture_artifact_ref: str | None = None,
source_response_hash: str | None = None,
capture_artifact_ref: str,
source_response_hash: str,
) -> dict:
payload: dict = {
"environment_id": "dev",
"dashboard_id": 42,
"repository_key": "test-repo",
"dashboard_key": "test-dash",
"chart_id": 1,
"result_key": "count",
"label": "test-candidate",
"normalized_filters": {
"filters": [],
"filters_hash": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
},
"candidate_value": {
"kind": "integer",
"raw_value": 100,
"canonical_value": "100",
"display_value": "100",
},
"source_response_hash": source_response_hash or ("a" * 64),
"comparison_policy": {
"type": "exact",
},
"provenance": {
"environment": "dev",
"actor": "tester",
"agent_run_id": agent_run_id,
},
"agent_run_id": agent_run_id,
}
if capture_artifact_ref:
payload["capture_artifact_ref"] = capture_artifact_ref
from src.core.database import SessionLocal
from dashboard_candidate_fixture_requests import _request_payload
if capture_artifact_ref is None or source_response_hash is None:
raise ValueError("API_FIXTURE_EXPLICIT_CAPTURE_REQUIRED")
with SessionLocal() as session:
run = session.get(AgentRun, agent_run_id)
if run is None:
raise ValueError("API_FIXTURE_OWNED_RUN_REQUIRED")
payload = _request_payload(agent_run_id, capture_artifact_ref, environment_id=run.environment_id)
payload["source_response_hash"] = source_response_hash
return payload
# #endregion Test.Api.DashboardTesting.Fixtures.MakeCandidatePayload
# #region Test.Api.DashboardTesting.Fixtures.CreateAgentRun [C:1] [TYPE Function] [SEMANTICS test,api,dashboard-testing,agent-run]
def create_dashboard_testing_agent_run(
session, user_id: str = "test-user-lifecycle"
session, user_id: str = "test-user-lifecycle", *, environment_id: str | None = None,
) -> AgentRun:
run = AgentRun(
user_id=user_id,
dashboard_id="42",
environment_id="dev",
environment_id=environment_id if environment_id is not None else f"api-native-{uuid4()}",
intent="manual_reference_capture", trigger="manual",
context_snapshot={},
status="CREATED",
)
@@ -181,7 +173,9 @@ def dashboard_testing_mock_user() -> User:
# #region Test.Api.DashboardTesting.Fixtures.Client [C:2] [TYPE Function] [SEMANTICS test,api,dashboard-testing,fixture]
# @BRIEF Provide a TestClient with only the current-user dependency overridden.
@pytest.fixture
def dashboard_testing_client(dashboard_testing_mock_user: User):
def dashboard_testing_client(dashboard_testing_mock_user: User, dashboard_testing_native_storage):
# Import the full application only when the HTTP fixture is requested, not for pure DTO/component guards.
from src.app import app
app.dependency_overrides[get_current_user] = lambda: dashboard_testing_mock_user
try:
yield TestClient(app)
@@ -190,6 +184,48 @@ def dashboard_testing_client(dashboard_testing_mock_user: User):
# #endregion Test.Api.DashboardTesting.Fixtures.Client
# #region Test.Api.DashboardTesting.Fixtures.NativeStorage [C:2] [TYPE Fixture]
# @PRE A fresh test root is explicitly activated; no global hold or server authority is fabricated.
@pytest.fixture
def dashboard_testing_native_storage(tmp_path, monkeypatch, dashboard_testing_api_database):
from src.services.agent_runs import artifacts
from src.services.storage_holds import initialize_native_holds
root = tmp_path / "native-api-storage"
root.mkdir()
initialize_native_holds(root)
storage = artifacts.DraftStorage(str(root))
monkeypatch.setattr(artifacts, "_draft_storage", storage)
return storage
# #endregion Test.Api.DashboardTesting.Fixtures.NativeStorage
# #region Test.Api.DashboardTesting.Fixtures.Database [C:3] [TYPE Fixture]
# @PRE DATABASE_URL selects an already migrated PostgreSQL database with no repository for dashboard 42.
# @POST Fresh HTTP/MCP/verification Sessions retain service commits inside one owned transaction; teardown rolls it back.
# @RATIONALE Reconfigure the existing shared factory so imported aliases and real route dependencies use the same test transaction.
# @REJECTED Deleting append-only revisions, adopting a foreign repository, and SQLite cannot isolate this lifecycle contract.
@pytest.fixture
def dashboard_testing_api_database():
from sqlalchemy import select
from src.core.database import SessionLocal, engine
if engine.dialect.name != "postgresql":
raise RuntimeError("API_FIXTURE_POSTGRES_REQUIRED")
original_options = dict(SessionLocal.kw)
with engine.connect() as connection:
transaction = connection.begin()
try:
if connection.execute(select(GitRepository.id).where(GitRepository.dashboard_id == 42)).first() is not None:
raise RuntimeError("API_FIXTURE_DASHBOARD_SCOPE_NOT_EMPTY")
SessionLocal.configure(bind=connection, join_transaction_mode="create_savepoint")
yield connection
finally:
SessionLocal.kw.clear()
SessionLocal.kw.update(original_options)
transaction.rollback()
# #endregion Test.Api.DashboardTesting.Fixtures.Database
# #endregion Test.Api.DashboardTesting.Fixtures

View File

@@ -87,7 +87,7 @@ class TestLifecycleDurability:
run = _create_agent_run(session)
artifact_id, sha256 = _create_capture_artifact(session, run.id)
capture = session.query(DraftArtifact).filter(DraftArtifact.id == artifact_id).one()
capture.capture_meta = {**capture.capture_meta, "release_id": "release-from-capture"}
captured_release_id = capture.capture_meta["release_id"]
session.commit()
run_id = run.id
finally:
@@ -100,7 +100,7 @@ class TestLifecycleDurability:
verify = SessionLocal()
try:
draft = verify.query(DraftArtifact).filter(DraftArtifact.id == response.json()["candidate_id"]).one()
assert draft.capture_meta["release_id"] == "release-from-capture"
assert draft.capture_meta["release_id"] == captured_release_id
finally:
verify.close()
# #endregion Test.Api.DashboardTesting.LifecycleTests.TestReleaseProvenance
@@ -201,24 +201,31 @@ class TestLifecycleDurability:
try:
run = _create_agent_run(setup_session)
run_id = run.id
artifact_a_id, sha256_a = _create_capture_artifact(setup_session, run_id, result_key="count")
artifact_b_id, sha256_b = _create_capture_artifact(setup_session, run_id, result_key="sum")
second_run = _create_agent_run(setup_session, environment_id=run.environment_id)
second_run_id = second_run.id
artifact_a_id, sha256_a = _create_capture_artifact(setup_session, run_id)
from src.models.dashboard_release import DashboardRelease
from src.schemas.dashboard_testing.catalog_revision import ExactCatalogRevision
captured = setup_session.get(DraftArtifact, artifact_a_id).capture_meta
release = setup_session.get(DashboardRelease, captured["release_id"])
selector = ExactCatalogRevision(kind="revision", catalog_id=captured["catalog_binding"]["catalog_id"],
catalog_revision_id=captured["catalog_binding"]["catalog_revision_id"])
artifact_b_id, sha256_b = _create_capture_artifact(setup_session, second_run_id,
release=release, catalog_selection=selector)
setup_session.commit()
finally:
setup_session.close()
payload_a = _make_candidate_payload(run_id, capture_artifact_ref=artifact_a_id, source_response_hash=sha256_a)
payload_a["label"] = "candidate-A"
payload_a["result_key"] = "count"
response_a = dashboard_testing_client.post(
"/api/dashboard-testing/baseline-candidates", json=payload_a
)
assert response_a.status_code == 201
candidate_a_id = response_a.json()["candidate_id"]
payload_b = _make_candidate_payload(run_id, capture_artifact_ref=artifact_b_id, source_response_hash=sha256_b)
payload_b = _make_candidate_payload(second_run_id, capture_artifact_ref=artifact_b_id, source_response_hash=sha256_b)
payload_b["label"] = "candidate-B"
payload_b["result_key"] = "sum"
response_b = dashboard_testing_client.post(
"/api/dashboard-testing/baseline-candidates", json=payload_b
)
@@ -245,7 +252,7 @@ class TestLifecycleDurability:
response = dashboard_testing_client.post(
f"/api/dashboard-testing/baseline-candidates/{candidate_b_id}/approval-gate",
json=gate_body,
json={**gate_body, "agent_run_id": second_run_id},
)
assert response.status_code == 201, f"Gate creation failed: {response.text}"
gate_b_id = response.json()["gate_id"]
@@ -274,13 +281,28 @@ class TestLifecycleDurability:
f"got {response.status_code}: {response.text}"
)
def persisted_state():
import json
from sqlalchemy import select
from src.models.agent_run import AgentRun, AgentRunEvent
from tests.services.dashboard_testing.test_catalog_write_transfer import _catalog_rows
with SessionLocal() as session:
state = _catalog_rows(session, selector.catalog_id)
for model in (AgentRun, AgentRunEvent, DraftArtifact, ApprovalGate):
owned = model.id.in_([run_id, second_run_id]) if model is AgentRun else model.run_id.in_([run_id, second_run_id])
rows = session.execute(select(model.__table__).where(owned)
.order_by(*model.__table__.primary_key.columns)).mappings()
state[model.__tablename__] = json.dumps([dict(row) for row in rows], sort_keys=True, default=str)
return state
prior_state = persisted_state()
response = dashboard_testing_client.post(
f"/api/dashboard-testing/baseline-candidates/{candidate_b_id}/approval-gate/{gate_b_id}/consume{consume_query}",
)
assert response.status_code == 200, (
f"Expected 200 consuming B with own gate, "
f"got {response.status_code}: {response.text}"
)
# B still owns its gate, but its frozen parent predates A's successful CAS successor.
assert response.status_code == 409
assert response.json()["detail"] == "CATALOG_CAS_CONFLICT"
assert persisted_state() == prior_state
# #endregion Test.Api.DashboardTesting.LifecycleTests.TestCrossCandidateGateRejection
# #endregion Test.Api.DashboardTesting.LifecycleTests
@@ -311,8 +333,11 @@ class TestEnvironmentResolution:
json={
"environment_id": "nonexistent",
"dashboard_id": 1,
"chart_id": 128,
"dataset_id": 256,
"result_key": "count",
"normalized_filters": {"filters": [], "filters_hash": "sha256:empty"},
"normalized_filters": {"schema_version": 1, "filters": [],
"filters_hash": "sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"},
},
)
assert response.status_code == 404

View File

@@ -169,6 +169,8 @@ class TestFeature037ApprovalGuards:
run = _create_agent_run(setup_session)
run_id = run.id
artifact_id, sha256 = _create_capture_artifact(setup_session, run_id)
from src.models.agent_run import DraftArtifact
captured_binding = setup_session.get(DraftArtifact, artifact_id).capture_meta["catalog_binding"]
setup_session.commit()
finally:
setup_session.close()
@@ -192,6 +194,10 @@ class TestFeature037ApprovalGuards:
assert data["status"] == "pending"
assert "candidate_id" in data
assert "operation" in data
assert data["target_paths"] == []
assert data["catalog_binding"] == captured_binding
from src.schemas.dashboard_testing import ApprovalGateResponse
ApprovalGateResponse.model_validate(data)
# #endregion Test.Api.Feature037.TestOpenApi201Status
# #region Test.Api.Feature037.TestRequiredReasonEnforced [C:2] [TYPE Function] [SEMANTICS test,api,approval,reason-required]

View File

@@ -38,16 +38,6 @@ class TestClosedPeriodTransition:
from src.core.database import SessionLocal
from src.models.agent_run import DraftArtifact
monkeypatch.setattr(
"src.services.dashboard_testing.safe_path._DEFAULT_BASE",
tmp_path.resolve(),
)
monkeypatch.setattr("pathlib.Path.cwd", lambda: tmp_path.resolve())
draft_root = tmp_path / "drafts"
draft_root.mkdir()
monkeypatch.setenv("DRAFT_STORAGE_ROOT", str(draft_root))
monkeypatch.setattr("src.services.agent_runs.artifacts._draft_storage", None)
setup_session = SessionLocal()
try:
run = _create_agent_run(setup_session)
@@ -95,14 +85,14 @@ class TestClosedPeriodTransition:
assert resp.status_code == 200
assert resp.json()["consumed"] is True
catalog_path = tmp_path / "git_repos" / "test-repo" / "dashboard_tests" / "test-dash" / "baselines.yaml"
if not catalog_path.exists():
catalog_path = list(tmp_path.rglob("baselines.yaml"))
assert catalog_path
cat_file = catalog_path[0] if isinstance(catalog_path, list) else catalog_path
import yaml as _yaml
raw = _yaml.safe_load(cat_file.read_text())
entry = raw["entries"][0]
from src.schemas.dashboard_testing.catalog_revision import ExactCatalogRevision
from src.services.dashboard_testing.catalog_store import load_catalog_revision
consumed = resp.json()
with SessionLocal() as session:
snapshot = load_catalog_revision(session, ExactCatalogRevision(kind="revision",
catalog_id=consumed["catalog_id"], catalog_revision_id=consumed["catalog_revision_id"]))
assert len(snapshot.revision.entry_revisions) == 1
entry = snapshot.revision.entry_revisions[0].entry.model_dump(mode="json")
imm = entry.get("immutability")
assert imm is not None
assert imm["enabled"] is True
@@ -117,14 +107,7 @@ class TestClosedPeriodTransition:
def test_authoritative_close_idempotent_reclosure_raises_error(self, dashboard_testing_client, tmp_path, monkeypatch):
"""Second candidate reclosure attempt returns 409, catalog unchanged."""
from src.core.database import SessionLocal
from src.models.agent_run import DraftArtifact as _DraftArtifact
monkeypatch.setattr("src.services.dashboard_testing.safe_path._DEFAULT_BASE", tmp_path.resolve())
monkeypatch.setattr("pathlib.Path.cwd", lambda: tmp_path.resolve())
draft_root = tmp_path / "drafts"
draft_root.mkdir()
monkeypatch.setenv("DRAFT_STORAGE_ROOT", str(draft_root))
monkeypatch.setattr("src.services.agent_runs.artifacts._draft_storage", None)
from src.models.agent_run import AgentRun, DraftArtifact as _DraftArtifact
setup_session = SessionLocal()
try:
@@ -162,45 +145,39 @@ class TestClosedPeriodTransition:
)
assert resp.status_code == 200
# Snapshot catalog bytes and baseline ID BEFORE second consume attempt
cat_file = list(tmp_path.rglob("baselines.yaml"))
assert cat_file
with open(cat_file[0], "rb") as _f:
catalog_bytes_before = _f.read()
import yaml as _yaml
catalog_before = _yaml.safe_load(catalog_bytes_before)
original_baseline_id = catalog_before["entries"][0]["baseline_id"]
original_source_hash = catalog_before["entries"][0]["source_response_hash"]
# Second candidate: same coordinates, same close_period → 409
reclose_session = SessionLocal()
try:
import hashlib as _hl2
raw2 = b'{"result": "count", "value": 200}'
sha2 = _hl2.sha256(raw2).hexdigest()
art2_id, _ = _create_capture_artifact(reclose_session, run_id, result_key="count_reclose")
art2 = reclose_session.query(_DraftArtifact).filter(_DraftArtifact.id == art2_id).first()
meta2 = dict(art2.capture_meta or {})
meta2["result_key"] = "count"
meta2["dashboard_id"] = 42
meta2["chart_id"] = 1
meta2["repo_key"] = "test-repo"
meta2["dash_key"] = "test-dash"
art2.capture_meta = meta2
art2.sha256 = sha2
reclose_session.commit()
finally:
reclose_session.close()
payload2 = _make_candidate_payload(run_id, capture_artifact_ref=art2_id, source_response_hash=sha2)
payload2["result_key"] = "count"
from src.models.dashboard_release import DashboardRelease
from src.schemas.dashboard_testing.catalog_revision import ExactCatalogRevision
from src.services.dashboard_testing.catalog_store import load_catalog_revision
from tests.services.dashboard_testing.test_catalog_current_invariants import pg_state
from dashboard_candidate_fixture_requests import _FIXTURE_RESPONSE
consumed = resp.json()
selector = ExactCatalogRevision(kind="revision", catalog_id=consumed["catalog_id"],
catalog_revision_id=consumed["catalog_revision_id"])
with SessionLocal() as session:
before = load_catalog_revision(session, selector)
prior_state = pg_state(session, selector)
original = before.revision.entry_revisions[0].entry.model_dump(mode="json")
capture = session.get(_DraftArtifact, artifact_id)
release = session.get(DashboardRelease, capture.capture_meta["release_id"])
previous_run = session.get(AgentRun, run_id)
second_run = _create_agent_run(session, environment_id=previous_run.environment_id)
second_run_id = second_run.id
# Only JSON whitespace changes: current cells stay 17; real issuance revalidates them.
changed_wire = _FIXTURE_RESPONSE + b"\n"
import json
assert json.loads(changed_wire) == json.loads(_FIXTURE_RESPONSE)
art2_id, sha2 = _create_capture_artifact(session, second_run_id, release=release,
catalog_selection=selector, response_bytes=changed_wire)
assert sha2 != sha256
session.commit()
payload2 = _make_candidate_payload(second_run_id, capture_artifact_ref=art2_id, source_response_hash=sha2)
resp = dashboard_testing_client.post("/api/dashboard-testing/baseline-candidates", json=payload2)
assert resp.status_code == 201
cand2_id = resp.json()["candidate_id"]
resp = dashboard_testing_client.post(
f"/api/dashboard-testing/baseline-candidates/{cand2_id}/approval-gate",
json={"agent_run_id": run_id, "release_version": "v1.0.0",
json={"agent_run_id": second_run_id, "release_version": "v1.0.0",
"release_commit_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b",
"close_period": "2026-07"},
)
@@ -218,21 +195,16 @@ class TestClosedPeriodTransition:
f"?release_version=v1.0.0&release_commit_hash=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b",
)
assert resp.status_code == 409
assert "Cannot close period" in resp.json()["detail"]
import yaml as _yaml
cat_file = list(tmp_path.rglob("baselines.yaml"))
assert cat_file
catalog_bytes_after = cat_file[0].read_bytes()
assert catalog_bytes_after == catalog_bytes_before, (
"Catalog bytes changed after 409 reclosure rejection. "
"The catalog must remain byte-identical to the pre-attempt state."
)
raw = _yaml.safe_load(catalog_bytes_after)
assert len(raw["entries"]) == 1
assert raw["entries"][0]["baseline_id"] == original_baseline_id
assert raw["entries"][0]["source_response_hash"] == original_source_hash
assert raw["entries"][0]["immutability"]["period_closed_at"] is not None
assert resp.json()["detail"] == "CATALOG_PERIOD_ALREADY_CLOSED"
with SessionLocal() as session:
assert pg_state(session, selector) == prior_state
after = load_catalog_revision(session, selector)
assert after.revision.model_dump(mode="json") == before.revision.model_dump(mode="json")
assert len(after.revision.entry_revisions) == 1
retained = after.revision.entry_revisions[0].entry.model_dump(mode="json")
assert retained["baseline_id"] == original["baseline_id"]
assert retained["source_response_hash"] == original["source_response_hash"]
assert retained["immutability"]["period_closed_at"] is not None
# #endregion Test.Api.ClosedPeriod.RejectReclosure
# #region Test.Api.ClosedPeriod.ImmutabilityViolationViaComparison [C:2] [TYPE Function] [SEMANTICS test,api,approval,immutability,violation,critical]
@@ -240,44 +212,54 @@ class TestClosedPeriodTransition:
@staticmethod
def test_changed_bytes_same_scalar_produces_critical_violation():
from datetime import UTC, datetime
from hashlib import sha256
import json
from src.schemas.dashboard_testing import ComparisonPolicy, ComparisonStatus, NormalizedValue, ValueKind
from src.schemas.dashboard_testing import ComparisonPolicy, ComparisonStatus, NormalizedValue
from dashboard_candidate_fixture_requests import _fixture_value_policy, _FIXTURE_RESPONSE
from src.schemas.dashboard_testing.catalog import ImmutabilityBlock
from src.schemas.dashboard_testing.enums import ImmutabilityPolicy
from src.services.dashboard_testing.comparison import compare_values
now = datetime.now(UTC)
closure_hash = "dbeb45b9d9081838c8f4b0b8e7a8d8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a"
current_hash = "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2"
changed_wire = _FIXTURE_RESPONSE + b"\n"
assert json.loads(changed_wire) == json.loads(_FIXTURE_RESPONSE)
closure_hash = sha256(_FIXTURE_RESPONSE).hexdigest()
current_hash = sha256(changed_wire).hexdigest()
assert current_hash != closure_hash
closed = ImmutabilityBlock(enabled=True, period="2026-07", period_closed_at=now,
frozen_at=now, source_response_hash=closure_hash,
policy=ImmutabilityPolicy.BLOCK_PUBLISH)
nv = NormalizedValue(kind=ValueKind.INTEGER, canonical_value="100")
result = compare_values(actual=nv, expected=nv, policy=ComparisonPolicy(type="exact"),
_, _, value, policy = _fixture_value_policy()
nv = NormalizedValue.model_validate(value)
result = compare_values(actual=nv, expected=nv, policy=ComparisonPolicy.model_validate(policy),
immutability=closed, current_source_response_hash=current_hash)
assert result.status == ComparisonStatus.IMMUTABILITY_VIOLATION
# #endregion Test.Api.ClosedPeriod.ImmutabilityViolationViaComparison
# #region Test.Api.ClosedPeriod.SameBodyNoViolation [C:2] [TYPE Function] [SEMANTICS test,api,approval,immutability,no-violation]
# @BRIEF Same hardcoded hash → no violation via real compare_values SUT.
# @BRIEF Same retained original response bytes → PASS via real compare_values SUT.
@staticmethod
def test_same_body_no_immutability_violation():
from datetime import UTC, datetime
from hashlib import sha256
from src.schemas.dashboard_testing import ComparisonPolicy, ComparisonStatus, NormalizedValue, ValueKind
from src.schemas.dashboard_testing import ComparisonPolicy, ComparisonStatus, NormalizedValue
from dashboard_candidate_fixture_requests import _fixture_value_policy, _FIXTURE_RESPONSE
from src.schemas.dashboard_testing.catalog import ImmutabilityBlock
from src.schemas.dashboard_testing.enums import ImmutabilityPolicy
from src.services.dashboard_testing.comparison import compare_values
now = datetime.now(UTC)
fixture_hash = "dbeb45b9d9081838c8f4b0b8e7a8d8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8a"
fixture_hash = sha256(_FIXTURE_RESPONSE).hexdigest()
closed = ImmutabilityBlock(enabled=True, period="2026-07", period_closed_at=now,
frozen_at=now, source_response_hash=fixture_hash,
policy=ImmutabilityPolicy.BLOCK_PUBLISH)
nv = NormalizedValue(kind=ValueKind.INTEGER, canonical_value="100")
result = compare_values(actual=nv, expected=nv, policy=ComparisonPolicy(type="exact"),
_, _, value, policy = _fixture_value_policy()
nv = NormalizedValue.model_validate(value)
result = compare_values(actual=nv, expected=nv, policy=ComparisonPolicy.model_validate(policy),
immutability=closed, current_source_response_hash=fixture_hash)
assert result.status != ComparisonStatus.IMMUTABILITY_VIOLATION
assert result.status == ComparisonStatus.PASS
# #endregion Test.Api.ClosedPeriod.SameBodyNoViolation
# #region Test.Api.ClosedPeriod.ClosePeriodMutationHashRejection [C:3] [TYPE Function] [SEMANTICS test,api,approval,close-period,hash,mutation]
@@ -289,7 +271,7 @@ class TestClosedPeriodTransition:
from src.services.dashboard_testing.candidate_guards import _compute_request_hash, _verify_request_hash
base = {"candidate_id": "cand-mutation-001", "content_hash": "d" * 64,
"intended_path": "git_repos/test-repo/dashboard_tests/test-dash/baselines.yaml",
"intended_path": "",
"operation": "write_baseline", "release_version": "v1.0.0",
"release_commit_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b"}
h_with = _compute_request_hash(**base, close_period="2026-07")
@@ -298,9 +280,9 @@ class TestClosedPeriodTransition:
h_diff = _compute_request_hash(**base, close_period="2026-08")
assert h_with != h_diff
_verify_request_hash(stored_hash=h_with, **base, close_period="2026-07")
with _pt.raises(ValueError, match="request_hash mismatch"):
with _pt.raises(ValueError, match="^CANDIDATE_REQUEST_HASH_CONFLICT$"):
_verify_request_hash(stored_hash=h_with, **base, close_period="2026-08")
with _pt.raises(ValueError, match="request_hash mismatch"):
with _pt.raises(ValueError, match="^CANDIDATE_REQUEST_HASH_CONFLICT$"):
_verify_request_hash(stored_hash=h_with, **base, close_period=None)
# #endregion Test.Api.ClosedPeriod.ClosePeriodMutationHashRejection
# #endregion Test.Api.DashboardTesting.ClosedPeriod.Transition

View File

@@ -73,7 +73,7 @@ def parity_principal():
@pytest.fixture
def parity_rest_client(parity_principal):
def parity_rest_client(parity_principal, dashboard_testing_native_storage):
app.dependency_overrides[get_current_user] = lambda: parity_principal
try:
yield TestClient(app)
@@ -106,11 +106,21 @@ def test_approval_gate_and_decision_outputs_are_parity(parity_principal, parity_
setup_session = SessionLocal()
try:
run_a = _create_agent_run(setup_session, user_id=parity_principal.id)
run_b = _create_agent_run(setup_session, user_id=parity_principal.id)
run_b = _create_agent_run(setup_session, user_id=parity_principal.id, environment_id=run_a.environment_id)
run_a_id = run_a.id
run_b_id = run_b.id
artifact_a_id, sha_a = _create_capture_artifact(setup_session, run_a_id)
artifact_b_id, sha_b = _create_capture_artifact(setup_session, run_b_id)
from src.models.agent_run import DraftArtifact
from src.models.dashboard_release import DashboardRelease
from src.schemas.dashboard_testing.catalog_revision import ExactCatalogRevision
binding_a = setup_session.get(DraftArtifact, artifact_a_id).capture_meta["catalog_binding"]
release_id = setup_session.get(DraftArtifact, artifact_a_id).capture_meta["release_id"]
release = setup_session.get(DashboardRelease, release_id)
selector = ExactCatalogRevision(kind="revision", catalog_id=binding_a["catalog_id"],
catalog_revision_id=binding_a["catalog_revision_id"])
artifact_b_id, sha_b = _create_capture_artifact(setup_session, run_b_id,
release=release, catalog_selection=selector)
binding_b = setup_session.get(DraftArtifact, artifact_b_id).capture_meta["catalog_binding"]
setup_session.commit()
finally:
setup_session.close()
@@ -144,18 +154,20 @@ def test_approval_gate_and_decision_outputs_are_parity(parity_principal, parity_
_access_token_context.reset(token)
assert mcp_gate_result["status"] == "ok", mcp_gate_result
mcp_gate = mcp_gate_result["gate"]
assert rest_gate["catalog_binding"] == binding_a
assert mcp_gate["catalog_binding"] == binding_b
parity_fields = ("operation", "risk_level", "required_permission", "status", "reason_required", "target_paths")
for field in parity_fields:
assert mcp_gate[field] == rest_gate[field], f"gate field {field} diverges between MCP and REST"
ApprovalGateResponse(**{field: mcp_gate[field] for field in (
"gate_id", "candidate_id", "operation", "target_paths", "risk_level",
"gate_id", "candidate_id", "operation", "target_paths", "catalog_binding", "risk_level",
"required_permission", "status", "reason_required", "created_at",
)})
rest_decision = parity_rest_client.post(
f"/api/dashboard-testing/baseline-candidates/{candidate_a_id}/approval-gate/{rest_gate['gate_id']}/decide",
json={"decision": "confirm"},
json={"decision": "confirm", "reason": "Reviewed capture and provenance"},
)
assert rest_decision.status_code == 200, rest_decision.text
rest_decision_body = rest_decision.json()
@@ -165,7 +177,7 @@ def test_approval_gate_and_decision_outputs_are_parity(parity_principal, parity_
mcp_decision = _unwrap(_mcp_call(server, "decide_baseline_approval", {
"candidate_id": candidate_b_id,
"gate_id": mcp_gate["gate_id"],
"body": {"decision": "confirm"},
"body": {"decision": "confirm", "reason": "Reviewed capture and provenance"},
}))
finally:
_access_token_context.reset(token)
@@ -191,7 +203,7 @@ def test_verification_run_outputs_are_parity(
) -> None:
setup_session = SessionLocal()
try:
run = _create_agent_run(setup_session, user_id=parity_principal.id)
run = _create_agent_run(setup_session, user_id=parity_principal.id, environment_id="dev")
setup_session.commit()
run_id = run.id
finally:
@@ -199,6 +211,7 @@ def test_verification_run_outputs_are_parity(
verification_body = {
"repository_id": dashboard_testing_verification_repository_id,
"catalog_selection": None,
"trigger": "manual",
"environment_id": "dev",
"categories": ["structure"],

View File

@@ -29,7 +29,7 @@
## Current status
Пропусков открыто: 120 (из 275)
а[original275]=0; supplemental а=36 (поимённые API/verification reachability keys); б[original275]=120 ждут общего пользовательского approval (включая 6 строк удалённой файловой механики); source-assertion restored=155. База `7fc3105f8fb845cb8a4111b24d81c900a31a67a2` + released feature037/deployment three-path SHA256 в отчёте для того же коммита; 0+120+155=275 исторических GAP keys, не отдельных дефектов. Supplemental91 вне275: 36 OPEN,24 source-restored,31 pending б; единый б-список151=120+31. Новые47 supplemental keys состоят из46 API и1 deployment:10 source-restored,1 mixed б,36 OPEN; N120 не изменён. Для мержа все а, включая supplemental, должны быть0; нулевая original а не закрывает весь модуль. Source restoration не означает выполненную PostgreSQL/HTTP-проверку. Поимённые manifests — [accounting review](2026-10-10-deleted-test-accounting.md#counter-bf55dfa2) и [supplemental API](2026-10-10-deleted-test-accounting.md#supplemental-api-reachability).
а[original275]=0; supplemental а=19 (verification-persistence13 + verification HTTP6); б[original275]=120 ждут общего пользовательского approval (включая 6 строк удалённой файловой механики); source-assertion restored=155. База `2d24d9ce663e0477861f030217096643d31279cb` + exact released API5 SHA256 в отчёте для того же коммита; 0+120+155=275 исторических GAP keys, не отдельных дефектов. Supplemental91 вне275: 19 OPEN,34 source-restored,38 pending б; единый б-список158=120+38. Новые47 supplemental keys:20 source-restored,8 mixed б,19 OPEN; API5 переносит17 из OPEN в10 source-restored и7 mixed б; N120 не изменён. Старое own-B200 со stale parent не перенесено в противоположное CAS409; изменение ждёт общего approval. Для мержа все а, включая supplemental, должны быть0. Source restoration не означает выполненную PostgreSQL/HTTP-проверку. Поимённые manifests — [accounting review](2026-10-10-deleted-test-accounting.md#counter-bf55dfa2) и [supplemental API](2026-10-10-deleted-test-accounting.md#supplemental-api-reachability).
- Runtime-каталог перенесён в PostgreSQL; файловый слой удалён. Публикация связывает точный parent/marker/render, без обещания атомарного Git CAS. Master не изменён; линейные0038/0039 находятся в feature-ветке. Оба окончательных upgrade ещё не выполнены.
- Official filter_state измерен: Clear без Apply сохраняет состояние, Apply меняет его. Chart8 закрытый контекст/4×2 и защищённые source hashes восстановлены. Единый Force refresh проведён через четыре native owners (`c726722f`, `e77d3ff1`); live-подтверждение итогового кода впереди.

View File

@@ -2215,7 +2215,7 @@ close the test-accounting gate or change the historical 383-key inventory.
## @{ Stage1.DeletedTestAccountingCounterBf55dfa2 [C:4] [TYPE Report] [SEMANTICS test-accounting,historical-gap-counter,user-approval,source-assertions,no-fallback]
@BRIEF Reconcile the original 275 historical GAP keys into restored source assertions, conservatively open live or unclassified properties, and one pending user-approval withdrawal list.
@INVARIANT Original keys come from committed report 384107e2603f42cc3bb37012c5d3364cd4e8301d; current source base is 7fc3105f8fb845cb8a4111b24d81c900a31a67a2 plus the explicitly identified released feature037/deployment three-path digests below. Supplemental47 API/deployment keys are tracked separately from the prior44 and original275. Original275 keys/order stay fixed; supplemental44 keys remain outside that denominator and share the one pending withdrawal list.
@INVARIANT Original keys come from committed report 384107e2603f42cc3bb37012c5d3364cd4e8301d; original275 keys/order stay fixed. Supplemental47 API/deployment keys retain old assertions at 7fc3105f8fb845cb8a4111b24d81c900a31a67a2; current review base is 2d24d9ce663e0477861f030217096643d31279cb plus the exact released API5 digests below. All91 supplemental keys stay outside275 and share one pending withdrawal list.
@INVARIANT Root R1–R9 decisions are historical decisions, not user approval; opposite outcomes and removed output contracts cannot be counted as assertion-equivalent transfers.
@INVARIANT This counter is a static source review, not test execution, PostgreSQL success, browser evidence or overall product GO.
@@ -2223,7 +2223,7 @@ close the test-accounting gate or change the historical 383-key inventory.
Пропусков открыто: 120 (из 275)
**а[original275]=0; supplemental а=36 (API/verification reachability); б[original275]=120 pending combined user approval; restored source assertions=155.** The reconciliation is 0+120+155=275 unique historical keys, with N=original а+original б. The six file-mechanics withdrawals are a subreason within б, never a third merge group. The original383/275 inventory and previous fixed-cut reviews remain historical. This is a conservative checkpoint: every unclassified or incompletely reconciled visual/mixed key stays in а; а is not a count of independently established runtime defects. Previous committed checkpoint67e38bb6 recorded N153=98а+55б/restored122 at source bf55dfa2; checkpoint92adeeb2 recorded N123=65а+58б/restored152 at source67e38; checkpoint7212079f recorded N122=62а+60б/restored153; checkpoint0bfab234 recorded N122=61а+61б/restored153. Checkpoint5228d706 recorded N122=59а+63б/restored153; checkpoint6c2ab3e7 added supplemental35 outside275 without changing N. Checkpoint19620f33 recorded N122=58а+64б/restored153, with supplemental44 outside275. Checkpoint2838c11d recorded N120=39а+81б/restored155. Checkpoint176c55c2 recorded N120=18а+102б/restored155. Checkpointd1e783ba recorded N120=15а+105б/restored155. Checkpointbfc7d487 recorded N120=12а+108б/restored155. Their bounded evidence remains below. Previously reconciled supplemental44 has14 source-restored/30 pending withdrawals; new supplemental47 has36 open/10 source-restored/1 pending withdrawal. Supplemental91=36open+24source-restored+31pending; combined б list151=120original+31supplemental. The exact47-key supplemental API/deployment table below replaces the unquantified reachability checkpoint;36 remain OPEN. Original а=0 does not mean all live gaps are zero. All original and supplemental live gaps must be zero before merge.
**а[original275]=0; supplemental а=19 (verification-persistence/HTTP reachability); б[original275]=120 pending combined user approval; restored source assertions=155.** The reconciliation is 0+120+155=275 unique historical keys, with N=original а+original б. The six file-mechanics withdrawals are a subreason within б, never a third merge group. The original383/275 inventory and previous fixed-cut reviews remain historical. This is a conservative checkpoint: every unclassified or incompletely reconciled visual/mixed key stays in а; а is not a count of independently established runtime defects. Previous committed checkpoint67e38bb6 recorded N153=98а+55б/restored122 at source bf55dfa2; checkpoint92adeeb2 recorded N123=65а+58б/restored152 at source67e38; checkpoint7212079f recorded N122=62а+60б/restored153; checkpoint0bfab234 recorded N122=61а+61б/restored153. Checkpoint5228d706 recorded N122=59а+63б/restored153; checkpoint6c2ab3e7 added supplemental35 outside275 without changing N. Checkpoint19620f33 recorded N122=58а+64б/restored153, with supplemental44 outside275. Checkpoint2838c11d recorded N120=39а+81б/restored155. Checkpoint176c55c2 recorded N120=18а+102б/restored155. Checkpointd1e783ba recorded N120=15а+105б/restored155. Checkpointbfc7d487 recorded N120=12а+108б/restored155. Their bounded evidence remains below. Previously reconciled supplemental44 has14 source-restored/30 pending withdrawals; new supplemental47 has19 open/20 source-restored/8 pending withdrawals. Supplemental91=19open+34source-restored+38pending; combined б list158=120original+38supplemental. The exact47-key supplemental API/deployment table below replaces the unquantified reachability checkpoint;19 remain OPEN. API5 resolves17 source-review keys into10 exact live transfers and7 mixed withdrawals; the latter still require combined user approval. Original а=0 does not mean all live gaps are zero. All original and supplemental live gaps must be zero before merge.
**Current guidance supersedes earlier “approved exception” wording:** R1–R9 were root decisions only. None supplies the required user approval. The combined list below is pending approval; mixed keys with both a restored live property and a withdrawn old output remain in б, counted once. Merge requires а=0, approval of the complete б list, and the existing final runtime/PG/browser/acceptance evidence. The historical34 FILE rows outside this original275-key denominator are not silently treated as approval of the final383-key inventory; that broader final review remains pending functional freeze.
@@ -2552,7 +2552,7 @@ Evidence limits: source assertion restoration does not mean a PG fixture, actual
### <a id="supplemental-api-reachability"></a>Supplemental API reachability — current per-key status
Fixed read source `7fc3105f8fb845cb8a4111b24d81c900a31a67a2`; released main three-path cut: [feature037 test](../../../backend/tests/api/test_dashboard_testing_feature037.py) SHA256 `c2a670c32e6d3e37ea51346e9727fa20fc3452b0c1e8c9bf436b3976fd83d71d`, [deployment route](../../../backend/src/api/routes/git/_deployment_execution.py) SHA256 `172b19004feb6daf55fb5230ed48b84f15a6265c42a4a48fd7928023e6b3cf62`, [deployment guard](../../../backend/tests/api/test_git_repo_lifecycle_deploy_routes.py) SHA256 `8f68fc13f5d3d61dfb4cc3ef34471c4345b77c8a419b227e4b0dcae6284d34c4`. Consumer five-file and main verification-persistence/HTTP-body ports are excluded from this cut even when dirty/released separately.
Fixed read source `7fc3105f8fb845cb8a4111b24d81c900a31a67a2`; released main three-path cut: [feature037 test](../../../backend/tests/api/test_dashboard_testing_feature037.py) SHA256 `c2a670c32e6d3e37ea51346e9727fa20fc3452b0c1e8c9bf436b3976fd83d71d`, [deployment route](../../../backend/src/api/routes/git/_deployment_execution.py) SHA256 `172b19004feb6daf55fb5230ed48b84f15a6265c42a4a48fd7928023e6b3cf62`, [deployment guard](../../../backend/tests/api/test_git_repo_lifecycle_deploy_routes.py) SHA256 `8f68fc13f5d3d61dfb4cc3ef34471c4345b77c8a419b227e4b0dcae6284d34c4`. That three-path cut is now committed2d24d9ce. Current API5 review uses base2d24d9ce plus released digests: [shared fixture](../../../backend/tests/api/conftest.py) `4967251071325c598ed3ba5a20fc8df6df9c6655006cfe84f02d1e351d6daa86`; [lifecycle](../../../backend/tests/api/test_dashboard_testing.py) `78f663af6f239e626ff0811b35c791afa8b017810fdae2add6010bde781381bc`; [approval guards](../../../backend/tests/api/test_dashboard_testing_approval_guards.py) `7db4c281e6f9f82b0fb4f951347801a92f2cd081f80b5bfb9e316bf91935d217`; [closed period](../../../backend/tests/api/test_dashboard_testing_closed_period.py) `81cb8d3a98e82c6692e13f47104dbec1b7232a19ef65af3bcd6577b4b5029571`; [parity](../../../backend/tests/api/test_mcp_parity_baseline_037.py) `ba85ecadb1d96dd22b5cd3ec8bc69c5b182ea3f714f1e8136bd34e6abf31a8c6`. Verification-persistence13/HTTP6 remain excluded/OPEN, even if later ports become dirty.
This bounded assertion audit defines47 exact supplemental test keys, **not47 defects**:46 API keys (consumer17 +feature03710 +verification-persistence13 +verification HTTP6) and one deployment guard. It is not a backend AST inventory/count. The extra environment404 key is included because its old query body lacks required NormalizedFilterContext.schema_version, so DTO422 masks the intended404. Unaffected router registration, query-model/normalize environment tests, SQL format parity, direct feature037 immutability DTO status, and verification history/detail GETs are excluded. Original275 keys/order/count and historical383 remain unchanged.
@@ -2560,27 +2560,31 @@ At this cut10 feature037 source assertions are restored: only shared `_request`
The deployment key is mixed pending б: actual unpatched publish gate sees missing selector; known actual-evidence and unknown private-error seams independently yield fixed unavailable causes. The guard invokes the actual typed async route directly and asserts HTTPException409, not HTTP wire transport. Stage/environment setup may already commit before the gate; it asserts **no additional commit after the external deployed seam**, unchanged release status/published_at/by, real CotJsonFormatter safe facts and same-trace missing-selector gate/route events. Old unconditional 'immutability verification failed' text is intentionally withdrawn and needs the combined user approval; no diagnostic cause is invented. Owner reports three component checks and source-constructor validation; curator executed no tests/PG.
Current supplemental reachability status:36 OPEN_A,10 RESTORED_SOURCE,1 PENDING_B. Together with earlier44 supplemental keys:91 total =36 open +24 source-restored +31 pending б. Original N120=0а+120б/restored155 is unchanged; ONE pending withdrawal list151=120original+31supplemental. Merge remains blocked by supplementalа36, pending combined approval and final evidence. Remaining old scalar-PASS/legacy visual fixture outputs are still OPEN for precise property/withdrawal reconciliation, never automatically restored or approved.
Current supplemental47 status:19 OPEN_A,20 RESTORED_SOURCE,8 PENDING_B. Earlier44 remain14 source-restored/30 pending withdrawals; supplemental91=19open+34source-restored+38pending. Original N120=0а+120б/restored155 unchanged; ONE pending withdrawal list158=120original+38supplemental. Merge remains blocked by supplementalа19, pending combined approval and final evidence.
API5 literal old→current assertion review resolves17 keys into10 source-restored and7 mixed withdrawals. Shared fixture calls the real issuer with independently authored synthetic native bytes, explicit release/catalog selection, current typed DTOs/storage. PostgreSQL-only isolation requires dashboard42 initially absent and uses owned outer transaction/savepoints, without deleting/adopting foreign state. This is authored fixture reachability, not executed HTTP/PG evidence;21 retained function names alone supply no proof.
Two concrete stale parity premises were found and fixed before release: verification_body now explicit catalog_selection=None; both REST/MCP confirm bodies now explicit same review reason. Existing201/inconclusive/evidence/creator and confirmed200/actor assertions remain. Wrong-gate409/own-A200 remain live; old own-B200 after A advances their common parent is withdrawn, not transferred to opposite CATALOG_CAS_CONFLICT409. That current negative asserts full DB/owned lifecycle state unchanged. Closure fields are inspected through exact consumed DB revision, without invented explicit frozen_at oracle. Two direct closed comparison tests retain raw-byte identity on JSON-equal literal current responses; removed INTEGER/exact accepted-input dialect remains pending combined withdrawal approval. Root decisions never supply that user approval.
| Exact supplemental key (outside original275) | Old assertion/property and fixed-cut reachability barrier | Current state / exact assertion reference |
| --- | --- | --- |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_create_candidate_persistence` (source line43) | HTTP201 creates draft candidate; durable kind/run/candidate_status remain exact. Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release` (source line84) | Server-owned capture release identity persists; request supplies no release_id. Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_full_lifecycle_persistence` (source line112) | 201 draft→pending gate→confirmed actor→consumed; bound release and draft persisted_at survive. Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection` (source line198) | Foreign candidate/gate pairing returns409; each correctly paired confirmed gate can still consume. Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing.py::TestEnvironmentResolution.test_execute_query_unknown_environment` (source line307) | Otherwise valid query DTO reaches environment lookup and returns404/not found. Old normalized_filters lacks required schema_version; DTO422 masks intended404. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected` (source line34) | After valid candidate creation, approval with foreign agent_run_id is422 naming agent_run_id. Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_release_payload_mutation_rejected` (source line66) | After confirmation, changed release version causes409 and cannot consume. Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_permission_revocation_before_consume` (source line111) | After confirmation, revoked permission causes403 before consume. Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_approval_gate_returns_201` (source line165) | Current gate returns201 with gate_id/pending/candidate_id/operation. Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_required_reason_enforced` (source line200) | Confirmed decision requires reason: omitted reason409; valid reason200/confirmed. Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate` (source line36) | Ordinary approved consume creates enabled closed period2026-07, server closed time, exact source hash and block_publish policy. Shared invalid capture/DTO plus deleted YAML read; current ordinary closed wrapper must be inspected through exact DB revision. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error` (source line117) | Second closure refuses409 and preserves complete original baseline/source/closed time/state. Shared old fixtures and YAML/path assertions cannot reach current DB reclosure; preserve live refusal/rollback while separately classifying removed file/raw-text outputs. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation` (source line241) | Closed period different raw source bytes remains critical even if canonical values unchanged. Removed INTEGER/exact input path; current retained chart_response must independently demonstrate raw-byte change/current critical status. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation` (source line264) | Closed period identical retained raw source bytes does not yield critical violation. Removed INTEGER/exact input path; current equal retained response/hash/current policy needed, no fake scalar PASS. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection` (source line286) | Request hash binds period presence/value; same period verifies, changed/None period refuses. Hash property remains live, but old raw request_hash mismatch regex conflicts with fixed CANDIDATE_REQUEST_HASH_CONFLICT; legacy path output classification pending. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_mcp_parity_baseline_037.py::test_approval_gate_and_decision_outputs_are_parity` (source line105) | REST/MCP gate field parity, typed gate schema, confirmed decision and exact same actor identity. Shared unsealed candidate fixtures reject before201/parity; current gate requires explicit catalog binding. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_mcp_parity_baseline_037.py::test_verification_run_outputs_are_parity` (source line187) | REST/MCP valid request201/ok, same inconclusive structure status/category/evidence/creator. Verification body omits required catalog_selection and fails before intended parity. | OPEN_A — exact frozen replacement/source read pending (consumer). |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_create_candidate_persistence` (source line43) | HTTP201 creates draft candidate; durable kind/run/candidate_status remain exact. Fixed7fc barrier: Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | RESTORED_SOURCE — [`TestLifecycleDurability.test_create_candidate_persistence`](../../../backend/tests/api/test_dashboard_testing.py); HTTP201/draft; fresh-session DraftArtifact kind=baseline_candidate, exact run_id/candidate_status=draft. Current fixture invokes real authority issuer with retained literal query/response and explicit frozen release/catalog binding. |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release` (source line84) | Server-owned capture release identity persists; request supplies no release_id. Fixed7fc barrier: Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | PENDING_B — [`TestLifecycleDurability.test_candidate_carries_verified_capture_release`](../../../backend/tests/api/test_dashboard_testing.py); Request still omits release_id; HTTP201 persisted candidate release_id equals actual issued capture.release_id. Pending combined withdrawal: Old post-issuance capture.release_id mutation to arbitrary 'release-from-capture' as accepted authority is withdrawn. Issuer-owned release preservation remains asserted, not arbitrary metadata acceptance. |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_full_lifecycle_persistence` (source line112) | 201 draft→pending gate→confirmed actor→consumed; bound release and draft persisted_at survive. Fixed7fc barrier: Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | RESTORED_SOURCE — [`TestLifecycleDurability.test_full_lifecycle_persistence`](../../../backend/tests/api/test_dashboard_testing.py); Candidate201; gate201/pending plus fresh-session pending row; reviewed confirm200/confirmed and actor test-user-lifecycle; consume200/consumed, draft persisted_at and exact bound v1.0.0/commit. |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection` (source line198) | Foreign candidate/gate pairing returns409; each correctly paired confirmed gate can still consume. Fixed7fc barrier: Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority. | PENDING_B — [`TestLifecycleDurability.test_cross_candidate_gate_rejection`](../../../backend/tests/api/test_dashboard_testing.py); Two independently owned issued runs share explicit release/environment/parent. Wrong gate409; own A200. Own B stale parent409 exact CATALOG_CAS_CONFLICT, full head/history/payload/members/publication and owned runs/events/drafts/gates unchanged. Pending combined withdrawal: Old own-B second consume200 after A advances their same parent is withdrawn under explicit CAS (historical R9, not user approval). Current B409 is opposite output, not transferred success; wrong-gate refusal and valid own-A/full-lifecycle success remain asserted. |
| `api/test_dashboard_testing.py::TestEnvironmentResolution.test_execute_query_unknown_environment` (source line307) | Otherwise valid query DTO reaches environment lookup and returns404/not found. Fixed7fc barrier: Old normalized_filters lacks required schema_version; DTO422 masks intended404. | RESTORED_SOURCE — [`TestEnvironmentResolution.test_execute_query_unknown_environment`](../../../backend/tests/api/test_dashboard_testing.py); Body supplies schema_version1, explicit chart128/dataset256 and literal empty-filter digest; existing HTTP404 and detail 'not found' preserve intended environment lookup. |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected` (source line34) | After valid candidate creation, approval with foreign agent_run_id is422 naming agent_run_id. Fixed7fc barrier: Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | RESTORED_SOURCE — [`TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected`](../../../backend/tests/api/test_dashboard_testing_approval_guards.py); Actual-issued candidate201 followed by wrong-run-id gate422 and detail naming agent_run_id; current request_approval rejects candidate/run mismatch before approval. |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_release_payload_mutation_rejected` (source line66) | After confirmation, changed release version causes409 and cannot consume. Fixed7fc barrier: Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | RESTORED_SOURCE — [`TestFeature037ApprovalGuards.test_release_payload_mutation_rejected`](../../../backend/tests/api/test_dashboard_testing_approval_guards.py); After candidate/gate201 and reviewed confirm200, consume v2.0.0 against bound v1.0.0 still409 with release_version mismatch, retained by current _require_bound_release. |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_permission_revocation_before_consume` (source line111) | After confirmation, revoked permission causes403 before consume. Fixed7fc barrier: Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | RESTORED_SOURCE — [`TestFeature037ApprovalGuards.test_permission_revocation_before_consume`](../../../backend/tests/api/test_dashboard_testing_approval_guards.py); After valid candidate/gate/confirmation, replace principal with non-admin Viewer; consume403 unchanged; admin override restored in finally. |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_approval_gate_returns_201` (source line165) | Current gate returns201 with gate_id/pending/candidate_id/operation. Fixed7fc barrier: Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | RESTORED_SOURCE — [`TestFeature037ApprovalGuards.test_approval_gate_returns_201`](../../../backend/tests/api/test_dashboard_testing_approval_guards.py); Gate201/gate_id/pending/candidate_id/operation retained; new target_paths=[], exact captured catalog_binding and actual ApprovalGateResponse validation strengthen current assertions. |
| `api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_required_reason_enforced` (source line200) | Confirmed decision requires reason: omitted reason409; valid reason200/confirmed. Fixed7fc barrier: Shared old candidate/capture fixture is rejected before intended gate/ACL assertions. | RESTORED_SOURCE — [`TestFeature037ApprovalGuards.test_required_reason_enforced`](../../../backend/tests/api/test_dashboard_testing_approval_guards.py); Missing confirm reason409 naming reason; explicit QA reason200/confirmed after actual-issued candidate/gate201. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate` (source line36) | Ordinary approved consume creates enabled closed period2026-07, server closed time, exact source hash and block_publish policy. Fixed7fc barrier: Shared invalid capture/DTO plus deleted YAML read; current ordinary closed wrapper must be inspected through exact DB revision. | PENDING_B — [`TestClosedPeriodTransition.test_authoritative_close_via_gate`](../../../backend/tests/api/test_dashboard_testing_closed_period.py); Issuer→candidate→close-period gate→review→ordinary consume200; exact returned DB revision one entry with immutability nonnull/enabled, period2026-07, nonnull period_closed_at, issued source SHA and block_publish. No explicit frozen_at oracle. Pending combined withdrawal: Old baselines.yaml existence/search/read and first serialized YAML entry output are withdrawn file mechanics (D0/D15). Explicit closure fields now read from exact consumed DB revision. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error` (source line117) | Second closure refuses409 and preserves complete original baseline/source/closed time/state. Fixed7fc barrier: Shared old fixtures and YAML/path assertions cannot reach current DB reclosure; preserve live refusal/rollback while separately classifying removed file/raw-text outputs. | PENDING_B — [`TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error`](../../../backend/tests/api/test_dashboard_testing_closed_period.py); Fresh issued second run shares release/current selector; JSON-equal newline response has distinct SHA. Consume409 exact CATALOG_PERIOD_ALREADY_CLOSED; full DB state/prior revision unchanged, one entry original baseline_id/source hash/nonnull closed time. Pending combined withdrawal: Old arbitrary capture-metadata/hash mutation, YAML byte/path equality and raw 'Cannot close period' detail are withdrawn. Exact current DB rollback/history/refusal retains live reclosure safety without tampered authority or file outputs. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation` (source line241) | Closed period different raw source bytes remains critical even if canonical values unchanged. Fixed7fc barrier: Removed INTEGER/exact input path; current retained chart_response must independently demonstrate raw-byte change/current critical status. | PENDING_B — [`TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation`](../../../backend/tests/api/test_dashboard_testing_closed_period.py); Literal chart_response wire versus newline-only wire: parsed JSON explicitly equal, SHA256 differs; same current canonical value/policy and closed immutability yield exact IMMUTABILITY_VIOLATION. Pending combined withdrawal: Old accepted INTEGER100 plus top-level exact policy input dialect is withdrawn. Raw-byte closure property retained by current chart_response does not authorize legacy scalar/exact dispatcher. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation` (source line264) | Closed period identical retained raw source bytes does not yield critical violation. Fixed7fc barrier: Removed INTEGER/exact input path; current equal retained response/hash/current policy needed, no fake scalar PASS. | PENDING_B — [`TestClosedPeriodTransition.test_same_body_no_immutability_violation`](../../../backend/tests/api/test_dashboard_testing_closed_period.py); Current canonical chart_response17/query policy with SHA256 of same retained wire for closure/current source yields exact PASS, strengthening old !=IMMUTABILITY_VIOLATION. Pending combined withdrawal: Old accepted INTEGER100/top-level exact comparison dialect is withdrawn; same original-byte non-violation remains exact current-format assertion, not legacy scalar PASS transfer. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection` (source line286) | Request hash binds period presence/value; same period verifies, changed/None period refuses. Fixed7fc barrier: Hash property remains live, but old raw request_hash mismatch regex conflicts with fixed CANDIDATE_REQUEST_HASH_CONFLICT; legacy path output classification pending. | PENDING_B — [`TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection`](../../../backend/tests/api/test_dashboard_testing_closed_period.py); Explicit DB no-path '' hashes None/July/August differently; same July verifies; changed August and omitted period both refuse exact CANDIDATE_REQUEST_HASH_CONFLICT. Pending combined withdrawal: Old baselines.yaml intended-path dialect and raw 'request_hash mismatch' error-text obligation are withdrawn; period presence/value binding retained with fixed current refusal. |
| `api/test_mcp_parity_baseline_037.py::test_approval_gate_and_decision_outputs_are_parity` (source line105) | REST/MCP gate field parity, typed gate schema, confirmed decision and exact same actor identity. Fixed7fc barrier: Shared unsealed candidate fixtures reject before201/parity; current gate requires explicit catalog binding. | RESTORED_SOURCE — [`test_approval_gate_and_decision_outputs_are_parity`](../../../backend/tests/api/test_mcp_parity_baseline_037.py); Each owned gate equals issued catalog_binding; all six REST/MCP parity fields and actual DTO validation retained. Both confirms now same explicit review reason; confirmed200/ok and exact actor parity retained. |
| `api/test_mcp_parity_baseline_037.py::test_verification_run_outputs_are_parity` (source line187) | REST/MCP valid request201/ok, same inconclusive structure status/category/evidence/creator. Fixed7fc barrier: Verification body omits required catalog_selection and fails before intended parity. | RESTORED_SOURCE — [`test_verification_run_outputs_are_parity`](../../../backend/tests/api/test_mcp_parity_baseline_037.py); Structure evidence body now explicit catalog_selection=None/run environment dev; REST201/MCPok, identical inconclusive/category/evidence refs/creator assertions retained. |
| `api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_with_evidence_is_inconclusive_not_pass` (source line161) | xlsx evidence yields inconclusive with original evidence; never fabricated PASS. _request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name. | RESTORED_SOURCE — [`TestVerificationRunOrchestrator.test_category_with_evidence_is_inconclusive_not_pass`](../../../backend/tests/api/test_dashboard_testing_feature037.py); Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row. |
| `api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_structure_executor_with_evidence` (source line174) | Structure evidence without executable diff params yields inconclusive and preserves evidence. _request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name. | RESTORED_SOURCE — [`TestVerificationRunOrchestrator.test_structure_executor_with_evidence`](../../../backend/tests/api/test_dashboard_testing_feature037.py); Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row. |
| `api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_without_evidence_is_blocked` (source line187) | Unsupported no-evidence category remains blocked, overall blocked. _request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name. | RESTORED_SOURCE — [`TestVerificationRunOrchestrator.test_category_without_evidence_is_blocked`](../../../backend/tests/api/test_dashboard_testing_feature037.py); Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row. |
@@ -2615,23 +2619,23 @@ Current supplemental reachability status:36 OPEN_A,10 RESTORED_SOURCE,1 PENDING_
Machine-readable supplemental47 manifest below is separate from the unchanged original275 JSONL. Each record is one fixed source test identity; multiple assertions are described within that row. `OPEN_A` includes mixed/incomplete/unclassified live properties; a caller-authored PASS cannot be transferred to an opposite refusal. Source restoration remains distinct from final PG/HTTP/browser execution.
```jsonl
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_create_candidate_persistence","old_line":43,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"HTTP201 creates draft candidate; durable kind/run/candidate_status remain exact.","blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release","old_line":84,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Server-owned capture release identity persists; request supplies no release_id.","blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_full_lifecycle_persistence","old_line":112,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"201 draft→pending gate→confirmed actor→consumed; bound release and draft persisted_at survive.","blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection","old_line":198,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Foreign candidate/gate pairing returns409; each correctly paired confirmed gate can still consume.","blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing.py::TestEnvironmentResolution.test_execute_query_unknown_environment","old_line":307,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Otherwise valid query DTO reaches environment lookup and returns404/not found.","blocker":"Old normalized_filters lacks required schema_version; DTO422 masks intended404.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected","old_line":34,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"After valid candidate creation, approval with foreign agent_run_id is422 naming agent_run_id.","blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_release_payload_mutation_rejected","old_line":66,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"After confirmation, changed release version causes409 and cannot consume.","blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_permission_revocation_before_consume","old_line":111,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"After confirmation, revoked permission causes403 before consume.","blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_approval_gate_returns_201","old_line":165,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Current gate returns201 with gate_id/pending/candidate_id/operation.","blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_required_reason_enforced","old_line":200,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Confirmed decision requires reason: omitted reason409; valid reason200/confirmed.","blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate","old_line":36,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Ordinary approved consume creates enabled closed period2026-07, server closed time, exact source hash and block_publish policy.","blocker":"Shared invalid capture/DTO plus deleted YAML read; current ordinary closed wrapper must be inspected through exact DB revision.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error","old_line":117,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Second closure refuses409 and preserves complete original baseline/source/closed time/state.","blocker":"Shared old fixtures and YAML/path assertions cannot reach current DB reclosure; preserve live refusal/rollback while separately classifying removed file/raw-text outputs.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation","old_line":241,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Closed period different raw source bytes remains critical even if canonical values unchanged.","blocker":"Removed INTEGER/exact input path; current retained chart_response must independently demonstrate raw-byte change/current critical status.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation","old_line":264,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Closed period identical retained raw source bytes does not yield critical violation.","blocker":"Removed INTEGER/exact input path; current equal retained response/hash/current policy needed, no fake scalar PASS.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection","old_line":286,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"Request hash binds period presence/value; same period verifies, changed/None period refuses.","blocker":"Hash property remains live, but old raw request_hash mismatch regex conflicts with fixed CANDIDATE_REQUEST_HASH_CONFLICT; legacy path output classification pending.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_mcp_parity_baseline_037.py::test_approval_gate_and_decision_outputs_are_parity","old_line":105,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"REST/MCP gate field parity, typed gate schema, confirmed decision and exact same actor identity.","blocker":"Shared unsealed candidate fixtures reject before201/parity; current gate requires explicit catalog binding.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_mcp_parity_baseline_037.py::test_verification_run_outputs_are_parity","old_line":187,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"OPEN_A","property":"REST/MCP valid request201/ok, same inconclusive structure status/category/evidence/creator.","blocker":"Verification body omits required catalog_selection and fails before intended parity.","owner":"consumer","replacement":[],"execution":"not_run_by_curator"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_create_candidate_persistence","old_line":43,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"HTTP201 creates draft candidate; durable kind/run/candidate_status remain exact.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing.py::TestLifecycleDurability.test_create_candidate_persistence"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"HTTP201/draft; fresh-session DraftArtifact kind=baseline_candidate, exact run_id/candidate_status=draft. Current fixture invokes real authority issuer with retained literal query/response and explicit frozen release/catalog binding.","historical_blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release","old_line":84,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Server-owned capture release identity persists; request supplies no release_id.","blocker":"Old post-issuance capture.release_id mutation to arbitrary 'release-from-capture' as accepted authority is withdrawn. Issuer-owned release preservation remains asserted, not arbitrary metadata acceptance.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Request still omits release_id; HTTP201 persisted candidate release_id equals actual issued capture.release_id.","historical_blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_full_lifecycle_persistence","old_line":112,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"201 draft→pending gate→confirmed actor→consumed; bound release and draft persisted_at survive.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing.py::TestLifecycleDurability.test_full_lifecycle_persistence"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Candidate201; gate201/pending plus fresh-session pending row; reviewed confirm200/confirmed and actor test-user-lifecycle; consume200/consumed, draft persisted_at and exact bound v1.0.0/commit.","historical_blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection","old_line":198,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Foreign candidate/gate pairing returns409; each correctly paired confirmed gate can still consume.","blocker":"Old own-B second consume200 after A advances their same parent is withdrawn under explicit CAS (historical R9, not user approval). Current B409 is opposite output, not transferred success; wrong-gate refusal and valid own-A/full-lifecycle success remain asserted.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Two independently owned issued runs share explicit release/environment/parent. Wrong gate409; own A200. Own B stale parent409 exact CATALOG_CAS_CONFLICT, full head/history/payload/members/publication and owned runs/events/drafts/gates unchanged.","historical_blocker":"Shared capture/payload uses unsealed synthetic artifact, integer/exact and missing filter schema_version; source fallback cannot supply authority.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing.py::TestEnvironmentResolution.test_execute_query_unknown_environment","old_line":307,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"Otherwise valid query DTO reaches environment lookup and returns404/not found.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing.py::TestEnvironmentResolution.test_execute_query_unknown_environment"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Body supplies schema_version1, explicit chart128/dataset256 and literal empty-filter digest; existing HTTP404 and detail 'not found' preserve intended environment lookup.","historical_blocker":"Old normalized_filters lacks required schema_version; DTO422 masks intended404.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected","old_line":34,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"After valid candidate creation, approval with foreign agent_run_id is422 naming agent_run_id.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_agent_run_id_mismatch_rejected"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Actual-issued candidate201 followed by wrong-run-id gate422 and detail naming agent_run_id; current request_approval rejects candidate/run mismatch before approval.","historical_blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_release_payload_mutation_rejected","old_line":66,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"After confirmation, changed release version causes409 and cannot consume.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_release_payload_mutation_rejected"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"After candidate/gate201 and reviewed confirm200, consume v2.0.0 against bound v1.0.0 still409 with release_version mismatch, retained by current _require_bound_release.","historical_blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_permission_revocation_before_consume","old_line":111,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"After confirmation, revoked permission causes403 before consume.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_permission_revocation_before_consume"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"After valid candidate/gate/confirmation, replace principal with non-admin Viewer; consume403 unchanged; admin override restored in finally.","historical_blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_approval_gate_returns_201","old_line":165,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"Current gate returns201 with gate_id/pending/candidate_id/operation.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_approval_gate_returns_201"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Gate201/gate_id/pending/candidate_id/operation retained; new target_paths=[], exact captured catalog_binding and actual ApprovalGateResponse validation strengthen current assertions.","historical_blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_required_reason_enforced","old_line":200,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"Confirmed decision requires reason: omitted reason409; valid reason200/confirmed.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_approval_guards.py::TestFeature037ApprovalGuards.test_required_reason_enforced"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Missing confirm reason409 naming reason; explicit QA reason200/confirmed after actual-issued candidate/gate201.","historical_blocker":"Shared old candidate/capture fixture is rejected before intended gate/ACL assertions.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate","old_line":36,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Ordinary approved consume creates enabled closed period2026-07, server closed time, exact source hash and block_publish policy.","blocker":"Old baselines.yaml existence/search/read and first serialized YAML entry output are withdrawn file mechanics (D0/D15). Explicit closure fields now read from exact consumed DB revision.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Issuer→candidate→close-period gate→review→ordinary consume200; exact returned DB revision one entry with immutability nonnull/enabled, period2026-07, nonnull period_closed_at, issued source SHA and block_publish. No explicit frozen_at oracle.","historical_blocker":"Shared invalid capture/DTO plus deleted YAML read; current ordinary closed wrapper must be inspected through exact DB revision.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error","old_line":117,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Second closure refuses409 and preserves complete original baseline/source/closed time/state.","blocker":"Old arbitrary capture-metadata/hash mutation, YAML byte/path equality and raw 'Cannot close period' detail are withdrawn. Exact current DB rollback/history/refusal retains live reclosure safety without tampered authority or file outputs.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Fresh issued second run shares release/current selector; JSON-equal newline response has distinct SHA. Consume409 exact CATALOG_PERIOD_ALREADY_CLOSED; full DB state/prior revision unchanged, one entry original baseline_id/source hash/nonnull closed time.","historical_blocker":"Shared old fixtures and YAML/path assertions cannot reach current DB reclosure; preserve live refusal/rollback while separately classifying removed file/raw-text outputs.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation","old_line":241,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Closed period different raw source bytes remains critical even if canonical values unchanged.","blocker":"Old accepted INTEGER100 plus top-level exact policy input dialect is withdrawn. Raw-byte closure property retained by current chart_response does not authorize legacy scalar/exact dispatcher.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Literal chart_response wire versus newline-only wire: parsed JSON explicitly equal, SHA256 differs; same current canonical value/policy and closed immutability yield exact IMMUTABILITY_VIOLATION.","historical_blocker":"Removed INTEGER/exact input path; current retained chart_response must independently demonstrate raw-byte change/current critical status.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation","old_line":264,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Closed period identical retained raw source bytes does not yield critical violation.","blocker":"Old accepted INTEGER100/top-level exact comparison dialect is withdrawn; same original-byte non-violation remains exact current-format assertion, not legacy scalar PASS transfer.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Current canonical chart_response17/query policy with SHA256 of same retained wire for closure/current source yields exact PASS, strengthening old !=IMMUTABILITY_VIOLATION.","historical_blocker":"Removed INTEGER/exact input path; current equal retained response/hash/current policy needed, no fake scalar PASS.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection","old_line":286,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"PENDING_B","property":"Request hash binds period presence/value; same period verifies, changed/None period refuses.","blocker":"Old baselines.yaml intended-path dialect and raw 'request_hash mismatch' error-text obligation are withdrawn; period presence/value binding retained with fixed current refusal.","owner":"consumer","replacement":["backend/tests/api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Explicit DB no-path '' hashes None/July/August differently; same July verifies; changed August and omitted period both refuse exact CANDIDATE_REQUEST_HASH_CONFLICT.","historical_blocker":"Hash property remains live, but old raw request_hash mismatch regex conflicts with fixed CANDIDATE_REQUEST_HASH_CONFLICT; legacy path output classification pending.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_mcp_parity_baseline_037.py::test_approval_gate_and_decision_outputs_are_parity","old_line":105,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"REST/MCP gate field parity, typed gate schema, confirmed decision and exact same actor identity.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_mcp_parity_baseline_037.py::test_approval_gate_and_decision_outputs_are_parity"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Each owned gate equals issued catalog_binding; all six REST/MCP parity fields and actual DTO validation retained. Both confirms now same explicit review reason; confirmed200/ok and exact actor parity retained.","historical_blocker":"Shared unsealed candidate fixtures reject before201/parity; current gate requires explicit catalog binding.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_mcp_parity_baseline_037.py::test_verification_run_outputs_are_parity","old_line":187,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"REST/MCP valid request201/ok, same inconclusive structure status/category/evidence/creator.","blocker":"","owner":"consumer","replacement":["backend/tests/api/test_mcp_parity_baseline_037.py::test_verification_run_outputs_are_parity"],"execution":"source_assertions_only_not_run_by_curator","assertion_basis":"Structure evidence body now explicit catalog_selection=None/run environment dev; REST201/MCPok, identical inconclusive/category/evidence refs/creator assertions retained.","historical_blocker":"Verification body omits required catalog_selection and fails before intended parity.","proof":"2d24d9ce+released-API5-49672510-78f663af-7db4c281-81cb8d3a-ba85ecad"}
{"supplemental_key":"api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_with_evidence_is_inconclusive_not_pass","old_line":161,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"xlsx evidence yields inconclusive with original evidence; never fabricated PASS.","blocker":"_request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name.","owner":"main","replacement":["backend/tests/api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_with_evidence_is_inconclusive_not_pass"],"execution":"not_run_by_curator","proof":"7fc3105f+released-feature037-c2a670c3","assertion_basis":"Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row."}
{"supplemental_key":"api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_structure_executor_with_evidence","old_line":174,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"Structure evidence without executable diff params yields inconclusive and preserves evidence.","blocker":"_request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name.","owner":"main","replacement":["backend/tests/api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_structure_executor_with_evidence"],"execution":"not_run_by_curator","proof":"7fc3105f+released-feature037-c2a670c3","assertion_basis":"Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row."}
{"supplemental_key":"api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_without_evidence_is_blocked","old_line":187,"source":"7fc3105f8fb845cb8a4111b24d81c900a31a67a2","state":"RESTORED_SOURCE","property":"Unsupported no-evidence category remains blocked, overall blocked.","blocker":"_request omits required catalog_selection; independent source/DTO branch review needed after explicit-null port, not merely same function name.","owner":"main","replacement":["backend/tests/api/test_dashboard_testing_feature037.py::TestVerificationRunOrchestrator.test_category_without_evidence_is_blocked"],"execution":"not_run_by_curator","proof":"7fc3105f+released-feature037-c2a670c3","assertion_basis":"Exact existing test body unchanged; helper now explicitly supplies catalog_selection=None. Reviewed current orchestrator validation/dispatch/derive/persistence branches retain the stated assertion. Metric outcomes may remain blocked; no metric PASS assertion exists in this row."}
@@ -2666,7 +2670,7 @@ Machine-readable supplemental47 manifest below is separate from the unchanged or
### One combined pending withdrawal list
The151 pending withdrawals (120 original275 manifest records +21 explicitly marked supplemental D17 keys +9 SDK keys +1 explicitly marked API/deployment key outside275) constitute **one combined user-review list**, with one exact historical key and one reason per record. No per-row root decision is requested or treated as approval. Their current assertion references, where present, describe the separately preserved live property or the opposite new safety contract; they do not turn a withdrawal into an assertion-equivalent transfer.
The158 pending withdrawals (120 original275 manifest records +21 explicitly marked supplemental D17 keys +9 SDK keys +8 explicitly marked API/deployment keys outside275) constitute **one combined user-review list**, with one exact historical key and one reason per record. No per-row root decision is requested or treated as approval. Their current assertion references, where present, describe the separately preserved live property or the opposite new safety contract; they do not turn a withdrawal into an assertion-equivalent transfer.
Quoted existing decision bases remain the historical A0/A11/A15/AV/AC table above: D0 says “Читатели старого формата и код, необходимый только для него, удаляются”; D11 says “Production-обход React/Fiber/Redux запрещён, запасного источника через store нет”; D15 says “Runtime выбирает явный id ревизии, а не YAML, JSONL или содержимое Git.” R9 requires explicit expected-revision CAS and does not retire winner/history preservation. These explain candidate withdrawal reasons; they do not supply user approval. Existing live ACL, approval, policy, rollback, immutable history and current-value properties remain mandatory.
@@ -2758,7 +2762,6 @@ Paths are relative to `backend/tests/`; every row remains pending the same combi
| `services/dashboard_testing/test_visual_executor_async_resolve.py::TestResolveVisualEvidenceAndClient.test_superset_client_failure_blocked` **outside275 / D17 supplemental** | Old SDK connection side effect/raw conn refused output contract is withdrawn under D17; current completed-capture reader has no equivalent client-creation dependency. Preserved current assertion: Current retained completed-capture comparison creates no SDK client. See exact function links in the supplemental35 table above. |
| `services/dashboard_testing/test_visual_executor_async_resolve.py::TestResolveVisualEvidenceAndClient.test_success_resolves_bytes_and_client` **outside275 / D17 supplemental** | Old returned SDK client and first-evidence authority obligations are withdrawn under D17; actual owned completed-capture bytes/identity/timestamp are separately asserted, not direct SDK success. Preserved current assertion: Authored PG: exact DB selection and independently completed actual capture; literal PNG/SHA/artifact/op IDs, distinct actual/expected run/root, original completed_at retained. See exact function links in the supplemental35 table above. |
| `services/dashboard_testing/test_visual_executor_async_resolve.py::TestResolveVisualEvidenceAndClient.test_success_without_expected_content_ref` **outside275 / D17 supplemental** | Old positive success with null expected content_ref/bytes is withdrawn under D17/no-fallback; new refusal is opposite behavior, not a null-positive transfer. Preserved current assertion: Missing expected ref now unavailable; existing actual full success requires owned expected bytes. See exact function links in the supplemental35 table above. |
| `services/dashboard_testing/test_metric_executor_async_compare.py::TestComparisonMapping.test_compare_pass` **outside275 / SDK supplemental** | Old detached scalar SDK CategoryOutcome summary, 16-character actual_hash and injected evidence-list projection are withdrawn under R2/D0; current owned value/result/source/ref properties are separately asserted. Preserved current assertion: Retained actual full wire gives PASS, empty diffs/warnings/cells; shared compare() verifies actual/expected/policy, full raw hash and explicit baseline ID. Existing outer wrapped-result guard keeps exact output refs. See exact function links in the paired SDK table above. |
| `services/dashboard_testing/test_metric_executor_async_compare.py::TestComparisonMapping.test_compare_fail_with_diffs_and_warnings` **outside275 / SDK supplemental** | Old scalar compare_values injected arbitrary WARN_1/value-field and formatted summary forwarding are withdrawn with detached SDK helper R2; current ordinary failure and critical named-cell/warning preservation remain live separately. Preserved current assertion: Ordinary changed cells independently remain FAIL; closed changed bytes produce critical immutability status, exact C32-vs31/delta1 cell and fixed IMMUTABILITY_VIOLATION warning. Same old name now tests the critical case, so is not an ordinary-FAIL equivalence by name. See exact function links in the paired SDK table above. |
| `services/dashboard_testing/test_metric_executor_async_compare.py::TestComparisonMapping.test_compare_inconclusive` **outside275 / SDK supplemental** | Old arbitrary scalar SDK inconclusive result/summary forwarding is withdrawn with detached helper R2; current verified period inconclusive is retained, not transport/status injection equivalence. Preserved current assertion: Retained current period mismatch returns inconclusive with precise queries[0].period diff. See exact function links in the paired SDK table above. |
@@ -2769,7 +2772,6 @@ Paths are relative to `backend/tests/`; every row remains pending the same combi
| `services/dashboard_testing/test_metric_executor_async_compare.py::TestComparisonMapping.test_compare_unknown_status_maps_inconclusive` **outside275 / SDK supplemental** | Old unmapped PERMISSION_DENIED enum→inconclusive fallback is withdrawn under R2/no-fallback; current unknown-status refusal is opposite behavior. Preserved current assertion: Pure projector rejects unknown status instead of defaulting to inconclusive. See exact function links in the paired SDK table above. |
| `services/dashboard_testing/test_metric_executor_async_compare.py::TestComparisonMapping.test_compare_exception_blocked` **outside275 / SDK supplemental** | Old detached compare_values RuntimeError→blocked/raw Comparison failed: cmp boom API is withdrawn R2; current outer projection must still safely refuse an exception without fabricated success. Preserved current assertion: Actual retained changed wire first proves FAIL; the actual outer native comparison catches only a forced projector RuntimeError. It returns fixed inconclusive NATIVE_METRIC_CELL_PROJECTION_UNAVAILABLE, no comparison/PASS, preserves exact verified request/response refs, and records one safe failure_type=RuntimeError/evidence_verified=true/output_ref_count=2 event without the private sentinel. The comparator boundary returns the already independently verified tuple; this is component catch proof, not persisted producer admission. See exact function links in the paired SDK table above. |
| `services/dashboard_testing/test_metric_executor_async.py::TestQueryEnvelopeErrors.test_execution_error_blocked` | Live actual async query-helper RuntimeError now blocks METRIC_QUERY_EXECUTION_FAILED with exact original evidence, fixed details, one safe query_execution/RuntimeError event and no private sentinel. Both owned observer transport guards remain separate authority/refusal proofs. Old raw 'Query execution failed: exec boom' summary is intentionally withdrawn under no-fallback/R2; combined user approval pending, not an equivalent raw-output transfer. |
| `services/dashboard_testing/test_reconciliation_visual.py::TestReconcileVisualEntry.test_filters_hash_prefixed` | Old bare abc123→sha256:abc123 repair is withdrawn with legacy conversion D0/R3; exact current hash preservation does not assert that repair. Preserved current assertion: Current mapper preserves authored typed filter context unchanged. See exact function links in the consumer19 table above. |
| `services/dashboard_testing/test_reconciliation_visual.py::TestReconcileVisualEntry.test_immutability_pca_non_string_kept` | Old incomplete/raw-hash 'raw' converter input acceptance is withdrawn D0/R3; valid typed closure preservation remains live and separately asserted. Preserved current assertion: Valid complete closure instance/date identity and full JSON values survive current visual mapping. See exact function links in the consumer19 table above. |
| `services/dashboard_testing/test_reconciliation_visual.py::TestReconcileVisualEntry.test_immutability_pca_string_to_datetime` | Old partial converter's sha256:cafe→cafe repair is withdrawn D0/R3; valid timestamp/closure preservation remains separately asserted. Preserved current assertion: Valid current full closure JSON/time/source values survive mapping; ordinary consume persists exact server closed block. See exact function links in the consumer19 table above. |
@@ -2787,7 +2789,6 @@ Paths are relative to `backend/tests/`; every row remains pending the same combi
| `services/dashboard_testing/test_reconciliation_branches.py::TestReconcileFromSchemaEntry.test_immutability_pca_str_parsed` | Old cafe→sha256:cafe prefix insertion and incomplete reverse converter dialect are withdrawn D0/R3; current valid closure values are retained separately. Preserved current assertion: Current valid typed dictionary/instance preserves complete closure timestamp/hash. See exact function links in the consumer19 table above. |
| `services/dashboard_testing/test_baseline_catalog_edges.py::test_write_catalog_visual_only_roundtrip` | Old YAML I/O and raw policy.type='exact' reverse schema spelling are withdrawn D0/D15; exact current visual-only durable revision/projection property remains live and authored. Preserved current assertion: New authored PG guard appends exact visual-only DB generation then loads/projects metrics=[] and one exact visual wrapper, status/ID/tab/release/all four fingerprints/image/catalog digest/integrity. PG execution pending. See exact function links in the consumer19 table above. |
| `services/dashboard_testing/test_visual_baseline_writeroundtrip.py::test_write_catalog_serializes_visual_entries` | Old path.exists/YAML serialization/reader and reverse policy.type='exact' spelling are withdrawn D0/D15; current visual identity/release/value preservation survives separately. Preserved current assertion: Current mixed projection preserves visual ID/tab/release/commit/all four literal fingerprints and whole entry JSON; authored PG roundtrip preserves complete typed wrappers/membership/history. See exact function links in the consumer19 table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_attested_snapshot_revises_only_target_with_unique_ids` | Legacy not_applicable→confirmed repair with deterministic target/review digest and no fresh capture is withdrawn under AV/R7; ordinary approval, target isolation and identity uniqueness remain live. Preserved assertion: Old target-only revision, unique IDs and unchanged unrelated entries survive ordinary confirmed review/consume, exact persisted unrelated wrapper bytes and duplicate identity refusal. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_exact_source_selectors_project_full_visual_generation` | Legacy caller source-selector reconstruction is withdrawn under AV/R7/D15; current explicit DB generation completeness/history remains independently asserted. Preserved assertion: Current exact five-member generation preserves complete approved/invalidated/retired visual and approved/superseded metric wrappers, projects only wrapper status and mutates no loaded input. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_historical_unpublished_wrapper_cannot_become_attestation_target` | Historical legacy repair target selection and its old target error are withdrawn AV/R7; missing current review/native authority still refuses. Preserved assertion: Current wrapper admission independently rejects missing confirmed review receipt and native proof; ordinary consume rechecks persisted review/capture/hold authority before append. Exact function refs appear in the bounded attestation table above. |
@@ -2808,17 +2809,13 @@ Paths are relative to `backend/tests/`; every row remains pending the same combi
| `services/dashboard_testing/test_visual_revision_attestation_schema.py::test_operation_schema_accepts_current_metric_policy_wrapper` | Special visual_review_attestation operation envelope acceptance for metric wrappers is operation-only AV/R7 withdrawal; current metric policy/authority remains live. Preserved assertion: Current explicit typed revision retains chart_response/native proof and explicit invocation; exact server-owned wrapper authority survives wiring. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation_schema.py::test_operation_schema_maps_malformed_visual_policy_to_fixed_refusal` | Old repair operation-schema error/YAML noncreation are withdrawn AV/R7/D15; malformed current policy still refuses. Valid-dict amount negatives remain separate OPEN rows. Preserved assertion: Otherwise complete current visual metadata with non-dict policy refuses fixed VISUAL_ENTRY_META_INVALID at mapper; no numeric policy fallback. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation_schema.py::test_operation_schema_refuses_unresolved_external_reference` | Removed repair JSONSchema registry/file boundary and fixed operation error are operation-only AV/R7/D15 withdrawal; no equivalent external-reference test is claimed. Preserved assertion: Old test deliberately removes JSONSchema Registry resource resolution from deleted repair validator; current typed DB reader has no such external schema resolution dependency. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation_schema.py::test_visual_operation_schema_accepts_receipted_native_and_historical_visual` | Old visual_review_attestation positive admission of receiptless/native-absent legacy wrappers and its operation/YAML vocabulary are withdrawn AV/R7/D0/D15; live current receipt/native/closed-wrapper/history properties remain independently asserted. Preserved assertion: Current exact five-member wrapper/history projection retains all valid historical statuses. Missing review/native authority refuses. New independent unknown_wrapper current typed admission rejects wrapper foreign_field at exact ('entry_revisions',0,'foreign_field') with extra_forbidden and unchanged input; nested unknown_entry is a separate case. Exact function refs appear in the bounded attestation table above. |
| `services/dashboard_testing/test_visual_revision_attestation_authority.py::test_malformed_prior_operation_history_is_fixed_refusal_without_append` | Old JSONL prior-operation repair reader, VISUAL_ATTESTATION_HISTORY_INVALID and YAML/history byte assertions are withdrawn AV/R7/D15. Current malformed compound policy refusal/privacy/no mutation remain live and separately asserted. Preserved current assertion: Old current visual_perceptual amount=[0.5] is independently rejected from otherwise-complete mapper metadata and external DB revision payload. Mapper returns VISUAL_ENTRY_POLICY_INVALID, full metadata unchanged and one fixed safe event; DB read returns CATALOG_REVISION_PAYLOAD_INVALID, full input payload/head/members unchanged, zero commits and no alternate file/network I/O. See exact function links in bounded policy-threshold table above. |
| `services/dashboard_testing/test_visual_revision_attestation_authority.py::test_source_projection_overflow_is_fixed_refusal` | Old caller legacy selector/source repair projection and VISUAL_ATTESTATION_SOURCE_INVALID are withdrawn AV/R7/D15; current oversized perceptual threshold still fails closed at exact current owners. Preserved current assertion: Same literal amount=10**400 reaches otherwise-complete current mapper and external DB payload. Both fixed typed refusals expose no amount/huge value in safe facts, preserve input and yield no appended revision or alternate I/O. See exact function links in bounded policy-threshold table above. |
| `services/dashboard_testing/test_visual_revision_attestation_schema.py::test_current_visual_projection_and_perceptual_policy_validate` | Old reverse policy={type:perceptual,ssim_min:0.95}, omitted expected-image authority, null run success and repair operation envelope are withdrawn D0/AV/R7/D15. Explicit current threshold preservation and missing-threshold refusal remain live. Preserved current assertion: Same missing perceptual amount=None independently refuses current mapper and external DB read with exact fixed causes and unchanged state. Authored explicit current visual_perceptual threshold mapping and ordinary consume preserve numeric policy separately. See exact function links in bounded policy-threshold table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_append_is_one_full_cas_successor_with_exact_replay` | Old visual repair created a deterministic review-only successor with unchanged entry/status and YAML/JSONL prefix outputs; that operation and file representation are withdrawn AV/R7/D15. Current ordinary approval may supersede a prior wrapper; it is not claimed equivalent to old repair's unchanged target status. Preserved current assertion: Current same invocation returns the identical successor/CAS3 without another append; changed request digest/parent/CAS/reason yields CATALOG_INVOCATION_CONFLICT and preserves every scoped head/history payload/member/publication column. Actual ordinary consume independently proves one approved successor with exact supersedes link and unchanged historical expected bytes; stale-session CAS refuses. Unrelated complete metric/visual wrappers persist unchanged. Exact function refs appear in current operation-replay table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_exact_replay_accepts_mutable_publication_only_and_rejects_tampering` | Removed _verify_replay over a caller-supplied repair envelope, including caller publication.state mutation and revision_sha256 spelling, is AV/R7/D15 withdrawal. Current DB replay/integrity/publication retry properties remain separately asserted, not a restored caller-envelope positive. Preserved current assertion: Current immutable operation retry preserves exact identity/CAS and rejects changed digest/parent plus foreign actor; new four-case DB snapshot preserves all prior publication fields on refused retry. Current external DB integrity corruption independently refuses; already-published publication-worker retry creates no external writes. No equality across a legitimate intervening publication change is claimed from this matrix. Exact function refs appear in current operation-replay table above. |
| `services/dashboard_testing/test_visual_revision_attestation.py::test_request_identity_binds_canonical_selectors_and_actor_scope` | Old _request_identity algorithm for candidate/file hash/repair selector lists and its actor-derived key construction are withdrawn with the removed repair input API AV/R7/D15. Current actor-scoped explicit operation admission and body-bound replay remain live and separately asserted. Preserved current assertion: Current same explicit invocation replays exactly; foreign actor refuses. Independent changed request digest/parent/CAS/reason conflicts retain every persisted scoped column; diagnostic separates operation kind match from valid required/observed SHA facts. No canonicalization of the deleted selector dictionary is claimed. Exact function refs appear in current operation-replay table above. |
| `services/dashboard_testing/test_catalog_queries.py::TestFindEntry.test_matches_by_dataset_id` | Old chart_id=None dataset-only inferred target success is withdrawn R4/D16; exact supplied dataset identity remains live but is not an equivalent chart-less positive. Preserved current assertion: Current explicit native scope positive matches dataset4 together with chart8, metric, filter/model and pin identity. Independent dataset mismatch refuses; actual PG exact-coordinate positive/foreign negatives are authored separately. Exact function refs appear in the remaining twelve-key table above. |
| `services/dashboard_testing/test_catalog_queries.py::TestFindVisualEntry.test_dashboard_mismatch_returns_none` | Old find_visual_entry None return vocabulary is withdrawn R4/no-fallback; foreign dashboard still refuses and no unrequested visual is selected. Preserved current assertion: Independent dashboard99 input to exact requested visual revision refuses CATALOG_DASHBOARD_SCOPE_CONFLICT; catalog payload unchanged and zero commits. Exact function refs appear in the remaining twelve-key table above. |
| `services/dashboard_testing/test_catalog_queries.py::TestFindVisualEntry.test_empty_visual_entries_returns_none` | Old empty visual inventory→None representation is withdrawn R4/no-fallback; visible current unavailability/unchanged unrelated metric remains live. Preserved current assertion: Current exact selection with no visual rows refuses CATALOG_BASELINE_SELECTION_REQUIRED; unrelated metric remains one and full payload unchanged/zero commits. Exact function refs appear in the remaining twelve-key table above. |
@@ -2831,8 +2828,14 @@ Paths are relative to `backend/tests/`; every row remains pending the same combi
| `services/dashboard_testing/test_catalog_revision_log.py::test_publish_failed_requires_error_code` | Old public JSONL record_publish_outcome(...publish_failed,error_code=None) setter and its raw error text are removed D15; current worker owns fixed typed failed-state causes, not an equivalent caller-setter API. Preserved current assertion: Current actual worker transport/conflict/head-moved failures persist publish_failed with exact PUBLISH_UNAVAILABLE/PUBLISH_CONFLICT/PUBLISH_HEAD_MOVED, no invented receipt, no second write, and retry reconciles same commit. These actual PG guards remain unexecuted. Exact function refs appear in the remaining twelve-key table above. |
| `services/dashboard_testing/test_metric_executor_async.py::TestResolveCatalogEntry.test_repository_not_found_returns_outcome` | Old direct GitRepository missing-row lookup used only to derive catalog filepath and raw 'GitRepository not found' summary is withdrawn D15/no-fallback; no current missing-GitRepository-row coverage is falsely claimed. Preserved current assertion: Actual executor foreign DB selected repository scope refuses fixed BASELINE_PUBLICATION_RECEIPT_INVALID, preserves owned evidence and never creates client, inspects or queries. Exact function refs appear in the remaining twelve-key table above. |
| `services/dashboard_testing/execution/test_publication_git_repository.py::test_published_receipt_and_revision_name_real_git_commit` | Old YAML/JSONL current_head publication mutation, envelope/raw-Git runtime reader, equivalent-JSON remote-byte authority and branch-current reread refusal are withdrawn D15. Current DB SSOT exact render/receipt/pin/filter/integrity properties remain live; remote-read outcomes are not opposite-behavior transfers. Preserved current assertion: Real isolated Git counterpart asserts exact DB-render commit bytes, revision/head and retry attempts2 with only2 commits. Worker exact render/six-field receipt and marker retry guards cover state/operation binding; independent missing/foreign receipt head/render/integrity and operation catalog_digest/repository refuse. New complete typed nonempty pin projection preserves three literal normalized controls including nested selected/cleared/time-range values, distinct effective native-context shape and full source/native block without input mutation. Authored actual native lifecycle joins exact published revision/commit/source and frozen pin separately; no single executed real-Git+PG/browser join is claimed. Exact function refs appear in the remaining twelve-key table above. |
| `api/test_git_repo_lifecycle_deploy_routes.py::TestDeployDashboardProd.test_prod_publish_gate_blocked_409` **outside275 / API-deployment supplemental** | Old test injected generic immutability exception and required false 'immutability verification failed' copy regardless actual cause. That raw/incorrect reason obligation is withdrawn pending combined user approval. Preserved current assertion: Three exact cases: actual unpatched missing catalog selector→CATALOG_SELECTION_REQUIRED; known actual evidence cause→ACTUAL_EVIDENCE_REQUIRED; private unknown→PUBLISH_VERIFICATION_UNAVAILABLE. Actual typed route invoked directly with trusted args, not TestClient HTTP wire; same-trace gate+route JSON facts and unchanged post-gate state asserted. Exact current guard appears in supplemental API reachability table above. |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_candidate_carries_verified_capture_release` **outside275 / API supplemental** | Old post-issuance capture.release_id mutation to arbitrary 'release-from-capture' as accepted authority is withdrawn. Issuer-owned release preservation remains asserted, not arbitrary metadata acceptance. Preserved current assertion: Request still omits release_id; HTTP201 persisted candidate release_id equals actual issued capture.release_id. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing.py::TestLifecycleDurability.test_cross_candidate_gate_rejection` **outside275 / API supplemental** | Old own-B second consume200 after A advances their same parent is withdrawn under explicit CAS (historical R9, not user approval). Current B409 is opposite output, not transferred success; wrong-gate refusal and valid own-A/full-lifecycle success remain asserted. Preserved current assertion: Two independently owned issued runs share explicit release/environment/parent. Wrong gate409; own A200. Own B stale parent409 exact CATALOG_CAS_CONFLICT, full head/history/payload/members/publication and owned runs/events/drafts/gates unchanged. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_via_gate` **outside275 / API supplemental** | Old baselines.yaml existence/search/read and first serialized YAML entry output are withdrawn file mechanics (D0/D15). Explicit closure fields now read from exact consumed DB revision. Preserved current assertion: Issuer→candidate→close-period gate→review→ordinary consume200; exact returned DB revision one entry with immutability nonnull/enabled, period2026-07, nonnull period_closed_at, issued source SHA and block_publish. No explicit frozen_at oracle. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_authoritative_close_idempotent_reclosure_raises_error` **outside275 / API supplemental** | Old arbitrary capture-metadata/hash mutation, YAML byte/path equality and raw 'Cannot close period' detail are withdrawn. Exact current DB rollback/history/refusal retains live reclosure safety without tampered authority or file outputs. Preserved current assertion: Fresh issued second run shares release/current selector; JSON-equal newline response has distinct SHA. Consume409 exact CATALOG_PERIOD_ALREADY_CLOSED; full DB state/prior revision unchanged, one entry original baseline_id/source hash/nonnull closed time. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_changed_bytes_same_scalar_produces_critical_violation` **outside275 / API supplemental** | Old accepted INTEGER100 plus top-level exact policy input dialect is withdrawn. Raw-byte closure property retained by current chart_response does not authorize legacy scalar/exact dispatcher. Preserved current assertion: Literal chart_response wire versus newline-only wire: parsed JSON explicitly equal, SHA256 differs; same current canonical value/policy and closed immutability yield exact IMMUTABILITY_VIOLATION. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_same_body_no_immutability_violation` **outside275 / API supplemental** | Old accepted INTEGER100/top-level exact comparison dialect is withdrawn; same original-byte non-violation remains exact current-format assertion, not legacy scalar PASS transfer. Preserved current assertion: Current canonical chart_response17/query policy with SHA256 of same retained wire for closure/current source yields exact PASS, strengthening old !=IMMUTABILITY_VIOLATION. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
| `api/test_dashboard_testing_closed_period.py::TestClosedPeriodTransition.test_close_period_mutation_causes_hash_rejection` **outside275 / API supplemental** | Old baselines.yaml intended-path dialect and raw 'request_hash mismatch' error-text obligation are withdrawn; period presence/value binding retained with fixed current refusal. Preserved current assertion: Explicit DB no-path '' hashes None/July/August differently; same July verifies; changed August and omitted period both refuse exact CANDIDATE_REQUEST_HASH_CONFLICT. Exact source reference appears in supplemental API table above; source restoration is not PG/HTTP proof. |
### Machine-readable original275-key current-status manifest