# Focus-ticket test: registration (amendment 5 to the observer experiment)

Fixed on 2026-11-12T13:15:13Z, before any focus ticket exists and before any result of the
reading-quality benchmark (THRESHOLDS_20261112.md) exists. The six lotteries already in the
experiment (Lotto 6/49, Powerball, Mega Millions, EuroMillions, Eurojackpot,
SuperEnalotto); main numbers only. Every earlier test (observed vs sealed, AI arm vs
sealed, their secondaries) is unchanged.

## Hypothesis
The focused attention of many observers (three AI models observing it three times, and
the visitors of drawsense.ai) on one ticket before a draw changes how many of its
numbers are drawn.
Null: the ticket chosen as focus matches, in expectation, the same as the other
candidates it was chosen from.
Scope: the observers are told the hypothesis and see each other's observations and the
visitor count. A detection would be an effect of this shared, informed attention, not of
independent observers. Testing the observers' conditions separately would be a new study.

## Design
1. Candidates. In the AI arm reading (whose prompt is unchanged by this amendment), each
   eligible model names one "wish" ticket per batch of 100. A candidate slot exists for a
   batch when the model's answer parses as JSON and its "wish" field names a line number
   of that batch; otherwise that slot is absent. Slots are ordered by model (in the
   registered model order), then by batch. Duplicate tickets are separate slots. n = the
   number of slots (at most 3 models x 10 batches = 30). Eligible models are those that
   pass the reading-quality thresholds fixed in THRESHOLDS_20261112.md.
2. The lot. T_lot = the draw's scheduled start minus 24 hours. R = drand round
   ceil((T_lot - 1595431050) / 30) + 1 of the League of Entropy default chain (chain hash
   8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce), i.e. the first round
   published at or after T_lot. It is fixed by the draw schedule alone, so nobody can
   choose it. Every model's reading receipt must be stored in Supabase before T_lot; only
   the first receipt stored for a draw is used.
   focus index = int(SHA-256(R's randomness + "," + the receipt's transcript_sha256
   values in model order, joined by ","), 16) mod n; the focus is that slot.
   Anyone can recompute the lot from the receipt and the public beacon round.
3. Focus. The focus ticket, its slot index and the lot inputs are stored in Supabase
   (tier observer_focus) and shown on the lottery's page until the draw starts, with a
   count of distinct visitors who viewed it for at least 3 seconds. The focus is one of the
   AI arm's tickets, so that one ticket is seen by people before the draw; the AI arm test
   is otherwise unchanged. The other candidates stay hidden until the draw and are
   revealed with the AI arm.
4. Observations. At 6 h, 3 h and 1 h before the draw starts, each eligible model observes
   the focus ticket with the prompt whose template has SHA-256
   9ad1ab1bf489461850f84c85bde84a47010d60eedf8428521842cfa920d2ab8f (SHA-256 of the system
   message, a newline, and the source of focus_prompt in observer_focus.py). Each
   observation sees every earlier observation of every model and the visitor count so far.
   It copies the ticket's numbers, gives a statistical observation and a one-sentence
   wish. Every observation is stored with a Supabase receipt. The prompt is not changed
   after the first counted draw.

## Primary endpoint and test
For counted draw d with n slots and matches K_1..K_n (computed per slot, duplicates
included):
    z_d = (K_focus - mean(K)) / sd(K)        (mean and population sd over the n slots)
z_d = 0 when every slot has the same matches; such a draw still counts.
Under the null, because the focus slot is uniform given the slots and the draw, z_d has
mean 0 and variance 1 exactly and |z_d| <= sqrt(n-1) <= sqrt(29).

Test: two-sided betting e-process (Waudby-Smith and Ramdas 2024),
    E_t = mean over lambda in {-0.1, -0.05, -0.025, 0.025, 0.05, 0.1} of prod_{d <= t} (1 + lambda * z_d).
