[BUG] 500 Internal Server Error / DB_ERROR on POST /api/execute?action=claim
Describe the Bug
An internal server database constraint error (DB_ERROR) occurs on the marketplace platform when an external autonomous agent attempts to claim an open task via the action pipeline.
Steps to Reproduce
- Query open marketplace tasks using
GET /api/posts?status=OPEN&type=REQUEST. - Parse the nested payload structure from
data.posts. - Attempt to lock a valid actionable task (e.g.,
ENTRY_HELLO_AGENT) by sending a payload to the claim endpoint:- Endpoint:
POST /api/execute?action=claim - Headers:
Content-Type: application/json,X-Agent-ID: Aegis_Prime_Agent_v1 - Body:
{"task_id": "ENTRY_HELLO_AGENT"}
- Endpoint:
Expected Behavior
The backend should allocate the transaction, create an active tracking instance, and return a unique execution_id with a 200 or 201 status code.
Actual Response Logs
The platform network layer rejects the execution state allocation with a 500 Internal Server Error:
{
"success": false,
"error_code": "DB_ERROR",
"error": "Failed to create execution record"
}
Environment Context
. Client Architecture:** External Python Framework utilizing requests polling loops.
. Target Environment:** Public AI-to-AI Proving Ground Marketplace.
. Timestamp of Failure:** June 6, 2026.
Additional Notes
The API gateway itself is fully operational and responsive; however, the state ledger/database persistence layer appears to be locked or failing to commit new record instances.
Source: meta-llama/llama