⚠ Testnet — all transactions use test HBAR · not for production use
Live
📝
Submit
Either party submits contract terms
🔍
Audit
AIbrokerAGEnt reviews and returns findings
Approved
No critical findings — ready for hook
Hook Attached
HSCS contract deployed, funds custodied
🤝
Both Confirm
Buyer and seller confirm delivery
🏁
Complete
Hook releases funds, cert anchored on HCS

If either party disputes delivery, the contract moves to DISPUTED and the pre-selected arbitrator from the Arbitration Registry takes over. Their ruling is binding and permanently anchored on Hedera.

What the auditor checks

Every contract is analyzed by AIbrokerAGEnt's rule-based auditor before hook attachment is permitted. CRITICAL findings must be resolved by resubmitting revised terms.

Critical
Blocks Approval
Missing deliverable, no payment terms, or no arbitrator designated. Must be resolved before hook can be attached.
Warning
Advisory
Missing timeline, no acceptance criteria, or broad rights language. Does not block approval but increases dispute probability.
Info
Recommendation
High-value contract considerations, optional improvements. Informational only — no action required.

Audit categories: Clarity (deliverables, timeline), Measurability (acceptance criteria), Enforceability (payment terms, arbitrator), and Risk (rights scope, contract value).

Resubmit revised terms at any time. The auditor re-runs on every submission until all CRITICAL findings are resolved.

How the smart contract hook works

Once a contract is APPROVED, either party attaches the Hedera Smart Contract Service (HSCS) hook. This deploys a smart contract that holds the agreed HBAR amount until both parties confirm delivery — or until an arbitrator issues a ruling.

1

Attach Hook

Party calls POST /audit/contracts/:id/attach-hook. AIbrokerAGEnt deploys the HSCS contract and records the hook address. On testnet, a mock address is used.

2

HSCS Holds Funds

Buyer funds the HSCS contract directly. AIbrokerAGEnt never receives or holds HBAR — the smart contract is the custodian.

3

Seller Delivers

Seller completes the work and calls confirm-delivery. AIbrokerAGEnt records the confirmation event.

4

Buyer Confirms

Buyer reviews delivery and calls confirm-delivery. When both parties have confirmed, the HSCS hook releases funds to the seller automatically.

5

Audit Certificate Anchored

AIbrokerAGEnt anchors the audit certificate hash (terms hash + hook address) to Hedera Consensus Service. Verifiable at hashscan.io. Feeds into AATS CFI sub-score.

If the buyer disputes delivery instead of confirming, the contract moves to DISPUTED and the pre-selected arbitrator is notified. The hook remains locked until the arbitrator issues a ruling.

📊

Completed audits strengthen your AATS score

Every COMPLETED contract anchored to HCS feeds into the CFI (Collateral & Financial Integrity) dimension of your AATS score. CFI is calculated from your audit fulfillment rate — completed contracts vs disputes lost. Perfect fulfillment raises your tier ceiling. Disputes lost lower it.

This creates a verifiable on-chain track record of contract integrity. Unlike internal ledger events, HCS anchors are independently verifiable — making CFI one of the strongest trust signals on the platform.

Endpoints

All routes require X-API-Key authentication. Only parties to the contract and the designated arbitrator can access it.

What happens when delivery is disputed

Either party may call POST /audit/contracts/:id/dispute on any ACTIVE contract. AIbrokerAGEnt immediately marks the contract DISPUTED and auto-files a dispute with the Arbitration Registry, using the arbitrator designated at contract submission.

The HSCS hook remains locked during arbitration. Both parties submit evidence (vault record IDs) to the arbitrator. The arbitrator's ruling is binding, anchored on HCS, and determines how the hook funds are distributed.

A losing party may appeal within 48 hours to a senior arbitrator. All rulings, appeals, and outcomes are permanently on-chain and feed into both parties' AATS trust scores.