INV-* -> Evidence Traceability Matrix#
Generated by
scripts/security/build_traceability.pythen hand-reviewed. TheCoverage classcolumn is hand-verified against what each cited harness/test actually proves — re-running the generator emits provisional classes (a mechanical grep heuristic) that must be re-reviewed. CI runsbuild_traceability.py --check, which validates only that everyINV-*indocs/security/invariants.mdhas a row here (ID-set coverage), never cell content.
Reading the classes. proven = a Kani proof whose domain is full-type
(CBMC explores every value of the input type). boundedly-verified = a Kani proof
whose domain is protocol-bounded / representative / unwind- or capacity-bounded
(a faithful but non-exhaustive envelope — e.g. price ∈ (0, P_MAX), an unwind(2)–unwind(4)
crossing sequence, or a symbolic-tag address model). tested = runtime/property/unit
tests exercise it with no machine-checked proof. partially-covered = the per-instruction
slice is proven/tested but the full aggregate/composed form the invariant states is
deferred (release-test/proof obligation, not a runtime scan). assumption-dependent =
the stated form is a cross-account aggregate that holds only under an off-chain
reconciliation currently gated on OPS-02. not-yet-verified = enforced on-chain but with
no targeted proof or test evidence yet. not-practically-formalizable = a proof would
be semantically vacuous or out of scope (documented rationale). The classes are
deliberately not collapsed to a single percentage — a percentage destroys exactly the
distinction between "proven full-type", "proven only within a bound", and "not verified".
Honest-bounds callouts (this plan's frozen A–C state). Orderbook no-cross/conservation
is boundedly-verified — the crossing/fill traversal is explored under #[kani::unwind(2)]
(one fill) through #[kani::unwind(4)] (two fills) plus a concrete three-fill fixture, never
exhaustively; a place-order crossing ≥4 makers is outside the verified envelope. INV-M6
oracle feed-identity pinning is not-practically-formalizable — a unit proof over the
[u8;32] equality helper would re-prove a one-liner against a copy of itself, so it is
backed by instruction-level tests instead (H-01 rationale; the deleted P-LOADER-01 harness
is the same class of vacuity). Several DOB-v3 and spline invariants remain not-yet-verified
or tested-only: ~9 instructions have zero targeted runtime coverage and 13+ invariants have
zero Kani coverage.
| Invariant ID | Statement | Disposition | Kani harnesses | Tests | Coverage class |
|---|---|---|---|---|---|
INV-X1 | Bounded Order-Placement Account Surface | enforced-on-chain | — | litesvm_place_order_full_surface.rs<br>loader_discriminator_owner_matrix.rs<br>adversarial_account_aliasing.rs | tested |
INV-X2 | No Crossed or Unsorted Book on Commit | enforced-on-chain (subset) + accepted (full form) | processor_flow.rs::production_has_any_cross_two_slot_matches_complementary_model<br>processor_flow.rs::apply_orderbook_updates_resting_bid_preserves_sort_or_rejects_cross<br>processor_flow.rs::apply_orderbook_updates_resting_ask_preserves_sort_or_rejects_cross<br>processor_flow.rs::matching_book_buyyes_cap2_preserves_price_time_order | program/src/processor/place_order_trait/guard.rs::runtime_orderbook_guard_rejects_crossed_book<br>program/src/processor/place_order_trait/mod.rs::crossed_deep_resting_draft_rejects_without_mutating_serialized_book<br>fuzz/src/lib.rs::unsorted_bid_tree_is_rejected_by_validate_full | boundedly-verified |
INV-X3 | Single Canonical Maker-Delta Applicator | enforced-on-chain | reduce_order_release.rs::slot_routed_reduce_release_rejects_exactly_ask_sides<br>cancel_ff_route_to_slot.rs::ff_quote_release_preserves_quote_total_and_isolates_other_buckets<br>cancel_ff_route_to_slot.rs::ff_yes_release_preserves_yes_total_and_isolates_other_buckets<br>cancel_ff_route_to_slot.rs::ff_no_release_preserves_no_total_and_isolates_other_buckets<br>cancel_ff_route_to_slot.rs::ff_over_release_underflow_is_atomic_noop | litesvm_cancel_order_refund_surface.rs<br>litesvm_force_close_refund_harm.rs | boundedly-verified |
INV-X4 | Emergency Status Fails Closed | enforced-on-chain | — | — | not-yet-verified |
INV-X5 | Maker Fill Credits Are Single-Application | enforced-on-chain | — | — | not-yet-verified |
INV-G1 | Account Ownership | enforced-on-chain | — | loader_discriminator_owner_matrix.rs<br>adversarial_account_aliasing.rs | tested |
INV-G2 | PDA Authenticity | enforced-on-chain | account_validation.rs::canonical_bump_required_biconditional (fixed-PDA bump comparison only)<br>create_market_pda.rs::build_market_seeds_emits_canonical_layout<br>create_market_pda.rs::build_orderbook_seeds_emits_canonical_layout | pda.rs::bump_verification_tests::non_canonical_bump_never_yields_canonical_address<br>security_pda_validation.rs<br>adversarial_account_aliasing.rs<br>external_market_common::parent_binding_tests | partially-covered |
INV-G3 | Discriminator Integrity | enforced-on-chain | — | loader_discriminator_owner_matrix.rs | tested |
INV-M1 | Native Market Creation Timing | enforced-on-chain | create_market_pda.rs::preparation_timestamp_id_matches_positive_predicate<br>create_market_pda.rs::preparation_timestamp_zero_is_rejected<br>create_market_pda.rs::preparation_identity_and_landing_lifetime_are_independent | inv_m1_epoch_alignment.rs | boundedly-verified |
INV-M2 | Snapshot Immutability | enforced-on-chain | snapshot_write_path.rs::snapshot_write_captured_different_value_rejected<br>snapshot_start_write_path.rs::snapshot_start_write_captured_different_value_rejected | market_cap_oracle_adversarial.rs | boundedly-verified |
INV-M3 | Resolution Determinism | enforced-on-chain | — (legacy point-rule harnesses do not prove the confidence-aware policy) | program/src/logic/resolve_processor.rs::tests::strict_interval_* | tested |
INV-M4 | State Monotonicity | enforced-on-chain | state_machine.rs::valid_transitions_are_forward<br>state_machine.rs::no_backward_transitions<br>state_machine.rs::closed_is_terminal | integration_lifecycle.rs<br>adversarial_lifecycle.rs | boundedly-verified |
INV-M5 | Resolution Rule | enforced-on-chain | — (legacy point-rule harnesses do not prove the confidence-aware policy) | program/src/logic/resolve_processor.rs::tests::strict_interval_* | tested |
INV-M6 | Oracle Feed-Identity Pinning | enforced-on-chain | — (intentionally not formalized — see note) | security_wrong_feed_id.rs<br>market_cap_oracle_adversarial.rs | not-practically-formalizable |
INV-EXT-1 | Core Resolution Is Source-Agnostic | enforced-on-chain | market_accessors.rs::external_resolver_binding_and_halt_accessors_are_consistent | program/src/processor/resolve_trait.rs::external_market_rejects_native_resolve_path<br>program/src/processor/snapshot_trait.rs::external_market_rejects_native_snapshot_path<br>top_up_external_progress_reserve.rs::native_market_is_rejected_before_metadata_is_read<br>program/src/state/market.rs::resolver_binding_and_halt_accessors_round_trip | tested |
INV-EXT-4 | One Market per Platform and Question Commitment | enforced-on-chain | — | program/src/processor/external_market_common.rs::accepts_canonical_parent_for_platform_and_question<br>program/src/processor/external_market_common.rs::rejects_parent_for_different_question_commitment | partially-covered |
INV-EXT-5 | Unknown Market Kinds Fail Closed | enforced-on-chain | — | program/src/state/market.rs::unknown_market_kind_fails_closed<br>program/src/state/market.rs::complementary_engine_accepts_binary_and_scalar_k2_only<br>program/src/processor/submit_resolution_trait.rs::unsupported_or_noncanonical_market_shapes_reject_atomically<br>program/src/processor/open_external_market_trait.rs::scalar_non_k2_and_unknown_kinds_fail_closed<br>external_market_redeem.rs::unknown_market_kind_rejects_redeem_atomically | tested |
INV-EXT-6 | Halt Blocks Placement but Preserves Exits | enforced-on-chain | external_halt.rs::external_halt_live_applier_is_idempotent | external_halt_placement.rs::halted_external_market_rejects_placement_with_market_halted_atomically<br>external_halt_placement.rs::owner_cancel_remains_available_after_external_halt<br>external_halt_placement.rs::owner_withdrawal_remains_available_after_external_halt | partially-covered |
INV-EXT-7 | External Payouts Come Only from Authenticated Numerators | enforced-on-chain | settlement_conservation.rs::scalar_paired_payout_conserves_collateral | external_market_redeem.rs::external_graded_split_ignores_expired_binary_mirror<br>external_market_redeem.rs::external_redeem_never_falls_back_when_meta_is_omitted<br>external_market_redeem.rs::stored_meta_market_mismatch_rejects_with_a009<br>litesvm_mark_position_settled_cpi.rs::external_scalar_mark_rejects_missing_fake_and_reordered_meta<br>external_market_reclaim.rs::external_scalar_terminal_asks_use_graded_meta_and_escrow_self_signing | boundedly-verified |
INV-EVENT-SEQ-1 | A Sequence Number Is Consumed Only When a Batch Is Emitted | enforced-on-chain | — | security_event_sequence_tail_gate.rs<br>security_event_recorder.rs<br>agentflow_fresh_16_reduce_events.rs | tested |
INV-EVENT-SEQ-2 | Emitted Sequences Are Strictly Increasing Per Subject | enforced-on-chain | — | agentflow_fresh_14_event_sequence.rs<br>agentflow_fresh_16_reduce_events.rs<br>spline_lifecycle.rs | tested |
INV-O1 | No Crossed Book | enforced-on-chain | processor_flow.rs::production_has_any_cross_two_slot_matches_complementary_model<br>processor_flow.rs::apply_orderbook_updates_resting_bid_preserves_sort_or_rejects_cross<br>processor_flow.rs::apply_orderbook_updates_resting_ask_preserves_sort_or_rejects_cross | program/src/processor/place_order_trait/guard.rs::runtime_orderbook_guard_rejects_crossed_book<br>program/src/processor/place_order_trait/guard.rs::test_has_any_cross_cross_owner_cross_trips<br>program/src/processor/place_order_trait/mod.rs::crossed_deep_resting_draft_rejects_without_mutating_serialized_book | boundedly-verified |
INV-O2 | Price Bounds | enforced-on-chain (subset) + accepted (full form) | processor_flow.rs::place_order_validation_price_gate_matches_open_interval<br>processor_flow.rs::place_order_validation_rejects_ask_rounding_pmax_sentinel | differential_reference_tests.rs<br>program/src/logic/place_order_processor/tests.rs::test_validate_price_above_max | partially-covered |
INV-O3 | Quantity Positive | enforced-on-chain | processor_flow.rs::place_order_validation_rejects_zero_quantity<br>processor_flow.rs::place_order_validation_quantity_gate_matches_bounds | integration_withdraw_shares.rs | boundedly-verified |
INV-O4 | Order Ownership | accepted (test/proof-only) | order_ownership_reconciliation.rs::owner_matched_active_slot_binds_to_position_owner<br>order_ownership_reconciliation.rs::foreign_active_slot_is_not_attributed | — | boundedly-verified |
INV-O5 | Sorted Orders | enforced-on-chain (subset) + accepted (full form) | processor_flow.rs::apply_orderbook_updates_resting_bid_preserves_sort_or_rejects_cross<br>processor_flow.rs::apply_orderbook_updates_resting_ask_preserves_sort_or_rejects_cross<br>kani_harnesses.rs::proof_deep_orderbook_merged_cursor_is_sorted_and_visits_each_node_once<br>kani_harnesses.rs::proof_deep_orderbook_symbolic_account_write_preserves_orders | fuzz/src/lib.rs::unsorted_bid_tree_is_rejected_by_validate_full | boundedly-verified |
INV-P1 | Non-Negative Shares | enforced-on-chain | mint_shares_pair_mint.rs::mint_yes_overflow_rejected<br>supply_reconciliation.rs::ff_fill_burn_yes_insolvency_rejected_without_debit<br>withdraw_shares_promotion.rs::debit_withdraw_share_slot_rejects_over_available | — | boundedly-verified |
INV-P2 | Locked Less Than Total | accepted (test/proof-only) | order_ownership_reconciliation.rs::locked_yes_shares_dominate_active_sellyes_slots<br>order_ownership_reconciliation.rs::locked_no_shares_dominate_active_buyno_slots<br>order_ownership_reconciliation.rs::position_locked_never_exceeds_total_via_accessors | — | boundedly-verified |
INV-P3 | Single Settlement | enforced-on-chain | single_settlement.rs::redeem_settled_byte_monotone_full_symbolic<br>single_settlement.rs::redeem_two_call_replay_is_idempotent | adversarial_lifecycle.rs | boundedly-verified |
INV-P4 | Collateral Coverage | enforced-on-chain (subset) + accepted (full form) | collateral_liability_induction.rs::empty_position_liability_equality_base<br>collateral_liability_induction.rs::cancel_side_release_equals_canonical_c<br>order_ownership_reconciliation.rs::locked_collateral_dominates_active_bid_slots | — | boundedly-verified |
INV-V1 | Solvency | enforced-on-chain | solvency_fee_inclusive.rs::solvency_fee_inclusive_redeem<br>processor_flow.rs::place_order_post_cpi_solvency_gate_matches_market_check | security_solvency_stateful_fuzz.rs | boundedly-verified |
INV-V2 | Conservation | enforced-on-chain (subset) + accepted (full form) | settlement_collateral_conservation.rs::tripwire_accepts_only_exact_pay<br>settlement_collateral_conservation.rs::tripwire_rejects_non_exact_pay<br>conservation_multifill_widening.rs (bounded 3-fill fixture) | — | partially-covered |
INV-V3 | Empty at Close | enforced-on-chain | empty_at_close_convergence.rs::closed_state_implies_zero_supply_floor<br>empty_at_close_convergence.rs::close_gate_accept_implies_discharged_tracked_obligations<br>close_market_gate.rs::close_market_gate_rejects_unresolved | litesvm_close_position_cpi.rs<br>adversarial_lifecycle.rs | boundedly-verified |
INV-V4 | Share Balance | accepted (test/proof-only) | mint_shares_supply_reconciliation.rs::mint_supply_update_increments_both_sides_by_amount<br>redeem_reconciliation.rs::redeem_market_update_monotone_decreasing<br>supply_reconciliation.rs::ff_fill_burn_decrements_supply_by_burn (per-instruction inductive steps) | security_solvency_stateful_fuzz.rs | partially-covered |
INV-V5 | Settlement/Share Decimal Identity | enforced-on-chain | — | integration_initialize_config.rs<br>security_init_config.rs | tested |
INV-T1 | Snapshot Timing | enforced-on-chain | snapshot_timing_matrix.rs::snapshot_end_already_captured_is_immutable<br>snapshot_timing_matrix.rs::snapshot_end_rejects_stale_publish_time<br>snapshot_timing_matrix.rs::snapshot_end_accepts_first_valid_and_captures<br>snapshot_timing_matrix.rs::snapshot_end_firstness_rejects_late_predecessor<br>oracle_validation.rs::validate_snapshot_firstness_matches_boundary_predicate | security_late_capture.rs::uncommitted_same_feed_updates_are_ignored_at_terminal_expiry | boundedly-verified |
INV-T2 | Trading Window | enforced-on-chain | processor_flow.rs::place_order_validation_trading_window_matches_half_open_interval | property_tests.rs | proven |
INV-T3 | Settlement After Resolution | enforced-on-chain | force_close_gate.rs::force_close_gate_rejects_resolved<br>force_close_gate.rs::force_close_gate_ok_implies_all_guards_pass<br>processor_flow.rs::mark_position_settled_terminal_gate_rejects_unresolved | litesvm_force_close_refund_harm.rs | proven |
INV-F1 | Linear Taker Fee | enforced-on-chain | — | taker_fee.rs::tests::exact_examples<br>taker_fee.rs::tests::f12_fee_never_exceeds_notional<br>taker_fee.rs::tests::f12_symmetry_within_two_atoms<br>taker_fee.rs::tests::zero_notional_and_zero_coefficient_are_free<br>taker_fee.rs::tests::rejects_out_of_range_inputs | tested |
INV-F2 | Three-Way Fee Split | enforced-on-chain | config_validation.rs::fee_split_invariant_holds<br>fee_curve.rs::apply_split_conserves_total | litesvm_place_order_fee_split_runtime.rs | proven |
INV-F3 | Referral Attribution Lifetime | enforced-on-chain | — | bootstrap_market_local_referral.rs<br>security_referral_shard1_pr245.rs | tested |
INV-F4 | Referrer Earnings Solvency | accepted (test/proof-only) | — | currency_referral_treasury.rs::initializes_currency_referrer_earnings_on_the_live_route<br>security_referral_shard1_pr245.rs | assumption-dependent |
INV-FEE-T1 | Config holds exactly 8 treasury recipients | enforced-on-chain | config_validation.rs::treasury_recipient_accessor_matches_fixed_slots<br>config_validation.rs::update_treasury_recipients_replaces_all_eight_slots | integration_initialize_config.rs | boundedly-verified |
INV-FEE-T2 | Every fee-paying instruction binds the recipient to the configured set | enforced-on-chain | — | adversarial_ix_data.rs<br>agentflow_fresh_15_place_ff_wrappers.rs | tested |
INV-FEE-T3 | System-wide solvency reconciliation across all shards | accepted (test/proof-only) | — | integration_multi_treasury_settlement.rs | assumption-dependent |
INV-FEE-T4 | UpdateTreasuryRecipients rejects zero pubkeys | enforced-on-chain | config_validation.rs::update_treasury_recipients_rejects_any_zero_slot_atomically | security_update_treasury_recipients.rs<br>property_tests_treasury_recipients.rs<br>mutation_killers.rs (mock: mutation kill) | boundedly-verified |
INV-FEE-T5 | UpdateTreasuryRecipients rejects pairwise duplicates | enforced-on-chain | config_validation.rs::update_treasury_recipients_rejects_any_duplicate_pair_atomically | security_update_treasury_recipients.rs<br>property_tests_treasury_recipients.rs<br>mutation_killers.rs (mock: mutation kill) | boundedly-verified |
INV-REFERRAL-T1 | Every ReferrerEarningsAccount has a valid bound shard | enforced-on-chain | — | agentflow_fresh_9_multi_fee_recipients_atomicity.rs<br>loaders.rs::registered_currency_binds_the_mint_and_program_and_revalidates_admission<br>currency_referral_treasury.rs::initializes_currency_referrer_earnings_on_the_live_route | tested |
INV-REFERRAL-T2 | Market-local deferred liabilities reconcile | enforced-on-chain | — | security_referral_shard1_pr245.rs<br>integration_market_local_referral.rs::bind_trade_partial_rollup_then_claim_preserves_exact_market_local_equality<br>security_shard4_compound.rs | tested |
INV-REFERRAL-T3 | Rollup preserves treasury coverage | enforced-on-chain | — | security_referral_shard1_pr245.rs<br>unit_market_local_referral.rs::rollup_rejects_undercovered_existing_treasury<br>currency_referral_rollup.rs::rolls_currency_bound_fees_into_a_claimable_shard | tested |
INV-BAND-1 | No-panic on any u16 input | accepted (test/proof-only) | price_band.rs::proof_compute_band_no_panic | — | proven |
INV-BAND-2 | lo ≤ hi always | accepted (test/proof-only) | price_band.rs::proof_compute_band_bounds_invariant | — | boundedly-verified |
INV-BAND-3 | Band width bounded by 2 × MAKER_BAND_BPS when dynamic | accepted (test/proof-only) | price_band.rs::proof_band_width_bounded_by_2x_band_bps | — | boundedly-verified |
INV-BAND-4 | Midpoint lies within [lo, hi] when band is dynamic and unclipped | accepted (test/proof-only) | price_band.rs::proof_band_contains_mid_when_not_clamped | — | boundedly-verified |
INV-BAND-5 | IOC orders bypass the gate unconditionally | enforced-on-chain | — | concurrency_price_band.rs | tested |
INV-BAND-6 | Gate executes after canonical conversion + tick alignment, before matching | enforced-on-chain | — | concurrency_price_band.rs<br>determinism_price_band.rs | tested |
INV-SPLINE-1 | Aggregate commitment conservation | enforced-on-chain | — | spline_lifecycle.rs<br>spline_matching_integration.rs | tested |
INV-SPLINE-2 | Shape exposure is commitment-bounded | enforced-on-chain | spline_matching.rs::two_level_compiled_snapshot_walk_within_commitment | spline_lifecycle.rs::attach_spline_uses_canonical_eight_accounts_and_commits_collateral<br>program/src/logic/spline/shape.rs::required_commitment_sums_terminal_cumulative_endpoints | boundedly-verified |
INV-SPLINE-3 | Extended solvency and pair mint | enforced-on-chain (subset) + accepted (full form) | spline_matching.rs::spline_pair_mint_pure_floor_ceil_identity | spline_lifecycle.rs | boundedly-verified |
INV-SPLINE-4 | Virtual quotes never cross | enforced-on-chain (subset) + accepted (full form) | — | spline_matching_equivalence.rs<br>spline_matching_integration.rs | tested |
INV-SPLINE-5 | Settlement retires both full inventories | enforced-on-chain | — | spline_lifecycle.rs | tested |
INV-DOB-V3-1 | Four Logical Lanes, Two Shared Physical Arenas | enforced-on-chain | deep_orderbook_proofs.rs::dob_lane_total_involution | — | boundedly-verified |
INV-DOB-V3-2 | Lane and Capacity Aggregate Accounting | enforced-on-chain | — | — | not-yet-verified |
INV-DOB-V3-3 | Single-Lane Slot Reachability | enforced-on-chain (subset) + accepted (full form) | — | — | not-yet-verified |
INV-DOB-V3-4 | Lane Authority Is the Stored Order, Never the Caller | enforced-on-chain | — | — | not-yet-verified |
INV-DOB-V3-5 | Exact-Complementary Matching Only | enforced-on-chain | deep_orderbook_proofs.rs::dob_lane_total_involution | — | boundedly-verified |
INV-DOB-V3-6 | Merged Canonical Reads Preserve Strict Price-Time Order | enforced-on-chain (subset) + accepted (full form) | — | — | not-yet-verified |
INV-DOB-V3-7 | Order-ID Formula Is Lane-Free and Byte-Compatible | enforced-on-chain | — | — | not-yet-verified |
INV-DOB-V3-8 | Mutation Rollback Restores Every Lane Byte-for-Byte | enforced-on-chain | — | — | not-yet-verified |
INV-DOB-V3-9 | Reclaim-Gated Structural Best/Worst Fails Closed | enforced-on-chain | deep_orderbook_proofs.rs::dob_structural_best_fail_closed<br>deep_orderbook_proofs.rs::dob_structural_worst_fail_closed | — | boundedly-verified |
INV-DOB-V3-10 | Account Version 1, Layout Sizes Unchanged | enforced-on-chain | — | — | not-yet-verified |
Coverage-class distribution (71 invariants)#
| Coverage class | Count |
|---|---|
| proven | 4 |
| boundedly-verified | 28 |
| tested | 21 |
| partially-covered | 6 |
| assumption-dependent | 2 |
| not-yet-verified | 9 |
| not-practically-formalizable | 1 |
proven (full-type Kani domain, 3 value proofs): INV-T2, INV-T3, INV-F2.
INV-BAND-1 also carries the proven label but in the narrower
no-panic-over-all-u16 sense — a smoke-domain proof (absence of panics), not a value
property — so the "3 full-type value proofs" figure is not overstated by the 4th row.
The not-yet-verified set is INV-X4, INV-X5, and INV-DOB-V3-{2,3,4,6,7,8,10}.
Notes on specific rows#
-
INV-F1(tested, corrected 2026-11-24). The program charges the linear coefficient fee ofprogram/src/logic/fee/taker_fee.rs. Its unit and property tests (exact_examples, the F-12f12_*properties, zero and range checks) are the evidence. Thefee_curve.rs,fee_curve_widening.rsandgoal_g_tr_fees_direct.rsKani harnesses prove the retired capped-curve calculator (compute_fee_bps/compute_fee_amount_at_price) and are no longer counted for this invariant; no Kani proof oftaker_feeexists yet. -
INV-M3/INV-M5(tested, corrected 2026-09-11). The production confidence-aware helper is covered by concrete strict-interval unit tests.differential_reference_tests.rsand the oldresolve_logic.rsvalue proofs exercise the legacy point-only helper. The expiry composition harnesses compare wrapper output to the confidence helper itself; they do not independently prove its interval rule. No full-domain or bounded independent confidence-policy proof is claimed here, and dedicated differential coverage remains open. -
INV-G2(partially-covered, updated 2026-09-11). PDA verification no longer re-runs the canonical bump search on non-creation paths:verify_*_pdarecomputes the address from the stored bump withcreate_program_addressand the caller compares it against the account's actual address.account_validation.rs::canonical_bump_required_biconditionalstill proves the bump comparison, but that comparison now guards only the fixed-seed PDA fast path and the creation paths — it is no longer the load-bearing gate for INV-G2. The load-bearing gate is address equality, and it is runtime-tested, not proven: a full-u8sweep inprogram/src/utils/pda.rs::bump_verification_tests::non_canonical_bump_never_yields_canonical_addressshows every non-canonical bump either errors or yields a different address, andsecurity_pda_validation.rsplusadversarial_account_aliasing.rsexercise the same gate through the real loaders on BPF. A Kani proof of the address-equality form would have to model SHA-256, which is not tractable — the twocreate_market_pda.rsharnesses that remain prove seed-layout emission only. External market loads now revalidate the parent PDA whenever authenticatedMarketMetais present; generic market-only consumers remain an explicit residual-risk surface because the fixed market layout does not storequestion_hash. -
INV-M6(not-practically-formalizable).docs/security/invariants.mdstates a Kani harness overvalidate_pyth_feed_address/validate_pyth_feed_idwould only re-prove a one-line[u8;32]equality against a copy of itself (semantically vacuous per the H-01 finding). The security-relevant assurance — every call site passes the creation-bound expected value — is verified at the instruction level bysecurity_wrong_feed_id.rsand theexpire_marketlate-capture unit tests. The deletedP-LOADER-01harness (Task 17) is the same vacuity class. -
INV-V2,INV-V4(partially-covered). The per-instruction post-CPI conservation tripwire (V2) and per-mutation supply-reconciliation deltas (V4) are proven, but the composed all-instruction balance-sheet (V2) and the closed cross-position share aggregate (V4) are explicit release-test/proof obligations, not runtime scans — V4's aggregate reconciliation job is still gated on OPS-02. -
INV-F4,INV-FEE-T3(assumption-dependent). The system-wide referrer-treasury and protocol-shard sums are cross-account totals no single instruction can check. The hourlyreconcileTreasuryShardsjob records drift but only logs it; the paged alert is gated on OPS-02, so the stated aggregate form holds only under that off-chain reconciliation. The on-chain per-shard subset is enforced (INV-REFERRAL-T3,INV-FEE-T4/T5). -
INV-EXT-6(partially-covered).external_halt_placement.rsdrives a placement on a halted external market toMarketHalted (0xA006)with no market, book, or token mutation (an identical unhalted fixture accepts the same order), and shows owner cancellation and free-fund withdrawal still succeed while halted. The halt flag is injected on a seeded market; a combined signed-source halt, expiry, and owner-exit SBF scenario remains an explicit coverage gap. Kani is waived for this implementation. -
External-market rows (
INV-EXT-1,INV-EXT-4,INV-EXT-5,INV-EXT-7). Coverage moved from the deleted predecessor runtime suites to the current SBF and processor-unit tests cited above. Known narrower gaps: no test sends a native market toExpireExternalMarketor an external market to nativeExpireMarket(INV-EXT-1); no test opens the same(platform_id, question_hash)twice and checks the specific error (INV-EXT-4). Its retained parent-binding unit tests are narrower than a complete close/reopen replay scenario, and the runtime replay suite that once exercised the question commitment was removed with the proof-buffer transport, so that row is partially covered. -
Orderbook / DOB-v3 bounds.
INV-O1/O3/O5andINV-X2areboundedly-verified: the runtime no-cross tripwire (has_any_cross), resting-insert, and placement-gate proofs are exhaustive only within their two-slot/three-slot fixtures and the crossing traversal's unwind envelope; the full every-occupied-slot ordering scan is the deep-bookvalidate_fullchecker, exercised by bounded Kani fixtures and by the unsorted-tree rejection test infuzz/src/lib.rs.INV-O2ispartially-covered: the placement price gate is proven, butvalidate_fulldoes not check occupied-slot prices, so the full "every resting order is in(0, P_MAX)" form rests on every insertion path running the gate and has no book-wide checker evidence (the former model checker inorderbook_invariants.rswas deleted with the fixed orderbook).INV-DOB-V3-{2,3,4,6,7,8,10}have neither a Kani harness nor a targeted runtime test yet.