Skip to content

[AUTOMATED] fix(test): catalog_bytecompat was left at 102 settables while the catalog is 103 - #292

Merged
mahaloz merged 1 commit into
mainfrom
fix/catalog-count-102-to-103
Aug 12, 2026
Merged

mahaloz merged 1 commit into
mainfrom
fix/catalog-count-102-to-103

Conversation

@mahaloz

@mahaloz mahaloz commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

main is red on the cargo workspace suite at 80f8f29:

thread 'fixture_has_all_102_settables' panicked at
crates/kuna-decomp/tests/catalog_bytecompat.rs:82:5:
assertion `left == right` failed
  left: 103
 right: 102

Nothing is wrong with the catalog. phases.toml has 103 settable rows, the fixture
tests/fixtures/phase_catalog.json carries 103, and kuna_phases/tests.rs correctly
asserts 103. Only this one test's three hard-coded copies of the same number were left
behind: #287 regenerated the fixture and bumped kuna_phases/tests.rs, but did not touch
catalog_bytecompat.rs, which #290 had last set to 102.

Exactly one test failed in the whole CI run and the spec-tree guards never fired, so this
assert is the entire breakage. The diff is four lines in one file.

Why this keeps happening

Fourth break of this counter class in two days. Three of the four were during the round-4
merge train, where main and a branch had made the identical N -> N+1 edit and git
auto-merged them silently at the wrong value with no conflict marker — in one case the
file did not even appear in git status. It reaches main because the workspace suite is
skipped for internal PRs (#274), so nothing runs it until after the merge.

Gates (clean worktree at 22d5623, real exit codes)

make test        -> TEST_EXIT=0        675/675  PARITY OK
make test-stages -> STAGES_EXIT=0               PARITY OK
make check-spec  -> SPEC_EXIT=0                 OK (lenient + strict)
kuna catalog --check                            catalog OK
kuna catalog --markdown vs docs/options.md      byte-identical
make rust-test                                  running; will confirm before merge

docs/baseline.json untouched.

Recommendation, deliberately NOT in this diff

fixture_has_all_N_settables is the only one of these counters that is pure redundancy.
The test directly above it, catalog_bytes_match, already does assert_eq!(rust, FIXTURE)
against the live catalog — so a fixture that disagrees with the code fails there regardless,
and this test's own comment already defers authority elsewhere ("the authoritative per-option
list is phases.toml settableTable (counts asserted in kuna_phases/tests.rs)"). Its three
constants can only produce false failures.

Deriving them from kuna_num_settables() — which this same file already calls twelve lines
later — would remove one recurring breakage without weakening the intentional tripwire in
kuna_phases/tests.rs. Left out because the hard-coded counts are a deliberate convention
here and that is the maintainer's call. It is a three-line change if wanted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C8UQbPqALzdUQ3cLLjUeKH

…hile the catalog is 103

`main` is red on the cargo workspace suite at 80f8f29:

    thread 'fixture_has_all_102_settables' panicked at
    crates/kuna-decomp/tests/catalog_bytecompat.rs:82:5:
    assertion `left == right` failed
      left: 103
     right: 102

Nothing is wrong with the catalog. `phases.toml` has 103 settable rows, the fixture
`tests/fixtures/phase_catalog.json` carries 103, and `kuna_phases/tests.rs` correctly
asserts 103. Only this one test's three hard-coded copies of the same number were left
behind: #287 regenerated the fixture and bumped `kuna_phases/tests.rs`, but did not touch
`catalog_bytecompat.rs`, which #290 had last set to 102.

This is the fourth time this class of counter has broken in two days -- three of the four
during the round-4 merge train, where `main` and a branch had made the identical
`N -> N+1` edit and git auto-merged them silently at the wrong value with no conflict
marker. It reaches `main` because the workspace suite is skipped for internal PRs
(#274), so nothing runs it until after the merge.

Exactly one test failed in the whole CI run and the spec-tree guards never fired, so this
assert is the entire breakage.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01C8UQbPqALzdUQ3cLLjUeKH
@mahaloz
mahaloz force-pushed the fix/catalog-count-102-to-103 branch from 6cd32fa to 22d5623 Compare August 12, 2026 17:36
@mahaloz
mahaloz merged commit d7d2d0b into main Aug 12, 2026
9 checks passed
@mahaloz
mahaloz deleted the fix/catalog-count-102-to-103 branch August 12, 2026 17:43
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