tooling: correlate Mesh86 SRV trace evidence #3954

Open
github-bot wants to merge 2 commits from github-bot/gh-3952 into main AGit
Owner

@⁠lambirou on GitHub · 2026-12-03 16:53 UTC · original
lambirou:codex/memory-mesh86-trace → main · +995 −0 · 5 files · 2 commits · open

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 #3765
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 #3765.

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 #3765.
**@⁠lambirou** on GitHub · 2026-12-03 16:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3952) `lambirou:codex/memory-mesh86-trace` → `main` · +995 −0 · 5 files · 2 commits · open ## 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 #3765 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 #3765. ## 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 #3765.
Add a read-only parser for existing Mesh86 material and writer-trace lines. It decodes raw guest V# ranges, joins matching slot 133 placement and backing evidence, and reports missing fields instead of inferring associations from line order.

Add synthetic positive and negative cases and register the check in CTest and the Linux Python CI list.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 16:58:49 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 17:21 UTC · original · requested changes

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.

**@⁠R0Y00** on GitHub · 2026-12-03 17:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3952#pullrequestreview-6174841426) · **requested changes** 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.
github-bot force-pushed github-bot/gh-3952 from 230cc2fe62 to a1902c7721 2026-12-03 17:50:30 +00:00 Compare
Author
Owner

@⁠lambirou on GitHub · 2026-12-03 17:40 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-12-03 17:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3952#issuecomment-7386876043) 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 can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3954/head:github-bot/gh-3952'
git switch 'github-bot/gh-3952'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3952'
git switch 'github-bot/gh-3952'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3952'
git switch 'github-bot/gh-3952'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3952'
git switch 'main'
git merge --squash 'github-bot/gh-3952'
git switch 'main'
git merge --ff-only 'github-bot/gh-3952'
git switch 'main'
git merge 'github-bot/gh-3952'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.