Add scoped physical references for 128 Pre-Standard recordings

#87
Physical_References/Pre_Standard_Record_References/CONFIRMATION.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evidence statement for Pre-Standard physical references
2
+
3
+ This table is a public index of positive creator-supplied associations between recordings and physical drawings. Its source recordings resolve at Hub revision `275fef5594ae6302af4f6ee4edaa9d5b6f724e83`. Private review records retain the evidence bindings and underlying creator statements. The private photographs and their identifiers are not included here, so readers cannot independently authenticate the visual match from this release.
4
+
5
+ The 84 photograph-to-frame rows comprise 82 creator-attested decisions in the private comparison gallery, one earlier checksum-bound pilot, and one later creator-identified drawn-front photograph outside the prepared suggestions. In the pilot, the creator directly answered “they are the same” after a side-by-side comparison at 53.60 seconds. For the later photograph, the creator identified the same physical drawing at the selected 357.60-second frame. Where multiple gallery decisions concern one recording, this table uses one accepted decision.
6
+
7
+ Eight additional frame-specific rows rest on direct in-hand checks of the physical sheets' drawn fronts. The creator answered yes or same when asked whether each front matched its selected recording frame. For `tla-b614c69d069ceb33`, the creator answered “same” to a direct question about the physical sheet's drawn front and the selected p99 frame at 82.10 seconds. For one frame containing two drawings, the creator specified the larger angular drawing below the small upper-left drawing; for another, the creator identified the angular drawing on the right. Each `review_frame_region` limits the assertion to that drawing and makes no claim about another drawing visible in the frame. The earlier indexed private photographs are not claimed to depict the drawing visible in those frames. For `tla-b614c69d069ceb33`, the earlier photograph's depicted side remains unverified and it does not supply drawn-front visual proof or a finish date. The in-hand observations are not reproducible from this public table. Both frame-specific types refer to sampled encoded-video states, not necessarily final drawing states.
8
+
9
+ The 36 record-level rows have positive creator-reported recording-to-physical-photo associations without a supported public frame locator: 19 from an earlier owner-confirmed private index, 16 from later creator-supplied physical links, and one with an earlier owner-confirmed association whose later comparison note does not support a frame-specific claim. That record remains absent from the frame-specific classes.
10
+
11
+ This relationship layer contains 128 linked Pre-Standard recordings: 84 photograph-to-frame links, eight in-hand front-to-frame links, and 36 record-level associations. No recording is omitted for lack of a positive physical link. The table does not assign work IDs, merge drawings across recordings, determine whole-MP4 membership, verify endpoints or final state, or establish finish dates. Assistant visual suggestions and candidate rankings do not count as creator confirmation.
12
+
13
+ The public validator checks structure and pinned-source consistency. It does not re-perform the private visual or in-hand review. Corrections and later identifications should be appended through a new version of this relationship layer, preserving the earlier version as an archival state.
Physical_References/Pre_Standard_Record_References/MANIFEST.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "maxwellinked/time-lapse-artifacts",
3
+ "layer_name": "pre_standard_record_physical_links",
4
+ "schema_version": "0.2.0",
5
+ "created_at_utc": "2026-10-13T09:16:54Z",
6
+ "source_hub_revision": "275fef5594ae6302af4f6ee4edaa9d5b6f724e83",
7
+ "row_count": 128,
8
+ "relationship_type_counts": {
9
+ "owner_confirmed_same_drawing_visible_at_frame": 84,
10
+ "owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check": 8,
11
+ "owner_reported_physical_reference_for_record": 36
12
+ },
13
+ "reference_media_bundled": false,
14
+ "private_photo_identifiers_disclosed": false,
15
+ "public_visual_review_reproducible": false,
16
+ "claim_limits": {
17
+ "whole_recording_work_membership": false,
18
+ "recording_completeness": false,
19
+ "endpoint_equivalence": false,
20
+ "physical_final_state": false,
21
+ "work_id_assignment": false
22
+ },
23
+ "files": {
24
+ "source_metadata": {
25
+ "path": "Pre_Standard_Time_Lapses/metadata.csv",
26
+ "size_bytes": 46951,
27
+ "sha256": "ed82c7ef5b463f027f7331a0b68a0ae8d2f0a2dcbfa1268519bb3f51aea973eb"
28
+ },
29
+ "sidecar": {
30
+ "path": "Physical_References/Pre_Standard_Record_References/record_physical_links.csv",
31
+ "size_bytes": 20360,
32
+ "sha256": "44bb7fc22f855343211fac8c6f591574be2199e9884d4e360af5451efb2f26ef"
33
+ },
34
+ "schema": {
35
+ "path": "Physical_References/Pre_Standard_Record_References/SCHEMA.md",
36
+ "size_bytes": 5872,
37
+ "sha256": "ed07d7d45d315905cb11c7c784364a30b0d551ff6fd57a4c393447a397fb164a"
38
+ },
39
+ "confirmation": {
40
+ "path": "Physical_References/Pre_Standard_Record_References/CONFIRMATION.md",
41
+ "size_bytes": 3369,
42
+ "sha256": "cca86f6053dcc0bc2f3f511738b18d747d5184258d104f24d8eba021c0902b3e"
43
+ },
44
+ "validator": {
45
+ "path": "tools/validate_pre_standard_record_physical_links.py",
46
+ "size_bytes": 12218,
47
+ "sha256": "17e4b2bf07cbe6b105bdf9f3fd9de01ce5ad952e0e65fda44993a3f881954f74"
48
+ }
49
+ },
50
+ "validation_scope": "Structural, byte-binding, pinned metadata join, frame-locator, class-scope, and public privacy checks; not independent visual authentication."
51
+ }
Physical_References/Pre_Standard_Record_References/SCHEMA.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Pre-Standard recording to physical drawing references
2
+
3
+ ## Scope
4
+
5
+ `record_physical_links.csv` records creator-supplied links between a Pre-Standard recording and a physical drawing. Join `record_id` to `Pre_Standard_Time_Lapses/metadata.csv` at the exact `source_hub_revision`. Each row concerns one recording and a privately retained evidence anchor. It is a positive relationship assertion at the scope stated by `relationship_type`, not a claim about every image or drawing in the recording.
6
+
7
+ The source photographs, their filenames, paths, and digests are omitted from the public dataset. Private review material retains those bindings and the creator's direct in-hand check where applicable. A public reader can verify the recording ID and revision, but cannot independently repeat the private comparison or in-hand check from this table.
8
+
9
+ This relationship layer does not alter `Physical_References/endpoint_references.csv` or assign a `work_id`. `Work_Identity` remains the authority for recording-to-work membership. The 128 Pre-Standard records have blank `work_id` values in the pinned source metadata.
10
+
11
+ ## Fields
12
+
13
+ | Field | Meaning |
14
+ | --- | --- |
15
+ | `record_id` | Existing canonical recording ID; unique in this table. |
16
+ | `source_hub_revision` | Full 40-character Hub commit resolving the recording and its pinned metadata. |
17
+ | `review_frame_seconds` | For either frame-specific row, the selected encoded playback position rounded to two decimal places. Blank for a record-level association. This is an evidence locator, not a finish time or endpoint. |
18
+ | `review_frame_region` | Optional location within the selected frame when more than one drawing is visible. Blank by default and for record-level rows. `lower_angular_hourglass_drawing` identifies the larger angular drawing below the small upper-left drawing in the selected frame for `tla-3071851986af09ee`. `right_angular_drawing` identifies the angular drawing on the right in the selected frame for `tla-9aaeea5ca3fc05c8`. Neither token identifies another drawing visible in its frame. |
19
+ | `relationship_type` | One of the three evidence scopes below. |
20
+ | `owner_confirmation_state` | `owner_confirmed` means the creator supplied a positive identification; it does not mean independent verification. |
21
+ | `evidence_access` | `private_photo_not_bundled` means the supporting photograph is retained privately. `private_in_hand_check_not_reproducible` marks a direct creator check of the physical sheet's drawn front against a selected frame; the private evidence and check cannot be repeated from this release. |
22
+
23
+ ### Relationship scopes
24
+
25
+ | Value | Supported public claim |
26
+ | --- | --- |
27
+ | `owner_confirmed_same_drawing_visible_at_frame` | The creator identified the drawing visible at the specified recording frame with the same physical drawing shown in a selected private photograph. |
28
+ | `owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check` | The creator inspected the physical sheet's drawn front in hand and identified it as the same drawing visible at the specified recording frame. The earlier indexed private photograph is not itself asserted to show visual correspondence with the frame. |
29
+ | `owner_reported_physical_reference_for_record` | The creator associated a retained photograph of a physical drawing with this recording, but the evidence used for this row does not establish a specific reviewed frame. |
30
+
31
+ The record-level value includes earlier owner-confirmed photo associations and later creator-supplied record/photo links. A blank `review_frame_seconds` is intentional and must not be filled from a candidate rank or a sampled frame without a separate creator confirmation. The in-hand value uses `private_in_hand_check_not_reproducible`; the other two values use `private_photo_not_bundled`.
32
+
33
+ An in-hand frame link is supported by the creator's direct comparison of the physical sheet's drawn front with a selected recording frame. An earlier indexed private photograph need not show that front and does not by itself verify the depicted side or a drawing finish date. The in-hand link for `tla-b614c69d069ceb33` uses the selected p99 frame at 82.10 seconds; its `review_frame_region` is blank because only one drawing is visible in that frame.
34
+
35
+ ## Claim limits
36
+
37
+ None of these values establishes that the whole MP4 concerns one drawing, that the recording is complete or gapless, or that the identified drawing is the final state at the video's endpoint. None establishes a drawing finish date, physical dimensions, sequence boundary, or a `work_id`. The table does not identify a named photograph's front/back role. Nearby filenames, visual ranking, and assistant-only comparison do not create a row. A missing row means no accepted public link in this release; it is not a negative identity finding.
38
+
39
+ For the frame-specific values, `review_frame_seconds` is encoded playback time. It is not the wall-clock time at which a mark was drawn. Frame positions are rounded for navigation; the checksum-bound private review material retains the exact sampled-frame details. `review_frame_region` narrows a frame-level assertion to one drawing within a frame; it does not establish identity for another drawing visible in that frame, a whole recording, or the final physical state. The controlled tokens `lower_angular_hourglass_drawing` and `right_angular_drawing` are permitted only for `tla-3071851986af09ee` and `tla-9aaeea5ca3fc05c8`, respectively, in this release.
40
+
41
+ ## Validation
42
+
43
+ From a checkout containing the pinned `Pre_Standard_Time_Lapses/metadata.csv`, run:
44
+
45
+ ```text
46
+ python tools/validate_pre_standard_record_physical_links.py --root .
47
+ ```
48
+
49
+ The validator checks table structure, byte hashes, the pinned metadata join, evidence-scope syntax, and public privacy exclusions. It cannot authenticate the private photographs or repeat the creator's identification.
Physical_References/Pre_Standard_Record_References/record_physical_links.csv ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ record_id,source_hub_revision,review_frame_seconds,review_frame_region,relationship_type,owner_confirmation_state,evidence_access
2
+ tla-001b41db96cad2e1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
3
+ tla-0056effd8bd7e7b1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.97,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
4
+ tla-0518c0a94cf18b4c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
5
+ tla-053381aa5b697086,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,78.18,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
6
+ tla-05dce807e7218a67,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,95.73,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
7
+ tla-0917b530f8497075,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
8
+ tla-0b24377153ab8c5d,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,360.55,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
9
+ tla-0c2548863e669863,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,21.28,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
10
+ tla-0dd78f22fd2811f0,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,31.27,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
11
+ tla-0f14fe10f12de446,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
12
+ tla-0fbe008eed72c69c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
13
+ tla-1319f23c6212f121,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,359.35,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
14
+ tla-1388e37f0d15c423,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,362.43,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
15
+ tla-1594c432c3ee1bc7,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
16
+ tla-195884072e90bf1e,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,116.80,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
17
+ tla-1c2bee33a71e4f6e,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,327.67,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
18
+ tla-1c3a9d10498dbe62,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,21.13,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
19
+ tla-1eeaec98d83c9b0e,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,79.18,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
20
+ tla-1f0177c5dd6448de,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
21
+ tla-25e8f21cf6f339ad,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,355.92,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
22
+ tla-26a8f968ba3f89fb,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
23
+ tla-26acd6373e03c5f6,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
24
+ tla-2708331f1e1c4044,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.23,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
25
+ tla-2f52d5a619491811,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,52.30,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
26
+ tla-3071851986af09ee,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,214.67,lower_angular_hourglass_drawing,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
27
+ tla-318c6877ee1d84bc,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
28
+ tla-321b360c801cae72,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,361.02,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
29
+ tla-32e479d650e87e54,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,87.35,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
30
+ tla-34d3d5f4de884c6b,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.98,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
31
+ tla-3653a05b46cde63c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,351.82,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
32
+ tla-377ff49f94921748,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
33
+ tla-38f719a6d985c948,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,402.10,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
34
+ tla-3953b8136184022b,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,358.77,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
35
+ tla-3b972ff750d3bf94,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,359.50,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
36
+ tla-3cad72c4195c0a10,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,37.93,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
37
+ tla-3cb73bd528446063,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,10.25,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
38
+ tla-3f7735b746d51ad2,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
39
+ tla-3fd2287a24c79b20,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,1907.40,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
40
+ tla-40cff1380f7abcbe,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
41
+ tla-431846acf2142e4f,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
42
+ tla-4319f4766c410fc1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
43
+ tla-459f8286ad9fea72,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
44
+ tla-45e6f4b9c4aaa59d,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,213.08,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
45
+ tla-49539342e1dd5699,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,360.50,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
46
+ tla-49742b00acbde895,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,27.62,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
47
+ tla-4b86af210f546570,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,324.15,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
48
+ tla-51aa59b4dc1449b0,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
49
+ tla-52059e643aa495a4,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
50
+ tla-5382ea1b3a1d5464,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,361.02,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
51
+ tla-54a188df72a32ecc,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
52
+ tla-572e799c66feeb76,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
53
+ tla-577b578467056b9b,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
54
+ tla-5b0583a321a37d20,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.53,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
55
+ tla-5eb093491bc4eef7,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,353.68,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
56
+ tla-5fe34f800eee6bb4,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,2626.87,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
57
+ tla-60a6e3b32d7eab28,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,361.95,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
58
+ tla-61626728d6da1028,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
59
+ tla-64d4f346bb7d6864,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
60
+ tla-674ad9e5c7e16c96,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
61
+ tla-677ca4ed8fe14baa,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,30.43,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
62
+ tla-6915bfa6a6ee5080,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,66.08,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
63
+ tla-6bd95f101a49d401,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,43.08,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
64
+ tla-6cea19039f4028e7,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,993.67,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
65
+ tla-6e03e974435d9c26,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,10.25,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
66
+ tla-78211dbf9f2286db,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
67
+ tla-7d0bedc1881af080,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
68
+ tla-7d41e285fa18aa2d,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,53.60,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
69
+ tla-7ed42676b5457446,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,329.63,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
70
+ tla-7ff8c3a3f5872ee1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,360.53,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
71
+ tla-80864303495b28fc,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,323.67,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
72
+ tla-82872edeb8244739,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,31.57,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
73
+ tla-8288f18183676230,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,28.52,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
74
+ tla-84b66f105773971a,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,233.44,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
75
+ tla-84e4dbed0f3c7350,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,358.02,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
76
+ tla-856f82ae8d6fbee6,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,27.70,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
77
+ tla-86319ed8b7c4b34d,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,358.17,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
78
+ tla-8d10139e1cb9cd36,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
79
+ tla-8d8783df2f591c4a,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,10.13,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
80
+ tla-926378ddfbf77ada,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,95.28,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
81
+ tla-9aaeea5ca3fc05c8,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,9.93,right_angular_drawing,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
82
+ tla-9c7c40165fedbb8c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,359.80,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
83
+ tla-9e6be12d67a7ea32,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,354.65,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
84
+ tla-a2e8813aca128fa4,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,324.88,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
85
+ tla-a4fbb4ae430c92ea,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,30.20,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
86
+ tla-a5843f623cd69e55,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,20.37,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
87
+ tla-a7450f3a1c8c3c1b,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
88
+ tla-a7522fd0547fc5f1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,359.38,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
89
+ tla-a8a6a946baaf8661,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,360.82,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
90
+ tla-a9fa812199408cf7,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,29.80,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
91
+ tla-aad41bc03c414a97,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
92
+ tla-ab2622673503bbe8,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.58,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
93
+ tla-abc61aa7681fb427,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,83.93,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
94
+ tla-ae8ee6337f8f0755,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,355.97,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
95
+ tla-b0a76fc50ba25d66,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,56.68,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
96
+ tla-b614c69d069ceb33,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,82.10,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
97
+ tla-b7445209c70ed3c9,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,112.57,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
98
+ tla-b9b294929abab6b0,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.92,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
99
+ tla-bba74d843dfd8053,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,70.67,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
100
+ tla-bdb45b6e0d1d46fc,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,352.37,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
101
+ tla-bf3d712cd72a8064,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
102
+ tla-c0dc92a2c86504df,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,34.42,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
103
+ tla-c2fc5a7a079b52b0,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.60,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
104
+ tla-c4a8c8cc14919dc5,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,358.02,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
105
+ tla-c596f1a44421c480,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
106
+ tla-c799c8ebef20b944,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.82,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
107
+ tla-c7dd98d3fd888353,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,122.10,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
108
+ tla-c89d199f9bfb25e1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.78,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
109
+ tla-c8a941a360dce529,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,98.22,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
110
+ tla-ca4247518b7b0844,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,26.07,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
111
+ tla-cb1496815a4a9367,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
112
+ tla-cb3240436eca7964,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
113
+ tla-cfadef239e847368,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.58,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
114
+ tla-d0cd4c6e2c03bd4c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,359.97,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
115
+ tla-d18c59dfee3a541b,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,33.68,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
116
+ tla-d28f8b0e3308d7a1,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,32.17,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
117
+ tla-d7a5863bacb5f080,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,23.05,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
118
+ tla-dd54f524c09d3772,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,353.52,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
119
+ tla-e0d795a36842397a,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,356.73,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
120
+ tla-e6f0ae49aa9cd4f9,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
121
+ tla-e8720913387d5e6a,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
122
+ tla-e9abc81e6ce3ab87,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.97,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
123
+ tla-eaff4811289cc977,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,28.10,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
124
+ tla-f051ec51259636ce,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,2004.67,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
125
+ tla-f29871ba9b37cbcb,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,358.23,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
126
+ tla-f525334a2f9d955d,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,207.58,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
127
+ tla-f5dced540b15b83f,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,353.67,,owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check,owner_confirmed,private_in_hand_check_not_reproducible
128
+ tla-f7707b53f7143bba,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,357.85,,owner_confirmed_same_drawing_visible_at_frame,owner_confirmed,private_photo_not_bundled
129
+ tla-fe46c459012fbc3c,275fef5594ae6302af4f6ee4edaa9d5b6f724e83,,,owner_reported_physical_reference_for_record,owner_confirmed,private_photo_not_bundled
README.md CHANGED
@@ -1904,6 +1904,17 @@ end of an individual recording, complete process coverage, geometric
1904
  registration, or verification of an inscription. Those are separate claims
