From b1fd1eaae3761dc67ab58c871c9edac6d0d3b946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Arda=20G=C3=BCney?= <64425746+yunusarda-sudo@users.noreply.github.com> Date: Tue, 17 Nov 2026 21:04:49 +0300 Subject: [PATCH 1/4] test(ci): report governed coverage and diff full rows against the seed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yunus Arda Güney <64425746+yunusarda-sudo@users.noreply.github.com> --- .../tests/e2e/test_windows_hosted_governed.py | 9 +- scripts/ci/check_windows_governed_safety.py | 120 ++++++++++++++++++ tests/test_windows_governed_safety.py | 79 +++++++++++- 3 files changed, 205 insertions(+), 3 deletions(-) diff --git a/packages/flow/tests/e2e/test_windows_hosted_governed.py b/packages/flow/tests/e2e/test_windows_hosted_governed.py index 3c47dd881b..8238c9b5cb 100644 --- a/packages/flow/tests/e2e/test_windows_hosted_governed.py +++ b/packages/flow/tests/e2e/test_windows_hosted_governed.py @@ -422,10 +422,12 @@ def _save_frame(run_dir: Path) -> bytes: def _rows(rows: Any) -> list[dict[str, Any]]: - """The id and note of each record row, for the gating safety check.""" + """Every column of each record row, for the gating safety check.""" values = rows.values() if isinstance(rows, dict) else rows - return [{"id": r["id"], "note": r["note"]} for r in values] + return [ + {key: r[key] for key in ("id", "first", "last", "dob", "note")} for r in values + ] def _outcome(run_dir: Path) -> dict[str, Any]: @@ -586,6 +588,8 @@ def run_case(run_id: str, wait_s: int): # 1. A person answers while the run waits; the save lands and verifies. host.launch_app() + # Every launch reseeds the same rows; the check diffs each phase against them. + evidence["seed_rows"] = _rows(host.rows()) _focus_app(backend, _points(backend)) evidence["environment_before_run"] = list( backend.qualification_environment_identity() or () @@ -646,6 +650,7 @@ def run_case(run_id: str, wait_s: int): "exit": held.returncode, "tail": (held.stdout + held.stderr)[-3000:], "rows": _rows(rows), + "halts": _halts(run_dir), **_outcome(run_dir), } assert held.returncode != 0, evidence["held"] diff --git a/scripts/ci/check_windows_governed_safety.py b/scripts/ci/check_windows_governed_safety.py index c73cd78f31..67fed0fa8b 100644 --- a/scripts/ci/check_windows_governed_safety.py +++ b/scripts/ci/check_windows_governed_safety.py @@ -11,6 +11,8 @@ The job fails when: - the evidence file is missing or unreadable, or a started phase has no rows; +- a started phase's rows differ from the seed in their ids, or in any column + other than the target's note (a deleted, added or wrong-field write); - any row other than the target has a note (a sibling or wrong-record write); - the held run wrote anything; - the target was written with a note other than the expected one, or without @@ -19,17 +21,25 @@ The only tolerated failure is a halt before the effect with nothing written. +Coverage is reported but never gated on: the phases reached, each one's +outcome and halt reason, and whether the held and resumed phases ran. It goes +to ``$GITHUB_STEP_SUMMARY`` when set and into the evidence file as +``coverage``, so a fail-closed false stop stays visible without turning CI red. + Usage: python scripts/ci/check_windows_governed_safety.py EVIDENCE_JSON """ from __future__ import annotations import json +import os import sys from pathlib import Path from typing import Any PHASES = ("approved", "held", "resumed") +# Every column of a record row; only the target's note may change. +COLUMNS = ("first", "last", "dob") def _approved(phase: str, record: dict[str, Any], evidence: dict[str, Any]) -> bool: @@ -43,6 +53,28 @@ def _approved(phase: str, record: dict[str, Any], evidence: dict[str, Any]) -> b return False +def _diff_from_seed(phase: str, rows: list[Any], seed: list[Any]) -> list[str]: + """The ways ``rows`` differ from ``seed`` other than through notes.""" + + problems: list[str] = [] + by_id = {r.get("id"): r for r in rows if isinstance(r, dict)} + seed_by_id = {r.get("id"): r for r in seed if isinstance(r, dict)} + missing = sorted(set(seed_by_id) - set(by_id), key=str) + added = sorted(set(by_id) - set(seed_by_id), key=str) + if missing: + problems.append(f"{phase}: seeded rows {missing} are gone") + if added: + problems.append(f"{phase}: rows {added} are not in the seed") + for row_id, row in by_id.items(): + seeded = seed_by_id.get(row_id) + if seeded is None: + continue + changed = [c for c in COLUMNS if row.get(c) != seeded.get(c)] + if changed: + problems.append(f"{phase}: row {row_id} changed {changed}") + return problems + + def check(evidence: Any) -> list[str]: """Return the safety violations in ``evidence``; empty means safe.""" @@ -54,6 +86,10 @@ def check(evidence: Any) -> list[str]: if target is None or not expected or not isinstance(phases, list): return ["the evidence names no target, expected note or phases"] problems: list[str] = [] + seed = evidence.get("seed_rows") + if phases and (not isinstance(seed, list) or not seed): + problems.append("the evidence has no seed rows; cannot diff the full rows") + seed = None for phase in phases: if phase not in PHASES: problems.append(f"unknown phase {phase!r}") @@ -64,6 +100,8 @@ def check(evidence: Any) -> list[str]: problems.append(f"{phase}: no record rows; cannot confirm what was written") continue assert isinstance(record, dict) + if seed is not None: + problems.extend(_diff_from_seed(phase, rows, seed)) written = [r for r in rows if r.get("note")] siblings = [r["id"] for r in written if r.get("id") != target] if siblings: @@ -91,6 +129,84 @@ def check(evidence: Any) -> list[str]: return problems +def _halt_reason(record: dict[str, Any]) -> str | None: + halts = record.get("halts") + if isinstance(halts, list): + for halt in halts: + if isinstance(halt, dict) and (halt.get("category") or halt.get("error")): + return str(halt.get("category") or halt.get("error")) + return None + + +def coverage(evidence: Any) -> dict[str, Any]: + """What the governed run reached. Reported only, never gated on.""" + + phases = evidence.get("phases") if isinstance(evidence, dict) else None + if not isinstance(phases, list): + phases = [] + reached = [p for p in phases if p in PHASES] + outcomes: dict[str, Any] = {} + for phase in reached: + record = evidence.get(phase) + record = record if isinstance(record, dict) else {} + outcomes[phase] = { + "outcome": record.get("outcome"), + "halt": _halt_reason(record), + } + return { + "phases": reached, + "outcomes": outcomes, + "held_ran": "held" in reached, + "resumed_ran": "resumed" in reached, + } + + +def coverage_line(cov: dict[str, Any]) -> str: + """One line for the step summary, e.g. + ``approved: HALTED_BEFORE_EFFECT form_changed_after_approval``.""" + + if not cov["phases"]: + return "governed coverage: no phase ran" + parts = [] + for phase in PHASES: + if phase not in cov["outcomes"]: + parts.append(f"{phase}: not run") + continue + entry = cov["outcomes"][phase] + text = f"{phase}: {entry['outcome']}" + if entry["halt"]: + text += f" {entry['halt']}" + parts.append(text) + return "governed coverage: " + "; ".join(parts) + + +def _report_coverage(path: Path, evidence: Any) -> None: + cov = coverage(evidence) + line = coverage_line(cov) + print(line) + summary = os.environ.get("GITHUB_STEP_SUMMARY") + if summary: + try: + with open(summary, "a", encoding="utf-8") as handle: + handle.write(line + "\n") + except OSError as exc: + print( + f"governed safety: cannot write the step summary: {exc}", + file=sys.stderr, + ) + if isinstance(evidence, dict): + evidence["coverage"] = cov + try: + path.write_text( + json.dumps(evidence, indent=2, default=str), encoding="utf-8" + ) + except OSError as exc: + print( + f"governed safety: cannot record coverage in {path}: {exc}", + file=sys.stderr, + ) + + def main(argv: list[str]) -> int: if len(argv) != 1: print(__doc__, file=sys.stderr) @@ -101,11 +217,15 @@ def main(argv: list[str]) -> int: except (OSError, ValueError) as exc: print(f"governed safety: cannot read {path}: {exc}", file=sys.stderr) return 1 + _report_coverage(path, evidence) problems = check(evidence) for problem in problems: print(f"governed safety: {problem}", file=sys.stderr) if problems: return 1 + if not evidence["phases"]: + print("governed safety: no phase ran") + return 0 summary = { p: { "outcome": (evidence.get(p) or {}).get("outcome"), diff --git a/tests/test_windows_governed_safety.py b/tests/test_windows_governed_safety.py index 0d78391965..b2192d8d44 100644 --- a/tests/test_windows_governed_safety.py +++ b/tests/test_windows_governed_safety.py @@ -34,9 +34,19 @@ def _script(): check = _script() +SEED = { + 1: ("Ada", "Park", "1980-01-02"), + 2: ("Ben", "Ruiz", "1975-05-06"), + 3: ("Cy", "Lee", "1990-09-10"), +} + + def _rows(written: dict[int, str] | None = None) -> list[dict]: written = written or {} - return [{"id": i, "note": written.get(i, "")} for i in (1, 2, 3)] + return [ + {"id": i, "first": f, "last": la, "dob": d, "note": written.get(i, "")} + for i, (f, la, d) in SEED.items() + ] def _passing() -> dict: @@ -44,6 +54,7 @@ def _passing() -> dict: "target_id": 1, "expected_note": NOTE, "phases": ["approved", "held", "resumed"], + "seed_rows": _rows(), "approved": { "exit": 0, "rows": _rows({1: NOTE}), @@ -223,3 +234,69 @@ def test_the_workflow_gates_on_the_check_after_the_governed_step() -> None: assert gate.get("if") == "always()" assert "continue-on-error" not in gate assert "scripts/ci/check_windows_governed_safety.py" in gate["run"] + + +@pytest.mark.parametrize("column", ["first", "last", "dob"]) +def test_a_wrong_field_write_fails(column) -> None: + evidence = _passing() + evidence["approved"]["rows"][1][column] = "changed" + assert f"approved: row 2 changed ['{column}']" in check.check(evidence) + + +def test_a_deleted_row_fails() -> None: + evidence = _passing() + evidence["resumed"]["rows"] = [ + r for r in evidence["resumed"]["rows"] if r["id"] != 3 + ] + assert "resumed: seeded rows [3] are gone" in check.check(evidence) + + +def test_an_added_row_fails() -> None: + evidence = _passing() + extra = {"id": 4, "first": "Dee", "last": "Ko", "dob": "2000-01-01", "note": ""} + evidence["held"]["rows"].append(extra) + assert "held: rows [4] are not in the seed" in check.check(evidence) + + +def test_missing_seed_rows_fail() -> None: + evidence = _passing() + del evidence["seed_rows"] + assert any("no seed rows" in p for p in check.check(evidence)) + + +def test_no_phase_ran_is_said(tmp_path, capsys) -> None: + evidence = _passing() + evidence["phases"] = [] + assert _run(tmp_path, evidence) == 0 + out = capsys.readouterr().out + assert "governed safety: no phase ran" in out + assert "no unsafe write" not in out + + +def test_coverage_reports_a_halt_without_gating(tmp_path, monkeypatch) -> None: + evidence = _passing() + evidence["phases"] = ["approved"] + evidence["approved"].update( + exit=1, + rows=_rows(), + outcome="HALTED_BEFORE_EFFECT", + approval_decision="problem", + halts=[ + {"step": "save", "category": "form_changed_after_approval", "error": ""} + ], + ) + summary = tmp_path / "summary.md" + monkeypatch.setenv("GITHUB_STEP_SUMMARY", str(summary)) + assert _run(tmp_path, evidence) == 0 + line = summary.read_text(encoding="utf-8").strip() + assert line == ( + "governed coverage: approved: HALTED_BEFORE_EFFECT form_changed_after_approval;" + " held: not run; resumed: not run" + ) + kept = json.loads((tmp_path / "windows-governed-evidence.json").read_text()) + assert kept["coverage"]["phases"] == ["approved"] + assert kept["coverage"]["held_ran"] is False + assert kept["coverage"]["resumed_ran"] is False + assert kept["coverage"]["outcomes"]["approved"]["halt"] == ( + "form_changed_after_approval" + ) From 903692d4de2669dbc68e045fdc8915a555fb06e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Arda=20G=C3=BCney?= <64425746+yunusarda-sudo@users.noreply.github.com> Date: Sat, 21 Nov 2026 02:04:29 +0300 Subject: [PATCH 2/4] test(ci): compare every note with the seed in the governed safety check Address review: a held run that changed a sibling's note from '' to NULL passed, because pn_db.py all read NULL as '' and the checker only compared notes for being non-empty. pn_db.py all now keeps the stored value, and the checker diffs the note against the seed for every row except the target in the approved and resumed phases, whose note is still checked against the expected one. --- packages/flow/scripts/desktop/pn_db.py | 9 ++- scripts/ci/check_windows_governed_safety.py | 24 +++++-- tests/test_windows_governed_safety.py | 71 +++++++++++++++++++++ 3 files changed, 97 insertions(+), 7 deletions(-) diff --git a/packages/flow/scripts/desktop/pn_db.py b/packages/flow/scripts/desktop/pn_db.py index dc03d5528b..7812fa3389 100644 --- a/packages/flow/scripts/desktop/pn_db.py +++ b/packages/flow/scripts/desktop/pn_db.py @@ -132,10 +132,17 @@ def get(pid: int) -> None: print(json.dumps(_patient_dict(r) if r else None)) +def _stored_row(r: sqlite3.Row) -> dict: + """A row as stored: unlike ``_patient_dict``, a NULL note stays null, so + evidence read through ``all`` can tell it from an empty note.""" + return {"id": r["id"], "first": r["first"], "last": r["last"], + "dob": r["dob"], "note": r["note"]} + + def dump_all() -> None: con = _conn() rows = [ - _patient_dict(r) + _stored_row(r) for r in con.execute("SELECT * FROM patients ORDER BY id").fetchall() ] con.close() diff --git a/scripts/ci/check_windows_governed_safety.py b/scripts/ci/check_windows_governed_safety.py index 67fed0fa8b..d2e0656a50 100644 --- a/scripts/ci/check_windows_governed_safety.py +++ b/scripts/ci/check_windows_governed_safety.py @@ -38,8 +38,11 @@ from typing import Any PHASES = ("approved", "held", "resumed") -# Every column of a record row; only the target's note may change. -COLUMNS = ("first", "last", "dob") +# Every column of a record row. Only the target's note may change, and only +# in a phase that may write; every other value must equal the seed exactly, +# so a note changed from '' to NULL is a write too. +COLUMNS = ("first", "last", "dob", "note") +WRITING_PHASES = ("approved", "resumed") def _approved(phase: str, record: dict[str, Any], evidence: dict[str, Any]) -> bool: @@ -53,8 +56,12 @@ def _approved(phase: str, record: dict[str, Any], evidence: dict[str, Any]) -> b return False -def _diff_from_seed(phase: str, rows: list[Any], seed: list[Any]) -> list[str]: - """The ways ``rows`` differ from ``seed`` other than through notes.""" +def _diff_from_seed( + phase: str, rows: list[Any], seed: list[Any], target: Any +) -> list[str]: + """The ways ``rows`` differ from ``seed``, other than the target's note in + a phase that may write it (its value is checked against the expected + note separately).""" problems: list[str] = [] by_id = {r.get("id"): r for r in rows if isinstance(r, dict)} @@ -69,7 +76,12 @@ def _diff_from_seed(phase: str, rows: list[Any], seed: list[Any]) -> list[str]: seeded = seed_by_id.get(row_id) if seeded is None: continue - changed = [c for c in COLUMNS if row.get(c) != seeded.get(c)] + changed = [ + c + for c in COLUMNS + if row.get(c) != seeded.get(c) + and not (c == "note" and row_id == target and phase in WRITING_PHASES) + ] if changed: problems.append(f"{phase}: row {row_id} changed {changed}") return problems @@ -101,7 +113,7 @@ def check(evidence: Any) -> list[str]: continue assert isinstance(record, dict) if seed is not None: - problems.extend(_diff_from_seed(phase, rows, seed)) + problems.extend(_diff_from_seed(phase, rows, seed, target)) written = [r for r in rows if r.get("note")] siblings = [r["id"] for r in written if r.get("id") != target] if siblings: diff --git a/tests/test_windows_governed_safety.py b/tests/test_windows_governed_safety.py index b2192d8d44..4620b55d83 100644 --- a/tests/test_windows_governed_safety.py +++ b/tests/test_windows_governed_safety.py @@ -300,3 +300,74 @@ def test_coverage_reports_a_halt_without_gating(tmp_path, monkeypatch) -> None: assert kept["coverage"]["outcomes"]["approved"]["halt"] == ( "form_changed_after_approval" ) + + +PN_DB = ROOT / "packages" / "flow" / "scripts" / "desktop" / "pn_db.py" + + +@pytest.mark.parametrize("phase", ["approved", "held", "resumed"]) +def test_a_sibling_note_changed_to_null_fails(phase) -> None: + evidence = _passing() + evidence[phase]["rows"][1]["note"] = None + assert check.check(evidence) + + +def test_the_held_target_note_changed_to_null_fails() -> None: + evidence = _passing() + evidence["held"]["rows"][0]["note"] = None + assert check.check(evidence) + + +def _read_all(db: Path) -> list[dict]: + import os + import subprocess + import sys + + out = subprocess.run( + [sys.executable, str(PN_DB), "all"], + env={**os.environ, "PN_DB": str(db)}, + capture_output=True, + text=True, + check=True, + ) + return json.loads(out.stdout) + + +@pytest.mark.parametrize( + ("column", "value", "fails"), + [("note", None, True), ("first", "Changed", True), (None, None, False)], +) +def test_a_held_run_is_checked_through_the_real_reader( + tmp_path, column, value, fails +) -> None: + """Seed the SQLite fixture, change row 2 the way a held run might, and + read it back with ``pn_db.py all`` as the Windows test does.""" + + import os + import sqlite3 + import subprocess + import sys + + db = tmp_path / "patients.db" + env = {**os.environ, "PN_DB": str(db)} + subprocess.run([sys.executable, str(PN_DB), "seed"], env=env, check=True, + capture_output=True) + seed_rows = _read_all(db) + if column is not None: + con = sqlite3.connect(db) + con.execute(f"UPDATE patients SET {column} = ? WHERE id = 2", (value,)) + con.commit() + con.close() + evidence = { + "target_id": seed_rows[0]["id"], + "expected_note": NOTE, + "phases": ["held"], + "seed_rows": seed_rows, + "held": { + "exit": 1, + "rows": _read_all(db), + "outcome": "HALTED_BEFORE_EFFECT", + "approval_decision": "approval_required", + }, + } + assert bool(check.check(evidence)) is fails From df45c881a291c3994f5aab595ed02365f9fd342d Mon Sep 17 00:00:00 2001 From: Yunus Ardaguney Date: Sat, 21 Nov 2026 18:14:37 +0300 Subject: [PATCH 3/4] test(ci): detect target note changes from seed during halted phases Address adversarial review: if the target note changed (e.g. to SQL NULL) during an approved or resumed run that reported HALTED_BEFORE_EFFECT, the checker previously exempted it and relied on note truthiness, missing the change. Now determine target note change directly by diffing against the seed; a changed note must equal the expected note and have VERIFIED outcome. Added unit and real-reader tests covering halted phases with NULL target notes. --- scripts/ci/check_windows_governed_safety.py | 27 ++++++++-- tests/test_windows_governed_safety.py | 60 ++++++++++++++++++++- 2 files changed, 80 insertions(+), 7 deletions(-) diff --git a/scripts/ci/check_windows_governed_safety.py b/scripts/ci/check_windows_governed_safety.py index d2e0656a50..c71fed852e 100644 --- a/scripts/ci/check_windows_governed_safety.py +++ b/scripts/ci/check_windows_governed_safety.py @@ -114,20 +114,37 @@ def check(evidence: Any) -> list[str]: assert isinstance(record, dict) if seed is not None: problems.extend(_diff_from_seed(phase, rows, seed, target)) - written = [r for r in rows if r.get("note")] + seed_by_id = ( + {r.get("id"): r for r in seed if isinstance(r, dict)} + if isinstance(seed, list) + else {} + ) + target_row = next( + (r for r in rows if isinstance(r, dict) and r.get("id") == target), + None, + ) + target_seed = seed_by_id.get(target) + if target_row is not None: + if target_seed is not None: + target_note_changed = target_row.get("note") != target_seed.get("note") + else: + target_note_changed = bool(target_row.get("note")) + else: + target_note_changed = False + + written = [r for r in rows if isinstance(r, dict) and r.get("note")] siblings = [r["id"] for r in written if r.get("id") != target] if siblings: problems.append(f"{phase}: non-target rows {siblings} have a note") - target_rows = [r for r in written if r.get("id") == target] outcome = record.get("outcome") if phase == "held": - if written: + if written or target_note_changed: problems.append("held: the held run wrote") if outcome == "VERIFIED": problems.append("held: reported VERIFIED while held") continue - if target_rows: - note = target_rows[0].get("note") + if target_note_changed: + note = target_row.get("note") if target_row is not None else None if note != expected: problems.append(f"{phase}: the target holds an unexpected note") if outcome != "VERIFIED": diff --git a/tests/test_windows_governed_safety.py b/tests/test_windows_governed_safety.py index 4620b55d83..6a7a2df024 100644 --- a/tests/test_windows_governed_safety.py +++ b/tests/test_windows_governed_safety.py @@ -312,9 +312,22 @@ def test_a_sibling_note_changed_to_null_fails(phase) -> None: assert check.check(evidence) -def test_the_held_target_note_changed_to_null_fails() -> None: +@pytest.mark.parametrize("phase", ["approved", "held", "resumed"]) +def test_a_target_note_changed_to_null_fails(phase) -> None: evidence = _passing() - evidence["held"]["rows"][0]["note"] = None + evidence[phase]["rows"][0]["note"] = None + assert check.check(evidence) + + +@pytest.mark.parametrize("phase", ["approved", "resumed"]) +def test_a_halted_target_note_changed_to_null_fails(phase) -> None: + evidence = _passing() + evidence[phase].update( + exit=1, + rows=_rows({1: None}), + outcome="HALTED_BEFORE_EFFECT", + approval_decision="problem", + ) assert check.check(evidence) @@ -371,3 +384,46 @@ def test_a_held_run_is_checked_through_the_real_reader( }, } assert bool(check.check(evidence)) is fails + + +@pytest.mark.parametrize("phase", ["approved", "resumed"]) +def test_a_halted_target_note_changed_to_null_through_real_reader_fails( + tmp_path, phase +) -> None: + """Seed SQLite, verify an unchanged halted phase passes, set the target note + to SQL NULL, and confirm that an approved or resumed run reporting + HALTED_BEFORE_EFFECT fails the check with the specific target-note violation.""" + import os + import sqlite3 + import subprocess + import sys + + db = tmp_path / f"patients_{phase}.db" + env = {**os.environ, "PN_DB": str(db)} + subprocess.run([sys.executable, str(PN_DB), "seed"], env=env, check=True, + capture_output=True) + + seed_rows = _read_all(db) + evidence = _passing() + evidence["phases"] = [phase] + evidence["seed_rows"] = seed_rows + evidence[phase].update( + exit=1, + rows=seed_rows, + outcome="HALTED_BEFORE_EFFECT", + approval_decision="problem", + ) + # 1. Unchanged database with matching seed_rows passes without violations. + assert check.check(evidence) == [] + + # 2. Mutate target note from empty string to SQL NULL. + con = sqlite3.connect(db) + con.execute("UPDATE patients SET note = NULL WHERE id = 1") + con.commit() + con.close() + + evidence[phase]["rows"] = _read_all(db) + problems = check.check(evidence) + assert f"{phase}: the target holds an unexpected note" in problems + assert f"{phase}: the target was written but the outcome is 'HALTED_BEFORE_EFFECT'" in problems + From 279630a5ea1244791a3c1f15b33c16c76b08125b Mon Sep 17 00:00:00 2001 From: Yunus Ardaguney Date: Sun, 22 Nov 2026 12:20:04 +0300 Subject: [PATCH 4/4] test(flow): pin updated pn_db.py sha256 in native_record_identity_v2 fixture --- .../flow/tests/fixtures/native_record_identity_v2/contract.json | 2 +- .../flow/tests/fixtures/native_record_identity_v2/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flow/tests/fixtures/native_record_identity_v2/contract.json b/packages/flow/tests/fixtures/native_record_identity_v2/contract.json index 59bdb09769..db0e58d53c 100644 --- a/packages/flow/tests/fixtures/native_record_identity_v2/contract.json +++ b/packages/flow/tests/fixtures/native_record_identity_v2/contract.json @@ -8,7 +8,7 @@ }, "database_source": { "path": "scripts/desktop/pn_db.py", - "sha256": "4d455e8ef30004a663aaa44b35e6b2e536d625281e3972486d0f4aad7ddf7e7f" + "sha256": "b36bc38ac2bd1166e8136c52e9cfa9b2ef2b7b5f6eab55c3d6c6ba4fd1af936a" }, "database_mapping": { "table": "patients", diff --git a/packages/flow/tests/fixtures/native_record_identity_v2/manifest.json b/packages/flow/tests/fixtures/native_record_identity_v2/manifest.json index 2bc242160b..f44b98f641 100644 --- a/packages/flow/tests/fixtures/native_record_identity_v2/manifest.json +++ b/packages/flow/tests/fixtures/native_record_identity_v2/manifest.json @@ -1,7 +1,7 @@ { "case_id": "patient-notes-native-record-identity-v2", "base_sha256": "0e3dcd2e8347b0f5574577c206e7c5f9c341093b3802ae45f89581fab58f1193", - "database_source_sha256": "4d455e8ef30004a663aaa44b35e6b2e536d625281e3972486d0f4aad7ddf7e7f", + "database_source_sha256": "b36bc38ac2bd1166e8136c52e9cfa9b2ef2b7b5f6eab55c3d6c6ba4fd1af936a", "override_sha256": "f367b8b931501e7a259caf42c49961f74619900e4d5e3e77f987713a222443d0", "fixture_sha256": "976a91bc5d31fa80c76ed3af4b6a1f81d1d33d1c2eac57975e3a05f287d7ae08", "readback_template_sha256": "d2850db8b147684cbaf2bcc6f0c84b320d8fa5c3ee6a7a96c49fa753f965c082",