# tboardfs run guide

This read-only directory exposes the TensorBoard data for one run.
Nested run directories have their own guide and catalog.

## Find data

- Read [catalog.json](catalog.json) for original tags, enabled formats, canonical paths, and observed step and epoch coverage.
- Read paths relative to this run directory.
- Use the canonical paths for full tables and original media bytes.
- File counts include format variants.
- Observation and distinct step counts do not include format variants.
- Observed epoch ranges include both endpoints and leave gaps for unobserved epochs.

Scalar tables and PR curves default to JSON and TSV.
Histogram buckets and distribution percentiles are separate tables, each with JSON, TSV, and NPZ by default.
Use `--raw` to include the original TFRecord frames when a typed file is missing or undecodable.
An opaque `.bin` file is not a complete event frame and does not establish that the log contains a checkpoint.

## Find epoch data

If the catalog lists `reports.epochs`, its `json` and `tsv` paths point to two encodings of the same epoch report.
The report is available with `--epoch-breakdown` when the run has epoch directories.
Each row covers one epoch and scope.
The scope is the first component of the original tag.

- The first fields are `epoch`, `scope`, `step_min`, `step_max`, and `epoch_dir`.
- Step bounds include both endpoints and use non-marker data when present, or marker steps otherwise.
- The report describes recorded data, not the training schedule.
- `metric_rows` counts scalar observations, including repeats but excluding epoch markers.
- Fields such as `image_steps` count distinct global steps within the epoch and scope, not files or tags.
- Optional fields appear in alphabetical order and only when the run has that type of coverage.
- Zero means that row has no coverage for the field.

Follow `epoch_dir` to find scalar slices and per-step files for that epoch.
For example, epoch 2 rows for `train/loss` are in `epoch-breakdown/epoch-2/scalars/train/loss.tsv` when TSV is enabled.
The full table remains at `scalars/train/loss.tsv`.

Epoch assignment uses exact global steps.
Use the latest scoped marker at or before the step, such as `train/epoch` for `train/loss`.
Use the unscoped `epoch` marker only if no scoped marker applies.
At a duplicate step, the last marker in source and producer order wins.
A valid marker is a finite integer in `[0, 2**63)`.
An invalid applicable marker blocks fallback.
Data without a known epoch remains at its canonical path.
The canonical scalar `epoch` column uses these rules even without `--epoch-breakdown`.
