Skip to content

test(research): distinguish escrow principal from unaccounted custody surplus - #214

Draft
safal207 wants to merge 3 commits into
mainfrom
research/foundry-escrow-surplus-invariant-v0
Draft

safal207 wants to merge 3 commits into
mainfrom
research/foundry-escrow-surplus-invariant-v0

Conversation

@safal207

Copy link
Copy Markdown
Owner

What changed

Add a native Foundry experiment with actual Escrow, independent recipient/custody balance oracle, deterministic positive and intentionally wrong sweep control, and bounded stateful fuzz sequences. No production or workflow changes.

Why / operator impact

Matching internal payout counters alone cannot prove the actual transfer matched the obligation. External surplus is modeled with vm.deal. No production defect or deployment claim.

Validation

Base 38755bb. Reviewed existing EscrowGraph and VulnerableEscrowGraph tests, prior CI, open PRs and targeted history. Local Forge unavailable. Exact-head CI pending. Reproduction commands and limitations in docs/research/FOUNDRY_ESCROW_SURPLUS_INVARIANT.md.

Safety / limitations

Local synthetic values only. No RPC, real assets, external outreach or new TSSE evidence claim. Surplus disposal, external effects, and independent reproduction remain out of scope. Draft only, do not merge.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant