Metadata-Version: 2.5
Name: oak-domain-faculty-radiotherapy
Version: 0.1.1
Summary: Tier 3 faculty — the radiotherapy discipline's library of capability.
Requires-Python: >=3.13
Requires-Dist: oak-understory-common<3,>=2
Requires-Dist: oak-understory-shared-biomedicine<1,>=0.1
Provides-Extra: dev
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Description-Content-Type: text/markdown

# oak-domain-faculty-radiotherapy

The **radiotherapy faculty** for [Understory](https://github.com/oakquant-ai/understory)
(Tier 3). One of nine seated for **P4, the cross-domain falsifier**.

## Capability library

The faculty declares three deterministic methods: fractionation-schedule recovery,
biologically effective dose and EQD2, and the late-effect ratio. It also declares
the radiation-arm dataset and the affordance-vocabulary experiment. The former
corpus-only exemption no longer applies.

The parser recovers stated numbers and confers no affordance. Dose and tolerance
methods select affordances from computed values. Their documentation records the
model assumptions and limits; these calculations do not assess patient safety.

Run `make check` with Python 3.13 and the declared development dependencies.
Tests use synthetic schedules to check parsing, dose arithmetic, fraction-size
effects and invalid tissue parameters. The test workflow runs on pull requests
and pushes to main.

## The stoplist, and why it was not written by hand

`radiotherapy`'s vocabulary is derived from 1,055 trial intervention descriptions of the
`RADIATION` intervention type — a domain label assigned by the trial's registrant,
not chosen here. It then passed five layers before shipping:

1. ranked by **lift** against the neighbouring clinical domains, so a word merely
   common in trial prose cannot enter by being frequent;
2. **stemmed with an evidence gate** — a suffix is removed only where the corpus
   shows the word family exists;
3. **audited** for length, general words, structural words, and collisions with
   every already-declared stoplist;
4. **breadth-refused** — a stem claiming more than 5% of a background that includes
   mathematics and physics abstracts is general vocabulary, whatever its rank;
5. **ownership-resolved** — a stem claimed by two faculties goes to whichever
   discipline's corpus uses it most densely, so a shared word is a decided conflict
   rather than evidence that two fields are one field.

⭐ Entries are **stems**, matched word-boundary plus open suffix. The danger runs
away from this discipline, not toward it: a stem that also claims an ordinary
English word does not over-reject its own field — it silently rejects **another**
discipline's clean, de-domained structure, which is the exact failure a stoplist
exists to prevent.

Regenerate with `understory/e2e/run.sh seed_expertise.py`.

## Why this faculty exists at all

Understory's claim is about **cross-domain** transposition, and P3.3 tested it on a
corpus where one faculty's stoplist covered both sides of every pair — a
within-domain task wearing a cross-domain label (§2b). Nine faculties at measured
distances are the replacement: the thesis stops predicting one number over one bar
and starts predicting a **trend** across strata, which cannot come back
"undetectable".
