<?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 Ted Tanner Jr on Medium]]></title>
        <description><![CDATA[Stories by Ted Tanner Jr on Medium]]></description>
        <link>https://medium.com/@tctjr?source=rss-9b6bc0eb69fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VfXcKWeDCpMm3VnAtfgRpQ.jpeg</url>
            <title>Stories by Ted Tanner Jr on Medium</title>
            <link>https://medium.com/@tctjr?source=rss-9b6bc0eb69fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:03:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tctjr/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[A Book Review: Tech Confidential — The Insiders’ Playbook for Daring Entrepreneurs]]></title>
            <link>https://medium.com/@tctjr/a-book-review-tech-confidential-the-insiders-playbook-for-daring-entrepreneurs-ad08d35bd3e2?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad08d35bd3e2</guid>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 01:02:33 GMT</pubDate>
            <atom:updated>2025-11-13T01:02:33.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Book Review: Tech Confidential — The Insiders’ Playbook for Daring Entrepreneurs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkWOLmSGLlTy0N2bVMjqAA.jpeg" /></figure><p>Sometime ago, I was contacted by <a href="https://www.linkedin.com/in/denisekgosnell/">Dr. Denise Koessler Gosnell</a> about being interviewed by her and her co-author, <a href="https://www.linkedin.com/in/kathryn-erickson/">Ms. Kathryn Erickson</a>. I said sure, why not? Wow, Oh Dear Readers. Just WOW!</p><blockquote><em>Our Careers Are Fairytales but the part we are getting wrong is that we are the main characters ~ Tech Confidential</em></blockquote><p>First, let’s set the context. Both of the authors hail from The South, as do i. That Southern grit? It’s in their DNA, turnin’ sweet tea into startup rocket fuel. Makes Tech Confidential feel like porch wisdom with a tech twist: polite as pie, sharp as a tack. Y’all get it-hospitality hides the hustle. The Awe Shucks Black Majik is being tossed around, but don’t let them aim it at you! Blessin’ hearts left and right! Both ladies have a deep, illustrious, successful background in technology in the coding and design trenches as well as boardrooms. NOTE: The above links to their LinkedIn profiles.</p><blockquote><em>In a Universe where literally nobody knows everything, or anything with total certainty, curiosity is the only compass that really matters. ~ Tech Confidential</em></blockquote><p>However, do not let the Southern Charm fool you, Tech Confidential: The Insider’s Playbook for Daring Entrepreneurs by Denise Koessler Gosnell (Dr DKG, as I call her) and Kathryn (Kat) Erickson is a no-holds-barred survival guide for the tech jungle. Let’s crack this thing open like an encrypted drive. We’ll zoom in on those “overclocked misfits” pushing tech to its extremes, how the best in the biz often chase performance highs in their off-hours, and the book’s razor-sharp psychological takedown of Silicon Valley as a chaotic Disneyland gone rogue. Spoiler: It’s equal parts exhilarating and exhausting, especially for those who have actually lived “the thing”.</p><blockquote><em>Sometimes your passion can have such a stronghold that you get completely disconnected from reality. ~ Tech Confidential</em></blockquote><h3>The Overclocked Misfits: Tech’s Extreme Edge-Dwellers</h3><p>At its core, <em>Tech Confidential</em> paints Silicon Valley not as some shiny startup Shangri-La, but as a “modern-day Colosseum where overclocked misfits battle for their shot at unicorn status and glory.” Ka-Boom! Right there in the intro, Denise and Kat nail it. “Overclocked” is pure genius metaphor: In hardware terms, it’s cranking your CPU beyond factory specs for that extra juice, risking meltdown for marginal gains. Translate to humans? We’re talking the wired weirdos, the brilliant oddballs who treat code as their personal Everest, scaling impossible heights while the rest of us mere mortals sip coffee (or tea) and debug Excel macros.</p><blockquote><em>Do I want this job? You have to want the hour by hour pattern to life that comes with it. ~ Tech Confidential</em></blockquote><p>These misfits are the ones operating at extreme levels, what we do in tech when the stakes are existential. Think: Engineers pulling 80-hour weeks to ship a product that’s “one breath away from the company’s last gasp,” as the book puts it. Or, founders navigating ego-fueled boardrooms where one wrong pivot means lights out and an end to your entire career. The extremes? It’s not just coding marathons; it’s the psychological warfare of toxic teams, where “brilliant oddballs” clash like gladiators. Denise and Kat don’t glorify it; they expose how this overclocking fries circuits: Burnout, identity crises, “Can I do this?”, and that nagging voice asking, “Who the hell have I become?”</p><p>i’ve seen it firsthand, hell, lived it. Push too hard, and you’re not innovating; you’re imploding. Not committing code? You’re going backward. Their advice? Tame the ego, embrace the misfit vibe without letting it consume you. Solid playbook stuff.</p><blockquote><em>In the end, hapiness will come from how well you align your work with the rythym of your soul, not how long you endured a shi — y situation. ~ Tech Confidential</em></blockquote><h3>The Best Have Performance Hobbies: Fuel for the Fire</h3><p>Here’s where it gets fascinating: The duo hints that the top performers these overclocked elites don’t just grind in the office; they channel that intensity into “performance hobbies” outside the Valley’s vortex. The book doesn’t list ’em out like a checklist, but it weaves in the idea that the best misfits thrive by balancing extremes with outlets that demand precision, speed, and flow. Think racing cars, shredding guitars, in a band, or crushing ultra-marathons, painting, hobbies where performance is measurable, adrenaline-fueled, and a reset from the abstract chaos of scaling startups.</p><blockquote><em>Creating technology done well is a beautiful experience. ~ Tech Confidential</em></blockquote><p>Why? Because tech at extreme levels is a mind game: Endless ambiguity, pivots, and failures. It’s that dopamine hit without the boardroom BS. The authors underscore this indirectly through anecdotes of leaders who survive by “Moneyball-ing the market,” analyzing plays like a sports stat geek, implying the crossover. Most of the best i’ve been asked to mentor (and yeah, Denise fits here) have these side quests: It keeps the overclock from redlining into burnout.</p><p>In fact, this is one of my interview questions: So, what do you do for hobbies? Reference Sidenote: I asked this to a yet-to-be college graduate on the eve of her bachelor’s in computer science. She answered: Commit to Apache Open Source Projects without hesitation. She was asked this question on a Thursday at 11PM EST and committed code in production (professionally) on the following Monday.</p><p>Pro tip from the book: If your hobby doesn’t recharge your batteries, it’s just another grind. Find one that performs as hard as you do and makes you dump all ambiguity and focus on the moment.</p><blockquote><em>i’d rather work with a computer science intern eager to learn than someone who dismisses questions and steam rolls the conversation with their own vision. Skills can be taught. Process can be learned. But I can’t teach character. ~ Tech Confidential</em></blockquote><h3>Psychological Deep Dive: Silicon Valley’s Disneyland Mayhem</h3><p>Now, the real meat of the book’s psychological autopsy on Silicon Valley as a twisted Disneyland. Denise and Kat don’t mince words: What looks like a magical kingdom of innovation free kombucha ( i personally hate that stuff), zip hoodies, and world-changing dreams is actually a mayhem machine (think Project Mayhem from Fight Club), a facade where the rides break down and the characters turn feral. They call it a “glossy utopia” sold to wide-eyed youth, but peel back the pixie dust, and it’s chaos: Overclocked misfits in a Colosseum of cutthroat politics, where success warps your soul faster than whatever happens out of Burning Man.</p><blockquote><em>Software Engineering, the real real business of creating, is about helping humans get something done all the while juggling twenty grenades and dodging burning cars. ~ Tech Confidential</em></blockquote><p>Psychologically? It’s brutal. The authors dissect how this environment fosters imposter syndrome on steroids (the best horse juice money can buy), you’re always one funding round from irrelevance, transforming dreamers into hardened cynics. That “pre-Silicon Valley self” they mention? The one who might hate the post-unicorn version of you? That’s the mayhem: The illusion of endless opportunity masks the toll — toxic colleagues, relentless pressure, and a culture that “chews people up and spits them out in the name of innovation.” It’s like Disneyland after hours: The magic’s off, the animatronics are glitchy, and Mickey’s got a knife. Their analysis hits deep: Empathy as a survival tool, detoxing from ego-driven narratives, and reclaiming joy amid the wreckage. Humbled here again, i’ve opened doors, but books like this open minds to the mental minefield of the true Human Condition.</p><blockquote><em>The only thing that matters is putting the fires about before the company looses another million dollars. ~ Tech Confidential</em></blockquote><h3>Deeper Cuts, Lasting Lessons, and Impressions</h3><p>In a sea of tech tomes preaching unicorn fairy tales, this one’s refreshingly human. It tackles the mental toll of impostor syndrome while creating the first of anything considered impossible, work-life imbalance, and toxic teams, and flips it into actionable plays. For daring entrepreneurs (or anyone slinging code in startups), it’s gold: Tips on networking without selling out, scaling without imploding, and leading with empathy in a world that rewards ruthlessness.</p><blockquote><em>One of the most coveted roles to find in tech is being a strategic advisor. The strategic advisor has two modes: translating the lastest tech trend into money or chillin and smokin bud. ~ Tech Confidential</em></blockquote><p>Pro tip: If you’re bootstrapping, leading a team, or restructuring a company in today’s <a href="https://www.tedtanner.org/frontier-firms-automating-and-amplifying-the-best-fewest/">Frontier Firm Culture</a>, grab the hardcover; it’s got that tactile feel for late-night underlining, as you can see in these pictures. And yeah, the insights scale beyond the Valley; whether you’re in AI, biotech, or plain old SaaS, heck, even life, this playbook’s universal and for many a lifeline.</p><p><em>Tech Confidential</em> isn’t just a read; it’s a mirror for Us overclocked souls. It reminds us that tech’s extremes forge legends but shatter spirits if unchecked. Balance with performance hobbies, question Disneyland After It Closes delusion, and thrive without the self-sacrifice.</p><p>If you’re in the trenches, dive in; it’ll save your sanity. If you are a partner of one of these misfits, read it. It will help you understand them. If you are just curious — like when they used to have bus tours of Silicon Valley, where we were in an aquarium — read it.</p><blockquote><em>Your Great Idea is like their next Porsche; interesting but replaceable. (On VCs) ~ Tech Confidential</em></blockquote><p>However, for those who know you know — it is what We do. We cannot turn it off. As i say “Money and Code Never Sleep!” Send Us yet into another Colosseum! #EverForward!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*rmwzD514uq_Umiek" /></figure><p>Awe Shucks! Yall Aint Had To Do All That!</p><p>DISCLAIMER: i make no royalties from this review or the book. To Dr DKG and Kat thank you i am so humbled. To Kat, you caught me off guard during the interview (which I’m hardly ever caught off guard) when you asked “Ted, what is YOUR exit?” i think about that question ever since you asked me. i might just pull a Jon Galt? Denise, i don’t even know what to say about being mentioned in this fantastic tome. i didn’t open the door, i just said there is a door over “yonder somewhere”. Again, so humbled, ladies. Much Gratitude to Both Of You.</p><p>Awe Shucks Yall Aint Had To Do All That.</p><p>Just Buy The Book <a href="https://www.amazon.com/s?k=tech+confidential&amp;adgrpid=187184189235&amp;hvadid=779542338408&amp;hvdev=c&amp;hvexpln=0&amp;hvlocphy=9189439&amp;hvnetw=g&amp;hvocijid=17372455513823446118--&amp;hvqmt=e&amp;hvrand=17372455513823446118&amp;hvtargid=kwd-2188120904333&amp;hydadcr=22536_13730665_8233&amp;mcid=c9aa58985d483c5ca6bd7862a9f8a364&amp;tag=googhydr-20&amp;ref=pd_sl_38l1xujfmj_e">HERE</a> &lt;- Click The Clicker Thing</p><p>Until then, Y’all Stay Overclocked, (but not fried).</p><p><a href="https://www.youtube.com/watch?v=pD6N7VpKo8s">#iwishyouwater</a> &lt;- first swell of the winter at Pipe.</p><p><a href="https://x.com/tctjr?lang=en">//@tctjr</a></p><p>original link here <a href="https://www.tedtanner.org/a-book-review-tech-confidential-the-insiders-playbook-for-daring-entreprenuers/">https://www.tedtanner.org/a-book-review-tech-confidential-the-insiders-playbook-for-daring-entreprenuers/</a></p><p>Muzak To Blog By: Night Visions by Ancestral Voices. Audio Shamanism at its finest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad08d35bd3e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Survey Of Architectures And Methodologies For Distributed LLM Dissaggregation]]></title>
            <link>https://medium.com/@tctjr/a-survey-of-architectures-and-methodologies-for-distributed-llm-dissaggregation-febfcbb4d5cd?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/febfcbb4d5cd</guid>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 15:49:01 GMT</pubDate>
            <atom:updated>2025-08-03T15:50:19.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BpO3fI31yoFcfDKVMZXqWQ.png" /></figure><p>I was kicking back in my Charleston study this morning, drinking my usual unsweetened tea in a mason jar, the salty breeze slipping through the open window like a whisper from the Charleston Harbor, carrying that familiar tang of low tide “pluff mud” and distant rain. The sun was filtering through the shutters, casting long shadows across my desk littered with old notes on distributed systems engineering, when I dove into this survey on architectures for distributed LLM disaggregation. It’s a dive into the tech that’s pushing LLMs beyond their limits. As i read the numerous papers and assembled commonalities, it hit me how these innovations echo the battles many have fought scaling AI/ML in production, raw, efficient, and unapologetically forward. Here’s the breakdown, with the key papers linked for those ready to dig deeper.</p><p>This is essentially the last article in a trilogy. The sister survey is a blog <a href="https://www.tedtanner.org/a-survey-of-technical-approaches-for-distributed-ai-in-sensor-networks/">A Survey of Technical Approaches For Distributed AI In Sensor Networks</a>. Then, for a top-level view, i wrote <a href="https://www.tedtanner.org/snakebyte21-the-token-arms-race-architectures-behind-long-context-foundation-models/">SnakeByte[21]: The Token Arms Race: Architectures Behind Long-Context Foundation Models</a>, so you’ll have all views of a complete system, sensors-&gt;distributed compute methods-&gt;context engineering.</p><p>NOTE: By the time this is published, a whole new set of papers will come out, and i wrote (and read the papers) in a week.</p><h3>Overview</h3><p>Distributed serving of LLMs presents significant technical challenges driven by the immense scale of contemporary models, the computational intensity of inference, the autoregressive nature of token generation, and the diverse characteristics of inference requests. Efficiently deploying LLMs across clusters of hardware accelerators (predominantly GPUs and NPUs) necessitates sophisticated system architectures, scheduling algorithms, and resource management techniques to achieve low latency, high throughput, and cost-effectiveness while adhering to Service Level Objectives (SLOs). As you read the LLM survey, think in terms of deployment architectures:</p><p>Layered AI System Architecture:</p><ul><li>Sensor Layer: IoT, Cameras, Radar, LIDAR, electro-mag, FLIR etc</li><li>Edge/Fog Layer: Edge Gateways, Inference Accelerators, Fog Nodes</li><li>Cloud Layer: Central AI Model Training, Orchestration Logic, Data Lake</li></ul><p>Each layer plays a role in collecting, processing, and managing AI workloads in a distributed system.</p><h3>Distributed System Architectures and Disaggregation</h3><p>Modern distributed Large Language Models serving platforms are moving beyond monolithic deployments to adopt disaggregated architectures. A common approach involves separating the computationally intensive prompt processing (prefill phase) from the memory-bound token generation (decode phase). This disaggregation addresses the bimodal latency characteristics of these phases, mitigating pipeline bubbles that arise in pipeline-parallel deployments <a href="https://arxiv.org/abs/2403.01876">KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving</a>. As a reminder in LLMs, KV cache stores key and value tensors from previous tokens during inference. In transformer-based models, the attention mechanism computes key (K) and value (V) vectors for each token in the input sequence. Without caching, these would be recalculated for every new token generated, leading to redundant computations and inefficiency.</p><p>Systems like <a href="https://arxiv.org/abs/2407.00079">Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving</a> propose a KVCache-centric disaggregated architecture with dedicated clusters for prefill and decoding. This separation allows for specialized resource allocation and scheduling policies tailored to each phase’s demands. Similarly, <a href="https://arxiv.org/abs/2408.08147">P/D-Serve: Serving Disaggregated Large Language Model at Scale</a> focuses on serving disaggregated LLMs at scale across tens of thousands of devices, emphasizing fine-grained P/D organization and dynamic ratio adjustments to minimize inner mismatch and improve throughput and Time-to-First-Token (TTFT) SLOs. <a href="https://arxiv.org/abs/2501.14743">KVDirect: Distributed Disaggregated LLM Inference</a> explores distributed disaggregated inference by optimizing inter-node KV cache transfer using tensor-centric communication and a pull-based strategy.</p><p>Further granularity in disaggregation can involve partitioning the model itself across different devices or even separating attention layers, as explored by <a href="https://arxiv.org/abs/2401.02669">Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache</a>, which disaggregates attention layers to enable flexible resource scheduling and enhance memory utilization for long contexts. <a href="https://arxiv.org/abs/2504.09285">DynaServe: Unified and Elastic Execution for Dynamic Disaggregated LLM Serving</a> unifies and extends both colocated and disaggregated paradigms using a micro-request abstraction, splitting requests into segments for balanced load across unified GPU instances.</p><p>The distributed nature also necessitates mechanisms for efficient checkpoint loading and live migration. <a href="https://arxiv.org/abs/2401.14351">ServerlessLLM: Low-Latency Serverless Inference for Large Language Models</a> proposes a system for low-latency serverless inference that leverages near-GPU storage for fast multi-tier checkpoint loading and supports efficient live migration of LLM inference states.</p><h3>Scheduling and Resource Orchestration</h3><p>Effective scheduling is paramount in distributed LLM serving due to heterogeneous request patterns, varying SLOs, and the autoregressive dependency. Existing systems often suffer from head-of-line blocking and inefficient resource utilization under diverse workloads.</p><p>Preemptive scheduling, as implemented in <a href="https://arxiv.org/abs/2305.05920">Fast Distributed Inference Serving for Large Language Models</a>, allows for preemption at the granularity of individual output tokens to minimize latency. FastServe employs a novel skip-join Multi-Level Feedback Queue scheduler leveraging input length information. <a href="https://arxiv.org/abs/2406.03243">Llumnix: Dynamic Scheduling for Large Language Model Serving</a> introduces dynamic rescheduling across multiple model instances, akin to OS context switching, to improve load balancing, isolation, and prioritize requests with different SLOs via an efficient live migration mechanism.</p><p>Prompt scheduling with KV state sharing is a key optimization for workloads with repetitive prefixes. <a href="https://arxiv.org/abs/2407.00023">Preble: Efficient Distributed Prompt Scheduling for LLM Serving</a> is a distributed platform explicitly designed for optimizing prompt sharing through a distributed scheduling system that co-optimizes KV state reuse and computation load-balancing using a hierarchical mechanism. <a href="https://arxiv.org/abs/2406.17565">MemServe: Context Caching for Disaggregated LLM Serving with Elastic Memory Pool</a> integrates context caching with disaggregated inference, supported by a global scheduler that enhances cache reuse through a global prompt tree-based locality-aware policy. Locality-aware fair scheduling is further explored in <a href="https://arxiv.org/abs/2501.14312">Locality-aware Fair Scheduling in LLM Serving</a>, which proposes Deficit Longest Prefix Match (DLPM) and Double Deficit LPM (D2LPM) algorithms for distributed setups to balance fairness, locality, and load-balancing.</p><p>Serving multi-SLO requests efficiently requires sophisticated queue management and scheduling. <a href="https://arxiv.org/abs/2407.00047">Queue management for slo-oriented large language model serving</a> is a queue management system that handles batch and interactive requests across different models and SLOs using a Request Waiting Time (RWT) Estimator and a global scheduler for orchestration. <a href="https://arxiv.org/abs/2504.08784">SLOs-Serve: Optimized Serving of Multi-SLO LLMs</a> optimizes the serving of multi-stage LLM requests with application- and stage-specific SLOs by customizing token allocations using a multi-SLO dynamic programming algorithm. <a href="https://arxiv.org/abs/2504.15720">SeaLLM: Service-Aware and Latency-Optimized Resource Sharing for Large Language Model Inference</a> proposes a service-aware and latency-optimized resource sharing framework for large language model inference.</p><p>For complex workloads like agentic programs involving multiple LLM calls with dependencies, traditional request-level scheduling is suboptimal. <a href="https://arxiv.org/abs/2502.13965">Autellix: An Efficient Serving Engine for LLM Agents as General Programs</a> treats programs as first-class citizens, using program-level context to inform scheduling algorithms that preempt and prioritize LLM calls based on program progress, demonstrating significant throughput improvements for agentic workloads. <a href="https://arxiv.org/abs/2405.19888">Parrot: Efficient Serving of LLM-based Applications with Semantic Variable</a> focuses on end-to-end performance for LLM-based applications by introducing the Semantic Variable abstraction to expose application-level knowledge and enable data flow analysis across requests. <a href="https://arxiv.org/abs/2406.00059">Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Execution</a> optimizes for tool-aware LLM serving by enabling tool partial execution alongside LLM decoding.</p><h3>Memory Management and KV Cache Optimizations</h3><p>The KV cache’s size grows linearly with sequence length and batch size, becoming a major bottleneck for GPU memory and throughput. Distributed serving exacerbates this by requiring efficient management across multiple nodes.</p><p>Effective KV cache management involves techniques like dynamic memory allocation, swapping, compression, and sharing. <a href="https://arxiv.org/abs/2403.01876">KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving</a> proposes KV-cache streaming for fast, fault-tolerant serving, addressing GPU memory overprovisioning and recovery times. It utilizes microbatch swapping for efficient GPU memory management. <a href="https://arxiv.org/abs/2403.01136">On-Device Language Models: A Comprehensive Review</a> presents techniques for managing persistent KV cache states including tolerance-aware compression, IO-recompute pipelined loading, and optimized chunk lifecycle management.</p><p>In distributed environments, sharing and transferring KV cache states efficiently are critical. MemServe introduces MemPool, an elastic memory pool managing distributed memory and KV caches. <a href="https://arxiv.org/abs/2401.02669">Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache</a> leverages a pooled GPU memory strategy across a cluster. <a href="https://arxiv.org/abs/2401.02669">Prefetching KV-cache for LLM Inference with Dynamic Profiling</a> proposes prefetching model weights and KV-cache from off-chip memory to on-chip cache during communication to mitigate memory bottlenecks and communication overhead in distributed settings. <a href="https://arxiv.org/abs/2501.14743">KVDirect: Distributed Disaggregated LLM Inference</a> specifically optimizes KV cache transfer using a tensor-centric communication mechanism.</p><h3>Handling Heterogeneity and Edge/Geo-Distributed Deployment</h3><p>Serving LLMs cost-effectively often requires utilizing heterogeneous hardware clusters and deploying models closer to users on edge devices or across geo-distributed infrastructure.</p><p><a href="https://arxiv.org/abs/2406.01566">Helix: Serving Large Language Models over Heterogeneous GPUs and Networks via Max-Flow</a> addresses serving LLMs over heterogeneous GPUs and networks by formulating inference as a max-flow problem and using MILP for joint model placement and request scheduling optimization. <a href="https://arxiv.org/abs/2403.01136">LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization</a> supports efficient serving on heterogeneous GPU clusters through adaptive model quantization and phase-aware partition. <a href="https://arxiv.org/abs/2405.14636">Efficient LLM Inference via Collaborative Edge Computing</a> leverages collaborative edge computing to partition LLM models and deploy them on distributed devices, formulating device selection and partition as an optimization problem.</p><p>Deploying LLMs on edge or geo-distributed devices introduces challenges related to limited resources, unstable networks, and privacy. <a href="https://arxiv.org/abs/2405.14636">PerLLM: Personalized Inference Scheduling with Edge-Cloud Collaboration for Diverse LLM Services</a> provides a personalized inference scheduling framework with edge-cloud collaboration for diverse LLM services, optimizing scheduling and resource allocation using a UCB algorithm with constraint satisfaction. <a href="https://arxiv.org/abs/2312.08361">Distributed Inference and Fine-tuning of Large Language Models Over The Internet</a> investigates inference and fine-tuning over the internet using geodistributed devices, developing fault-tolerant inference algorithms and load-balancing protocols. <a href="https://arxiv.org/abs/2507.05043">MoLink: Distributed and Efficient Serving Framework for Large Models</a> is a distributed serving system designed for heterogeneous and weakly connected consumer-grade GPUs, incorporating techniques for efficient serving under limited network conditions. <a href="https://arxiv.org/abs/2506.19030">WiLLM: an Open Framework for LLM Services over Wireless Systems</a> proposes deploying LLMs in core networks for wireless LLM services, introducing a “Tree-Branch-Fruit” network slicing architecture and enhanced slice orchestration.</p><p>On the of most recent papers that echo my sentiment from years ago where is i’ve said “Vertically Trained Horizontally Chained” (maybe i should trademark that …) is <a href="https://arxiv.org/pdf/2506.02153">Small Language Models are the Future of Agentic AI</a> where they lay out the position that specific task LLMs are sufficiently robust, inherently more suitable, and necessarily more economical for many invocations in agentic systems, and are therefore the future of agentic AI. The argumentation is grounded in the current level of capabilities exhibited by these specialized models, the common architectures of agentic systems, and the economy of LM deployment. They further argue that in situations where general-purpose conversational abilities are essential, heterogeneous agentic systems (i.e., agents invoking multiple different models chained horizontally) are the natural choice. They discuss the potential barriers for the adoption of vertically trained LLMs in agentic systems and outline a general LLM-to-specific chained model conversion algorithm.</p><h3>Other Optimizations and Considerations</h3><p>Quantization is a standard technique to reduce model size and computational requirements. <a href="https://arxiv.org/abs/2310.19102">Atom: Low-bit Quantization for Efficient and Accurate LLM Serving</a> proposes a low-bit quantization method (4-bit weight-activation) to maximize serving throughput by leveraging low-bit operators and reducing memory consumption, achieving significant speedups over FP16 and INT8 with negligible accuracy loss.</p><p>Splitting or partitioning models can also facilitate deployment across distributed or heterogeneous resources. <a href="https://arxiv.org/abs/2410.10759">SplitLLM: Collaborative Inference of LLMs for Model Placement and Throughput Optimization</a> designs a collaborative inference architecture between a server and clients to enable model placement and throughput optimization. A related concept is Split Learning for fine-tuning, where models are split across cloud, edge, and user devices <a href="https://arxiv.org/abs/2312.08361">Hierarchical Split Learning for Large Language Model over Wireless Network</a>. <a href="https://arxiv.org/abs/2404.18322">BlockLLM: Multi-tenant Finer-grained Serving for Large Language Models</a> enables multi-tenant finer-grained serving by partitioning models into blocks, allowing component sharing, adaptive assembly, and per-block resource configuration.</p><h3>Performance and Evaluation Metrics</h3><p>Evaluating and comparing distributed LLM serving platforms requires appropriate metrics and benchmarks. <a href="https://arxiv.org/abs/2405.11299">The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving</a> suggests a trade-off between serving context length ©, serving accuracy (A), and serving performance (P). Developing realistic workloads and simulation tools is crucial. <a href="https://arxiv.org/abs/2401.17644">BurstGPT: A Real-world Workload Dataset to Optimize LLM Serving Systems</a> provides a real-world workload dataset for optimizing LLM serving systems, revealing limitations of current optimizations under realistic conditions. <a href="https://arxiv.org/abs/2408.05499">LLMServingSim: A HW/SW Co-Simulation Infrastructure for LLM Inference Serving at Scale</a> is a HW/SW co-simulation infrastructure designed to model dynamic workload variations and heterogeneous processor behaviors efficiently. <a href="https://arxiv.org/abs/2408.00008">ScaleLLM: A Resource-Frugal LLM Serving Framework by Optimizing End-to-End Efficiency</a> focuses on a holistic system view to optimize LLM serving in an end-to-end manner, identifying and addressing bottlenecks beyond just LLM inference.</p><h3>Conclusion</h3><p>The landscape of distributed LLM serving platforms is rapidly evolving, driven by the need to efficiently and cost-effectively deploy increasingly large and complex models. Key areas of innovation include the adoption of disaggregated architectures, sophisticated scheduling algorithms that account for workload heterogeneity and SLOs, advanced KV cache management techniques, and strategies for leveraging diverse hardware and deployment environments. While significant progress has been made, challenges remain in achieving optimal trade-offs between performance, cost, and quality of service (QOS) across highly dynamic and heterogeneous real-world scenarios.</p><p>As the sun set and the neon glow of my screen dimmed, i wrapped this survey up, leaving me pondering the endless horizons of AI/ML scaling like waves crashing on the shore, relentless and full of promise and thinking how incredible it is to be working in these areas where what we have dreamed for decades has come to fruition?</p><p>Until Then,</p><p>#iwishyouwater</p><p>Ted ℂ. Tanner Jr. (@tctjr) / X</p><p>Original Link -&gt; <a href="https://www.tedtanner.org/a-survey-of-architectures-and-methodologies-for-distributed-llm-dissaggregation/">https://www.tedtanner.org/a-survey-of-architectures-and-methodologies-for-distributed-llm-dissaggregation/</a></p><p>MUZAK TO BLOG BY: Vangelis, “L’apocalypse de animax (remastered). Vangelis is famous for “Chariots Of Fire” and “Blade Runner” Soundtracks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=febfcbb4d5cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Survey of Technical Approaches For Distributed AI In Sensor Networks]]></title>
            <link>https://medium.com/@tctjr/a-survey-of-technical-approaches-for-distributed-ai-in-sensor-networks-b98999bd82a2?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98999bd82a2</guid>
            <category><![CDATA[ai-orchestration]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[sensors]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 18:16:45 GMT</pubDate>
            <atom:updated>2025-07-22T18:16:45.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*1l9G8ShDY6uimi4AOi4Hdg.png" /><figcaption>Grok4 Idea Of a DAI</figcaption></figure><p>Distributed Artificial Intelligence (DAI) within sensor networks (SN) involves deploying AI algorithms and models across a network of spatially distributed sensor nodes rather than relying solely on centralized cloud processing. This paradigm shifts computation closer to the data source, bringing the data to the compute, offering potential benefits in terms of reduced communication latency, lower bandwidth usage, enhanced privacy, increased system resilience, and improved scalability for large-scale IoT and pervasive computing deployments. The operational complexity of such systems necessitates sophisticated orchestration mechanisms to manage the distributed AI workloads, sensor resources, and heterogeneous compute infrastructure spanning from edge devices to cloud data centers. This article will survey methods for distributed smart sensor technologies, along with considerations for implementing AI algorithms at these junctions.</p><p>Implementing AI functions in a distributed sensor network setting often involves adapting centralized algorithms or devising novel distributed methods. Key technical areas include distributed estimation, detection, and learning.</p><p><strong>Distributed Sensor Anomaly Detection</strong></p><p>Distributed estimation problems, such as static parameter estimation or Kalman filtering, can be addressed using consensus-based approaches. Algorithms of the “consensus + innovations” type, where one can have an estimation of the type and behavior of the sensor. The paper “<a href="https://arxiv.org/pdf/0809.0009">Distributed Parameter Estimation in Sensor Networks: Nonlinear Observation Models and Imperfect Communication”</a> discusses these algorithms, which enable sensor nodes to iteratively update estimates by combining local observations (innovations) with information exchanged with neighbors (consensus). These methods enable asymptotically unbiased and efficient estimation, even in the presence of nonlinear observation models and imperfect communication. Extensions include randomized consensus for Kalman filtering, which offers robustness to network topology changes and distributes the computational load stochastically which are covered in the paper “<a href="https://arxiv.org/pdf/1810.02531">Randomized Consensus based Distributed Kalman Filtering over Wireless Sensor Networks</a>”. For multi-target tracking or target under consideration, distributed approaches integrate sensor registration with tracking filters, such as deploying a consensus cardinality probability hypothesis density (CPHD) filter across the network and minimizing a cost function based on local posteriors to estimate relative sensor poses in the paper “<a href="https://arxiv.org/pdf/1902.02523">Distributed Joint Sensor Registration and Multitarget Tracking Via Sensor Network</a>”.</p><p>Distributed detection focuses on identifying events or anomalies based on collective sensor readings. Techniques leveraging sparse signal recovery have been applied to detect defective sensors in networks with a small number of faulty nodes, using distributed iterative hard thresholding (IHT) and low-complexity decoding robust to noisy messages in these two papers “<a href="https://arxiv.org/pdf/1212.6009">Distributed Sparse Signal Recovery For Sensor Networks</a>” and “<a href="https://arxiv.org/pdf/1109.5636">Distributed Sensor Failure Detection In Sensor Networks</a>” cover methods for failure recovery and self healing.</p><p>In another closely related application for anomaly detection of sensors learning-based distributed procedures, like the mixed detection-estimation (MDE) algorithm, address scenarios with unknown sensor defects by iteratively learning the validity of local observations while refining parameter estimates, achieving performance close to ideal centralized estimators in high SNR regimes can be found in this paper “<a href="https://arxiv.org/pdf/1510.02371">Learning-Based Distributed Detection-Estimation in Sensor Networks with Unknown Sensor Defects</a>”.</p><p>Distributed learning enables sensor nodes or edge devices to collaboratively train models without requiring the sharing of raw data. This is crucial for maintaining privacy and conserving bandwidth, or where privacy-preserving machine learning (PPML) is necessary. Approaches include distributed dictionary learning using diffusion cooperation schemes, where nodes exchange local dictionaries with neighbors, are applied in this paper “<a href="https://arxiv.org/pdf/1304.3568">Distributed Dictionary Learning Over A Sensor Network</a>”</p><p>In many cases, one has no a priori information for the type of sensor under consideration. For online sensor selection with unknown utility functions, distributed online greedy (DOG) algorithms provide no-regret guarantees for submodular utility functions with minimal communication overhead. Federated Learning (FL) and other distributed Machine Learning (ML) paradigms are increasingly applied for tasks like anomaly detection. In the paper “ <a href="https://arxiv.org/pdf/1002.1782">Online Distributed Sensor Selection</a>,” we find that a key problem in sensor networks is to decide which sensors to query when, in order to obtain the most useful information (e.g., for performing accurate prediction), subject to constraints (e.g., on power and bandwidth). In many applications, the utility function is not known a priori, must be learned from data, and can even change over time. Furthermore, for large sensor networks, solving a centralized optimization problem to select sensors is not feasible, and thus we seek a fully distributed solution. In most cases, training on raw data occurs locally, and model updates or parameters are aggregated globally, often at an edge server or fusion center.</p><p>Sensor activation and selection are also critical aspects. Forward-thinking algorithms in energy-efficient distributed sensor activation based on predicted target locations using computational intelligence can significantly reduce energy consumption and the number of active nodes required for target tracking such as the paper<a href="https://arxiv.org/abs/1506.00122"> IDSA: Intelligent Distributed Sensor Activation Algorithm For Target Tracking With Wireless Sensor Network</a>.</p><p>Context-aware like those that are emerging with Large Language Models, can collaborate with intelligence and in-sensor analytics (ISA) on resource-constrained nodes, dramatically reducing communication energy compared to transmitting raw data, extending network lifetime while preserving essential information</p><p><a href="https://arxiv.org/pdf/2005.13003">Context-Aware Collaborative-Intelligence with Spatio-Temporal In-Sensor-Analytics in a Large-Area IoT Testbed</a> introduces a context-aware collaborative-intelligence approach that incorporates spatio-temporal in-sensor analytics (ISA) to reduce communication energy in resource-constrained IoT nodes. This approach is particularly relevant given that energy-efficient communication remains a primary bottleneck in achieving fully energy-autonomous IoT nodes, despite advancements in reducing the energy cost of computation. The research explores the trade-offs between communication and computation energies in a mesh network deployed across a large-scale university campus, targeting multi-sensor measurements for smart agriculture (temperature, humidity, and water nitrate concentration).</p><p>The paper considers several scenarios involving ISA, Collaborative Intelligence (CI), and Context-Aware-Switching (CAS) of the cluster-head during CI. A real-time co-optimization algorithm is developed to minimize energy consumption and maximize the battery lifetime of individual nodes. The results show that ISA consumes significantly less energy compared to traditional communication methods: approximately 467 times lower than Bluetooth Low Energy (BLE) and 69,500 times lower than Long Range (LoRa) communication. When ISA is used in conjunction with LoRa, the node lifetime increases dramatically from 4.3 hours to 66.6 days using a 230 mAh coin cell battery, while preserving over 98% of the total information. Furthermore, CI and CAS algorithms extend the worst-case node lifetime by an additional 50%, achieving an overall network lifetime of approximately 104 days, which is over 90% of the theoretical limits imposed by leakage currents.</p><h3>Orchestration of Distributed AI and Sensor Resources</h3><p>Orchestration in the context of distributed AI and sensor networks involves the automated deployment, configuration, management, and coordination of applications, dataflows, and computational resources across a heterogeneous computing continuum, typically spanning sensors, edge devices, fog nodes, and the cloud. The paper <a href="https://arxiv.org/pdf/2309.02172">Orchestration in the Cloud-to-Things Compute Continuum: Taxonomy, Survey and Future Directions</a>. This is essential for supporting complex, dynamic, and resource-intensive AI workloads in pervasive environments.</p><p>Traditional orchestration systems designed for centralized cloud environments are often ill-suited for the dynamic and resource-constrained nature of edge/fog computing and sensor networks. Requirements for continuum orchestration include support for diverse data models (streams, micro-batches), interfacing with various runtime engines (e.g., TensorFlow), managing application lifecycles (including container-based deployment), resource scheduling, and dynamic task migration.</p><p>Container orchestration tools, widely used in cloud environments, are being adapted for edge and fog computing to manage distributed containerized applications. However, deploying heavy-weight orchestrators on resource-limited edge/fog nodes presents challenges. Lightweight container orchestration solutions, such as clusters based on K3s, are proposed to support hybrid environments comprising heterogeneous edge, fog, and cloud nodes, offering improved response times for real-time IoT applications. The paper <a href="https://arxiv.org/pdf/2203.05161">Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications</a> proposes a feasible approach to build a hybrid and lightweight cluster based on K3s, a certified Kubernetes distribution for constrained environments that offers containerized resource management framework. This work addresses the challenge of creating lightweight computing clusters in hybrid computing environments. It also proposes three design patterns for the deployment of the “FogBus2” framework in hybrid environments, including 1) Host Network, 2) Proxy Server, and 3) Environment Variable.</p><p>Machine learning algorithms are increasingly integrated into container orchestration systems to improve resource provisioning decisions based on predicted workload behavior and environmental conditions where it is mentioned in the paper <a href="https://arxiv.org/pdf/1707.00889">ECHO: An Adaptive Orchestration Platform for Hybrid Dataflows across Cloud and Edge</a> with an open source model.</p><p>Platforms like ECHO are designed to orchestrate hybrid dataflows across distributed cloud and edge resources, enabling applications such as video analytics and sensor stream processing on diverse hardware platforms. Other frameworks such as the paper DAG-based Task Orchestration for Edge Computing, focus on orchestrating application tasks with dependencies (represented as Directed Acyclic Graphs, or DAGs) on heterogeneous edge devices, including personally owned, unmanaged devices, to minimize end-to-end latency and reduce failure probability. Of note, this is also closely aligned with implementations of <a href="https://www.astronomer.io/docs/learn/airflow-mlflow/">MFLow and Airflow</a>, which implement a DAG.</p><p>Autonomic orchestration aims to create self-managing distributed systems. This involves using AI, particularly edge AI, to enable local autonomy and intelligence in resource orchestration across the device-edge-cloud continuum as discussed in <a href="https://arxiv.org/pdf/2205.01423">Autonomy and Intelligence in the Computing Continuum: Challenges, Enablers, and Future Directions for Orchestration</a>. For instance, in <a href="https://arxiv.org/pdf/1605.09011">A Self-Managed Architecture for Sensor Networks Based on Real Time Data Analysis</a> introduces a self-managed sensor network platforms that can use real-time data analysis to dynamically adjust network operations and optimize resource usage. AI-enabled traffic orchestration in future networks (e.g., 6G) utilizes technologies like digital twins to provide smart resource management and intelligent service provisioning for complex services like ultra-reliable low-latency communication (URLLC) and distributed AI workflows. There is an underlying interplay between Distributed AI Workflow and URLLC, which has manifold design considerations throughout any network topology.</p><p>Novel paradigms such as the paper <a href="https://arxiv.org/pdf/2309.02058">How Can AI be Distributed in the Computing Continuum? Introducing the Neural Pub/Sub Paradigm</a> are emerging to address the specific challenges of orchestrating large-scale distributed AI workflows. The neural publish/subscribe paradigm proposes a decentralized approach to managing AI training, fine-tuning, and inference workflows in the computing continuum, aiming to overcome limitations of traditional centralized brokers in handling the massive data surge from connected devices. This paradigm facilitates distributed computation, dynamic resource allocation, and system resilience. Similarly, concepts like Airborne Neural Networks envision distributing neural network computations across multiple airborne devices, coordinated by airborne controllers, for real-time learning and inference in aerospace applications found in the paper Airborne Neural Network. This paper proposes a novel concept: the Airborne Neural Network a distributed architecture where multiple airborne devices, each host a subset of neural network neurons. These devices compute collaboratively, guided by an airborne network controller and layer-specific controllers, enabling real-time learning and inference during flight. This approach has the potential to revolutionize Aerospace applications, including airborne air traffic control, real-time weather and geographical predictions, and dynamic geospatial data processing.</p><p>The intersection of distributed AI and sensor orchestration is also evident in specific applications like multi-robot systems for intelligence, surveillance, and reconnaissance (ISR), where decentralized coordination algorithms enable simultaneous exploration and exploitation in unknown environments using heterogeneous robot teams such as <a href="https://arxiv.org/pdf/2106.09219">Decentralised Intelligence, Surveillance, and Reconnaissance in Unknown Environments with Heterogeneous Multi-Robot Systems</a>, In the paper <a href="https://arxiv.org/pdf/2212.14116">Coordination of Drones at Scale: Decentralized Energy-aware Swarm Intelligence for Spatio-temporal Sensing</a> it is introduced a solution to tackle the complex task self-assignment problem, a decentralized and energy-aware coordination of drones at scale is introduced. Autonomous drones share information and allocate tasks cooperatively to meet complex sensing requirements while respecting battery constraints. Furthermore, the decentralized coordination method prevents single points of failure, it is more resilient, and preserves the autonomy of drones to choose how they navigate and sense. In the paper <a href="https://arxiv.org/pdf/2002.01419">HiveMind: A Scalable and Serverless Coordination Control Platform for UAV Swarms</a>, a centralized coordination control platform for IoT swarms is introduced that is both scalable and performant. HiveMind leverages a centralized cluster for all resource-intensive computation, deferring lightweight and time-critical operations, such as obstacle avoidance, to the edge devices to reduce network traffic. Resource orchestration for network slicing scenarios can employ distributed reinforcement learning (DRL) where multiple agents cooperate to dynamically allocate network resources based on slice requirements, demonstrating adaptability without extensive retraining found in the paper <a href="https://arxiv.org/pdf/2105.07946">Using Distributed Reinforcement Learning for Resource Orchestration in a Network Slicing Scenario</a>.</p><p>.</p><h3>Challenges and Implementation Considerations</h3><p>Implementing distributed AI and sensor orchestration presents numerous challenges:</p><p><strong>Communication Constraints</strong>: The limited bandwidth, intermittent connectivity, and energy costs associated with wireless communication in sensor networks necessitate communication-efficient algorithms and data compression techniques. Distributed learning algorithms often focus on minimizing the number of communication rounds or the size of exchanged messages as discussed in <a href="https://arxiv.org/pdf/2105.01798">Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence</a>.</p><p><strong>Computational Heterogeneity</strong>: Sensor nodes, edge devices, and cloud servers possess vastly different computational capabilities. Orchestration systems must effectively map AI tasks to appropriate resources, potentially offloading intensive computations to the edge or cloud while performing lightweight inference or pre-processing on resource-constrained nodes as found in <a href="https://arxiv.org/pdf/2205.01423">Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence</a> and further discussed a problems in <a href="https://arxiv.org/pdf/2205.01423">Autonomy and Intelligence in the Computing Continuum: Challenges, Enablers, and Future Directions for Orchestration</a>.</p><p><strong>Resource Management:</strong> Dynamic allocation and optimization of compute, memory, storage, and network resources are critical for performance and efficiency, especially with fluctuating workloads and device availability in the paper <a href="https://arxiv.org/pdf/2203.05161">Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications</a> To orchestrate a multitude of containers, several orchestration tools are developed. But, many of these orchestration tools are heavy-weight and have a high overhead, especially for resource-limited Edge/Fog nodes</p><p><strong>Fault Tolerance and Resilience:</strong> <a href="https://arxiv.org/pdf/1803.05499">In A Distributed Architecture for Edge Service Orchestration with Guarantees </a>it is discussed how istributed systems are prone to node failures, communication link disruptions, and dynamic changes in network topology affect global convergence. Algorithms and orchestration platforms must be designed to handle such uncertainties and ensure system availability and reliability.</p><p><strong>Security and Privacy:</strong> Distributing data processing raises concerns about data privacy and model security. Federated learning and privacy-preserving techniques are essential for distributed AI systems. Orchestration platforms must incorporate robust security mechanisms whic hwe can find discussed herewith <a href="https://arxiv.org/pdf/2402.01096">Trustworthy Distributed AI Systems: Robustness, Privacy, and Governance</a>.</p><p><strong>Interoperability and Standardization:</strong> The heterogeneity of devices, platforms, and protocols in IoT and edge environments complicates seamless integration and orchestration. Efforts towards standardization and flexible, technology-agnostic frameworks are necessary as discussed in <a href="https://arxiv.org/pdf/2107.08194">Towards autonomic orchestration of machine learning pipelines in future networks</a> and <a href="https://arxiv.org/pdf/1908.08921">Intelligence Stratum for IoT. Architecture Requirements and Functions</a>.</p><p><strong>Real-time Processing:</strong> Many sensor network applications, particularly in industrial IoT or autonomous systems, require low-latency decision-making. Orchestration must prioritize and schedule real-time tasks effectively as discussed in <a href="https://arxiv.org/pdf/2203.05161">Container Orchestration in Edge and Fog Computing Environments for Real-Time IoT Applications</a>.</p><p><strong>Managing Data Velocity and Volume:</strong> High-frequency sensor data streams generate massive data volumes. In-network processing, data reduction, and efficient dataflow management are crucial <a href="https://arxiv.org/pdf/2105.01798">Pervasive AI for IoT applications: A Survey on Resource-efficient Distributed Artificial Intelligence</a></p><p><strong>Limitations of 3rd party Development:</strong></p><p>In the survey of papers, there was no direct mention or reference to the ability for developers to take a platform and build upon it, except for the ECHO platform, which was due to the first principles of being an open-source project.</p><h3>Architecture</h3><p>Architecture diagrams typically depict layers: a sensor layer, an edge/fog layer, and a cloud layer. Orchestration logic spans these layers, managing data ingestion, AI model distribution and execution (inference, potentially distributed training), resource monitoring, and task scheduling. Middleware components facilitate communication, data routing, and state management across the distributed infrastructure.</p><h3>Conclusion</h3><p>The convergence of distributed AI and sensor orchestration is a critical enabler for advanced pervasive systems and the computing continuum. While significant progress has been made in developing distributed algorithms for sensing tasks and orchestration frameworks for heterogeneous environments, challenges related to resource constraints, scalability, resilience, security, and interoperability remain active areas of research and development. Future directions include further integration of autonomous and intelligent orchestration capabilities, development of lightweight and dynamic orchestration platforms, and the exploration of novel distributed computing paradigms to fully realize the potential of deploying AI at scale within sensor networks and across the edge-to-cloud continuum.</p><p>Until Then,</p><p>#iwishyouwater</p><p>Ted ℂ. Tanner Jr. (@tctjr) / X</p><p>MUZAK TO BLOG BY: i listened to several tracks during authoring this piece but i was reminded how incredible the Black Eyes Peas are musically and creatively — WOW. Pump IT! Shreds. i’d like to meet will.i.am</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98999bd82a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pre-Computing War]]></title>
            <link>https://medium.com/@tctjr/pre-computing-war-43c3e9c1c9c6?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/43c3e9c1c9c6</guid>
            <category><![CDATA[war]]></category>
            <category><![CDATA[game-theory]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 22:35:18 GMT</pubDate>
            <atom:updated>2025-03-28T22:35:18.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*j0Uk8onU3udwUDsz7iCsOw.png" /><figcaption>Gen AI Idea of Drone Strikes</figcaption></figure><p>This original post can be found here:</p><p><a href="https://www.tedtanner.org/pre-computing-war/">Pre-Computing War | Theodore C. Tanner Jr.</a></p><blockquote><em>Sometimes it is the people no one can imagine anything of who do the things no one can imagine.</em></blockquote><blockquote><em>~ Alan Turing</em></blockquote><p>First, i trust everyone is safe. Second, i had a creative spurt of late and wrote the following blog in one sitting after waking up thinking about the subject.</p><p><em>NOTE: This post is in no way indicative of any stance or provides any classified information whatsoever. It is only a thought piece concerning current technology-driven areas of concern</em>.</p><p>There is a paradigm shift happening that will affect future generations and possibly the very essence of what it means to be human, and this comes from how technology is transforming war. We stand at a precipice, gazing into a future where the tools of war no longer resemble the clashing steel and human courage of centuries past. How important is conflict to humanity? What is the essence and desire for this conflict? The current uptick in drone usage of the past years has created an inflection point for what I am terming “abstraction levels for engagement.”</p><p>We continue to underestimate how important drones are going to be in warfare — a miscalculation that echoes through history’s long ledger of missed signals. I’m going to go out on a long limb here and say the future of most warfare will be enabled by, driven by, and spearheaded by drones. In fact, other than some other types of autonomous vehicles, there might not be anything else on the battlefield.</p><p>Here is a definition (of course, AI bot generated because really who reads Webster’s Dictionary nowadays? For the record, i have read Webster’s 3 times front to back):</p><p>“A military drone, also known as an unmanned aerial vehicle (UAV) or unmanned aircraft system (UAS), is an aircraft flown without a human pilot on board, controlled remotely or autonomously, and used for military missions like surveillance, reconnaissance, and potentially combat operations. “</p><p>This isn’t hyperbole; it’s the logical endpoint of a trajectory we’ve been on since the first unmanned systems took flight. And at the end of that trajectory lies something even more radical: autonomous bullets — not merely guided, but self-directed, a fusion of machine intelligence and lethal intent that could redefine conflict itself.</p><p>Guided autonomous bullets, often referred to as “smart bullets,” represent an advanced leap in projectile technology, blending precision guidance systems with small-caliber ammunition. These bullets are designed to adjust their flight path mid-air to hit a target with exceptional accuracy, even if the target is moving or environmental factors like wind interfere. The concept builds on precision guided munitions used in larger systems like missiles, but shrinks the technology to fit within the constraints of a bullet fired from a firearm.</p><p>One prominent example is the <a href="https://en.wikipedia.org/wiki/EXACTO">EXACTO (Extreme Accuracy Tasked Ordnance </a>— don’t ya just love DOD acronyms?) program developed by DARPA (Defense Advanced Research Projects Agency). Initiated in 2008, EXACTO focuses on a .50-caliber bullet equipped with optical sensors in its nose and tiny fins for steering. The system works by tracking a laser-designated target — similar to laser-guided bombs or missiles allowing the bullet to make real-time course corrections. Tests conducted as early as 2014 and 2015 demonstrated its ability to hit moving and evading targets, with footage showing the bullet sharply altering its trajectory mid-flight. DARPA has stated that this technology enables both expert marksmen and novices to achieve pinpoint accuracy at ranges traditional bullets can’t match, potentially extending effective sniper ranges up to 2,000 meters or more.</p><p>Another effort comes from Sandia National Laboratories, which in 2012 unveiled a prototype for a self-guided .50-caliber bullet. Unlike EXACTO’s reliance on an integrated guidance system, Sandia’s design uses an optical sensor to detect a laser beam illuminating the target, paired with electromagnetic actuators that adjust tiny fins to steer the projectile. This bullet, roughly four inches long, can update its position 30 times per second and has shown promise in hitting targets over a mile away (about 2,000 meters). Sandia’s tests included high-speed video capturing the bullet stabilizing in flight, improving accuracy at longer distances — a phenomenon they likened to the bullet “going to sleep” as it settles.</p><p>Imagine a battlefield stripped of human presence, not out of cowardice but necessity. The skies a deafening hum with swarms of drones (if a drone makes a sound and no one is there to hear it, does it make a sound?), each a “node” orchestrated via particle swarm AI models in a vast, decentralized network of artificial minds.</p><p>No generals barking orders, no soldiers trudging through mud, just silicon and steel executing a dance of destruction with precision beyond human capacity. The end state of drones isn’t just remote control or pre-programmed strikes; it’s autonomy so complete that the machines themselves decide who lives and who dies — no human in the loop. Self-directed projectiles, bullets with brains roaming the theater of war, seeking targets based on algorithms fed by real-time data streams. The vision feels like science fiction, yet the pieces already fall into place.</p><blockquote><em>Generals gathered in their masses<br>just like witches at black masses<br>evil minds that plot destruction<br>sorcerers of death’s construction<br>in the fields the bodies burning<br>as the war machine keeps turning<br>death and hatred to mankind<br>poisoning their brainwashed minds, oh lord yeah!</em></blockquote><blockquote><em>~ War Pigs, Black Sabbath 1970</em></blockquote><p>This shift isn’t merely tactical; it’s existential. Warfare has always been a contest of wills, a brutal arithmetic of resources and resolve. But what happens when we can compute the outcome before the first shot is fired? Drones, paired with advanced AI, offer the tantalizing possibility of simulating conflicts down to the last variable terrain, weather, enemy morale, and supply lines, all processed in milliseconds by systems that learn as they go. The autonomous bullet isn’t just a weapon; it’s a data point in a larger Markovian equation, one that could predict victory or defeat with chilling accuracy.</p><p>We’re not far from a world where wars are fought first in the cloud, their outcomes modeled and refined, before a single drone lifts off.If the future of warfare is of drone swarms of autonomous systems culminating in self-directed bullets, then pre-computing its outcomes becomes not just feasible but imperative. The battlefield of tomorrow isn’t a chaotic melee; it’s a high-stakes game, a multidimensional orchestrated chessboard where game theory, geopolitics, and macroeconomics converge to predict the endgame before the first move. To compute warfare in this way requires us to distill its essence into variables, probabilities, and incentives a task as daunting as it is inevitable. Yet again, there exists a terminology for this orchestrated chess game. <a href="https://www.iqt.org/library/the-future-of-conflict-is-now-the-need-for-asymmetric-deterrence">Autonomous asymmetric mosaic warfighting, a concept explored by DARPA</a>, envisions turning complexity into an asymmetric advantage by using networked, smaller, and less complex systems to overwhelm an adversary with a multitude of capabilitiesnvisions turning complexity into an asymmetric advantage by using networked, smaller, and less complex systems to overwhelm an adversary with a multitude of capabilities.</p><p>“A Nash equilibrium is a set of strategies that players act out, with the property that no player benefits from changing their strategy. ~ Dr John Nash.”</p><p><strong>Computational Game Theory: The Logic of Lethality</strong></p><p>At its core, warfare is a strategic interaction, a contest where players, nations, factions, or even rogue actors vie for dominance under the constraints of resources and information. Game theory offers the scaffolding to model this. Imagine a scenario where drones dominate: each side deploys autonomous swarms, programmed with decision trees that weigh attack, retreat, or feint based on real-time data. The payoff matrix isn’t just about territory or casualties, it’s about disruption, deterrence, and psychological impact. A swarm’s choice to strike a supply line rather than a command center could shift an enemy’s strategy, forcing a cascade of recalculations.</p><p>Now, introduce autonomous bullets, self-directed agents within the swarm. Each bullet becomes a player in a sub-game, optimizing its path to maximize damage while minimizing exposure. The challenge lies in anticipating the opponent’s moves: if both sides rely on AI-driven systems, the game becomes a duel of algorithms, each trying to out-predict the other. Zero-sum models give way to dynamic equilibria, where outcomes hinge on how well each side’s AI can bluff, adapt, or exploit flaws in the other’s logic. Pre-computing this requires vast datasets, historical conflicts, behavioral patterns, and even cultural tendencies fed into simulations that run millions of iterations, spitting out probabilities of victory, stalemate, or collapse.</p><p><strong>Geopolitics: The Board Beyond the Battlefield</strong></p><p>Warfare doesn’t exist in a vacuum; the shifting tectonic plates of geopolitics shape it. To pre-compute outcomes, we must map the global chessboard — alliances, rivalries, and spheres of influence. Drones level the playing field, but their deployment reflects deeper asymmetries. A superpower with advanced AI and manufacturing might flood the skies with swarms, while a smaller state leans on guerrilla tactics, using cheap, hacked drones to harass and destabilize. The game-theoretic model expands: players aren’t just combatants but also suppliers, proxies, and neutral powers with their own agendas.</p><p>Take energy as a (the main) variable: drones require batteries, rare earths, and infrastructure. A nation controlling lithium mines or chip fabs holds leverage, tipping the simulation’s odds. Sanctions, trade routes, and cyber vulnerabilities — like a rival hacking your drone fleet’s firmware — become inputs in the equation. Geopolitical stability itself becomes a factor: if a war’s outcome hinges on a fragile ally, the model must account for the likelihood of defection or collapse. Pre-computing warfare here means forecasting not just the battle, but the ripple effects — will a decisive drone strike trigger a refugee crisis, a shift in NATO’s posture, or a scramble for Arctic resources? The algorithm must think in networks, not lines.</p><blockquote><em>I visualize a time when we will be to robots what dogs are to humans, and I’m rooting for the machines.</em></blockquote><blockquote><em>~ Claude Shannon</em></blockquote><p><strong>Macroeconomics: The Sinews of Silicon War</strong></p><p>No war is won without money, and drones don’t change that; they just rewrite the budget. Pre-computing conflict demands a macroeconomic lens: how much does it cost to field a swarm versus defend against one? The economics of autonomous warfare favor scale mass-produced drones and bullets could outpace legacy systems like jets or tanks in cost-efficiency. A simulation might pit a 10 billion dollar defense budget against a 1 billion dollar insurgent force, factoring in production rates, maintenance, and the price of countermeasures like EMPs or jamming tech.</p><p>But it’s not just about direct costs. Markets react to war’s shadow oil spikes, currencies wobble, tech stocks soar or crash based on who controls the drone supply chain (it is all about that theta/beta folks). A protracted conflict could drain a nation’s reserves, while a swift, computed victory might bolster its credit rating. The model must integrate these feedback loops: if a drone war craters a rival’s economy, their ability to replenish dwindles, tilting the odds. And what of the peacetime economy? States that mastering autonomous tech could dominate postwar reconstruction, turning military R&amp;D into a geopolitical multiplier. Pre-computing this requires economic forecasts layered atop the game-theoretic core — GDP growth, inflation, and consumer confidence as resilience proxies.</p><blockquote><em>The Supreme Lord said: I am mighty Time, the source of destruction that comes forth to annihilate the worlds. Even without your participation, the warriors arrayed in the opposing army shall cease to exist.~ Bhagavad Gita 11:32</em></blockquote><p><strong>The Synthesis: Simulating the Unthinkable</strong></p><p>To tie it all together, picture a supercomputer or a distributed AI network running a grand simulation. It ingests game-theoretic strategies (strike patterns, bluffing probabilities), geopolitical alignments (alliances, resource choke points), and macroeconomic trends (war budgets, trade disruptions). Drones and their autonomous bullets are the pawns, but the players are human decision-makers, constrained by politics and profit. The system runs countless scenarios: a drone swarm cripples a port, triggering a naval response, spiking oil prices, and collapsing a coalition. Another sees a small state’s cheap drones hold off a giant, forcing a negotiated peace.</p><p>The output isn’t a single prediction, but a spectrum 75% chance of victory if X holds, 40% if Y defects, 10% if the economy tanks. Commanders could tweak inputs more drones, better AI, a preemptive cyberstrike and watch the probabilities shift. It’s not infallible; black swans like a rogue AI bug or a sudden uprising defy the math. But it’s close enough to turn war into a science, reducing the fog Clausewitz warned of to a manageable haze <strong>[1]</strong>.</p><blockquote><em>The thing that hath been, it is that which shall be; and that which is done is that which shall be done: and there is no new thing under the sun.</em></blockquote><blockquote><em>~ Ecclesiastes 1:9, KJV</em></blockquote><p>Yet, this raises a haunting question: If we can compute warfare’s endgame, do we lose something essential in the process?</p><p>The chaos of flawed, emotional, unpredictable human decision-making has long been the wildcard that defies calculation. Napoleon’s audacity, the Blitz’s resilience, and the guerrilla fighters’ improvisation are not easily reduced to code. Drones and their self-directed progeny promise efficiency, but they also threaten to strip war of its human texture, turning it into a sterile exercise in optimization. And what of accountability? When a bullet chooses its target, who bears the moral weight — the coder, the commander, or the machine itself?</p><p>The implications stretch beyond the battlefield. If drones dominate warfare, the barriers to entry collapse. No longer will nations need vast armies or industrial might; a few clever engineers and a swarm of cheap, autonomous systems could level the playing field. We’ve seen glimpses of this in Ukraine, where off-the-shelf drones have humbled tanks and disrupted supply lines. Scale that up, and the future isn’t just drones it’s a proliferation of power, a democratization of destruction. Autonomous bullets could become the ultimate equalizer or the ultimate chaos agent, depending on who wields them.</p><blockquote><em>Fighting for peace is like screwing for virginity.</em></blockquote><blockquote><em>~ George Carlin</em></blockquote><p><strong>A Moment of Clarity</strong></p><p>i wonder: are we ready to surrender the reins? The dream of computing warfare’s outcome is seductive and humans are carnal creatures we lust for other humans and things, thus it promises to minimize loss, to replace guesswork with certainty, but it also risks turning us into spectators of our own fate, watching as machines play out scenarios we’ve set in motion (that which we lust after).</p><p>The end state of drones may indeed be a battlefield of self-directed systems, but the end state of humanity in that equation remains unclear. Perhaps the true revolution isn’t in the technology but in how we grapple with a world where war becomes a problem to be solved rather than a story to be lived.</p><p>We underestimate drones at our peril. They’re not just tools; they’re harbingers of a paradigm shift. The future is coming, and it’s buzzing overhead — relentless, autonomous, and utterly indifferent to our nostalgia for the wars of old.</p><p>Pre-computing warfare might make us too confident. Leaders who trust the model might rush to conflict, assuming the odds are locked. But humans aren’t algorithms; we rebel, err, and surprise. And what of ethics? A simulation that optimizes for victory might greenlight drone strikes on civilians to break morale, justified by a percentage point. The autonomous bullet doesn’t care; it’s our job to decide if the computation is worth the soul it costs.</p><p>In this drone-driven future, pre-computing warfare isn’t just possible — it’s already beginning. Ukraine’s drone labs, China’s swarm tests, the Pentagon’s AI budgets — they’re all steps toward a world where conflict is a solvable problem. It has been said that fighting and sex are the two book ends but one in the same. But as we build the machine to predict the fight, we must ask: are we mastering war, or merely handing it a new master for something else entirely?</p><p>Music To Blog By: Project-X “Closing Down The Systems. Actually, I wouldn’t listen to this if i were you, unless you want to have nightmares. Fearless (MZ412 Remix) does sound like computational warfare.</p><p>Until then,</p><p><a href="https://www.youtube.com/watch?v=PbhJgmkW4Wo">#iwishyouwater</a> &lt;- recent raw Pipe footage of folks that got the memo.</p><p>Ted ℂ. Tanner Jr. (@tctjr) / X</p><p><strong>References:</strong></p><p><strong>[1]</strong> “On War” by Carl von Clausewitz. He called it “The Fog of War”: Clausewitz stressed the importance of understanding the unpredictable nature of war, noting that the “fog of war” (i.e., incomplete, dubious, and often erroneous information and great fear, doubt, and excitement) can lead to rapid decisions by alert commanders.</p><p><strong>[2] </strong>Thanks to Jay Sales for being the catalyst for this blog. If you do not know who he is look him up here. <a href="https://www.linkedin.com/in/jay-sales">Jay Sales</a>. One of the best engineering executives and dear friend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43c3e9c1c9c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BlockChain Virtual Machines with Consensus in Silicon]]></title>
            <link>https://medium.com/@tctjr/introduction-4b39e0a91b9c?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b39e0a91b9c</guid>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Wed, 12 Oct 2016 16:03:55 GMT</pubDate>
            <atom:updated>2016-10-12T16:04:38.802Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>It appears things have taken off in several areas of <a href="https://twitter.com/search?q=%23fintech">#Fintech</a> and <a href="https://twitter.com/search?q=%23healthit">#HealthIT</a> which if anyone has been paying attention is what we <a href="https://pokitdok.com/about/">@PokitDok</a> and <a href="https://twitter.com/pokitdokdev">@PokitDokDev</a> have been betting on for <a href="https://twitter.com/search?q=%23dokchain">@DokChain</a>. So I am going to step back just a bit and make some predictions that I believe will happen very quickly. I have been very vocal that the HealthIT world uses vast amounts of paper for instance to the <a href="http://medicalxpress.com/news/2015-01-billion-billing-health-insurance-related-paperwork.html">tune of 375B annually</a>. They have also missed the Internet.</p><p>I have also been vocal about <a href="http://spark.apache.org/docs/1.2.0/">Spark development</a> for about five years and compared the development there to the speed in which Blockchain is developing. It is my prediction that Blockchain development will make past software development appear as though it is standing still.</p><p><strong>Refresher</strong></p><p>For a refresher Blockchain technology is the technological basis of Bitcoin, first described by its mysterious author(s) Satoshi Nakamoto in his/their white paper “Bitcoin: A Peer-to-Peer Electronic Cash System”, published in 2008. While the use of blockchains for more general uses was already discussed in the original paper, it was not until a few years later that “blockchain” technology emerged as a generic term. Specifically:</p><p>“<em>A blockchain is a distributed computing architecture where every network node executes and records the same transactions, which are grouped into blocks. Only one block can be added at a time, and every block contains a mathematical proof that verifies that it follows in sequence from the previous block. In this way, the blockchain’s “distributed database” is kept in consensus across the whole network. Individual user interactions with the ledger (transactions) are secured by strong cryptography. Nodes that maintain and verify the network are incentivized by mathematically enforced economic incentives coded into the protocol.” ~ Ethereum Github ReadMe.</em></p><p><strong>The Road Forward</strong></p><p>Much has occurred since the original paper by Satoshi in 2008 concerning the technical aspects of bitcoin and blockchain, which brings us to the present and scaling of blockchain over and above the current frameworks. As most now are aware We have implemented a version of the <a href="https://github.com/ethereum/evmjit">ethereum EVM</a> for deployment of DokChain. In addition Pokitdok have also created a version of DokChain using the <a href="https://azure.microsoft.com/en-us/solutions/blockchain/">Microsoft Blockchain as a service</a>. We do not beleive in bright shiny objects — we believe in the best framework/tool/algorithm for the job at hand. ICYMI — for refresher read the “<a href="https://fullmetalhealth.com/necessity-blockchain/">On Necessity of Blockchain</a>”. We are being very objective herewith for applications thereof.</p><p><strong>Basis Functions</strong></p><p>We have stated we want the default consensus for DokChain to be Proof of Stake. As you have read in past posts, we believe Proof Work to be suboptimal for engaging across business mechanics for smart contract generation- at least in the Health Sector. see: <a href="https://fullmetalhealth.com/smart-contracts-using-turing-complete-language/">Turing Complete Smart Contracts</a></p><p>The virtual machines (VM) used by blockchain are currently designed to be very efficient for bitcoin transactions. Most blockchain core technologies have a Virtual Machine where they create runtime environments for smart contracts. It is both sandboxed and completely isolated from the rest of the blockchain, which means that code running inside the VM has no access to network, filesystem, or other processes. Smart contracts even have limited access to other smart contracts. This is a limitation for future adoption of multi chain and off-chain engagements.</p><p>In many frameworks contracts live on the blockchain in a specific binary format (<a href="https://en.wikipedia.org/wiki/Bytecode">bytecode</a>). However, contracts are written in a high level language then “compiled” into bytecode using the specific framework compiler, and finally uploaded on the blockchain using the respective framework client. Note, this is all accomplished currently with software making the consensus of the contracts and resulting speed of generation ultimately a disadvantage. For reference on how Pokitdok is viewing these interactions as the domain specific language level see: <a href="https://fullmetalhealth.com/smart-contracts-using-turing-complete-language/">Turing Complete Smart Contracts</a>.</p><p><strong>Silicon Adoption (or Return To The Future)</strong></p><p>With adoption from companies like Microsoft, Verizon, and AirBnB, to name a few, mainly in the areas of reputation and identity management, it is understood a software-only approach will not scale as currently intended. Further the basic consensus “proof of work” is inadequate for many transactions which is the reasoning behind the rash of miners and miner ASIC.</p><p>This creates the opportunity for applying <a href="https://en.wikipedia.org/wiki/Central_processing_unit">CPU</a>, <a href="https://en.wikipedia.org/wiki/Random-access_memory">RAM</a> and storage methodologies –hardware — and releasing a Virtual Machine on a chip with extra <a href="https://en.wikipedia.org/wiki/Field-programmable_gate_array">FGPA</a> like capabilities that allow for specific machine learning algorithms tailored to smart contract engagement. This is an area I have been very bullish on since working with Dynamic FPGA technologies with now a defunct chip company called <a href="https://en.wikipedia.org/wiki/National_Semiconductor">National Semiconductor</a> in conjunction with <a href="http://www.darpa.mil/">DARPA</a> in the early 90’s. The research project created gate arrays that adapted the algorithm to the type of data input — sound familiar? Also in past lives many of us attended the <a href="http://www.hotchips.org/">Hot Chips conference</a> as this is where the performance indices were set for novel algorithms on silicon.</p><p><strong>Current Market</strong></p><p>Capabilities to do such resource management exist, though they may not be refined to the extent the blockchain needs. Microsoft recently made heavy bets on <a href="http://www.forbes.com/sites/moorinsights/2016/10/05/microsofts-love-for-fpga-accelerators-may-be-contagious/#956ee522445b">Dynamic FPGA technology</a>. Intel’s $16.7B acquisition of FPGA leader <a href="https://www.altera.com/">Altera</a> now appears to have been prescient to say the least. Softbank has purchased <a href="http://www.theverge.com/2016/9/5/12798302/softbank-arm-acquisition-complete">ARM </a>Semi-conductor and it appears that <a href="http://fortune.com/2016/09/29/qualcomm-nxp-semiconductors/">Qualcomm</a> is allegedly looking to consummate a relationship with NXP technologies.</p><p><strong>Identity and Key Management</strong></p><p>A very near term application is to deliver identity and privacy via the blockchain without centralization, which without hardware could prove a difficult task. With blockchain on the chip, one can treat the hardware itself as a trusted third-party that provides a level of verification that is generally either publicly distributed or privately validated. In essence, a VM that manages the keys and validates the transactions.</p><p>For example, one can utilize highly customized blockchains (via hybrid VM/ FPGA), where users could change the consensus mechanism of the blockchain or place participation restrictions with respect to the type of contract thereby making the consensus much more efficient. These chips sets will adapt based on the data driven aspects of the smart contracts. <a href="https://www.xilinx.com/products/design-tools/vivado/implementation/partial-reconfiguration.html">Partial reconfiguration</a> is the ability to reconfigure part of the FPGA while the rest of the device <em>continues to work</em>. The biggest benefit users can derive from this feature is reduced device count. Partial reconfiguration improves logic density by removing the need to implement functions that do not operate simultaneously in the FPGA. Using smaller devices (think mobile or stealth) or a reduced number of devices improves system cost and lowers power consumption. Important applications for this technology include reconfigurable communication systems and high-performance computing platforms.</p><p>Taking the mechanics of key management and consensus we anticipate this approach being able to secure not just per-user functionality but entire enclave behaviors over entire VMs if so desired.</p><p>The security of these systems will then be able to adapt to the threat models posed. In addition to the adaptation the primitives for <a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">Elliptic Curve Cryptography</a> (ECC) will and should be implemented at the silicon level. <a href="https://www.researchgate.net/publication/221369626_Elliptic_curves_cryptosystem_implementation_based_on_a_look-up_table_sharing_scheme">Lookup tables</a> at the silicon level work amazing well and <em>fast</em>. For instance <a href="https://www.math.ku.edu/~dlk/Galois%20groups%20mod%20p.pdf">Reduction modulo <em>p</em></a> (which is needed for addition and multiplication) can be executed much faster with lookups and bit-wise operators if accomplished in conjunction with hardware.</p><p>We believe this will hasten in the Proof of Stake issuance. Currently one of the main arguments in a fully public proof of stake system is that when a user connects she receives at least two blocks. Which one is valid? Both start with the <a href="https://en.bitcoin.it/wiki/Genesis_block"><em>Genesis Hash</em></a><em>.</em> Both are trending from an asset-trade-transaction-economic standpoint. One is real and the other is not? The one generated with a trusted signature at the hardware level with enclave issuance is the trusted tree.</p><p><strong>Current Performance</strong></p><p>While in many cases this is already being explored in software, as we are at PokitDok, the main issue is scale. Our tests indicate that traditional distributed consensus mechanisms like <a href="https://raft.github.io/">RAFT</a> or Paxos don’t scale well beyond 100 nodes (or thereabouts). (<strong>NOTE</strong>: which is fine for almost anything especially if a claim isn’t settled for 180 days yet I digress.)</p><p>Hardware can and will allow these consensus algorithms to scale to millions of nodes.</p><p>As a first step, we can take an example from the world of databases use of ‘sharding’, a technique that is also being actively explored by <a href="http://www.coindesk.com/ethereum-blockchain-homestead/">Ethereum</a>.</p><p>The idea is to partition the data in such a way that strict ordering of events is not essential, unless there is a specific use case, and therefore these ‘chains’ can be separated out and run in parallel taking designs from both <a href="https://en.wikipedia.org/wiki/SIMD">SIMD</a> and <a href="https://en.wikipedia.org/wiki/MIMD">MIMD</a> CPU design architectures. These parallelization methods can be efficiently applied with hardware utilizing some of the same mechanics as used with <a href="https://cs.stanford.edu/people/eroberts/courses/soco/projects/risc/whatis/index.html">RISC</a> based architectures.</p><p>Another tangent to the issuance of new brands of blockchain silicon is what I call “A Return to Fundamental Computing Practices.” We will see those who address things from a system wide engineering aspect (both hardware and software) flourish. For those that remember the importance of tweaking an algorithm and having to deal with I/O speeds and DMA access was part and parcel of development even before creating fundamental algorithms. Then again <a href="https://www.amazon.com/">Amazon</a>, <a href="https://www.microsoft.com/">Microsoft</a> and <a href="https://www.google.com/">Google</a> will probably add this to the front ends in their cloud offerings.</p><p>Given all this we believe the future of blockchain relies on efficient scaling of real-time smart contract negotiation for billions of transactions. The rule set generation and the resulting game theoretic negotiations will house the world’s data rich solution sets.</p><p>In turn these transactions can be efficiently machine learned for further optimizations. It is our belief that hardware based blockchain VMs will usher in the true age of computational economics and artificial intelligence at scale.</p><p>Until then,</p><p><a href="https://twitter.com/tctjr">@tctjr</a></p><p><strong>References (In case you want to expand your horizons):</strong></p><p>For an overview of Blockchain technology:</p><p><a href="http://www.slideshare.net/lablogga/blockchain-the-information-technology-of-the-future">http://www.slideshare.net/lablogga/blockchain-the-information-technology-of-the-future</a></p><p>For overview on Ethereum EVM:</p><p><a href="http://ethdocs.org/en/latest/introduction/what-is-ethereum.html">http://ethdocs.org/en/latest/introduction/what-is-ethereum.html</a></p><p>For further reference in health and identity management see:</p><p><a href="https://www.linkedin.com/pulse/dokchain-now-theodore-tanner-jr-">https://www.linkedin.com/pulse/dokchain-now-theodore-tanner-jr-</a></p><p>For further reading on types of data-bases see:</p><p><a href="https://www.bigchaindb.com/whitepaper/bigchaindb-whitepaper.pdf">https://www.bigchaindb.com/whitepaper/bigchaindb-whitepaper.pdf</a></p><p>Raft and Paxos:</p><p><a href="https://www.cockroachlabs.com/blog/scaling-raft/">https://www.cockroachlabs.com/blog/scaling-raft/</a></p><p><a href="https://raft.github.io/">https://raft.github.io/</a></p><p><a href="http://research.microsoft.com/en-us/um/people/lamport/pubs/paxos-simple.pdf">http://research.microsoft.com/en-us/um/people/lamport/pubs/paxos-simple.pdf</a></p><p>For further reading see Proof Of Stake:</p><p><a href="https://en.wikipedia.org/wiki/Proof-of-stake">https://en.wikipedia.org/wiki/Proof-of-stake</a></p><p>For further reading see Proof Of Authority:</p><p><a href="https://gavofyork.gitbooks.io/turboethereum/content/poa.html">https://gavofyork.gitbooks.io/turboethereum/content/poa.html</a></p><p>For further reading on current models and thought of Contracts etc:</p><p><a href="https://tezos.com/pdf/position_paper.pdf">https://tezos.com/pdf/position_paper.pdf</a></p><p><a href="https://gavofyork.gitbooks.io/turboethereum/content/poa.html">For reference on Dynamic FPGAs:</a></p><p><a href="http://www.xilinx.com/univ/FPL06_Invited_Presentation_PLysaght.pdf">http://www.xilinx.com/univ/FPL06_Invited_Presentation_PLysaght.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b39e0a91b9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As we continue to add support for the DokChain, enabling more business related transactions, we are…]]></title>
            <link>https://medium.com/@tctjr/as-we-continue-to-add-support-for-the-dokchain-enabling-more-business-related-transactions-we-are-f5a6d9fad903?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a6d9fad903</guid>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Wed, 21 Sep 2016 17:31:23 GMT</pubDate>
            <atom:updated>2016-09-21T17:31:23.170Z</atom:updated>
            <content:encoded><![CDATA[<p>As we continue to add support for the <a href="http://fullmetalhealth.com/the-dokchain-is-now/">DokChain</a>, enabling more business related transactions, we are also scrutinizing the mechanics and performance of the frameworks and methodologies. As mentioned in the last blog, <a href="http://www.linkedin.com/pulse/dokchain-deep-dive-part-one-theodore-tanner-jr-">DokChain — Deep Dive Part One</a>, we will now be diving deeper into the mechanics of smart contracts, particularly how the choice of programming language affects the design.</p><p>The first version of Bitcoin, released in January 2009 by Satoshi Nakamoto, contained a scripting language, named <a href="http://en.bitcoin.it/wiki/Script">Script</a>, designed to add flexibility to the conditions under which bitcoins can be transferred. If you think about the transfer of funds as a financial contract, then you can consider Script to be a language for specifying very specific contracts. As these contracts are completely determined by an explicit algorithm, with no need for any human intervention, we call them <em>smart contracts</em>. Script was intentionally designed to restrict the kinds of contracts that could be created. By limiting its scope, stronger promises can be made that the scripts will execute as intended and that malicious scripts cannot be created.</p><p>At the opposite end of the spectrum, programming languages capable of producing anything corresponding to our intuitive notion of algorithm are called <a href="http://en.wikipedia.org/wiki/Turing_completeness">Turing-complete</a> (physical limitations like memory notwithstanding). The assertion that our current definition of algorithm matches our intuition is called the <a href="http://en.wikipedia.org/wiki/Church%E2%80%93Turing_thesis">Church-Turing Thesis</a>. This group of languages includes nearly all of the languages that people tend to think of: C, Python, Fortran, Lisp, Javascript, etc, etc. Despite the extraordinary utility of these languages, they can be difficult to reason about, both by humans and by computers. You can’t, for instance, write a python program which accepts as input an arbitrary python program and tells you if that program is just the function f(x) = 2x (the function that doubles numbers). At the heart of the matter, at least from a theoretical point of view, is that there is no algorithm which can decide which algorithms on which inputs actually terminate. This is know as the halting problem, which was further generalized by <a href="http://kilby.stanford.edu/~rvg/154/handouts/Rice.html">Rice’s theorem</a> to show that there is no non-trivial property describing a program’s behavior that can be decided algorithmically. There are therefore severe limitations when using computers to detect software bugs in programs written in Turing complete languages. This is not to say that people do not attempt to perform static analysis on computer programs, it’s just that success will always be limited.</p><p>Despite the uncontrolled nature of such expressive languages, there is great appeal in having the ability to turn any algorithm into a smart contract. What bitcoin has solved so well for currency becomes a solution for any deterministic process. Platforms such as <a href="http://www.ethereum.org/">Ethereum</a>, <a href="http://www.hyperledger.org/">Hyperledger</a>, and<a href="http://enigma.media.mit.edu/"> Enigma</a> have risen to take advantage of this powerful combination. Ethereum, currently the most successful group to implement these ideas, mitigates some of the unpredictable nature of its smart contracts by imposing a predefined, per-contract limit to the amount of computation each contract can perform. This, however, does not solve all the problems with such a system. There is still the problem of detecting exploits, and in general reasoning about what a contract is capable of doing. Another issue is the verifier’s dilemma, whereby an honest member of the group is disincentivized from verifying every computation, thus preparing the way for malicious attacks.</p><p>Malicious scripting was at the core of the <a href="http://hackingdistributed.com/2016/06/18/analysis-of-the-dao-exploit/">DAO hack</a>, not the low-level machine <a href="http://github.com/ethereum/wiki/wiki/Ethereum-Development-Tutorial#virtual-machine-opcodes">language</a> of the Ethereum virtual machine. Smart contracts are intended to be stand alone agreements, devoid of human wetware. In other words, the code itself is meant to be the ultimate arbiter of the transaction method and business deal. What went wrong with the DAO contract involved subtleties in the high level programming language used to create the contract. A human can easily recognize that the contract behaved in an unintended way. The attacker found a nonobvious way to get the payment portion of the contract stuck in a loop, recursively calling itself over and over until it had drained a very large amount of currency. It is with this in mind that we are focused on proof validation methods for ensuring that contracts on the DokChain execute as expected.</p><p>Interestingly, there are collections of algorithms that are general enough create any smart contract that would be needed in practice, but that do not suffer from things like the halting problem. One such example is the collection of <a href="http://en.wikipedia.org/wiki/Primitive_recursive_function">primitive recursive functions</a>. Two exceptionally nice features of these functions are that they are defined for all inputs (ie computations always halt), and computational bounds can always be determined. The primitive recursive functions are defined as all the functions that can be made from a collection of very basic functions (constant functions, the add one function, etc) using composition and primitive recursion. Primitive recursion is a very controlled type of recursion, whereby a function determines its value on inputn+1 by applying a rule to the previous values f(n), f(n-1), …, f(0). While there does exist algorithms which are not primitive recursive, such examples are impractical for use in a real world smart contract. The <a href="http://en.wikipedia.org/wiki/Ackermann_function">Ackermann function</a>, one of the first examples of an algorithm which is not primitive recursive, grows so fast that Ackerman(4,4) = 2^(2^(2^(65536))) andAckerman(5,5) requires special notation to denote it in a reasonable amount of physical space. The Ackermann function is defined using a kind of double recursion that allows it to grow so fast. It clearly conforms to our intuitive notion of algorithm, thus preventing us from saying that the primitive recursive functions completely capture the notion of algorithm. Here is the definition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*xNfirSJTgvNf4FUE.png" /><figcaption><strong>The Ackerman Function</strong></figcaption></figure><p>If you fix m=2 you get a linear function. If you fix m=3 you get an exponential function. At m=4 you get<a href="http://en.wikipedia.org/wiki/Tetration"> tetration</a>. You can see why the diagonal function A(m, m) grows so fast, and why we would never want to use it in practice (except for maybe things like testing your compiler’s ability to handle recursion). In general, the kinds of algorithms that we cannot capture with a primitive recursive function are either a fast growing function like the Ackerman function, or something like a python interpreter (ie a universal Turing machine) which does not make sense to have as a smart contract.</p><p>There are programming languages designed to take advantage of well behaved collections of algorithms (and hence not Turing complete), usually falling under the category of <a href="http://en.wikipedia.org/wiki/Total_functional_programming">t<em>otal functional programming</em>.</a> We mentioned earlier that the primitive recursive functions are defined on all inputs. We say that a function is <em>total </em>if it is defined on all inputs. Programs in these languages are proved to be total by the compiler. When combined with a descriptive type system, such as dependent types, very strong guarantees about the program’s behavior can be formally proved true by the compiler. The majority of such languages are used as proof assistants, tools used by mathematicians to produce formal mathematical proofs. Examples include <a href="http://coq.inria.fr/">Coq</a>, <a href="http://wiki.portal.chalmers.se/agda">Agda</a>, and <a href="http://isabelle.in.tum.de/">Isabelle</a>. More general purpose languages, such as <a href="http://www.idris-lang.org/">Idris</a>, are now emerging with the same guarantees of totality but designed to be friendlier to software developers. It should be noted that all the languages mentioned above contain a strong enough logical apparatus to actually be able to prove that the Ackermann function is total. It is well understood what it takes to prove that the primitive recursive functions are total (see <a href="http://www.ams.org/mathscinet-getitem?mr=43:6050">Parson’s Theorem</a>). Alternative to using a programming language like those mentioned above, there are tools like <a href="http://why3.lri.fr/">Why3</a> which can take C code (or Java or others) and attempt to formally verify that a program is correct. Success is not guaranteed, however, since C is a turing complete language.</p><p>In an orthogonal direction, the company <a href="http://tezos.com/">Tezos</a> is approaching the verification problem from the purview of updates to a constitutional system based on a rolling governance model (similar to <a href="http://en.wikipedia.org/wiki/Nomic">Nomic</a>). They are implementing a <a href="http://en.wikipedia.org/wiki/Proof-of-stake">Proof Of Stake </a>system written in <a href="http://ocaml.org/">OCaml</a>. While the DokChain is not incentivized by cryptocurrencies, we also believe that Proof Of Work has several shortcomings and that Proof Of Stake yields a more robust system, especially for private chain systems.</p><p>In light of all this, we are actively considering the multitude of paths that Pokitdok can take towards becoming the defacto service provider for smart contract creation, issuance and arbitrage in the health industry. In future blogs we will be addressing how formal verification and methods such as Proof of Stake and <a href="http://gavofyork.gitbooks.io/turboethereum/content/poa.html">Proof Of Authority</a> will be provided on DokChain.</p><p><em>Note:</em> This post originally appeared on <a href="http://fullmetalhealth.com/">FullMetalHealth.com</a> by <a href="http://www.linkedin.com/in/jared-corduan-05024b30">Dr. Jared Corduan</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a6d9fad903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DokChain Deep Dive: Part One]]></title>
            <link>https://medium.com/@tctjr/in-the-last-post-we-introduced-dokchain-and-discussed-where-we-are-heading-as-the-definitive-e85b6b58103?source=rss-9b6bc0eb69fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e85b6b58103</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[healthit]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Ted Tanner Jr]]></dc:creator>
            <pubDate>Wed, 14 Sep 2016 15:39:13 GMT</pubDate>
            <atom:updated>2016-09-14T15:46:28.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/0*XCoMW-NTAjQnJLBl.png" /></figure><p><strong>NOTE</strong>: This originally appeared on <a href="https://fullmetalhealth.com/">FullMetalHealth.com</a>. For context on previous posts and continuity go to <a href="https://www.linkedin.com/pulse/dokchain-now-theodore-tanner-jr-">Blockchain + Healthcare: The DokChain is Now.</a></p><p>We introduced <a href="http://fullmetalhealth.com/the-dokchain-is-now/"><strong>DokChain</strong></a> and discussed where we are heading as the definitive platform for the business of health. While we have proven and solved many issues surrounding scheduling, interoperability and identity, we are also changing the entire substrate of processing for all <a href="http://twitter.com/hashtag/healthit">#HealthIT</a>. So with this in mind we will now embark on a multi-part (<em>chained</em>?) blog series to discuss the current and future areas for DokChain.</p><p>We have implemented a version of the <a href="http://github.com/ethereum/evmjit">ethereum EVM</a> for deployment of DokChain. In addition we have also created a version of DokChain using the <a href="http://azure.microsoft.com/en-us/solutions/blockchain/">Microsoft Blockchain as a service</a>. We currently have the default method of proof of work. As you will see in future posts, we believe this to be suboptimal for engaging across business mechanics for smart contract generation.</p><p>So, how do we go about setting up the services? We had already thought about using blockchain for healthcare back at PokitDok’s inception in 2011. Therefore, with the uptake in API usage in Health IT, we designed the system with this in mind.</p><p>While we currently generate production ready smart contracts for 270/271 (Eligibility) we will easily have the rest of our platform online later this year.</p><p>We will provide on ramp services to all of the current APIs and, for the most part, all of our applications and trading partner interactions will remain unchanged.</p><p>So what have we accomplished? The following is an architectural diagram depicting what we presented back in June for production ready code on <a href="http://azure.microsoft.com/en-us/">Microsoft’s Azure Infrastructure</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*UcMDQT3D84cFHlkM.png" /></figure><p><strong>DokChain Architecture</strong></p><p>At the top level, we first automatically generate a multi-signature wallet for the consumer and for the provider. All of our agreements including 270/271 (eligibility), 835, 837 (claims) and provider search will be couched within the smart contracts we’ll be generating. In the future, when you sign up for our platform these will be automatically generated as part of your DokChain SDK environment.</p><p>The next tier down we are leveraging the <a href="http://pyethapp%20is%20the%20python%20based%20client%20implementing%20the%20ethereum%20cryptoeconomic%20state%20machine./">pyethapp</a> crypto state machine. <a href="http://github.com/ethereum/pyethapp">Pyethapp</a> generates core blockchain related logic such as transactional cryptography and virtual machine contracts. In the case of DokChain we have leveraged this logic and modified to meet the schema and data needs of our platform. It also allows a complete networked app without any overhead of re-tooling. PokitDok has made several pull requests to this code base (<a href="http://github.com/ethereum/pyethapp/pull/123">123</a>, <a href="http://github.com/ethereum/pyethapp/pull/128">128</a>, <a href="http://github.com/ethereum/pyethapp/pull/129">129</a>, <a href="http://github.com/ethereum/pyethereum/pull/341">341</a>).</p><p>Next in line we have <a href="http://github.com/ConsenSys/ethjsonrpc">ethjsonrpc</a> which allows a python client for Ethereum using the JSON-RPC interface. Specifically it implements all 62 JSON-RPC methods and provides a high-level interface to create contracts on the DokChain and to dynamically generate and call contract methods and process events. PokitDok has contributed to this code base as well (<a href="http://github.com/ConsenSys/ethjsonrpc/pull/8">8</a>, <a href="http://github.com/ConsenSys/ethjsonrpc/pull/9">9</a>).</p><p>We then come to the glue code that implements the interface between the <a href="http://github.com/ConsenSys/ethjsonrpc">ethjsonrpc</a> and the pokitdok platform. this allows full access to all of the current interfaces including payers.</p><p>Ok given the architecture what is the actual flow of the process on DokChain for an Eligbility Check? Below is the flow graph for the production ready code we demo’d in Redmond, Washington:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*777HvCWkYMj5eRLz.png" /></figure><p><strong>DokChain Flow for Eligiblity Check</strong></p><p>Prior to the eligibility transaction itself, or any other DokChain transaction for that matter, identity must be established for the interacting parties. Identity is established via a smart contract or wallet for each participating entity. Providers and consumers get wallet codes on the blockchain that implement access control and storage for verified tokens. Payers are typically represented by smart contracts representing the services they provide, in this case eligibility verification.</p><p>The actual code for the consumer wallet generation is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*ewMwgJjPMDuUGcr8.png" /></figure><p>Similarly, the provider wallet code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*qnmfdDIkINJcWIJn.png" /></figure><p>The<em> eligibilityUpdate</em> method in each wallet is invoked by the eligibility contract to store the token verifying the status of the individual’s insurance when a response is received.</p><p>The <em>eligibility contract</em> is the smart contract code, which orchestrates the interaction of the consumer and provider via their on-chain wallets and the payer or other off-chain data or system:</p><p>Given that a consumer has approved access to a provider, which is maintained in the wallet code through use of theonlyApprovedAccounts function modifier, a provider can invoke the eligibility contract to request a current eligibility check be performed on behalf of a consumer. This method will verify the previous access grant has been stored in the consumer wallet and if so will then publish an EligibilityEvent. The off-chain system, <a href="http://platform.pokitdok.com/#/">PokitDok Platform</a>, will scan for EligibilityEvent transactions using the <a href="http://github.com/ConsenSys/ethjsonrpc">ethjsonrpc</a> client, process the legacy ASC X12N 5010 270/271 eligibility transaction request/response with the appropriate payer and then invoke the response method of the Eligibility contract.</p><p>Scanning for EligibilityEvent and processing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*vKaLi6Eyljxf-xhT.png" /></figure><p>Given that a consumer has approved access to a provider, which is maintained in the wallet code through use of <em>theonlyApprovedAccounts</em> function modifier, a provider can invoke the eligibility contract to request a current eligibility check be performed on behalf of a consumer. This method will verify the previous access grant has been stored in the consumer wallet and if so will then publish an EligibilityEvent. The off-chain system, <a href="http://platform.pokitdok.com/#/">PokitDok Platform</a>, will scan for EligibilityEvent transactions using the <a href="http://github.com/ConsenSys/ethjsonrpc">ethjsonrpc</a> client, process the legacy ASC X12N 5010 270/271 eligibility transaction request/response with the appropriate payer and then invoke the response method of the Eligibility contract.</p><p>Scanning for EligibilityEvent and processing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*wU4qFN5lpVG3UxhY.png" /></figure><p>Processing eligibility transaction and invoking the response method of the eligibility contract:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*nJqYPJ9FGXtnTB4e.png" /></figure><p>The eligibility contract will then update the token in the wallets for the consumer and provider, given that access is still granted. As noted, this uses <a href="http://en.wikipedia.org/wiki/Proof-of-work_system">Proof Of Work</a>, which as previously mentioned, is not optimal for health transactions on DokChain. We will be addressing in greater detail in the future.</p><p>We want to emphasize that all of our of 500+ payer connections that represent over 90% covered lives do not have to be notified of DokChain interactions. Further, the current set of applications will auto-magically take advantage of this architecture. This is patent pending technology that has been engineered such that anyone who is signed up for our platform can immediately take advantage of it.</p><p>This pattern for creating identity, managing access grants, storing cryptographically verified pointers to off-chain data and orchestrating interactions of these identities with healthcare services is a repeatable means to bring all of the business of health to the blockchain.</p><p>It is the intent of PokitDok to become not only the defacto standard for identity management in health IT but also to become the reference for the intersection of smart contract generation and services for the intersection of <a href="http://twitter.com/hashtag/fintech">#FinTech</a> and <a href="http://twitter.com/hashtag/healthtech">#HealthTech</a>. We further believe that given our backgrounds in <a href="http://twitter.com/hashtag/machinelearning">#machinelearning</a> <a href="http://twitter.com/hashtag/graphtheory">#graphtheory</a> and <a href="http://en.wikipedia.org/wiki/Computational_topology">#computationaltopology</a>, we will also forge a new level of <a href="http://twitter.com/search?q=%23AI">#artificial_intelligence</a> using DokChain for the health sector.</p><p>PokitDok will continue driving and refining these technologies to expand upon this foundation and provide a robust framework for secure, reliable smart contract generation as well as the infrastructure for combining all of the healthcare off-chain data and systems with on-chain execution and intelligence.</p><p>In our next blog, we will discuss how we are developing technologies specifically aimed at smart contract validation as it pertains to turing vs non-turing languages.</p><p>Until then,</p><p><a href="http://twitter.com/hashtag/sharethehealth">#sharethehealth</a></p><p><a href="http://twitter.com/tctjr">@tctjr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e85b6b58103" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>