diff --git a/poc/evidence/m1-20260831/manifest.json b/poc/evidence/m1-20260831/manifest.json index aa811c4..11c7097 100644 --- a/poc/evidence/m1-20260831/manifest.json +++ b/poc/evidence/m1-20260831/manifest.json @@ -58,6 +58,12 @@ "uri": "status.ndjson", "sha256": "039cb776675bbb1b6023c7066b22bf1c3a9642f0fda168d3a23cec41b72277ee" }, + { + "name": "status_page_20260831.jpg", + "uri": "photos/status_page_20260831.jpg", + "sha256": "03817e0424452eba786768960645aa9e369bdfef08fe1da9883a7b9b035e82ec", + "note": "Photo of the live Frame status page (UTC+8 time line, KEY/BOOT/RST counters, WiFi CONNECTED 192.168.50.178, TF READY/log OK). Screen timestamp 16:28:52 UTC+8 correlates with the capture filename epoch 2026-08-31T08:29:02.935Z. Converted full-resolution from iOS source 20260831_082902935_iOS.HEIC (sha256 62b86a8c0316fcd4ef5fbcc3ca59e308982627db5ef18d9b71bf9409cc446b9e; HEIC itself stays out of the repository)." + }, { "name": "boot.log", "uri": "raw-history/boot.log", diff --git a/poc/evidence/m1-20260831/photos/status_page_20260831.jpg b/poc/evidence/m1-20260831/photos/status_page_20260831.jpg new file mode 100644 index 0000000..6550fdd Binary files /dev/null and b/poc/evidence/m1-20260831/photos/status_page_20260831.jpg differ diff --git a/poc/evidence/schema.json b/poc/evidence/schema.json index 9f68a87..22f10b8 100644 --- a/poc/evidence/schema.json +++ b/poc/evidence/schema.json @@ -73,7 +73,8 @@ "properties": { "name": { "type": "string", "minLength": 1 }, "uri": { "type": "string", "minLength": 1 }, - "sha256": { "$ref": "#/$defs/sha256" } + "sha256": { "$ref": "#/$defs/sha256" }, + "note": { "type": "string" } } } }, diff --git a/tests/test_evidence.py b/tests/test_evidence.py index 3ade45d..76a05e7 100644 --- a/tests/test_evidence.py +++ b/tests/test_evidence.py @@ -1,5 +1,6 @@ import json from pathlib import Path +from typing import cast from frame_tools.evidence import discover_manifests, validate_evidence @@ -69,6 +70,16 @@ def test_invalid_date_time_is_rejected(tmp_path: Path) -> None: assert "['started_at']" in errors[0] +def test_artifact_note_passes(tmp_path: Path) -> None: + manifest = valid_manifest() + artifacts = cast(list[dict[str, object]], manifest["artifacts"]) + artifacts[0]["note"] = "photo artifact with provenance note" + path = tmp_path / "manifest.json" + path.write_text(json.dumps(manifest), encoding="utf-8") + + assert validate_evidence(SCHEMA, [path]) == [] + + def test_schema_is_not_discovered_as_a_manifest() -> None: manifests, errors = discover_manifests([SCHEMA.parent], SCHEMA)