Repository navigation
[Docs] FlyDSL review guidance: live-GPU test gates, test quality, Copilot checks, aiter FlyDSL notes - #7226
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
Test gates and the recorded card use get_gfx_runtime(): get_gfx() returns the last GPU_ARCHS entry, which on an MI355X with GPU_ARCHS='gfx950;gfx942' is gfx942. C5, the Copilot FlyDSL instructions and aiter-op-test now agree. aiter-op-test gains a "test that can fail" section. The Copilot FlyDSL instructions gain checks for the patterns behind its false positives and the checks that found real bugs. aiter/ops/flydsl/AGENTS.md keeps the aiter-specific FlyDSL notes: layout, tensor_shim reuse, the pin, and what a compiled-handle cache must key. Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The guidance still permits silent test mismatches, conflicts with caller-supplied output requirements, incorrectly rejects maximum-error checks, and omits dtype from the cache contract.
4 open issues
What changed in this PR
This documentation-only PR updates aiter’s FlyDSL test and review guidance and preserves repository-specific notes ahead of the upstream skill transition.
Changes:
- Aligns test gates and recorded GPU architecture with
get_gfx_runtime(), reservingget_gfx()for build-time selection. - Adds test-quality requirements and review checks intended to reduce false positives.
- Introduces shared FlyDSL agent notes and a Claude import.
| File | Description |
|---|---|
aiter/ops/flydsl/CLAUDE.md |
Imports the shared FlyDSL agent notes. |
aiter/ops/flydsl/AGENTS.md |
Documents aiter-specific layout, caching, API, architecture, and test guidance. |
.github/instructions/aiter-ops-flydsl.instructions.md |
Adds review safeguards and updates architecture-helper guidance. |
.claude/skills/review-pr/rules.md |
Updates C5 to require live-GPU detection for new test gates. |
.claude/skills/aiter-op-test/SKILL.md |
Updates architecture examples and adds requirements for tests that detect failures. |
Review effort: Balanced
691b190 to
d85f6a7
Compare
Assert on checkAllclose in the op-test template, name the aggregate error measures that hide one corrupted row, use a NaN sentinel for caller-supplied output buffers, and key compiled-handle caches on tensor dtype. Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The canonical test template records mismatch ratios without asserting an acceptance threshold, so incorrect output can still pass despite the new correctness rule.
3 open issues
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed to judge the impact of misleading FNUZ support guidance and shared FlyDSL instructions that may not be discovered in related directories.
No open issues 🎉
3 resolved since last review
Review effort: Balanced
|
@aiter-bot review |
|
aiter-bot — queued behind 1 review(s); expect to start in about 28 min. The box reviews one PR at a time. |
@yhl-amd — please take a look. Triage: if GLM serves but its output is malformed it may be the ATOM framework (@valarLip); if the box, GPU, disk or network is unhealthy it may be the machine (@gyohuangxin). Re-comment |

