Archive
1422 posts · Page 3 of 119. ← Blog
Every grounded AI system is a mirror held up to an organization's documentation — and most organizations don't like what they see. The moment you connect AI to your own knowledge, documentation stops being a chore that trails the real work and becomes operational infrastructure: the direct determinant of whether your AI answers are right. Few stages of adoption change day-to-day habits as much as this one, and few are as underestimated.
Grounded AI makes documentation a runtime dependency: the system's quality ceiling is the corpus's quality, and a stale document becomes a confident wrong answer with a citation. Documentation written to be retrieved, run as a living loop — AI's unanswered questions rank the backlog, AI drafts, humans verify — scoped per use case and compounding across them.
Most stalled AI pilots aren't failing for the reason everyone in the room thinks. The model is usually fine. What's missing is almost always one of five unglamorous things — and knowing which one changes whether the pilot ships in six weeks or dies in six months of polite status meetings. Here's the diagnostic I run when a team brings me a pilot that won't move.
Most stalled AI pilots aren't failing for the reason everyone thinks — the model is usually fine. The five causes I actually find: no written bar for done, proof on data the real world doesn't send, under-scoped integration, an unretired stakeholder fear, and no owner. The diagnostic, and what unsticking takes.
Integrating agent workflows into team software development lifecycles
The team operating model: the shared context repository is the repo itself, ADRs and specs go through PR review because they program the agents, verification runs at the git and CI chokepoints, and the factory's real review task drafts findings for human reviewers. Agents become part of the software development lifecycle instead of a private productivity hack.
The series opened with a trade: diffusion bought quality and stability by paying in steps. Every post since has haggled the price down — better solvers, smaller spaces, straighter paths. This closing post covers the two endgames: collapsing the walk to a single stride (distillation and consistency models), and spending the budget on the hardest canvas there is — video, where the pixel count explodes but the architecture barely changes. It ends with the mental model the whole series compresses into.
The step bill falls to one by learning destinations instead of following paths: progressive distillation halves step counts, adversarial losses restore sharpness, consistency models make point-to-endpoint the objective itself. Then video — the same stack over spacetime patches, where temporal coherence is just attention across time. Closes the series with the factored mental model.
A subscription looks like a row with a plan and a date. It behaves like a state machine with a dozen states, transitions triggered by humans, payments, and the calendar, and money consequences on nearly every edge. Teams that model the lifecycle explicitly handle upgrades, trials, and cancellations as transitions with rules; teams that don't accumulate booleans — `is_trial`, `is_paused`, `cancel_at_period_end` — until no one can say what state a customer is actually in.
A subscription is a state machine — trialing, active, past-due, paused, canceled-now vs at-period-end — where every edge answers four questions: trigger, money, entitlements, clock. Proration arithmetic with encoded policies, and scheduled transitions as first-class records so future state is queryable.
The last mile of a fraud system is operational: score inside the authorization window without becoming the payment path's weakest dependency, explain decisions to customers, auditors, and your own reviewers, and answer the question every budget cycle asks — how much fraud did all this actually prevent, given that prevented fraud is precisely the thing that didn't happen? This closing post is the production discipline that makes the whole stack deployable, defensible, and fundable.
Production risk: the money-path budget (precomputed features, staged degradation, decisions stamped with full configuration), explainability as three products (reviewers, customers and regulators, governance with disparity monitoring), and prevention measured against counterfactuals — holdout slices, an estimated ledger, loss-rate SLOs. Closes the series.
Where does the version live — in the path, a header, a date? The debate consumes design reviews and misses the real decision underneath: what a version even is (the whole API? a resource? a behavior?), who chooses it (the request? the account?), and how many will you honestly support? This post surveys the schemes with their true trade-offs, including the account-pinned date scheme that the most evolution-serious API companies converged on — and why.
Path, header, and per-resource schemes mostly relocate the number; the real axes are granularity, default policy, and lifetime. The convergent answer for continuously-evolving APIs: dated versions pinned per account — every breaking change ships independently, integrations keep their era's semantics, the provider pays in transforms.
At sufficient scale, CI stops being a pipeline and becomes a distributed system: tens of thousands of test targets, hundreds of concurrent changes, a compute bill with its own line item, and a main branch whose greenness is contested by every merge. The architecture that holds it together rests on three load-bearing pieces — content-addressed caching so nothing provably-unchanged ever reruns, sharding so wall-clock stays flat as suites grow, and merge queues so main stays green under concurrent landing. This closing post assembles them.
Monorepo CI's three load-bearing pieces: content-addressed caching (hermetic inputs, determinism — flake work is cache-enablement), duration-balanced sharding engineered against the slowest-shard tail, and merge queues testing each change against main-plus-queue. Run as a product with SLOs. Closes the series.
Artifact evolution's track record is strangely lumpy: superhuman results on matrix-multiply schedules and scheduling heuristics, respectable results on general code optimization, and little to show on "write me a better product strategy." The lumpiness isn't mysterious — it traces exactly one variable: how good a verifier the domain affords. This post organizes the application domains along that spectrum, from exact checkers to vibes, and reads off where the loop is trustworthy, where it needs guardrails, and where it quietly becomes fiction.
Artifact evolution's lumpy track record traces one variable: verifier strength. The spectrum — exact checkers, measured execution, test suites, proxy scores, LLM judges — with each tier's signature failure, the pressure-budget rule, and the highest-leverage move: reshaping problems toward checkability.
Embeddings are a marvel of forgiving representation: throw anything in, get approximate recall out. But some of what an agent must remember isn't approximate — who reports to whom, which service depends on which, what the user decided and when they reversed it. For facts with structure, similarity search is the wrong instrument, and the fix is as old as databases: give the facts a shape. This post is about entity-centric and graph-shaped memory, and when the extra machinery pays.
Similarity search breaks on aggregation, multi-hop, identity, and what-is-true-now. The fix is shape: entity-centric memory with resolved, superseding claims as the 80% answer; knowledge-graph edges (owns, depends_on, supersedes) where relations are the content; and a hybrid end state where the structured layer answers precisely and the episodic store keeps the receipts.
The pilot worked. Now comes the stage where most enterprise AI quietly dies: turning one team's success into an organizational capability. Scaling is not "run the pilot bigger" — it is a different kind of work with different owners, and it stands on three legs: a platform so the next use case doesn't start from zero, governance so scale doesn't multiply risk, and enablement so adoption doesn't depend on the one team that built the first win.
Scaling is where most enterprise AI quietly dies — it is a different problem from piloting, and it stands on three legs built while delivering: a platform proven by use case #3 shipping faster than #1, governance written down before scale multiplies risk, and enablement that outlives the first team. Scale by delivering, and watch time-to-ship, not platform size.
Prompt injection defense, sandbox execution, and RBAC
The real security layers in Go, with live demo output: input validation (honestly framed as a tripwire, not a wall), deny-by-default command allowlists, Docker sandboxing with no network, RBAC where the validator can't write and only the orchestrator spawns agents, and the web/MCP guard against DNS rebinding and CSRF. Agents are untrusted-input processors with execution privileges; this post treats them that way.