chore: 删除 5 个遗留调试脚本并同步文档引用 #12

Merged
gjm merged 5 commits from home-lenovo-legion-r9000/home-ai-dev AGit into main 2026-10-14 19:16:39 +08:00
Collaborator
  • 删除 agent_loop.py / dwg_review_agent.py / countOfCircle.py
    (硬编码 DeepSeek API Key)与 test.py / test_autoagent.py
    (重复实现;且 test_autoagent.py 名字与 pytest 的 test_*.py 收集规则冲突)
  • CODEBUDDY.md 测试章节改为「pytest 快层 + verify_* 慢层」
  • review_checklist.json 描述改指 dwg_review 包
  • ai.memory 同步引用与历史说明

安全:Key 已随提交 bdd77af 进入 git 历史并推到远程,删除文件不能清除历史,
需去 DeepSeek 控制台轮换该 Key(已在 ai.memory 备案)。

- 删除 agent_loop.py / dwg_review_agent.py / countOfCircle.py (硬编码 DeepSeek API Key)与 test.py / test_autoagent.py (重复实现;且 test_autoagent.py 名字与 pytest 的 test_*.py 收集规则冲突) - CODEBUDDY.md 测试章节改为「pytest 快层 + verify_* 慢层」 - review_checklist.json 描述改指 dwg_review 包 - ai.memory 同步引用与历史说明 安全:Key 已随提交 bdd77af 进入 git 历史并推到远程,删除文件不能清除历史, 需去 DeepSeek 控制台轮换该 Key(已在 ai.memory 备案)。
home-Lenovo-Legion-r9000 added 2 commits 2026-10-14 19:07:54 +08:00
在改动审查流水线(确定性检查前置 / 结论结构化 / 证据交叉校验)之前,
先立一张离线、确定性、秒级的回归网。

- tests/fakes.py:假 LLM + 假 MCP 基座 + 响应构造器(ok_text/ok_image/err)
  + make_ctx/make_evidence,绝不触网、不读密钥
- 10 个模块共 134 用例:
  mcp_client / llm_client / cad_tools / checklist / config /
  planning / evidence / review / report / annotator
- pytest.ini(testpaths=tests)+ requirements-dev.txt + 根 conftest.py
  (sys.path + RENDER_WAIT=0 / REPORT_DIR=tmp fixture)
- 删除 agent_loop.py / dwg_review_agent.py / countOfCircle.py
  (硬编码 DeepSeek API Key)与 test.py / test_autoagent.py
  (重复实现;且 test_autoagent.py 名字与 pytest 的 test_*.py 收集规则冲突)
- CODEBUDDY.md 测试章节改为「pytest 快层 + verify_* 慢层」
- review_checklist.json 描述改指 dwg_review 包
- ai.memory 同步引用与历史说明

安全:Key 已随提交 bdd77af 进入 git 历史并推到远程,删除文件不能清除历史,
需去 DeepSeek 控制台轮换该 Key(已在 ai.memory 备案)。
home-Lenovo-Legion-r9000 added 1 commit 2026-10-14 19:08:50 +08:00
Key 已随 bdd77af 进入 git 历史并推送远程,删除文件无法清除历史,
须由用户去 DeepSeek 控制台轮换(仓库外人工操作)。
home-Lenovo-Legion-r9000 added 1 commit 2026-10-14 19:09:57 +08:00
让既有瑕疵可见,而不是被当成正确行为;改 1~3(确定性检查前置/结论结构化/
证据交叉校验)时可据此判断行为是否被改变。

- bbox_to_window 含非数值 → ValueError(上游只判长度)
- summarize / extract_issues 硬下标 f['frame'] → KeyError
- annotate 的 created 无去重(同 handle 产生重复批注)
- extract_issues 单行 ```json[...]``` 围栏剥离失败 → []
- result_json 文本 'null' → None(与「无 text 返回 default」语义易混)
home-Lenovo-Legion-r9000 added 1 commit 2026-10-14 19:14:45 +08:00
用户已在 DeepSeek 控制台吊销旧 Key 并在系统级 DEEPSEEK_API_KEY 设置新 Key;
AI 侧验证:read_env 读到非空 + 一次真实 chat_text 调用成功。
gjm merged commit a0ea902b50 into main 2026-10-14 19:16:39 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gjm/cad-agent#12