Repository navigation
[AUTOMATED] fix(test): catalog_bytecompat was left at 102 settables while the catalog is 103 - #292
Merged
Merged
Conversation
…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
force-pushed
the
fix/catalog-count-102-to-103
branch
from
August 12, 2026 17:36
6cd32fa to
22d5623
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainis red on the cargo workspace suite at 80f8f29:Nothing is wrong with the catalog.
phases.tomlhas 103 settable rows, the fixturetests/fixtures/phase_catalog.jsoncarries 103, andkuna_phases/tests.rscorrectlyasserts 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 touchcatalog_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
mainand a branch had made the identicalN -> N+1edit and gitauto-merged them silently at the wrong value with no conflict marker — in one case the
file did not even appear in
git status. It reachesmainbecause the workspace suite isskipped for internal PRs (#274), so nothing runs it until after the merge.
Gates (clean worktree at 22d5623, real exit codes)
docs/baseline.jsonuntouched.Recommendation, deliberately NOT in this diff
fixture_has_all_N_settablesis the only one of these counters that is pure redundancy.The test directly above it,
catalog_bytes_match, already doesassert_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 lineslater — 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 conventionhere 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