22 lines
3.1 KiB
Markdown
22 lines
3.1 KiB
Markdown
# Q84 Stand insertion preserves native lookup termination
|
|
|
|
A valid one-animation native hash can become nonterminating after the existing Stand-insertion post-pass. For animation 147, the native builder produces two slots `[-1, 0]`. The old post-pass appends Stand and writes its index into slot zero, leaving `[1, 0]` with no sentinel. An absent-animation request then repeats probes indefinitely. A second defect rejects a valid native hash whenever another animation legitimately occupies slot zero.
|
|
|
|
## Contract and change
|
|
|
|
Reuse the pinned 70334 reader at RVA 0x1df4d40, with cumulative squared probing at 0x1df4f7e..0x1df5040, and the established Q76 independent reader fixture. Empty hashes use linear search and are valid; they are not evidence of missing Stand. Source selection, alias flags and targets, durations and track duplication retain their existing policy.
|
|
|
|
`insert_stand` now calls the existing corrected `native_sequence_hash` after all record and track appends, before rebuilding the enclosing MD21 size. It removes the direct slot-zero write and the invalid slot-zero occupancy guard. Existing sequence indices and original animation-to-index mappings are preserved, including the original sequence becoming an alias to appended Stand. Existing-Stand input still returns unchanged. No native/client runtime or current content file is changed by this commit.
|
|
|
|
## Failing and passing checks
|
|
|
|
Two new tests in the already registered `m2_sequence_hash_test.py` failed against the original helper: absent animation 65534 did not terminate after singleton insertion, and the `[5, 10]` native hash was rejected because slot zero was occupied. After the fix, the seven lookup tests pass. The eight sequence-contract tests, three doodad-equivalence tests and seven creature-compatibility tests also pass (25 total). Existing MD21 wrapper, alias/backlink, sequence track duplication and idempotence coverage was executed through unittest discovery so all classes are included. Owning-agent read-only review independently confirmed the mutation order and alias/index preservation.
|
|
|
|
## Incident limits
|
|
|
|
This is a demonstrated converter post-pass defect, not identification of the model in Error_15944. The incident's actual Stand lookup returned 0xffff, while this singleton fixture demonstrates an absent-animation nontermination failure. Both depend on lookup semantics, but they are not asserted to be the same event. Existing Q76 six signed-data Stand failures and its shipped 81-model repair remain separate accepted evidence. No catalogue-wide re-export or repair was repeated. The separate Q84 reference checker needs a reachability result in addition to in-range index checks; that follow-up is independently owned.
|
|
|
|
## Frozen handoff
|
|
|
|
`/mnt/Games/@project/build/queue84-stand-lookup-20261128/frozen` contains the changed source dependency closure, regression fixture and source patch. Run `sh /mnt/Games/@project/build/queue84-stand-lookup-20261128/frozen/gate.sh`. This is an offline converter gate, not a client install or content candidate. Claude can merge the source fix; only a demonstrated affected generated asset warrants another content build.
|