Companion PR: #7227 updates aiter-bot's FlyDSL rules (D10, D10b, new D13 and D14). This PR changes only the C5 block of
rules.md, so the two rebase cleanly.Summary
Updates the FlyDSL review guidance that Copilot, Claude and Codex read, based on a study of one month of review outcomes on aiter FlyDSL PRs. The study covered 1,430 review findings on 157 PRs and paired each comment with the commits that followed it.
get_gfx_runtime(), consistently in C5, the Copilot FlyDSL instructions andaiter-op-test.aiter-op-testgains a "test that can fail" section.aiter/ops/flydsl/AGENTS.md(imported byaiter/ops/flydsl/CLAUDE.md) holds the aiter-specific FlyDSL notes.Motivation
Test gates used the wrong helper. docs: Copilot FlyDSL path instructions and review-pr C5 #5730 told tests to gate on
get_gfx(). That helper returns the lastGPU_ARCHSentry, not the GPU in use: on an MI355X withGPU_ARCHS='gfx950;gfx942',get_gfx()returnsgfx942andget_gfx_runtime()returnsgfx950(measured). Theaiter-op-testrule it came from wants to "run clean on every supported card", which means the live card. Copilot then pushedget_gfx()into tests, and authors rejected it ([FlyDSL] [JIT] Add adaptive-blocked K5 prefill h-recurrence in GDN #5732).Copilot is the reviewer on every FlyDSL PR, and its comments now cost authors time. Since [CI] Add shadow PR self-review gate #7003, each Copilot finding needs an author reply. In the month studied, Copilot made 665 findings:
The false positives came from a few repeating patterns: hand-computed LDS figures, reading only the diffed lines, workgroup-barrier scope,
const_exprunrolling, and predicting compile failures on paths the PR's tests run. The new "Before you report" list targets exactly these. The "Still check" list keeps the checks that found real bugs.Weak tests. Many human review comments were about tests that could not fail: constant scales, a clamp that never triggered, pre-zeroed outputs, self-comparison, and tests CI never runs.
[Misc] Package aiter skills as a Claude Code plugin; drop FlyDSL duplicates #7208 drops aiter-specific notes. It removes aiter's copies of the FlyDSL authoring and cleanup skills in favor of FlyDSL's. Those copies carried notes that only apply to aiter: where code goes, reuse of
tensor_shim, and the pinned version.aiter/ops/flydsl/AGENTS.mdkeeps them, together with what a compiled-handle cache must key. This PR does not touch the two skills [Misc] Package aiter skills as a Claude Code plugin; drop FlyDSL duplicates #7208 deletes, and it keeps their table rows in the Copilot file as they are.Changes
.claude/skills/aiter-op-test/SKILL.md:get_gfx_runtime(), with the reason;.claude/skills/review-pr/rules.md, C5 block only:get_gfx_runtime(), and build-time codegen and AOT useget_gfx();get_gfx()test gate fires (b);.github/instructions/aiter-ops-flydsl.instructions.md:aiter/ops/flydsl/AGENTS.md(new): FlyDSL version, where code goes,tensor_shimreuse, the compiled-handle cache contract, legacybuffer_ops, raw ops, architectures, and tests.aiter/ops/flydsl/CLAUDE.md(new):@AGENTS.md, followingaiter/ops/triton/.No code changes.
Testing
Documentation and review-guidance change only. The facts the text relies on were checked on MI355X; see Validation below.
Documentation
The change is itself agent and review documentation.
Dependencies
Breaking Changes
None. Existing
get_gfx()calls in tests keep working and are not flagged on unchanged lines. Only new or changed test gates are expected to useget_gfx_runtime().PR Self-Review
Reviewed revision
b703f18
Behavior and intent
get_gfx_runtime()wherever the code asks which GPU it is running on, including test gates, becauseget_gfx()followsGPU_ARCHSand can name another arch.aiter/ops/flydsl/AGENTS.md.Validation and unverified scope
4726326bd48. Merges cleanly with [Build] [Misc] Add create-pr skill for review-ready aiter PRs #7207, which now carries [Misc] Package aiter skills as a Claude Code plugin; drop FlyDSL duplicates #7208: [Build] [Misc] Add create-pr skill for review-ready aiter PRs #7207 rewrites the skills table in the Copilot FlyDSL file, and this PR edits only the sections below it.get_gfxvsget_gfx_runtime(): measured on MI355X, aiter main, each helper in a fresh process:GPU_ARCHSunset,native,gfx950orgfx942;gfx950: both helpers returngfx950;GPU_ARCHS='gfx950;gfx942':get_gfx()returnsgfx942andget_gfx_runtime()returnsgfx950;get_lds_capacity_bytes("gfx950") == 163840.aiter-test.yamlexportsGPU_ARCHSonly for the prebuild step, so the test containers run with the native arch.AGENTS.md: checked on MI355X with FlyDSL 0.4.0 and 0.4.1.flyc.compilewith live args launches once and with CPU or placeholder args not at all. A handle reused on a view without its unit-stride axis writes outside the view. A padded-row view is correct. A handle reused on another device fails withhipErrorInvalidDevice, which is printed but not raised. The probe scripts are small standalone Python files, and I can attach them on request.triage.py expandstill emits the C5 body;triage.py mappingis unchanged;check_prompts.pypasses.aiter/ops/flydsl/AGENTS.md; its review of this PR will show it;PR-specific question
The PR Self-Review comment posted no path-specific question for this revision; the readiness report passed all checks.
Changed op tests
None.