Skip to content

afd-plugin adapter: route the four unrouted v1 worker files - #269

Merged
tzhouam merged 1 commit into
mainfrom
kb/afd-worker-routes
Sep 30, 2026
Merged

tzhouam merged 1 commit into
mainfrom
kb/afd-worker-routes

Conversation

@tzhouam

@tzhouam tzhouam commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

kb init's modules stage for afd-plugin (2026-10-01, after the skeleton PR #268) found the adapter manifest routes 8 of 9 modules. The four files of afd_plugin/v1/worker/ it does not reach are attention_metadata.py, attention_model_runner_v2.py, npu/attention_model_runner_v2.py and ffn_metadata.py. On a manifest-routed repository kb init never writes routes itself (#266), so it put them on the checklist as review_routes entries for an adapter PR: this one.

The stage suggested execution-platforms (the owner of most of the module); this follows the manifest's own per-file split instead: the attention files beside attention_model_runner.py under attention-runtime, ffn_metadata.py beside ffn_model_runner.py under ffn-runtime, each with its owner's existing doc.

Tests

Routing golden, SDK second-adapter, adapter, pilot and MCP suites pass (86 tests); commit gate approved.

🤖 Generated with Claude Code

kb init's modules stage (run on 2026-10-01 after the skeleton, PR #268)
found the manifest routes 8 of 9 modules; the four files of
afd_plugin/v1/worker/ it does not reach were attention_metadata.py,
attention_model_runner_v2.py, npu/attention_model_runner_v2.py and
ffn_metadata.py. On a manifest-routed repository init never writes
routes itself, so it put them on the checklist as review_routes entries.

The stage suggested execution-platforms (the owner of most of the
module); this follows the manifest's own per-file split instead:
the attention files beside attention_model_runner.py under
attention-runtime, ffn_metadata.py beside ffn_model_runner.py under
ffn-runtime, each with its owner's existing doc.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T18:58:52.982747Z 6194237 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61942377c2

ℹ️ 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".

- prefix: afd_plugin/v1/worker/npu/attention_worker.py
owner: attention-runtime
doc: repos/afd-plugin/components/attention-runtime/architecture.md
- prefix: afd_plugin/v1/worker/attention_metadata.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the routed files to their module path lists

When a PR changes only one of these four newly routed files, RepoAdapter.module_for_path() still returns None because the corresponding attention_runtime and ffn_runtime local_paths lists remain unchanged. _risk_paths() also omits them even though these modules are marked high risk, so a small runtime change can receive a light review and rebase verification assigns it to the generic afd_plugin fallback rather than its actual module. Add all four paths to the matching module definitions as well as review_routes.

Useful? React with 👍 / 👎.

@tzhouam
tzhouam merged commit 4ad8681 into main Sep 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant