Skip to content

sfs report: colour figures along the website's Universal gradient - #16

Merged
squid-protocol merged 1 commit into
mainfrom
sfs-universal-gradient
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
sfs-universal-gradient

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Follow-up to #15. The HTML report now uses gitgalaxy.io's Universal Risk Spectrum (site/config/colors.js): the five stops interpolated continuously, the same in light and dark mode.

Each figure maps its values onto 0–100 so its data spans the whole spectrum, and its legend is the gradient bar labelled with the real value at each stop:

  • descent: % shared on a square-root scale (stops at 0/6/25/56/100%), so 5–20% sideways sharing (e.g. Eternity/Odamex picking up Chocolate code) is visible
  • profile: cohort rank of the distance (closest pair = red)
  • archetype mix: % of functions on a square-root scale

Tests: 34 passed, including real-scan parity on 8 DOOM scans; ruff is clean. I re-rendered the 44-port DOOM report and checked it.

🤖 Generated with Claude Code

Uses gitgalaxy.io's Universal Risk Spectrum (site/config/colors.js) as the
base: the five stops at 0/25/50/75/100%, interpolated continuously, the same
in light and dark mode. Each figure maps its values onto 0-100 so its data
spans the whole spectrum, and its legend is the gradient bar with the real
value at each stop:
- descent: % shared on a square-root scale (stops at 0/6/25/56/100%), so
  sideways borrowing in the 5-20% range is visible instead of one band
- profile: cohort rank of the distance (closest = red)
- archetype mix: % of functions on a square-root scale

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant