Artifacts (code fences, tables, diagrams, images, math blocks, raw HTML/MDX) are not bad on their own — artifact debt is high when artifacts are unlabelled, unparsable, oversized, unexplained, or externally fragile.Documentation Index
Fetch the complete documentation index at: https://mehen.ophi.dev/llms.txt
Use this file to discover all available pages before exploring further.
Formula
What each component flags
- Unlabelled code fences —
```instead of```python(defeats syntax highlighting and embedded-analyzer dispatch). - Parse errors — broken Mermaid / Math / TOML / JSON inside artifacts.
- Oversized artifacts — code blocks or tables far above the document’s median.
- Unexplained artifacts — no prose within ±2 blocks of the artifact.
- Raw HTML / MDX density — high HTML/MDX line ratio relative to DLOC.
- External artifact links — images and embeds pointing to external hosts (fragile under outages).
How DMI uses it
Artifact Debt contributes to DMI via theA_norm term.
References
- Cunningham, W. (1992). The WyCash Portfolio Management System. OOPSLA ‘92 Experience Report — origin of the “technical debt” metaphor this metric extends to documentation artifacts. DOI.
- Kruchten, P., Nord, R. L. & Ozkaya, I. (2012). Technical Debt: From Metaphor to Theory and Practice. IEEE Software 29(6): 18–21. DOI.
See also
- Visual Scaffold — diagram-specific scaffolding.
- Table Burden — table-specific burden.