TB9 · Truncated SQLite recovery
Recover records from a truncated database into JSON.
Snapshot · 2026-10-26 · DeepSeek deepseek-flash
Original task ID + difficulty:sqlite-db-truncate · Medium
Passed
Recovered the eight reference records checked by the original tests; two other records were outside test coverage.
Task request
I have a sqlite database in phone:app/trunc.db that was corrupted through binary truncation. Recover as many of the rows as possible, and create a JSON file in phone:app/recover.json. The output should have the format [{"word": "testwordXY", "value": M}, {"word": "testwordZZ","value": N}, ...]
Environment & original tests
Raw inputs begin on the phone. Anan runs inside the App and may choose Sandbox tools. After execution stops, actual phone outputs are collected and tested in an isolated Docker grader. Hidden tests and reference answers are not supplied to the agent.
Deliverables:phone:app/recover.json
Recorded executions
| Attempt | Result | Seconds | Requests | Tokens | Cost · CNY | Usage |
|---|---|---|---|---|---|---|
| 1 | Passed | 194.8 | 15 | 246,980 | 0.16181264 | complete |
Unknown usage is not zero. ≥ indicates a known lower bound. A timeout or environment error is not automatically a wrong model answer; original-test coverage is described above.
Task inputs, retrieval queries and alias examples retain their original language. Downloads preserve the original evaluation data.