Answer stability round 1: 0 🔴, 1 🟡 (0 misread); drop the repeated sentence and the term from the incident

This commit is contained in:
2026-12-03 17:20:23 +01:00
parent 504229c1bd
commit 92c49aa1e1
+1 -1
View File
@@ -88,7 +88,7 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness
- Is mutable shared state properly protected?
- Check-then-act races, including at the DB (exists-then-insert, `firstOrCreate`): is there a unique constraint that wins when two requests race?
- **Does correctness depend on reading process-global mutable state set by a *prior* call** — `json_last_error()`/`json_last_error_msg()`, `errno`, `preg_last_error()`, last-insert-id, locale, default timezone? This is **blocking** (🔴): the verdict silently breaks the moment any call is reordered or inserted between the setter and the reader, and code-reading will not catch the regression. Demand a self-contained alternative (`JSON_THROW_ON_ERROR`, an explicit return value, capturing the result on the adjacent line) even when the current ordering happens to work.
- **Where the change keeps a callback, handler or hook from running in some window** (before a constructor returns, while a lock is held, after close), list every path that can reach it, not only the direct call the diff touches: background goroutines and threads, queues and retries, timers, and process-wide handlers such as a global error handler. Report each path the guard leaves open as a finding. A guard that closes the direct call while a background path of the same record still reaches the callback is not complete.
- Where the change adds a guard that keeps a callback, handler or hook from running in some window (before a constructor returns, while a lock is held, after the owner is closed), list every path that can reach the callback, not only the direct call the diff touches: background goroutines and threads, queues and retries, timers, and process-wide handlers such as a global error handler. Report each path the guard leaves open.
- Are there potential deadlocks?
- Is state mutation predictable and traceable?