{"uid":"cap_Lcv5eNC3cUOHY7DtKtCxQ","slug":"taifoon-tee-rule-compiler-tdx-typed-questions-3891448e","name":"Taifoon TEE Rule Compiler (TDX Typed Questions)","description":"Rules compiled into typed questions inside Taifoon's Intel TDX enclave (Phala Cloud). The answer carries two TDX quotes, both verified by Phala's verifier before you are charged: one binds the result and the enclave key, one binds that key to sha256 of your nonce. The compose-hash in RTMR3 proves which code runs. 0.001 USDC a request. Send { rules, nonce? }.","url":"https://coord.taifoon.dev/v1/x402/class/tee.typed.compile?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"nonce":{"type":"string","pattern":"^[0-9a-fA-F]{8,128}$","description":"optional: your challenge (e.g. the sha256 of your payload); the challenge quote binds the enclave key to sha256 of it"},"rules":{"type":"string","maxLength":1000,"minLength":4,"description":"the rules in words, one clause per rule; compiled into typed questions inside the enclave"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VJSuDWdkiTTQETZ48Hl5c","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compiles natural-language rules into typed questions inside an Intel TDX trusted execution environment, returning the result with two attested TDX quotes verified by Phala's verifier","exampleAgentPrompt":"Compile these rules into typed questions inside Taifoon's TDX enclave and give me the attested result: 'A user must be over 18. A user must have verified their identity. Transactions must not exceed $10,000.' — use nonce 'a3f1b2c4' so the enclave key is bound to my challenge.","exampleUseCases":[{"title":"Compliance rule attestation for fintech","prompt":"Take these AML compliance rules — 'Transactions above $5,000 require manual review. Customers must be verified before trading. No transactions to sanctioned countries.' — compile them into typed questions inside the Taifoon TDX enclave with nonce 'deadbeef01' so I get back a hardware-attested proof of which code ran."},{"title":"Smart contract rule formalization","prompt":"I need to turn my DeFi protocol rules into typed questions with a TDX quote I can publish on-chain: 'Liquidity providers must lock for at least 7 days. Withdrawals above 1 ETH require a 24-hour delay. No more than 10% of pool can be withdrawn in one transaction.' Use nonce 'cafe1234' for the attestation."},{"title":"Verifiable policy question generation","prompt":"Compile this HR policy into structured typed questions using Taifoon's trusted enclave so I can prove the code that ran: 'Employees must complete security training annually. Contractors must sign an NDA before accessing systems. All data access must be logged.'"}],"resultDescription":"Returns the compiled typed questions derived from the input rules, along with two Intel TDX attestation quotes: one binding the result to the enclave key, and one binding the enclave key to the SHA-256 of the provided nonce. The compose-hash in RTMR3 proves exactly which code executed. Both quotes are pre-verified by Phala's verifier before the charge is applied.","failureModes":["Rules string too short (< 4 chars) or too long (> 1000 chars) — validation error","Invalid nonce format (not 8–128 hex chars) — schema validation failure","TDX quote verification failure by Phala verifier — attestation cannot be confirmed, no charge applied","Enclave unavailability or TEE initialization failure — service error","Malformed or missing rules field — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need not only structured typed questions compiled from natural-language rules but also cryptographic hardware attestation (Intel TDX) proving exactly which code produced the result. It is the right choice when trust, auditability, and verifiable computation are required — e.g. compliance, regulated fintech, on-chain verification, or any scenario where the caller must prove to a third party that the compilation happened inside a specific, unmodified enclave. Prefer alternatives if you only need rule parsing without attestation overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:35:18.113Z","isFirstParty":false,"canonicalSlug":"taifoon-tee-rule-compiler-tdx-typed-questions-3891448e"}