Files
WoW-Hybrid-gateway/docs/evidence/content-data/sequence-reachability84-20261128.md

27 lines
3.4 KiB
Markdown

# Q84 authored sequence lookup reachability
Scope: offline checker only, based on 010d8d6c. No assets exported, scanned, rebuilt or installed. No new incident/model attribution. Parent owns the separate Stand insertion repair; this unit does not change `m2_sequence_contract.py`.
## Reader contract and gap
Reuse Q76 pinned 70334 reader RVA `0x1df4d40`, cumulative-square update `0x1df4f7e..0x1df5040`, and the independent reader already retained in `tests/m2_sequence_hash_test.py`. The Q76 caller requests animation zero, takes AX at `0x1da0b69`, and asserts the index bound at `0x1da0b73` (assert return `0x1da0b85`). This does not impose Stand on every model.
The old reference checker validates populated lookup indices, but an in-range index can be in a slot the reader never reaches before encountering an empty slot. All six retained signed tables in `tests/data/m2_sequence_hash_signed_stand76.json` reproduce this: every entry is in range or FFFF, while authored Stand is unreachable. The old checker returned no issues for each; the new regression failed six subcases before implementation. The helper-repaired versions have no issues after implementation. Only their saved sequence IDs/tables are replayed, not their assets or metadata beyond the supplied pins.
## Results and classification
`NativeSequenceLookup` executes uint32-wrapped cumulative-square probing and the valid empty-hash linear fallback. `check_sequences` checks every distinct authored animation ID for both embedded M2 and local SKS1 skeleton tables; no absent animation is required, and alias traversal/track checks remain unchanged.
- **unreachable**: the reader encounters FFFF before the authored ID.
- **out_of_range**: a traversed entry triggers the sequence-index bound failure; the existing all-entry bound check remains.
- **nonterminating**: either every slot is a valid nonempty wrong-ID entry (no terminal branch anywhere), or the complete `(slot, uint32 step)` reader state repeats. Repeated slots alone do not prove a loop.
- **hold**: analysis exhausted 4096 probes for one query or the shared 262144-probe model/skeleton budget. Holds are observations with `status=hold` and `reason=probe_budget_exhausted`, separate from proven issues. Returned `lookup_reachability_complete=false` and model-survey `models_with_lookup_holds` prevent interpreting zero issues as full proof. The CLI remains a diagnostic report producer, not an asset-approval gate.
An empty hash is valid and uses linear search. In particular it is not evidence of missing Stand if Stand is authored. Skeleton results cover the local SKS1 only; inherited parent composition remains the existing explicit limitation.
## Focused validation
`python3 tests/m2_sequence_refs_test.py`: before implementation, 3 tests with 6 failed signed-fact subcases; after implementation, 7 tests PASS. Controls include all six repaired tables, absent Stand, empty sequence/hash cases, out-of-range entries, a proven closed-table loop, skeleton reachability, shared-budget holds, and a valid probe visiting slots `0,1,5,0,2` (four-probe HOLD, five-probe FOUND). This last control prevents mistaking a repeated slot or finite budget for a native infinite loop.
Registered `m2-native-sequence-references` in CMake. No CMake configure/full gate or previously accepted model tests rerun. Full before/after logs are private in the owning worktree `build/reachability84/`. No live client acceptance claimed.