feat: 加固 CodeGraph 查询新鲜度与过期标识 - #5
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.
变更内容
codegraph sync、一次 explore、查询后复查。sync_if_needed,调用方不能绕过自动刷新策略。CURRENT_AT_CHECK、STALE、UNKNOWN、UNAVAILABLE;STALE/UNKNOWN仅用于导航,实际结论必须由当前源码或 Git 校验。0.1.22,Workflow 保持0.1.3,新增显式0.1.21 → 0.1.22相邻迁移。原因
Polaris 需要尽可能使用新鲜的 CodeGraph 数据;当数据已知过期或无法验证时,仍可把安全图数据用于导航,但必须明确标识并以源码/Git 作为实际结论的权威来源。全量
codegraph index仍只由用户主动触发。影响与边界
验证
python3 tests/run_tests.py:228/228 通过,0 失败,0 错误,0 跳过。python3 -m compileall -q polaris_cli.py scripts tests:通过。python3 scripts/materialize_task_layout.py:无未解释漂移。git diff --check:通过。sync_if_needed;codegraph index仅出现在禁止/用户所有权文档中,无可执行路径。