TRICKY CIRCUIT — Gray Code Changes One Bit, but a Stable Error Can Still Be Legal

EXTRACT FIRST
Save and extract the complete reader ZIP archive into a normal folder.
Open reader.html in a browser. article.html is the same complete lesson body.
Keep preview.css, assets/, data/ and evidence/ in their supplied locations.
The extracted lesson has no self-download link and needs no web server.

RUN THE COMPLETE EXPERIMENT
Use CPython 3.9 or later; the author's actual host runtime was 3.9.6.
The model and tests use only Python's standard library. From this folder:
python3 -B -m unittest discover -v
python3 -B gray_lab.py --width 3
python3 -B gray_lab.py --records data/constructed-adjacent.csv
python3 -B gray_lab.py --records data/constructed-stable-error.csv
python3 -B gray_lab.py --records data/constructed-skips.csv
python3 -B gray_lab.py --records data/blank-observations.csv

EXPECTED BEHAVIOR
The default width3 model lists eight legal words and24 directed one-bit flips.
The stable-error file deliberately receives111 twice, decoded as5 both times.
Its separately declared constructed truth is that position2 stayed fixed and
its correct011 had the leftmost bit flipped. The words alone do not reveal that truth.
Skipped sample indices are unrecorded intervals. A known000 is index0;
an unknown sample is an empty word with sample_state unknown, never000.
The blank worksheet has empty unknown cells, not measured zeros. Copy it first.
For a known entry fill exactly three binary digits, set sample_state known and
provenance reader_observation; record its actual origin separately.
Malformed, duplicate, out-of-bounds or empty rows fail rather than disappearing.

FILES
source-index.html and source-notes.json — checked primary sources and own derivations
reader-files.json — exact included file hashes (excluding itself)
gray_lab.py — full encoding/decoding, error cases and strict worksheet analysis
test_gray_lab.py — executable behavior, malformed-input and actual CLI tests
make_figures.py — original figure/data generator; optional PNG renderer noted below
build_reader.py — explicit owned-file archive builder, not a lesson command
assets/gray-paper-ring.svg and .png — original three-track paper geometry
assets/gray-legal-error-graph.svg and .png — complete one-bit adjacency/error graph
data/ring-positions.csv — eight calculated ring positions/angles/words
data/one-bit-errors.csv — all24 directed constructed single-bit cases
data/constructed-adjacent.csv — ordered neighbors including wrap
data/constructed-stable-error.csv — repeated wrong-but-legal received word
data/constructed-skips.csv — unrecorded indices and an explicit unknown word
data/blank-observations.csv — unknown cells to copy before your own work
evidence/ — actual host outputs and finite source/related-link checks

OPTIONAL FIGURE REBUILD
python3 -B make_figures.py always writes SVGs and the two calculated code tables.
For PNG rebuilding only, install resvg_py in your own environment if desired;
the supplied images are already rendered. No optional renderer is needed by the model.

LIMITS
These are original constructed paper/code examples, not a manufactured encoder,
a GPIO interface, a real timing measurement or a hardware error-correction system.
GPIO means general-purpose input/output; no such electrical interface is used here.
No physical test, target execution, firmware build or sensor calibration is claimed.
All third-party references are links and own notes; no manual or patent figure is bundled.
No advertising, affiliate link or account access is part of this reader.
