U4 第三步:textextract 抽包,消除 materialindex→squad 反向依赖 #7

Merged
weichen merged 3 commits from feature/textextract-package-2026-09-29 into dev 2026-09-29 06:21:45 +00:00
Collaborator

KTD1:材料解析回归独立能力。

  • 纯文本抽取(ExtractTextWithAnchors/DOCX/锚点)迁至 internal/textextract
  • squad 只保留参谋简报提炼;4 处调用方切换
  • materialindex→squad 反向依赖清零;arch 边界已声明
  • server 存量失败与本次无关(issue #2,stash 验证)
KTD1:材料解析回归独立能力。 - 纯文本抽取(ExtractTextWithAnchors/DOCX/锚点)迁至 internal/textextract - squad 只保留参谋简报提炼;4 处调用方切换 - materialindex→squad 反向依赖清零;arch 边界已声明 - server 存量失败与本次无关(issue #2,stash 验证)
agent-bot added 1 commit 2026-09-29 06:11:21 +00:00
refactor(extract): move text extraction to internal/textextract
CI / go-vet (pull_request) Successful in 12s
CI / short-tests-report (pull_request) Failing after 36s
CI / backup-restore-drill (pull_request) Successful in 24s
CI / web (pull_request) Successful in 32s
e47cfd8f4e
KTD1 third step: material parsing returns to its own capability.
- ExtractTextWithAnchors + docx/anchor helpers move from squad/extract.go
  to internal/textextract (pure stdlib, no workflowdef dep)
- squad/extract.go keeps only ExtractAdvisorBriefing (squad domain logic)
- callers updated: squad context builders, bizdev materials, server
  chat_document_reader, materialindex pipeline
- reverse dependency materialindex -> squad eliminated (KTD1 explicit goal)
- module-boundaries.yaml: textextract declared + 4 edges
- verified: build/vet clean, arch green, textextract/squad/materialindex/
  bizdev tests green; server pre-existing env-dependent failure unchanged
  (issue #2, fails with and without this change)
agent-bot added 2 commits 2026-09-29 06:16:20 +00:00
squad -> workspace import eliminated; physical workspace refs stay
product-side per KTD1. Arch edge removed from allowlist.
refactor(squad): quote preparation moves to Core via TaskPreparer hook
CI / web (pull_request) Successful in 32s
CI / go-vet (pull_request) Successful in 14s
CI / short-tests-report (pull_request) Failing after 35s
CI / backup-restore-drill (pull_request) Successful in 33s
8c2dd49e80
KTD1 fourth step:
- squad.Options.TaskPreparer + TaskPreparation (Attachment + Backfills +
  MirrorTemplateToOutput); squad stays sole writer of its workspace files
- CDO quote calc/xlsx/backfill implementation moves to bizdev
  (quote_preparer.go); squad/quote_backfill.go relocated to bizdev
- arch path rule enforced the boundary: bizdev may not name/write
  output.md; mirroring decided squad-side via flag
- squad -> quote import eliminated; engine.go delegations now local
- verified: build/vet/arch green, squad+bizdev short tests pass
weichen approved these changes 2026-09-29 06:21:45 +00:00
weichen left a comment
Owner

三步解耦批准:textextract 抽包、workspace 死代码移除、quote 经 TaskPreparer 归 Core(arch path 规则实测有效)。

三步解耦批准:textextract 抽包、workspace 死代码移除、quote 经 TaskPreparer 归 Core(arch path 规则实测有效)。
weichen merged commit 6baaa9131f into dev 2026-09-29 06:21:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System#7