From 870f2687cf8c23d40f6b3cf2603c8c775f1fb217 Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 04:10:44 +0000 Subject: [PATCH 1/6] Record the task card for feature-binary-doc-index --- .task/feature-binary-doc-index.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .task/feature-binary-doc-index.md diff --git a/.task/feature-binary-doc-index.md b/.task/feature-binary-doc-index.md new file mode 100644 index 00000000..2f104373 --- /dev/null +++ b/.task/feature-binary-doc-index.md @@ -0,0 +1,25 @@ +# feature/binary-doc-index 任务卡 + +任务主记录:;状态:进行中;owner:weichen + +## 基线与授权 + +- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 +- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-binary-doc-index(worktree);分支:feature/binary-doc-index +- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> + +## 目标与非目标 + +<预期结果、受影响入口/模块/契约;明确不做什么。> + +## 同步记录 + +| 节点 | sync_base_sha | tested_head_sha | checked_at | +|---|---|---|---| +| 启动 | 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 | 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 | 2026-10-01T04:10:44Z | + +## 结果与验证(完成后填写) + +- 结果: +- 验证: +- 影响与剩余项: -- 2.54.0 From 90a3a1d722a69d3637f45f1a8c387077aff8d9cf Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 04:12:26 +0000 Subject: [PATCH 2/6] Point backend at binary write guard and text indexing Why: pseudo-binary Office writes and unsearchable generated documents were the two pieces of the closed docx PR that main still needs. Evidence: backend 3e5699c; go test ./... 19 packages ok. Dev #99 and Backend #27 are closed as superseded. Impact: gitlink only. Merge after Dev #113 so the refusal text names tools that are already on main. Refs: task feature/binary-doc-index Co-authored-by: Cursor --- .task/feature-binary-doc-index.md | 13 +++++++------ modules/backend | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.task/feature-binary-doc-index.md b/.task/feature-binary-doc-index.md index 2f104373..8cfa7a08 100644 --- a/.task/feature-binary-doc-index.md +++ b/.task/feature-binary-doc-index.md @@ -1,16 +1,17 @@ # feature/binary-doc-index 任务卡 -任务主记录:;状态:进行中;owner:weichen +任务主记录:;状态:进行中;owner:weichen ## 基线与授权 - 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 - 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-binary-doc-index(worktree);分支:feature/binary-doc-index -- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> +- 授权与交付终点:重放 #99 里仍然有效的两项(写侧护栏、二进制工件抽文本再索引)。不恢复 format=docx。合入顺序在 run_shell/run_python(Dev #113)之后。合入由所有者执行。 ## 目标与非目标 -<预期结果、受影响入口/模块/契约;明确不做什么。> +- 目标:write_artifact 与 fs_write_file 拒绝 .doc/.docx/.xls/.xlsx/.xlsm/.ppt/.pptx/.pdf,文案指向 run_python + register_artifact。二进制 mime 的工件经 ingest.Parse 抽出文本后才进索引。 +- 非目标:不带回 MarkdownToDocx 参数;不改上传路径的解析。 ## 同步记录 @@ -20,6 +21,6 @@ ## 结果与验证(完成后填写) -- 结果: -- 验证: -- 影响与剩余项: +- 结果:Backend feature/binary-doc-index @ 3e5699c。Dev #99 与 Backend #27 已关闭并注明被 agent-native 路线取代。 +- 验证:go test ./... 19 包 ok(含 Office 扩展拒绝、docgen docx 可检索、坏 ZIP 不入库)。 +- 影响与剩余项:请在 Dev #113 合入后再合本 PR。 diff --git a/modules/backend b/modules/backend index 3c08f900..3e5699c5 160000 --- a/modules/backend +++ b/modules/backend @@ -1 +1 @@ -Subproject commit 3c08f9008e9cb4dd1fbcd67da9642bed74ab113d +Subproject commit 3e5699c595eebc57d8059be277fcc7222d115306 -- 2.54.0 From f0b3d86c70fd7d0672f9939eecf693c0335b1e7d Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 04:12:41 +0000 Subject: [PATCH 3/6] Record the sync checkpoint --- .task/feature-binary-doc-index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-binary-doc-index.md b/.task/feature-binary-doc-index.md index 8cfa7a08..ea70f442 100644 --- a/.task/feature-binary-doc-index.md +++ b/.task/feature-binary-doc-index.md @@ -24,3 +24,4 @@ - 结果:Backend feature/binary-doc-index @ 3e5699c。Dev #99 与 Backend #27 已关闭并注明被 agent-native 路线取代。 - 验证:go test ./... 19 包 ok(含 Office 扩展拒绝、docgen docx 可检索、坏 ZIP 不入库)。 - 影响与剩余项:请在 Dev #113 合入后再合本 PR。 +| 同步前验收 | 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 | 90a3a1d722a69d3637f45f1a8c387077aff8d9cf | 2026-10-01T04:12:41Z | -- 2.54.0 From df3e6498d7c527d85a5e74fb04759afc58bb6e11 Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 04:31:29 +0000 Subject: [PATCH 4/6] Record binary-doc-index pull request links Why: the task card is the review record and still had a placeholder. Evidence: Backend pulls/34 and Dev pulls/114 are open. make test passed before the sync checkpoint. Impact: task card only. Refs: task feature/binary-doc-index Co-authored-by: Cursor --- .task/feature-binary-doc-index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.task/feature-binary-doc-index.md b/.task/feature-binary-doc-index.md index ea70f442..85dec6e1 100644 --- a/.task/feature-binary-doc-index.md +++ b/.task/feature-binary-doc-index.md @@ -1,6 +1,6 @@ # feature/binary-doc-index 任务卡 -任务主记录:;状态:进行中;owner:weichen +任务主记录:Backend https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/34 ;Dev https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/114 ;状态:进行中;owner:weichen ## 基线与授权 @@ -22,6 +22,6 @@ ## 结果与验证(完成后填写) - 结果:Backend feature/binary-doc-index @ 3e5699c。Dev #99 与 Backend #27 已关闭并注明被 agent-native 路线取代。 -- 验证:go test ./... 19 包 ok(含 Office 扩展拒绝、docgen docx 可检索、坏 ZIP 不入库)。 +- 验证:go test ./... 19 包 ok(含 Office 扩展拒绝、docgen docx 可检索、坏 ZIP 不入库)。Dev `make test` 通过(2026-10-01,sync_base=4c4071e)。 - 影响与剩余项:请在 Dev #113 合入后再合本 PR。 | 同步前验收 | 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 | 90a3a1d722a69d3637f45f1a8c387077aff8d9cf | 2026-10-01T04:12:41Z | -- 2.54.0 From c4cf7af296541cfb6e2a8c07a9a71723c08aad03 Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 05:25:35 +0000 Subject: [PATCH 5/6] Point backend at the merged binary-doc index Why: The index branch was synced onto backend main after the interpreter merge, so the parent gitlink must follow that tip. Evidence: Backend main 42fe619 contains 34be855, and go test of tools and runmgr passed on that tip. Impact: Dev gitlink only. The write guard and text index stay, and the interpreter files remain in the pinned tree. Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Backend/pulls/34 Co-authored-by: Cursor --- modules/backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend b/modules/backend index 3e5699c5..42fe6196 160000 --- a/modules/backend +++ b/modules/backend @@ -1 +1 @@ -Subproject commit 3e5699c595eebc57d8059be277fcc7222d115306 +Subproject commit 42fe6196b16d13792741b9fbc7b3e372a3c2fc55 -- 2.54.0 From 481f5b051a2d6c7ee4ec4f529ad1e6c2d99ceea4 Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 1 Oct 2026 05:25:41 +0000 Subject: [PATCH 6/6] Record the sync checkpoint --- .task/feature-binary-doc-index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-binary-doc-index.md b/.task/feature-binary-doc-index.md index 85dec6e1..dee1c492 100644 --- a/.task/feature-binary-doc-index.md +++ b/.task/feature-binary-doc-index.md @@ -25,3 +25,4 @@ - 验证:go test ./... 19 包 ok(含 Office 扩展拒绝、docgen docx 可检索、坏 ZIP 不入库)。Dev `make test` 通过(2026-10-01,sync_base=4c4071e)。 - 影响与剩余项:请在 Dev #113 合入后再合本 PR。 | 同步前验收 | 4c4071e5d8e256dd8f82ba9c74efa1effd1e9df3 | 90a3a1d722a69d3637f45f1a8c387077aff8d9cf | 2026-10-01T04:12:41Z | +| 同步前验收 | 4968f97b8531b90caa64534eae2a3bc8ec75bb5b | 46f89cf921fea1961b1176d1e3f288f7edcc0690 | 2026-10-01T05:25:41Z | -- 2.54.0