Repository navigation
feat(coderd/database): add the chatd.chat_todos node and its fork queries - #32
Conversation
…ries Adds the chat_todos chatdmig node, the GetChatTodosByChatID and UpsertChatTodos fork queries, and their dbauthz and dbmetrics wrappers. The todo list authorizes through its chat like chat_subagents.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc50e8d710
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
chatd.chat_todos adds chat-associated data that the state taxonomy in ARCHITECTURE.md does not list yet. The architecture owner decides where it belongs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebb62e647d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Merged as d7d3cf3 after checking the exact head ebb62e6: fork-ci green (run 42579375416), Codex reviewed with 0 unresolved threads, and UAT passed on bc50e8d, which differs from the head only by the ARCHITECTURE.md TODO. Open owner item for @ibetitsmike: classify |
Part of #10.
Adds the storage for the chat todo list (PRD R6.1, R6.2). The tools that write it come in the next PR of the stack.
chat_todosafterchat_subagents: one row per chat,itemsis the whole list as a JSON array,versionstarts at 1 and grows on every write so readers can order events. The row goes away with its chat.GetChatTodosByChatIDandUpsertChatTodos, generated byforkdb/generate.sh.chat_subagents. dbmetrics measures both.TestForkQueriercases.No upstream file changes.
dump.sql,queries.sql.go,querier.goanddbmockare untouched. Nothing reads or writes the table until the experimentfork-chat-todos(next PR) is on.Validation:
chatdmig checklists the node afterchat_subagents, chatdmig tests, a secondgenerate.shrun leaves no drift, forkdb and dbauthz tests pass against Postgres 17.