Ray's Knowledge Base
Unlock

Keep interface versions in VERSION and release versions on tags

DecisionVerified 5 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

Version ownership and storage in dftracer-utils.

Decision#

Store interface versions in one top-level VERSION file with keys api, abi, index, and duql. CMake reads it through cmake/modules/Versions.cmake and writes a generated header; the Python JIT reads the ABI from it. Keep the release version on git tags. Set the ABI version by hand. The host requires an exact ABI match. The ABI macro is DFTRACER_UTILS_PLUGIN_ABI_VERSION.

Keep internal format versions as constants next to the code that reads and writes them. These include the evidence format, viz summary cache, native frame bytes, materialized-view manifest, and value payload header. Keep bbt.format_version as RocksDB's own option, not ours.

Why#

The VERSION file centralizes interface promises to users or outside code. Internal format bumps happen with code changes in the same file; putting them elsewhere invites a forgotten bump. They still need version numbers because old on-disk data must be rejected.

Later case: Later user decision (told): every version of ours is 0, not just the internal formats: VERSION api 0.0.0, abi 0.0.0, index 0, duql 0.0, plus viz summary, MV manifest, payload, extension, evidence, native frame, shard manifest, plugin manifest and genesis run record. Only third-party versions stay (RocksDB table format_version, zlib, Highway). A missing or unreadable manifest must still mean build, never current. Pitfall seen: CMake refuses VERSION when abi (0.0.1) is above api (0.0.0).

Rejected options#

Moving internal format constants into VERSION, because code and its internal-format bump should stay together.

Evidence#

The docs and CLAUDE.md rule were updated to describe VERSION. The source note says internal format constants were reset to 1 and the ABI macro was renamed. The earlier proposal for the API package version to come from VERSION was superseded; the final note keeps release versions on git tags.

Also found by searching

  • where should package API and plugin ABI versions live
  • how does dftracer-utils generate version constants for CMake and Python
  • release version tags versus interface version file
  • do internal storage format versions belong in VERSION