Skip to content

v0.0.12 "Cuito Cuanavale"

Choose a tag to compare

@mcraveiro mcraveiro released this 22 Nov 04:19
· 151 commits to main since this release
v0.0.12
f0b1dea

November 2026

A release about trusting what generation does. No compass-ng command touches a file unless its content changes. Every changed file says what produced it, and drift that was already stale apart from your change stays out of it. Alongside, the last of ORE Studio's data moves out of compass's code, so its Python code generator and two more scripts can go.

✅ Highlights

  • A file is touched only when its content changes. Every write path was audited. Generate already compared content: on a settled ORE Studio tree of 62,662 files, a second generate touched none. Two paths didn't:

    • compass env generate rewrote .env and .env.old on every run, because its timestamp line changed. It now writes nothing when only the time differs, and .env.old only when .env changes.
    • env version new rewrote its document in place.

    Every write now goes to a temporary file renamed into place, so an interrupted run leaves no half-written file, and a rewritten file keeps its mode. On ORE Studio, one line added to the config-parser template's source changed the modification time of exactly 19 files: the source, the template and its 17 outputs.

  • Each change says what produced it, and stale drift stays apart. compass generate and compass diff name the codec, unit and template behind each changed file. They split the files into from your change and already stale at HEAD: HEAD already generates the same thing, and its committed file differs. --skip-stale leaves stale files unwritten and lists them. --scope <path> keeps only what units reading that path produce, following through tangle and codegen. diff --blame names the commits behind stale files. On ORE Studio, editing the two config-parser templates gave 36 files from the change and its 13 files of existing drift as stale.

  • Pending models name compass. Their description and "Do not edit" line say compass generate, not derive_pending_models.py. That was the last thing compass needed for ORE Studio to delete its Python code generator.

  • Skill levels are the project's data. skill_levels reads each skill's level from a :CODEC: skill_levels check document, with four tables:

    • Levels: the skill, its level and the reason;
    • Systems: the level order, and whether each level is advisory, binding or cross;
    • Read-only verbs;
    • Settings.

    compass's code no longer lists a project's skills. compass generate stamps #+level: on each SKILL.org, and compass check reports a level that differs as drift. A new region on the levels page lists each level's slice: what a session at that level sees, binding or advisory. A skill without a row is skill_without_level, and a row without a skill is level_without_skill. On ORE Studio's main, one generate leaves all 76 skill pages byte-identical to what its apply_skill_levels.py wrote.

  • model_rules reads its published areas from the route inventory's check document. A document whose :CODEC: names route_inventory model_rules serves both. The published areas are the areas its Rules and Exemptions give a route, less the no area setting. So the list is held once, and model_rules no longer reads route_classification.py.

  • Fixed: an include of a psql variable reported as missing. sql_reachability no longer follows or reports \i :name. Only the run that sets the variable knows which file it names, as with \if :{?name} guards.

  • Fixed: the route inventory's coverage text named a script. It now names the Pairs and Families tables of the check document.

  • Fixed: two builds on macOS's libc++. One erased a map entry by a string view, which needs C++23's heterogeneous erase. One test compared file times, which Catch2 cannot print there.

⚠️ Upgrading

  • skill_levels needs its check document. A project with skill_levels on adds the document in the same change as the upgrade. Without it, v0.0.12 reports skill_levels/unreadable. An earlier compass stops on the document, because its skill_levels takes no data tables.
  • model_rules reads the route inventory document. A project with model_rules on adds model_rules to that document's :CODEC:. The classification option is gone.
  • The store formats are unchanged. The changed codecs' versions are bumped, so they run once again.

📦 Packages

Linux (.tar.gz, .deb), macOS (.tar.gz, .dmg) and Windows (.zip, installer), each with its SHA-256 file.