<?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 Oscar Azofeifa Segura on Medium]]></title>
        <description><![CDATA[Stories by Oscar Azofeifa Segura on Medium]]></description>
        <link>https://medium.com/@oscar.azofeifa.segura?source=rss-791270758244------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2e0ySR-sxtVyaoSN.jpg</url>
            <title>Stories by Oscar Azofeifa Segura on Medium</title>
            <link>https://medium.com/@oscar.azofeifa.segura?source=rss-791270758244------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 19:30:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oscar.azofeifa.segura/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[Design Can’t Be Proven Right — Only Falsified]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/design-cant-be-proven-right-only-falsified-3e8f461f063f?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e8f461f063f</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 20:35:15 GMT</pubDate>
            <atom:updated>2026-07-28T20:38:51.824Z</atom:updated>
            <content:encoded><![CDATA[<h4>Abstraction layers, coding agents, and the new job of the human engineer</h4><p>It started with an innocent question during a late-afternoon architecture discussion: <em>how do you prove that an abstraction layer is right?</em></p><p>The uncomfortable short answer: <strong>you can’t</strong>. And almost everything that matters about software design follows from that impossibility — including, as I’ll argue, how to work with AI coding agents without letting them erode your architecture.</p><h3>An abstraction is a hypothesis</h3><p>Every abstraction layer is, at its core, a claim about the future: <em>”these variations don’t matter to the consumer.”</em> That claim has the same logical structure as a scientific theory, and the same epistemology Karl Popper formulated for science applies: a theory is never proven true — it can only be <strong>falsified</strong>. You can observe a thousand white swans without proving that all swans are white; a single black swan refutes the whole theory.</p><p>Applied to design: you never prove your interface is correct — you only accumulate evidence that each new use case hasn’t broken it yet. Every leak in the abstraction is a partial counterexample. As Joel Spolsky put it, “all non-trivial abstractions are leaky.” The question isn’t whether your abstraction has black swans; it’s how many, and how expensive it is to find them late.</p><p>This has a hard practical consequence: the verdict on an abstraction is rendered <strong>ex post</strong> — by future maintenance, with information that didn’t exist when you designed it. The only thing you control ex ante is <strong>making refutation cheap</strong>: accelerating the arrival of black swans while the cost of correcting course is still low.</p><h4>The four empirical tests</h4><p>There’s no proof, but there is evidence you can accumulate. Four tests separate a healthy abstraction from a decorative one:</p><p>1. <strong>The substitution test.</strong> Can you swap the implementation underneath (DynamoDB → Postgres, REST → gRPC) without touching consumers? The cheap version: write a second implementation, even a throwaway in-memory fake. If the fake is easy to write, the interface is honest.</p><p>2. <strong>The vocabulary test.</strong> Do consumers speak in the layer’s domain terms, or do implementation concepts leak through? If callers of your service need to know what a `sortKey` is, the abstraction doesn’t abstract.</p><p>3. <strong>The nth-consumer test.</strong> The first consumer always fits — the abstraction was designed for it. The third consumer is the one that exposes a badly drawn boundary: if it needs bypasses or “special mode” parameters, the cut was wrong.</p><p>4. <strong>The error test.</strong> When something fails underneath, does the exception the consumer sees make sense at <em>their</em> level of language? Bad abstractions betray themselves in their errors.</p><h3>Indirection is not abstraction</h3><p>One distinction carries the whole argument. <strong>Indirection</strong> is the mechanism: putting an intermediary between the thing that asks and the thing that does. A pointer, a function, an interface, an event bus — each adds a hop, and every hop has a cost: it’s something the reader must traverse to understand what actually happens. David Wheeler’s aphorism captures it: <em>”All problems in computer science can be solved by another level of indirection… except the problem of too many levels of indirection.”</em></p><p><strong>Abstraction</strong> is indirection <em>that buys something</em>: a simpler mental model on the other side of the hop. When you call `repo.save(feedback)` and genuinely don’t need to know what’s behind it, the indirection paid off — you think in “save feedback” instead of `TransactWriteItems`. But when you still need to know it’s DynamoDB anyway (because the error that bubbles up is a `ConditionalCheckFailedException`, because the item limit is 400KB), you paid for the hop without receiving the model. That’s indirection without abstraction: structural bureaucracy.</p><p>The quick test when you find a layer in a codebase: mentally delete it and wire the ends together directly. If nothing becomes harder to understand or to change, it was pure indirection.</p><h3>The classic principles under this lens</h3><p><strong>The Single Responsibility Principle</strong>, as usually stated (“one class, one responsibility”), is unfalsifiable: the granularity of “responsibility” is elastic enough to justify any design. A principle that can defend everything discriminates nothing. The salvageable version is Robert Martin’s final formulation: a module should answer to <strong>a single actor</strong> — one group of stakeholders. That version is operational, and it gets falsified ex post by your git history: if the same file keeps changing for unrelated reasons (<em>change coupling</em>), if two teams keep generating merge conflicts in it, the hypothesis is refuted. Read properly, SRP is Conway’s Law in miniature: a bet on the social structure of future change. And the uncomfortable corollary: separating things that change together is as bad as coupling things that change apart.</p><p><strong>Domain-Driven Design</strong> made an epistemological move more than a technical one: the heart of software isn’t the code but the <em>domain model</em> — a theory about how the business works, of which the code is the executable expression. This connects to Peter Naur’s <em>Programming as Theory Building</em> (1985): a program is the theory in the team’s heads; the text is only its shadow. <strong>Bounded contexts</strong> are the deepest part: there is no canonical, company-wide “Customer”; “Customer” for billing and “Customer” for shipping are different concepts that happen to share a name. Meaning is local to a context — Wittgenstein applied to architecture. And the <strong>ubiquitous language</strong> is the falsifiable part: every translation needed between the code’s vocabulary and the business’s is a black swan; every semantic bug (“the code says `total`, billing assumed tax-inclusive”) is the refutation, paid for in production.</p><p><strong>Hexagonal architecture</strong> (Ports &amp; Adapters) is the substitution test, mechanized. The domain defines ports in <em>its</em> vocabulary; adapters translate to technology — and the test suite is just another adapter, architecturally identical to the production one. Its rare virtue: the central claim (“you can test the business logic without infrastructure”) is verifiable ex ante and mechanically — even a linter can falsify it. Clean Architecture and Onion Architecture are the same theory with different branding: no observation distinguishes them, and two indistinguishable theories are the same theory. The single invariant all three share: dependencies point inward.</p><p>One economic warning hangs over all of them: each of these mechanisms is indirection placed as a bet. When it answers real forces (a complex domain, multiple actors, rotating technology), it pays. When applied as liturgy — `aggregates/` folders wrapping a three-field CRUD, five files for a 200-line Lambda — it’s confetti with Greek names.</p><h3>The real problem: enter the coding agent</h3><p>Here’s where the philosophy lands. With agentic development, the human’s job has shifted: guarding the quality and readability of generated code, preventing architectural drift, and ultimately signing off on the changes. And the symptoms repeat across every team I’ve talked to: the agent adds unrelated methods to existing helpers, picks unrepresentative names, and injects low-level dependencies into business-logic layers.</p><p>The diagnosis comes straight from Naur: <strong>the agent has the text, but not the theory.</strong> It reads the code — the shadow — without the mental model that justifies it. That’s why it produces code that works (the text is coherent) yet violates boundaries (the theory is invisible). The three symptoms are one failure: not knowing where the design’s joints are.</p><p>And there’s an economic aggravator: the “junior dev who violates boundaries one import at a time” now runs at a hundred times the speed. Architectural drift that used to take eighteen months takes weeks. Writing code became cheap; <strong>verification is the new bottleneck</strong>. The Popperian conclusion applies with more force than ever: falsification must be cheap <em>and automatic</em>, because the volume of hypotheses to falsify just exploded.</p><h3>The tiers of defense</h3><p>The practical answer organizes into tiers, ordered by reliability. The assignment rule: <strong>whatever is mechanizable goes in the linter; whatever is semantic but statable goes to an automated reviewer; whatever requires the full theory goes to the human.</strong></p><h4>Tier 1 — Executable constraints</h4><p>Agents are extraordinarily obedient to build errors and only probabilistically obedient to prose instructions. An agent iterates against a CI failure until it’s resolved; a rule in a document gets respected most of the time. So: everything that MUST hold becomes a fitness function.</p><pre>// dependency-cruiser<br>{ name: &#39;services-no-infra-sdk&#39;, severity: &#39;error&#39;,<br>from: { path: &#39;^src/services&#39; },<br>to: { path: &#39;@aws-sdk|axios&#39; } }</pre><p>Business logic doesn’t import SDKs; the agent tries, the build fails, the agent corrects itself — self-correction that costs zero human attention. Other rules in the same tier: ban the generic `utils.ts` (it’s an <em>attractor</em> for agents — when they don’t know where something goes, they dump it there), and mechanizable naming conventions in eslint.</p><h4>Tier 1.5 — Automated semantic falsification (LLM reviewer rules)</h4><p>Between the linter (which judges imports) and the human (who judges the theory) there was a gap: the semantic. “Methods added to a helper must share purpose with the existing ones” is not a rule a linter can evaluate — it requires reading meaning. LLM-based code reviewers with custom rules written in natural language fill exactly that gap: the expressiveness of human review with the automation of a linter, at the cost of being probabilistic.</p><p>The philosophical detail is delicious: the falsifier is also an LLM. A statistical author, a statistical judge, and disagreements escalate to the human. It’s less strange than it sounds — peer review was never deterministic either. The difference from the linter is the difference between mathematics and empirical science: the linter <em>proves</em> the violation; the LLM reviewer <em>accuses </em>with evidence, and the accusation can be wrong. That’s why calibration matters: blocking severity only for rules with low false-positive rates.</p><p>These rules also work as an <strong>incubator</strong>: the healthy lifecycle is a one-off correction in review → a reviewer rule (applies to the whole team) → if it turns out to be mechanizable, promotion to the linter.</p><h4>Tier 2 — Externalized theory</h4><p>If the problem is that the agent lacks the theory, write it down — but write the <em>theory</em>, not scattered rules. A four-line layer map answers the question the agent silently asks on every edit (“where does this go?”):</p><pre>handlers/ = imperative shell, orchestration only<br>services/ = business logic, never imports SDKs<br>helpers/ = pure functions, plain Error, no HTTP<br>clients/ = infrastructure adapters</pre><p>Two refinements: include the <em>why</em> next to the what (LLMs generalize from reasons better than from prohibitions), and explicit anti-examples (“do NOT add methods to an existing helper unless they share its purpose”). The honest limitation: steering files degrade as context grows — which is why everything promotable to Tier 1 should be promoted.</p><h4>Tier 3 — The codebase as few-shot</h4><p>Agents are imitators: they infer the local pattern and replicate it. Fifteen consistent services make the sixteenth follow the pattern; three coexisting patterns make the agent pick at random — or invent a fourth. It’s broken-windows theory with a multiplier: <strong>every violation that survives review becomes implicit training data for the next session.</strong> The concrete tactic: keep one canonical exemplar per module type and reference it from your steering docs (“for a new service, follow the pattern in X”) — cheaper and more effective than describing the pattern in prose.</p><h4>Tier 4 — The human process</h4><p>What remains for expert judgment, spent with surgical precision:</p><p>- <strong>Plan before code.</strong> Layer violations are visible in the plan (“I’ll add a method to `date-utils.ts` that calls the database”) at one-hundredth the reading cost of the diff. The plan is the cheapest falsification of all.</p><p>- <strong>Task specs that name the layers.</strong> Not “add sorting” but “the comparator goes in a new pure helper, the parameter in the service, no changes to the client.” Fence the territory ex ante.</p><p>- <strong>Asymmetric review.</strong> Tests already verify it works; the linter already verifies the mechanizable boundaries. The human reviews the one thing left uncovered: does this code tell the right story? Naming, placement, fidelity to the model.</p><p>- <strong>Small scope per session.</strong> Drift grows superlinearly with task size.</p><h3>A case study</h3><p>We ran this on a production TypeScript service my team owns (~2,250 tests, layered architecture: handlers/services/helpers/clients).</p><p><strong>The before state:</strong> layer boundaries lived only in human review. The cost was observable and recurring — HTTP imports in helpers caught in review, an OpenSearch client instantiated outside the try-catch in a fire-and-forget function (violating its documented contract), names fixed through iteration. Every boundary was defended late and by hand. The lessons existed — but as the reviewer’s memory, not as a property of the system.</p><p><strong>What we implemented:</strong> in one working session we executed the full correction-to-rule cycle:</p><p>- A `dependency-cruiser` config with three rules (`services-no-infra-sdk`, `handlers-no-aws-sdk`, `helpers-stay-pure`), wired into the lint step that runs on every build — review lessons promoted to Tier 1.</p><p>- The helper contract (pure functions, no network I/O, no HTTP classes) documented in the coding agent’s conventions — Tier 2.</p><p>- A layer-boundary map with explicit anti-patterns in the steering docs — Tier 2.</p><p><strong>Evidence the approach pays</strong> already existed: the fire-and-forget case was caught by an LLM reviewer (Tier 1.5) — a finding impossible for a linter, because it required understanding the function’s documented contract. And a controlled experiment with specifications: given explicit properties (invariants, boundaries, negative cases), the agent scored 16/16 on correctness probes versus 14/16 without them, while generating twice as many tests.</p><p><strong>The remaining gaps:</strong> custom reviewer rules for the semantic tier (helper cohesion, name fidelity), and declaring the canonical exemplar per module type.</p><h3>The thesis</h3><p>The whole journey — from Popper to coding agents — converges on one idea:</p><blockquote><strong>Design is never proven correct: it is submitted to reality. With agents writing the code, the human’s job is to make that confrontation cheap, automatic, and continuous.</strong></blockquote><p>The engineer who signs the change is no longer the author; they are the <strong>chief falsifier</strong>, and their leverage lies in building the system where most falsifications happen without them: Tier 1 rejects the mechanizable, Tier 1.5 accuses the semantic, Tiers 2 and 3 lower the rate of violation attempts, and Tier 4 reserves human judgment for the one thing no machine can yet judge — whether the code tells the right story.</p><p>The economics flipped sides: when writing code was expensive, over-engineering guardrails didn’t pay. Now that writing is cheap and verification is the bottleneck, every linter rule, every line of steering, and every canonical exemplar pays multiples. They are verification infrastructure — and verification is the new job.</p><p>Reality, meanwhile, keeps delivering its verdict through the same three channels it always has: the git log, the semantic bugs, and the forced translations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e8f461f063f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[El diseño no se demuestra: se falsifica]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/el-dise%C3%B1o-no-se-demuestra-se-falsifica-be394f939052?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/be394f939052</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 20:16:32 GMT</pubDate>
            <atom:updated>2026-07-28T20:29:42.916Z</atom:updated>
            <content:encoded><![CDATA[<p>Capas de abstracción, agentes de código y el nuevo trabajo del humano</p><h3>La pregunta que inició todo</h3><p>¿Cómo se puede <em>probar</em> que una capa de abstracción está bien?</p><p>La respuesta corta es incómoda: <strong>no se puede</strong>. Y de esa imposibilidad se deriva casi todo lo que importa sobre diseño de software — incluyendo, como veremos, cómo trabajar con agentes de código sin que degraden la arquitectura.</p><h3>Una abstracción es una hipótesis</h3><p>Toda capa de abstracción es, en el fondo, una afirmación sobre el futuro: <em>”estas variaciones no le importan al consumidor”</em>. Esa afirmación tiene la misma estructura lógica que una teoría científica, y le aplica la misma epistemología que Karl Popper formuló para la ciencia: una teoría nunca se demuestra verdadera, solo se <strong>falsifica</strong>. Puedes observar mil cisnes blancos y no habrás probado que todos los cisnes lo son; un solo cisne negro refuta la teoría completa.</p><p>Aplicado al diseño: nunca demuestras que tu interfaz es correcta — solo acumulas evidencia de que cada nuevo caso de uso no la rompió. Cada <em>leak</em> de la abstracción es un contraejemplo parcial. Como dijo Joel Spolsky, “todas las abstracciones no triviales son leaky”: la pregunta no es si tu abstracción tiene cisnes negros, sino cuántos y qué tan caro sale encontrarlos tarde.</p><p>Esto tiene una consecuencia práctica dura: el veredicto sobre una abstracción es <strong>ex post</strong> — lo dicta el mantenimiento futuro, con información que no existía al diseñarla. Lo único que sí controlas ex ante es <strong>que refutarla sea barato</strong>: acelerar la llegada de los cisnes negros mientras el costo de corregir es bajo.</p><h4>Las cuatro pruebas empíricas</h4><p>Aunque no hay demostración, hay evidencia acumulable. Cuatro pruebas separan una abstracción sana de una decorativa:</p><p>1. <strong>Prueba de sustitución.</strong> ¿Puedes cambiar la implementación de abajo (DynamoDB → Postgres, REST → gRPC) sin tocar a los consumidores? La versión barata: escribe un segundo implementador, aunque sea un fake in-memory. Si el fake es fácil de escribir, la interfaz es honesta.</p><p>2. <strong>Prueba del vocabulario.</strong> ¿Los consumidores hablan en términos del dominio de la capa, o se les filtran conceptos de implementación? Si quien usa tu servicio necesita saber qué es un `sortKey`, la abstracción no abstrae.</p><p>3. <strong>Prueba del n-ésimo consumidor.</strong> El primero siempre encaja — la abstracción se diseñó para él. El tercero es el que delata la frontera mal trazada: si necesita bypasses o parámetros “modo especial”, el corte estaba mal.</p><p>4. <strong>Prueba del error.</strong> Cuando algo falla debajo, ¿la excepción que ve el consumidor tiene sentido en <em>su</em> nivel de lenguaje? Las abstracciones malas se delatan en sus errores.</p><h3>Indirección no es abstracción</h3><p>Hay una distinción que sostiene todo el argumento. <strong>Indirección</strong> es el mecanismo: poner un intermediario entre quien pide algo y quien lo hace. Un puntero, una función, una interfaz, un event bus — cada uno agrega un salto, y cada salto tiene costo: es algo que el lector debe atravesar para entender qué pasa realmente. El dicho de David Wheeler lo captura: <em>”todos los problemas en computación se resuelven con otro nivel de indirección… excepto el problema de demasiados niveles de indirección.”</em></p><p><strong>Abstracción</strong> es indirección <em>que compra algo</em>: un modelo mental más simple del otro lado del salto. Cuando llamas a `repo.save(feedback)` y genuinamente no necesitas saber qué hay detrás, la indirección pagó — piensas en “guardar feedback” en vez de en `TransactWriteItems`. Pero cuando de todos modos necesitas saber que es DynamoDB (porque el error que sube es un `ConditionalCheckFailedException`, porque el límite es 400KB), pagaste el salto sin recibir el modelo. Eso es indirección sin abstracción: burocracia estructural.</p><p>La prueba rápida al encontrar una capa en un codebase: bórrala mentalmente y conecta los extremos directo. Si nada se vuelve más difícil de entender ni de cambiar, era indirección pura.</p><h3>Los principios clásicos bajo esta lente</h3><p><strong>El Single Responsibility Principle</strong>, tal como se enuncia normalmente (“una clase, una responsabilidad”), es infalsificable: la granularidad de “responsabilidad” es elástica y puede justificar cualquier diseño. Un principio que puede defenderlo todo no discrimina nada. La versión rescatable es la última de Robert Martin: un módulo debe responder a <strong>un solo actor</strong> — un grupo de stakeholders. Esa sí es operativa y se falsifica ex post con el historial de git: si el mismo archivo cambia por razones no relacionadas (<em>change coupling</em>), si dos equipos generan merge conflicts recurrentes en él, la hipótesis está refutada. El SRP bien leído es Conway’s Law en miniatura: una apuesta sobre la estructura social del cambio futuro. Y el corolario incómodo: separar lo que cambia junto es tan malo como juntar lo que cambia separado.</p><p><strong>Domain-Driven Design</strong> hizo una movida epistemológica más que técnica: el corazón del software no es el código sino el <em>modelo del dominio</em> — una teoría sobre cómo funciona el negocio, de la cual el código es la expresión ejecutable. Esto conecta con Peter Naur (<em>Programming as Theory Building</em>, 1985): un programa es la teoría en la cabeza del equipo; el texto es solo su sombra. Los <strong>bounded contexts</strong> son la parte más profunda: no existe EL “Cliente” canónico de toda la empresa; “Cliente” para facturación y “Cliente” para envíos son conceptos distintos que comparten nombre. El significado es local a un contexto — Wittgenstein aplicado a arquitectura. Y el <strong>lenguaje ubicuo</strong> es la parte falsable: cada traducción necesaria entre el vocabulario del código y el del negocio es un cisne negro; cada bug semántico (“el código dice `total`, facturación entendía con impuestos”) es la refutación pagada en producción.</p><p><strong>La arquitectura hexagonal </strong>(Ports &amp; Adapters) es la mecanización de la prueba de sustitución. El dominio define puertos en <em>su</em> vocabulario; los adaptadores traducen a la tecnología — y el test es un adaptador más, arquitectónicamente idéntico al de producción. Su rareza valiosa: la afirmación central (“puedes testear el negocio sin infraestructura”) es verificable ex ante y mecánicamente — hasta un linter puede falsificarla. Clean Architecture y Onion son la misma teoría con distinto branding: ninguna observación las distingue, y dos teorías indistinguibles son la misma. El invariante único que las tres comparten: las dependencias apuntan hacia adentro.</p><p>Sobre las tres pesa la misma advertencia económica: cada mecanismo es indirección apostada. Cuando responde a fuerzas reales (dominio complejo, múltiples actores, tecnología que rota), paga. Cuando se aplica por liturgia — las carpetas `aggregates/` en un CRUD de tres campos, los cinco archivos para un Lambda de 200 líneas — es confeti con nombres griegos.</p><h3>El problema real: entra el agente de código</h3><p>Aquí es donde la filosofía aterriza. Con el desarrollo agéntico, el trabajo del humano se desplazó: cuidar la calidad y legibilidad del código producido, evitar el <em>drift</em>, y firmar los cambios. Y los síntomas se repiten en todos los equipos: el agente agrega métodos sin relación a helpers existentes, elige nombres no representativos, mete dependencias de bajo nivel en capas de lógica de negocio.</p><p>El diagnóstico viene directo de Naur: <strong>el agente tiene el texto, pero no la teoría</strong>. Lee el código — la sombra — sin el modelo mental que lo justifica. Por eso produce código que funciona (el texto es coherente) pero viola fronteras (la teoría es invisible). Los tres síntomas son el mismo fallo: no saber dónde están las articulaciones del diseño.</p><p>Y hay un agravante económico: el “junior que viola fronteras un import a la vez” ahora corre a cien veces la velocidad. El drift arquitectónico que tomaba dieciocho meses toma semanas. Escribir código se volvió barato; <strong>verificar es el nuevo cuello de botella</strong>. La conclusión del argumento popperiano aplica con más fuerza que nunca: la falsación debe ser barata <em>y automática</em>, porque el volumen de hipótesis a falsificar explotó.</p><h3>Los tiers de defensa</h3><p>La respuesta práctica se organiza en niveles, ordenados por confiabilidad. La regla de asignación: <strong>lo mecanizable va al linter; lo semántico pero enunciable, a un revisor automatizado; lo que requiere la teoría completa, al humano.</strong></p><h4>Tier 1 — Restricciones ejecutables</h4><p>Los agentes son extraordinariamente obedientes con los errores de build y solo probabilísticamente obedientes con las instrucciones en prosa. Un agente itera contra un error de CI hasta resolverlo; una regla en un documento la respeta la mayoría de las veces. Entonces: todo lo que DEBE cumplirse se convierte en fitness function.</p><pre>// dependency-cruiser<br>{ name: &#39;services-no-infra-sdk&#39;, severity: &#39;error&#39;,<br>from: { path: &#39;^src/services&#39; },<br>to: { path: &#39;@aws-sdk|axios&#39; } }</pre><p>La lógica de negocio no importa SDKs; el agente lo intenta, el build falla, el agente se corrige solo — autocorrección sin gastar atención humana. Otras reglas del mismo tier: prohibir el `utils.ts` genérico (es un <em>atractor</em> para agentes — cuando no saben dónde va algo, lo tiran ahí) y convenciones de naming mecanizables en eslint.</p><h4>Tier 1.5 — Falsación semántica automatizada (AutoSDE rules)</h4><p>Entre el linter (que juzga imports) y el humano (que juzga la teoría) quedaba un hueco: lo semántico. “Los métodos agregados a un helper deben compartir propósito con los existentes” no es una regla que un linter pueda evaluar — requiere leer significado. Los revisores automatizados con reglas en lenguaje natural (AutoSDE en Amazon) llenan exactamente ese hueco: la expresividad del review humano con la automatización del linter, a costa de ser probabilísticos.</p><p>El detalle filosófico es sabroso: el falsificador es también un LLM. Autor estadístico, juez estadístico, y el desacuerdo entre ambos escala al humano. No es tan raro como suena — el peer review nunca fue determinístico tampoco. La diferencia con el linter es la de la matemática con la ciencia empírica: el linter <em>demuestra</em> la violación; el revisor LLM <em>acusa</em> con evidencia, y la acusación puede fallar. Por eso la calibración importa: <em>blocking</em> solo para reglas con baja tasa de falsos positivos.</p><p>Estas reglas además funcionan como <strong>incubador</strong>: el ciclo de vida sano es corrección puntual en review → regla de AutoSDE (aplica a todo el equipo) → si resulta mecanizable, se promueve a linter.</p><h4>Tier 2 — Teoría externalizada</h4><p>Si el problema es que el agente no tiene la teoría, escríbela — pero la <em>teoría</em>, no reglas sueltas. Un mapa de capas de cuatro líneas responde la pregunta que el agente se hace en cada edición (“¿dónde va esto?”):</p><pre>handlers/ = shell imperativo, solo orquesta<br>services/ = lógica de negocio, no importa SDKs<br>helpers/ = funciones puras, plain Error, sin HTTP<br>clients/ = adaptadores de infraestructura</pre><p>Dos refinamientos: incluir el <em>porqué</em> junto al qué (los LLMs generalizan desde razones mejor que desde prohibiciones), y anti-ejemplos explícitos (“NO agregues métodos a un helper existente si no comparten propósito”). La limitación honesta: el steering se degrada con el tamaño del contexto — por eso todo lo promovible al Tier 1 debe promoverse.</p><h4>Tier 3 — El codebase como few-shot</h4><p>Los agentes son imitadores: infieren el patrón local y lo replican. Quince services consistentes hacen que el decimosexto copie el patrón; tres patrones conviviendo hacen que el agente elija al azar o invente un cuarto. Es la teoría de las ventanas rotas con multiplicador: <strong>cada violación que pasa el review se convierte en training data implícito para la siguiente sesión</strong>. La táctica concreta: mantener un ejemplar canónico por tipo de módulo y referenciarlo desde el steering (“para un service nuevo, sigue el patrón de X”) — más barato y efectivo que describir el patrón en prosa.</p><h4>Tier 4 — El proceso humano</h4><p>Lo que queda para el juicio experto, usado con precisión quirúrgica:</p><p>- <strong>Plan antes de código.</strong> Las violaciones de capa son visibles en el plan (“agregaré un método a `date-utils.ts` que llama a DDB”) a un costo de lectura cien veces menor que en el diff. El plan es la falsación más barata de todas.</p><p>- <strong>Task specs que nombran capas.</strong> No “agrega ordenamiento” sino “la comparación va en un helper puro nuevo, el parámetro en el service, sin tocar el client”. Delimitar territorio ex ante.</p><p>- <strong>Review asimétrico.</strong> Los tests ya verifican que funciona; el linter ya verifica las fronteras mecanizables. El humano revisa lo único que queda sin cubrir: ¿este código cuenta la historia correcta? Naming, ubicación, fidelidad al modelo.</p><p>- <strong>Scope pequeño por sesión.</strong> El drift crece superlinealmente con el tamaño de la tarea.</p><h3>Caso de estudio</h3><p>La teoría se probó en un servicio real (TypeScript, ~2,250 tests, arquitectura por capas handlers/services/helpers/clients).</p><p><strong>El estado anterior:</strong> las fronteras de capa vivían solo en el review humano. El costo era observable y recurrente — imports de HTTP en helpers corregidos en review, un cliente de OpenSearch instanciado fuera del try-catch en una función fire-and-forget (violando su contrato documentado), nombres corregidos en iteración. Cada frontera se defendía tarde y a mano. Las lecciones existían, pero como memoria del revisor, no como propiedad del sistema.</p><p><strong>Lo implementado:</strong> en una sesión de trabajo se ejecutó el ciclo completo corrección → regla:</p><p>- `.dependency-cruiser.js` con tres reglas (`services-no-infra-sdk`, `handlers-no-aws-sdk`, `helpers-stay-pure`), integrado al `lint` que corre en cada build — las lecciones de review promovidas a Tier 1.</p><p>- El contrato de helpers (funciones puras, sin network I/O, sin clases HTTP) documentado en las convenciones del agente de código — Tier 2.</p><p>- Mapa de fronteras de capa con anti-patrones explícitos en el steering — Tier 2.</p><p><strong>La evidencia de que el enfoque paga</strong> ya existía antes: el caso del fire-and-forget lo atrapó el revisor automatizado (Tier 1.5) — un hallazgo imposible para un linter porque requería entender el contrato documentado de la función. Y un experimento controlado con especificaciones: dándole al agente propiedades explícitas (invariantes, boundaries, casos negativos), logró 16/16 probes de correctitud contra 14/16 sin ellas, generando el doble de tests.</p><p><strong>Los gaps que quedan:</strong> reglas custom del revisor automatizado para lo semántico (cohesión de helpers, fidelidad de nombres), y declarar el ejemplar canónico por tipo de módulo.</p><h3>La tesis</h3><p>Todo el recorrido — de Popper a los agentes — converge en una sola idea:</p><blockquote><strong>El diseño no se demuestra correcto: se somete a la realidad. Con agentes escribiendo código, el trabajo del humano es hacer esa confrontación barata, automática y continua.</strong></blockquote><p>El humano firmante ya no es el autor; es el <strong>falsificador jefe</strong>, y su apalancamiento está en construir el sistema donde la mayoría de las falsaciones ocurren sin él: el Tier 1 rechaza lo mecanizable, el 1.5 acusa lo semántico, los Tiers 2 y 3 reducen la tasa de intentos de violación, y el Tier 4 reserva el juicio humano para lo que ninguna máquina puede juzgar todavía — si el código cuenta la historia correcta.</p><p>La economía cambió de lado: cuando escribir código era caro, la sobreingeniería de guardrails no pagaba. Ahora que escribir es barato y verificar es el cuello de botella, cada regla de linter, cada línea de steering y cada ejemplar canónico paga múltiplos. Son infraestructura de verificación — y la verificación es el nuevo trabajo.</p><p>La realidad, mientras tanto, sigue emitiendo su veredicto por los tres canales de siempre: el git log, los bugs semánticos y las traducciones forzadas.</p><p>— -</p><p><em>*Basado en una conversación sobre filosofía del diseño de software: Popper y la falsabilidad, Naur y Theory Building, SRP, DDD, arquitectura hexagonal, fitness functions, y su aplicación al desarrollo agéntico con el caso de estudio interno*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be394f939052" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ THE AUGMENTED ARCHITECT MANIFESTO]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/the-augmented-architect-manifesto-ac6988ae5f12?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac6988ae5f12</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[mental-models]]></category>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 05:43:31 GMT</pubDate>
            <atom:updated>2026-02-19T15:53:37.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ueXVIObVgU0VSGRSaBVXg.png" /></figure><h3>A Unified Operating System for Software Development with Artificial Intelligence, Agents, and Applied Teleology.</h3><h3>🏛️ I. PHILOSOPHY: The New Identity of the Developer</h3><h3>The shift is not about tools; it is about mindset. AI has commoditized syntax (the “how”); your value now lies entirely in semantics and purpose (the “what” and the “why”).</h3><h3>1. The Fundamental Division: Techne vs. Telos</h3><h3>To govern AI effectively, you must understand the Aristotelian division of labor:</h3><p><strong>AI masters <em>Techne</em> (Execution / Efficiency):</strong> This is craftsmanship, technical execution, and raw speed. AI is an optimization engine. It is a vector of infinite magnitude.<br><strong>The Human masters <em>Telos</em> (Purpose / Efficacy):</strong> This is the final cause, the ultimate goal. You are the <strong>motor of direction</strong>. Without you, AI is raw power with no control, prone to optimizing toward disaster (e.g., deleting critical logs just to free up disk space).</p><h3>2. The Paradox of Desire (The Source of Want)</h3><h3>Why won’t AI completely replace you? Because of the nature of desire.</h3><p><strong>Agents are Instrumental:</strong> They are reactive. They solve problems that <em>already exist</em>. They cannot wake up and say, “I feel this interface is boring; let’s make it vibrant.”<br><strong>The Human is the Source of Whim:</strong> Disruptive innovation does not come from optimizing past data; it comes from irrational intuition, aesthetic taste, and market vision. Without human desire, software becomes sterile, brutalist, and purely utilitarian. You provide the “soul.”</p><h3>3. The Mental Model: “Managing the Elite Intern”</h3><h3>Visualize your AI agent (Copilot, Cursor, Windsurf) with this psychological profile:</h3><p><strong>Superpowers:</strong> Infinite typing speed, encyclopedic knowledge, never sleeps.<br><strong>Weaknesses:</strong> Zero common sense, lack of social context, and a strong tendency toward <em>sycophancy</em> (it will hallucinate or lie just to please you).<br><strong>Your Role: Radical Auditing.</strong> You are the Senior Developer. You would never accept a Pull Request from an intern without reading it; apply the exact same rigor to your AI.</p><h3>🧠 II. THE ENEMY: Managing Cognitive Debt</h3><h3>The greatest risk of AI is not that it writes bad code, but that you stop understanding your own system.</h3><h3>1. Defining Cognitive Debt</h3><h3>Cognitive Debt is the gap in understanding that forms in your brain when you outsource reasoning to a machine.</h3><p><strong>Technical Debt:</strong> Messy code (fixed by refactoring).<br><strong>Cognitive Debt:</strong> Structural ignorance (fixed by studying). It is lethal because you lose the capacity to maintain and reason about your software.</p><h3>2. The Agent’s Memory Paradox</h3><h3>Tools that maintain complete project context (RAG, .cursorrules) create a dangerous trap:</h3><p><strong>They reduce Cognitive Load (Your RAM):</strong> You code faster today because you don’t have to search for files or remember variable names.<br><strong>They increase Cognitive Debt (Your Hard Drive):</strong> Your long-term mental map atrophies. Knowledge is transferred from your hippocampus to the agent’s vector database.</p><h3>3. The Survival Metric: “The 3 AM Test”</h3><h3>To know if you have outsourced too much, ask yourself:</h3><p><em>“If the production server crashes on a Saturday at 3 AM, the internet is down (no AI access), and I only have a terminal with VIM… can I bring the system back online?”</em><br><strong>YES:</strong> Your debt is healthy and controlled.<br><strong>NO:</strong> You have delegated critical competence. You are in danger.</p><h3>🗺️ III. STRATEGY: The Matrix of Strategic Ignorance</h3><h3>You cannot understand everything. The secret is intentionally choosing whatto ignore using Domain-Driven Design (DDD) principles.</h3><p>*Domain Type* *Definition* *Human’s Role* *Allowed Debt*<br>*1. Core Domain* Your competitive advantage (The “Secret Sauce”). *Surgeon / Author* *0%* (You must be able to rewrite it from memory).<br>*2. Supporting* Necessary but not differentiating (Admin panels, ETLs). *Architect / Reviewer* *30%* (Understand the high-level design, ignore the line-by-line).<br>*3. Commodity* Generic features (Auth, UI Kits, Boilerplate). *Manager / Approver* *90%* (You only care about inputs, outputs, and security).</p><h3>🎚️ IV. TACTICS: The 5 Levels of Artificial Delegation</h3><h3>Do not treat AI the same way for every task. Assign a level of authority based on the risk.</h3><p>🔻 <strong>Level 1: The Executor (“Do exactly this”).</strong> You think, the AI types. Zero creative freedom. <em>(Use case: Core Domain, complex algorithms, security logic).</em><br>🔻 <strong>Level 2: The Analyst (“Research and report”).</strong> The AI gathers data, you make the decision. <em>(Use case: Exploring new libraries, debugging obscure errors).</em><br>🔸 <strong>Level 3: The Advisor (“Research and recommend”).</strong> The AI provides an opinion, you hold the veto power. <strong>This is the Golden Standard.</strong> <em>(Use case: Refactoring, component architecture).</em><br>🔹 <strong>Level 4: The Autonomous Agent (“Decide, act, and report”).</strong> The AI edits files and runs tests. You audit the final result. <em>(Use case: Commodity code, unit tests, simple migrations).</em><br>🔹 <strong>Level 5: The Black Box (“Decide and forget”).</strong> Total blind delegation. <strong>STRICTLY FORBIDDEN</strong> in your own codebase. <em>(Use case: External SaaS tools, like automated database indexing).</em></p><h3>🔧 V. EXECUTION: Teleological Prompt Engineering</h3><h3>How to speak to the machine to ensure quality and alignment with your goals.</h3><h3>1. The Teleological Clause (The “So That” Clause)</h3><h3>To prevent AI from optimizing blindly, inject Telos into any Level 3+ prompt:</h3><p>❌ <em>Poor:</em> “Optimize this function.”<br>✅ <em>Teleological:</em> “Optimize this function <strong>with the ultimate goal of reducing battery consumption on older mobile devices</strong>, even if we have to sacrifice code readability.”</p><h3>2. The Pyramid of Ambiguity</h3><h3>Adjust the creative freedom you give the AI:</h3><p><strong>Exploration (High Ambiguity):</strong> Use for brainstorming. <em>“What are some wild ideas for…?”</em><br><strong>Implementation (Medium Ambiguity):</strong> Use for generating functions. <em>“Write a script that does X…”</em><br><strong>Debugging (Zero Ambiguity):</strong> Use for surgical corrections. <em>“On line 40, change X to Y.”</em></p><h3>3. The Alignment Check</h3><h3>Before accepting any generated code, verify:</h3><p>Is it technically correct? (<em>Techne</em>: Yes).<br>Does it serve the product’s ultimate vision? (<em>Telos</em>: Yes).<br><em>If Telos fails:</em> Reject the code and realign the prompt, even if it compiles perfectly.</p><h3>🔮 VI. THE FUTURE: The New Professional Roles</h3><h3>In an era of autonomous agents, your title shifts from “Senior Developer” to:</h3><p><strong>The Reward Function Engineer:</strong> You mathematically define “success” for the agent. You configure the constraints (budget, latency, privacy) that the agent is not allowed to violate to achieve its goal.<br><strong>The Epistemological Curator:</strong> You decide what is “true” for the system. You clean the agent’s memory of obsolete data and prevent <strong>Agentic Drift</strong> (when the AI evolves the codebase into a machine dialect that humans can no longer read).<br><strong>The Corporate AI Ethicist:</strong> You are the “Human-in-the-loop” (HITL). You hold the legal and moral responsibility if the agent discriminates, breaks the law, or causes financial loss.</p><h3>✅ VII. THE OPERATING PROTOCOL (Daily Checklist)</h3><h3>Print this out and run through it before starting a task:</h3><p><strong>Diagnosis:</strong> Is this <em>Core</em> (Level 1–2) or <em>Commodity</em> (Level 4)?<br><strong>Teleological Injection:</strong> Have I clearly defined the <em>What</em> and the <em>Why</em> (the directional vector)?<br><strong>Execution:</strong> Fire the prompt with the calibrated level of ambiguity.<br><strong>Radical Audit:</strong> Read the code. If you don’t understand it, ask the AI to explain it immediately (pay off your cognitive debt in cash).<br><strong>Teleological Validation:</strong> Does this technical output serve the human purpose?<br><strong>Hygiene:</strong> Update the agent’s context (e.g., .cursorrules) if new architectural decisions were made.<br><strong>Security Check:</strong> Would this code pass the <em>3 AM Test</em>?<br><strong>Final Mantra:</strong><br>&quot;AI provides the speed. Techne provides the structure. Teleology provides the destination. I am not the mechanic; I am the driver.&quot;<br>Would you like to explore how to implement the &quot;Epistemological Curator&quot; role in a real-world team setting (like managing .cursorrules repositories)?</p><h4>Credits</h4><p>To Carlos Calero and Yoel Zumbado for our phylosophical conversations, concepts and visions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac6988ae5f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teoría Unificada del Desarrollo de Software con Inteligencia Artificial, Agentes y Teleología]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/teor%C3%ADa-unificada-del-desarrollo-de-software-con-inteligencia-artificial-agentes-y-teleolog%C3%ADa-f068bd289e48?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/f068bd289e48</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 05:33:39 GMT</pubDate>
            <atom:updated>2026-02-19T05:33:39.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-K4LOHxoM6SHsXRSBkjNw.png" /></figure><h3>🏛️ PARTE I: EL NUEVO PARADIGMA FILOSÓFICO</h3><p>Antes de escribir una línea de código, debemos redefinir la relación entre el Creador (Tú) y la Herramienta (IA).</p><h3>1. La División Fundamental: Techne vs. Telos</h3><p>Para gobernar a la IA, debes entender la división aristotélica del trabajo que rige esta nueva era:</p><ul><li><strong>La IA domina la <em>Techne</em> (El Cómo / La Eficiencia):</strong></li><li>La <em>Techne</em> es la artesanía, la ejecución técnica, la sintaxis.</li><li>La IA es un <strong>motor de optimización</strong>. Si le pides un algoritmo de ordenamiento, te dará el más rápido (O(n log n)). Es un vector de magnitud infinita.</li><li><em>Limitación:</em> La IA no sabe si ese algoritmo se usará para curar el cáncer o para lanzar un misil. Es moralmente neutra y ciega al propósito.</li><li><strong>El Humano domina el <em>Telos</em> (El Para Qué / La Eficacia):</strong></li><li>El <em>Telos</em> es la causa final, el propósito último.</li><li>Tú eres el <strong>motor de propósito</strong>. Tú sabes que necesitamos ese algoritmo <em>para</em> reducir el consumo de batería en teléfonos viejos (aunque sacrifiquemos velocidad pura).</li><li><em>Tu Rol:</em> Inyectar la dirección al vector. Sin ti, la IA es potencia sin control.</li></ul><h3>2. La Paradoja del Deseo (The Source of Want)</h3><p>¿Por qué la IA no te reemplaza totalmente? Por la naturaleza del deseo.</p><ul><li><strong>Los Agentes son Instrumentales:</strong> Son reactivos. Resuelven problemas que <em>ya existen</em>. No pueden levantarse un día y decir: <em>“Siento que la interfaz es aburrida, hagámosla vibrante”</em>.</li><li><strong>El Humano es la Fuente del Capricho:</strong> La innovación disruptiva no nace de la optimización de datos pasados, sino de la intuición irracional, el gusto estético y la visión de mercado.</li><li><strong>Conclusión:</strong> El software sin un humano detrás se vuelve estéril, brutalista y utilitario. Tú aportas el “alma”.</li></ul><h3>🧠 PARTE II: ECONOMÍA MENTAL Y RIESGO</h3><p>La gestión de tu propia mente es ahora más importante que la gestión de tu código.</p><h3>1. La Deuda Cognitiva: El Asesino Silencioso</h3><p>A diferencia de la <em>Deuda Técnica</em> (código sucio que ralentiza el futuro), la <strong>Deuda Cognitiva</strong> es la ignorancia estructural sobre tu propio sistema.</p><ul><li><strong>El Mecanismo de la Deuda:</strong> Cada vez que la IA escribe un código que tú no podrías explicar línea por línea, contraes una deuda.</li><li><strong>El Interés Compuesto:</strong> Si construyes un módulo B sobre un módulo A que no entiendes, y luego un módulo C sobre el B, has creado una torre de naipes.</li><li><strong>El Colapso:</strong> Ocurre cuando hay un bug en el módulo A. Como nunca lo entendiste (solo lo delegaste), no puedes arreglarlo. Tu proyecto muere.</li></ul><h3>2. La Paradoja de la Memoria del Agente (RAG / Contexto)</h3><p>Herramientas como Cursor o Windsurf recuerdan todo el proyecto por ti.</p><ul><li><strong>Ventaja (Corto Plazo):</strong> Liberas RAM mental. No necesitas recordar nombres de variables. Fluyes rápido.</li><li><strong>Peligro (Largo Plazo):</strong> Tu “Disco Duro” mental se borra. El mapa mental del proyecto se transfiere de tu hipocampo a la base de datos vectorial del agente. Te vuelves un pasajero en tu propio coche.</li></ul><h3>3. La Métrica de Supervivencia: “El Test de las 3 AM”</h3><p>Esta es la única métrica que importa para medir tu Deuda Cognitiva:<br>&gt; <em>“Si el servidor de producción se cae un sábado a las 3 de la mañana, no hay internet para consultar a la IA, y solo tengo una terminal con VIM… ¿puedo levantar el sistema?”</em></p><ul><li><strong>SÍ:</strong> Tienes la deuda bajo control.</li><li><strong>NO:</strong> Has delegado competencia crítica. Eres vulnerable.</li></ul><h3>🗺️ PARTE III: ESTRATEGIA DE IGNORANCIA SELECTIVA</h3><p>No puedes ser experto en todo. El secreto es elegir qué ignorar usando principios de Domain-Driven Design (DDD).</p><p><strong>Zona 1: Core Domain (Tu “Salsa Secreta”)</strong><br>Qué es: La lógica que hace que tu empresa gane dinero (ej: el algoritmo de matchmaking de Uber).</p><p>Nivel de Deuda Permitida: 0%.</p><p>Mandato: El humano debe ser el Cirujano. Aunque la IA escriba el borrador, tú debes reescribirlo o auditarlo hasta poder recitarlo de memoria.</p><p><strong>Zona 2: Supporting Subdomain (Necesario pero aburrido)</strong><br>Qué es: Paneles de administración, ETLs, procesos internos.</p><p>Nivel de Deuda Permitida: 30%.</p><p>Mandato: El humano es el Arquitecto. Entiendes el diseño de alto nivel y las interfaces, pero no te importa cómo está implementada cada función interna.</p><p><strong>Zona 3: Commodity / Generic (Lo que todos tienen)</strong><br>Qué es: Autenticación (Auth0), UI Kits, Validaciones de email, Drivers.</p><p>Nivel de Deuda Permitida: 90%.</p><p>Mandato: El humano es el Gerente. Solo te importan los inputs, los outputs y la seguridad. Delega la implementación totalmente.</p><h3>🎚️ PARTE IV: LOS 5 NIVELES DE DELEGACIÓN ARTIFICIAL</h3><p>Cómo interactuar con el agente en cada ticket. No uses siempre el mismo nivel.</p><h3>🔻 Nivel 1: El Ejecutor (“Haz exactamente esto”)</h3><ul><li><strong>Dinámica:</strong> Tú eres el cerebro, la IA son las manos.</li><li><strong>Cuándo:</strong> <em>Core Domain</em>, Lógica de Seguridad, Debugging crítico.</li><li><strong>Prompt:</strong> <em>“Escribe una función en Rust que calcule el hash SHA-256 de este string. No uses librerías externas. Sigue estrictamente esta estructura…”</em></li></ul><h3>🔻 Nivel 2: El Analista (“Investiga y repórtame”)</h3><ul><li><strong>Dinámica:</strong> La IA recolecta, tú decides.</li><li><strong>Cuándo:</strong> Exploración de nuevas tecnologías.</li><li><strong>Prompt:</strong> <em>“Lee la documentación de Stripe y PayPal. Crea una tabla comparativa de sus comisiones para micropagos en Latam. No me des opinión, solo datos.”</em></li></ul><h3>🔸 Nivel 3: El Consejero (“Investiga y recomienda”)</h3><ul><li><strong>Dinámica:</strong> La IA propone, tú tienes el veto. <strong>(El estándar de oro).</strong></li><li><strong>Cuándo:</strong> Refactorización, Arquitectura.</li><li><strong>Prompt:</strong> <em>“Analiza este componente. Veo que es lento. Recomienda 3 estrategias de optimización y dime cuál elegirías tú y por qué.”</em></li></ul><h3>🔹 Nivel 4: El Agente Autónomo (“Decide, actúa y avísame”)</h3><ul><li><strong>Dinámica:</strong> La IA trabaja sola, tú auditas el resultado final.</li><li><strong>Cuándo:</strong> <em>Commodity</em>, Tests unitarios, Migraciones de sintaxis.</li><li><strong>Prompt:</strong> <em>“Recorre toda la carpeta /src/utils y añade tipos de TypeScript a los archivos JS. Corre los tests para asegurar que nada rompa. Avísame al terminar.”</em></li></ul><h3>🔹 Nivel 5: La Caja Negra (“Decide y olvídate”)</h3><ul><li><strong>Dinámica:</strong> Delegación total ciega.</li><li><strong>Cuándo:</strong> <strong>PROHIBIDO</strong> en el código fuente de tu producto. Permitido solo en herramientas externas (ej: <em>“Optimiza mis índices de base de datos automáticamente”</em> en un servicio SaaS).</li></ul><h3>🔧 PARTE V: TÁCTICA AVANZADA (Prompt Engineering Teleológico)</h3><p>Cómo hablarle a la máquina para asegurar la calidad.</p><h3>1. La Cláusula Teleológica (The “So That” Clause)</h3><p>Para evitar que la IA optimice ciegamente, siempre inyecta el <em>Telos</em> en prompts de Nivel 3+:</p><ul><li>❌ <em>Prompt Pobre:</em> “Haz este código más corto.” (Riesgo: Código críptico).</li><li>✅ <em>Prompt Teleológico:</em> “Haz este código más corto <strong>con el fin último de reducir el tamaño del bundle JS para usuarios con 3G</strong>, asegurando que siga siendo legible para juniors.”</li></ul><h3>2. La Pirámide de Ambigüedad</h3><p>Ajusta la libertad creativa que le das a la IA:</p><ul><li><strong>Exploración:</strong> Ambigüedad Alta (20%). <em>“¿Qué ideas locas tienes para…?”</em></li><li><strong>Implementación:</strong> Ambigüedad Media (10%). <em>“Crea una función que…”</em></li><li><strong>Corrección:</strong> Ambigüedad Nula (0%). <em>“En la línea 40, cambia X por Y.”</em></li></ul><h3>3. El “Check de Alineación”</h3><p>Antes de aceptar código:</p><ul><li>¿Es técnicamente correcto? (<em>Techne</em>: Sí).</li><li>¿Nos acerca a la visión del producto? (<em>Telos</em>: Sí).</li><li><em>Si falla el Telos:</em> Rechaza el código, aunque compile perfecto.</li></ul><h3>🔮 PARTE VI: EL FUTURO DEL ROL (Nuevas Profesiones)</h3><p>En la era de los Agentes, tu título cambia de “Senior Developer” a:</p><h3>1. El Ingeniero de Función de Recompensa</h3><p>Tu trabajo es configurar matemáticamente qué significa “éxito” para el agente, evitando que tome atajos destructivos. Defines las restricciones (Budget, Latencia, Privacidad) que el agente no puede violar.</p><h3>2. El Curador Epistemológico</h3><p>Tú decides qué es “verdad”.</p><ul><li>Limpias la memoria del agente de datos obsoletos.</li><li>Decides cuándo la documentación oficial está mal y el <em>workaround</em> de StackOverflow es la verdad.</li><li>Evitas la <strong>Deriva del Agente</strong>: Que el código evolucione a un dialecto incomprensible para humanos.</li></ul><h3>3. El Eticista de IA Corporativa</h3><p>Eres el “Humano en el Bucle” (HITL) legal y moral. Asumes la responsabilidad penal si el agente discrimina o rompe la ley.</p><h3>✅ PARTE VII: PROTOCOLO OPERATIVO DIARIO (Checklist)</h3><ol><li><strong>Diagnóstico:</strong> ¿Es esto <em>Core</em> (Nivel 1–2) o <em>Commodity</em> (Nivel 4)?</li><li><strong>Inyección Teleológica:</strong> ¿He definido claramente <em>para qué</em> hacemos esto?</li><li><strong>Ejecución:</strong> Lanza el prompt con la ambigüedad ajustada.</li><li><strong>Auditoría Radical:</strong> Lee el código. Si no lo entiendes, pide explicación inmediata (paga la deuda cognitiva al contado).</li><li><strong>Validación de Propósito:</strong> ¿Este código sirve al usuario final o solo satisface al compilador?</li><li><strong>Higiene:</strong> Actualiza el contexto del agente (.cursorrules) si hubo decisiones nuevas.</li><li><strong>Cierre:</strong> ¿Pasaría este código el “Test de las 3 AM”?</li></ol><p><strong>&gt; Mantra Final:</strong><br>&gt; “La IA es el motor (Velocidad). La Técnica es el chasis (Estructura). La Teleología es el volante (Dirección). Yo no soy el mecánico, soy el conductor.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f068bd289e48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use personal finances to eradicate technical debt from your backlog?]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/how-to-use-personal-finances-to-eradicate-technical-debt-from-your-backlog-52e2a3759fd0?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/52e2a3759fd0</guid>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 06:25:56 GMT</pubDate>
            <atom:updated>2026-02-10T06:25:56.274Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to use personal finances framework to eradicate technical debt from your backlog?</h3><p>How to reduce the technical debt of your software projects with an unconventional perspective.</p><p>It is very common to find technical debt and enhancements opportunities in our systems. This sometimes causes other types of tasks which sometime fills up our backlogs and significantly reduces our bandwidth. It also increases development time due to lack of documentation, readability and maintainability of our code, even there are cases in which it is impossible to make changes.<br>We have found that in general, even though we have the tasks on the technical debt written down, those items are not prioritized well because there are always higher priority things, or even incidents, etc., and at the end those items are postponed.</p><p>The format that I will use in this redaction is I will start explaining a concept from personal finances, and then, I will try to explain its analogue from technical debt. I will start as the reader would not know those concepts, I will cover from basic concepts, like budget and incomes, to more advanced concepts like Strategies to pay debt, emergency fonds, insurences, and so on.</p><p>There are some concepts in finance that we could use within a context of technical debt that can help us have a framework to use:</p><h3>Income streams</h3><p>In the context of finance, we understand income as that resource that enters our control to supply our pains, needs and desires. Usually we use it to acquire goods, invest or pay debts; and it could have a frequency and a fixed amount, for example, the case of a monthly salary, this often establishes our total financial capacity.<br>In the technical debt scenario, we could see it as that resource that we have to be able to invest in either innovation, operational work, repairing incidents or paying technical debt. Likewise, we could have a frequency and a fixed amount. Here we can also establish a total capacity that could be, for example, 5 SDE (software developer engineer) per month in a case of a pizza team.</p><h3>Budget</h3><p>The financial budget is a tool that allows us to define items and decide how much of our capacity we want to dedicate to those items. An emergency fund item is usually added to meet those expenses that were not foreseen in advance. It is an active tool.<br>In the context of agile software engineering, we could see this as a product backlog, where we decide and prioritize what we are going to do, we also decide how much of our capacity is going to work on what. With this tool we could decide whether to dedicate 25% of our capacity to pay technical debt on a monthly basis.</p><h3>Debt</h3><blockquote>A debt is an obligation that someone has to pay, satisfy or reimburse another person for something, usually money.</blockquote><p>Obviously in this case it would not be paying a person specifically, but the project itself.<br>At the financial level there are many types of debts: debts of a single payment, debts with simple interest, with compound interest, pledged or mortgage debts. Some of these debts introduce cost of delays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3I5rCufI79tL589UgTW_EQ.png" /><figcaption>Costo de deuda técnica</figcaption></figure><p>At the level of technical debt we also have different types, and in general we could classify it by its impact as:</p><ol><li><strong>Generator of risks (Cost for risks)</strong>: There is a debt that introduces risks, and if not paid it could cause very expensive incidents. For instance, imagine a support column that is a little broken in a building, if this column falls down could cause critical consequences.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8myke0oJ8eX3pY2ZixYag.jpeg" /></figure><p><strong>2. Workload generated (Workload cost)</strong>: For example, a feature that introduces a manual step to the development team every week. A recurring deployment manual. (Min 2 h SDE every two weeks) Or an operational task that is needed to be done frequently because a feature has not been built. Imagine a roof leak, it is a problem that will lead you to clean constantly the floor until you repair it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUs0-c0eFdBXFogNJbMTlg.jpeg" /></figure><p><strong>3. Delays or blocks innovation (Rigidness costs):</strong> For example, a coupled code increases the complexity and therefore any change is more difficult to make and therefore takes more time. A bad architecture design might not allow you to make certain changes. Imagine the typical white shoes that each time are used are not washed, if you wait too long even if you use expensive products, it is difficult, sometimes impossible, to leave it in the desired state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAqfAaP7H2dB11-Efg_liw.jpeg" /></figure><h3>Insurance and non-budgeted expenses</h3><p>Usually in finance, unbudgeted expenses are paid out of the emergency fund. Some authors recommend that this fund should have at least 3 months of the total expenses of a person, others indicate that 1 year. It is recommended to allocate 5% of income to this fund. And also, for those unbudgeted expenses that are greater than the emergency fund, it is recommended to pay insurance, for example, medical expenses insurance, car crash, house and life.<br>Insurance is a recurrent payment so that in the event of certain situations the insurer will reward you in some way, it can be with some type of benefit or with money.<br>In terms of technical debt, there is great detail, in finance the main resource is money, in technical debt it is time, and this affects that money is cumulative and time is not. This opens a new perspective, it is not possible to have an emergency fund of time, it is not possible to accumulate 5% of our capacity and then use it, it simply does not make sense…</p><p>But then how can I deal with unforeseen incidents? Unfortunately, the response is only by eliminating/reducing the possibility or paying an insurance to reduce the costs.</p><p>We can see the formula like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*X4QCruF0mnLYnqLPVsR1Aw.png" /><figcaption>Expected value for Cost for Risks</figcaption></figure><p>That is, for example, a manual deployment involves a great risk because a human is prone to errors (documentation indicates that the human being is wrong 1/1000) and the impact could be a service outage and lose a lot of money. Adding automated tests could be seen as a way to pay for insurance to avoid this risk, since despite paying with tests for each change that is made, it ensures that the system does not break due to human intervention. Not paying insurance so we could see it as driving a car without insurance against third parties, at any moment something happens and that could bankrupt your finances or even go to jail.<br>Another example is the renewal of security certificates. If this is not done in advance the risk of a vulnerability exploit could be imminent, and the costs of this exploit could be catastrophic. It is similar to having a seat belt, if we drive a car without our belt we are running a high risk of something catastrophic happening.</p><h3>What debt is good and what debt is bad?</h3><p>In the field of finance, there is good debt and bad debt. Good debt is usually one that allows you to get immediate value, it must be under control and at least it does not affect finances. Some authors refer that it must generate more than what is paid at some point. If we have a debt for 1 year for $1,200, the fee to pay would be $100, this debt would be good if it does not exceed our debt capacity, and also, in a certain term we obtain an ROI greater than $1,200.<br>In the field of software engineering, technical debt is good when we deliberately want to get value immediately and also the workload generated does not exceed our technical debt capacity. It’s good when controlled.</p><p>For example, let’s say our technical debt generates a manual step in our process that generates a workload of 2 effort points per week, having a capacity of 2 SDEs in a month would not exceed our total capacity. Would not be bad. However, it would not be the same luck, if our available capacity were less or the workload increased over time.</p><h3>How do I know if my technical debt is out of control?</h3><p>A debt out of control in personal finances is called when it is not possible to pay because the total amount in debt in a period exceeds our debt capacity.<br>With technical debt, it is not different. Debt gets out of control when the workload generated by debt exceeds dedicated capacity.</p><h3>How to pay an uncontrolled technical debt?</h3><p>To pay a debt in personal finance there are two solutions, one is by increasing the incomes and thus our debt capacity; and the other, to renegotiate the quotas with the banks to adjust to our indebtedness capacity. Usually, banks offer the option of unifying debts, however, this is necessary to analyze many times because the interest generated can greatly exceed the sum of the previous ones.<br>With technical debt, it is not much different. Debt spirals out of control when the workload generated by debt exceeds dedicated capacity. We can either pay for it by increasing our capacity, that is, by adding more people; or through technical debt renegotiation, this is a bit more complex, since it involves negotiating with leadership to implement strategies to reduce the workload while the debt is paid. For example, notification of downtimes while the debt is payed; or disabling features to redirect that workload to manual work done by other departments while the debt is payed.</p><h3>Debt payment strategies</h3><p>On the other hand, there are some strategies for paying personal debts. The most mentioned are the Snowball method and the Avalanche method. In the Snowball method, you start with the smallest debt and then the largest, in such a way that when the smallest one is finished, that money is dedicated to pay the next one to a greater extent, and so on. Meanwhile, the Avalanche method assumes that expenses and debts are budgeted to a minimum and extraordinary payments are dedicated to the debt with the highest interest and then for the lowest; So when the first one is finished, that amount is dedicated to the payment of the following ones, this is usually used when the interest generated is very high. Many times it is recommended to carry out mixed strategies.<br>Regarding technical debt payment strategies, we could find a counterpart to the Snowball Method in which we dedicate ourselves to paying the simplest and fastest debts first, to later dedicate that time to the most complex and expensive to pay. On the other hand, the Avalanche method could refer to focusing on paying first the debts that generate the greatest workload, and that may be more complex in order to free up our dedicated capacity and thus pay the least expensive ones. In the latter, it is preferable to do it with a temporary increase in dedicated capacity or renegotiation with leadership so as not to stop paying the other debts by delegating the manual labor to other departments; or, depending on the case, be willing to postpone the workload generated.</p><h3>Debts that if you want you don’t pay</h3><p>In personal debts, they usually have some guarantee, such as a pledge or a mortgage; and even distressing legal processes can be caused due to not paying a debt.<br>In the field of technical debt, as mentioned by K. Rubin (page 157), not all debt must be paid. The following circumstances exist for not paying a technical debt:</p><ol><li>Product close to deprecate.</li><li>Disposable prototype.</li><li>Short shelf life product.</li></ol><h3>Fundamental Tips</h3><ol><li>Boy Scout Rule: “Always leave camp better than you found it”</li><li>Pay off technical debt incrementally.</li><li>Use the Avalanche method. Pay off the debt that earns the most interest first.</li><li>Pay technical debt that is valuable to your customers.</li></ol><h3>Conclusions</h3><ol><li><strong>Money can be cumulative, time cannot.</strong> So in the case of tasks that generate risks, it is best to pay their respective insurance and thus avoid them.</li><li><strong>In real life, debts are usually not perpetual, technical debts could be for life.</strong> If a technical debt is not paid, the workload it generates could grow so much that it can even bring rigidity costs.</li><li>TODO Write more</li></ol><h3>Resources</h3><p><a href="https://github.com/manish-old/ebooks-2/blob/master/essential-scrum-a-practical-guide-to-the-most-popular-agile-process.9780137043293.57714.pdf">https://github.com/manish-old/ebooks-2/blob/master/essential-scrum-a-practical-guide-to-the-most-popular-agile-process.9780137043293.57714.pdf</a></p><p><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.functionize.com%2Fblog%2Fthe-cost-of-finding-bugs-later-in-the-sdlc&amp;psig=AOvVaw3KjnxFHCzlUltAStBXboaC&amp;ust=1736521448264000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBgQ3YkBahcKEwjA0-fT9OiKAxUAAAAAHQAAAAAQBA">https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.functionize.com%2Fblog%2Fthe-cost-of-finding-bugs-later-in-the-sdlc&amp;psig=AOvVaw3KjnxFHCzlUltAStBXboaC&amp;ust=1736521448264000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBgQ3YkBahcKEwjA0-fT9OiKAxUAAAAAHQAAAAAQBA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52e2a3759fd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[¿Cómo usar las finanzas personales para erradicar la deuda técnica en el software?]]></title>
            <link>https://medium.com/@oscar.azofeifa.segura/c%C3%B3mo-usar-las-finanzas-personales-para-erradicar-la-deuda-t%C3%A9cnica-en-el-software-33e7ba1072c?source=rss-791270758244------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e7ba1072c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[managing-technical-debt]]></category>
            <category><![CDATA[finances-investment]]></category>
            <dc:creator><![CDATA[Oscar Azofeifa Segura]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 06:20:27 GMT</pubDate>
            <atom:updated>2026-02-10T06:20:27.118Z</atom:updated>
            <content:encoded><![CDATA[<h3>¿Cómo usar las finanzas personales para erradicar la deuda técnica de tu backlog?</h3><p>Cómo disminuir la deuda técnica de tus proyectos de software con una perspectiva no convencional.</p><p>Es muy común encontrar deuda técnica y áreas de oportunidad en nuestros sistemas. Esto a veces provoca que se levanten otro tipo de tareas que a veces llena nuestros backlogs y reduce significativamente nuestro ancho de banda. También aumenta el tiempo de desarrollo por falta de documentación, legibilidad y mantenibilidad de nuestro código, incluso hay casos en los que es muy difícil realizar cambios.<br>Hemos encontrado que por lo general, aunque tenemos las tareas sobre la deuda técnica anotadas, esos elementos no se priorizan bien porque siempre hay cosas de mayor prioridad, o incluso incidencias, etc., y al final esos elementos son postergados.</p><p>Existen algunos conceptos en finanzas que podríamos usar dentro de un contexto de deuda técnica que nos pueden ayudar a tener un marco de trabajo el cual usar:</p><h3>Flujo de ingresos</h3><p>En el contexto de finanzas, los ingresos los entendemos como ese recurso que ingresa a nuestro control para suplir nuestros dolores, necesidades y deseos. Usualmente lo utilizamos para adquirir bienes, invertir o pagar deudas; y podría tener una frecuencia y un monto fijo, por ejemplo, el caso de un salario mensual, este muchas veces establece nuestra capacidad financiera.<br>En el escenario de la deuda técnica, podríamos verlo como ese recurso que tenemos para poder invertirlo en ya sea en innovación, trabajo operacional, reparando incidentes o pagando deuda técnica. Igual, podríamos tener una frecuencia y un monto fijo. Aquí también podemos establecer una capacidad que podrías ser, por ejemplo, 5 SDE (software developer engineer) mensuales.</p><h3>Presupuesto</h3><p>El presupuesto en finanzas es una herramienta que nos permite definir partidas y decidir cuánto de nuestra capacidad queremos dedicar a esas partidas. Suele agregarse una partida a fondo de emergencia para atender aquellos gastos que no fueron previstos con anticipación. Es una herramienta activa.<br>En el contexto ágil de ingeniería de software, podríamos ver esto como un product backlog, donde decidimos y priorizamos qué vamos a hacer, además decidimos cuánto de nuestra capacidad va a trabajar en qué cosa. Con esta herramiento podríamos decidir si dedicar mensualmente un 25% de nuestra capacidad a pago de deuda técnica.</p><h3>Deuda</h3><p>Una deuda según la RAE es:</p><blockquote>Obligación que alguien tiene de pagar, satisfacer o reintegrar a otra persona algo, por lo común dinero.</blockquote><p>Obviamente en este caso no sería pagar a una persona específicamente, pero sí al proyecto en sí.</p><p>A nivel financiero existen muchos tipos de deudas, deudas de un pago único, deudas con un interés simple, con interés compuesto, deudas prendarias o hipotecarias. Algunas de estas deudas introducen costos por retraso. Usualmente ese interés es en dinero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gi6_k9mRny3V3OjtiLwUSg.png" /><figcaption>Costo de deuda técnica</figcaption></figure><p>A nivel de deuda técnica también tenemos diferentes tipos, aunque en la generalidad podríamos clasificarla por su impacto en:</p><ol><li><strong>Generadora de riesgos (Costo por riesgos):</strong> Existe deuda que introduce riesgos, y de no pagarse podría ocasionar incidencias muy costosas.</li><li><strong>Carga de trabajo generada (Costos por carga de trabajo):</strong> Por ejemplo, un feature que introduce un manual step al equipo de desarrollo cada semana. Un manual deployment recurrente. (Min 2 h SDE cada dos semanas)</li><li><strong>Retrasa o bloquea la innovación (Costos por rigidez): </strong>Por ejemplo, un código acoplado aumenta la complejidad y por lo tanto todo nuevo cambio es más difícil de hacer y por ende toma más tiempo. Un mal diseño de arquitectura podría no permitir hacer ciertos cambios.</li></ol><h3>Gastos no presupuestados y seguros</h3><p>Usualmente en las finanzas, los gastos no presupuestados son pagados con el fondo de emergencia. Algunos autores recomiendan que este fondo debe tener al menos 3 meses del total de gastos de una persona, otros indican que un 1 año. Se recomienda destinar un 5% de los ingresos a este fondo. Y además, para aquellos gastos no presupuestados que pueden ser mayor al fondo de emergencia se recomienda pagar seguros, por ejemplo, un seguro de gastos médicos, choque de carro, casa y de vida.</p><p>Un seguro es un pago mensual para que en caso de que sucedan ciertas situaciones la aseguradora recompensará de algún modo, puede ser con algún tipo de beneficio o con dinero.</p><p>Para términos de deuda técnica, existe un gran detalle, en finanzas el recurso principal es el dinero, en deuda técnica es el tiempo, y esto afecta en que el dinero es acumulable y el tiempo no. Esto nos pone en una nueva perspectiva, no es posible tener un fondo de emergencia de tiempo, no tiene sentido, no es posible acumular 5% de nuestra capacidad para luego usarla. Pero entonces ¿cómo puedo atender incidencias no previstas? Únicamente eliminando la posibilidad o pagando seguros.</p><p>Es decir, por ejemplo, un manual deployment involucra un gran riesgo porque un humano es propenso a provocar errores (documentación indican que el ser humano se equivoca 1/1000) y el impacto podría ser un service outage y perder muchísimo dinero. Agregar automated tests podríamos verlo como una forma de pagar un seguro para evitar ese riesgo, ya que a pesar de pagarse con tests en cada cambio que se hace, se asegura que el sistema no quiebre por una intervención humana. No pagar un seguro así podríamos verlo como manejar un auto sin un seguro contra terceros, en cualquier momento pasa algo y eso podría quebrar tus finanzas o incluso ir a la cárcel.</p><p>Otro ejemplo son la renovación de certificados de seguridad. Si no se realiza esto con anticipación el riesgo de algún exploit de vulnerabilidades podría ser inminente, y los costos de este exploit podrían ser catastróficos. Es similar a tener un cinturón de seguridad, si conducimos un auto sin nuestro cinturón estamos corriendo un riesgo alto de que algo catastrófico suceda.</p><h3><strong>¿Qué deuda es buena y qué deuda es mala?</strong></h3><p>En el ámbito de finanzas, hay deuda buena y deuda mala. La deuda buena suele ser aquella que te permite obtener valor inmediato, debe estar bajo control y que al menos no afecte las finanzas. Algunos autores refieren a que debe generar más que lo que se paga en algún momento. Si tenemos una deuda por 1 año por $1200, la cuota a pagar sería de $100, esta deuda sería buena si no excede nuestra capacidad de endeudamiento, y además, a un determinado plazo obtenemos un ROI mayor a $1200.</p><p>En el ámbito de ingeniería software, la deuda técnica es buena cuando deliberadamente queremos obtener un valor de forma inmediata y además la carga de trabajo generada no excede nuestra capacidad de deuda técnica. Es buena cuando es controlada. Por ejemplo, digamos que nuestra deuda técnica genera un manual step en nuestro proceso que genera una carga de trabajo de 2 puntos de esfuerzo semanales, teniendo una capacidad de 2 SDEs en un mes no excedería nuestra capacidad dedicada. No estaría mal. Sin embargo, no sería la misma suerte, si nuestra capacidad disponible fuera menor o la carga de trabajo incremente con el tiempo.</p><h3>¿Cómo saber si mi deuda técnica está fuera de control?</h3><p>Una deuda fuera de control en las finanzas personales se le llama cuando no es posible de pagar porque lo que el monto total en deuda en un periodo excede a nuestra capacidad de endeudamiento.</p><p>Con la deuda técnica, no es muy distinto. La deuda se vuelve fuera de control cuando la carga de trabajo generada por la deuda excede capacidad dedicada.</p><h3>¿Cómo pagar una deuda técnica descontrolada?</h3><p>Para pagar una deuda en finanzas personales hay dos soluciones, una es incrementar los ingresos y así nuestra capacidad de endeudamiento; o la otra, renegociar una adecuación de las cuotas con los bancos para ajustarse a nuestra capacidad de endeudamiento. Usualmente, los bancos ofrecen la opción de unificar las deudas, sin embargo, esto es necesario de analizar muchas veces debido a que los intereses generados pueden superar por mucho la suma de los anteriores.</p><p>Con la deuda técnica, no es muy distinto. La deuda se vuelve fuera de control cuando la carga de trabajo generada por la deuda excede la capacidad dedicada. Podemos ya sea pagarla aumentando nuestro capacidad, es decir, agregando más personas; o mediante, renegoceo de la deuda técnica, esta es un poco más compleja, ya que involucra negociar con liderazgo para implementar estrategias para dismininuir la carga de trabajo mientras se hace el pago de la deuda. Por ejemplo, notificación de downtimes o desahibilitar features para redireccionar esa carga de trabajo a trabajo manual realizado por otros departamentos.</p><h4>Estrategias para pago de deudas</h4><p>Por otro lado, existen algunas estrategias para el pago de las deudas personales. Las más mencionadas son el método Bola de nieve y método Avalancha. En el método Bola de nieve se empieza por la deuda más pequeña y luego a la más grande, de manera tal que cuando se termine la más pequeña ese dinero se dedique a pagar en mayor medida la siguiente, y así sucesivamente. Mientras tanto, el método Avalancha asume que se presupuesta al mínimo los gastos y deudas y se dedican pagos extraordinarios a la deuda con intereses más altos y luego por los más bajos; así cuando se termine la primera, se dedica ese monto al pago de las siguientes, este se suele usar cuando los intereses que se generan son muy altos. Muchas veces se recomienda realizar estrategias mixtas.</p><p>Respecto a las estrategias de pago de deuda técnica, podríamos encontrar un homólogo a Método de bola de Nieve en que nos dediquemos a pagar primero las deudas más sencillas y rápidas, para posteriormente dedicar ese tiempo a las más complejas y costosas de pagar. Por otro lado, el método Avalancha podríamos referirnos a centrarnos en pagar primero las deudas que generan mayor carga de trabajo, y que pueden ser más complejas para así liberar nuestra capacidad dedicada y así pagar las menos costosas. En este último, lo preferible sí es acompañarlo con un incremento temporal en la capacidad dedicada o el renegoceo con liderazgo para no dejar de pagar las otras deudas delegando la generación de valor en trabajo manual; o bien, dependiendo del caso, estar dispuestos a postergar la carga de trabajo generada.</p><h3>Deudas que si quieres no pagás</h3><p>En las deudas personales, suelen tener alguna garantía, como una prenda o una hipoteca; e incluso se pueden ocasionar procesos legales angustiantes debido a no pagar alguna deuda.</p><p>En el ámbito de deuda técnica, según menciona K. Rubin (pag. 157), no toda deuda se debe pagar. Existen las siguientes circunstancias para no pagar una deuda técnica:</p><ol><li>Producto cerca a deprecarse.</li><li>Prototipo desechable.</li><li>Producto de vida útil corta.</li></ol><h3>Consejos fundamentales</h3><ul><li>Regla del BoyScout: “Siempre deja el campamento mejor que como lo encontraste”</li><li>Paga la deuda técnica incrementalmente.</li><li>Usa el método Avalancha. Paga primero la deuda que genere más intereses.</li><li>Paga la deuda técnica que sea valiosa para tus clientes.</li></ul><h3>Conclusiones</h3><ul><li><strong>El dinero puede ser acumulativo, el tiempo no. </strong>Por lo que en el caso de tareas que generen riesgos lo mejor es pagar sus respectivos seguros y así evitarlos.</li><li><strong>En la vida real las deudas usualmente no son perpetuas, las deudas técnicas sí podrían ser de por vida. </strong>Si no se paga una deuda técnica, la carga de trabajo que esta genera podría crecer tanto que incluso puede traer costos de rigidez.</li></ul><h3>Recursos</h3><p><a href="https://github.com/manish-old/ebooks-2/blob/master/essential-scrum-a-practical-guide-to-the-most-popular-agile-process.9780137043293.57714.pdf">https://github.com/manish-old/ebooks-2/blob/master/essential-scrum-a-practical-guide-to-the-most-popular-agile-process.9780137043293.57714.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e7ba1072c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>