Stake-for-Quality and Stake-for-Bridge: Performance Bonds and Deterministic Slashing

The previous three articles examined Stake-for-Gas for fee-exempt transaction capacity, Stake-for-Bid / Offer for auctions without external escrow contracts, and Stake-for-Card / Distributor for prepaid cards and distribution without sunk admission fees. They share a central property: when participants follow the state machine's rules, staked funds are returned in full when the task ends or the applicable exit conditions are met.
More complex collaboration introduces a different problem. Consider two participants in an open network:
- An unfamiliar developer lists an AI inference service, an automated Blocklet component, or a digital subscription SKU in a Unified SKU Factory Marketplace and charges callers for access.
- An enterprise or independent operator launches a Self-Operated SubToken Bridge to connect with the mainnet ecosystem.
A promise of good conduct, backed only by a stake that can be withdrawn without consequences, is insufficient. A malicious participant could deliver defective results, fabricate withdrawal proofs, or refuse to respond.
ArcBlock's ledger design addresses accountability and compensation through two primitives with enforceable performance bonds and deterministic slashing: Stake-for-Quality for SKU fulfillment and Stake-for-Bridge for collateralized self-operated SubToken bridges and reserve conservation.

1. Stake-for-Quality: Why Slashing Must Resist Self-Dealing
Buyers in software and AI skill marketplaces face a familiar concern: they may pay for a service and receive hallucinated results, timeouts, or a broken deliverable. New suppliers face the other side of that problem: without an established reputation, winning their first customers' trust is difficult.
In the native commerce and skill exchange design, OcapNativeExchangeEngine, a supplier calling registerSkuFactoryListing to list a reusable skill, data subscription, or digital asset SKU must lock a Stake-for-Quality performance bond. Buyers use executeUnifiedSkuCheckout for deterministic ordering and delivery evidence recording.
If the delivered payload fails deterministic schema validation, cryptographic signature verification, or an SLA fulfillment assertion, a challenger can call challengeAndSlashDefectiveSku to initiate on-chain slashing.
The allocation of slashed funds matters. If the entire amount goes to the buyer or reporter, a malicious seller could buy its own defective product through another account, report itself first, and recover its bond. If all slashed funds are destroyed instead, the affected buyer receives no compensation and outside observers have little reason to submit evidence.
challengeAndSlashDefectiveSku therefore enforces a 3-Way Defect Slashing Split:
- Buyer Full Refund: the affected buyer first receives the entire amount paid for the order.
- Fisherman Bounty: a deterministic share of the seller's slashed
Stake-for-Qualitybond rewards the independent verifier, or fisherman, that submits a valid defect proof. - Chain Revenue Treasury: the remaining slashed collateral flows into the protocol revenue treasury. Under zero-burn conservation, it is retained for protocol use rather than destroyed.
Each challengeAndSlashDefectiveSku settlement removes the bounty and treasury allocation from the seller's bond. Even if the seller controls the purchasing account, self-reporting cannot recover the treasury allocation. Genuine buyers receive refunds, while outside verifiers have a reason to submit valid evidence.
2. Three-Layer Service Discovery Without Exposing Every Commercial Detail
Creators and service providers, called miners or builders in this design, face another tradeoff beyond delivery quality:
- Publishing every SKU's live sales and the exact receipts of a provider's primary wallet lets competitors monitor successful niches and rapidly copy offerings or undercut them.
- Publishing no commercial evidence makes it harder for an independent developer to demonstrate that a service has an established customer record.
OcapNativeExchangeEngine therefore includes a 3-Layer Semi-Transparent Miner Discovery design that balances verifiability with commercial privacy.

- Layer 1: Public category heatmaps and wash-trade-filtered tier badges.
getCategorySupplyDemandHeatmappublishes category-level supply-to-demand ratios and service gaps to help developers identify underserved areas.issueVerifiableMinerRevenueBadgeexcludes related-party self-trades before issuing a badge for a service-revenue band, fromTIER_BRONZEtoTIER_DIAMOND. A badge attests that verified net service receipts have crossed a threshold without disclosing the exact amount. - Layer 2: Unlinkable shop personas with
1:1nullifier binding. When a creator callsregisterMinerShopPersona, a1:1cryptographic nullifier binding instatedb.stakeestablishes a separate shop persona. External callers can verify its lockedStake-for-Qualitycollateral and historical fulfillment tier without obtaining a direct link to the creator's primary asset wallet through that binding. - Layer 3: Delayed launch metrics and a quadratic listing-stake floor.
getSkuGranularMetricsWithAlphaDelayapplies a deterministic protection delay to granular conversion metrics for new offerings. If a category receives a rapid influx of similar listings,computeDynamicCategoryListingStakeFloorraises the minimumStake-for-Qualityrequirement for new SKUs along a quadratic curve based on category crowding. The dynamic collateral requirement discourages low-quality mass duplication.
3. Stake-for-Bridge: Separate Official Reserves From Self-Operated Bridge Risk
Stake-for-Quality addresses individual service deliveries. Stake-for-Bridge addresses the safety of an entire cross-chain asset channel.
Bridge compromises and unbacked issuance of mapped assets have caused severe losses across the blockchain industry. ArcBlock's design separates the official native-token bridge from ecosystem-operated SubToken bridges so that an external bridge failure cannot alter the mainnet ledger's native-token conservation invariant.

