[Skills] Add independent review gate to xpu-alignment#4392
[Skills] Add independent review gate to xpu-alignment#4392laifenxiawucha wants to merge 10 commits into
Conversation
b41b70e to
69422b1
Compare
|
@copilot , please help review this pr in depth |
This comment was marked as outdated.
This comment was marked as outdated.
Make runtime evidence, issue validity, XPU fix ownership, and canonical state explicit gates before filing or handoff. Add closed-world source/case ledgers, isolated execution evidence, review dashboards, and issue-handler eligibility rules.
33a3617 to
c97793b
Compare
|
please help review this pr in depth @copilot |
This comment was marked as outdated.
This comment was marked as outdated.
|
@copilot please help review this pr in depth |
This comment was marked as outdated.
This comment was marked as outdated.
|
@torchxpubot review Help to review this PR, and verify the following comments to see if it is true. If this is, then leave the comments there. |
| - `xpu-native` | ||
| - `xpu-compiler` | ||
| - `shared-frontend` | ||
| - `cpu-fallback` | ||
| - `unknown` |
There was a problem hiding this comment.
This part seems re-creating a set of state machine, I am not sure whether this is good or not.
In theory, we only care whether this needs XPU fix, so maintaining a state machine seems not reasonable.
|
|
||
| Write one `artifacts/assessments/<case_key>.json` per runtime-terminal case: | ||
|
|
||
| ```json |
| Write immutable `artifacts/environment.json` before candidate execution: | ||
|
|
||
| ## Step 0 preflight checklist | ||
| ```json |
| name: xpu-alignment-environment-setup | ||
| description: How to set up the run environment before scanning. Covers finding or creating the workspace XPU Python interpreter, installing or refreshing the XPU nightly, checking GitHub access, and fixing common preflight failures. Read this for Step 0. | ||
| --- | ||
| # Environment Setup |
There was a problem hiding this comment.
I believe we already have one global env setting file? So maybe this env setting is not needed. But for this PR, I think keeping it would be ok. But we anyway need to align in the future
|
|
||
| Paths are relative to the run directory. Hash exact file bytes with SHA-256. | ||
|
|
||
| ```json |
Stonepia
left a comment
There was a problem hiding this comment.
Overall, I think there is one big issue:
There are too many state machine to be maintained in this single use case. For every skill, it has one json file, one state to keep, then output. But in fact, all these skills serve for the one purpose. So to keep the maintainance simple, you need to just keep one json file, and communicate across agents/skills.
In addition, there are also some other changes needed posted in previous comment, the bot is waiting for a runner, please wait after all result is printed (https://github.com/intel/torch-xpu-ops/actions/runs/29804787930/job/88553038905)
I now have a complete picture. Let me write the review. PR Review: #4392SummaryRefactors the Overall verdict: The refactored skill is significantly over-engineered for what a Claude Code skill should be, and introduces requirements that are unrealistic in the execution environment. Correctness
Testing
XPU-Specific RisksNo XPU kernel or runtime code is changed — not applicable. Dispatch & RegistrationNot applicable — documentation-only change. Backward Compatibility
Performance
Design Issues (not covered by standard sections)
RecommendationRequest Changes The core idea (requiring stronger evidence before filing issues) is sound, but the implementation is unsuitable for a Claude Code skill:
The previous version was functional and auditable. If stronger evidence gates are desired, they should be added incrementally to the existing procedural structure rather than replacing it with a formal specification document. |
|
@torchxpubot review |
Summary
Keep the existing
xpu-alignmentscan workflow and add an independent review gate before issue filing or implementation.confirmedandrelated-failureas provisional scan resultsneeds-xpu-fixcases to proceed, with separate authorization for GitHub writes and handler executionintel/torch-xpu-ops, including implementations that belong inpytorch/pytorchissue-handlerimplements and verifies fixes but does not create PRsValidation
python3 ~/.codex/skills/.system/skill-creator/scripts/quick_validate.py .claude/skills/xpu-alignmentgit diff --check origin/main...HEADSKILL.mdexistsorigin/mainDocumentation/skill-only change; no runtime code was modified.