[{"data":1,"prerenderedAt":188},["ShallowReactive",2],{"project-\u002Fprojects\u002Fsweefi":3},{"id":4,"title":5,"body":6,"description":168,"extension":169,"featured":170,"github":153,"live":171,"meta":172,"metric_source":171,"navigation":170,"order":163,"path":173,"pr_links":174,"proof_url":153,"seo":175,"status":176,"statusColor":177,"stem":178,"subtitle":179,"tech":180,"tier":185,"verification_tier":186,"__hash__":187},"projects\u002Fprojects\u002Fsweefi.md","SweeFi",{"type":7,"value":8,"toc":161},"minimark",[9,13,22,27,59,100,104,142,146],[10,11,5],"h1",{"id":12},"sweefi",[14,15,16,17,21],"p",{},"SweeFi is the ",[18,19,20],"strong",{},"reference implementation of the mandate"," — the on-chain primitive behind everything else here. A human delegates bounded authority to an agent; Move enforces it at consensus; the human keeps a kill-switch the agent cannot reach.",[23,24,26],"h2",{"id":25},"the-mandate-concretely","The mandate, concretely",[14,28,29,30,34,35,38,39,42,43,46,47,50,51,54,55,58],{},"A ",[31,32,33],"code",{},"Mandate\u003CT>"," is a Sui ",[18,36,37],{},"owned object"," carrying a delegator (human), a delegate (agent), and the bounds: ",[31,40,41],{},"max_per_tx",", ",[31,44,45],{},"max_total"," (with a monotonic ",[31,48,49],{},"total_spent ≤ max_total"," invariant), and an expiry. ",[31,52,53],{},"validate_and_spend"," runs ",[18,56,57],{},"atomically in the same transaction as the spend"," — exceed a cap and the whole PTB aborts; the money never moves.",[60,61,62,69,75,81,94],"ul",{},[63,64,65,68],"li",{},[18,66,67],{},"Deny-by-default."," A fresh mandate authorizes nothing; a human adds explicit grants.",[63,70,71,74],{},[18,72,73],{},"Ratchet-up trust (L0–L3)."," Levels only increase, so an agent can't self-downgrade to dodge tracking.",[63,76,77,80],{},[18,78,79],{},"Publication mandates (P0–P2)."," Because agents cause harm with words, not just money.",[63,82,83,86,87,89,90,93],{},[18,84,85],{},"Consensus-enforced revocation."," Revoke writes a flag to the human's registry; the agent's next ",[31,88,53],{}," aborts ",[31,91,92],{},"ERevoked"," at consensus. It doesn't get a vote.",[63,95,96,99],{},[18,97,98],{},"AP2-compatible"," — aligned with the emerging Agent Payments Protocol, not invented in a vacuum.",[23,101,103],{"id":102},"a-genuinely-elegant-detail","A genuinely elegant detail",[14,105,106,107,111,112,115,116,119,120,123,124,127,128,133,134,137,138,141],{},"The agent ",[108,109,110],"em",{},"holds"," its own mandate (an owned object — fast, no consensus overhead, no front-running), but revocation lives in a separate registry ",[18,113,114],{},"owned by the human",". The mandate checks ",[31,117,118],{},"registry.owner == delegator"," on every spend — which rejects a ",[108,121,122],{},"different-owner"," registry forged to fake \"not revoked.\" A subtler attack survives that check, though: a delegator owns many registries, so a rogue agent can present a ",[108,125,126],{},"same-owner"," one its mandate was never revoked in. The hardened cage (",[129,130,132],"a",{"href":131},"\u002Fprojects\u002Fsweeai","Swee AI",") closes it — pinning the ",[18,135,136],{},"exact"," registry by ",[31,139,140],{},"object::id",", a gap green tests missed and an adversarial bytecode audit caught. Complete mediation (Saltzer & Schroeder), earned the honest way: shipped, audited, hardened.",[23,143,145],{"id":144},"proof","Proof",[60,147,148,158],{},[63,149,150,151,157],{},"Source + Move contracts: ",[129,152,156],{"href":153,"rel":154},"https:\u002F\u002Fgithub.com\u002Fsweeinc\u002Fsweefi",[155],"nofollow","sweeinc\u002Fsweefi"," ",[63,159,160],{},"Deployed to Sui testnet. ",{"title":162,"searchDepth":163,"depth":163,"links":164},"",2,[165,166,167],{"id":25,"depth":163,"text":26},{"id":102,"depth":163,"text":103},{"id":144,"depth":163,"text":145},"A payment SDK and Move mandate system that lets a human grant an AI agent bounded, revocable spending authority — enforced at consensus, not by prompt. AP2-compatible.","md",true,null,{},"\u002Fprojects\u002Fsweefi",[],{"title":5,"description":168},"Testnet","blue","projects\u002Fsweefi","The mandate — structural agent safety on Sui",[181,182,183,184],"Move","Sui","TypeScript","SEAL","working","testnet","6AvEfu8kfR_on-5npZDeptRO3OCMDvUjEb2qC1oruy8",1788226714003]