← Back to Pull requests

[rocjitsu][consan] Trace selected application dispatches #16538

Open
unknown opened this pull request with 354 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 23, 2026 18:55 UTC
Author

The application adapter previously admitted only native dispatches, while
selected instrumentation required a qualified LDS access profile. An
application kernel without suitable LDS sites could run natively, but
could not produce selected execution evidence. Treating native completion
as probe execution would leave that gap hidden.

Add an execution-trace preparation profile for gfx1250 wave32 kernels.
Reuse whole-image selection and shared DBI entry/terminal placement to
instrument entry and recognized exits. Admit selected trace dispatches
alongside native application work. Trace qualification supports closed
direct control flow, natural loops and zero LDS while retaining ABI,
register preservation and resource checks.

Give ExecutionTrace its own scope, boundary facts and row interpretation.
GPU probes record each wave's workgroup identity and one entry/exit pair;
host initialization leaves those observation fields unset. Keep LDS
phase/loss fields and initialization separate. The trace analyzer
validates saved identities and transport and reports
lds_analysis: not_performed, without an LDS race verdict.

Own original argument snapshots before packet publication, and retain each
report lease until completion and an independent host copy. Observe
pending application launches independently of completion order, then write
owned snapshots in submission order. Trace completion records visibility
without claiming application-signal forwarding; controlled LDS captures
retain their existing execution-condition and forwarding requirements.

The initial trace profile accepts complete 1D workgroups, up to 512 groups,
with an original workgroup-X input and zero private segment. Calls,
indirect control flow, guest code-address reads, VGPR deallocation and
selected nonunit clusters remain unsupported. Probes and system fences
change execution overhead; timing equivalence is not claimed. Application
selected dispatch remains trace-only.

Update the producer contract for the new facts and capture semantics.
Existing prepared artifacts and captures must be regenerated; incompatible
contracts are rejected.

For example, prepare A and B from one whole A/B/C image:

Application: A -> B -> C -> A
Capture:     A#1 -> B#2 -> A#3; C remains native and uncovered
Geometry:    16 workgroups, 64 threads per workgroup, wave32
Rows:        16 workgroups x 2 waves = 32 rows per selected launch
Evidence:    3 selected launches x 32 rows = 96 entry/exit rows

Each row must contain one entry and one exit observation. The closed
capture remains analyzable in a fresh process after removing the original
image and prepared artifact. A selected nonunit-cluster packet is rejected
because its cluster coordinate cannot uniquely identify a report row;
the native path retains support for that packet form.

Diff: 354 lines (+265 / -89) across 4 files Reviewer: hanhanW Review duration: 10868m
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 354 lines diff across 4 files
0.43
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.351
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #16538"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.5% (MEDIUM) · Higher = larger blast radius
42.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 22.7% · Safe to merge
22.7%