fix: dispatch guard and Defect-safe rollback (#32)
A readable intent that fails in handling now always gets exactly one ack: the new static internal code, unless the handler's own ack was already enqueued. Both transaction helpers roll back on every unwind path, Defect included, so the shared SQLite connection never keeps an open transaction. Test-only dispfault build covers catchable/defect/after-ack; DESIGN 6.5 records internal as an owner decision and 6.2 names refusal codes as additive.
This commit is contained in:
@@ -75,6 +75,9 @@ same numbering.
|
||||
playtest, minimum zoom 0.5, walls statuses accepted, slow-client close superseded by stop-feed +
|
||||
resync, and the DESIGN split note) in 1, 4.3, 5.10, 6.1, 7.4, 13, 14
|
||||
|
||||
- v0.31 records #32 (the dispatch guard: the `internal` refusal code and unconditional rollback on
|
||||
every unwind path) in 4.2, 6.2, 6.5, 14
|
||||
|
||||
All of Q1-Q24 are RESOLVED or DEFERRED; none OPEN.
|
||||
|
||||
## B. HANDOFF traceability (old DESIGN §12)
|
||||
@@ -844,6 +847,14 @@ recovery**; only nginx proxy timeouts close a dead peer (4.3). See 1, 4.3, 5.5,
|
||||
|
||||
<!-- END old section 14 -->
|
||||
|
||||
## E. Owner decisions after the split
|
||||
|
||||
Owner also decided 2026-11-20 [FIXED (owner-delegated, 2026-11-20, #32)]: a readable intent that
|
||||
fails in handling is answered `ack {ok:false, code:"internal"}`, with no detail, and the transaction
|
||||
helpers roll back on every unwind path (`Defect` included) so the shared connection stays usable. If
|
||||
the handler's own ack was already enqueued, it stands and no second ack is appended. `internal` is
|
||||
additive in proto 2. A `Defect` is bounded damage, not a restart policy. See current 4.2, 6.2, 6.5.
|
||||
|
||||
## D. Superseded statements removed from the current spec
|
||||
|
||||
Each entry quotes the superseded statement (excerpt) and names the surviving rule.
|
||||
|
||||
Reference in New Issue
Block a user