Prepare v0.2 metadata and documentation release

#2
Archive_Specifications.md CHANGED
@@ -1,19 +1,59 @@
1
  # Archive Specifications
2
 
3
- ## Scope
4
 
5
- These specifications apply to recordings and drawings created beginning July 15, 2025, unless otherwise noted in the metadata.
 
6
 
7
- Individual metadata records document recording-specific variables and any deviations from these standard specifications.
8
 
9
- ## Recording Configuration
 
 
10
 
11
- - Orientation: Landscape
12
- - Video resolution: 2160p UHD (4K)
13
- - Image size: 4000 × 3000
 
 
 
 
 
 
 
 
14
  - Exposure: Locked
15
  - White balance: Locked
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ## Drawing Surfaces
18
 
19
  ### 9 × 12 in
@@ -37,6 +77,9 @@ Individual metadata records document recording-specific variables and any deviat
37
  - 20-ply
38
  - White
39
 
 
 
 
40
  ## Drawing Instruments and Ink
41
 
42
  ### Ballpoint
@@ -46,11 +89,25 @@ Individual metadata records document recording-specific variables and any deviat
46
  - Medium, 1.0 mm
47
  - Document-proof ink conforming to ISO 12757-2
48
 
49
- ### Fountain Pen
50
 
51
  - Pilot Custom 823
52
  - Aurora Black fountain pen ink
53
 
54
- ## Exceptions
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
- Any departure from these standard specifications is documented in the metadata for the affected recording.
 
 
1
  # Archive Specifications
2
 
3
+ ## Scope and Protocol Version
4
 
5
+ These specifications apply to recordings and drawings created beginning July
6
+ 15, 2025 unless a metadata row documents a deviation.
7
 
8
+ The corresponding metadata identifier is:
9
 
10
+ ```text
11
+ acquisition_protocol_version = standard-2025-07-15
12
+ ```
13
 
14
+ The identifier records the governing protocol. It does not imply that every
15
+ published file has identical encoded dimensions, orientation, codec, audio, or
16
+ post-processing history.
17
+
18
+ ## Capture Configuration
19
+
20
+ The documented standard acquisition intent is:
21
+
22
+ - Capture orientation: Landscape
23
+ - Capture resolution class: 2160p UHD (4K)
24
+ - Still-image size: 4000 × 3000
25
  - Exposure: Locked
26
  - White balance: Locked
27
 
28
+ ### Capture versus published encoding
29
+
30
+ Capture orientation and stored pixel orientation are separate properties.
31
+ `metadata.csv` fields `width_px`, `height_px`, and `orientation` describe the
32
+ published encoded file. Many canonical files are stored as portrait video,
33
+ including records that historical evidence identifies as rotations or crops of
34
+ landscape sources.
35
+
36
+ Do not infer a rotation, crop, or transcode solely from dimensions. Such a
37
+ transformation should be asserted only when supported by provenance evidence.
38
+
39
+ ## Timing and Calibration Status
40
+
41
+ The current protocol documentation does not yet provide a complete calibrated
42
+ time base for motor-control or physical-trajectory measurement. In particular,
43
+ the following may be unknown for a recording unless separately documented:
44
+
45
+ - original frame-capture interval
46
+ - real drawing-session duration
47
+ - time-lapse acceleration factor
48
+ - source-frame timestamps
49
+ - removed pauses or edit decisions
50
+ - dropped-frame history
51
+ - camera model, lens, and mount geometry
52
+ - pixel-to-physical coordinate mapping or homography
53
+
54
+ `encoded_frame_rate` is playback rate only. It must not be treated as original
55
+ drawing-time sampling.
56
+
57
  ## Drawing Surfaces
58
 
59
  ### 9 × 12 in
 
77
  - 20-ply
78
  - White
79
 
80
+ Other support sizes and materials may appear when identified in the canonical
81
+ filename and metadata.
82
+
83
  ## Drawing Instruments and Ink
84
 
85
  ### Ballpoint
 
89
  - Medium, 1.0 mm
90
  - Document-proof ink conforming to ISO 12757-2
91
 
92
+ ### Fountain pen
93
 
94
  - Pilot Custom 823
95
  - Aurora Black fountain pen ink
96
 
97
+ Additional tools and media are recorded at the individual-record level.
98
+
99
+ ## Audio
100
+
101
+ Audio presence is a stored-file property, not a required part of the acquisition
102
+ protocol. `has_audio` records whether an audio stream exists. It does not
103
+ describe the stream's contents or establish redistribution rights for music,
104
+ speech, notifications, or other incidental sound.
105
+
106
+ ## Exceptions and Evidence
107
+
108
+ Known departures from the protocol should be documented in the affected
109
+ metadata row. A deviation claim should identify its evidence in `notes` and,
110
+ where applicable, provenance fields.
111
 
112
+ When a property is not documented, it must remain unknown rather than being
113
+ reconstructed from visual appearance alone.
CHANGELOG.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ ## v0.2.0 — Release candidate
4
+
5
+ Base repository revision:
6
+ `339e6149de130cbe2d001f7a0e5247872bc788ec`
7
+
8
+ ### Metadata contract
9
+
10
+ - Added persistent `record_id` values for all 338 canonical records.
11
+ - Added `collection_tier`, `is_canonical`, and
12
+ `acquisition_protocol_version`.
13
+ - Normalized canonical multi-value `tool` and `medium` fields from pipes to
14
+ semicolons.
15
+ - Defined tool and medium fields as independent ordered unique lists rather
16
+ than unsupported positional pairs.
17
+ - Preserved every canonical file path, content hash, technical property, and
18
+ provenance value from the pinned source index.
19
+ - Removed one pre-standard metadata row whose corresponding media is not
20
+ distributed because the required ownership and provenance threshold was not
21
+ met. No identifying local path or content hash is published for the excluded
22
+ holding.
23
+ - Added complete canonical rows for three previously unindexed Standard files.
24
+ Their local inbox SHA-256 values exactly match the current Hub LFS identities;
25
+ stream metadata was extracted from those matching bytes.
26
+
27
+ ### Documentation
28
+
29
+ - Distinguished archive scope from currently published video coverage.
30
+ - Documented that the default Hub `train` split is not an official experiment
31
+ split.
32
+ - Distinguished capture orientation from stored encoded orientation.
33
+ - Added intended-use, unsupported-use, bias, privacy, incidental-rights, audio,
34
+ access, citation, and reproducibility guidance.
35
+ - Documented missing temporal and physical calibration required for rigorous
36
+ motor-control measurement.
37
+
38
+ ### Validation
39
+
40
+ - Added `tools/repair_metadata.py` for the reproducible v0.1-to-v0.2 transform.
41
+ - Added `tools/validate_metadata.py` for identity, schema, technical-field,
42
+ orientation, duplicate, and Viewer-path checks.
43
+ - Retained the 465-row pinned Dataset Viewer snapshot as a historical base
44
+ audit input. Final revised membership is validated against the PR repository
45
+ tree because the Viewer has not yet rebuilt from the amended indexes.
46
+ - Reconciled the repository tree with both active indexes: 338 indexed
47
+ canonical records and 129 published pre-standard records, both with
48
+ one-to-one row/file coverage.
49
+ - Added `tools/metadata_additions_v0.2.csv` so the 338-row index regenerates
50
+ deterministically from the pinned 335-row source plus 3 audited additions.
51
+
52
+ ### Media payload
53
+
54
+ - No video was downloaded, moved, deleted, renamed, transcoded, or replaced.
55
+ - No audio stream was modified.
56
+ - No historical relationship was inferred or promoted.
57
+
58
+ ### Deferred
59
+
60
+ - Formal Hub configurations separating `canonical` and `pre_standard` remain
61
+ pending a Viewer-build test because canonical media and provenance holdings
62
+ share a directory subtree.
63
+ - Technical ingestion of 129 pre-standard records remains incomplete.
64
+ - Public ingestion of the 2012–2016 livestream layer remains pending.
65
+ - No lightweight proxy-video release is included in this metadata-only change.
Pre_Standard_Time_Lapses/metadata.csv CHANGED
@@ -105,7 +105,6 @@
105
  "2025-03-01.1658.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-01","16:58","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
106
  "2025-03-04.0907.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-04","09:07","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
107
  "2025-03-05.0904.FountainPen.Ink.Paper.18x24.mp4","2025-03-05","09:04","FountainPen","Ink","Paper","18x24",""
108
- "2025-03-05-00.UnknownTime.Pencil.Graphite.FountainPen.Ink.IllustrationBoard.30x40.mp4","2025-03-05","","Pencil;FountainPen","Graphite;Ink","IllustrationBoard","30x40",""
109
  "2025-03-14.2338.BallpointPen.Ink.Paper.18x24.mp4","2025-03-14","23:38","BallpointPen","Ink","Paper","18x24",""
110
  "2025-03-15.0904.FountainPen.Ink.Paper.18x24.mp4","2025-03-15","09:04","FountainPen","Ink","Paper","18x24",""
111
  "2025-03-17.0621.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-17","06:21","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
 
105
  "2025-03-01.1658.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-01","16:58","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
106
  "2025-03-04.0907.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-04","09:07","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
107
  "2025-03-05.0904.FountainPen.Ink.Paper.18x24.mp4","2025-03-05","09:04","FountainPen","Ink","Paper","18x24",""
 
108
  "2025-03-14.2338.BallpointPen.Ink.Paper.18x24.mp4","2025-03-14","23:38","BallpointPen","Ink","Paper","18x24",""
109
  "2025-03-15.0904.FountainPen.Ink.Paper.18x24.mp4","2025-03-15","09:04","FountainPen","Ink","Paper","18x24",""
