AI coding creates two kinds of debt. You're only measuring one
Antonija BiliΔ Arar Β· article Β· 2026-06-18 source β Reader π₯οΈ
Cognitive DebtCognitive SurrenderDesirable Difficulty & Productive StruggleDORA & Engineering MetricsLearning Culture & SlackMeasuring AI ImpactMental Models & UnderstandingMeta-Skills & Contextual JudgmentPair & Mob ProgrammingPull Requests & Async Code ReviewTechnical Debt
AI-generated code creates a second, largely invisible kind of debt β cognitive debt, the erosion of shared team understanding of what a system does and why, distinct from ordinary technical debt in the code itself β and it is a genuine measurement blind spot: satisfaction scores, NPS and mentor ratings can hold steady or rise while it accumulates, so organizations must replace satisfaction-based signals with trajectory-based skill measurement and deliberate team-level questions to catch it before it becomes irreversible.
practical Β· mixed (expository argument built on interview testimony and two case studies) β Imports one theoretical construct (Storey's 'cognitive debt', itself grounded in Naur's programming-as-theory-building) but the piece's payload is operational: a controlled study, a longitudinal internship dataset, and a set of concrete organizational practices. Structured as journalism (direct quotes from Storey and JuriΔ) rather than first-person argument.
Structure
| Part | Role |
|---|---|
| Opening: Dr. Margaret-Anne Storey's classroom anecdote (Oct 2025) β students who used AI to move fast lost track of who understood which part of their system. | Coins and defines the term via a lived example |
| Definition section: cognitive debt as accumulated loss of understanding of what/why/who-knows-what; explicitly distinguished from technical debt (clean code can still carry it); grounded in Peter Naur's 'programming as theory building'. | Theoretical warrant |
| Anthropic's January 2026 RCT: 52 junior developers, AI-assisted group scored 17% lower on code comprehension, ~two letter grades. | First evidentiary pillar β controlled, quantitative |
| Infobip's internal longitudinal study: 8 cohorts, 225 interns, 2022β2026, pre-AI vs. AI-era comparison across four self-assessed growth dimensions; satisfaction/NPS/mentor scores flat-to-rising while growth fell. | Second evidentiary pillar β real-world, longitudinal, practitioner-generated |
| R10 vs. R8 vignette: same tool, same frequency, opposite engagement, opposite growth (+3 vs. 0). | Mechanism narrative |
| Infobip's concrete intern rules (try-first-check-second, AI sequencing, AI-free checkpoints, mentor-as-coach, visibility of standards, measure trajectory not satisfaction). | Prescriptive payload |
| Storey's team-level retrospective questions (who can explain each component; when did we last check features against user needs; who understands each subsystem). | Diagnostic payload at the team/system level, complementing Infobip's individual/cohort-level metric |
| Closing contrast: technical debt is a known, repayable tradeoff; cognitive debt has no repayment mechanism and can only be prevented, not refactored away. | Final distinguishing claim, raises the stakes of the whole piece |
Key terms
- Cognitive debt Cognitive Debt
The accumulated loss of understanding of what a system does, why, and who on the team knows what β a property of the system/project, not of an individual ('there is no my cognitive debt'). You can have clean, well-tested code and still carry it if the people who built it can no longer account for it, or if understanding is concentrated in one person. - Technical debt Technical Debt
Used strictly as the contrast term: a known, well-understood engineering tradeoff that leaders already know how to find and repay (refactor). Its familiarity is what makes cognitive debt's unfamiliarity and irreversibility legible. - Productive struggle Desirable Difficulty & Productive Struggle
The 'wrestling with a problem' that JuriΔ identifies as the actual mechanism of learning, and which AI removes when used for generation-and-acceptance rather than generation-and-inquiry. Never defined precisely β used descriptively, not operationally. - Dunning-Kruger gap
Operationalized narrowly as the numeric difference between an intern's self-rating at internship start and their retrospective self-rating of that same starting point, measured today. Used as a proxy for miscalibrated self-awareness of one's own skill trajectory.
Propositions
- explicitestablishedCognitive debt is the accumulated loss of understanding of what a system is doing and why and who on the team knows what β distinct from technical debt, which concerns the code itself.conf: highextendsThe Intent Debt Β· p1 β This is the primary-source interview with Storey, who coined the term in Oct 2025 and grounds it in Naur's programming-as-theory-building β the direct source Osmani's Triple Debt Model import was paraphrasing secondhand.supports βGuillaume Barrois' Post Β· p2 β The author's first-person account of 'losing the plot' is a concrete illustration of exactly the cognitive-debt dynamic the other document formalizes as an accumulated loss of system understanding.supports βGrafana's gcx and MCP Server Reach GA for Telemetry-Driven Agent Development Β· p2 β Restates the same mechanism β loss of understanding of what a system/change is doing when an agent produces it β from the angle of PR review rather than cognitive-debt terminology, and proposes observability grounding as a partial counter-signal.extends βTechnology Radar, Volume 34 Β· p14 β The Radar's 'codebase cognitive debt' blip names the same concept (gap between implementation and shared understanding) and adds the AI-swarm-specific acceleration mechanism and three candidate countermeasures that the two-kinds-of-debt piece does not offer.
- explicitYou can have clean, well-tested code and still have cognitive debt if the people who built it can no longer fully account for it, or if that understanding is concentrated in one person rather than distributed across the team.conf: high
- explicitdevelopedStandard engineering metrics do not surface cognitive debt, because it is precisely the kind of blind spot leaders don't know to check for.conf: highextends βThe 8 software engineering metrics AI broke Β· p1 β extract-ai-coding-two-kinds-debt's claim is narrowly about cognitive debt as one specific blind spot standard metrics miss; this article broadens the same underlying diagnosis (activity metrics don't surface what actually matters) to the entire standard metrics stack β deployment frequency, cycle time, PR volume β not just cognitive debt specifically.
- explicitcorroboratedIn a randomized controlled trial with 52 junior developers, those who used AI assistants scored 17% lower on code comprehension tests than the comparison group β roughly two letter grades.conf: highextendsCognitive Surrender Β· p4 β Same underlying Anthropic RCT (January 2026, junior developers) as extract-cognitive-surrender#p4, with more procedural detail (N=52, 'nearly two letter grades'), but framed as 'used AI assistants' vs. a comparison group rather than extract-cognitive-surrender's 'generation vs. conceptual-inquiry posture' framing β the two paraphrases may describe different comparison arms of the same paper (see gap g3).supports βThe End of Programming as We Know It Β· p5 β Osmani's 'house of cards code' / junior-engineers-accept-AI-output-too-readily observation, quoted here, is the same mechanism behind the comprehension-debt findings that gap names (junior engineers losing the judgment to catch bad AI output).
- explicitInfobip's 8-cohort, 225-intern longitudinal survey found self-assessed skill growth fell across all four measured dimensions (technical, teamwork, problem-solving, personal excellence) for AI-era cohorts versus pre-AI cohorts, with the starkest gap (+2.89 vs. +0.69) appearing across 2.5 years as heavy AI usage rose from 0% to 54%.conf: medium
- explicitcorroboratedOver the same period, Infobip's program satisfaction metrics (NPS, calibration ratings, mentor scores) held stable or rose even as measured skill growth fell β satisfaction is not a valid proxy for learning under AI-assisted work.conf: highsupportsCognitive Surrender Β· p9 β Concrete longitudinal evidence (Infobip's rising satisfaction/NPS alongside falling skill growth) for extract-cognitive-surrender's claim that current organizational metrics (PRs merged, tickets closed, and here also NPS/satisfaction) are systematically blind to the offloading/surrender distinction.supports βThe 8 software engineering metrics AI broke Β· p5 β Both claim satisfaction-type scores can rise while something substantive (engagement/meaning here, skill growth there) falls under AI use. This article asserts the dynamic by argument; extract-ai-coding-two-kinds-debt independently corroborates it with Infobip's 8-cohort/225-intern longitudinal data (NPS/mentor scores flat-to-rising while measured skill growth fell) β real measurement backing this article's unsupported assertion.
- explicitestablishedThe determining factor is not how much AI is used but the cognitive posture toward it: interns who asked follow-up questions and demanded explanations of AI output grew (R10: +3, highest in cohort); those who accepted output as a black box did not (R8: 0), despite using the same tool at the same frequency.conf: highsupportsCognitive Surrender Β· p7 β Fresh empirical corroboration (Infobip's R10 vs. R8, same tool and frequency, opposite outcomes) for extract-cognitive-surrender's core claim that outcome depends entirely on the user's posture, not the tool or its frequency of use.supports βHow I Use Agents Without Stopping My Own Growth Β· p6 β Currie's self-reported instinct-building from sustained deep review is an individual-level anecdote matching the Infobip finding that cognitive posture (asking follow-up questions, demanding explanations) β not raw AI usage β is what predicts skill growth.supports βCoding agents have crossed a chasm Β· p8 β Both identify the same mechanism -- a developer's cognitive posture/foundational engagement, not raw AI exposure -- as what determines whether AI use builds or erodes capability; the Infobip intern cohort gives this a measured, comparative version of the author's single anecdotal 'mirror effect' claim.
- implicitdevelopedAI accelerates the loss of the organically-formed 'mental map of who knows what', because juniors now default to asking an AI instead of a senior colleague when stuck, so the senior never learns what the junior struggled with.conf: mediumextends βThe More Accessible Information Is, the Less Employees Remember Β· p2 β Generalizes the coding-specific observation that AI accelerates loss of the 'mental map of who knows what' into a broader, experimentally-demonstrated connectivity tradeoff between content memory and network memory that holds even without AI in the loop.
- implicitcontestedBecause cognitive debt is a property of the system/team rather than of any individual, no individual-level dashboard or self-report can surface it β it can only be assessed through deliberate, team-level diagnostic questions.conf: mediumcontradicts βGuillaume Barrois' Post Β· p5 β This post implicitly treats cognitive debt as repayable through individual habits (planning, personal PR review timing), while the other document argues cognitive debt is a property of the team/system that no individual-level practice or dashboard can surface or repay.
- explicitcontestedUnlike technical debt, cognitive debt has no repayment mechanism: you cannot run a script to recover understanding engineers never built or restore shared understanding a team never had β the only lever is prevention, not repair.conf: highcontradictsThe Intent Debt Β· p5 β Storey (interviewed directly here, as the term's originator) states cognitive debt has no repayment mechanism β you cannot recover understanding never built or restore understanding a team never had. Osmani's piece claims agents can 'partially pay down cognitive debt' by re-explaining code. Direct tension between the primary source and Osmani's secondhand gloss (see gap g4).contradicts βFrom Technical Debt to Cognitive and Intent Debt: Rethinking Software Health in the Age of AI Β· p9 β BiliΔ Arar's article (whose cognitive-debt definition closely follows Storey's) claims cognitive debt 'has no repayment mechanism... the only lever is prevention, not repair.' Storey's own paper explicitly lists repair practices for cognitive debt (walkthroughs, retrospectives, and especially cheap AI-assisted reimplementation to rebuild understanding), directly challenging the stronger irreversibility claim -- this is the same tension this corpus's extract-ai-coding-two-kinds-debt#g4 gap already flagged against the Osmani extractions, now traced to its origin.
Arguments
Cognitive debt is real, distinct from technical debt, and current engineering metrics fail to detect it. strength: medium
Explicit premises:
- Cognitive debt is the accumulated loss of who-understands-what, not a property of the code
- Clean, well-tested code can still carry cognitive debt
- Standard metrics don't surface it because it's an unknown blind spot
Implicit premises:
- Existing engineering metrics were built to track velocity, quality and delivery stability (i.e., technical-debt-adjacent properties), not distributed tacit understanding
- A construct that doesn't move deployment/velocity/satisfaction metrics stays invisible to leaders who manage by those metrics
Inferences:
- Generalizes from one expert's classroom observation to a systemic organizational property
- Infers metric-blindness from the definitional contrast with technical debt, which existing metrics were designed around
Satisfaction-based metrics actively mask the decline that trajectory-based skill measurement reveals. strength: medium
Explicit premises:
- Infobip cohort data: skill growth fell across all four dimensions between pre-AI and AI-era cohorts
- Satisfaction, NPS and mentor scores stayed flat or rose over the same period
- R10 and R8 used the same tool at the same frequency but had opposite outcomes depending on cognitive posture
Implicit premises:
- Self-assessed skill trajectory is itself a sufficiently valid proxy for real skill development, without independent (e.g., objective test-based) validation
- The 2022β2026 cohort comparison isn't confounded by other era-level changes (program content, hiring bar, mentor turnover) unrelated to AI usage
Inferences:
- Moves from a correlational before/after cohort comparison to a causal attribution to AI usage specifically
- Generalizes from a 96-respondent, self-selected alumni survey to an organization-wide measurement prescription
Narratives
- Storey's entrepreneurship classroom: students moved fast with AI, shipped to real users, but lost track of what they were building and who understood which parts; one person who understood the AI-generated code couldn't safely change it either.
β Origin story that defines the term through a lived example rather than an abstract definition β establishes that cognitive debt is about who-understands-what, not code quality - Anthropic's January 2026 randomized trial: 52 junior developers, AI-assisted group 17% lower on comprehension tests.
β Supplies external, quantitative, non-anecdotal validation of the mechanism before the piece turns to Infobip's own (less rigorous) data - Infobip's 8-cohort, 225-intern internship program, 2022β2026, with the Winter 2023 vs. Summer 2025 comparison and the R10 vs. R8 vignette in the Winter 2026 cohort.
β The article's centerpiece evidence β real career-span data plus a concrete individual-level illustration of the posture mechanism - A quoted, unnamed engineer: 'sometimes it scares him that he created this system and it works and it's running, and he's forgotten what it was he was even trying to create in the first place.'
β Vivid, affective illustration of individual-level cognitive debt as lived experience β foreshadows the closing claim that this loss cannot be scripted back
Questions addressed
- β
What is cognitive debt and how does it differ from technical debt?
Cognitive debt is loss of shared understanding of what a system does and why and who knows what; technical debt is about the code. They are independent β you can have one without the other. - β
Does using AI to write code necessarily harm learning?
No β outcome depends on cognitive posture (engaged inquiry vs. passive acceptance), not on frequency or amount of AI use, per the R10/R8 comparison and the Anthropic RCT's generation-vs-inquiry distinction. - β
Can standard engineering metrics (satisfaction, NPS, mentor ratings) detect cognitive debt?
No β Infobip's data shows these metrics can rise while skill growth (the article's proposed better proxy) falls. - β
Can cognitive debt, once formed, be repaid the way technical debt is repaid (e.g., via refactoring)?
No, per Storey β there is no equivalent repayment mechanism; the only lever is prevention. - β Do the prescriptions (mentor-as-coach, AI-free checkpoints, try-first-check-second) generalize beyond a formally resourced internship program to ordinary engineering teams without a dedicated mentor role?
- β What is the actual causal mechanism connecting 'productive struggle' removal to durable skill formation β is it about attention, retrieval practice, error-correction, or something else?
Gaps
- incompleteThe 'measure trajectory, not satisfaction' prescription rests entirely on Infobip's own internal, non-independently-audited alumni survey (N=96, self-selected respondents, retrospective self-assessed skill ratings) β the very instrument vulnerable to the Dunning-Kruger miscalibration the study itself measures. The article pairs this with a rigorous RCT (Anthropic, objective comprehension testing) but never flags that its own headline metric is far weaker methodologically than the study it borrows credibility from.
Read next: Cross-reference the Anthropic RCT's comprehension-test methodology (extract-cognitive-surrender#p4) against Infobip's self-report design; look for Storey's own published paper on triple-debt measurement (referenced elsewhere in this corpus as arXiv 2603.22106, per extract-osmani-intent-debt) to see whether it offers a non-self-report instrument. - incompleteThe Infobip pre-AI vs. AI-era cohort comparison is a non-randomized, before/after natural comparison spanning 2022β2026 β a period during which the internship's content, mentor selection, hiring bar or applicant pool could plausibly have shifted for reasons unrelated to AI. The piece treats the causal attribution to AI as settled ('This confirmed that the problem wasn't the quality of the program') without directly ruling out these confounds.
Read next: DORA/Accelerate-style guidance on longitudinal measurement validity and confound control; look for a matched or randomized version of this comparison (e.g., interns with AI access experimentally withheld) that would isolate the AI effect from era effects. - incompleteThe Anthropic RCT is cited only in paraphrase (52 junior developers, 17% lower comprehension, 'nearly two letter grades') without reporting the comparison arms, confidence intervals, or how comprehension was tested. This corpus already extracted a related but not identically-framed version of what appears to be the same underlying finding (generation-only vs. conceptual-inquiry posture, rather than 'used AI assistants' vs. a control) β the two paraphrases have not been reconciled against Anthropic's original publication.
Read next: extract-cognitive-surrender.json#p4 for the alternate framing of the same study; anthropic.com/research/AI-assistance-coding-skills for the primary source to resolve which comparison arms each paraphrase actually describes. - incompleteStorey's claim that cognitive debt 'has no equivalent' repayment mechanism is stated as an absolute, but the article never distinguishes understanding that was never built (plausibly unrecoverable) from understanding that was once held and has since decayed through disuse (plausibly recoverable via deliberate re-engagement, e.g. re-reading code or asking an agent to explain it back). This corpus's own Osmani extractions raise exactly that distinction and land on the opposite answer β that cognitive debt is partially recoverable this way β without either piece acknowledging the other's position.
Read next: extract-osmani-orchestration-tax-is-you#g5 (stock-and-flow model of cognitive debt, replenishment via re-reading) and extract-osmani-intent-debt#p5 (agents can 'partially pay down cognitive debt... re-explain the code') β see relations below for the direct tension. - incompleteThe concrete prescriptions (mentor-as-coach, AI-free checkpoints, try-first-check-second, visibility of professional standards) are demonstrated only inside a structured, resourced internship program with a dedicated mentor per intern. The piece never asks whether or how they generalize to an ordinary team of mid-level or senior engineers with no formal mentor role, or to distributed/remote teams that lack the ambient 'who's the go-to' awareness the piece assumes exists in a colocated cohort.
Read next: Golden-path / platform-engineering literature on embedding good practice without a bespoke mentor relationship; pair/mob-programming literature on how tacit-knowledge transfer happens outside formal mentorship for non-junior engineers.
Closes gaps elsewhere
- Cognitive Surrender Β· g2 β extract-cognitive-surrender flagged that its 73% wrong-answer-acceptance rate came from general-population experiments, not software engineers specifically, and that the essay bridged this by analogy with no engineer-specific data. This piece supplies exactly that missing population: Anthropic's RCT (52 junior developers, code-comprehension outcome) and Infobip's real cohort data (225 interns across 8 cohorts) are both software-engineer/junior-developer-specific, though the outcome measure is comprehension/skill-growth rather than literally an acceptance-rate β a partial, not complete, closure.
Related documents
- The 8 software engineering metrics AI broke
- Agentic Code Review
- Cognitive Surrender
- Det skal være vanskelig
- Fragments: February 4
- From Technical Debt to Cognitive and Intent Debt: Rethinking Software Health in the Age of AI
- Agentic Skill Decay
- AI isn't making developers more productive β it's making them busier
- AI Enthusiasts Are in a Race Against Time, AI Skeptics Are in a Race Against Entropy
- From Async Code Reviews to Co-Creation Patterns