Archive

1422 posts · Page 2 of 119. ← Blog

Pratik Dhanave · ·6 min read

Agentic Software Engineering in Go: Software Factory Orchestration

Designing always-on, self-sustaining Orchestrator-Worker-Validator systems

The software factory triad in Go: an Orchestrator decomposing work, a Worker pool executing it, and a Validator gating everything — with the orchestration lifecycle, task types, configuration, recovery and durability, metrics, and MCP integration. Ad-hoc agent calls become a system that runs while you sleep.

Pratik Dhanave · ·4 min read

Entitlements — Decoupling What Customers Can Do from What They Pay

Scattered through most SaaS codebases is the same bug factory: `if plan == "pro"` checks guarding features. They work until the first pricing change, when "pro" splits into three plans, grandfathered customers keep old capabilities, sales grants an exception, and a trial needs temporary access — and suddenly product code is re-implementing billing logic badly. Entitlements are the missing layer: a dedicated system answering "may this customer do X?" so that product code never asks about plans at all.

Entitlements decouple what customers can do from what they pay: features (boolean, limit, quota), grants with sources and validity, and resolution behind one fast cached check — with plans demoted to versioned bundles. Pricing re-packages freely without product deploys, and exceptions become auditable.

Pratik Dhanave · ·4 min read

Specs and SDKs — Making the Contract Machine-Readable and the Clients Generated

An API that exists as code, a spec document, hand-written SDKs in six languages, and documentation pages is an API that exists in four slowly diverging copies. The evolution-era answer is to pick one source of truth — the machine-readable spec — and generate or verify everything else from it, so a change made once propagates everywhere or fails loudly. This post is the spec-first pipeline: what it takes, what it buys, and where generated SDKs still need human hands.

One machine-readable source of truth: complete specs, bidirectional conformance tests, dated snapshots per version, and spec-diff breaking-change detection as the evolution linter. Generate the mechanical 80% of every SDK with tolerant-reader behaviors built in; humans keep idiom and the fenced hand-written islands.

Pratik Dhanave · ·4 min read

Model Evolution I: Learning Without Gold Answers

The deepest locus of self-evolution is the weights — and the interesting frontier there is not supervised fine-tuning on human labels but the family of methods where the model improves from signals it generates or uncovers itself: pseudo-labels from its own consensus, rewards from self-play, curricula it proposes to itself. This post organizes that family by one question — where does the training signal come from when no gold answer exists — and traces the shared failure mode every branch inherits: a model learning from itself can amplify its knowledge, and can just as efficiently amplify its errors.

Label-free weight evolution sorted by signal source: consensus as pseudo-truth (sharpens knowledge, launders bias), self-play as curriculum (risks private equilibria), verifier reward (internalizes verifier exploits), environment signal (honest, slow, governance-heavy). One shared circularity — training on model-shaped data — and the anchor discipline that contains it.

Pratik Dhanave · ·5 min read

Learning from Experience — Procedural Memory and Agents That Get Better

Everything before this post helps an agent remember; this one asks whether it can improve. The difference is procedural: an agent that recalls last week's failed deploy has memory, while an agent that deploys differently because of it has learned. Procedural learning is the highest-leverage loop in agent engineering — every improvement compounds across all future tasks — and the most dangerous, for exactly the same reason. The craft is building the loop with brakes.

Learning without weight changes lands in artifacts: rules, playbooks, worked examples, failure memory. The loop breaks at misattribution, overgeneralization, rot, and conflict — and procedural writes deserve deploy-grade brakes: proposal review, provenance, blast-radius scoping, regression evals. Start with failure memory and worked examples; they compound at a fraction of the risk.

Pratik Dhanave · ·5 min read

Preparing Security Teams for AI Adoption

Security teams meet enterprise AI twice: first as the thing employees are already using without asking, then as the thing the business formally wants to deploy. A security function prepared for both becomes the reason AI adoption is safe and fast; an unprepared one becomes either the department of no — which drives usage underground — or a rubber stamp that discovers the risks in an incident report. This post is the adoption program's view of AI security: what's genuinely new, and how to get ahead of it.

