Repository navigation
[AI Generated][FIX] 修复全仓库标准审查发现的九项问题(#797 至 #805) - #806
Merged
Merged
Conversation
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.
2026-10-05 对全仓库做了一次 AGENTS.md 标准审查,机器门禁全部通过后对门禁未覆盖的约定做了专项审计,发现的问题发布为 #797 至 #805 九个 issue,本分支逐项实施修复,一个 commit 对应一个 issue。改动解决的是三类缺口:导出契约与常量来源这类调用方可见的缺陷,全局状态与测试纪律这类工程约定缺口,以及写作要求注入后的存量文档标点债。
方案上每项都取最小修法。#797 补齐
models/__init__.py漏列的 7 个公开模型名并给exceptions.py补显式__all__,配tests/_meta/test_export_declarations.py守护两处契约面,防止再漏。#798 让geodesy.rs的 WGS84 常量从 constants.toml 生成链接值(复用drag.rs的既有模式,数值位级不变)。#799 把转移优化碰撞半径从手写常数改为按data.constants.bodies天体平均半径除以CHAR_LENGTH_KM推导,消除 389703 与 384400 的口径混用,碰撞判定边界随口径修正移动 1.4% 以内。#800 裁决 normal_form 的 qiao 常量为有意对齐锚点(MU与 DE421 口径不同是 fixture 对齐需要,不是笔误),在模块头写明不接入 loader 的理由,同时把_ephemeris.py复制的 γ 表收敛为调用libration_gamma(原注释称的循环导入实际不存在),配守护断言。#801 把 Axial 分岔缓存拆成纯函数备忘层,命中与写入两侧都复制数组,新增clear_axial_bifurcation_cache供测试隔离。#805 给mcp_exposed元数据加long_running标记,tests/_meta/test_tool_subset_manifests.py断言LONG_RUNNING_TOOLS与标记双向对账,facade 面变化时测试先报。#802 修正三处测试纪律(time_budget 补实测理由、ITRF 负路径改恒失败构造使断言必执行、删恒假 skipif)。#803 与 #804 分别修正 benchmark 脚本用法口径与存量文档的四类标点(破折号、箭头、中文分号、叙述性加粗),CHANGELOG 已发布条目、ADR 与 plans 历史记录不回溯。验证:
make check全绿(fmt、clippy、ruff、三个结构门禁、mypy);make docs零告警构建;Rust 工作区测试串行全过;受影响测试逐项定向运行通过(normal_form 51 过、transfer 套件 593 过、_meta 新增守护全过、wsb 与 ITRF 用例过)。全量 pytest 在本机触发 ADR 0037 时间预算门禁(5 个 family 用例超 10 秒),已在 master 基线 worktree 复跑确认超时数值一致,是本机 debug 构建的预存在状况,与本分支无关;CI 只跑 lint 与 typecheck,release 工作流以 release 构建跑测试不受影响。后续阅读入口:九项与 issue 的映射见各 commit 的
(#NNN)引用与 CHANGELOG 的 Unreleased 分节;qiao 锚点的裁决依据在e2m2e/algorithm/normal_form/constants.py模块头注释。Fixes #797
Fixes #798
Fixes #799
Fixes #800
Fixes #801
Fixes #802
Fixes #803
Fixes #804
Fixes #805