INNER CODE UNIT · Python

_SyncReuseWitness

Hebbian-Robotics/hflow · src/hflow/app.py:256

class _SyncReuseWitness:
    """Enough to decide that re-running sync would rewrite byte-identical output.

    Complete or absent: a partial witness cannot prove that re-running sync
    would reproduce the existing canonical, so the parser drops the whole
    group rather than letting the surviving fields answer for the missing one.
    """

    # Which source BYTES produced the canonical. Content, never size+mtime:
    # this repo identifies by content everywhere, and a same-length rewrite
    # or a preserved mtime would defeat the weaker test silently.
    source_digest: str
    # The transform is stamped with an ffmpeg version that does NOT reach
    # pipeline_version, and different builds genuinely encode differently.
    ffmpeg_version: str
    # An @app.transform override is contractually required to end in
    # write_canonical_episode, so it stamps the SAME pipeline_version the
    # default transform would: without this, REMOVING an override would reuse

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…