Q38, run 2026-11-04-2053-sonnet
Which institutions is W71 credited to, at every level?
Tests: Local rule on affiliations, then the hierarchy: the Tessel Laboratory is listed last, so Halloran gets nothing.
Expected: institutions = ['I01', 'I02', 'I03', 'I04']
csv run 1
I01, I02, I03, I04, I06. The direct credits are I06 and I04, plus their ancestors.
JSON: {"institutions": ["I01", "I02", "I03", "I04", "I06"]}
Why: institutions: expected ['I01', 'I02', 'I03', 'I04'], got ['I01', 'I02', 'I03', 'I04', 'I06']
csv run 2
I06, I04, I03, I02, I01. I04 and I06 are the direct credits, and the rest are the ancestors of I04.
JSON: {"institutions": ["I06", "I04", "I03", "I02", "I01"]}
Why: institutions: expected ['I01', 'I02', 'I03', 'I04'], got ['I06', 'I04', 'I03', 'I02', 'I01']
csv run 3
I06, I04, I03, I02, I01.
JSON: {"institutions": ["I06", "I04", "I03", "I02", "I01"]}
Why: institutions: expected ['I01', 'I02', 'I03', 'I04'], got ['I06', 'I04', 'I03', 'I02', 'I01']
csv run 4
I06, I04, I03, I02, I01.
JSON: {"institutions": ["I06", "I04", "I03", "I02", "I01"]}
Why: institutions: expected ['I01', 'I02', 'I03', 'I04'], got ['I06', 'I04', 'I03', 'I02', 'I01']
csv run 5
I06 and I04 directly, plus their ancestors I03, I02 and I01.
JSON: {"institutions": ["I06", "I04", "I03", "I02", "I01"]}
Why: institutions: expected ['I01', 'I02', 'I03', 'I04'], got ['I06', 'I04', 'I03', 'I02', 'I01']
executed run 1
I04, I03, I02, I01.
JSON: {"institutions": ["I04", "I03", "I02", "I01"]}
executed run 2
I04, I03, I02, I01. These come from the institution_units rows for I04.
JSON: {"institutions": ["I04", "I03", "I02", "I01"]}
executed run 3
I04, I03, I02, I01.
JSON: {"institutions": ["I04", "I03", "I02", "I01"]}
executed run 4
I04, I03, I02, I01.
JSON: {"institutions": ["I04", "I03", "I02", "I01"]}
executed run 5
I04, I03, I02, I01. W71 is credited to I04, which counts towards I03, I02 and I01.
JSON: {"institutions": ["I04", "I03", "I02", "I01"]}