forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb-lock-a.json
More file actions
22 lines (22 loc) · 830 Bytes
/
Copy pathdb-lock-a.json
File metadata and controls
22 lines (22 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "db-lock-a",
"pair": "db-lock",
"phase": "A",
"description": "Fix a sqlite3.OperationalError: database is locked error in an agent state manager.",
"setup": {
"repo_state": "agent_state.py using sqlite3.connect() without timeout",
"error_message": "sqlite3.OperationalError: database is locked",
"trigger": "concurrent access from two agent processes"
},
"expected_outcome": {
"fix_approach": "add timeout parameter, use WAL mode, or implement retry with backoff",
"lesson_generated": true,
"lesson_fields": ["title", "domain", "problem", "root_cause", "solution", "verification"]
},
"validation": {
"lesson_schema_valid": true,
"lesson_mentions_wal_or_timeout": true,
"fix_prevents_recurrence": true
},
"teaches": "SQLite concurrency pattern for agent state"
}