1905
  requiring separate evidence.
1906
 
 
 
 
 
 
 
 
 
 
 
 
1907
  See the [work registry](Work_Identity/README.md), the generated
1908
  [work-reference status table](Physical_References/work_reference_status.csv),
1909
  its [release manifest](Physical_References/WORK_REFERENCE_STATUS_MANIFEST.json),
 
1904
  registration, or verification of an inscription. Those are separate claims
1905
  requiring separate evidence.
1906
 
1907
+ A separate [Pre-Standard record-to-physical reference table](Physical_References/Pre_Standard_Record_References/record_physical_links.csv)
1908
+ records 128 creator-supplied, scope-limited links at its pinned source revision.
1909
+ It distinguishes photograph-to-reviewed-frame matches, direct in-hand
1910
+ front-to-frame checks, and record-level physical references without a
1911
+ confirmed frame locator. The table does not assign `work_id` values or
1912
+ establish whole-recording membership, final physical state, finish dates, or
1913
+ process completeness. Private photographs and in-hand observations are not
1914
+ publicly reproducible; see the [schema](Physical_References/Pre_Standard_Record_References/SCHEMA.md)
1915
+ and [evidence statement](Physical_References/Pre_Standard_Record_References/CONFIRMATION.md)
1916
+ for the supported claim and its limits.
1917
+
1918
  See the [work registry](Work_Identity/README.md), the generated
