Skip to content

docs(ai): spec a fidelity audit of every signing surface - #13703

Draft
AntonioVentilii wants to merge 4 commits into
mainfrom
av/spec-signing-surface-fidelity-audit
Draft

docs(ai): spec a fidelity audit of every signing surface#13703
AntonioVentilii wants to merge 4 commits into
mainfrom
av/spec-signing-surface-fidelity-audit

Conversation

@AntonioVentilii

Copy link
Copy Markdown
Collaborator

Motivation

Eight externally reported defects landed in a short period, across three chains and two entry points. They look unrelated, and they are not: in every one of them the approval screen described something other than what the wallet actually signed. A hidden Solana prioritisation fee, an authority change and a burn riding behind a dust transfer, a signing scheme picked from what a payload parsed as instead of from the requested method, undeclared EIP-712 keys steering a summary while a different value was hashed, ERC-20 transfer calldata rendered as a zero-value native send, counterparty markup reaching the consent dialog as a control, a transaction message accepted on the message-signing path, and a PSBT field the review reads that the signer does not use.

Fixing these one at a time is losing a race against someone walking this surface systematically. This spec defines an audit that enumerates the surface ourselves, so the remaining instances are found by us rather than reported to us.

Changes

Adds docs/ai/spec-driven-development/specs/2026-08-12-chore-signing-surface-fidelity-audit.md, which:

  • names the six recurring shapes behind the eight defects, so the audit hunts the class and not the instances;
  • inventories every signing surface, established from the code: the WalletConnect reviews for BTC, ETH and SOL, the session proposal, the ICRC signer consent flow, OISY's own send, swap, convert, approval, trade, stake, Liquidium, Open Crypto Pay and AI assistant flows, plus signature-producing paths that render no approval screen at all;
  • defines a fixed eight-point per-surface checklist, a finding format, a severity rubric, and the wave order surfaces are examined in, so the work is resumable and the result is auditable;
  • states that it covers the audit and not the fixes, and that each finding becomes its own atomic change;
  • records open questions rather than resolving them, including whether the activity list and transaction history are in scope, and whether internally built transactions are in scope or only counterparty-supplied ones.

No file under src/ is touched.

Tests

Spec-only PR: there is no code to test. format and lint --max-warnings 0 pass.

Eight externally reported defects in a short period share one root cause:
the approval screen described something other than what the wallet
actually signed. This spec defines an audit that enumerates every signing
surface and checks each displayed field against the bytes that reach the
signer.

Spec only, no implementation.
@AntonioVentilii
AntonioVentilii marked this pull request as ready for review August 13, 2026 05:46
@AntonioVentilii
AntonioVentilii requested a review from a team as a code owner August 13, 2026 05:46
Copilot AI lite review requested due to automatic review settings August 13, 2026 05:46
@zeropath-ai

zeropath-ai Bot commented Aug 13, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to fb833a1.

Security Overview
Detected Code Changes
Change Type Relevant files
Other relevant categories ► docs/ai/spec-driven-development/specs/2026-08-12-chore-signing-surface-fidelity-audit.md
    Add new Signing-surface fidelity audit specification document

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a spec document to drive a systematic audit of every signing/approval surface in the frontend, aiming to prevent mismatches between what OISY displays for consent and what it actually signs.

Changes:

  • Introduces a new spec defining the motivation, scope, inventory, per-surface checklist, severity rubric, and audit wave order for a “signing-surface fidelity” audit.
  • Defines a standardized finding format and acceptance criteria so results are resumable and auditable.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AntonioVentilii
AntonioVentilii added this pull request to the merge queue Aug 13, 2026
@AntonioVentilii
AntonioVentilii removed this pull request from the merge queue due to a manual request Aug 13, 2026
@AntonioVentilii
AntonioVentilii marked this pull request as draft August 13, 2026 13:13
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.

3 participants