Skip to content

Conversation

@dbanks12
Copy link
Contributor

@dbanks12 dbanks12 commented Dec 24, 2025

found a soundness bug in bitwise PIL

Copy link
Contributor Author

dbanks12 commented Dec 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Add audit-generated tests for the bitwise component:
- NegativeStartSha256NonBoolean: Tests that start_sha256 must be boolean
- NegativeStartKeccakNonBoolean: Tests that start_keccak must be boolean
- XorIdenticalValuesYieldsZero: Edge case for x XOR x = 0
- OrWithMaxValue: Edge case for OR with 0xFFFFFFFF
- AndWithZero: Edge case for AND with 0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbanks12 dbanks12 changed the base branch from db/ecc-claude-audit to graphite-base/19247 December 24, 2025 17:14
@dbanks12 dbanks12 force-pushed the graphite-base/19247 branch from 71533aa to 67fcd87 Compare December 24, 2025 17:14
@dbanks12 dbanks12 force-pushed the db/claude-audit-bitwise branch from 80f2cd5 to 19c47e3 Compare December 24, 2025 17:14
@dbanks12 dbanks12 changed the base branch from graphite-base/19247 to merge-train/avm December 24, 2025 17:14
@dbanks12 dbanks12 force-pushed the db/claude-audit-bitwise branch from 19c47e3 to 0e2c862 Compare December 24, 2025 17:57
The start_sha256 column was declared but lacked a boolean constraint,
which is required since it's used as a destination selector for lookups
from SHA256 into the bitwise trace.

Added: start_sha256 * (1 - start_sha256) = 0;

This was found during a comprehensive audit of the bitwise component.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbanks12 dbanks12 force-pushed the db/claude-audit-bitwise branch from 0e2c862 to 2ca82e2 Compare December 24, 2025 17:58
@dbanks12 dbanks12 marked this pull request as ready for review December 24, 2025 17:58
@dbanks12 dbanks12 changed the title test: claude-generated edge case tests for bitwise audit test: claude-generated pre-audit for bitwise in avm - soundness bug and edge-case tests Dec 24, 2025
@dbanks12 dbanks12 changed the title test: claude-generated pre-audit for bitwise in avm - soundness bug and edge-case tests fix!: claude-generated pre-audit for bitwise in avm - soundness bug and edge-case tests Dec 24, 2025
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