110
  "2025-03-17.0621.Pencil.Graphite.FountainPen.Ink.Paper.11x14.mp4","2025-03-17","06:21","Pencil;FountainPen","Graphite;Ink","Paper","11x14",""
README.md CHANGED
@@ -1,156 +1,289 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
 
 
3
  tags:
4
  - video
5
  - time-series
6
  - longitudinal-study
7
  - computer-vision
8
- - motor-control
 
9
  - archival
10
  ---
11
 
12
  # time-lapse-artifacts
13
 
14
- A 14-Year Longitudinal Archive of Analog Drawing Process (2012–Present)
15
 
16
- **Status:** Active construction release. The canonical standardized collection is indexed and usable; pre-standard and legacy holdings remain under incremental review and ingestion.
 
 
17
 
18
- ## Overview
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- `time-lapse-artifacts` is a longitudinal video dataset documenting analog drawing process across multiple recording periods and acquisition conditions.
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
- The repository contains standardized time-lapse recordings, earlier pre-standard time-lapses, and historical livestream material. Raw video is the primary record; metadata is used to identify, organize, compare, and document the recordings without imposing aesthetic classifications on the drawings.
 
 
 
23
 
24
- The project scope is 2012–Present. This describes the span of the underlying recording practice and archive; it should not be interpreted to mean that material from every year in that span has already been published here.
 
 
25
 
26
  ## Repository Structure
27
 
28
  ### `Standard_Time_Lapses/`
29
 
30
- The canonical standardized records are the MP4 files stored directly in `Standard_Time_Lapses/`. The nested `Provenance/` subtree contains supporting records and retained historical exceptions and is not part of the canonical record set.
 
 
 
31
 
32
- Files use a structured filename convention encoding documented session information such as date, finish time when known, tools, media, support, and dimensions.
33
 
34
- `metadata.csv` is the machine-readable index for the published canonical records.
 
 
 
 
 
 
 
35
 
36
- Historical source relationships should not be inferred from filenames alone.
 
 
37
 
38
  ### `Standard_Time_Lapses/Provenance/`
39
 
40
- Supporting records documenting the reconstruction and verification of historical source relationships.
 
41
 
42
- `2026-07-31/` preserves the completed provenance release, including the consolidated mapping between historical `Series_9x12` filenames and canonical standardized records.
 
 
 
43
 
44
- The former full `Series_9x12` video snapshot is not retained as a second copy of the canonical dataset. Its verified relationships are preserved through mapping records, hashes, metadata, and repository history.
45
-
46
- `Unresolved_Series_9x12/` contains a very small number of distinct historical recordings retained because they are not duplicates of canonical files but currently lack sufficient documentation for promotion into the standardized collection. They should not be treated as canonical `Standard_Time_Lapses` records.
47
 
48
  ### `Pre_Standard_Time_Lapses/`
49
 
50
- Earlier time-lapse recordings that predate the standard acquisition specifications.
51
-
52
- These recordings are kept separate from `Standard_Time_Lapses/` because their capture conditions and available documentation may differ from the later standardized records.
 
53
 
54
- Where metadata is incomplete, uncertainty is preserved rather than reconstructed from unsupported assumptions.
 
55
 
56
  ### `Legacy_Livestreams_2012_2016/`
57
 
58
- Historical real-time/livestream material from the earlier recording period.
59
-
60
- This material is maintained as a distinct historical layer rather than being mixed invisibly with the standardized time-lapse collection. Organization and ingestion of this material may remain incomplete while the repository is under construction.
61
 
62
  ## Metadata and Provenance
63
 
64
- The metadata is intended to distinguish between information directly documented by the recording, information established through historical source comparison, and information that remains unresolved.
65
-
66
- Depending on the record, provenance evidence may include:
67
 
68
  - exact file/blob identity
69
- - original filenames
70
- - historical repository paths
71
  - file sizes and hashes
72
  - duration comparison
73
  - visual continuity across recordings
74
  - documented physical references
75
  - repository commit history
76
 
77
- Uncertain relationships are not promoted to verified relationships solely because filenames or dates appear similar.
 
78
 
79
- Historical filenames are preserved in metadata where relevant even when the canonical filename has been standardized.
 
 
80
 
81
- The canonical metadata also includes automatically extracted technical properties such as:
 
82
 
83
- - playback duration
84
- - encoded width and height
85
- - orientation
86
- - encoded frame rate
87
- - video codec
88
- - pixel format
89
- - container
90
- - audio presence
91
- - repository content hash
92
 
93
- `encoded_frame_rate` describes the encoded video playback rate. It should not be interpreted as the original temporal sampling rate of the drawing process.
 
94
 
95
- ## Standard Acquisition Specifications
 
 
 
 
96
 
97
- **Effective: July 15, 2025**
98
 
99
- Beginning July 15, 2025, recordings and drawings follow the standard acquisition specifications documented in `Archive_Specifications.md`, unless otherwise noted in the metadata.
100
 
101
- Individual metadata records document variables specific to each recording and any known deviations from those standard specifications.
 
 
 
 
 
102
 
103
- The date and time encoded in standardized filenames represent the documented **finish date and finish time** of the drawing session, not the recording start time.
 
104
 
105
- Where no reliable finish time is available, the time remains explicitly unknown rather than being inferred.
106
 
107
- ## Canonical Status
108
 
109
- The MP4 files stored directly in `Standard_Time_Lapses/` constitute the canonical standardized collection. Files within `Standard_Time_Lapses/Provenance/` are supporting provenance material and are not canonical records.
 
 
 
 
110
 
111
- Historical source files, provenance releases, unresolved historical recordings, and pre-standard recordings are retained for documentation and comparison but are not interchangeable with canonical standardized records.
112
 
113
- Repository organization may continue to evolve as historical material is reviewed. Reorganization does not alter the underlying video evidence, and provenance records are retained where they are necessary to explain earlier repository states.
 
 
 
114
 
115
- ## Ownership
 
 
116
 
117
- The creator has manually reviewed the published collection and confirms ownership of all files and depicted drawings. A previously identified exception was removed from the repository and is not part of the published collection.
118
 
119
- ## Annotation State
 
 
 
120
 
121
- The video collection is primarily raw and unannotated.
122
 
123
- There are no frame-level bounding boxes, segmentation masks, pose labels, aesthetic scores, or imposed stylistic classifications. Researchers may derive such annotations independently for their own applications.
 
 
 
 
 
 
 
 
 
124
 
125
- The archive does not select recordings on the basis of perceived drawing quality. Recording integrity and documentation are treated separately from aesthetic evaluation.
126
 
127
- ## Potential Uses
 
 
 
 
 
128
 
129
- The dataset may support research involving, among other areas:
 
 
 
 
130
 
131
- - computer vision
132
- - temporal and longitudinal analysis
133
- - self-supervised video learning
134
- - motion and motor-control analysis
135
- - drawing-process analysis
136
- - optical flow and trajectory extraction
137
- - representation learning
138
- - change over long time spans
139
- - comparison of acquisition conditions and recording eras
140
 
141
- These are possible uses rather than claims that the dataset has been optimized or validated for any particular downstream task.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
  ## Documentation
144
 
145
- See:
 
 
 
 
 
146
 
147
- - `metadata.csv` — machine-readable dataset index
148
- - `SCHEMA.md` — filename and metadata conventions
149
- - `Archive_Specifications.md` — standard acquisition specifications
150
- - `Standard_Time_Lapses/Provenance/` — historical mapping and provenance records
151
 
152
- ## License
 
 
 
 
 
 
 
 
 
 
 
153
 
154
- This dataset is released under **CC BY-NC 4.0**.
155
 
156
- See the repository license metadata for the applicable terms.
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ pretty_name: Time-Lapse Artifacts
4
+ annotations_creators:
5
+ - no-annotation
6
+ source_datasets:
7
+ - original
8
+ size_categories:
9
+ - n<1K
10
  tags:
11
  - video
12
  - time-series
13
  - longitudinal-study
14
  - computer-vision
15
+ - drawing-process
16
+ - self-supervised-learning
17
  - archival
18
  ---
19
 
20
  # time-lapse-artifacts
21
 
22
+ An active longitudinal archive of analog drawing process.
23
 
24
+ **Archive scope:** 2012–Present
25
+ **Currently published video coverage:** September 2024–Present
26
+ **Release status:** Active construction release
27
 
28
+ The archive scope describes the underlying recording practice and holdings. It
29
+ does not mean that recordings from every year have been published. In the
30
+ audited 2026-08-18 snapshot, published video rows begin in September 2024; the
31
+ 2012–2016 livestream layer has not yet been ingested as public video data.
32
+
33
+ ## Snapshot and Coverage
34
+
35
+ This documentation was audited against repository commit
36
+ `339e6149de130cbe2d001f7a0e5247872bc788ec`.
37
+
38
+ | Collection tier | Published MP4s | Indexed rows | Date coverage | Metadata state |
39
+ | --- | ---: | ---: | --- | --- |
40
+ | `standard` | 338 direct files | 338 | 2025-07-15–2026-08-10 | Complete core technical metadata for every direct Standard file |
41
+ | `pre_standard` | 129 | 129 | 2024-09-17–2025-07-13, plus 9 unknown dates | Filename-level descriptive metadata; technical ingestion incomplete |
42
+ | `legacy_livestream` | 0 public videos | 0 | Historical scope 2012–2016 | Placeholder layer; ingestion pending |
43
 