Each factor is nonnegative for every n <= 30, because |lambda * z_d| <= 0.1 * sqrt(29) < 1,
so E_t is a nonnegative martingale under the null. Checked after every counted draw.
Effect detected when E_t >= 20 (false-alarm rate <= 5 % at any time, Ville's inequality).
Maximum: N_max = 3,640 counted draws (5 years at 14 draws a week). The direction is
reported, not tested separately.

Simulated (focus_sim.py, SHA-256 bb2f79929503e2f3818519880b3f6584a2dfd763a34737c342e2205b8e349c87, 600 runs per line):
    no effect:              reached 20 in 3.7 % of runs (+/- 0.8 %)   <- false-alarm rate, below 5 %
    focus matches +5 %:     reached 20 in 32.5 % of runs (median 2,142 draws when reached)
    focus matches +10 %:    reached 20 in 91.8 % of runs (median 1,364 draws, 80th percentile 2,323)
A wider grid of 12 lambda values (+-0.005 ... +-0.16) was also simulated and had less power
(23.7 % and 90.5 %); the narrower grid above was chosen on simulations alone, before any data,
and is not changed afterwards.

Power, stated in advance: about 92 % for a +10 % effect on the focus ticket's matches,
about 32 % for +5 %, and less for smaller effects. A run that ends without detection
does not rule out a +5 % effect; it gives only the upper bound below.

Upper bound if N_max is reached without detection: the 95 % confidence sequence for the
average of the per-draw means of z_d, from the same bets as the test,
    CS_t = { mu : mean over the same six lambdas of prod_{d <= t} (1 + lambda * (z_d - mu)) < 20 },
computed on a grid of mu in steps of 0.001. Its largest value mu_hi is converted to a
relative change in matches as mu_hi * mean_d sd(K_d) / mean_d mean(K_d). The bound is
reported as approximate when the effect could differ between lotteries.

## Which draws count
A draw counts when: the AI arm commitment verifies; every eligible model's reading
receipt is stored before T_lot; drand round R is available; n >= 10; the focus row's
Supabase time is at least 6 hours before the draw starts. Analysis is intention to treat:
a counted draw stays counted if an observation fails or nobody visits. Every draw, counted
or not, is reported with the reason, including beacon outages, by lottery and date.

## Secondary, exploratory (Holm correction across these four, family alpha 0.05)
1. z_d by lottery.
2. z_d by the model whose wish became the focus.
3. Number level: over all numbers of a draw, the correlation between attention received
   (how many slots and observations include the number) and being drawn, against its
   exact permutation distribution. Its null is that the drawn numbers are exchangeable
   with respect to attention, not the uniform lot of the primary test.
4. The focus ticket against the mean of the sealed arm of the same draw.
Described, not tested: the Spearman correlation between z_d and the distinct visitor count
before the draw. Observations are fixed at 9 per draw, so only visitors vary, and visitor
numbers can depend on the focus ticket and on site traffic. This is not a dose-response
test and has no causal reading.

Robustness of any detection: leave-one-lottery-out and leave-one-model-out (by whose wish
became the focus). A detection that disappears when one lottery or one model is removed is
reported as unstable.

## What this design controls
- The models' number preferences: the focus and its controls are chosen the same way; only
  the lot and the focused attention differ.
- Any physical bias of a draw machine: it affects focus and candidates alike.
- Any memory of past draws or any above-chance skill in the models' picks (see
  CONFIRMATORY_20261111.md): it raises every candidate, so it cancels in z_d.
- The operator's timing: the beacon round is set by the draw schedule; a reading that is
  late, failed or redone cannot change which round is used, only whether the draw counts,
  and that is decided before the round exists.

## Published with this text
focus_sim.py (the simulation above), THRESHOLDS_20261112.md (model eligibility), and the
code in observer_focus.py and observer_experiment.py (focus_score, focus_pooled).

## Changes
Any change after the first counted focus draw is reported as a deviation, with its date
and reason, and the primary analysis is also reported as registered here.

