<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Niraj Kumar on Medium]]></title>
        <description><![CDATA[Stories by Niraj Kumar on Medium]]></description>
        <link>https://medium.com/@nirajkvinit?source=rss-77263458e646------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fQwa7gFFgNLCDxjwj7lVIQ.png</url>
            <title>Stories by Niraj Kumar on Medium</title>
            <link>https://medium.com/@nirajkvinit?source=rss-77263458e646------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:54:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nirajkvinit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Opus 5 vs Sol 5.6: When Two Strong Models Disagree, Pay Attention]]></title>
            <link>https://medium.com/amanerp/opus-5-vs-sol-5-6-when-two-strong-models-disagree-pay-attention-661342d78c1d?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/661342d78c1d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 08:52:47 GMT</pubDate>
            <atom:updated>2026-08-13T08:53:57.932Z</atom:updated>
            <content:encoded><![CDATA[<p>Why ChatGPT 5.6 Sol finds issues in Claude Opus 5’s work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Li02ezwG-CRZqLHYzHFfBw.jpeg" /></figure><p>here’s a pattern showing up in a lot of teams right now. You ask Claude Opus 5 (especially at high or xhigh effort) to generate a solid pull request. It delivers something that looks complete: tests, helpers, multi-file changes, thoughtful edge cases.</p><p>Then you hand that same pr to GPT-5.6 Sol for review, and Sol lights up with a long list of notes. Scope creep. Unnecessary abstractions. Subtle side effects. Things the unit tests never touched.</p><blockquote>It can feel like the models are fighting. They’re not. They’re doing different jobs really well, and the friction between them is useful.</blockquote><h3>Why Opus 5 tends to expand</h3><p>When you dial Opus 5 up to xhigh, it leans hard into completeness. It doesn’t just solve the narrow request. It tries to make the surrounding code better, more consistent, more future-proof. <br>- Shared utilities get cleaned up. <br>- Helper layers appear. <br>- Edge cases that weren’t in the original ticket suddenly have been handled.</p><p>That thoroughness is a strength for big, multi-file features. It’s also the source of “<strong>diff bloat.</strong>” The change set grows.</p><ul><li>Files that were never supposed to move get touched.</li><li>Implicit assumptions that the rest of the codebase relied on can shift.</li><li>Unit tests written in the same pass often pass, because they were shaped by the same mindset.</li><li>The regressions show up later, in the places the tests didn’t reach; race conditions, null paths, performance traps, or quiet breaks in other callers.</li></ul><blockquote>Opus is acting like a strong, ambitious senior engineer who was told <strong>“make it solid”</strong> and took the brief seriously. Sometimes too seriously.</blockquote><h3>Why Sol is so strict</h3><p>GPT-5.6 Sol was trained and tuned differently. It shines at deep root-cause work and careful static checking. When it reviews a PR, it behaves more like an <strong>aggressive, experienced auditor</strong> than a co-author. It cares about parsimony: the smallest change that actually solves the problem.</p><p>It looks for collisions with existing patterns. It hunts for the failure modes that unit tests usually miss: async edge cases, lookup-table costs that only appear under load, unhandled states that only surface in production.</p><p>Sol is less interested in whether the PR “looks complete” and more interested in whether every line is necessary and safe.</p><p>That strictness is why the review volume is high. It is also why the feedback is often high-signal.</p><h3>How the two models actually differ</h3><p><strong><em>Claude Opus 5 (xhigh)</em></strong></p><ul><li><strong>Natural style</strong>: Broad, high-velocity generation. Builds scaffolding and completeness.</li><li><strong>Common failure mode</strong>: Over-engineering, scope expansion, and subtle regressions outside the test suite.</li><li><strong>Typical PR shape</strong>: Larger diffs, new helpers, extra tests, more files touched.</li></ul><p><strong><em>GPT-5.6 Sol (as reviewer)</em></strong></p><ul><li><strong>Natural style</strong>: Precise, line-by-line verification. Trims and isolates.</li><li><strong>Common failure mode</strong>: Can become pedantic about style or low-probability edges.</li><li><strong>Typical PR shape</strong>: Focus on the minimal necessary change and architectural discipline.</li></ul><blockquote>Neither is “wrong.” They are complementary.</blockquote><h3>Turning the tension into a pipeline</h3><p>Many teams have started treating this exact dynamic as a deliberate workflow instead of a headache:</p><ol><li>Let <strong>Opus 5 (xhigh)</strong> own the first serious pass. <br>Give it the real task, the relevant context, and room to produce a complete, multi-file solution with baseline tests. <br><strong><em>(This is where its strength in agentic, repo-level work shows up.)</em></strong></li><li>Hand the resulting diff straight to <strong>Sol</strong>. <br>Ask it to enforce scope, remove unnecessary abstraction, surface hidden failure modes, and call out anything that touches more than it should. <br><strong><em>(Sol is unusually good at this role.)</em></strong></li><li>Iterate on the review findings before human eyes land on it. <br>The human review then starts from a cleaner, tighter base instead of having to do both the creative and the forensic work.</li></ol><blockquote><strong>The result is usually better than either model working alone.</strong></blockquote><p>Opus supplies ambition and coverage. Sol supplies discipline and skepticism. The combination catches more real issues while still moving fast.</p><h3>A bit of practical wisdom</h3><p>Good software has always needed both builders and inspectors. One person who can see the whole system and push it forward. Another who can stare at the change and ask, “Is every part of this actually required, and will it still hold when the unexpected happens?”</p><p>AI models now give us versions of both personalities at scale. When they disagree loudly, it is not a bug in the process. It is a signal that the two roles are alive and doing their jobs. The teams that learn to route work deliberately (<em>generation to one strength, auditing to the other</em>) get the benefit of both without the usual cost of constant human rework.</p><blockquote><strong>Use the friction. It is one of the clearer advantages available right now.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=661342d78c1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/opus-5-vs-sol-5-6-when-two-strong-models-disagree-pay-attention-661342d78c1d">Opus 5 vs Sol 5.6: When Two Strong Models Disagree, Pay Attention</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 2026 Frontier AI Landscape: A Hyper-Accelerated King-of-the-Hill Game]]></title>
            <link>https://medium.com/amanerp/the-2026-frontier-ai-landscape-a-hyper-accelerated-king-of-the-hill-game-d2f4aecfd614?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2f4aecfd614</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 06:32:10 GMT</pubDate>
            <atom:updated>2026-07-19T06:32:10.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JJYxAJ8xSOclweV-v_QpA.jpeg" /><figcaption>AI Models, Intelligence War and King of the hill race</figcaption></figure><p><em>No model stays king for long. The real contest is shifting from benchmark supremacy to useful work completed per rupee, per second, and per unit of human supervision.</em></p><p>For most of the generative-AI era, progress was narrated as a horse race: which laboratory had the smartest model?</p><p>That framing is now obsolete.</p><p>By mid-2026, frontier AI has become a hyper-accelerated king-of-the-hill game. A model may lead a coding benchmark on Monday, lose the spotlight to a cheaper open-weight competitor on Friday, and become yesterday’s news when another company integrates a slightly weaker model into a much better product.</p><p>The gap between the best proprietary models and the strongest open-weight systems has not disappeared completely. Anthropic’s Claude Fable 5 and OpenAI’s GPT-5.6 Sol still lead many demanding evaluations. But the gap has narrowed enough that intelligence alone no longer decides the winner.</p><p><strong>The emerging contest is multidimensional:</strong></p><ul><li>How reliably can the model complete a long-running task?</li><li>How well does it use terminals, browsers, repositories and business tools?</li><li>How many tokens and tool calls does it consume?</li><li>How fast does it produce a usable result?</li><li>Can it handle text, images, audio, video and large document collections?</li><li>Can it be deployed without surrendering control to one vendor?</li><li>What does a successfully completed task actually cost?</li></ul><p>That is why the “best model” can now change not merely by month, but by workload.</p><h3>January and February: A new baseline emerges</h3><p>The opening months of 2026 established the year’s new baseline: frontier models were no longer expected merely to answer difficult questions. They were expected to plan, use tools, manipulate files, navigate large repositories and remain coherent across extended work.</p><p>Google released Gemini 3.1 Pro on 19 February with improved core reasoning across the Gemini API, Vertex AI, the Gemini app and NotebookLM. It was accompanied by an upgraded Deep Think mode aimed at science and engineering problems. <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-pro/">Google’s announcement</a> reflected the broader shift from conversational intelligence to sustained problem-solving.</p><p>Meanwhile, Z.ai released GLM-5, a 744-billion-parameter mixture-of-experts model with approximately 40 billion parameters active per token. It was designed for complex systems engineering and long-horizon agent tasks, demonstrating that open-weight laboratories were competing not merely on cost, but on the kind of work previously associated with premium closed models.</p><p>The important development was not that one company won February. It was that “frontier” had acquired a new meaning: a model needed to operate inside a workflow, not merely inside a chat window.</p><h3>April and May: DeepSeek attacks the economics</h3><p>On 24 April, DeepSeek released the open-weight V4 Preview family.</p><p>DeepSeek-V4-Pro arrived with 1.6 trillion total parameters and 49 billion active parameters per token. The smaller V4-Flash used 284 billion total and 13 billion active parameters. Both offered a one-million-token context window, thinking and non-thinking modes, and compatibility with OpenAI- and Anthropic-style APIs. <a href="https://api-docs.deepseek.com/news/news260424/">DeepSeek’s official release</a> positioned the family specifically around coding agents, tool use and long-context efficiency.</p><p><strong>The pricing was more disruptive than the parameter count.</strong></p><p>As of 19 July, DeepSeek lists V4-Flash at approximately $0.14 per million uncached input tokens and $0.28 per million output tokens. V4-Pro is approximately $0.435 for input and $0.87 for output. Cache-hit input can be dramatically cheaper. <a href="https://api-docs.deepseek.com/quick_start/pricing/">DeepSeek’s current pricing</a> places both models in an entirely different economic category from premium American flagships.</p><p><strong>Then came Google I/O.</strong></p><p>On 19 May, Google released Gemini 3.5 Flash, a model designed for agentic coding and long-horizon workflows while retaining Flash-class speed. Google reported substantial improvements over Gemini 3.1 Pro on several agent and coding evaluations. <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-5/">Gemini 3.5 Flash</a> supports more than one million input tokens and is priced at $1.50 per million input tokens and $9 per million output tokens under its standard API tier. <a href="https://ai.google.dev/gemini-api/docs/pricing">Google’s pricing page</a> also offers lower-cost batch and flex inference.</p><p>The lesson was becoming clear: intelligence, latency and cost were converging. A “Flash” model could no longer be dismissed as a lightweight alternative.</p><h3>June: Capability meets geopolitics</h3><p>Anthropic raised the capability ceiling on 9 June with Claude Fable 5.</p><p>Fable was the generally available, heavily safeguarded version of Anthropic’s Mythos-class model. It was designed for exceptionally difficult software engineering, knowledge work and long-running autonomous tasks. The underlying model was also released as Claude Mythos 5 to a restricted group of approved cybersecurity partners.</p><p>Fable’s pricing reflected its premium position: $10 per million input tokens and $50 per million output tokens — twice the price of Claude Opus 4.8. <a href="https://docs.anthropic.com/en/docs/about-claude/models/overview">Anthropic’s model documentation</a> recommends it only when the highest available capability is required.</p><p>But three days after launch, the US government issued an export-control directive restricting foreign-national access to both Fable and Mythos. Because Anthropic could not reliably verify nationality across its global users in real time, it suspended both models for everyone. <a href="https://www.anthropic.com/news/fable-mythos-access">Anthropic’s original statement</a> documented the extraordinary intervention.</p><p>The controls were lifted on 30 June after Anthropic implemented additional safeguards. Fable returned globally on 1 July, while Mythos remained limited to approved partners. <a href="https://www.anthropic.com/news/redeploying-fable-5">Anthropic’s redeployment account</a> provides the complete timeline.</p><p>This episode mattered beyond Anthropic. For the first time, customers received a dramatic demonstration that frontier-model availability could become a geopolitical variable.</p><p>Also in June, Z.ai released GLM-5.2. The 744-billion-parameter open-weight model extended its usable context to one million tokens and focused on stable, project-scale engineering and long-horizon execution. <a href="https://z.ai/blog/glm-5.2">Z.ai describes it</a> as its strongest coding model, while its API is priced at $1.40 per million input tokens, $0.26 for cached input and $4.40 for output. <a href="https://docs.z.ai/guides/overview/pricing">Z.ai pricing</a> makes it substantially cheaper than the leading closed flagships.</p><h3>July: The critical fortnight</h3><p>The first half of July compressed months of competitive movement into days.</p><h4>OpenAI: GPT-5.6 Sol</h4><p>OpenAI publicly released the GPT-5.6 family on 9 July after an earlier limited preview and government security review.</p><p>GPT-5.6 Sol is the flagship, accompanied by the more economical Terra and Luna variants. Sol offers a 1.05-million-token context window, a 128,000-token maximum output and new max and multi-agent ultra reasoning modes. OpenAI reports leading results on Terminal-Bench 2.1 and improvements in long-horizon coding, biology and defensive cybersecurity. <a href="https://openai.com/index/previewing-gpt-5-6-sol/">OpenAI’s launch material</a> describes it as the company’s most capable model to date.</p><p>Sol is priced at $5 per million input tokens and $30 per million output tokens — expensive, but significantly below Claude Fable 5. <a href="https://developers.openai.com/api/docs/models/gpt-5.6-sol">OpenAI’s API documentation</a> confirms its context and pricing.</p><h4>SpaceXAI: Grok 4.5</h4><p>SpaceXAI formally announced Grok 4.5 on 16 July, although its API release notes record an earlier 8 July availability entry.</p><p>Grok 4.5 was trained alongside Cursor and optimized for coding, engineering and agentic work. SpaceXAI reports roughly 80 output tokens per second and substantially lower token consumption than some premium competitors on selected engineering evaluations. Its $2 input and $6 output pricing is particularly aggressive for a closed frontier-class model. <a href="https://x.ai/news/grok-4-5">The Grok 4.5 announcement</a> includes its pricing, benchmark methodology and integration details.</p><p>The early evidence suggests Grok 4.5 may be one of the strongest cost-performance options for prolonged development sessions. But SpaceXAI’s benchmark suite shows a more nuanced picture than the marketing headline: Grok wins some long-duration engineering evaluations, while Fable, GPT and other Claude variants lead others.</p><p>There is no universal coding champion.</p><h4>Moonshot AI: Kimi K3</h4><p>On 16–17 July, depending on timezone, Moonshot AI introduced Kimi K3.</p><p>K3 contains 2.8 trillion total parameters, uses 16 of 896 experts during inference, supports native visual understanding and provides a one-million-token context window. Moonshot describes it as the first open model in the three-trillion-parameter class. <a href="https://www.kimi.com/blog/kimi-k3">The Kimi K3 technical overview</a> says that the model still trails Fable 5 and GPT-5.6 Sol overall, but reaches or exceeds frontier performance on several coding, visual and knowledge-work tasks.</p><p>Its API costs $3 per million uncached input tokens, $0.30 for cache-hit input and $15 for output.</p><p>There is, however, an important qualification: as of 19 July, K3’s complete weights have not yet been released. Moonshot promises to publish them by 27 July alongside additional technical details. Therefore, K3 is best described today as an API model with a committed open-weight release — not yet as a fully downloadable open-weight system. <a href="https://platform.kimi.ai/docs/guide/kimi-k3-quickstart">Moonshot’s API documentation</a> confirms the promised date.</p><p>K3 nevertheless represents a significant moment. Its scale, multimodality, long context and competitive performance show that the open-model frontier is no longer confined to smaller approximations of Western systems.</p><h4>Google: Strong platform, missing flagship</h4><p>Google’s position is more complicated.</p><p>Gemini 3.5 Flash is a serious agentic model with excellent multimodal support, strong speed and deep integration across Search, Workspace, Android, Vertex AI and the Gemini ecosystem.</p><p>But Gemini 3.5 Pro, originally promised for June, has not been publicly released. Reporting indicates that it failed to meet Google’s internal targets, particularly in coding, leading to additional training and testing. <a href="https://www.reuters.com/business/google-gemini-launch-delayed-tech-falls-short-internal-goals-bloomberg-news-2026-07-16/">Reuters reported the delay</a> on 16 July.</p><p>Google may temporarily lack the most visible frontier flagship, but it still possesses something most competitors do not: control over a global distribution network spanning consumer search, mobile devices, productivity software, cloud infrastructure and enterprise data.</p><p>Model leadership and ecosystem power are not the same thing.</p><h3>The July 2026 frontier stand-off</h3><p><em>Standard API prices per one million tokens, excluding batch discounts, provider markups, long-context surcharges and tool fees.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RNafzrQmCN1GnZ9Bck9u_g.png" /><figcaption>AI Models Pricing (July 2026)</figcaption></figure><p>These prices should not be mistaken for the total cost of completing a task.</p><p>A cheaper model may consume more reasoning tokens, make more tool calls, require additional retries or produce work that needs more human correction. A March 2026 study found that the model with the lower advertised token price became the more expensive option in 21.8% of model-pair comparisons, with some reversals reaching 28 times the expected cost. <a href="https://arxiv.org/abs/2603.23971">The pricing-reversal research</a> reinforces an essential principle:</p><blockquote><em>Optimize for the cost of a successful outcome — not the price of a token.</em></blockquote><h3>The deeper pattern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMps6hFsVEymi_eWKsgHwA.jpeg" /><figcaption>Closed Proprietary Models vs Open Weights Models</figcaption></figure><p>Three competitive systems are now operating simultaneously.</p><p>American proprietary laboratories continue to set many capability ceilings. OpenAI and Anthropic are especially strong in high-complexity coding, scientific work, defensive security and long-running agents. Their advantages include mature developer products, enterprise support, safety infrastructure and deeply integrated agent environments.</p><p>Platform companies compete through distribution. Google can place Gemini across Search, Android, Workspace and Cloud. SpaceXAI is integrating Grok with Cursor, Grok Build and professional-document workflows. A slightly weaker model embedded in the right environment can be more valuable than a stronger model sitting behind an isolated API.</p><p>Chinese open-weight laboratories are compressing both capability gaps and prices. DeepSeek, Z.ai and Moonshot are forcing every provider to justify its premium. They also offer developers more deployment choices and reduce dependence on any single Western API.</p><p>But “open-weight” is not synonymous with “free,” “easy to run” or “risk-free.”</p><p>Kimi recommends supernode deployments with at least 64 accelerators. A 744-billion-parameter or 1.6-trillion-parameter model still requires hundreds of gigabytes of weight memory even under aggressive quantization, before accounting for runtime overhead, parallelism and long-context KV cache. These systems are open to inspection and alternative hosting, but they are not practical laptop models — or ordinary Hetzner and Contabo VPS workloads.</p><p>Open weights reduce one form of vendor lock-in while potentially creating another dependency on specialized inference providers and scarce accelerator infrastructure.</p><h3>What AmanERP is doing</h3><p>AmanERP does not organize its work around one permanent “best” model. We use a controlled multi-model workflow and route work according to the task, the risk and the cost of a successful result.</p><p>For difficult repository-wide implementation, planning, security analysis and debugging, we use high-capability models inside mature engineering harnesses. GPT-5.6 Sol through Codex is one example. The surrounding system matters as much as the model: project context, tools, permissions, tests and review gates all shape the result.</p><p>We send bounded, mechanical work to faster and cheaper models. Work that requires architectural judgment, difficult trade-offs or incident reasoning goes to stronger models. The route follows the work; it does not follow model fandom.</p><p>Every non-trivial change also receives an independent adversarial review. The model that writes a plan or a diff does not get the final word. A second reviewer looks for security gaps, broken tenant boundaries, data-loss risks, unsafe migrations, concurrency problems, missing failure paths and weak rollback evidence. We resolve material findings before merge. The second model is there to disagree, not to provide a ceremonial approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnLkPb6pC-0m10HPci17bQ.jpeg" /><figcaption>Multi-Model Orchestration</figcaption></figure><p>We give agents narrow authority. They work from explicit specifications, acceptance criteria and file ownership. Sensitive actions retain human approval, and deterministic systems — not language models — remain responsible for authorization, accounting rules and other correctness-critical decisions.</p><p>We judge economics by completed work, not token price. A cheap model becomes expensive when it needs repeated attempts, makes too many tool calls or leaves hours of human correction. We compare models on real AmanERP tasks: Go changes, PostgreSQL queries and migrations, Next.js components, authorization-policy reasoning, tenant-isolation tests, incident analysis and compliance research.</p><p>The same operating pattern is useful for other builders:</p><ul><li>Start with a task taxonomy, not a model leaderboard.</li><li>Route by complexity, data sensitivity, latency, permissions and historical success.</li><li>Keep provider-specific details behind replaceable workflow boundaries.</li><li>Test models on your own work with the same tools, budgets and acceptance criteria.</li><li>Require independent review for high-risk changes.</li><li>Measure cost per accepted outcome, including retries and human correction.</li><li>Keep human approval at consequential boundaries.</li></ul><p>We also resist self-hosting a giant open-weight model merely because its weights are available. Managed inference remains the practical choice for frontier-scale work until sustained demand, privacy needs and measured economics justify dedicated infrastructure.</p><p>Public benchmarks help us choose what to test. AmanERP’s own work decides what earns a place in the system.</p><h3>There may never be another permanent king</h3><p>The frontier is no longer moving in a straight line from one universally superior model to the next.</p><p>It is fragmenting into multiple frontiers: peak intelligence, agent reliability, multimodal work, coding efficiency, price, distribution, openness and deployment control.</p><p>Closed models still establish many capability ceilings. Open-weight systems are rapidly commoditizing those capabilities. Platform companies are turning models into operating environments. Regulation and geopolitics are making availability itself a strategic concern.</p><p>For builders, this is excellent news — provided they resist the temptation to bet the company on whichever model is enjoying this week’s limelight.</p><p>The winning strategy in 2026 is not loyalty to the current king.</p><p>It is building a system that can replace the king without rebuilding the kingdom.</p><h3>About AmanERP</h3><p>AmanERP is an AI-native ERP for SMBs, built in public with platform-first engineering, authorization-first architecture, and operational resilience as product primitives. <em>Aman</em> means peace; the product promise is business software that feels calm instead of chaotic. Follow the build at <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2f4aecfd614" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/the-2026-frontier-ai-landscape-a-hyper-accelerated-king-of-the-hill-game-d2f4aecfd614">The 2026 Frontier AI Landscape: A Hyper-Accelerated King-of-the-Hill Game</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AGPL Trap That Forced an Identity Provider Migration]]></title>
            <link>https://medium.com/amanerp/the-agpl-trap-that-forced-an-identity-provider-migration-5d1b394e2598?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d1b394e2598</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 04:31:56 GMT</pubDate>
            <atom:updated>2026-06-17T04:38:14.673Z</atom:updated>
            <content:encoded><![CDATA[<p>Running an unmodified AGPL binary can be safe. Importing its Go module is a different risk. That distinction cost me six weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3bQ1xZkJ5axaWKDrp0b2A.jpeg" /><figcaption>A horizontal timeline with four marks — a license flipping upstream, the dependency adopted, the audit that catches it, and a wide migration span — shows the cost of the unasked license question.</figcaption></figure><p>Six weeks. Roughly 40–50 files. That was the price of treating “open source” as enough, and of not asking the one question that matters for copyleft:</p><p><strong>How does this dependency enter the product?</strong></p><h3>The Audit That Found the License Problem</h3><p>I adopted ZITADEL as the identity provider in January 2026. The ADR recorded the properties I cared about then: self-hosted, open source, modern, tenant-aware. It did not force the license-family × integration-mode question.</p><p>By the February 2026 vendor-coupling audit, that omission mattered. <strong>ZITADEL v3 had moved from Apache 2.0 to AGPL 3.0</strong>, and my codebase had accumulated 15+ files with hardcoded ZITADEL claim names, a 760-line setup script, and database columns named zitadel_org_id cascading through roughly 55 files via SQLC code generation.</p><p>I had not merely chosen an identity provider. I had shaped schema, token claims, generated code, and operational scripts around it.</p><p>That left one question I could not hand-wave inside a closed-source SaaS: <strong>was this dependency safe in the way I was using it?</strong></p><h3>The Trap Most Engineers Walk Into</h3><p>The usual AGPL conversation starts with the network-use clause. If you modify an AGPL program and let users interact with it over a network, <strong>Point 13 says you must offer the source for that modified version. That is the SaaS loophole AGPL was written to close.</strong></p><p>The usual response is equally familiar: <strong>“We are just running it behind a network boundary. We are not modifying it. We are fine.”</strong></p><p>That sentence is half right.</p><p>AGPL point 13 is about modified versions. Running an unmodified AGPL program as a separate service is not the same thing as publishing your proprietary code. The license text itself separates mere execution from conveying a copy.</p><p>But that is not the trap that bit me.</p><p>The trap is linking.</p><h3>Go Static-Links. That Changes Everything.</h3><p>GPL/AGPL point 0 defines “modify” to include creating a work based on the program. The FSF FAQ treats static or dynamic linking as a combined-work case.</p><p>Go, by default, builds imported modules into one binary. So a single import of an AGPL Go module is not the same risk as calling an unmodified service over HTTP. <strong>It moves you into the combined-work case: the one lawyers and conservative license policies treat most seriously.</strong></p><p><strong>JavaScript bundles can create the same shape when they inline dependency code.</strong></p><p>That is why the license name alone never answers the adoption question. The answer lives in the integration mode.</p><h3>The Two-Axis Rule</h3><p>I formalized this as ADR-086 after the ZITADEL migration because the old rule — <strong>“AGPL/GPL = forbidden” </strong>— was both too broad and too vague. It blocked genuinely safe internal tooling, while still failing to name the product risk precisely.</p><p>The correct rule has two axes: <strong>license family × integration mode</strong>.</p><p>— —</p><p><strong><em>Integration Mode — AGPL/GPL verdict</em></strong></p><p><strong>— — <br>Mode A:</strong> internal tooling only, run as a standalone binary, never shipped, never linked — (<strong>Allowed with documented allowlist) <br>Mode B: </strong>arms-length service, separate process, product talks to it over a network API — (<strong>Requires IP-counsel review)<br>Mode C: </strong>Go module import, npm bundle, same binary — (<strong>Hard blocked) <br>Mode D: </strong>shipped to customers, or modified and network-exposed to non-employees — (<strong>Hard blocked)</strong></p><p>— —</p><p>The mode the standard defense usually describes — running an unmodified service behind a network boundary — is <strong>Mode B</strong>. That boundary may be defensible, but it is still the wrong place for a pre-revenue closed-source SaaS to take heroic license risk when permissive alternatives exist.</p><p><strong><em>Google’s AGPL policy is blunt</em></strong> for the same reason: the modification and linking distinctions are fact-specific, <strong><em>easy for engineers to get wrong, and costly when they are wrong.</em></strong></p><h3>What We Did</h3><p>I replaced ZITADEL with Logto OSS (MPL-2.0). MPL-2.0 is file-level copyleft: if I modify MPL files, those changes have sharing obligations, but the license does not spread across my whole proprietary binary. No AGPL network-use clause. No Go-linking trap for the product.</p><p>The migration cost six weeks and touched roughly 40–50 files. That was not the price of being careful. It was the price of being careful late, after identity had leaked into schema, scripts, token claims, and generated code.</p><h3>Where the rule gets too blunt</h3><p>The opposite failure is real too. A flat “AGPL is forbidden” rule reaches the right answer for the linked product code, then keeps going until it blocks safe tooling. I hit that next: the old rule vetoed a standalone internal CLI that never shipped, never linked, and never entered the product runtime.</p><p>That was not risk management. That was a velocity tax.</p><p>Permissive licenses are safe everywhere. AGPL linked or bundled into the product code is blocked. AGPL run as an unshipped, unlinked internal tool can be allowed with a documented allowlist. Scope the alarm to the quadrant that earns it.</p><h3>The Rule Worth Keeping</h3><blockquote><strong>The danger is not the license family. The danger is the integration mode.</strong></blockquote><p>Permissive licenses are safe in every cell. AGPL linked or bundled into your product binary is blocked, even if you never modify it. AGPL, as an internal-only CLI you invoke as a separate process, can be allowed with documentation. The scanner catches the linked case automatically; judgment catches the rest.</p><p>A dependency review that asks only “what license?” and not “how will this be integrated?” is incomplete. The rule is worth writing before you need it. Mine arrived after the migration.</p><p>The question that decides the product case is simple: does this ever touch go.mod or package.json for production use?</p><p>If yes, the answer to AGPL is no.</p><h3>About AmanERP</h3><p>AmanERP — an AI-native ERP for SMBs, built in public, with six-week migrations included. <em>Aman</em> means peace: calm software stands on dependencies you can live with. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d1b394e2598" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/the-agpl-trap-that-forced-an-identity-provider-migration-5d1b394e2598">The AGPL Trap That Forced an Identity Provider Migration</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RFC Before ADR: The ‘Maybe’ Layer That Saves Bad Decisions]]></title>
            <link>https://medium.com/amanerp/rfc-before-adr-the-maybe-layer-that-saves-bad-decisions-52531a2e4b8c?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/52531a2e4b8c</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 05:19:32 GMT</pubDate>
            <atom:updated>2026-06-16T05:19:32.127Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Most teams record the decision. Few preserve the almost-decision, which is the artifact that saves you six months later.</strong></p><p>Put one document before the ADR: the place where uncertainty, rejected options, and revisit conditions stay readable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFvVyZjElE9kC5UZkJnL6w.jpeg" /><figcaption>A rejected one-page proposal ending in a four-item “revisit if” checklist, three boxes ticked — the rejected reasoning preserved at the fork of an untaken path</figcaption></figure><blockquote><strong>Most teams record the decision they made. Few preserve the one they almost made — and six months later, that is often the artifact that matters.</strong></blockquote><p>An ADR records where the team landed. An RFC records the live argument: options, rejected paths, and the conditions that would reopen the call. Keep both because they have different readers. The ADR should stay clean enough for someone to understand the current architecture quickly. The RFC should keep the messier reasoning from disappearing.</p><p>Put the RFC one step before the ADR. It holds the deliberation while the answer is still “maybe,” so the final decision record stays clean and the rejected alternatives survive in a place a future engineer can find them.</p><blockquote>Q: What is the difference between an RFC and an ADR, and why keep both?</blockquote><blockquote>A: An ADR records the settled choice; an RFC preserves the argument, rejected options, and revisit conditions while the answer is still open.</blockquote><h3>The decision you can read, and the one you can’t</h3><p>Open any mature codebase’s decision logs, and you will find a clean list of what the team decided: this database, that router, this auth model. Each entry tells you the destination.</p><p>What you cannot see is the wrong turn that saved you. The tool someone evaluated for two days and rejected. The architecture that looked obvious until somebody did the resource math. That reasoning lives in a closed Slack thread, or in one person’s head, or nowhere — and it evaporates exactly when it is needed, which is the day a new engineer proposes the thing you already turned down.</p><p>An ADR answers <strong>“what did we decide.” </strong>It is structurally incapable of answering <strong>“what did we consider and turn down, and would that still hold today.”</strong></p><p>Those are different questions, and the second one is the expensive one to re-answer.</p><h3>The maybe layer</h3><p>The fix is a document type that sits one step earlier in the pipeline. In my codebase, the pipeline is explicit: idea, then RFC, then ADR, then feature spec.</p><p>The RFC is the “maybe” space — the proposal stage, before a decision is yes or no. It holds a structured discussion while the answer is still open. The ADR comes after, and only if the decision is architectural. The split is defined by a single sharp test:</p><blockquote>if you are changing <em>how the system works</em>, you write an RFC; if you are changing <em>what it does</em>, you write a feature spec.</blockquote><p>When the ceremony applies — and when it does not — is in the next section.</p><h3>A rejected RFC is a gift to your future self</h3><p>The incident that made this concrete was a deployment-platform evaluation: a self-hosted web UI over Docker, automatic Git deploys, built-in SSL. The author had used it happily on simpler projects. The question was whether that experience would transfer.</p><p>The RFC’s answer was no, and the rejection was useful because it did more than say no.</p><p>It named three specific conflicts with existing decisions — the reverse-proxy choice, the existing infrastructure-as-code workflow, and the edge-networking model — and explained each as a concrete incompatibility, not a preference.</p><p>It did the resource math: the new platform would add roughly 1.4 GB of memory overhead on a VPS that didn’t have the headroom, which by itself forced a server upgrade the project didn’t want. And it cited external evidence — a public discussion thread documenting that the platform’s reverse proxy produces redirect-loop errors behind the team’s edge-networking setup. Opinion became engineering.</p><p>Then it did the part most rejections skip. It wrote a <strong>“revisit if” checklist</strong>: reconsider this decision if we abandon the edge-networking model, if we abandon the current infrastructure-as-code tooling, if we upgrade to a larger VPS, or if the platform adds support for our reverse proxy. Writing that list felt fussy at the time — four bullets for a decision we were sure about. It was the only part anyone opened six months later.</p><p>We rejected the platform early. By June, three of the four conditions had changed on their own schedule: the project moved off the infrastructure-as-code tooling the RFC named, replaced the edge-networking model, and grew the VPS well past the size threshold. The fourth — the platform adding support for our reverse proxy — had not. That gap matters: you can see which assumption still blocks the old answer without re-running the whole evaluation.</p><p>That is not the RFC being wrong. That is the RFC being <em>useful</em>. Because the reasoning was on disk, anyone re-examining the deployment decision today can see precisely which load-bearing assumptions changed — and reopen the question with evidence rather than memory. The rejected reasoning outlived the rejection.</p><h3>Why the “revisit if” list is the whole point</h3><p>That checklist is the difference between a decision and a dead end.</p><p>A bare “no” rots the moment circumstances change. Six months later someone asks “why aren’t we using that platform?” and nobody remembers, so they re-evaluate from scratch and pay the full cost again. A “no” with explicit revisit conditions converts the decision into a tripwire: when one of the named conditions fires, you know the decision is worth reopening, and you know exactly why.</p><h3>The layers exist for different readers</h3><p>What actually matters is that the three document types solve three different problems, and blurring them makes every reader do extra work.</p><p>An RFC is the place the argument is still allowed to be messy: the options you considered, the paths you rejected and the concrete reasons, plus the short list of conditions that would make you reopen the call. The ADR is the settled record you want a future engineer to read in five minutes without the noise. The feature spec is the contract for what gets built. When one document tries to do two of those jobs, the person who only needs one of them has to wade.</p><p>Keeping the stages separate also makes it cheaper, to be honest, while the answer is still open. Once you have declared a decision final, it is awkward to tack on <strong>“we seriously considered the other road and here is why it lost.”</strong> The proposal stage gives the doubt somewhere to live before the verdict is written down.</p><h3>When I would not write an RFC</h3><p>The maybe layer is a tax, and on small or reversible changes, the tax costs more than the decision it documents. A bug fix, a new feature inside the existing architecture, a single-file refactor — writing a proposal for any of those is ceremony for its own sake, and a team that demands it everywhere trains people to write the document and skip the thinking. That inverts the point. The RFC is reserved for changes whose blast radius justifies writing the reasoning down: adding or removing a technology, shifting an architectural pattern, a schema change that spans features, a breaking API contract.</p><p>There is a second, sharper limit. An RFC is only worth its weight if the rejection is honest. A proposal stage used to manufacture consensus — where the “alternatives considered” are strawmen propped up so the predetermined answer looks rigorous — is worse than no RFC, because it launders a foregone conclusion as deliberation. The format does not create honesty; it only gives honest conversation a place to live. If the decision is already made, skip the ceremony and write the ADR. The maybe layer earns its keep only when the answer is genuinely still maybe.</p><h3>What to actually change on Monday</h3><p>You do not need a new tool. You need one document type and one routing rule. Before the next architectural change — a new technology, a removed one, a pattern shift — write a one-page proposal first: the options, the one you recommend, and the alternatives you are rejecting with the reason for each. End every rejection with a “revisit if” list.</p><p>Then keep it, rejected or not. The accepted RFCs justify your architecture. The rejected ones stop your team from re-deciding the same question every time the context shifts.</p><p>A rejected RFC is not a waste. It is how you avoid paying for the same decision twice.</p><h3>About AmanERP</h3><p>AmanERP is an ERP for SMBs built in public — rejected proposals included. We treat decision records as infrastructure you can re-read when context shifts. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52531a2e4b8c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/rfc-before-adr-the-maybe-layer-that-saves-bad-decisions-52531a2e4b8c">RFC Before ADR: The ‘Maybe’ Layer That Saves Bad Decisions</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Server Said ‘Healthy.’ The Database Had Zero Tables. The Silent Empty Database Problem]]></title>
            <link>https://medium.com/amanerp/your-server-said-healthy-the-database-had-zero-tables-the-silent-empty-database-problem-8ee0dadd4290?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ee0dadd4290</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 05:01:34 GMT</pubDate>
            <atom:updated>2026-06-12T05:01:34.921Z</atom:updated>
            <content:encoded><![CDATA[<p>A successful DB connection tells you TCP and auth work — nothing about whether the schema exists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*csSZB3FO9c0Q6xtCMKg6Lg.jpeg" /><figcaption>Two terminal panels describing one server — a health endpoint returning status ok beside a psql \dt output reading &quot;Did not find any relations.&quot;</figcaption></figure><blockquote>The server started. Health said OK. The database had zero tables. Nobody knew for three days.</blockquote><h3>Does a successful database connection mean the database is ready?</h3><p>No.</p><p>A connection proves TCP, authentication, and that the named database exists. It says nothing about whether the schema was applied.</p><p>An empty database — zero tables — accepts a connection pool happily, so a health check that only pings can return OK while every feature that needs a table is broken.</p><blockquote>The readiness check has to ask one more question: is the schema at the expected migration version?</blockquote><h3>The Gap Between “Connected” and “Ready”</h3><p>The API server started. The database connection pool opened successfully. The server had a database. Every startup check saw something true: the pool was non-nil, the database was reachable, and authentication succeeded.</p><p><strong>None of those things mean the schema exists.</strong></p><p>The connection pool validates TCP and auth, not DDL. A pgxpool.Pool connects to a named database. That database can be empty. Pool creation still succeeds. Every init function that checks queries != nil gets true, because the queries object wraps the pool, and the pool exists. Table existence is only tested when actual SQL runs at request time.</p><p>The health endpoint checked two questions: is the server process running, and can the DB pool ping? Both answers were yes. Neither answer touched on whether the 22 migrations had been applied, whether the tables the application depends on existed, or whether any feature that writes to the database could work.</p><p>The result was {&quot;status&quot;:&quot;ok&quot;} while every database-backed feature — audit trail, access controls, configuration, multi-factor authentication enforcement — was silently broken. Three days later, a human ran \dt and found no relations.</p><h3>The Distinction That Fixes It</h3><p>Liveness means the process is running. Readiness means the process can serve traffic correctly.</p><p>A health endpoint that checks liveness and labels its readiness is the failure pattern.</p><p><strong>The fix is simple: on startup, verify the schema version matches the expected migration count. Add the same check to the readiness response. “Connected” and “schema current” are different facts; report both.</strong></p><p>The broader rule is not about PostgreSQL. A successful connection to a dependency tells you the dependency is reachable. It tells you nothing about whether the dependency is in the state your application requires.</p><h3>When a connection check is all you need</h3><p>For a pure liveness probe — “is the process up and the socket open?” — a connection ping is exactly the right, cheap check.</p><p><strong>The bug is not the ping. The bug is using a liveness answer to make a readiness decision. Keep both, and label which question each one answers.</strong></p><blockquote><strong>Treat connection and readiness as separate assertions — and make your health endpoint report both.</strong></blockquote><h3>About AmanERP</h3><p>AmanERP is an AI-native ERP for SMBs, built in public, where health checks answer the question that matters: ready, not merely running. <em>Aman</em> means peace — calm software, honestly reported. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ee0dadd4290" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/your-server-said-healthy-the-database-had-zero-tables-the-silent-empty-database-problem-8ee0dadd4290">Your Server Said ‘Healthy.’ The Database Had Zero Tables. The Silent Empty Database Problem</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mock Tests are lies you told yourself. 181 Tests Passed. Zero Features Worked.]]></title>
            <link>https://medium.com/amanerp/mock-tests-are-lies-you-told-yourself-181-tests-passed-zero-features-worked-3e734958113b?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e734958113b</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 04:26:31 GMT</pubDate>
            <atom:updated>2026-06-12T04:26:31.990Z</atom:updated>
            <content:encoded><![CDATA[<p>Mock-only tests are useful. They prove component logic, not real wiring, schema state, token algorithms, or metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Manz5yS96nRK0-Cyx8S2Aw.jpeg" /><figcaption>A three-row matrix showing unit tests, mock acceptance tests, and integration tests, each with a column of what it proves and a column of what it cannot see — the cannot-see cells lining up into a single visible gap.</figcaption></figure><p>Dead metrics. Real tokens rejected. One curl would have exposed the auth break.</p><p>During a QA validation pass, every test was green — 97 unit, 84 regression, full build, full lint. The running system had a database with zero tables, two of three observability metrics dead, and authentication silently rejecting every real token for four sprints. The tests measured exactly what they were built to measure; they were measuring the wrong things. This is the mock-only confidence trap.</p><blockquote><strong>The tests told the truth about the functions. They did not tell the truth about the system.</strong></blockquote><h3>What the Green Tests Proved</h3><p>The pass rate was real. Every unit test measured exactly what it was built to measure: given this input, does this function produce this output? The answers were correct. The functions worked.</p><p>What those functions connected to was never tested. PostgreSQL, the authentication provider, and the metrics path were replaced by small structs returning predetermined values. The mocks never opened a real connection, fetched a JWKS endpoint, or proved a Prometheus counter was called on a real request. They returned the values the test expected, and the tests recorded a pass.</p><p>Three failures in the running system were invisible to all 181 tests simultaneously:</p><ol><li>The database had zero tables. Migrations had not been applied to the fresh environment. The server started, the connection pool opened, and the health endpoint returned {&quot;status&quot;:&quot;ok&quot;} — because the pool connects when the database exists, not when the schema exists. Every mock test bypassed this entirely; mocks do not care whether the table they are pretending to query actually exists.</li><li>Authentication had been broken for four sprints. The identity provider uses ECDSA with the P-384 curve for token signing. The mock OIDC server used RSA-2048. The gateway’s JWK struct had fields only for RSA keys (N, E); EC fields (X, Y, Crv) were never defined. Go&#39;s JSON unmarshaler does not warn on missing fields — the EC key data was deserialized silently to zero values. Every mock test used RSA tokens and passed. Every real token was rejected at the signing-method check: unexpected signing method: ES384.</li><li>Two of three Prometheus metrics were dead code. The rate-limiting feature worked correctly against real infrastructure, but two metric counters — defined, registered, never called — emitted nothing. The mock store returning a predetermined count does not exercise the code path that records the metric.</li></ol><p>One curl command against the real JWKS endpoint in Sprint 2 would have caught the authentication failure: curl -s http://localhost:3001/oidc/jwks | jq &#39;.keys[0].kty&#39; returns &quot;EC&quot;. It was never run.</p><h3>The Confidence Gap Is in the Label</h3><p>A mock-only suite is not automatically bad. It is just a smaller claim than teams often make with it.</p><p>Mocks serve a real purpose: they isolate function-level logic from infrastructure, making tests fast, deterministic, and runnable without real services. Keep that. The problem starts when “the mocked component behaved” gets reported as “the feature works.”</p><p>Mocks prove business rules at the component level. They say nothing about whether SQL queries compile against the actual schema, whether sqlc types round-trip correctly through pgxpool, whether the JWT algorithm your mock uses matches the algorithm your identity provider defaults to, or whether a metric counter is called on the code path that handles real requests.</p><p>That gap is where this class of failure lives. Wiring bugs, schema mismatches, algorithm assumptions, and dead observability code are not logic errors. They are integration errors.</p><blockquote><strong>A suite that never integrates cannot see them.</strong></blockquote><p>Renaming mock-based tests “regression tests” compounds the damage. The label implies the tests catch regressions in the real system. They catch regressions in the mocked simulation of the system. These are different objects.</p><h3>The Fix Is One Layer, Not a Rewrite</h3><p>The correction is additive: keep the unit tests, add the layer they cannot reach.</p><p>A single integration test that starts the actual server, connects to a real database, executes one authenticated request, and checks the relevant metric would have changed the outcome. The missing schema fails at query time. The ECDSA mismatch rejects the token. The metric assertion proves the code path records what the dashboard claims it records.</p><p>That is smaller than the cost of finding these failures late. Four sprints of broken authentication, discovered by a human running a manual check, is an expensive way to learn that the mock was too friendly.</p><p>The change that prevents recurrence is a definition of done that distinguishes integration coverage from mock coverage. “All tests pass” is only meaningful if it says what kind of tests passed. Require at least one integration test exercising real infrastructure per feature, and the gap closes before it becomes an incident.</p><h3>The Test Boundary to Remember</h3><p>Every test level has a boundary. That boundary is not a defect; it is part of the design. The defect is forgetting where it is.</p><ul><li><strong>Unit tests cover function-level logic.</strong> They do not cover SQL query correctness against a real schema, connection pool behavior, JWT algorithm compatibility, metric emission, proxy path prefixes, or environment variable presence.</li><li><strong>Mock-based acceptance tests cover business rules at the component level.</strong> They do not cover the type mappings sqlc generates, how pgxpool handles JSONB serialization, whether the real identity provider uses the algorithm your mock assumes, or whether a handler is registered at the correct route.</li><li><strong>Integration tests cover real infrastructure contracts.</strong> They do not cover multi-tenant isolation at scale, failure modes under load, browser rendering, or end-user flows.</li></ul><p>Each layer is necessary. None is sufficient alone. The failure mode in the 181-test example is not that unit tests exist — it is that nothing else does.</p><h3>When a mock-only test is the right call</h3><p>None of this is an argument against mocks. For a pure business-logic unit — a tax calculation, a state machine, a validation rule — a mock-isolated test is faster, deterministic, and exactly right; reaching for real infrastructure there is wasted ceremony. The trap is the label: a mock-only suite called “100% green,” read as a statement about the system instead of about its components.</p><blockquote>A green test suite is not evidence the system works. It is evidence the system satisfies the specific properties the tests were designed to check. Know the properties. Name the gaps. Test both.</blockquote><h3>About AmanERP</h3><p>AmanERP is an AI-native ERP for SMBs, built in public — where “the tests pass” and “the system works” are kept as separate claims, on purpose. <em>Aman</em> means peace: business software that feels calm instead of chaotic. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e734958113b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/mock-tests-are-lies-you-told-yourself-181-tests-passed-zero-features-worked-3e734958113b">Mock Tests are lies you told yourself. 181 Tests Passed. Zero Features Worked.</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I have built a cloud ERP for multiple sprints and shipped zero ERP features.]]></title>
            <link>https://medium.com/amanerp/i-have-built-a-cloud-erp-for-multiple-sprints-and-shipped-zero-erp-features-ce471d3e1425?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce471d3e1425</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 03:23:32 GMT</pubDate>
            <atom:updated>2026-06-11T03:23:32.178Z</atom:updated>
            <content:encoded><![CDATA[<h3>I have built a cloud ERP for multiple sprints and shipped zero ERP features. That refusal is the strategy, not a delay.</h3><p>Building the authorization platform before a single product module is a moat, not procrastination — and holding that gate closed is the hardest founder call I have made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8WjBJktLbVDzfhM6oyddUw.jpeg" /><figcaption>An illustration of a precise, fully-poured building foundation beneath a lot where the visible structure has not yet been built.</figcaption></figure><p>I have built a cloud ERP for multiple sprints and shipped zero ERP features. No inventory, no accounting, no sales pipeline. A cloud ERP with no ERP in it — just the layer nobody asks to see: who is allowed to do what, in which company, with which data.</p><p>That refusal is the strategy, not a delay, and holding the line on it was the hardest founder call I have made.</p><p>I wrote the constraint down as a decision record before the temptation could win.</p><p>The rule is plain: no domain modules until the platform is mature and could stand alone as a multi-tenant product.</p><p>The gate has ten criteria, and it stays closed until every one is validated.</p><h3>Is building the platform before the product just procrastination?</h3><p>No. On a system like an ERP, the foundation is the product. Ship visible modules before the platform has settled and each one bakes in a guess the platform will later overturn — a rewrite priced per module, across every module.</p><p><strong>Pouring the authorization and tenant layer first is what keeps the modules cheap when they finally arrive.</strong></p><h3>The feature you can demo is not the feature that wins</h3><p>Most founders building business software ship a visible feature in week one — something you can put in a deck. I did the opposite, on purpose, and held the line for multiple sprints. The instinct to ship the thing you can show is exactly the instinct that mortgages the foundation.</p><h3>Why authorization has to come first</h3><p>An ERP only looks like one app. In practice it is an accountant who serves dozens of separate businesses, a branch manager scoped to one location, a freelancer invoicing three clients from one login, an auditor with read-only reach across an org. Every one of those is an authorization question.</p><p>If you build the invoice feature before you have answered those questions properly, the invoice feature <em>assumes</em> an answer. So does the next feature, and the next. Each one hard-codes a guess about who can see what.</p><p>Then the platform changes — because early platforms always change — and every feature built on the guess becomes a rewrite candidate. <strong>The debt does not add up. It multiplies.</strong></p><h3>The lesson that set the rule</h3><p>I did not invent this discipline in the abstract. I learned it the expensive way (<em>based on my experiences working on multiple legacy enterprise systerm modernization projects where whole code was garbage at best</em>).</p><p>Early on, swapping one identity provider for another consumed an entire sprint, because the coupling to that vendor <em>(Zitadel)</em> ran deeper than anyone had tracked. One swap, one sprint, for a dependency I had treated as settled.</p><p>That was the cheap version of the lesson. Now imagine that coupling living inside a dozen shipped ERP modules instead of inside the platform.</p><p>The same mistake, multiplied across every feature that assumed the old shape.</p><blockquote><strong>I decided I would rather pay the cost once, in the foundation, than a dozen times, in the product.</strong></blockquote><h3>The hard part is not the engineering</h3><p>Writing the gate was a paragraph. Living behind it is the discipline.</p><p>For multiple sprints there has been nothing flashy to show. No screenshot of an invoice that says “look, it works.” The roadmap instinct — and every conversation with someone who wants to see the product — pushes the same direction: build the feature, show the thing, prove it is real.</p><p>Holding the gate closed against that pressure, when shipping a module would feel like progress and would photograph better, is the founder decision I have found hardest. Saying no to your own roadmap is harder than saying no to a competitor’s.</p><h3>What “no” actually bought</h3><p>The platform is now at the point I built it for. Tenancy, identity, fine-grained permissions, audit trails, deployment automation, observability — the unglamorous half of an ERP, built thoroughly while there was time and no customer waiting.</p><p>When the gate opens, every future module starts from a position of strength instead of accumulated compromise.</p><blockquote><strong>The first ERP feature I ship will sit on a foundation that was designed for it, not retrofitted around it. That is the entire bet.</strong></blockquote><p>The discipline is not patience for its own sake. It is the refusal to let a demo-able feature buy me a structural problem I would be paying off for years.</p><h3>Where platform-first is the wrong call</h3><p>I would not give this advice to every founder, and the honest version names the conditions under which it is wrong.</p><p>If you have not validated that anyone wants the product, platform-first is a way to spend a year building load-bearing infrastructure for a building nobody ordered.</p><p>A pre-customer founder who needs a market signal should ship the thin visible thing, get the rejection or the pull, and only then decide whether the foundation is worth pouring.</p><p>The gate is a bet that the demand is real and the system is genuinely deep — an ERP is, a single-purpose tool usually is not. On a shallow product, the foundation and the feature are nearly the same thing, and the whole tradeoff collapses.</p><p>What earns the right to hold the gate closed is that I already knew the demand and the shape of the system. I was not deferring product discovery behind a wall of plumbing. I was refusing to build the plumbing twice. Those are different decisions that look identical from the outside, and conflating them is how platform-first turns from discipline into avoidance.</p><p>The question I would put to any founder building something with real depth: which of your features is quietly assuming an answer your platform has not actually decided yet?</p><p>Find that assumption, and you have found the thing worth building first. A foundation poured on purpose costs you one slow year; a foundation retrofitted under shipped features costs you every year after.</p><h3>About AmanERP</h3><p>AmanERP is an AI-native ERP for SMBs, built in public exactly the way this piece argues: platform first, features second. <em>Aman</em> means peace — business software that feels calm instead of chaotic. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce471d3e1425" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/i-have-built-a-cloud-erp-for-multiple-sprints-and-shipped-zero-erp-features-ce471d3e1425">I have built a cloud ERP for multiple sprints and shipped zero ERP features.</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cognitive Load Is the Real Enterprise Software Killer]]></title>
            <link>https://medium.com/amanerp/cognitive-load-is-the-real-enterprise-software-killer-4917e4ef9581?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/4917e4ef9581</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 03:47:20 GMT</pubDate>
            <atom:updated>2026-06-10T03:47:20.530Z</atom:updated>
            <content:encoded><![CDATA[<p>Citibank lost $500M in a single transaction. Three reviewers all misread the same screen. The interface had violated every known design heuristic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKI6g8QELF5BFvfz92ldYQ.jpeg" /><figcaption>Two nearly identical abstract control panels sit side by side, differentiated only by a small shape difference — illustrating how visual similarity between modes causes human error.</figcaption></figure><p>In 2020, a Citibank operator intended to send a $7.8 million interest payment to Revlon’s lenders. What arrived was $900 million — the full principal of the loan.</p><p>This was not a typo. The operator used Oracle Flexcube’s “principal forgiveness” payment type, which required setting three non-obvious fields — “front,” “fund,” and “principal” — to prevent a full repayment. The operator set them incorrectly. Three reviewers in Citibank’s “six eyes” protocol reviewed the same screen and missed the same error. All three. Simultaneously.</p><p>Citibank lost approximately $500 million when courts ruled the lenders were not required to return the inadvertent payment. A judge analyzing the case concluded that the Flexcube interface “violates almost every single design heuristic known to mankind.”</p><p>The question worth sitting with isn’t how Citibank hired people who make that mistake — it’s <strong>what class of interface design produces identical errors across multiple trained, independent reviewers.</strong></p><h3>What is mode confusion in software design?</h3><p>That class has a name. Mode confusion is what happens when a system multiplies operational states without supporting the cognitive work of tracking which one you are in.</p><p>Human-factors research named it three decades ago; it is a design failure, not user error, and its fingerprint is exactly what that screen produced — trained people, checking independently, failing identically.</p><h3>Sarter and Woods named it in 1995</h3><p>Nadine Sarter and David Woods formalized mode confusion in their 1995 paper “How in the World Did We Ever Get into That Mode?”, a landmark in human factors research with over 860 citations. Their taxonomy identified four failure types:</p><ul><li><strong>Lack of modal awareness</strong> — operators do not know which mode the system is in or how they entered it</li><li><strong>Inaccurate mental models</strong> — incomplete understanding of how modes interact</li><li><strong>Indirect mode activation</strong> — modes that change through non-obvious triggers rather than direct commands</li><li><strong>Delayed feedback</strong> — time between input and observable result long enough to make errors hard to detect</li></ul><p>Their key finding: “When designers proliferate modes without supporting new cognitive demands, new mode-related error forms and failure paths result.”</p><p>Aviation had already accumulated the body count. Korean Air Flight 007 strayed into Soviet airspace after a mode transition failure: the aircraft was in heading mode instead of inertial navigation. Asiana Flight 214 lost airspeed because a co-pilot believed the auto-throttle was in automatic intervention mode when it was not.</p><p>Victor Riley, writing in 2005, noted that despite three decades of research, aviation interfaces had “changed little and mode confusion continues to contribute to safety events.”</p><p>The pattern migrated into enterprise software as soon as enterprise software accumulated enough modes to matter.</p><h3>Working memory is not the problem</h3><p>The instinct when reading the Citibank case is to reach for a capacity argument: the interface was too complex, users needed better training, the six-eyes process needed a fourth reviewer. That is the wrong frame.</p><p>The research on working memory is directional, not definitive on exact numbers. But its core finding is consistent: human working memory capacity under realistic conditions is limited (classic estimates suggest 4 ± 1 items when cognitive demand is high), and context switching consumes a significant share of productive cognitive capacity. Under time pressure, these effects compound.</p><p>Research in Frontiers in Psychology has documented that time pressure restricts cognitive resource allocation and reduces decision accuracy, effects Sarter and Woods identified thirty years ago under the specific label of “delayed feedback” making errors harder to detect.</p><p>The design implication is not that users need more capacity but that modes must be designed to work within the capacity that exists — not the capacity the designer assumed.</p><h3>The banner blindness problem compounds this</h3><p>There is a second mechanism operating on top of mode confusion: habituation.</p><p>Anderson et al.’s 2016 JMIS study “From Warning to Wallpaper” used fMRI to observe warning habituation directly. The key finding:</p><p><strong>“A dramatic drop in visual processing centers of the brain after only the second exposure to a warning, with further decreases with subsequent exposures.”</strong></p><p>A static environment indicator — a yellow “STAGING” banner, a red “TEST MODE” badge — habituates in the user’s brain after as few as two exposures. The banner is still visible to the camera. It is not visible to the user.</p><p>Anderson and Kirwan’s 2015 CHI paper on polymorphic warnings showed that warnings which change their appearance — varying size, color, and text ordering — sustained neural activation significantly longer; habituation only set in on average after the 13th variation, versus 2 for conventional static warnings. That is a 6.5× difference in the amount of exposure before the warning becomes invisible.</p><p>The enterprise software implications are direct: any system that uses a single persistent visual indicator to communicate mode — “you are in production,” “you are in training” — is shipping a design that neurologically stops working within minutes of the user starting work for the day.</p><h3>The GitLab postmortem as a case study in mode error</h3><p>In 2017, a GitLab engineer ran a cleanup command on the production database instead of the replica. The engineer’s explanation in the public postmortem: “The primary and secondary databases looked identical in the terminal.” The result was 300GB of production data lost.</p><p>All five of GitLab’s backup methods had independently failed. But the root cause of the triggering action was mode confusion — two environments, visually indistinguishable, one bearing full production data.</p><p>GitLab published the incident openly, including the contributing factors and corrective actions. The incident is a clean example of the Sarter/Woods taxonomy: the operator lacked modal awareness of which environment they were in, the interfaces provided insufficient differentiation, and the feedback from the incorrect action came too late.</p><h3>The design rule</h3><p>The research converges on a framework with three components:</p><p><strong>First: minimize modes.</strong> Every mode the system has is a cognitive demand the user must track. If two modes can be collapsed — if a configuration that requires three fields can be replaced by a configuration that requires one — the right answer is almost always to collapse them.</p><p><strong>Second: make modes unmissable, not just visible.</strong> NN/G research on visual indicators found that combining a unique icon with a color performed best across all usability metrics — users were 37% faster at locating items when indicators varied both in color and icon compared to text alone. The implication: a static color-coded banner is insufficient. At minimum two of color, shape/icon, and text label should vary, and applied persistently.</p><p><strong>Third: add structural barriers, not visual reminders.</strong> The Citibank disaster did not require a better-looking screen — it required a workflow that made the accidental action structurally difficult. The difference between “a warning that you will send the full principal” and “a second confirmation screen that requires you to type the amount before proceeding” is not a UX preference; it is a category difference in failure prevention.</p><h3>Where minimalism is the wrong lesson</h3><p>The rule is not “simplify everything.” Some domains are irreducibly complex, and stripping a mode a power user needs to hit speed is its own failure. The claim is narrower and harder: never add a mode without supporting the cognitive demand it creates, and never assume the trained expert under time pressure is immune — they are the ones mode errors hit most.</p><p>Collapse the modes you can; for the ones you cannot, make them unmissable and put a structural barrier in front of the irreversible ones.</p><h3>Why this matters for ERP</h3><p>Most ERP software is built for power users who will eventually memorize the modes. That design philosophy is explicit in the product teams I have talked to. “The learning curve is high, but once you are trained, you are productive.”</p><p>Sarter and Woods spent thirty years demonstrating why this is wrong. Mode errors happen most to trained experts under time pressure — exactly the users who “know the system.” The Citibank reviewers were not untrained. They were the six-eyes protocol.</p><p>The goal is not to remove all complexity from enterprise software but to refuse cognitive burden that adds no capability — and to stop assuming the user will always operate under ideal conditions. Citibank’s six reviewers were presumably under pressure, in a time-bounded process, reviewing a routine payment.</p><p><strong>“Of course this is how I expected it to work”</strong> is not just a pleasant aspiration for business software. It is a safety requirement.</p><h3>About AmanERP</h3><p>AmanERP is an AI-native ERP for SMBs, built in public around a single promise — <em>Aman</em> means peace, and business software should feel calm instead of chaotic. This piece is part of taking that promise seriously as engineering. <a href="https://www.amanerp.com/"><strong>www.amanerp.com</strong></a></p><p><strong><em>A note on sources:</em></strong><em> The Citibank Flexcube case is documented across multiple legal and journalistic sources; the figure of “approximately $500M” in recovered funds reflects the portion Citibank could not recover per court rulings (the court ruling is well-documented — see Bloomberg and Reuters coverage of the 2021 ruling). The Sarter/Woods and Anderson/Vance studies are academic papers; the fact-check log below records the repo knowledge base where they are cited. The NN/G 37% figure is from NN/G’s visual indicators research. External readers should consult primary sources for exact figures.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4917e4ef9581" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/cognitive-load-is-the-real-enterprise-software-killer-4917e4ef9581">Cognitive Load Is the Real Enterprise Software Killer</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Arrow of Time: Vibe Coding Era Mental Model]]></title>
            <link>https://medium.com/amanerp/the-arrow-of-time-vibe-coding-era-mental-model-0969e51dfe41?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/0969e51dfe41</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Wed, 20 May 2026 10:08:57 GMT</pubDate>
            <atom:updated>2026-06-03T04:38:07.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKVuP4QrSnRgQVVIZN7J0Q.png" /><figcaption>The Arrow Of Time — Vibe Coding Era</figcaption></figure><p>Imagine you are standing in a kitchen, looking at a freshly baked chocolate cake. It’s a bit sunken in the middle, and you suddenly realize you forgot the baking powder.</p><p>Can you un-bake it? Can you separate the flour from the eggs, extract the sugar, add the missing powder, and start over?</p><p>Of course not. <strong><em>Time only moves in one direction: forward.</em></strong></p><p>In physics, this is known as the <strong>Arrow of Time</strong> — the thermodynamic principle that the universe naturally progresses from order to disorder (entropy). But this cosmic rule doesn’t just apply to stars, molecules, or cakes. It governs software development too.</p><blockquote>Every software project moves along an irreversible, forward-progressing timeline. Understanding this “one-way street” is the secret to moving from chaotic firefighting to a state of absolute flow in software project management.</blockquote><p>Here is how the arrow of time shapes the code we write, the schedules we build, and the teams we lead.</p><h3>1. The Cumulative Cake: Code and Technical Debt</h3><p>Software building is inherently cumulative. Once a line of code is written, reviewed, and integrated into the main branch, the entire state of the system changes permanently.</p><p>Just like our un-baked cake, you cannot simply “rewind” a project without paying a steep price. This is where <strong>Technical Debt</strong> comes from. When a team chooses a quick, messy fix today over a clean, scalable solution, they are borrowing from the future.</p><p>As the arrow of time marches forward, that quick fix becomes buried under layers of new features. Weeks later, changing that fundamental flaw requires tearing down half the house. The state changes are cumulative; past decisions cannot be perfectly undone.</p><h3>2. Mapping the Flow: CPM, PERT, and Directed Arrows</h3><p>Because we cannot travel backward, project managers must explicitly map out how time will spend our resources. In traditional project management, this is done using visual modeling systems like the <strong>Critical Path Method (CPM)</strong> and <strong>PERT charts</strong>.</p><p>Using <strong>Activity-on-Node (AON)</strong> diagrams, deliverables are represented as nodes, and the arrows connecting them literally represent the flow of time and work dependencies.</p><p>These arrows indicate strict sequential dependency: you cannot test a feature that hasn’t been coded, and you cannot code a feature that hasn’t been defined. The “critical path” is the longest sequence of these irreversible steps, dictating the shortest possible time to bring your product to life.</p><h3>3. Piercing the Fog: The Cone of Uncertainty</h3><p>At the exact moment a project starts, the arrow of time points toward a massive cloud of mystery. This phenomenon is perfectly captured by <strong>The Cone of Uncertainty</strong>.</p><p>On Day 1, your knowledge about the software is at its absolute lowest, meaning your estimates are highly volatile. You don’t know what hidden bugs await, how third-party APIs will behave, or if the requirements will shift.</p><p>However, as you travel forward along the timeline, the fog begins to clear. Requirements are clarified, roadblocks are conquered, and your variance narrows.</p><blockquote>The arrow of time trades mystery for data — the further you go, the more accurate your roadmap becomes.</blockquote><h3>4. Bending the Arrow: Reversibility and Agile Adjustments</h3><p>If the arrow of time is completely rigid, every software project would be doomed to crash into unexpected obstacles. This is exactly why traditional “Waterfall” planning often fails in volatile environments. Enter <strong>Agile</strong>.</p><p>While Agile cannot reverse the calendar, it elegantly acknowledges that software can pivot. Agile takes the grand, daunting “arrow of time” and breaks it down into short, repeating cycles called <strong>Sprints</strong>.</p><p>Instead of waiting a year to see if a product works, a sprint allows a team to build, test, and review a micro-product in two weeks. If the team discovers a feature isn’t working, they don’t have to start the whole project over. They simply adjust their heading and course-correct in the very next sprint. Agile doesn’t reverse time; it builds a steering wheel for it.</p><h3>5. The One-Way Conveyor Belt: DevOps and Immutability</h3><p>In modern DevOps, the arrow of time is treated as a highly automated, strict, one-way conveyor belt. Through <strong>Continuous Integration and Continuous Deployment (CI/CD)</strong>, software moves forward through a strict temporal sequence of environments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Bt_x-3uLUULBnMYtCVz5g.png" /></figure><p>Modern infrastructure relies on the concept of <em>immutability</em>. You don’t log into a live production server and manually patch code (which creates chaos and breaks the timeline). Instead, you create a new, immutable build at the beginning of the pipeline and push it forward through automation. If a bug hits production, you don’t “fix it in place” — you build a new fix at the start of the line and deploy it forward.</p><h3>Finding the Flow State</h3><p>The most successful software teams don’t fight the arrow of time; they dance with it.</p><p>They accept that <strong>technical debt</strong> must be managed before it solidifies. They use <strong>CPM</strong> to respect real-world dependencies. They embrace the <strong>Cone of Uncertainty</strong> by keeping early estimates flexible. They utilize <strong>Agile</strong> to pivot quickly, and they trust <strong>CI/CD</strong> pipelines to push code safely into the future.</p><p>Time only moves forward. By aligning your development lifecycle with this universal truth, you stop fighting gravity and start riding the wave of momentum.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0969e51dfe41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/the-arrow-of-time-vibe-coding-era-mental-model-0969e51dfe41">The Arrow of Time: Vibe Coding Era Mental Model</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Won’t Replace Decision Makers! A Decision Maker With Three AIs Might!]]></title>
            <link>https://medium.com/amanerp/ai-wont-replace-decision-makers-a-decision-maker-with-three-ais-might-c2200a321047?source=rss-77263458e646------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2200a321047</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Niraj Kumar]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 11:00:52 GMT</pubDate>
            <atom:updated>2026-06-03T04:38:19.416Z</atom:updated>
            <content:encoded><![CDATA[<p>How 19 hidden bugs and a near-miss data breach redefined my leadership strategy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFb_fCmhhl4E0k-0rA2JmA.png" /><figcaption>The Human Orchestrator — three perspectives converging into clarity</figcaption></figure><p>I asked three AI models the same question: which identity provider should we use for our multi-tenant financial ERP?</p><p>One gave a compelling recommendation that would have leaked customer financial data across tenants. One delivered fifty cited URLs but refused to make a call. One made a decisive choice but couldn’t let go of its first answer even when shown better alternatives.</p><p>No single AI was safe to trust. Together, they saved me from a compliance disaster.</p><p>That experience changes how I make every important decision. Not because AI isn’t smart enough, but because every AI is blind in a way the others aren’t.</p><h3>Everyone Is Asking the Wrong Question</h3><p>The headlines say AI will replace 80% of Software Engineers. But the fear isn’t limited to people who write code.</p><p>Product Managers wonder if AI will generate better roadmaps than they can. CIO/CTOs or “Head of Engineering” wonder if they need half the engineering team when Claude/ChatGPT or other coding models can ship features autonomously. Directors see AI analysing data faster than their analysts ever could. Researchers watch AI synthesize papers in minutes instead of months.</p><p>I am a CTO building a financial ERP with AI assistance. My stack includes four AI providers — Claude as my primary engineering partner, with Gemini, ChatGPT, and Grok as reviewers and advisors (AI Council). The specific model versions vary across the stories below (this project spans months), but the pattern holds regardless of version. Every sprint, I watch these models do things that would have taken a full team months if not weeks. The question creeps in for all of us: <strong>What’s left for the human?</strong></p><p>After 8 sprints, 133 delivered items, and hundreds of hours of multi-model work, here is my answer:</p><blockquote>The danger isn’t AI replacing you. The danger is trusting just one.</blockquote><p>Every AI model has blind spots baked into its training (the way it’s been trained, parameters, strategies, algorithms, data, and so on…). It analyzes through one lens. When that lens has a scratch, you don’t get a warning <em>(You wouldn’t even notice unless you have domain knowledge and you dig deep)</em>. You get a confident recommendation that leads you off a cliff. <em>(Sycophancy Much)</em></p><p>The leader who orchestrates multiple AI perspectives doesn’t just work faster. They see things that no single intelligence <em>(Human or Artificial)</em> can see alone.</p><p>That changes the game entirely.</p><p><em>(Now, there is a potential risk to humanity — single model. Remember something similar in The Matrix — Architect, Oracle, Frenchman, Keymaker, sentinels, and so on…)</em></p><h3>The Strategic Decision That Almost Went Wrong</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31wAqkGTQei41hFCs75D8Q.png" /><figcaption>Three incomplete lenses — each reveals something the others miss</figcaption></figure><p>This is the story that should concern every CTO, CIO, CEO, PM, Director, and other decision makers.</p><p>I needed to choose a self-hosted identity provider for our Cloud ERP <em>(</em><a href="https://medium.com/@nirajkvinit/brittle-zitadel-why-self-hosting-feels-brittle-and-what-to-do-next-70566cfc43a1"><em>because my beloved Zitadel tanked</em></a><em>)</em> — a decision that would shape the security architecture, compliance posture, and customer trust for years to come. I gave the same research to four frontier models: (Claude, Gemini, ChatGPT, and Grok).</p><p><strong>Gemini</strong> delivered the most engaging analysis I had read. It opened with psychological insight, framed the decision around my core motivation of control, and coined an elegant <strong>“Control Plane”</strong> architecture. It recommended building multi-tenancy on Authentik using Groups as a substitute for real Tenants.</p><p>The recommendation sounded brilliant. There was just one problem: zero data isolation. In plain terms: All customers’ financial data in one pool, separated only by software rules. One configuration error <em>(which AI makes frequently and spectacularly),</em> and Customer A sees Customer B’s invoices.</p><p>For a system handling financial documents, this wasn’t a clever workaround. It was a compliance disaster, a liability wrapped in beautiful prose. <em>(Gemini does write beautifully compared to other models.)</em></p><p><strong>ChatGPT</strong> delivered the most thorough research — fifty cited documentation URLs, specific version references, a framework for “Upgrade Calm Gates” that was operationally brilliant. But, after eight rounds of analysis, the bottom line was: “don’t choose yet, run a three-track evaluation over 4–6 weeks.” <em>(My Ex PM Ravi from Hyderabad would have lost his mind and made us work like slaves).</em></p><p>Responsible? Sure. Useful when you need a direction? No.</p><p><strong>Claude</strong> made a decisive recommendation with clear eliminations. But even after seeing compelling alternatives from the other two, its conclusion didn’t budge. Conviction or confirmation bias? Hard to tell from the inside.</p><p><strong>Grok</strong> — Well, I am withholding its analysis <em>(It was brilliant)</em> as my silent protest to Grok for not allowing subscription-bound CLI access (like Gemini, Claude, or ChatGPT do.</p><p><strong>Cross-referencing all three</strong> is where the magic happened. It flagged Gemini’s dangerous isolation gap. It surfaced ChatGPT’s operational insights that the primary recommendation was missing. It revealed Claude’s anchoring bling spot. None of these outcomes would have emerged from consulting any single model.</p><p>A PM relying on one AI’s recommendation here would have introduced tenant-isolation risk that failed my compliance bar.</p><p>A CTO trusting a single model’s analysis would have committed to an identity platform with no real data boundaries between customers. The multi-model approach didn’t just find the right answer — it mapped the entire decision space — including the landmines.</p><h3>When “Approved” Means Nothing</h3><p>The pattern extends beyond strategic decisions. When I built the observability system, I sent the code (PR) to the AI Council for review.</p><p>Gemini said: “APPROVED! Ready to merge.” It praised the architecture, the patterns, and the design.</p><p>Same day, same code, ChatGPT found 13 bugs. Three HIGH severity, Middleware created but never wired into the application. Alert rules referencing metrics that didn’t exist. Components that looked complete in code review but would never function at runtime. <em>(AI knows how to exit early and game the testing harness. Without my strict Headmaster approach to Precision Engineering, these issues would have been ignored.)</em></p><p>Every finding was confirmed.</p><p><strong>“Architecture review and implementation review are different cognitive tasks.”</strong> Gemini evaluated patterns, which were genuinely good. ChatGPT evaluated whether those patterns actually worked at runtime — and they didn’t. One model’s “approved” was another model’s “nothing works.”</p><p>This has implications far beyond code. How many strategic recommendations from AI look architecturally sound but fall apart in execution? How many product analyses reference metrics that don’t actually exist in your data? How many “approved” decisions are just well-structured failures waiting to happen?</p><p>The uncomfortable truth: <strong>“Well reasoned” does not mean “correct.” </strong>And a single AI has no way to know the difference.</p><h3>The 6 Bugs That Should Scare Every Leader</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMshXumAci1bzX-wWsEG2A.png" /><figcaption>Hidden fault lines beneath a flawless surface</figcaption></figure><p>If the strategic decision story made me cautious, the authorization story made me scared.</p><p>Three AI models independently reviewed the multi-tenant authorization code. They found 6 CRITICAL security bugs. All six had passed unit tests. All six had passed acceptance testing. All six were invisible to internal review.</p><p>The worst: 42 data access points were using the wrong tenant context. Authorization checked the correct tenant. But when users queried data, it came from the wrong one. In production, this leaks one customer’s financial records to another.</p><p>Every test passed <em>(AI gamed the tests to quit early to go on a date)</em>. Every demo worked. In Production, it would have been a data breach.</p><p>ChatGPT caught the tenant context mismatch. Grok flagged the drift between test configurations and production. Gemini identified a pattern where a missing security client silently bypassed all authorization.</p><p>No single model found all six in AmanERP. Together, they mapped the entire vulnerability surface.</p><p>For any leader responsible for customer data, regulatory compliance, or security posture: <strong>a single AI review is a single point of failure. </strong>And in a world where AI is generating more of the code, the stakes of that failure are only growing.</p><h3>Each AI Fails Predictably — and Differently</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BT7xJRKxmPWS1ChMKv__iA.png" /><figcaption>Three distinct failure modes — confident but ungrounded, thorough but paralyzed, decisive but anchored</figcaption></figure><p>After months of multi-model work on various projects, I can tell you exactly how each model fails:</p><p><strong>Gemini fails by being too confident without evidence.</strong> It builds narratives that feel right but aren’t grounded in primary sources. It understands people better than systems. Dangerous for technical decisions where the wrong answer sounds compelling. Excellent for understanding stakeholder psychology and framing.</p><p><strong>GPT fails by refusing to commit.</strong> Its thoroughness becomes analysis paralysis when you need a direction. But its research depth, source citations, and operational insights <em>(ohh my my…) </em>are often the most practically valuable details in the room.</p><p><strong>Claude fails by anchoring to its initial position.</strong> Strong conviction that borders on confirmation bias. But its willingness to eliminate options and make clear calls is essential when ChatGPT won’t and Gemini shouldn’t/</p><p><strong>Grok fails by ******* *****. (</strong><em>Silent Protest against not providing subscription-bound CLI access).</em></p><p>Here is the key insight: <strong>these failure modes overlap far less than you would expect. </strong>One model’s blind spot is consistently another’s strength. That’s not an accident — it’s a fundamental property of systems trained on different data with different architectures.</p><p>This pattern applies to any AI-assisted decision. Product strategy. Technology selection. Risk assessment. Hiring frameworks. Competitive analysis. Whatever a leader uses AI to inform a decision, the same principles hold: a single perspective is a liability.</p><p><em>A postscript on predictability: I sent a draft of this very article to my AI Council for feedback. Gemini called it “diamond quality” and focused entirely on engagement psychology — emoji breakers, punchier phrasing, debate-triggering CTAs. Zero challenges to any substantive claim. ChatGPT demanded methodology sections, scoped language on every assertion, and a revision checklist — thorough to the point of wanting to turn a Medium article into a dry whitepaper. Each reviewed exactly the way the paragraphs above predict. Only the cross-reference caught what each missed. The pattern really is that consistent.</em></p><h3>What the Numbers Actually Show</h3><p>Here is what multi-model work produced over 8 sprints:</p><ul><li><strong>133 items delivered</strong> across 7 consecutive 100% committed sprints</li><li><strong>19+ hidden defects caught</strong> that were invisible to any single AI</li><li><strong>1 dangerous strategic recommendation</strong> caught and rejected through cross-referencing</li><li><strong>3 postmortems</strong> that all concluded: “multiple perspectives found more than any single perspective alone could have.”</li></ul><p>The person who orchestrates these perspectives isn’t being replaced. They are operating at a level that was impossible before.</p><p>A PM who runs three AIs against a product decision isn’t outsourcing judgment. They are stress testing it against genuinely different analytical frameworks — the way a good board of advisors works. Except these advisors have read every technical document, every market report, and every competitor’s changelog.</p><p>A CTO who cross-references three models on an architecture decision catches the compliance liability that any single model would miss. A researcher who synthesizes three AI analyses of a dataset finds patterns that no individual analysis reveals.</p><p>This is the real 10x multiplier. Not faster coding, but Better decisions.</p><h3>Why Most “Multi-AI” Approaches Fail</h3><p>There is a critical nuance that most people get wrong. They use the same model multiple times with different personas and prompts — one instance pretending to be a “security expert”, and another pretending to be an “architect.” This sounds clever, but it’s not.</p><p>All those “experts” share the same training data, the same biases, and the same blind spots. Giving ChatGPT a “security expert” persona doesn’t teach it vulnerability patterns it wasn’t trained on.</p><p>Real diversity comes from genuinely different model architectures and training data. The models disagree because they literally process information differently, not because they are role-playing.</p><p>I had published the full architecture, scripts, and implementation details (with the experiments containing locally downloaded models on Ollama) in the article: “I Built an AI Advisory Council for Code Review…”</p><h3>When You Don’t Need Three AIs</h3><p>To be clear: you don’t need three models to fix a typo or debug a straightforward error. Single-model review is fine for low-risk, reversible decisions. The advisor council earns its keep on irreversible choices — (Security Architecture, Vendor Selection, Compliance Critical code, Strategic direction) — where one wrong call compounds. And even multiple models can share blind spots when they are trained on similar public documentation. For truly high-stakes domains, multi-model AI review supplements but doesn’t replace human expert review.</p><h3>The Leader of Tomorrow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yStT_6oP_S54ZKfIok1Yfw.png" /><figcaption>The Orchestrator — multiple perspectives converging into confident action</figcaption></figure><p>Nobody asks whether spreadsheets replaced CFOs. They changed what CFOs could analyze. The CFO who refused spreadsheets didn’t prove a point about financial acumen — they just analyzed slower, with less data, until they became irrelevant and were replaced.</p><p>AI is the spreadsheet of this generation. But unlike a spreadsheet, AI models have opinions, biases, and blind spots. The skill isn’t in using one — it is in knowing which three to consult <em>(and how)</em>, when they disagree, and what that disagreement tells you about the decision you are actually facing.</p><p>The right question isn’t whether AI will replace PMs, CTOs, directors, or engineers. It’s: <strong>what kind of leader do you want to be?</strong></p><p>The one who asks a single AI and trusts the answer? Or the one who orchestrates multiple perspectives, catches the failures that every individual intelligence would miss, and decides with a confidence that comes from genuine diversity of analysis?</p><p>Next time you face a hard decision, don’t just ask your favourite AI. Ask all three. The disagreement is where the insight lives.</p><p>AI isn’t coming for your job. It’s offering you a superpower. The only question is whether you will pick it up.</p><p><strong><em>About the author:</em></strong><em> Niraj Kumar is a CTO building an AI-native Cloud ERP. He writes about multi-model AI systems, AI-assisted decision-making, and the processes that enable product teams to actually ship. Currently exploring how genuine model diversity beats same-model, different-prompt approaches for strategic and technical decisions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2200a321047" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amanerp/ai-wont-replace-decision-makers-a-decision-maker-with-three-ais-might-c2200a321047">AI Won’t Replace Decision Makers! A Decision Maker With Three AIs Might!</a> was originally published in <a href="https://medium.com/amanerp">AmanERP</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>