Commit Graph

17 Commits

Author SHA1 Message Date
pzhang_zywl 4a8032665f fix: ensemble 温度从 3 个增至 4 个增加多样性 - Closes #75
CI / test (pull_request) Successful in 8s
新增 t=0.5 温度变体,提高 ensemble 多样性以捕获更多功能单元。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 18:55:16 +08:00
pzhang_zywl 473a3c8d4f test: conftest ir_data 防御 list-type section + normalize 异常回退 - Closes #70
CI / test (pull_request) Successful in 7s
2026-06-02 17:37:47 +08:00
pzhang_zywl cbafd30ec7 fix: acceptance test 加载 IR 时应用 _normalize_rule 修复旧 IR 文件中的 schema 问题 - Closes #57
CI / test (pull_request) Successful in 8s
ir_data fixture 在加载 ir_final.json 后对每条 rule 调用 _normalize_rule,
确保旧 pipeline 输出也能受益于最新的防御性修复(非法 source type、
缺失 section 字段等)。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 16:57:48 +08:00
pzhang_zywl 076fb25eda test: _measure_coverage overall 排除零内容维度 - Closes #36
CI / test (pull_request) Successful in 8s
添加 3 个回归测试验证 total=0 的维度不参与 overall 计算:
- 零内容维度被正确排除
- 所有维度有内容则全部参与
- 无内容时返回 0.0
fix 已在 1a867b0 合入,本次补充 UT 覆盖。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 14:20:38 +08:00
pzhang_zywl 1a867b0dcb fix: _measure_coverage 零内容维度不再拉低 overall 覆盖率 - Closes #21
CI / test (pull_request) Successful in 8s
当某个维度(如图表)无内容时(total=0),rate 设为 1.0 且不参与 overall 均分。
此前 0/0 被算作 0%,将 overall 从 86.1% 拉低到 57.4%。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 14:05:29 +08:00
pzhang_zywl 119c08faca test: _extract_content_units 仅统计功能章节表格行 - Closes #33
CI / test (pull_request) Successful in 9s
非功能章节(变更日志、术语解释等)的表格行不可能被
function_units 覆盖,计入分母会导致覆盖率虚低。

修复: table_rows 统计仅在 _is_functional_section
且 _has_section_content 的章节中进行。

Table 覆盖率: 54.2% → 72.2% (24行→18行分母)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 14:06:16 +08:00
pzhang_zywl 01c93e52d3 test: _has_section_content() 过滤空章节,修复章节覆盖率误报 - Closes #29
CI / test (pull_request) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 10:16:23 +08:00
pzhang_zywl a2fabcc7a6 test: 修复端到端管道运行器和 Layer B IndexError - Closes #14
CI / test (pull_request) Successful in 7s
- run_pipeline.py: 修复 subprocess env 传递、parsed_path 检测、Unicode 编码
- test_main_health.py: 修复 _is_functional_section 空章节名 IndexError
- 端到端测试管道: doc_parser → ir_generation(4 steps) → acceptance tests
- 测试发现问题汇总至 dev issue #15
2026-05-31 17:28:26 +08:00
pzhang_zywl 5c451099ad test: 移除硬编码路径,适配新 config.py 目录结构 - Closes #10
CI / test (pull_request) Successful in 7s
- conftest.py: secrets 路径改为多位置查找 (QE_SECRETS_PATH env → ~/.openclaw/config/ → workspace-document-analyzer/config/)
- conftest.py: IR 默认路径改为 output/final/ir_final.json (匹配 config.IR_FINAL_JSON)
- conftest.py: parsed 默认路径改为项目相对路径
- agent_poller.py: 添加 --labels 过滤 (向后兼容)
- 新增 agents/QE_AGENT.md + scripts/start_qe_agent.sh
2026-05-31 16:48:35 +08:00
pzhang_zywl c2affcad42 fix: 移除 hardcode 输入文件路径,完善输入验证 - Closes #8
CI / test (pull_request) Successful in 9s
- 移除 _DEFAULT_INPUT 硬编码默认输入文件路径
- INPUT_JSON 仅从 IR_INPUT_JSON 环境变量获取
- load_input_document() 无输入时给出明确错误提示
- 新增 test_no_hardcoded_input_file / test_set_input_file_accepts_none

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 16:16:49 +08:00
pzhang_zywl 884848f15f fix: 统一输出文件目录结构 - Closes #3
CI / test (pull_request) Successful in 7s
- 新增 PROJECT_OUTPUT (项目根/output/),统一所有输出文件
- IR 中间产物 → output/ir/,最终交付物 → output/final/
- agent_poller.py 新增 pr-status/merge-pr/close-issue/lifecycle 命令
- DEV_AGENT.md 同步更新完整闭环流程
- 更新 conftest/test_sample 中的默认路径

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 14:38:37 +08:00
pzhang_zywl 682dedb4b4 fix: 完善 UT 覆盖,统一 pytest 测试发现 - Closes #2
CI / test (pull_request) Successful in 9s
- 新建 pytest.ini 统一 test discovery(tests/ + skills/ir_generation_skill/tests/)
- test_step1~3 转换为 pytest 兼容格式,无输出文件时自动 skip
- 新增 tests/test_detect_conflicts.py(18 个纯函数单测)
- 新增 tests/test_config.py(7 个配置模块单测)
- CI 改为 pytest -v 使用 pytest.ini testpaths
- DEV_AGENT.md 新增 PR 提交规范

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:07:07 +08:00
pzhang_zywl 62493d3513 fix: Dev-Agent handles all non-test issues, broaden issue scope beyond qe-feedback label
CI / test (push) Successful in 7s
2026-05-30 23:19:56 +08:00
pzhang_zywl fec4c09ee0 sync: update all skills from latest workspace code
CI / test (push) Successful in 8s
doc_parser_skill:
- New: verify_flowchart.py (flowchart validation)
- Updated: LLM.py (multi-provider: DeepSeek + DashScope)
- Updated: image_parser.py (logic tree support, external prompts)
- Updated: SKILL.md, prompts/image_prompt.md

conflict_detection_skill:
- Updated: LLM.py (multi-provider sync)
- Updated: detect_conflicts.py (logic tree text conversion)

ir_generation_skill:
- Replaced old scripts/LLM.py + ir_generator.py with standalone project
- New: main.py, config.py, step1-3_*.py, ensemble_merge.py
- New: prompts/, tests/ subdirectories

tests:
- New: acceptance/ test suite with schema validation
- Fixed: conftest no longer globally skips non-acceptance tests
- Updated: test_sample.py for new ir_generation structure

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 22:45:08 +08:00
pzhang_zywl dd9d18c37d fix: remove deliberate failure - Closes #1
CI / test (push) Successful in 6s
All tests pass now. CI failure workflow verified successfully.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 22:12:23 +08:00
pzhang_zywl d68c45a762 test: add deliberate failure to verify CI pipeline
CI / test (push) Failing after 26s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 20:31:41 +08:00
pzhang_zywl 40567a4fb6 Initial commit: document_analyzer with CI/CD pipeline
CI / test (push) Successful in 30s
- 4 skill pipeline (doc_parser, conflict_detection, ir_generation, resolution_application)
- CI workflow on push/PR (.gitea/workflows/ci.yml)
- Auto-issue on CI failure (.gitea/workflows/auto-issue.yml)
- Pytest smoke tests (tests/test_sample.py)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 20:00:26 +08:00