detail
Two independent PHP bugs found blocking all decision writes tonight. (1) systems/10-master/data/api.php add_decision referenced undefined variable $re_id and had a column/placeholder count mismatch in the INSERT — fatal error, HTTP 500 empty body. (2) backend/sys-com/db/api.php getDB() had a malformed CREATE TABLE string with literal escaped newlines and sys_id column defined 4 times — SQLite rejected it on every call that touched schema init; add_decision also referenced pt_now() as a raw SQL function name inside bound values instead of PHP-side binding. Both fixed and redeployed. Verified: writes succeed, reads unaffected, existing decisions table schema on server already matched correct structure (11 columns, no data loss). This blocked D097/D098 pre-close checklist for every system tonight until fixed.