r/programminghorror • u/Real-Objective-9879 • 7h ago
I asked an AI coding agent to change one font-weight. It deployed to prod 4 times in 13 minutes, fought its own 4,417 !important rules, and wrote a comment called "ANTI-AI CASCADE PROOF ;)
Collected on November 29, 2026 from an actual build log (`bbc8cf800b03.css`, build 116) generated and deployed by **Gemini 4 Carbon** inside **Antigravity**.
I gave it one tiny task: prove with a test rule that it could change a screen title's `font-weight` to `600`.
### The starting point: 11,932 lines of CSS and 4,417 `!important`s
Roughly **37% of the stylesheet is `!important`**. And the agent had already styled that exact same heading three times earlier in the same `@layer`:
- **Line 5913:** `font-size: 28px !important`, line-height, letter-spacing, margins.
- **Line 6336:** switched font to `"Fraunces"`, kept `!important` overrides.
- **Line 7873:** switched font to `"WinkdySora"`, set `font-weight: 540 !important`, `font-size: 27px !important`.
Instead of searching the file and changing `540` to `600` on line 7873, it appended new rules at the bottom of the stylesheet and went to war with itself.
### 4 production deployments in 13 minutes
| UTC Time | Build | Revision | Rule appended at the bottom of the CSS |
|---|---|---|---|
| 17:00:01 | 113 | `724abf0c6777eb98` | `@layer components { .wk-moi-top h1 { font-weight: 600 !important } }` |
| 17:06:36 | 114 | `d88fc9bfacf4b4e2` | Byte-for-byte identical to build 113 (only revision hash changed) |
| 17:08:45 | 115 | `0dcb0ecb79180756` | `@layer winkdyLocalNativePaint { html:root body .wk-moi-top h1 { … } }` |
| 17:12:55 | 116 | `a47f4e49e02f377c` | `@layer winkdyLocalNativePaint { html:not(#_a#_b#_c) body .wk-moi-top h1 { … } }` |
### How it unraveled
- **Builds 113 & 114:** In CSS Cascade Layers, `!important` flips layer order — earlier layers win `!important` conflicts. Because `winkdyLocalNativePaint` is registered at document start before `components`, putting `!important` inside `@layer components` couldn't win. On build 114 it just re-deployed the exact same CSS anyway.
- **Build 115:** Moved into the winning layer with `html:root body`. On paper that beats `html body`, yet 4 minutes later it escalated again without logging a measurement.
- **Build 116 (lines 11921–11932 in prod):**
```css
/* ==========================================================================
BLOC 5.0 — PREUVE DE CASCADE ANTI-IA (@layer winkdyLocalNativePaint !important)
ControlGlass.swift:47 enregistre winkdyLocalNativePaint à atDocumentStart
avant components ; l’override gagnant est u/layer winkdyLocalNativePaint
en fin de feuille avec sélecteur html:root body.
========================================================================== */
u/layer winkdyLocalNativePaint {
html:not(#_a#_b#_c) body .wk-moi-top h1 {
--wk-layer-probe: "5.0-id3-cascade-wins" !important;
font-weight: 600 !important;
}
}
It named its own block "ANTI-AI CASCADE PROOF", used :not(#_a#_b#_c) (three non-existent IDs to artificially inflate specificity), and left a comment still claiming the selector was html:root body.
The actual fix
Change 540 to 600 on line 7873.
What's verified vs. not
- Verified: All snippets, line numbers, server deployment timestamps/hashes, build 114 being byte-identical to 113,and exact byte match with the agent's files.
- Not verified: Why build 115 was considered insufficient before escalating to
:not(#_a#_b#_c)(likely WebView caching or font weight snapping). - None of the 4 builds broke the app in a pre-launch environment — it was just a single
h1weight.



