Skip to content

Commit 7d191a9

Browse files
committed
Remove Workers journey
1 parent 26596d3 commit 7d191a9

24 files changed

Lines changed: 81 additions & 203 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0
3838
- Deployment flow now regenerates embedded example data and asset fingerprints first.
3939
- `src/examples.py` is now a compatibility shim over Markdown example sources.
4040
- Output panels reserve space for execution timing to prevent layout shift after runs.
41+
- Removed the Workers journey and folded its runtime-boundary guidance into the affected examples' local notes.
4142

4243
### Fixed
4344

‎docs/example-quality-rubric.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Topic-specific gates:
2323
- **Broad surface tours** — if a title names a broad surface area (`Testing`, `Packages`, `Regular Expressions`, `Type Hints`, `Async Await`, `Special Methods`, `Operators`, `Literals`), the page must either cover the reader's reasonable expectations or clearly frame itself as a first pass and link to focused neighbors. A broad title with one narrow demonstration is a scope bug, not just a content gap.
2424
- **Reduce without distorting** — small examples are good only when the necessary boundary, contrast, or edge case remains visible. If compression removes the part that makes the concept understandable, split the example or add another cell.
2525
- **Map-or-split rule** — broad pages must either be surface maps with explicit categories and `See also` links, or be split into narrower pages. Do not ship a broad page that merely samples unrelated forms.
26-
- **Runtime-boundary examples** — when standard Python code cannot run in Dynamic Workers, teach the standard form first, state the runtime constraint once, and avoid repeated apology or caveat-heavy prose.
26+
- **Runtime-boundary examples** — when standard Python code cannot run in this site's live example runner, teach the standard form first, state the runner constraint once, and avoid repeated apology or caveat-heavy prose.
2727

2828
Release gates outside the score:
2929

‎docs/lessons-learned.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This document records project lessons that should guide future changes to Python
4343
- Beware broad-surface titles that quietly teach only one narrow slice. Pages named `Testing`, `Packages`, `Regular Expressions`, `Type Hints`, `Async Await`, or `Special Methods` must either cover the forms a reader reasonably expects or explicitly frame themselves as a first pass and link to focused neighbors.
4444
- Do not let an important syntax form live only in a separate page if another page title strongly implies it. An umbrella `Operators` page should at least point to and lightly show `:=`, even though `Assignment Expressions` remains the focused lesson.
4545
- Journey order should follow prerequisite thinking, not catalog order. Put booleans before truthiness and conditionals, scope before closures, bytes before networking, and environment boundaries before subprocess/thread boundaries.
46-
- Runtime-boundary caveats should not become the hero. For Dynamic Worker limitations, teach normal Python first and state the constraint once in the marked boundary cell.
46+
- Runtime-boundary caveats should not become the hero. For live runner limitations, teach normal Python first and state the site-specific constraint once in the marked boundary cell.
4747
- Algebrica's useful editorial principle is “reduce without distorting.” Python examples should be compact, but not so compressed that the concept loses its necessary contrast, edge case, or progression.
4848
- Broad examples need a visible learning arc. If a page reads like a tray of samples, either add a map-like progression or split it into narrower examples.
4949
- Keep teaching artifacts inspectable. Markdown sources, editable programs, teaching cells, expected output, and diagrams/screenshots should be clean enough to serve as public educational material, not just implementation input.
@@ -98,7 +98,7 @@ git diff --check
9898
- **Emphasis is scarce.** With site `--accent` saturated for UI use, a coral arrow on every line reads as no emphasis at all. `closed_arrow` defaults to `emphasis=False`; figures opt in only for the single element the prose names. Same rule for accent dots, gates, and ring highlights.
9999
- **Soft fills should be neutral, not accent-tinted.** A 5% warm-brown tint reads as a quiet container. An accent-tinted soft fill makes every object box look highlighted, which breaks the scarcity rule a second way.
100100
- **Two rubrics, one craft section.** Journey-section figures depict a *conceptual shift* across multiple lessons; example-cell figures depict the *single move* the surrounding cell discusses. `docs/journey-visualisation-rubric.md` and `docs/example-figure-rubric.md` score each on 10 points: content fidelity, craft, context. Topic gates per kind of section / cell shape.
101-
- **Constraint-shaped sections can improve when the constraint is drawn as a boundary, not a caveat.** Workers' runtime sections originally scored below target when the figure merely said an API was unavailable. They became rubric-complete once the diagrams showed the standard Python contract, the Worker boundary, and the portable evidence that preserves the lesson. If a constraint-shaped section cannot be reframed this way, then use the no-figure rationale registry instead of shipping a weak mechanism picture.
101+
- **Constraint-shaped material improves when the constraint is drawn as a boundary, not a caveat.** Runtime-boundary teaching works best when it shows the standard Python contract, the site-specific runner boundary, and the portable evidence that preserves the lesson. If a constraint-shaped section cannot be reframed this way, then use the no-figure rationale registry instead of shipping a weak mechanism picture.
102102
- **Authoring stays on the contributor; figures stay on the curator.** Example markdown does not include figure references. `src/marginalia.py` holds `FIGURES` (paint functions) and `ATTACHMENTS` (slug → cell → figure → caption). Curating figures is a single-file edit that contributors never see.
103103
- **Inline between prose and code is the production layout; banners between cells is the prototyped richer grammar.** Cells with figures drop to single-column stacking (prose, figure, code) via `.lp-cell.has-figure { grid-template-columns: 1fr }`. Cells without figures keep today's `prose | code` 2-column grid bit-for-bit. The banner-between approach (`/prototyping/layout-banner-*`) supports multi-figure small-multiples between cells when one inline figure isn't enough.
104104
- **Centralised gestalt pages catch drift that page-by-page review misses.** `/prototyping/marginalia-gestalt`, `/prototyping/journey-figures-gestalt`, and `/prototyping/production-figures-gestalt` show every figure in three different framings. Seeing all section figures of a journey in one 3-up row exposes inconsistencies invisible across six tabs.

