Skip to content

fix(config): a list newer than the mission configuration takes its default (FIX-CONFIG-NEW-LISTS) - #275

Merged
davidp57 merged 2 commits into
developfrom
fix/config-new-lists-default
Oct 27, 2026
Merged

davidp57 merged 2 commits into
developfrom
fix/config-new-lists-default

Conversation

@davidp57

Copy link
Copy Markdown
Member

A mission configuration omits a list to remove it (ADR 0011), but a configuration written before catalogue 2.3.0 never had the Fat Cow lists. CTLD read fatCowTypes, fatCowCrates, fatCowLoadouts and fatCowAICows as removed: the Fat Cow was on with no aircraft, no crate and no loadout. Found on the VEAF Open Trainings, whose ctld-config.yaml date from 2.2.0.

Change (ADR 0011 Addendum 3)

  • Build: ctld-tools since dates every list from the pinned shapes (tests/ci/data/catalogue_shapes) and writes ctld.configListSince next to ctld.configDefault (generated, git-ignored, merged into CTLD.lua).
  • Engine: CTLDConfig:load() gives a list newer than the snapshot's configVersion its default (localised) and names it in the startup notice. A list omitted at or after its own version, or not dated, stays a removal.
  • ctld-tools: complete() adds such a list when a configuration is opened, reading the table from the engine it installs, so saving no longer stamps the omission as a removal.

Tests

  • busted: config_param_tier_spec.lua (2.2.0 / no version / 2.3.0 / kept list / undated list).
  • pytest: test_list_since.py (generator, CLI, engine reader, completion).

Docs: mission-maker configuration EN + FR, ADR 0011 Addendum 3, CHANGELOG.

🤖 Generated with Claude Code

davidp57 and others added 2 commits October 27, 2026 19:21
…fault (FIX-CONFIG-NEW-LISTS)

A configuration omits a list to remove it (ADR 0011), but one written
before catalogue 2.3.0 never had the Fat Cow lists: CTLD read them as
removed and the Fat Cow had no aircraft, crate or loadout (VEAF Open
Trainings, configs at 2.2.0). The build dates every list from the
pinned shapes (ctld-tools since -> ctld.configListSince); the engine and
ctld-tools complete() give a list newer than the configuration's
version its default. ADR 0011 Addendum 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidp57
davidp57 merged commit dcd30fb into develop Oct 27, 2026
10 checks passed
davidp57 added a commit to VEAF/VEAF-Mission-Creation-Tools that referenced this pull request Oct 27, 2026
… the mission is missing, not removed (#1204)

* chore(vendored): take CTLD 2.0.0-rc15, the Fat Cow; a list newer than the mission is missing, not removed

rc15 ships the Fat Cow (VEAF/CTLD#273) and catalogue 2.3.0, and gives a
list newer than a mission's configuration its default (VEAF/CTLD#275):
in rc14 a 2.2.0 ctld-config.yaml had no Fat Cow aircraft, crate or
loadout. validate and ctld-upgrade read ctld.configListSince from the
vendored engine, so ctld-upgrade writes the Fat Cow lists in instead of
stamping 2.3.0 over their absence. Release asset, LF-normalised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(backlog): CHORE-VENDOR-CTLD-RC15 is PR #1204

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(types): read_list_since takes the optional engine path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant