docs(handoff): lore — negative-control a flag fix by inverting, not if(true) (CS0219 stale-dll trap)
Build ErsatzTV Image / Docs update reminder (push) Has been skipped
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 4m57s
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 6m21s
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 6m41s
Build ErsatzTV Image / Docs update reminder (push) Has been skipped
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 4m57s
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 6m21s
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 6m41s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -175,3 +175,13 @@ HARD CONSTRAINTS:
|
||||
— Delete switches schedules via `applySwitch`, and a stale items PUT resolving after the switch
|
||||
clobbers the next schedule's draft. When adding any control that can switch the active schedule or
|
||||
reopen the editor, gate it on `saving` (and, for the editor, on the dirty draft).
|
||||
- **Negative-controlling a lock/flag fix: invert the condition, don't stub `if (true)`** (2026-07-11,
|
||||
#250): to prove a lock-release test is non-vacuous I temporarily broke the fix. First attempt made
|
||||
the guard `if (true)` — but that left the ownership flag "assigned but never read" → **CS0219 under
|
||||
warnings-as-errors → the Application build silently FAILED → `dotnet test --no-build` ran the STALE
|
||||
(fixed) dll → false PASS** that looked like the control had failed to catch the bug. The tell: build
|
||||
output must show `Build succeeded` / `0 Error(s)`, not just a truncated tail. Break the primitive by
|
||||
**inverting** the real condition (`if (!lockAcquired)`) so the flag stays read and the code compiles;
|
||||
always grep the build for `error CS` before trusting a `--no-build` test result. (Codex-found High
|
||||
this session: an outer `catch` that unlocked unconditionally cross-released another session's lock on
|
||||
a pre-acquisition exception — the fix was a Handle-scoped ownership flag gating the catch.)
|
||||
|
||||
Reference in New Issue
Block a user