Skip to content

test(mmr): check serialized proof histories against a recursive forest oracle - #168

Merged
rajnisht7 merged 1 commit into
agentrust-io:mainfrom
dinakarjs:test/mmr-serialized-histories-20261026
Oct 29, 2026
Merged

rajnisht7 merged 1 commit into
agentrust-io:mainfrom
dinakarjs:test/mmr-serialized-histories-20261026

Conversation

@dinakarjs

Copy link
Copy Markdown
Contributor

Add test-only MMR history coverage with a recursive forest oracle that computes documented hash preimages without the production hashing, size, peak or proof helpers. Across 33 prefixes, 561 saved-prefix/current-state pairs verify serialized inclusion and consistency proofs, retain prior roots, and refuse altered bodies, wrong growth context and forked roots. A seven-leaf oracle regression pin and reordered-leaf control bound the reference helper.

Validation, Linux/Python 3.12.14: repository hash-locked CI/witness environment plus editable local package; full unittest discovery 408 tests OK, new module 2 tests OK, Ruff and whitespace pass. Independently replacing production position commitment or reversing peak bagging makes the new module fail; source restored.

This complements #165's parser validation and #167's portable corpus. The oracle is a separate local algorithm implementation with synthetic bodies, not a reproduced external implementation, external wire compatibility or hardware/certificate validation. No runtime, checkpoint format, registry entry or producer changes.

Prepared with OpenAI Codex. DCO-signed; independent review and final-head hosted checks required.

Published head 99b8bde, tree 846efe321abb502dfa3252f383e39d98d795a510, exactly matches the tested tree.

…t oracle

Signed-off-by: Srinivasa Dinakar Jainti <dinakarjs@gmail.com>
@dinakarjs
dinakarjs requested review from a team, lywinged and rajnisht7 as code owners October 26, 2026 08:30
@rajnisht7
rajnisht7 merged commit 96985e2 into agentrust-io:main Oct 29, 2026
6 of 7 checks passed
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.

2 participants