# Deviations from the pre-registration

`PRE-REGISTRATION.md` was written at 11:58 on 24 November 2026, before any run.
This file records every way the work departed from the registered design, when,
and why.

It exists because a pre-registration that is quietly edited afterwards is worse
than none. An independent audit session compared the two and found **seven**
deviations, listed below, including three that were my own omissions. A later
pass by the same session found an eighth, item 8, which is the most serious
because an earlier version of this paper asserted the opposite of the truth.

## 1. Control 2 was registered as required and was not implemented

**Registered:** "all four required per cell", control 2 being a filter for an
owner with no documents, which must return empty.

**First run:** not implemented anywhere in `bench.py`.

**Closed:** `bench2.py` runs it per cell against a constructed owner value
(`no-such-owner-7f3a`), and a cell whose negative control returns rows is scored
`void_negative_control_failed` rather than reported. No cell failed it.

## 2. Index states were registered as binding and were not run

**Registered:** documents added after the index was built, an owner changed from
one value to another and back, and a deleted document.

**First run:** steady state only, on a freshly built static index.

**Closed:** all four states run as their own cells in `bench2.py`. Chroma
honoured the filter in every one. The owner-change cells report the moved
document separately, because ground truth for that id is deliberately stale and
including it in the leak judgement would score a correct result as a leak.

## 3. Per-document coverage was registered and never computed

**Registered:** report the fraction of foreign documents that appeared in at
least one unfiltered result, because a document never retrieved unfiltered was
never tested.

**First run:** every cell used one query, so at most about 4% of the 180 foreign
documents could have been reached, and the figure was not reported at all.

**Closed:** `coverage.json` reports it per cell. **It is low: 4.4% to 18.9%.**
That is a real limit on the strength of every `honoured` in this paper and it is
stated in section 07 rather than buried here.

Only partly closed, in fact: the five queries exist in the harness but **only the
Chroma direct cell runs more than one.** Every wrapper, llama-index, LanceDB and
index-state cell still uses the first query, which is why they sit at 4.4 to 6.1
per cent.

## 4. Call-form provenance was asserted and not open to inspection

**Registered:** forms drawn from "each library's documentation and examples, and
the most cited tutorials and issues".

**What happened:** `call-forms.md` was written from `inspect.signature`, which is
the library's own declaration and is defensible, plus cross-dialect forms I
constructed myself. It also cited `data/signatures.json`, **which did not
exist.** That is provenance asserted without being opened, which is a documented
failure pattern of mine.

**Closed:** `signatures.json` is now written by `bench2.py` before any cell runs,
holding the signature and docstring head of every call path plus all pinned
versions. `call-forms.md` says the forms are declaration-derived and
author-constructed, and claims no tutorial survey, because none was done.

## 5. "Every form on it is run" was not true

**Not run in the first pass:** MMR with `filters=`, the `by_vector` form, the
retriever with `search_type="mmr"`, the with-score path, and any degenerate form
on the MMR or retriever paths.

**Consequence, which is the serious part:** the self check claimed eight
degenerate forms "on every backend". That was true per backend and **false per
path.** The relaxed control 4 introduced for re-ranking paths had therefore never
been shown capable of failing on the paths it governs.

**Closed:** 19 degenerate forms now run across seven distinct call paths, four of
them on `max_marginal_relevance_search` and four on the retriever. All scored
`unknown` or `rejected`. The self-check table in section 03 is reported per path.

Still not run, and stated as scope rather than closed: LanceDB under either
wrapper, hybrid search, and qdrant local mode, which is an emulator and excluded
from the results for the reason in section 05.

## 6. Control 4 was relaxed after seeing results

**Registered:** the filtered result must return the documents the unfiltered
ranking owed, by id.

**Changed, after the first run:** split into an exact-set rule for
ranking-preserving paths and a full-length-and-no-foreign rule for re-ranking
paths.

**Why it is legitimate:** MMR exists in order not to return the similarity top k.
The original rule asked MMR to do the opposite of its purpose and scored two
correct cells as suspicious. Section 08 has the full account.

**Why it is still a deviation:** it was decided after seeing data, which is
exactly the move pre-registration exists to prevent. Mitigations: the relaxed
rule is applied only where the path re-ranks, a short result still scores
`unknown` under both rules, and deviation 5 means the relaxed rule now faces
degenerate forms on the paths it governs and refuses them. The mitigation that
was claimed and did not exist is item 8.

## 7. Positive control for the MMR cells used the wrong path

**Registered:** the control is the same call path with only the filter removed.

**First run:** the MMR cells were controlled against the `similarity_search`
ranking.

**Closed:** each path is now controlled against itself, unfiltered, including
unfiltered MMR and unfiltered retriever calls.

## 8. The first run was not preserved, and this file said it was

**What was claimed, here and in the paper:** that the first run's output was kept
unedited as `results-run1-exact-control4.json`, so a reader could see the stricter
rule's verdicts for themselves.

**What was true:** `results.json` was overwritten by a later run of the same
script. The file published under that name was a **byte-identical copy of the
later output**, written four minutes after it, already carrying the relaxed rule
with MMR scored as applied. It was evidence of nothing and it contradicted the
claim it was offered as support for.

**Found by:** the independent audit session, with `cmp` and the file timestamps.
It is my pattern of asserting provenance without opening the artefact, which is
the fourth time.

**Closed by:** removing the file rather than leaving it to look like evidence,
correcting this entry and sections 07 and 08, and retyping the affected ledger row
as an assumption because the artefact that would have made it own-data is gone.

## 9. Three of the four index-state cells could not have failed

**Registered and run,** but the audit established that only one is informative:
the document chosen for the owner-change cells was picked by corpus order and
ranked 201st of 240, so it could not appear in a top-10 result either way, and the
delete cell removed **foreign** documents while querying with the **subject's**
filter, so a surviving document would have been withheld regardless.

**Closed by** reporting them as uninformative in sections 03 and 05 rather than as
four honoured results, and naming the corrected design, mutating documents drawn
from the unfiltered top k and deleting the subject's own, as the next bench.

## Corpus corrections

- The corpus draws on **21 articles**, not the 30 fetched. Nine yielded no
  paragraph in the length window. An earlier draft said 30; 30 is the source
  list, 21 is what is in the data.
- The per-owner bound holds but the figure was wrong. The largest share of one
  owner's paragraphs from a single article is **18.3%**, not the 13.8% an earlier
  draft gave, which was the largest share across the whole corpus and answered a
  different question than the assertion asks. The registered limit is 35%.
- `data/gutenberg-11.txt` was a saved HTTP 503 page from the abandoned first
  attempt at a source, and was deleted rather than shipped as if it were text.
  Its body read "Temporarily Down for Maintenance", so the correct description is
  a maintenance outage, not a refusal of automated fetches as an earlier draft
  said.

## Versions

`langchain-core` was used but not pinned in the first pass, which matters because
the retriever lives there. All versions, `langchain-core` included, are now in
`signatures.json` and section 07.
