Repository navigation
kb init(afd-plugin): deepen - #270
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7b1ee07bd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| # afd_plugin/v1/worker 审查规则:AFD 事务元数据、控制面发送与 runner 生命周期 | ||
|
|
||
| ## AFD-I34 — `install_afd_metadata_on_forward_context` 只在 pending 为空时新建事务,顺序和子 context 判定不能改 |
There was a problem hiding this comment.
Point the owner routes at the new rule pages
For reviews touching any of these four owners, Direct still routes to the sibling architecture.md files (for example, adapters/afd_plugin/manifest.yaml:116-163), whose quick-map status is unavailable and which do not link these new component rules. Because the review workflow opens only the returned exact route and then stops navigation, all 31 rules added here are skipped, despite the reported rule-bearing coverage increase; update the manifest routes to the corresponding rules.md pages or make the routed pages deliver these rules.
AGENTS.md reference: knowledge/AGENTS.md:L16-L16
Useful? React with 👍 / 👎.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
kb initstage deepen forafd-plugin(vllm-project/afd-plugin).9cae2d2ddaae7e1752fc12ead577d59540b17f274ad86818c0ac0883e99bd8ce0ecb6667855e8b8eHuman-merged. Rules were screened by the docs redundancy filter, checked at the pin, and given an advisory verdict;
failrules are already removed.repos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/model-integration/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/attention-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/ffn-runtime/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdrepos/afd-plugin/components/connectors/rules.mdDropped rules
_afd_is_graph_replaying(attention_model_runner.py:L357-L362). The requirement to add every new field to all points goe_afd_suppress_metadata_send = Truebefore callingsend_dp_metadata, while the proposed rule says V2 sends first and then sets suppress. The cited V1 and V2 capture snippets support their respectiveconsume只核对(num_reqs, num_tokens)。如果两个 descriptor 的这两个值相同,交换其顺序不会报错;新增规则声称 descriptor 顺序改变时会报错,表述过于绝对。其余关于调用顺序、FULL 校验和assert_complete位置的描述分别有 L113-L137、L358-L391 支持。", "non_contradictory": "所示规则没有与该规则冲突;AFD-I33 要求先发送再置 suppress,AFD-I38 要求在finally中恢复符号,与 L113_ffn_forward时传update_connector_state=False。但证据未证明“重复更新会让控制面状态与 Attention 侧不同步”这一后果。", "non_contradictory": "所列规则没有要求在 capture 内更新控制面。AFD-I46 说明 REPLAY 不执行该更新,与本规则的 capture 要求不冲突。", "actionable": "审查者可以检查新增的 capturif forward_context is not None条件;只有条件成立时才执行所述赋值(ffn_model_runner.py:L223-L228)。其余主要说法有 ffn_model_runner.py:L194-L199 和 npu/ffn_model_runner.py:L298-L301、L315-L351 支持。", "non_contradictory": "与所示相邻规则没有冲突。AFD-I46 说明 graph replay 不执行_ffn_forward的 Python 代码;本Coverage:
Routes come from the adapter manifest (
review_routes); kb init writes no_routes.yamland suggests the entries it lacks on the checklist. "after" counts those suggestions as if the adapter PR were merged.Hot paths without rules:
afd_plugin/v1/worker/ascend/ffn_model_runner.py(20 PRs)afd_plugin/v1/worker/ascend/attention_model_runner.py(15 PRs)afd_plugin/v1/worker/ascend/ffn_worker.py(12 PRs)afd_plugin/compat/ascend/runtime.py(10 PRs)afd_plugin/v1/worker/dbo.py(9 PRs)afd_plugin/v1/worker/cuda_graph.py(8 PRs)afd_plugin/v1/worker/ascend/attention_worker.py(7 PRs)afd_plugin/compat/ascend/ops.py(6 PRs)afd_plugin/compat/ascend/feature_validation.py(5 PRs)afd_plugin/compat/ascend/profiler.py(5 PRs)afd_plugin/v1/worker/npu/npu_ubatch_wrapper.py(5 PRs)afd_plugin/compat/npu/forward_context.py(4 PRs)afd_plugin/v1/worker/ascend/forward_context.py(4 PRs)afd_plugin/v1/worker/ascend/npu_ubatch_wrapper.py(4 PRs)afd_plugin/v1/worker/ascend/ubatch_utils.py(4 PRs)afd_plugin/v1/worker/npu/forward_context.py(4 PRs)afd_plugin/compat/ascend/forward_context.py(3 PRs)afd_plugin/compat/npu/ops.py(3 PRs)afd_plugin/v1/worker/ascend/pcp_debug.py(3 PRs)afd_plugin/compat/ascend/runtime_config.py(2 PRs)afd_plugin/compat/profiler.py(2 PRs)afd_plugin/v1/worker/_optional.py(2 PRs)afd_plugin/v1/worker/ascend/ubatching.py(2 PRs)afd_plugin/v1/worker/npu/pcp_debug.py(2 PRs)afd_plugin/v1/worker/npu/ubatch_utils.py(2 PRs)afd_plugin/v1/worker/npu/ubatching.py(2 PRs)afd_plugin/compat/npu/profiler.py(1 PRs)afd_plugin/v1/worker/npu/mla_graph.py(1 PRs)Not done (budget or caps):
Notes: