You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Facade audit: a BorrowedDatabase (a database handle borrowed from a statement) gets the same false invalidation violation #1834 fixed for the failed-state type #1977
Found by the #1834 fix (d95a7d9, wave-cimport). facade_type_holds_resource now counts a failed-state type as holding the modeled resource, so audit:all no longer flags errmsg on it. A borrowed handle (st.database() → BorrowedDatabase) can hit the same false audit violation, but fixing it the same way would also change ACCEPTANCE: let b = st.database().unwrap(); st.step(); b.changes() is rejected today and would be accepted.
Coordinator's reading of D51 (canon): the ruling's test is what happens if this inference is wrong? — whether step invalidates a borrowed database handle may not be inferred from the type's shape, because inferring 'not invalidated' can create unsafety. So acceptance must not change by classification; if step does not invalidate the borrowed handle (true for sqlite3_db_handle), the SQLite facade states it with an explicit clause, and the audit reads the same fact acceptance reads (one owner). Fix: (1) the audit must not report a violation acceptance does not (if it does today, that is the bug); (2) if the facade grammar has a clause for 'this borrowed resource is not invalidated by this call', use it in the SQLite facade; if it has none, stop and brief Eric — that is a D51 gap only he rules on.
Fixed on main in c884c1c (stack #2001 → #2010, seed-driven battery GREEN on b932ef6, tree identical to main). Fixture coverage is in the stack's commits.
Activity
Facade audit reads acceptance's fact: an effect's presented parameter…
contract-view-tests: snapshot for ok_borrowed_resource_effect (#1977)
Sema: one arity check for every call path (#1973); owned ?? / unwrap_…
ehartford commentedon Oct 3, 2026
Fixed on main in c884c1c (stack #2001 → #2010, seed-driven battery GREEN on b932ef6, tree identical to main). Fixture coverage is in the stack's commits.