What the instrument measured.
Measured against a pinned commit.
- Repository
- PostHog/posthog
- Revision
- 14c844b27667, committed 2026-09-08
- System directory
- frontend/src/lib/lemon-ui
- Components found
- 76, of which 65 carry documentation and 55 have a colocated doc artifact
- Agent context
- 5 context files, 93 skills
- Tokens
- 320 distinct, across 28 sources (25 authored); dark mode generated
- Adherence surface
- 12,808 files outside the system, graded first-party: the PostHog product frontend.
What the counts point at.
Each finding carries its count, its severity and up to three file references. A finding on a property that was not banded is still a finding; it is reported without a score.
The design system's own component source hardcodes colour and size values instead of referencing its own tokens. This happens in 182 of 560 total colour/size references in system source (32.5%), so an agent copying that file as a pattern copies the hardcoding along with it.
- frontend/src/lib/lemon-ui/LemonColor/utils.ts:7 #FFC0CB
- frontend/src/lib/lemon-ui/icons/icons.tsx:49 #E5E7E0
- frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx:349 5px
Design tokens are declared in more than one place in this repository's own authored source, so a value changed in one must be kept in agreement with the others by hand.
- products/desktop/packages/ui/src/styles/globals.css css, 131 token(s)
- products/desktop/packages/quick-ask/src/panel/quick-ask.css css, 32 token(s)
- frontend/src/scenes/themes/CustomCssScene.tsx css-in-js, 26 token(s)
Some components carry no documentation an agent could find. That is 11 of the 76 components found in system source, with no head comment on their own source, no colocated doc artifact matching their name, and no docs/ entry, so an agent must reverse-engineer their contract from implementation alone.
- frontend/src/lib/lemon-ui/LemonTable/BulkSelectionBar.tsx
- frontend/src/lib/lemon-ui/icons/categories.ts
- frontend/src/lib/lemon-ui/icons/icons.tsx
The application hardcodes colour values instead of using the design system's own tokens, so an agent editing nearby code has no signal that a token exists and will likely repeat the pattern.
- frontend/src/lib/KeaDevTools.tsx:322 rgba(0,0,0,0.12)
- products/desktop/apps/mobile/src/lib/theme.ts:12 #f2f3ee
- frontend/src/queries/nodes/DataVisualization/Components/Heatmap/heatmapUtils.ts:5 #E2E8F0
The application defines its own component under the same name as one the design system already ships. This happens for 11 of the 225 component names the design system exports, so an agent importing that name by convention can silently get the wrong implementation.
- common/hogvm/typescript/src/constants.ts DEFAULT
- docs/onboarding/logs/nextjs.tsx:140 GET
- frontend/src/queries/nodes/WebVitals/definitions.ts ICON
Not trialled.
The trial requires a system that can be installed from its own documentation into a clean scaffold. This one cannot be, because its package, @posthog/lemon-ui, is a 0.0.0 placeholder published in 2022 with no real dist. The system is consumable only inside the PostHog repository, so it cannot be installed from its own documentation into the trial scaffold. It keeps its row in the static index with that reason stated, per the standing rule.
Clone the repository at the revision above, point the instrument at the system directory, and the same numbers come out. The field manifest, the run script and the full payload this page was built from are committed beside it. Methods.