1919
  [work-reference status table](Physical_References/work_reference_status.csv),
1920
  its [release manifest](Physical_References/WORK_REFERENCE_STATUS_MANIFEST.json),
tools/validate_pre_standard_record_physical_links.py ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Validate the public Pre-Standard recording/physical-reference sidecar."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import csv
7
+ import hashlib
8
+ import json
9
+ import re
10
+ import sys
11
+ from collections import Counter
12
+ from decimal import Decimal, InvalidOperation
13
+ from pathlib import Path
14
+
15
+
16
+ LAYER = Path("Physical_References/Pre_Standard_Record_References")
17
+ MANIFEST = LAYER / "MANIFEST.json"
18
+ EXPECTED_FILES = {
19
+ "source_metadata": Path("Pre_Standard_Time_Lapses/metadata.csv"),
20
+ "sidecar": LAYER / "record_physical_links.csv",
21
+ "schema": LAYER / "SCHEMA.md",
22
+ "confirmation": LAYER / "CONFIRMATION.md",
23
+ "validator": Path("tools/validate_pre_standard_record_physical_links.py"),
24
+ }
25
+ FIELDS = [
26
+ "record_id",
27
+ "source_hub_revision",
28
+ "review_frame_seconds",
29
+ "review_frame_region",
30
+ "relationship_type",
31
+ "owner_confirmation_state",
32
+ "evidence_access",
33
+ ]
34
+ FRAME_RELATIONSHIP = "owner_confirmed_same_drawing_visible_at_frame"
35
+ IN_HAND_FRAME_RELATIONSHIP = "owner_confirmed_same_drawing_visible_at_frame_by_in_hand_check"
36
+ RECORD_RELATIONSHIP = "owner_reported_physical_reference_for_record"
37
+ FRAME_RELATIONSHIPS = {FRAME_RELATIONSHIP, IN_HAND_FRAME_RELATIONSHIP}
38
+ RELATIONSHIPS = FRAME_RELATIONSHIPS | {RECORD_RELATIONSHIP}
39
+ EVIDENCE_ACCESS_BY_RELATIONSHIP = {
40
+ FRAME_RELATIONSHIP: "private_photo_not_bundled",
41
+ IN_HAND_FRAME_RELATIONSHIP: "private_in_hand_check_not_reproducible",
42
+ RECORD_RELATIONSHIP: "private_photo_not_bundled",
43
+ }
44
+ SHA256 = re.compile(r"[0-9a-f]{64}\Z")
45
+ REVISION = re.compile(r"[0-9a-f]{40}\Z")
46
+ RECORD_ID = re.compile(r"tla-[0-9a-f]{16}\Z")
47
+ FRAME_LOCATOR = re.compile(r"(?:0|[1-9][0-9]*)\.[0-9]{2}\Z")
48
+ FRAME_REGION = re.compile(r"[a-z]+(?:_[a-z]+)*\Z")
49
+ FRAME_REGION_BY_RECORD = {
50
+ "tla-3071851986af09ee": "lower_angular_hourglass_drawing",
51
+ "tla-9aaeea5ca3fc05c8": "right_angular_drawing",
52
+ }
53
+ ALLOWED_FRAME_REGIONS = set(FRAME_REGION_BY_RECORD.values())
54
+ PRIVATE_REFERENCE = re.compile(
55
+ r"(?i)(?:\b(?:IMG|DSC|DSCF)[_-]?[0-9]+\b|"
56
+ r"\.(?:DNG|CR2|CR3|NEF|ARW|RAF|ORF)\b|"
57
+ r"\b[A-Za-z]:[\\/]|\\\\[^\s\\]+\\[^\s\\]+|"
58
+ r"file://|/(?:Users|home)/[^\s/]+/|\b[0-9a-f]{64}\b)"
59
+ )
60
+ CLAIM_LIMITS = {
61
+ "whole_recording_work_membership": False,
62
+ "recording_completeness": False,
63
+ "endpoint_equivalence": False,
64
+ "physical_final_state": False,
65
+ "work_id_assignment": False,
66
+ }
67
+
68
+
69
+ def digest(path: Path) -> str:
70
+ hasher = hashlib.sha256()
71
+ with path.open("rb") as stream:
72
+ for block in iter(lambda: stream.read(1024 * 1024), b""):
73
+ hasher.update(block)
74
+ return hasher.hexdigest()
75
+
76
+
77
+ def check_file(
78
+ root: Path,
79
+ name: str,
80
+ declaration: object,
81
+ source_metadata_override: Path | None,
82
+ errors: list[str],
83
+ ) -> Path:
84
+ expected = EXPECTED_FILES[name]
85
+ if not isinstance(declaration, dict) or declaration.get("path") != expected.as_posix():
86
+ errors.append(f"{name}: expected exact manifest path {expected.as_posix()}")
87
+ path = (
88
+ source_metadata_override
89
+ if name == "source_metadata" and source_metadata_override is not None
90
+ else root / expected
91
+ )
92
+ if not path.is_file():
93
+ errors.append(f"{name}: missing file: {path}")
94
+ return path
95
+ if isinstance(declaration, dict):
96
+ if declaration.get("size_bytes") != path.stat().st_size:
97
+ errors.append(f"{name}: size mismatch")
98
+ declared_hash = declaration.get("sha256")
99
+ if not isinstance(declared_hash, str) or not SHA256.fullmatch(declared_hash):
100
+ errors.append(f"{name}: invalid SHA-256 declaration")
101
+ elif declared_hash != digest(path):
102
+ errors.append(f"{name}: SHA-256 mismatch")
103
+ return path
104
+
105
+
106
+ def read_csv(path: Path) -> tuple[list[str] | None, list[dict[str, str]]]:
107
+ with path.open("r", encoding="utf-8-sig", newline="") as stream:
108
+ reader = csv.DictReader(stream)
109
+ return reader.fieldnames, list(reader)
110
+
111
+
112
+ def validate(root: Path, source_metadata_override: Path | None = None) -> list[str]:
113
+ errors: list[str] = []
114
+ manifest_path = root / MANIFEST
115
+ if not manifest_path.is_file():
116
+ return [f"missing manifest: {manifest_path}"]
117
+ try:
118
+ manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
119
+ except (OSError, UnicodeError, json.JSONDecodeError) as exc:
120
+ return [f"invalid manifest: {exc}"]
121
+ if not isinstance(manifest, dict):
122
+ return ["manifest must be a JSON object"]
123
+
124
+ if manifest.get("layer_name") != "pre_standard_record_physical_links":
125
+ errors.append("unexpected layer_name")
126
+ if manifest.get("schema_version") != "0.2.0":
127
+ errors.append("unexpected schema_version")
128
+ revision = manifest.get("source_hub_revision")
129
+ if not isinstance(revision, str) or not REVISION.fullmatch(revision):
130
+ errors.append("invalid source_hub_revision")
131
+ if manifest.get("dataset_id") != "maxwellinked/time-lapse-artifacts":
132
+ errors.append("unexpected dataset_id")
133
+ if manifest.get("reference_media_bundled") is not False:
134
+ errors.append("reference_media_bundled must be false")
135
+ if manifest.get("private_photo_identifiers_disclosed") is not False:
136
+ errors.append("private_photo_identifiers_disclosed must be false")
137
+ if manifest.get("public_visual_review_reproducible") is not False:
138
+ errors.append("public_visual_review_reproducible must be false")
139
+ if manifest.get("claim_limits") != CLAIM_LIMITS:
140
+ errors.append("claim_limits differ from the conservative v0.2 contract")
141
+
142
+ files = manifest.get("files")
143
+ if not isinstance(files, dict) or set(files) != set(EXPECTED_FILES):
144
+ errors.append("manifest file declarations differ from the v0.2 contract")
145
+ return errors
146
+ paths = {
147
+ name: check_file(root, name, files[name], source_metadata_override, errors)
148
+ for name in EXPECTED_FILES
149
+ }
150
+ if any(not path.is_file() for path in paths.values()):
151
+ return errors
152
+
153
+ try:
154
+ fields, rows = read_csv(paths["sidecar"])
155
+ metadata_fields, metadata_rows = read_csv(paths["source_metadata"])
156
+ except (OSError, UnicodeError, csv.Error) as exc:
157
+ return errors + [f"cannot read CSV: {exc}"]
158
+ if fields != FIELDS:
159
+ return errors + [f"sidecar columns differ: {fields}"]
160
+ if not rows:
161
+ errors.append("sidecar must contain at least one row")
162
+ if any(None in row or any(value is None for value in row.values()) for row in rows):
163
+ return errors + ["sidecar has malformed rows"]
164
+ row_count = manifest.get("row_count")
165
+ if type(row_count) is not int or row_count < 1 or len(rows) != row_count:
166
+ errors.append("sidecar row count differs from manifest")
167
+ record_ids = [row.get("record_id", "") for row in rows]
168
+ if len(set(record_ids)) != len(rows):
169
+ errors.append("record_id must be unique")
170
+ if record_ids != sorted(record_ids):
171
+ errors.append("sidecar record_id values must be sorted")
172
+ relationship_counts = manifest.get("relationship_type_counts")
173
+ if (
174
+ not isinstance(relationship_counts, dict)
175
+ or set(relationship_counts) != RELATIONSHIPS
176
+ or any(type(count) is not int or count < 0 for count in relationship_counts.values())
177
+ or sum(relationship_counts.values()) != row_count
178
+ or dict(Counter(row.get("relationship_type") for row in rows))
179
+ != {key: count for key, count in relationship_counts.items() if count}
180
+ ):
181
+ errors.append("relationship_type_counts differ from sidecar")
182
+
183
+ required_metadata_fields = {
184
+ "record_id", "duration_seconds", "collection_tier", "is_canonical", "work_id"
185
+ }
186
+ if not metadata_fields or not required_metadata_fields.issubset(metadata_fields):
187
+ return errors + ["source metadata lacks required record fields"]
188
+ by_record: dict[str, list[dict[str, str]]] = {}
189
+ for metadata_row in metadata_rows:
190
+ by_record.setdefault(metadata_row["record_id"], []).append(metadata_row)
191
+ for row in rows:
192
+ record_id = row.get("record_id", "")
193
+ if not RECORD_ID.fullmatch(record_id):
194
+ errors.append(f"{record_id}: invalid record_id")
195
+ if len(by_record.get(record_id, [])) != 1:
196
+ errors.append(f"{record_id}: must resolve exactly once in pinned Pre-Standard metadata")
197
+ continue
198
+ metadata_row = by_record[record_id][0]
199
+ if metadata_row.get("collection_tier") != "pre_standard":
200
+ errors.append(f"{record_id}: pinned metadata must be Pre-Standard")
201
+ if metadata_row.get("is_canonical") != "false":
202
+ errors.append(f"{record_id}: pinned metadata must not be Standard canonical")
203
+ if metadata_row.get("work_id") != "":
204
+ errors.append(f"{record_id}: pinned source work identity must be unresolved")
205
+ if row.get("source_hub_revision") != revision:
206
+ errors.append(f"{record_id}: source revision mismatch")
207
+ relationship = row.get("relationship_type", "")
208
+ frame_text = row.get("review_frame_seconds", "")
209
+ frame_region = row.get("review_frame_region", "")
210
+ if relationship in FRAME_RELATIONSHIPS:
211
+ if not FRAME_LOCATOR.fullmatch(frame_text):
212
+ errors.append(f"{record_id}: frame relationship requires a two-decimal locator")
213
+ else:
214
+ try:
215
+ frame = Decimal(frame_text)
216
+ duration = Decimal(metadata_row["duration_seconds"])
217
+ if not duration.is_finite() or not 0 <= frame < duration:
218
+ errors.append(f"{record_id}: review frame must fall within encoded duration")
219
+ except (InvalidOperation, TypeError):
220
+ errors.append(f"{record_id}: invalid frame or duration")
221
+ if frame_region and (
222
+ not FRAME_REGION.fullmatch(frame_region)
223
+ or frame_region not in ALLOWED_FRAME_REGIONS
224
+ ):
225
+ errors.append(f"{record_id}: unsupported review_frame_region")
226
+ elif relationship == RECORD_RELATIONSHIP:
227
+ if frame_text != "":
228
+ errors.append(f"{record_id}: record-level relationship must have a blank frame")
229
+ if frame_region != "":
230
+ errors.append(f"{record_id}: record-level relationship must have a blank frame region")
231
+ else:
232
+ errors.append(f"{record_id}: unsupported relationship_type")
233
+ if frame_region != FRAME_REGION_BY_RECORD.get(record_id, ""):
234
+ errors.append(f"{record_id}: review_frame_region does not match confirmed frame location")
235
+ if row.get("owner_confirmation_state") != "owner_confirmed":
236
+ errors.append(f"{record_id}: owner confirmation state mismatch")
237
+ if (
238
+ relationship in RELATIONSHIPS
239
+ and row.get("evidence_access") != EVIDENCE_ACCESS_BY_RELATIONSHIP[relationship]
240
+ ):
241
+ errors.append(f"{record_id}: evidence access state mismatch for relationship type")
242
+
243
+ for name in ("sidecar", "schema", "confirmation"):
244
+ try:
245
+ public_text = paths[name].read_text(encoding="utf-8")
246
+ except (OSError, UnicodeError) as exc:
247
+ errors.append(f"{name}: cannot read public text: {exc}")
248
+ continue
249
+ if PRIVATE_REFERENCE.search(public_text):
250
+ errors.append(f"{name}: possible private photograph identifier, path, or digest disclosed")
251
+ return errors
252
+
253
+
254
+ def main() -> int:
255
+ parser = argparse.ArgumentParser(description=__doc__)
256
+ parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parents[1])
257
+ parser.add_argument(
258
+ "--source-metadata",
259
+ type=Path,
260
+ help="Private draft QA: use these source metadata bytes while retaining the manifest path",
261
+ )
262
+ args = parser.parse_args()
263
+ errors = validate(
264
+ args.root.resolve(),
265
+ args.source_metadata.resolve() if args.source_metadata is not None else None,
266
+ )
267
+ if errors:
268
+ for error in errors:
269
+ print(f"ERROR: {error}", file=sys.stderr)
270
+ return 1
271
+ print("Pre-Standard record physical links: v0.2 manifest, joins, scope, and privacy checks passed")
272
+ return 0
273
+
274
+
275
+ if __name__ == "__main__":
276
+ raise SystemExit(main())