From 5b50956e4f5ff5a9b87f944e49bfd06685443596 Mon Sep 17 00:00:00 2001 From: weichen Date: Mon, 5 Oct 2026 03:15:37 +0000 Subject: [PATCH 1/4] Record the task card for feature-store-pg-archived-literal --- .task/feature-store-pg-archived-literal.md | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .task/feature-store-pg-archived-literal.md diff --git a/.task/feature-store-pg-archived-literal.md b/.task/feature-store-pg-archived-literal.md new file mode 100644 index 00000000..59623654 --- /dev/null +++ b/.task/feature-store-pg-archived-literal.md @@ -0,0 +1,25 @@ +# feature/store-pg-archived-literal 任务卡 + +任务主记录:;状态:进行中;owner:weichen + +## 基线与授权 + +- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 989ed378ddd83b3bc3f47d2b497857dfe024d87f +- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-store-pg-archived-literal(worktree);分支:feature/store-pg-archived-literal +- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> + +## 目标与非目标 + +<预期结果、受影响入口/模块/契约;明确不做什么。> + +## 同步记录 + +| 节点 | sync_base_sha | tested_head_sha | checked_at | +|---|---|---|---| +| 启动 | 989ed378ddd83b3bc3f47d2b497857dfe024d87f | 989ed378ddd83b3bc3f47d2b497857dfe024d87f | 2026-10-05T03:15:37Z | + +## 结果与验证(完成后填写) + +- 结果: +- 验证: +- 影响与剩余项: From e1ec73941eb3a98dfe25b516b1ede39b9d6c68c9 Mon Sep 17 00:00:00 2001 From: weichen Date: Mon, 5 Oct 2026 03:20:00 +0000 Subject: [PATCH 2/4] Pin the ListTasks archived boolean fix in the backend store Why: the default unarchived task list still compared a BOOLEAN column to the integer literal 0, so GET /api/conversations returned 500 on the postgres tier after the previous dialect fix. Evidence: backend PR #65 (8d82408). Before the fix, TestConversationFlagsAndTaskList on pg1 failed with SQLSTATE 42883; after, go test ./internal/store -count=1 passed on pg1. Dev make test passed on this pin. Impact: modules/backend gitlink moves to 8d82408. No other surface changes. Refs: Agent-System-Backend#65 Co-authored-by: Cursor --- .task/feature-store-pg-archived-literal.md | 13 +++++++------ modules/backend | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.task/feature-store-pg-archived-literal.md b/.task/feature-store-pg-archived-literal.md index 59623654..e09e4806 100644 --- a/.task/feature-store-pg-archived-literal.md +++ b/.task/feature-store-pg-archived-literal.md @@ -1,16 +1,17 @@ # feature/store-pg-archived-literal 任务卡 -任务主记录:;状态:进行中;owner:weichen +任务主记录:Agent-System-Backend PR #65 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/65;状态:进行中;owner:weichen ## 基线与授权 - 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 989ed378ddd83b3bc3f47d2b497857dfe024d87f - 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-store-pg-archived-literal(worktree);分支:feature/store-pg-archived-literal -- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> +- 授权与交付终点:修复 postgres 档 `GET /api/conversations` 500,推进 backend 与 Dev gitlink PR。合入与 dev 部署在 PR 就绪后执行。不改 schema,不处理登录前 401。 ## 目标与非目标 -<预期结果、受影响入口/模块/契约;明确不做什么。> +- 目标:`ListTasks` 默认未归档视图把 `archived` 绑成 Go bool,消除 PG `boolean = integer`(42883)。 +- 非目标:不改迁移(PG BOOLEAN / SQLite INTEGER 保持),不改认证 401。 ## 同步记录 @@ -20,6 +21,6 @@ ## 结果与验证(完成后填写) -- 结果: -- 验证: -- 影响与剩余项: +- 结果:backend `8d82408` 将 `ListTasks` 的 `archived=0` 改为 `archived=?` 绑定 `false`;`openTestStore` 兼容 URL 与键值对 DSN,search_path 保留 public。 +- 验证:修复前 pg1 上 `TestConversationFlagsAndTaskList` 报 SQLSTATE 42883。修复后 `AGENT_PG_TEST_DSN= go test ./internal/store -count=1` 通过;backend `go vet ./... && go test ./... -count=1` 通过;Dev 仓 `make test` 通过(2026-10-05)。 +- 影响与剩余项:只推进 `modules/backend` gitlink。backend PR #65 与本仓 PR 待所有者合入;合入后重新部署 dev 并用 `GET /api/conversations` 验收。401 不在本次范围。 diff --git a/modules/backend b/modules/backend index 14aa60b6..8d82408b 160000 --- a/modules/backend +++ b/modules/backend @@ -1 +1 @@ -Subproject commit 14aa60b6985e6b1e40023e48d7bf27814ed6cf24 +Subproject commit 8d82408bb72c1cd3beab2051b83290ed735e6ae8 From 7af9b900b3740349c787bebea75a779b9db5ed94 Mon Sep 17 00:00:00 2001 From: weichen Date: Mon, 5 Oct 2026 03:20:05 +0000 Subject: [PATCH 3/4] Record the sync checkpoint --- .task/feature-store-pg-archived-literal.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-store-pg-archived-literal.md b/.task/feature-store-pg-archived-literal.md index e09e4806..110108cc 100644 --- a/.task/feature-store-pg-archived-literal.md +++ b/.task/feature-store-pg-archived-literal.md @@ -24,3 +24,4 @@ - 结果:backend `8d82408` 将 `ListTasks` 的 `archived=0` 改为 `archived=?` 绑定 `false`;`openTestStore` 兼容 URL 与键值对 DSN,search_path 保留 public。 - 验证:修复前 pg1 上 `TestConversationFlagsAndTaskList` 报 SQLSTATE 42883。修复后 `AGENT_PG_TEST_DSN= go test ./internal/store -count=1` 通过;backend `go vet ./... && go test ./... -count=1` 通过;Dev 仓 `make test` 通过(2026-10-05)。 - 影响与剩余项:只推进 `modules/backend` gitlink。backend PR #65 与本仓 PR 待所有者合入;合入后重新部署 dev 并用 `GET /api/conversations` 验收。401 不在本次范围。 +| 同步前验收 | 989ed378ddd83b3bc3f47d2b497857dfe024d87f | e1ec73941eb3a98dfe25b516b1ede39b9d6c68c9 | 2026-10-05T03:20:05Z | From 080de2dbd0fb658a9cc500f3fe51385a72676de4 Mon Sep 17 00:00:00 2001 From: weichen Date: Mon, 5 Oct 2026 03:21:05 +0000 Subject: [PATCH 4/4] Record the Dev pull request on the task card Why: the task card is the main record and needs the Dev PR link alongside the backend PR. Evidence: Dev PR #194 is open; make test already passed after task-sync. Impact: task card text only. Refs: Agent-System-Dev#194, Agent-System-Backend#65 Co-authored-by: Cursor --- .task/feature-store-pg-archived-literal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.task/feature-store-pg-archived-literal.md b/.task/feature-store-pg-archived-literal.md index 110108cc..bafe659f 100644 --- a/.task/feature-store-pg-archived-literal.md +++ b/.task/feature-store-pg-archived-literal.md @@ -1,6 +1,6 @@ # feature/store-pg-archived-literal 任务卡 -任务主记录:Agent-System-Backend PR #65 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/65;状态:进行中;owner:weichen +任务主记录:PR #194 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/194;backend PR #65 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/65;状态:进行中;owner:weichen ## 基线与授权