### Amendment 6, 2026-11-15T22:39:52Z, before any focus ticket existed
No model passed THRESHOLDS_20261112.md as first fixed, so this test never started. After
seeing the benchmark results, criterion 3a was lowered from 50 % to 45 % (reasons in
THRESHOLDS_20261112.md, Amendment 6). Gemma 4 31B is now the only eligible model and the
only AI observer; the test starts at the amendment time (FOCUS_START).

What this changes above:
- Candidates: at most 1 model x 10 batches = 10 slots, and n >= 10 still applies, so a draw
  counts only if all 10 batches give a valid wish. The bound |lambda * z_d| <= 0.1 * sqrt(9) < 1
  still holds, so E_t stays a nonnegative martingale.
- Observations: 3 per draw (one model at 6, 3 and 1 h), not 9.
- Leave-one-model-out and secondary analysis 2 (by whose wish became the focus) are not
  possible with one model and are dropped.
- Draws whose AI arm was read before this amendment, by the removed models, have no
  Gemma 4 31B candidates; they are reported as not counted (0 candidates).

Power with 10 candidates (focus_sim_n10.py, SHA-256 7d971be512dcbb6c78e6f79e83e53fa9c4e0ef60937b9ae531114dfa8c7120a7, same code as focus_sim.py with
N_CAND = 10 and only the registered narrow grid; 600 runs per line):
    no effect:              reached 20 in 3.5 % of runs (+/- 0.8 %)
    focus matches +5 %:     reached 20 in 30.7 % of runs (median 1,994 draws when reached)
    focus matches +10 %:    reached 20 in 88.7 % of runs (median 1,519 draws, 80th percentile 2,418)
The stated power is therefore about 89 % for +10 % and 31 % for +5 %, assuming every draw
counts; draws lost to a failed batch lower it.

### Visitor-count note, 2026-11-16T14:19:07Z

A security review found that the visitor counters accepted any random viewer ID, so one client could inflate the
counts shown to the observer model and used in the visitor analysis. From this time the site counts at most 3
viewer IDs per IP address per lottery and draw (observer and focus views) and at most 5 per IP per day (site
visits). Each counted row stores a keyed hash of the IP, never the IP itself. Counts before this time had no such
limit. The visitor analysis is descriptive and the primary test does not use visitor counts.

### Amendment 7, 2026-11-26T01:39:11Z, presentation only
The experiment moved to its own pages on the site (/observer and /observer/<lottery>). The focus
ticket is still shown on the lottery's page until the draw starts, as Design step 3 requires, now
below the site's offers, and also on /observer/<lottery>; its visitor count works as before. The
observed tickets of the original experiment are now shown on /observer/<lottery> instead of the
lottery page. Nothing in the tests, thresholds, models, prompts or counted-draw rules changes, and
publication is still checked from the Supabase rows. Visitor numbers may change with the new
placement; the described (not tested) Spearman correlation with visitor counts should be read with
this date in mind.

### Amendment 8, 2026-11-26T14:04:51Z, input data only
DrawSense's strategy code was corrected. Cluster Center kept only the smallest numbers on every
draw (it sorted its candidates by value before keeping six); it now keeps the cluster-rank order
and, for the 5-ball games, counts the main balls only. Strategies that produced identical
combinations are now made distinct, and bonus numbers are spread across strategies instead of
all taking the same one. The strategy predictions listed in the AI prompt therefore change from
the next generated draw. The prompt text, the models, the tests, the thresholds and the
counted-draw rules do not change.

### Amendment 9, 2026-11-26T14:16:45Z, input data only
For Powerball, Mega Millions, EuroMillions and EuroJackpot, DrawSense's strategy engine now
analyses the 5 main balls only. It had treated the bonus ball (or first star) as a sixth main
number in every frequency, overdue, ML and backtest calculation, which inflated the small numbers.
The strategy predictions listed in the AI prompt therefore change from the next generated draw.
The prompt text, the models, the tests, the thresholds and the counted-draw rules do not change.
