<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kaushik KC on Medium]]></title>
        <description><![CDATA[Stories by Kaushik KC on Medium]]></description>
        <link>https://medium.com/@kccreations1704?source=rss-c954e1a33b4d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BRIHv8U3AkN9Mdq1</url>
            <title>Stories by Kaushik KC on Medium</title>
            <link>https://medium.com/@kccreations1704?source=rss-c954e1a33b4d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:22:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kccreations1704/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I built a transformer from scratch, and here’s what actually clicked]]></title>
            <link>https://medium.com/@kccreations1704/i-built-a-transformer-from-scratch-and-heres-what-actually-clicked-e2bc697d11b5?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2bc697d11b5</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[decoder]]></category>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 11:41:27 GMT</pubDate>
            <atom:updated>2026-06-17T11:41:27.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jgJusDiN0bFU-lfROZ_0w.png" /><figcaption>Figure 1: Thumbnail</figcaption></figure><p>So I had this nagging feeling for a while. I’d used transformers plenty call a model, fine-tune it, get a result but if you’d asked me to explain what was <em>really</em> happening inside the attention block, I’d have hand-waved through it. I knew the words. I didn’t know the thing.</p><p>So I decided to just build one. The whole thing, by hand, in pure PyTorch. No nn.Transformer, no trl, no peft, none of the libraries that do the interesting part for you. Every piece attention, the positional encoding, the normalization, the MLP, the training loop, the sampler I wrote myself. The point wasn&#39;t to beat anyone&#39;s benchmark. The point was to not be able to hide from the details.</p><p>This is the story of Stage 1: a decoder-only transformer, trained from scratch on a tiny-stories dataset, that actually learns to write little coherent stories. I’ll walk through what I built, what surprised me, and the handful of ideas that finally clicked once I had to implement them instead of just read about them.</p><p>The whole thing runs on my laptop. Apple M3, 16GB of memory, zero dollars of cloud spend. That part still feels slightly absurd to me.</p><h3>What I actually built</h3><p>It’s a decoder-only transformer the same family as GPT but built with the components that most current small open models have settled on, rather than the original 2019 GPT-2 recipe. Three swaps in particular:</p><ul><li><strong>RoPE</strong> for positional information, instead of a learned position table.</li><li><strong>RMSNorm</strong> instead of LayerNorm.</li><li>A <strong>SwiGLU</strong> MLP instead of a plain GELU one.</li></ul><p>Every block is pre-norm with residual connections, and the token embedding is tied to the output head same weights at the input and the output. The shape of the data flowing through is just: token IDs go in, get embedded, run through a stack of identical transformer blocks, get normalized one last time, and come out as logits over the vocabulary.</p><p>I trained two sizes. A tiny one (~1.9M parameters) purely as a smoke test to confirm the pipeline works end to end, and the real one (~14M parameters) for the actual result. Small by any modern standard. Big enough to learn to write.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lhvdckbHpbLyeN3fmIMtdQ.png" /><figcaption>Figure 2: Architecture</figcaption></figure><h3>The part I was most afraid of: attention</h3><p>Attention was the thing I most wanted to stop hand-waving about, so let me tell you the three things that genuinely changed how I think about it once I’d written it myself.</p><p><strong>First: “multi-head” is mostly a reshape.</strong> I always pictured each attention head as its own little separate module with its own weights. It isn’t. There’s one big linear projection that produces queries, keys, and values all at once. The “heads” only appear when you take that output and view it into a different shape splitting the feature dimension into (number of heads, dimension per head). It&#39;s the same matrix, sliced. That sounds like a small thing, but it quietly demystified the whole mechanism for me. The heads aren&#39;t separate experts you built; they&#39;re a view onto one shared projection.</p><p><strong>Second: causality is one flag, not a scary mask.</strong> A decoder-only model isn’t allowed to peek at future tokens when predicting the current one. I assumed I’d have to build an upper-triangular matrix full of negative infinities and carefully add it to the attention scores. Turns out PyTorch’s fused attention function takes a single is_causal=True flag and handles all of that internally, faster than a hand-rolled mask would. The lesson wasn&#39;t &quot;use the flag&quot; it was understanding <em>what</em> the flag is standing in for.</p><p><strong>Third and this is my favorite you can actually test that the model isn’t cheating.</strong> Here’s the trick. Feed the model a sequence. Note the outputs at the early positions. Now go change the tokens at the <em>later</em> positions and run it again. If the model is genuinely causal, the outputs at the early positions must be <em>bitwise identical</em> because those early positions are not allowed to know anything about the future tokens you just changed. If there were a bug a missing mask, an off-by-one in the position math this test would fail instantly. I wrote that test, watched it pass, and finally believed my own code. That’s a different kind of confidence than “the loss went down.”</p><p>One more detail that took me a second to get: the positional rotation gets applied to the queries and keys, but never the values. The intuition is that position should affect <em>how much two tokens attend to each other</em> that’s a query-key thing but the actual content being mixed together shouldn’t get rotated, or you’d have to un-rotate it later. Once that clicked it felt obvious. Most things do, afterward.</p><h3>RoPE, explained the way I wish someone had explained it to me</h3><p>This is the idea I’d most want a friend to walk away understanding, so let me slow down.</p><p>The old way of telling a model where a word sits in a sentence was to keep a big lookup table one learned vector per position and add it to the word’s embedding at the very start. Position 1 gets vector 1, position 2 gets vector 2, and so on. It works, but it has a ceiling baked in: the table is only as long as you made it, and the model learns positions as absolute facts.</p><p>RoPE does something cleverer. Instead of <em>adding</em> a position vector once at the input, it <strong>rotates</strong> each query and key vector by an angle that depends on its position, and it does this fresh inside every attention layer.</p><p>Here’s why that’s beautiful, and it took implementing it for me to feel it. When you compare a query at position <em>m</em> with a key at position <em>n</em>, the similarity score ends up depending only on the <em>difference</em> between them on <em>m minus n</em> not on where they sit in absolute terms. So the model naturally learns relationships like “the word three tokens back” rather than “the word at slot 47.” Distance, not address.</p><p>That’s the whole magic. Attention should care about how far apart two tokens are, not their absolute coordinates. And I didn’t just take that on faith I wrote a test that rotates two vectors by the same positional offset and checks that their dot product doesn’t change. It holds. There’s something deeply satisfying about a property you read in a paper turning out to be literally true in your own tensor.</p><p>A nice bonus: because the rotation is a rotation, it doesn’t change the length of the vectors. That means it doesn’t quietly mess with the scaling math elsewhere in attention. It’s a pure phase shift, nothing more.</p><h3>The two smaller upgrades</h3><p><strong>RMSNorm</strong> is LayerNorm with a step removed. LayerNorm centers the data (subtracts the mean) and then scales it. RMSNorm skips the centering entirely and just divides by the root-mean-square. It turns out you lose almost nothing by dropping the mean step, and you get something a little cheaper and simpler. I verified the output has the RMS it should and that scaling the input doesn’t change the normalized result. Small thing, but it’s the kind of simplification that’s everywhere in modern models once you start looking.</p><p><strong>SwiGLU</strong> is the one that surprised me, because it’s not just “a bigger MLP.” It’s a <em>gate</em>. There are two parallel branches, and one branch acts as a learned, per-element switch on the other. The cleanest way to see this: feed in all zeros. Because of how the gating activation works, a zero input forces the entire output to zero, no matter what the other branch’s weights are. A plain MLP wouldn’t behave like that. That little test is the whole intuition in one line this layer can learn to <em>shut parts of itself off</em>, and that gating is where a lot of its expressiveness comes from.</p><h3>Does it actually work? Yeah, kind of charmingly</h3><p>I trained the real model for 8,000 steps about 131 million tokens over roughly 7 hours on the M3. The loss dropped steadily and, importantly, the training and validation loss tracked each other the whole way. No overfitting. At this data budget the model is still hungry, not bored.</p><p>But loss numbers are abstract. Here’s what it actually produces. At a calm temperature, prompted with “Once upon a time”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*L76PBSmHtJucZSKj8dstYQ.png" /><figcaption>Figure 3: Small Loss</figcaption></figure><blockquote><em>Once upon a time, there was a little girl named Lily. She loved to play outside in the sunshine. One day, she went to the park with her mom and saw a man selling ice cream. She wanted to buy some ice cream, but her mom said they didn’t have enough money. Lily was sad. But then a nice ice cream man gave Lily a cone. Lily was happy and ate her ice cream.</em></blockquote><p>Look at that. It’s not Shakespeare, but there’s a <em>plot</em>. A problem ice cream costs money and a resolution. The dialogue is punctuated correctly. Names stay consistent. This came out of a 14-million-parameter model I trained on my laptop for an afternoon, with code I wrote line by line.</p><p>Crank the temperature up and it gets loopier, it’ll start a story about Tom and accidentally introduce Lily halfway through, or slip a verb tense. Which, honestly, is exactly the failure mode the TinyStories researchers described for small models. So even the model’s <em>mistakes</em> are the expected mistakes. That made me weirdly happy.</p><h3>What I’m actually taking away from this</h3><p>The headline result a tiny model writing tiny stories isn’t the point. Plenty of people can run that. The point is that I can no longer hand-wave through any part of it. I know that multi-head attention is one projection and a reshape. I know that causality is a property I can test for bitwise, not just hope for. I know <em>why</em> RoPE generalizes because it encodes distance, not position and I have a passing test that proves the property holds in my own code. I know SwiGLU is a gate because I watched a zero input zero out the whole layer.</p><p>That last bit is the thread running through the whole project: I tried to back every claim with a numerical test rather than a confident sentence. There are 38 of them and they run in about a second. When the causality test passed, I trusted my attention. When the relative-position test passed, I trusted my RoPE. That’s a much sturdier feeling than watching a loss curve go down and assuming the rest is fine.</p><p>This is Stage 1 of a bigger project that walks through the full lifecycle of a language model pretraining from scratch (this part), then supervised fine-tuning, then parameter-efficient fine-tuning with LoRA and QLoRA, and eventually preference optimization. Stages 2 and 3 are already built, and they get into the genuinely messy, honest parts including the bit where fine-tuning on a tiny dataset actually <em>hurt</em> one of my metrics, and what that taught me. I’ll write those up next.</p><p>Here is the code: <a href="https://github.com/KaushikKC/nano-llm-lab">https://github.com/KaushikKC/nano-llm-lab</a> . And if there’s one piece you’d want me to go even deeper on, tell me. That’s probably my next post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2bc697d11b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a Benchmark Number Is Just a Claim: Making AI Evaluations Cryptographically Verifiable]]></title>
            <link>https://medium.com/@kccreations1704/when-a-benchmark-number-is-just-a-claim-making-ai-evaluations-cryptographically-verifiable-b512503cff51?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b512503cff51</guid>
            <category><![CDATA[google-deepmind]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[ai-evaluation]]></category>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 06:31:00 GMT</pubDate>
            <atom:updated>2026-06-12T18:16:23.077Z</atom:updated>
            <content:encoded><![CDATA[<h4>How I built an eval runner where the result is a signed, reproducible, Merkle-anchored artifact and why “trust me, we scored 92%” should no longer be good enough.</h4><h3>The number you can’t check</h3><p>Every few weeks a new model arrives with a leaderboard that says it is the best. A table of benchmarks, a column of percentages, a footnote about the eval harness. And almost always, if you try to reproduce one of those numbers yourself, you can’t not because anyone lied, but because the number was never an artifact you could inspect. It was a claim backed by a PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bR_l5_GPaMBAExAyRQK1hw.png" /></figure><p>This is not a fringe complaint. It is one of the more honest admissions coming out of the major labs right now: that AI evaluations are frequently not transparent, not accessible, and not verifiable. The same benchmark, run by two different parties, produces two different numbers because the setup differed in ways nobody wrote down the decoding temperature, the exact prompt template, the model snapshot, the scoring rule for a borderline answer. Different labs publish different scores for the <em>same</em> model on the <em>same</em> benchmark, and there is no mechanism to adjudicate between them. A leaderboard entry, in practice, is a self-reported claim with no way for a third party to confirm it.</p><p>I think this is fixable, and not with more dashboards or a centralized authority that everyone has to trust. I think the result of an evaluation should be an <strong>auditable artifact</strong> rather than a claim a self-contained object that carries its own evidence. So I built verievals, a benchmark runner where the <em>output of a run is the proof</em>.</p><p>This post is the long version of why and how.</p><h3>The core idea: the evidence is the artifact</h3><p>When verievals runs a benchmark against a model, it does not just print a score. It emits a single record that contains everything needed to understand and reproduce the result:</p><ul><li>the model identity provider, name, resolved version and <strong>every decoding parameter</strong>;</li><li>the benchmark identity, plus a content hash of its exact tasks and scorer;</li><li>the random seed and sampling configuration;</li><li><strong>every prompt, every raw output, and every per-task score</strong>, verbatim;</li><li>the aggregate metrics.</li></ul><p>That record is then canonicalized, content-addressed by its SHA-256 hash, signed with an Ed25519 key, and its hash is appended to an append-only Merkle ledger. The ledger has a single 32-byte root that commits to every result it contains, and a compact inclusion proof lets anyone confirm a specific record sits under a published root.</p><p>Crucially, no blockchain is required. The root is 32 bytes. You can publish it in a README, a git tag, or a tweet. (If you later want external timestamping, an optional L2 anchor can be layered on but that is a convenience, not a dependency.)</p><p>The payoff is that a verifier, holding only the public artifacts, can do four independent things:</p><ol><li>confirm the record has not been altered the content hash matches the body;</li><li>confirm who signed it the Ed25519 signature checks out;</li><li>confirm it is committed under the published root the Merkle inclusion proof holds; and</li><li>for a deterministic model, <strong>re-run the eval and confirm the outputs and scores reproduce bit-for-bit.</strong></li></ol><pre>prompts + config + seed ──▶ model ──▶ outputs ──▶ scorer ──▶ scores<br>        │                                                       │<br>        └──────────────── canonical RunRecord (body) ───────────┘<br>                                  │<br>                       sha256 (content address = record id)<br>                                  │<br>                 Ed25519 signature   +   Merkle leaf<br>                                  │<br>                          published root ◀── inclusion proof ──▶ anyone verifies</pre><h3>The record, and why it splits into three parts</h3><p>The whole design rests on one schema decision: a run record splits cleanly into a <strong>body</strong>, an <strong>envelope</strong>, and a <strong>signature</strong>.</p><p>The body is everything deterministic and reproducible the benchmark spec with its content hash, the model spec and parameters, the runner config (seed, sample limit), the per-task results, and the aggregate metrics. The body is what gets hashed.</p><p>The envelope is non-deterministic metadata the wall-clock creation time, an optional human-readable signer label. It is deliberately <em>not</em> hashed.</p><p>The signature is an Ed25519 signature over the body’s content hash, alongside the signer’s public key.</p><p>This split is the quiet engineering insight that makes everything else work. A record needs to be <em>both signable and reproducible</em>, and those two goals fight each other: if you hash the timestamp, then re-running the eval tomorrow produces a different hash and reproduction is impossible; if you don’t sign anything stable, attribution is meaningless. By putting only the deterministic payload inside the hash, re-running the body yields the same content hash regardless of <em>when</em> or <em>by whom</em> it ran while the timestamp and signature live safely outside. The body’s canonical SHA-256 then serves double duty as both the record id and the Merkle leaf. The filename on disk, &lt;record-id&gt;.json, is itself a verifiable claim about the contents.</p><h3>The cryptography, kept boring on purpose</h3><p>There is a temptation in a project like this to invent something clever. I deliberately didn’t. Every primitive is a well-reviewed standard, chosen so that a skeptical reader can map each line to a specification.</p><p><strong>Canonical JSON.</strong> Two parties must serialize “the same” logical record to identical bytes, or hashing is pointless. I implemented a pragmatic subset of RFC 8785: keys sorted, no insignificant whitespace, UTF-8, and NaN/Infinity rejected outright. The byte serialization of a value becomes a pure function of that value.</p><p><strong>Content addressing.</strong> content_hash(x) = sha256(canonical_json(x)), lowercase hex. A stable identifier for any logical object.</p><p><strong>The Merkle tree.</strong> This is the part people get wrong most often, so I used the RFC 6962 (Certificate Transparency) construction: domain-separated hashing for leaves (0x00) versus internal nodes (0x01), and the split-at-largest-power-of-two tree shape. That domain separation is not decorationit is what closes the second-preimage attack that naive &quot;just duplicate the last leaf&quot; Merkle trees are vulnerable to. Inclusion proofs use the RFC 6962 audit-path algorithm, and I verified the implementation with property tests across tree sizes 1 through 24 plus hand-computed known-answer vectors.</p><p><strong>Signatures.</strong> Ed25519 via the cryptography library deterministic signatures, 32-byte public keys. Private keys are git-ignored and written with 0600 permissions.</p><p>None of this is novel cryptography. That is the point. The novelty is in <em>what gets hashed and signed</em>, not in the primitives.</p><h3>The verification protocol: four checks, increasing strength</h3><p>A verifier runs as many checks as it has inputs for, and the result is “verified” only if every check it <em>performed</em> passed.</p><p>#CheckProvesInputs needed1Integritythe body has not been alteredthe record alone2Signaturethe result is attributable to a keythe record alone3Inclusionthe record is committed under a published rootthe ledger + root4Reproductionthe outputs/scores follow from the inputsthe benchmark + a deterministic model</p><p>Running the verifier looks like this, and it returns a CI-gateable exit code:</p><pre>$ verievals verify &lt;record&gt;.json --ledger ./ledger --benchmark benchmarks/arithmetic --model echo<br>Record:       56c7984e…<br>Integrity:    ok<br>Signature:    ok<br>Inclusion:    ok<br>Reproduction: ok<br>Overall:      VERIFIED</pre><p>The escalating structure matters. Integrity and signature need nothing but the record itself. Inclusion needs the published ledger. Reproduction the strongest claim, that the numbers actually follow from the inputs needs the benchmark and a deterministic model. You get to make exactly the claim your evidence supports, and no more.</p><h3>Trust Score: ranking by how much you should believe the number</h3><p>A plain leaderboard ranks by accuracy. But accuracy alone answers the wrong question. The question this project exists for is: <em>how much should you believe this number?</em> So the trust-scored leaderboard assigns every entry the strongest verification tier that holds for it.</p><p>TierScoreEarned whenreproduced1.00re-running the eval reproduced the exact signed body hashverified0.80valid signature <strong>and</strong> committed under the ledger rootsigned0.50valid signature, but not in the ledgerself_reported0.20no valid signature a bare claim</p><p>Entries sort by tier first, then accuracy. This is deliberate: a <em>verified</em> result with lower accuracy outranks a <em>self-reported</em> result with a higher claimed number. The gap between a cryptographically-backed result and a marketing number becomes explicit and rankable which is exactly the dynamic that today’s leaderboards erase.</p><h3>The honest problem: most real models aren’t bit-reproducible</h3><p>Here is where most “verifiable AI” pitches quietly fall apart, so I want to be direct about it. Deterministic toy models reproduce bit-for-bit and earn the top tier trivially. But the models anyone actually cares about hosted APIs, local GPU inference are <em>not</em> bit-reproducible across hardware and driver versions. Floating-point non-determinism, kernel differences, and silent backend changes mean you cannot promise that gemma3:1b on my Mac produces the identical token stream as on your machine.</p><p>Pretending otherwise would be dishonest, so the adapters report deterministic = False for those models, and the record still pins exactly what was <em>requested</em>. But there is a genuinely useful pattern that recovers reproducibility: <strong>capture a run&#39;s prompt→output pairs into a fixture.</strong> A FixtureModel replays those exact pairs, which makes that specific run replayable and verifiable offline by anyone no API key, no server, no model download.</p><p>This capture-to-fixture move is what turns “we ran gemma3:1b and got 0.917” from an unfalsifiable sentence into a claim a CI job can re-check.</p><h3>The MVP that proves it end to end</h3><p>To show the whole pipeline on a real (if small) model, I evaluated gemma3:1b about 815 MB, runs in seconds on Apple Silicon on a GSM8K-style grade-school math sample, entirely on my own machine. It scored 11 out of 12 (0.917). The single miss is a real reasoning error by a 1-billion-parameter model, not a harness bug.</p><p>The exact outputs were captured into a fixture, and a CI test replays them offline to the same 11/12. So a result produced by a local model on my laptop is now reproducible by a stranger with no server and no download which is the entire thesis of the project, demonstrated on something you can run yourself in under a minute:</p><p>bash</p><pre>ollama pull gemma3:1b<br>verievals run --benchmark benchmarks/gsm8k --model ollama:gemma3:1b \<br>    --key ./keys/runner.key --out ./records --signer me<br>python examples/run_gsm8k.py          # offline replay of the captured run</pre><h3>What it defends against and what it deliberately doesn’t</h3><p>A trust system that overclaims is worse than none, so the threat model is explicit.</p><p>It defends against result tampering (any edit changes the content hash and breaks the signature), benchmark swapping (the tasks are content-hashed; reproduction requires the matching benchmark), cherry-picked configs (decoding params, seed, sampler, and scorer all live in the hashed body), ledger back-dating (a record not under the published root fails inclusion), and forged authorship (only the key holder can sign).</p><p>It explicitly does <em>not</em> solve key-to-identity binding it proves <em>a key</em> signed a record, not <em>who</em> owns that key; trusted public keys are distributed out of band. It does not give hosted or GPU models bit-reproducibility use a fixture. It says nothing about whether a benchmark is any <em>good </em>verifiability is not validity. And it does not handle private-key custody or ledger consensus. Naming these non-goals is, to me, part of the engineering: a verification system is only as trustworthy as its willingness to say what it can’t prove.</p><h3>Why I built it this way</h3><p>The architecture is a set of small, single-responsibility modules with a strictly downward dependency flow and no cycles: crypto depends on nothing internal, then records, then the runner, then the ledger, with the leaderboard, cli, and sdk on top. The trust primitives canonical JSON, content hashing, the Merkle tree, signing sit at the bottom and depend on nothing, which is why they could be exhaustively tested in isolation. The whole thing is 202 tests at 97% coverage, mypy-strict, ruff-clean, across a Python 3.10–3.12 matrix.</p><p>For teams that already have an eval loop and don’t want to hand control to a new runner, there’s a logging SDK an EvalRecorder context manager and a @logged_eval decorator that emits a signed record byte-identical in structure to what the runner would produce, enforced by a test. If the loop raises, the record is never finalized, so a crashed run can&#39;t leave behind a misleading signed artifact.</p><h3>Where this goes</h3><p>The immediate next steps are wiring the official full GSM8K split behind the existing loader, adding a HuggingFace adapter for offline weights, and publishing a hosted, continuously-updated Trust Score board from a public ledger. Further out: optional L2 anchoring of the Merkle root for external timestamping, and witness co-signing for multi-party attestation of records.</p><p>But the core argument is already standing: a benchmark result does not have to be a claim you take on faith. It can be an artifact that carries its own proof. Once you’ve seen an eval result that verifies itself, the PDF-with-a-percentage starts to look like what it always was.</p><p><em>The code is open source (Apache 2.0) at </em><a href="https://github.com/KaushikKC/verievals">github.com/KaushikKC/verievals</a> and also <strong>Watch the demo: </strong><a href="https://youtu.be/RoJX8_gD_iI">youtu.be/RoJX8_gD_iI</a> <em>. I’d genuinely welcome scrutiny of the cryptographic design and the threat model if you can find a way to forge a </em><em>reproduced tier, I want to hear it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b512503cff51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When Your Voice Agent Fails at 2 a.m.?]]></title>
            <link>https://medium.com/@kccreations1704/what-happens-when-your-voice-agent-fails-at-2-a-m-e6ff504e94f3?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6ff504e94f3</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-voice-agent]]></category>
            <category><![CDATA[eleven-labs]]></category>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 19:08:27 GMT</pubDate>
            <atom:updated>2026-06-13T17:46:17.866Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building production observability, evaluation, and live human takeover for ElevenLabs voice agents and reconstructing the end-to-end latency that no single vendor can see.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnx9nsiMclN_HuaM8MnyKw.png" /></figure><h3>The gap between a demo and a deployment</h3><p>ElevenLabs markets its Agents platform on three words: <em>testing, monitoring, reliability</em>. They’re the right three words. But the moment a team actually ships a voice agent into production, a gap opens up between a demo that <em>sounds</em> impressive and a system that is <em>operationally reliable</em> and that gap is where this project lives.</p><p>The questions that matter in production are not “does it talk?” They are sharper and less flattering:</p><ul><li><strong>Is it fast?</strong> What is the p95 time-to-first-byte from the LLM? Which turns were slow, and the part that actually matters <em>which vendor</em> caused the delay?</li><li><strong>Is it natural?</strong> How often does the user interrupt the agent? Who dominates the conversation?</li><li><strong>Did it work?</strong> Did the call achieve its goal? Was the required information actually collected?</li><li><strong>How did the user feel?</strong> What was the sentiment trajectory across the call, not just at the end?</li><li><strong>What did it cost?</strong> Broken down the way it’s billed call minutes plus LLM tokens plus TTS plus ASR.</li><li><strong>Can I intervene?</strong> For a high-stakes call going wrong in real time, can a human take over from the AI?</li><li><strong>What exactly happened?</strong> Can I replay and audit any conversation, turn by turn, months later?</li></ul><p>No single vendor can answer all of these, and that is the crux of the whole problem.</p><h3>Why no single vendor can tell you the truth</h3><p>In any realistic voice deployment, the work is split across vendors. ElevenLabs handles text-to-speech. Telephony runs through something like Twilio or Vapi. The “brain” is an LLM from OpenAI or Anthropic. Speech-to-text might be Deepgram.</p><p>A single turn of conversation is therefore a relay race across all of them:</p><pre>user stops speaking<br>   → ASR finalize        (e.g. Deepgram)<br>   → LLM generation TTFB (e.g. OpenAI / Anthropic)<br>   → TTS first audio     (ElevenLabs)<br>   → transport delivery  (e.g. Twilio / Vapi)<br>→ first audio reaches the user</pre><p>ElevenLabs can see its own slice the TTS stage. It cannot see the others, which means the <em>true</em> end-to-end latency, the thing your user actually experiences as “why is there a pause,” lives nowhere. No vendor dashboard can attribute the bottleneck because no vendor has the whole picture.</p><p>So I built the missing operational layer: a system that stitches the full picture together and answers the question every voice ops team eventually asks <em>was the slow turn the LLM thinking, or ElevenLabs buffering?</em></p><h3>Three classes of problem</h3><p>ClassThe gapThe answerMulti-vendor stackElevenLabs only sees its TTS slice; true end-to-end latency lives nowherePer-turn pipeline tracing across ASR → LLM → TTS → transport, with bottleneck attributionDeep business metrics”Call ended” is not the same as “task succeeded” or “user satisfied”Task-completion judging, sentiment trajectory, semantic search over transcriptsReal-time human-in-the-loopNo way to rescue a live high-stakes callA relay that streams active calls and lets a supervisor take over, speak as the agent, and hand back</p><h3>How it plugs into ElevenLabs</h3><p>ElevenLabs exposes conversation data through three surfaces, and the system consumes all three plus a fourth channel for the data ElevenLabs structurally cannot produce.</p><p>The <strong>post-call webhook</strong> (post_call_transcription, HMAC-signed) is the authoritative source: full transcript, per-turn metrics like LLM time-to-first-byte, interruption flags, the charging breakdown, and the analysis block telling you whether the call succeeded. The <strong>real-time WebSocket events</strong> user transcripts, agent responses, interruptions, VAD scores feed the live relay. The <strong>conversation REST API</strong> backfills history for audit and replay. And the fourth channel, <strong>orchestrator traces</strong> posted to this system&#39;s own /traces endpoint, carries the per-turn stage timings from the vendors ElevenLabs can&#39;t see.</p><p>A detail I’m quietly proud of: you don’t need a paid account to run any of it. A built-in conversation simulator posts realistic payloads including multi-vendor pipeline stages so the entire dashboard is demoable offline, with zero credentials. Every external service is a strict upgrade, never a requirement.</p><h3>The one architectural principle that holds it together</h3><p>The most important decision in the whole codebase is this: <strong>there is exactly one path by which a conversation becomes metrics.</strong></p><p>Both the post-call webhook and the real-time relay terminate in a single normalizer. A live call’s accumulated turns are converted into the <em>same</em> canonical shape the webhook produces, then persisted through the same code. A conversation becomes metrics exactly one way, regardless of how it arrived. There is a single source of truth for every computed value which means I never have to wonder whether the live path and the batch path disagree, because they are, by construction, the same path.</p><p>The post-call request lifecycle is five steps: verify the HMAC signature; log the raw payload to an append-only event table (so I can reprocess after a logic change); normalize and compute all metrics idempotently on the conversation id; evaluate SLOs and raise alerts; index the transcript for semantic search as a best-effort step that never blocks ingestion.</p><h3>The headline feature: multi-vendor pipeline tracing</h3><p>This is the part that makes the project more than a prettier dashboard. The system models every stage of that relay race, not just the ElevenLabs slice.</p><p>Per turn, it computes the end-to-end latency as the sum of stage durations and identifies the bottleneck stage as the slowest one. Per call, it reports end-to-end p50 and p95, per-stage p95, and the dominant bottleneck the stage that was the culprit most often. Per fleet, it produces a bottleneck distribution: across thousands of turns, how often was each stage the thing holding everything up?</p><p>The clever bit is decoupling. Stage timings don’t arrive with the transcript in a real multi-vendor stack they come from your orchestrator on a completely different timeline. So traces arrive on their own endpoint, get matched to turns by index, and trigger a recomputation. The two data sources stay independent, which is the only way this works outside a demo.</p><p>When you can finally say “across last week’s 4,000 calls, the LLM was the bottleneck 70% of the time and ElevenLabs TTS only 8%,” you stop guessing about latency and start fixing the actual problem.</p><h3>The metrics engine, kept pure</h3><p>The latency math lives in dependency-free pure functions, which is why it’s trivially unit-testable. LLM time-to-first-byte and time-to-first-sentence are extracted from the per-turn metrics. Percentiles use linear interpolation between ranks. Interruption rate is normalized against the turns that <em>can</em> be interrupted agent turns rather than against all turns, because dividing by the wrong denominator is how dashboards lie. Talk ratio captures how much the agent dominated.</p><p>The cost model mirrors how ElevenLabs actually bills: call minutes plus LLM tokens plus TTS plus ASR. It prefers explicit charge values when present and falls back to estimation otherwise, summing token counts recursively because the billing structure nests categories. The raw credit value is retained for reconciliation.</p><h3>Sentiment and “did it actually work,” without forcing a dependency</h3><p>Judging whether a call succeeded and how the user felt is a two-tier design so it runs anywhere. Per-turn sentiment uses a fast deterministic lexicon analyzer no network, no cost with intensifier handling and length normalization, which is appropriate when you’re scoring every single utterance. Conversation-level analysis uses Claude when an API key is present, and otherwise falls back to a tail-weighted aggregate of the per-turn scores, on the principle that how the user felt at the <em>end</em> of the call is the strongest signal of how it went. ElevenLabs’ own success flag always wins when it’s present. Any model or network failure degrades gracefully to the offline path rather than breaking ingestion.</p><p>That “degrade gracefully” rule runs through the whole system Claude failures, vector-store unavailability, and disconnected dashboard monitors are all caught and downgraded, never allowed to break the core job of recording what happened.</p><h3>The part operators actually gasp at: live human takeover</h3><p>Observability tells you a call went wrong. It doesn’t <em>save</em> the call. So the relay includes a real-time human-in-the-loop control plane.</p><p>The relay sits in the event stream between the agent and the user. A supervisor watching the live monitor can hit takeover, which flips the call to human control and pushes a control message back down the producer socket so the bridge mutes the AI. The supervisor can then type messages that are delivered to the user as the agent tagged so the transcript records that a human spoke and hand control back to the AI when the situation is recovered. The ingest socket runs the producer-read loop and a control-drain loop concurrently, so commands reach the call without blocking event ingestion.</p><p>The whole takeover flow has a scripted demo: open the live monitor, click take over on an active call, type as the agent, hand back and the demo terminal prints the control signals it receives (AI MUTED, the supervisor&#39;s words, control handed back). For anyone who&#39;s watched a voice agent confidently say the wrong thing to a real customer, this is the feature that matters.</p><h3>The unglamorous things that make it production-grade</h3><p>A few details that don’t demo well but are the difference between a toy and a system:</p><p><strong>Webhook security done properly.</strong> ElevenLabs signs webhooks Stripe-style, and verification is constant-time using compare_digest to prevent timing attacks. Signatures older than a configurable window are rejected to prevent replay. The raw body is preserved byte-for-byte because parsing before verifying is a vulnerability. It returns 200 quickly on success so ElevenLabs doesn&#39;t retry.</p><p><strong>Idempotency.</strong> ElevenLabs retries transcription webhooks. Re-ingesting a call replaces its turns and clears stale alerts, so retries never double-count.</p><p><strong>Audit logging.</strong> A replay view handles transcripts full of PII, so <em>access itself</em> is an auditable event every view, replay, search, and export is recorded with actor, resource, and IP.</p><p><strong>An append-only raw event log.</strong> Every payload is stored verbatim before processing, so any metric can be recomputed later from source after a logic change. Metrics are denormalized onto the conversation row for cheap reads; the raw log preserves full fidelity. Cheap reads and full fidelity, without having to choose.</p><h3>Built to scale, on purpose</h3><p>The service boundaries are drawn so the obvious production upgrades are localized changes rather than rewrites: swap SQLite for Postgres via a connection string and compute percentiles with a native aggregate; put a queue and worker in front of webhook normalization to absorb bursts; add real auth so the audit actor is an identity rather than a header; swap the offline hashing embedder for a hosted embedding model for better semantic search; add Slack or email delivery on top of the existing alert store.</p><p>The whole thing is roughly 5,900 lines across Python and TypeScript, 51 automated tests covering HMAC verification, the metrics math, the cost model, the takeover control flow, and the pipeline analytics, with GitHub Actions running backend and frontend checks on every push, and a one-command Docker Compose bringing up the full stack.</p><h3>Why this matters beyond ElevenLabs</h3><p>The specific integration is ElevenLabs, but the thesis generalizes: as voice agents move from impressive demos to systems handling real customers across a stack of vendors, the operational layer the thing that tells you the truth about latency, quality, cost, and lets a human step in when it counts is not optional. It’s the difference between a voice agent you can put in front of customers and one you can only put in a demo.</p><p>The pause your user hears at 2 a.m. has a cause. Someone should be able to find out what it was.</p><p><em>The code is open source</em> <em>at</em> <a href="https://github.com/KaushikKC/VoxOps"><em>github.com/KaushikKC/VoxOps</em></a><em> </em>and also <strong>Watch the demo: </strong><a href="https://youtu.be/y3tB9wgPS-o">youtu.be/y3tB9wgPS-o</a>. <em>Built with FastAPI, SQLAlchemy, Chroma, and React + TypeScript. I’m happy to walk through the pipeline-tracing design or the takeover control plane in more detail those were the two hardest and most interesting parts to get right.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6ff504e94f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Innovation Doesn’t Kill Jobs, It Transforms Them.]]></title>
            <link>https://medium.com/@kccreations1704/innovation-doesnt-kill-jobs-it-transforms-them-b31196423dac?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b31196423dac</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 18:28:27 GMT</pubDate>
            <atom:updated>2026-03-06T18:28:27.021Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“Every time technology makes something easier, humans don’t become useless they move up the value chain.”</strong></blockquote><p>That thought has been sitting in my mind for a while.</p><p>Recently, everywhere I look, there is a growing conversation about artificial intelligence replacing human work. Developers worry about AI writing code. Designers worry about generative tools. Writers worry about language models.</p><p>Sometimes the conversation becomes dramatic: <em>“Developers will disappear.”</em><br>Or <em>“AI will take all white-collar jobs.”</em></p><p>But when I step back and think about it deeply, I realize something important.</p><p>This fear is not new.</p><p>Every major technological shift in human history has created the same kind of anxiety. When machines arrived during the Industrial Revolution, people feared factories would eliminate human labor. When computers entered offices in the 1980s and 1990s, people believed automation would destroy office work.</p><p>But history tells a different story.</p><p>Technology rarely eliminates human work entirely.</p><p>Instead, it <strong>changes the structure of work</strong>.</p><p>Some tasks disappear. Some industries shrink. But new roles emerge in places we couldn’t imagine before.</p><h3>The Pattern We Keep Forgetting</h3><p>Think about the early days of the internet.</p><p>In the 2000s, if you wanted to access the internet, you had to go to an internet café or browsing center. These places were everywhere. Students would go there to send emails, download files, or fill out online applications.</p><p>But when smartphones arrived and mobile internet became cheap, those browsing centers slowly disappeared.</p><p>At first glance, it looked like technology destroyed those jobs.</p><p>But something bigger happened.</p><p>The internet created entire new industries.</p><p>Content creators, social media managers, digital marketers, YouTubers, online educators, app developers none of these roles existed before the internet economy expanded.</p><p>Innovation didn’t eliminate work.</p><p>It <strong>shifted the location of opportunity</strong>.</p><h3>What the Latest Research Actually Shows</h3><p>Recently, researchers at Anthropic published a study examining how AI is actually affecting the labor market.</p><p>Instead of only predicting theoretical impacts, they analyzed <strong>real-world usage data from AI systems</strong> to see how people are actually using AI at work. (<a href="https://www.anthropic.com/research/labor-market-impacts?utm_source=chatgpt.com">Anthropic</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxiZr1YrchMFzLkdlLSI7w.jpeg" /></figure><p>One of their most interesting findings is that there is a <strong>huge gap between what AI could theoretically do and what it is actually doing today</strong>.</p><p>For example, in fields like computer programming and mathematics, AI could theoretically assist with <strong>up to 94% of tasks</strong>, but current real-world usage covers only about <strong>33% of those tasks</strong>. (<a href="https://www.anthropic.com/research/labor-market-impacts?utm_source=chatgpt.com">Anthropic</a>)</p><p>That gap tells us something important.</p><p>Technology might have the <em>capability</em> to automate tasks, but adoption, integration, regulation, and human oversight slow down how quickly those changes happen.</p><p>Another insight from the research is that <strong>AI tends to affect tasks rather than entire jobs</strong>.</p><p>A developer’s job isn’t just writing code.<br>A customer support job isn’t just answering questions.</p><p>Most professions are made up of many different tasks some repetitive, some creative, some strategic.</p><p>AI usually starts by automating the repetitive layers.</p><p>Humans then move toward the parts that require judgment, creativity, or complex reasoning.</p><h3>AI Is Already Changing Tasks</h3><p>According to research analyzing AI usage across occupations, around <strong>36% of occupations already use AI for at least 25% of their tasks</strong>, but only about <strong>4% of jobs rely heavily on AI for most of their work</strong>. (<a href="https://promptengineering.org/the-anthropic-economic-index-ais-new-role-in-the-workforce-revolution-or-just-a-fancy-assistant-2/?utm_source=chatgpt.com">Prompt Engineering Institute</a>)</p><p>This tells us that AI is not fully replacing jobs.</p><p>Instead, it is <strong>augmenting work</strong>.</p><p>In fact, studies show that AI is used more often as an <strong>assistant to humans rather than a full replacement</strong>, helping workers complete tasks faster and more efficiently. (<a href="https://promptengineering.org/the-anthropic-economic-index-ais-new-role-in-the-workforce-revolution-or-just-a-fancy-assistant-2/?utm_source=chatgpt.com">Prompt Engineering Institute</a>)</p><p>In software development, for example, AI tools are already helping engineers write code, debug issues, and explore unfamiliar areas of a codebase.</p><p>But the deeper work architecture decisions, product thinking, understanding user needs — still requires human thinking.</p><p>In other words, the role evolves.</p><h3>When Something Becomes Easy, Value Moves Elsewhere</h3><p>There is an economic pattern that keeps repeating.</p><p>When something becomes easier to produce, its value changes.</p><p>Photography is a good example.</p><p>Before smartphones, photography required expensive cameras and technical expertise. When smartphones introduced high-quality cameras, everyone suddenly became capable of taking photos.</p><p>Did photography disappear?</p><p>No.</p><p>Instead, it transformed into an entire creator economy.</p><p>Platforms like YouTube and Instagram created millions of new opportunities for creators, educators, and storytellers.</p><p>The same shift may happen with software.</p><p>For decades, writing code was difficult and specialized.</p><p>Now AI tools like ChatGPT or coding assistants are making software creation faster and easier.</p><p>That doesn’t make software less important.</p><p>It just means <strong>software becomes more abundant</strong>.</p><p>And when something becomes abundant, the real value moves to new layers ideas, systems, products, and human insight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jrumawMnzS2YgBO1Kw3GA.png" /></figure><h3>The Future May Belong to Human-Centric and Deep-Tech Work</h3><p>If writing software becomes easier, the competitive advantage might shift toward other areas.</p><p>One of those areas is <strong>human understanding</strong>.</p><p>Technology can generate answers, but it still struggles with understanding deep human context culture, emotion, motivation, community, and real-world complexity.</p><p>People who can understand problems deeply and build meaningful products will still be extremely valuable.</p><p>Another direction is <strong>deep technology</strong>.</p><p>AI systems themselves rely on massive infrastructure semiconductors, energy systems, and hardware innovation.</p><p>Companies like NVIDIA and TSMC invest billions into semiconductor engineering because the chips that power AI models are incredibly complex.</p><p>Fields like robotics, energy systems, biotech, climate technology, and semiconductor engineering require physical experimentation, interdisciplinary knowledge, and years of research.</p><p>These are areas where human creativity and engineering remain essential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GrHCNw-CqwLPvAtEdfzHfg.png" /></figure><h3>The Most Important Skill: Adaptability</h3><p>After thinking about all of this, one idea keeps coming back to me.</p><p>The most important skill of the future might not be coding.</p><p>It might be <strong>adaptability</strong>.</p><p>The ability to learn new tools, observe technological shifts, and reposition yourself when the world changes.</p><p>Throughout history, the people who benefited the most from technological revolutions were those who adapted early.</p><p>During the internet boom, people who understood digital platforms built entire careers around them.</p><p>During the smartphone revolution, developers who embraced mobile technology created products used by billions.</p><p>Now we are entering the AI era.</p><p>And the same pattern may repeat again.</p><h3>A Different Question to Ask</h3><p>Instead of asking:</p><p>“Will AI take my job?”</p><p>Maybe the better question is:</p><p><strong>“Where should we position ourselves in the world that AI is creating next?”</strong></p><p>Because innovation does not simply remove opportunities.</p><p>It redistributes them.</p><p>And often, the biggest opportunities appear in places that are not obvious at the beginning.</p><h3>Final Thought</h3><p>History shows that technological revolutions follow a familiar pattern.</p><p>First comes fear.</p><p>Then experimentation.</p><p>Then a completely new ecosystem of work emerges.</p><p>Artificial intelligence may follow the same path.</p><p>So rather than seeing this moment as the end of human work, I see it as a transition.</p><p>A transition where humans move toward higher layers of creativity, understanding, and innovation.</p><p>Because if history has taught us anything, it is this:</p><p><strong>Humans don’t become obsolete when technology advances.<br>We evolve with it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b31196423dac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vyper for AI Agent Workflows — Safe, Simple, Deterministic Agents]]></title>
            <link>https://medium.com/@kccreations1704/vyper-for-ai-agent-workflows-safe-simple-deterministic-agents-1a89cd698dcf?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a89cd698dcf</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 11:54:32 GMT</pubDate>
            <atom:updated>2025-12-10T11:54:32.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vyper for AI Agent Workflows — Safe, Simple, Deterministic Agents</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ky5FZPN9yAZYaQAW_O5MtA.png" /></figure><p>I built <strong>three tiny Vyper contracts</strong> + a <strong>minimal Python agent</strong> to show how off-chain AI agents can interact with Ethereum <strong>safely, deterministically, and predictably</strong>.</p><p>This kit includes:</p><ul><li><strong>ControlledSpender</strong> — time-limited allowance for agents</li><li><strong>StreamCap</strong> — rate + cap based streaming</li><li><strong>CommitRelease</strong> — commit–reveal for verifiable agent intent</li><li><strong>agent_demo.py</strong> — a very small agent simulation</li><li><strong>Full compile/deploy/test commands</strong> using Vyper + Anvil</li></ul><p>Everything is intentionally simple, auditable, and written in a way where <strong>new developers can understand the logic in one read</strong>.</p><h3>Why I built this</h3><p>At London meetups and university sessions, new developers ask the same questions:</p><ul><li>“How can an AI agent spend from my wallet <em>safely</em>?”</li><li>“How do I give my bot limited access? Like a budget?”</li><li>“How can an agent prove it decided something earlier?”</li><li>“What does on-chain safety actually look like when automation gets involved?”</li></ul><p>Most of these problems don’t need a big framework.<br> They need <strong>clean, deterministic, readable smart contract primitives</strong>.</p><p>That is why Vyper fits perfectly.</p><p>Vyper’s design goals <strong>auditability, simplicity, safety-first</strong> — align exactly with off-chain agent automation.</p><p>So instead of building a giant system, I built <strong>three small, sharp primitives</strong> that teach the pattern:</p><p><strong>Off-chain intelligence → On-chain guardrails → Safe execution</strong></p><p>This repo is not a product.<br> It is a <strong>teaching kit</strong>.</p><p>A starting point for new builders who want to understand how AI agents can work with Ethereum safely.</p><h3>What’s inside this tutorial</h3><h3>Contracts</h3><ol><li><strong>ControlledSpender.vy</strong><br> A wallet primitive where an owner gives an agent a time-limited allowance.</li><li><strong>StreamCap.vy</strong><br> Deterministic streaming: rate-per-second with a maximum cap.</li><li><strong>CommitRelease.vy</strong><br> A minimal commit–reveal pattern for proving intention or hiding parameters until reveal.</li></ol><h3>Agent</h3><ol><li><strong>agent_demo.py</strong><br> A minimal Python script showing an “agent” checking state → taking allowed actions.</li></ol><h3>Commands</h3><p>A full suite of scripts:</p><ul><li>Compile</li><li>Deploy</li><li>Test (deploy + interact)</li><li>Agent demo</li></ul><h3>Beginner Version Available</h3><p>If you’re totally new and just want to write your first 5-line contract:</p><p><strong>I created a separate “Get Started with Vyper” YouTube tutorial + repo.</strong><br> You can follow along there before jumping into the agent workflows.</p><p>(Link : <a href="https://youtu.be/VgNmusFsx3Y">https://youtu.be/VgNmusFsx3Y</a>)</p><h3>Architecture in One Sentence</h3><p><strong>Agent decides off-chain → checks contract guardrails → executes allowed action → contract enforces safety with no hidden logic.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9McFnv_g6goL1YPYHka1ew.png" /></figure><p>This separation makes agent automation safe and deterministic.</p><h3>Quick Start (the short path)</h3><p>Install dependencies:</p><pre>pip3 install -r requirements.txt<br>pip3 install vyper</pre><p><strong>Run a local node:</strong></p><p>Install Anvil (local blockchain):</p><pre>curl -L https://foundry.paradigm.xyz | bash<br>foundryup</pre><pre>anvil</pre><p><strong>Compile:</strong></p><pre>python3 scripts/compile.py</pre><p><strong>Deploy &amp; test:</strong></p><pre>python3 scripts/test_agent_workflows.py</pre><p><strong>Run the agent:</strong></p><pre>python3 scripts/agent_demo.py</pre><p>Everything runs on local Anvil / Ganache.</p><h3>Contract Walkthroughs (Story Style)</h3><p>Below are <strong>human-readable explanations</strong> of each contract.<br> You will paste your code excerpts under each section.</p><h3>1) ControlledSpender.vy — “Give an agent just enough power”</h3><h3>The Problem</h3><p>Agents sometimes need to perform actions that cost ETH:</p><ul><li>Pay for a cloud service</li><li>Trigger an on-chain automation</li><li>Rebalance a wallet</li></ul><p>But you <em>never</em> want to share your private key.</p><p>You want an agent to have <strong>limited, temporary, revocable power</strong>.</p><pre>#pragma version &gt;0.3.10<br><br># Controlled spender: owner grants allowance+expiry to specific agent addresses.<br># Purpose: Owner gives an agent an allowance and expiry. Agent may call spend(to, amount) <br># up to its remaining allowance. Owner can revoke or top up. No backdoors, no modifiers — explicit checks.<br><br>owner: public(address)<br><br># allowance[agent] =&gt; remaining wei allowance<br>allowance: public(HashMap[address, uint256])<br><br># expiry[agent] =&gt; unix timestamp after which the agent cannot spend<br>expiry: public(HashMap[address, uint256])<br><br>event AllowanceSet:<br>    agent: indexed(address)<br>    amount: uint256<br>    expiry: uint256<br><br>@deploy<br>def __init__():<br>    self.owner = msg.sender<br><br># Owner sets allowance and expiry for an agent<br>@external<br>def set_allowance(agent: address, amount: uint256, expiry_ts: uint256):<br>    assert msg.sender == self.owner, &quot;Only owner can set allowance&quot;<br>    # expiry must be in the future<br>    assert expiry_ts &gt; block.timestamp, &quot;Expiry must be in the future&quot;<br>    self.allowance[agent] = amount<br>    self.expiry[agent] = expiry_ts<br>    log AllowanceSet(agent=agent, amount=amount, expiry=expiry_ts)<br><br># Owner can revoke (set to 0)<br>@external<br>def revoke(agent: address):<br>    assert msg.sender == self.owner, &quot;Only owner can revoke&quot;<br>    self.allowance[agent] = 0<br>    self.expiry[agent] = 0<br>    log AllowanceSet(agent=agent, amount=0, expiry=0)<br><br># Agent calls to transfer funds (the contract must hold funds)<br>@external<br>def spend(to: address, amount: uint256):<br>    # only allowed when not expired<br>    assert block.timestamp &lt;= self.expiry[msg.sender], &quot;Allowance expired&quot;<br>    # sufficient allowance<br>    assert amount &lt;= self.allowance[msg.sender], &quot;Insufficient allowance&quot;<br>    # reduce allowance first (effects before interactions)<br>    self.allowance[msg.sender] = self.allowance[msg.sender] - amount<br>    # transfer<br>    send(to, amount)<br><br></pre><h3>What this contract does</h3><p>ControlledSpender allows:</p><ul><li>The <strong>owner</strong> to pre-fund the contract</li><li>The owner sets an <strong>allowance</strong> and <strong>expiry timestamp</strong> for an agent</li><li>The <strong>agent</strong> can spend up to its allowed amount</li><li>Once allowance runs out or time expires → the agent loses access</li></ul><h3>Why Vyper shines here</h3><ul><li>No inheritance</li><li>No modifiers</li><li>No inline assembly</li><li>All checks are explicit</li><li>Execution flow is obvious on first read</li></ul><p>This makes it extremely hard for someone to hide malicious logic.</p><h3>Agent Interaction</h3><p>In your agent demo:</p><ol><li>Owner sets allowance for agent</li><li>Agent checks allowance and expiry</li><li>Agent performs a spend action</li><li>Contract reduces allowance before sending (effects → interactions)</li><li>Spend succeeds and state stays safe</li></ol><h3>Why this matters</h3><p>This is the foundation of <strong>safe autonomous agents</strong>.<br> An off-chain bot may be smart, but the contract ensures it <strong>never exceeds allowed behavior</strong>.</p><h3>2) StreamCap.vy — “Money that flows at time-based speed”</h3><h3>The Problem</h3><p>You want predictable streams:</p><ul><li>Recurring payments</li><li>Funding an agent over time</li><li>Paying a contributor or service gradually</li></ul><p>But most streaming systems are too big or complicated to teach beginners.</p><pre>#pragma version &gt;0.3.10<br><br># StreamCap: simple token-like streaming with rate + cap<br># Purpose: Owner creates a stream to recipient with a ratePerSecond and maxCap. <br># Recipient withdraws accumulated amount. Deterministic, gas-friendly math.<br><br>owner: public(address)<br><br>struct Stream:<br>    recipient: address<br>    start: uint256<br>    lastWithdraw: uint256<br>    ratePerSecond: uint256<br>    cap: uint256<br>    totalSent: uint256  # cumulative sent so far<br><br>streams: public(HashMap[uint256, Stream])<br>nextStreamId: public(uint256)<br><br>event StreamCreated:<br>    id: indexed(uint256)<br>    recipient: indexed(address)<br>    rate: uint256<br>    cap: uint256<br><br>@deploy<br>def __init__():<br>    self.owner = msg.sender<br>    self.nextStreamId = 1<br><br># Owner funds the contract, then creates stream<br>@external<br>@payable<br>def create_stream(recipient: address, ratePerSecond: uint256, cap: uint256) -&gt; uint256:<br>    assert msg.sender == self.owner, &quot;Only owner can create stream&quot;<br>    # require cap &gt;= 0 and rate&gt;0<br>    assert ratePerSecond &gt; 0, &quot;Rate must be greater than zero&quot;<br>    assert cap &gt; 0, &quot;Cap must be greater than zero&quot;<br>    id: uint256 = self.nextStreamId<br>    self.streams[id] = Stream(<br>        recipient=recipient,<br>        start=block.timestamp,<br>        lastWithdraw=block.timestamp,<br>        ratePerSecond=ratePerSecond,<br>        cap=cap,<br>        totalSent=0<br>    )<br>    self.nextStreamId += 1<br>    log StreamCreated(id=id, recipient=recipient, rate=ratePerSecond, cap=cap)<br>    return id<br><br># view how much is withdrawable now (internal version)<br>@internal<br>@view<br>def _withdrawable(id: uint256) -&gt; uint256:<br>    s: Stream = self.streams[id]<br>    elapsed: uint256 = block.timestamp - s.lastWithdraw<br>    amount: uint256 = elapsed * s.ratePerSecond<br>    remaining: uint256 = s.cap - s.totalSent<br>    if amount &gt; remaining:<br>        return remaining<br>    return amount<br><br># view how much is withdrawable now (external version)<br>@view<br>@external<br>def withdrawable(id: uint256) -&gt; uint256:<br>    return self._withdrawable(id)<br><br># recipient withdraws accumulated funds<br>@external<br>def withdraw(id: uint256):<br>    s: Stream = self.streams[id]<br>    assert msg.sender == s.recipient, &quot;Only recipient can withdraw&quot;<br>    amt: uint256 = self._withdrawable(id)<br>    assert amt &gt; 0, &quot;No funds available to withdraw&quot;<br>    # update state before sending<br>    self.streams[id].lastWithdraw = block.timestamp<br>    self.streams[id].totalSent = s.totalSent + amt<br>    send(msg.sender, amt)<br><br></pre><h3>What this contract does</h3><p>StreamCap implements deterministic funds streaming:</p><ul><li>ratePerSecond</li><li>maximum cap</li><li>a simple withdraw function</li><li>receivers can always compute withdrawable amounts locally (no oracle needed)</li></ul><h3>Why Vyper is perfect for this</h3><p>Vyper forbids infinite loops and recursion.<br> This guarantees:</p><ul><li>predictable gas</li><li>deterministic accounting</li><li>easy auditing</li></ul><h3>Agent Interaction</h3><p>The agent (or recipient):</p><ol><li>Checks how much is withdrawable</li><li>Waits for enough time to accumulate value</li><li>Executes withdraw()</li><li>Contract updates accounting safely (effects before interactions)</li></ol><h3>Why this matters</h3><p>This pattern proves how <strong>time → money</strong> can be encoded cleanly on-chain<br> and how agents can automate withdrawal decisions.</p><h3>3) CommitRelease.vy — “Prove intent without revealing it too early”</h3><h3>The Problem</h3><p>Agents sometimes need to commit to something <strong>without revealing it immediately</strong>:</p><ul><li>Bidding</li><li>Hidden parameters</li><li>Delayed actions</li><li>Proving a decision was taken earlier</li></ul><pre>#pragma version &gt;0.3.10<br><br># CommitRelease: commitment / reveal pattern for agent-triggered actions<br># Purpose: Agent commits a hash of decision; later reveals to execute an action <br># (prevents frontrunning &amp; gives verifiable intent).<br><br>owner: public(address)<br><br>struct Commit:<br>    committer: address<br>    value: uint256<br>    revealed: bool<br>    commit_ts: uint256<br><br>commits: public(HashMap[bytes32, Commit])<br><br>event Committed:<br>    key: indexed(bytes32)<br>    committer: indexed(address)<br><br>event Revealed:<br>    key: indexed(bytes32)<br>    committer: indexed(address)<br>    value: uint256<br><br>@deploy<br>def __init__():<br>    self.owner = msg.sender<br><br># Agent stores commitment (off-chain agent computes hash(secret|data))<br>@external<br>@payable<br>def commit(key: bytes32):<br>    # optionally require deposit = msg.value as stake<br>    assert self.commits[key].committer == empty(address), &quot;Commitment already exists&quot;<br>    self.commits[key] = Commit(committer=msg.sender, value=msg.value, revealed=False, commit_ts=block.timestamp)<br>    log Committed(key=key, committer=msg.sender)<br><br># Reveal: provide secret and action parameters; if hash matches, execute<br>@external<br>def reveal(secret: bytes32, to: address, amount: uint256):<br>    # Convert address and uint256 to bytes32 for hashing<br>    to_bytes: bytes32 = convert(to, bytes32)<br>    amount_bytes: bytes32 = convert(amount, bytes32)<br>    key: bytes32 = keccak256(concat(secret, to_bytes, amount_bytes))<br>    c: Commit = self.commits[key]<br>    assert c.committer == msg.sender, &quot;Only committer can reveal&quot;<br>    assert not c.revealed, &quot;Commitment already revealed&quot;<br>    # mark revealed<br>    self.commits[key].revealed = True<br>    # perform action: send funds that were deposited with commit OR allow action<br>    # Example: release value to `to` up to committed value<br>    send_amount: uint256 = amount<br>    if amount &gt; c.value:<br>        send_amount = c.value<br>    send(to, send_amount)<br>    log Revealed(key=key, committer=msg.sender, value=amount)<br><br></pre><h3>What this contract does</h3><p>CommitRelease implements a tiny commit-reveal pattern:</p><ul><li>Agent commits a hash</li><li>Later reveals secret + parameters</li><li>Contract verifies the hash</li><li>Contract executes the action using the revealed, verified values</li><li>Prevents frontrunning of sensitive data</li></ul><h3>Agent Interaction</h3><ol><li>Agent creates key = keccak(secret || params)</li><li>Commits the key</li><li>Later reveals secret + params</li><li>Contract recomputes and verifies</li><li>Action executes safely</li></ol><h3>Why this matters</h3><p>This primitive empowers agents to prove intention in a verifiable, tamper-proof way.</p><h3>agent_demo.py — Small Agent, Big Lesson</h3><p>The agent demo is intentionally tiny.</p><p>It behaves like a bot with one goal:<br> <strong>respect the on-chain rules.</strong></p><p>It:</p><ol><li>Reads the contract addresses</li><li>Checks allowance</li><li>Executes allowed spend</li><li>Monitors streams</li><li>Withdraws when profitable</li><li>Performs commit → reveal cycles</li></ol><p>This demonstrates the core idea:<br> agents can be “smart” without holding keys or having unclamped power.</p><p>This script is what you’ll show in your video tutorial.</p><h3>New Builder? Still Confused? Start Here.</h3><p>If you’re totally new to Vyper, I made a <strong>very simple Get Started repo + YouTube tutorial</strong>.</p><p>It covers:</p><ul><li>Installing Vyper</li><li>Writing your first 5-line smart contract</li><li>Compiling manually</li><li>Deploying with a minimal Python script</li><li>Reading and writing values</li></ul><p>This is for absolute beginners.</p><h3>Repo Links</h3><h3>Full Agent Workflow Repo</h3><p><a href="https://github.com/KaushikKC/vyper-tutorials/tree/main/example">https://github.com/KaushikKC/vyper-tutorials/tree/main/example</a></p><h3>Get Started with Vyper (Beginner Repo + Video)</h3><p><a href="https://youtu.be/VgNmusFsx3Y">Youtube Link</a></p><h3>Closing Note</h3><p>This entire project is designed to answer one simple question:</p><p><strong>“How can we trust AI agents with money?”</strong></p><p>The answer is not “more AI”.<br> The answer is <strong>simple, auditable guardrails</strong>.</p><p>Vyper gives us a language where every assumption is visible, every action is predictable, and every contract is easy to explain to someone new.</p><p>If this inspires you to build safer agents, feel free to fork the repo, open issues, or message me directly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a89cd698dcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pluralism, Pseudonymity, and the Future of ZK Identity: Why We Built Proof of Witness]]></title>
            <link>https://medium.com/@kccreations1704/pluralism-pseudonymity-and-the-future-of-zk-identity-why-we-built-proof-of-witness-2f8f57bc00cb?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f8f57bc00cb</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 15:43:48 GMT</pubDate>
            <atom:updated>2025-07-01T15:43:48.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNc4RJiD8-0DQxUDpiWGWg.png" /></figure><p>Over the past few years, I’ve been deeply involved in zero-knowledge (ZK) technology not just from the perspective of cryptography or scalability, but also for what it <em>represents</em>: privacy, autonomy, and pluralism in an increasingly centralized digital world.</p><p>Recently, I came across a post that helped crystallize something I’ve been trying to articulate: why identity, governance, and participation online need to evolve beyond simple “one person, one vote” models and how ZK can play a pivotal role in enabling that evolution.</p><p>This isn’t just theory. This is part of the core <strong>ideology</strong> behind why we started building <a href="https://x.com/ProofOfWitness"><strong>Proof of Witness</strong></a>.</p><h3>The Core Idea: Pluralistic Identity &gt; One Identity to Rule Them All</h3><p>We live in a world of implicit pluralistic identity already. You have a Google account, maybe a Twitter (X) account, a government ID, a work email, an ENS name — and none of these fully define “you.” But that’s actually a strength, not a bug.</p><p>True digital freedom demands <em>no single chokepoint</em>. No sole login. No one place to target, to cancel, to surveil, or to control. Pluralism is antifragility.</p><p>This is where <strong>explicit pluralistic identity</strong> and <strong>ZK tools</strong> come in. What we need isn’t just identity tied to wallets or passports but a fabric of community-driven, pseudonymous proofs of personhood that don’t rely on singular authorities.</p><h3>The Quadratic Truth: N Identities at N² Cost</h3><p>The post lays out something beautiful: that the “ideal” resistance to identity manipulation isn’t about hard caps or absolute one-per-person constraints. It’s about cost curves.</p><ul><li>If N identities give you <em>N² power</em>, then it should cost you <em>N²</em> to get them.</li><li>Too cheap = abuse.</li><li>Too strict = loss of privacy and coercion-resistance.</li></ul><p>This is <strong>exactly</strong> why we’re bullish on ZK. It gives us the knobs to create <em>flexible identity systems</em> that scale <em>resistance to manipulation</em> without killing pseudonymity.</p><p>Imagine being able to prove <em>what kind</em> of follower base you have, or that you have skin in the game <em>without ever revealing who you are</em>. That’s the real power of ZK applied to identity. And that’s what the future needs.</p><h3>ZK as Infrastructure for Culture</h3><p>What excites me most isn’t just the technical elegance of ZK, but what it enables culturally.</p><p>Governance isn’t just voting. It’s speech, influence, the slow evolution of norms. It’s memes, forks, vibes, and pushback. And if we want everyone to participate in that culture not just the rich, the loud, or the doxxed then we need systems that <strong>invite partial pseudonymity</strong>, <strong>encourage organic expression</strong>, and <strong>resist capture</strong>.</p><p><strong>Proof of Witness</strong> isn’t just a builder collective. It’s our attempt to prototype this new culture, one where participation, identity, and contribution don’t depend on centralized identity providers, but emerge from a diverse, pluralistic social graph powered by ZK.</p><h3>What Comes Next</h3><p>I’m writing more about this because I think this conversation is <em>just starting</em>. We’re going to need new frameworks, primitives, and communities to realize this vision. No single app or protocol will “solve” identity. It’s a collective cultural upgrade.</p><p>That’s the direction Proof of Witness is going and if this resonates with you, I’d love to talk.</p><p><strong>Building for Builders: Why Communities Like Ours Matter</strong></p><p>At some point, I realized something simple but often overlooked: <strong>ZK won’t scale through just code, it’ll scale through conviction</strong>.</p><p>And conviction doesn’t come from whitepapers alone. It comes from <strong>culture</strong>. From jam sessions with other devs at midnight. From shipping hackathon prototypes with friends who care more about values than clout. From having <em>space</em> to explore without gatekeepers, without pressure, without a roadmap forced by capital or trends.</p><p>That’s the reason I created <strong>Proof of Witness</strong>.<br>Not just a dev community. Not just a ZK starter group. But a <strong>living, breathing organism</strong> where builders can learn, debate, ship, and fail together with a shared respect for privacy, decentralization, and pluralistic trust.</p><p>It’s a sandbox <em>for the misfits</em>, <em>the obsessed</em>, <em>the skeptical optimists</em> anyone who believes ZK is more than just a buzzword.<br>It’s for those who see identity as <em>a field</em>, not a field to be conquered.</p><h3>Fighting the Urge to Standardize Too Early</h3><p>There’s a dangerous temptation in early tech — especially in identity systems — to <strong>standardize before we understand</strong>.</p><p>To say “this is the one right way.”<br>To crown <em>a single PoP method</em>, <em>a single DID spec</em>, <em>a single graph model</em>.<br>But that’s how monocultures emerge. And monocultures die hard.</p><p>Instead, we need what I call <strong>“iterative pluralism.”</strong> Let there be 50 experiments in proof-of-personhood. Let there be teams focused on privacy-preserving uniqueness, attestation markets, multi-sig social proofs, or even game-theoretic stake-weighted models. Let reputation evolve <em>bottom-up</em>, not top-down.</p><p>At Proof of Witness, our community exists to <strong>test, break, remix, and refine</strong> those models. We’re not here to tell the world which protocol to use — we’re here to <strong>prototype the conditions</strong> for robust and diverse identity ecosystems to form.</p><h3>Proofs as Language, Not Just Credentials</h3><p>This part is core to my ideology:<br>In the future we’re trying to build, <strong>ZK Proofs aren’t just credentials they’re <em>language</em>.</strong></p><p>Just like words let us communicate intent, nuance, and emotion, proofs let us <strong>communicate trust</strong> without oversharing, without exposing, without surrendering control.</p><p>You don’t need to prove <em>who you are</em>, but <em>why you’re credible</em>, <em>why you belong in the room</em>, <em>why your voice matters</em>.<br>You don’t need to broadcast your resume just prove you’ve <em>been in the arena</em>.</p><p>And every builder, artist, dev, researcher in the Proof of Witness circle is exploring what this new grammar of trust looks like.</p><h3>What We’re Doing Next (And an Invitation)</h3><p>Over the next few months, our focus at <strong>Proof of Witness</strong> will revolve around three core efforts:</p><ol><li><strong>ZK Playground Series — </strong>in-person and remote meetups for builders to co-create weird, boundary-pushing identity primitives. Expect Circom, Noir, semaphore forks, and lots of debates.</li><li><strong>Ideology-Powered Onboarding</strong> — not “what is ZK?” but “why ZK matters.” We’ll publish essays, curriculum, and hands-on challenges that provoke new thinking around identity, governance, and trust.</li><li><strong>Collab Grants &amp; Residency —</strong> we’re setting up micro-grants and hack tracks to support indie builders and niche experiments especially the ones <em>too early</em> for VC but <em>too important</em> to ignore.</li></ol><p>We’re not trying to own the ZK identity narrative we’re just trying to <em>add</em> to it. And we want to do it alongside people who care deeply about the same things.</p><h3>Closing Thought: If You Feel It, Build It</h3><p>If you’ve ever felt like your values didn’t fit neatly into the current Web3 playbook…<br>If you believe that digital identity should empower you not define or trap you…<br>If you feel like the ZK movement is missing more human, community-first voices…</p><p>Then maybe you’re one of us.</p><p>We’re not recruiting. We’re not marketing. We’re <em>inviting</em>.<br>To contribute. To remix. To argue. To laugh. To ship.<br>To help build not just a better stack, but a <strong>more plural, expressive, trustworthy internet</strong>.</p><p>If that resonates let’s jam.</p><p>Founder, <a href="https://x.com/ProofOfWitness">Proof of Witness</a><br>ZK culture is infrastructure. Community is protocol. Identity is fluid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f8f57bc00cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Cooked Storage. We Cooked Finance. Now We’re Cooking Cloud.]]></title>
            <link>https://medium.com/@kccreations1704/we-cooked-storage-we-cooked-finance-now-were-cooking-cloud-31024b836c40?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/31024b836c40</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Tue, 24 Jun 2025 12:33:02 GMT</pubDate>
            <atom:updated>2025-06-24T12:33:02.459Z</atom:updated>
            <content:encoded><![CDATA[<p>Why EigenCloud feels like the next evolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98jiBaqFeFdoBskMTEXD0g.png" /></figure><p><strong>My Doubts — And Probably Yours Too</strong></p><p>Let’s be real for a moment. When I first heard about <strong>EigenCloud</strong>, I had the same questions you probably do:</p><blockquote>“Okay, I get cloud. I store stuff. I run apps. I pay for what I use. Why do I need this whole ‘verifiable’ thing? What’s the point? Who cares if a storage or AI compute process is verifiable or not?”</blockquote><p>As a dev who’s actually built apps on both Web2 and Web3 infra, I was genuinely confused. We already have AWS, GCP, Azure <strong>what’s broken that needs fixing?</strong></p><p>But then I sat with the idea. Dug deeper. Thought from first principles. And it started clicking. This isn’t about replacing AWS. It’s not about storing cat pics in a trustless S3 bucket. This is about <strong>a new kind of cloud</strong> that enables <strong>a new class of apps</strong> the ones where <strong>verifiability is not optional</strong>.</p><p>Let’s start from ground zero.</p><p>The <strong>cloud</strong>, in its simplest form, is someone else’s computer. You store data there. You run your backend logic there. You don’t worry about hardware or uptime. You just ship code and pay per usage.</p><blockquote><em>Think Google Drive (storage), Vercel (frontend deploy), or AWS Lambda (function execution). You pay. It runs. That’s it.</em></blockquote><p>It works great for 99% of applications. But for the other 1%? The cloud becomes a black box.</p><h3>The Problem: The Cloud is a Black Box</h3><p>Here’s the deal. When you run code on AWS or GCP:</p><ul><li>You <strong>don’t know</strong> if they tampered with the data.</li><li>You <strong>can’t prove</strong> if the compute actually happened the way you wrote it.</li><li>You <strong>must trust</strong> the infra provider.</li></ul><p>And for most apps, that’s fine. But for some very specific, very sensitive use cases — it’s not.</p><p>Let me show you where things break.</p><h3>Example: The Insurance AI Agent</h3><p>Imagine an insurance company uses an AI agent to assess and approve health claims. The agent checks your submitted documents, runs fraud checks, predicts your risk, and decides the payout.</p><p>Now imagine:</p><ul><li>The company <em>secretly changes</em> the AI model mid-year to pay out less.</li><li>The model has an unexplainable bias.</li><li>You get denied and there’s <strong>no audit trail</strong> for how that happened.</li></ul><p>You have <strong>no way to verify</strong>:</p><ul><li>What model was used</li><li>What logic was executed</li><li>What data was input/output</li></ul><p>This is <strong>opaque compute</strong>. That’s where <strong>verifiable compute</strong> comes in.</p><h3>EigenCloud: The Verifiable Cloud Paradigm</h3><p>EigenCloud isn’t trying to replace your normal cloud.</p><p>It’s building something new a <strong>crypto-native, verifiable compute layer</strong> for apps where <strong>trust is not given, it’s earned</strong>.</p><p>At its core:</p><blockquote><em>EigenCloud lets you run application logic in containers like you’d do on AWS but in a </em><strong><em>verifiable</em></strong><em> way.</em></blockquote><p>It uses:</p><ul><li><strong>EigenLayer’s restaked security</strong></li><li><strong>Cryptoeconomic guarantees</strong></li><li>And <strong>forkability</strong> of the EIGEN token to punish dishonest compute</li></ul><p>You run app logic in off-chain containers. But users can cryptographically verify that:</p><ul><li>It ran the correct code</li><li>On the right data</li><li>With tamper-proof output</li></ul><h3>Verifiable AI: The Killer Use Case</h3><p>AI is the biggest cloud workload today. Microsoft alone is investing $80B this year into Azure AI.</p><p>But in crypto, <strong>you can’t just use AI and say “trust me bro”</strong>.</p><p>You need:</p><ul><li>Verifiable AI models</li><li>Verifiable agent runtimes</li><li>Verifiable tool calls + memory</li><li>A full audit trail for every AI decision</li></ul><p>EigenCloud is trying to become the <strong>platform</strong> that lets you do all of this in a modular, programmable, trustless way.</p><p>This powers:</p><ul><li>Onchain agents</li><li>Autonomous protocols</li><li>AI-based insurance systems</li><li>Prediction markets</li><li>Game economies with verifiable incentives</li></ul><h3>So Is This for All Cloud Use Cases?</h3><p>Absolutely not.</p><p>You <strong>don’t need EigenCloud</strong> to host your photo sharing app or your to-do list backend. That’s overkill.</p><p>This isn’t about lifting and shifting <strong>every</strong> cloud app to crypto infra.</p><p>EigenCloud is for:</p><ul><li>Apps where compute needs to be <strong>auditable</strong></li><li>AI agents that must be <strong>trustworthy</strong></li><li>Protocols that rely on <strong>economic incentives</strong> that need <strong>verifiable enforcement</strong></li><li>Environments where <strong>humans can’t be the trust anchor</strong></li></ul><p>It’s a <strong>specialized cloud</strong> not a replacement for all cloud.</p><h3>The Enterprise Angle — Realistic, Not Romantic</h3><p>Now comes the tough pill: <strong>will banks and insurance companies adopt this soon?</strong></p><p>Honestly? No. Not immediately.</p><p>These orgs:</p><ul><li>Still use SOAP over REST</li><li>Run 20-year-old infra</li><li>Prioritize “we’ve always done it this way” over innovation</li></ul><p>They won’t be the early adopters.</p><blockquote><em>But crypto-native apps will be.</em></blockquote><p>And over the next 5–10 years:</p><ul><li>Regulators will demand AI transparency</li><li>Enterprises will need verifiable audit trails</li><li>And they’ll turn to ecosystems like EigenCloud for modular plug-ins not full-stack rewrites</li></ul><p>That’s how the adoption wave rolls in.</p><h3>The Crypto Cloud Thesis</h3><p>Just like we had:</p><ul><li>Bitcoin for <strong>verifiable money</strong></li><li>Ethereum for <strong>verifiable finance</strong></li></ul><p>EigenCloud is a bet on the next wave:</p><blockquote><strong><em>Verifiable Everything.</em></strong></blockquote><p>The “Verifiable Cloud” is the base layer for AI, agents, and logic that needs to be <strong>provably honest</strong>.</p><p>It’s not for everything.<br>But it <em>is</em> for what matters next.</p><h3>Building in the Verifiable Cloud: A Dev’s Perspective</h3><p>As a developer, I always ask the same thing:</p><blockquote><em>“Okay, cool idea but what’s the DX (developer experience) like?”</em></blockquote><p>This is where EigenCloud takes a unique approach.</p><p>It’s not asking you to learn some weird DSL (domain-specific language).<br>You don’t have to rewrite your app from scratch.<br>You write your app logic <strong>in standard containers</strong> like you would in any cloud-native setup.</p><p>But here’s the twist:</p><ul><li>You <strong>deploy it as verifiable compute</strong></li><li>You get <strong>proofs of execution</strong> or at least, crypto-economic guarantees backed by restaking</li><li>You run modular services, not monolithic backends</li></ul><p>This is where it becomes powerful.<br>Instead of “trust us, our AI did the job,” your application can say:</p><blockquote><em>“Here’s a containerized, verifiable agent that made this decision. Anyone can verify the inputs, the runtime, and the output or fork it if they disagree.”</em></blockquote><p>This <strong>doesn’t break the app model</strong> it <strong>augments it with trust</strong>.</p><h3>Modularity is Not a Luxury — It’s a Must</h3><p>In today’s world, everyone is building vertical silos.</p><p>AI startup? You build your model, backend, infra stack, agent runtime, memory, vector DB, and host it all in a walled garden.</p><p>That’s great until someone wants to:</p><ul><li>Reuse your agent logic in a DAO</li><li>Trustlessly verify decisions in a governance proposal</li><li>Compose your AI into another protocol’s flow</li></ul><p>Without modularity, <strong>you can’t compose.</strong></p><p>EigenCloud lets you break this:</p><ul><li>Agent logic is pluggable</li><li>Memory is modular</li><li>Tool calls can be registered as independent services</li><li>Results can be forked or reused across chains</li></ul><p>This is how we build a <strong>trustless AI economy</strong> not by centralizing, but by composing.</p><h3>Adoption: A Slow Burn, Not a Flash Fire</h3><p>Let’s not lie to ourselves.</p><p>This isn’t something that goes viral on Product Hunt tomorrow.</p><p>The first apps to adopt verifiable cloud will:</p><ul><li>Be crypto-native</li><li>Be financially incentivized to be transparent</li><li>Need shared trust among parties who don’t trust each other</li></ul><p>Over time, we’ll see adoption in:</p><ul><li>Prediction markets</li><li>Public AI decision-making</li><li>Fraud-proof systems</li><li>Regulated DeFi or GovTech experiments</li></ul><blockquote><em>Enterprises will only join when it’s no longer risky but necessary</em></blockquote><p>Until then, it’s up to builders like us to explore these new primitives.</p><h3>Where This Fits: AI x Blockchain</h3><p>Here’s the bigger vision.<br>The AI wave is coming hard.<br>The Web3 wave already came, got misunderstood, and is slowly rebuilding its reputation.</p><p>EigenCloud is the bridge.</p><p>It says:</p><ul><li><strong>Yes to AI</strong>, but <strong>not without verifiability</strong></li><li><strong>Yes to automation</strong>, but <strong>not without modularity</strong></li><li><strong>Yes to compute</strong>, but <strong>not without forkability</strong></li></ul><p>It’s not just cloud infra. It’s <strong>governance of logic.</strong></p><p>And that’s a massive unlock when:</p><ul><li>DAOs want to vote on agent behavior</li><li>Communities want to fork LLMs like they fork protocols</li><li>Open-source AI needs infrastructure that respects decentralization</li></ul><h3>My Personal Realization</h3><p>At first, this all felt too abstract. Too futuristic.</p><p>But then I thought about the shift from HTTP to HTTPS.<br>Nobody cared at first. Until suddenly everyone did.<br>Verifiability became a norm.</p><blockquote><em>EigenCloud is HTTPS for cloud logic.</em></blockquote><p>And once you see the world that way, you can’t unsee it.</p><p>We’ve verified money.<br>We’ve verified ownership.<br>We’re slowly verifying identity.</p><p>Now it’s time to verify compute.</p><p>It won’t happen overnight. But it will happen.</p><p>And when it does you’ll either be stuck in the opaque cloud…<br>or you’ll be part of a new internet that can <strong>prove</strong> what it does.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31024b836c40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The New Trust Paradigm: How Ethereum Made Me Rethink Everything About “Hardness”]]></title>
            <link>https://medium.com/@kccreations1704/the-new-trust-paradigm-how-ethereum-made-me-rethink-everything-about-hardness-9cc765f53d71?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cc765f53d71</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Thu, 05 Jun 2025 07:20:13 GMT</pubDate>
            <atom:updated>2025-06-05T07:20:13.616Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s Talk About Trust (And Why I Stopped Trusting the Old Way)</h3><p>You know how when you were a kid, if something was written in a textbook, you just <em>believed</em> it? Like, “Oh okay, it’s printed, so it must be true.” That’s how trust worked for me growing up. Banks, governments, ID cards, those were the rules of the game. You don’t question the game, right?</p><p>But then I stumbled into Web3. And suddenly, I saw that all these systems I had taken for granted… weren’t exactly <em>hard</em>. Not in the way I thought.</p><p>Let me explain what I mean by “hardness.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LOSJZzxXX54bRBMM" /></figure><h3>Hardness Isn’t Just for Rocks</h3><p>This word kept popping up: <strong>hardness</strong>. Not like “diamonds” or “steel,” but <em>systems</em> that are hard to break, hard to cheat, hard to mess with. I realized humans have always wanted this. We’ve always wanted things that can’t be easily changed, because change brings uncertainty, and uncertainty is scary.</p><p>So I started seeing the world differently. Like, way back, our ancestors trusted <strong>atoms </strong>the raw stuff of nature. Think gold. You can’t just print more gold. You’ve got to dig, mine, melt, and haul it. Gold is hard.</p><p>Then we moved into <strong>institutions</strong>. Courts, governments, banks. We trusted that if we signed a contract, some judge would enforce it. But here’s the thing institutions are just people wearing suits. People with egos, incentives, and flaws. That’s not hardness, that’s a hope and a prayer.</p><p>And now?</p><p>We’ve got <strong>blockchains</strong>.</p><h3>The Moment I Got It</h3><p>I remember this moment clearly. I was playing around with Ethereum, building a dumb little dApp, and I deployed a smart contract. Nothing big. Just a “hello world” kind of thing. But then I realized: this tiny piece of code I just wrote is now <em>out there</em>. Nobody not even me can mess with it. It’s locked in.</p><p>That hit different.</p><p>It felt like I’d just planted something in bedrock. That was when I got it: <strong>Ethereum isn’t just code,it’s digital hardness</strong>.</p><h3>The Three Kinds of Hardness I See Now</h3><p>So here’s how I break it down:</p><h3>1. Atom-Hardness</h3><p>This is the OG. Nature-level trust. You can’t argue with gravity, and you can’t fake gold (well, you can try, but it’s hard as hell).</p><p><strong>Pros</strong>: Reliable. Exists whether or not you believe in it.<br> <strong>Cons</strong>: Not flexible. Can’t program a rock.</p><h3>2. Institution-Hardness</h3><p>This one built civilization. Courts, laws, governments all that jazz. It gave us scalable society.</p><p><strong>Pros</strong>: You can write custom rules.<br> <strong>Cons</strong>: Rules are enforced by humans. And humans… let’s just say we don’t have a perfect record.</p><p>I mean, you ever try to get a refund from a government agency? Enough said.</p><h3>3. Blockchain-Hardness (My Favorite)</h3><p>This is what Ethereum gave us: <strong>rules that run on code, not trust</strong>. You don’t need a middleman. You don’t need to ask permission. You just <em>deploy</em>.</p><p><strong>Pros</strong>: Global, transparent, doesn’t sleep.<br> <strong>Cons</strong>: Needs some tech literacy, but hey we’re getting there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6G4i7axLoJhXoeq2" /></figure><h3>Ethereum = Diamond Hands for Trust</h3><p>Ethereum feels like this digital diamond to me. Here’s why:</p><ul><li><strong>Hard to break</strong> → It runs on cryptography that even nation-states can’t crack.</li><li><strong>Transparent</strong> → You can check everything, anytime, from anywhere.</li><li><strong>Multifaceted</strong> → DeFi, DAOs, NFTs, social tokens you name it, someone’s building it.</li></ul><p>Unlike gold (which sits there), or institutions (which decay over time), <strong>Ethereum evolves, but it never bends</strong>.</p><h3>Why ETH Isn’t Just “Money” to Me</h3><p>At first, I tried to understand ETH the way I understood stocks: “Okay, what’s the cash flow?” or “What’s the use case?” But that approach failed. ETH isn’t just a token -&gt; it’s <em>the trust layer of the internet</em>.</p><ul><li>A dollar is backed by the U.S. government.</li><li>Gold is backed by nature.</li><li><strong>ETH is backed by math, code, and a global network of believers who don’t even need to know each other.</strong></li></ul><p>That’s powerful. And the more the world moves online, the more this matters.</p><h3>A Quick Story</h3><p>A few months ago, a friend of mine in another country needed funds fast. Their bank froze their account due to some stupid “suspicious activity” flag.</p><p>Me? I just sent USDC over Ethereum. Boom. Two minutes. No approvals. No banker at lunch. No call center wait music.</p><p>It was in that moment I saw what <strong>programmable money and programmable trust</strong> actually meant in the real world.</p><h3>Where I Think We’re Headed</h3><p>Imagine a world where:</p><ul><li>You don’t need to trust a lawyer, you just use a smart contract.</li><li>Your land deed is on-chain, and no one can steal it with a bribe.</li><li>You get paid in seconds, globally, with no third-party cut.</li></ul><p>That’s not a dream. That’s a roadmap.</p><p>And Ethereum? Ethereum is the road.</p><h3>The Triad That’ll Shape Our Future</h3><p>We’re not throwing away atoms or institutions. They still matter. But the strongest systems will combine all three:</p><ol><li><strong>Atoms</strong> → for physical safety.</li><li><strong>Institutions</strong> → for human coordination.</li><li><strong>Blockchains</strong> → for incorruptible digital trust.</li></ol><p>And at the heart of that digital layer? <strong>Ethereum.</strong></p><p>I actually got inspired to write this piece after reading an incredible article by <a href="https://x.com/0xstark"><strong>Josh Stark</strong></a>, a deep thinker in the Ethereum ecosystem. He dove into the bigger picture of why crypto and blockchain even matter, what problems they’re really here to solve.</p><p>This blog is kind of my own take on those ideas, a shorter and more personal version, written from my perspective.</p><h3>Final Thought</h3><p>Let me leave you with this:</p><blockquote><em>“Gold was the hardness of kings.<br> Dollars, the hardness of nations.<br> </em><strong><em>ETH is the hardness of the internet.</em></strong><em>”</em></blockquote><p>And that’s the kind of future I want to build for. One where trust doesn’t need permission. One where the rules are clear. One where we can finally stop relying on gatekeepers and start building freely.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cc765f53d71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeAI is the New Crypto Frontier. Here’s Why I’m Building a Movement Around It]]></title>
            <link>https://medium.com/@kccreations1704/deai-is-the-new-crypto-frontier-heres-why-i-m-building-a-movement-around-it-8498a014f371?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8498a014f371</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Tue, 27 May 2025 17:05:26 GMT</pubDate>
            <atom:updated>2025-05-27T17:05:26.308Z</atom:updated>
            <content:encoded><![CDATA[<p>Okay, let’s talk about something that’s been living rent-free in my head lately: <strong>DeAI</strong> short for <strong>Decentralized Artificial Intelligence</strong>. If you’ve never heard of it before, don’t worry. I’m about to break it down in the most chill, easy-to-understand way but trust me, this is one of those narratives that’s about to take off. And guess what? I’m diving headfirst into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUsGQY0S4bpgxI6F4U-q-A.png" /></figure><h3>So… What is DeAI anyway?</h3><p>You know how most of the AI we see today like ChatGPT, Midjourney, or those smart tools in big tech is all controlled by <strong>one company</strong>, <strong>central servers</strong>, and a whole lot of “you-can-use-it-but-don’t-ask-how-it-works” energy?</p><p>Yeah, that’s <strong>traditional AI</strong>.</p><p>Now imagine a world where <strong>AI doesn’t belong to just one company</strong>, where it’s <strong>open, transparent, community-powered</strong>, and maybe even rewarding to contribute to. That’s <strong>DeAI</strong>.</p><p>It’s like AI that’s had a taste of Web3, got woke, and said, “I don’t want to be locked up in a server farm anymore.” 😂</p><h3>Here’s the Vibe Shift: From Centralized to Decentralized</h3><p>In DeAI:</p><ul><li>Instead of everything being run on one mega-corporation’s servers, AI models are <strong>distributed across multiple nodes</strong>.</li><li>Instead of being trained in secret, <strong>users can participate in training</strong>, verifying, or contributing data.</li><li>You’re not just a user, you’re a <strong>stakeholder</strong>. Some DeAI networks let you vote on decisions, contribute compute power, or even <strong>earn tokens</strong> for helping the ecosystem grow.</li><li>It runs on top of <strong>blockchain</strong> or <strong>decentralized storage</strong> like IPFS, Arweave, or Filecoin which keeps things <strong>transparent</strong>, <strong>verifiable</strong>, and <strong>censorship-resistant</strong>.</li></ul><p>It’s AI reimagined <strong>for the people, by the people.</strong></p><h3>Why I’m So Hyped About DeAI</h3><p>You ever get that feeling when you stumble on a narrative that just clicks? Like, “Yo, this is going to be big and I want to be there <em>before</em> the wave hits”? That’s how I feel about DeAI right now.</p><p>I’ve been deep-diving into what it really means from <strong>federated learning</strong> to <strong>zero-knowledge proofs in model validation</strong>, from <strong>open-source training data protocols</strong> to <strong>on-chain inference logs </strong>and man, it’s wild how much innovation is happening in this space.</p><p>And let me tell you something real: <strong>AI isn’t going anywhere.</strong> It’s only getting more powerful. But if we don’t decentralize it now, we’re going to wake up in a world where a handful of companies dictate what intelligence looks like.</p><p>No thanks.</p><h3>I’m Starting Something New — A DeAI Community</h3><p>So here’s what I’m gonna do. I’m starting a new community. A community built on this idea: <strong>DeAI is for everyone</strong>.</p><ul><li>We’re going to <strong>learn together</strong>: how DeAI works, the tools involved, the protocols making waves (like Bittensor, Gensyn, etc.), and how to build or contribute.</li><li>We’re going to <strong>build together</strong>: maybe it’s a decentralized chatbot, maybe it’s open-source AI tools running on Arweave, maybe it’s something no one’s thought of yet.</li><li>We’re going to <strong>share alpha</strong>: new DeAI projects, grants, bounties, dev tooling, and community collabs.</li><li>And most importantly: we’ll keep it real, inclusive, and fun. No gatekeeping. No corporate vibe. Just devs, builders, and curious minds vibing around decentralized intelligence.</li></ul><h3>So… You In?</h3><p>If you’re someone who’s passionate about open tech, Web3, or just curious about where AI is heading next, I want you in this with me.</p><p>We’ll learn. We’ll teach. We’ll build.</p><p>Let’s break open the black box of AI, throw it on-chain, and make intelligence <strong>truly permissionless</strong>.</p><p>This is DeAI.</p><p>Let’s not just watch it happen, <strong>let’s lead it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8498a014f371" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spinning Up EigenLayer AVSs using Othentic on Holešky: A Step-by-Step Guide for Devs]]></title>
            <link>https://medium.com/@kccreations1704/spinning-up-eigenlayer-avss-using-othentic-on-hole%C5%A1ky-a-step-by-step-guide-for-devs-fb5c47065167?source=rss-c954e1a33b4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb5c47065167</guid>
            <dc:creator><![CDATA[Kaushik KC]]></dc:creator>
            <pubDate>Mon, 19 May 2025 15:54:27 GMT</pubDate>
            <atom:updated>2025-05-19T15:54:27.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Yo frens !!</p><p>Just cooked up a quick AVS using the</p><p><a href="https://x.com/0xOthentic">@0xOthentic</a></p><p>framework — it’s a GitHub Star Checker that grabs the star count of any repo &amp; verifies it. Dead simple and kinda cool tbh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HNRocKcw02l8ZCOIadVKw.png" /></figure><p>So what’s an AVS anyway?</p><p>AVS = <strong>Autonomous Verifiable Services</strong>. Basically a decentralized setup where you run tasks and verify ’em using a bunch of operators. Othentic makes spinning one up feel like cheating.</p><p>The Vibe:</p><p>We’re building a 2-part setup:</p><p>-&gt; Execution — Pulls star count from GitHub</p><ul><li>&gt; Validation — Checks if that count is real or cap</li></ul><p><strong>Execution Flow</strong></p><p>Here’s what the execution side does:</p><p>Takes in the GitHub repo as input</p><p>Calls GitHub API to get star count</p><p>Wraps it all in a “proof” w/ timestamp</p><p>Sends it off for validation</p><p>Literally just fetch &amp; wrap.</p><p><strong>Validation Flow</strong></p><p>Validation does its own digging:</p><p>Takes the proof from exec</p><p>Hits GitHub API again, independently</p><p>Compares the result</p><p>If the stars match &amp; the timestamp’s fresh — boom, verified</p><p><strong>Set up yo’ gear</strong></p><p>Before we do anything, we need to get our system 💯 ready.</p><p><strong>Node Version Check</strong></p><p>Othentic is real picky — you must use Node v22.6.0 (no versions above or below).</p><pre>nvm install 22.6.0<br>nvm use 22.6.0</pre><p><strong>Install Yarn &amp; Docker</strong></p><p>Basic dev hygiene, bruh.</p><pre>npm i -g yarn</pre><p># and install Docker from here:</p><p><a href="https://docs.docker.com/get-docker/">https://docs.docker.com/get-docker/</a></p><p><strong>Othentic CLI — the magic wand</strong></p><p>Install the CLI globally:</p><pre>npm i -g @othentic/othentic-cli<br>othentic-cli -v # just to check it&#39;s vibing</pre><p><strong>Clone and prep the repo like a G</strong></p><pre>git clone https://github.com/KaushikKC/git-star-fetch-avs<br>cd git-star-fetch-avs<br>rm -rf .git<br>cp .env.example .env</pre><p>Boom. Local setup ready.</p><p><strong>(Optional But Super Useful) — Create Operator Accounts Automatically</strong></p><p>Don’t have wallets for validators yet? Run this slick little script and it’ll spit out 3 random operator accounts and fund them with Holesky ETH.</p><p>Create a file called createOperators.sh and paste this bad boi in:</p><pre>source .env<br>RPC=https://rpc.ankr.com/eth_holesky/80921f6657bf5ad15fb4577b369c28c4f84a652625322575f085fceaa7e47653<br>OPERATOR_ACCOUNT1=$(openssl rand -hex 32)<br>OPERATOR_ADDRESS1=$(cast wallet address - private-key $OPERATOR_ACCOUNT1)<br>OPERATOR_ACCOUNT2=$(openssl rand -hex 32)<br>OPERATOR_ADDRESS2=$(cast wallet address - private-key $OPERATOR_ACCOUNT2)<br>OPERATOR_ACCOUNT3=$(openssl rand -hex 32)<br>OPERATOR_ADDRESS3=$(cast wallet address - private-key $OPERATOR_ACCOUNT3)<br>echo &quot;Transferring 0.02 ETH on Holesky to all accounts…&quot;<br>cast send - rpc-url $RPC - private-key $PRIVATE_KEY_DEPLOYER - value 0.02ether $OPERATOR_ADDRESS1<br>cast send - rpc-url $RPC - private-key $PRIVATE_KEY_DEPLOYER - value 0.02ether $OPERATOR_ADDRESS2<br>cast send - rpc-url $RPC - private-key $PRIVATE_KEY_DEPLOYER - value 0.02ether $OPERATOR_ADDRESS3<br>echo &quot;✅ Done. Here&#39;s your crew:&quot;<br>echo &quot;👤 OP1 PK: $OPERATOR_ACCOUNT1 | Addr: $OPERATOR_ADDRESS1&quot;<br>echo &quot;👤 OP2 PK: $OPERATOR_ACCOUNT2 | Addr: $OPERATOR_ADDRESS2&quot;<br>echo &quot;👤 OP3 PK: $OPERATOR_ACCOUNT3 | Addr: $OPERATOR_ADDRESS3&quot;</pre><p>Run it using:</p><pre>sh createOperators.sh</pre><p>Or make it executable and run:</p><pre>chmod a+x createOperators.sh &amp;&amp; ./createOperators.sh</pre><p><strong>Wallets n Funding</strong></p><p>You need 4 hot wallets (MetaMask/Foundry — your call):</p><p><strong>Role UseMin Funds Required</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MpiNZ0YT1zbh7F6jGHj6eg.png" /></figure><p>Pro-tip: Use the key-gen script in the repo to create these wallets fast af</p><p><strong>Plug your privates in (to .env)</strong></p><p>Open up .env and drop all your private keys like this:</p><pre>PRIVATE_KEY_DEPLOYER=&lt;yo_key&gt;<br>PRIVATE_KEY_PERFORMER=&lt;yo_key&gt;<br>PRIVATE_KEY_AGGREGATOR=&lt;yo_key&gt;<br>PRIVATE_KEY_ATTESTER1=&lt;yo_key&gt;<br>PRIVATE_KEY_ATTESTER2=&lt;yo_key&gt;<br>PRIVATE_KEY_ATTESTER3=&lt;yo_key&gt;</pre><p>Then add some network juice:</p><pre>L1_CHAIN=17000<br>L2_CHAIN=80002<br>L1_RPC=https://ethereum-holesky-rpc.publicnode.com<br>L2_RPC=https://rpc-amoy.polygon.technology</pre><p><strong>Time to Deploy This Beast</strong></p><p>Make sure your deployer wallet has enough holETH + POL. Then run:</p><pre>othentic-cli network deploy \<br> - l1-chain holesky \<br> - l2-chain amoy \<br> - rewards-token 0x94373a4919B3240D86eA41593D5eBa789FEF3848 \<br> - l1-initial-deposit 1000000000000000000 \<br> - l2-initial-deposit 2000000000000000000 \<br> - name github-avs</pre><p>It’ll ask for the deployer’s private key — paste it in when asked (don’t fumble this step).</p><p><strong>Register Your Ops (a.k.a. The Squad)</strong></p><p><strong>-&gt; Join the Eigenlayer Club</strong></p><p>Run this for each operator (3 times):</p><pre>othentic-cli operator register-eigenlayer</pre><p>Fill in the form with name, Twitter, etc. Style it up</p><p><strong>- &gt; Stack some stETH (restake yo ETH)</strong></p><p>Run this for all 3:</p><pre>othentic-cli operator deposit</pre><p>Choose stETH and throw in 0.012 or more.</p><p><strong>- &gt; Sign up to your own AVS</strong></p><p>Last one:</p><pre>othentic-cli operator register</pre><p>Paste the operator’s key → enter AVS governance contract address → press enter to keep default rewards receiver.</p><p><strong>Boot the AVS Network</strong></p><p>Time to light this AVS engine up</p><pre>docker-compose up - build</pre><p>This command spins up:</p><p>- Execute service</p><p>- Validation service</p><p>- Attesters</p><p>- Aggregator</p><p>- IPFS via Pinata</p><p>If you gotta tweak chain IDs or RPCs, just hop into docker-compose.yml and edit.</p><p><strong>Hit That Task Trigger</strong></p><p>In a separate terminal (yeah, open another one), run this bad boi:</p><pre>curl -X POST http://localhost:4003/task/execute</pre><p>Watch Docker logs like it’s Matrix. You’ll see:</p><p>- task getting executed</p><p>- attested</p><p>- validated</p><p>- then aggregated to an on-chain tx hash</p><p>That’s it. You just deployed your own AVS like an absolute unit</p><p>Now go flex on-chain.</p><p>Catch the full guide if you’re the read-the-docs type: <a href="https://docs.othentic.xyz/main/avs-framework/quick-start">https://docs.othentic.xyz/main/avs-framework/quick-start</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb5c47065167" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>