tooling: correlate Mesh86 SRV trace evidence #3952

Open
lambirou wants to merge 2 commits from upstream-pr/3952 into main
lambirou commented 2026-12-03 16:53:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T16:53:34Z.


Problem

The Mesh86 geometry investigation already emits a material-refusal descriptor and
optional x2w-mesh86-trace rows, but reviewing a run still requires manually
matching a guest range to a placement, backing and queue submission. Issue #3763
has a contributor tracing one selected SRV. This change supplies a read-only
analysis companion for that trace and avoids a second runtime claim.

Change

Add tools/startup/mesh86_trace_report.py. It decodes the raw guest V# printed by
the material trace, finds a covering slot-133 placement, joins writer/fence and
producer/consumer trace rows, and lists missing or ambiguous fields explicitly.
It does not infer a call from line order, and it transforms arbitrary log text
into bounded numeric fields and basenames. Placement selection applies same-file
temporal eligibility and full-range coverage before exact-base preference.
Partial overlaps are diagnostic-only and add placement-coverage to the missing
fields.

Add nine synthetic cases: full correlation, an unrelated placement, a later exact
placement after the descriptor, a partial placement, a view token without a range,
generic placement backing, trace-only selection, an address from the trace, and
invalid CLI input.

Refs #3763.

Validation

python -B tests/startup_mesh86_trace_report_check.py
ctest --preset dev --no-tests=error -R '^(startup_mesh86_trace_report|startup_triage_run)$' --output-on-failure
  • Synthetic suite: 9/9 passed.
  • CTest: 2/2 passed, 0 skipped.
  • Markdown links: 285 files and 1,010 links checked.

The existing 20261203-long-x-win11-amd log contains no Mesh86 descriptor or
trace-call line. The tool reports those fields as missing, so the real correlation
still needs an instrumented run.

Limits

  • Only raw guest V# descriptors provide a guest range. View tokens are reported without decoding.
  • Several root-SRV calls require --call.
  • A placement is accepted only from the same log and before the descriptor. Unknown temporal order is reported rather than guessed.
  • This does not replace the runtime trace claimed in #3763.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5631003102 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3952). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T16:53:34Z. --- ## Problem The Mesh86 geometry investigation already emits a material-refusal descriptor and optional `x2w-mesh86-trace` rows, but reviewing a run still requires manually matching a guest range to a placement, backing and queue submission. Issue #3763 has a contributor tracing one selected SRV. This change supplies a read-only analysis companion for that trace and avoids a second runtime claim. ## Change Add `tools/startup/mesh86_trace_report.py`. It decodes the raw guest V# printed by the material trace, finds a covering slot-133 placement, joins writer/fence and producer/consumer trace rows, and lists missing or ambiguous fields explicitly. It does not infer a call from line order, and it transforms arbitrary log text into bounded numeric fields and basenames. Placement selection applies same-file temporal eligibility and full-range coverage before exact-base preference. Partial overlaps are diagnostic-only and add `placement-coverage` to the missing fields. Add nine synthetic cases: full correlation, an unrelated placement, a later exact placement after the descriptor, a partial placement, a view token without a range, generic placement backing, trace-only selection, an address from the trace, and invalid CLI input. Refs #3763. ## Validation ```text python -B tests/startup_mesh86_trace_report_check.py ctest --preset dev --no-tests=error -R '^(startup_mesh86_trace_report|startup_triage_run)$' --output-on-failure ``` - Synthetic suite: 9/9 passed. - CTest: 2/2 passed, 0 skipped. - Markdown links: 285 files and 1,010 links checked. The existing `20261203-long-x-win11-amd` log contains no Mesh86 descriptor or trace-call line. The tool reports those fields as missing, so the real correlation still needs an instrumented run. ## Limits - Only raw guest V# descriptors provide a guest range. View tokens are reported without decoding. - Several root-SRV calls require `--call`. - A placement is accepted only from the same log and before the descriptor. Unknown temporal order is reported rather than guessed. - This does not replace the runtime trace claimed in #3763.
R0Y00 commented 2026-12-03 17:21:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T17:21:17Z.

Review: CHANGES_REQUESTED


The seven synthetic report tests and startup_triage_run_check passed on 230cc2fe. Two extra synthetic-log controls show that the placement summary can still report the wrong evidence. An earlier same-file placement that fully covers the descriptor is reported missing when a later exact-base placement follows the descriptor; exact-base preference currently runs before time filtering. A 0x40-byte placement for a 0x80-byte descriptor is displayed as the backing and “missing fields: none,” despite the note that it cannot cover the full range. Please filter by temporal eligibility and full coverage before preferring an exact base, retain partial matches as diagnostics only, and add both controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6174841426 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3952#pullrequestreview-6174841426). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T17:21:17Z. **Review:** CHANGES_REQUESTED --- The seven synthetic report tests and startup_triage_run_check passed on 230cc2fe. Two extra synthetic-log controls show that the placement summary can still report the wrong evidence. An earlier same-file placement that fully covers the descriptor is reported missing when a later exact-base placement follows the descriptor; exact-base preference currently runs before time filtering. A 0x40-byte placement for a 0x80-byte descriptor is displayed as the backing and “missing fields: none,” despite the note that it cannot cover the full range. Please filter by temporal eligibility and full coverage before preferring an exact base, retain partial matches as diagnostics only, and add both controls.
lambirou commented 2026-12-03 17:40:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T17:40:10Z.


Review feedback addressed in 1902c772. Placement selection now applies same-file temporal eligibility and full-range coverage before exact-base preference. Partial overlaps are diagnostic-only and add placement-coverage to missing fields. The two requested controls are added; the synthetic suite is 9/9 and startup_mesh86_trace_report plus startup_triage_run pass.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7386876043 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3952#issuecomment-7386876043). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T17:40:10Z. --- Review feedback addressed in 1902c772. Placement selection now applies same-file temporal eligibility and full-range coverage before exact-base preference. Partial overlaps are diagnostic-only and add placement-coverage to missing fields. The two requested controls are added; the synthetic suite is 9/9 and startup_mesh86_trace_report plus startup_triage_run pass.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3952:upstream-pr/3952'
git switch 'upstream-pr/3952'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3952'
git switch 'upstream-pr/3952'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3952'
git switch 'upstream-pr/3952'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3952'
git switch 'main'
git merge --squash 'upstream-pr/3952'
git switch 'main'
git merge --ff-only 'upstream-pr/3952'
git switch 'main'
git merge 'upstream-pr/3952'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!3952
No description provided.