Applied AI
19 notes
Agent Architecture: Should the Program or the Model Decide the Next Step
The difference between Workflow, Autonomous, and Hybrid is not the framework but who decides the next step. This article covers when each pattern fits, how each one fails, and a selection method that starts from task conditions.
Making Agent Output Verifiable: Specs, Context, and Checks
Three words separate one person writing code with AI from enterprise-grade delivery: reliable, efficient, sustainable. This piece covers spec-driven development, context engineering, verifiers, and Skill assets, and how the engineering center of gravity has moved from Prompt to Harness.
LLM Runtime: Which Layer Should Own Rate Limits, Retries, and Routing
Once the second business, the second provider, and the second tenant show up, calling the SDK directly is no longer enough. This piece covers the responsibility boundary of an LLM Runtime, multi-model routing, reliability under high concurrency, and how to choose an observability approach.
Where the Cost of a Model Call Comes From, and Where It Can Go Wrong
Token, Context, Prefill, Decode, and caching determine an Agent’s cost and latency; hallucination and Prompt Injection determine the floor of its risk. Without understanding these, none of the later architectural trade-offs has a basis.
Five Questions to Answer Before Putting Agents into Production
Cost and risk, who holds control, how delivery is verified, which layer owns model calls, and how it is evaluated after launch: answer these in order before writing Agent code.
Local RAG Design: Store the Evidence First, Then Retrieve
How mt_rag separates replayable evidence, rebuildable query views, verified graph paths, and bounded generation—and why current source still wins.
Why a Code Hit Is Not Yet an Answer
Engineering retrieval has to bind results to a repository, a commit, and a symbol; a hit that is missing, stale, or from the wrong repository is only a locating lead.
Turning Retrieval Candidates into an Engineering Conclusion You Can Deliver
Retrieval finds the entry point and the original source confirms the fact; the final answer must keep verified, inferred, and unknown apart.
One Question, Three Sources: How Far Code, Jira, and Confluence Can Each Answer It
The hard part of cross-source retrieval is not finding more text; it is judging what the requirement, the design, and the current code can each prove.
When Local RAG Is Worth Calling, and When Reading the Source Is Faster
Am I missing a fact, or an entry point? That one question decides whether to retrieve at all.
How My AI Development Workflow Changed: From a Harness to Lightweight Prompts to Enterprise Agents
First a self-built Harness to make up for what models could not do, then a cut down to lightweight Prompts and four gates after Codex 5.6, then the same principles applied to enterprise Agents. What each step removed and kept.
Goal Routing: Deciding Permissions and Done Criteria by Request Type
Routing is not about labeling a request. It first determines which side effects this request authorizes and what evidence counts as done.
Loading Context on Demand: How It Works and What It Costs
Using evidence priority, rebuildable handles, and freshness fingerprints to control the material each round of reasoning actually needs to see.
The Stage Graph: Managing Task Stages with a Dependency Graph
Using a verifiable DAG to express node dependencies, execution authority, completion barriers, failure propagation, and recovery boundaries.
Multi-Agent Review: Splitting the Work, Isolating It, and Combining Results
Controlling multi-Agent collaboration with risk-driven selection, immutable execution plans, isolated context, completion barriers, and evidence-backed reports.
Why the LLM Controller Is Allowed at Most Two Retrieval Rounds
System Shadow starts from the original question; the LLM may rerank or request one supplementary retrieval, but it cannot override deterministic evidence checks or search without bound.
Why DocumentIR, Issue IR, and CodeIR Have to Be Split
Documents, tickets, and code have different structures; only with a typed IR in place first can you chunk correctly, build the graph, and keep traceable locations.
Four Safety Gates for Coding Agents: Which Actions Need Confirmation First
Let the Agent handle routine work on its own; production, persistent data, cost, and irreversible actions need a stated risk and explicit confirmation first.
The Overall Architecture of an AI Development Harness
A file-based control layer for an AI development workflow: how it records progress, recovers from interruptions, and limits write access.