Begin verified five-sequence source ingest (#30)
Browse files- Begin verified five-sequence source ingest (f25ebfa1c7c658c29cdac0933c9398540c2e1d68)
- Upload 2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4 (2/27) (5a1beaa4a4a5b13fdf82e504fa9d4e226d9bb8c9)
- Upload 2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4 (3/27) (d39e094d694a772e097525447d6e5a862d861d2e)
- Upload 2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4 (4/27) (03a9279cc46d69fd47b20330222653ff6a7a24f7)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4 (5/27) (2f5dad27d2575919a433a860e883d42c24d495c6)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4 (6/27) (6fa573d28604d582fe8075a3fb713abc446cac37)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4 (7/27) (b9635d2095d86a0418f9435ffbe5d5e87d842bf4)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4 (8/27) (15430df29f1111c0cc49be05043aed68f4ce9d61)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4 (9/27) (2ee04daa8a72d0c3e4861fa94bb2ac37e9600b1f)
- Upload 2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4 (10/27) (35a2b573aebe23e669ac16f48dfac20d54403bd5)
- Upload 2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4 (11/27) (e7fa9a67d5c2b713c97842b4f4a9637ed2d655b7)
- Upload 2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4 (12/27) (d01dc365b0cc9295f4bb1562f2187351d9998cee)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4 (13/27) (97ce434f679dd88fd52c966938def1cfde9d9f0a)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4 (14/27) (30e7e899985f2c98804d07c5b12bbce406b33890)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4 (15/27) (d28535e511b4489dea4a7368f9c06af7a964aa3c)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4 (16/27) (ae06effb399335e06243f98f3458bbba63d59aa4)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4 (17/27) (3009bc3fddcf41e608dca89f2c7cea040da2d5d0)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4 (18/27) (9629079fbb6ac15e34c320635b21add227ba2840)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4 (19/27) (f7f5eb0d6154ee352e7fe925a8dacdac28344350)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4 (20/27) (2fe6820493a61069bf209e65f23b84b54f51ce6a)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4 (21/27) (96955482cde4831ee4b510cedae6eae62374b914)
- Upload 2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4 (22/27) (b3cdcfda32fdd29a94ac320ded41ad306dcfd213)
- Upload InShot_20260824_015833657.mp4 (23/27) (9f0fd47f40e38f274790b29e3a5b75916cfc5097)
- Upload InShot_20260824_063924874.mp4 (24/27) (a71961bca55029c39a96315a1852b1750846ac1a)
- Upload InShot_20260825_010657858.mp4 (25/27) (fc61e97f46e9b3d8447effc78c66bbf4add97f7a)
- Upload InShot_20260825_020840899.mp4 (26/27) (10f2dab0d2b44c5d3c44d4b618440826252e9e4d)
- Upload InShot_20260825_022746877.mp4 (27/27) (bb4160045cae21a71bf360278549398dc9d2a028)
- Add five-sequence metadata and provenance documentation (8a21015210c19936d3b18175ae3f4061ae1e5d8d)
- Add revision-pinned fragment sequence relationships (abcc0c82bfeb30eed1314990df383318795574fe)
Files changed (40)
- Archive_Specifications.md+11-6
- CHANGELOG.md+26
- Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md+27-15
- README.md+47-19
- SCHEMA.md+59-2
- Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec01.mp4Added+3
- Standard_Time_Lapses/2026-08-24.0157.BallpointPen.Ink.Paper.9x12.Rec02.mp4Added+3
- Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec01.mp4Added+3
- Standard_Time_Lapses/2026-08-24.0638.BallpointPen.Ink.Paper.12x9.Rec02.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec01.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec02.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec03.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec04.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec05.mp4Added+3
- Standard_Time_Lapses/2026-08-25.1941.BallpointPen.Ink.Paper.9x12.Rec06.mp4Added+3
- Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec01.mp4Added+3
- Standard_Time_Lapses/2026-08-26.1229.BallpointPen.Ink.Paper.9x12.Rec02.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec01.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec02.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec03.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec04.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec05.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec06.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec07.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec08.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec09.mp4Added+3
- Standard_Time_Lapses/2026-08-27.0856.BallpointPen.Ink.Paper.9x12.Rec10.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_015833657.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260824_063924874.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_010657858.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_020840899.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/InShot/InShot_20260825_022746877.mp4Added+3
- Standard_Time_Lapses/Provenance/2026-08-27/README.mdAdded+35
- Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csvAdded+28
- VALIDATION.md+91-23
- VIEWER_MIGRATION.md+15-7
- metadata.csv+22
- tools/capture_hub_inventory.py+179-3
- tools/test_inventory_binding.pyAdded+360
- tools/validate_fragment_relationships.pyAdded+328
41 unmodified lines424344454647484950454647484950515253545556575841 unmodified linesDo not infer a rotation, crop, or transcode solely from dimensions. Such atransformation should be asserted only when supported by provenance evidence.
### Acquisition evidence and canonical assembly
Framelapse source fragments are retained unchanged as acquisition evidence. Oneverified chronological InShot assembly remains the canonical media object foreach drawing record. Dynamic browser previews and physical-reference photographsare noncanonical access or evidence layers linked through persistent identity.### Acquisition evidence and canonical representation
Framelapse source fragments are retained unchanged as acquisition evidence. Areviewed drawing may be represented canonically either by one selectedchronological InShot assembly or by a complete, verified `RecNN` sequence ofunchanged source fragments. In fragment-sequence mode, every source file has itsown canonical metadata row while grouping, order, completeness, and derivativecoverage remain in a separate noncanonical relationship manifest. This does notchange the 29-field schema or retroactively redefine existing records. Dynamicbrowser previews and physical-reference photographs remain noncanonical accessor evidence layers linked through persistent identity.
A 2160 × 3840 portrait H.264, 30-fps InShot processing profile is documented asa candidate. It does not become a canonical protocol boundary until one complete12345678910111213141516171819202122232425262728293031# Changelog
## Unreleased — August 24–27 complete fragment-sequence ingestion
- Added 22 creator-confirmed, unchanged canonical Framelapse source fragments totaling 17,389,875,055 bytes and 3,391.699091 seconds of encoded playback.- Preserved five complete drawing sequences as ordered `RecNN` sets containing 2, 2, 6, 2, and 10 canonical fragments.- Increased active membership to 385 Standard plus 128 Pre-Standard records, or 513 total, without changing the 29-field schema or `standard-2025-07-13` protocol ID.- Added a separate 27-row, 15-field dated relationship sidecar covering the 22 canonical fragments and five unchanged noncanonical InShot derivatives.- Stored the five derivatives under the nested provenance `InShot/` directory; they remain outside both active metadata indexes, Viewer configurations, and active byte and duration totals.- Retained media-object-level `record_id` identity. This update does not add a global `work_id`, backfill historical rows, create a v3 release, or otherwise bump the dataset version.- Verified the 27 planned media additions, with no deletion or changed existing path, at immutable media-only PR revision `bb4160045cae21a71bf360278549398dc9d2a028`.- Verified all 27 relationship paths, SHA-256 values, byte sizes, Xet identities, canonical metadata joins, and exact root metadata bytes against immutable metadata-bearing PR revision `8a21015210c19936d3b18175ae3f4061ae1e5d8d`. This validation does not assert Viewer settlement or merge status.
## Unreleased — June 2026 recording-sequence filename correction
- Corrected the canonical paths of 15 existing 30 × 40 in recordings dated7 unmodified lines891011121112131415161718192018192021222324252627282951 unmodified lines8182837884858081868788899091924 unmodified lines97989992939410010110210310410598991001011061071081091101111121131141151167 unmodified lines1. **Framelapse source fragments** are acquisition evidence. Preserve them unchanged with original filename, byte size, duration, stream properties, order, and SHA-256.2. **One chronological InShot assembly** remains the canonical public media object for a drawing record.2. **Canonical representation** may be either one reviewed chronological assembly or a complete, verified `RecNN` sequence of unchanged source fragments. In fragment-sequence mode, each source file is one canonical media record and the noncanonical relationship manifest preserves grouping, order, and completeness.3. **Dynamic browser previews** are noncanonical access derivatives bound to `record_id`, integrity identity, and a pinned source revision.4. **Drawing-reference photographs** are separate noncanonical physical-state evidence linked through the sidecar only after review.
Making every Framelapse fragment a canonical row would change the archive'sunit of observation from one drawing record to an editing fragment. Thiscandidate rejects that change.The canonical index remains media-object-level. A reviewed fragment sequencemay therefore use multiple canonical rows for one drawing without adding a`work_id` or changing the 29-field schema. This does not retroactivelyreinterpret historical records or establish a new archive version. An InShotoutput not selected as canonical remains a noncanonical provenance derivative,and its source coverage must be stated explicitly.
## Current documented acquisition profile
51 unmodified linesRetain every fragment unchanged before assembly. Never rename or transcode theonly copy. Record original filename, bytes, duration, streams, and SHA-256.
### Assemble### Assemble when selected
Place fragments in observed chronological order in InShot. Apply the candidate4K/30-fps profile without presentation edits.When an assembly is intentionally selected, place fragments in observedchronological order in InShot and apply the candidate 4K/30-fps profile withoutpresentation edits. Assembly is not required for a reviewed fragment-sequenceingest.
### Verify
4 unmodified lines
### Manifest
Write one assembly manifest with `record_id`, ordered fragment identities,source/output hashes, capture and processing settings, software versions,evidence state, and explicit nulls for unresolved variables.Write one relationship manifest with canonical `record_id` values, orderedfragment identities, source/output hashes, capture and processing settings,software versions, evidence state, and explicit nulls for unresolved variables.
### Ingest
Upload only the reviewed InShot assembly as canonical record media with thenormal 29-field metadata row. Keep detailed fragment relationships in aseparate manifest. Ingest physical-reference photographs only as noncanonicallinked media with their own hashes and privacy review.For assembly mode, upload only the reviewed InShot assembly as canonical recordmedia with the normal 29-field metadata row. For fragment-sequence mode, uploadeach verified unchanged source fragment as a canonical `RecNN` record with itsnormal metadata row and keep grouping, order, completeness, and derivativecoverage in a separate noncanonical relationship manifest. InShot outputs notselected as canonical remain provenance derivatives. Ingest physical-referencephotographs only as noncanonical linked media with their own hashes and privacyreview.
### Derive
82 unmodified lines8384858686878889193 unmodified lines28328428528628728828628728828929029129129229329411 unmodified lines30630730830930931031131231331431431531631731810 unmodified lines32933033133233333433533633733833934034134234334434533734634734834934134235035135235335414 unmodified lines3693703713633723733743756 unmodified lines38238338437638538638738819 unmodified lines40840941040241141241341498 unmodified lines51351451550750850951051651751851952052152252352452552652752852953053153253353453590 unmodified lines626627628609610629630631632633103 unmodified lines73773873974074174274374474574674774874975075175275375482 unmodified lines dtype: large_string splits: - name: archive num_examples: 363 num_examples: 385- config_name: pre_standard features: - name: video193 unmodified lines
# time-lapse-artifacts
491 time-lapse recordings of one artist's traditional drawing practice acrossnearly two years (September 2024–August 23, 2026), with standardized acquisitionsince July 13, 2025. Across approximately 2.00 TB of video, the archive follows513 time-lapse recordings of one artist's traditional drawing practice acrossnearly two years (September 2024–August 27, 2026), with standardized acquisitionsince July 13, 2025. Across approximately 2.02 TB of video, the archive followsthe same artist working in physical media—including pencil, ballpoint pen,fountain pen, brush, graphite, and ink—on fixed-format paper and illustration board.The release combines 363 canonical Standard videos and 128 earlierThe release combines 385 canonical Standard videos and 128 earlierPre-Standard recordings. Every published video has a persistent record ID,content hash, byte size, and encoded-stream metadata; historical session andprovenance fields remain less complete in the Pre-Standard tier.11 unmodified linesAn earlier 2012–2016 archive of more than 8 TB also exists, consistingprimarily of uploaded 1080p drawing videos, with some livestream-derivedmaterial. It is not yet published in this dataset and is excluded from thecurrent 491-record, 2.00-TB release totals. This is an active constructioncurrent 513-record, 2.02-TB release totals. This is an active constructionrelease.
## Snapshot and Coverage
These counts describe the current `main` branch. The immutable `v0.3.0` tagThese counts describe the active construction state represented by thisrevision. The immutable `v0.3.0` tagcontains 467 rows: 338 Standard and 129 Pre-Standard. A later curator-verifiedprovenance correction promoted one distinct Standard recording from thenoncanonical unresolved subtree. A subsequent creator-verified ingestion added10 unmodified lines`Rec01`–`Rec15` order of 15 existing 30 × 40 in recordings dated June 18–30.Their media payloads, stable IDs, hashes, metadata membership, and releasecounts are unchanged.The August 24–27 fragment-sequence ingestion adds 22 unchanged canonicalFramelapse recordings across five creator-confirmed complete sequences. Fiveunchanged InShot outputs remain noncanonical derivatives in a nested provenancedirectory and are excluded from the active indexes and Viewer. A separate27-row, 15-field relationship sidecar records grouping, order, completeness,and derivative coverage. This active-construction update does not create a newversion tag, change the 29-field video schema or acquisition-protocolidentifier, backfill historical records, or introduce a global `work_id`.Two records from the 17-object ingestion and the promoted July 13 record areexplicitly documented as shortened derivatives rather than full-durationmasters.
| Collection tier | Published MP4s | Indexed rows | Date coverage | Metadata state || --- | ---: | ---: | --- | --- || `standard` | 363 direct files | 363 | 2025-07-13–2026-08-23 | Complete core technical metadata for every direct Standard file || `standard` | 385 direct files | 385 | 2025-07-13–2026-08-27 | Complete core technical metadata for every direct Standard file || `pre_standard` | 128 | 128 | 2024-09-17–2025-07-09, plus 9 unknown dates | Complete core technical metadata; historical descriptive and provenance gaps remain || Earlier archive (unpublished) | 0 public videos | 0 | Historical scope 2012–2016 | More than 8 TB held outside this release; ingestion pending |
**Current published index:** `main` contains 491 rows: 363 Standard and 128Pre-Standard. The preceding v0.1 state at revision**Current indexed state:** this revision contains 513 rows: 385 Standard and128 Pre-Standard. The preceding v0.1 state at revision`339e6149de130cbe2d001f7a0e5247872bc788ec` exposed 465 rows: 335 Standard and130 Pre-Standard. v0.2 added three previously unindexed Standard files andremoved one Pre-Standard row whose media did not meet the ownership and14 unmodified linesThe release exposes two explicit configurations so metadata-complete canonicalrecords are not silently mixed with historically less complete records:
- `canonical/archive` is the default and loads root `metadata.csv` with the 363- `canonical/archive` is the default and loads root `metadata.csv` with the 385 direct files in `Standard_Time_Lapses/`- `pre_standard/archive` loads `Pre_Standard_Time_Lapses/metadata.csv` with the 128 direct files in that folder6 unmodified lines`collection_tier = standard` and `is_canonical = true`; the Pre-Standard CSVsets `collection_tier = pre_standard` and `is_canonical = false`.
Published-index completeness is defined by the 363 rows in `canonical/archive`Published-index completeness is defined by the 385 rows in `canonical/archive`plus the 128 rows in `pre_standard/archive` and their generated Parquetexports. Hugging Face's separate column Statistics job is an auxiliary,asynchronous surface; its availability is not used to claim or reject19 unmodified lines
### `Standard_Time_Lapses/`
The directory contains 363 direct MP4 files. `metadata.csv` is their completeThe directory contains 385 direct MP4 files. `metadata.csv` is their completemachine-readable canonical index: every direct file has one validated row withcore technical metadata. Direct placement alone is not sufficient for futureadditions; metadata and release validation are required.98 unmodified lines
The acquisition protocol effective July 13, 2025 is documented in`Archive_Specifications.md`. Framelapse source fragments remain unchangedacquisition evidence, while one verified chronological InShot assembly remainsthe canonical media object for each drawing record. A documented 4K/30-fpsprocessing profile remains a candidate and does not retroactively redefineexisting records. See theacquisition evidence. A reviewed drawing may be represented canonically eitherby one selected chronological assembly or by a complete, verified `RecNN`sequence of unchanged source fragments. Grouping, order, completeness, andnoncanonical derivative coverage remain in a separate relationship manifest;the active 29-field metadata schema is unchanged. A documented 4K/30-fpsInShot processing profile remains a candidate and does not retroactivelyredefine existing records. See the[capture and ingest protocol](Physical_References/CAPTURE_AND_INGEST_PROTOCOL.md).
The dated[`fragment_sequence_relationships.csv`](Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv)sidecar has 27 rows and 15 fields: 22 canonical fragment rows across fivecomplete sequences and five noncanonical InShot derivative rows. Its`fragment_set_label` is a descriptive grouping label, not a global `work_id`.The nested derivative payloads are not included in the 513 active rows or theactive byte and duration totals.
The protocol's capture orientation and a file's stored pixel orientation aredifferent concepts. The `orientation`, `width_px`, and `height_px` metadatadescribe the published encoded file. Historical canonicalization may include a90 unmodified lines
## Access and Reproducibility
The active 491-video release contains 2,002,781,484,144 bytes of video(approximately 2.00 TB, or 1.82 TiB). Canonical files are often severalThe active 513-video release contains 2,020,171,359,199 bytes of video(approximately 2.02 TB, or 1.84 TiB). Canonical files are often severalgigabytes each, so users should select records through `metadata.csv` beforedownloading video.
103 unmodified lines- `RELEASE_MANIFEST.json` — historical v0.2.0 release-candidate manifest; it does not describe current `main` or provide checksums for the video payloads- `tools/capture_hub_inventory.py` — pinned Hub/Xet identity inventory- `tools/test_inventory_binding.py` — self-contained revision/metadata-binding regression tests- `tools/download_verified.py` — selected download and byte-integrity check- `tools/enrich_prestandard.py` — pinned Pre-Standard technical enrichment- `tools/validate_metadata.py` — cross-tier metadata and repository checks- `tools/validate_fragment_relationships.py` — dated sequence and derivative relationship checks against the pinned inventory- `Standard_Time_Lapses/Provenance/` — historical evidence and mappings- `Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv` — dated fragment-sequence and noncanonical-derivative relationship sidecar- `Standard_Time_Lapses/Provenance/2026-08-27/README.md` — scope, identity, exclusion, and revision-binding notes for the dated sidecar
## Citation
57 unmodified lines5859606162616263646566113 unmodified lines18018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423544 unmodified lines28028128228328428528628728828929029157 unmodified linesdirectly in `Standard_Time_Lapses/`. Direct placement alone does not make a filecanonical: every released canonical file must have exactly one metadata row,complete required technical fields, and the necessary rights and provenanceclearance. The canonical index contains 363 validated records and covers every MP4stored directly in `Standard_Time_Lapses/` at the pinned revision.clearance. The active-construction candidate contains 385 records. Beforepublication, it must cover every MP4 stored directly in`Standard_Time_Lapses/` at the exact reviewed revision.
The canonical index does not make provenance, unresolved, pre-standard, orlegacy files canonical.113 unmodified lines
New enumerated values must be documented here before use.
## Fragment-sequence relationship sidecar
`Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv`is a derived relationship table with one row per media object in the datedingestion. It has 27 rows and 15 fields: 22 canonical Framelapse fragmentsacross five owner-confirmed complete sequences and five noncanonical InShotderivatives. It does not add fields to either 29-field video index.
| Field | Type | Meaning || --- | --- | --- || `fragment_set_label` | string | Descriptive canonical filename stem shared by one reviewed sequence; not a global `work_id`. || `object_role` | enum | `canonical_fragment` or `noncanonical_inshot_derivative`. || `record_id` | string or blank | Persistent canonical identity; required for canonical fragments and blank for noncanonical derivatives. || `file_path` | string | Unique repository-relative MP4 path. || `sha256` | string | Ordinary byte-level SHA-256 of the represented object. || `hub_xet_hash` | string | Hugging Face Xet identity at the pinned revision; distinct from ordinary SHA-256. || `size_bytes` | integer | Exact object size in bytes. || `sequence_position` | integer or blank | Contiguous one-based position for a canonical fragment. || `sequence_count` | integer or blank | Total canonical fragment count for the sequence. || `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. || `source_record_ids` | semicolon-delimited string or blank | Ordered canonical source IDs for a derivative; blank on canonical rows. || `derivative_coverage` | enum or blank | `complete_sequence` or `partial_sequence` for a derivative; blank on canonical rows. || `evidence_state` | semicolon-delimited string | Only evidence checks actually completed for the object and relationship. || `source_hub_revision` | string | Immutable 40-hex Hub commit that permits the canonical identity and path join to be checked. || `notes` | string or blank | Literal qualifications that do not belong in the categorical fields. |
Within each fragment set, canonical positions must be unique and contiguousfrom one through `sequence_count`. A `complete_sequence` derivative must listthe full ordered canonical source sequence, and every derivative source mustbelong to the same fragment set. Derivative rows and payloads remain outsidethe canonical metadata and Viewer configurations even when stored in therepository.
For this dated sidecar, canonical-fragment evidence is exactly`owner-confirmed`, `boundary-frame-verified`, `checksum-computed`,`media-probed`, `demux-verified`, and `sampled-decode-verified`.Noncanonical-derivative evidence is exactly `sampled-frame-verified`,`duration-arithmetic-verified`, `checksum-computed`, `media-probed`,`demux-verified`, and `sampled-decode-verified`. Derivative`sequence_position` is blank, `sequence_count` equals its canonical set size,and any partial `source_record_ids` retain canonical sequence order.
`source_hub_revision` must be copied from an actual immutable remote commit; amoving branch, placeholder, or inferred value is invalid. Remote inventory,Xet-identity, and relationship-join validation remain pending until that commitexists and is checked. The captured inventory also binds the exact bytes ofthat revision's `metadata.csv`, so a local join cannot substitute metadata froma different commit. This sidecar does not introduce `work_id`, backfillhistorical rows, change `standard-2025-07-13`, or create a new dataset version.
## Physical-reference sidecar
`Physical_References/endpoint_references.csv` is an optional derived44 unmodified lines than silently treated as released data- material lacking the necessary ownership or provenance clearance is absent from both active indexes- fragment-sequence positions are contiguous and complete-sequence derivative source lists exactly match their own ordered fragment set- noncanonical derivative payloads remain absent from both active indexes and Viewer configurations- relationship paths, Xet identities, sizes, and canonical `record_id` joins resolve at the exact declared `source_hub_revision`
Run:
123version https://git-lfs.github.com/spec/v1oid sha256:5ff40b583505bc89e68328ce79b917502326fe8d69f3a2cfb863eccbd12946fdsize 1477139910123version https://git-lfs.github.com/spec/v1oid sha256:78748f7547ecdf7fde0676a6f4a49cbfe31c4d494179561974ef9063ba886df5size 949451606123version https://git-lfs.github.com/spec/v1oid sha256:aaad5ef2c7d498d42e6e57ff0e45af728a6c6c05f821ab6093a751d9f77fc7a5size 880728360123version https://git-lfs.github.com/spec/v1oid sha256:cec59ff5de074b9c77ff7c3e7ad5cfd4bae10024445e47125494aa950677e9aesize 891207279123version https://git-lfs.github.com/spec/v1oid sha256:b882fda076e7b6b90a751d05677bd5cb0c8d5c815fd63761711b21c4eb98976bsize 535577333123version https://git-lfs.github.com/spec/v1oid sha256:c1ae92102e7656411b9e9b7515f7d47f3772ee6ee3ddae3083e5ee06e3237f40size 946694929123version https://git-lfs.github.com/spec/v1oid sha256:1443d44bf2115fdec8f17f669a39489ee5198bfe403ddb4a74f51d71c90a6009size 1603681390123version https://git-lfs.github.com/spec/v1oid sha256:cb636b90f5031640bb1ac994a24d5979a4bffff8682aa26131bca1ba4cd0f217size 315155575123version https://git-lfs.github.com/spec/v1oid sha256:50fe317f2b2b36bde96b83d03741fb96b8676508dcd2874d7d525c087df4579dsize 716336962123version https://git-lfs.github.com/spec/v1oid sha256:7483d3bf49604abc3ecdc7ec7ec82649f35c6c7a267189836098c823c5833f13size 1265415074123version https://git-lfs.github.com/spec/v1oid sha256:73f3bd9d5a3c26ecab9b5fa5c9ce8e2e79f1f37daa49a122eae5a0958dad794dsize 987970571123version https://git-lfs.github.com/spec/v1oid sha256:96ee50cb8e1d6c7d9b3025ad26be604cd99cfec24a9ab1fdc0bdb96ce43f9787size 297678377123version https://git-lfs.github.com/spec/v1oid sha256:167341d8cf1d979ff4a4d038dcb3086324ca7dd036a97f878740604000ed062bsize 376030826123version https://git-lfs.github.com/spec/v1oid sha256:879953733d753b711a2fc4fb641e04b2c6a1d0c821ecfa0e517952c457032de8size 455422073123version https://git-lfs.github.com/spec/v1oid sha256:b012d15e900d30deb6fcae31abc99a5a1c6239da336b0127866151c981138d24size 482916549123version https://git-lfs.github.com/spec/v1oid sha256:d30154895afa2653053a1b9427e3c5bbaa328765039257633bc8d380cad7cf8bsize 671007948123version https://git-lfs.github.com/spec/v1oid sha256:b7766305825e023eb2729b2d4130586de68bfc34b506697aa6e6527f5411477asize 611828108123version https://git-lfs.github.com/spec/v1oid sha256:70f3bc41ae7f869688827fd6ea1fe07778414c53c5e67eb0d5a1eeb526352338size 961633726123version https://git-lfs.github.com/spec/v1oid sha256:e01b472c6d57a53498944595d7519f84ec1d9718efdc00c82eae38e17ccfe1f8size 1374513851123version https://git-lfs.github.com/spec/v1oid sha256:32a4dabe0df86bb3f66d787a078275b491ac120ef91c186984b4502c5e97577fsize 693672127123version https://git-lfs.github.com/spec/v1oid sha256:a8e015e7be4e5af0ce8fcd1925b72b24c8703de51a89ece96685caeeeb827848size 571159447123version https://git-lfs.github.com/spec/v1oid sha256:2f199bb358c9957134bbfa2f3ecc5d9343d6d3dbe2d4b2f5227d423eac70c5edsize 324653034123version https://git-lfs.github.com/spec/v1oid sha256:4811d8d181e74df9391525b95e136c517e029a882cc994fc60881836e5792cc5size 6248425419123version https://git-lfs.github.com/spec/v1oid sha256:97704e2b7515d98f904cca126f4eb48a42e7eae322329f784c281ad1566b33d6size 4564449205123version https://git-lfs.github.com/spec/v1oid sha256:ad2532ac75b3b6741c0e7ed28db61f45d656f0af3ceeaa7c8f52735f1e1586acsize 2453535699123version https://git-lfs.github.com/spec/v1oid sha256:74982a01d28a82a46b84b823b57a5b19480206de657b26637ffc9414ae985811size 1216484201123version https://git-lfs.github.com/spec/v1oid sha256:21e86d224a4fe816dc4ee90ee334b11e10074ab386e804d36d276670b2059bdasize 22762483161234567891011121314151617181920212223242526272829303132333435# Recording relationship provenance — 2026-08-27
This dated provenance layer documents five creator-confirmed complete drawingsequences represented by 22 unchanged canonical Framelapse recordings and fivenoncanonical InShot derivatives.
`fragment_sequence_relationships.csv` contains one row per media object in thisingestion. Its 27 rows and 15 fields cover 22 canonical fragmentobjects and five noncanonical derivative objects. `fragment_set_label` is theshared descriptive canonical filename stem; it is not a global `work_id`.Canonical fragment rows carry their persistent `record_id`, contiguous sequenceposition, sequence count, ordinary source-file SHA-256, Hub Xet identity, andevidence state. The five complete sets contain 2, 2, 6, 2, and 10 canonicalfragments. Derivative rows remain outside the active canonical index and use`source_record_ids` to identify their ordered canonical sources and`derivative_coverage` to distinguish a complete assembly from a partialtranscode.
The `sha256` column is an ordinary byte-level SHA-256. `hub_xet_hash` is theseparate Hugging Face Xet identity. These values are not interchangeable.Every `source_hub_revision` value pins the immutable metadata-bearing PR commit`8a21015210c19936d3b18175ae3f4061ae1e5d8d`. At that revision, all 27 paths,ordinary SHA-256 values, byte sizes, Xet identities, all 22 canonical metadatajoins, and the exact root `metadata.csv` bytes passed validation. The sidecar iscommitted afterward and deliberately points back to this metadata-bearingrevision, avoiding a circular self-reference. A moving branch, placeholder, orinferred revision is invalid.
The five unchanged derivative payloads are stored under `InShot/`. Theirpresence in this nested provenance directory does not make them canonical orinclude them in the active Dataset Viewer configuration.
This relationship layer does not change the 29-field active video schema,introduce a global `work_id`, backfill historical rows, change`standard-2025-07-13`, or create a new dataset version.12345678910111213141516171819202122232425262728fragment_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,notes2026-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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.1 unmodified line2345567789101011121311121314151617181930 unmodified lines50515253545556575859606162636452656667685657697071726061626364737475667677787980818283848586878889909192939495969798991001011021031042 unmodified lines10710810975761101111127879808111311411511611711811924 unmodified lines1441451461121471481491501511528 unmodified lines1611621631641651661671681691291701711721731741751761771781791801811822 unmodified lines1851861871881891901911921931941951961971981992002012022032042052062072082092102111 unmodified line
## Scope
The current post-v0.3 main-branch candidate validates:The current post-v0.3 active-construction candidate validates locally andagainst an immutable pull-request revision:
- all 363 canonical Standard rows and direct Standard MP4 paths- all 385 canonical Standard rows and candidate direct Standard MP4 paths- all 128 active Pre-Standard rows and direct Pre-Standard MP4 paths- persistent record identity and cross-tier uniqueness- exact Hub Xet file IDs and stored byte sizes- container-header technical metadata for every active published MP4- repository membership, filename rules, field types, numeric ranges, and stored-orientation consistency- locally audited byte sizes and technical metadata for the 22 new fragments- container-header technical metadata for every active or candidate MP4- candidate filename rules, field types, numeric ranges, and stored-orientation consistency- a 27-row, 15-field relationship sidecar covering 22 canonical fragments and five noncanonical derivatives across five complete sequences
One 6,587,685,497-byte provenance object is promoted to the canonical root,and the distinct 496,296,535-byte object previously occupying its corrected30 unmodified linescreator-confirmed Rec03 change from Pelikan black to unmarked, unknown-brandblack ink at approximately `00:04:59`.
The August 24–27 fragment-sequence ingestion adds 22 creator-confirmed,unchanged Framelapse source objects totaling 17,389,875,055 bytes and3,391.699091 seconds of encoded playback. They represent five completesequences and are stored as landscape video without audio. Five unchangedInShot outputs remain nested noncanonical provenance derivatives and areexcluded from active row, byte, duration, orientation, and audio totals. Therelationship sidecar records all 27 media objects without changing the29-field video schema, `standard-2025-07-13`, or historical rows, and withoutintroducing a global `work_id`.
## Result
**PASS — zero structural validation errors****LOCAL STRUCTURAL AND IMMUTABLE-PR PASS — zero validation errors**
| Check | Result || --- | ---: || Active indexed rows | 491 || Canonical Standard rows | 363 || Active indexed rows | 513 || Canonical Standard rows | 385 || Pre-Standard rows | 128 || Metadata columns per index | 29 || Unique persistent `record_id` values | 491 || Unique nonblank content hashes | 491 || Complete encoded-video metadata | 491/491 || Canonical repository paths matched | 363/363 || Pre-Standard repository paths matched | 128/128 || Unique persistent `record_id` values | 513 || Complete encoded-video metadata with remote Xet binding | 513/513 || Stored-orientation conflicts | 0 || Duplicate active content hashes | 0 || Duplicate local SHA-256 values among the 27 new media objects | 0 || New media objects remotely bound by SHA-256, size, and Xet identity | 27/27 || Fragment-sequence relationship rows | 27 || Relationship fields | 15 || Canonical fragments / noncanonical derivatives | 22 / 5 || Owner-confirmed complete sequences | 5 || Base-to-metadata-revision diff | 39 expected paths; 0 deletions || Inventory-binding regression tests | 5/5 |
**REMOTE PR INVENTORY AND RELATIONSHIP VALIDATION — PASS**
The sidecar's `source_hub_revision` pins the immutable metadata-bearing PRcommit `8a21015210c19936d3b18175ae3f4061ae1e5d8d`. At that revision, validationconfirmed 385/385 direct Standard paths, 128/128 direct Pre-Standard paths,all 27 relationship paths, ordinary SHA-256 values, byte sizes, Xet identities,and all 22 canonical `record_id` joins. The remote root `metadata.csv` receiptmatches the local 208,651-byte file at SHA-256`0de0b9111effa84cd41b13f93e6627b9b94f33f648dd29ded5d4eb8a85c5bfad`.The relationship validator reported 27 rows, 22 canonical fragments, fivenoncanonical derivatives, five complete sets, and zero errors.
The media-only PR head `bb4160045cae21a71bf360278549398dc9d2a028`contained exactly the 27 planned additions relative to the pinned base, withzero deletions or changed existing paths. The metadata-bearing revision hasexactly the expected 39-path cumulative diff and zero deletions. Viewersettlement and merge are separate gates and are not asserted by this PASS.
Both Hub builder configurations explicitly declare the same 29 features. Thisprevents per-CSV inference from representing an integer-only canonical2 unmodified lines
## Audited statistics
- Total indexed playback duration: 52.647 hours- Canonical playback duration: 43.052 hours- Total indexed playback duration: 53.590 hours- Canonical playback duration: 43.994 hours- Pre-Standard playback duration: 9.596 hours- Median active-record playback duration: 337.325 seconds- Total indexed video size: 2.003 TB decimal- Stored orientation: 479 portrait, 12 landscape- Audio streams: 485 present, 6 absent- Median active-record playback duration: 310.172 seconds- Total indexed video size: 2,020,171,359,199 bytes (2.020 TB decimal)- Stored orientation: 479 portrait, 34 landscape- Audio streams: 485 present, 28 absent- Unknown finish dates: 9- Unknown finish times: 62
24 unmodified lines drawing-time sampling.8. The 2012–2016 layer has no public video payload at this snapshot.9. Separate Hub configurations prevent tier mixing, but no leakage-safe train/validation/test partition has been defined. train/validation/test partition has been defined. The dated `fragment_set_label` is not a global `work_id`, so no work-level split is currently possible.
## Reproduction
8 unmodified linesJSON with the Xet file IDs returned by the same revision's resolve headers:
```bashcurl --fail --location \ --output repo_api_blobs.json \ "https://huggingface.co/api/datasets/maxwellinked/time-lapse-artifacts/revision/<40-hex-commit>?blobs=true"
python tools/capture_hub_inventory.py \ --repo-json repo_api_blobs.json \ --revision "<revision-under-review>" \ --repo-id maxwellinked/time-lapse-artifacts \ --revision "<40-hex-commit>" \ --output repo_inventory_xet.json```
The helper also fetches the small root `metadata.csv` at that immutablerevision and records its exact SHA-256, byte size, and `X-Repo-Commit` receiptunder `validationFiles`. The relationship validator rejects a local metadatafile whose bytes do not match that receipt.
Then validate paths, Xet identities, and exact byte sizes together:
```bash2 unmodified lines --repo-inventory-json repo_inventory_xet.json```
Validate the dated relationship sidecar against the immutable metadata-bearingrevision recorded in `source_hub_revision`. Confirm all 27 unique paths, Xetidentities, and sizes; all 22 canonical `record_id` joins; contiguous `RecNN`positions; five complete ordered source sets; derivative source lists limitedto their own set; and exclusion of the five nested derivatives from both activeindexes and Viewer configurations.
```bashpython tools/validate_fragment_relationships.py \ --relationships Standard_Time_Lapses/Provenance/2026-08-27/fragment_sequence_relationships.csv \ --metadata metadata.csv \ --repo-inventory-json repo_inventory_xet.json```
The inventory-binding regression suite is self-contained and performs no Hubwrites:
```bashpython tools/test_inventory_binding.py```
A plain JSON list of repository paths is also accepted through the legacy`--repo-files-json` spelling, but that checks membership only; it cannotindependently verify hashes or byte sizes.9 unmodified lines1011121313141516171819202122232425262711 unmodified lines394041373839404243444546474849504651524853545556575859606162639 unmodified lines
The release candidate defines:
- `canonical/archive` — default; 360 direct Standard MP4 files- `canonical/archive` — default; 385 direct Standard MP4 files- `pre_standard/archive` — 128 direct Pre-Standard MP4 files
Both configurations use explicit direct-file globs. The canonical glob doesnot recurse into `Standard_Time_Lapses/Provenance/`, so supporting historicalvideos cannot enter the canonical Viewer accidentally.
The dated `Standard_Time_Lapses/Provenance/2026-08-27/` layer contains a27-row, 15-field relationship sidecar and five nested noncanonical InShotderivatives. Neither the sidecar nor those derivative payloads define a Viewerconfiguration or contribute to the 513 active rows.
```yamlconfigs:- config_name: canonical11 unmodified lines - Pre_Standard_Time_Lapses/*.mp4```
The two configurations share the same declared 29-field schema. Both tiers nowhave complete core encoded-video metadata, stable IDs, content hashes, and bytesizes. Historical descriptive and provenance uncertainty remains explicit inthe Pre-Standard tier.The two configurations share the same declared 29-field schema. Before merge,both tiers must have complete core encoded-video metadata, stable IDs, contenthashes, and byte sizes. Historical descriptive and provenance uncertaintyremains explicit in the Pre-Standard tier.
## Merge criteria
Merge only after the pull-request preview confirms:
1. `canonical/archive` contains exactly 360 rows.1. `canonical/archive` contains exactly 385 rows.2. `pre_standard/archive` contains exactly 128 rows.3. No provenance video is present in either configuration.3. No provenance video, including the five dated InShot derivatives, is present in either configuration.4. Every expected row contains its metadata.5. Stored dimensions and byte sizes load as integers.6. `has_audio` loads as a boolean.7. Generated Parquet artifacts succeed for both configurations.8. The 27 relationship rows resolve against the exact immutable `source_hub_revision`, while remaining outside both Viewer configurations.
## Split terminology
361 unmodified lines362363364365366367368369370371372373374375376377378379380381382383384385386361 unmodified linesStandard_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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."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."1223456778910111213141516171819207 unmodified lines2829303132333435363738394041424344454647484950515236 unmodified lines89909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751764 unmodified lines18118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421540 unmodified lines256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301135302303304305306307308309310311312313314#!/usr/bin/env python3"""Augment a pinned Hub repository inventory with Xet file identities."""Augment a pinned Hub inventory with Xet and validation-file identities.
The ordinary Hub repository response contains file paths, sizes, andLFS-compatible SHA-256 values. A non-following request to each resolve URL alsoreturns the Xet file ID used by this dataset's ``hub_xet_hash`` field. Onlyresponse headers are requested; file payloads are not intentionally fetched.response headers are requested for media payloads. Small validation files suchas ``metadata.csv`` are fetched with a byte cap and recorded under``validationFiles`` so downstream joins can be bound to exact revision bytes."""
from __future__ import annotations
import argparseimport hashlibimport jsonimport reimport timefrom concurrent.futures import ThreadPoolExecutor, as_completedfrom pathlib import Path7 unmodified lines return None
class CommitTrackingRedirect(HTTPRedirectHandler): """Follow redirects while retaining revision headers from each response."""
def __init__(self) -> None: super().__init__() self.repo_commits: list[str] = []
def redirect_request(self, req, fp, code, msg, headers, newurl): # noqa: ANN001 repo_commit = headers.get("X-Repo-Commit") if repo_commit: self.repo_commits.append(repo_commit) return super().redirect_request(req, fp, code, msg, headers, newurl)
REVISION_RE = re.compile(r"^[0-9a-f]{40}$")READ_CHUNK_BYTES = 1024 * 1024DEFAULT_VALIDATION_FILE_MAX_BYTES = 64 * 1024 * 1024
def clean_etag(value: str | None) -> str: return (value or "").strip().strip('"')
36 unmodified lines raise RuntimeError(str(last_error or "unable to read resolve headers"))
def read_validation_file( url: str, expected_revision: str, timeout: int, retries: int, max_bytes: int,) -> dict[str, object]: """Hash one small exact-revision repository file without content decoding."""
if max_bytes <= 0: raise ValueError("validation-file byte cap must be positive")
last_error: Exception | None = None for attempt in range(retries + 1): redirect_handler = CommitTrackingRedirect() opener = build_opener(redirect_handler) request = Request( url, method="GET", headers={"Accept-Encoding": "identity"}, ) try: with opener.open(request, timeout=timeout) as response: headers = response.headers content_encoding = (headers.get("Content-Encoding") or "identity").lower() if content_encoding != "identity": raise ValueError( f"validation-file response used content encoding {content_encoding!r}" )
content_length_text = headers.get("Content-Length") if content_length_text is None: raise ValueError("validation-file response omitted Content-Length") try: content_length = int(content_length_text) except ValueError as exc: raise ValueError("validation-file Content-Length is not an integer") from exc if content_length < 0: raise ValueError("validation-file Content-Length is negative") if content_length > max_bytes: raise ValueError( f"validation file exceeds {max_bytes}-byte safety cap" )
observed_commits = list(redirect_handler.repo_commits) final_commit = headers.get("X-Repo-Commit") if final_commit: observed_commits.append(final_commit) if not observed_commits: raise ValueError("validation-file response omitted X-Repo-Commit") if any(commit != expected_revision for commit in observed_commits): raise ValueError( "validation-file response came from a different revision" )
digest = hashlib.sha256() size = 0 while chunk := response.read(READ_CHUNK_BYTES): size += len(chunk) if size > max_bytes: raise ValueError( f"validation file exceeds {max_bytes}-byte safety cap" ) digest.update(chunk) if size != content_length: raise ValueError( "validation-file byte count differs from Content-Length" ) return { "sha256": digest.hexdigest(), "size": size, "repoCommit": expected_revision, } except (HTTPError, URLError, OSError, ValueError) as exc: last_error = exc
if attempt < retries: time.sleep(0.5 * (attempt + 1))
raise RuntimeError(str(last_error or "unable to read validation file"))
def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("--repo-json", type=Path, required=True)4 unmodified lines parser.add_argument("--workers", type=int, default=12) parser.add_argument("--timeout", type=int, default=30) parser.add_argument("--retries", type=int, default=2) parser.add_argument( "--validation-file", action="append", dest="validation_files", help="small repository file to bind by exact bytes (default: metadata.csv)", ) parser.add_argument( "--validation-file-max-bytes", type=int, default=DEFAULT_VALIDATION_FILE_MAX_BYTES, ) args = parser.parse_args()
inventory = json.loads(args.repo_json.read_text(encoding="utf-8")) siblings = inventory.get("siblings") if isinstance(inventory, dict) else None if not isinstance(siblings, list): raise SystemExit("repository JSON must contain a siblings list") if not REVISION_RE.fullmatch(args.revision): raise SystemExit("revision must be an immutable 40-hex commit") if inventory.get("sha") != args.revision: raise SystemExit("repository JSON commit differs from --revision") if args.validation_file_max_bytes <= 0: raise SystemExit("--validation-file-max-bytes must be positive")
siblings_by_path = { item["rfilename"]: item for item in siblings if isinstance(item, dict) and isinstance(item.get("rfilename"), str) }
targets: list[tuple[dict[str, object], str, str]] = [] for item in siblings:40 unmodified lines print(json.dumps({"failures": failures}, indent=2)) raise SystemExit(1)
validation_paths = args.validation_files or ["metadata.csv"] if len(validation_paths) != len(set(validation_paths)): raise SystemExit("validation-file paths must be unique") validation_files: dict[str, dict[str, object]] = {} for path in validation_paths: if ( not path or path.startswith("/") or "\\" in path or any(part in {"", ".", ".."} for part in path.split("/")) ): raise SystemExit(f"invalid validation-file repository path: {path!r}") sibling = siblings_by_path.get(path) if sibling is None: raise SystemExit(f"validation file is absent from repository JSON: {path}") encoded_path = quote(path, safe="/") url = ( f"https://huggingface.co/datasets/{args.repo_id}/" f"resolve/{args.revision}/{encoded_path}" ) try: receipt = read_validation_file( url, args.revision, args.timeout, args.retries, args.validation_file_max_bytes, ) except Exception as exc: # noqa: BLE001 raise SystemExit(f"unable to bind validation file {path}: {exc}") from exc sibling_size = sibling.get("size") if sibling_size is not None and int(sibling_size) != receipt["size"]: raise SystemExit( f"validation file size differs from repository JSON: {path}" ) validation_files[path] = receipt
inventory["validationFiles"] = validation_files
args.output.parent.mkdir(parents=True, exist_ok=True) args.output.write_text( json.dumps(inventory, indent=2, sort_keys=True) + "\n", encoding="utf-8" ) print(json.dumps({"resolved_files": len(targets), "output": str(args.output)}, indent=2)) print( json.dumps( { "resolved_files": len(targets), "validation_files": sorted(validation_files), "output": str(args.output), }, indent=2, ) )
if __name__ == "__main__":123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360#!/usr/bin/env python3"""Self-contained tests for exact-revision validation-file binding."""
from __future__ import annotations
import csvimport hashlibimport importlib.utilimport jsonimport subprocessimport sysimport tempfileimport threadingimport unittestfrom http.server import BaseHTTPRequestHandler, ThreadingHTTPServerfrom pathlib import Pathfrom types import ModuleType
TOOLS = Path(__file__).resolve().parentREVISION = "a" * 40OTHER_REVISION = "b" * 40PAYLOAD = b"file_name,record_id\nexample.mp4,tla-0123456789abcdef\n"
def load_module(name: str, path: Path) -> ModuleType: spec = importlib.util.spec_from_file_location(name, path) if spec is None or spec.loader is None: raise RuntimeError(f"unable to load {path}") module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module
capture = load_module("capture_hub_inventory", TOOLS / "capture_hub_inventory.py")relationships = load_module( "validate_fragment_relationships", TOOLS / "validate_fragment_relationships.py",)
class FixtureHandler(BaseHTTPRequestHandler): protocol_version = "HTTP/1.1"
def do_GET(self) -> None: # noqa: N802 if self.headers.get("Accept-Encoding") != "identity": self.send_error(400, "identity content encoding required") return if self.path == "/resolve": self.send_response(302) self.send_header("Location", f"http://127.0.0.1:{self.server.server_port}/payload") self.send_header("X-Repo-Commit", REVISION) self.send_header("Content-Length", "0") self.end_headers() return if self.path == "/wrong-commit": self.send_response(200) self.send_header("X-Repo-Commit", OTHER_REVISION) self.send_header("Content-Length", str(len(PAYLOAD))) self.end_headers() self.wfile.write(PAYLOAD) return if self.path == "/payload": self.send_response(200) self.send_header("Content-Encoding", "identity") self.send_header("Content-Length", str(len(PAYLOAD))) self.end_headers() self.wfile.write(PAYLOAD) return self.send_error(404)
def log_message(self, format: str, *args: object) -> None: del format, args
class InventoryBindingTests(unittest.TestCase): @classmethod def setUpClass(cls) -> None: cls.server = ThreadingHTTPServer(("127.0.0.1", 0), FixtureHandler) cls.thread = threading.Thread(target=cls.server.serve_forever, daemon=True) cls.thread.start() cls.base_url = f"http://127.0.0.1:{cls.server.server_port}"
@classmethod def tearDownClass(cls) -> None: cls.server.shutdown() cls.server.server_close() cls.thread.join(timeout=5)
def test_capture_records_exact_byte_receipt_across_redirect(self) -> None: receipt = capture.read_validation_file( f"{self.base_url}/resolve", REVISION, timeout=5, retries=0, max_bytes=1024, ) self.assertEqual(set(receipt), {"sha256", "size", "repoCommit"}) self.assertEqual(receipt["size"], len(PAYLOAD)) self.assertEqual(receipt["repoCommit"], REVISION)
def test_capture_rejects_wrong_commit_and_oversize_body(self) -> None: with self.assertRaises(RuntimeError): capture.read_validation_file( f"{self.base_url}/wrong-commit", REVISION, timeout=5, retries=0, max_bytes=1024, ) with self.assertRaises(RuntimeError): capture.read_validation_file( f"{self.base_url}/resolve", REVISION, timeout=5, retries=0, max_bytes=len(PAYLOAD) - 1, )
def test_validator_requires_matching_hash_size_and_commit(self) -> None: receipt = capture.read_validation_file( f"{self.base_url}/resolve", REVISION, timeout=5, retries=0, max_bytes=1024, ) inventory = {"validationFiles": {"metadata.csv": receipt}} with tempfile.TemporaryDirectory(prefix="tla-binding-test-") as temp_dir: metadata = Path(temp_dir) / "metadata.csv" metadata.write_bytes(PAYLOAD) errors: list[str] = [] relationships.validate_pinned_metadata( inventory, metadata, REVISION, errors, ) self.assertEqual(errors, [])
metadata.write_bytes(PAYLOAD + b"tampered") errors = [] relationships.validate_pinned_metadata( inventory, metadata, REVISION, errors, ) self.assertTrue(any("differs" in error for error in errors))
errors = [] relationships.validate_pinned_metadata( inventory, metadata, OTHER_REVISION, errors, ) self.assertTrue(any("source_hub_revision" in error for error in errors))
def test_validator_requires_top_level_inventory_revision(self) -> None: errors: list[str] = [] relationships.validate_inventory_revision( {"sha": REVISION}, REVISION, errors, ) self.assertEqual(errors, []) relationships.validate_inventory_revision( {"sha": OTHER_REVISION}, REVISION, errors, ) self.assertTrue(any("inventory commit" in error for error in errors))
def test_full_relationship_validator_accepts_only_bound_metadata(self) -> None: metadata_fields = ["file_name", "record_id", "hub_xet_hash"] metadata_rows: list[dict[str, str]] = [] relationship_rows: list[dict[str, str]] = [] canonical_by_set: dict[str, list[str]] = {} record_counter = 1 for group_index, cardinality in enumerate((2, 2, 2, 6, 10), start=1): set_label = ( f"2026-08-{20 + group_index:02d}.000{group_index}." "BallpointPen.Ink.Paper.9x12" ) canonical_by_set[set_label] = [] for position in range(1, cardinality + 1): record_id = f"tla-{record_counter:016x}" record_counter += 1 file_path = ( f"Standard_Time_Lapses/{set_label}.Rec{position:02d}.mp4" ) xet_hash = hashlib.sha256( f"fixture-xet:{file_path}".encode("utf-8") ).hexdigest() metadata_rows.append( { "file_name": file_path, "record_id": record_id, "hub_xet_hash": xet_hash, } ) canonical_by_set[set_label].append(record_id) relationship_rows.append( { "fragment_set_label": set_label, "object_role": "canonical_fragment", "record_id": record_id, "file_path": file_path, "sha256": hashlib.sha256( f"fixture-sha:{file_path}".encode("utf-8") ).hexdigest(), "hub_xet_hash": xet_hash, "size_bytes": str(1000 + record_counter), "sequence_position": str(position), "sequence_count": str(cardinality), "sequence_completeness": "owner_confirmed_complete", "source_record_ids": "", "derivative_coverage": "", "evidence_state": ( "owner-confirmed; boundary-frame-verified; " "checksum-computed; media-probed; demux-verified; " "sampled-decode-verified" ), "source_hub_revision": REVISION, "notes": "", } )
set_labels = list(canonical_by_set) derivative_specs = [ (set_labels[0], canonical_by_set[set_labels[0]], "complete_sequence"), (set_labels[1], canonical_by_set[set_labels[1]], "complete_sequence"), (set_labels[2], canonical_by_set[set_labels[2]][1:2], "partial_sequence"), (set_labels[2], canonical_by_set[set_labels[2]][1:2], "partial_sequence"), (set_labels[1], canonical_by_set[set_labels[1]], "complete_sequence"), ] for derivative_index, (set_label, source_ids, coverage) in enumerate( derivative_specs, start=1, ): file_path = ( "Standard_Time_Lapses/Provenance/2026-08-27/InShot/" f"fixture-{derivative_index}.mp4" ) relationship_rows.append( { "fragment_set_label": set_label, "object_role": "noncanonical_inshot_derivative", "record_id": "", "file_path": file_path, "sha256": hashlib.sha256( f"fixture-sha:{file_path}".encode("utf-8") ).hexdigest(), "hub_xet_hash": hashlib.sha256( f"fixture-xet:{file_path}".encode("utf-8") ).hexdigest(), "size_bytes": str(2000 + derivative_index), "sequence_position": "", "sequence_count": str(len(canonical_by_set[set_label])), "sequence_completeness": "owner_confirmed_complete", "source_record_ids": ";".join(source_ids), "derivative_coverage": coverage, "evidence_state": ( "sampled-frame-verified; duration-arithmetic-verified; " "checksum-computed; media-probed; demux-verified; " "sampled-decode-verified" ), "source_hub_revision": REVISION, "notes": "", } )
self.assertEqual(len(metadata_rows), 22) self.assertEqual(len(relationship_rows), 27)
with tempfile.TemporaryDirectory(prefix="tla-validator-test-") as temp_dir: temp = Path(temp_dir) metadata_path = temp / "metadata.csv" relationships_path = temp / "relationships.csv" inventory_path = temp / "inventory.json" with metadata_path.open("w", encoding="utf-8", newline="") as handle: writer = csv.DictWriter( handle, fieldnames=metadata_fields, lineterminator="\n", ) writer.writeheader() writer.writerows(metadata_rows) with relationships_path.open("w", encoding="utf-8", newline="") as handle: writer = csv.DictWriter( handle, fieldnames=relationships.FIELDS, lineterminator="\n", ) writer.writeheader() writer.writerows(relationship_rows)
metadata_bytes = metadata_path.read_bytes() inventory = { "sha": REVISION, "siblings": [ { "rfilename": row["file_path"], "size": int(row["size_bytes"]), "lfs": { "size": int(row["size_bytes"]), "sha256": row["sha256"], }, "xetHash": row["hub_xet_hash"], "repoCommit": REVISION, } for row in relationship_rows ], "validationFiles": { "metadata.csv": { "sha256": hashlib.sha256(metadata_bytes).hexdigest(), "size": len(metadata_bytes), "repoCommit": REVISION, } }, } inventory_path.write_text( json.dumps(inventory), encoding="utf-8", )
command = [ sys.executable, str(TOOLS / "validate_fragment_relationships.py"), "--relationships", str(relationships_path), "--metadata", str(metadata_path), "--repo-inventory-json", str(inventory_path), ] completed = subprocess.run( command, check=False, capture_output=True, text=True, encoding="utf-8", ) self.assertEqual(completed.returncode, 0, completed.stdout + completed.stderr)
metadata_path.write_bytes(metadata_bytes + b"\n") completed = subprocess.run( command, check=False, capture_output=True, text=True, encoding="utf-8", ) self.assertNotEqual(completed.returncode, 0) self.assertIn("differs from the pinned repository", completed.stdout)
if __name__ == "__main__": unittest.main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328#!/usr/bin/env python3"""Validate a fragment relationship manifest against pinned metadata bytes."""
from __future__ import annotations
import argparseimport csvimport hashlibimport jsonimport refrom collections import defaultdictfrom pathlib import Path
FIELDS = [ "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",]HASH_RE = re.compile(r"^[0-9a-f]{64}$")REVISION_RE = re.compile(r"^[0-9a-f]{40}$")RECORD_RE = re.compile(r"^tla-[0-9a-f]{16}$")EVIDENCE_BY_ROLE = { "canonical_fragment": { "owner-confirmed", "boundary-frame-verified", "checksum-computed", "media-probed", "demux-verified", "sampled-decode-verified", }, "noncanonical_inshot_derivative": { "sampled-frame-verified", "duration-arithmetic-verified", "checksum-computed", "media-probed", "demux-verified", "sampled-decode-verified", },}
def read_csv(path: Path) -> tuple[list[str], list[dict[str, str]]]: with path.open("r", encoding="utf-8-sig", newline="") as handle: reader = csv.DictReader(handle) if not reader.fieldnames: raise ValueError(f"missing CSV header: {path}") return list(reader.fieldnames), list(reader)
def validate_pinned_metadata( inventory: dict[str, object], metadata_path: Path, declared_revision: str, errors: list[str],) -> None: """Bind the local metadata join to exact bytes captured at one Hub commit."""
validation_files = inventory.get("validationFiles") if not isinstance(validation_files, dict): errors.append("repository inventory lacks validationFiles receipts") return remote_metadata = validation_files.get("metadata.csv") if not isinstance(remote_metadata, dict): errors.append( "repository inventory lacks validationFiles metadata.csv receipt" ) return
remote_hash = remote_metadata.get("sha256") remote_size = remote_metadata.get("size") remote_commit = remote_metadata.get("repoCommit") if not isinstance(remote_hash, str) or not HASH_RE.fullmatch(remote_hash): errors.append("metadata.csv validation receipt has an invalid SHA-256") if ( not isinstance(remote_size, int) or isinstance(remote_size, bool) or remote_size < 0 ): errors.append("metadata.csv validation receipt has an invalid size") if remote_commit != declared_revision: errors.append( "metadata.csv validation receipt differs from source_hub_revision" )
metadata_bytes = metadata_path.read_bytes() local_hash = hashlib.sha256(metadata_bytes).hexdigest() if isinstance(remote_hash, str) and remote_hash != local_hash: errors.append("local metadata.csv differs from the pinned repository bytes") if isinstance(remote_size, int) and not isinstance(remote_size, bool): if remote_size != len(metadata_bytes): errors.append( "local metadata.csv size differs from the pinned repository file" )
def validate_inventory_revision( inventory: dict[str, object], declared_revision: str, errors: list[str],) -> None: if inventory.get("sha") != declared_revision: errors.append("repository inventory commit differs from source_hub_revision")
def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("--relationships", type=Path, required=True) parser.add_argument("--metadata", type=Path, required=True) parser.add_argument("--repo-inventory-json", type=Path) args = parser.parse_args()
fields, rows = read_csv(args.relationships) metadata_fields, metadata_rows = read_csv(args.metadata) del metadata_fields errors: list[str] = [] if fields != FIELDS: errors.append(f"field contract differs: {fields}") if len(rows) != 27: errors.append(f"expected 27 rows, observed {len(rows)}")
metadata_by_id = {row["record_id"]: row for row in metadata_rows} paths = [row.get("file_path", "") for row in rows] hashes = [row.get("sha256", "") for row in rows] xet_hashes = [row.get("hub_xet_hash", "") for row in rows] for label, values in ( ("file_path", paths), ("sha256", hashes), ("hub_xet_hash", xet_hashes), ): if not all(values) or len(values) != len(set(values)): errors.append(f"{label} values must be nonblank and unique")
revisions = {row.get("source_hub_revision", "") for row in rows} if len(revisions) != 1 or not revisions or not REVISION_RE.fullmatch(next(iter(revisions))): errors.append("source_hub_revision must be one shared immutable commit")
canonical_by_set: dict[str, list[dict[str, str]]] = defaultdict(list) derivatives: list[dict[str, str]] = [] for index, row in enumerate(rows, start=2): label = f"row {index} {row.get('file_path', '')}" if not HASH_RE.fullmatch(row.get("sha256", "")): errors.append(f"{label}: invalid ordinary SHA-256") if not HASH_RE.fullmatch(row.get("hub_xet_hash", "")): errors.append(f"{label}: invalid Xet identity") try: if int(row.get("size_bytes", "")) <= 0: raise ValueError except ValueError: errors.append(f"{label}: invalid size_bytes") if row.get("sequence_completeness") != "owner_confirmed_complete": errors.append(f"{label}: unexpected sequence completeness") evidence_text = row.get("evidence_state", "") evidence_tokens = [token.strip() for token in evidence_text.split(";")] if not evidence_text or any(not token for token in evidence_tokens): errors.append(f"{label}: evidence_state is blank") elif len(evidence_tokens) != len(set(evidence_tokens)): errors.append(f"{label}: evidence_state contains duplicate values")
role = row.get("object_role") expected_evidence = EVIDENCE_BY_ROLE.get(role) if expected_evidence is not None and set(evidence_tokens) != expected_evidence: errors.append(f"{label}: evidence_state differs from the reviewed role") if role == "canonical_fragment": record_id = row.get("record_id", "") if not RECORD_RE.fullmatch(record_id): errors.append(f"{label}: invalid canonical record_id") metadata = metadata_by_id.get(record_id) if not metadata or metadata.get("file_name") != row.get("file_path"): errors.append(f"{label}: canonical record_id/path does not join to metadata") if metadata and metadata.get("hub_xet_hash") != row.get("hub_xet_hash"): errors.append(f"{label}: canonical Xet identity differs from metadata") if row.get("source_record_ids") or row.get("derivative_coverage"): errors.append(f"{label}: canonical row has derivative-only values") expected_path_prefix = ( f"Standard_Time_Lapses/{row.get('fragment_set_label', '')}.Rec" ) if not row.get("file_path", "").startswith(expected_path_prefix): errors.append( f"{label}: canonical path does not match fragment_set_label" ) else: rec_suffix = row["file_path"][len(expected_path_prefix) :] match = re.fullmatch(r"([0-9]{2})\.mp4", rec_suffix) if not match or match.group(1) != row.get("sequence_position", "").zfill(2): errors.append( f"{label}: RecNN suffix differs from sequence_position" ) canonical_by_set[row.get("fragment_set_label", "")].append(row) elif role == "noncanonical_inshot_derivative": if row.get("record_id"): errors.append(f"{label}: noncanonical derivative has record_id") if not row.get("file_path", "").startswith( "Standard_Time_Lapses/Provenance/2026-08-27/InShot/" ): errors.append(f"{label}: derivative path is outside dated provenance") if row.get("file_path") in {item["file_name"] for item in metadata_rows}: errors.append(f"{label}: derivative leaked into canonical metadata") if row.get("derivative_coverage") not in { "complete_sequence", "partial_sequence", }: errors.append(f"{label}: invalid derivative coverage") if row.get("sequence_position"): errors.append(f"{label}: derivative sequence_position must be blank") derivatives.append(row) else: errors.append(f"{label}: invalid object_role")
canonical_ids_by_set: dict[str, list[str]] = {} for set_label, set_rows in canonical_by_set.items(): try: counts = {int(row["sequence_count"]) for row in set_rows} positions = sorted(int(row["sequence_position"]) for row in set_rows) except ValueError: errors.append(f"{set_label}: noninteger sequence position/count") continue if counts != {len(set_rows)} or positions != list(range(1, len(set_rows) + 1)): errors.append(f"{set_label}: sequence positions/count are not contiguous") canonical_ids_by_set[set_label] = [ row["record_id"] for row in sorted(set_rows, key=lambda item: int(item["sequence_position"])) ]
if sorted(len(rows) for rows in canonical_by_set.values()) != [2, 2, 2, 6, 10]: errors.append("canonical sequence cardinalities must be 2/2/2/6/10") if len(derivatives) != 5: errors.append(f"expected 5 derivatives, observed {len(derivatives)}")
for row in derivatives: set_ids = canonical_ids_by_set.get(row["fragment_set_label"], []) source_ids = [value for value in row["source_record_ids"].split(";") if value] try: derivative_count = int(row["sequence_count"]) except ValueError: derivative_count = -1 if derivative_count != len(set_ids): errors.append( f"{row['file_path']}: derivative sequence_count differs from fragment set" ) if not source_ids or len(source_ids) != len(set(source_ids)): errors.append(f"{row['file_path']}: derivative source IDs are blank or duplicate") if any(value not in set_ids for value in source_ids): errors.append(f"{row['file_path']}: derivative source crosses fragment set") if source_ids != [value for value in set_ids if value in source_ids]: errors.append(f"{row['file_path']}: derivative sources are out of sequence") if row["derivative_coverage"] == "complete_sequence" and source_ids != set_ids: errors.append(f"{row['file_path']}: complete derivative omits or reorders sources") if row["derivative_coverage"] == "partial_sequence" and not ( 0 < len(source_ids) < len(set_ids) ): errors.append(f"{row['file_path']}: partial derivative is not a strict subset")
if args.repo_inventory_json: loaded_inventory = json.loads( args.repo_inventory_json.read_text(encoding="utf-8") ) if not isinstance(loaded_inventory, dict): errors.append("repository inventory must be a JSON object") inventory: dict[str, object] = {} else: inventory = loaded_inventory declared_revision = next(iter(revisions)) if len(revisions) == 1 else "" validate_inventory_revision(inventory, declared_revision, errors) validate_pinned_metadata( inventory, args.metadata, declared_revision, errors, ) raw_siblings = inventory.get("siblings") if not isinstance(raw_siblings, list): errors.append("repository inventory lacks a siblings list") raw_siblings = [] siblings = { item["rfilename"]: item for item in raw_siblings if isinstance(item, dict) and isinstance(item.get("rfilename"), str) } for row in rows: remote = siblings.get(row["file_path"]) if not remote: errors.append(f"{row['file_path']}: missing from pinned repository inventory") continue lfs = remote.get("lfs") or {} remote_size = remote.get("size") if remote_size is None: remote_size = lfs.get("size") if int(remote_size or -1) != int(row["size_bytes"]): errors.append(f"{row['file_path']}: repository size differs") if str(lfs.get("sha256") or "").lower() != row["sha256"]: errors.append(f"{row['file_path']}: repository LFS SHA-256 differs") if str(remote.get("xetHash") or "").lower() != row["hub_xet_hash"]: errors.append(f"{row['file_path']}: repository Xet identity differs") if remote.get("repoCommit") != row["source_hub_revision"]: errors.append( f"{row['file_path']}: repository identity came from a " "different revision" )
summary = { "rows": len(rows), "canonical_fragments": sum( row.get("object_role") == "canonical_fragment" for row in rows ), "noncanonical_derivatives": len(derivatives), "fragment_sets": len(canonical_by_set), "errors": errors, } print(json.dumps(summary, indent=2)) if errors: raise SystemExit(1)
if __name__ == "__main__": main()