diff --git a/docs/design/01-four-phase-loop.md b/docs/design/01-four-phase-loop.md index a769588..2beb0d9 100644 --- a/docs/design/01-four-phase-loop.md +++ b/docs/design/01-four-phase-loop.md @@ -172,8 +172,10 @@ Agent 写 comment 时指定 mentions → Daemon tick 扫描新 comments → spaw CREATE TABLE IF NOT EXISTS mention_queue ( id INTEGER PRIMARY KEY AUTOINCREMENT, comment_id INTEGER NOT NULL, + task_id TEXT NOT NULL, mentioned_agent TEXT NOT NULL, status TEXT NOT NULL DEFAULT 'pending', -- pending / notified / failed + retry_count INTEGER NOT NULL DEFAULT 0, created_at TEXT NOT NULL DEFAULT (datetime('now')), notified_at TEXT, FOREIGN KEY (comment_id) REFERENCES comments(id)