
Saves frames with their teacher labels and a second opinion as dataset shards: plain tar files of JPEG images, one records.jsonl line per image, one unsaved.jsonl line per frame saved as no image and a shard.json, committed to the generated file slot `shards`. Each frame comes with its PictureIdentity, so a dataset built from the shards can split train, valid and test by clip. Each record says how far the labels and the second opinion agree: agree, unsure, disputed, empty or empty but disputed. With collection proposals it saves no image and instead records every candidate a proposer gives each frame of a dataset version, with the frame's agreement against the version's own labels, for review before anything becomes a label.
Label site footage. The clips are played once, SAM 3 labels every frame, a second SAM 3 with a different prompt gives the second opinion, and the sink saves every fifth frame of each clip.
every_n greater than one, at most max_shard_images counters live until close; a new clip/pass at that bound fails loudly, never evicting or resetting an active counter. With every_n one no sampler counters are retained. Close releases every counter. pass_id is never saved. Filenames order clip SHA256, frame index, sequence_id, sequence_index and position_ns before made/crop IDs; empty sequence and picture IDs are spelled 0 so lexical filename order agrees with replay; position is metadata, never part of the durable key. Only saved pictures in the open and committing shards are remembered: at most twice max_shard_images complete keys, each with at most one made-origin and crop-parent entry. Sampled-out or otherwise discarded pictures add no identity entries. Commit acknowledgement releases those keys and their origin indexes; the builder checks conflicts across committed shards. Each PictureIdentity ancestors list is validated (complete keys and times, no cycles, at most 64 entries) and written as a flat derived_from array with empty external paths, preserving its ordered set of all parent lines. Immediate parents precede their ancestors; repeated keys and self references are refused. Coordinates use 2^32 units per generated frame; interpolation preserves the endpoint group and inserts between its coordinates. Real endpoints have empty sequence_id and zero index; made intermediates within real footage may have an empty group and fractional index below 2^32. Full ancestry participates in duplicate comparison; it is never silently truncated.unsure_band), empty_disputed (no labels but the opinion has a box), unsure (a label scoring inside unsure_band, or a label the opinion does not confirm), empty (no labels and no opinion box), agree (every label confirmed, none in the band). Opinion boxes are matched to labels one to one by IoU of at least match_iou, highest first; class votes pair with labels by index. A match confirms its label only when it has the label's class and its own score is at or above the top of unsure_band; a weaker match leaves the label unconfirmed, as no match does, and unconfirmed counts those labels.max_shard_images images, before a frame would take it past max_shard_bytes, when no frame arrived for idle_commit_seconds, and when the worker is stopped. The shards of one run share a run id, are numbered by seq from 1 without a gap, and the last says closing: true, even when it holds no image. The closing shard adds stop (cause inputs_ended when every input ended, stop_signal when the platform stopped the worker; quiet_seconds since the last frame) and run_frames_seen, the frames the sink received over the run. A run with seq 1..n, a closing shard and frames_seen summing to run_frames_seen kept or counted every frame the sink received. A run with no closing shard or with a gap lost shards, for example to a crash. A commit that cannot reach the slot or gets a 5xx answer is retried, 1 s after the first attempt and then twice as long each time, at most 30 s apart; no attempt starts 10 minutes or more after the first, and the last one in flight ends by its own timeout (120 s to connect, or 120 s with no byte moving), so a slow upload can run past the 10 minutes. A refusal is not retried. A shard that fails to commit ends the run's commits: no later shard is sent, the closing one included, so the run has no closing shard and is refused, and the worker logs FAILED with the shards left uncommitted and exits 1. On stop_signal the platform stops every vertex at once, so frames still upstream never reach the sink and are counted nowhere; no shard can say whether the source had played all it would have.max_shard_bytes bounds both, and every shard, its records.jsonl, unsaved.jsonl and shard.json included, so a shard is also committed before one more unsaved.jsonl line would take it past the limit; the worker stops at start when shard.json, which lists label_schema, could not fit in it even for a shard with no image and one unsaved frame.every_n), unflagged (left out by keep flagged) and every count under dropped: disputed, unlabelled_made and unconfirmed (a label the opinion does not confirm) under drop_disputed, and unlabelled_made also for any frame with nonempty made_id and no label; empty_over_cap (past max_empty_fraction of the shard the frame lands in), duplicate (a verified identical repetition of the complete clip, frame, made and crop key in an open or committing shard), unreadable, oversize, and empty_mask: a frame with a label whose mask holds no pixel is dropped whole rather than saved with that label missing. That is any [TrackedSegmentation] label with an empty mask, since its box is its mask's, and a (Segmentation, BoundingBox) label with an empty mask under task segment. unsaved.jsonl names each frame the shard took and saved as no image, one line per frame in arrival order: {clip_sha256, frame_index as a decimal string, made_id, crop_id, reason}, an empty made_id or crop_id written "", and reason sampled_out, unflagged or the dropped key the frame is counted under. Its lines therefore number frames_seen minus images and give each reason exactly as often as shard.json counts it, so a reader resuming a label run can account every frame the sink received, saved or not. A shard that saved every frame holds it empty.task segment saves masks as uncompressed column-major COCO RLE at the stored raster resolution, preserving holes, disconnected parts and single pixels as one object. Masks must have the frame's height and width and one channel. Box-only segment input is refused. detect writes float64 pixel boxes.label_schema is required strict JSON with schema_version (1..9007199254740991), classes, image_attributes and export_classes. With collection labels every class geometry is box for detect or region for segment; with proposals the version's schema is taken whole and only the classes proposal_classes maps must be of that geometry. Class UIDs and export order determine labels; names never determine identity. Unknown fields, duplicate keys, invalid Unicode and invalid typed defaults fail startup. Missing required attributes stay absent for review. Defaults are initialized once per object/image; all five attribute types are supported, with the multi-value type spelled multi_enum. All four root fields and each class's attributes array are required, including empty image_attributes. Scopes are object on classes and image at the root; hierarchy and track/frame-scoped definitions are outside this schema contract.collection proposals writes shard 3: `shard-<run8>-<seq6>.tar` holding only proposals.jsonl and shard.json, canonical JSON. The labels input is the reference, the version's own labels as pixel boxes, used only for the agreement; every element of the second-opinion input is a candidate, given as a bare list or as {candidates, failed}, whose failed says the proposer's inference of the frame failed, which an empty bare list cannot tell from a frame it found nothing in. Each received frame is one line in arrival order with the frame's clip_sha256, clip name, frame_index and position_ns (decimal strings), made_id and crop_id (its picture key with clip and frame), width and height, status, failure, candidates, discarded and agreement. A candidate keeps its ordinal in the proposer's list, its proposer class id (a decimal string), the class UID and export index proposal_classes maps it to, its score, and for detect a pixel box clamped to the frame with clamped saying whether the clamp moved it, or for segment its exact uncompressed column-major RLE mask with its bounds as bbox. A box with no area once clamped is discarded as empty_box and a mask with no pixel as empty_mask, so candidate and discarded ordinals together are 0 to n-1. match names the reference label a candidate matched, by its index in the labels input as received, and their IoU, or is null. The agreement is computed as for labels, with the surviving candidates as box opinion and leaving out reference labels of a class no proposal_classes entry names, so a class the proposer was never asked about cannot dispute. status is proposed with a surviving candidate and negative without one. shard.json carries shard 3, collection, the run, seq, closing, task, class names, label_schema and its digest, proposal_classes (proposer_class_id as a decimal string, class_uid and class_id; what prompted the proposer is its own configuration, which the sink cannot see, so it is not repeated), sink (unsure band, match IoU, max_shard_images), frames_seen, records, dropped and the identity of the first and last line, null for a shard with none; the closing shard adds stop and run_frames_seen as for labels.collection proposals a frame that cannot be read whole becomes a failed line with no candidate, no discarded entry and agreement null, never a partial one: unreadable (an empty raster), inference_error (a {candidates, failed} second opinion says the proposer's inference of the frame failed; one that says so and still carries candidates stops the worker), oversize (a raster past the limits, more than 65536 candidates or reference labels, more than 1048576 mask runs, an 8 MiB candidates array or a 16 MiB line), mask_shape (a mask unlike the frame) or invalid_score (a score that is not a finite number in [0, 1]). A candidate whose class id has no proposal_classes entry stops the worker, logging FAILED with 'proposer class id N has no entry in proposal_classes'; so do a reference label naming no label_schema class or carrying no box, a candidate box that is not finite, a clip_sha256 that is not 64 lowercase hex digits, and a frame whose failed line alone exceeds 16 MiB or max_shard_bytes. At start the worker refuses an empty proposal_classes, a repeated proposer class id, a class UID label_schema does not name or a class whose geometry task does not propose, every_n, keep, drop_disputed, max_empty_fraction or jpeg_quality away from its default, [DetectedClass] candidates, and [BoundingBox] candidates with task segment. With collection labels a non-empty proposal_classes and a {candidates, failed} second opinion are refused.collection proposals the sink remembers every picture key (clip_sha256, frame_index, made_id and crop_id) it wrote a line for in the run and drops a repeat as duplicate, its only drop, so frames_seen equals records plus dropped. A source that replays its frames while the sink runs adds no line. After each commit the sink appends the shard's identities to a ledger in its container's temporary directory, outside the shards slot; a process the platform restarts in the same container starts from that ledger, so a replay of what the container already committed adds no line either, while what the dead process's open shard held, never committed, is written again. A process that dies between a commit and its ledger append leaves that shard's frames out of the ledger, so they are written again too, and the server counts each such line as a duplicate of the image its run already accounted for. A ledger that cannot be written after a commit stops the worker, saying the shard was committed; no later shard is sent. A new container (a new deployment) starts without a ledger. No JPEG is written and the empty cap does not apply.label shards list every frame saved as no image in unsaved.jsonl
live-test PR 1213
live-test prerelease