Skip to content

t27: unsafe code behind declared contracts at the boundary (research spike) #9007

Open

Description

@gHashTag

Part of the effects-at-the-edge epic.

Research basis:

  • Verification of unsafe Rust behind safe interfaces: RustBelt, and the Verus/Prusti/Kani line of tools, which check contracts or bounded models.
  • RustAssure: differential symbolic testing of translated code (arXiv 2510.07604).

Design:

  • Raw pointer code is not translated into t27.
  • It stays as foreign glue behind a declared contract at the boundary, in the same form as FFI (see the FFI issue): pre/postconditions and ownership of buffers.
  • The contract is checked by differential and bounded tests against the oracle.
  • t27o refuses unsafe bodies and emits the contract skeleton instead.

Acceptance:

  • A design note.
  • One unsafe Rust helper wrapped behind a .t27 contract with differential tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions