Begin verified five-sequence source ingest

#30
by maxwellinked - opened
Files changed (40) hide show
  1. Archive_Specifications.md +11 -6
  2. CHANGELOG.md +26 -0
  3. Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md +27 -15
  4. README.md +47 -19
  5. SCHEMA.md +59 -2
  6. Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec01.mp4 +3 -0
  7. Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4 +3 -0
  8. Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4 +3 -0
  9. Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4 +3 -0
  10. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4 +3 -0
  11. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4 +3 -0
  12. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4 +3 -0
  13. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4 +3 -0
  14. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4 +3 -0
  15. Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4 +3 -0
  16. Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4 +3 -0
  17. Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4 +3 -0
  18. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4 +3 -0
  19. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4 +3 -0
  20. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4 +3 -0
  21. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4 +3 -0
  22. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4 +3 -0
  23. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4 +3 -0
  24. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4 +3 -0
  25. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4 +3 -0
  26. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4 +3 -0
  27. Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4 +3 -0
  28. Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_015833657.mp4 +3 -0
  29. Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_063924874.mp4 +3 -0
  30. Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_010657858.mp4 +3 -0
  31. Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_020840899.mp4 +3 -0
  32. Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_022746877.mp4 +3 -0
  33. Standard_Time_Lapses/Provenance/2026-08-27/README.md +35 -0
  34. Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv +28 -0
  35. VALIDATION.md +91 -23
  36. VIEWER_MIGRATION.md +15 -7
  37. metadata.csv +22 -0
  38. tools/capture_hub_inventory.py +179 -3
  39. tools/test_inventory_binding.py +360 -0
  40. tools/validate_fragment_relationships.py +328 -0
Archive_Specifications.md CHANGED
@@ -42,12 +42,17 @@ landscape sources.
42
  Do not infer a rotation, crop, or transcode solely from dimensions. Such a
43
  transformation should be asserted only when supported by provenance evidence.
44
 
45
- ### Acquisition evidence and canonical assembly
46
-
47
- Framelapse source fragments are retained unchanged as acquisition evidence. One
48
- verified chronological InShot assembly remains the canonical media object for
49
- each drawing record. Dynamic browser previews and physical-reference photographs
50
- are noncanonical access or evidence layers linked through persistent identity.
 
 
 
 
 
51
 
52
  A 2160 × 3840 portrait H.264, 30-fps InShot processing profile is documented as
53
  a candidate. It does not become a canonical protocol boundary until one complete
 
42
  Do not infer a rotation, crop, or transcode solely from dimensions. Such a
43
  transformation should be asserted only when supported by provenance evidence.
44
 
45
+ ### Acquisition evidence and canonical representation
46
+
47
+ Framelapse source fragments are retained unchanged as acquisition evidence. A
48
+ reviewed drawing may be represented canonically either by one selected
49
+ chronological InShot assembly or by a complete, verified `RecNN` sequence of
50
+ unchanged source fragments. In fragment-sequence mode, every source file has its
51
+ own canonical metadata row while grouping, order, completeness, and derivative
52
+ coverage remain in a separate noncanonical relationship manifest. This does not
53
+ change the 29-field schema or retroactively redefine existing records. Dynamic
54
+ browser previews and physical-reference photographs remain noncanonical access
55
+ or evidence layers linked through persistent identity.
56
 
57
  A 2160 × 3840 portrait H.264, 30-fps InShot processing profile is documented as
58
  a candidate. It does not become a canonical protocol boundary until one complete
CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
  # Changelog
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ## Unreleased — June 2026 recording-sequence filename correction
4
 
5
  - Corrected the canonical paths of 15 existing 30 × 40 in recordings dated
 
1
  # Changelog
2
 
3
+ ## Unreleased — August 24–27 complete fragment-sequence ingestion
4
+
5
+ - Added 22 creator-confirmed, unchanged canonical Framelapse source fragments
6
+ totaling 17,389,875,055 bytes and 3,391.699091 seconds of encoded playback.
7
+ - Preserved five complete drawing sequences as ordered `RecNN` sets containing
8
+ 2, 2, 6, 2, and 10 canonical fragments.
9
+ - Increased active membership to 385 Standard plus 128 Pre-Standard records,
10
+ or 513 total, without changing the 29-field schema or
11
+ `standard-2025-07-13` protocol ID.
12
+ - Added a separate 27-row, 15-field dated relationship sidecar covering the 22
13
+ canonical fragments and five unchanged noncanonical InShot derivatives.
14
+ - Stored the five derivatives under the nested provenance `InShot/` directory;
15
+ they remain outside both active metadata indexes, Viewer configurations, and
16
+ active byte and duration totals.
17
+ - Retained media-object-level `record_id` identity. This update does not add a
18
+ global `work_id`, backfill historical rows, create a v3 release, or otherwise
19
+ bump the dataset version.
20
+ - Verified the 27 planned media additions, with no deletion or changed existing
21
+ path, at immutable media-only PR revision
22
+ `bb4160045cae21a71bf360278549398dc9d2a028`.
23
+ - Verified all 27 relationship paths, SHA-256 values, byte sizes, Xet
24
+ identities, canonical metadata joins, and exact root metadata bytes against
25
+ immutable metadata-bearing PR revision
26
+ `8a21015210c19936d3b18175ae3f4061ae1e5d8d`. This validation does not assert
27
+ Viewer settlement or merge status.
28
+
29
  ## Unreleased — June 2026 recording-sequence filename correction
30
 
31
  - Corrected the canonical paths of 15 existing 30 × 40 in recordings dated
Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md CHANGED
@@ -8,16 +8,22 @@ record before becoming a canonical processing-profile boundary.
8
  1. **Framelapse source fragments** are acquisition evidence. Preserve them
9
  unchanged with original filename, byte size, duration, stream properties,
10
  order, and SHA-256.
11
- 2. **One chronological InShot assembly** remains the canonical public media
12
- object for a drawing record.
 
 
 
13
  3. **Dynamic browser previews** are noncanonical access derivatives bound to
14
  `record_id`, integrity identity, and a pinned source revision.
15
  4. **Drawing-reference photographs** are separate noncanonical physical-state
16
  evidence linked through the sidecar only after review.
17
 
18
- Making every Framelapse fragment a canonical row would change the archive's
19
- unit of observation from one drawing record to an editing fragment. This
20
- candidate rejects that change.
 
 
 
21
 
22
  ## Current documented acquisition profile
23
 
@@ -75,10 +81,12 @@ acceptable when needed.
75
  Retain every fragment unchanged before assembly. Never rename or transcode the
76
  only copy. Record original filename, bytes, duration, streams, and SHA-256.
77
 
78
- ### Assemble
79
 
80
- Place fragments in observed chronological order in InShot. Apply the candidate
81
- 4K/30-fps profile without presentation edits.
 
 
82
 
83
  ### Verify
84
 
@@ -89,16 +97,20 @@ unchanged.
89
 
90
  ### Manifest
91
 
92
- Write one assembly manifest with `record_id`, ordered fragment identities,
93
- source/output hashes, capture and processing settings, software versions,
94
- evidence state, and explicit nulls for unresolved variables.
95
 
96
  ### Ingest
97
 
98
- Upload only the reviewed InShot assembly as canonical record media with the
99
- normal 29-field metadata row. Keep detailed fragment relationships in a
100
- separate manifest. Ingest physical-reference photographs only as noncanonical
101
- linked media with their own hashes and privacy review.
 
 
 
 
102
 
103
  ### Derive
104
 
 
8
  1. **Framelapse source fragments** are acquisition evidence. Preserve them
9
  unchanged with original filename, byte size, duration, stream properties,
10
  order, and SHA-256.
11
+ 2. **Canonical representation** may be either one reviewed chronological
12
+ assembly or a complete, verified `RecNN` sequence of unchanged source
13
+ fragments. In fragment-sequence mode, each source file is one canonical
14
+ media record and the noncanonical relationship manifest preserves grouping,
15
+ order, and completeness.
16
  3. **Dynamic browser previews** are noncanonical access derivatives bound to
17
  `record_id`, integrity identity, and a pinned source revision.
18
  4. **Drawing-reference photographs** are separate noncanonical physical-state
19
  evidence linked through the sidecar only after review.
20
 
21
+ The canonical index remains media-object-level. A reviewed fragment sequence
22
+ may therefore use multiple canonical rows for one drawing without adding a
23
+ `work_id` or changing the 29-field schema. This does not retroactively
24
+ reinterpret historical records or establish a new archive version. An InShot
25
+ output not selected as canonical remains a noncanonical provenance derivative,
26
+ and its source coverage must be stated explicitly.
27
 
28
  ## Current documented acquisition profile
29
 
 
81
  Retain every fragment unchanged before assembly. Never rename or transcode the
82
  only copy. Record original filename, bytes, duration, streams, and SHA-256.
83
 
84
+ ### Assemble when selected
85
 
86
+ When an assembly is intentionally selected, place fragments in observed
87
+ chronological order in InShot and apply the candidate 4K/30-fps profile without
88
+ presentation edits. Assembly is not required for a reviewed fragment-sequence
89
+ ingest.
90
 
91
  ### Verify
92
 
 
97
 
98
  ### Manifest
99
 
100
+ Write one relationship manifest with canonical `record_id` values, ordered
101
+ fragment identities, source/output hashes, capture and processing settings,
102
+ software versions, evidence state, and explicit nulls for unresolved variables.
103
 
104
  ### Ingest
105
 
106
+ For assembly mode, upload only the reviewed InShot assembly as canonical record
107
+ media with the normal 29-field metadata row. For fragment-sequence mode, upload
108
+ each verified unchanged source fragment as a canonical `RecNN` record with its
109
+ normal metadata row and keep grouping, order, completeness, and derivative
110
+ coverage in a separate noncanonical relationship manifest. InShot outputs not
111
+ selected as canonical remain provenance derivatives. Ingest physical-reference
112
+ photographs only as noncanonical linked media with their own hashes and privacy
113
+ review.
114
 
115
  ### Derive
116
 
README.md CHANGED
@@ -83,7 +83,7 @@ dataset_info:
83
  dtype: large_string
84
  splits:
85
  - name: archive
86
- num_examples: 363
87
  - config_name: pre_standard
88
  features:
89
  - name: video
@@ -283,12 +283,12 @@ configs:
283
 
284
  # time-lapse-artifacts
285
 
286
- 491 time-lapse recordings of one artist's traditional drawing practice across
287
- nearly two years (September 2024–August 23, 2026), with standardized acquisition
288
- since July 13, 2025. Across approximately 2.00 TB of video, the archive follows
289
  the same artist working in physical media—including pencil, ballpoint pen,
290
  fountain pen, brush, graphite, and ink—on fixed-format paper and illustration board.
291
- The release combines 363 canonical Standard videos and 128 earlier
292
  Pre-Standard recordings. Every published video has a persistent record ID,
293
  content hash, byte size, and encoded-stream metadata; historical session and
294
  provenance fields remain less complete in the Pre-Standard tier.
@@ -306,12 +306,13 @@ ownership or sale.
306
  An earlier 2012–2016 archive of more than 8 TB also exists, consisting
307
  primarily of uploaded 1080p drawing videos, with some livestream-derived
308
  material. It is not yet published in this dataset and is excluded from the
309
- current 491-record, 2.00-TB release totals. This is an active construction
310
  release.
311
 
312
  ## Snapshot and Coverage
313
 
314
- These counts describe the current `main` branch. The immutable `v0.3.0` tag
 
315
  contains 467 rows: 338 Standard and 129 Pre-Standard. A later curator-verified
316
  provenance correction promoted one distinct Standard recording from the
317
  noncanonical unresolved subtree. A subsequent creator-verified ingestion added
@@ -328,18 +329,26 @@ A later creator-confirmed filename correction preserves the complete
328
  `Rec01`–`Rec15` order of 15 existing 30 × 40 in recordings dated June 18–30.
329
  Their media payloads, stable IDs, hashes, metadata membership, and release
330
  counts are unchanged.
 
 
 
 
 
 
 
 
331
  Two records from the 17-object ingestion and the promoted July 13 record are
332
  explicitly documented as shortened derivatives rather than full-duration
333
  masters.
334
 
335
  | Collection tier | Published MP4s | Indexed rows | Date coverage | Metadata state |
336
  | --- | ---: | ---: | --- | --- |
337
- | `standard` | 363 direct files | 363 | 2025-07-13–2026-08-23 | Complete core technical metadata for every direct Standard file |
338
  | `pre_standard` | 128 | 128 | 2024-09-17–2025-07-09, plus 9 unknown dates | Complete core technical metadata; historical descriptive and provenance gaps remain |
339
  | Earlier archive (unpublished) | 0 public videos | 0 | Historical scope 2012–2016 | More than 8 TB held outside this release; ingestion pending |
340
 
341
- **Current published index:** `main` contains 491 rows: 363 Standard and 128
342
- Pre-Standard. The preceding v0.1 state at revision
343
  `339e6149de130cbe2d001f7a0e5247872bc788ec` exposed 465 rows: 335 Standard and
344
  130 Pre-Standard. v0.2 added three previously unindexed Standard files and
345
  removed one Pre-Standard row whose media did not meet the ownership and
@@ -360,7 +369,7 @@ train/validation/test partition has been defined.
360
  The release exposes two explicit configurations so metadata-complete canonical
361
  records are not silently mixed with historically less complete records:
362
 
363
- - `canonical/archive` is the default and loads root `metadata.csv` with the 363
364
  direct files in `Standard_Time_Lapses/`
365
  - `pre_standard/archive` loads `Pre_Standard_Time_Lapses/metadata.csv` with the
366
  128 direct files in that folder
@@ -373,7 +382,7 @@ zero or false. Both indexes declare tier membership directly: the root index set
373
  `collection_tier = standard` and `is_canonical = true`; the Pre-Standard CSV
374
  sets `collection_tier = pre_standard` and `is_canonical = false`.
375
 
376
- Published-index completeness is defined by the 363 rows in `canonical/archive`
377
  plus the 128 rows in `pre_standard/archive` and their generated Parquet
378
  exports. Hugging Face's separate column Statistics job is an auxiliary,
379
  asynchronous surface; its availability is not used to claim or reject
@@ -399,7 +408,7 @@ materials, studios, or drawing practices broadly.
399
 
400
  ### `Standard_Time_Lapses/`
401
 
402
- The directory contains 363 direct MP4 files. `metadata.csv` is their complete
403
  machine-readable canonical index: every direct file has one validated row with
404
  core technical metadata. Direct placement alone is not sufficient for future
405
  additions; metadata and release validation are required.
@@ -504,12 +513,23 @@ downloadable. See the [sidecar schema](Physical_References/SCHEMA.md) and
504
 
