Skip to content

feat: add sync validation to detect relayer/chain sync drift#55

Open
dominiccreates wants to merge 3 commits into
Vero-protocol:mainfrom
dominiccreates:feature/sync-validation
Open

feat: add sync validation to detect relayer/chain sync drift#55
dominiccreates wants to merge 3 commits into
Vero-protocol:mainfrom
dominiccreates:feature/sync-validation

Conversation

@dominiccreates

Copy link
Copy Markdown
Contributor

this pr closes #24 Summary
Introduces a state-consistency check that validates a state_hash included in PR data against a deterministic SHA-256 hash of the PR contents. This helps surface sync drift between the relayer and the chain.

Changes

  • src/audit-guard/src/sync-validator.ts – Implements SyncValidator with hash computation.
  • src/audit-guard/src/errors.ts – Defines SyncDriftError.
  • src/audit-guard/src/policy-engine.ts – Imports the validator, runs it during evaluation, and adds a SYNC_DRIFT_DETECTED violation (severity HIGH) when drift is detected.
  • Updated PRData interface to include optional state_hash.

Verification

  • Checked unit test configuration and local execution.

@dominiccreates dominiccreates force-pushed the feature/sync-validation branch from b8387a8 to bb8960f Compare June 19, 2026 12:47
@N-thnI

N-thnI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

please fix checks

mrnetwork0001 pushed a commit to mrnetwork0001/vero-audit-guard that referenced this pull request Jun 28, 2026
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.

feat: relayer data consistency

2 participants