invocations bundle 对抗性审查报告#
阶段2(对抗性审查)产物。信源:
facts.md(v4.1.0 事实基线)+ vendor 源码实际行内容。 验证方法:每个模块名/任务名/函数签名/配置键在 vendor 源码 Grep/Read 逐项核对。
1. 审查范围#
projects/awesome-okf-xs/doc/bundles/jishu/build/tooling/invocations/ 共 22 文件:
根:
index.md、log.md(2)concepts:
00-introduction~10-composition-patterns+index.md(12)examples:
basic-usage/custom-release-flow/file-watch-auto-test/multi-site-docs/test-install-verification+index.md(6)references:
index.md+invocations-source.md(2)
2. 结论摘要#
类别 |
数量 |
说明 |
|---|---|---|
确定性漂移 |
2 |
路径错误 1、伪造配置键 1 |
疑似漂移 |
1 |
单数/复数书写不一致(prose 层) |
无问题 |
19 |
核心 API 引用全部与 vendor 一致 |
无虚构 API(未发现类似 PyInvoke 虚构 Response 类的问题);文档任务名/函数签名/参数默认值整体高度忠实于源码。
3. 确定性漂移#
D1 — references/invocations-source.md L47:源码位置路径错误#
位置:
references/invocations-source.md第 47 行原文:
external/libs/pyinvoke/invocations/真实值:
external/libs/tools/pyinvoke/invocations/invocations/(经 py314invocations.__file__实测确认)影响:指向不存在的目录,读者/工具按此路径无法定位 vendor 源码
处理:Task 3 修正路径
D2 — concepts/05-packaging-release.md L269:伪造配置键 packaging.find_opts#
位置:
concepts/05-packaging-release.mdL269(ns.configure的packaging配置块内)原文:
"find_opts": "", # find 命令额外选项证据:
invocations/packaging/release.py全文 无find_opts读取find_opts实际属于checks.blacken(invocations/checks.py读取c.config.get("blacken", {})的find_opts)concepts/02-checks-formatting.md#L72-L77 正确地将
find_opts归入blacken配置,反证 05 误写
影响:误导读者以为 release 支持
packaging.find_opts;按此配置不生效处理:Task 4 从
packaging配置块移除find_opts
4. 疑似漂移#
S1 — concepts/06-ci-automation.md L166:ci.sudo.group 单数书写#
位置:
concepts/06-ci-automation.mdL166("注意事项" prose)原文:
通过配置 ci.sudo.group 适配其他 CI 环境证据:vendor 配置键为
ci.sudo.groups(复数,见invocations/ci.pyns.configure)影响:低(prose 层描述性提及,非可执行代码)
处理:Task 4 顺手修正为
ci.sudo.groups
5. 逐文件核对记录(无问题项)#
文件 |
核对结论 |
|---|---|
references/invocations-source.md |
模块清单、公开导出模式、watch 签名均与 vendor 一致(仅 L47 路径漂移) |
concepts/00-introduction |
模块→CLI 命令映射准确 |
concepts/01-getting-started |
release 任务清单(all/build/prepare/publish/push/status/test-install/upload)、 |
concepts/02-checks-formatting |
blacken 签名/默认值/别名 format、 |
concepts/03-testing-pytest |
pytest/test/watch_tests/count_errors 均存在并准确 |
concepts/04-docs-sphinx |
build 参数表、clean/browse/doctest/tree、多站点 |
concepts/05-packaging-release |
status 三组件/枚举值、分支类型检测、prepare/build/publish/test_install/upload/push 流程准确(仅 L269 find_opts 漂移) |
concepts/06-ci-automation |
make_sudouser/sudo_run/make_sshable 及默认配置 user==invoker/password==secret/groups==[sudo,circleci] 准确(仅 L166 单复数) |
concepts/07-utilities-watchers |
confirm/tmpdir/in_ci/watch 三层 API、BaseException 容错准确 |
concepts/08-vendorize |
参数表、PyPI sdist 下载流程、 |
concepts/09-autodoc-sphinx |
TaskDocumenter/objtype/directivetype/setup(app) 准确 |
concepts/10-composition-patterns |
(架构模式类,无具体 API 漂移) |
examples/basic-usage |
模块收集/预配置 Collection 命名准确 |
examples/custom-release-flow |
|
examples/file-watch-auto-test |
watch 用法准确 |
examples/multi-site-docs |
docs/www 子集合 + |
examples/test-install-verification |
|
index.md / log.md / concepts/index.md / examples/index.md / references/index.md |
导航与链接正常 |
6. 处理建议(Task 3/4)#
Task 3:修正
references/invocations-source.mdL47 路径 →external/libs/tools/pyinvoke/invocations/invocations/;并在 frontmattersources新增本地 vendor 信源条目(满足 checklist 阶段3),上传verified字段Task 4:移除
05-packaging-release.mdL269 的packaging.find_opts;修正06-ci-automation.mdL166 为ci.sudo.groups;更新受影响文档verified字段Task 5:log.md 追加本轮审查与更新记录
Task 8:按 checklist.md 逐项打勾并以
git diff核对落盘