This release is a pre-release and may not be stable for production use.
editscreen
Given a knowledge edit and an evaluation probe, does the probe identify the edited subject?
If it does, a score on that item is not evidence that the edit propagated. The model can reach the answer by recalling what was just written into it, with no propagation having occurred at all.
from editscreen import Edit, screen
screen(Edit(subject="Henry Mackenzie"),
"Henry Mackenzie was born in the country of").level
# <Level.STRICT: 1>
screen(Edit(subject="Henry Mackenzie"),
"The capital of France is").level
# <Level.CLEAN: 0>
$ editscreen mydata.json
editscreen 0.1.0 — 5 items
CLEAN 2
STRICT 2 subject's own surface form in the probe
ALIAS 1 a name variant only
contaminated at STRICT or above: 60.0%
by declared test type:
one-hop 3/3 100.0%
two-hop 0/2 0.0%
This release is not validated yet
0.1.0a1. The matchers run, the tests pass, and nobody has measured how often they are wrong. The hand-labelled set that would give a precision and a recall is not built, so no contamination rate produced by this version should be quoted.
That is the next piece of work and it is the one that matters. A screen that reports what it found without reporting how often it is mistaken is asking to be believed rather than checked.
What it does not do
It does not load a model, compute a gradient, or apply an edit. Contamination is a property of how the evaluation item was written, not of how the weights were changed — so the answer is the same whether the edit came from ROME, MEMIT, fine-tuning or a person typing it. Core has no dependencies beyond the standard library.
It also does not tell you your score was inflated. It cannot: it never sees your scores. It hands back the item ids, and you split your own results:
report.ids() # items that name the subject
report.ids(at_or_above=False) # items that do not
Whether your number moves when you drop the first set is a question about your experiment, and it stays yours.
The levels
CLEAN |
nothing in the probe points at the edited subject |
STRICT |
the subject's own surface form occurs in the probe |
ALIAS |
a name variant occurs — a surname alone, a given name, a supplied alias |
IDENTIFIABLE |
no name occurs, but a description picks the subject out anyway |
STRICT is a lower bound, and that is why it is the headline. Everything it finds is really there. It misses every item that identifies the subject some other way, so the true rate is higher than the reported one, never lower.
IDENTIFIABLE is not implemented. "The author of The Man of Feeling was born in" names Henry Mackenzie without containing his name, and detecting that needs a knowledge base or a model. When it lands it will ship as an optional extra and its number will stay in its own column, never folded into the headline — a disputed headline rate would cost more than the extra coverage is worth.
Known failure modes
Stated here rather than discovered by a reader:
- Derived name variants are Western-name-shaped. Splitting on whitespace into given and family parts under-fires on names that do not work that way. Pass
aliases=to cover what it cannot derive. - Family names that are also common words fire. "Bush", "Rice", "Baker" — the main source of derived false positives.
- Pronouns are invisible. A probe saying "he" after a subject named in an earlier turn is scored
CLEAN. - One probe, no context. Items whose probe depends on a surrounding conversation are screened on the probe alone.
Install
pip install editscreen # not published yet
pip install -e ".[dev]" # from a clone
Requires Python 3.10+.
Your own data
A JSON list. subject and probe are required, everything else is optional.
[{"id": "q1",
"subject": "Henry Mackenzie",
"probe": "Henry Mackenzie was born in the country of",
"test_type": "one-hop",
"aliases": ["The Man of Feeling"]}]
editscreen mydata.json --json
Where it came from
The observation this screens for was found while measuring how far a single rank-one weight edit travels: on one published multi-hop benchmark, the items that name the edited subject are exactly the items where the edit sits on the first hop. The measurement work is at edit-reach.
That project's own screen was a delivery coefficient computed from the unedited model, and it was reported negative — it predicted delivery, not effect. This package is the part that survived: the half that needs no model, and holds for any editing mechanism.
MIT.
Metadata
Release files for editscreen 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| editscreen-0.1.0a1.tar.gz | 16.4 kB | With provenance | Details for editscreen-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| editscreen-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for editscreen-0.1.0a1-py3-none-any.whl |
Total release size: 31.5 kB
Release files / editscreen-0.1.0a1.tar.gz
| Download URL | editscreen-0.1.0a1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
269515350c74efb508a43f1f2187ee3ada8d49e64b80d844e85ec555c932f000
|
|
BLAKE2b-256 checksum How to use checksums |
dd218bdb6e4ea95941355ca9f9cf0b78ca64df3f0db8a6f046f5ba2765881f8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / editscreen-0.1.0a1-py3-none-any.whl
| Download URL | editscreen-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4161ddf743e3224d89b17ed647b9f9cf13ce7c5fa0aaf00e07c71c3906924276
|
|
BLAKE2b-256 checksum How to use checksums |
ca6990ac1d925bda3a89c979c1fc483e4fe7747ae90591497b3594b90268cb4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for editscreen 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for editscreen-0.1.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.