<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Frontier Lab | SDF]]></title><description><![CDATA[Frontier Lab builds at the edge of what’s possible on the Stellar network. We prototype new ideas, test emerging features, and share what we learn along the way. ]]></description><link>https://frontier-blog.stellar.buzz</link><image><url>https://substackcdn.com/image/fetch/$s_!XU8Z!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf9834c2-8c23-4db7-9189-8a4c36b7284d_256x256.png</url><title>Frontier Lab | SDF</title><link>https://frontier-blog.stellar.buzz</link></image><generator>Substack</generator><lastBuildDate>Sun, 29 Nov 2026 06:58:48 GMT</lastBuildDate><atom:link href="https://frontier-blog.stellar.buzz/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Frontier Lab | SDF]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[frontierlabsdf@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[frontierlabsdf@substack.com]]></itunes:email><itunes:name><![CDATA[Bri Wylde]]></itunes:name></itunes:owner><itunes:author><![CDATA[Bri Wylde]]></itunes:author><googleplay:owner><![CDATA[frontierlabsdf@substack.com]]></googleplay:owner><googleplay:email><![CDATA[frontierlabsdf@substack.com]]></googleplay:email><googleplay:author><![CDATA[Bri Wylde]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[DevReality Ep. 01]]></title><description><![CDATA[Confused about x402? Don&#8217;t worry, we got you.]]></description><link>https://frontier-blog.stellar.buzz/p/devreality-ep-01</link><guid isPermaLink="false">https://frontier-blog.stellar.buzz/p/devreality-ep-01</guid><dc:creator><![CDATA[Bri Wylde]]></dc:creator><pubDate>Tue, 20 Oct 2026 19:58:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!XU8Z!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf9834c2-8c23-4db7-9189-8a4c36b7284d_256x256.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;aa7d2afe-97d8-46d7-a8ec-65b412cdb7a3&quot;,&quot;duration&quot;:null}"></div><p><sub>DevRel explains x402 in the first episode of DevReality</sub></p>]]></content:encoded></item><item><title><![CDATA[Who Ate Gerald? Building a confidential token game on Stellar]]></title><description><![CDATA[Murder, suspicious villagers, and one hungry werebear: a hands-on tour of Stellar&#8217;s confidential tokens]]></description><link>https://frontier-blog.stellar.buzz/p/who-ate-gerald-building-a-confidential</link><guid isPermaLink="false">https://frontier-blog.stellar.buzz/p/who-ate-gerald-building-a-confidential</guid><dc:creator><![CDATA[Bri Wylde]]></dc:creator><pubDate>Thu, 15 Oct 2026 17:36:29 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2d3s!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2d3s!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2d3s!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 424w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 848w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 1272w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2d3s!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png" width="1456" height="481" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:481,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1568087,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/215712909?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2d3s!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 424w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 848w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 1272w, https://substackcdn.com/image/fetch/$s_!2d3s!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9373b48d-2028-4b7e-8816-e6d9222641fb_1792x592.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><blockquote><p><span>TL;DR: I built an eight-player social deduction game where confidential token transfers are the clues. Along the way: the mental model that makes Stellar&#8217;s confidential tokens click, and four gotchas waiting for the next builder.</span></p></blockquote><p><span>Confidential tokens have been on Stellar&#8217;s horizon for a while, and as of June 2026, developers can start playing around with them on testnet. So, naturally, I used them to build a game about murder, suspicious villagers, and one hungry werebear.</span></p><p><span>Before we begin! Please note that confidential tokens are currently a developer preview, only available on Stellar&#8217;s testnet (as of this writing in September 2026). The current implementation is intended for experimentation. Who Ate Gerald? is a personal project and has not been audited or reviewed as a reference implementation. The confidential token contracts and Noir circuits were built by OpenZeppelin, and the UltraHonk verifier was built by Nethermind. Keep up to date on all things confidential tokens in the </span><a href="https://developers.stellar.org/docs/build/apps/privacy#confidential-tokens"><span>Stellar developer docs</span></a><span>.</span></p><p><span>Who Ate Gerald? is an eight-player social deduction game in which confidential token transfers serve as clues. Players make private purchases, investigate each other&#8217;s spending, accuse their neighbors, and try to identify the werebear before the village population gets wiped out.</span></p><p><span>In this piece, I&#8217;ll cover how the game works, the mental model that made confidential tokens click for me, and the hiccups I hit along the way, hopefully saving the next developer some trouble. Games may not be what this feature was built for, but the mechanics apply directly to more serious applications.</span></p><h2><span>What is Who Ate Gerald?</span></h2><p><span>Let&#8217;s start by talking briefly about the game, without getting too in the weeds on mechanics (as a gamer, I have way too much fun with that part). To begin, players log in to Freighter, choose a character, and are secretly assigned as either a villager or a werebear.</span></p><p><span>During the day, each player shops for items at four stores. Items can protect you, expose other players, or just create chaos. You can even buy Gerald&#8217;s fingers (Gerald, unfortunately, was the first villager eaten by the werebear. That&#8217;s how everyone knows there&#8217;s a werebear in their midst).</span></p><p><span>Every purchase is a real testnet XLM transfer through a </span><a href="https://stellar.expert/explorer/testnet/contract/CCLDBRA5UVX6RMXSN44FMLK6RK4XMQ3XELL4TZC6XPL4D2JPPQNI4VSK"><span>confidential token contract</span></a><span>. The blockchain shows that a player paid a particular shop, but not how much they spent or which item they bought.</span></p><p><span>Once everyone is finished shopping for the day, each player can ask Maude McLedger, the contract&#8217;s auditor, one question about other players&#8217; purchases. Then the accusations begin: players can chat, argue, and vote on who they think the werebear is. Every night, one player is banished by the village, and one player is eaten by the werebear. And the next day, they all do it again.</span></p><p><span>Under the hood, the game uses every major step of the confidential token lifecycle: registration, deposits, merges, transfers, withdrawals, and auditor access. More on all of these below.</span></p><p><span>There&#8217;s one important piece of context before I get into how all of that works: I&#8217;m a vibe coder. I wasn&#8217;t a developer before Claude and other AI models entered our lives, and I relied heavily on AI to build this game. I gave it the confidential token sources it needed, explained the game mechanics, and let it do its thing.</span></p><p><span>The problem is that Claude could confidently tell me it had built a working confidential token transfer flow, but I had no way to know whether that was actually true until I understood the flow myself. So I started digging into what the game was doing under the hood, and that process is basically how this article came to exist.</span></p><p><span>So, here&#8217;s how it all works:</span></p><h2><span>The three places value lives</span></h2><p><strong><span>1. Your regular balance</span></strong></p><p><span>This is real XLM held by your Stellar account. In Who Ate Gerald?, this would be the amount of XLM you have in your Freighter wallet. The amount is public.</span></p><p><strong><span>2. The contract pool</span></strong></p><p><span>The confidential token contract acts as a wrapper around regular XLM: it holds all deposited XLM in one shared pool. Every deposit adds real XLM to this balance. That XLM stays in the pool until someone withdraws it.</span></p><p><span>The pool&#8217;s total balance is public, but its internal ownership breakdown is not. An observer can see how much XLM the wrapper holds without seeing how much belongs to each participant. Also, note that you can use any SEP-41 asset, but I used XLM in the game, so I&#8217;ll refer to it throughout this article.</span></p><p><strong><span>3. Your confidential claims</span></strong></p><p><span>The contract maintains an internal ledger entry for every registered participant. Your entry contains:</span></p><ul><li><p><span>Your public keys</span></p></li><li><p><span>Your auditor configuration</span></p></li><li><p><span>A pending balance</span></p></li><li><p><span>A spendable balance</span></p></li></ul><p><span>The balance fields do not contain readable numbers. Each is stored as a Pedersen commitment: a balance combined with a large random secret, represented as a point on an elliptic curve.</span></p><p><span>Anyone can read the commitment bytes onchain, but those bytes do not reveal the balance. Only someone with the opening (the original amount and its random secret) can interpret the commitment.</span></p><p><span>Your device must therefore track the information needed to open and update your commitments.</span></p><h2><span>Pending and spendable balances</span></h2><p><span>Each account has two confidential balance fields, all represented by claims you have on the contents of the pool.</span></p><p><strong><span>Pending (also known as Receivable): your inbox</span></strong></p><ul><li><p><span>Deposits and incoming transfers are added to your pending balance.</span></p></li><li><p><span>Other participants can increase this balance by paying you, but they cannot spend from it or affect your spendable balance.</span></p></li><li><p><span>You cannot spend directly from pending. You must first merge the entire pending balance into the spendable balance.</span></p></li></ul><p><strong><span>Spendable: your pocket</span></strong></p><ul><li><p><span>Transfers and withdrawals come from your spendable balance.</span></p></li><li><p><span>Only actions authorized by you can change it.</span></p></li></ul><h3><span>Why the balances are separated</span></h3><p><span>A zero-knowledge proof is only valid against the exact commitment that existed when the proof was created. That creates a problem if incoming transfers go straight into your spendable balance: you could start constructing a payment proof, receive a tiny payment from someone else before submitting it, and suddenly your balance commitment has changed, making your proof invalid.</span></p><p><span>Worse, someone could intentionally exploit that by repeatedly sending you tiny payments and preventing your transactions from ever completing. The pending balance prevents this by absorbing changes caused by the outside world. Your spendable balance stays stable and only changes when you act.</span></p><h2><span>The complete confidential token transfer flow</span></h2><p><span>A first confidential payment touches all six steps of the lifecycle:</span></p><ol><li><p><span>Register: Each participant registers with the wrapper contract. (1 tx each)</span></p></li><li><p><span>Deposit: The sender deposits public XLM into the contract pool.</span></p></li><li><p><span>Merge: The sender moves their pending claim into their spendable balance.</span></p></li><li><p><span>Transfer: The sender confidentially transfers part of their spendable claim to the receiver&#8217;s pending balance.</span></p></li><li><p><span>Merge: The receiver moves the incoming claim from pending to spendable.</span></p></li><li><p><span>Withdraw: The receiver may exchange part of their confidential claim for regular XLM.</span></p></li></ol><h3><span>Step 1: Register</span></h3><ol><li><p><span>Each participant registers once per wrapper contract.</span></p></li><li><p><span>Registration binds the participant&#8217;s public keys and auditor information to their account in the contract&#8217;s internal ledger. It also creates their pending and spendable commitments, both initialized to zero.</span></p></li><li><p><span>The participant submits a standard Stellar transaction containing the required keys and a small zero-knowledge proof demonstrating that the registration information is valid.</span></p></li><li><p><span>On an explorer, registration looks like a standard contract invocation.</span></p></li></ol><h3><span>Step 2: Deposit</span></h3><ul><li><p><span>The sender deposits regular XLM into the wrapper contract.</span></p></li><li><p><span>The amount is public. Observers can see:</span></p><ul><li><p><span>Who deposited</span></p></li><li><p><span>When the deposit happened</span></p></li><li><p><span>How much XLM was deposited</span></p></li></ul></li><li><p><span>The deposited XLM leaves the sender&#8217;s regular account and enters the contract pool. In exchange, the contract adds an equal claim to the recipient&#8217;s pending commitment.</span></p></li><li><p><span>It is useful to think of this as an exchange rather than a simple transfer.</span></p></li></ul><p><span>The XLM remains real XLM. What becomes confidential is the ownership claim representing who controls that portion of the pool.</span></p><h3><span>Step 3: Merge pending into spendable</span></h3><ul><li><p><span>The sender must move their pending balance into their spendable balance before they can make a confidential payment.</span></p></li><li><p><span>Only the account owner can authorize this operation.</span></p></li><li><p><span>The merge is all or nothing. It combines the entire pending commitment with the spendable commitment through homomorphic addition: the contract can combine two hidden values without learning either value or their sum.</span></p></li></ul><p><span>After the merge:</span></p><ul><li><p><span>Pending returns to zero.</span></p></li><li><p><span>Spendable contains the combined balance.</span></p></li><li><p><span>No amount is revealed.</span></p></li></ul><h3><span>Step 4: Make a confidential transfer</span></h3><ul><li><p><span>The sender&#8217;s device performs the private arithmetic and constructs a zero-knowledge proof.</span></p></li><li><p><span>The proof demonstrates that:</span></p><ul><li><p><span>The sender had enough spendable value.</span></p></li><li><p><span>The sender&#8217;s balance was reduced correctly.</span></p></li><li><p><span>The receiver&#8217;s balance was increased by the same amount.</span></p></li><li><p><span>No value was created or destroyed.</span></p></li></ul></li><li><p><span>The proof does not reveal the transfer amount or either participant&#8217;s balance.</span></p></li><li><p><span>When the transaction confirms:</span></p><ul><li><p><span>The sender&#8217;s spendable commitment decreases.</span></p></li><li><p><span>The receiver&#8217;s pending commitment increases.</span></p></li><li><p><span>The underlying XLM remains in the shared contract pool.</span></p></li></ul></li><li><p><span>Once for each auditor involved: the recipient&#8217;s auditor gets the amount, and the sender&#8217;s auditor gets the amount plus the sender&#8217;s new balance.</span></p></li><li><p><span>To everyone else, the encrypted values and commitments appear as meaningless bytes.</span></p></li><li><p><span>The transaction record still reveals that the sender interacted with the receiver and when the transfer happened. It hides the amount and balances, not necessarily the participants&#8217; identities.</span></p></li></ul><h3><span>Step 5: The receiver merges</span></h3><ul><li><p><span>The transferred claim belongs to the receiver as soon as the confidential transfer confirms, but it initially sits in the receiver&#8217;s pending balance.</span></p></li><li><p><span>The receiver must authorize a merge before spending or withdrawing it.</span></p></li><li><p><span>This is the same operation the sender performed earlier.</span></p></li></ul><p><span>Receiving is passive. Using the received value requires the receiver to merge it at a time of their choosing.</span></p><h3><span>Step 6: Withdraw</span></h3><ul><li><p><span>A withdrawal exchanges part of a confidential claim for regular XLM.</span></p></li><li><p><span>The withdrawal amount becomes public again.</span></p></li><li><p><span>The withdrawing participant supplies a proof showing that their spendable commitment contains enough value. When the transaction succeeds:</span></p><ul><li><p><span>Their spendable claim decreases.</span></p></li><li><p><span>Real XLM leaves the contract pool.</span></p></li><li><p><span>The XLM enters the destination account&#8217;s regular balance.</span></p></li></ul></li><li><p><span>Inside the wrapper, value can circulate confidentially. To use that XLM elsewhere on Stellar, the holder must withdraw it through this public boundary.</span></p></li></ul><h2><span>The auditor</span></h2><p><span>I&#8217;ve described the sender, the receiver, and the public. There&#8217;s one more party: the auditor.</span></p><p><span>An auditor is an encryption keypair, not a Stellar account. Its public key is published in an onchain auditor registry, and when an account registers with the token contract, it picks which entry in that registry audits it. That choice is permanent. From then on, every transfer the account sends or receives must include its amount encrypted to that auditor&#8217;s key (those are the auditor copies from Step 4), and a transfer without valid auditor copies is rejected by the proof. Whoever holds the matching secret key can open every amount for the accounts bound to it and pair each one with the sender and receiver that were public all along.</span></p><p><span>Who Ate Gerald?&#8217;s registry has exactly one entry, so Maude McLedger, the village fortune-teller, audits every villager and every shop.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vHOW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vHOW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 424w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 848w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 1272w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!vHOW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png" width="378" height="421.8153241650295" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1136,&quot;width&quot;:1018,&quot;resizeWidth&quot;:378,&quot;bytes&quot;:2621179,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/215712909?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5846826-bc0f-4281-b06a-3509224fbf5d_1254x1254.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!vHOW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 424w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 848w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 1272w, https://substackcdn.com/image/fetch/$s_!vHOW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F472fccd8-deef-4cc3-8961-bacfdf4b7682_1018x1136.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Maude McLedger, village fortune-teller and, more importantly, the auditor.</figcaption></figure></div><h2><span>Gotchas</span></h2><h3><strong><span>The curious case of the empty explorer page</span></strong></h3><p><span>In my game, the Blacksmith (</span><a href="https://stellar.expert/explorer/testnet/account/GCSGZAMBPTZHVKUXRETDD3AXAGGHDBJRS4DPKT4HM6XTQCETA4YMZAIZ"><span>stellar.expert</span></a><span>) has received 320 confidential payments. Before I automated the merges, the page showed only three transactions despite hundreds of incoming payments. My first thought was that the system had simply broken.</span></p><p><span>Here is the thing about confidential transfers: the sender handles everything. They submit and authorize the transaction, while the recipient doesn&#8217;t have to sign anything. The wrapper contract updates the recipient&#8217;s receiving balance during that sender-side call.</span></p><p><span>Even though the contract call identifies the receiver, an account page lists only transactions where that account is the source or a signer; a recipient named only as a contract-call argument never appears. This means a recipient&#8217;s page might look completely dormant even if they are raking in tokens. Activity only surfaces when the recipient steps in to merge or withdraw funds.</span></p><h3><strong><span>ZKP requirements will dictate your architecture</span></strong></h3><p><span>Confidential token operations generally fall into two distinct camps:</span></p><ul><li><p><span>Operations that require zero-knowledge proofs (Registration, Transfer, and Withdrawal).</span></p></li><li><p><span>Operations that are just authorized calls (Deposit and Merge).</span></p></li></ul><p><span>The SDK makes this split very clear: deposit and merge only need a signer, while register, confidential_transfer, and withdraw demand a heavy proof.</span></p><p><span>This technical divide determined exactly where my game logic lives. Generating proofs is resource-heavy; it works fine in a browser or a Node.js script, but it is a non-starter for 128 MB serverless workers. I had to design my entire flow around these memory constraints.</span></p><p><span>In Who Ate Gerald?, players generate proofs for their own transfers client-side. Every morning, the game server signs merges for the shops (no proof needed!). Since withdrawals require proofs, they stay outside the main game loop in a script I trigger manually.</span></p><h3><strong><span>Derivation, identity, and the key recovery hurdle</span></strong></h3><p><span>Registration locks a confidential key hierarchy to a specific account. Your application has to be able to recreate those exact keys every time the user returns.</span></p><p><span>Who Ate Gerald? derives these keys from a deterministic wallet signature over a fixed message. Because the signature is repeatable, the same wallet always produces the same key material. But things got messy when I looked into passkeys.</span></p><p><span>First, WebAuthn assertions aren&#8217;t naturally stable for key derivation because they use random challenges and nonces. While the WebAuthn PRF extension is the long-term solution, support is currently spotty. Second, on Stellar, a passkey wallet is usually a new contract account. Since registration is bound to a specific address, moving a user to a passkey account makes them a &#8220;new&#8221; participant. Their old balance won&#8217;t follow them without a public withdrawal and deposit.</span></p><h3><strong><span>Service accounts don&#8217;t merge themselves</span></strong></h3><p><span>Confidential payments land in the pending balance and stay there until a merge is authorized. If no one takes that action, the tokens just pile up indefinitely.</span></p><p><span>Since my shops are automated service accounts, they sat for a month accumulating tokens because I hadn&#8217;t written the code to make them merge. By the time I fixed it, they had gathered 19,500 XLM that were totally unspendable. Nothing was lost, but the shops&#8217; public explorer pages remained empty, hiding the wealth they had technically &#8220;received.&#8221;</span></p><h2><span>Try it, inspect it, or reference it for your own demo!</span></h2><ul><li><p><a href="https://gerald.stellar.buzz/"><span>Play Who Ate Gerald? on Stellar testnet</span></a></p></li><li><p><a href="https://github.com/stellar-experimental/who-ate-gerald"><span>Read the Who Ate Gerald? source and README</span></a></p></li><li><p><a href="https://developers.stellar.org/docs/build/apps/privacy#confidential-tokens"><span>Read Stellar&#8217;s privacy and confidential token docs</span></a></p></li></ul><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;4f201b31-79d0-4d58-ad6a-78a6aac71369&quot;,&quot;duration&quot;:null}"></div><h2>Disclaimer</h2><p>Frontier Lab is published by the Stellar Development Foundation. Posts are for educational purposes only and are not financial, legal, or investment advice. The SDF<a href="https://stellar.org/privacy-policy"> Privacy Policy</a> applies to this publication&#8217;s subscriber list and comments.<a href="https://substack.com/privacy"> Substack&#8217;s Privacy Policy</a> covers Substack&#8217;s own use of your Substack account data. Comments are subject to the Stellar<a href="https://stellar.org/foundation/code-of-conduct"> Code of Conduct</a>, and we may remove comments that are off-topic, promotional, or misleading.</p>]]></content:encoded></item><item><title><![CDATA[The Fifth Raven: Building a Reliable Stellar Context Engine]]></title><description><![CDATA[Five rebuilds in four weeks, and why the best version removed the AI entirely]]></description><link>https://frontier-blog.stellar.buzz/p/the-fifth-raven-building-a-reliable</link><guid isPermaLink="false">https://frontier-blog.stellar.buzz/p/the-fifth-raven-building-a-reliable</guid><dc:creator><![CDATA[Bri Wylde]]></dc:creator><pubDate>Mon, 12 Oct 2026 19:14:25 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!I63J!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!I63J!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!I63J!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 424w, https://substackcdn.com/image/fetch/$s_!I63J!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 848w, https://substackcdn.com/image/fetch/$s_!I63J!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 1272w, https://substackcdn.com/image/fetch/$s_!I63J!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!I63J!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png" width="1456" height="618" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:618,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1409573,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/217269546?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!I63J!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 424w, https://substackcdn.com/image/fetch/$s_!I63J!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 848w, https://substackcdn.com/image/fetch/$s_!I63J!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 1272w, https://substackcdn.com/image/fetch/$s_!I63J!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c68fce8-4b0c-4f67-9aa2-25eccecf8888_1584x672.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p><strong>TL;DR &#128038;&#8205;&#11035;</strong></p><ul><li><p>Stellar Raven was rebuilt five times in under four weeks.</p></li><li><p>The first four versions used an internal AI agent, but it couldn&#8217;t reliably recognize when its answers were incomplete or outdated. More reasoning only made it slower and more expensive.</p></li><li><p>Version five removed Raven&#8217;s internal agent and turned it into a context engine that helps Claude, Codex, Cursor, and other agents retrieve and cross-reference current Stellar information.</p></li><li><p>Nearly 500 golden Q&amp;As test whether Raven surfaces the right evidence and reveal gaps in the underlying sources.</p></li><li><p>The central lesson: better AI starts with better context and evaluation, not necessarily more AI.</p></li></ul></blockquote><p>This is the story of how Tyler van der Hoeven built <a href="https://raven.stellar.org/">Stellar Raven</a> five times in under four weeks, and what the rebuilds can teach us all about context, reliability, and why adding more AI isn&#8217;t always the answer.</p><p>Before we get into it, let&#8217;s talk about ravens. <a href="https://urbannature.blog/2020/12/18/raven-anecdote/">I read a story</a> once about a group on a winter snowshoe trip who stopped to eat lunch. One man who had been robbed by a raven on his last trip up the mountain declared &#8220;never again,&#8221; and pushed the remaining half of his sandwich deep into his backpack. A nearby raven simply waited. The moment the group was distracted, it darted in, plunged into the backpack, and flew off with the sandwich. It had identified the target, remembered where it was stored, and retrieved exactly what it wanted.</p><p>Stellar Raven was built to do something similar with information: identify relevant data, know where to find it, and retrieve it. As it turns out, finding the current truth across a fast-moving ecosystem is much harder than stealing half a sandwich.</p><p>The first four iterations of Raven were AI agents that answered questions about Stellar, each one choosing sources, gathering evidence, and synthesizing an answer. However, none were able to reliably tell when that answer was outdated or incomplete. And adding more internal reasoning only made Raven slower, more expensive, and, in Tyler&#8217;s words, &#8220;a sad, self-deprecating, doubtful machine.&#8221;</p><p>By the fifth version of Raven, the question was no longer how to make the agent smarter, but whether the agent was necessary at all.</p><h2>Where it all began</h2><p>The problem Raven would eventually tackle appeared well before Raven itself.</p><p>Building on Stellar traditionally required an intense manual research process: talking to subject-matter experts, reading documentation, inspecting repositories and examples, learning the underlying concepts, and eventually turning that knowledge into an SDK, game, prototype, or other project.</p><p>That process became especially difficult when the subject was complex, and the available information was fragmented. Passkeys were one example. Building passkey and smart-wallet tooling on Stellar required understanding WebAuthn, authentication flows, smart wallets, and how those concepts fit together. That research eventually led to Tyler&#8217;s <a href="https://github.com/kalepail/passkey-kit">Passkey Kit</a>, which was later handed over to OpenZeppelin for continued development, but getting there required an enormous amount of manual discovery.</p><p>As AI became more capable, autonomous research tools such as Perplexity and Parallel offered another approach: rather than finding and reading every source manually, an agent could investigate the landscape, find important information, and organize what it found. But when questions turned Stellar-specific, these research tools sometimes referenced older implementations or missed newer ecosystem projects.</p><p>That limitation became the idea at the heart of Raven: before an AI agent can build something useful, it needs access to the right information. The quality of the build begins with the quality of the context.</p><h2>The internet never forgets</h2><p>Stellar has more than a decade of documentation, tutorials, repositories, blog posts, forum discussions, and working examples explaining how to build on the network. The network has also evolved significantly, especially with the introduction and continued development of smart contracts.</p><p>The recommended way to build something today may look very different from the recommended approach two years ago. Unfortunately, old tutorials do not remove themselves from search results when a better method becomes available. In addition, older guidance has usually accumulated more links, examples, and search authority, allowing it to overshadow a newer approach even when the newer one is officially preferred.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!R4iM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!R4iM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 424w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 848w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 1272w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!R4iM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png" width="1448" height="1086" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1086,&quot;width&quot;:1448,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:904797,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/217269546?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!R4iM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 424w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 848w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 1272w, https://substackcdn.com/image/fetch/$s_!R4iM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb22a4257-e387-4f96-8e7f-06ae394715ba_1448x1086.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Contract constructors are a good example. Before Stellar introduced constructor support, initializing a contract required a factory contract, a referenced Wasm file, and a separate initialization function. At the time, this was a valid, widely taught pattern. Constructors collapsed all of that into deployment. But an AI model searching the internet will still find far more examples of the old approach, cite credible sources, and generate functioning code for an architecture the ecosystem has moved beyond. The answer wouldn&#8217;t be false. It would be worse: technically valid, convincingly supported, and no longer relevant.</p><p>Raven therefore needed to do more than find information. It needed to help agents distinguish current recommendations from historical ones, surface potentially conflicting guidance, and identify the sources most relevant to what a developer was actually trying to build.</p><h2>Four troublesome Ravens</h2><p>Identifying the context problem was the first part of the journey; the next was figuring out what Raven should look like as a product.</p><p>Ideally, building on Stellar shouldn&#8217;t require developers to install dozens of tools, learn a collection of new interfaces, or abandon the AI coding environment they already use. Raven needed to be lightweight, easy to install, and compatible with tools such as Claude, Codex, and Cursor. One MCP connection that gave users access to the ecosystem&#8217;s most useful sources.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BC9B!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BC9B!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 424w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 848w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 1272w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!BC9B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1616378,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/217269546?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!BC9B!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 424w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 848w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 1272w, https://substackcdn.com/image/fetch/$s_!BC9B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85a91ad6-95aa-4f0a-98b1-723cfc5fa4b6_1376x768.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Two ecosystem projects helped make this possible: <a href="https://lumenloop.com/">LumenLoop</a> and <a href="https://stellarlight.xyz/">Stellar Light</a>. LumenLoop collects current Stellar news, events, research, and ecosystem activity. Stellar Light catalogs projects, builders, repositories, Stellar Community Fund (SCF) information, and signals about project quality and relevance. Raven combines these with the Stellar developer documentation, Stellar Skills, and OpenZeppelin playbooks. Together, these resources give Raven roughly 80 internal operations. It can inspect repositories, explore SCF projects, retrieve specific documentation, find regional information, surface news and events, and more.</p><p>The first four iterations of Raven placed an AI agent between a user&#8217;s question and the answer. The agent received the user&#8217;s query, descriptions of Raven&#8217;s capabilities, and instructions for using its tools, then assembled what it believed was a complete answer. Most often, Raven returned true information; it just wasn&#8217;t the whole truth.</p><p>For example, you could ask which swapping protocols existed on Stellar, and Raven might answer confidently: the SDEX! That <em>is</em> a valid option, but presenting it as the only answer omitted other protocols, newer choices, and the context needed to select the right tool for a particular use case. Where the constructor problem was stale information presented as current guidance, this was different: partial information mistaken for complete information.</p><p>A knowledgeable human could spot the gap, but Raven had no reliable way to recognize the evidence it had failed to find, and additional self-review only made it more hesitant. It questioned its evidence, searched more sources, and reconsidered whether it knew enough. It could take around ten minutes to assemble an answer, and each added reasoning step increased cost without necessarily improving quality. By the end of version four, it was obvious that more reasoning did not improve answer quality and something more fundamental needed to change.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pEKb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pEKb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 424w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 848w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 1272w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!pEKb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2183907,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://frontierlabsdf.substack.com/i/217269546?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pEKb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 424w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 848w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 1272w, https://substackcdn.com/image/fetch/$s_!pEKb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67c9710a-1c4e-4fb0-ae3c-fe9de5399e6a_1672x941.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>Version five: say bye to the AI!</h2><p>This thought opened the door for a new consideration. Why pay for an internal AI agent when developers already had Claude, Codex, Cursor, or another capable agent? A user&#8217;s agent understood the project, wrote its code, and decided when it had enough information to proceed. A second model inside Raven only duplicated that reasoning while adding cost, latency, and more opportunities for failure.</p><p>So, it was removed, and Raven stopped trying to answer Stellar questions. Instead, Raven&#8217;s job was to give developers&#8217; existing agents access to Stellar context and a safe way to retrieve and combine it. All final reasoning stayed with the calling agent.</p><p>This also changed how agents used Raven&#8217;s operations. Calling them individually required repeated tool selections and conversational round trips. <a href="https://developers.cloudflare.com/agents/tools/codemode/">Cloudflare Code Mode</a> offered a more efficient pattern &#8211; let the agent write code instead &#8211; so Raven exposes just two primary capabilities: search and execute.</p><p><code>search</code> acts as Raven&#8217;s catalog. The agent describes what it needs, and Raven deterministically ranks the available operations, returning a small set of relevant options with typed instructions for using them. This avoids dumping Raven&#8217;s entire API into the model&#8217;s context at once.</p><p><code>execute</code> lets the agent write retrieval code that calls those operations: searching several sources in parallel, filtering results, and cross-referencing evidence. The code can even discover and call another operation while it runs, avoiding additional round trips.</p><p>Because <code>execute</code> runs model-generated code, each request operates inside a fresh, networkless sandbox. External calls pass through Raven&#8217;s host-side adapters, which hold the credentials, so agent-written code never sees a URL, header, or key. This gives the agent flexibility to orchestrate research without unrestricted access to Raven&#8217;s underlying services.</p><p>The result is faster, richer research that can adapt as new information emerges. Most importantly, Raven no longer has to decide whether an answer is complete. It surfaces the evidence and lets the agent that already understands the user, conversation, and project make that determination.</p><h2>Golden Q&amp;As: Raven&#8217;s answer key</h2><p>Removing the internal agent solved one problem but raised another: how could the team verify that Raven was giving the calling agent the right context?</p><p>The answer was an evaluation system built on nearly 500 Stellar-related questions covering a wide variety of subjects across the ecosystem. Each question was categorized, scored, and paired with a deeply researched &#8220;golden&#8221; answer.</p><p>These golden answers were not text for Raven to reproduce word for word. Instead, each identified the facts a strong answer should include, outdated recommendations it should avoid, sources that increased confidence, and conclusions that signaled an incomplete response.</p><p>Some answers took around an hour to research properly, which was impractical for a live request, but they established a standard against which faster responses could be measured. The same questions were then run through Raven using different calling models. When an answer fell short, Raven&#8217;s chosen sources and operations were inspected, and catalog rankings, descriptions, schemas, or search terms were improved before the question was tested again, creating a measurable tuning loop.</p><p>The evaluations also revealed when the problem was not Raven at all. Sometimes Raven surfaced exactly the right source, only for that source to be outdated, incomplete, or in conflict with other guidance. In those cases, the team files an issue with the source owner so the underlying information can be corrected.</p><p>That feedback loop is nearly as valuable as the context engine itself. A weak answer can expose a documentation gap or an outdated example, and fixing it improves the foundation not just for Raven, but for every developer, search engine, and AI agent relying on the same information.</p><h2>Context before intelligence</h2><p>Raven ultimately became two connected systems: a context engine that helps agents find current Stellar information, and an evaluation system that reveals where that information falls short.</p><p>That combination matters more as agents make more decisions and write more code. The information guiding those decisions must be trustworthy.</p><p>The lesson is not to add more reasoning whenever an AI system struggles. Sometimes the better approach is to simplify the system, strengthen the context around it, and evaluate the result against researched truth.</p><p>Learn how to download Raven on the <a href="https://raven.stellar.org">website</a>.</p><p>Ask questions or provide feedback in the <a href="https://discord.com/channels/897514728459468821/1524143416588501152">#raven</a> channel in the Stellar Developer Discord or open an issue in the GitHub repo.</p><h2>Disclaimer</h2><p>Frontier Lab is published by the Stellar Development Foundation. Posts are for educational purposes only and are not financial, legal, or investment advice. The SDF<a href="https://stellar.org/privacy-policy"> Privacy Policy</a> applies to this publication&#8217;s subscriber list and comments.<a href="https://substack.com/privacy"> Substack&#8217;s Privacy Policy</a> covers Substack&#8217;s own use of your Substack account data. Comments are subject to the Stellar<a href="https://stellar.org/foundation/code-of-conduct"> Code of Conduct</a>, and we may remove comments that are off-topic, promotional, or misleading.</p>]]></content:encoded></item></channel></rss>