Files
go-kv/.omo/boulder.json
T
dailz 0fe1530e25 feat: integrate DB with Open/Close/Put/Delete/Get
- Add db.go with DB struct: Open/Close/Put/Delete/Get/GetDurableSequence/IsWriteStopped
- Add db_test.go with lifecycle, put/get, delete, recovery, and corruption tests
- Extract sentinel errors to errkit/ leaf package to break import cycle (wal -> go_kv)
- Update wal/sequence.go, wal/writer.go to import errkit instead of root package
- Root errors.go re-exports from errkit for backward compatibility

Phase 1 Wave 4d complete (T19).
2026-06-12 14:10:56 +08:00

271 lines
9.7 KiB
JSON

{
"schema_version": 2,
"active_work_id": "phase1-wal-3bc18f0c",
"works": {
"phase1-wal-3bc18f0c": {
"work_id": "phase1-wal-3bc18f0c",
"active_plan": "/home/dailz/workspace/src/go-kv/.omo/plans/phase1-wal.md",
"plan_name": "phase1-wal",
"status": "active",
"started_at": "2026-06-12T05:09:32.588Z",
"updated_at": "2026-06-12T06:09:22.858Z",
"session_ids": [
"opencode:ses_145c3bae9ffeTB2zbsTym0Cev8"
],
"session_origins": {
"opencode:ses_145c3bae9ffeTB2zbsTym0Cev8": "direct"
},
"agent": "atlas",
"task_sessions": {
"todo:1": {
"task_key": "todo:1",
"task_label": "1",
"task_title": "Project scaffolding + go.mod + config types",
"session_id": "opencode:ses_145c254a5ffemom68fK0rmB26W",
"agent": "Sisyphus-Junior",
"category": "quick",
"updated_at": "2026-06-12T05:15:14.028Z",
"started_at": "2026-06-12T05:14:15.365Z",
"status": "completed",
"ended_at": "2026-06-12T05:15:14.028Z",
"elapsed_ms": 58663
},
"todo:2": {
"task_key": "todo:2",
"task_label": "2",
"task_title": "Error types + constants",
"session_id": "opencode:ses_145bdf583ffe6PSExxk7J357zT",
"agent": "Sisyphus-Junior",
"category": "quick",
"updated_at": "2026-06-12T05:22:47.301Z",
"started_at": "2026-06-12T05:19:53.997Z",
"status": "completed",
"ended_at": "2026-06-12T05:22:47.301Z",
"elapsed_ms": 173304
},
"todo:6": {
"task_key": "todo:6",
"task_label": "6",
"task_title": "WAL Batch encode/decode + fragment collector",
"session_id": "opencode:ses_145b65d08ffebmSv4sk5I69JXZ",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:26:58.955Z",
"started_at": "2026-06-12T05:26:43.370Z",
"status": "completed",
"ended_at": "2026-06-12T05:26:58.955Z",
"elapsed_ms": 15585
},
"todo:8": {
"task_key": "todo:8",
"task_label": "8",
"task_title": "SkipList (mutex write + lock-free read)",
"session_id": "opencode:ses_145b2e10affeQnDhHreILvKkkW",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T05:33:52.854Z",
"started_at": "2026-06-12T05:32:48.230Z",
"status": "completed",
"ended_at": "2026-06-12T05:33:52.854Z",
"elapsed_ms": 64624
},
"todo:10": {
"task_key": "todo:10",
"task_label": "10",
"task_title": "Segment writer (file write + block writer)",
"session_id": "opencode:ses_145acc017ffe2fra67VT2L28LQ",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:43:11.052Z",
"started_at": "2026-06-12T05:42:38.284Z",
"status": "completed",
"ended_at": "2026-06-12T05:43:11.052Z",
"elapsed_ms": 32768
},
"todo:11": {
"task_key": "todo:11",
"task_label": "11",
"task_title": "Segment rotation + durable-ready protocol",
"session_id": "opencode:ses_145a44184ffeEK5zu36ABE7jHM",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:49:50.501Z",
"started_at": "2026-06-12T05:48:04.491Z",
"status": "completed",
"ended_at": "2026-06-12T05:49:50.501Z",
"elapsed_ms": 106010
},
"todo:13": {
"task_key": "todo:13",
"task_label": "13",
"task_title": "Commit queue + WAL writer main loop",
"session_id": "opencode:ses_1459dbbd5ffewqrKSfu5f6t38q",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T05:57:16.412Z",
"started_at": "2026-06-12T05:56:53.263Z",
"status": "completed",
"ended_at": "2026-06-12T05:57:16.412Z",
"elapsed_ms": 23149
},
"todo:17": {
"task_key": "todo:17",
"task_label": "17",
"task_title": "WAL recovery: tail truncation + main flow",
"session_id": "opencode:ses_14597418effebiQE4kDHOCEW0E",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T06:02:11.867Z",
"started_at": "2026-06-12T06:01:55.154Z",
"status": "completed",
"ended_at": "2026-06-12T06:02:11.867Z",
"elapsed_ms": 16713
},
"todo:19": {
"task_key": "todo:19",
"task_label": "19",
"task_title": "DB integration: Open/Close/Put/Delete/Get",
"session_id": "opencode:ses_1459293beffeLZq5Ac22xWZfBy",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T06:09:22.858Z",
"started_at": "2026-06-12T06:07:14.120Z",
"status": "completed",
"ended_at": "2026-06-12T06:09:22.858Z",
"elapsed_ms": 128738
}
}
}
},
"active_plan": "/home/dailz/workspace/src/go-kv/.omo/plans/phase1-wal.md",
"started_at": "2026-06-12T05:09:32.588Z",
"status": "active",
"updated_at": "2026-06-12T06:09:22.858Z",
"session_ids": [
"opencode:ses_145c3bae9ffeTB2zbsTym0Cev8"
],
"session_origins": {
"opencode:ses_145c3bae9ffeTB2zbsTym0Cev8": "direct"
},
"plan_name": "phase1-wal",
"task_sessions": {
"todo:1": {
"task_key": "todo:1",
"task_label": "1",
"task_title": "Project scaffolding + go.mod + config types",
"session_id": "opencode:ses_145c254a5ffemom68fK0rmB26W",
"agent": "Sisyphus-Junior",
"category": "quick",
"updated_at": "2026-06-12T05:15:14.028Z",
"started_at": "2026-06-12T05:14:15.365Z",
"status": "completed",
"ended_at": "2026-06-12T05:15:14.028Z",
"elapsed_ms": 58663
},
"todo:2": {
"task_key": "todo:2",
"task_label": "2",
"task_title": "Error types + constants",
"session_id": "opencode:ses_145bdf583ffe6PSExxk7J357zT",
"agent": "Sisyphus-Junior",
"category": "quick",
"updated_at": "2026-06-12T05:22:47.301Z",
"started_at": "2026-06-12T05:19:53.997Z",
"status": "completed",
"ended_at": "2026-06-12T05:22:47.301Z",
"elapsed_ms": 173304
},
"todo:6": {
"task_key": "todo:6",
"task_label": "6",
"task_title": "WAL Batch encode/decode + fragment collector",
"session_id": "opencode:ses_145b65d08ffebmSv4sk5I69JXZ",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:26:58.955Z",
"started_at": "2026-06-12T05:26:43.370Z",
"status": "completed",
"ended_at": "2026-06-12T05:26:58.955Z",
"elapsed_ms": 15585
},
"todo:8": {
"task_key": "todo:8",
"task_label": "8",
"task_title": "SkipList (mutex write + lock-free read)",
"session_id": "opencode:ses_145b2e10affeQnDhHreILvKkkW",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T05:33:52.854Z",
"started_at": "2026-06-12T05:32:48.230Z",
"status": "completed",
"ended_at": "2026-06-12T05:33:52.854Z",
"elapsed_ms": 64624
},
"todo:10": {
"task_key": "todo:10",
"task_label": "10",
"task_title": "Segment writer (file write + block writer)",
"session_id": "opencode:ses_145acc017ffe2fra67VT2L28LQ",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:43:11.052Z",
"started_at": "2026-06-12T05:42:38.284Z",
"status": "completed",
"ended_at": "2026-06-12T05:43:11.052Z",
"elapsed_ms": 32768
},
"todo:11": {
"task_key": "todo:11",
"task_label": "11",
"task_title": "Segment rotation + durable-ready protocol",
"session_id": "opencode:ses_145a44184ffeEK5zu36ABE7jHM",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T05:49:50.501Z",
"started_at": "2026-06-12T05:48:04.491Z",
"status": "completed",
"ended_at": "2026-06-12T05:49:50.501Z",
"elapsed_ms": 106010
},
"todo:13": {
"task_key": "todo:13",
"task_label": "13",
"task_title": "Commit queue + WAL writer main loop",
"session_id": "opencode:ses_1459dbbd5ffewqrKSfu5f6t38q",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T05:57:16.412Z",
"started_at": "2026-06-12T05:56:53.263Z",
"status": "completed",
"ended_at": "2026-06-12T05:57:16.412Z",
"elapsed_ms": 23149
},
"todo:17": {
"task_key": "todo:17",
"task_label": "17",
"task_title": "WAL recovery: tail truncation + main flow",
"session_id": "opencode:ses_14597418effebiQE4kDHOCEW0E",
"agent": "Sisyphus-Junior",
"category": "unspecified-high",
"updated_at": "2026-06-12T06:02:11.867Z",
"started_at": "2026-06-12T06:01:55.154Z",
"status": "completed",
"ended_at": "2026-06-12T06:02:11.867Z",
"elapsed_ms": 16713
},
"todo:19": {
"task_key": "todo:19",
"task_label": "19",
"task_title": "DB integration: Open/Close/Put/Delete/Get",
"session_id": "opencode:ses_1459293beffeLZq5Ac22xWZfBy",
"agent": "Sisyphus-Junior",
"category": "deep",
"updated_at": "2026-06-12T06:09:22.858Z",
"started_at": "2026-06-12T06:07:14.120Z",
"status": "completed",
"ended_at": "2026-06-12T06:09:22.858Z",
"elapsed_ms": 128738
}
},
"agent": "atlas"
}