44
+ At the pinned base revision, the Hub Viewer exposes 465 rows: 335 standard
45
+ rows and 130 pre-standard metadata rows. Audit found that one pre-standard row
46
+ referred to material that is not distributed because the required ownership
47
+ and provenance threshold was not met. This release removes that row from the
48
+ active public index. This release also indexes three previously unindexed
49
+ Standard files, leaving 338 standard and 129 pre-standard rows and an expected
50
+ 467 active Viewer rows after rebuild.
51
+
52
+ The builder-generated split name `train` is an archive-loading default,
53
+ **not** a recommended machine-learning train split. No official
54
+ train/validation/test partition has been defined.
55
+
56
+ ## Overview
57
 
58
+ `time-lapse-artifacts` documents analog drawing processes across different
59
+ recording periods and acquisition conditions. Raw video is the primary record.
60
+ Metadata identifies, organizes, compares, and documents recordings without
61
+ imposing aesthetic scores or stylistic labels.
62
 
63
+ The collection is a single-creator longitudinal archive. This makes it useful
64
+ for studying within-practice change, but it does not represent artists,
65
+ materials, studios, or drawing practices broadly.
66
 
67
  ## Repository Structure
68
 
69
  ### `Standard_Time_Lapses/`
70
 
71
+ The directory contains 338 direct MP4 files. `metadata.csv` is their complete
72
+ machine-readable canonical index: every direct file has one validated row with
73
+ core technical metadata. Direct placement alone is not sufficient for future
74
+ additions; metadata and release validation are required.
75
 
76
+ Each canonical metadata row now includes:
77
 
78
+ - a persistent `record_id`
79
+ - `collection_tier = standard`
80
+ - `is_canonical = true`
81
+ - `acquisition_protocol_version = standard-2025-07-15`
82
+ - descriptive session fields
83
+ - encoded video properties
84
+ - repository content hash and size
85
+ - provenance fields where documented
86
 
87
+ Files use a structured filename convention described in `SCHEMA.md`. A
88
+ filename is descriptive, but it is not the stable identity of a record;
89
+ external references should use `record_id`.
90
 
91
  ### `Standard_Time_Lapses/Provenance/`
92
 
93
+ This subtree contains supporting historical records and retained exceptions.
94
+ It is not part of the canonical record set.
95
 
96
+ `2026-07-31/` preserves the completed provenance release, including mappings
97
+ between historical `Series_9x12` filenames and canonical records. The former
98
+ full duplicate video snapshot is not retained. Relationships are preserved
99
+ through mappings, hashes, metadata, and repository history.
100
 
101
+ `Unresolved_Series_9x12/` contains distinct historical recordings that do not
102
+ yet have enough documentation for promotion into the canonical collection.
 
103
 
104
  ### `Pre_Standard_Time_Lapses/`
105
 
106
+ These 129 recordings predate the standard acquisition protocol. They are
107
+ published for archival continuity but are not interchangeable with canonical
108
+ standard records. Their technical metadata remains incomplete. Missing values
109
+ must not be interpreted as zero, false, or evidence that a property was absent.
110
 
111
+ Material that does not meet the archive's ownership and provenance threshold
112
+ is excluded from both the published media and the active metadata index.
113
 
114
  ### `Legacy_Livestreams_2012_2016/`
115
 
116
+ This directory reserves the historical livestream layer. At the audited
117
+ snapshot it contains no public video data. References to 2012–2016 therefore
118
+ describe archive scope, not current downloadable coverage.
119
 
120
  ## Metadata and Provenance
121
 
122
+ The metadata distinguishes documented facts, established historical
123
+ relationships, and unresolved information. Evidence may include:
 
124
 
125
  - exact file/blob identity
126
+ - original filenames and repository paths
 
127
  - file sizes and hashes
128
  - duration comparison
129
  - visual continuity across recordings
130
  - documented physical references
131
  - repository commit history
132
 
133
+ Uncertain relationships are not promoted to verified relationships solely
134
+ because dates or filenames look similar.
135
 
136
+ Multiple `tool` and `medium` values use semicolons. The two fields are
137
+ independent observed-value lists; equal list lengths and positional pairing are
138
+ not guaranteed. See `SCHEMA.md`.
139
 
140
+ `encoded_frame_rate` is encoded playback rate. It is not the original temporal
141
+ sampling rate of the drawing process.
142
 
143
+ ## Acquisition and Stored-Video Orientation
 
 
 
 
 
 
 
 
144
 
145
+ The acquisition protocol effective July 15, 2025 is documented in
146
+ `Archive_Specifications.md`.
147
 
148
+ The protocol's capture orientation and a file's stored pixel orientation are
149
+ different concepts. The `orientation`, `width_px`, and `height_px` metadata
150
+ describe the published encoded file. Historical canonicalization may include a
151
+ rotation, crop, or transcode; those transformations are documented only where
152
+ evidence currently exists and must not be inferred from dimensions alone.
153
 
154
+ ## Annotation State
155
 
156
+ The videos are primarily raw and unannotated. The release does not provide:
157
 
158
+ - frame-level bounding boxes or segmentation masks
159
+ - hand, pen-tip, pose, or stroke labels
160
+ - aesthetic or quality scores
161
+ - imposed stylistic classifications
162
+ - calibrated physical trajectories
163
+ - original capture timestamps for individual time-lapse frames
164
 
165
+ Researchers may derive annotations, but derived labels should identify the
166
+ source `record_id` and pinned repository revision.
167
 
168
+ ## Intended and Unsupported Uses
169
 
170
+ ### Reasonable uses in the current release
171
 
172
+ - archival and drawing-process research
173
+ - qualitative within-creator longitudinal analysis over published coverage
174
+ - self-supervised video representation experiments
175
+ - frame-change, scene, and workspace analysis
176
+ - development of annotation and tracking methods
177
 
178
+ ### Uses requiring additional validation or calibration
179
 
180
+ - hand or pen-tip tracking
181
+ - optical-flow comparison across acquisition eras
182
+ - temporal behavior analysis
183
+ - real-world trajectory, velocity, acceleration, or motor-control measurement
184
 
185
+ The release does not currently provide capture intervals, acceleration factors,
186
+ source-frame timestamps, camera calibration, or pixel-to-physical coordinate
187
+ mapping. Encoded time-lapse playback must not be treated as real drawing time.
188
 
189
+ ### Not validated
190
 
191
+ - population-level claims about artists or drawing behavior
192
+ - clinical, biometric, authorship, or identity inference
193
+ - a leakage-safe training or evaluation benchmark
194
+ - commercial use outside the CC BY-NC 4.0 terms
195
 
196
+ ## Limitations and Sources of Bias
197
 
198
+ - The archive documents one creator and one evolving practice.
199
+ - Current public video coverage begins in 2024, not 2012.
200
+ - The standard and pre-standard tiers have substantially different metadata
201
+ completeness and acquisition conditions.
202
+ - The workspace can contain hands, tools, phones, tablets, reference material,
203
+ and other objects that may create visual shortcuts or occlusion.
204
+ - Stored resolution and frame rate do not establish physical or temporal
205
+ calibration.
206
+ - Large files make exhaustive inspection and replication expensive.
207
+ - No official leakage-safe split exists.
208
 
209
+ ## Rights, Privacy, and Audio
210
 
211
+ The creator confirms ownership of the published video files and depicted
212
+ creator-owned drawings. Material that cannot pass the ownership and provenance
213
+ review is not part of the active public index and is not distributed by this
214
+ release. This statement does not independently grant rights in incidental
215
+ third-party material that may appear on screens, in references, or in captured
216
+ audio.
217
 
218
+ Most canonical masters retain an audio stream. Users are responsible for
219
+ reviewing audio, visible screens, references, reflections, tattoos, and other
220
+ potentially identifying or third-party content before redistribution or model
221
+ release. A future proxy release should remove audio by default while preserving
222
+ the archival masters.
223
 
224
+ ## Access and Reproducibility
 
 
 
 
 
 
 
 
225
 
226
+ The archive is approximately 1.86 TB. Canonical files are often several
227
+ gigabytes each, so users should select records through `metadata.csv` before
228
+ downloading video.
229
+
230
+ For reproducible work:
231
+
232
+ 1. Pin a repository commit or release tag.
233
+ 2. Record the selected `record_id` values.
234
+ 3. Preserve the published `hub_xet_hash` values.
235
+ 4. State whether audio was retained.
236
+ 5. Document all rotation, crop, sampling, decoding, and proxy-generation steps.
237
+
238
+ Run the included validator before publishing a metadata change:
239
+
240
+ ```bash
241
+ python tools/validate_metadata.py metadata.csv
242
+ ```
243
+
244
+ The v0.2 index can be regenerated from the pinned 335-row source index plus the
245
+ three audited additions:
246
+
247
+ ```bash
248
+ python tools/repair_metadata.py source_metadata.csv metadata.csv \
249
+ --additions tools/metadata_additions_v0.2.csv
250
+ ```
251
+
252
+ ## Versioning
253
+
254
+ The repository is under active construction. Record identity is carried by
255
+ `record_id`; a filename may be corrected without creating a new conceptual
256
+ record. Content replacement must retain provenance and should receive a new
257
+ content hash.
258
+
259
+ See `CHANGELOG.md` for release-level changes.
260
 
261
  ## Documentation
262
 
263
+ - `metadata.csv` — canonical machine-readable index
264
+ - `Pre_Standard_Time_Lapses/metadata.csv` — active pre-standard public index
265
+ - `SCHEMA.md` — filename and metadata contracts
266
+ - `Archive_Specifications.md` — acquisition specifications and known gaps
267
+ - `VALIDATION.md` — validation scope and current results
268
+ - `Standard_Time_Lapses/Provenance/` — historical evidence and mappings
269
 
270
+ ## Citation
 
 
 
271
 