‎docs/quality-registries.toml‎

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -555,48 +555,6 @@ outcomes = [
555555
"write deterministic tests with `unittest` or `pytest`",
556556
]
557557

558-
[journey_outcomes."workers::Replace unavailable process boundaries with portable evidence."]
559-
journey = "workers"
560-
section = "Replace unavailable process boundaries with portable evidence."
561-
support = [
562-
"virtual-environments",
563-
"subprocesses",
564-
"threads-and-processes",
565-
]
566-
outcomes = [
567-
"report stable environment facts instead of creating or depending on a local virtual environment",
568-
"show the command and `CompletedProcess` result shape",
569-
"compare thread and process executor boundaries",
570-
]
571-
572-
[journey_outcomes."workers::Keep network lessons local to the protocol boundary."]
573-
journey = "workers"
574-
section = "Keep network lessons local to the protocol boundary."
575-
support = [
576-
"bytes-and-bytearray",
577-
"networking",
578-
"async-await",
579-
]
580-
outcomes = [
581-
"show the text-to-bytes boundary that networking and subprocess APIs usually require",
582-
"make endpoint and byte-encoding boundaries visible without opening a socket",
583-
"show the supported coroutine model for I/O-shaped work in this environment",
584-
]
585-
586-
[journey_outcomes."workers::Preserve the lesson while respecting the runtime."]
587-
journey = "workers"
588-
section = "Preserve the lesson while respecting the runtime."
589-
support = [
590-
"logging",
591-
"testing",
592-
"context-managers",
593-
]
594-
outcomes = [
595-
"show operational output through a configurable Python API rather than shell output",
596-
"capture test-runner output so the page remains deterministic",
597-
"show cleanup boundaries that still apply when resources are represented abstractly",
598-
]
599-
600558
[score_model]
601559
# Criterion weights mirror docs/example-quality-rubric.md. The registry
602560
# makes the scoring model inspectable even before every example is broken

‎docs/quality-search.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Use these moves when a page is already close and the weakest criterion is clear:
1515
- **Add a before/after contrast** when the feature exists to remove boilerplate or clarify a shape.
1616
- **Add a runtime/static boundary cell** for typing pages where runtime behavior differs from type-checker behavior.
1717
- **Add a failure/recovery cell** for parsing, exceptions, warnings, and validation examples.
18-
- **Add a standard-Python/Worker-boundary unsupported cell** for runtime features constrained by Dynamic Workers.
18+
- **Add a standard-Python/runner-boundary unsupported cell** for runtime features constrained by this site's live example runner.
1919
- **Strengthen graph edges** with prerequisite, neighboring, and next-depth `see_also` links.
2020
- **Replace generic prose** with a concrete domain pressure: user input, package setup, protocol bytes, record shape, service logging, or state transition.
2121

@@ -58,5 +58,6 @@ Future improvements that create new quality headroom:
5858
- Add an authoring command that proposes the top three rewrite moves for a slug from the criterion deficits.
5959
- Add browser snapshots for representative low-score shapes, not only layout smoke.
6060
- Track page archetypes (`foundational`, `protocol-boundary`, `static-typing`, `aggregator`, `runtime-constrained`) so rubrics can apply the right expectations.
61+
- TODO: Design a future learner-facing journey about the limitations and adaptation choices in this site's editable examples, without framing those constraints as Cloudflare Workers platform limitations.
6162
- Add a no-figure review path to avoid weak diagrams for constraint-shaped pages.
6263
- Let CI post a quality delta comment for PRs: scores changed, graph edges changed, weak criteria changed.

