Skip to main content

Module properties

Module properties 

Source
Expand description

Property / stress tests (in-house PRNG) for mailbox, decode/verify, Caps.

§Property / stress tests (Tier 1)

Byteflow treats malformed input and capacity edges as first-class contracts. Coverage uses in-house logic (std + our PRNG) — no nested fuzz crate.

§Stable suite (cargo test)

HarnessSurfaceInvariants
tests/properties_mailbox.rs[Mailbox] + overflow policiesOccupancy ≤ capacity; DropNewest keeps the head; Reject reports MessageLimit
tests/properties_decode.rs[decode] / [verify] / encode round-tripArbitrary bytes never panic; verified programs survive encode→decode
src/scheduler/capability.rs (properties)CapTable mint / resolve / revokeHolder-only resolve; mint_or_reuse stable; revoke invalidates tokens
cargo test -p byteflow-actors --test properties_mailbox --test properties_decode
cargo test -p byteflow-actors scheduler::capability::properties

§Design notes

  • Default library deps: none (std only). Optional feature = "jit" → Cranelift.
  • Failures must be Result / Fault / FormatError / VerifyError, never unwind across the trust boundary (see vm-safety.md).