Repository navigation
harness:熵治理纳入 Swift 与文档链接(目标态设计阶段二 P8) - #62
Merged
Merged
Conversation
- quality.py:用标准库轻量解析 native/ 下 Swift(抹去注释与字符串后配对大括号), 新增三项棘轮指标:超过 500 行的文件数、函数体超过 60 行的函数数、大括号嵌套超过 6 层的函数数; 阈值取自现有 332 个函数的分布,基线 2 / 9 / 13。 - 新增 docs_check.py:已跟踪 Markdown 的相对链接断链即失败(外链、纯锚点不查,文件#锚点只查文件); 未完成状态且超过 30 天未提交的文档只报告。加入 verify 默认档与完整档。 - 首跑修正 4 处断链:README 两处 Releases 改为完整链接,session-inbox 的本机路径不再写成链接, 审计报告的计划模板指向归档位置。 - tests/test_harness_entropy.py 覆盖解析、棘轮失败、断链拦截、不误报与陈旧状态只报告。 - 规范 §1、§6,harness/README.md 同步;待办 B29 关闭。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SnowsonZ
approved these changes
Sep 28, 2026
Snowson
added a commit
that referenced
this pull request
Sep 28, 2026
规范 §6 保留 P7 与 P8 两行验证状态;待办 B29 已由 #62 关闭,B27 保留本 PR 的改写。 Task: T006 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
独立评审(试行):不通过
结论:改动实质核验为绿(测试真实、基线一致、接线正确),但证据包以 head 为 base 生成、diff 为空、R3 被误判 R0,材料不可用且会导致护栏改动绕过用户批准,退回重生成证据后再审,且属 R3 仍需用户批准
|
Collaborator
Author
独立评审(试行):需用户验收
结论:改动与自述一致、接线完整、CI 与本地实测全部通过,无阻断缺陷;但 harness 改动属 R3 且已先于本评审合入 main,需用户确认批准记录与阈值后方可视为通过。
|
Collaborator
Author
|
上一条独立评审(结论「不通过」)作废:它基于空的评审材料。原因是评审工具在 PR 已合并时按 main 的合并基点比较,得到空 diff(工具缺陷,已在 #63 修复)。以下一条评审为准。 关于该评审的第 3 条发现:本 PR 于 2026-09-28 14:59:10 UTC 由 SnowsonZ 批准,15:00:33 合并,批准先于合并。 |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
任务
任务书:无(设计评审方直接实现,目标态设计阶段二 P8)
目标终态:质量棘轮覆盖 Swift(
native/下超过 500 行的文件数、函数体超过 60 行的函数数、嵌套超过 6 层的函数数,只降不升);新增harness/docs_check.py,已跟踪 Markdown 的相对链接断链即失败,未完成状态且超过 30 天未提交的文档只报告;两者进bin/verify默认档与完整档。对应验收编号(docs/specs,新增条目写进规格验收表):不挂规格编号;证据登记在
docs/specs/delivery-harness.md§6「熵治理(P8)」。非目标:不引入新依赖;Swift 解析不处理
#if分支与正则字面量;不核对锚点是否存在;不改 quality workflow。待办(docs/plans/backlog.md):关闭 B29
阈值取自 2026-09-28
native/的分布(332 个函数:函数体行数中位 6、P95 48、P99 88;嵌套 1–4 层占 92%),基线swift_files_over_5002、swift_long_functions9、swift_deep_functions13。largest_file_lines(只报告)随--update从 1693 写为当前的 1696。首跑修正 4 处断链(文档修正,规则未放宽):
README.md、README.zh-CN.md的../../releases只在 GitHub 网页上可解析,改为完整的 Releases 链接;docs/plans/session-inbox.md把本机/opt/homebrew/...路径写成了链接,改为文字说明;docs/review/2026-09-27-harness-audit.md的计划模板已归档,链接改到docs/templates/archive/plan.md。陈旧状态:无(仓库内文档最近提交都在 30 天内)。
改动
harness/,按 R3 由用户批准。证据
tests/test_harness_entropy.py(含test_lengthened_swift_function_fails_ratchet、test_broken_relative_link_fails、test_anchors_external_links_and_code_are_not_reported、test_stale_unfinished_status_is_reported_without_failing)需要人工验收的部分
harness/quality-baseline.json(R3)。🤖 Generated with Claude Code