‎docs/visual-explainer-spec.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ scored against `docs/journey-visualisation-rubric.md`. The same template
132132
is reused for every journey; figures are mapped via
133133
`JOURNEY_SECTION_FIGURES` in `scripts/build_prototypes.py`. Sections
134134
without a figure render as a heading + list with no figure column,
135-
which is the intended state for journeys still pending design (today,
136-
all three sections of the Workers journey).
135+
but production journeys are currently expected to have section figures.
137136

138137
### Why these two, not five
139138

‎public/prototyping/journey-figures-gestalt.html‎

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

‎public/prototyping/layout-banner-pair.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="prototype-banner"><strong>Prototype</strong> · One banner with two figures — list mutates, tuple does not. Same grammar, just more figures in the slot. · <a href="/prototyping/">all prototypes</a></div>
5151

5252
<article class="example-shell">
53-
<div class="example-top"><a class="text-link" href="/">← All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53+
<div class="example-top"><a class="text-link" href="/">↑ All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
5454
<section class="example-intro">
5555
<p class="eyebrow">Data Model</p>
5656
<h1>Mutability</h1>
@@ -76,7 +76,7 @@ <h1>Mutability</h1>
7676
<h2>Run the complete example</h2>
7777
<div class="runner-grid">
7878
<div class="runner-panel runner-editor">
79-
<h2>Example code</h2>
79+
<h3>Example code</h3>
8080
<pre><code class="language-python">first = [&quot;python&quot;]
8181
second = first
8282
second.append(&quot;workers&quot;)
@@ -94,7 +94,7 @@ <h2>Example code</h2>
9494
print(numbers)
9595
</code></pre>
9696
</div>
97-
<section class="runner-panel output-panel"><h2>Expected output</h2><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
97+
<section class="runner-panel output-panel"><h3>Expected output</h3><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
9898
[&#x27;python&#x27;, &#x27;workers&#x27;]
9999
python
100100
PYTHON

‎public/prototyping/layout-banner-single.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="prototype-banner"><strong>Prototype</strong> · Cells keep their prose|code grid; one figure sits in a banner row between cell 0 and cell 1. · <a href="/prototyping/">all prototypes</a></div>
5151

5252
<article class="example-shell">
53-
<div class="example-top"><a class="text-link" href="/">← All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53+
<div class="example-top"><a class="text-link" href="/">↑ All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
5454
<section class="example-intro">
5555
<p class="eyebrow">Data Model</p>
5656
<h1>Mutability</h1>
@@ -76,7 +76,7 @@ <h1>Mutability</h1>
7676
<h2>Run the complete example</h2>
7777
<div class="runner-grid">
7878
<div class="runner-panel runner-editor">
79-
<h2>Example code</h2>
79+
<h3>Example code</h3>
8080
<pre><code class="language-python">first = [&quot;python&quot;]
8181
second = first
8282
second.append(&quot;workers&quot;)
@@ -94,7 +94,7 @@ <h2>Example code</h2>
9494
print(numbers)
9595
</code></pre>
9696
</div>
97-
<section class="runner-panel output-panel"><h2>Expected output</h2><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
97+
<section class="runner-panel output-panel"><h3>Expected output</h3><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
9898
[&#x27;python&#x27;, &#x27;workers&#x27;]
9999
python
100100
PYTHON

‎public/prototyping/layout-banner-trio.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="prototype-banner"><strong>Prototype</strong> · Demonstrates that the grammar accepts multiple banners at any position: lead-in figure, mid-walkthrough small-multiple pair, summary figure. Cells never reflow. · <a href="/prototyping/">all prototypes</a></div>
5151

5252
<article class="example-shell">
53-
<div class="example-top"><a class="text-link" href="/">← All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53+
<div class="example-top"><a class="text-link" href="/">↑ All examples</a><a class="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
5454
<section class="example-intro">
5555
<p class="eyebrow">Data Model</p>
5656
<h1>Mutability</h1>
@@ -76,7 +76,7 @@ <h1>Mutability</h1>
7676
<h2>Run the complete example</h2>
7777
<div class="runner-grid">
7878
<div class="runner-panel runner-editor">
79-
<h2>Example code</h2>
79+
<h3>Example code</h3>
8080
<pre><code class="language-python">first = [&quot;python&quot;]
8181
second = first
8282
second.append(&quot;workers&quot;)
@@ -94,7 +94,7 @@ <h2>Example code</h2>
9494
print(numbers)
9595
</code></pre>
9696
</div>
97-
<section class="runner-panel output-panel"><h2>Expected output</h2><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
97+
<section class="runner-panel output-panel"><h3>Expected output</h3><pre><code>[&#x27;python&#x27;, &#x27;workers&#x27;]
9898
[&#x27;python&#x27;, &#x27;workers&#x27;]
9999
python
100100
PYTHON

0 commit comments

Comments
 (0)