feat(website): add visuals to the guides and lighten the Contributors page (#17138)

Request contributor avatars at twice their display size instead of full
size, which cuts the Contributors page's first load from about 6.5 MB to
1 MB, and test that every avatar asks for that size.

Show the % handler REA recovered in step 2 of the homepage Calculator
example instead of hiding it, drop the jargon caption and shorten the
calculator display.

Add a four-step "From your question to an answer" diagram to the three
beginner guides, put the TH09 figure in the models blog post, and add an
illustration under the introduction of "What is reverse engineering?",
"New to AI agents?" and the models post.

Lay out any four-step diagram in one row with a single rule, replacing two
page-specific rules, and keep the article text width from narrowing
figures. Remove the stripe on the language suggestion and the nested box
around the beginner's-guide link, and load the CTF and TH04 diagrams lazily.

All new text is translated into the 26 site languages.
This commit is contained in:
morluto authored and GitHub committed 2026-12-05 11:31:43 -05:00
1 parent 4fefe9a457
commit eccf55555a
42 files changed
+20931 -13828

No files matched your search

+4 -1
View File
@@ -16,7 +16,7 @@ import unittest
from unittest.mock import patch
from http.server import ThreadingHTTPServer
from urllib.error import HTTPError
from urllib.parse import urljoin, urlsplit
from urllib.parse import parse_qsl, urljoin, urlsplit
from urllib.request import build_opener, ProxyHandler, urlopen
import xml.etree.ElementTree as ET
@@ -433,6 +433,9 @@ class WebsiteMaintenanceChecks(unittest.TestCase):
self.assertEqual([node.attrs["data-contributor"] for node in cards], ["Amber", "beta", "Zulu"])
links = [node.attrs["href"] for node in doc.nodes if node.attrs.get("class") == "contributor-card"]
self.assertCountEqual(links, [person["html_url"] for person in people])
avatars = [node.attrs["src"] for node in doc.nodes if node.tag == "img"]
self.assertTrue(avatars)
self.assertTrue(all(dict(parse_qsl(urlsplit(src).query)).get("s") == "112" for src in avatars))
self.assertEqual(WEBSITE.sync_pages(root), [])
translated_units = [unit[1] for unit in prose_units(source, "contributors/index.html")]
for person in people:
+11 -2
View File
@@ -15,7 +15,7 @@ import subprocess
import sys
import tempfile
from textwrap import indent
from urllib.parse import quote, urlsplit
from urllib.parse import parse_qsl, quote, urlencode, urlsplit, urlunsplit
from zipfile import ZIP_DEFLATED, ZipInfo
@@ -104,6 +104,14 @@ def ranked_contributors(data):
return sorted(data["contributors"], key=lambda person: (-person["commits"], person["login"].casefold()))
def sized_avatar(address, size):
"""Ask GitHub for an avatar at display size instead of its full upload."""
url = urlsplit(address)
query = dict(parse_qsl(url.query))
query["s"] = str(size)
return urlunsplit(url._replace(query=urlencode(query)))
def contributor_block(root):
"""Render equal-sized profile links from the checked GitHub snapshot."""
path = root / "website/public/contributors/people.json"
@@ -112,7 +120,8 @@ def contributor_block(root):
for person in ranked_contributors(data):
login = escape(person["login"], quote=True)
profile = escape(person["html_url"], quote=True)
avatar = escape(person["avatar_url"], quote=True)
# Shown at 56 CSS pixels; 112 covers high-density screens.
avatar = escape(sized_avatar(person["avatar_url"], 112), quote=True)
cards.append(
f' <li data-contributor="{login}"><a class="contributor-card" href="{profile}">\n'
f' <img src="{avatar}" alt="" width="56" height="56" loading="lazy" decoding="async" referrerpolicy="no-referrer" />\n'
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

+19 -16
View File
@@ -672,6 +672,16 @@ pre code {
.page-heading {
padding-block: 4.3rem 2.7rem;
}
/* An illustration under the introduction of a guide or post. */
.page-art {
display: block;
width: 100%;
max-width: 850px;
height: auto;
margin-top: 2.2rem;
border: 1px solid var(--line);
border-radius: 12px;
}
.page-heading h1 {
max-width: 850px;
font-size: clamp(2.6rem, 5.5vw, 4.25rem);
@@ -818,7 +828,7 @@ pre code {
.article :where(p, li) {
color: var(--article-text);
}
.article :where(p, ul, ol, dl) {
.article :where(p, ul, ol, dl):not(figure *) {
max-width: 60ch;
}
.article .stats {
@@ -1461,11 +1471,9 @@ pre code {
color: var(--ink);
font-size: 0.9rem;
}
.notion-bridge-flow {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.th04-flow {
.flow-steps:has(> li:nth-child(4):last-child) {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.6rem;
}
.th04-overview {
margin-bottom: 3.2rem;
@@ -1710,13 +1718,8 @@ pre code {
}
/* Newcomers see the step-by-step guide before the shortcuts below it. */
.home-setup-agent > .home-expert-shortcut {
margin: 0.75rem 0 1.25rem;
padding: 0.75rem 1rem;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--tint);
margin: 0.5rem 0 1.25rem;
color: var(--ink);
font-size: 0.9rem;
}
.home-expert-shortcut a {
display: block;
@@ -2364,7 +2367,7 @@ pre code {
background: var(--soft);
}
.percent-display {
padding: 1.2rem;
padding: 0.9rem 1.2rem;
margin-block: 1rem;
border-radius: 4px;
background: var(--soft);
@@ -2378,7 +2381,9 @@ pre code {
font-size: 0.9rem;
}
.percent-display strong {
display: block;
font-size: 3rem;
line-height: 1.1;
font-weight: 500;
letter-spacing: -0.04em;
}
@@ -2635,8 +2640,7 @@ pre code {
grid-template-columns: 1fr;
}
.flow-steps,
.notion-bridge-flow,
.th04-flow {
.flow-steps:has(> li:nth-child(4):last-child) {
grid-template-columns: 1fr;
gap: 2rem;
}
@@ -3039,8 +3043,7 @@ body:has(.language-suggestion) .back-to-top {
margin-inline: auto;
padding-block: 0.35rem;
padding-inline: 1.1rem 0.35rem;
border: 1px solid var(--line);
border-inline-start: 2px solid var(--accent);
border: 1px solid var(--line-strong);
border-radius: 6px;
background: var(--page);
box-shadow: 0 5px 20px rgb(32 37 43 / 8%);
@@ -262,6 +262,14 @@
</li>
</ul>
</div>
<img
class="page-art"
src="../../assets/art/reverse-engineering-models.jpg"
width="1600"
height="900"
alt=""
decoding="async"
/>
</div>
<div class="article-layout">
<nav class="contents" aria-label="On this page">
@@ -336,6 +344,31 @@
matched</strong
>.
</p>
<figure class="workflow-figure">
<p class="figure-title">One TH09 function, two models</p>
<ol class="flow-steps">
<li>
<span class="flow-label" translate="no">GPT-6-Sol</span
><span class="flow-node">Record the mismatch</span
><span class="flow-note"
>Temporary results were stored differently from the
original.</span
>
</li>
<li>
<span class="flow-label" translate="no">GPT-6.1-Sol</span
><span class="flow-node">Keep the values alive together</span
><span class="flow-note"
>A new hypothesis about how long they had to live.</span
>
</li>
<li>
<span class="flow-label">Compiler</span
><span class="flow-node">Clean rebuild</span
><span class="flow-note">The full function matched.</span>
</li>
</ol>
</figure>
<p>
What interests me is how the discovery and the tests worked
together. The lifetime hypothesis gave the agent a new direction;
File diff suppressed because it is too large. Load diff
@@ -229,6 +229,14 @@
AI assistant that can work on your computer. This page explains what
that means and how to start.
</p>
<img
class="page-art"
src="../../assets/art/new-to-ai-agents.jpg"
width="1600"
height="900"
alt=""
decoding="async"
/>
</div>
<div class="article-layout">
<nav class="contents" aria-label="On this page">
@@ -326,6 +334,40 @@
gives it the tools to look inside apps, games and websites, and to
show the evidence behind each answer.
</p>
<figure class="workflow-figure">
<p class="figure-title">From your question to an answer</p>
<ol class="flow-steps">
<li>
<span class="flow-label">You</span
><span class="flow-node">Ask a question</span
><span class="flow-note"
>In plain words, about an app, game or website.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Decides what to check</span
><span class="flow-note"
>Codex, Claude Code, OpenCode or another agent.</span
>
</li>
<li>
<span class="flow-label">REA</span
><span class="flow-node">Looks inside the app</span
><span class="flow-note"
>It reads files and machine instructions, or records what a
website does, on your computer.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Answers you</span
><span class="flow-note"
>With the evidence REA found, so you can check it.</span
>
</li>
</ol>
</figure>
<ol>
<li>
<strong>Install an agent and sign in.</strong> The setup guide
@@ -277,6 +277,40 @@
does, all on your own computer.
</li>
</ul>
<figure class="workflow-figure">
<p class="figure-title">From your question to an answer</p>
<ol class="flow-steps">
<li>
<span class="flow-label">You</span
><span class="flow-node">Ask a question</span
><span class="flow-note"
>In plain words, about an app, game or website.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Decides what to check</span
><span class="flow-note"
>Codex, Claude Code, OpenCode or another agent.</span
>
</li>
<li>
<span class="flow-label">REA</span
><span class="flow-node">Looks inside the app</span
><span class="flow-note"
>It reads files and machine instructions, or records what a
website does, on your computer.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Answers you</span
><span class="flow-note"
>With the evidence REA found, so you can check it.</span
>
</li>
</ol>
</figure>
</section>
<section class="article-section" id="examples">
<h2>What it can work out</h2>
@@ -228,6 +228,14 @@
Reverse engineering means working out how something works by studying
the finished thing, without the original plans.
</p>
<img
class="page-art"
src="../../assets/art/what-is-reverse-engineering.jpg"
width="1600"
height="900"
alt=""
decoding="async"
/>
</div>
<div class="article-layout">
<nav class="contents" aria-label="On this page">
@@ -358,6 +366,40 @@
>Read how reverse engineering with AI works</a
>.
</p>
<figure class="workflow-figure">
<p class="figure-title">From your question to an answer</p>
<ol class="flow-steps">
<li>
<span class="flow-label">You</span
><span class="flow-node">Ask a question</span
><span class="flow-note"
>In plain words, about an app, game or website.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Decides what to check</span
><span class="flow-note"
>Codex, Claude Code, OpenCode or another agent.</span
>
</li>
<li>
<span class="flow-label">REA</span
><span class="flow-node">Looks inside the app</span
><span class="flow-note"
>It reads files and machine instructions, or records what a
website does, on your computer.</span
>
</li>
<li>
<span class="flow-label">Your agent</span
><span class="flow-node">Answers you</span
><span class="flow-note"
>With the evidence REA found, so you can check it.</span
>
</li>
</ol>
</figure>
<ul class="reading-list">
<li>
<a href="../../first-investigation/">Try it on a small app</a
+15 -18
View File
@@ -1109,6 +1109,20 @@ SPEED: 6</code></pre>
REA helps the agent read the code behind the % button. It
applies two different rules:
</p>
<div class="code-block">
<div class="code-header">
<span>Readable summary of the % handler</span>
</div>
<pre><code>if (operation == multiply || operation == divide) {
percent = current / 100;
} else {
<span class="code-key">percent = current * previous / 100;</span>
}</code></pre>
</div>
<p>
For this example, <code>previous = 200</code> and
<code>current = 10</code>.
</p>
<dl class="percent-rules">
<div>
<dt>With +</dt>
@@ -1186,28 +1200,11 @@ SPEED: 6</code></pre>
<p class="percent-status" data-percent-status role="status">
10% of 200 = 20. Then 200 + 20 = 220.
</p>
<figcaption>
Interactive illustration of the inspected percentage rule.
</figcaption>
</figure>
</div>
</div>
<details class="home-evidence-details">
<summary>See the real code and how the answer was checked</summary>
<p>
For this example, <code>previous = 200</code> and
<code>current = 10</code>.
</p>
<div class="code-block">
<div class="code-header">
<span>Readable summary of the % handler</span>
</div>
<pre><code>if (operation == multiply || operation == divide) {
percent = current / 100;
} else {
<span class="code-key">percent = current * previous / 100;</span>
}</code></pre>
</div>
<summary>See how the answer was checked</summary>
<figure class="workflow-figure calculator-trace">
<p class="figure-title">
From the installed app to a working % button
+1
View File
@@ -421,6 +421,7 @@ analyze_function
width="760"
height="475"
alt="The seventh mask skips 21 cells, selects position 21, then skips 14. Only that cell contributes to the sum. Its required character code is 55, which means the character is 7."
loading="lazy"
decoding="async"
/>
</div>
+1 -1
View File
@@ -234,7 +234,7 @@
<figure class="workflow-figure">
<p class="figure-title">The bridge inside Notion's desktop package</p>
<ol class="flow-steps notion-bridge-flow">
<ol class="flow-steps">
<li>
<span class="flow-label">01 · Page-facing API</span>
<span class="flow-node"><code>clipboard.write(data)</code></span>
+2 -1
View File
@@ -238,7 +238,7 @@
<figure class="workflow-figure th04-overview">
<p class="figure-title">From original instructions to checked source</p>
<ol class="flow-steps th04-flow">
<ol class="flow-steps">
<li>
<span class="flow-label">01 · Original game</span
><strong class="flow-node">MAIN.EXE</strong
@@ -341,6 +341,7 @@
width="1000"
height="520"
alt="Two diagrams of a 16-bullet ring. The fixed ring starts at angle zero. Adding a player direction of 40 rotates every direction by the same amount; the highlighted first bullet points toward the player. Both keep a spacing of 16 angle units, or 22.5 degrees."
loading="lazy"
decoding="async"
/>
</div>