505
  The acquisition protocol effective July 13, 2025 is documented in
506
  `Archive_Specifications.md`. Framelapse source fragments remain unchanged
507
- acquisition evidence, while one verified chronological InShot assembly remains
508
- the canonical media object for each drawing record. A documented 4K/30-fps
509
- processing profile remains a candidate and does not retroactively redefine
510
- existing records. See the
 
 
 
511
  [capture and ingest protocol](Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md).
512
 
 
 
 
 
 
 
 
 
513
  The protocol's capture orientation and a file's stored pixel orientation are
514
  different concepts. The `orientation`, `width_px`, and `height_px` metadata
515
  describe the published encoded file. Historical canonicalization may include a
@@ -606,8 +626,8 @@ audio by default while preserving the archival masters.
606
 
607
  ## Access and Reproducibility
608
 
609
- The active 491-video release contains 2,002,781,484,144 bytes of video
610
- (approximately 2.00 TB, or 1.82 TiB). Canonical files are often several
611
  gigabytes each, so users should select records through `metadata.csv` before
612
  downloading video.
613
 
@@ -717,10 +737,18 @@ See `CHANGELOG.md` for release-level changes.
717
  - `RELEASE_MANIFEST.json` — historical v0.2.0 release-candidate manifest; it
718
  does not describe current `main` or provide checksums for the video payloads
719
  - `tools/capture_hub_inventory.py` — pinned Hub/Xet identity inventory
 
 
720
  - `tools/download_verified.py` — selected download and byte-integrity check
721
  - `tools/enrich_prestandard.py` — pinned Pre-Standard technical enrichment
722
  - `tools/validate_metadata.py` — cross-tier metadata and repository checks
 
 
723
  - `Standard_Time_Lapses/Provenance/` — historical evidence and mappings
 
 
 
 
724
 
725
  ## Citation
726
 
 
83
  dtype: large_string
84
  splits:
85
  - name: archive
86
+ num_examples: 385
87
  - config_name: pre_standard
88
  features:
89
  - name: video
 
283
 
284
  # time-lapse-artifacts
285
 
286
+ 513 time-lapse recordings of one artist's traditional drawing practice across
287
+ nearly two years (September 2024–August 27, 2026), with standardized acquisition
288
+ since July 13, 2025. Across approximately 2.02 TB of video, the archive follows
289
  the same artist working in physical media—including pencil, ballpoint pen,
290
  fountain pen, brush, graphite, and ink—on fixed-format paper and illustration board.
291
+ The release combines 385 canonical Standard videos and 128 earlier
292
  Pre-Standard recordings. Every published video has a persistent record ID,
293
  content hash, byte size, and encoded-stream metadata; historical session and
294
  provenance fields remain less complete in the Pre-Standard tier.
 
306
  An earlier 2012–2016 archive of more than 8 TB also exists, consisting
307
  primarily of uploaded 1080p drawing videos, with some livestream-derived
308
  material. It is not yet published in this dataset and is excluded from the
309
+ current 513-record, 2.02-TB release totals. This is an active construction
310
  release.
311
 
312
  ## Snapshot and Coverage
313
 
314
+ These counts describe the active construction state represented by this
315
+ revision. The immutable `v0.3.0` tag
316
  contains 467 rows: 338 Standard and 129 Pre-Standard. A later curator-verified
317
  provenance correction promoted one distinct Standard recording from the
318
  noncanonical unresolved subtree. A subsequent creator-verified ingestion added
 
329
  `Rec01`–`Rec15` order of 15 existing 30 × 40 in recordings dated June 18–30.
330
  Their media payloads, stable IDs, hashes, metadata membership, and release
331
  counts are unchanged.
332
+ The August 24–27 fragment-sequence ingestion adds 22 unchanged canonical
333
+ Framelapse recordings across five creator-confirmed complete sequences. Five
334
+ unchanged InShot outputs remain noncanonical derivatives in a nested provenance
335
+ directory and are excluded from the active indexes and Viewer. A separate
336
+ 27-row, 15-field relationship sidecar records grouping, order, completeness,
337
+ and derivative coverage. This active-construction update does not create a new
338
+ version tag, change the 29-field video schema or acquisition-protocol
339
+ identifier, backfill historical records, or introduce a global `work_id`.
340
  Two records from the 17-object ingestion and the promoted July 13 record are
341
  explicitly documented as shortened derivatives rather than full-duration
342
  masters.
343
 
344
  | Collection tier | Published MP4s | Indexed rows | Date coverage | Metadata state |
345
  | --- | ---: | ---: | --- | --- |
346
+ | `standard` | 385 direct files | 385 | 2025-07-13–2026-08-27 | Complete core technical metadata for every direct Standard file |
347
  | `pre_standard` | 128 | 128 | 2024-09-17–2025-07-09, plus 9 unknown dates | Complete core technical metadata; historical descriptive and provenance gaps remain |
348
  | Earlier archive (unpublished) | 0 public videos | 0 | Historical scope 2012–2016 | More than 8 TB held outside this release; ingestion pending |
349
 
350
+ **Current indexed state:** this revision contains 513 rows: 385 Standard and
351
+ 128 Pre-Standard. The preceding v0.1 state at revision
352
  `339e6149de130cbe2d001f7a0e5247872bc788ec` exposed 465 rows: 335 Standard and
353
  130 Pre-Standard. v0.2 added three previously unindexed Standard files and
354
  removed one Pre-Standard row whose media did not meet the ownership and
 
369
  The release exposes two explicit configurations so metadata-complete canonical
370
  records are not silently mixed with historically less complete records:
371
 
372
+ - `canonical/archive` is the default and loads root `metadata.csv` with the 385
373
  direct files in `Standard_Time_Lapses/`
374
  - `pre_standard/archive` loads `Pre_Standard_Time_Lapses/metadata.csv` with the
375
  128 direct files in that folder
 
382
  `collection_tier = standard` and `is_canonical = true`; the Pre-Standard CSV
383
  sets `collection_tier = pre_standard` and `is_canonical = false`.
384
 
385
+ Published-index completeness is defined by the 385 rows in `canonical/archive`
386
  plus the 128 rows in `pre_standard/archive` and their generated Parquet
387
  exports. Hugging Face's separate column Statistics job is an auxiliary,
388
  asynchronous surface; its availability is not used to claim or reject
 
408
 
409
  ### `Standard_Time_Lapses/`
410
 
411
+ The directory contains 385 direct MP4 files. `metadata.csv` is their complete
412
  machine-readable canonical index: every direct file has one validated row with
413
  core technical metadata. Direct placement alone is not sufficient for future
414
  additions; metadata and release validation are required.
 
513
 
514
  The acquisition protocol effective July 13, 2025 is documented in
515
  `Archive_Specifications.md`. Framelapse source fragments remain unchanged
516
+ acquisition evidence. A reviewed drawing may be represented canonically either
517
+ by one selected chronological assembly or by a complete, verified `RecNN`
518
+ sequence of unchanged source fragments. Grouping, order, completeness, and
519
+ noncanonical derivative coverage remain in a separate relationship manifest;
520
+ the active 29-field metadata schema is unchanged. A documented 4K/30-fps
521
+ InShot processing profile remains a candidate and does not retroactively
522
+ redefine existing records. See the
523
  [capture and ingest protocol](Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md).
524
 
525
+ The dated
526
+ [`fragment_sequence_relationships.csv`](Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv)
527
+ sidecar has 27 rows and 15 fields: 22 canonical fragment rows across five
528
+ complete sequences and five noncanonical InShot derivative rows. Its
529
+ `fragment_set_label` is a descriptive grouping label, not a global `work_id`.
530
+ The nested derivative payloads are not included in the 513 active rows or the
531
+ active byte and duration totals.
532
+
533
  The protocol's capture orientation and a file's stored pixel orientation are
534
  different concepts. The `orientation`, `width_px`, and `height_px` metadata
535
  describe the published encoded file. Historical canonicalization may include a
 
626
 
627
  ## Access and Reproducibility
628
 
629
+ The active 513-video release contains 2,020,171,359,199 bytes of video
630
+ (approximately 2.02 TB, or 1.84 TiB). Canonical files are often several
631
  gigabytes each, so users should select records through `metadata.csv` before
632
  downloading video.
633
 
 
737
  - `RELEASE_MANIFEST.json` — historical v0.2.0 release-candidate manifest; it
738
  does not describe current `main` or provide checksums for the video payloads
739
  - `tools/capture_hub_inventory.py` — pinned Hub/Xet identity inventory
740
+ - `tools/test_inventory_binding.py` — self-contained revision/metadata-binding
741
+ regression tests
742
  - `tools/download_verified.py` — selected download and byte-integrity check
743
  - `tools/enrich_prestandard.py` — pinned Pre-Standard technical enrichment
744
  - `tools/validate_metadata.py` — cross-tier metadata and repository checks
745
+ - `tools/validate_fragment_relationships.py` — dated sequence and derivative
746
+ relationship checks against the pinned inventory
747
  - `Standard_Time_Lapses/Provenance/` — historical evidence and mappings
748
+ - `Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv`
749
+ — dated fragment-sequence and noncanonical-derivative relationship sidecar
750
+ - `Standard_Time_Lapses/Provenance/2026-08-27/README.md` — scope, identity,
751
+ exclusion, and revision-binding notes for the dated sidecar
752
 
753
  ## Citation
754
 
SCHEMA.md CHANGED
@@ -58,8 +58,9 @@ therefore preserve tool and medium sets without manufacturing positional pairs.
58
  directly in `Standard_Time_Lapses/`. Direct placement alone does not make a file
59
  canonical: every released canonical file must have exactly one metadata row,
60
  complete required technical fields, and the necessary rights and provenance
61
- clearance. The canonical index contains 363 validated records and covers every MP4
62
- stored directly in `Standard_Time_Lapses/` at the pinned revision.
 
63
 
64
  The canonical index does not make provenance, unresolved, pre-standard, or
65
  legacy files canonical.
@@ -179,6 +180,56 @@ Observed evidence methods include:
179
 
180
  New enumerated values must be documented here before use.
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  ## Physical-reference sidecar
183
 
184
  `Physical_References/endpoint_references.csv` is an optional derived
@@ -229,6 +280,12 @@ Before publication, the validator must confirm:
229
  than silently treated as released data
230
  - material lacking the necessary ownership or provenance clearance is absent
231
  from both active indexes
 
 
 
 
 
 
232
 
233
  Run:
234
 
 
58
  directly in `Standard_Time_Lapses/`. Direct placement alone does not make a file
59
  canonical: every released canonical file must have exactly one metadata row,
60
  complete required technical fields, and the necessary rights and provenance
61
+ clearance. The active-construction candidate contains 385 records. Before
62
+ publication, it must cover every MP4 stored directly in
63
+ `Standard_Time_Lapses/` at the exact reviewed revision.
64
 
65
  The canonical index does not make provenance, unresolved, pre-standard, or
66
  legacy files canonical.
 
180
 
181
  New enumerated values must be documented here before use.
182
 
183
+ ## Fragment-sequence relationship sidecar
184
+
185
+ `Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv`
186
+ is a derived relationship table with one row per media object in the dated
187
+ ingestion. It has 27 rows and 15 fields: 22 canonical Framelapse fragments
188
+ across five owner-confirmed complete sequences and five noncanonical InShot
189
+ derivatives. It does not add fields to either 29-field video index.
190
+
191
+ | Field | Type | Meaning |
192
+ | --- | --- | --- |
193
+ | `fragment_set_label` | string | Descriptive canonical filename stem shared by one reviewed sequence; not a global `work_id`. |
194
+ | `object_role` | enum | `canonical_fragment` or `noncanonical_inshot_derivative`. |
195
+ | `record_id` | string or blank | Persistent canonical identity; required for canonical fragments and blank for noncanonical derivatives. |
196
+ | `file_path` | string | Unique repository-relative MP4 path. |
197
+ | `sha256` | string | Ordinary byte-level SHA-256 of the represented object. |
198
+ | `hub_xet_hash` | string | Hugging Face Xet identity at the pinned revision; distinct from ordinary SHA-256. |
199
+ | `size_bytes` | integer | Exact object size in bytes. |
200
+ | `sequence_position` | integer or blank | Contiguous one-based position for a canonical fragment. |
201
+ | `sequence_count` | integer or blank | Total canonical fragment count for the sequence. |
202
+ | `sequence_completeness` | enum | Owner-reviewed completeness of the underlying canonical source sequence; all dated rows use `owner_confirmed_complete`, while `derivative_coverage` separately states whether a derivative covers all of that sequence. |
203
+ | `source_record_ids` | semicolon-delimited string or blank | Ordered canonical source IDs for a derivative; blank on canonical rows. |
204
+ | `derivative_coverage` | enum or blank | `complete_sequence` or `partial_sequence` for a derivative; blank on canonical rows. |
205
+ | `evidence_state` | semicolon-delimited string | Only evidence checks actually completed for the object and relationship. |
206
+ | `source_hub_revision` | string | Immutable 40-hex Hub commit that permits the canonical identity and path join to be checked. |
207
+ | `notes` | string or blank | Literal qualifications that do not belong in the categorical fields. |
208
+
209
+ Within each fragment set, canonical positions must be unique and contiguous
210
+ from one through `sequence_count`. A `complete_sequence` derivative must list
211
+ the full ordered canonical source sequence, and every derivative source must
212
+ belong to the same fragment set. Derivative rows and payloads remain outside
213
+ the canonical metadata and Viewer configurations even when stored in the
214
+ repository.
215
+
216
+ For this dated sidecar, canonical-fragment evidence is exactly
217
+ `owner-confirmed`, `boundary-frame-verified`, `checksum-computed`,
218
+ `media-probed`, `demux-verified`, and `sampled-decode-verified`.
219
+ Noncanonical-derivative evidence is exactly `sampled-frame-verified`,
220
+ `duration-arithmetic-verified`, `checksum-computed`, `media-probed`,
221
+ `demux-verified`, and `sampled-decode-verified`. Derivative
222
+ `sequence_position` is blank, `sequence_count` equals its canonical set size,
223
+ and any partial `source_record_ids` retain canonical sequence order.
224
+
225
+ `source_hub_revision` must be copied from an actual immutable remote commit; a
226
+ moving branch, placeholder, or inferred value is invalid. Remote inventory,
227
+ Xet-identity, and relationship-join validation remain pending until that commit
228
+ exists and is checked. The captured inventory also binds the exact bytes of
229
+ that revision's `metadata.csv`, so a local join cannot substitute metadata from
230
+ a different commit. This sidecar does not introduce `work_id`, backfill
231
+ historical rows, change `standard-2025-07-13`, or create a new dataset version.
232
+
233
  ## Physical-reference sidecar
234
 
235
  `Physical_References/endpoint_references.csv` is an optional derived
 
280
  than silently treated as released data
281
  - material lacking the necessary ownership or provenance clearance is absent
282
  from both active indexes
283
+ - fragment-sequence positions are contiguous and complete-sequence derivative
284
+ source lists exactly match their own ordered fragment set
285
+ - noncanonical derivative payloads remain absent from both active indexes and
286
+ Viewer configurations
287
+ - relationship paths, Xet identities, sizes, and canonical `record_id` joins
288
+ resolve at the exact declared `source_hub_revision`
289
 
290
  Run:
291
 
Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ff40b583505bc89e68328ce79b917502326fe8d69f3a2cfb863eccbd12946fd
3
+ size 1477139910
Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78748f7547ecdf7fde0676a6f4a49cbfe31c4d494179561974ef9063ba886df5
3
+ size 949451606
Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aaad5ef2c7d498d42e6e57ff0e45af728a6c6c05f821ab6093a751d9f77fc7a5
3
+ size 880728360
Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cec59ff5de074b9c77ff7c3e7ad5cfd4bae10024445e47125494aa950677e9ae
3
+ size 891207279
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b882fda076e7b6b90a751d05677bd5cb0c8d5c815fd63761711b21c4eb98976b
3
+ size 535577333
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1ae92102e7656411b9e9b7515f7d47f3772ee6ee3ddae3083e5ee06e3237f40
3
+ size 946694929
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1443d44bf2115fdec8f17f669a39489ee5198bfe403ddb4a74f51d71c90a6009
3
+ size 1603681390
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb636b90f5031640bb1ac994a24d5979a4bffff8682aa26131bca1ba4cd0f217
3
+ size 315155575
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50fe317f2b2b36bde96b83d03741fb96b8676508dcd2874d7d525c087df4579d
3
+ size 716336962
Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7483d3bf49604abc3ecdc7ec7ec82649f35c6c7a267189836098c823c5833f13
3
+ size 1265415074
Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73f3bd9d5a3c26ecab9b5fa5c9ce8e2e79f1f37daa49a122eae5a0958dad794d
3
+ size 987970571
Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96ee50cb8e1d6c7d9b3025ad26be604cd99cfec24a9ab1fdc0bdb96ce43f9787
3
+ size 297678377
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:167341d8cf1d979ff4a4d038dcb3086324ca7dd036a97f878740604000ed062b
3
+ size 376030826
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:879953733d753b711a2fc4fb641e04b2c6a1d0c821ecfa0e517952c457032de8
3
+ size 455422073
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b012d15e900d30deb6fcae31abc99a5a1c6239da336b0127866151c981138d24
3
+ size 482916549
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d30154895afa2653053a1b9427e3c5bbaa328765039257633bc8d380cad7cf8b
3
+ size 671007948
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7766305825e023eb2729b2d4130586de68bfc34b506697aa6e6527f5411477a
3
+ size 611828108
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70f3bc41ae7f869688827fd6ea1fe07778414c53c5e67eb0d5a1eeb526352338
3
+ size 961633726
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e01b472c6d57a53498944595d7519f84ec1d9718efdc00c82eae38e17ccfe1f8
3
+ size 1374513851
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a4dabe0df86bb3f66d787a078275b491ac120ef91c186984b4502c5e97577f
3
+ size 693672127
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8e015e7be4e5af0ce8fcd1925b72b24c8703de51a89ece96685caeeeb827848
3
+ size 571159447
Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f199bb358c9957134bbfa2f3ecc5d9343d6d3dbe2d4b2f5227d423eac70c5ed
3
+ size 324653034
Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_015833657.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4811d8d181e74df9391525b95e136c517e029a882cc994fc60881836e5792cc5
3
+ size 6248425419
Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_063924874.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97704e2b7515d98f904cca126f4eb48a42e7eae322329f784c281ad1566b33d6
3
+ size 4564449205
Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_010657858.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad2532ac75b3b6741c0e7ed28db61f45d656f0af3ceeaa7c8f52735f1e1586ac
3
+ size 2453535699
Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_020840899.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74982a01d28a82a46b84b823b57a5b19480206de657b26637ffc9414ae985811
3
+ size 1216484201
Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_022746877.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e86d224a4fe816dc4ee90ee334b11e10074ab386e804d36d276670b2059bda
3
+ size 2276248316
Standard_Time_Lapses/Provenance/2026-08-27/README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Recording relationship provenance — 2026-08-27
2
+
3
+ This dated provenance layer documents five creator-confirmed complete drawing
4
+ sequences represented by 22 unchanged canonical Framelapse recordings and five
5
+ noncanonical InShot derivatives.
6
+
7
+ `fragment_sequence_relationships.csv` contains one row per media object in this
8
+ ingestion. Its 27 rows and 15 fields cover 22 canonical fragment
9
+ objects and five noncanonical derivative objects. `fragment_set_label` is the
10
+ shared descriptive canonical filename stem; it is not a global `work_id`.
11
+ Canonical fragment rows carry their persistent `record_id`, contiguous sequence
12
+ position, sequence count, ordinary source-file SHA-256, Hub Xet identity, and
13
+ evidence state. The five complete sets contain 2, 2, 6, 2, and 10 canonical
14
+ fragments. Derivative rows remain outside the active canonical index and use
15
+ `source_record_ids` to identify their ordered canonical sources and
16
+ `derivative_coverage` to distinguish a complete assembly from a partial
17
+ transcode.
18
+
19
+ The `sha256` column is an ordinary byte-level SHA-256. `hub_xet_hash` is the
20
+ separate Hugging Face Xet identity. These values are not interchangeable.
21
+ Every `source_hub_revision` value pins the immutable metadata-bearing PR commit
22
+ `8a21015210c19936d3b18175ae3f4061ae1e5d8d`. At that revision, all 27 paths,
23
+ ordinary SHA-256 values, byte sizes, Xet identities, all 22 canonical metadata
24
+ joins, and the exact root `metadata.csv` bytes passed validation. The sidecar is
25
+ committed afterward and deliberately points back to this metadata-bearing
26
+ revision, avoiding a circular self-reference. A moving branch, placeholder, or
27
+ inferred revision is invalid.
28
+
29
+ The five unchanged derivative payloads are stored under `InShot/`. Their
30
+ presence in this nested provenance directory does not make them canonical or
31
+ include them in the active Dataset Viewer configuration.
32
+
33
+ This relationship layer does not change the 29-field active video schema,
34
+ introduce a global `work_id`, backfill historical rows, change
35
+ `standard-2025-07-13`, or create a new dataset version.
Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fragment_set_label,object_role,record_id,file_path,sha256,hub_xet_hash,size_bytes,sequence_position,sequence_count,sequence_completeness,source_record_ids,derivative_coverage,evidence_state,source_hub_revision,notes
2
+ 2026-08-24.0157.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-46790887b96058b1,Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec01.mp4,5ff40b583505bc89e68328ce79b917502326fe8d69f3a2cfb863eccbd12946fd,9e03ad7118d219f39dbb0d3984e19138fba339b3c5e641c4e80e8853ddad0032,1477139910,1,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260823_233143.mp4.
3
+ 2026-08-24.0157.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-ebbce867454d61ea,Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4,78748f7547ecdf7fde0676a6f4a49cbfe31c4d494179561974ef9063ba886df5,7a865fbd9b04da1f0095f8252a1156948c0041335d6d89a977ee1d4eac3db6e5,949451606,2,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260824_013639.mp4.
4
+ 2026-08-24.0638.BallpointPen.Ink.Paper.12x9,canonical_fragment,tla-e31f5059a75da52c,Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4,aaad5ef2c7d498d42e6e57ff0e45af728a6c6c05f821ab6093a751d9f77fc7a5,c5dae55bd92f2b2e4d16ca7592d549079f01dbb4cf7e0a0896421ed977f4ae90,880728360,1,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260824_044026.mp4.
5
+ 2026-08-24.0638.BallpointPen.Ink.Paper.12x9,canonical_fragment,tla-e6314ca067353edc,Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4,cec59ff5de074b9c77ff7c3e7ad5cfd4bae10024445e47125494aa950677e9ae,3627316fdfb476685660199e6ee62cc14ca8f8a91d15608cfed669d678f10484,891207279,2,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260824_061839.mp4.
6
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-2b3cc71f11ea0151,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4,b882fda076e7b6b90a751d05677bd5cb0c8d5c815fd63761711b21c4eb98976b,8c4e0fc28f7d68ca50b5027dc1a8576643e07b2ff68809409afb14ec48974854,535577333,1,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260824_074143.mp4.
7
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-3a4ed6625d6aae32,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4,c1ae92102e7656411b9e9b7515f7d47f3772ee6ee3ddae3083e5ee06e3237f40,d827e2e658d4734fa6e706de70f6e9cd14960d73574edafee94f3730cadbc6f1,946694929,2,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260824_090248.mp4.
8
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-08603b7d034d579a,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4,1443d44bf2115fdec8f17f669a39489ee5198bfe403ddb4a74f51d71c90a6009,bc72f282fd2b50ace4d3e194680490ec3fbac195e8ffbda40e817baab10ab58b,1603681390,3,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260825_145801.mp4.
9
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-d743accc0cc418b4,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4,cb636b90f5031640bb1ac994a24d5979a4bffff8682aa26131bca1ba4cd0f217,fd78e118f24269ff7a879c8e2e40cbc5b9a2c0c2f111e0d19abea877648fce6d,315155575,4,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260825_160133.mp4.
10
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-dab77d429267838b,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4,50fe317f2b2b36bde96b83d03741fb96b8676508dcd2874d7d525c087df4579d,3da1e9d6856b7b7f248d1275a061f0e1c4cf48439cc2a4483415dcf5e9b0e4cb,716336962,5,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260825_162129.mp4.
11
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-d611b60118251c73,Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4,7483d3bf49604abc3ecdc7ec7ec82649f35c6c7a267189836098c823c5833f13,3a9657c92c4e5d8317fc57a61a311480c097576cba12bd0007cceffddd129366,1265415074,6,6,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260825_191231.mp4.
12
+ 2026-08-26.1229.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-bbb65ede9e37e03c,Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4,73f3bd9d5a3c26ecab9b5fa5c9ce8e2e79f1f37daa49a122eae5a0958dad794d,cd97f7221cb09dd35460321fae78563a879e6659b92061cab0dc4be9ab4e38b8,987970571,1,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_113641.mp4.
13
+ 2026-08-26.1229.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-3adf012f9f23d1d4,Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4,96ee50cb8e1d6c7d9b3025ad26be604cd99cfec24a9ab1fdc0bdb96ce43f9787,a3f7b26ce81b790c6d7b5b2252d68e96ba58e958e415429bc659d42d809fd84b,297678377,2,2,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_122231.mp4.
14
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-db8e5247b8ffbfcd,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4,167341d8cf1d979ff4a4d038dcb3086324ca7dd036a97f878740604000ed062b,bbd95099782667a1edce6dff3a7260a9f9a892e9db680a61bba8daa504271e5f,376030826,1,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_124754.mp4.
15
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-f4659f0da42cf8e6,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4,879953733d753b711a2fc4fb641e04b2c6a1d0c821ecfa0e517952c457032de8,d85c1b1bed94be6b2ce75661733b47e4ce6fc385cd63a14edc3c64ca4d165750,455422073,2,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_130112.mp4.
16
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-d985c298e56b626b,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4,b012d15e900d30deb6fcae31abc99a5a1c6239da336b0127866151c981138d24,1c021b34fe0f0a447828444cac4e827e04c8643d59cd207f11bc34103356359a,482916549,3,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_135332.mp4.
17
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-8d4e89f78b6cfb9d,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4,d30154895afa2653053a1b9427e3c5bbaa328765039257633bc8d380cad7cf8b,36369030b39a1f229b9374c556b04e72c01110ccde38e24df3f19cf13dfa31bf,671007948,4,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260826_152231.mp4.
18
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-06b42c49789802b4,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4,b7766305825e023eb2729b2d4130586de68bfc34b506697aa6e6527f5411477a,bf912604ec65aeaaa2f374c9184b694437bb4187e6416893ce2c75bde7c51b62,611828108,5,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_044715.mp4.
19
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-10c744cb86d89256,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4,70f3bc41ae7f869688827fd6ea1fe07778414c53c5e67eb0d5a1eeb526352338,1d8b048951088fed34d6b805764aa7314d83ba0d4f5a18a8574b7f802c4253c6,961633726,6,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_053657.mp4.
20
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-56d81a0cc1a81233,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4,e01b472c6d57a53498944595d7519f84ec1d9718efdc00c82eae38e17ccfe1f8,1fda631fc1f95434ed82bcee298d11973692f4f99ce48286966ee6632bf92d66,1374513851,7,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_063456.mp4.
21
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-dfeb6702936333a5,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4,32a4dabe0df86bb3f66d787a078275b491ac120ef91c186984b4502c5e97577f,e048c6b2cd89bf9646ee2dc2a3d169e8e8294f02589a037eebea0c1b216da4ca,693672127,8,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_073057.mp4.
22
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-3e01cce98d9d3ff3,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4,a8e015e7be4e5af0ce8fcd1925b72b24c8703de51a89ece96685caeeeb827848,0e37c7c81b3faf912278effb85cb0f90fcb9005b49a8550b53d2ccf7474c47be,571159447,9,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_080100.mp4.
23
+ 2026-08-27.0856.BallpointPen.Ink.Paper.9x12,canonical_fragment,tla-e1c799958f3cf010,Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4,2f199bb358c9957134bbfa2f3ecc5d9343d6d3dbe2d4b2f5227d423eac70c5ed,5e61e7002af524f3b999e9144248bdee65818f4dc0342c23d4cf3d7203e1c018,324653034,10,10,owner_confirmed_complete,,,owner-confirmed; boundary-frame-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,Original camera filename: VID_20260827_084919.mp4.
24
+ 2026-08-24.0157.BallpointPen.Ink.Paper.9x12,noncanonical_inshot_derivative,,Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_015833657.mp4,4811d8d181e74df9391525b95e136c517e029a882cc994fc60881836e5792cc5,d13eedb4b078c0c2eb7d977917b152b34513ae693d0199c5abcc67c80d807072,6248425419,,2,owner_confirmed_complete,tla-46790887b96058b1;tla-ebbce867454d61ea,complete_sequence,sampled-frame-verified; duration-arithmetic-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,InShot assembled-from derivative. H.264 re-encode with AAC audio present; sampled audio was effectively silent.
25
+ 2026-08-24.0638.BallpointPen.Ink.Paper.12x9,noncanonical_inshot_derivative,,Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_063924874.mp4,97704e2b7515d98f904cca126f4eb48a42e7eae322329f784c281ad1566b33d6,5cc94f5407a3d96155b08f2bb915753cc807b003138631427e7b5170965cb3be,4564449205,,2,owner_confirmed_complete,tla-e31f5059a75da52c;tla-e6314ca067353edc,complete_sequence,sampled-frame-verified; duration-arithmetic-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,InShot assembled-from derivative. H.264 re-encode with AAC audio present; sampled audio was effectively silent.
26
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,noncanonical_inshot_derivative,,Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_010657858.mp4,ad2532ac75b3b6741c0e7ed28db61f45d656f0af3ceeaa7c8f52735f1e1586ac,699ab0644f79089e108c720d7e06093e3538ea60ef0b769aff800c83c677a736,2453535699,,6,owner_confirmed_complete,tla-3a4ed6625d6aae32,partial_sequence,sampled-frame-verified; duration-arithmetic-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,InShot transcode-of derivative. H.264 re-encode with AAC audio present; sampled audio was effectively silent.
27
+ 2026-08-25.1941.BallpointPen.Ink.Paper.9x12,noncanonical_inshot_derivative,,Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_020840899.mp4,74982a01d28a82a46b84b823b57a5b19480206de657b26637ffc9414ae985811,75dda0ba50051a59a7d153dbb2208775be3b03d411ca5cf4358e6766a63c567e,1216484201,,6,owner_confirmed_complete,tla-3a4ed6625d6aae32,partial_sequence,sampled-frame-verified; duration-arithmetic-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,InShot transcode-of derivative. H.264 re-encode with AAC audio present; sampled audio was effectively silent.
28
+ 2026-08-24.0638.BallpointPen.Ink.Paper.12x9,noncanonical_inshot_derivative,,Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_022746877.mp4,21e86d224a4fe816dc4ee90ee334b11e10074ab386e804d36d276670b2059bda,8ea2e2b8f99b5e0af066711f1a048a33ad454bf899a0e7c60d501a70ec715360,2276248316,,2,owner_confirmed_complete,tla-e31f5059a75da52c;tla-e6314ca067353edc,complete_sequence,sampled-frame-verified; duration-arithmetic-verified; checksum-computed; media-probed; demux-verified; sampled-decode-verified,8a21015210c19936d3b18175ae3f4061ae1e5d8d,InShot assembled-from derivative. H.264 re-encode with AAC audio present; sampled audio was effectively silent.
VALIDATION.md CHANGED
@@ -2,15 +2,18 @@
2
 
3
  ## Scope
4
 
5
- The current post-v0.3 main-branch candidate validates:
 
6
 
7
- - all 363 canonical Standard rows and direct Standard MP4 paths
8
  - all 128 active Pre-Standard rows and direct Pre-Standard MP4 paths
9
  - persistent record identity and cross-tier uniqueness
10
- - exact Hub Xet file IDs and stored byte sizes
11
- - container-header technical metadata for every active published MP4
12
- - repository membership, filename rules, field types, numeric ranges, and
13
- stored-orientation consistency
 
 
14
 
15
  One 6,587,685,497-byte provenance object is promoted to the canonical root,
16
  and the distinct 496,296,535-byte object previously occupying its corrected
@@ -47,23 +50,55 @@ batch retains literal `Rec01` through `Rec03` sequence suffixes and documents a
47
  creator-confirmed Rec03 change from Pelikan black to unmarked, unknown-brand
48
  black ink at approximately `00:04:59`.
49
 
 
 
 
 
 
 
 
 
 
 
50
  ## Result
51
 
52
- **PASS — zero structural validation errors**
53
 
54
  | Check | Result |
55
  | --- | ---: |
56
- | Active indexed rows | 491 |
57
- | Canonical Standard rows | 363 |
58
  | Pre-Standard rows | 128 |
59
  | Metadata columns per index | 29 |
60
- | Unique persistent `record_id` values | 491 |
61
- | Unique nonblank content hashes | 491 |
62
- | Complete encoded-video metadata | 491/491 |
63
- | Canonical repository paths matched | 363/363 |
64
- | Pre-Standard repository paths matched | 128/128 |
65
  | Stored-orientation conflicts | 0 |
66
- | Duplicate active content hashes | 0 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
  Both Hub builder configurations explicitly declare the same 29 features. This
69
  prevents per-CSV inference from representing an integer-only canonical
@@ -72,13 +107,13 @@ fractional rates as `float64` in the Pre-Standard configuration.
72
 
73
  ## Audited statistics
74
 
75
- - Total indexed playback duration: 52.647 hours
76
- - Canonical playback duration: 43.052 hours
77
  - Pre-Standard playback duration: 9.596 hours
78
- - Median active-record playback duration: 337.325 seconds
79
- - Total indexed video size: 2.003 TB decimal
80
- - Stored orientation: 479 portrait, 12 landscape
81
- - Audio streams: 485 present, 6 absent
82
  - Unknown finish dates: 9
83
  - Unknown finish times: 62
84
 
@@ -109,7 +144,9 @@ fractional rates as `float64` in the Pre-Standard configuration.
109
  drawing-time sampling.
110
  8. The 2012–2016 layer has no public video payload at this snapshot.
111
  9. Separate Hub configurations prevent tier mixing, but no leakage-safe
112
- train/validation/test partition has been defined.
 
 
113
 
114
  ## Reproduction
115
 
@@ -124,12 +161,22 @@ For the strongest repository-inventory check, first augment the pinned Hub API
124
  JSON with the Xet file IDs returned by the same revision's resolve headers:
125
 
126
  ```bash
 
 
 
 
127
  python tools/capture_hub_inventory.py \
128
  --repo-json repo_api_blobs.json \
129
- --revision "<revision-under-review>" \
 
130
  --output repo_inventory_xet.json
131
  ```
132
 
 
 
 
 
 
133
  Then validate paths, Xet identities, and exact byte sizes together:
134
 
135
  ```bash
@@ -138,6 +185,27 @@ python tools/validate_metadata.py metadata.csv \
138
  --repo-inventory-json repo_inventory_xet.json
139
  ```
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  A plain JSON list of repository paths is also accepted through the legacy
142
  `--repo-files-json` spelling, but that checks membership only; it cannot
143
  independently verify hashes or byte sizes.
 
2
 
3
  ## Scope
4
 
5
+ The current post-v0.3 active-construction candidate validates locally and
6
+ against an immutable pull-request revision:
7
 
8
+ - all 385 canonical Standard rows and candidate direct Standard MP4 paths
9
  - all 128 active Pre-Standard rows and direct Pre-Standard MP4 paths
10
  - persistent record identity and cross-tier uniqueness
11
+ - locally audited byte sizes and technical metadata for the 22 new fragments
12
+ - container-header technical metadata for every active or candidate MP4
13
+ - candidate filename rules, field types, numeric ranges, and stored-orientation
14
+ consistency
15
+ - a 27-row, 15-field relationship sidecar covering 22 canonical fragments and
16
+ five noncanonical derivatives across five complete sequences
17
 
18
  One 6,587,685,497-byte provenance object is promoted to the canonical root,
19
  and the distinct 496,296,535-byte object previously occupying its corrected
 
50
  creator-confirmed Rec03 change from Pelikan black to unmarked, unknown-brand
51
  black ink at approximately `00:04:59`.
52
 
53
+ The August 24–27 fragment-sequence ingestion adds 22 creator-confirmed,
54
+ unchanged Framelapse source objects totaling 17,389,875,055 bytes and
55
+ 3,391.699091 seconds of encoded playback. They represent five complete
56
+ sequences and are stored as landscape video without audio. Five unchanged
57
+ InShot outputs remain nested noncanonical provenance derivatives and are
58
+ excluded from active row, byte, duration, orientation, and audio totals. The
59
+ relationship sidecar records all 27 media objects without changing the
60
+ 29-field video schema, `standard-2025-07-13`, or historical rows, and without
61
+ introducing a global `work_id`.
62
+
63
  ## Result
64
 
65
+ **LOCAL STRUCTURAL AND IMMUTABLE-PR PASS — zero validation errors**
66
 
67
  | Check | Result |
68
  | --- | ---: |
69
+ | Active indexed rows | 513 |
70
+ | Canonical Standard rows | 385 |
71
  | Pre-Standard rows | 128 |
72
  | Metadata columns per index | 29 |
73
+ | Unique persistent `record_id` values | 513 |
74
+ | Complete encoded-video metadata with remote Xet binding | 513/513 |
 
 
 
75
  | Stored-orientation conflicts | 0 |
76
+ | Duplicate local SHA-256 values among the 27 new media objects | 0 |
77
+ | New media objects remotely bound by SHA-256, size, and Xet identity | 27/27 |
78
+ | Fragment-sequence relationship rows | 27 |
79
+ | Relationship fields | 15 |
80
+ | Canonical fragments / noncanonical derivatives | 22 / 5 |
81
+ | Owner-confirmed complete sequences | 5 |
82
+ | Base-to-metadata-revision diff | 39 expected paths; 0 deletions |
83
+ | Inventory-binding regression tests | 5/5 |
84
+
85
+ **REMOTE PR INVENTORY AND RELATIONSHIP VALIDATION — PASS**
86
+
87
+ The sidecar's `source_hub_revision` pins the immutable metadata-bearing PR
88
+ commit `8a21015210c19936d3b18175ae3f4061ae1e5d8d`. At that revision, validation
89
+ confirmed 385/385 direct Standard paths, 128/128 direct Pre-Standard paths,
90
+ all 27 relationship paths, ordinary SHA-256 values, byte sizes, Xet identities,
91
+ and all 22 canonical `record_id` joins. The remote root `metadata.csv` receipt
92
+ matches the local 208,651-byte file at SHA-256
93
+ `0de0b9111effa84cd41b13f93e6627b9b94f33f648dd29ded5d4eb8a85c5bfad`.
94
+ The relationship validator reported 27 rows, 22 canonical fragments, five
95
+ noncanonical derivatives, five complete sets, and zero errors.
96
+
97
+ The media-only PR head `bb4160045cae21a71bf360278549398dc9d2a028`
98
+ contained exactly the 27 planned additions relative to the pinned base, with
99
+ zero deletions or changed existing paths. The metadata-bearing revision has
100
+ exactly the expected 39-path cumulative diff and zero deletions. Viewer
101
+ settlement and merge are separate gates and are not asserted by this PASS.
102
 
103
  Both Hub builder configurations explicitly declare the same 29 features. This
104
  prevents per-CSV inference from representing an integer-only canonical
 
107
 
108
  ## Audited statistics
109
 
110
+ - Total indexed playback duration: 53.590 hours
111
+ - Canonical playback duration: 43.994 hours
112
  - Pre-Standard playback duration: 9.596 hours
113
+ - Median active-record playback duration: 310.172 seconds
114
+ - Total indexed video size: 2,020,171,359,199 bytes (2.020 TB decimal)
115
+ - Stored orientation: 479 portrait, 34 landscape
116
+ - Audio streams: 485 present, 28 absent
117
  - Unknown finish dates: 9
118
  - Unknown finish times: 62
119
 
 
144
  drawing-time sampling.
145
  8. The 2012–2016 layer has no public video payload at this snapshot.
146
  9. Separate Hub configurations prevent tier mixing, but no leakage-safe
147
+ train/validation/test partition has been defined. The dated
148
+ `fragment_set_label` is not a global `work_id`, so no work-level split is
149
+ currently possible.
150
 
151
  ## Reproduction
152
 
 
161
  JSON with the Xet file IDs returned by the same revision's resolve headers:
162
 
163
  ```bash
164
+ curl --fail --location \
165
+ --output repo_api_blobs.json \
166
+ "https://huggingface.co/api/datasets/maxwellinked/time-lapse-artifacts/revision/<40-hex-commit>?blobs=true"
167
+
168
  python tools/capture_hub_inventory.py \
169
  --repo-json repo_api_blobs.json \
170
+ --repo-id maxwellinked/time-lapse-artifacts \
171
+ --revision "<40-hex-commit>" \
172
  --output repo_inventory_xet.json
173
  ```
174
 
175
+ The helper also fetches the small root `metadata.csv` at that immutable
176
+ revision and records its exact SHA-256, byte size, and `X-Repo-Commit` receipt
177
+ under `validationFiles`. The relationship validator rejects a local metadata
178
+ file whose bytes do not match that receipt.
179
+
180
  Then validate paths, Xet identities, and exact byte sizes together:
181
 
182
  ```bash
 
185
  --repo-inventory-json repo_inventory_xet.json
186
  ```
187
 
188
+ Validate the dated relationship sidecar against the immutable metadata-bearing
189
+ revision recorded in `source_hub_revision`. Confirm all 27 unique paths, Xet
190
+ identities, and sizes; all 22 canonical `record_id` joins; contiguous `RecNN`
191
+ positions; five complete ordered source sets; derivative source lists limited
192
+ to their own set; and exclusion of the five nested derivatives from both active
193
+ indexes and Viewer configurations.
194
+
195
+ ```bash
196
+ python tools/validate_fragment_relationships.py \
197
+ --relationships Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv \
198
+ --metadata metadata.csv \
199
+ --repo-inventory-json repo_inventory_xet.json
200
+ ```
201
+
202
+ The inventory-binding regression suite is self-contained and performs no Hub
203
+ writes:
204
+
205
+ ```bash
206
+ python tools/test_inventory_binding.py
207
+ ```
208
+
209
  A plain JSON list of repository paths is also accepted through the legacy
210
  `--repo-files-json` spelling, but that checks membership only; it cannot
211
  independently verify hashes or byte sizes.
VIEWER_MIGRATION.md CHANGED
@@ -10,13 +10,18 @@ machine-learning split.
10
 
11
  The release candidate defines:
12
 
13
- - `canonical/archive` — default; 360 direct Standard MP4 files
14
  - `pre_standard/archive` — 128 direct Pre-Standard MP4 files
15
 
16
  Both configurations use explicit direct-file globs. The canonical glob does
17
  not recurse into `Standard_Time_Lapses/Provenance/`, so supporting historical
18
  videos cannot enter the canonical Viewer accidentally.
19
 
 
 
 
 
 
20
  ```yaml
21
  configs:
22
  - config_name: canonical
@@ -34,22 +39,25 @@ configs:
34
  - Pre_Standard_Time_Lapses/*.mp4
35
  ```
36
 
37
- The two configurations share the same declared 29-field schema. Both tiers now
38
- have complete core encoded-video metadata, stable IDs, content hashes, and byte
39
- sizes. Historical descriptive and provenance uncertainty remains explicit in
40
- the Pre-Standard tier.
41
 
42
  ## Merge criteria
43
 
44
  Merge only after the pull-request preview confirms:
45
 
46
- 1. `canonical/archive` contains exactly 360 rows.
47
  2. `pre_standard/archive` contains exactly 128 rows.
48
- 3. No provenance video is present in either configuration.
 
49
  4. Every expected row contains its metadata.
50
  5. Stored dimensions and byte sizes load as integers.
51
  6. `has_audio` loads as a boolean.
52
  7. Generated Parquet artifacts succeed for both configurations.
 
 
53
 
54
  ## Split terminology
55
 
 
10
 
11
  The release candidate defines:
12
 
13
+ - `canonical/archive` — default; 385 direct Standard MP4 files
14
  - `pre_standard/archive` — 128 direct Pre-Standard MP4 files
15
 
16
  Both configurations use explicit direct-file globs. The canonical glob does
17
  not recurse into `Standard_Time_Lapses/Provenance/`, so supporting historical
18
  videos cannot enter the canonical Viewer accidentally.
19
 
20
+ The dated `Standard_Time_Lapses/Provenance/2026-08-27/` layer contains a
21
+ 27-row, 15-field relationship sidecar and five nested noncanonical InShot
22
+ derivatives. Neither the sidecar nor those derivative payloads define a Viewer
23
+ configuration or contribute to the 513 active rows.
24
+
25
  ```yaml
26
  configs:
27
  - config_name: canonical
 
39
  - Pre_Standard_Time_Lapses/*.mp4
40
  ```
41
 
42
+ The two configurations share the same declared 29-field schema. Before merge,
43
+ both tiers must have complete core encoded-video metadata, stable IDs, content
44
+ hashes, and byte sizes. Historical descriptive and provenance uncertainty
45
+ remains explicit in the Pre-Standard tier.
46
 
47
  ## Merge criteria
48
 
49
  Merge only after the pull-request preview confirms:
50
 
51
+ 1. `canonical/archive` contains exactly 385 rows.
52
  2. `pre_standard/archive` contains exactly 128 rows.
53
+ 3. No provenance video, including the five dated InShot derivatives, is
54
+ present in either configuration.
55
  4. Every expected row contains its metadata.
56
  5. Stored dimensions and byte sizes load as integers.
57
  6. `has_audio` loads as a boolean.
58
  7. Generated Parquet artifacts succeed for both configurations.
59
+ 8. The 27 relationship rows resolve against the exact immutable
60
+ `source_hub_revision`, while remaining outside both Viewer configurations.
61
 
62
  ## Split terminology
63
 
metadata.csv CHANGED
@@ -362,3 +362,25 @@ Standard_Time_Lapses/2026-08-19.1208.Pencil.Graphite.FountainPen.Ink.Paper.14x17
362
  Standard_Time_Lapses/2026-08-22.0124.BallpointPen.Ink.Paper.14x17.Rec01.mp4,tla-1b502d1a39e190f8,standard,true,standard-2025-07-13,2026-08-22,01:24,BallpointPen,Ink,Paper,14x17,1280.185999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,1d5dbe1b572f21330aefe212824d9784385b7444467724e0a1404ad16a392b5f,,direct_root_upload,,,manual_confirmation,,16768134326,"Creator-submitted first recording in a RecNN sequence on 14x17 paper. Visual spot-check confirms an early-stage start and continuous drawing progression. Rec02 continues the same work; Rec03 is expected. All 76,811 video frames and the audio stream decoded successfully. RecNN distinguishes recording sequence only."
363
  Standard_Time_Lapses/2026-08-22.1613.BallpointPen.Ink.Paper.14x17.Rec02.mp4,tla-3366e26036caab29,standard,true,standard-2025-07-13,2026-08-22,16:13,BallpointPen,Ink,Paper,14x17,1238.452999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,583d865e50d74ccaa881c2d15d8e3be0b5edd0810803e42f0e51475a89c674fc,,direct_root_upload,,,manual_confirmation,,16222497912,"Creator-submitted second recording in a RecNN sequence on 14x17 paper. Visual spot-check confirms direct continuity from Rec01 and further drawing progression. Rec03 is expected; a sequence endpoint is not claimed. All 74,307 video frames and the audio stream decoded successfully. RecNN distinguishes recording sequence only. Less than one minute of this session was accidentally not recorded."
364
  Standard_Time_Lapses/2026-08-23.1932.BallpointPen.Ink.Paper.14x17.Rec03.mp4,tla-793ae81230693d67,standard,true,standard-2025-07-13,2026-08-23,19:32,BallpointPen,Ink,Paper,14x17,1376.751999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,4a6c0605b1cdec7dc02f190534d1c6f34e0790172b30366ca0d9584c134ba75b,,direct_root_upload,,,manual_confirmation,,18032164087,"Creator-submitted third recording in a RecNN sequence on 14x17 paper. Visual review confirms direct continuity from Rec02 and continued drawing progression. The creator-confirmed ink transition occurs at approximately 00:04:59: the standard Pelikan 337 black refill is used before visible refill handling, and an unmarked, unknown-brand black refill is used afterward. All 82,605 video frames and the audio stream decoded successfully. Combined-stream FFmpeg validation produced one end-of-stream non-monotonic DTS warning from the null output; source packet and decoded-frame timestamps at the tail remained strictly increasing. RecNN distinguishes recording sequence only; no endpoint is inferred from the suffix."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  Standard_Time_Lapses/2026-08-22.0124.BallpointPen.Ink.Paper.14x17.Rec01.mp4,tla-1b502d1a39e190f8,standard,true,standard-2025-07-13,2026-08-22,01:24,BallpointPen,Ink,Paper,14x17,1280.185999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,1d5dbe1b572f21330aefe212824d9784385b7444467724e0a1404ad16a392b5f,,direct_root_upload,,,manual_confirmation,,16768134326,"Creator-submitted first recording in a RecNN sequence on 14x17 paper. Visual spot-check confirms an early-stage start and continuous drawing progression. Rec02 continues the same work; Rec03 is expected. All 76,811 video frames and the audio stream decoded successfully. RecNN distinguishes recording sequence only."
363
  Standard_Time_Lapses/2026-08-22.1613.BallpointPen.Ink.Paper.14x17.Rec02.mp4,tla-3366e26036caab29,standard,true,standard-2025-07-13,2026-08-22,16:13,BallpointPen,Ink,Paper,14x17,1238.452999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,583d865e50d74ccaa881c2d15d8e3be0b5edd0810803e42f0e51475a89c674fc,,direct_root_upload,,,manual_confirmation,,16222497912,"Creator-submitted second recording in a RecNN sequence on 14x17 paper. Visual spot-check confirms direct continuity from Rec01 and further drawing progression. Rec03 is expected; a sequence endpoint is not claimed. All 74,307 video frames and the audio stream decoded successfully. RecNN distinguishes recording sequence only. Less than one minute of this session was accidentally not recorded."
364
  Standard_Time_Lapses/2026-08-23.1932.BallpointPen.Ink.Paper.14x17.Rec03.mp4,tla-793ae81230693d67,standard,true,standard-2025-07-13,2026-08-23,19:32,BallpointPen,Ink,Paper,14x17,1376.751999,2160,3840,portrait,60.0,h264,yuv420p,mp4,True,4a6c0605b1cdec7dc02f190534d1c6f34e0790172b30366ca0d9584c134ba75b,,direct_root_upload,,,manual_confirmation,,18032164087,"Creator-submitted third recording in a RecNN sequence on 14x17 paper. Visual review confirms direct continuity from Rec02 and continued drawing progression. The creator-confirmed ink transition occurs at approximately 00:04:59: the standard Pelikan 337 black refill is used before visible refill handling, and an unmarked, unknown-brand black refill is used afterward. All 82,605 video frames and the audio stream decoded successfully. Combined-stream FFmpeg validation produced one end-of-stream non-monotonic DTS warning from the null output; source packet and decoded-frame timestamps at the tail remained strictly increasing. RecNN distinguishes recording sequence only; no endpoint is inferred from the suffix."
365
+ Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec01.mp4,tla-46790887b96058b1,standard,true,standard-2025-07-13,2026-08-24,01:57,BallpointPen,Ink,Paper,9x12,289.8304,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,9e03ad7118d219f39dbb0d3984e19138fba339b3c5e641c4e80e8853ddad0032,VID_20260823_233143.mp4,direct_root_upload,,,manual_confirmation,,1477139910,"Creator-confirmed untouched Framelapse source fragment 1 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260823_233143.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 8,695 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
366
+ Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4,tla-ebbce867454d61ea,standard,true,standard-2025-07-13,2026-08-24,01:57,BallpointPen,Ink,Paper,9x12,186.164789,3840,2160,landscape,30.000303,hevc,yuvj420p,mp4,False,7a865fbd9b04da1f0095f8252a1156948c0041335d6d89a977ee1d4eac3db6e5,VID_20260824_013639.mp4,direct_root_upload,,,manual_confirmation,,949451606,"Creator-confirmed untouched Framelapse source fragment 2 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260824_013639.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,585 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
367
+ Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4,tla-e31f5059a75da52c,standard,true,standard-2025-07-13,2026-08-24,06:38,BallpointPen,Ink,Paper,12x9,172.7316,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,c5dae55bd92f2b2e4d16ca7592d549079f01dbb4cf7e0a0896421ed977f4ae90,VID_20260824_044026.mp4,direct_root_upload,,,manual_confirmation,,880728360,"Creator-confirmed untouched Framelapse source fragment 1 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260824_044026.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,182 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
368
+ Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4,tla-e6314ca067353edc,standard,true,standard-2025-07-13,2026-08-24,06:38,BallpointPen,Ink,Paper,12x9,174.798256,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,3627316fdfb476685660199e6ee62cc14ca8f8a91d15608cfed669d678f10484,VID_20260824_061839.mp4,direct_root_upload,,,manual_confirmation,,891207279,"Creator-confirmed untouched Framelapse source fragment 2 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260824_061839.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,244 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
369
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4,tla-2b3cc71f11ea0151,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,86.8991,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,8c4e0fc28f7d68ca50b5027dc1a8576643e07b2ff68809409afb14ec48974854,VID_20260824_074143.mp4,direct_root_upload,,,manual_confirmation,,535577333,"Creator-confirmed untouched Framelapse source fragment 1 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260824_074143.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 2,607 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
370
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4,tla-3a4ed6625d6aae32,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,185.8648,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,d827e2e658d4734fa6e706de70f6e9cd14960d73574edafee94f3730cadbc6f1,VID_20260824_090248.mp4,direct_root_upload,,,manual_confirmation,,946694929,"Creator-confirmed untouched Framelapse source fragment 2 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260824_090248.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,576 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
371
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4,tla-08603b7d034d579a,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,314.3635,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,bc72f282fd2b50ace4d3e194680490ec3fbac195e8ffbda40e817baab10ab58b,VID_20260825_145801.mp4,direct_root_upload,,,manual_confirmation,,1603681390,"Creator-confirmed untouched Framelapse source fragment 3 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260825_145801.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 9,431 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
372
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4,tla-d743accc0cc418b4,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,61.699378,3840,2160,landscape,30.000297,hevc,yuvj420p,mp4,False,fd78e118f24269ff7a879c8e2e40cbc5b9a2c0c2f111e0d19abea877648fce6d,VID_20260825_160133.mp4,direct_root_upload,,,manual_confirmation,,315155575,"Creator-confirmed untouched Framelapse source fragment 4 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260825_160133.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 1,851 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
373
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4,tla-dab77d429267838b,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,140.5319,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,3da1e9d6856b7b7f248d1275a061f0e1c4cf48439cc2a4483415dcf5e9b0e4cb,VID_20260825_162129.mp4,direct_root_upload,,,manual_confirmation,,716336962,"Creator-confirmed untouched Framelapse source fragment 5 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260825_162129.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 4,216 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
374
+ Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4,tla-d611b60118251c73,standard,true,standard-2025-07-13,2026-08-25,19:41,BallpointPen,Ink,Paper,9x12,248.0975,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,3a9657c92c4e5d8317fc57a61a311480c097576cba12bd0007cceffddd129366,VID_20260825_191231.mp4,direct_root_upload,,,manual_confirmation,,1265415074,"Creator-confirmed untouched Framelapse source fragment 6 of 6 in an owner-confirmed complete drawing sequence. Original filename: VID_20260825_191231.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 7,443 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
375
+ Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4,tla-bbb65ede9e37e03c,standard,true,standard-2025-07-13,2026-08-26,12:29,BallpointPen,Ink,Paper,9x12,193.8314,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,cd97f7221cb09dd35460321fae78563a879e6659b92061cab0dc4be9ab4e38b8,VID_20260826_113641.mp4,direct_root_upload,,,manual_confirmation,,987970571,"Creator-confirmed untouched Framelapse source fragment 1 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_113641.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,815 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
376
+ Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4,tla-3adf012f9f23d1d4,standard,true,standard-2025-07-13,2026-08-26,12:29,BallpointPen,Ink,Paper,9x12,58.3994,3840,2160,landscape,30.000308,hevc,yuvj420p,mp4,False,a3f7b26ce81b790c6d7b5b2252d68e96ba58e958e415429bc659d42d809fd84b,VID_20260826_122231.mp4,direct_root_upload,,,manual_confirmation,,297678377,"Creator-confirmed untouched Framelapse source fragment 2 of 2 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_122231.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 1,752 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
377
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4,tla-db8e5247b8ffbfcd,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,73.199267,3840,2160,landscape,30.000301,hevc,yuvj420p,mp4,False,bbd95099782667a1edce6dff3a7260a9f9a892e9db680a61bba8daa504271e5f,VID_20260826_124754.mp4,direct_root_upload,,,manual_confirmation,,376030826,"Creator-confirmed untouched Framelapse source fragment 1 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_124754.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 2,196 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
378
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4,tla-f4659f0da42cf8e6,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,89.4324,3840,2160,landscape,30.000298,hevc,yuvj420p,mp4,False,d85c1b1bed94be6b2ce75661733b47e4ce6fc385cd63a14edc3c64ca4d165750,VID_20260826_130112.mp4,direct_root_upload,,,manual_confirmation,,455422073,"Creator-confirmed untouched Framelapse source fragment 2 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_130112.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 2,683 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
379
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4,tla-d985c298e56b626b,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,94.699056,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,1c021b34fe0f0a447828444cac4e827e04c8643d59cd207f11bc34103356359a,VID_20260826_135332.mp4,direct_root_upload,,,manual_confirmation,,482916549,"Creator-confirmed untouched Framelapse source fragment 3 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_135332.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 2,841 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
380
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4,tla-8d4e89f78b6cfb9d,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,131.532,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,36369030b39a1f229b9374c556b04e72c01110ccde38e24df3f19cf13dfa31bf,VID_20260826_152231.mp4,direct_root_upload,,,manual_confirmation,,671007948,"Creator-confirmed untouched Framelapse source fragment 4 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260826_152231.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 3,946 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
381
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4,tla-06b42c49789802b4,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,120.0321,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,bf912604ec65aeaaa2f374c9184b694437bb4187e6416893ce2c75bde7c51b62,VID_20260827_044715.mp4,direct_root_upload,,,manual_confirmation,,611828108,"Creator-confirmed untouched Framelapse source fragment 5 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_044715.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 3,601 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
382
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4,tla-10c744cb86d89256,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,188.5981,3840,2160,landscape,30.0003,hevc,yuvj420p,mp4,False,1d8b048951088fed34d6b805764aa7314d83ba0d4f5a18a8574b7f802c4253c6,VID_20260827_053657.mp4,direct_root_upload,,,manual_confirmation,,961633726,"Creator-confirmed untouched Framelapse source fragment 6 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_053657.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 5,658 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
383
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4,tla-56d81a0cc1a81233,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,269.5306,3840,2160,landscape,30.000301,hevc,yuvj420p,mp4,False,1fda631fc1f95434ed82bcee298d11973692f4f99ce48286966ee6632bf92d66,VID_20260827_063456.mp4,direct_root_upload,,,manual_confirmation,,1374513851,"Creator-confirmed untouched Framelapse source fragment 7 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_063456.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 8,086 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
384
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4,tla-dfeb6702936333a5,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,135.931978,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,e048c6b2cd89bf9646ee2dc2a3d169e8e8294f02589a037eebea0c1b216da4ca,VID_20260827_073057.mp4,direct_root_upload,,,manual_confirmation,,693672127,"Creator-confirmed untouched Framelapse source fragment 8 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_073057.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 4,078 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
385
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4,tla-3e01cce98d9d3ff3,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,111.9322,3840,2160,landscape,30.000301,hevc,yuvj420p,mp4,False,0e37c7c81b3faf912278effb85cb0f90fcb9005b49a8550b53d2ccf7474c47be,VID_20260827_080100.mp4,direct_root_upload,,,manual_confirmation,,571159447,"Creator-confirmed untouched Framelapse source fragment 9 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_080100.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 3,358 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
386
+ Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4,tla-e1c799958f3cf010,standard,true,standard-2025-07-13,2026-08-27,08:56,BallpointPen,Ink,Paper,9x12,63.599367,3840,2160,landscape,30.000299,hevc,yuvj420p,mp4,False,5e61e7002af524f3b999e9144248bdee65818f4dc0342c23d4cf3d7203e1c018,VID_20260827_084919.mp4,direct_root_upload,,,manual_confirmation,,324653034,"Creator-confirmed untouched Framelapse source fragment 10 of 10 in an owner-confirmed complete drawing sequence. Original filename: VID_20260827_084919.mp4. Local SHA-256 matched the independent transfer baseline before upload. Complete packet-stream demux and sampled start/middle/end decoding passed on 2026-08-27; the container reports 1,908 video frames. Stored as 3840x2160 landscape HEVC with -90-degree display rotation. RecNN records sequence only."
tools/capture_hub_inventory.py CHANGED
@@ -1,16 +1,20 @@
1
  #!/usr/bin/env python3
