Skip to content

L-12. End-to-end genesis + integration test for Phase 1 #503

@linear

Description

@linear

Scenario suite covering:

  • 3 providers register; 2 auditors governance-approved with bonds.
  • Provider opens audit escrow (MsgOpenAuditEscrow with fee + provider deposit); auditor submits L2 attestation with anti-griefing deposit; escrow transitions to Consumed; TTL expiry pays auditor.
  • Cancel path: provider opens escrow, cancels before consumption → full refund.
  • Settle path: governance settles an unconsumed escrow with ProviderFault → provider deposit slashed to the community pool and fee returned to the provider.
  • Discrepancy path: two auditors conflict → grace record with preserved_tier → governance resolves with typed reason + FaultAttribution → settlement helper routes funds correctly.
  • Capability-only disagreement path: same tier with different positive capability flags does not create a discrepancy.
  • Bid filter: verification.min_tier: 2 ignored when active=false, enforced when active=true; mixed legacy+verification requires intersection.
  • Maintenance: open, query (Scheduled/Active/Elapsed/Closed), close; reject second active window.
  • Snapshot-suspension: provider misses post → suspended → L2+ bids rejected → resume on next post → bids accepted again, attestations unchanged.

Depends on: L-5, L-6, L-7, L-8, L-9, L-10, L-11

DoD: Test suite runs in CI; all scenarios pass; covers active/inactive transitions, mixed requirements, all close-reason classifications.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions