<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cognitive Inheritance</title>
    <description>The Application Development Experiences of an Enterprise Engineer</description>
    <link>http://www.cognitiveinheritance.com/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>Prehensile Pony Tail 1.0</generator>
    <language>en-US</language>
    <atom:link href="https://cognitiveinheritance.com/syndication.xml" rel="self" type="application/rss+xml" />	
    <item>
  <title>80&#37; of Implementations Should be Using Microservices</title>
  <description>&lt;p&gt;Most modern software systems should use microservices by default. Clear service boundaries help isolate failures, support eventual consistency, and let teams deploy changes independently. As a result, it is my belief that roughly 80% of applications should be using the microservices pattern, despite some of the recent push-back.&lt;/p&gt;
&lt;p&gt;Monoliths can simplify local calls and deployment, but they do not remove complexity. Shared data, cross-domain transactions, and hidden dependencies make systems harder to reason about. These shortcuts also encourage coupling, making failures harder to contain, deployments riskier, and a later split more expensive. Monoliths can use reliable patterns, but microservices make them easier to adopt from the start, and harder to move away from accidentally.&lt;/p&gt;
&lt;p&gt;Monoliths can seem simpler because they make direct calls and shared data easier, but those very conveniences are often what encourages coupling and adds complexity later.&lt;/p&gt;
&lt;h2&gt;The Monolith-First Fallacy&lt;/h2&gt;
&lt;p&gt;The fundamental problem with starting with a monolith is that it encourages, or at least does not prevent, several distributed systems anti-patterns. For example, monoliths make it far too easy to accidentally depend on full consistency rather than embracing eventual consistency. Most of the difficult race conditions I&apos;ve encountered in my career have been a result of not embracing eventual consistency from the beginning.&lt;/p&gt;
&lt;p&gt;A monolith can be well-abstracted, but keeping its boundaries and reliability patterns intact as the system grows can be nearly impossible; the path of least resistance gradually pulls teams toward direct calls and synchronous consistency.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;...if a problem were to occur late Friday afternoon, would it be ok for it to wait until Monday to be fixed? If not, a monolith probably doesn&apos;t provide the needed reliability profile.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Simplicity Through Natural Boundaries&lt;/h2&gt;
&lt;p&gt;While monolithic architectures &lt;em&gt;can&lt;/em&gt; implement all of the patterns designed to make our systems reliable, microservices make these patterns natural, simpler, and the path of least resistance. This distinction is crucial because &lt;strong&gt;simplicity is critical everywhere in our systems, but it is most important within the reliability aspects&lt;/strong&gt;. Reliability-critical paths (failover, error handling, recovery) must remain simple. Microservices achieve this simplicity by making reliable patterns the default choice rather than requiring extra effort.&lt;/p&gt;
&lt;p&gt;Since everything in software engineering is a trade-off, we should be willing to accept minor increases in operational complexity (like service discovery or distributed tracing) in exchange for dramatic simplification of our reliability-critical paths. Reliable messaging is only as good as the boundaries it enforces. Microservices often enforce these boundaries by default.&lt;/p&gt;
&lt;h3&gt;1. Reliability Through Isolation&lt;/h3&gt;
&lt;p&gt;One of the most compelling arguments for microservices is the inherent reliability gained through service isolation. When a service fails in a monolithic application, it often brings down the entire system. In contrast, microservices architecture allows for graceful degradation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Individual service failures remain isolated&lt;/li&gt;
&lt;li&gt;The rest of the system continues functioning&lt;/li&gt;
&lt;li&gt;Recovery can occur without system-wide impact&lt;/li&gt;
&lt;li&gt;Circuit breakers can protect dependent services&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Service boundaries can limit the impact of a failure, but they do not guarantee isolation on their own. Teams still need to decide how the system will behave when a dependency is unavailable. The same question applies to monoliths when they depend on external services or shared infrastructure. Inside a monolith, direct calls can make dependencies and failure behavior less visible, so teams may be less likely to design for them explicitly.&lt;/p&gt;
&lt;h3&gt;2. Reliability Through Eventual Consistency&lt;/h3&gt;
&lt;p&gt;One of the key paradigm shifts in microservices architecture is embracing eventual consistency. While this concept might seem challenging at first, it often better reflects real-world business processes. Monoliths trick you into synchronous thinking, creating brittle systems that fail catastrophically.&lt;/p&gt;
&lt;p&gt;We often expect every part of a workflow to be up to date before the system responds. But some work can safely finish later. For example, once an order is accepted and inventory is reserved, its confirmation email can be queued and sent later. If checkout waits for the email service, an outage there can block an otherwise valid order. Eventual consistency lets the email catch up; it does not mean relaxing consistency where the business requires it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;async&lt;/code&gt;/&lt;code&gt;await&lt;/code&gt; helps code wait without blocking, but it does not make a workflow eventually consistent. Many &lt;code&gt;async&lt;/code&gt; methods still wait for a response before proceeding. To let work finish later, the system must hand it off reliably and allow the caller to move on. Monoliths make direct calls easier than message handoffs, so synchronous patterns are easy to introduce and harder to replace later.&lt;/p&gt;
&lt;p&gt;But here&apos;s the hidden benefit: &lt;strong&gt;Eventually consistent systems using reliable messaging patterns like Service Bus or Apache Kafka are inherently self-healing&lt;/strong&gt;. When a service is temporarily unavailable, messages queue up. When it returns, processing resumes automatically. No manual intervention, no 3am calls. The system heals itself.&lt;/p&gt;
&lt;p&gt;Could a monolith use these same messaging patterns? Technically, yes. But monoliths don&apos;t make this pattern a first-class citizen. In a monolith, it&apos;s far easier to make a direct method call than to set up messaging infrastructure. Microservices, by their very nature, push you toward these resilient patterns from the start. The path of least resistance in microservices leads to self-healing systems; in monoliths, it leads to brittle, synchronous coupling.&lt;/p&gt;
&lt;h3&gt;3. Scalability as Operational Reliability&lt;/h3&gt;
&lt;p&gt;Microservices enable precise scaling of specific functionality, preventing system-wide performance degradation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;High-demand services can scale independently&lt;/li&gt;
&lt;li&gt;Resource allocation becomes more efficient&lt;/li&gt;
&lt;li&gt;Cost optimization is more granular&lt;/li&gt;
&lt;li&gt;Performance bottlenecks are easier to identify and address&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Scalability is only one of the benefits of event-driven microservices; see &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/microservices-not-just-about-scale.html&quot;&gt;Microservices - Not Just About Scalability&lt;/a&gt; for the broader case.&lt;/p&gt;
&lt;h3&gt;4. Team Autonomy and Deployment Reliability&lt;/h3&gt;
&lt;p&gt;Modern development teams thrive when they can work independently. Independent deployments mean isolated risk:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Teams can own their services end-to-end&lt;/li&gt;
&lt;li&gt;Deployment cycles are shorter and lower risk&lt;/li&gt;
&lt;li&gt;Technology choices can be optimized per service&lt;/li&gt;
&lt;li&gt;Parallel development becomes more natural&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By contrast, monolithic deployments put more of the application at risk at once:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One bad change can bring down unrelated features&lt;/li&gt;
&lt;li&gt;Rollbacks affect the entire system, not just the problem area&lt;/li&gt;
&lt;li&gt;Teams may batch changes to reduce deployment frequency, increasing the risk of each release&lt;/li&gt;
&lt;li&gt;&amp;quot;Never deploy on Friday&amp;quot; can become policy because the consequences are difficult to contain&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why &amp;quot;Start with a Monolith&amp;quot; Fails&lt;/h2&gt;
&lt;p&gt;The strongest argument against starting with a monolith is not that it cannot be well designed. It is that coupling tends to increase along the path of least resistance, amplifying the deployment risks described above.&lt;/p&gt;
&lt;h3&gt;The Coupling Creep (The Most Insidious Failure)&lt;/h3&gt;
&lt;p&gt;Coupling creep is particularly dangerous because it usually happens gradually, invisibly, and with each individual step appearing reasonable. It is the architectural equivalent of boiling the metaphorical frog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Day 1&lt;/strong&gt;: &amp;quot;We&apos;ll keep clean boundaries between our modules&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Month 1&lt;/strong&gt;: &amp;quot;Just this once, we&apos;ll directly call that other module&apos;s internal method&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Month 6&lt;/strong&gt;: &amp;quot;We need a database transaction across these three domains for consistency&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Year 1&lt;/strong&gt;: &amp;quot;Nobody knows what depends on what anymore&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In a monolith, coupling spreads through the path of least resistance:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Direct method calls are easier than message passing, so it is natural to take the shortcut&lt;/li&gt;
&lt;li&gt;Shared database transactions create hidden dependencies across business domains&lt;/li&gt;
&lt;li&gt;&amp;quot;Temporary&amp;quot; shared data models become permanent coupling points&lt;/li&gt;
&lt;li&gt;Performance optimizations can encourage developers to bypass abstractions&lt;/li&gt;
&lt;li&gt;What begins as clean architecture can gradually become a big ball of mud&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;This is why coupling creep is so insidious&lt;/strong&gt;: each decision can be justified in isolation. The shortcut saves time, and the optimization improves performance. Collectively, however, these decisions create a web of dependencies that makes a later refactoring to microservices much more expensive, if not effectively impossible.&lt;/p&gt;
&lt;h3&gt;&amp;quot;bUt OuR tEaM cAn&apos;T hAnDlE mIcRoSeRvIcEs&amp;quot;&lt;/h3&gt;
&lt;p&gt;This kind of statement may describe the team’s current experience, but it should not determine which architecture the system needs. &amp;quot;We can&apos;t&amp;quot; may describe an addressable skills gap, or it may describe a genuine organizational capacity constraint; those are not the same problem.&lt;/p&gt;
&lt;p&gt;If the team lacks the skills to build and operate reliable services, the answer is to close that gap: teach the patterns, provide a platform and guardrails, and build experience incrementally. &amp;quot;We don’t know how yet&amp;quot; is a reason to invest in learning, not a permanent architectural principle. The people responsible for the system also have a responsibility to help the team become capable of operating it reliably.&lt;/p&gt;
&lt;p&gt;An organization that cannot provide the necessary training, time, staffing, platform, or operational support presents a different problem. If the team cannot realistically own the reliability and operational consequences of microservices, that is a genuine organizational capacity constraint, not merely a skills gap to be dismissed. It may make a monolith the better choice for now, but the decision should say so explicitly and account for the consequences. &amp;quot;Our team can’t handle microservices&amp;quot; is not a sufficient rebuttal until we identify which problem we actually have and address the one that is addressable.&lt;/p&gt;
&lt;p&gt;I suspect that we’ll all agree, at least in principle, that any argument reducing the issue to &amp;quot;the team members are too dumb to handle it&amp;quot; is ridiculous and can be dismissed outright. Unfortunately, I still hear arguments like that, and I will always shut them down.&lt;/p&gt;
&lt;p&gt;In a future article, I’ll take a broader look at some of these tradeoffs, including testing, complexity, and operational overhead.&lt;/p&gt;
&lt;h2&gt;When to Consider a Monolith&lt;/h2&gt;
&lt;p&gt;The roughly 20% of cases where monoliths make sense have one thing in common: reliability isn&apos;t critical. We should choose a monolith only when ALL of the following are true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The application has extremely limited scope with no growth expectations&lt;/li&gt;
&lt;li&gt;You have a very small team (1-2 developers) with no plans to expand&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The application is a &lt;strong&gt;true proof-of-concept that will be discarded&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The only situation in an Enterprise application of any significance where I might start with a monolith is when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The application has extreme latency or consistency requirements that override reliability concerns.
&lt;ul&gt;
&lt;li&gt;Be skeptical of these types of claims. Systems are often designed around theoretical latency or consistency requirements that are never actually validated against business outcomes.&lt;/li&gt;
&lt;li&gt;Requirements that truly justify these tradeoffs are very rare in line-of-business software. They are more commonly found in real-time, embedded, control, infrastructure, or other systems-engineering domains where timing and correctness constraints are fundamental to the system&apos;s purpose.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Downtime is acceptable and won&apos;t impact users or business operations
&lt;ul&gt;
&lt;li&gt;That is, if a problem were to occur late Friday afternoon, would it be ok for it to wait until Monday to be fixed? If not, a monolith probably doesn&apos;t provide the needed reliability profile.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you&apos;re unsure, you probably need microservices. Uncertainty about future requirements is a very good reason for defaulting to strong isolation.&lt;/p&gt;
&lt;h2&gt;The Reliability Dividend&lt;/h2&gt;
&lt;p&gt;Every architectural decision compounds over time. With microservices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Every failure isolated is a 3am call avoided&lt;/li&gt;
&lt;li&gt;Every service boundary is a blast radius limit&lt;/li&gt;
&lt;li&gt;Every independent deployment is a risk reduction&lt;/li&gt;
&lt;li&gt;Every asynchronous pattern is a cascading failure prevented&lt;/li&gt;
&lt;li&gt;Every reliable messaging pattern enables self-healing and can mean one less 3am call&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The case for microservices is not that monoliths are always wrong, or that microservices automatically provide reliability. It is that explicit service boundaries and asynchronous communication make reliability concerns part of the design rather than an afterthought. For many systems, that makes microservices the stronger default, provided the team can learn and operate the required patterns effectively.&lt;/p&gt;
&lt;p&gt;An addressable skills gap should not become a permanent architectural principle: teams can build experience with training, platform support, and guardrails. A genuine organizational capacity constraint is different, but it does not, by itself, make a monolith the right choice. A monolith is appropriate only when the application meets the conditions described above, or when it is a true proof of concept that will be discarded. Otherwise, the capacity constraint must be addressed rather than used to justify the wrong architecture.&lt;/p&gt;
&lt;p&gt;When reliability and independent change matter, microservices provide a stronger starting point, not a guarantee. Teams still need reliable messaging, deliberate failure handling, and sufficient observability to realize the benefits.&lt;/p&gt;
&lt;h2&gt;Further Reading&lt;/h2&gt;
&lt;p&gt;For more on the design conversations behind reliable event-driven systems, see the six-part &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-1of6-context.html&quot;&gt;Critical C&apos;s of Microservices&lt;/a&gt; series: &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-1of6-context.html&quot;&gt;Context&lt;/a&gt;, &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-2of6-consistency.html&quot;&gt;Consistency&lt;/a&gt;, &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-3of6-contract.html&quot;&gt;Contract&lt;/a&gt;, &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-4of6-chaos.html&quot;&gt;Chaos&lt;/a&gt;, &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-5of6-competencies.html&quot;&gt;Competencies&lt;/a&gt;, and &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-cs-of-microservices-6of6-coalescence.html&quot;&gt;Coalescence&lt;/a&gt;. The companion &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/critical-questions-about-microservice.html&quot;&gt;Critical Questions About Microservices&lt;/a&gt; article gathers those questions in one place.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/80-percent-of-implementations-should-be-using-microservices.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/2eabd648-feb1-4f89-beb7-8f3a29dc6828.html</guid>
  <pubDate>Fri, 13 Nov 2026 07:00:00 GMT</pubDate>
</item><item>
  <title>AI Will Totally Cure Cancer, Bro!</title>
  <description>&lt;p&gt;It was recently reported that Palantir CTO Shyam Sankar claimed that
&amp;quot;many AI researchers have started smoking&amp;quot; as a way of signaling
extreme confidence that AI will cure cancer. While I find this claim
extremely dubious, it is not hard for me to image what the conversation
that &amp;quot;started&amp;quot; such a practice might have sounded like, had it actually
occurred.&lt;/p&gt;
&lt;p&gt;FWIW: I believe that when cancer is finally cured, it will not be
because a machine suddenly solved it, it will be because innumerable
people made super-human efforts to do the research, ask the right
questions, and even program the models, so that when all of the
necessary factors came together, the solution could be found, likely
with the help of machines, but most certainly by people.&lt;/p&gt;
&lt;p&gt;The below then is completely made up for your entertainment only. Since
this is purely fiction, we will use the names Samwise, Elmo and Mork
to represent our researchers.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; The night air hits different when you’re smoking outside
a building full of people trying to build the thing that will
cure cancer or whatever. It’s like the weather is judging us.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; The weather can get in line. My stress levels are already
judging me harder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; Honestly, every time I light one of these, I feel like
I’m committing a tiny crime against the future. Like some
time‑traveler is going to pop out and slap the cigarette out of my hand.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; If a time‑traveler shows up, I’m asking him whether our
model actually works. It would save us a lot of alignment meetings.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Imagine that. We cure cancer, and the only side effect
is that we all start smoking again. It’s poetic in the stupidest
possible way.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; It’s the kind of thing philosophers would write essays about.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Philosophers don’t write essays anymore, they make podcasts.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; We’d be great podcast guests. We’ve got the &amp;quot;tired
geniuses who know too much&amp;quot; vibe.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; We have the &amp;quot;tired&amp;quot; part. The &amp;quot;genius&amp;quot; part is still in beta.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Still. Picture this: us in some rooftop bar in Lisbon,
smoking, talking about model training, explaining how we accidentally
cured cancer while debugging a tensor.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Why Lisbon?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Feels like a place where people smoke and talk about AI.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; That’s everywhere now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Okay, but Seoul has better rooftop bars.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Fine. Rooftop in Seoul, or maybe Buenos Aires. I know,
Dubai. That&apos;s it. The point is: we’d look cool.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; We don’t look cool. We look like three idiots who
haven&apos;t taken a break since the last bubble. At least with
our smokes we get to walk away from the machines for a few minutes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Speak for yourself. I look mysterious.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; You look like you’re waiting for an Uber that’s never coming.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; Hold on. This rooftop bar thing. The smoking thing, why does
it all feel like the beginning of a crappy pitch deck?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Oh no. Oh no, I feel it too.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Don’t say it. Don’t you dare say it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; We could be...influencers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; God. It’s happening. Mork&apos;s finally lost-it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Wait, we&apos;re not cringe influencers right? We&apos;d be
cool influencers. Like...intellectual degenerates.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; We’d travel the world, smoke in different rooftop bars,
and talk about AI. Then we get paid by people who don’t understand
any of it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; You mean like tech monks, wandering the earth, except
instead of enlightenment, we offer hot takes?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; And cigarettes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; Exactly. Our brand is &amp;quot;Wisdom, but with lung damage.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; I’d subscribe.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; I’d unsubscribe, then resubscribe just to feel something.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; Okay, but real talk, how do we get this funded?&lt;br /&gt;
We’re not paying for flights to Lisbon ourselves.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; Easy. We tell the company we started smoking because
we &lt;em&gt;know&lt;/em&gt; our AI will cure cancer. So technically, this is...morale research.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Oooh, that&apos;s good! We pitch it as a &amp;quot;global outreach
initiative.&amp;quot; We travel the world, smoke, talk about how powerful
the AI is, and reassure everyone that cancer is basically canceled.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; We frame it as &amp;quot;post‑oncological lifestyle marketing.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samwise:&lt;/strong&gt; We’re geniuses. I mean, sure we&apos;re ridiculous and totally
getting fired, but hopefully only after the first world tour.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Elmo:&lt;/strong&gt; Worth it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mork:&lt;/strong&gt; Toss me a light. I need to &amp;quot;accelerate my personal research.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/AI-will-totally-cure-cancer-bro.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/8d27da3a-6e4d-428d-93cd-75003d7edd43.html</guid>
  <pubDate>Fri, 16 Oct 2026 19:00:00 GMT</pubDate>
</item><item>
  <title>Complexity Matters - Baseball's New Strike Zone</title>
  <description>&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;MLB&apos;s &lt;strong&gt;hybrid&lt;/strong&gt; ABS challenge system is a disaster for baseball because it violates one simple rule:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Complexity that does not facilitate the primary objective is damaging to the system.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is true with ABS for 2 reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It adds unnecessary complexity to what should be a simple decision: each pitch should resolve immediately as either a ball or a strike.&lt;/li&gt;
&lt;li&gt;It adds non-baseball strategy to the game, forcing players and managers to think about challenge timing and inventory instead of playing baseball, while still not solving the underlying problem: baseball games should be decided by the athletic skill of the players.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;For over a century, every baseball pitch was governed by a simple model with two possible outcomes: ball or strike. The binary call provided a clarity that was easily understood by everyone on the field and off. When the umpire signaled, the result was unambiguous, even when the call was wrong. Fans might grumble about blown calls, but the system itself was not questioned. Its simplicity required little mental effort to follow and left little room for confusion or debate. That was the baseline: a shared understanding of pitch in, call out, with the rulebook treated as final. MLB&apos;s new hybrid approach creates two problems: it adds unnecessary complexity to a simple ball-or-strike decision, and it introduces a non-baseball strategy around challenge timing and inventory.&lt;/p&gt;
&lt;h2&gt;Technology Arrives, But Only Halfway&lt;/h2&gt;
&lt;p&gt;Major League Baseball, long in pursuit of the perfectly called game, eventually turned to technology for help. Events like Armando Galarraga&apos;s near-perfect game in 2010, along with the apparent success of the replay challenge system, may have made a challenge-based ABS (&lt;strong&gt;Automated Balls and Strikes&lt;/strong&gt;) model seem more attractive, even though ABS is a different system from replay challenges, with different mechanics and implementation. Automated systems like ABS offered a more accurate and consistent strike zone, a modern response to the limits of human judgment. MLB did not fully hand the decision over to automation, however. Instead, it chose a hybrid approach: umpires still make the initial call, and those calls can then be challenged and reviewed by ABS. The result is not a better version of the old system; it is a layered process that preserves human failings while adding machine oversight. That layering &lt;em&gt;may&lt;/em&gt; improve accountability, but it also adds complexity, and the challenge step can make the experience harder rather than simpler to follow.&lt;/p&gt;
&lt;h2&gt;It Still Lets Bad Calls Decide Games&lt;/h2&gt;
&lt;p&gt;If the objective of adding ABS is to attempt to eliminate times that a bad call changes the outcome of a game, the challenge system fails because access to a correction is limited. A player has to decide which calls are important enough to challenge, while preserving challenges for situations that might matter more later. That means an incorrect call, even one that could ultimately determine the outcome of a game, can remain in place not because ABS cannot identify it, but because that player cannot risk one of his team&apos;s limited challenges on it, or the team has no challenges remaining. This is exasperated by the fact that review requests must be made instantly, without reflection or aid, and by the players themselves, with varying levels of experience and reliability in these areas.&lt;/p&gt;
&lt;p&gt;This turns accuracy into a resource-allocation problem. A close call in an early inning may be wrong, but challenging it could leave a team without protection in a later, higher-leverage situation. A consequential call can therefore stand while a less important call is reviewed, simply because the available challenge inventory has to be managed over the course of the game. The system still permits the very outcome it was supposed to prevent: a game being decided by an uncorrected bad call.&lt;/p&gt;
&lt;p&gt;The limitation is not just an implementation detail. Once correction depends on inventory management, the system cannot treat every pitch according to the same standard. It asks participants to optimize when to seek correctness instead of making every call correct by default. That weakens the primary objective while creating the non-baseball strategy and additional complexity discussed below.&lt;/p&gt;
&lt;h2&gt;The State-Machine Tangle: When a Strike Isn&apos;t Just a Strike&lt;/h2&gt;
&lt;p&gt;Systems are shaped by the states they recognize and the transitions between them. For a hundred years, baseball&apos;s model was elegantly sparse. Every pitch lived in one of two states: a ball or a strike. Nothing to memorize, nothing to manage. But with the introduction of ABS challenges, things quietly got more complicated. Now, what used to be a simple call must traverse a web of possible verdicts before it&apos;s settled.&lt;/p&gt;
&lt;p&gt;Instead of the old binary, the hybrid model introduces six to eight distinct states, depending on how strictly states are counted. These include called, unconfirmed, validated, and final ball-or-strike outcomes, each with its own implications for the game and its participants.&lt;/p&gt;
&lt;p&gt;Here&apos;s the twist: none of this scaffolding exists for the sake of baseball itself. These aren&apos;t states that matter to the nature of pitching or hitting, but layers imposed to manage and ration access to truth.&lt;/p&gt;
&lt;p&gt;To appreciate just how much complexity the ABS system introduces, compare it to the pre-ABS state machine where there were only two possible destinations for every pitch:&lt;/p&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;pre class=&quot;mermaid&quot;&gt;stateDiagram-v2
    state &amp;quot;Ball&amp;quot; as Ball
    state &amp;quot;Strike&amp;quot; as Strike

    [*] --&amp;gt; Ball: Ump Calls Ball
    [*] --&amp;gt; Strike: Ump Calls Strike
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;With the new ABS hybrid system, MLB has introduced a set of intermediate states and transitions that eventually result in the same Ball or Strike call. The diagram below illustrates the expanded system:&lt;/p&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;pre class=&quot;mermaid&quot;&gt;stateDiagram-v2
    state &amp;quot;Called Ball&amp;quot; as Initial_Ball
    state &amp;quot;Validated Ball&amp;quot; as Validated_Ball
    state &amp;quot;Unconfirmed Ball&amp;quot; as Unconfirmed_Ball
    state &amp;quot;Ball&amp;quot; as Ball

    state &amp;quot;Called Strike&amp;quot; as Initial_Strike
    state &amp;quot;Validated Strike&amp;quot; as Validated_Strike
    state &amp;quot;Unconfirmed Strike&amp;quot; as Unconfirmed_Strike
    state &amp;quot;Strike&amp;quot; as Strike

    [*] --&amp;gt; Initial_Ball: Ump Calls Ball
    [*] --&amp;gt; Initial_Strike: Ump Calls Strike

    Initial_Ball --&amp;gt; Validated_Ball: Catcher Challenge&amp;lt;br/&amp;gt;Unsuccessful
    Initial_Ball --&amp;gt; Validated_Strike: Catcher Challenge&amp;lt;br/&amp;gt;Successful
    Initial_Ball --&amp;gt; Unconfirmed_Ball: No Challenge Issued

    Initial_Strike --&amp;gt; Validated_Strike: Batter Challenge&amp;lt;br/&amp;gt;Unsuccessful
    Initial_Strike --&amp;gt; Validated_Ball: Batter Challenge&amp;lt;br/&amp;gt;Successful
    Initial_Strike --&amp;gt; Unconfirmed_Strike: No Challenge Issued

    Validated_Ball --&amp;gt; Ball
    Unconfirmed_Ball --&amp;gt; Ball

    Validated_Strike --&amp;gt; Strike
    Unconfirmed_Strike --&amp;gt; Strike
&lt;/pre&gt;
&lt;/div&gt;
&lt;h2&gt;A Live Counterexample: WPBL&lt;/h2&gt;
&lt;p&gt;The Women&apos;s Pro Baseball League (WPBL), operating out of Springfield, Illinois, offers a useful contrast. The league does not use MLB&apos;s ABS challenge layer, and the result is a cleaner game flow: each pitch resolves immediately into the same two-state model baseball has always used.&lt;/p&gt;
&lt;p&gt;That simplicity matters. Without challenge inventory, review choreography, and overturn bookkeeping, players and fans can focus on pitch execution, sequencing, and situational strategy instead of state management. In systems terms, WPBL avoids adding intermediate states that do not improve the core interaction.&lt;/p&gt;
&lt;p&gt;If the goal is to preserve baseball as a game of rhythm and readable outcomes, WPBL shows that the simpler model is not outdated—it is often the better design.&lt;/p&gt;
&lt;h2&gt;Complexity has a Cost, and not Just in Baseball&lt;/h2&gt;
&lt;p&gt;Complexity is not just a technical property; it is a user-experience cost. Every additional state in a system introduces more transitions, and every transition introduces another chance for hesitation, disagreement, or error. What used to be instantaneous and final now carries conditional logic: who can challenge, when they can challenge, whether it succeeds, and how that outcome is interpreted in context. Even when the final output is still only ball or strike, the path to that output has become tangled.&lt;/p&gt;
&lt;p&gt;In system design, this is a familiar pattern. State growth tends to produce edge cases, and edge cases demand rules. Rules then require timing constraints, exception handling, and social coordination among participants. In baseball terms, that means more signaling, more pause points, and more moments where participants are managing process instead of playing the game. In software terms, it is state explosion: a known source of fragility, cognitive load, and surprising behavior.&lt;/p&gt;
&lt;p&gt;The important point is that this cost is not neutral. Added complexity reshapes attention. Players begin optimizing for challenge timing and inventory management. Fans must parse whether they just saw an ordinary call, a provisional one, or a reviewed and overturned outcome. Umpires and broadcasters inherit additional interpretive overhead. None of this directly improves the core act at the heart of the game: pitcher throws, batter reacts, umpire (or system) resolves.&lt;/p&gt;
&lt;p&gt;When complexity accumulates faster than value, the system becomes harder to trust, harder to follow, and harder to maintain. That is the descent: not a dramatic failure, but a gradual shift where procedural scaffolding starts to overshadow the thing it was meant to support.&lt;/p&gt;
&lt;h2&gt;A Meta-Process Emerges&lt;/h2&gt;
&lt;p&gt;Once a system introduces optional review states, participants stop engaging only with the core activity and start managing the review mechanism itself. That is exactly what MLB&apos;s challenge-based ABS model creates: a second game layered on top of baseball. The pitch is no longer just a contest between pitcher and hitter; it is also a resource decision about whether this specific moment is worth consuming part of a limited challenge budget.&lt;/p&gt;
&lt;p&gt;From a DDD (Domain-Driven Design) perspective, this is a boundary problem. The core domain of baseball at this decision point is pitch adjudication: was it a ball or a strike? The challenge mechanism introduces a separate supporting subdomain that is orthogonal to that core judgment and includes tasks like managing challenge inventory, timing escalations, and review strategy. Once that subdomain exists, participants optimize it, and system attention shifts away from the primary domain behavior.&lt;/p&gt;
&lt;p&gt;For catchers, this means constant triage. A close miss that could steal a strike might be worth a challenge early, but using one too soon can leave the defense exposed later when leverage is higher. Hitters face a mirrored decision: protect an at-bat now, or save the challenge for a later pitch sequence that might matter more. Managers, meanwhile, are pulled into inventory tracking. Having to count available challenges, anticipate future high-leverage spots, and balance immediate correctness against late-game optionality. Players are judged not just on their ability to do their job as a baseball player, but as a maker of these snap decisions as well.&lt;/p&gt;
&lt;p&gt;Fans and broadcasters inherit this complexity too. Instead of processing a straightforward call, they must now interpret whether a pitch was merely called, left unchallenged, or challenged and either upheld or overturned. The vocabulary and timing of the game shift from direct outcomes to procedural states. Attention moves from &amp;quot;what happened on that pitch?&amp;quot; to &amp;quot;what state is this call currently in?&amp;quot; and &amp;quot;where do we stand with the number of opportunities we still have to challenge?&amp;quot;.&lt;/p&gt;
&lt;p&gt;This is the key consequence of hybridization: once process becomes strategic it begins to shape behavior. The system no longer just adjudicates baseball, it influences how baseball is played, watched, and discussed in real time. That is the meta-game, an added layer of state management that did not previously exist, and that competes with the game itself for cognitive bandwidth.&lt;/p&gt;
&lt;h2&gt;The Simpler, Better Alternative&lt;/h2&gt;
&lt;p&gt;The strongest alternative is not partial automation but full automation at the point of the strike-zone call. In such a model, ABS determines every ball-or-strike decision, and the home-plate umpire communicates that result immediately while continuing to handle all other on-field responsibilities at the plate.&lt;/p&gt;
&lt;p&gt;This preserves what matters most from both perspectives. From a correctness standpoint, each pitch gets a consistent, machine-judged strike-zone ruling. From a game-flow standpoint, there is no challenge inventory, no review choreography, and no intermediate call states to track. The decision remains binary and immediate: each pitch resolves once, in real time, as ball or strike.&lt;/p&gt;
&lt;p&gt;Crucially, this approach removes the hybrid complexity rather than managing it. There are no provisional outcomes waiting for escalation, no strategic overhead about when to challenge, and no meta-process competing with the core contest between pitcher and hitter. The system does one thing, adjudicate the zone accurately, and does it the same way every time.&lt;/p&gt;
&lt;p&gt;In systems terms, full ABS at the decision point is the minimal-state design that still achieves the primary goal. It improves consistency and reliability of the system without expanding the state machine, and it gives baseball a cleaner architecture: deterministic calls, lower cognitive load, and fewer failure points in high-leverage moments.&lt;/p&gt;
&lt;p&gt;In engineering terms, this is the difference between replacing a component and wrapping it in control scaffolding. Hybrid ABS wraps a flawed step with exception paths, escalation logic, and resource management rules. Full ABS replaces the decision component outright and keeps the interface simple: one input event (pitch), one authoritative output (ball or strike), no secondary workflow. That is classic complexity control, solve the core reliability problem at the source, minimize state, and avoid layering process where determinism will do.&lt;/p&gt;
&lt;h2&gt;Complexity Is a Choice&lt;/h2&gt;
&lt;p&gt;The deeper lesson here reaches far beyond baseball. Hybrid systems are often framed as pragmatic compromises, but they frequently inherit the weaknesses of both approaches while adding a new layer of coordination overhead. In MLB&apos;s challenge-based ABS model the goal was to improve strike-zone accuracy, yet the chosen implementation expanded the state machine, increased cognitive load, and introduced a meta-process that competes with the game itself.&lt;/p&gt;
&lt;p&gt;From an engineering perspective, this is a familiar failure mode. When a core function is unreliable, teams often add exception paths, overrides, and escalation logic around it instead of replacing the weak component directly. The result can be locally rational but globally complex: more states to track, more transitions to test, and more ways for behavior to drift from intent.&lt;/p&gt;
&lt;p&gt;The alternative is disciplined simplification. Define the primary objective, then choose the architecture with the fewest moving parts that reliably achieves it. For balls and strikes, that means deterministic ABS calls delivered in real time, with no challenge layer and no procedural detours. More generally, it means designing systems where correctness is built into the core path, not bolted on through secondary workflows.&lt;/p&gt;
&lt;p&gt;In DDD terms, robust systems protect the core domain and resist importing process-heavy subdomains that compete with core outcomes.&lt;/p&gt;
&lt;p&gt;Complexity is not an inevitable byproduct of progress, it is a design decision. And when accuracy and consistency are the objective, the system with the fewest states usually wins.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/complexity-matters-baseballs-new-strike-zone.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/8e95e82d-55ec-44bc-a5a2-573d023274d0.html</guid>
  <pubDate>Sun, 27 Sep 2026 07:00:00 GMT</pubDate>
</item><item>
  <title>Signals & Levers in Practice: A Software-Architecture Case Study</title>
  <description>&lt;p&gt;Sometimes, with software intensive systems, the symptoms of a problem are recognizable: the system is &amp;quot;slow&amp;quot;, or a usage graph is spiking during critical events. Other times, the symptoms can more unsettling: users are reporting occasional data errors. The problem is intermittent, difficult to reproduce, and frustratingly resistant to simple explanations. Is it bad input? A particular user or workload? A recent deployment? A dependency behaving badly at just the wrong moment? Often, our first instinct is to look for a single cause. &lt;a href=&quot;https://bookshop.org/p/books/signals-levers-systems-thinking-tools-to-unblock-software-delivery-elisabeth-hendrickson/bf2d9d17012f909f?ean=9781966280293&amp;amp;bkshp-astro=t&quot;&gt;Signals &amp;amp; Levers&lt;/a&gt;, a new book by Elisabeth Hendrickson and Joel Tosi, offers a different way to approach the problem: treat these incidents as signals inside a larger causal structure, then look for the feedback loops and levers that can explain and change the system&apos;s behavior.&lt;/p&gt;
&lt;p&gt;What I enjoyed most about &lt;a href=&quot;https://bookshop.org/p/books/signals-levers-systems-thinking-tools-to-unblock-software-delivery-elisabeth-hendrickson/bf2d9d17012f909f?ean=9781966280293&amp;amp;bkshp-astro=t&quot;&gt;Signals &amp;amp; Levers&lt;/a&gt; is that it helped me connect the dots between systems-thinking concepts and the practical problems engineers face every day. It reframes incidents like these as patterns rather than isolated events: the important question is not always &amp;quot;what broke?&amp;quot; but &amp;quot;what relationships, delays, and feedback loops made this behavior possible?&amp;quot; That perspective gave me a more useful way to think about intermittent data errors and the interventions that might address them. It also helped me connect several systems thinking exercises that I have been doing for years, things I&apos;ll write about separately later, with practical applications of those exercises.&lt;/p&gt;
&lt;p&gt;The book uses examples from software development systems such as agile methodologies; this article applies those ideas to a software-architecture problem. For transparency, I should note that I received temporary access to a pre-release copy in order to review the book, but I am not affiliated with its publisher or authors and have no financial interest in its success. Links I provide to the book are for convenience and are not affiliate links. I receive no compensation for this post, or for anyone clicking on the links.&lt;/p&gt;
&lt;p&gt;What follows is therefore both a review of some of the ideas I found useful and an attempt to apply them to a concrete software system.&lt;/p&gt;
&lt;h3&gt;A systems-thinking lens for software problems&lt;/h3&gt;
&lt;p&gt;The book gives us a number of tools for investigating a problem like this. These tools include &lt;strong&gt;Signals&lt;/strong&gt; as the observable clues: the errors, retries, delays, and other identifyable sources of information about system behavior. &lt;strong&gt;Levers&lt;/strong&gt; are the things we can adjust to attempt to make meaningful changes to the system. We can also identify &lt;strong&gt;Feedback loops&lt;/strong&gt; to help explain why a problem persists or amplifies instead of disappearing on its own, and &lt;em&gt;how&lt;/em&gt; pulling a particular lever might influence the system. Understanding these constructs allows us to look at the problem not as a collection of isolated errors, but as a system whose behavior we can observe, understand, and influence.&lt;/p&gt;
&lt;p&gt;To make these ideas concrete, consider a software system designed to manage bus maintenance. It brings together information about vehicles, maintenance work, schedules, parts, and operational status so that people can plan work and understand and improve the condition of the fleet. Most of the time, the system appears to work as expected. Occasionally, however, users report that the data is wrong: a maintenance update is missing, a status appears inconsistent between views, or a notification isn&apos;t delivered properly. The errors are difficult to reproduce and do not seem tied to one particular user or action. That makes the obvious explanations tempting; user-error or other bad input, one faulty process, a noisy dependency, or a problem during a particular maintenance window. However, in this case, none of these possibilities fully explains the pattern. This problem gives us a concrete system in which to identify signals, consider possible levers, and examine the feedback loops described in the book.&lt;/p&gt;
&lt;h3&gt;Signals &amp;amp; Levers in this system (a few examples)&lt;/h3&gt;
&lt;p&gt;The first step is to resist the urge to explain the error before understanding its shape. Several signals are worth watching: how often records drift between views, whether retries increase around the same time, whether queues grow when downstream work slows, and whether the errors cluster in brief timing windows. None of these observations proves a cause by itself. Together, however, they can reveal that the problem is not random user behavior or one bad request, but a system whose components are influencing one another over time.&lt;/p&gt;
&lt;p&gt;The next step is to consider what we might change. Possible levers include shaping retries, applying backpressure or concurrency limits, isolating a struggling dependency, tightening the ordering of writes, and adjusting reconciliation. These are not interchangeable fixes, and each carries a cost. The causal-loop diagram will help us identify which levers matter and trace how they might influence the system.&lt;/p&gt;
&lt;h3&gt;Feedback loops and causal structure&lt;/h3&gt;
&lt;p&gt;A causal-loop diagram makes relationships among these signals and possible levers easier to see than a list of symptoms. The diagram below offers one way to map the system before we draw conclusions about which relationships are reinforcing, which are balancing, and where an intervention might change its behavior.&lt;/p&gt;
&lt;p&gt;To be absolutely clear: this diagram represents one possible model of the system, not a general architecture. Every system is different, so a diagram of your system may look completely different from this one.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.cognitiveinheritance.com/Images/Causal-Loop-Diagram-for-Data-Inconsistencies.png&quot; alt=&quot;Causal Loop Diagram&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Here, ➕ means that the connected variables move together, while ➖ means that they move in opposite directions. Yellow nodes are signals we observe, such as inconsistent views and transient errors. Green nodes are levers we can adjust, such as retry policy, validation, reconciliation, and circuit breakers.&lt;/p&gt;
&lt;p&gt;One useful insight is not just that these signals occur together, but that they can reinforce one another. In this model, a transient error can trigger a retry; enough retries increase load; increased load creates contention and delay; and that delay produces more errors and still more retries. Balancing mechanisms such as validation, reconciliation, circuit breakers, and write throttling can interrupt that loop, although their effects may not be immediate. Replication lag, repair intervals, telemetry delay, and other time gaps can make the system appear unpredictable even when the underlying pattern is consistent. This model also suggests that validation and reconciliation may limit the effects of intermittent data problems without necessarily addressing the reinforcing retry, load, and contention loop that may be generating them, since they appear in different loops in the diagram.&lt;/p&gt;
&lt;p&gt;The next step is to put our theories, developed using these tools, to the test. We can change the retry policy and observe whether inconsistency frequency and queue growth change with it. We can strengthen write ordering or reduce the number of places a write must reach, then watch for a reduction in drift. We can adjust the reconciliation interval and measure whether the repair process keeps up with new inconsistencies. Each experiment should change one meaningful lever, define the signals we expect to move, and account for the delays before deciding whether the hypothesis was supported.&lt;/p&gt;
&lt;p&gt;This is where the book&apos;s ideas become practical for me. &lt;a href=&quot;https://bookshop.org/p/books/signals-levers-systems-thinking-tools-to-unblock-software-delivery-elisabeth-hendrickson/bf2d9d17012f909f?ean=9781966280293&amp;amp;bkshp-astro=t&quot;&gt;Signals &amp;amp; Levers&lt;/a&gt; provided the vocabulary for moving beyond the question &amp;quot;which component is broken?&amp;quot; and asking how the system&apos;s structure produces the behavior we observe. The bus-maintenance example makes the concepts tangible, but the method is not limited to data errors. The same patterns can make it easier for us to work through performance problems, reliability incidents, and any other situation where the cause is distributed across components and delayed over time.&lt;/p&gt;
&lt;h3&gt;Closing&lt;/h3&gt;
&lt;p&gt;When we identify that problems may be occurring in our systems, the most useful answer may not be to look for a single culprit. The problem may be a pattern of signals, levers, delays, and feedback loops spread across the system. This is the practical value I found in &lt;a href=&quot;https://bookshop.org/p/books/signals-levers-systems-thinking-tools-to-unblock-software-delivery-elisabeth-hendrickson/bf2d9d17012f909f?ean=9781966280293&amp;amp;bkshp-astro=t&quot;&gt;Signals &amp;amp; Levers&lt;/a&gt;: it offers a way to see those relationships, test our assumptions, and make more deliberate changes. The same approach can help us understand our own systems before their symptoms become incidents we can no longer ignore.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/signals-and-levers.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/faa210e7-62cf-4908-b1a3-92558cc2befb.html</guid>
  <pubDate>Tue, 22 Sep 2026 14:00:00 GMT</pubDate>
</item><item>
  <title>Teaching Computers Context: Making Meaning Mathematical with Embeddings</title>
  <description>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Imagine trying to teach a computer the subtle difference between the phrases &amp;quot;I need to address this issue&amp;quot; and &amp;quot;What&apos;s your address?&amp;quot; We recognize the intended meaning immediately because we understand the context in which the word is used. A standard text encoding, however, captures the characters in the text, not the concepts those characters represent.&lt;/p&gt;
&lt;p&gt;This is the gap that embeddings help us bridge. An embedding represents a concept as a numerical vector, and once we have that mathematical representation, we can compare concepts, group them, and even perform arithmetic on some of their relationships. That is the real power of embeddings: they make aspects of meaning computable.&lt;/p&gt;
&lt;p&gt;For example, consider the word &amp;quot;Ram.&amp;quot; Depending on its context, it can represent several entirely different concepts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Computing: &amp;quot;I&apos;m getting more RAM for my PC&amp;quot; (computer memory)&lt;/li&gt;
&lt;li&gt;Automotive: &amp;quot;I&apos;m getting a Ram so I can pull my boat&amp;quot; (truck model)&lt;/li&gt;
&lt;li&gt;Agriculture: &amp;quot;I&apos;m getting a ram and a ewe&amp;quot; (male sheep)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The characters alone cannot tell us which of these concepts is intended, so how can a computer distinguish among them? An embedding can represent each usage based on the ideas that surround it, giving us a mathematical way to make that distinction.&lt;/p&gt;
&lt;h2&gt;From Encoded Text to Represented Meaning&lt;/h2&gt;
&lt;p&gt;Before a machine learning model can process text, that text must be converted into numerical values. ASCII and UTF encodings represent characters as numbers, while model-specific &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/understanding-gpt-tokenization.html&quot;&gt;tokenization&lt;/a&gt; processes assign numbers to tokens. A model can operate directly on any of these values, but there is an important limitation: the numerical order of the values does not inherently tell us anything about the relationships among the text they represent. Token 101, for example, is not necessarily more similar in meaning to token 102 than it is to token 900.&lt;/p&gt;
&lt;p&gt;An embedding gives us an additional, learned representation. It maps a token, word, phrase, sentence, or other item to a vector, which is an ordered list of numbers that we can treat as a point in a high-dimensional space. Unlike the arbitrary relationships implied by the original numeric encoding, the position of this point can capture relationships learned from the data.&lt;/p&gt;
&lt;p&gt;Models learn these representations through exposure to large amounts of data. The underlying idea, known as the &lt;a href=&quot;https://en.wikipedia.org/wiki/Distributional_semantics&quot;&gt;distributional hypothesis&lt;/a&gt;, is that text used in similar contexts tends to have related meanings and should therefore develop related representations. The exact training process varies by model; some models create a single representation for a word, while others create representations that change based on the context. For our purposes, however, the important result is the same: concepts can be placed into a space where we can examine their relationships mathematically.&lt;/p&gt;
&lt;h2&gt;Visualizing the &apos;Ram&apos; Example&lt;/h2&gt;
&lt;p&gt;Let&apos;s return to our three uses of &amp;quot;Ram.&amp;quot; To visualize the idea, imagine a deliberately simplified embedding space with only three dimensions, represented as a cube. For this example, the axes correspond to the computing, automotive, and agricultural domains. Real embedding spaces usually have many more dimensions, and those dimensions generally do not have meanings that are this clear or human-readable, but this abstraction gives us a useful place to start.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;I need to buy more RAM for my PC&amp;quot; would be positioned near concepts such as &amp;quot;Memory,&amp;quot; &amp;quot;Storage,&amp;quot; and &amp;quot;ROM.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;I need to buy a Ram to haul my boat&amp;quot; would be positioned near &amp;quot;Truck,&amp;quot; &amp;quot;Vehicle,&amp;quot; and &amp;quot;Dodge.&amp;quot;&lt;/li&gt;
&lt;li&gt;&amp;quot;I put the ram in the pen with the chickens&amp;quot; would be positioned near &amp;quot;Sheep,&amp;quot; &amp;quot;Farm,&amp;quot; and &amp;quot;Livestock.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each sentence uses the same three letters, but its embedding occupies a different region of the space because it represents a different concept. We now have something that was not available when the text was merely encoded: a geometry that describes mathematical relationships among meanings.&lt;/p&gt;
&lt;h2&gt;Operating on Meaning&lt;/h2&gt;
&lt;p&gt;Once concepts are represented as vectors, standard mathematical operations become tools for working with meaning. What kinds of operations can we perform, and what can they tell us?&lt;/p&gt;
&lt;h3&gt;Measuring Similarity&lt;/h3&gt;
&lt;p&gt;Distance and similarity calculations tell us how close two vectors are. The embedding for the computing use of &amp;quot;RAM,&amp;quot; for example, should be closer to &amp;quot;Memory&amp;quot; than to &amp;quot;Truck,&amp;quot; while the automotive use should reverse that relationship. Depending on the model and the task, a system might use Euclidean distance, cosine similarity, a dot product, or another metric. These calculations are not interchangeable in every situation, but each can turn the geometric relationship between vectors into a useful numerical score.&lt;/p&gt;
&lt;h3&gt;Finding Groups&lt;/h3&gt;
&lt;p&gt;Clustering algorithms can identify regions that contain related vectors. Even without explicit labels, a collection might form distinct groups around computing, transportation, and agriculture. A classification system can then compare a new vector with known examples to determine which group it most closely resembles.&lt;/p&gt;
&lt;h3&gt;Examining Directions and Arithmetic&lt;/h3&gt;
&lt;p&gt;The differences between vectors can sometimes capture relationships between concepts, producing familiar examples such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;king - man + woman ≈ queen&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paris - france + italy ≈ rome&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;teacher - school + university ≈ professor&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These analogies illustrate how a direction through the vector space can represent a conceptual relationship. They should not be treated as universal laws; whether they work depends on the model, its training data, and the specific concepts involved. Even with that limitation, they demonstrate a broader and more interesting point: embeddings support more than lookup or comparison. They give us a mathematical structure in which some conceptual relationships can be manipulated.&lt;/p&gt;
&lt;h2&gt;What This Makes Possible&lt;/h2&gt;
&lt;p&gt;These operations are the foundation for many practical systems:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Semantic search&lt;/strong&gt; compares the embedding of a query with the embeddings of documents or passages, allowing it to retrieve related ideas even when they use different words.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Classification&lt;/strong&gt; compares new text with known categories or examples, supporting scenarios such as sentiment analysis and spam detection.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clustering and recommendations&lt;/strong&gt; group related items and help surface content similar to something a user already values.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Question answering&lt;/strong&gt; identifies passages related to a question, recognizing, for example, that &amp;quot;Who created C#?&amp;quot; and &amp;quot;Who is C#&apos;s inventor?&amp;quot; express nearly the same intent.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Of course, putting these ideas into production introduces additional choices. Which embedding model and similarity metric should we use? Should each vector represent a word, a sentence, a paragraph, or some other chunk of content? How will the vectors be stored and searched? Multilingual and multimodal models extend the same geometric approach across languages, images, audio, and other kinds of data. The implementation details vary, but they all build on the same foundation: represent concepts as vectors, then use mathematics to work with their relationships.&lt;/p&gt;
&lt;h2&gt;Limitations and Challenges&lt;/h2&gt;
&lt;p&gt;It is important to remember that embeddings do not contain objective or complete definitions of concepts. They are learned representations shaped by a model&apos;s architecture, training data, and objectives. As a result, they can reproduce biases, miss domain-specific meanings, become less useful as language changes, or place concepts together for reasons that are difficult to interpret.&lt;/p&gt;
&lt;p&gt;Similarity is also highly dependent on both the model and the task. Two vectors being close together means that a particular model considers them related; it does not explain the relationship or guarantee that the relationship is useful for our scenario. High-dimensional vectors can also require substantial storage and computation at scale. We should therefore evaluate embeddings against the actual task we need to perform rather than assume that geometric elegance guarantees correct results.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;ASCII, UTF, and tokenization make text available to computation by assigning it numbers. Embeddings take us an important step further by giving learned concepts positions in a mathematical space. Within that space, the computing, automotive, and agricultural meanings of &amp;quot;Ram&amp;quot; can occupy different neighborhoods even though the original text is identical.&lt;/p&gt;
&lt;p&gt;That shift, from encoded text to represented meaning, is what makes embeddings so powerful. Concepts become vectors, similarity becomes distance, categories become clusters, and some relationships become directions that we can explore using arithmetic. Embeddings do not give computers human understanding, but they do make useful aspects of meaning available to mathematics, and that gives us an extraordinary set of tools for building systems that operate on concepts rather than just characters.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/teaching-computers-context.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/1f872a14-4d10-4c9a-88ae-c84aa84064c2.html</guid>
  <pubDate>Sat, 12 Sep 2026 07:00:00 GMT</pubDate>
</item><item>
  <title>Understanding GPT Tokenization</title>
  <description>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Tokenization isn&apos;t just a billing detail when using Large Language Models (LLMs), it shapes prompt budgets, context limits, and is often a key reason behind a model&apos;s surprising behavior. If you&apos;re building production systems or wrangling LLMs in real-world code, understanding how tokenization actually works isn&apos;t optional, it&apos;s engineering hygiene. Ever struggled with a model answer that gets mysteriously cut off, or wondered why your prompt &amp;quot;should fit&amp;quot; but doesn&apos;t? That&apos;s likely to be tokenization at work.&lt;/p&gt;
&lt;p&gt;When I reached the point of needing to understand the Tokenization process better, I turned to the standard implementations to learn the mechanics, and found them nearly impenetrable. Tokenization tools are optimized for speed and efficiency, and the structure that makes them fast also makes them hard to follow. So I built a clarity-first &lt;em&gt;C#&lt;/em&gt; implementation, one designed to make the &lt;code&gt;Encode&lt;/code&gt; and &lt;code&gt;Decode&lt;/code&gt; flow easy to inspect, not fast to run. This article walks through that implementation, covering the core replacement data, the encoding and decoding flow, and a few findings that show how tokenization reflects usage patterns in real data.&lt;/p&gt;
&lt;h2&gt;BPE Tokenization in natural language processing (NLP)&lt;/h2&gt;
&lt;h3&gt;Why Tokenization?&lt;/h3&gt;
&lt;p&gt;NLP models use tokenization instead of working directly on raw UTF-8 bytes because tokens better match how we, as developers and users, experience language in code and text. Have you ever tried to shoehorn user input from a legacy system into an LLM and wondered why it doesn&apos;t behave exactly as you&apos;d expect? That&apos;s where understanding tokenization offers an edge.&lt;/p&gt;
&lt;p&gt;BPE (Byte-Pair Encoding) Tokenization is the process of converting text input into a numeric form that machine learning models can interpret. During this process, text strings are broken into groups by whitespace. These groups are broken into segments, individual bytes to start, which are then iteratively merged with the following segments in the same group based on the commonality of their usage. Eventually, these merged segments are mapped to one or more unique integer values called tokens. This numerical representation allows algorithms to perform operations on textual data since the models require quantitative inputs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.cognitiveinheritance.com//Images/bpe-tokenization-flowchart.png&quot; alt=&quot;BPE Tokenization Flowchart&quot; /&gt;&lt;/p&gt;
&lt;h3&gt;The &lt;em&gt;cl100k&lt;/em&gt; Tokenization Model&lt;/h3&gt;
&lt;p&gt;The &lt;em&gt;cl100k&lt;/em&gt; tokenization model is the one you&apos;ll use if you&apos;re building anything on OpenAI&apos;s GPT stack. Imagine it as a massive lookup table, translating your handwritten instructions, code comments, and edge-case data straight into numbers the model can reason about. This tokenizer is a core part of GPT model performance.&lt;/p&gt;
&lt;p&gt;Token boundaries follow frequency, not human intuition, about what counts as a &amp;quot;word.&amp;quot; To make this concrete: a less common presidential name like &lt;code&gt;Coolidge&lt;/code&gt; has no single-token form at all in the &lt;em&gt;cl100k&lt;/em&gt; model. This name, like many others, requires multiple tokens to represent, because it simply did not appear often enough in the training data to earn representation as a single token. On the other hand, &lt;code&gt;Taylor&lt;/code&gt; maps to not one but two tokens: ID 16844 with a leading space, and ID 68236 without a space, because it appears frequently enough in both forms to each earn these dedicated entries. And the pattern is not limited to English: the Russian word &lt;code&gt; размер&lt;/code&gt; (meaning &amp;quot;size&amp;quot; or &amp;quot;dimension&amp;quot;, with a leading space) is token ID 100147, captured because Russian-language content appeared frequently enough in the training data to earn it a place in the table alongside common English words.&lt;/p&gt;
&lt;h2&gt;The &lt;em&gt;cl100k&lt;/em&gt; Tokenizer Sample Code&lt;/h2&gt;
&lt;p&gt;The clarity-first, object-oriented implementation of a Tokenizer is written in &lt;em&gt;C#&lt;/em&gt;, my language of choice. I suspect it will be easy to have it translated into nearly any other programming language if that will make it easier for you to understand. The goal of this implementation isn&apos;t speed, it&apos;s transparency. You can step through &lt;code&gt;Encode&lt;/code&gt; and &lt;code&gt;Decode&lt;/code&gt; to see exactly what&apos;s happening. The code is available on &lt;a href=&quot;https://github.com/bsstahl/AIDemos/tree/master/Tokenizer&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;&lt;em&gt;cl100k&lt;/em&gt; Tokenization Replacements&lt;/h3&gt;
&lt;p&gt;The key to the tokenization process using &lt;em&gt;cl100k&lt;/em&gt; is the replacements data, found in the &lt;a href=&quot;https://github.com/bsstahl/AIDemos/blob/master/Tokenizer/Tokenizer/data/cl100k_base.tiktoken&quot;&gt;cl100k_base.tiktoken&lt;/a&gt; file in the code sample. This file contains a list of Base-64 encoded strings, and the token that each string represents.&lt;/p&gt;
&lt;p&gt;While the official replacements file lists the token byte sequences, it can be difficult to tell the practical meaning of each token. This is especially true for whitespace, control characters, or unprintable bytes. For a fully decoded, human-readable table showing what each &lt;em&gt;cl100k&lt;/em&gt; token actually represents (including both printable and non-printable tokens), see &lt;a href=&quot;https://www.cognitiveinheritance.com/Pages/cl100k-token-replacements.html&quot;&gt;this table&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;How &lt;code&gt;Encode&lt;/code&gt; and &lt;code&gt;Decode&lt;/code&gt; Work in the Sample&lt;/h3&gt;
&lt;p&gt;At a high level, the replacements file is the source of truth for both directions. &lt;code&gt;Encode&lt;/code&gt; starts with text and produces token IDs. &lt;code&gt;Decode&lt;/code&gt; starts with token IDs and reconstructs text.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Encode&lt;/code&gt; follows this flow:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Convert the input string to UTF-8 bytes.&lt;/li&gt;
&lt;li&gt;Scan those bytes from left to right.&lt;/li&gt;
&lt;li&gt;At each position, find the best matching byte sequence from the replacements table.&lt;/li&gt;
&lt;li&gt;Emit the corresponding token ID.&lt;/li&gt;
&lt;li&gt;Advance the cursor and repeat until all input bytes are consumed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;Decode&lt;/code&gt; performs the inverse operation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Read each token ID in sequence.&lt;/li&gt;
&lt;li&gt;Look up the byte sequence for that token.&lt;/li&gt;
&lt;li&gt;Append those bytes to a buffer.&lt;/li&gt;
&lt;li&gt;Decode the final byte array as UTF-8 text.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Because both methods use the same replacement mappings in opposite directions, a valid input should round-trip cleanly: text → tokens → text.&lt;/p&gt;
&lt;h3&gt;Invalid UTF-8 Sequences&lt;/h3&gt;
&lt;p&gt;One of the things that concerned me when learning about this process was the fact that a number of tokens translated to invalid UTF-8 sequences. This seemed wrong at first because all input text is encoded as UTF-8 characters. One thing I have found as an engineer is that when something that I know works, doesn&apos;t smell quite right, there is a good chance I can learn something by exploring it. In this case, the &amp;quot;smell&amp;quot; is an artifact of training and encoding that generally appears with characters outside the subset most common in English.&lt;/p&gt;
&lt;p&gt;I will explain with an example using token &lt;em&gt;1717&lt;/em&gt;. This token is replaced by the byte sequence &lt;em&gt;0x20 0xC3&lt;/em&gt;, which is a space character followed by a byte that does not represent valid UTF-8 on its own. This would be a problem if this token were ever used by itself or at the end of a sequence of tokens since that would leave a byte hanging that couldn&apos;t be translated into UTF-8. However, there is no way for a token like this to be used by itself or at the end of a sequence as long as the text it is representing has been properly encoded as UTF-8. Instead, such a token is always followed by at least one additional token, which will result in one or more valid UTF-8 characters.&lt;/p&gt;
&lt;p&gt;If for our example, the &lt;em&gt;1717&lt;/em&gt; token is followed by token &lt;em&gt;104&lt;/em&gt; (&lt;em&gt;0xAB&lt;/em&gt; -- also invalid on its own), it combines with the &lt;em&gt;0xC3&lt;/em&gt; left over from the &lt;em&gt;1717&lt;/em&gt; token, forming the sequence &lt;em&gt;0xC3 0xAB&lt;/em&gt;, which is the UTF-8 character &lt;code&gt;ë&lt;/code&gt;. Similarly, if &lt;em&gt;1717&lt;/em&gt; were combined with token &lt;em&gt;109&lt;/em&gt; (&lt;em&gt;0xB1&lt;/em&gt; -- again invalid Unicode), we&apos;d get the sequence &lt;em&gt;0xC3 0xB1&lt;/em&gt;, the Spanish character &lt;code&gt;ñ&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This means that if we encode the Spanish exclamation &lt;code&gt;Vaya, ñu&lt;/code&gt; (&amp;quot;Wow, wildebeest&amp;quot;) into tokens, we would get the sequence &lt;em&gt;[53,12874,11,1717,109,84]&lt;/em&gt;. Note the &lt;em&gt;1717,109&lt;/em&gt; combination toward the end of the sequence. These integers represent UTF-8 bytes encoded into tokens. Some individual token values are not valid UTF-8 on their own, but are valid in the full sequence.&lt;/p&gt;
&lt;h2&gt;Intriguing Token Findings&lt;/h2&gt;
&lt;p&gt;Once the mechanics are clear, the replacement table becomes an interesting lens into what text patterns appear often enough to become single tokens.&lt;/p&gt;
&lt;h3&gt;Long Tokens&lt;/h3&gt;
&lt;p&gt;The longest token in the &lt;em&gt;cl100k&lt;/em&gt; table is a sequence of 128 consecutive spaces (token ID 58040). That a string of whitespace this long earned its own entry suggests it appeared with remarkable frequency in the training data, likely from code formatting, markdown rendering, or structured document output. It is not alone: several other tokens exceed 42 characters in length, each a testament to how often that exact byte sequence appeared in the corpus.&lt;/p&gt;
&lt;h3&gt;Code is a Significant Contributor&lt;/h3&gt;
&lt;p&gt;The longest readable single token is the Objective-C method name &lt;code&gt;.translatesAutoresizingMaskIntoConstraints&lt;/code&gt; (token ID 63570). At 42 characters, it&apos;s a single token for one simple reason: the training data was saturated with Apple&apos;s developer docs and implementations that use that method call. This is a good reminder that the tokenizer does not know what a &amp;quot;word&amp;quot; is; only what appears together, and how often. It also explains a lot about why these models can be used to generate code; they&apos;ve absorbed a lot of it.&lt;/p&gt;
&lt;h3&gt;Alphabet as a Token&lt;/h3&gt;
&lt;p&gt;The string &lt;code&gt;abcdefghijklmnopqrstuvwxyz&lt;/code&gt;, the complete lowercase English alphabet in order, is token ID 68612. That this specific sequence appears often enough to earn a dedicated entry reveals something about the corpus: tutorials, coding examples, password documentation, and educational content all tend to produce it. The tokenizer captured an artifact of how people teach.&lt;/p&gt;
&lt;h3&gt;The Weight of Common Words&lt;/h3&gt;
&lt;p&gt;The longest single-token word that is not specifically programming-related is &lt;code&gt; responsibilities&lt;/code&gt; with a leading space (token ID 28423). Seventeen total characters, yet common enough in formal writing, corporate communication, and political text to be encoded as a single unit. Its presence reflects the weight of that particular kind of language in the training data.&lt;/p&gt;
&lt;h3&gt;Social Media&apos;s Fingerprint&lt;/h3&gt;
&lt;p&gt;The word &lt;code&gt; unconstitutional&lt;/code&gt; with a leading space (token ID 53925) is a single token for a 17 character sequence. Its inclusion tells us something concrete about what dominated the training corpus: high-volume political discourse on the internet. The tokenizer does not have opinions, but it does reflect the conversations that shaped it.&lt;/p&gt;
&lt;h3&gt;Other Notable Tokens&lt;/h3&gt;
&lt;p&gt;Some tokens are notable not for their length but for what they suggest. The sequence &lt;code&gt;-m&lt;/code&gt; (token ID 1474) is a fragment that appears constantly in command-line flags and markdown list items. On the other hand, &lt;code&gt;mary&lt;/code&gt; (token ID 1563) in lowercase with no leading space, suggests it appeared frequently enough as a standalone common noun or name to earn its own entry, while &lt;code&gt;事&lt;/code&gt; (token ID 30926), the Japanese kanji meaning &amp;quot;case&amp;quot; or &amp;quot;circumstance,&amp;quot; confirms that the model&apos;s vocabulary extends meaningfully into non-Latin scripts, not just as byte fragments but as whole semantic units.&lt;/p&gt;
&lt;h3&gt;Redacted&lt;/h3&gt;
&lt;p&gt;Interestingly, &lt;code&gt; █████&lt;/code&gt; with a leading space (token ID 93429). A group of block characters used to represent redacted text is a single token. It appeared so frequently in legal documents, government releases, and journalism that the model treats it as a unit of meaning. There is something both darkly funny and genuinely informative about that: the tokenizer has learned that some things are meant not to be read.&lt;/p&gt;
&lt;h3&gt;The Tokenization of US Presidents Last Names&lt;/h3&gt;
&lt;p&gt;The tokenization of US presidents&apos; last names is a useful example of how the model handles proper nouns. Some names are represented by a single token, while others require multiple tokens. In general, names that appear more frequently in training data are more likely to have single-token forms. Names that are less frequent, or less likely to appear outside historical contexts, are more likely to require multiple tokens.&lt;/p&gt;
&lt;p&gt;Of the 40 distinct last names of US Presidents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;7 require more than 1 token to represent in any form&lt;/li&gt;
&lt;li&gt;20 have only 1 way to represent their name in a single token; with a leading space and initial cap&lt;/li&gt;
&lt;li&gt;8 have 2 ways to represent the name in a single token; an initial cap, with and without a leading space&lt;/li&gt;
&lt;li&gt;3 presidents have 3 ways to represent their name in a single token&lt;/li&gt;
&lt;li&gt;Ford and Grant have all 4 possible ways&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The fact that Ford and Grant have the most ways to represent their names makes sense since there are so many other reasons to write those words other than to mean the name of the President. The Presidents where the name cannot be represented in a single token generally indicates the lack of mentions of these Presidents in the training data. Since the corpus of training data is from the Internet, it makes sense that the Presidents who have a lower cultural significance in the Internet era would be less likely to have their names represented in a single token. Thus, Presidents Coolidge, Fillmore, Garfield, McKinley, Polk, Taft, and Van Buren all require more than one token to represent their names in any form. These names are also less likely to be represented in the training data as a reference to someone or something else.&lt;/p&gt;
&lt;p&gt;Meanwhile, names like Washington, Jefferson, and Johnson, which are more common in the English language, have multiple representations in a single token. This is likely due to the frequency of these names in the US population, which in itself is a nod to the historical and cultural significance of the Presidents themselves.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: Derivatives of these names that are not actually the name of the President are not included here. For example: &lt;code&gt;Obamacare&lt;/code&gt;. Empty cells indicate names that have no single-token representation.&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&quot;text-align: left;&quot;&gt;President&lt;/th&gt;
&lt;th style=&quot;text-align: left;&quot;&gt;Tokens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Adams&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;27329 (&apos; Adams&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Arthur&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;28686 (&apos; Arthur&apos;), 60762 (&apos;Arthur&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Biden&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;38180 (&apos; Biden&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Buchanan&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;85290 (&apos; Buchanan&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Bush&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;14409 (&apos; Bush&apos;), 30773 (&apos; bush&apos;), 100175 (&apos;Bush&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Carter&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;25581 (&apos; Carter&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Cleveland&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;24372 (&apos; Cleveland&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Clinton&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;8283 (&apos; Clinton&apos;), 51308 (&apos;Clinton&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Coolidge&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Eisenhower&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;89181 (&apos; Eisenhower&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Fillmore&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Ford&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;8350 (&apos;ford&apos;), 14337 (&apos; Ford&apos;), 45728 (&apos; ford&apos;), 59663 (&apos;Ford&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Garfield&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Grant&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;13500 (&apos; grant&apos;), 24668 (&apos; Grant&apos;), 52727 (&apos;grant&apos;), 69071 (&apos;Grant&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Harding&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;97593 (&apos; Harding&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Harrison&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;36627 (&apos; Harrison&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Hayes&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;53522 (&apos; Hayes&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Hoover&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;73409 (&apos; Hoover&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Jackson&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;13972 (&apos; Jackson&apos;), 62382 (&apos;Jackson&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Jefferson&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;34644 (&apos; Jefferson&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Johnson&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;11605 (&apos; Johnson&apos;), 63760 (&apos;Johnson&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Kennedy&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;24573 (&apos; Kennedy&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Lincoln&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;25379 (&apos; Lincoln&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Madison&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;31015 (&apos; Madison&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;McKinley&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Monroe&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;50887 (&apos; Monroe&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Nixon&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;42726 (&apos; Nixon&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Obama&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;7250 (&apos; Obama&apos;), 45437 (&apos;Obama&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Pierce&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;50930 (&apos; Pierce&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Polk&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Reagan&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;35226 (&apos; Reagan&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Roosevelt&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;47042 (&apos; Roosevelt&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Taft&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Taylor&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;16844 (&apos; Taylor&apos;), 68236 (&apos;Taylor&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Truman&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;80936 (&apos; Truman&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Trump&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;3420 (&apos; Trump&apos;), 16509 (&apos;Trump&apos;), 39155 (&apos; trump&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Tyler&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;32320 (&apos; Tyler&apos;), 100224 (&apos;Tyler&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Van Buren&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Washington&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;6652 (&apos; Washington&apos;), 39231 (&apos;Washington&apos;), 94771 (&apos; washington&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;Wilson&lt;/td&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;17882 (&apos; Wilson&apos;), 92493 (&apos;Wilson&apos;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Practical Implications for Prompt Design and Debugging&lt;/h2&gt;
&lt;p&gt;The engineering reality of tokenization emerges when we try to design, debug, or optimize prompts for GPT models. Consider a practical scenario:&lt;/p&gt;
&lt;p&gt;Suppose you&apos;re designing a prompt for a model with a fixed token budget. You estimate your text should fit easily based on a word count, but your output keeps cutting off. Investigating with a tokenizer, you find that certain whitespace, rare words, or multi-language fragments are converting into many tokens, sometimes two or three times more than expected. For instance, using a phrase like &amp;quot; responsibilities&amp;quot; (which is a single token) is efficient, but a phrase with uncommon names or special symbols may be split into several tokens, reducing your available space for prompts and responses. In multilingual cases, e.g. &quot;¡Bienvenido, размер!&quot;, mixing Spanish and Russian increases token count further because those languages use byte sequences with less efficient mapping.&lt;/p&gt;
&lt;p&gt;Knowing this, you can plan your prompts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Analyze with the tokenizer to see real token length before submitting text.&lt;/li&gt;
&lt;li&gt;Avoid language or formatting that explodes token count, especially near prompt limits.&lt;/li&gt;
&lt;li&gt;Catch why a model output is unexpectedly short; often, it&apos;s not your word count, but unseen token inflation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A common heuristic is to assume that English words in typical text cost, on average, roughly 1⅓ (one and one-third) tokens per word. This means that a phrase consisting of 3 generic English words, could be estimated at 4 tokens. As we&apos;ve seen however, that is only a reasonably safe assumption using very typical, English language statements. Once we start getting into programming jargon, or involving other languages or character sets, these estimates become far less valuable. As a result, prompt designers, engineers, and anyone working with LLMs should not just count words, they should analyze tokenization directly to make decisions about what fits, what fails, and why.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Tokenization in &lt;em&gt;cl100k&lt;/em&gt; is best understood as a byte-sequence mapping layer between text and model input, not a simple word splitter. Once that model is clear, behavior that looks strange at first, such as token values containing incomplete UTF-8 fragments, becomes expected and understandable in sequence context.&lt;/p&gt;
&lt;p&gt;The practical takeaway is that tokenizer awareness improves engineering decisions. Understanding this process helps with prompt design, token budgeting, multilingual handling, and debugging surprising model output. If you step through &lt;code&gt;Encode&lt;/code&gt; and &lt;code&gt;Decode&lt;/code&gt; with your own examples, the mechanics become intuitive very quickly. To achieve this understanding, the &lt;a href=&quot;https://github.com/bsstahl/AIDemos/tree/master/Tokenizer&quot;&gt;sample code on GitHub&lt;/a&gt; is a good place to start.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/understanding-gpt-tokenization.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/802ad127-19a0-4a19-9bc7-a753e64d3124.html</guid>
  <pubDate>Fri, 12 Jun 2026 07:00:00 GMT</pubDate>
</item><item>
  <title>What Counts as AI‑Generated?</title>
  <description>&lt;p&gt;I still have the first camera I ever used - a 126 box camera, similar to a &lt;a href=&quot;https://web.archive.org/web/20251216145350/https://historiccamera.com/cgi-bin/librarium2/pm.cgi?action=app_display&amp;amp;app=datasheet&amp;amp;app_id=3988&quot;&gt;Hawekeye II&lt;/a&gt;, that was basically a toy even in its own era. I shot with black‑and‑white film because that&apos;s what a kid could afford, and it produced the kind of photos you&apos;d expect from a plastic lens and a shutter that felt like it was powered by hope. One of those photos captured Thurman Munson, the Yankees catcher who would later die in a plane crash, making him something of a larger-than-life figure in my experience. It&apos;s not a great photo. It&apos;s grainy, off‑center, and full of the accidental foreground clutter you get when you&apos;re small, excited, and holding a camera that doesn&apos;t care about your artistic intent.&lt;/p&gt;
&lt;p&gt;Recently, I ended up with three versions of that same moment:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The original&lt;/strong&gt; - a scan of the actual frame I shot as a kid.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A cleaned‑up version&lt;/strong&gt; - run through an AI tool that removed some shadows, centered Munson, and erased the stray arms of the people next to me.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A colorized version&lt;/strong&gt; - also AI‑assisted, adding color to a scene that never existed in color on film.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All three images are real in the sense that they correspond to something that actually happened, and all three are altered in the sense that every photograph is shaped by the tools available at the time. When I show any version of these images, I could be asked, &lt;strong&gt;Is it &amp;quot;AI‑generated&amp;quot;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;../Images/ThreeMunsonPhotos.png&quot;&gt;&lt;img src=&quot;../Images/ThreeMunsonPhotos-800x276.png&quot; alt=&quot;3 Images of a man wearing a NY Yankees baseball uniform in the outfield of a ballpark, shot from a few feet above him&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, that question really can&apos;t be answered without a lot more context. All 3 images &lt;strong&gt;used AI&lt;/strong&gt; as part of the pipeline in some form or another, because depending on how you define AI, even the act of scanning the original likely used a model. The question we really need to answer is: &lt;strong&gt;what do we mean when we say something is &amp;quot;AI‑generated&amp;quot;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The cleaned‑up version of this photo didn&apos;t invent anything. It didn&apos;t fabricate Munson&apos;s face or change the moment. It just did what darkroom techniques, Photoshop, and restoration tools have always done. The colorized version added something new, but colorization has existed for more than a century. The only difference is that a machine did the brushwork instead of a human. What about the original? It&apos;s still the moment I captured as a kid with a box camera. The digital version may have passed through modern software on its way to the screen, but the instant in time remains intact.&lt;/p&gt;
&lt;h2&gt;Even &amp;quot;true&amp;quot; photos can mislead, with or without AI&lt;/h2&gt;
&lt;p&gt;This is where things get tricky. Any still or moving image can create false impressions with the viewer. Strange lighting, unusual shadows, a frozen instant in time that doesn&apos;t really capture the essence of the situation. All of these things happen, and we&apos;ve experienced them. How many times have you taken a photo of someone who was happy, but looked sad or angry in the shot? Was &lt;a href=&quot;https://en.wikipedia.org/wiki/The_dress&quot;&gt;the dress&lt;/a&gt; blue or gold?&lt;/p&gt;
&lt;p&gt;In my three images above, the event happened nearly entirely as presented in those photos. Despite that, any of these versions can still create false impressions in the mind of the viewer.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It is possible that Munson is talking to someone, or perhaps yelling at them in a way not captured by this frame.&lt;/li&gt;
&lt;li&gt;When I took the picture, there may have been one or more other people just outside the frame, changing the context.&lt;/li&gt;
&lt;li&gt;The cleaned‑up version might imply the scene was less crowded than it really was, because the tool removed the arms of the people next to me.&lt;/li&gt;
&lt;li&gt;The colorized version might imply the grass at Yankee Stadium looked a certain way that day, when the original didn&apos;t capture that detail.&lt;/li&gt;
&lt;li&gt;The colorization might suggest Munson wore an undershirt of a particular shade, a detail the model had to invent.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of these facts are necessarily germane to the image, but they absolutely can alter its &lt;em&gt;interpretation&lt;/em&gt;. Still images can present scenes in a framing that doesn&apos;t completely do it justice, while AI can introduce confident, plausible details that were never in evidence, whether done maliciously or not.&lt;/p&gt;
&lt;p&gt;This is why labeling matters. Not because AI involvement is inherently bad, but because, in most cases, viewers deserve to know which parts of an image are grounded in reality and which parts were reconstructed, inferred, or imagined. However, defining those rules is an area where a poor definition could let some people get away with anything while the rest of us end up having to tag everything as AI generated, turning the label into just more noise.&lt;/p&gt;
&lt;h2&gt;This isn&apos;t even touching the copyright issues&lt;/h2&gt;
&lt;p&gt;Everything above is about &lt;em&gt;truth&lt;/em&gt;: what happened, what didn&apos;t, and what an image implies, but there&apos;s a whole separate dimension we haven&apos;t entered: &lt;strong&gt;copyright&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Questions like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What training data was used to create the model?&lt;/li&gt;
&lt;li&gt;Who owns the derivative works?&lt;/li&gt;
&lt;li&gt;When does enhancement become transformation?&lt;/li&gt;
&lt;li&gt;What rights do I retain over my own childhood photo once an AI model has touched it?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These aren&apos;t footnotes. They&apos;re large, unresolved questions that deserve their own analysis and probably their own regulatory framework. Mixing them into the &amp;quot;AI‑generated vs. not&amp;quot; debate only makes everything muddier. So for this post, I&apos;m deliberately setting copyright aside; not because it&apos;s unimportant, but because it&apos;s &lt;em&gt;too&lt;/em&gt; important to treat as a parenthetical.&lt;/p&gt;
&lt;h2&gt;The Hard Part Is Defining What Matters&lt;/h2&gt;
&lt;p&gt;The reasons why blanket rules about &amp;quot;AI‑generated content&amp;quot; fall apart are complicated. The line between &amp;quot;generated,&amp;quot; &amp;quot;assisted,&amp;quot; &amp;quot;enhanced,&amp;quot; and &amp;quot;restored&amp;quot; isn&apos;t a line at all, it&apos;s a gradient. That doesn&apos;t mean we shouldn&apos;t regulate AI‑involved media. It means &lt;strong&gt;we need to regulate AI with language and intent that actually matches reality, and solves the real problems&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;There &lt;em&gt;are&lt;/em&gt; cases where labeling is essential, but most of it is context specific. If I am posting a picture of a conference talk I gave, I wouldn&apos;t feel right adding fake participants in the crowd, but I&apos;d often be fine with editing someone out who asked me to, depending on the reason for doing so. I might not feel the same way if the photograph was being published as part of a story in the news. However, there are some things that should probably always be disclosed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Images of things that never happened&lt;/strong&gt; should be labeled as such.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Images containing people that don&apos;t exist&lt;/strong&gt; must be disclosed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Images where people or evidence is added&lt;/strong&gt; absolutely require clear disclosure, even if they are believed to be &apos;real&apos;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI‑assisted reconstructions&lt;/strong&gt;, such as those built from text descriptions after the fact, should be labeled in way that allows viewers understand what&apos;s real and what&apos;s assumed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Those distinctions matter because they speak to truth, provenance, and the potential for harm, and they remain just as important whether AI is part of the process or not.&lt;/p&gt;
&lt;p&gt;But my three images of Thurman Munson? They&apos;re all the same moment, they differ only in the tools used to reveal it. In most contexts, there is no meaningful change made by these manipulations.&lt;/p&gt;
&lt;p&gt;There are already existing sets of rules we can lean on here. The National Press Photographers Association has a &lt;a href=&quot;https://web.archive.org/web/20260315211924/https://nppa.org/resources/code-ethics&quot;&gt;Code of Ethics&lt;/a&gt; for visual journalists that includes the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Editing should maintain the integrity of the photographic image&apos;s content and context. Do not manipulate images or add or alter sound in any way that can mislead viewers or misrepresent subjects.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I would ask you, &amp;quot;Does my manipulation of this image mislead viewers or misrepresent subjects?&amp;quot;&lt;/p&gt;
&lt;p&gt;This Code of Ethics also includes composition and subject matter rules such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Resist being manipulated by staged photo opportunities&lt;/li&gt;
&lt;li&gt;Be complete and provide context when photographing or recording subjects&lt;/li&gt;
&lt;li&gt;While photographing subjects, do not intentionally contribute to, alter, or seek to alter or influence events&lt;/li&gt;
&lt;li&gt;Do not pay sources or subjects or reward them materially for information or participation&lt;/li&gt;
&lt;li&gt;Do not accept gifts, favors, or compensation from those who might seek to influence coverage&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All of which suggests that the editing of images, the part that can be done using AI, is just a small part of the harm that can be done through visual means, albeit one that scales better than most.&lt;/p&gt;
&lt;h2&gt;Here&apos;s the part we can&apos;t ignore&lt;/h2&gt;
&lt;p&gt;AI, in some form, is nearly &lt;em&gt;always&lt;/em&gt; involved now. Not the headline‑grabbing generative models that synthesize faces or fabricate events, but the quiet, invisible systems inside scanners, cameras, phones, and photo apps, the ones nobody notices because they don&apos;t feel like AI. Processes like sharpening, noise reduction, auto‑contrast, white‑balance correction, lens‑distortion fixes and de‑mosaicing filters are all part of many of the image capture mechanisms we use every day. Other domains have similar tools used for autocorrect, predictive-text, grammar correction, spellcheck, voice-to-text, spam filtering and recommendations. These are all machine‑learning (ML) systems doing work behind the scenes.&lt;/p&gt;
&lt;p&gt;So the question can&apos;t be &amp;quot;Was AI used?&amp;quot;  The questions must be more akin to &lt;strong&gt;&amp;quot;What kind of AI was used, how was it used, and to what effect?&amp;quot;&lt;/strong&gt;. These questions need to be answered in the full context of the situation, because the truth of this photo is simple, AI didn&apos;t create it, &lt;strong&gt;it actually happened&lt;/strong&gt;. The tools just helped me see it more clearly, but they can also help someone else see something that was never there. Outside of this one childhood snapshot, it&apos;s rarely even &lt;em&gt;that&lt;/em&gt; simple.&lt;/p&gt;
&lt;p&gt;Knowing the difficulty in categorizing these three versions of a childhood photo as &apos;&lt;em&gt;AI-generated&lt;/em&gt;&apos; or not, it is obvious that we can&apos;t build policy around such a binary definition. We need rules that focus on &lt;strong&gt;intent&lt;/strong&gt;, &lt;strong&gt;impact&lt;/strong&gt;, and &lt;strong&gt;what claims are being made&lt;/strong&gt;, not on whether a model was somewhere in the toolchain. We will drill into more detail on how we can craft regulations that take these items into account in future posts.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/what-counts-as-aigenerated.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/8a03e594-887c-4412-ae36-23fa3d2cf0c2.html</guid>
  <pubDate>Sat, 28 Mar 2026 10:19:40 GMT</pubDate>
</item><item>
  <title>Introducing the Behavioral Layer</title>
  <description>&lt;p&gt;Modern systems increasingly receive free‑text input, either from humans or from language models. These inputs can be ambiguous, incomplete, or phrased in ways the domain layer cannot act on directly. They are not the predictable, schema‑bound shapes that a traditional Anti‑Corruption Layer (ACL) is designed to translate. They require interpretation before any downstream component can reason about them. This is the realm of the Behavioral Layer.&lt;/p&gt;
&lt;h2&gt;What the Behavioral Layer Does&lt;/h2&gt;
&lt;p&gt;The Behavioral Layer is responsible for taking unstructured or highly variable inputs, such as those produced by a person or a language model, and producing a clean, normalized, and predictable shape that the rest of the system can trust. It is the architectural boundary where the system interprets intent before any downstream components have to reason about structure.&lt;/p&gt;
&lt;p&gt;At a high level, the Behavioral Layer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Interprets what behavior the sender is attempting to invoke&lt;/li&gt;
&lt;li&gt;Normalizes inconsistently presented or incomplete inputs&lt;/li&gt;
&lt;li&gt;Detects structural and behavioral anomalies in the message&lt;/li&gt;
&lt;li&gt;Enriches the data with derived or inferred attributes&lt;/li&gt;
&lt;li&gt;Produces a stable output object that downstream components can rely on&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Behavioral Layer is defined by its responsibilities, not by any specific technology. You can implement it with deterministic rules, heuristics, or fine-tuned models. The architecture stays the same regardless of the tools you choose.&lt;/p&gt;
&lt;h2&gt;A Machine to Machine Example&lt;/h2&gt;
&lt;p&gt;To ground this in something concrete, consider a service that exposes an OpenAI‑compatible API for the purpose of intent determination and routing. This service is designed to accept natural language inside a structured request, classify the intent, and direct the call to the correct downstream system. Even in a machine to machine scenario, the request still contains unstructured text because the caller may be a human, a script, or an upstream LLM.&lt;/p&gt;
&lt;p&gt;Here is an example of the kind of request this router might receive:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &amp;quot;model&amp;quot;: &amp;quot;gpt-4o-mini&amp;quot;,
  &amp;quot;messages&amp;quot;: [
    {
      &amp;quot;role&amp;quot;: &amp;quot;system&amp;quot;,
      &amp;quot;content&amp;quot;: &amp;quot;You are a plan selection assistant.&amp;quot;
    },
    {
      &amp;quot;role&amp;quot;: &amp;quot;user&amp;quot;,
      &amp;quot;content&amp;quot;: &amp;quot;please switch the user to the premium plan with the extras&amp;quot;
    }
  ],
  &amp;quot;user&amp;quot;: &amp;quot;8821&amp;quot;,
  &amp;quot;source&amp;quot;: &amp;quot;recommendation-service&amp;quot;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The outer structure is predictable, but the content is not. The router cannot forward this request until it determines what the caller is trying to do. The phrase premium plan with the extras is natural language, not an instruction the domain layer can act on. The router must identify the intent so it can send the request to the correct downstream service, which in this case is probably a plan or user service.&lt;/p&gt;
&lt;p&gt;A Behavioral Layer implementation might produce something like this.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &amp;quot;userId&amp;quot;: &amp;quot;8821&amp;quot;,
  &amp;quot;source&amp;quot;: &amp;quot;recommendation-service&amp;quot;,
  &amp;quot;intent&amp;quot;: &amp;quot;changePlan&amp;quot;,
  &amp;quot;confidence&amp;quot;: &amp;quot;high&amp;quot;,
  &amp;quot;notes&amp;quot;: [
    {
      &amp;quot;message&amp;quot;: &amp;quot;The request refers to &apos;premium plan with the extras&apos;.&amp;quot;
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The business logic within the router may take this input, determine which service is best suited to handle it, and route the original request to that service. The Behavioral Layer has taken a natural language request and expressed the sender&apos;s behavior in a structured form. It has identified what the caller is trying to do, surfaced any uncertainty, and produced a stable intent that the rest of the system can trust. Nothing about this output depends on domain rules or specific plan identifiers. The Behavioral Layer simply interprets the behavior contained in the text and turns it into a predictable shape that downstream components can build on. It has NOT concerned itself with mapping to the domain language, since this layer is not responsible for that. If additional mapping is required into the language of the domain, an anti-corruption or other mapping layer should be used to maintain the separation of concerns.&lt;/p&gt;
&lt;h2&gt;How It Works&lt;/h2&gt;
&lt;p&gt;The Behavioral Layer sits between the raw input and the ACL or domain layer. It receives whatever the outside world provides and applies a series of transformations that gradually reduce uncertainty.&lt;/p&gt;
&lt;p&gt;A typical flow looks like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Receive the raw input exactly as it arrived.&lt;/li&gt;
&lt;li&gt;Perform structural checks to understand what type of thing it might be.&lt;/li&gt;
&lt;li&gt;Apply behavioral checks to understand what the sender is trying to accomplish.&lt;/li&gt;
&lt;li&gt;Normalize fields, resolve aliases, and fill in missing but inferable information.&lt;/li&gt;
&lt;li&gt;Detect suspicious or incoherent combinations of attributes.&lt;/li&gt;
&lt;li&gt;Produce a Behavioral Output object that expresses the input in a clean, predictable shape.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Neither the ACL nor the domain layer ever sees the raw input. They only see the Behavioral Output, which keeps both layers small, deterministic, and easy to reason about.&lt;/p&gt;
&lt;h2&gt;How It Differs From a Traditional ACL&lt;/h2&gt;
&lt;p&gt;A traditional Anti-Corruption Layer protects the domain from other systems. It translates external models into internal ones, isolates upstream changes, and ensures that foreign concepts do not leak into the domain.&lt;/p&gt;
&lt;p&gt;The Behavioral Layer protects the domain from ambiguous inputs. It resolves uncertainty, interprets intent, and produces a coherent behavioral shape before any translation or invariant enforcement occurs.&lt;/p&gt;
&lt;p&gt;You can think of the responsibilities like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Behavioral Layer: coherence&lt;/li&gt;
&lt;li&gt;ACL: translation and isolation&lt;/li&gt;
&lt;li&gt;Domain: correctness and invariants&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Behavioral Layer is not a variant of an ACL and not a replacement for one. It is a complementary layer that handles a different class of problems. The ACL expects structured, well-formed inputs. The Behavioral Layer exists precisely because real-world inputs often are not fully structured.&lt;/p&gt;
&lt;p&gt;If you are building a &amp;quot;modular monolith&amp;quot;, where all functionality is crammed into a single deployment unit, you can manage both sets of fuctionality (translation and behavioral) in a single place, however you probably don&apos;t want to mash them together so they can be more completely separated if it becomes appropriate.&lt;/p&gt;
&lt;h2&gt;Why is it Called the &lt;strong&gt;Behavioral&lt;/strong&gt; Layer&lt;/h2&gt;
&lt;p&gt;The name comes from the nature of the inputs it handles. At this boundary, the system is not reacting to a schema. It is reacting to behavior. A person behaves unpredictably when typing a request. A language model behaves unpredictably when generating a response. A third-party system behaves unpredictably when sending a payload that almost matches your expectations.&lt;/p&gt;
&lt;p&gt;The Behavioral Layer exists to interpret that behavior.&lt;/p&gt;
&lt;p&gt;It focuses on what the sender is trying to do, not how the sender structures the data. It resolves intent, ambiguity, and variability before any translation or invariant enforcement occurs. The name fits because it describes the responsibility: making sense of behavior so the rest of the system does not have to.&lt;/p&gt;
&lt;h2&gt;Implementation Options&lt;/h2&gt;
&lt;p&gt;You can build a Behavioral Layer using several strategies, depending on your constraints and the variability of your inputs.&lt;/p&gt;
&lt;h3&gt;Deterministic Rules&lt;/h3&gt;
&lt;p&gt;This is the simplest approach. You define explicit rules for classification, normalization, and enrichment. It works well when the input space is small and predictable. It may work in more complex spaces with the help of a rules-engine or similar logic framework.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pros: transparent, easy to test, easy to reason about&lt;/li&gt;
&lt;li&gt;Cons: brittle when inputs vary widely or evolve over time&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Heuristics and Pattern Matching&lt;/h3&gt;
&lt;p&gt;This approach uses scoring, thresholds, and pattern recognition to handle more variability without committing to full machine learning.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pros: flexible, adaptable, still deterministic&lt;/li&gt;
&lt;li&gt;Cons: harder to maintain, can drift into complexity&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Fine-Tuned Language Models&lt;/h3&gt;
&lt;p&gt;A small, purpose-built model can classify intent, normalize fields, and map ambiguous inputs into structured forms with far more reliability than hand-written rules.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pros: handles real-world variability, reduces rule complexity, improves resilience&lt;/li&gt;
&lt;li&gt;Cons: requires training data, monitoring, and versioning discipline&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Behavioral Layer does not require a language model. LLMs and other probabilistic models simply make it easier to implement the layer when the input space becomes too variable for deterministic approaches.&lt;/p&gt;
&lt;h2&gt;Use Case 2: Human Input&lt;/h2&gt;
&lt;p&gt;The earlier example showed how a machine to machine request can contain natural language inside a structured API call. The same problem appears when a human interacts with the system. A user may type a request in their own words, combine multiple actions in a single message, or omit details that downstream components require. The Behavioral Layer handles this variability by interpreting what the user is trying to do and expressing that behavior in a predictable shape.&lt;/p&gt;
&lt;p&gt;Imagine a system that receives inbound support messages from users. The messages can arrive through email, chat, or a mobile app. Users may not follow a template. They may combine multiple requests in one message. They may use synonyms, shorthand, or incomplete phrasing.&lt;/p&gt;
&lt;p&gt;A raw message might look like:&lt;/p&gt;
&lt;p&gt;&amp;quot;Hey, can you change my home address to the new one on file and also switch my plan to the premium thing&amp;quot;&lt;/p&gt;
&lt;p&gt;The Behavioral Layer would:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Translate the sender information into discrete fields&lt;/li&gt;
&lt;li&gt;Detect that the message contains two distinct intents&lt;/li&gt;
&lt;li&gt;Normalize &amp;quot;premium thing&amp;quot; into a known plan identifier&lt;/li&gt;
&lt;li&gt;Extract the address reference and map it to the stored address record&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As shown below, this layer might also interpret normalized data that it has access to. For example, if the list of plans is accessible to the Behavioral Layer, it might add an indication that &amp;quot;premium thing&amp;quot; is not an exact match to a known plan. This is one of the places however where some judgement is required because, depending on the circumstances, that functionality might be better left to an ACL or the Domain.&lt;/p&gt;
&lt;p&gt;The Behavioral layer would consider the input above along with the email metadata and might produce an output object similar to the one shown below:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  userIds: [
    &amp;quot;email&amp;quot;: &amp;quot;sampleuser@cognitiveinheritance.com&amp;quot;,
    &amp;quot;eMailName&amp;quot;: &amp;quot;Sample User&amp;quot;,
    &amp;quot;dkimDomain&amp;quot;: &amp;quot;cognitiveinheritance.com&amp;quot;,
    &amp;quot;spfDomain&amp;quot;: &amp;quot;sendgrid.net&amp;quot;
  ],
  intents: [
    { type: &amp;quot;updateAddress&amp;quot;, addressId: &amp;quot;home&amp;quot; },
    { type: &amp;quot;changePlan&amp;quot;, planId: &amp;quot;premiumPlan&amp;quot; }
  ],
  confidence: &amp;quot;high&amp;quot;,
  anomalies: [
    { &amp;quot;fieldName&amp;quot;: &amp;quot;planId&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;&apos;premium thing&apos; not an exact match to plan name&amp;quot; }
  ]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The ACL or domain layer now has a clean, predictable structure to work with. It does not need to parse free‑form text or guess what the user meant. The Behavioral Layer has already done that work.&lt;/p&gt;
&lt;h2&gt;What Comes Next&lt;/h2&gt;
&lt;p&gt;This post introduces the Behavioral Layer as an architectural concept and distinguishes it from a traditional ACL. In the next article, we will look at how fine‑tuned language models can assist with the transformations inside the layer. We will walk through how to build small, purpose‑built models using Microsoft Foundry, how to train them on your domain, and how to integrate them into a reliability‑first architecture.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/introducing-the-behavioral-layer.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/18cf98fe-ad5e-43a5-91ee-55f0a90478c8.html</guid>
  <pubDate>Sat, 14 Mar 2026 17:13:00 GMT</pubDate>
</item><item>
  <title>Types of AI Models</title>
  <description>&lt;p&gt;It is a common misconception that to have an Artificial Intelligence you must have some form of machine learning. This belief has become so pervasive in recent years that many developers and business leaders assume that AI and ML are synonymous terms, or worse, that LLMs are the definition of AI. However, this couldn&apos;t be further from the truth.&lt;/p&gt;
&lt;p&gt;Artificial Intelligence is a broad field that encompasses a wide spectrum of computational approaches. While Machine Learning (ML) and Large Language Models (LLMs) are important subfields, AI also includes rule-based logic, search/optimization techniques, and Hybrid approaches. AI is not synonymous with ML or LLM.&lt;/p&gt;
&lt;p&gt;Understanding the different types of AI models is crucial for several reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Choosing the Right Tool&lt;/strong&gt;: Different problem domains require different approaches. A rules-based system might be more appropriate than a neural network for certain business logic scenarios.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Explainability Requirements&lt;/strong&gt;: Some applications demand clear explanations of how decisions are made, which varies across AI model types.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Resource Constraints&lt;/strong&gt;: Different AI approaches have vastly different requirements for data, computational power, and development expertise.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Risk Management&lt;/strong&gt;: Understanding the strengths and limitations of each approach helps in making informed decisions about where and how to deploy AI systems.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By exploring the full landscape of AI model types, we can make better architectural decisions and avoid the trap of applying machine learning solutions to problems that might be better solved with other AI approaches.&lt;/p&gt;
&lt;h4&gt;What is AI&lt;/h4&gt;
&lt;blockquote&gt;
&lt;p&gt;An AI is a computational system that behaves rationally.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In the context of AI, rational behavior means making decisions that are optimal or near-optimal given the system&apos;s goals, available information, and understanding of the problem domain. This simple definition captures the essence of what distinguishes artificial intelligence from conventional software.&lt;/p&gt;
&lt;p&gt;More comprehensively, an AI is a computational system that autonomously evaluates situations and makes decisions by attempting to optimize outcomes based on its model of the problem domain and available data, often while handling uncertainty and incomplete information.&lt;/p&gt;
&lt;p&gt;At its core, an artificial intelligence system is designed to make decisions autonomously. Unlike traditional software that simply executes predetermined instructions, an AI system evaluates situations and attempts to make the best possible decision based on two critical components: its understanding of the problem domain (the model) and the available information about the current situation (the data).&lt;/p&gt;
&lt;p&gt;This decision-making process is what distinguishes AI from simpler computational systems. The AI doesn&apos;t just process data--it interprets that data through the lens of its model to determine the most rational course of action. Furthermore, many AI systems go beyond just making decisions; they can also act on those decisions through automation, creating a complete cycle from data input to actionable output.&lt;/p&gt;
&lt;p&gt;The key difference between an AI and a decision support system (DSS) is that the DSS aggregates and presents data such that the user can make the best decision whereas the AI attempts to make the decision itself. This autonomous decision-making capability is what transforms a helpful tool into an intelligent agent.&lt;/p&gt;
&lt;h4&gt;The Categories of AI Models&lt;/h4&gt;
&lt;p&gt;I find it useful to categorize AI models into four families: Logical Models; Probabilistic/Learning Models; Optimization/Search Models; Hybrid Models. Each category has distinct characteristics, typical use cases, and trade-offs in explainability and performance.&lt;/p&gt;
&lt;h5&gt;Logical Models&lt;/h5&gt;
&lt;p&gt;Logical AI models are perhaps the most familiar to traditional software developers because they operate using deterministic rules and conditional logic. These systems make decisions by following explicit, programmed instructions that can be reduced to if-then statements and boolean logic.&lt;/p&gt;
&lt;p&gt;This category includes both object-oriented programming approaches (which encompass most traditional software development) and rules engines. While it might seem counterintuitive to classify conventional programming as AI, these systems qualify as artificial intelligence when they autonomously make decisions based on their programmed logic and available data, rather than simply executing predetermined workflows.&lt;/p&gt;
&lt;p&gt;The key distinction is that logical AI systems evaluate conditions and make rational decisions within their domain, even if those decisions follow deterministic patterns. A sophisticated business rules engine that processes complex scenarios and determines appropriate actions is exhibiting rational behavior, even though its decision-making process is entirely transparent and predictable.&lt;/p&gt;
&lt;h6&gt;Features of Logical Models&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Results Explainable: Generally - Code is highly imperative&lt;/li&gt;
&lt;li&gt;Correctness Understood: Generally - Code is highly imperative&lt;/li&gt;
&lt;li&gt;Solution Discoverability: Low - Code is highly imperative&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;Probabilistic/Learning Models&lt;/h5&gt;
&lt;p&gt;Probabilistic and learning models represent the category most people think of when they hear &amp;quot;artificial intelligence&amp;quot; today. These stochastic systems operate by learning patterns from data and making predictions based on statistical relationships rather than explicit rules. Unlike logical models, they don&apos;t follow predetermined decision trees but instead develop their own understanding of how to map inputs to outputs.&lt;/p&gt;
&lt;p&gt;What makes these models unique is their ability to handle uncertainty and incomplete information. They excel in domains where the relationships between variables are complex, non-linear, or not fully understood by human experts. Rather than requiring programmers to explicitly code every decision path, these systems discover patterns and relationships autonomously through exposure to training data.&lt;/p&gt;
&lt;p&gt;These models are most appropriate when you have large amounts of historical data, when the problem domain is too complex for rule-based approaches, or when you need the system to adapt and improve over time. They&apos;re particularly powerful for tasks like image recognition, natural language processing, fraud detection, and recommendation systems where traditional programming approaches would be impractical.&lt;/p&gt;
&lt;p&gt;However, this power comes with significant trade-offs. The decision-making process is often opaque—even to the system&apos;s creators—making it difficult to understand why a particular decision was made. Additionally, their correctness can only be evaluated statistically across many examples rather than being guaranteed for any individual case.&lt;/p&gt;
&lt;h6&gt;Examples of Probabilistic/Learning Models&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Neural/Bayesian Networks&lt;/li&gt;
&lt;li&gt;Genetic Algorithms&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Features of Probabilistic/Learning Models&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Results Explainable: Rarely&lt;/li&gt;
&lt;li&gt;Correctness Understood: Somewhat - Unknown at design time, potentially known at runtime&lt;/li&gt;
&lt;li&gt;Solution Discoverability: High - Solutions may surprise the implementers&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;Optimization/Search Models&lt;/h5&gt;
&lt;p&gt;Optimization and search models represent a mathematical approach to artificial intelligence that focuses on finding the best possible solution within a defined solution space. These systems work by systematically exploring possible solutions and applying mathematical techniques to converge on optimal or near-optimal answers to well-defined problems.&lt;/p&gt;
&lt;p&gt;What makes these models unique is their foundation in mathematical optimization theory and their ability to guarantee certain properties about their solutions. Unlike probabilistic models that learn from data, optimization models work with explicit mathematical formulations of problems and constraints. They excel at finding provably optimal solutions when the problem can be properly formulated and the solution space is well-defined.&lt;/p&gt;
&lt;p&gt;These models are most appropriate for problems with clear objectives, well-understood constraints, and quantifiable outcomes. They shine in scenarios like resource allocation, scheduling, route planning, portfolio optimization, and supply chain management where you need to maximize or minimize specific metrics subject to known limitations. They&apos;re particularly valuable when you need to justify decisions with mathematical rigor or when regulatory requirements demand explainable optimization processes.&lt;/p&gt;
&lt;p&gt;The trade-off with optimization models is that they require problems to be formulated in specific mathematical ways, which can be limiting for complex real-world scenarios. Their solution discoverability is constrained by how well the problem is modeled and the algorithms chosen for implementation. However, when applicable, they often provide the most reliable and defensible solutions.&lt;/p&gt;
&lt;h6&gt;Examples&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Dynamic Programming&lt;/li&gt;
&lt;li&gt;Linear Programming&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Features&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Results Explainable: Sometimes - dependent on implementation&lt;/li&gt;
&lt;li&gt;Correctness Understood: Somewhat - dependent on implementation&lt;/li&gt;
&lt;li&gt;Solution Discoverability: Limited - solutions will likely be limited by the implementations&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;Hybrid Models&lt;/h5&gt;
&lt;p&gt;Hybrid AI models combine multiple AI approaches to leverage the strengths of different model types while mitigating their individual weaknesses. Rather than relying on a single technique, hybrid systems strategically integrate logical, probabilistic, and optimization approaches to solve complex problems that no single model type could handle effectively.&lt;/p&gt;
&lt;p&gt;What makes hybrid models particularly powerful is their ability to provide both optimal solutions and explainable reasoning. This addresses one of the key limitations identified by IBM Fellow Grady Booch regarding systems like AlphaGo: while they can make optimal decisions, they cannot explain why those decisions were made.&lt;/p&gt;
&lt;p&gt;Hybrid approaches can iteratively combine optimization engines with logical reasoning to create systems that not only find the best solutions but can also explain their decision-making process. For detailed examples of how this works in practice, see my previous articles on &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/AI-That-Can-Explain-Why.html&quot;&gt;AI That Can Explain Why&lt;/a&gt; and &lt;a href=&quot;https://www.cognitiveinheritance.com/Posts/An-Example-of-a-Hybrid-AI-Implementation.html&quot;&gt;An Example of a Hybrid AI Implementation&lt;/a&gt;, which demonstrate hybrid systems for employee scheduling and conference planning that provide both optimal solutions and clear explanations for why certain constraints couldn&apos;t be satisfied.&lt;/p&gt;
&lt;p&gt;This approach is most appropriate when you need both optimal solutions and the ability to explain decisions to stakeholders. It&apos;s particularly valuable in scenarios like resource allocation, scheduling, and assignment problems where users need to understand not just what the solution is, but why certain trade-offs were necessary.&lt;/p&gt;
&lt;h6&gt;Features of Hybrid Models&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Results Explainable: Often - Depends on the combination of techniques used&lt;/li&gt;
&lt;li&gt;Correctness Understood: Often - Combines the characteristics of constituent models&lt;/li&gt;
&lt;li&gt;Solution Discoverability: Moderate to High - Can surprise implementers while providing reasoning&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;Conclusion&lt;/h4&gt;
&lt;p&gt;Understanding the different types of AI models is essential for making informed architectural decisions and choosing the right approach for your specific problem domain. Each model type offers distinct advantages and trade-offs that make them suitable for different scenarios.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Logical Models&lt;/strong&gt; are ideal when you need transparent, explainable decision-making processes and have well-defined business rules. They&apos;re perfect for regulatory environments, business process automation, and scenarios where every decision must be auditable and justifiable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Probabilistic/Learning Models&lt;/strong&gt; excel when dealing with complex patterns, large datasets, and problems where traditional programming approaches would be impractical. They&apos;re the go-to choice for image recognition, natural language processing, and scenarios where the system needs to adapt and improve over time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Optimization/Search Models&lt;/strong&gt; are most valuable when you have clearly defined objectives, constraints, and need mathematically optimal solutions. They shine in resource allocation, scheduling, and planning problems where efficiency and optimality are paramount.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hybrid Models&lt;/strong&gt; combine the best of multiple approaches, providing both optimal solutions and explainable reasoning. They&apos;re particularly valuable in complex business scenarios where stakeholders need to understand not just what the solution is, but why certain trade-offs were necessary.&lt;/p&gt;
&lt;h5&gt;Feature Comparison&lt;/h5&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;Model Type&lt;/td&gt;
&lt;th&gt;Results Explainable&lt;/th&gt;
&lt;th&gt;Correctness Understood&lt;/th&gt;
&lt;th&gt;Solution Discoverability&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Logical&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;Generally&lt;/td&gt;
&lt;td&gt;Generally&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Probabilistic/Learning&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;Rarely&lt;/td&gt;
&lt;td&gt;Somewhat&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Optimization/Search&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;Sometimes&lt;/td&gt;
&lt;td&gt;Somewhat&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Hybrid&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;Often&lt;/td&gt;
&lt;td&gt;Often&lt;/td&gt;
&lt;td&gt;Moderate to High&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;It is important to remember that artificial intelligence is not synonymous with machine learning. By understanding the full spectrum of AI approaches available, you can select the most appropriate technique for your specific requirements, constraints, and stakeholder needs. Sometimes the best solution isn&apos;t the most sophisticated one—it&apos;s the one that best fits your problem domain and organizational context.&lt;/p&gt;
&lt;h5&gt;Glossary&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;AI: Artificial Intelligence, a broad family of computational techniques for solving problems and making decisions.&lt;/li&gt;
&lt;li&gt;ML: Machine Learning, a subset of AI focused on learning from data to improve performance over time.&lt;/li&gt;
&lt;li&gt;LLM: Large Language Model, a class of ML models specialized for natural language understanding and generation.&lt;/li&gt;
&lt;li&gt;DSS: Decision Support System, a traditional software system that supports decision making, distinct from autonomous AI.&lt;/li&gt;
&lt;li&gt;Explainability: The degree to which a system&apos;s decisions can be understood by humans.&lt;/li&gt;
&lt;/ul&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/types-of-ai-models.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/37f405ce-7cf9-4aa1-810c-9793f3a1acd7.html</guid>
  <pubDate>Thu, 06 Nov 2025 08:00:00 GMT</pubDate>
</item><item>
  <title>The Return of the Valley .NET User Groups</title>
  <description>&lt;p&gt;After a long pause, I’m excited to share some great news: &lt;strong&gt;the Valley of the Sun .NET user groups are officially restarting in 2026&lt;/strong&gt;! As one of the organizers — and one of the speakers for our first event — I couldn’t be more thrilled to help bring our community back together.&lt;/p&gt;
&lt;p&gt;We’ll be hosting &lt;strong&gt;quarterly meetups&lt;/strong&gt;, alternating between:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NWVDNUG&lt;/strong&gt; (Northwest Valley .NET User Group)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SEVDNUG&lt;/strong&gt; (Southeast Valley .NET User Group)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each event will be &lt;strong&gt;in-person at one location&lt;/strong&gt;, with a &lt;strong&gt;livestream option&lt;/strong&gt; for the other group — so no matter where you are, you’ll have a way to participate.&lt;/p&gt;
&lt;h3&gt;🚀 First Event: Tuesday, January 20, 2026 at ASU West Valley&lt;/h3&gt;
&lt;p&gt;To kick things off, &lt;strong&gt;Rob Richardson&lt;/strong&gt; and I will be presenting:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&quot;.NET Aspire Accelerator: Fast-Track to Cloud-Native Development&quot;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This talk is a shortened version of the workshop Rob and I delivered in October 2025 in Porto, Portugal — tailored for our local community.&lt;/p&gt;
&lt;p&gt;We’ll be live at the &lt;strong&gt;Arizona State University (ASU) West Valley campus&lt;/strong&gt;, and the session will be streamed by the &lt;strong&gt;.NET Foundation’s&lt;/strong&gt; &lt;a href=&quot;https://www.meetup.com/dotnet-virtual-user-group/&quot;&gt;NET Virtual User Group&lt;/a&gt;, making it accessible to developers &lt;strong&gt;across the Valley and around the world&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;🔄 What’s Next?&lt;/h3&gt;
&lt;p&gt;The follow-up event will be in the &lt;strong&gt;SE Valley around April&lt;/strong&gt;, continuing our quarterly rotation and hybrid format. We’re committed to making these meetups inclusive, energizing, and valuable for developers across the valley.&lt;/p&gt;
&lt;p&gt;Meetup listings for January will be posted soon — on both the &lt;a href=&quot;https://www.meetup.com/nwvdnug/&quot;&gt;NWVDNUG&lt;/a&gt; and &lt;a href=&quot;https://www.meetup.com/sevdnug/&quot;&gt;SEVDNUG&lt;/a&gt; pages — so keep an eye out and RSVP when they go live.&lt;/p&gt;
&lt;p&gt;Thanks for being part of this community. I can’t wait to see familiar faces and meet new ones as we reboot and reconnect in 2026.&lt;/p&gt;
</description>
  <link>https://www.cognitiveinheritance.com/Posts/return-of-the-valley-dotnet-user-groups.html</link>
  <author>04f953b4-6966-46a2-9aa8-89b582fbe500@bsstahl.com (Barry S. Stahl)</author>
  <guid>https://www.cognitiveinheritance.com/Permalinks/eaf445c6-26bf-4c48-bf93-a2ad67849cbe.html</guid>
  <pubDate>Tue, 04 Nov 2025 19:00:00 GMT</pubDate>
</item>
</channel>
</rss>