2
- """Augment a pinned Hub repository inventory with Xet file identities.
3
 
4
  The ordinary Hub repository response contains file paths, sizes, and
5
  LFS-compatible SHA-256 values. A non-following request to each resolve URL also
6
  returns the Xet file ID used by this dataset's ``hub_xet_hash`` field. Only
7
- response headers are requested; file payloads are not intentionally fetched.
 
 
8
  """
9
 
10
  from __future__ import annotations
11
 
12
  import argparse
 
13
  import json
 
14
  import time
15
  from concurrent.futures import ThreadPoolExecutor, as_completed
16
  from pathlib import Path
@@ -24,6 +28,25 @@ class NoRedirect(HTTPRedirectHandler):
24
  return None
25
 
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  def clean_etag(value: str | None) -> str:
28
  return (value or "").strip().strip('"')
29
 
@@ -66,6 +89,88 @@ def read_identity(url: str, timeout: int, retries: int) -> dict[str, object]:
66
  raise RuntimeError(str(last_error or "unable to read resolve headers"))
67
 
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  def main() -> None:
70
  parser = argparse.ArgumentParser()
71
  parser.add_argument("--repo-json", type=Path, required=True)
@@ -76,12 +181,35 @@ def main() -> None:
76
  parser.add_argument("--workers", type=int, default=12)
77
  parser.add_argument("--timeout", type=int, default=30)
78
  parser.add_argument("--retries", type=int, default=2)
 
 
 
 
 
 
 
 
 
 
 
79
  args = parser.parse_args()
80
 
81
  inventory = json.loads(args.repo_json.read_text(encoding="utf-8"))
82
  siblings = inventory.get("siblings") if isinstance(inventory, dict) else None
83
  if not isinstance(siblings, list):
84
  raise SystemExit("repository JSON must contain a siblings list")
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  targets: list[tuple[dict[str, object], str, str]] = []
87
  for item in siblings:
@@ -128,11 +256,59 @@ def main() -> None:
128
  print(json.dumps({"failures": failures}, indent=2))
129
  raise SystemExit(1)
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  args.output.parent.mkdir(parents=True, exist_ok=True)
132
  args.output.write_text(
133
  json.dumps(inventory, indent=2, sort_keys=True) + "\n", encoding="utf-8"
134
  )
135
- print(json.dumps({"resolved_files": len(targets), "output": str(args.output)}, indent=2))
 
 
 
 
 
 
 
 
 
136
 
137
 
138
  if __name__ == "__main__":
 
1
  #!/usr/bin/env python3
2
+ """Augment a pinned Hub inventory with Xet and validation-file identities.
3
 
4
  The ordinary Hub repository response contains file paths, sizes, and
5
  LFS-compatible SHA-256 values. A non-following request to each resolve URL also
6
  returns the Xet file ID used by this dataset's ``hub_xet_hash`` field. Only
7
+ response headers are requested for media payloads. Small validation files such
8
+ as ``metadata.csv`` are fetched with a byte cap and recorded under
9
+ ``validationFiles`` so downstream joins can be bound to exact revision bytes.
10
  """
11
 
12
  from __future__ import annotations
13
 
14
  import argparse
15
+ import hashlib
16
  import json
17
+ import re
18
  import time
19
  from concurrent.futures import ThreadPoolExecutor, as_completed
20
  from pathlib import Path
 
28
  return None
29
 
30
 
31
+ class CommitTrackingRedirect(HTTPRedirectHandler):
32
+ """Follow redirects while retaining revision headers from each response."""
33
+
34
+ def __init__(self) -> None:
35
+ super().__init__()
36
+ self.repo_commits: list[str] = []
37
+
38
+ def redirect_request(self, req, fp, code, msg, headers, newurl): # noqa: ANN001
39
+ repo_commit = headers.get("X-Repo-Commit")
40
+ if repo_commit:
41
+ self.repo_commits.append(repo_commit)
42
+ return super().redirect_request(req, fp, code, msg, headers, newurl)
43
+
44
+
45
+ REVISION_RE = re.compile(r"^[0-9a-f]{40}$")
46
+ READ_CHUNK_BYTES = 1024 * 1024
47
+ DEFAULT_VALIDATION_FILE_MAX_BYTES = 64 * 1024 * 1024
48
+
49
+
50
  def clean_etag(value: str | None) -> str:
51
  return (value or "").strip().strip('"')
52
 
 
89
  raise RuntimeError(str(last_error or "unable to read resolve headers"))
90
 
91
 
92
+ def read_validation_file(
93
+ url: str,
94
+ expected_revision: str,
95
+ timeout: int,
96
+ retries: int,
97
+ max_bytes: int,
98
+ ) -> dict[str, object]:
99
+ """Hash one small exact-revision repository file without content decoding."""
100
+
101
+ if max_bytes <= 0:
102
+ raise ValueError("validation-file byte cap must be positive")
103
+
104
+ last_error: Exception | None = None
105
+ for attempt in range(retries + 1):
106
+ redirect_handler = CommitTrackingRedirect()
107
+ opener = build_opener(redirect_handler)
108
+ request = Request(
109
+ url,
110
+ method="GET",
111
+ headers={"Accept-Encoding": "identity"},
112
+ )
113
+ try:
114
+ with opener.open(request, timeout=timeout) as response:
115
+ headers = response.headers
116
+ content_encoding = (headers.get("Content-Encoding") or "identity").lower()
117
+ if content_encoding != "identity":
118
+ raise ValueError(
119
+ f"validation-file response used content encoding {content_encoding!r}"
120
+ )
121
+
122
+ content_length_text = headers.get("Content-Length")
123
+ if content_length_text is None:
124
+ raise ValueError("validation-file response omitted Content-Length")
125
+ try:
126
+ content_length = int(content_length_text)
127
+ except ValueError as exc:
128
+ raise ValueError("validation-file Content-Length is not an integer") from exc
129
+ if content_length < 0:
130
+ raise ValueError("validation-file Content-Length is negative")
131
+ if content_length > max_bytes:
132
+ raise ValueError(
133
+ f"validation file exceeds {max_bytes}-byte safety cap"
134
+ )
135
+
136
+ observed_commits = list(redirect_handler.repo_commits)
137
+ final_commit = headers.get("X-Repo-Commit")
138
+ if final_commit:
139
+ observed_commits.append(final_commit)
140
+ if not observed_commits:
141
+ raise ValueError("validation-file response omitted X-Repo-Commit")
142
+ if any(commit != expected_revision for commit in observed_commits):
143
+ raise ValueError(
144
+ "validation-file response came from a different revision"
145
+ )
146
+
147
+ digest = hashlib.sha256()
148
+ size = 0
149
+ while chunk := response.read(READ_CHUNK_BYTES):
150
+ size += len(chunk)
151
+ if size > max_bytes:
152
+ raise ValueError(
153
+ f"validation file exceeds {max_bytes}-byte safety cap"
154
+ )
155
+ digest.update(chunk)
156
+ if size != content_length:
157
+ raise ValueError(
158
+ "validation-file byte count differs from Content-Length"
159
+ )
160
+ return {
161
+ "sha256": digest.hexdigest(),
162
+ "size": size,
163
+ "repoCommit": expected_revision,
164
+ }
165
+ except (HTTPError, URLError, OSError, ValueError) as exc:
166
+ last_error = exc
167
+
168
+ if attempt < retries:
169
+ time.sleep(0.5 * (attempt + 1))
170
+
171
+ raise RuntimeError(str(last_error or "unable to read validation file"))
172
+
173
+
174
  def main() -> None:
175
  parser = argparse.ArgumentParser()
176
  parser.add_argument("--repo-json", type=Path, required=True)
 
181
  parser.add_argument("--workers", type=int, default=12)
182
  parser.add_argument("--timeout", type=int, default=30)
183
  parser.add_argument("--retries", type=int, default=2)
184
+ parser.add_argument(
185
+ "--validation-file",
186
+ action="append",
187
+ dest="validation_files",
188
+ help="small repository file to bind by exact bytes (default: metadata.csv)",
189
+ )
190
+ parser.add_argument(
191
+ "--validation-file-max-bytes",
192
+ type=int,
193
+ default=DEFAULT_VALIDATION_FILE_MAX_BYTES,
194
+ )
195
  args = parser.parse_args()
196
 
197
  inventory = json.loads(args.repo_json.read_text(encoding="utf-8"))
198
  siblings = inventory.get("siblings") if isinstance(inventory, dict) else None
199
  if not isinstance(siblings, list):
200
  raise SystemExit("repository JSON must contain a siblings list")
201
+ if not REVISION_RE.fullmatch(args.revision):
202
+ raise SystemExit("revision must be an immutable 40-hex commit")
203
+ if inventory.get("sha") != args.revision:
204
+ raise SystemExit("repository JSON commit differs from --revision")
205
+ if args.validation_file_max_bytes <= 0:
206
+ raise SystemExit("--validation-file-max-bytes must be positive")
207
+
208
+ siblings_by_path = {
209
+ item["rfilename"]: item
210
+ for item in siblings
211
+ if isinstance(item, dict) and isinstance(item.get("rfilename"), str)
212
+ }
213
 
214
  targets: list[tuple[dict[str, object], str, str]] = []
215
  for item in siblings:
 
256
  print(json.dumps({"failures": failures}, indent=2))
257
  raise SystemExit(1)
258
 
259
+ validation_paths = args.validation_files or ["metadata.csv"]
260
+ if len(validation_paths) != len(set(validation_paths)):
261
+ raise SystemExit("validation-file paths must be unique")
262
+ validation_files: dict[str, dict[str, object]] = {}
263
+ for path in validation_paths:
264
+ if (
265
+ not path
266
+ or path.startswith("/")
267
+ or "\\" in path
268
+ or any(part in {"", ".", ".."} for part in path.split("/"))
269
+ ):
270
+ raise SystemExit(f"invalid validation-file repository path: {path!r}")
271
+ sibling = siblings_by_path.get(path)
272
+ if sibling is None:
273
+ raise SystemExit(f"validation file is absent from repository JSON: {path}")
274
+ encoded_path = quote(path, safe="/")
275
+ url = (
276
+ f"https://huggingface.co/datasets/{args.repo_id}/"
277
+ f"resolve/{args.revision}/{encoded_path}"
278
+ )
279
+ try:
280
+ receipt = read_validation_file(
281
+ url,
282
+ args.revision,
283
+ args.timeout,
284
+ args.retries,
285
+ args.validation_file_max_bytes,
286
+ )
287
+ except Exception as exc: # noqa: BLE001
288
+ raise SystemExit(f"unable to bind validation file {path}: {exc}") from exc
289
+ sibling_size = sibling.get("size")
290
+ if sibling_size is not None and int(sibling_size) != receipt["size"]:
291
+ raise SystemExit(
292
+ f"validation file size differs from repository JSON: {path}"
293
+ )
294
+ validation_files[path] = receipt
295
+
296
+ inventory["validationFiles"] = validation_files
297
+
298
  args.output.parent.mkdir(parents=True, exist_ok=True)
299
  args.output.write_text(
300
  json.dumps(inventory, indent=2, sort_keys=True) + "\n", encoding="utf-8"
301
  )
302
+ print(
303
+ json.dumps(
304
+ {
305
+ "resolved_files": len(targets),
306
+ "validation_files": sorted(validation_files),
307
+ "output": str(args.output),
308
+ },
309
+ indent=2,
310
+ )
311
+ )
312
 
313
 
314
  if __name__ == "__main__":
tools/test_inventory_binding.py ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Self-contained tests for exact-revision validation-file binding."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import csv
7
+ import hashlib
8
+ import importlib.util
9
+ import json
10
+ import subprocess
11
+ import sys
12
+ import tempfile
13
+ import threading
14
+ import unittest
15
+ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
16
+ from pathlib import Path
17
+ from types import ModuleType
18
+
19
+
20
+ TOOLS = Path(__file__).resolve().parent
21
+ REVISION = "a" * 40
22
+ OTHER_REVISION = "b" * 40
23
+ PAYLOAD = b"file_name,record_id\nexample.mp4,tla-0123456789abcdef\n"
24
+
25
+
26
+ def load_module(name: str, path: Path) -> ModuleType:
27
+ spec = importlib.util.spec_from_file_location(name, path)
28
+ if spec is None or spec.loader is None:
29
+ raise RuntimeError(f"unable to load {path}")
30
+ module = importlib.util.module_from_spec(spec)
31
+ spec.loader.exec_module(module)
32
+ return module
33
+
34
+
35
+ capture = load_module("capture_hub_inventory", TOOLS / "capture_hub_inventory.py")
36
+ relationships = load_module(
37
+ "validate_fragment_relationships",
38
+ TOOLS / "validate_fragment_relationships.py",
39
+ )
40
+
41
+
42
+ class FixtureHandler(BaseHTTPRequestHandler):
43
+ protocol_version = "HTTP/1.1"
44
+
45
+ def do_GET(self) -> None: # noqa: N802
46
+ if self.headers.get("Accept-Encoding") != "identity":
47
+ self.send_error(400, "identity content encoding required")
48
+ return
49
+ if self.path == "/resolve":
50
+ self.send_response(302)
51
+ self.send_header("Location", f"http://127.0.0.1:{self.server.server_port}/payload")
52
+ self.send_header("X-Repo-Commit", REVISION)
53
+ self.send_header("Content-Length", "0")
54
+ self.end_headers()
55
+ return
56
+ if self.path == "/wrong-commit":
57
+ self.send_response(200)
58
+ self.send_header("X-Repo-Commit", OTHER_REVISION)
59
+ self.send_header("Content-Length", str(len(PAYLOAD)))
60
+ self.end_headers()
61
+ self.wfile.write(PAYLOAD)
62
+ return
63
+ if self.path == "/payload":
64
+ self.send_response(200)
65
+ self.send_header("Content-Encoding", "identity")
66
+ self.send_header("Content-Length", str(len(PAYLOAD)))
67
+ self.end_headers()
68
+ self.wfile.write(PAYLOAD)
69
+ return
70
+ self.send_error(404)
71
+
72
+ def log_message(self, format: str, *args: object) -> None:
73
+ del format, args
74
+
75
+
76
+ class InventoryBindingTests(unittest.TestCase):
77
+ @classmethod
78
+ def setUpClass(cls) -> None:
79
+ cls.server = ThreadingHTTPServer(("127.0.0.1", 0), FixtureHandler)
80
+ cls.thread = threading.Thread(target=cls.server.serve_forever, daemon=True)
81
+ cls.thread.start()
82
+ cls.base_url = f"http://127.0.0.1:{cls.server.server_port}"
83
+
84
+ @classmethod
85
+ def tearDownClass(cls) -> None:
86
+ cls.server.shutdown()
87
+ cls.server.server_close()
88
+ cls.thread.join(timeout=5)
89
+
90
+ def test_capture_records_exact_byte_receipt_across_redirect(self) -> None:
91
+ receipt = capture.read_validation_file(
92
+ f"{self.base_url}/resolve",
93
+ REVISION,
94
+ timeout=5,
95
+ retries=0,
96
+ max_bytes=1024,
97
+ )
98
+ self.assertEqual(set(receipt), {"sha256", "size", "repoCommit"})
99
+ self.assertEqual(receipt["size"], len(PAYLOAD))
100
+ self.assertEqual(receipt["repoCommit"], REVISION)
101
+
102
+ def test_capture_rejects_wrong_commit_and_oversize_body(self) -> None:
103
+ with self.assertRaises(RuntimeError):
104
+ capture.read_validation_file(
105
+ f"{self.base_url}/wrong-commit",
106
+ REVISION,
107
+ timeout=5,
108
+ retries=0,
109
+ max_bytes=1024,
110
+ )
111
+ with self.assertRaises(RuntimeError):
112
+ capture.read_validation_file(
113
+ f"{self.base_url}/resolve",
114
+ REVISION,
115
+ timeout=5,
116
+ retries=0,
117
+ max_bytes=len(PAYLOAD) - 1,
118
+ )
119
+
120
+ def test_validator_requires_matching_hash_size_and_commit(self) -> None:
121
+ receipt = capture.read_validation_file(
122
+ f"{self.base_url}/resolve",
123
+ REVISION,
124
+ timeout=5,
125
+ retries=0,
126
+ max_bytes=1024,
127
+ )
128
+ inventory = {"validationFiles": {"metadata.csv": receipt}}
129
+ with tempfile.TemporaryDirectory(prefix="tla-binding-test-") as temp_dir:
130
+ metadata = Path(temp_dir) / "metadata.csv"
131
+ metadata.write_bytes(PAYLOAD)
132
+ errors: list[str] = []
133
+ relationships.validate_pinned_metadata(
134
+ inventory,
135
+ metadata,
136
+ REVISION,
137
+ errors,
138
+ )
139
+ self.assertEqual(errors, [])
140
+
141
+ metadata.write_bytes(PAYLOAD + b"tampered")
142
+ errors = []
143
+ relationships.validate_pinned_metadata(
144
+ inventory,
145
+ metadata,
146
+ REVISION,
147
+ errors,
148
+ )
149
+ self.assertTrue(any("differs" in error for error in errors))
150
+
151
+ errors = []
152
+ relationships.validate_pinned_metadata(
153
+ inventory,
154
+ metadata,
155
+ OTHER_REVISION,
156
+ errors,
157
+ )
158
+ self.assertTrue(any("source_hub_revision" in error for error in errors))
159
+
160
+ def test_validator_requires_top_level_inventory_revision(self) -> None:
161
+ errors: list[str] = []
162
+ relationships.validate_inventory_revision(
163
+ {"sha": REVISION},
164
+ REVISION,
165
+ errors,
166
+ )
167
+ self.assertEqual(errors, [])
168
+ relationships.validate_inventory_revision(
169
+ {"sha": OTHER_REVISION},
170
+ REVISION,
171
+ errors,
172
+ )
173
+ self.assertTrue(any("inventory commit" in error for error in errors))
174
+
175
+ def test_full_relationship_validator_accepts_only_bound_metadata(self) -> None:
176
+ metadata_fields = ["file_name", "record_id", "hub_xet_hash"]
177
+ metadata_rows: list[dict[str, str]] = []
178
+ relationship_rows: list[dict[str, str]] = []
179
+ canonical_by_set: dict[str, list[str]] = {}
180
+ record_counter = 1
181
+ for group_index, cardinality in enumerate((2, 2, 2, 6, 10), start=1):
182
+ set_label = (
183
+ f"2026-08-{20 + group_index:02d}.000{group_index}."
184
+ "BallpointPen.Ink.Paper.9x12"
185
+ )
186
+ canonical_by_set[set_label] = []
187
+ for position in range(1, cardinality + 1):
188
+ record_id = f"tla-{record_counter:016x}"
189
+ record_counter += 1
190
+ file_path = (
191
+ f"Standard_Time_Lapses/{set_label}.Rec{position:02d}.mp4"
192
+ )
193
+ xet_hash = hashlib.sha256(
194
+ f"fixture-xet:{file_path}".encode("utf-8")
195
+ ).hexdigest()
196
+ metadata_rows.append(
197
+ {
198
+ "file_name": file_path,
199
+ "record_id": record_id,
200
+ "hub_xet_hash": xet_hash,
201
+ }
202
+ )
203
+ canonical_by_set[set_label].append(record_id)
204
+ relationship_rows.append(
205
+ {
206
+ "fragment_set_label": set_label,
207
+ "object_role": "canonical_fragment",
208
+ "record_id": record_id,
209
+ "file_path": file_path,
210
+ "sha256": hashlib.sha256(
211
+ f"fixture-sha:{file_path}".encode("utf-8")
212
+ ).hexdigest(),
213
+ "hub_xet_hash": xet_hash,
214
+ "size_bytes": str(1000 + record_counter),
215
+ "sequence_position": str(position),
216
+ "sequence_count": str(cardinality),
217
+ "sequence_completeness": "owner_confirmed_complete",
218
+ "source_record_ids": "",
219
+ "derivative_coverage": "",
220
+ "evidence_state": (
221
+ "owner-confirmed; boundary-frame-verified; "
222
+ "checksum-computed; media-probed; demux-verified; "
223
+ "sampled-decode-verified"
224
+ ),
225
+ "source_hub_revision": REVISION,
226
+ "notes": "",
227
+ }
228
+ )
229
+
230
+ set_labels = list(canonical_by_set)
231
+ derivative_specs = [
232
+ (set_labels[0], canonical_by_set[set_labels[0]], "complete_sequence"),
233
+ (set_labels[1], canonical_by_set[set_labels[1]], "complete_sequence"),
234
+ (set_labels[2], canonical_by_set[set_labels[2]][1:2], "partial_sequence"),
235
+ (set_labels[2], canonical_by_set[set_labels[2]][1:2], "partial_sequence"),
236
+ (set_labels[1], canonical_by_set[set_labels[1]], "complete_sequence"),
237
+ ]
238
+ for derivative_index, (set_label, source_ids, coverage) in enumerate(
239
+ derivative_specs,
240
+ start=1,
241
+ ):
242
+ file_path = (
243
+ "Standard_Time_Lapses/Provenance/2026-08-27/InShot/"
244
+ f"fixture-{derivative_index}.mp4"
245
+ )
246
+ relationship_rows.append(
247
+ {
248
+ "fragment_set_label": set_label,
249
+ "object_role": "noncanonical_inshot_derivative",
250
+ "record_id": "",
251
+ "file_path": file_path,
252
+ "sha256": hashlib.sha256(
253
+ f"fixture-sha:{file_path}".encode("utf-8")
254
+ ).hexdigest(),
255
+ "hub_xet_hash": hashlib.sha256(
256
+ f"fixture-xet:{file_path}".encode("utf-8")
257
+ ).hexdigest(),
258
+ "size_bytes": str(2000 + derivative_index),
259
+ "sequence_position": "",
260
+ "sequence_count": str(len(canonical_by_set[set_label])),
261
+ "sequence_completeness": "owner_confirmed_complete",
262
+ "source_record_ids": ";".join(source_ids),
263
+ "derivative_coverage": coverage,
264
+ "evidence_state": (
265
+ "sampled-frame-verified; duration-arithmetic-verified; "
266
+ "checksum-computed; media-probed; demux-verified; "
267
+ "sampled-decode-verified"
268
+ ),
269
+ "source_hub_revision": REVISION,
270
+ "notes": "",
271
+ }
272
+ )
273
+
274
+ self.assertEqual(len(metadata_rows), 22)
275
+ self.assertEqual(len(relationship_rows), 27)
276
+
277
+ with tempfile.TemporaryDirectory(prefix="tla-validator-test-") as temp_dir:
278
+ temp = Path(temp_dir)
279
+ metadata_path = temp / "metadata.csv"
280
+ relationships_path = temp / "relationships.csv"
281
+ inventory_path = temp / "inventory.json"
282
+ with metadata_path.open("w", encoding="utf-8", newline="") as handle:
283
+ writer = csv.DictWriter(
284
+ handle,
285
+ fieldnames=metadata_fields,
286
+ lineterminator="\n",
287
+ )
288
+ writer.writeheader()
289
+ writer.writerows(metadata_rows)
290
+ with relationships_path.open("w", encoding="utf-8", newline="") as handle:
291
+ writer = csv.DictWriter(
292
+ handle,
293
+ fieldnames=relationships.FIELDS,
294
+ lineterminator="\n",
295
+ )
296
+ writer.writeheader()
297
+ writer.writerows(relationship_rows)
298
+
299
+ metadata_bytes = metadata_path.read_bytes()
300
+ inventory = {
301
+ "sha": REVISION,
302
+ "siblings": [
303
+ {
304
+ "rfilename": row["file_path"],
305
+ "size": int(row["size_bytes"]),
306
+ "lfs": {
307
+ "size": int(row["size_bytes"]),
308
+ "sha256": row["sha256"],
309
+ },
310
+ "xetHash": row["hub_xet_hash"],
311
+ "repoCommit": REVISION,
312
+ }
313
+ for row in relationship_rows
314
+ ],
315
+ "validationFiles": {
316
+ "metadata.csv": {
317
+ "sha256": hashlib.sha256(metadata_bytes).hexdigest(),
318
+ "size": len(metadata_bytes),
319
+ "repoCommit": REVISION,
320
+ }
321
+ },
322
+ }
323
+ inventory_path.write_text(
324
+ json.dumps(inventory),
325
+ encoding="utf-8",
326
+ )
327
+
328
+ command = [
329
+ sys.executable,
330
+ str(TOOLS / "validate_fragment_relationships.py"),
331
+ "--relationships",
332
+ str(relationships_path),
333
+ "--metadata",
334
+ str(metadata_path),
335
+ "--repo-inventory-json",
336
+ str(inventory_path),
337
+ ]
338
+ completed = subprocess.run(
339
+ command,
340
+ check=False,
341
+ capture_output=True,
342
+ text=True,
343
+ encoding="utf-8",
344
+ )
345
+ self.assertEqual(completed.returncode, 0, completed.stdout + completed.stderr)
346
+
347
+ metadata_path.write_bytes(metadata_bytes + b"\n")
348
+ completed = subprocess.run(
349
+ command,
350
+ check=False,
351
+ capture_output=True,
352
+ text=True,
353
+ encoding="utf-8",
354
+ )
355
+ self.assertNotEqual(completed.returncode, 0)
356
+ self.assertIn("differs from the pinned repository", completed.stdout)
357
+
358
+
359
+ if __name__ == "__main__":
360
+ unittest.main()
tools/validate_fragment_relationships.py ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Validate a fragment relationship manifest against pinned metadata bytes."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import csv
8
+ import hashlib
9
+ import json
10
+ import re
11
+ from collections import defaultdict
12
+ from pathlib import Path
13
+
14
+
15
+ FIELDS = [
16
+ "fragment_set_label",
17
+ "object_role",
18
+ "record_id",
19
+ "file_path",
20
+ "sha256",
21
+ "hub_xet_hash",
22
+ "size_bytes",
23
+ "sequence_position",
24
+ "sequence_count",
25
+ "sequence_completeness",
26
+ "source_record_ids",
27
+ "derivative_coverage",
28
+ "evidence_state",
29
+ "source_hub_revision",
30
+ "notes",
31
+ ]
32
+ HASH_RE = re.compile(r"^[0-9a-f]{64}$")
33
+ REVISION_RE = re.compile(r"^[0-9a-f]{40}$")
34
+ RECORD_RE = re.compile(r"^tla-[0-9a-f]{16}$")
35
+ EVIDENCE_BY_ROLE = {
36
+ "canonical_fragment": {
37
+ "owner-confirmed",
38
+ "boundary-frame-verified",
39
+ "checksum-computed",
40
+ "media-probed",
41
+ "demux-verified",
42
+ "sampled-decode-verified",
43
+ },
44
+ "noncanonical_inshot_derivative": {
45
+ "sampled-frame-verified",
46
+ "duration-arithmetic-verified",
47
+ "checksum-computed",
48
+ "media-probed",
49
+ "demux-verified",
50
+ "sampled-decode-verified",
51
+ },
52
+ }
53
+
54
+
55
+ def read_csv(path: Path) -> tuple[list[str], list[dict[str, str]]]:
56
+ with path.open("r", encoding="utf-8-sig", newline="") as handle:
57
+ reader = csv.DictReader(handle)
58
+ if not reader.fieldnames:
59
+ raise ValueError(f"missing CSV header: {path}")
60
+ return list(reader.fieldnames), list(reader)
61
+
62
+
63
+ def validate_pinned_metadata(
64
+ inventory: dict[str, object],
65
+ metadata_path: Path,
66
+ declared_revision: str,
67
+ errors: list[str],
68
+ ) -> None:
69
+ """Bind the local metadata join to exact bytes captured at one Hub commit."""
70
+
71
+ validation_files = inventory.get("validationFiles")
72
+ if not isinstance(validation_files, dict):
73
+ errors.append("repository inventory lacks validationFiles receipts")
74
+ return
75
+ remote_metadata = validation_files.get("metadata.csv")
76
+ if not isinstance(remote_metadata, dict):
77
+ errors.append(
78
+ "repository inventory lacks validationFiles metadata.csv receipt"
79
+ )
80
+ return
81
+
82
+ remote_hash = remote_metadata.get("sha256")
83
+ remote_size = remote_metadata.get("size")
84
+ remote_commit = remote_metadata.get("repoCommit")
85
+ if not isinstance(remote_hash, str) or not HASH_RE.fullmatch(remote_hash):
86
+ errors.append("metadata.csv validation receipt has an invalid SHA-256")
87
+ if (
88
+ not isinstance(remote_size, int)
89
+ or isinstance(remote_size, bool)
90
+ or remote_size < 0
91
+ ):
92
+ errors.append("metadata.csv validation receipt has an invalid size")
93
+ if remote_commit != declared_revision:
94
+ errors.append(
95
+ "metadata.csv validation receipt differs from source_hub_revision"
96
+ )
97
+
98
+ metadata_bytes = metadata_path.read_bytes()
99
+ local_hash = hashlib.sha256(metadata_bytes).hexdigest()
100
+ if isinstance(remote_hash, str) and remote_hash != local_hash:
101
+ errors.append("local metadata.csv differs from the pinned repository bytes")
102
+ if isinstance(remote_size, int) and not isinstance(remote_size, bool):
103
+ if remote_size != len(metadata_bytes):
104
+ errors.append(
105
+ "local metadata.csv size differs from the pinned repository file"
106
+ )
107
+
108
+
109
+ def validate_inventory_revision(
110
+ inventory: dict[str, object],
111
+ declared_revision: str,
112
+ errors: list[str],
113
+ ) -> None:
114
+ if inventory.get("sha") != declared_revision:
115
+ errors.append("repository inventory commit differs from source_hub_revision")
116
+
117
+
118
+ def main() -> None:
119
+ parser = argparse.ArgumentParser()
120
+ parser.add_argument("--relationships", type=Path, required=True)
121
+ parser.add_argument("--metadata", type=Path, required=True)
122
+ parser.add_argument("--repo-inventory-json", type=Path)
123
+ args = parser.parse_args()
124
+
125
+ fields, rows = read_csv(args.relationships)
126
+ metadata_fields, metadata_rows = read_csv(args.metadata)
127
+ del metadata_fields
128
+ errors: list[str] = []
129
+ if fields != FIELDS:
130
+ errors.append(f"field contract differs: {fields}")
131
+ if len(rows) != 27:
132
+ errors.append(f"expected 27 rows, observed {len(rows)}")
133
+
134
+ metadata_by_id = {row["record_id"]: row for row in metadata_rows}
135
+ paths = [row.get("file_path", "") for row in rows]
136
+ hashes = [row.get("sha256", "") for row in rows]
137
+ xet_hashes = [row.get("hub_xet_hash", "") for row in rows]
138
+ for label, values in (
139
+ ("file_path", paths),
140
+ ("sha256", hashes),
141
+ ("hub_xet_hash", xet_hashes),
142
+ ):
143
+ if not all(values) or len(values) != len(set(values)):
144
+ errors.append(f"{label} values must be nonblank and unique")
145
+
146
+ revisions = {row.get("source_hub_revision", "") for row in rows}
147
+ if len(revisions) != 1 or not revisions or not REVISION_RE.fullmatch(next(iter(revisions))):
148
+ errors.append("source_hub_revision must be one shared immutable commit")
149
+
150
+ canonical_by_set: dict[str, list[dict[str, str]]] = defaultdict(list)
151
+ derivatives: list[dict[str, str]] = []
152
+ for index, row in enumerate(rows, start=2):
153
+ label = f"row {index} {row.get('file_path', '')}"
154
+ if not HASH_RE.fullmatch(row.get("sha256", "")):
155
+ errors.append(f"{label}: invalid ordinary SHA-256")
156
+ if not HASH_RE.fullmatch(row.get("hub_xet_hash", "")):
157
+ errors.append(f"{label}: invalid Xet identity")
158
+ try:
159
+ if int(row.get("size_bytes", "")) <= 0:
160
+ raise ValueError
161
+ except ValueError:
162
+ errors.append(f"{label}: invalid size_bytes")
163
+ if row.get("sequence_completeness") != "owner_confirmed_complete":
164
+ errors.append(f"{label}: unexpected sequence completeness")
165
+ evidence_text = row.get("evidence_state", "")
166
+ evidence_tokens = [token.strip() for token in evidence_text.split(";")]
167
+ if not evidence_text or any(not token for token in evidence_tokens):
168
+ errors.append(f"{label}: evidence_state is blank")
169
+ elif len(evidence_tokens) != len(set(evidence_tokens)):
170
+ errors.append(f"{label}: evidence_state contains duplicate values")
171
+
172
+ role = row.get("object_role")
173
+ expected_evidence = EVIDENCE_BY_ROLE.get(role)
174
+ if expected_evidence is not None and set(evidence_tokens) != expected_evidence:
175
+ errors.append(f"{label}: evidence_state differs from the reviewed role")
176
+ if role == "canonical_fragment":
177
+ record_id = row.get("record_id", "")
178
+ if not RECORD_RE.fullmatch(record_id):
179
+ errors.append(f"{label}: invalid canonical record_id")
180
+ metadata = metadata_by_id.get(record_id)
181
+ if not metadata or metadata.get("file_name") != row.get("file_path"):
182
+ errors.append(f"{label}: canonical record_id/path does not join to metadata")
183
+ if metadata and metadata.get("hub_xet_hash") != row.get("hub_xet_hash"):
184
+ errors.append(f"{label}: canonical Xet identity differs from metadata")
185
+ if row.get("source_record_ids") or row.get("derivative_coverage"):
186
+ errors.append(f"{label}: canonical row has derivative-only values")
187
+ expected_path_prefix = (
188
+ f"Standard_Time_Lapses/{row.get('fragment_set_label', '')}.Rec"
189
+ )
190
+ if not row.get("file_path", "").startswith(expected_path_prefix):
191
+ errors.append(
192
+ f"{label}: canonical path does not match fragment_set_label"
193
+ )
194
+ else:
195
+ rec_suffix = row["file_path"][len(expected_path_prefix) :]
196
+ match = re.fullmatch(r"([0-9]{2})\.mp4", rec_suffix)
197
+ if not match or match.group(1) != row.get("sequence_position", "").zfill(2):
198
+ errors.append(
199
+ f"{label}: RecNN suffix differs from sequence_position"
200
+ )
201
+ canonical_by_set[row.get("fragment_set_label", "")].append(row)
202
+ elif role == "noncanonical_inshot_derivative":
203
+ if row.get("record_id"):
204
+ errors.append(f"{label}: noncanonical derivative has record_id")
205
+ if not row.get("file_path", "").startswith(
206
+ "Standard_Time_Lapses/Provenance/2026-08-27/InShot/"
207
+ ):
208
+ errors.append(f"{label}: derivative path is outside dated provenance")
209
+ if row.get("file_path") in {item["file_name"] for item in metadata_rows}:
210
+ errors.append(f"{label}: derivative leaked into canonical metadata")
211
+ if row.get("derivative_coverage") not in {
212
+ "complete_sequence",
213
+ "partial_sequence",
214
+ }:
215
+ errors.append(f"{label}: invalid derivative coverage")
216
+ if row.get("sequence_position"):
217
+ errors.append(f"{label}: derivative sequence_position must be blank")
218
+ derivatives.append(row)
219
+ else:
220
+ errors.append(f"{label}: invalid object_role")
221
+
222
+ canonical_ids_by_set: dict[str, list[str]] = {}
223
+ for set_label, set_rows in canonical_by_set.items():
224
+ try:
225
+ counts = {int(row["sequence_count"]) for row in set_rows}
226
+ positions = sorted(int(row["sequence_position"]) for row in set_rows)
227
+ except ValueError:
228
+ errors.append(f"{set_label}: noninteger sequence position/count")
229
+ continue
230
+ if counts != {len(set_rows)} or positions != list(range(1, len(set_rows) + 1)):
231
+ errors.append(f"{set_label}: sequence positions/count are not contiguous")
232
+ canonical_ids_by_set[set_label] = [
233
+ row["record_id"]
234
+ for row in sorted(set_rows, key=lambda item: int(item["sequence_position"]))
235
+ ]
236
+
237
+ if sorted(len(rows) for rows in canonical_by_set.values()) != [2, 2, 2, 6, 10]:
238
+ errors.append("canonical sequence cardinalities must be 2/2/2/6/10")
239
+ if len(derivatives) != 5:
240
+ errors.append(f"expected 5 derivatives, observed {len(derivatives)}")
241
+
242
+ for row in derivatives:
243
+ set_ids = canonical_ids_by_set.get(row["fragment_set_label"], [])
244
+ source_ids = [value for value in row["source_record_ids"].split(";") if value]
245
+ try:
246
+ derivative_count = int(row["sequence_count"])
247
+ except ValueError:
248
+ derivative_count = -1
249
+ if derivative_count != len(set_ids):
250
+ errors.append(
251
+ f"{row['file_path']}: derivative sequence_count differs from fragment set"
252
+ )
253
+ if not source_ids or len(source_ids) != len(set(source_ids)):
254
+ errors.append(f"{row['file_path']}: derivative source IDs are blank or duplicate")
255
+ if any(value not in set_ids for value in source_ids):
256
+ errors.append(f"{row['file_path']}: derivative source crosses fragment set")
257
+ if source_ids != [value for value in set_ids if value in source_ids]:
258
+ errors.append(f"{row['file_path']}: derivative sources are out of sequence")
259
+ if row["derivative_coverage"] == "complete_sequence" and source_ids != set_ids:
260
+ errors.append(f"{row['file_path']}: complete derivative omits or reorders sources")
261
+ if row["derivative_coverage"] == "partial_sequence" and not (
262
+ 0 < len(source_ids) < len(set_ids)
263
+ ):
264
+ errors.append(f"{row['file_path']}: partial derivative is not a strict subset")
265
+
266
+ if args.repo_inventory_json:
267
+ loaded_inventory = json.loads(
268
+ args.repo_inventory_json.read_text(encoding="utf-8")
269
+ )
270
+ if not isinstance(loaded_inventory, dict):
271
+ errors.append("repository inventory must be a JSON object")
272
+ inventory: dict[str, object] = {}
273
+ else:
274
+ inventory = loaded_inventory
275
+ declared_revision = next(iter(revisions)) if len(revisions) == 1 else ""
276
+ validate_inventory_revision(inventory, declared_revision, errors)
277
+ validate_pinned_metadata(
278
+ inventory,
279
+ args.metadata,
280
+ declared_revision,
281
+ errors,
282
+ )
283
+ raw_siblings = inventory.get("siblings")
284
+ if not isinstance(raw_siblings, list):
285
+ errors.append("repository inventory lacks a siblings list")
286
+ raw_siblings = []
287
+ siblings = {
288
+ item["rfilename"]: item
289
+ for item in raw_siblings
290
+ if isinstance(item, dict) and isinstance(item.get("rfilename"), str)
291
+ }
292
+ for row in rows:
293
+ remote = siblings.get(row["file_path"])
294
+ if not remote:
295
+ errors.append(f"{row['file_path']}: missing from pinned repository inventory")
296
+ continue
297
+ lfs = remote.get("lfs") or {}
298
+ remote_size = remote.get("size")
299
+ if remote_size is None:
300
+ remote_size = lfs.get("size")
301
+ if int(remote_size or -1) != int(row["size_bytes"]):
302
+ errors.append(f"{row['file_path']}: repository size differs")
303
+ if str(lfs.get("sha256") or "").lower() != row["sha256"]:
304
+ errors.append(f"{row['file_path']}: repository LFS SHA-256 differs")
305
+ if str(remote.get("xetHash") or "").lower() != row["hub_xet_hash"]:
306
+ errors.append(f"{row['file_path']}: repository Xet identity differs")
307
+ if remote.get("repoCommit") != row["source_hub_revision"]:
308
+ errors.append(
309
+ f"{row['file_path']}: repository identity came from a "
310
+ "different revision"
311
+ )
312
+
313
+ summary = {
314
+ "rows": len(rows),
315
+ "canonical_fragments": sum(
316
+ row.get("object_role") == "canonical_fragment" for row in rows
317
+ ),
318
+ "noncanonical_derivatives": len(derivatives),
319
+ "fragment_sets": len(canonical_by_set),
320
+ "errors": errors,
321
+ }
322
+ print(json.dumps(summary, indent=2))
323
+ if errors:
324
+ raise SystemExit(1)
325
+
326
+
327
+ if __name__ == "__main__":
328
+ main()