Files

3.7 KiB

Bounded stalled sequence lookup capture (queue 30)

ops/m2_stalled_lookup.py supplies a read-only GDB command for an already stopped 70334 thread. It extracts the model pointer, requested animation, and exact sequence-ID/hash-index arrays from the known frozen lookup. This is diagnostic preparation, not a freeze fix, a Bridge watchdog, or proof of a FileDataID. No client was attached, stopped, installed, or modified to develop it.

The retained decrypted .text capture has SHA-256 49ce9a44ecd4466c5722d4c9428362060a7f4444260c38b0b083ebe53346268e. Bounded disassembly of RVA 1df4d40..1df5045 and caller 1d6f840..1d6f8ea establishes the following contract:

Location at a supported probe instruction Meaning
R13 hash descriptor
R14 sequence descriptor
RSP+88, uint64 immediate return; must equal image base + 1d6f8d4
RSP+90, uint32 requested animation ID saved by the lookup prologue
RSP+a0, uint64 saved caller RBX, the model object
model+878, pointer model animation state
state+10 / state+18 sequence / hash descriptors; must equal R14 / R13
descriptor+0, uint16 element count
descriptor+2 uint16, descriptor+4 uint32 packed pointer high 16 and low 32 bits

The lookup pushes 56 bytes and reserves 80, placing its entry stack at current RSP+88. The caller's RBX is saved at entry RSP+18. The caller loads descriptors from its model's state and invokes the sampled path at 1d6f8cf. Other caller branches are deliberately unsupported. Error-handler regions repurpose R13 and are excluded. Both code ranges must match the exact SHA-256 constants in the script before stack or model reads begin.

For Claude's separately managed diagnostic session, select the already stopped frozen thread (top frame inside a supported probe instruction), then:

source /absolute/worktree/ops/m2_stalled_lookup.py
gw-m2-stall-snapshot /absolute/private-runtime/stalled-model.json

An optional second argument supplies a relocated image base. The command does not attach, stop, resume, set breakpoints, or write process memory. It creates a new output file exclusively. An unsupported context fails without guessing at stack locations. It exports only derived animation IDs/indices, selected pointers, and hashes, never arbitrary stack/heap bytes. The capture reads at most 5 MiB and each array is bounded by the native uint16 count. Any missing/short read fails; model ownership is checked against both descriptors.

The replay uses the observed cumulative-square probe and uint32 arithmetic, with at most 4096 iterations. no-exit is asserted only when every hash slot is nonempty, every index valid, and none references the requested ID. Other cases that exhaust the budget remain budget-exhausted; an empty slot somewhere in a table is not sufficient proof the actual probe reaches it. Native single-ID [0] tables remain valid when requesting ID 0. No asset rewrite is proposed.

The model pointer and table signature enable subsequent comparison with the installed model catalogue. Identical sequence tables can occur in multiple models; this snapshot alone does not establish a FileDataID. A real stalled capture, exact asset association, and a content fix remain outstanding.

Validation: six host tests pass, covering packed 48-bit pointers, saved model ownership, all observed sample instruction ranges, code/caller mismatch before model access, wrong descriptors, truncated reads, empty arrays, read budget, cumulative-square behavior, safe single-ID lookup, impossible exit, and bounded unproven cases. Registered as CTest m2-stalled-lookup-capture. The tests use a synthetic address space and separate code pin; the production code hashes were computed from the retained client bytes. Native debugger acceptance remains unverified.