Skip to content

Count rig-name hashes that occur in the animation blob - #943

Closed
nschlaepfer wants to merge 2 commits into
ItsNotRexed:mainfrom
nschlaepfer:codex/report-present-rig-name-hashes
Closed

nschlaepfer wants to merge 2 commits into
ItsNotRexed:mainfrom
nschlaepfer:codex/report-present-rig-name-hashes

Conversation

@nschlaepfer

Copy link
Copy Markdown
Contributor

anim_index.py --rigs reported zero stored rig-name hashes even for a synthetic archive that contained the expected four bytes. The scanner collected little-endian integers from the blob but tested membership with byte strings. This made every comparison fail.

Compare integer hashes, scan all four possible byte alignments, and retain only candidate hashes that occur. The result counts distinct names with a matching byte pattern. The pattern alone does not identify a typed field. The old zero-of-4,795 statement in the animation notes needs a new corpus measurement; this PR does not substitute a synthetic result for that measurement.

Verification. In normal CLI runs, otherwise identical synthetic archives with zero, one and two known matches reported 0/0/0 on the parent and 0/1/2 here. The committed tests cover absence, repeated occurrences and an unaligned hash. All 24 focused tests and five subtests passed on macOS. AI-assisted, no game data.

Coordination claim

ItsNotRexed and others added 2 commits November 21, 2026 23:29
@kapitche

Copy link
Copy Markdown
Contributor

Tested 9940b3f on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. pytest tests/test_anim_index.py: 24 passed, 5 subtests. With tools/anim_index.py from main, 2 fail. I can't check the corpus counts without game data.

@bobcatchris

Copy link
Copy Markdown
Contributor

Heads-up, same thing that was just found in my #891: this PR's head carries a commit that is not on main and that adds a contract address to README.md under the Discord link:

CA 8T3ztDSKxYK15SUBseqLeviqQwfcG9wUeDGP1wjBpump

The commit is 43d0015 (or its twin 5d9c7d1), message Clarify project status in README, authored NotRexed <notrexed@gmail.com>. It sat on main for a window earlier today and is not an ancestor of main any more, so the branch was cut from a main that has since been rewritten. It survives a normal rebase because it does not touch anything you changed.

Fix, from the branch:

git fetch origin main
git rebase --onto origin/main 43d0015
git push --force-with-lease

(or the same with 5d9c7d1 if that is the one in your log; git log --oneline origin/main..HEAD shows which). git diff --stat origin/main...HEAD should then list only your files.

Not accusing anyone: it looks like an orphaned commit from the rewritten main, and three open PRs have it. Worth dropping anyway — merging it would publish a token address into the README under the project's name, and that is not something a PR should smuggle in.

AI-assisted.

@ItsNotRexed

Copy link
Copy Markdown
Owner

Merged into main as 73c06f9. Your branch carried two README commits that were removed from main's history, so I replayed your own commits onto main without them, which is why GitHub doesn't show this PR as merged. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants