Files
Codewalkers/drizzle/meta/_journal.json
Lukas May fab7706f5c feat: Phase schema refactor, agent lifecycle module, and log chunks
Phase model changes:
- Drop `number` column (ordering now by createdAt + dependency DAG)
- Replace `description` (plain text) with `content` (Tiptap JSON)
- Add `approved` status as dispatch gate
- Add phase dependency management (list, remove, dependents)
- Approval gate in PhaseDispatchManager.queuePhase()

Agent log chunks:
- New `agent_log_chunks` table for DB-first output persistence
- LogChunkRepository port + DrizzleLogChunkRepository adapter
- FileTailer onRawContent callback streams chunks to DB
- getAgentOutput reads from DB first, falls back to file

Agent lifecycle module (src/agent/lifecycle/):
- SignalManager: atomic signal.json read/write/wait operations
- RetryPolicy: exponential backoff with error-specific strategies
- ErrorAnalyzer: pattern-based error classification
- CleanupStrategy: debug archival vs production cleanup
- AgentLifecycleController: orchestrates retry/recovery flow
- Missing signal recovery with instruction injection

Completion detection fixes:
- Read signal.json file instead of parsing stdout as JSON
- Cancellable pollForCompletion with { cancel } handle
- Centralized state cleanup via cleanupAgentState()
- Credential handler consolidation (prepareProcessEnv)

Prompts refactor:
- Split monolithic prompts.ts into per-mode modules
- Add workspace layout section to agent prompts
- Fix markdown-to-tiptap double-serialization

Server/tRPC:
- Subscription heartbeat (30s) and bounded queue (1000 max)
- Phase CRUD: approvePhase, deletePhase, dependency queries
- Page: findByIds, getPageUpdatedAtMap
- Wire new repositories through container and context
2026-02-09 22:33:28 +01:00

139 lines
2.8 KiB
JSON

{
"version": "7",
"dialect": "sqlite",
"entries": [
{
"idx": 0,
"version": "6",
"when": 1769882826521,
"tag": "0000_bizarre_naoko",
"breakpoints": true
},
{
"idx": 1,
"version": "6",
"when": 1770236400939,
"tag": "0001_overrated_gladiator",
"breakpoints": true
},
{
"idx": 2,
"version": "6",
"when": 1770283755529,
"tag": "0002_bumpy_killraven",
"breakpoints": true
},
{
"idx": 3,
"version": "6",
"when": 1770310029604,
"tag": "0003_curly_ser_duncan",
"breakpoints": true
},
{
"idx": 4,
"version": "6",
"when": 1770311913089,
"tag": "0004_white_captain_britain",
"breakpoints": true
},
{
"idx": 5,
"version": "6",
"when": 1770314201607,
"tag": "0005_blushing_wendell_vaughn",
"breakpoints": true
},
{
"idx": 6,
"version": "6",
"when": 1770317104950,
"tag": "0006_curvy_sandman",
"breakpoints": true
},
{
"idx": 7,
"version": "6",
"when": 1770373854589,
"tag": "0007_robust_the_watchers",
"breakpoints": true
},
{
"idx": 8,
"version": "6",
"when": 1770460800000,
"tag": "0008_eliminate_plans_table",
"breakpoints": true
},
{
"idx": 9,
"version": "6",
"when": 1770508800000,
"tag": "0009_drop_account_config_dir",
"breakpoints": true
},
{
"idx": 10,
"version": "6",
"when": 1770512400000,
"tag": "0010_add_account_credentials",
"breakpoints": true
},
{
"idx": 11,
"version": "6",
"when": 1770595200000,
"tag": "0011_drop_initiative_description",
"breakpoints": true
},
{
"idx": 12,
"version": "6",
"when": 1770420629437,
"tag": "0012_add_agent_user_dismissed_at",
"breakpoints": true
},
{
"idx": 13,
"version": "6",
"when": 1770681600000,
"tag": "0013_add_proposals_table",
"breakpoints": true
},
{
"idx": 14,
"version": "6",
"when": 1770768000000,
"tag": "0014_add_exit_code_to_agents",
"breakpoints": true
},
{
"idx": 15,
"version": "6",
"when": 1770854400000,
"tag": "0015_add_agent_log_chunks",
"breakpoints": true
},
{
"idx": 16,
"version": "6",
"when": 1770940800000,
"tag": "0016_add_phase_content",
"breakpoints": true
},
{
"idx": 17,
"version": "6",
"when": 1771027200000,
"tag": "0017_drop_phase_description",
"breakpoints": true
},
{
"idx": 18,
"version": "6",
"when": 1771113600000,
"tag": "0018_drop_phase_number",
"breakpoints": true
}
]
}