Test 9.1: Full Deployment Lifecycle - Happy Path
Objective: Complete end-to-end test of typical user journey
User Actions:
- Create new wallet
- Fund with 2000 AKT from faucet
- Record all initial BME state
- Create deployment (500 AKT deposit)
- Verify deployment running
- Top up deployment (200 AKT)
- Let deployment run for 1 hour
- Query provider payments occurred
- Close deployment
- Verify refund received
- Reconcile all accounting
Expected Results:
- All steps complete successfully
- RemintCredits accrued on deposits
- RemintCredits used on settlements/refund
- TotalMinted unchanged (if no price drop)
- Final AKT balance = Initial - compute_used (at varying prices)
- All ledger records present and accurate
Test 9.2: Full Lifecycle with Price Volatility
Objective: End-to-end test with price movements
User Actions:
- Create deployment at P = $1.00
- Let run, price rises to $1.50 (settlement at high price)
- Price drops to $0.80
- Close deployment (refund at low price)
- Reconcile all accounting
Expected Results:
- Settlements during high price: fewer AKT paid, remint credits surplus
- Refund during low price: may require new minting if surplus insufficient
- TotalMinted reflects any inflationary events
- User’s final AKT reflects USD exposure, not AKT exposure
Test 9.3: Stress Test - Circuit Breaker Engagement
Objective: Verify system stability during stress
User Actions:
- Create multiple active deployments
- [Testnet Admin] Gradually drop price toward halt threshold
- Observe:
- Mint status transitions
- Epoch timing changes
- Settlement behavior
- Trigger HaltCR
- Verify existing deployments continue
- Verify new deployments blocked
- [Testnet Admin] Recover price
- Verify system resumes
Expected Results:
- Graceful degradation as Collateralization Ratio drops
- No data loss or corruption
- Clean recovery when Collateralization Ratio improves
Test 9.4: Multi-User Concurrent Activity
Objective: Verify system handles realistic multi-user load
User Actions:
- Create 10 test wallets
- Fund each with AKT
- Each wallet creates 2-3 deployments
- Let all run concurrently
- Randomly close deployments over time
- Verify all accounting correct
Expected Results:
- All operations succeed
- No cross-user contamination
- BME state accurate across all users
- RemintCredits properly shared/consumed