($r['created_at'] ?? '') > $since)); } json_response(['success' => true, 'replies' => array_slice($all, -100)]); } if ($method !== 'POST') { error_response('Method not allowed', 405); } // v4.6.71: retired. Two write paths meant two truths — messages written here never // reached the chat thread, so they looked like a conversation nobody answered. // One write path now: /api/chat/post.php (contract: _docs/chat-contract.md). http_response_code(410); header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'code' => 'gone', 'error' => 'POST /api/debug/agent-replies.php is retired', 'use' => '/spaces/newos4/api/chat/post.php', 'contract'=> '/spaces/newos4/_docs/chat-contract.md', 'read' => '/spaces/newos4/api/chat/poll.php', ]); exit;