Skip to content

test(witness): bind captured tree head and verification reports - #182

Merged
rajnisht7 merged 1 commit into
agentrust-io:mainfrom
dinakarjs:test/nenrin-tree-head-reports
Dec 1, 2026
Merged

rajnisht7 merged 1 commit into
agentrust-io:mainfrom
dinakarjs:test/nenrin-tree-head-reports

Conversation

@dinakarjs

Copy link
Copy Markdown
Contributor

Follow up on #143 and #143 (review).

The captured Nenrin fixture tests now verify the signed tree head against the pinned witness key, recompute its root from the ordered receipt entry hashes, and compare both committed verification reports with fresh verification output. Negative controls reject a changed signature and signed tree size, and demonstrate that reversing the receipts changes the root.

Rename the grade-mismatch test to describe the absence of cryptographic binding, and scope the checkpoint-1 limitation to the September 7 Action State receipt. No fixture or runtime behavior changes; this does not add a new witness capture, Bitcoin-chain verification, or registry-continuity evidence.

Validation: 477 tests passed (python -m unittest discover -s tests), including all 15 focused Nenrin fixture tests. ruff check . and git diff --check passed. Dependencies installed from the hashed CI, witness, and runtime requirements.

Implemented and validated with OpenAI Codex.

Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
@dinakarjs
dinakarjs requested review from a team, lywinged and rajnisht7 as code owners December 1, 2026 04:50

@rajnisht7 rajnisht7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dinakarjs Thank you for picking these up, checked 529e361, all the follow-ups from #143 look addressed and tests pass clean

@rajnisht7
rajnisht7 merged commit d1aad76 into agentrust-io:main Dec 1, 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