272
+ Until a DOI-backed release is available, cite the dataset and pinned revision:
273
+
274
+ ```bibtex
275
+ @dataset{maxwellinked_time_lapse_artifacts_2026,
276
+ author = {maxwellinked},
277
+ title = {time-lapse-artifacts},
278
+ year = {2026},
279
+ publisher = {Hugging Face},
280
+ url = {https://huggingface.co/datasets/maxwellinked/time-lapse-artifacts},
281
+ note = {Active construction release; include the repository revision used}
282
+ }
283
+ ```
284
 
285
+ ## License
286
 
287
+ The dataset is released under **CC BY-NC 4.0**. The license applies only to
288
+ material for which the licensor holds the necessary rights. Users must conduct
289
+ their own review of incidental third-party content and downstream use.
RELEASE_MANIFEST.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release_candidate": "v0.2.0",
3
+ "base_revision": "339e6149de130cbe2d001f7a0e5247872bc788ec",
4
+ "amended_pr": 2,
5
+ "created_date": "2026-08-18",
6
+ "master_videos_modified": false,
7
+ "excluded_media_uploaded": false,
8
+ "active_index_counts": {
9
+ "canonical": 338,
10
+ "pre_standard": 129,
11
+ "total": 467
12
+ },
13
+ "repository_inventory": {
14
+ "direct_standard_mp4": 338,
15
+ "standard_pending_metadata": 0,
16
+ "direct_pre_standard_mp4": 129,
17
+ "provenance_mp4": 2
18
+ },
19
+ "files": [
20
+ {
21
+ "path": ".gitattributes",
22
+ "size_bytes": 3136,
23
+ "sha256": "a9c5b148f359c60350c3ac47566271b418beb657c21b0ee3dba990fb5807b748"
24
+ },
25
+ {
26
+ "path": "Archive_Specifications.md",
27
+ "size_bytes": 3229,
28
+ "sha256": "ecebd17d5cb534b2b867846b471dcd4552108e563c0d8d4428b730785ca7df72"
29
+ },
30
+ {
31
+ "path": "CHANGELOG.md",
32
+ "size_bytes": 2941,
33
+ "sha256": "fa9cc8a55b577c098adf9bc48f906a3d3d20644be1b180ca188036f0f2dac9a5"
34
+ },
35
+ {
36
+ "path": "metadata.csv",
37
+ "size_bytes": 176413,
38
+ "sha256": "ecad3455dea0c65b54a201e226aaf527f52607abab3582f49f065758c434e0aa"
39
+ },
40
+ {
41
+ "path": "Pre_Standard_Time_Lapses/metadata.csv",
42
+ "size_bytes": 17197,
43
+ "sha256": "714029e7acde57ffad0288499cdd4b2784cd585a17ae49710970a929d96eb3cf"
44
+ },
45
+ {
46
+ "path": "README.md",
47
+ "size_bytes": 11297,
48
+ "sha256": "1a34bea1924882a5b4156f4602e05fc96e5c9da465aa25c645fc2a538bf88584"
49
+ },
50
+ {
51
+ "path": "SCHEMA.md",
52
+ "size_bytes": 8179,
53
+ "sha256": "191c3fae0f67d1abb31d6639c4f720ae6610e8ffb5150ca45fed0591f3c97ce7"
54
+ },
55
+ {
56
+ "path": "tools/metadata_additions_v0.2.csv",
57
+ "size_bytes": 1879,
58
+ "sha256": "9227bcd891afdcaa9e8547e34b0a573d45109f7035b0baf645ee03ba757b069c"
59
+ },
60
+ {
61
+ "path": "tools/repair_metadata.py",
62
+ "size_bytes": 5115,
63
+ "sha256": "1be4ed29793f1f6a734e496341acd9700ef87559c3ba5008b8671cd46c80978e"
64
+ },
65
+ {
66
+ "path": "tools/validate_metadata.py",
67
+ "size_bytes": 14924,
68
+ "sha256": "06a9662b28c591c2f30d869f0c1c666bfd60344fffee8efbd8988012fc2fe3a8"
69
+ },
70
+ {
71
+ "path": "VALIDATION.md",
72
+ "size_bytes": 3240,
73
+ "sha256": "f41bab27192abf4fa273df0d6111a75874bdf65ff37466242d5f260530e3ed1d"
74
+ },
75
+ {
76
+ "path": "VIEWER_MIGRATION.md",
77
+ "size_bytes": 2329,
78
+ "sha256": "9f33fda262f34afbf76fa4738a4269952b36ac61c7c572d85ec4546f04ffd8b8"
79
+ }
80
+ ]
81
+ }
SCHEMA.md CHANGED
@@ -1,43 +1,199 @@
1
- # Filename Schema
2
 
3
- ## Format
 
 
 
 
4
 
5
  `YYYY-MM-DD.HHMM.Tool.Medium.Support.Dimensions[.RecNN].ext`
6
 
7
- Example:
8
 
9
- `2025-07-15.0448.FountainPen.Ink.Paper.9x12.mp4`
 
 
 
 
10
 
11
- Multiple recordings requiring distinction:
12
 
13
- `2026-06-29.UnknownTime.FountainPen.Ink.Paper.30x40.Rec01.mp4`
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
- `2026-06-29.UnknownTime.FountainPen.Ink.Paper.30x40.Rec02.mp4`
16
 
17
- `2026-06-29.UnknownTime.FountainPen.Ink.Paper.30x40.Rec03.mp4`
 
 
 
 
 
 
 
 
 
 
18
 
19
- ## Fields
 
 
20
 
21
- - `YYYY-MM-DD` documented finish date.
22
- - `HHMM` — documented finish time in 24-hour format.
23
- - `UnknownTime` — used only when the finish time is unknown.
24
- - `Tool` — drawing instrument, such as `FountainPen` or `BallpointPen`.
25
- - `Medium` — material applied, such as `Graphite` or `Ink`.
26
- - `Support` — physical drawing surface, such as `Paper`, `IllustrationBoard`, or `WatercolorPaper`.
27
- - `Dimensions` — support dimensions in inches; order preserves orientation, such as `9x12` or `12x9`.
28
- - `RecNN` — optional recording sequence identifier used when multiple distinct recordings would otherwise produce the same filename; numbering begins with `Rec01`.
29
- - `ext` — original file extension.
30
 
31
- ## Rules
 
 
 
 
 
32
 
33
- - Fields are separated by periods.
34
- - Style classifications are excluded.
35
- - `TL` is excluded because time-lapse is implicit in the dataset's primary collection.
36
- - `0000` is reserved for an actual midnight finish time.
37
- - `RecNN` is used only when required to distinguish multiple recordings with otherwise identical filename fields.
38
- - `RecNN` identifies recording sequence only; it does not imply a separate drawing, session, or completion state.
39
- - When independently documented, original filenames are preserved exactly in `metadata.csv`; otherwise `original_filename` remains blank.
40
- - In `metadata.csv`, multiple tools and media are stored as ordered semicolon-separated values.
41
- - Example: `Pencil.Graphite.FountainPen.Ink` becomes `tool = Pencil;FountainPen` and `medium = Graphite;Ink`.
42
- - Each tool corresponds by position to the medium in the same position.
43
- - Paper surface variants such as `HotPress` and `ColdPress` remain preserved in `file_name`; the current `metadata.csv` schema does not yet include a dedicated `press_type` field.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Schema
2
 
3
+ This document defines the contracts for canonical filenames and
4
+ `metadata.csv`. Filenames are human-readable descriptions; `record_id` is the
5
+ persistent machine identity.
6
+
7
+ ## Canonical Filename Format
8
 
9
  `YYYY-MM-DD.HHMM.Tool.Medium.Support.Dimensions[.RecNN].ext`
10
 
11
+ Examples:
12
 
13
+ ```text
14
+ 2025-07-15.0448.FountainPen.Ink.Paper.9x12.mp4
15
+ 2026-06-29.UnknownTime.FountainPen.Ink.Paper.30x40.Rec01.mp4
16
+ 2026-06-29.UnknownTime.FountainPen.Ink.Paper.30x40.Rec02.mp4
17
+ ```
18
 
19
+ ### Filename fields
20
 
21
+ - `YYYY-MM-DD` — documented finish date.
22
+ - `HHMM` — documented finish time in 24-hour local civil time.
23
+ - `UnknownTime` — used when no reliable finish time is documented.
24
+ - `Tool` — drawing instrument, such as `Pencil`, `FountainPen`, `BallpointPen`,
25
+ or `Brush`.
26
+ - `Medium` — applied material, such as `Graphite` or `Ink`.
27
+ - `Support` — drawing surface, such as `Paper`, `IllustrationBoard`, or
28
+ `WatercolorPaper`.
29
+ - `Dimensions` — support dimensions in inches; order preserves support
30
+ orientation, such as `9x12` or `12x9`.
31
+ - `RecNN` — optional recording-sequence identifier used only when otherwise
32
+ identical filenames require distinction. Numbering begins with `Rec01`.
33
+ - `ext` — file extension.
34
 
35
+ ### Filename rules
36
 
37
+ - Fields are separated by periods.
38
+ - Style and aesthetic classifications are excluded.
39
+ - `TL` is excluded because time-lapse is implicit in the primary collection.
40
+ - `0000` is reserved for a documented midnight finish time.
41
+ - `RecNN` identifies recording sequence only. It does not by itself establish a
42
+ separate drawing, session, or completion state.
43
+ - `UnknownTime` records uncertainty; it is not replaced by an inferred time.
44
+ - Paper-surface variants such as `HotPress` and `ColdPress` may remain encoded
45
+ in filenames until a dedicated metadata field is added.
46
+ - Historical relationships must not be inferred from filename similarity
47
+ alone.
48
 
49
+ Tool and medium tokens in a filename describe documented materials, but older
50
+ filenames do not always encode an unambiguous one-to-one pairing. Metadata must
51
+ therefore preserve tool and medium sets without manufacturing positional pairs.
52
 
53
+ ## Canonical Metadata Contract
 
 
 
 
 
 
 
 
54
 
55
+ `metadata.csv` indexes the validated canonical subset of MP4 files stored
56
+ directly in `Standard_Time_Lapses/`. Direct placement alone does not make a file
57
+ canonical: every released canonical file must have exactly one metadata row,
58
+ complete required technical fields, and the necessary rights and provenance
59
+ clearance. The v0.2 index contains 338 validated records and covers every MP4
60
+ stored directly in `Standard_Time_Lapses/` at the pinned revision.
61
 
62
+ The canonical index does not make provenance, unresolved, pre-standard, or
63
+ legacy files canonical.
64
+
65
+ ### Identity and collection fields
66
+
67
+ | Field | Type | Meaning |
68
+ | --- | --- | --- |
69
+ | `file_name` | string | Repository-relative canonical video path. |
70
+ | `record_id` | string | Persistent identity in the form `tla-` plus 16 lowercase hexadecimal characters. |
71
+ | `collection_tier` | enum | `standard` for this index. |
72
+ | `is_canonical` | boolean | `true` for every row in this index. |
73
+ | `acquisition_protocol_version` | string | Protocol identifier; currently `standard-2025-07-15`. |
74
+
75
+ The initial `record_id` values were generated from a namespaced SHA-256 of the
76
+ canonical path. Once assigned, the stored value is authoritative and must be
77
+ retained across filename corrections. New tooling must assign an ID only when a
78
+ record does not already have one.
79
+
80
+ ### Session and material fields
81
+
82
+ | Field | Type | Meaning |
83
+ | --- | --- | --- |
84
+ | `date` | `YYYY-MM-DD` | Documented finish date. |
85
+ | `time` | `HH:MM` or blank | Documented finish time; blank means unknown. |
86
+ | `tool` | semicolon list | Ordered unique set of documented tools. |
87
+ | `medium` | semicolon list | Ordered unique set of documented media. |
88
+ | `support` | string | Physical drawing surface. |
89
+ | `dimensions` | string | Support dimensions in inches, such as `9x12`. |
90
+
91
+ Multiple values use semicolons:
92
+
93
+ ```text
94
+ tool = Pencil;FountainPen
95
+ medium = Graphite;Ink
96
+ ```
97
+
98
+ `tool` and `medium` are independent observed-value lists. Equal lengths and
99
+ positional correspondence are **not guaranteed**. Repeated media are collapsed
100
+ to one value. A future paired representation should use a structured field and
101
+ must be based on documented evidence rather than token position.
102
+
103
+ ### Encoded-video fields
104
+
105
+ | Field | Type | Meaning |
106
+ | --- | --- | --- |
107
+ | `duration_seconds` | float | Encoded playback duration. |
108
+ | `width_px` | integer | Stored encoded width. |
109
+ | `height_px` | integer | Stored encoded height. |
110
+ | `orientation` | enum | Stored pixel orientation derived from width and height. |
111
+ | `encoded_frame_rate` | integer | Encoded playback frame rate. |
112
+ | `video_codec` | string | Encoded video codec. |
113
+ | `pixel_format` | string | Encoded pixel format. |
114
+ | `container` | string | Media container. |
115
+ | `has_audio` | boolean | Whether the stored file contains an audio stream. |
116
+ | `hub_xet_hash` | string | Repository content identity reported for the stored file. |
117
+ | `size_bytes` | integer | Stored file size in bytes. |
118
+
119
+ These fields describe the published encoded file. They do not establish the
120
+ original frame-capture interval, real drawing duration, speed-up factor, camera
121
+ calibration, capture orientation, rotation, crop, or transcode lineage.
122
+
123
+ `encoded_frame_rate` must not be interpreted as drawing-time sampling rate.
124
+
125
+ ### Historical provenance fields
126
+
127
+ | Field | Type | Meaning |
128
+ | --- | --- | --- |
129
+ | `original_filename` | string or blank | Independently documented historical filename. |
130
+ | `provenance_status` | string or blank | Current relationship status. |
131
+ | `legacy_provenance_path` | string or blank | Verified historical repository path. |
132
+ | `legacy_related_references` | string or blank | Related candidates, aliases, or rejected references. |
133
+ | `evidence_method` | string or blank | Primary evidence used for the status. |
134
+ | `provenance_reference_duration_delta_seconds` | float or blank | Duration delta to a referenced historical file. |
135
+ | `notes` | string or blank | Human-readable evidence or qualification. |
136
+
137
+ Blank provenance values mean that the field is not documented or not
138
+ applicable in the current release. A blank must not be promoted to a verified
139
+ relationship.
140
+
141
+ Observed provenance statuses include:
142
+
143
+ - `legacy_match_verified`
144
+ - `legacy_aliases_verified`
145
+ - `legacy_duplicate_removed`
146
+ - `legacy_candidates_rejected`
147
+ - `direct_root_upload`
148
+
149
+ Observed evidence methods include:
150
+
151
+ - `blob_identity`
152
+ - `visual_continuity`
153
+ - `visual_comparison`
154
+ - `commit_history`
155
+ - `manual_confirmation`
156
+ - `blob_identity_and_physical_date`
157
+
158
+ New enumerated values must be documented here before use.
159
+
160
+ ## Missing-Value Rules
161
+
162
+ - Blank means unknown, not documented, or not applicable according to the field
163
+ description.
164
+ - Blank numeric values must remain blank; they are not zero.
165
+ - Blank booleans must remain blank; they are not `false`.
166
+ - Uncertain dates and times must not be reconstructed from unsupported clues.
167
+ - Pre-standard and legacy metadata may be less complete and must carry a
168
+ collection-tier distinction when formally indexed.
169
+
170
+ ## Required Validation
171
+
172
+ Before publication, the validator must confirm:
173
+
174
+ - unique `record_id`, `file_name`, and nonblank `hub_xet_hash`
175
+ - canonical paths remain directly under `Standard_Time_Lapses/`
176
+ - one consistent semicolon convention for multi-value fields
177
+ - valid dates, times, and dimensions
178
+ - complete core encoded-video metadata for canonical rows
179
+ - orientation agrees with stored width and height
180
+ - canonical metadata paths match the canonical Viewer records
181
+ - every active standard and pre-standard metadata path resolves to a published
182
+ repository file
183
+ - repository media absent from an active index is reported explicitly rather
184
+ than silently treated as released data
185
+ - material lacking the necessary ownership or provenance clearance is absent
186
+ from both active indexes
187
+
188
+ Run:
189
+
190
+ ```bash
191
+ python tools/validate_metadata.py metadata.csv
192
+ ```
193
+
194
+ Rebuild the v0.2 index from its pinned 335-row source and audited additions:
195
+
196
+ ```bash
197
+ python tools/repair_metadata.py source_metadata.csv metadata.csv \
198
+ --additions tools/metadata_additions_v0.2.csv
199
+ ```
VALIDATION.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Validation Report
2
+
3
+ ## Scope
4
+
5
+ Release candidate metadata was compared with:
6
+
7
+ - source commit `339e6149de130cbe2d001f7a0e5247872bc788ec`
8
+ - all 335 rows in the pinned source `metadata.csv`
9
+ - 3 previously unindexed direct Standard files
10
+ - all 465 rows in the corresponding base Dataset Viewer snapshot
11
+ - the complete PR-side repository inventory
12
+ - the revised 129-row active pre-standard index
13
+
14
+ The full archive was not downloaded. For the three added Standard records, the
15
+ local inbox files were read without modification to extract container and
16
+ stream metadata, and their complete SHA-256 hashes were verified against the
17
+ current Hub LFS identities. The excluded local holding was not uploaded, copied
18
+ into the release candidate, or represented by an active metadata row.
19
+
20
+ ## Result
21
+
22
+ **PASS — zero structural validation errors**
23
+
24
+ | Check | Result |
25
+ | --- | ---: |
26
+ | Canonical metadata rows | 338 |
27
+ | Metadata columns | 29 |
28
+ | Unique `record_id` values | 338 |
29
+ | Unique canonical paths | 338 |
30
+ | Unique nonblank content hashes | 338 |
31
+ | Canonical repository paths matched | 338/338 |
32
+ | Direct standard MP4 files | 338 |
33
+ | Standard files pending metadata ingestion | 0 |
34
+ | Published pre-standard MP4 files | 129 |
35
+ | Active pre-standard metadata rows | 129 |
36
+ | Missing active metadata targets | 0 |
37
+ | Pipe separators remaining in canonical tool/media fields | 0 |
38
+ | Stored-orientation conflicts | 0 |
39
+ | Duplicate canonical content hashes | 0 |
40
+
41
+ ## Audited statistics
42
+
43
+ - Canonical playback duration: 40.46 hours
44
+ - Median canonical playback duration: 340.955 seconds
45
+ - Canonical indexed size: 1.647 TB decimal
46
+ - Stored orientation: 336 portrait, 2 landscape
47
+ - Audio streams: 334 present, 4 absent
48
+ - Unknown canonical finish times: 33
49
+
50
+ ## Outstanding warnings
51
+
52
+ 1. All 129 active pre-standard rows lack duration and core technical metadata.
53
+ 2. Most canonical masters retain audio; rights and privacy review remains
54
+ necessary.
55
+ 3. Encoded frame rate is playback rate and cannot be used as original
56
+ drawing-time sampling.
57
+ 4. The 2012–2016 layer has no public video payload at this snapshot.
58
+ 5. No leakage-safe train/validation/test partition has been defined.
59
+
60
+ ## Reproduction
61
+
62
+ Generate the candidate canonical index:
63
+
64
+ ```bash
65
+ python tools/repair_metadata.py source_metadata.csv metadata.csv \
66
+ --additions tools/metadata_additions_v0.2.csv
67
+ ```
68
+
69
+ Validate the canonical index:
70
+
71
+ ```bash
72
+ python tools/validate_metadata.py metadata.csv
73
+ ```
74
+
75
+ Use a Viewer snapshot only when it was built from the same metadata revision:
76
+
77
+ ```bash
78
+ python tools/validate_metadata.py metadata.csv --viewer-json viewer_rows.json
79
+ ```
80
+
81
+ For a repository-inventory check, also provide the active pre-standard index
82
+ and a JSON list of repository paths:
83
+
84
+ ```bash
85
+ python tools/validate_metadata.py metadata.csv \
86
+ --pre-standard-metadata Pre_Standard_Time_Lapses/metadata.csv \
87
+ --repo-files-json repo_files.json
88
+ ```
89
+
90
+ The available `viewer_rows.json` records the pinned base Viewer state. It is an
91
+ historical audit input, not part of the proposed upload, and is expected to
92
+ differ from the revised indexes until the Viewer rebuilds.
93
+
94
+ `repo_files.json` is an audit input captured from the pinned PR repository
95
+ inventory; it is not part of the proposed repository upload.
VIEWER_MIGRATION.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset Viewer Migration
2
+
3
+ ## Goal
4
+
5
+ Expose canonical and pre-standard recordings as separate Hub configurations so
6
+ users do not mistake metadata-incomplete historical material for canonical
7
+ standard data.
8
+
9
+ ## Why this is not applied in v0.2.0
10
+
11
+ The current repository places canonical MP4 files directly in
12
+ `Standard_Time_Lapses/` and supporting provenance holdings beneath
13
+ `Standard_Time_Lapses/Provenance/`. A broad `data_dir` configuration could
14
+ therefore ingest noncanonical provenance videos.
15
+
16
+ Hugging Face supports multiple configurations and folder-local video metadata,
17
+ but the exact direct-file glob and metadata discovery behavior should be tested
18
+ through a Hub pull request before changing the public default configuration.
19
+
20
+ ## Proposed pull-request test
21
+
22
+ 1. Add a folder-local canonical metadata file whose `file_name` values are
23
+ relative to `Standard_Time_Lapses/`.
24
+ 2. Add a folder-local pre-standard metadata file with explicit
25
+ `collection_tier = pre_standard` and `is_canonical = false`.
26
+ 3. Add two README configurations:
27
+ - `canonical` — default, direct MP4 files only
28
+ - `pre_standard` — separate historical subset
29
+ 4. Use a direct-file glob for canonical MP4 files so the `Provenance/` subtree
30
+ is excluded.
31
+ 5. Confirm the PR preview reports the exact active-index counts, currently 338
32
+ canonical and 129 pre-standard rows, with zero provenance videos and zero
33
+ unindexed direct files.
34
+ 6. Confirm folder-local metadata is attached to every expected row.
35
+ 7. Merge only after Viewer and Parquet generation succeed.
36
+
37
+ ## Candidate YAML for PR testing
38
+
39
+ This block is a test proposal, not the current card configuration:
40
+
41
+ ```yaml
42
+ configs:
43
+ - config_name: canonical
44
+ default: true
45
+ data_dir: Standard_Time_Lapses
46
+ data_files:
47
+ - split: archive
48
+ path: "*.mp4"
49
+ drop_labels: true
50
+ - config_name: pre_standard
51
+ data_dir: Pre_Standard_Time_Lapses
52
+ data_files:
53
+ - split: archive
54
+ path: "*.mp4"
55
+ drop_labels: true
56
+ ```
57
+
58
+ If folder-local metadata is not discovered with the direct-file glob, do not
59
+ broaden the glob. Instead, create explicit Parquet manifests for the two
60
+ configurations so row membership is unambiguous.
61
+
62
+ ## Split terminology
63
+
64
+ Use `archive` rather than `train` if supported by the Viewer build. Neither
65
+ configuration should imply an official machine-learning evaluation split.
metadata.csv CHANGED
The diff for this file is too large to render. See raw diff
 