Security meets AI twice: as shadow AI employees already use, then as the systems the business wants to deploy. Treat shadow AI as demand signal, learn the genuinely new surface — prompts as exfiltration, injection via content, agents as non-human identities, fluent wrongness — and build the paved road with risk-tiered review so the safe path is the fast path.

Pratik Dhanave · ·5 min read

Fractional Forward Deployed Engineer vs. Hiring In-House

If your AI initiative needs serious engineering help, you have three honest options: hire a full-time AI engineer, bring in a traditional consultancy, or embed a fractional forward deployed engineer. Each is right for a different situation, and I'll try to be straight about which — including when hiring beats engaging someone like me.

Three honest options when your AI initiative needs help: hire in-house (permanence, but months to productive in a thin market), a consultancy (a deliverable whose knowledge walks out), or a fractional forward deployed engineer (the experience gap filled now, with transfer built in). Which fits when — including when you should just hire.

Pratik Dhanave · ·6 min read

Agentic Software Engineering in Go: Developer Workflow

From hand work to head work: the daily developer loop

The daily developer loop on the agentic factory: spec authoring patterns and templates, prompt patterns that work, the ASF CLI workflow, and the developer toolbox — the practical shift from typing code to specifying, reviewing, and directing it.

Pratik Dhanave · ·4 min read

Invoicing and Collection — From State to Document to Money

The invoice is where billing's abstractions become a legal document and an attempted charge. Everything upstream — price versions, metered totals, prorations — converges into line items a human must be able to read and a regulator must be able to audit; then the system has to actually collect, which means confronting the fact that a meaningful fraction of payments fail. Invoicing is document engineering; collection is failure engineering; revenue requires both.

The invoice is an immutable derivation — re-derivable from versioned inputs, frozen at finalization, corrected only by new documents. Collection is failure engineering: dunning that distinguishes hard from soft declines, schedules retries deliberately, and treats the payment-update email as part of the machinery.

Pratik Dhanave · ·4 min read

Compatibility Layers — Serving Twenty Versions from One Implementation

Promising account-pinned dated versions is easy; the hard part is the server that must honor all of them. The naive answers — fork the codebase per version, or thread `if version < X` through every handler — both collapse within a year. The architecture that scales is a transform pipeline: one current implementation at the core, and a chain of small, testable version-gates that translate requests forward and responses backward. This post builds it.

The transform chain: a latest-only core wrapped in per-version gates — small, pure, fixture-tested pairs of request-forward and response-backward transforms composed in date order. Know the hard species (semantic conversion, information asymmetry, behavioral wraps, fan-in/out) and retire versions by deleting gates.

Pratik Dhanave · ·4 min read

Harness Evolution: Why Production Self-Improvement Lives in the Scaffolding

Between the artifact loop's external modesty and the weight loop's internal stakes sits the locus where nearly all deployed self-improvement actually happens: the harness. Prompts that rewrite themselves from failure analyses, memories that accumulate, skills that get written once and reused forever, routing that restructures — the model never changes, and the agent gets better every week. This post places harness evolution on the taxonomy and explains the structural reasons it dominates practice — then hands the mechanisms to the two series on this blog that cover them in depth.

Harness evolution dominates production for four structural reasons — text-native and reviewable, file-write cheap, scoped blast radius, weak-feedback tolerant — and splits into context, capability, and structure sublayers mapped onto this blog's existing deep dives. Its hard ceiling: it elicits frozen-model ability, never exceeds it.

Pratik Dhanave · ·5 min read

Memory as Tools — Paging, Files, and Agents That Manage Their Own Minds

Everything so far treated memory as plumbing the harness operates around a passive model. The most interesting turn in recent agent design flips that: give the model tools to read, write, and reorganize its own memory, and let it decide what's worth keeping. The operating-system analogy arrived early — a small, fast context window backed by a large, slow store, with something paging between them — and it keeps paying dividends. This post covers agentic memory: the OS view, file-based memory, and consolidation.

The agentic turn: context as RAM, store as disk, the model participating in paging policy — plus file-based memory as the transparent, diff-reviewable baseline, and consolidation as the background process that extracts facts, distills lessons, and revises standing memory. The consolidator is the highest-privilege writer in the system; review and evaluate it like one.