docs(568): re-measure the rows the seeder's lookup call moved, and recount the table's own claims

The seeder now resolves the built-in row through GetBuiltInElementId, which puts
that lookup on a second call path, so every row whose clause the new call can
reach was re-run against this tree: 10 and 33 unchanged, 18 reinstated (the
Kind == Text filter has a red now that a wrong-kind row at the seeded path can
suppress the row the lookup needs), 21 unchanged, 22 gains a third red, and 34
is new (the existence check re-derived as SQL instead of asking the lookup).

Two stale measurements went with it. The "known clauses with no red" bullet for
the Kind filter quoted 2121 passed against a tree that produces 2123, having been
taken before the branch's last two tests existed -- the whole bullet is gone now
that the clause has a red. And the per-fixture-filter trap counted thirteen
multi-test rows with two spanning two fixture classes, true on origin/main and
false here since the branch added rows: fifteen and three, both recounted from
the table, with a note that they are.

Decisions-Edit: yes

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QqCpYFsKgnAnx6jVwrKiV
This commit is contained in:
2026-09-05 21:35:15 +02:00
co-authored by Claude Fable 5.1
parent 74a6e01712
commit 41fd1f64de
2 changed files with 34 additions and 22 deletions
+28 -21
View File
@@ -127,12 +127,22 @@ exactly `on-now-next.yml` in a different template folder also report `builtIn:tr
`GraphicsElementResponseModel.BuiltIn` and `GraphicsElementSeeder.GetBuiltInElementId` resolve it
through the one predicate, `GraphicsElementDefaults.IsOnNowNext`, so the SPA never name-matches.
The seeder's own "does this row exist yet?" test — `EnsureBuiltInElementRow`, which decides whether
to create the row at startup — does not re-derive that predicate either: it calls
`GetBuiltInElementId`, so the question asked at startup is the question every consumer asks
afterwards. As its own SQL `Path == target` comparison it could answer differently in two ways, each
leaving the built-in element undiscoverable for the life of the install (#568): the collation one
below, and `Kind`, which the SQL check ignored while the lookup requires it. That second one is what
makes the `Kind == Text` filter in the lookup load-bearing rather than belt-and-braces (row 18).
Creating the row stays idempotent because the path it writes is the path the lookup matches — held
by `Repeated_Seeding_Does_Not_Accumulate_Element_Rows` (row 21), which reddens if the two drift.
`IsOnNowNext` is **ordinal**, and every caller applies it **in memory** rather than in a `Where`
clause. That is not incidental: `GraphicsElement.Path` takes no explicit collation (`TvContext`
pins one only on the listed name/title columns), so a SQL `Path ==` comparison is case-sensitive
under SQLite and normally case-INsensitive under MySQL. Evaluating one of the two discriminator
sites in SQL and the other in memory is what would let them disagree, on MySQL only. The SQLite test
suite cannot distinguish the two — BINARY collation and an ordinal comparison agree on every input —
under SQLite and normally case-INsensitive under MySQL. Evaluating one discriminator site in SQL and
another in memory is what would let them disagree, on MySQL only. The SQLite test suite cannot
distinguish the two — BINARY collation and an ordinal comparison agree on every input —
so this is held by keeping the comparison out of SQL, not by a test; what the case-variant tests in
the table below pin is the ordinal rule itself, against a loosening to `OrdinalIgnoreCase`.
@@ -158,8 +168,10 @@ Three traps this table is built to avoid:
- **Measure against the whole project, never a per-fixture filter.** A filtered run structurally
cannot observe a red in another fixture, so it under-reports the failure set while looking precise.
Thirteen rows below redden more than one test, and two of them span two fixture classes — those two
are exactly what a per-fixture filter cannot see.
Fifteen rows below redden more than one test, and three of them span two fixture classes — those
three are exactly what a per-fixture filter cannot see. Both figures are counted from the table
itself, so a row added without recounting them makes this bullet quietly false — recount both
whenever a row is added or its red set changes.
- **A mutation that fails to COMPILE is not a result.** Warnings-as-error turn the obvious mutation
shapes into build failures — `CS0162` for `if (true) { return; }`, `CS1717` for self-assignment,
Sonar `S3981` for a constant-folded condition — and a build failure emits no test summary at all,
@@ -189,25 +201,18 @@ a test that cannot fail:
- the inner `catch` around that cleanup delete — it stops a failing delete from replacing the
exception being unwound (which C# otherwise does, and which would downgrade a real cancellation to a
swallowed warning). `MockFileSystem` does not propagate an interceptor throw raised during the
delete, so the clause is correct by language semantics but not reachable from a test here;
- the `Kind == GraphicsElementKind.Text` filter in `GetBuiltInElementId` (#568) — belt-and-braces
since `OnNowNextSeededPath` is itself a text-template-folder path, so the `IsOnNowNext` clause
(row 10) always excludes a wrong-`Kind` row first. Measured 2026-09-05: with the `Kind` filter
dropped, the WHOLE `ErsatzTV.Tests` suite stays green — 2121 passed, 6 skipped, 0 failed. The
whole project rather than a filtered subset on purpose: `ChannelGraphicsDefaults` reaches this
lookup from the channel-create handlers too, so a population scoped to the tests that name
`GetBuiltInElementId` would have missed them. `Ignores_A_Same_Named_Element_Of_A_Different_Kind`
stays green for the same reason as the rest — its element's path never equals the seeded path,
regardless of `Kind`.
delete, so the clause is correct by language semantics but not reachable from a test here.
Rows are written per clause, not per block: a row naming a whole `if` or a whole style-merge block
hides which individual fields inside it are actually reachable from a test.
A row number is an identity, not a position: this section's own prose cites rows by number ("the
`IsOnNowNext` clause (row 10)" above), so a new row takes the next unused number and the rest are
never renumbered. A clause that stops having a red keeps its number vacant instead — 18 is vacant
because the `Kind == Text` filter moved to the list above on 2026-09-05, and reusing it would silently
re-point every existing citation.
A row number is an identity, not a position: prose elsewhere cites rows by number (the built-in
element section above cites rows 18 and 21), so a new row takes the next unused number and the rest
are never renumbered. A clause that loses its red keeps its number vacant rather than freeing it for
some other clause — reusing it would silently re-point every existing citation. Reinstating the SAME
clause under its OWN number is the sole exception, because that is the same identity and not a new
one: row 18 is the `Kind == Text` filter, and stays that clause whether or not it currently has a
red.
| # | Clause mutated | Reddens (measured) |
|---|---|---|
@@ -228,10 +233,11 @@ re-point every existing citation.
| 15 | FitTextBlock drops HaloColor again | `The_Scale_Path_Preserves_Halo_Blur`<br>`The_Scale_Path_Preserves_The_Halo` |
| 16 | unrounded inset subtracted from the budget | `Fractional_Padding_Still_Respects_Width_Percent` |
| 17 | inset clamp removed | `An_Oversized_Padding_Is_Clamped_To_The_Largest_That_Fits` |
| 18 | `Kind == GraphicsElementKind.Text` filter dropped from the built-in lookup (#568) — the lookup is what `EnsureBuiltInElementRow` asks, so a wrong-kind row at the seeded path would answer for the Text row that never then gets created | `A_Row_Of_Another_Kind_At_The_Seeded_Path_Does_Not_Suppress_The_Built_In_Row` |
| 19 | Sanitize passes values through unchecked | `Non_Finite_And_Absurd_Box_Values_Do_Not_Corrupt_The_Geometry` |
| 20 | the BOX itself is no longer clamped (only insetPixels) | `An_Oversized_Border_Is_Clamped_And_Does_Not_Flood_The_Element` |
| 21 | duplicate guard removed from EnsureBuiltInElementRow | `Repeated_Seeding_Does_Not_Accumulate_Element_Rows` |
| 22 | EnsureBuiltInElementRow removed from the ALREADY-SEEDED branch | `An_Already_Seeded_Install_Missing_Its_Element_Row_Gets_One`<br>`Repeated_Seeding_Does_Not_Accumulate_Element_Rows` |
| 22 | EnsureBuiltInElementRow removed from the ALREADY-SEEDED branch | `A_Row_Of_Another_Kind_At_The_Seeded_Path_Does_Not_Suppress_The_Built_In_Row`<br>`An_Already_Seeded_Install_Missing_Its_Element_Row_Gets_One`<br>`Repeated_Seeding_Does_Not_Accumulate_Element_Rows` |
| 23 | non-atomic in-place write restored | `A_Failed_Replace_After_A_Complete_Temp_Write_Leaves_The_Original_Intact`<br>`A_Failed_Write_Leaves_The_Original_Template_Intact` |
| 24 | marker written even with nothing resolved | `Stays_Armed_When_There_Is_No_Built_In_Element_To_Attach`<br>`While_Armed_A_Restored_Element_Is_Attached_To_Every_Eligible_Channel` |
| 25 | the atomic replace becomes a non-atomic copy | `A_Failed_Replace_After_A_Complete_Temp_Write_Leaves_The_Original_Intact` |
@@ -243,3 +249,4 @@ re-point every existing citation.
| 31 | the 0-100 opacity clamp is removed | `Background_Opacity_Percent_Is_Clamped_To_Its_Documented_Range` |
| 32 | the lineup create path stops attaching the built-in element | `Should_Attach_The_Built_In_On_Now_Next_Element` |
| 33 | `IsOnNowNext` loosened from `Ordinal` to `OrdinalIgnoreCase` (#568) — one row for both discriminator sites, since they share the predicate | `GetAllGraphicsElementsForApi_Should_Not_Mark_A_Case_Variant_Of_The_Seeded_Path_As_BuiltIn`<br>`Ignores_A_Case_Variant_Of_The_Seeded_Path` |
| 34 | `EnsureBuiltInElementRow`'s existence check re-derived as a SQL `AnyAsync(e => e.Path == target)` instead of asking `GetBuiltInElementId` (#568) | `A_Row_Of_Another_Kind_At_The_Seeded_Path_Does_Not_Suppress_The_Built_In_Row` |