The Official Bridge: assertOfficialBridgeTokenOnly and Δ === 0
The main-chain kernel restricts the official bridge to the official mainnet token through assertOfficialBridgeTokenOnly. All bridge escrow funds reside in the designated account, ocapBridgeEscrowDid, which holds ROLE_BRIDGE_RESERVE.
After every transaction, the post-execution conservation gate checks the full-reserve identity:
Sum of all on-chain account and StakeState balances + escrow reserves in ocapBridgeEscrowDid === fixed genesis supply (Δ === 0)
An instruction that attempts to create even 1 unit of the official token without the corresponding reserve accounting fails the conservation assertion at the end of the micro-instruction cycle, and the transaction rolls back.
Self-Operated SubToken Bridges: Registration and Slashing
An ecosystem project or subchain operator that needs a bridge for its own SubToken cannot use the official bridge reserve pool. It must register a separate bridge through registerSelfOperatedSubTokenBridge.
- An independent validator set and
Stake-for-Bridgebond are required. Registration declares the bridge validators' public keys and locks the required performance collateral. The size of that bond determines the bridge's permitted maximum exposure. slashSelfOperatedBridgeStakeenforces deterministic penalties. If validators sign conflicting state roots, attempt excessive withdrawals, or face a verifiable cross-chain fraud proof, the kernel freezes the bridge channel and slashes its locked bond. Settlement prioritizes affected legitimate bridge users, with allocations to validating reporters and the protocol revenue treasury.
4. The Stake-for-X Family in One View
The series has now covered the eight core groups in ArcBlock's Stake-for-X design:
| Staking Primitive | Engineering Problem | Normal Exit or Breach Handling |
|---|---|---|
Stake-for-Gas | Remove per-transaction Gas friction while using cooldowns and rate guards against fee-free flooding | Full refund after the cooldown |
Stake-for-Token | Require a verifiable issuance stake and support retirement once no external supply remains | Full unlock after complete token retirement and cancellation |
Stake-for-Liquidity | Lock initial protocol pool liquidity when a token graduates from its bonding curve into the built-in AMM | Permanently locked with revocable: false, preventing withdrawal of that pool backing |
Stake-for-Bid / Offer | Native English auctions and attribute-conditioned offers, with O(1) refunds when outbid | Paid to the seller on settlement; otherwise refunded in full under the cancellation or outbid rules |
Stake-for-Card / Credit | Policy-bound prepaid and credit balances with separate accounting for paid funds and promotional credits | Redemption settles with merchants; cancellation refunds the eligible unspent paid portion |
Stake-for-Distributor | Refundable distributor admission and minRetailPriceAbt enforcement against rebate-based undercutting | Full refund through unstakeValueCardDistributor after commissions mature |
Stake-for-Quality | SLA performance bonds and dynamic listing thresholds for AI skills and goods in the Unified SKU Factory | Refunded on normal delisting; defects trigger three-way slashing through challengeAndSlashDefectiveSku |
Stake-for-Bridge | Separate official and self-operated bridge reserves and constrain self-operated bridge exposure with slashable bonds | Refunded after the settlement period; fraud triggers slashSelfOperatedBridgeStake |
Fee-exempt interactions, NFT auctions, prepaid retail cards, AI service fulfillment, and bridge safety share the same ledger-level StakeState state machine. Resource quotas, escrow settlement, and breach penalties become protocol primitives rather than separate external contracts for each use case.
The next series turns to token models and built-in AMM / DEX fundamentals, covering ArcBlock's token categories, bonding curves with Sybil-resistant graduation gates, asymmetric pool-favoring rounding, coalition T-Point credits, and a Stripe-style cross-chain checkout.