tools/metadata_additions_v0.2.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ "file_name","date","time","tool","medium","support","dimensions","duration_seconds","width_px","height_px","orientation","encoded_frame_rate","video_codec","pixel_format","container","has_audio","hub_xet_hash","original_filename","provenance_status","legacy_provenance_path","legacy_related_references","evidence_method","provenance_reference_duration_delta_seconds","size_bytes","notes"
2
+ "Standard_Time_Lapses/2026-08-09.1601.BallpointPen.Ink.Paper.9x12.mp4","2026-08-09","16:01","BallpointPen","Ink","Paper","9x12","954.523","2160","3840","portrait","60","h264","yuv420p","mp4","True","197b061a90e85ff746383c0c5418e192520b66121580a0d4563ce39c0fd05b0c","2026-08-09.1601.BallpointPen.Ink.Paper.9x12.mp4","direct_root_upload","","","commit_history","","12486472605","Added directly in Hub commit 7bc09318; complete payload replaced an incomplete upload in commit 87efa084; local inbox SHA-256 matches the current Hub LFS identity."
3
+ "Standard_Time_Lapses/2026-08-10.0921.BallpointPen.Ink.Paper.9x12.mp4","2026-08-10","09:21","BallpointPen","Ink","Paper","9x12","1131.523","2160","3840","portrait","60","h264","yuv420p","mp4","True","00092a669ea61049135e9764c6e67f6d99b0dd7f65d8d20ec932917906a92862","2026-08-10.0921.BallpointPen.Ink.Paper.9x12.mp4","direct_root_upload","","","commit_history","","14803829762","Added directly in Hub commit 7bc09318; local inbox SHA-256 matches the current Hub LFS identity."
4
+ "Standard_Time_Lapses/2026-08-10.1201.BallpointPen.Ink.Paper.9x12.mp4","2026-08-10","12:01","BallpointPen","Ink","Paper","9x12","81.566","2160","3840","portrait","60","h264","yuv420p","mp4","True","c6bca64dfcda4d8a63e4827e9a56ca9e1c87faef31646aa042389c84655c38d5","2026-08-10.1201.BallpointPen.Ink.Paper.9x12.mp4","direct_root_upload","","","commit_history","","1087300262","Added directly in Hub commit 7bc09318; local inbox SHA-256 matches the current Hub LFS identity."
tools/repair_metadata.py ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Create the v0.2 canonical metadata index from the pinned v0.1 index.
3
+
4
+ The transform is intentionally conservative. It adds fields that can be
5
+ derived without reviewing video content, normalizes multi-value separators,
6
+ and does not infer missing provenance or acquisition facts. Validated records
7
+ published after the pinned source index can be supplied through an explicit
8
+ additions CSV with the same source schema.
9
+ """
10
+
11
+ from __future__ import annotations
12
+
13
+ import argparse
14
+ import csv
15
+ import hashlib
16
+ import json
17
+ from pathlib import Path
18
+
19
+
20
+ ADDED_FIELDS = [
21
+ "record_id",
22
+ "collection_tier",
23
+ "is_canonical",
24
+ "acquisition_protocol_version",
25
+ ]
26
+
27
+
28
+ def stable_record_id(file_name: str) -> str:
29
+ digest = hashlib.sha256(
30
+ f"time-lapse-artifacts:{file_name}".encode("utf-8")
31
+ ).hexdigest()
32
+ return f"tla-{digest[:16]}"
33
+
34
+
35
+ def normalize_multi_value(value: str) -> str:
36
+ """Normalize legacy pipe/semicolon lists as ordered unique values."""
37
+ if not value:
38
+ return ""
39
+ seen: set[str] = set()
40
+ values: list[str] = []
41
+ for part in value.replace("|", ";").split(";"):
42
+ item = part.strip()
43
+ if item and item not in seen:
44
+ seen.add(item)
45
+ values.append(item)
46
+ return ";".join(values)
47
+
48
+
49
+ def repair(
50
+ input_csv: Path,
51
+ output_csv: Path,
52
+ additions_csv: Path | None = None,
53
+ ) -> dict[str, object]:
54
+ with input_csv.open("r", encoding="utf-8-sig", newline="") as handle:
55
+ reader = csv.DictReader(handle)
56
+ if reader.fieldnames is None:
57
+ raise ValueError("metadata file has no header")
58
+ source_fields = list(reader.fieldnames)
59
+ rows = list(reader)
60
+
61
+ source_row_count = len(rows)
62
+ additions_row_count = 0
63
+ if additions_csv:
64
+ with additions_csv.open("r", encoding="utf-8-sig", newline="") as handle:
65
+ additions_reader = csv.DictReader(handle)
66
+ if additions_reader.fieldnames is None:
67
+ raise ValueError("additions file has no header")
68
+ additions_fields = list(additions_reader.fieldnames)
69
+ if additions_fields != source_fields:
70
+ raise ValueError("additions columns must exactly match the source schema")
71
+ additions = list(additions_reader)
72
+ additions_row_count = len(additions)
73
+ rows.extend(additions)
74
+
75
+ required = {"file_name", "tool", "medium", "hub_xet_hash"}
76
+ missing = sorted(required.difference(source_fields))
77
+ if missing:
78
+ raise ValueError(f"metadata file is missing required fields: {missing}")
79
+
80
+ output_fields = [source_fields[0], *ADDED_FIELDS, *source_fields[1:]]
81
+ changed_tool = 0
82
+ changed_medium = 0
83
+
84
+ for row in rows:
85
+ old_tool = row.get("tool", "")
86
+ old_medium = row.get("medium", "")
87
+ row["tool"] = normalize_multi_value(old_tool)
88
+ row["medium"] = normalize_multi_value(old_medium)
89
+ changed_tool += row["tool"] != old_tool
90
+ changed_medium += row["medium"] != old_medium
91
+
92
+ row["record_id"] = stable_record_id(row["file_name"])
93
+ row["collection_tier"] = "standard"
94
+ row["is_canonical"] = "true"
95
+ row["acquisition_protocol_version"] = "standard-2025-07-15"
96
+
97
+ record_ids = [row["record_id"] for row in rows]
98
+ file_names = [row["file_name"] for row in rows]
99
+ hashes = [row["hub_xet_hash"] for row in rows if row["hub_xet_hash"]]
100
+ if len(record_ids) != len(set(record_ids)):
101
+ raise ValueError("generated record_id values are not unique")
102
+ if len(file_names) != len(set(file_names)):
103
+ raise ValueError("file_name values are not unique")
104
+ if len(hashes) != len(set(hashes)):
105
+ raise ValueError("hub_xet_hash values are not unique")
106
+
107
+ output_csv.parent.mkdir(parents=True, exist_ok=True)
108
+ with output_csv.open("w", encoding="utf-8", newline="") as handle:
109
+ writer = csv.DictWriter(handle, fieldnames=output_fields, lineterminator="\n")
110
+ writer.writeheader()
111
+ writer.writerows(rows)
112
+
113
+ return {
114
+ "rows": len(rows),
115
+ "source_rows": source_row_count,
116
+ "addition_rows": additions_row_count,
117
+ "columns_before": len(source_fields),
118
+ "columns_after": len(output_fields),
119
+ "tool_values_normalized": changed_tool,
120
+ "medium_values_normalized": changed_medium,
121
+ "unique_record_ids": len(set(record_ids)),
122
+ "unique_file_names": len(set(file_names)),
123
+ "unique_nonempty_hashes": len(set(hashes)),
124
+ }
125
+
126
+
127
+ def main() -> None:
128
+ parser = argparse.ArgumentParser()
129
+ parser.add_argument("input_csv", type=Path)
130
+ parser.add_argument("output_csv", type=Path)
131
+ parser.add_argument("--additions", type=Path)
132
+ parser.add_argument("--summary", type=Path)
133
+ args = parser.parse_args()
134
+
135
+ summary = repair(args.input_csv, args.output_csv, args.additions)
136
+ rendered = json.dumps(summary, indent=2, sort_keys=True)
137
+ if args.summary:
138
+ args.summary.parent.mkdir(parents=True, exist_ok=True)
139
+ args.summary.write_text(rendered + "\n", encoding="utf-8")
140
+ print(rendered)
141
+
142
+
143
+ if __name__ == "__main__":
144
+ main()
tools/validate_metadata.py ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Validate the v0.2 active indexes and optional Viewer/repository snapshots."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import csv
8
+ import json
9
+ import re
10
+ import statistics
11
+ import sys
12
+ from collections import Counter
13
+ from pathlib import Path
14
+ from urllib.parse import unquote, urlparse
15
+
16
+
17
+ RECORD_ID_RE = re.compile(r"^tla-[0-9a-f]{16}$")
18
+ DATE_RE = re.compile(r"^\d{4}-\d{2}-\d{2}$")
19
+ TIME_RE = re.compile(r"^(?:[01]\d|2[0-3]):[0-5]\d$")
20
+ DIMENSIONS_RE = re.compile(r"^\d+(?:\.\d+)?x\d+(?:\.\d+)?$")
21
+ DIRECT_STANDARD_RE = re.compile(r"^Standard_Time_Lapses/[^/]+\.mp4$")
22
+ DIRECT_PRE_STANDARD_RE = re.compile(r"^Pre_Standard_Time_Lapses/[^/]+\.mp4$")
23
+
24
+ REQUIRED_FIELDS = [
25
+ "file_name",
26
+ "record_id",
27
+ "collection_tier",
28
+ "is_canonical",
29
+ "acquisition_protocol_version",
30
+ "date",
31
+ "time",
32
+ "tool",
33
+ "medium",
34
+ "support",
35
+ "dimensions",
36
+ "duration_seconds",
37
+ "width_px",
38
+ "height_px",
39
+ "orientation",
40
+ "encoded_frame_rate",
41
+ "video_codec",
42
+ "pixel_format",
43
+ "container",
44
+ "has_audio",
45
+ "hub_xet_hash",
46
+ "size_bytes",
47
+ ]
48
+
49
+ PRE_STANDARD_REQUIRED_FIELDS = [
50
+ "file_name",
51
+ "date",
52
+ "time",
53
+ "tool",
54
+ "medium",
55
+ "support",
56
+ "dimensions",
57
+ "original_filename",
58
+ ]
59
+
60
+
61
+ def viewer_path(row: dict[str, object]) -> str:
62
+ video = row.get("video")
63
+ if not isinstance(video, dict) or not isinstance(video.get("src"), str):
64
+ return ""
65
+ path = unquote(urlparse(video["src"]).path)
66
+ marker = "/resolve/"
67
+ if marker not in path:
68
+ return ""
69
+ after_revision = path.split(marker, 1)[1]
70
+ parts = after_revision.split("/", 1)
71
+ return parts[1] if len(parts) == 2 else ""
72
+
73
+
74
+ def load_csv(path: Path) -> tuple[list[str], list[dict[str, str]]]:
75
+ with path.open("r", encoding="utf-8-sig", newline="") as handle:
76
+ reader = csv.DictReader(handle)
77
+ if reader.fieldnames is None:
78
+ raise ValueError("metadata file has no header")
79
+ return list(reader.fieldnames), list(reader)
80
+
81
+
82
+ def validate(
83
+ metadata_csv: Path,
84
+ viewer_json: Path | None,
85
+ pre_standard_metadata: Path | None,
86
+ repo_files_json: Path | None,
87
+ ) -> dict[str, object]:
88
+ fields, rows = load_csv(metadata_csv)
89
+ errors: list[str] = []
90
+ warnings: list[str] = []
91
+ pre_standard_rows: list[dict[str, str]] = []
92
+ repo_counts: dict[str, int] = {}
93
+ repo_unindexed_standard: list[str] = []
94
+ repo_unindexed_pre_standard: list[str] = []
95
+
96
+ missing_fields = [field for field in REQUIRED_FIELDS if field not in fields]
97
+ if missing_fields:
98
+ errors.append(f"missing required columns: {missing_fields}")
99
+
100
+ def duplicate_values(field: str) -> list[str]:
101
+ values = [row.get(field, "") for row in rows if row.get(field, "")]
102
+ return sorted(value for value, count in Counter(values).items() if count > 1)
103
+
104
+ for field in ("file_name", "record_id", "hub_xet_hash"):
105
+ duplicates = duplicate_values(field)
106
+ if duplicates:
107
+ errors.append(f"duplicate {field} values: {duplicates[:5]}")
108
+
109
+ for index, row in enumerate(rows, start=2):
110
+ label = row.get("file_name") or f"CSV row {index}"
111
+ if not row.get("file_name", "").startswith("Standard_Time_Lapses/"):
112
+ errors.append(f"{label}: canonical path is outside Standard_Time_Lapses")
113
+ if not RECORD_ID_RE.fullmatch(row.get("record_id", "")):
114
+ errors.append(f"{label}: invalid record_id")
115
+ if row.get("collection_tier") != "standard":
116
+ errors.append(f"{label}: collection_tier must be standard")
117
+ if row.get("is_canonical", "").lower() != "true":
118
+ errors.append(f"{label}: is_canonical must be true")
119
+ if row.get("acquisition_protocol_version") != "standard-2025-07-15":
120
+ errors.append(f"{label}: unexpected acquisition protocol version")
121
+ if not DATE_RE.fullmatch(row.get("date", "")):
122
+ errors.append(f"{label}: invalid or missing finish date")
123
+ if row.get("time") and not TIME_RE.fullmatch(row["time"]):
124
+ errors.append(f"{label}: invalid finish time")
125
+ if not DIMENSIONS_RE.fullmatch(row.get("dimensions", "")):
126
+ errors.append(f"{label}: invalid dimensions")
127
+ for field in ("tool", "medium"):
128
+ value = row.get(field, "")
129
+ if "|" in value:
130
+ errors.append(f"{label}: {field} still uses a pipe separator")
131
+ if value and any(not item.strip() for item in value.split(";")):
132
+ errors.append(f"{label}: {field} contains an empty list item")
133
+ for field in (
134
+ "duration_seconds",
135
+ "width_px",
136
+ "height_px",
137
+ "orientation",
138
+ "encoded_frame_rate",
139
+ "video_codec",
140
+ "pixel_format",
141
+ "container",
142
+ "has_audio",
143
+ "hub_xet_hash",
144
+ "size_bytes",
145
+ ):
146
+ if not row.get(field, ""):
147
+ errors.append(f"{label}: canonical technical field {field} is blank")
148
+
149
+ try:
150
+ width = int(row.get("width_px", ""))
151
+ height = int(row.get("height_px", ""))
152
+ expected_orientation = (
153
+ "portrait" if height > width else "landscape" if width > height else "square"
154
+ )
155
+ if row.get("orientation") != expected_orientation:
156
+ errors.append(
157
+ f"{label}: orientation {row.get('orientation')!r} conflicts with {width}x{height}"
158
+ )
159
+ except ValueError:
160
+ pass
161
+
162
+ if pre_standard_metadata:
163
+ pre_fields, pre_standard_rows = load_csv(pre_standard_metadata)
164
+ missing_pre_fields = [
165
+ field for field in PRE_STANDARD_REQUIRED_FIELDS if field not in pre_fields
166
+ ]
167
+ if missing_pre_fields:
168
+ errors.append(
169
+ f"pre-standard metadata is missing required columns: {missing_pre_fields}"
170
+ )
171
+ pre_names = [row.get("file_name", "") for row in pre_standard_rows]
172
+ duplicate_pre_names = sorted(
173
+ value for value, count in Counter(pre_names).items() if value and count > 1
174
+ )
175
+ if duplicate_pre_names:
176
+ errors.append(
177
+ f"duplicate pre-standard file_name values: {duplicate_pre_names[:5]}"
178
+ )
179
+ for index, row in enumerate(pre_standard_rows, start=2):
180
+ name = row.get("file_name", "")
181
+ if not name or "/" in name or "\\" in name or not name.endswith(".mp4"):
182
+ errors.append(
183
+ f"pre-standard CSV row {index}: file_name must be a direct MP4 basename"
184
+ )
185
+
186
+ if repo_files_json:
187
+ loaded_paths = json.loads(repo_files_json.read_text(encoding="utf-8"))
188
+ if not isinstance(loaded_paths, list) or not all(
189
+ isinstance(path, str) for path in loaded_paths
190
+ ):
191
+ errors.append("repository snapshot must be a JSON list of paths")
192
+ else:
193
+ repo_paths = set(loaded_paths)
194
+ standard_files = {path for path in repo_paths if DIRECT_STANDARD_RE.fullmatch(path)}
195
+ pre_standard_files = {
196
+ path for path in repo_paths if DIRECT_PRE_STANDARD_RE.fullmatch(path)
197
+ }
198
+ provenance_files = {
199
+ path
200
+ for path in repo_paths
201
+ if path.startswith("Standard_Time_Lapses/Provenance/")
202
+ and path.endswith(".mp4")
203
+ }
204
+ canonical_paths = {row.get("file_name", "") for row in rows}
205
+ active_pre_paths = {
206
+ f"Pre_Standard_Time_Lapses/{row.get('file_name', '')}"
207
+ for row in pre_standard_rows
208
+ if row.get("file_name")
209
+ }
210
+ missing_canonical_targets = sorted(canonical_paths.difference(repo_paths))
211
+ missing_pre_targets = sorted(active_pre_paths.difference(repo_paths))
212
+ repo_unindexed_standard = sorted(standard_files.difference(canonical_paths))
213
+ repo_unindexed_pre_standard = sorted(
214
+ pre_standard_files.difference(active_pre_paths)
215
+ )
216
+ if missing_canonical_targets:
217
+ errors.append(
218
+ f"{len(missing_canonical_targets)} canonical metadata paths have no repository file"
219
+ )
220
+ if missing_pre_targets:
221
+ errors.append(
222
+ f"{len(missing_pre_targets)} active pre-standard metadata paths have no repository file"
223
+ )
224
+ if repo_unindexed_pre_standard:
225
+ errors.append(
226
+ f"{len(repo_unindexed_pre_standard)} published pre-standard files are absent from the active index"
227
+ )
228
+ if repo_unindexed_standard:
229
+ warnings.append(
230
+ f"{len(repo_unindexed_standard)} direct standard files are pending metadata ingestion"
231
+ )
232
+ repo_counts = {
233
+ "repository_files": len(repo_paths),
234
+ "direct_standard_video_files": len(standard_files),
235
+ "direct_pre_standard_video_files": len(pre_standard_files),
236
+ "provenance_video_files": len(provenance_files),
237
+ "missing_canonical_metadata_targets": len(missing_canonical_targets),
238
+ "missing_pre_standard_metadata_targets": len(missing_pre_targets),
239
+ }
240
+
241
+ viewer_rows: list[dict[str, object]] = []
242
+ viewer_counts: dict[str, int] = {}
243
+ if viewer_json:
244
+ loaded = json.loads(viewer_json.read_text(encoding="utf-8"))
245
+ if not isinstance(loaded, list):
246
+ errors.append("Viewer snapshot must be a JSON list")
247
+ else:
248
+ viewer_rows = [row for row in loaded if isinstance(row, dict)]
249
+ paths = [viewer_path(row) for row in viewer_rows]
250
+ tiers = Counter(path.split("/", 1)[0] for path in paths if "/" in path)
251
+ viewer_counts = dict(sorted(tiers.items()))
252
+
253
+ canonical_viewer = {
254
+ viewer_path(row): row
255
+ for row in viewer_rows
256
+ if viewer_path(row).startswith("Standard_Time_Lapses/")
257
+ }
258
+ metadata_paths = {row["file_name"] for row in rows}
259
+ missing_from_viewer = sorted(metadata_paths.difference(canonical_viewer))
260
+ missing_from_metadata = sorted(set(canonical_viewer).difference(metadata_paths))
261
+ if missing_from_viewer:
262
+ errors.append(
263
+ f"{len(missing_from_viewer)} metadata paths are absent from the Viewer snapshot"
264
+ )
265
+ if missing_from_metadata:
266
+ errors.append(
267
+ f"{len(missing_from_metadata)} canonical Viewer paths are absent from metadata.csv"
268
+ )
269
+
270
+ by_path = {row["file_name"]: row for row in rows}
271
+ for path, viewer_row in canonical_viewer.items():
272
+ metadata_row = by_path.get(path)
273
+ if not metadata_row:
274
+ continue
275
+ for field in (
276
+ "date",
277
+ "time",
278
+ "support",
279
+ "dimensions",
280
+ "orientation",
281
+ "video_codec",
282
+ "pixel_format",
283
+ "container",
284
+ "hub_xet_hash",
285
+ ):
286
+ left = metadata_row.get(field, "")
287
+ right_value = viewer_row.get(field)
288
+ right = "" if right_value is None else str(right_value)
289
+ if left != right:
290
+ errors.append(f"{path}: {field} differs from Viewer snapshot")
291
+
292
+ pre_standard_viewer_rows = [
293
+ row
294
+ for row in viewer_rows
295
+ if viewer_path(row).startswith("Pre_Standard_Time_Lapses/")
296
+ ]
297
+ pre_standard_without_technical = sum(
298
+ row.get("duration_seconds") is None for row in pre_standard_viewer_rows
299
+ )
300
+ if pre_standard_without_technical:
301
+ warnings.append(
302
+ f"{pre_standard_without_technical} pre-standard Viewer rows lack duration metadata"
303
+ )
304
+
305
+ durations = [float(row["duration_seconds"]) for row in rows if row.get("duration_seconds")]
306
+ sizes = [int(row["size_bytes"]) for row in rows if row.get("size_bytes")]
307
+ orientations = Counter(row.get("orientation", "") or "<missing>" for row in rows)
308
+ audio = Counter(row.get("has_audio", "") or "<missing>" for row in rows)
309
+
310
+ if audio.get("True", 0) + audio.get("true", 0) > 0:
311
+ warnings.append("canonical masters commonly retain audio; rights/privacy review is still required")
312
+ warnings.append(
313
+ "encoded_frame_rate is playback rate, not original drawing-time sampling"
314
+ )
315
+
316
+ return {
317
+ "ok": not errors,
318
+ "errors": errors,
319
+ "warnings": warnings,
320
+ "statistics": {
321
+ "metadata_rows": len(rows),
322
+ "metadata_columns": len(fields),
323
+ "viewer_rows": len(viewer_rows),
324
+ "viewer_collection_counts": viewer_counts,
325
+ "pre_standard_metadata_rows": len(pre_standard_rows),
326
+ "repository_inventory": repo_counts,
327
+ "unindexed_direct_standard_files": repo_unindexed_standard,
328
+ "unindexed_direct_pre_standard_files": repo_unindexed_pre_standard,
329
+ "unique_record_ids": len({row.get("record_id", "") for row in rows}),
330
+ "unique_nonempty_hashes": len(
331
+ {row.get("hub_xet_hash", "") for row in rows if row.get("hub_xet_hash")}
332
+ ),
333
+ "unknown_finish_times": sum(not row.get("time") for row in rows),
334
+ "orientation_counts": dict(sorted(orientations.items())),
335
+ "audio_counts": dict(sorted(audio.items())),
336
+ "playback_hours": round(sum(durations) / 3600, 2),
337
+ "median_playback_seconds": round(statistics.median(durations), 3),
338
+ "indexed_size_tb_decimal": round(sum(sizes) / 1_000_000_000_000, 3),
339
+ },
340
+ }
341
+
342
+
343
+ def main() -> None:
344
+ parser = argparse.ArgumentParser()
345
+ parser.add_argument("metadata_csv", type=Path)
346
+ parser.add_argument("--viewer-json", type=Path)
347
+ parser.add_argument("--pre-standard-metadata", type=Path)
348
+ parser.add_argument("--repo-files-json", type=Path)
349
+ parser.add_argument("--output", type=Path)
350
+ args = parser.parse_args()
351
+
352
+ report = validate(
353
+ args.metadata_csv,
354
+ args.viewer_json,
355
+ args.pre_standard_metadata,
356
+ args.repo_files_json,
357
+ )
358
+ rendered = json.dumps(report, indent=2, sort_keys=True)
359
+ if args.output:
360
+ args.output.parent.mkdir(parents=True, exist_ok=True)
361
+ args.output.write_text(rendered + "\n", encoding="utf-8")
362
+ print(rendered)
363
+ if not report["ok"]:
364
+ sys.exit(1)
365
+
366
+
367
+ if __name__ == "__main__":
368
+ main()