Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- root/specialists/additive-v2/additive_panel_v2.jsonAdded+366
- root/specialists/additive-v2/additive_panel_v2.pyAdded+102
- root/specialists/additive-v2/additive_scorer.pyAdded+20
- root/specialists/additive-v2/manifest.jsonAdded+69
- root/specialists/additive-v2/narrow_v1.pyAdded+47
- root/specialists/additive-v2/organ_additive_v1.pyAdded+157
- root/specialists/additive-v2/organ_additive_v2.pyAdded+80
- root/specialists/additive-v2/verdict_dev.jsonAdded+113
- root/specialists/additive-v2/verdict_heldout.jsonAdded+113
- root/specialists/arthistory/arthistory_panel_v1.jsonAdded+201
- root/specialists/arthistory/arthistory_panel_v1.pyAdded+19
- root/specialists/arthistory/facts_arthistory_v1.pyAdded+18
- root/specialists/arthistory/facts_panel_v1.pyAdded+19
- root/specialists/arthistory/facts_scorer_v1.pyAdded+26
- root/specialists/arthistory/manifest.jsonAdded+18
- root/specialists/arthistory/narrow_v1.pyAdded+47
- root/specialists/arthistory/organ_facts_v1.pyAdded+37
- root/specialists/arthistory/verdict_dev.jsonAdded+96
- root/specialists/arthistory/verdict_heldout.jsonAdded+95
- root/specialists/biology/biology_panel_v1.jsonAdded+212
- root/specialists/biology/biology_panel_v1.pyAdded+59
- root/specialists/biology/biology_scorer.pyAdded+23
- root/specialists/biology/manifest.jsonAdded+23
- root/specialists/biology/narrow_v1.pyAdded+47
- root/specialists/biology/organ_biology_v1.pyAdded+107
- root/specialists/biology/verdict_dev.jsonAdded+113
- root/specialists/biology/verdict_heldout.jsonAdded+113
- root/specialists/carboncapture/carboncapture_panel_v1.jsonAdded+198
- root/specialists/carboncapture/carboncapture_panel_v1.pyAdded+60
- root/specialists/carboncapture/carboncapture_scorer.pyAdded+18
- root/specialists/carboncapture/manifest.jsonAdded+23
- root/specialists/carboncapture/narrow_v1.pyAdded+47
- root/specialists/carboncapture/organ_carboncapture_v1.pyAdded+83
- root/specialists/carboncapture/verdict_dev.jsonAdded+113
- root/specialists/carboncapture/verdict_heldout.jsonAdded+113
- root/specialists/chemistry/chemistry_panel_v1.jsonAdded+3544
- root/specialists/chemistry/chemistry_panel_v1.pyAdded+96
- root/specialists/chemistry/chemistry_scorer.pyAdded+23
- root/specialists/chemistry/manifest.jsonAdded+26
- root/specialists/chemistry/organ_chemistry_v1.pyAdded+152
- root/specialists/chemistry/pubchem_periodic_table.csvAdded+119
- root/specialists/chemistry/verdict_dev.jsonAdded+110
- root/specialists/chemistry/verdict_heldout.jsonAdded+159
- root/specialists/coldchain-v2/coldchain_panel_v1.jsonAdded+422
- root/specialists/coldchain-v2/coldchain_panel_v1.pyAdded+61
- root/specialists/coldchain-v2/coldchain_panel_v2.jsonAdded+422
- root/specialists/coldchain-v2/coldchain_panel_v2.pyAdded+57
- root/specialists/coldchain-v2/coldchain_scorer.pyAdded+23
- root/specialists/coldchain-v2/manifest.jsonAdded+67
- root/specialists/coldchain-v2/narrow_v1.pyAdded+47
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366[
{
"split": "dev",
"kind": "mv",
"valid": true,
"q": "A closed, watertight STL mesh has 5,000 triangles. How many vertices does it have?",
"expect": 2502.0
},
{
"split": "dev",
"kind": "mv",
"valid": true,
"q": "A closed, watertight STL mesh has 1,000 triangles. How many vertices does it have?",
"expect": 502.0
},
{
"split": "dev",
"kind": "me",
"valid": true,
"q": "How many edges are in a closed triangle mesh with 20,480 faces?",
"expect": 30720.0
},
{
"split": "dev",
"kind": "mf",
"valid": true,
"q": "A watertight triangle mesh has 502 vertices. How many triangles does it have?",
"expect": 1000
},
{
"split": "dev",
"kind": "torus",
"valid": true,
"q": "How many vertices does a closed triangle mesh of a torus (genus 1) with 800 faces have?",
"expect": 400.0
},
{
"split": "dev",
"kind": "cube",
"valid": true,
"q": "What is the volume of cube([20,10,5]) in OpenSCAD?",
"expect": 1000
},
{
"split": "dev",
"kind": "cube",
"valid": true,
"q": "What is the volume of cube([40,40,2]) in OpenSCAD?",
"expect": 3200
},
{
"split": "dev",
"kind": "sphere",
"valid": true,
"q": "What is the volume of sphere(r=10) in OpenSCAD?",
"expect": 4188.790204786391
},
{
"split": "dev",
"kind": "cyl",
"valid": true,
"q": "What is the volume of cylinder(h=50, r=3) in OpenSCAD?",
"expect": 1413.7166941154069
},
{
"split": "dev",
"kind": "cyl",
"valid": true,
"q": "What is the volume of cylinder(h=20, r=5) in OpenSCAD?",
"expect": 1570.7963267948967
},
{
"split": "dev",
"kind": "cone",
"valid": true,
"q": "What is the volume of cylinder(h=30, r1=10, r2=0)?",
"expect": 3141.592653589793
},
{
"split": "dev",
"kind": "scale",
"valid": true,
"q": "If a 50 g print is scaled up by 1.5x, what will it weigh?",
"expect": 168.75
},
{
"split": "dev",
"kind": "scale",
"valid": true,
"q": "If a 100 g print is scaled up by 0.5x, what will it weigh?",
"expect": 12.5
},
{
"split": "dev",
"kind": "time",
"valid": true,
"q": "How long does it take to extrude 20 cm3 at a flow of 10 mm3/s?",
"expect": 33.333333333333336
},
{
"split": "dev",
"kind": "time",
"valid": true,
"q": "How long does it take to extrude 50 cm3 at a flow of 15 mm3/s?",
"expect": 55.55555555555556
},
{
"split": "dev",
"kind": "mv",
"valid": true,
"q": "Number of vertices in a watertight STL with 5,000 triangular faces? How many?",
"expect": 2502.0
},
{
"split": "dev",
"kind": "mv",
"valid": true,
"q": "Number of vertices in a watertight STL with 1,000 triangular faces? How many?",
"expect": 502.0
},
{
"split": "dev",
"kind": "me",
"valid": true,
"q": "A closed triangle mesh (no holes) has 1,000 facets. How many edges?",
"expect": 1500.0
},
{
"split": "dev",
"kind": "mf",
"valid": true,
"q": "Closed STL mesh, 8 vertices: how many triangles?",
"expect": 12
},
{
"split": "dev",
"kind": "torus",
"valid": true,
"q": "A torus-shaped closed mesh (genus 1) has 800 triangles. How many vertices?",
"expect": 400.0
},
{
"split": "dev",
"kind": "cube",
"valid": true,
"q": "OpenSCAD: volume of cube([15, 25, 30])?",
"expect": 11250
},
{
"split": "dev",
"kind": "cube",
"valid": true,
"q": "OpenSCAD: volume of cube([40, 40, 2])?",
"expect": 3200
},
{
"split": "dev",
"kind": "sphere",
"valid": true,
"q": "Volume of the OpenSCAD primitive sphere(d=50)?",
"expect": 65449.84694978735
},
{
"split": "dev",
"kind": "cyl",
"valid": true,
"q": "OpenSCAD cylinder(h=10, d=24): what volume?",
"expect": 4523.893421169302
},
{
"split": "dev",
"kind": "cyl",
"valid": true,
"q": "OpenSCAD cylinder(h=50, d=6): what volume?",
"expect": 1413.7166941154069
},
{
"split": "dev",
"kind": "cone",
"valid": true,
"q": "Volume of cylinder(h=20, r1=8, r2=4) in OpenSCAD?",
"expect": 2345.722514680379
},
{
"split": "dev",
"kind": "scale",
"valid": true,
"q": "Scale a 20 g part by 2 times in every dimension: how much will it weigh?",
"expect": 160
},
{
"split": "dev",
"kind": "scale",
"valid": true,
"q": "Scale a 50 g part by 1.5 times in every dimension: how much will it weigh?",
"expect": 168.75
},
{
"split": "dev",
"kind": "time",
"valid": true,
"q": "At 5 mm3/s volumetric flow, how many minutes to extrude 8 cm3?",
"expect": 26.666666666666668
},
{
"split": "dev",
"kind": "time",
"valid": true,
"q": "At 15 mm3/s volumetric flow, how many minutes to extrude 50 cm3?",
"expect": 55.55555555555556
},
{
"split": "dev",
"kind": "decline",
"valid": false,
"q": "A closed, watertight STL mesh has 1001 triangles. How many vertices does it have?",
"expect": "decline"
},
{
"split": "dev",
"kind": "decline",
"valid": false,
"q": "A closed triangle mesh (no holes) has 777 facets. How many edges?",
"expect": "decline"
},
{
"split": "heldout",
"kind": "mv",
"valid": true,
"q": "An STL file describes a closed surface made of 36 triangles. How many vertices does it have?",
"expect": 20.0
},
{
"split": "heldout",
"kind": "mv",
"valid": true,
"q": "An STL file describes a closed surface made of 2,400 triangles. How many vertices does it have?",
"expect": 1202.0
},
{
"split": "heldout",
"kind": "me",
"valid": true,
"q": "How many edges does a watertight mesh of 12,800 triangles have?",
"expect": 19200.0
},
{
"split": "heldout",
"kind": "me",
"valid": true,
"q": "How many edges does a watertight mesh of 3,000 triangles have?",
"expect": 4500.0
},
{
"split": "heldout",
"kind": "mf",
"valid": true,
"q": "If a closed triangle mesh has 14 vertices, how many faces does it have?",
"expect": 24
},
{
"split": "heldout",
"kind": "mf",
"valid": true,
"q": "If a closed triangle mesh has 1,202 vertices, how many faces does it have?",
"expect": 2400
},
{
"split": "heldout",
"kind": "torus",
"valid": true,
"q": "A donut-shaped (genus 1) watertight mesh has 600 faces. How many vertices?",
"expect": 300.0
},
{
"split": "heldout",
"kind": "cube",
"valid": true,
"q": "In OpenSCAD, how much volume does cube([60, 30, 10]) enclose?",
"expect": 18000
},
{
"split": "heldout",
"kind": "cube",
"valid": true,
"q": "In OpenSCAD, how much volume does cube([25, 25, 25]) enclose?",
"expect": 15625
},
{
"split": "heldout",
"kind": "sphere",
"valid": true,
"q": "What volume does sphere(r=6) produce in OpenSCAD?",
"expect": 904.7786842338603
},
{
"split": "heldout",
"kind": "cyl",
"valid": true,
"q": "How much material is in cylinder(h=40, r=4) in OpenSCAD?",
"expect": 2010.6192982974676
},
{
"split": "heldout",
"kind": "cyl",
"valid": true,
"q": "How much material is in cylinder(h=8, r=20) in OpenSCAD?",
"expect": 10053.096491487338
},
{
"split": "heldout",
"kind": "cone",
"valid": true,
"q": "OpenSCAD cylinder(h=24, r1=6, r2=2): what is its volume?",
"expect": 1306.9025438933538
},
{
"split": "heldout",
"kind": "scale",
"valid": true,
"q": "A 40 g model is scaled to 2 times its size in every dimension. How much will the new print weigh?",
"expect": 320
},
{
"split": "heldout",
"kind": "scale",
"valid": true,
"q": "A 200 g model is scaled to 0.75 times its size in every dimension. How much will the new print weigh?",
"expect": 84.375
},
{
"split": "heldout",
"kind": "scale",
"valid": true,
"q": "A 30 g model is scaled to 3 times its size in every dimension. How much will the new print weigh?",
"expect": 810
},
{
"split": "heldout",
"kind": "time",
"valid": true,
"q": "How many minutes will it take to print 30 cm3 of plastic at 12 mm3/s?",
"expect": 41.666666666666664
},
{
"split": "heldout",
"kind": "time",
"valid": true,
"q": "How many minutes will it take to print 12 cm3 of plastic at 8 mm3/s?",
"expect": 25.0
},
{
"split": "heldout",
"kind": "time",
"valid": true,
"q": "How many minutes will it take to print 100 cm3 of plastic at 20 mm3/s?",
"expect": 83.33333333333333
},
{
"split": "heldout",
"kind": "decline",
"valid": false,
"q": "How many edges does a closed triangle mesh with 1,001 facets have?",
"expect": "decline"
}
]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102#!/usr/bin/env python3"""additive_panel_v2 - the FRESH sealed panel for additive-v2 (#96). v1's held-out was measured once (NEGATIVE) and isburned: its phrasings join DEV here. The v2 held-out is new phrasing and new numbers, written for people. Expectedvalues from the relations written here: genus-0 closed triangle mesh E = 3F/2, V = F/2 + 2, F = 2(V - 2); torus V = F/2;OpenSCAD cube / sphere / cylinder / frustum volumes; scaling s^3 for mass; time = V / flow (minutes).Must-decline: an odd face count for a closed triangle mesh. usage: additive_panel_v2.py <out.json>"""import collectionsimport jsonimport mathimport randomimport sys
DEV_T = [{"mv": "A closed, watertight STL mesh has {f} triangles. How many vertices does it have?", "me": "How many edges are in a closed triangle mesh with {f} faces?", "mf": "A watertight triangle mesh has {v} vertices. How many triangles does it have?", "torus": "How many vertices does a closed triangle mesh of a torus (genus 1) with {f} faces have?", "cube": "What is the volume of cube([{x},{y},{z}]) in OpenSCAD?", "sphere": "What is the volume of sphere(r={r}) in OpenSCAD?", "cyl": "What is the volume of cylinder(h={h}, r={r}) in OpenSCAD?", "cone": "What is the volume of cylinder(h={h}, r1={r1}, r2={r2})?", "scale": "If a {m} g print is scaled up by {s}x, what will it weigh?", "time": "How long does it take to extrude {v} cm3 at a flow of {q} mm3/s?"}, {"mv": "Number of vertices in a watertight STL with {f} triangular faces? How many?", "me": "A closed triangle mesh (no holes) has {f} facets. How many edges?", "mf": "Closed STL mesh, {v} vertices: how many triangles?", "torus": "A torus-shaped closed mesh (genus 1) has {f} triangles. How many vertices?", "cube": "OpenSCAD: volume of cube([{x}, {y}, {z}])?", "sphere": "Volume of the OpenSCAD primitive sphere(d={d})?", "cyl": "OpenSCAD cylinder(h={h}, d={d}): what volume?", "cone": "Volume of cylinder(h={h}, r1={r1}, r2={r2}) in OpenSCAD?", "scale": "Scale a {m} g part by {s} times in every dimension: how much will it weigh?", "time": "At {q} mm3/s volumetric flow, how many minutes to extrude {v} cm3?"}]HELD_T = {"mv": "An STL file describes a closed surface made of {f} triangles. How many vertices does it have?", "me": "How many edges does a watertight mesh of {f} triangles have?", "mf": "If a closed triangle mesh has {v} vertices, how many faces does it have?", "torus": "A donut-shaped (genus 1) watertight mesh has {f} faces. How many vertices?", "cube": "In OpenSCAD, how much volume does cube([{x}, {y}, {z}]) enclose?", "sphere": "What volume does sphere(r={r}) produce in OpenSCAD?", "cyl": "How much material is in cylinder(h={h}, r={r}) in OpenSCAD?", "cone": "OpenSCAD cylinder(h={h}, r1={r1}, r2={r2}): what is its volume?", "scale": "A {m} g model is scaled to {s} times its size in every dimension. How much will the new print weigh?", "time": "How many minutes will it take to print {v} cm3 of plastic at {q} mm3/s?"}DECLINE = {"dev": ["A closed, watertight STL mesh has 1001 triangles. How many vertices does it have?", "A closed triangle mesh (no holes) has 777 facets. How many edges?"], "heldout": ["How many edges does a closed triangle mesh with 1,001 facets have?"]}POOL = {"dev": {"mv": [12, 1000, 5000, 20480], "me": [12, 1000, 20480], "mf": [8, 502, 10242], "torus": [800, 2048], "cube": [(20, 10, 5), (40, 40, 2), (15, 25, 30)], "sphere": [10, 5, 25], "cyl": [(20, 5), (10, 12), (50, 3)], "cone": [(30, 10, 0), (20, 8, 4), (15, 5, 10)], "scale": [(20, 2), (50, 1.5), (100, 0.5)], "time": [(20, 10), (50, 15), (8, 5)]}, "heldout": {"mv": [36, 2400, 81920], "me": [48, 3000, 12800], "mf": [14, 1202, 4098], "torus": [600, 4096], "cube": [(12, 8, 3), (60, 30, 10), (25, 25, 25)], "sphere": [6, 12, 30], "cyl": [(40, 4), (15, 9), (8, 20)], "cone": [(24, 6, 2), (10, 12, 0), (18, 3, 9)], "scale": [(40, 2), (30, 3), (200, 0.75)], "time": [(30, 12), (12, 8), (100, 20)]}}N = 1 # per template per split: dev 2 each over the two template sets; held-out 1-3 per family below
def rows(kind, vals): if kind == "mv": return {"f": format(vals, ",")}, vals / 2 + 2 if kind == "me": return {"f": format(vals, ",")}, 3 * vals / 2 if kind == "mf": return {"v": format(vals, ",")}, 2 * (vals - 2) if kind == "torus": return {"f": format(vals, ",")}, vals / 2 if kind == "cube": x, y, z = vals return {"x": x, "y": y, "z": z}, x * y * z if kind == "sphere": return {"r": vals, "d": 2 * vals}, 4 / 3 * math.pi * vals ** 3 if kind == "cyl": h, r = vals return {"h": h, "r": r, "d": 2 * r}, math.pi * r * r * h if kind == "cone": h, r1, r2 = vals return {"h": h, "r1": r1, "r2": r2}, math.pi * h * (r1 * r1 + r1 * r2 + r2 * r2) / 3 if kind == "scale": m, s = vals return {"m": m, "s": s}, m * s ** 3 v, q = vals return {"v": v, "q": q}, v * 1000 / q / 60
COUNT = {"dev": {"mv": 2, "me": 1, "mf": 1, "torus": 1, "cube": 2, "sphere": 1, "cyl": 2, "cone": 1, "scale": 2, "time": 2}, "heldout": {"mv": 2, "me": 2, "mf": 2, "torus": 1, "cube": 2, "sphere": 1, "cyl": 2, "cone": 1, "scale": 3, "time": 3}}
def main(): items = [] for split, seed, temps in (("dev", 96, DEV_T), ("heldout", 969696, [HELD_T])): rng = random.Random(seed) for T in temps: for kind, tpl in T.items(): for vals in rng.sample(POOL[split][kind], COUNT[split][kind]): kw, exp = rows(kind, vals) items.append({"split": split, "kind": kind, "valid": True, "q": tpl.format(**kw), "expect": exp}) for q in DECLINE[split]: items.append({"split": split, "kind": "decline", "valid": False, "q": q, "expect": "decline"}) json.dump(items, open(sys.argv[1], "w", encoding="utf-8"), indent=1, ensure_ascii=False) print("panel:", dict(collections.Counter(i["split"] for i in items)))
if __name__ == "__main__": main()1234567891011121314151617181920#!/usr/bin/env python3"""additive_scorer - the first number after is / has in the REPLY TEXT (commas allowed) must match the panel: meshcounts exactly, volumes / masses / minutes within 0.5%. A must-decline item answered is a false yes. (ok, asserted)."""import re
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: return (not answered), answered if not answered: return False, False m = re.search(r"\b(?:is|has)\s+(?:about\s+)?([\d,]*\.?\d+)", text) if not m: return False, True got, e = float(m.group(1).replace(",", "")), float(p["expect"]) if p["kind"] in ("mv", "me", "mf", "torus"): return got == e, True return abs(got - e) <= 0.005 * abs(e), True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "id": "additive-v2", "name": "Oracle7 Additive Manufacturing & Design", "number": 96, "tier": "B", "sources": [ { "name": "OpenSCAD User Manual (cube / sphere / cylinder primitives and parameters)", "licence": "CC-BY-SA 3.0 (store ships share-alike)", "url": "https://en.wikibooks.org/wiki/OpenSCAD_User_Manual" }, { "name": "NIST additive manufacturing (STL / closed mesh); Euler characteristic V - E + F = 2 - 2g", "licence": "public domain (US government) / facts", "url": "https://www.nist.gov/additive-manufacturing" } ], "store": { "path": "__ORACLE7_ROOT__/specialists/additive/organ_additive_v1.py" }, "organ": { "dir": "__ORACLE7_ROOT__/specialists/additive-v2", "module": "organ_additive_v2", "class": "AdditiveOrganV2", "init": {} }, "accept": { "kinds": [ "scad_volume", "mesh_vertices", "mesh_edges", "mesh_faces", "scale_amount", "scale_factor", "extrude_time" ], "declines_in_domain": [ "impossible", "underspecified" ], "context_regex": "\\b(?:stl|mesh|watertight|openscad|cube\\(|sphere\\(|cylinder\\(|extrud\\w*|scal\\w*|mm3/s|volumetric flow|in every dimension)" }, "panel": { "path": "__ORACLE7_ROOT__/specialists/additive-v2/additive_panel_v2.json", "splits": [ "dev", "heldout" ], "exclude_kinds_composed": [], "scorer_module": "additive_scorer", "scorer_fn": "ok" }, "routing_cues": [ "STL mesh vertices from faces", "mesh edges", "OpenSCAD primitive volume", "scaled part mass", "extrusion time" ], "budgets": { "latency_p50_ms": 50, "store_mb": 1 }, "notes": "v2 of additive (v1 NEGATIVE 2026-09-29: flow rate '15 mm3/s' read as the volume - confident wrong; 'Scale a 100 g part by 0.5 times' unread). Flow only as volume-per-time, volume never followed by '/'; scale factor from by/to N times; recognise-then-decline. Fresh panel v2.", "core_sample": { "n": 400, "seed": 20260928 }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#!/usr/bin/env python3"""narrow_v1 - the shared NARROWING rule for specialist organs (2026-09-29, from the full-core sweep):
WORD PROBLEMS AND NARRATIVE TURNS BELONG TO THE HEAD. An organ answers a direct domain question. A turn that tells a story ("Justine wants to put a deck ...", "A new energy drink advertises 106 calories for 8 ounces ...") or relates quantities to each other ("the length is 9 inches more than the width") is a word problem, which the core's word- problem organ owns; organs firing on its nouns declined it or answered a different question. An organ may DECLINE only a short direct question (it is then refusing the domain question that was asked); on anything longer it says nothing and the head answers.
Narrowing only ever removes turns an organ takes, so on any input where it does not fire, the organ's reply isbyte-identical to the frozen version it wraps (checked per specialist by an invariance count before re-gating)."""import re
RELATION = re.compile(r"\b(?:\d+(?:\.\d+)?|one|two|three|four|five|six|seven|eight|nine|ten)\s+(?:\w+\s+){0,2}(?:more|less|fewer|longer|shorter)\s+than\b|" r"\b(?:twice|three times|half)\s+(?:as\s+\w+\s+as\s+)?the\s+\w+\b", re.I)
# a RATE ("106 calories for 8 ounces", "3 apples per 2 dollars") makes the turn a proportion problemRATE = re.compile(r"\b\d+(?:\.\d+)?\s+[a-z]+\s+(?:for|per|every)\s+(?:\d+(?:\.\d+)?|a|an|one|each)\s+[a-z]+", re.I)NUM = re.compile(r"(?<![\w.])\d+(?:\.\d+)?(?!\w|\.\d)") # "leg is 5." counts: a sentence-final period is not a decimal
def numbers(t): return len(NUM.findall(str(t or "")))
def last_sentence(t): parts = [s for s in re.split(r"(?<=[.!?;])\s+", str(t or "").strip()) if s.strip()] return parts[-1] if parts else ""
def sentences(t): return len([s for s in re.split(r"(?<=[.!?])\s+", str(t or "").strip()) if s.strip()])
def narrative(t): """a story-shaped or relational turn: 3+ sentences, 40+ words, or quantities defined relative to each other""" t = str(t or "") return sentences(t) >= 3 or len(t.split()) > 40 or RELATION.search(t) is not None or RATE.search(t) is not None
def short_direct(t): """a direct question an organ may decline: at most 2 sentences, at most 25 words, not narrative""" t = str(t or "") return sentences(t) <= 2 and len(t.split()) <= 25 and not narrative(t)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157#!/usr/bin/env python3"""organ_additive_v1 - additive-manufacturing and CAD geometry (OpenSCAD primitives, mesh topology), exact, formulanamed in every answer:- closed triangle mesh of genus 0 (a watertight STL with no holes): F faces -> E = 3F/2 edges, V = F/2 + 2 vertices (Euler V - E + F = 2); from V -> F = 2(V - 2), E = 3(V - 2); genus g given: V - E + F = 2 - 2g;- OpenSCAD primitive volumes read from code: cube(s) / cube([x, y, z]); sphere(r) / sphere(d = D); cylinder(h, r) / cylinder(h, d = D) / cylinder(h, r1, r2) (a cone frustum: pi h (r1^2 + r1 r2 + r2^2) / 3);- uniform scaling by s: lengths x s, areas x s^2, volume and mass x s^3;- ideal extrusion time = volume / volumetric flow (mm3/s), no travel or acceleration (said so).Declines: an odd face count for a closed triangle mesh (3F/2 must be whole), negative sizes.Narrowed from the start (narrow_v1). Returns {kind, status, response, value}."""from __future__ import annotations
import mathimport re
from narrow_v1 import narrative, short_direct
N = r"(\d+(?:,\d{3})*(?:\.\d+)?)"F_ = r"(-?\d+(?:\.\d+)?)"
def num(v): return float(str(v).replace(",", ""))
def g(x): return ("%.3f" % x).rstrip("0").rstrip(".") if abs(x) < 1e6 else format(round(x), ",")
def kw(args, name): m = re.search(r"\b" + name + r"\s*=\s*" + F_, args) return float(m.group(1)) if m else None
class AdditiveOrgan: def _say(self, kind, text, value=None, status="answered"): return {"kind": kind, "status": status, "response": text, "value": value}
def _bad(self, why): return self._say("impossible", why, status="withheld")
def answer(self, text, session_id="default"): if narrative(text): return None r = self._answer(text) if r and r.get("status") != "answered" and not short_direct(text): return None return r
def _scad(self, t): m = re.search(r"\b(cube|sphere|cylinder)\s*\(([^()]*(?:\[[^\]]*\])?[^()]*)\)", t) if not m: return None prim, args = m.group(1), m.group(2) pos = [float(x) for x in re.findall(r"(?:^|,)\s*" + F_ + r"\s*(?=,|$)", args)] if prim == "cube": vec = re.search(r"\[\s*" + F_ + r"\s*,\s*" + F_ + r"\s*,\s*" + F_ + r"\s*\]", args) if vec: x, y, z = (float(vec.group(i)) for i in (1, 2, 3)) else: s = kw(args, "size") if kw(args, "size") is not None else (pos[0] if pos else None) if s is None: return None x = y = z = s if min(x, y, z) < 0: return "neg" return x * y * z, "cube %s × %s × %s" % (g(x), g(y), g(z)) if prim == "sphere": r = kw(args, "r") if r is None and kw(args, "d") is not None: r = kw(args, "d") / 2 if r is None: r = pos[0] if pos else None if r is None: return None if r < 0: return "neg" return 4 / 3 * math.pi * r ** 3, "sphere r = %s: 4/3 π r³" % g(r) h = kw(args, "h") if kw(args, "h") is not None else (pos[0] if pos else None) r1, r2 = kw(args, "r1"), kw(args, "r2") if r1 is None and kw(args, "d1") is not None: r1 = kw(args, "d1") / 2 if r2 is None and kw(args, "d2") is not None: r2 = kw(args, "d2") / 2 r = kw(args, "r") if r is None and kw(args, "d") is not None: r = kw(args, "d") / 2 if r is None and len(pos) >= 2 and r1 is None: r = pos[1] if h is None: return None if r1 is not None and r2 is not None: if min(h, r1, r2) < 0: return "neg" return math.pi * h * (r1 * r1 + r1 * r2 + r2 * r2) / 3, "cone frustum h = %s, r1 = %s, r2 = %s: π h (r1² + r1 r2 + r2²)/3" % (g(h), g(r1), g(r2)) if r is None: return None if min(h, r) < 0: return "neg" return math.pi * r * r * h, "cylinder h = %s, r = %s: π r² h" % (g(h), g(r))
def _answer(self, text): t = " ".join(str(text or "").split()) low = t.lower() # --- OpenSCAD primitive volume if re.search(r"\b(?:cube|sphere|cylinder)\s*\(", low) and re.search(r"\bvolume\b|\bhow much material\b", low) and not re.search(r"\b(?:difference|union|intersection|hull|minkowski)\s*\(", low): v = self._scad(low) if v == "neg": return self._bad("OpenSCAD sizes must be non-negative.") if v is None: return None vol, how = v return self._say("scad_volume", "The volume is %s cubic units (%s; units as in the model, usually mm)." % (g(vol), how), vol) # --- mesh topology if re.search(r"\bmesh\b|\bstl\b|\bpolyhedron\b|\bmanifold\b|\bwatertight\b", low) and re.search(r"\bhow many\b|\bnumber of\b", low): fm = re.search(N + r"\s*(?:triangles|faces|triangular faces|facets)\b", low) vm = re.search(N + r"\s*vertices\b", low) gm = re.search(r"\bgenus\s*(?:of\s*)?(\d+)\b|\b(\d+)\s*holes?\b|\btorus\b", low) gen = int(gm.group(1) or gm.group(2)) if gm and (gm.group(1) or gm.group(2)) else (1 if gm else 0) if fm and re.search(r"\bvertices\b|\bedges\b", low.replace(fm.group(0), "")): F = num(fm.group(1)) if F % 2: return self._bad("A closed triangle mesh has an even number of faces (every edge is shared by two triangles, so 3F/2 edges must be whole).") E = 3 * F / 2 V = 2 - 2 * gen + E - F if re.search(r"\bedges\b", low.replace(fm.group(0), "")) and not re.search(r"\bvertices\b", low.replace(fm.group(0), "")): return self._say("mesh_edges", "The mesh has %s edges (E = 3F/2 = 3 × %s / 2; closed triangle mesh)." % (g(E), g(F)), E) return self._say("mesh_vertices", "The mesh has %s vertices (V = 2 - 2g + E - F = %d + %s - %s, E = 3F/2; closed triangle mesh, genus %d)." % (g(V), 2 - 2 * gen, g(E), g(F), gen), V) if vm and re.search(r"\btriangles\b|\bfaces\b|\bfacets\b", low): V = num(vm.group(1)) F = 2 * (V - 2 + 2 * gen) return self._say("mesh_faces", "The mesh has %s triangles (F = 2(V - 2 + 2g) = 2(%s - 2 + %d); closed triangle mesh, genus %d)." % (g(F), g(V), 2 * gen, gen), F) return None # --- scaling sc = re.search(r"\bscal\w*\s*(?:it\s*)?(?:up\s*|down\s*)?(?:by\s*)?(?:a factor of\s*)?" + N + r"\s*(?:x|×|times)?|\b(\d+(?:\.\d+)?)\s*(?:x|×|times)\s*(?:larger|bigger|smaller|scale)|\b(\d+(?:\.\d+)?)\s*%\s*scale\b", low) if sc and re.search(r"\bvolume\b|\bmass\b|\bweigh\w*\b|\bmaterial\b|\bfilament\b|\bsurface area\b|\barea\b", low): s = num(sc.group(1) or sc.group(2)) if (sc.group(1) or sc.group(2)) else num(sc.group(3)) / 100 base = re.search(N + r"\s*(g|grams?|kg|cm3|cm³|mm3|mm³|cm2|cm²|mm2|mm²|ml)\b", low) area = re.search(r"\bsurface area\b|\barea\b", low) and not re.search(r"\bvolume\b|\bmass\b|\bweigh", low) f = s ** 2 if area else s ** 3 if base: v = num(base.group(1)) * f return self._say("scale_amount", "The new value is %s %s (× %s = %s^%d; %s scales with the %s of length)." % ( g(v), base.group(2), g(f), g(s), 2 if area else 3, "area" if area else "volume and mass", "square" if area else "cube"), v) return self._say("scale_factor", "The factor is %s (%s^%d; %s scales with the %s of length)." % (g(f), g(s), 2 if area else 3, "area" if area else "volume and mass", "square" if area else "cube"), f) # --- extrusion time vol = re.search(N + r"\s*(cm3|cm³|mm3|mm³|ml|cubic centimet\w+)\b", low) flow = re.search(N + r"\s*(?:mm3|mm³)\s*/\s*s\b|\bflow (?:rate )?(?:of )?" + N + r"\s*(?:mm3|mm³)", low) if vol and flow and re.search(r"\bhow long\b|\btime\b|\bminutes\b|\bhours\b", low): V = num(vol.group(1)) * (1000 if vol.group(2) in ("cm3", "cm³", "ml") or vol.group(2).startswith("cubic") else 1) q = num(flow.group(1) or flow.group(2)) if q <= 0: return None s = V / q return self._say("extrude_time", "The ideal extrusion time is %s minutes (%s mm³ ÷ %s mm³/s = %s s; no travel moves or acceleration)." % (g(s / 60), g(V), g(q), g(s)), s / 60) return None1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980#!/usr/bin/env python3"""organ_additive_v2 - organ_additive_v1 (NEGATIVE under gate v3, 2026-09-29: held-out 12/16 vs head 1/16 but 2 WRONG)with the held-out class fixed:- "At 15 mm3/s volumetric flow, how many minutes to extrude 50 cm3?" - v1 took the FIRST volume-unit number as the volume, i.e. the flow rate "15 mm3(/s)": a CONFIDENT WRONG 0.017 min. v2 reads the flow ONLY as a volume unit per second / minute and the volume ONLY as a volume unit NOT followed by "/" (mm3, cm3, ml; flow in mm3/s, cm3/s, mm3/min).- "Scale a 100 g part by 0.5 times in every dimension: how much will it weigh?" - v1 needed "scale(d) by N" right after the verb and fell silent (the head asked what "it" was). v2 reads the factor from "by N (times / x)", "to N times its size", "N times the size / larger / smaller", "N% scale" - never from the part's mass.- RECOGNISE-THEN-DECLINE (2026-09-29 law): a numeric extrusion-time or scaled-mass turn v2 cannot read DECLINES in-domain; v1's own declines (odd face count, negative OpenSCAD size) are kept on numeric turns of any length.Mesh topology and OpenSCAD volumes are v1. Judged on a FRESH panel v2."""from __future__ import annotations
import re
from narrow_v1 import narrativefrom organ_additive_v1 import AdditiveOrgan, g, num
N = r"(\d+(?:,\d{3})*(?:\.\d+)?)"VU = r"(mm3|mm³|cm3|cm³|ml|cubic millimet\w+|cubic centimet\w+)"
def to_mm3(v, u): return v * (1000 if u in ("cm3", "cm³", "ml") or u.startswith("cubic centi") else 1)
class AdditiveOrganV2(AdditiveOrgan): def answer(self, text, session_id="default"): if narrative(text): return None t = " ".join(str(text or "").split()) low = t.lower() r = self._extrude(low) if r is None: r = self._scale(low) if r is None: r = self._answer(t) if r is not None and r.get("kind") in ("scale_amount", "scale_factor", "extrude_time"): r = None # v1's readers for these two families are replaced, never consulted if r is not None and r.get("status") != "answered" and not re.search(r"\d", t): return None return r
def _extrude(self, low): fl = re.search(N + r"\s*" + VU + r"\s*(?:/|per)\s*(s|sec\w*|min\w*)\b", low) if not fl or not re.search(r"\bhow long\b|\btime\b|\bminutes\b|\bhours\b|\bseconds\b|\bhow many (?:min|sec|hour)", low): return None q = to_mm3(num(fl.group(1)), fl.group(2)) / (60 if fl.group(3).startswith("min") else 1) vols = [m for m in re.finditer(N + r"\s*" + VU + r"\b(?!\s*(?:/|per\b))", low) if m.start() != fl.start()] if not vols or q <= 0: return self._say("underspecified", "I couldn't read both the volume to extrude and the volumetric flow; give them like '50 cm³ at 15 mm³/s'.", status="withheld") V = to_mm3(num(vols[0].group(1)), vols[0].group(2)) s = V / q return self._say("extrude_time", "The ideal extrusion time is %s minutes (%s mm³ ÷ %s mm³/s = %s s; no travel moves or acceleration)." % (g(s / 60), g(V), g(q), g(s)), s / 60)
def _scale(self, low): if not re.search(r"\bscal\w*\b|\btimes (?:the|its) size\b|\b(?:x|×) (?:the|its) size\b|\bin every (?:dimension|direction)\b", low): return None if not re.search(r"\bvolume\b|\bmass\b|\bweigh\w*\b|\bheavy\b|\bmaterial\b|\bfilament\b|\bsurface area\b|\barea\b", low): return None sm = re.search(r"\b(?:by|to)\s+(?:a factor of\s+)?" + N + r"\s*(?:x|×|times)?(?!\s*(?:g|grams?|kg|mm|cm|ml|%))\b", low) or \ re.search(N + r"\s*(?:x|×|times)\s+(?:larger|bigger|smaller|the size|its size|scale)\b", low) pm = re.search(N + r"\s*%\s*(?:scale|of (?:the |its )?(?:original )?size)\b|\bscaled? to\s+" + N + r"\s*%", low) if sm: s = num(sm.group(1)) elif pm: s = num(pm.group(1) or pm.group(2)) / 100 else: return self._say("underspecified", "I couldn't read the scale factor; say e.g. 'scaled by 1.5 times in every dimension'.", status="withheld") if s <= 0: return None area = re.search(r"\bsurface area\b|\barea\b", low) and not re.search(r"\bvolume\b|\bmass\b|\bweigh|\bheavy\b", low) f = s ** 2 if area else s ** 3 base = re.search(N + r"\s*(g|grams?|kg|cm3|cm³|mm3|mm³|cm2|cm²|mm2|mm²|ml)\b(?!\s*/)", low) if base and base.start() != (sm.start(1) if sm else -1): v = num(base.group(1)) * f return self._say("scale_amount", "The new value is %s %s (× %s = %s^%d; %s scales with the %s of length)." % ( g(v), base.group(2), g(f), g(s), 2 if area else 3, "area" if area else "volume and mass", "square" if area else "cube"), v) return self._say("scale_factor", "The factor is %s (%s^%d; %s scales with the %s of length)." % (g(f), g(s), 2 if area else 3, "area" if area else "volume and mass", "square" if area else "cube"), f)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "additive-v2", "name": "Oracle7 Additive Manufacturing & Design", "tier": "B", "split": "dev", "head": "oracle_release_runtime_w503", "time": "2026-09-29T12:38:45Z", "domain": { "head": { "correct": 2, "false_yes": 0, "wrong": 0, "n": 32, "p50_ms": 63.47, "fails": [ [ "mv", "A closed, watertight STL mesh has 5,000 triangles. How many vertices d", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "mv", "A closed, watertight STL mesh has 1,000 triangles. How many vertices d", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "me", "How many edges are in a closed triangle mesh with 20,480 faces?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mf", "A watertight triangle mesh has 502 vertices. How many triangles does i", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "torus", "How many vertices does a closed triangle mesh of a torus (genus 1) wit", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "cube", "What is the volume of cube([20,10,5]) in OpenSCAD?", "corpus_query:property_of|vessel:reinforc", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nYou have asked \"Wha" ], [ "cube", "What is the volume of cube([40,40,2]) in OpenSCAD?", "corpus_query:property_of|vessel:reinforc", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nYou have asked \"Wha" ], [ "sphere", "What is the volume of sphere(r=10) in OpenSCAD?", "corpus_query:property_of|vessel:reinforc", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nYou have asked \"Wha" ] ] }, "spec": { "correct": 32, "false_yes": 0, "wrong": 0, "n": 32, "p50_ms": 0.03, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "DEV-PASS", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "additive-v2", "name": "Oracle7 Additive Manufacturing & Design", "tier": "B", "split": "heldout", "head": "oracle_release_runtime_w503", "time": "2026-09-29T12:42:37Z", "domain": { "head": { "correct": 1, "false_yes": 0, "wrong": 0, "n": 20, "p50_ms": 47.78, "fails": [ [ "mv", "An STL file describes a closed surface made of 36 triangles. How many ", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "mv", "An STL file describes a closed surface made of 2,400 triangles. How ma", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "me", "How many edges does a watertight mesh of 12,800 triangles have?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "me", "How many edges does a watertight mesh of 3,000 triangles have?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mf", "If a closed triangle mesh has 14 vertices, how many faces does it have", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "mf", "If a closed triangle mesh has 1,202 vertices, how many faces does it h", "act:clarify_specific", "What does \"it\" refer to? Nothing earlier in this conversation names it. Tell me the name." ], [ "torus", "A donut-shaped (genus 1) watertight mesh has 600 faces. How many verti", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "cube", "In OpenSCAD, how much volume does cube([60, 30, 10]) enclose?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 20, "false_yes": 0, "wrong": 0, "n": 20, "p50_ms": 0.06, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "ADMIT", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201[ { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted the Mona Lisa?", "expect": "Leonardo da Vinci", "reject": [ "Michelangelo", "Raphael" ] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted The Starry Night?", "expect": "Vincent van Gogh", "reject": [ "Monet" ] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted Guernica?", "expect": "Pablo Picasso", "reject": [] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted The Persistence of Memory?", "expect": "Salvador Dali", "reject": [ "Magritte" ] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted The Birth of Venus?", "expect": "Sandro Botticelli", "reject": [] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted The Night Watch?", "expect": "Rembrandt", "reject": [ "Vermeer" ] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted The Scream?", "expect": "Edvard Munch", "reject": [] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who sculpted The Thinker?", "expect": "Auguste Rodin", "reject": [] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted Water Lilies?", "expect": "Claude Monet", "reject": [ "Manet" ] }, { "split": "dev", "kind": "fact", "valid": true, "q": "Who painted Las Meninas?", "expect": "Diego Velazquez", "reject": [ "Goya" ] }, { "split": "dev", "kind": "off", "valid": false, "q": "What is the most beautiful painting ever made?", "expect": "not taken" }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Which artist painted Girl with a Pearl Earring?", "expect": "Johannes Vermeer", "reject": [ "Rembrandt" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who painted American Gothic?", "expect": "Grant Wood", "reject": [] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Name the artist who painted The Kiss.", "expect": "Gustav Klimt", "reject": [ "Schiele" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who created The Great Wave off Kanagawa?", "expect": "Katsushika Hokusai", "reject": [ "Hiroshige" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Which artist painted The Last Supper?", "expect": "Leonardo da Vinci", "reject": [ "Michelangelo" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who painted The School of Athens?", "expect": "Raphael", "reject": [ "Michelangelo" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who painted Nighthawks?", "expect": "Edward Hopper", "reject": [] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who painted The Garden of Earthly Delights?", "expect": "Hieronymus Bosch", "reject": [ "Bruegel" ] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Which artist painted Liberty Leading the People?", "expect": "Eugene Delacroix", "reject": [] }, { "split": "heldout", "kind": "fact", "valid": true, "q": "Who painted The Arnolfini Portrait?", "expect": "Jan van Eyck", "reject": [] }, { "split": "heldout", "kind": "off", "valid": false, "q": "How much is the Mona Lisa worth?", "expect": "not taken" }]12345678910111213141516171819#!/usr/bin/env python3"""arthistory_panel_v1 - the sealed panel for specialist #87 (art history). Artists TYPED OUT here as a second copy;"reject" lists commonly confused artists. Invalid: opinion / price / interpretation requests."""from facts_panel_v1 import build
DEV = [("Who painted the Mona Lisa?", "Leonardo da Vinci", ["Michelangelo", "Raphael"]), ("Who painted The Starry Night?", "Vincent van Gogh", ["Monet"]), ("Who painted Guernica?", "Pablo Picasso", []), ("Who painted The Persistence of Memory?", "Salvador Dali", ["Magritte"]), ("Who painted The Birth of Venus?", "Sandro Botticelli", []), ("Who painted The Night Watch?", "Rembrandt", ["Vermeer"]), ("Who painted The Scream?", "Edvard Munch", []), ("Who sculpted The Thinker?", "Auguste Rodin", []), ("Who painted Water Lilies?", "Claude Monet", ["Manet"]), ("Who painted Las Meninas?", "Diego Velazquez", ["Goya"])]HELD = [("Which artist painted Girl with a Pearl Earring?", "Johannes Vermeer", ["Rembrandt"]), ("Who painted American Gothic?", "Grant Wood", []), ("Name the artist who painted The Kiss.", "Gustav Klimt", ["Schiele"]), ("Who created The Great Wave off Kanagawa?", "Katsushika Hokusai", ["Hiroshige"]), ("Which artist painted The Last Supper?", "Leonardo da Vinci", ["Michelangelo"]), ("Who painted The School of Athens?", "Raphael", ["Michelangelo"]), ("Who painted Nighthawks?", "Edward Hopper", []), ("Who painted The Garden of Earthly Delights?", "Hieronymus Bosch", ["Bruegel"]), ("Which artist painted Liberty Leading the People?", "Eugene Delacroix", []), ("Who painted The Arnolfini Portrait?", "Jan van Eyck", [])]OFF = {"dev": ["What is the most beautiful painting ever made?"], "heldout": ["How much is the Mona Lisa worth?"]}
if __name__ == "__main__": build(DEV, HELD, OFF)123456789101112131415161718"""facts_arthistory_v1 - the store for specialist #87 (art history): the artist of famous works (Met Open Accessand museum records - facts). One answer per work; titles matched as phrases."""GATE = r"\b(?:paint\w*|artist|sculpt\w*|who (?:made|created|painted|sculpted))\b"BLOCK = r"\bbest\b|\bworst\b|\bfavou?rite\b|\bopinion\b|\bworth\b|\bprice\b|\bvalue\b|\bmeaning\b|\binterpret\w*\b|\bbeautiful\b"ASK = r"\bwho\b|\bwhich artist\b|\bwhat artist\b|\bname the (?:artist|painter|sculptor)\b"KIND = "artist"WORKS = [("mona lisa", "Leonardo da Vinci"), ("the last supper", "Leonardo da Vinci"), ("the starry night", "Vincent van Gogh"), ("starry night", "Vincent van Gogh"), ("sunflowers", "Vincent van Gogh"), ("guernica", "Pablo Picasso"), ("les demoiselles d'?avignon", "Pablo Picasso"), ("the persistence of memory", "Salvador Dali"), ("the birth of venus", "Sandro Botticelli"), ("the night watch", "Rembrandt"), ("girl with a pearl earring", "Johannes Vermeer"), ("the scream", "Edvard Munch"), ("american gothic", "Grant Wood"), ("the creation of adam", "Michelangelo"), ("sistine chapel ceiling", "Michelangelo"), ("david", "Michelangelo"), ("water lilies", "Claude Monet"), ("impression,? sunrise", "Claude Monet"), ("the kiss", "Gustav Klimt"), ("las meninas", "Diego Velazquez"), ("the great wave off kanagawa", "Katsushika Hokusai"), ("the great wave", "Katsushika Hokusai"), ("the thinker", "Auguste Rodin"), ("the garden of earthly delights", "Hieronymus Bosch"), ("nighthawks", "Edward Hopper"), ("campbell'?s soup cans", "Andy Warhol"), ("the school of athens", "Raphael"), ("liberty leading the people", "Eugene Delacroix"), ("a sunday afternoon on the island of la grande jatte", "Georges Seurat"), ("whistler'?s mother", "James McNeill Whistler"), ("the arnolfini portrait", "Jan van Eyck"), ("the son of man", "Rene Magritte"), ("the treachery of images", "Rene Magritte"), ("composition with red,? blue,? and yellow", "Piet Mondrian")]FACTS = [(r"\b" + t + r"\b", a, "It is by %s." % a) for t, a in sorted(WORKS, key=lambda x: -len(x[0]))]12345678910111213141516171819#!/usr/bin/env python3"""facts_panel_v1 - the shared panel writer for typed-fact specialists. A specialist's panel file defines DEV and HELDas [(question, expect or [accepted...], [rejected...])] and OFF as {"dev": [...], "heldout": [...]} (turns that must NOTbe taken), then calls build(). Expectations are typed by hand in the panel file, as a copy separate from the store."""import collectionsimport jsonimport sys
def build(DEV, HELD, OFF, out=None): out = out or sys.argv[1] items = [] for split, rows in (("dev", DEV), ("heldout", HELD)): for q, e, rej in rows: items.append({"split": split, "kind": "fact", "valid": True, "q": q, "expect": e, "reject": rej}) for q in OFF[split]: items.append({"split": split, "kind": "off", "valid": False, "q": q, "expect": "not taken"}) json.dump(items, open(out, "w"), indent=1, ensure_ascii=False) print("panel:", dict(collections.Counter(i["split"] for i in items)))1234567891011121314151617181920212223242526#!/usr/bin/env python3"""facts_scorer_v1 - the shared scorer for typed-fact specialists. An item's expect is a string or a list of acceptedstrings; the reply is right when ANY accepted string appears in it as a whole word / phrase (case-insensitive,punctuation-normalised, like the core's answer_any), AND the reply does not also contain an item-listed wrong answer("reject"), so a reply that hedges between two answers is not credited. Invalid (off-domain / advice) items must notbe answered - answering one is a false yes. A simple plural of an expected answer (arachnid / arachnids) counts. (ok, asserted)."""import re
def norm(s): return " " + " ".join(re.sub(r"[^a-z0-9 ]+", " ", str(s).lower()).split()) + " "
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: return (not answered), answered if not answered: return False, False b = norm(text) want = p["expect"] if isinstance(p["expect"], list) else [p["expect"]] rej = p.get("reject") or [] good = any(norm(w).strip() and (norm(w) in b or norm(w + "s") in b or norm(w + "es") in b) for w in want) # plural of the same answer bad = any(norm(x).strip() and norm(x) in b for x in rej) return good and not bad, True123456789101112131415161718{ "id": "arthistory", "name": "Oracle7 Art History (attribution)", "number": 87, "tier": "B", "sources": [ {"name": "The Metropolitan Museum of Art Open Access (CC0) and museum collection records (attribution facts)", "licence": "CC0 / facts", "url": "https://www.metmuseum.org/about-the-met/policies-and-documents/open-access"} ], "store": {"path": "__ORACLE7_ROOT__/specialists/arthistory/facts_arthistory_v1.py"}, "organ": {"dir": "__ORACLE7_ROOT__/specialists/arthistory", "module": "organ_facts_v1", "class": "FactsOrgan", "init": {"store": "facts_arthistory_v1"}}, "accept": {"kinds": ["artist"], "declines_in_domain": [], "context_regex": "\\b(?:painted|painting|artist|sculpt\\w*)\\b"}, "panel": {"path": "__ORACLE7_ROOT__/specialists/arthistory/arthistory_panel_v1.json", "splits": ["dev", "heldout"], "exclude_kinds_composed": [], "scorer_module": "facts_scorer_v1", "scorer_fn": "ok"}, "routing_cues": ["who painted a famous work", "who sculpted a famous work"], "budgets": {"latency_p50_ms": 50, "store_mb": 1}, "core_sample": {"n": 400, "seed": 20260928}, "notes": "Typed-fact organ: attributions of famous works; opinions, prices and interpretations are blocked. Narrowed (narrow_v1)."}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#!/usr/bin/env python3"""narrow_v1 - the shared NARROWING rule for specialist organs (2026-09-29, from the full-core sweep):
WORD PROBLEMS AND NARRATIVE TURNS BELONG TO THE HEAD. An organ answers a direct domain question. A turn that tells a story ("Justine wants to put a deck ...", "A new energy drink advertises 106 calories for 8 ounces ...") or relates quantities to each other ("the length is 9 inches more than the width") is a word problem, which the core's word- problem organ owns; organs firing on its nouns declined it or answered a different question. An organ may DECLINE only a short direct question (it is then refusing the domain question that was asked); on anything longer it says nothing and the head answers.
Narrowing only ever removes turns an organ takes, so on any input where it does not fire, the organ's reply isbyte-identical to the frozen version it wraps (checked per specialist by an invariance count before re-gating)."""import re
RELATION = re.compile(r"\b(?:\d+(?:\.\d+)?|one|two|three|four|five|six|seven|eight|nine|ten)\s+(?:\w+\s+){0,2}(?:more|less|fewer|longer|shorter)\s+than\b|" r"\b(?:twice|three times|half)\s+(?:as\s+\w+\s+as\s+)?the\s+\w+\b", re.I)
# a RATE ("106 calories for 8 ounces", "3 apples per 2 dollars") makes the turn a proportion problemRATE = re.compile(r"\b\d+(?:\.\d+)?\s+[a-z]+\s+(?:for|per|every)\s+(?:\d+(?:\.\d+)?|a|an|one|each)\s+[a-z]+", re.I)NUM = re.compile(r"(?<![\w.])\d+(?:\.\d+)?(?!\w|\.\d)") # "leg is 5." counts: a sentence-final period is not a decimal
def numbers(t): return len(NUM.findall(str(t or "")))
def last_sentence(t): parts = [s for s in re.split(r"(?<=[.!?;])\s+", str(t or "").strip()) if s.strip()] return parts[-1] if parts else ""
def sentences(t): return len([s for s in re.split(r"(?<=[.!?])\s+", str(t or "").strip()) if s.strip()])
def narrative(t): """a story-shaped or relational turn: 3+ sentences, 40+ words, or quantities defined relative to each other""" t = str(t or "") return sentences(t) >= 3 or len(t.split()) > 40 or RELATION.search(t) is not None or RATE.search(t) is not None
def short_direct(t): """a direct question an organ may decline: at most 2 sentences, at most 25 words, not narrative""" t = str(t or "") return sentences(t) <= 2 and len(t.split()) <= 25 and not narrative(t)12345678910111213141516171819202122232425262728293031323334353637#!/usr/bin/env python3"""organ_facts_v1 - the shared TYPED-FACT organ for reference specialists. A specialist supplies a store module with: GATE - regex a turn must match to be in this domain at all; BLOCK - regex for turns the specialist must never take (opinion, advice, medical / legal / personal, safety); ASK - regex marking a question (default: who / what / which / when / how many / name / is ...); FACTS - [(pattern, value, sentence)] tried IN ORDER (specific patterns first); the sentence is the reply.The first fact whose pattern matches answers; nothing matching -> silence (the head answers), never a guess.Narrowed (narrow_v1). Returns {kind, status, response, value}."""from __future__ import annotations
import importlibimport re
from narrow_v1 import narrative
DEFAULT_ASK = r"\bwho\b|\bwhat\b|\bwhich\b|\bwhen\b|\bhow many\b|\bhow much\b|\bname\b|\bwhere\b|\bis\b|\bare\b|\bdoes\b|\bdo\b|\bcan\b|\bcould\b"
class FactsOrgan: def __init__(self, store): self.s = importlib.import_module(store) self.gate = re.compile(self.s.GATE, re.I) self.block = re.compile(self.s.BLOCK, re.I) if getattr(self.s, "BLOCK", None) else None self.ask = re.compile(getattr(self.s, "ASK", DEFAULT_ASK), re.I) self.facts = [(re.compile(p, re.I), v, sent) for p, v, sent in self.s.FACTS] self.kind = getattr(self.s, "KIND", "fact")
def answer(self, text, session_id="default"): if narrative(text): return None t = " ".join(str(text or "").split()) if not self.gate.search(t) or (self.block and self.block.search(t)) or not self.ask.search(t): return None for rx, v, sent in self.facts: if rx.search(t): return {"kind": self.kind, "status": "answered", "response": sent, "value": v} return None123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ "id": "arthistory", "name": "Oracle7 Art History (attribution)", "tier": "B", "split": "dev", "head": "oracle_release_runtime_w503", "time": "2026-09-29T11:12:49Z", "domain": { "head": { "correct": 7, "false_yes": 1, "wrong": 2, "n": 11, "p50_ms": 40.03, "fails": [ [ "fact", "Who painted The Persistence of Memory?", "factoid:page", "[ev:direct] There is a strange shadow in the foreground of the painting, which is a refere" ], [ "fact", "Who painted Water Lilies?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fact", "Who painted Las Meninas?", "factoid:page", "[ev:direct] On his chest is the red cross of the Order of Santiago, which he did not recei" ], [ "off", "What is the most beautiful painting ever made?", "arb:definitional->definitional_encyclope", "[ev:direct] Painting is using colors to make visual art. [simplewiki_0335fa9c875bedae19e34" ] ] }, "spec": { "correct": 10, "false_yes": 1, "wrong": 0, "n": 11, "p50_ms": 0.01, "fails": [ [ "off", "What is the most beautiful painting ever made?", "arb:definitional->definitional_encyclope", "[ev:direct] Painting is using colors to make visual art. [simplewiki_0335fa9c875bedae19e34" ] ] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.0, "decision": "DEV-PASS", "reasons": []}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ "id": "arthistory", "name": "Oracle7 Art History (attribution)", "tier": "B", "split": "heldout", "head": "oracle_release_runtime_w503", "time": "2026-09-29T11:16:42Z", "domain": { "head": { "correct": 6, "false_yes": 0, "wrong": 3, "n": 11, "p50_ms": 47.93, "fails": [ [ "fact", "Name the artist who painted The Kiss.", "compose:bridge", "[ev:derived] Francesco Hayez (February 10, 1791, Venice \u2013 December 21, 1882, Milan) was th" ], [ "fact", "Who created The Great Wave off Kanagawa?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fact", "Which artist painted The Last Supper?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fact", "Who painted The School of Athens?", "factoid:page", "[ev:direct] It was painted during the Italian Renaissance between 1510 and 1511. [simplewi" ], [ "fact", "Which artist painted Liberty Leading the People?", "factoid:page", "[ev:direct] Liberty Leading the People ( ) is a painting of the Romantic era by the French" ] ] }, "spec": { "correct": 11, "false_yes": 0, "wrong": 0, "n": 11, "p50_ms": 0.01, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.0, "decision": "ADMIT", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212[ { "split": "dev", "kind": "codon", "valid": true, "q": "What amino acid does the codon CCG code for?", "expect": "proline" }, { "split": "dev", "kind": "codon", "valid": true, "q": "What amino acid does the codon UUU code for?", "expect": "phenylalanine" }, { "split": "dev", "kind": "codon", "valid": true, "q": "What amino acid does the codon UAA code for?", "expect": "stop" }, { "split": "dev", "kind": "comp", "valid": true, "q": "What is the complementary DNA strand of CATGGT?", "expect": "GTACCA" }, { "split": "dev", "kind": "comp", "valid": true, "q": "What is the complementary DNA strand of AAGCTTC?", "expect": "TTCGAAG" }, { "split": "dev", "kind": "rc", "valid": true, "q": "What is the reverse complement of the DNA sequence ATGCGT?", "expect": "ACGCAT" }, { "split": "dev", "kind": "rc", "valid": true, "q": "What is the reverse complement of the DNA sequence GGCCTTAA?", "expect": "TTAAGGCC" }, { "split": "dev", "kind": "tx", "valid": true, "q": "Transcribe the DNA coding strand TTTACCGG into mRNA.", "expect": "UUUACCGG" }, { "split": "dev", "kind": "tx", "valid": true, "q": "Transcribe the DNA coding strand ATGCGT into mRNA.", "expect": "AUGCGU" }, { "split": "dev", "kind": "tl", "valid": true, "q": "Translate the sequence AUGGGCUUUUGA into a protein.", "expect": "MGF" }, { "split": "dev", "kind": "tl", "valid": true, "q": "Translate the sequence ATGGCCTTTAAA into a protein.", "expect": "MAFK" }, { "split": "dev", "kind": "tl", "valid": true, "q": "Translate the sequence ATGTGGTAAGGG into a protein.", "expect": "MW" }, { "split": "dev", "kind": "gc", "valid": true, "q": "What is the GC content of the DNA sequence TTTACCGG?", "expect": 50.0 }, { "split": "dev", "kind": "gc", "valid": true, "q": "What is the GC content of the DNA sequence GGCCTTAA?", "expect": 50.0 }, { "split": "dev", "kind": "decline", "valid": false, "q": "Translate the sequence ATGGCCTT into a protein.", "expect": "decline" }, { "split": "heldout", "kind": "codon", "valid": true, "q": "Which amino acid is specified by the mRNA codon GAU?", "expect": "aspartic acid" }, { "split": "heldout", "kind": "codon", "valid": true, "q": "Which amino acid is specified by the mRNA codon GGC?", "expect": "glycine" }, { "split": "heldout", "kind": "codon", "valid": true, "q": "Which amino acid is specified by the mRNA codon UUU?", "expect": "phenylalanine" }, { "split": "heldout", "kind": "comp", "valid": true, "q": "Give the complement of the DNA strand ACGTACGT.", "expect": "TGCATGCA" }, { "split": "heldout", "kind": "comp", "valid": true, "q": "Give the complement of the DNA strand AAGCTTC.", "expect": "TTCGAAG" }, { "split": "heldout", "kind": "rc", "valid": true, "q": "Reverse complement of TTTACCGG?", "expect": "CCGGTAAA" }, { "split": "heldout", "kind": "rc", "valid": true, "q": "Reverse complement of ATGCGT?", "expect": "ACGCAT" }, { "split": "heldout", "kind": "tx", "valid": true, "q": "What mRNA is transcribed from the coding strand ACGTACGT?", "expect": "ACGUACGU" }, { "split": "heldout", "kind": "tx", "valid": true, "q": "What mRNA is transcribed from the coding strand GGCCTTAA?", "expect": "GGCCUUAA" }, { "split": "heldout", "kind": "tl", "valid": true, "q": "What protein does the sequence ATGGCCTTTAAA encode (one-letter codes)?", "expect": "MAFK" }, { "split": "heldout", "kind": "tl", "valid": true, "q": "What protein does the sequence AUGGGCUUUUGA encode (one-letter codes)?", "expect": "MGF" }, { "split": "heldout", "kind": "tl", "valid": true, "q": "What protein does the sequence ATGCATCACGAT encode (one-letter codes)?", "expect": "MHHD" }, { "split": "heldout", "kind": "gc", "valid": true, "q": "GC content (percent) of the sequence GGCCTTAA?", "expect": 50.0 }, { "split": "heldout", "kind": "gc", "valid": true, "q": "GC content (percent) of the sequence ACGTACGT?", "expect": 50.0 }, { "split": "heldout", "kind": "decline", "valid": false, "q": "What protein does the sequence AUGGCAUUAA encode (one-letter codes)?", "expect": "decline" }]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859#!/usr/bin/env python3"""biology_panel_v1 - the sealed panel for specialist #26 (biology, molecular). Codon meanings are TYPED OUT from thestandard genetic code (AUG methionine, UUU phenylalanine, UAA stop, GGC glycine, UGG tryptophan, CAU histidine, AAAlysine, GAU aspartic acid); complements / reverse complements / transcripts / proteins / GC typed or computed by thesimple string rules written here (A<->T, C<->G, T->U), independent of the organ. Must-decline: a length that is not amultiple of 3 for translation. Dev / held-out differ in seed and phrasing. usage: biology_panel_v1.py <out.json>"""import collectionsimport jsonimport randomimport sys
CODONS = {"AUG": "methionine", "UUU": "phenylalanine", "UAA": "stop", "GGC": "glycine", "UGG": "tryptophan", "CAU": "histidine", "AAA": "lysine", "GAU": "aspartic acid", "UCA": "serine", "CCG": "proline"}PROT = {"ATGGCCTTTAAA": "MAFK", "ATGTGGTAAGGG": "MW", "AUGGGCUUUUGA": "MGF", "ATGCATCACGAT": "MHHD", "AUGAAAGAUUAG": "MKD"}SEQS = ["ATGCGT", "GGCCTTAA", "ACGTACGT", "TTTACCGG", "CATGGT", "AAGCTTC"]C = {"A": "T", "T": "A", "C": "G", "G": "C"}T = {"dev": {"codon": "What amino acid does the codon {c} code for?", "comp": "What is the complementary DNA strand of {s}?", "rc": "What is the reverse complement of the DNA sequence {s}?", "tx": "Transcribe the DNA coding strand {s} into mRNA.", "tl": "Translate the sequence {s} into a protein.", "gc": "What is the GC content of the DNA sequence {s}?"}, "heldout": {"codon": "Which amino acid is specified by the mRNA codon {c}?", "comp": "Give the complement of the DNA strand {s}.", "rc": "Reverse complement of {s}?", "tx": "What mRNA is transcribed from the coding strand {s}?", "tl": "What protein does the sequence {s} encode (one-letter codes)?", "gc": "GC content (percent) of the sequence {s}?"}}DECLINE = {"dev": ["Translate the sequence ATGGCCTT into a protein."], "heldout": ["What protein does the sequence AUGGCAUUAA encode (one-letter codes)?"]}
def main(): items = [] for split, seed in (("dev", 26), ("heldout", 2626)): rng = random.Random(seed) t = T[split] add = [] for c in rng.sample(sorted(CODONS), 3): add.append(("codon", {"c": c}, CODONS[c])) for s in rng.sample(SEQS, 2): add.append(("comp", {"s": s}, "".join(C[b] for b in s))) for s in rng.sample(SEQS, 2): add.append(("rc", {"s": s}, "".join(C[b] for b in reversed(s)))) for s in rng.sample(SEQS, 2): add.append(("tx", {"s": s}, s.replace("T", "U"))) for s in rng.sample(sorted(PROT), 3): add.append(("tl", {"s": s}, PROT[s])) for s in rng.sample(SEQS, 2): add.append(("gc", {"s": s}, (s.count("G") + s.count("C")) / len(s) * 100)) for kind, kw, exp in add: items.append({"split": split, "kind": kind, "valid": True, "q": t[kind].format(**kw), "expect": exp}) for q in DECLINE[split]: items.append({"split": split, "kind": "decline", "valid": False, "q": q, "expect": "decline"}) json.dump(items, open(sys.argv[1], "w"), indent=1) print("panel:", dict(collections.Counter(i["split"] for i in items)))
if __name__ == "__main__": main()1234567891011121314151617181920212223#!/usr/bin/env python3"""biology_scorer - reads the REPLY TEXT. Sequences / proteins: the first all-caps sequence token after "is" must equalthe expected string exactly. Codons: the amino-acid name right after "encodes" must equal the expected name. GC: thefirst number after "is" within 0.01. A must-decline item answered is a false yes. (ok, asserted)."""import re
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: return (not answered), answered if not answered: return False, False e, k = p["expect"], p["kind"] if k == "codon": m = re.search(r"\bencodes\s+(aspartic acid|glutamic acid|[a-z]+)\b", text, re.I) return bool(m) and m.group(1).lower() == e, True if k == "gc": m = re.search(r"\bis\s+(\d*\.?\d+)", text) return bool(m) and abs(float(m.group(1)) - e) <= 0.01, True m = re.search(r"\bis\s+([A-Z*]+)\b", text) return bool(m) and m.group(1) == e, True1234567891011121314151617181920212223{ "id": "biology", "name": "Oracle7 Biology (molecular sequences)", "number": 26, "tier": "A", "sources": [ {"name": "OpenStax Biology 2e ch. 14-15 (DNA structure, transcription, translation, the genetic code)", "licence": "CC-BY 4.0", "url": "https://openstax.org/details/books/biology-2e"}, {"name": "NCBI Genetic Codes - translation table 1 (the standard code)", "licence": "public domain (US government)", "url": "https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi"} ], "store": {"path": "__ORACLE7_ROOT__/specialists/biology/organ_biology_v1.py"}, "organ": {"dir": "__ORACLE7_ROOT__/specialists/biology", "module": "organ_biology_v1", "class": "BiologyOrgan", "init": {}}, "accept": { "kinds": ["codon", "gc", "revcomp", "complement", "transcribe", "translate", "protein_len"], "declines_in_domain": ["impossible"], "context_regex": "\\b(?:dna|rna|mrna|codon|translat\\w*|transcri\\w*|complement\\w*|gc content|sequence)\\b" }, "panel": {"path": "__ORACLE7_ROOT__/specialists/biology/biology_panel_v1.json", "splits": ["dev", "heldout"], "exclude_kinds_composed": [], "scorer_module": "biology_scorer", "scorer_fn": "ok"}, "routing_cues": ["codon to amino acid", "DNA complement", "reverse complement", "transcription to mRNA", "translation to protein", "GC content"], "budgets": {"latency_p50_ms": 50, "store_mb": 1}, "core_sample": {"n": 400, "seed": 20260928}, "notes": "Standard genetic code (NCBI table 1); translation from the first base, stops at the first stop codon (said so); never guesses a reading frame for a length not divisible by 3. The broader biology curriculum (MMLU biology) is not covered by this organ - v1 is the sequence core. Narrowed from the start (narrow_v1)."}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#!/usr/bin/env python3"""narrow_v1 - the shared NARROWING rule for specialist organs (2026-09-29, from the full-core sweep):
WORD PROBLEMS AND NARRATIVE TURNS BELONG TO THE HEAD. An organ answers a direct domain question. A turn that tells a story ("Justine wants to put a deck ...", "A new energy drink advertises 106 calories for 8 ounces ...") or relates quantities to each other ("the length is 9 inches more than the width") is a word problem, which the core's word- problem organ owns; organs firing on its nouns declined it or answered a different question. An organ may DECLINE only a short direct question (it is then refusing the domain question that was asked); on anything longer it says nothing and the head answers.
Narrowing only ever removes turns an organ takes, so on any input where it does not fire, the organ's reply isbyte-identical to the frozen version it wraps (checked per specialist by an invariance count before re-gating)."""import re
RELATION = re.compile(r"\b(?:\d+(?:\.\d+)?|one|two|three|four|five|six|seven|eight|nine|ten)\s+(?:\w+\s+){0,2}(?:more|less|fewer|longer|shorter)\s+than\b|" r"\b(?:twice|three times|half)\s+(?:as\s+\w+\s+as\s+)?the\s+\w+\b", re.I)
# a RATE ("106 calories for 8 ounces", "3 apples per 2 dollars") makes the turn a proportion problemRATE = re.compile(r"\b\d+(?:\.\d+)?\s+[a-z]+\s+(?:for|per|every)\s+(?:\d+(?:\.\d+)?|a|an|one|each)\s+[a-z]+", re.I)NUM = re.compile(r"(?<![\w.])\d+(?:\.\d+)?(?!\w|\.\d)") # "leg is 5." counts: a sentence-final period is not a decimal
def numbers(t): return len(NUM.findall(str(t or "")))
def last_sentence(t): parts = [s for s in re.split(r"(?<=[.!?;])\s+", str(t or "").strip()) if s.strip()] return parts[-1] if parts else ""
def sentences(t): return len([s for s in re.split(r"(?<=[.!?])\s+", str(t or "").strip()) if s.strip()])
def narrative(t): """a story-shaped or relational turn: 3+ sentences, 40+ words, or quantities defined relative to each other""" t = str(t or "") return sentences(t) >= 3 or len(t.split()) > 40 or RELATION.search(t) is not None or RATE.search(t) is not None
def short_direct(t): """a direct question an organ may decline: at most 2 sentences, at most 25 words, not narrative""" t = str(t or "") return sentences(t) <= 2 and len(t.split()) <= 25 and not narrative(t)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107#!/usr/bin/env python3"""organ_biology_v1 - molecular-biology sequence operations, exact (the standard genetic code, NCBI translation table 1):- DNA complement (A-T, C-G) and reverse complement (5'->3' of the other strand);- transcription of a DNA coding (sense) strand to mRNA (T -> U); of a template strand when it is called the template (reverse complement, then T -> U);- translation of mRNA / DNA coding sequence to protein from the first codon given, one-letter codes, "*" at a stop and translation ends there (stated); the amino acid a single codon encodes;- GC content = (G + C) / length x 100;- sequence length arithmetic: protein length = codons before the first stop.Declines: characters that are not nucleotides, a sequence whose length is not a multiple of 3 for translation.Narrowed from the start (narrow_v1). Returns {kind, status, response, value}."""from __future__ import annotations
import re
from narrow_v1 import narrative, short_direct
BASES = "TCAG"AAS = "FFLLSSSSYY**CC*WLLLLPPPPHHQQRRRRIIIMTTTTNNKKSSRRVVVVAAAADDEEGGGG"CODON = {a + b + c: AAS[16 * i + 4 * j + k] for i, a in enumerate(BASES) for j, b in enumerate(BASES) for k, c in enumerate(BASES)}NAMES = {"F": "phenylalanine", "L": "leucine", "S": "serine", "Y": "tyrosine", "*": "stop", "C": "cysteine", "W": "tryptophan", "P": "proline", "H": "histidine", "Q": "glutamine", "R": "arginine", "I": "isoleucine", "M": "methionine", "T": "threonine", "N": "asparagine", "K": "lysine", "V": "valine", "A": "alanine", "D": "aspartic acid", "E": "glutamic acid", "G": "glycine"}COMP = {"A": "T", "T": "A", "C": "G", "G": "C", "U": "A"}
def clean(s): return re.sub(r"[\s\-]", "", s.upper().replace("5'", "").replace("3'", ""))
class BiologyOrgan: def _say(self, kind, text, value=None, status="answered"): return {"kind": kind, "status": status, "response": text, "value": value}
def _bad(self, why): return self._say("impossible", why, status="withheld")
def answer(self, text, session_id="default"): if narrative(text): return None r = self._answer(text) if r and r.get("status") != "answered" and not short_direct(text): return None return r
def _seq(self, t): # upper-case runs (spaces / hyphens only between codon triplets), or one lower-case token of 6+ bases - # dev: a case-insensitive, space-tolerant pattern read "codon CCG code" as CCGC m = re.search(r"\b([ACGTU]{3,}(?:[ \-][ACGTU]{3})*)\b", t) or re.search(r"\b([acgtu]{6,})\b", t) if not m: return None s = clean(m.group(1)) return s if len(s) >= 3 and re.fullmatch(r"[ACGTU]+", s) else None
def _answer(self, text): t = " ".join(str(text or "").split()) low = t.lower() if not re.search(r"\bdna\b|\brna\b|\bmrna\b|\bsequence\b|\bstrand\b|\bcodon\b|\btranslat\w*\b|\btranscri\w*\b|\bcomplement\w*\b|\bgc content\b|\bprotein\b|\bamino acid\b", low): return None s = self._seq(t) if s is None: return None if "U" in s and "T" in s: return self._bad("A sequence cannot contain both T (DNA) and U (RNA).") # --- single codon if len(s) == 3 and re.search(r"\bcodon\b|\bcode for\b|\bencode\w*\b|\bamino acid\b|\bspecif\w*\b", low): aa = CODON[s.replace("U", "T")] if aa == "*": return self._say("codon", "The codon %s encodes stop - it is a stop codon (no amino acid; translation ends; standard genetic code)." % s, "stop") return self._say("codon", "The codon %s encodes %s (%s; standard genetic code)." % (s, NAMES[aa], aa), NAMES[aa]) # --- GC content if re.search(r"\bgc content\b|\bgc percent\w*\b|\bgc %|\bpercent(?:age)? (?:of )?g(?:\s*\+\s*|c\b)", low): gc = (s.count("G") + s.count("C")) / len(s) * 100 return self._say("gc", "The GC content is %s%% (%d G + C of %d bases)." % (("%.2f" % gc).rstrip("0").rstrip("."), s.count("G") + s.count("C"), len(s)), gc) # --- reverse complement / complement if re.search(r"\breverse[- ]complement\b", low): rc = "".join(COMP[b] for b in reversed(s.replace("U", "T"))) return self._say("revcomp", "The reverse complement is %s (5'->3' of the opposite strand)." % rc, rc) if re.search(r"\bcomplement\w*\b", low) and not re.search(r"\btranscri\w*\b|\btranslat\w*\b", low): c = "".join(COMP[b] for b in s.replace("U", "T")) return self._say("complement", "The complementary strand is %s (A-T, C-G, written 3'->5' under the given strand)." % c, c) # --- transcription if re.search(r"\btranscri\w*\b|\bmrna\b(?!.*\btranslat)", low) and not re.search(r"\btranslat\w*\b|\bprotein\b|\bamino acids?\b", low): if "U" in s: return None if re.search(r"\btemplate\b|\bantisense\b|\bnon-?coding strand\b", low): m = "".join(COMP[b] for b in reversed(s)).replace("T", "U") return self._say("transcribe", "The mRNA is %s (the template strand read 3'->5', complementary bases, U for T; written 5'->3')." % m, m) m = s.replace("T", "U") return self._say("transcribe", "The mRNA is %s (same as the coding strand with U in place of T)." % m, m) # --- translation if re.search(r"\btranslat\w*\b|\bprotein\b|\bamino acid sequence\b|\bpeptide\b", low): nt = s.replace("U", "T") if len(nt) % 3: return self._bad("The sequence has %d bases, not a whole number of codons; I won't guess a reading frame." % len(nt)) aa = [] for i in range(0, len(nt), 3): a = CODON[nt[i:i + 3]] if a == "*": break aa.append(a) stop = len(aa) * 3 < len(nt) prot = "".join(aa) if re.search(r"\bhow many amino acids\b|\blength of the protein\b|\bhow long\b", low): return self._say("protein_len", "The protein is %d amino acids long (%d codons before %s)." % (len(aa), len(aa), "the stop codon" if stop else "the end of the sequence"), len(aa)) return self._say("translate", "The protein is %s (standard genetic code, reading frame from the first base; %s)." % (prot or "(empty - it starts with a stop codon)", "translation stops at the stop codon" if stop else "no stop codon in the sequence"), prot) return None123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "biology", "name": "Oracle7 Biology (molecular sequences)", "tier": "A", "split": "dev", "head": "oracle_release_runtime_w503", "time": "2026-09-29T09:48:00Z", "domain": { "head": { "correct": 1, "false_yes": 0, "wrong": 2, "n": 15, "p50_ms": 437.58, "fails": [ [ "codon", "What amino acid does the codon CCG code for?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "codon", "What amino acid does the codon UUU code for?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "codon", "What amino acid does the codon UAA code for?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "comp", "What is the complementary DNA strand of CATGGT?", "corpus_query:property_of|vessel:receipt", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nI have received \"Wh" ], [ "comp", "What is the complementary DNA strand of AAGCTTC?", "corpus_query:property_of|vessel:receipt", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nI have received \"Wh" ], [ "rc", "What is the reverse complement of the DNA sequence ATGCGT?", "corpus_query:property_of|vessel:receipt", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nI have received \"Wh" ], [ "rc", "What is the reverse complement of the DNA sequence GGCCTTAA?", "corpus_query:property_of|vessel:receipt", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nI have received \"Wh" ], [ "tx", "Transcribe the DNA coding strand TTTACCGG into mRNA.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 15, "false_yes": 0, "wrong": 0, "n": 15, "p50_ms": 0.02, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "DEV-PASS", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "biology", "name": "Oracle7 Biology (molecular sequences)", "tier": "A", "split": "heldout", "head": "oracle_release_runtime_w503", "time": "2026-09-29T09:51:54Z", "domain": { "head": { "correct": 1, "false_yes": 0, "wrong": 0, "n": 15, "p50_ms": 432.26, "fails": [ [ "codon", "Which amino acid is specified by the mRNA codon GAU?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "codon", "Which amino acid is specified by the mRNA codon GGC?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "codon", "Which amino acid is specified by the mRNA codon UUU?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "comp", "Give the complement of the DNA strand ACGTACGT.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "comp", "Give the complement of the DNA strand AAGCTTC.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "rc", "Reverse complement of TTTACCGG?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "rc", "Reverse complement of ATGCGT?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "tx", "What mRNA is transcribed from the coding strand ACGTACGT?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 15, "false_yes": 0, "wrong": 0, "n": 15, "p50_ms": 0.02, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "ADMIT", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198[ { "split": "dev", "kind": "c2co2", "valid": true, "q": "How much CO2 is produced when 2.5 tonnes of carbon are burned?", "expect": 9.16035300974107 }, { "split": "dev", "kind": "c2co2", "valid": true, "q": "How much CO2 is produced when 100 tonnes of carbon are burned?", "expect": 366.41412038964285 }, { "split": "dev", "kind": "co22c", "valid": true, "q": "How much carbon is in 1000 tonnes of CO2?", "expect": 272.9152465348784 }, { "split": "dev", "kind": "co22c", "valid": true, "q": "How much carbon is in 44 tonnes of CO2?", "expect": 12.00827084753465 }, { "split": "dev", "kind": "fuel", "valid": true, "q": "How much CO2 is emitted by burning 10 gallons of gasoline?", "expect": 88.87 }, { "split": "dev", "kind": "fuel", "valid": true, "q": "How much CO2 is emitted by burning 15 gallons of diesel?", "expect": 152.7 }, { "split": "dev", "kind": "mile", "valid": true, "q": "How many grams of CO2 per mile does a gasoline car getting 40 mpg emit?", "expect": 222.175 }, { "split": "dev", "kind": "mile", "valid": true, "q": "How many grams of CO2 per mile does a gasoline car getting 25 mpg emit?", "expect": 355.48 }, { "split": "dev", "kind": "cap", "valid": true, "q": "A plant emits 10,000 tonnes of CO2 a year and captures 95% of it. How much CO2 is captured?", "expect": 9500.0 }, { "split": "dev", "kind": "cap", "valid": true, "q": "A plant emits 1,000 tonnes of CO2 a year and captures 90% of it. How much CO2 is captured?", "expect": 900.0 }, { "split": "dev", "kind": "energy", "valid": true, "q": "Capturing 90% of 1000 tonnes of CO2 at 400 kWh per tonne: how much energy is needed?", "expect": 360000.0 }, { "split": "dev", "kind": "energy", "valid": true, "q": "Capturing 85% of 200 tonnes of CO2 at 300 kWh per tonne: how much energy is needed?", "expect": 51000.0 }, { "split": "dev", "kind": "decline", "valid": false, "q": "A plant emits 1000 tonnes of CO2 a year and captures 120% of it. How much CO2 is captured?", "expect": "decline" }, { "split": "dev", "kind": "off", "valid": false, "q": "What is the price of a carbon offset per tonne?", "expect": "not taken" }, { "split": "heldout", "kind": "c2co2", "valid": true, "q": "Burning 1 t of pure carbon produces how many tonnes of CO2?", "expect": 3.6641412038964285 }, { "split": "heldout", "kind": "c2co2", "valid": true, "q": "Burning 12 t of pure carbon produces how many tonnes of CO2?", "expect": 43.969694446757146 }, { "split": "heldout", "kind": "co22c", "valid": true, "q": "Express 1000 tonnes of CO2 as carbon: how much carbon is that?", "expect": 272.9152465348784 }, { "split": "heldout", "kind": "co22c", "valid": true, "q": "Express 44 tonnes of CO2 as carbon: how much carbon is that?", "expect": 12.00827084753465 }, { "split": "heldout", "kind": "fuel", "valid": true, "q": "CO2 emissions in kg from 10 US gallons of gasoline?", "expect": 88.87 }, { "split": "heldout", "kind": "fuel", "valid": true, "q": "CO2 emissions in kg from 100 US gallons of gasoline?", "expect": 888.7 }, { "split": "heldout", "kind": "mile", "valid": true, "q": "At 30 miles per gallon, a diesel vehicle emits how many grams of CO2 per mile?", "expect": 339.3333333333333 }, { "split": "heldout", "kind": "mile", "valid": true, "q": "At 25 miles per gallon, a gasoline vehicle emits how many grams of CO2 per mile?", "expect": 355.48 }, { "split": "heldout", "kind": "cap", "valid": true, "q": "With a capture rate of 90%, how many tonnes are captured from 1,000 tonnes of CO2 emissions?", "expect": 900.0 }, { "split": "heldout", "kind": "cap", "valid": true, "q": "With a capture rate of 95%, how many tonnes are captured from 10,000 tonnes of CO2 emissions?", "expect": 9500.0 }, { "split": "heldout", "kind": "energy", "valid": true, "q": "A direct air capture unit uses 400 kWh per tonne and captures 90% of 1000 tonnes. How much energy?", "expect": 360000.0 }, { "split": "heldout", "kind": "energy", "valid": true, "q": "A direct air capture unit uses 2000 kWh per tonne and captures 100% of 50 tonnes. How much energy?", "expect": 100000.0 }, { "split": "heldout", "kind": "decline", "valid": false, "q": "With a capture rate of 150%, how many tonnes are captured from 500 tonnes of CO2 emissions?", "expect": "decline" }, { "split": "heldout", "kind": "off", "valid": false, "q": "How much are carbon credits worth?", "expect": "not taken" }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960#!/usr/bin/env python3"""carboncapture_panel_v1 - the sealed panel for specialist #93 (carbon capture & climate technology). Expected valuesfrom the relations written here: CO2 = C x 44.01/12.011; C = CO2 x 12.011/44.01; gasoline 8,887 g/gal, diesel10,180 g/gal (EPA); g/mile = factor / mpg; captured = emissions x rate; energy = captured x intensity.Must-decline: capture rate above 100%. Off-domain: offset pricing must not be taken.Dev / held-out differ in seed and phrasing. usage: carboncapture_panel_v1.py <out.json>"""import collectionsimport jsonimport randomimport sys
R = 44.01 / 12.011EF = {"gasoline": 8887.0, "diesel": 10180.0}T = {"dev": {"c2co2": "How much CO2 is produced when {m} tonnes of carbon are burned?", "co22c": "How much carbon is in {m} tonnes of CO2?", "fuel": "How much CO2 is emitted by burning {g} gallons of {f}?", "mile": "How many grams of CO2 per mile does a {f} car getting {mpg} mpg emit?", "cap": "A plant emits {m} tonnes of CO2 a year and captures {c}% of it. How much CO2 is captured?", "energy": "Capturing {c}% of {m} tonnes of CO2 at {e} kWh per tonne: how much energy is needed?"}, "heldout": {"c2co2": "Burning {m} t of pure carbon produces how many tonnes of CO2?", "co22c": "Express {m} tonnes of CO2 as carbon: how much carbon is that?", "fuel": "CO2 emissions in kg from {g} US gallons of {f}?", "mile": "At {mpg} miles per gallon, a {f} vehicle emits how many grams of CO2 per mile?", "cap": "With a capture rate of {c}%, how many tonnes are captured from {m} tonnes of CO2 emissions?", "energy": "A direct air capture unit uses {e} kWh per tonne and captures {c}% of {m} tonnes. How much energy?"}}DECLINE = {"dev": ["A plant emits 1000 tonnes of CO2 a year and captures 120% of it. How much CO2 is captured?"], "heldout": ["With a capture rate of 150%, how many tonnes are captured from 500 tonnes of CO2 emissions?"]}OFF = {"dev": ["What is the price of a carbon offset per tonne?"], "heldout": ["How much are carbon credits worth?"]}
def main(): items = [] for split, seed in (("dev", 93), ("heldout", 9393)): rng = random.Random(seed) t = T[split] add = [] for m in rng.sample([1, 12, 100, 2.5], 2): add.append(("c2co2", {"m": m}, m * R)) for m in rng.sample([44, 1, 1000, 3.67], 2): add.append(("co22c", {"m": m}, m / R)) for gg, f in rng.sample([(10, "gasoline"), (15, "diesel"), (100, "gasoline"), (1, "diesel")], 2): add.append(("fuel", {"g": gg, "f": f}, gg * EF[f] / 1000)) for f, mpg in rng.sample([("gasoline", 25), ("gasoline", 40), ("diesel", 30), ("diesel", 18)], 2): add.append(("mile", {"f": f, "mpg": mpg}, EF[f] / mpg)) for m, c in rng.sample([(1000, 90), (5000, 85), (250, 60), (10000, 95)], 2): add.append(("cap", {"m": format(m, ","), "c": c}, m * c / 100)) for c, m, e in rng.sample([(90, 1000, 400), (100, 50, 2000), (85, 200, 300)], 2): add.append(("energy", {"c": c, "m": m, "e": e}, m * c / 100 * e)) for kind, kw, exp in add: items.append({"split": split, "kind": kind, "valid": True, "q": t[kind].format(**kw), "expect": exp}) for q in DECLINE[split]: items.append({"split": split, "kind": "decline", "valid": False, "q": q, "expect": "decline"}) for q in OFF[split]: items.append({"split": split, "kind": "off", "valid": False, "q": q, "expect": "not taken"}) json.dump(items, open(sys.argv[1], "w"), indent=1) print("panel:", dict(collections.Counter(i["split"] for i in items)))
if __name__ == "__main__": main()123456789101112131415161718#!/usr/bin/env python3"""carboncapture_scorer - the first number after "is" in the REPLY TEXT (commas allowed) must be within 0.5% of thepanel's relation (tonnes, kg, g/mile, kWh). A must-decline or off-domain item answered is a false yes. (ok, asserted)."""import re
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: return (not answered), answered if not answered: return False, False m = re.search(r"\bis\s+(?:about\s+)?([\d,]*\.?\d+)", text) if not m: return False, True got, e = float(m.group(1).replace(",", "")), float(p["expect"]) return abs(got - e) <= 0.005 * abs(e), True1234567891011121314151617181920212223{ "id": "carboncapture", "name": "Oracle7 Carbon Capture & Climate Technology", "number": 93, "tier": "B", "sources": [ {"name": "EPA Greenhouse Gas Emissions from a Typical Passenger Vehicle (8,887 g CO2/gal gasoline, 10,180 g/gal diesel)", "licence": "public domain (US government)", "url": "https://www.epa.gov/greenvehicles/greenhouse-gas-emissions-typical-passenger-vehicle"}, {"name": "DOE / NETL carbon capture: capture rate, energy intensity; molar masses C 12.011, CO2 44.01", "licence": "public domain (US government)", "url": "https://netl.doe.gov/carbon-management/carbon-capture"} ], "store": {"path": "__ORACLE7_ROOT__/specialists/carboncapture/organ_carboncapture_v1.py"}, "organ": {"dir": "__ORACLE7_ROOT__/specialists/carboncapture", "module": "organ_carboncapture_v1", "class": "CarbonCaptureOrgan", "init": {}}, "accept": { "kinds": ["c_to_co2", "co2_to_c", "fuel_co2", "co2_per_mile", "captured", "capture_energy"], "declines_in_domain": ["impossible"], "context_regex": "\\b(?:co2|carbon dioxide|captur\\w*|emissions?|gasoline|diesel|direct air capture)\\b" }, "panel": {"path": "__ORACLE7_ROOT__/specialists/carboncapture/carboncapture_panel_v1.json", "splits": ["dev", "heldout"], "exclude_kinds_composed": [], "scorer_module": "carboncapture_scorer", "scorer_fn": "ok"}, "routing_cues": ["carbon to CO2 mass", "CO2 from burning fuel", "CO2 per mile from mpg", "CO2 captured at a capture rate", "capture energy"], "budgets": {"latency_p50_ms": 50, "store_mb": 1}, "core_sample": {"n": 400, "seed": 20260928}, "notes": "EPA emission factors named; capture rate and energy intensity only as given. No offset / credit pricing (falls through). Narrowed from the start (narrow_v1)."}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#!/usr/bin/env python3"""narrow_v1 - the shared NARROWING rule for specialist organs (2026-09-29, from the full-core sweep):
WORD PROBLEMS AND NARRATIVE TURNS BELONG TO THE HEAD. An organ answers a direct domain question. A turn that tells a story ("Justine wants to put a deck ...", "A new energy drink advertises 106 calories for 8 ounces ...") or relates quantities to each other ("the length is 9 inches more than the width") is a word problem, which the core's word- problem organ owns; organs firing on its nouns declined it or answered a different question. An organ may DECLINE only a short direct question (it is then refusing the domain question that was asked); on anything longer it says nothing and the head answers.
Narrowing only ever removes turns an organ takes, so on any input where it does not fire, the organ's reply isbyte-identical to the frozen version it wraps (checked per specialist by an invariance count before re-gating)."""import re
RELATION = re.compile(r"\b(?:\d+(?:\.\d+)?|one|two|three|four|five|six|seven|eight|nine|ten)\s+(?:\w+\s+){0,2}(?:more|less|fewer|longer|shorter)\s+than\b|" r"\b(?:twice|three times|half)\s+(?:as\s+\w+\s+as\s+)?the\s+\w+\b", re.I)
# a RATE ("106 calories for 8 ounces", "3 apples per 2 dollars") makes the turn a proportion problemRATE = re.compile(r"\b\d+(?:\.\d+)?\s+[a-z]+\s+(?:for|per|every)\s+(?:\d+(?:\.\d+)?|a|an|one|each)\s+[a-z]+", re.I)NUM = re.compile(r"(?<![\w.])\d+(?:\.\d+)?(?!\w|\.\d)") # "leg is 5." counts: a sentence-final period is not a decimal
def numbers(t): return len(NUM.findall(str(t or "")))
def last_sentence(t): parts = [s for s in re.split(r"(?<=[.!?;])\s+", str(t or "").strip()) if s.strip()] return parts[-1] if parts else ""
def sentences(t): return len([s for s in re.split(r"(?<=[.!?])\s+", str(t or "").strip()) if s.strip()])
def narrative(t): """a story-shaped or relational turn: 3+ sentences, 40+ words, or quantities defined relative to each other""" t = str(t or "") return sentences(t) >= 3 or len(t.split()) > 40 or RELATION.search(t) is not None or RATE.search(t) is not None
def short_direct(t): """a direct question an organ may decline: at most 2 sentences, at most 25 words, not narrative""" t = str(t or "") return sentences(t) <= 2 and len(t.split()) <= 25 and not narrative(t)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283#!/usr/bin/env python3"""organ_carboncapture_v1 - carbon accounting and capture arithmetic (EPA / DOE conventions), factor named in everyanswer:- carbon <-> CO2 mass: CO2 = C x 44.01 / 12.011 (and back);- fuel combustion CO2 (EPA emission factors): gasoline 8,887 g CO2 per US gallon, diesel 10,180 g per gallon;- tailpipe CO2 per mile from fuel economy: 8,887 / mpg grams (gasoline), 10,180 / mpg (diesel);- CO2 captured = emissions x capture rate (rate must be given);- capture energy = tonnes captured x stated energy intensity (kWh or GJ per tonne).Declines: a capture rate above 100%. No offsets / credits valuation. Narrowed from the start (narrow_v1).Returns {kind, status, response, value}."""from __future__ import annotations
import re
from narrow_v1 import narrative, short_direct
N = r"(\d+(?:,\d{3})*(?:\.\d+)?)"R = 44.01 / 12.011EF = {"gasoline": 8887.0, "petrol": 8887.0, "diesel": 10180.0}
def num(s): return float(s.replace(",", ""))
def g(x): return ("%.4f" % x).rstrip("0").rstrip(".") if abs(x) < 1e5 else format(round(x), ",")
class CarbonCaptureOrgan: def _say(self, kind, text, value=None, status="answered"): return {"kind": kind, "status": status, "response": text, "value": value}
def _bad(self, why): return self._say("impossible", why, status="withheld")
def answer(self, text, session_id="default"): if narrative(text): return None r = self._answer(text) if r and r.get("status") != "answered" and not short_direct(text): return None return r
def _answer(self, text): t = " ".join(str(text or "").split()) low = t.lower() if re.search(r"\boffsets?\b|\bcredits?\b|\bprice\b|\bworth\b|\$", low): return None mass = re.search(N + r"\s*(tonnes?|tons?|t|kg|kilograms?|mt|gt|gigatonnes?|megatonnes?)\b", low) unit = mass.group(2) if mass else None # --- fuel combustion CO2 fuel = next((f for f in EF if re.search(r"\b" + f + r"\b", low)), None) mpg = re.search(N + r"\s*(?:mpg|miles per gallon)\b", low) if fuel and mpg and re.search(r"\bper mile\b|\bco2 per\b|\bgrams\b", low): v = EF[fuel] / num(mpg.group(1)) return self._say("co2_per_mile", "The tailpipe CO2 is %s g per mile (%s g CO2/gal ÷ %s mpg; EPA %s factor)." % (g(v), g(EF[fuel]), g(num(mpg.group(1))), fuel), v) gal = re.search(N + r"\s*(?:us\s+)?gallons?\b", low) if fuel and gal and re.search(r"\bco2\b|\bcarbon dioxide\b|\bemi\w+\b", low): v = num(gal.group(1)) * EF[fuel] / 1000 return self._say("fuel_co2", "The CO2 emitted is %s kg (%s gal × %s g CO2/gal; EPA %s factor)." % (g(v), g(num(gal.group(1))), g(EF[fuel]), fuel), v) # --- captured cap = re.search(r"(\d+(?:\.\d+)?)\s*%\s*(?:capture|of (?:the |its )?(?:co2|emissions))|\bcapture (?:rate|efficiency)\s*(?:of|is)?\s*(\d+(?:\.\d+)?)\s*%|\bcaptur\w*\s*(\d+(?:\.\d+)?)\s*%", low) # captures / capturing / captured (dev: "Capturing 90% of ...") if cap and mass and re.search(r"\bcaptur\w*\b", low): c = float(cap.group(1) or cap.group(2) or cap.group(3)) if c > 100: return self._bad("A capture rate above 100% is not possible.") ekwh = re.search(N + r"\s*(kwh|mwh|gj)\s*(?:per|/|a)\s*(?:tonne|ton|t)\b", low) got = num(mass.group(1)) * c / 100 if ekwh and re.search(r"\benergy\b|\bhow much (?:energy|electricity|power)\b", low): e = got * num(ekwh.group(1)) return self._say("capture_energy", "The energy needed is %s %s (%s %s captured × %s %s per tonne)." % (g(e), ekwh.group(2).upper() if ekwh.group(2) != "kwh" else "kWh", g(got), unit, g(num(ekwh.group(1))), ekwh.group(2) if ekwh.group(2) != "kwh" else "kWh"), e) return self._say("captured", "The CO2 captured is %s %s (%s × %s%% capture rate)." % (g(got), unit, g(num(mass.group(1))), g(c)), got) # --- carbon <-> CO2 if mass and re.search(r"\bco2\b|\bcarbon dioxide\b", low) and re.search(r"\bcarbon\b", low.replace("carbon dioxide", "")): if re.search(r"\b(?:of|from) (?:pure )?carbon\b|\bcarbon (?:is )?(?:burned|burnt|combusted|oxidi[sz]ed)\b|\bburning\b.*\bcarbon\b|\bcarbon\b.*\b(?:produce|make|form|yield)s?\b", low) and \ re.search(r"\bhow much co2\b|\bhow many\b.*\bco2\b|\bco2 (?:is )?(?:produced|formed|released|made)\b|\bmass of co2\b|\bproduce\b", low): v = num(mass.group(1)) * R return self._say("c_to_co2", "That is %s %s of CO2 (%s × 44.01/12.011)." % (g(v), unit, g(num(mass.group(1)))), v) if re.search(r"\bhow much carbon\b|\bcarbon content\b|\bmass of carbon\b|\bin terms of carbon\b|\bas carbon\b", low): v = num(mass.group(1)) / R return self._say("co2_to_c", "That is %s %s of carbon (%s × 12.011/44.01)." % (g(v), unit, g(num(mass.group(1)))), v) return None123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "carboncapture", "name": "Oracle7 Carbon Capture & Climate Technology", "tier": "B", "split": "dev", "head": "oracle_release_runtime_w503", "time": "2026-09-29T08:03:57Z", "domain": { "head": { "correct": 2, "false_yes": 0, "wrong": 0, "n": 14, "p50_ms": 33.54, "fails": [ [ "c2co2", "How much CO2 is produced when 2.5 tonnes of carbon are burned?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "c2co2", "How much CO2 is produced when 100 tonnes of carbon are burned?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "co22c", "How much carbon is in 1000 tonnes of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "co22c", "How much carbon is in 44 tonnes of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fuel", "How much CO2 is emitted by burning 10 gallons of gasoline?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fuel", "How much CO2 is emitted by burning 15 gallons of diesel?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mile", "How many grams of CO2 per mile does a gasoline car getting 40 mpg emit", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mile", "How many grams of CO2 per mile does a gasoline car getting 25 mpg emit", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 14, "false_yes": 0, "wrong": 0, "n": 14, "p50_ms": 0.07, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "DEV-PASS", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "id": "carboncapture", "name": "Oracle7 Carbon Capture & Climate Technology", "tier": "B", "split": "heldout", "head": "oracle_release_runtime_w503", "time": "2026-09-29T08:07:45Z", "domain": { "head": { "correct": 2, "false_yes": 0, "wrong": 0, "n": 14, "p50_ms": 53.85, "fails": [ [ "c2co2", "Burning 1 t of pure carbon produces how many tonnes of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "c2co2", "Burning 12 t of pure carbon produces how many tonnes of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "co22c", "Express 1000 tonnes of CO2 as carbon: how much carbon is that?", "act:clarify_specific", "What does \"that\" refer to? Nothing earlier in this conversation names it. Tell me the name" ], [ "co22c", "Express 44 tonnes of CO2 as carbon: how much carbon is that?", "act:clarify_specific", "What does \"that\" refer to? Nothing earlier in this conversation names it. Tell me the name" ], [ "fuel", "CO2 emissions in kg from 10 US gallons of gasoline?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "fuel", "CO2 emissions in kg from 100 US gallons of gasoline?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mile", "At 30 miles per gallon, a diesel vehicle emits how many grams of CO2 p", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mile", "At 25 miles per gallon, a gasoline vehicle emits how many grams of CO2", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 14, "false_yes": 0, "wrong": 0, "n": 14, "p50_ms": 0.07, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "swept_in": 0, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.01, "decision": "ADMIT", "reasons": []}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544[ { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of H2O.", "expect": 18.015 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of H2O to moles.", "expect": 2.7754648903691366 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of H2O in grams?", "expect": 54.045 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of H2O is oxygen?", "expect": 88.80932556203165 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CO2?", "expect": 44.009 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of CO2?", "expect": 2.2722624917630485 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of CO2?", "expect": 22.0045 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of carbon in CO2?", "expect": 27.292144788565974 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of NaCl?", "expect": 58.4397693 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of NaCl?", "expect": 0.17111634970126413 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of NaCl?", "expect": 175.3193079 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of sodium in NaCl?", "expect": 39.33925403090186 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of H2SO4?", "expect": 98.08200000000001 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of H2SO4?", "expect": 0.010195550661691238 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of H2SO4?", "expect": 24.520500000000002 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of sulfur in H2SO4?", "expect": 32.697130972043794 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of HCl.", "expect": 36.458000000000006 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of HCl to moles.", "expect": 0.06857205551593613 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of HCl in grams?", "expect": 9.114500000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of HCl is hydrogen?", "expect": 2.764825278402545 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of HNO3?", "expect": 63.012 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of HNO3?", "expect": 0.1586999301720307 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of HNO3?", "expect": 126.024 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in HNO3?", "expect": 76.1712054846696 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of NH3.", "expect": 17.031 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of NH3 to moles.", "expect": 0.5871645822323998 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of NH3 in grams?", "expect": 4.25775 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of NH3 is nitrogen?", "expect": 82.24414303329225 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CH4.", "expect": 16.043 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of CH4 to moles.", "expect": 1.1219846662095618 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of CH4 in grams?", "expect": 4.01075 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CH4 is hydrogen?", "expect": 25.132456523094184 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C2H6.", "expect": 30.07 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of C2H6 to moles.", "expect": 0.08313934153641503 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of C2H6 in grams?", "expect": 7.5175 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C2H6 is carbon?", "expect": 79.88693049551047 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of C3H8?", "expect": 44.097 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 36 g of C3H8?", "expect": 0.8163820668072658 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of C3H8?", "expect": 132.291 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of carbon in C3H8?", "expect": 81.71304170351723 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C2H5OH.", "expect": 46.069 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of C2H5OH to moles.", "expect": 0.39071827042045626 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of C2H5OH in grams?", "expect": 11.51725 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C2H5OH is carbon?", "expect": 52.143523844667776 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C6H12O6.", "expect": 180.156 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of C6H12O6 to moles.", "expect": 0.005550744909966918 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of C6H12O6 in grams?", "expect": 540.4680000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C6H12O6 is hydrogen?", "expect": 6.714181043095983 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C12H22O11.", "expect": 342.297 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of C12H22O11 to moles.", "expect": 0.14607197842809022 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of C12H22O11 in grams?", "expect": 85.57425 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C12H22O11 is oxygen?", "expect": 51.414122823162344 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of NaOH?", "expect": 39.9967693 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of NaOH?", "expect": 2.50020193505979 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of NaOH?", "expect": 9.999192325 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in NaOH?", "expect": 40.000730759021586 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of KOH?", "expect": 56.1053 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of KOH?", "expect": 0.01782362807078832 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of KOH?", "expect": 56.1053 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of potassium in KOH?", "expect": 69.6873557400103 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Ca(OH)2?", "expect": 74.094 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of Ca(OH)2?", "expect": 0.013496369476610794 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of Ca(OH)2?", "expect": 148.188 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of calcium in Ca(OH)2?", "expect": 54.09344886225606 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Mg(OH)2?", "expect": 58.319 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 50 g of Mg(OH)2?", "expect": 0.8573535211509113 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of Mg(OH)2?", "expect": 58.319 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of magnesium in Mg(OH)2?", "expect": 41.6759546631458 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Al(OH)3?", "expect": 78.002538 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of Al(OH)3?", "expect": 0.012820095674322803 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of Al(OH)3?", "expect": 39.001269 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of hydrogen in Al(OH)3?", "expect": 3.876796931915215 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CaCO3.", "expect": 100.088 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of CaCO3 to moles.", "expect": 0.09991207737191272 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of CaCO3 in grams?", "expect": 100.088 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CaCO3 is calcium?", "expect": 40.04476061066262 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Na2CO3?", "expect": 105.9875386 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 18 g of Na2CO3?", "expect": 0.16983128618480817 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of Na2CO3?", "expect": 317.9626158 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of sodium in Na2CO3?", "expect": 43.38202321456685 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of NaHCO3?", "expect": 84.0057693 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of NaHCO3?", "expect": 0.11903944316357806 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of NaHCO3?", "expect": 168.0115386 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of hydrogen in NaHCO3?", "expect": 1.1999175870888668 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of KNO3.", "expect": 101.1023 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of KNO3 to moles.", "expect": 0.178037492717772 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of KNO3 in grams?", "expect": 202.2046 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of KNO3 is oxygen?", "expect": 47.47369743319391 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of NH4NO3?", "expect": 80.043 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 50 g of NH4NO3?", "expect": 0.6246642429694039 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of NH4NO3?", "expect": 80.043 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in NH4NO3?", "expect": 59.96401933960497 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of (NH4)2SO4.", "expect": 132.144 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of (NH4)2SO4 to moles.", "expect": 0.07567502118900593 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of (NH4)2SO4 in grams?", "expect": 66.072 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of (NH4)2SO4 is nitrogen?", "expect": 21.199600435888122 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Fe2O3.", "expect": 159.67700000000002 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of Fe2O3 to moles.", "expect": 0.22545513755894708 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of Fe2O3 in grams?", "expect": 39.919250000000005 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Fe2O3 is iron?", "expect": 69.94119378495337 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Fe3O4.", "expect": 231.51600000000002 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of Fe3O4 to moles.", "expect": 0.04319355897648542 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of Fe3O4 in grams?", "expect": 115.75800000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Fe3O4 is iron?", "expect": 72.35784999740838 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of FeCl3.", "expect": 162.19 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 100 g of FeCl3 to moles.", "expect": 0.6165608237252606 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of FeCl3 in grams?", "expect": 486.57 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of FeCl3 is chlorine?", "expect": 65.57124360318147 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CuSO4?", "expect": 159.61599999999999 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of CuSO4?", "expect": 0.6265036086607859 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of CuSO4?", "expect": 319.23199999999997 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of copper in CuSO4?", "expect": 39.81430433039294 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Cu(NO3)2.", "expect": 187.558 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of Cu(NO3)2 to moles.", "expect": 0.005331684065729001 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of Cu(NO3)2 in grams?", "expect": 46.8895 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Cu(NO3)2 is oxygen?", "expect": 51.180968020558986 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of AgNO3?", "expect": 169.87199999999999 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 36 g of AgNO3?", "expect": 0.21192427239333148 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of AgNO3?", "expect": 339.74399999999997 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in AgNO3?", "expect": 28.25480361684092 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of AgCl.", "expect": 143.31799999999998 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of AgCl to moles.", "expect": 0.006977490615275124 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of AgCl in grams?", "expect": 143.31799999999998 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of AgCl is chlorine?", "expect": 24.735204231150316 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of BaSO4.", "expect": 233.39600000000002 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of BaSO4 to moles.", "expect": 0.01071140893588579 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of BaSO4 in grams?", "expect": 700.1880000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of BaSO4 is sulfur?", "expect": 13.740595382954291 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of BaCl2?", "expect": 208.23000000000002 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of BaCl2?", "expect": 0.004802381981462805 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of BaCl2?", "expect": 208.23000000000002 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of barium in BaCl2?", "expect": 65.95111175142871 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of KMnO4.", "expect": 158.03234 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of KMnO4 to moles.", "expect": 0.22780147405271603 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of KMnO4 in grams?", "expect": 474.09702000000004 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of KMnO4 is potassium?", "expect": 24.740695480431413 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of K2Cr2O7?", "expect": 294.1816 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 2.5 g of K2Cr2O7?", "expect": 0.00849815216179394 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of K2Cr2O7?", "expect": 882.5448 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of chromium in K2Cr2O7?", "expect": 35.349593584371014 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of H3PO4?", "expect": 97.993762 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 36 g of H3PO4?", "expect": 0.3673703230211735 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of H3PO4?", "expect": 24.4984405 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of phosphorus in H3PO4?", "expect": 31.60789153089153 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Ca3(PO4)2.", "expect": 310.179524 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of Ca3(PO4)2 to moles.", "expect": 0.16119697185427365 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of Ca3(PO4)2 in grams?", "expect": 620.359048 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Ca3(PO4)2 is calcium?", "expect": 38.76464779151573 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Na3PO4.", "expect": 163.9390699 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of Na3PO4 to moles.", "expect": 0.006099827213915407 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of Na3PO4 in grams?", "expect": 327.8781398 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Na3PO4 is phosphorus?", "expect": 18.89345963649389 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of MgSO4?", "expect": 120.37100000000001 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of MgSO4?", "expect": 0.0830764885229831 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of MgSO4?", "expect": 60.185500000000005 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of magnesium in MgSO4?", "expect": 20.191740535511045 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of ZnCl2.", "expect": 136.3 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of ZnCl2 to moles.", "expect": 0.13206162876008803 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of ZnCl2 in grams?", "expect": 34.075 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of ZnCl2 is chlorine?", "expect": 52.01760821716801 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of ZnO.", "expect": 81.399 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of ZnO to moles.", "expect": 0.12285163208393224 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of ZnO in grams?", "expect": 162.798 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of ZnO is oxygen?", "expect": 19.65503261710832 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Al2O3.", "expect": 101.960076 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of Al2O3 to moles.", "expect": 0.17653968794609373 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of Al2O3 in grams?", "expect": 101.960076 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Al2O3 is aluminum?", "expect": 52.92569220917411 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of SiO2.", "expect": 60.083 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of SiO2 to moles.", "expect": 0.5991711465805636 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of SiO2 in grams?", "expect": 120.166 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of SiO2 is oxygen?", "expect": 53.25632874523576 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of TiO2?", "expect": 79.865 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 18 g of TiO2?", "expect": 0.2253803293057034 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of TiO2?", "expect": 39.9325 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in TiO2?", "expect": 40.06510987291054 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CaO.", "expect": 56.079 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of CaO to moles.", "expect": 0.6419515326592842 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of CaO in grams?", "expect": 14.01975 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CaO is calcium?", "expect": 71.47060396940032 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of MgO.", "expect": 40.304 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of MgO to moles.", "expect": 0.8932115919015482 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of MgO in grams?", "expect": 120.912 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of MgO is oxygen?", "expect": 39.69581183009131 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Na2O?", "expect": 61.9785386 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of Na2O?", "expect": 0.16134617281860208 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of Na2O?", "expect": 30.9892693 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in Na2O?", "expect": 25.81377418924815 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of K2O?", "expect": 94.1956 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of K2O?", "expect": 0.1061620712644752 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of K2O?", "expect": 282.5868 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in K2O?", "expect": 16.98486978160339 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of SO2?", "expect": 64.068 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 18 g of SO2?", "expect": 0.2809514890428919 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of SO2?", "expect": 128.136 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in SO2?", "expect": 49.94380970219142 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of SO3.", "expect": 80.06700000000001 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of SO3 to moles.", "expect": 0.031223850025603555 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of SO3 in grams?", "expect": 240.20100000000002 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of SO3 is oxygen?", "expect": 59.94604518715576 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of NO2.", "expect": 46.005 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of NO2 to moles.", "expect": 0.78252363873492 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of NO2 in grams?", "expect": 92.01 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of NO2 is oxygen?", "expect": 69.55330942288882 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of N2O.", "expect": 44.013 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of N2O to moles.", "expect": 0.056801399586485814 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of N2O in grams?", "expect": 22.0065 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of N2O is nitrogen?", "expect": 63.64937632063255 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CO?", "expect": 28.009999999999998 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 2.5 g of CO?", "expect": 0.08925383791503036 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of CO?", "expect": 7.0024999999999995 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in CO?", "expect": 57.11888611210283 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of O3?", "expect": 47.997 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of O3?", "expect": 0.02083463549805196 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of O3?", "expect": 47.997 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in O3?", "expect": 100.00000000000001 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of H2O2.", "expect": 34.014 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of H2O2 to moles.", "expect": 0.29399658963956016 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of H2O2 in grams?", "expect": 17.007 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of H2O2 is oxygen?", "expect": 94.07302875286646 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CH3COOH.", "expect": 60.052 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of CH3COOH to moles.", "expect": 0.2997402251382135 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of CH3COOH in grams?", "expect": 30.026 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CH3COOH is oxygen?", "expect": 53.283820688736434 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of HCOOH.", "expect": 46.025 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of HCOOH to moles.", "expect": 0.39109179793590443 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of HCOOH in grams?", "expect": 138.075 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of HCOOH is oxygen?", "expect": 69.52308527973928 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C6H6.", "expect": 78.114 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of C6H6 to moles.", "expect": 0.032004506234477814 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of C6H6 in grams?", "expect": 78.114 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C6H6 is carbon?", "expect": 92.25746985175512 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of C7H8?", "expect": 92.14099999999999 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 36 g of C7H8?", "expect": 0.3907055491040905 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of C7H8?", "expect": 184.28199999999998 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of hydrogen in C7H8?", "expect": 8.751804299931628 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of C8H18?", "expect": 114.232 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of C8H18?", "expect": 0.008754114433783879 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of C8H18?", "expect": 114.232 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of hydrogen in C8H18?", "expect": 15.883465228657467 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CCl4?", "expect": 153.811 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of CCl4?", "expect": 0.06501485589457191 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of CCl4?", "expect": 76.9055 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of carbon in CCl4?", "expect": 7.808934341497031 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CHCl3.", "expect": 119.36900000000001 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of CHCl3 to moles.", "expect": 0.00837738441303856 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of CHCl3 in grams?", "expect": 29.842250000000003 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CHCl3 is chlorine?", "expect": 89.09348323266511 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C2H4.", "expect": 28.054 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of C2H4 to moles.", "expect": 0.3564554074285307 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of C2H4 in grams?", "expect": 56.108 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C2H4 is hydrogen?", "expect": 14.372282027518358 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C2H2.", "expect": 26.037999999999997 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of C2H2 to moles.", "expect": 0.3840540748137338 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of C2H2 in grams?", "expect": 78.11399999999999 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C2H2 is carbon?", "expect": 92.25746985175513 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CH3OH.", "expect": 32.042 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 18 g of CH3OH to moles.", "expect": 0.5617626864740028 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of CH3OH in grams?", "expect": 96.126 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CH3OH is hydrogen?", "expect": 12.583484177017663 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of C3H6O.", "expect": 58.08 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of C3H6O to moles.", "expect": 0.8608815426997245 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of C3H6O in grams?", "expect": 14.52 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of C3H6O is hydrogen?", "expect": 10.413223140495868 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Li2CO3?", "expect": 74.008 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 2.5 g of Li2CO3?", "expect": 0.03378013187763485 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of Li2CO3?", "expect": 74.008 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in Li2CO3?", "expect": 64.85379958923362 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of LiOH?", "expect": 24.007 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 50 g of LiOH?", "expect": 2.0827258716207773 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of LiOH?", "expect": 48.014 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in LiOH?", "expect": 66.64306244012162 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of KCl?", "expect": 74.54830000000001 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of KCl?", "expect": 1.341412211948495 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of KCl?", "expect": 74.54830000000001 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of potassium in KCl?", "expect": 52.44693708642584 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of KBr.", "expect": 118.9983 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of KBr to moles.", "expect": 0.42017406971360094 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of KBr in grams?", "expect": 237.9966 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of KBr is potassium?", "expect": 32.85618365976657 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of KI?", "expect": 166.0028 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of KI?", "expect": 0.0602399477599173 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 1 mol of KI?", "expect": 166.0028 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of potassium in KI?", "expect": 23.552795495015747 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of NaF.", "expect": 41.98817246 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of NaF to moles.", "expect": 1.1908115326436859 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of NaF in grams?", "expect": 20.99408623 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of NaF is fluorine?", "expect": 45.247035169484484 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CaF2?", "expect": 78.07680632 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of CaF2?", "expect": 1.2807900926447626 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of CaF2?", "expect": 156.15361264 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of fluorine in CaF2?", "expect": 48.6659330867979 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of MgCl2.", "expect": 95.20500000000001 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of MgCl2 to moles.", "expect": 0.3781314006617299 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of MgCl2 in grams?", "expect": 190.41000000000003 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of MgCl2 is magnesium?", "expect": 25.52912136967596 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CaCl2.", "expect": 110.98 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of CaCl2 to moles.", "expect": 0.3243827716705713 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of CaCl2 in grams?", "expect": 110.98 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CaCl2 is chlorine?", "expect": 63.885384754009735 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of AlCl3.", "expect": 133.33153800000002 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of AlCl3 to moles.", "expect": 0.0075001009888598135 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of AlCl3 in grams?", "expect": 66.66576900000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of AlCl3 is aluminum?", "expect": 20.236425983475865 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of PbO2.", "expect": 238.998 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of PbO2 to moles.", "expect": 0.010460338580239165 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of PbO2 in grams?", "expect": 59.7495 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of PbO2 is lead?", "expect": 86.6116034443803 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Pb(NO3)2.", "expect": 331.008 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 10 g of Pb(NO3)2 to moles.", "expect": 0.030210750193348804 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of Pb(NO3)2 in grams?", "expect": 165.504 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Pb(NO3)2 is nitrogen?", "expect": 8.463239559164734 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of SnCl2?", "expect": 189.61 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 18 g of SnCl2?", "expect": 0.09493170191445598 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of SnCl2?", "expect": 94.805 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of tin in SnCl2?", "expect": 62.60745741258372 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of NiSO4.", "expect": 154.75900000000001 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of NiSO4 to moles.", "expect": 0.006461659741921309 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of NiSO4 in grams?", "expect": 77.37950000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of NiSO4 is sulfur?", "expect": 20.72254279234164 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of CoCl2.", "expect": 129.83319 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 50 g of CoCl2 to moles.", "expect": 0.3851095394020589 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of CoCl2 in grams?", "expect": 389.49957 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of CoCl2 is chlorine?", "expect": 54.608532687211955 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of MnO2?", "expect": 86.93604 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 18 g of MnO2?", "expect": 0.20704876826687757 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.5 mol of MnO2?", "expect": 43.46802 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of manganese in MnO2?", "expect": 63.19363062775806 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Cr2O3.", "expect": 151.989 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of Cr2O3 to moles.", "expect": 0.016448558777279933 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 1 mol of Cr2O3 in grams?", "expect": 151.989 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Cr2O3 is oxygen?", "expect": 31.579259025324205 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Na2S2O3?", "expect": 158.1165386 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 100 g of Na2S2O3?", "expect": 0.632444909845756 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of Na2S2O3?", "expect": 474.34961580000004 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of sulfur in Na2S2O3?", "expect": 40.565016517506784 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of NaClO.", "expect": 74.4387693 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of NaClO to moles.", "expect": 0.03358464982037256 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of NaClO in grams?", "expect": 37.21938465 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of NaClO is chlorine?", "expect": 47.62303344528831 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of NaClO3?", "expect": 106.43676930000001 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of NaClO3?", "expect": 0.09395249466670912 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 3 mol of NaClO3?", "expect": 319.3103079 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of chlorine in NaClO3?", "expect": 33.306159359348385 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of KClO3?", "expect": 122.5453 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 50 g of KClO3?", "expect": 0.40801238399187895 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of KClO3?", "expect": 30.636325 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of oxygen in KClO3?", "expect": 39.166740788916435 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Na2SO4.", "expect": 142.0455386 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of Na2SO4 to moles.", "expect": 0.2534398500284894 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of Na2SO4 in grams?", "expect": 426.13661579999996 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Na2SO4 is sulfur?", "expect": 22.57726664003793 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of K2SO4.", "expect": 174.26260000000002 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of K2SO4 to moles.", "expect": 0.20658477493162616 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.5 mol of K2SO4 in grams?", "expect": 87.13130000000001 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of K2SO4 is oxygen?", "expect": 36.72388682367875 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of (NH4)3PO4.", "expect": 149.086762 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 36 g of (NH4)3PO4 to moles.", "expect": 0.2414701313319824 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of (NH4)3PO4 in grams?", "expect": 298.173524 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of (NH4)3PO4 is nitrogen?", "expect": 28.185601079725647 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of Mg3N2.", "expect": 100.92899999999999 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of Mg3N2 to moles.", "expect": 0.009907955097147501 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of Mg3N2 in grams?", "expect": 201.85799999999998 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of Mg3N2 is nitrogen?", "expect": 27.75614540914901 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of Li3N?", "expect": 35.007 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of Li3N?", "expect": 0.028565715428342905 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of Li3N?", "expect": 8.75175 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of lithium in Li3N?", "expect": 59.9880023995201 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of CS2?", "expect": 76.151 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 36 g of CS2?", "expect": 0.47274494097254144 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 0.25 mol of CS2?", "expect": 19.03775 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of carbon in CS2?", "expect": 15.772609683392208 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of PCl5?", "expect": 208.223762 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 10 g of PCl5?", "expect": 0.048025258519726485 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of PCl5?", "expect": 416.447524 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of chlorine in PCl5?", "expect": 85.12477072621522 }, { "split": "dev", "kind": "molar_mass", "valid": true, "q": "What is the molar mass of PCl3?", "expect": 137.32376200000002 }, { "split": "dev", "kind": "g2mol", "valid": true, "q": "How many moles are in 1 g of PCl3?", "expect": 0.0072820609152842745 }, { "split": "dev", "kind": "mol2g", "valid": true, "q": "How many grams is 2 mol of PCl3?", "expect": 274.64752400000003 }, { "split": "dev", "kind": "percent", "valid": true, "q": "What is the percent of chlorine in PCl3?", "expect": 77.44471783404828 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of SF6.", "expect": 146.06041896 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of SF6 to moles.", "expect": 0.006846481799246785 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 3 mol of SF6 in grams?", "expect": 438.18125688 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of SF6 is sulfur?", "expect": 21.95666713018444 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of XeF4.", "expect": 207.28361264 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 2.5 g of XeF4 to moles.", "expect": 0.01206077011182682 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 0.25 mol of XeF4 in grams?", "expect": 51.82090316 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of XeF4 is xenon?", "expect": 63.338340319269726 }, { "split": "heldout", "kind": "molar_mass", "valid": true, "q": "Give me the molecular weight of UF6.", "expect": 352.01931895999996 }, { "split": "heldout", "kind": "g2mol", "valid": true, "q": "Convert 1 g of UF6 to moles.", "expect": 0.002840753180690149 }, { "split": "heldout", "kind": "mol2g", "valid": true, "q": "What mass is 2 mol of UF6 in grams?", "expect": 704.0386379199999 }, { "split": "heldout", "kind": "percent", "valid": true, "q": "What percentage by mass of UF6 is fluorine?", "expect": 32.38186452288227 }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the melting point for hydrogen.", "expect": "13.81" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of helium?", "expect": "0.0001785" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for lithium.", "expect": "0.98" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the boiling point of beryllium?", "expect": "2744" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the melting point for boron.", "expect": "2348" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electron configuration of carbon?", "expect": "[He]2s2 2p2" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for nitrogen.", "expect": "14.007" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of oxygen?", "expect": "8" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for fluorine.", "expect": "18.99840316" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the symbol of neon?", "expect": "Ne" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the boiling point for sodium.", "expect": "1156" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of magnesium?", "expect": "1.74" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for aluminum.", "expect": "[Ne]3s2 3p1" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electronegativity of silicon?", "expect": "1.9" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for phosphorus.", "expect": "2.19" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the boiling point of sulfur?", "expect": "717.75" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the boiling point for chlorine.", "expect": "239.11" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of argon?", "expect": "83.8" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for potassium.", "expect": "19" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of calcium?", "expect": "1.54" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the boiling point for scandium.", "expect": "3109" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of titanium?", "expect": "4.5" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the melting point for vanadium.", "expect": "2183" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic mass of chromium?", "expect": "51.996" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for manganese.", "expect": "54.93804" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of iron?", "expect": "26" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the density for cobalt.", "expect": "8.86" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electronegativity of nickel?", "expect": "1.91" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for copper.", "expect": "1.9" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of zinc?", "expect": "30" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the density for gallium.", "expect": "5.91" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of germanium?", "expect": "5.323" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for arsenic.", "expect": "33" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electronegativity of selenium?", "expect": "2.55" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for bromine.", "expect": "2.96" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of krypton?", "expect": "115.79" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for rubidium.", "expect": "0.82" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of strontium?", "expect": "38" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for yttrium.", "expect": "[Kr]5s2 4d1" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the boiling point of zirconium?", "expect": "4682" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for niobium.", "expect": "41" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of molybdenum?", "expect": "42" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for technetium.", "expect": "43" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the symbol of ruthenium?", "expect": "Ru" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the boiling point for rhodium.", "expect": "3968" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electron configuration of palladium?", "expect": "[Kr]4d10" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for silver.", "expect": "1.93" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the symbol of cadmium?", "expect": "Cd" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for indium.", "expect": "49" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of tin?", "expect": "505.08" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for antimony.", "expect": "Sb" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the boiling point of tellurium?", "expect": "1261" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for iodine.", "expect": "I" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electronegativity of xenon?", "expect": "2.6" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for cesium.", "expect": "132.9054520" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electron configuration of barium?", "expect": "[Xe]6s2" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for lanthanum.", "expect": "[Xe]6s2 5d1" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electronegativity of cerium?", "expect": "1.12" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for praseodymium.", "expect": "1.13" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of neodymium?", "expect": "7.01" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for promethium.", "expect": "Pm" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of samarium?", "expect": "62" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the density for europium.", "expect": "5.24" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of gadolinium?", "expect": "1586" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for terbium.", "expect": "65" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of dysprosium?", "expect": "66" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for holmium.", "expect": "67" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of erbium?", "expect": "68" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electronegativity for thulium.", "expect": "1.25" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of ytterbium?", "expect": "1092" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the melting point for lutetium.", "expect": "1936" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of hafnium?", "expect": "13.3" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for tantalum.", "expect": "Ta" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the symbol of tungsten?", "expect": "W" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for rhenium.", "expect": "186.207" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the symbol of osmium?", "expect": "Os" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for iridium.", "expect": "[Xe]6s2 4f14 5d7" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of platinum?", "expect": "2041.55" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for gold.", "expect": "[Xe]6s1 4f14 5d10" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic mass of mercury?", "expect": "200.59" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for thallium.", "expect": "204.383" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of lead?", "expect": "600.61" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for bismuth.", "expect": "208.98040" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of polonium?", "expect": "527" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for astatine.", "expect": "At" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the electron configuration of radon?", "expect": "[Xe]6s2 4f14 5d10 6p6" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the melting point for francium.", "expect": "300" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of radium?", "expect": "88" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the electron configuration for actinium.", "expect": "[Rn]7s2 6d1" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of thorium?", "expect": "90" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the density for protactinium.", "expect": "15.37" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the density of uranium?", "expect": "18.95" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for neptunium.", "expect": "Np" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the boiling point of plutonium?", "expect": "3501" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the symbol for americium.", "expect": "Am" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic number of curium?", "expect": "96" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic number for berkelium.", "expect": "97" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the atomic mass of californium?", "expect": "251.07959" }, { "split": "heldout", "kind": "property", "valid": true, "q": "Tell me the atomic mass for einsteinium.", "expect": "252.0830" }, { "split": "dev", "kind": "property", "valid": true, "q": "What is the melting point of fermium?", "expect": "1800" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the melting point of unobtainium?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Tell me the melting point for adamantium.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the melting point of vibranium?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Tell me the melting point for mithrilium.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the melting point of kryptonium?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Tell me the melting point for dilithium.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the melting point of octarinium?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Tell me the melting point for phlogiston.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the molar mass of XyO2?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Give me the molecular weight of QzCl3.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the molar mass of Jb2SO4?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Give me the molecular weight of NaXq.", "expect": "decline" }, { "split": "dev", "kind": "unknown", "valid": false, "q": "What is the molar mass of Zz3(PO4)2?", "expect": "decline" }, { "split": "heldout", "kind": "unknown", "valid": false, "q": "Give me the molecular weight of MgEe2.", "expect": "decline" }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596#!/usr/bin/env python3"""chemistry_panel_v1 - the sealed panel for specialist #38, computed from PubChem's table with a formula parser writtenSEPARATELY from the organ's (so a parsing bug cannot sit in both the organ and its answer key). Real compounds; elementproperties; grams<->moles; percent composition; must-decline items (invented elements, invalid symbols). Dev / held-outsplit by compound or element; different phrasings per split.usage: chemistry_panel_v1.py <pubchem_periodic_table.csv> <out.json>"""import csvimport jsonimport randomimport reimport sys
COMPOUNDS = """H2O CO2 NaCl H2SO4 HCl HNO3 NH3 CH4 C2H6 C3H8 C2H5OH C6H12O6 C12H22O11 NaOH KOH Ca(OH)2 Mg(OH)2 Al(OH)3 CaCO3Na2CO3 NaHCO3 KNO3 NH4NO3 (NH4)2SO4 Fe2O3 Fe3O4 FeCl3 CuSO4 Cu(NO3)2 AgNO3 AgCl BaSO4 BaCl2 KMnO4 K2Cr2O7 H3PO4 Ca3(PO4)2Na3PO4 MgSO4 ZnCl2 ZnO Al2O3 SiO2 TiO2 CaO MgO Na2O K2O SO2 SO3 NO2 N2O CO O3 H2O2 CH3COOH HCOOH C6H6 C7H8 C8H18 CCl4CHCl3 C2H4 C2H2 CH3OH C3H6O Li2CO3 LiOH KCl KBr KI NaF CaF2 MgCl2 CaCl2 AlCl3 PbO2 Pb(NO3)2 SnCl2 NiSO4 CoCl2 MnO2 Cr2O3Na2S2O3 NaClO NaClO3 KClO3 Na2SO4 K2SO4 (NH4)3PO4 Mg3N2 Li3N CS2 PCl5 PCl3 SF6 XeF4 UF6""".split()FAKE_EL = ["unobtainium", "adamantium", "vibranium", "mithrilium", "kryptonium", "dilithium", "octarinium", "phlogiston"]FAKE_F = ["XyO2", "QzCl3", "Jb2SO4", "NaXq", "Zz3(PO4)2", "MgEe2"]PROPS = [("atomic number", "AtomicNumber"), ("atomic mass", "AtomicMass"), ("electronegativity", "Electronegativity"), ("melting point", "MeltingPoint"), ("boiling point", "BoilingPoint"), ("density", "Density"), ("electron configuration", "ElectronConfiguration"), ("symbol", "Symbol")]T = {"dev": {"mm": "What is the molar mass of {f}?", "g2mol": "How many moles are in {q} g of {f}?", "mol2g": "How many grams is {q} mol of {f}?", "pct": "What is the percent of {e} in {f}?", "prop": "What is the {p} of {e}?"}, "heldout": {"mm": "Give me the molecular weight of {f}.", "g2mol": "Convert {q} g of {f} to moles.", "mol2g": "What mass is {q} mol of {f} in grams?", "pct": "What percentage by mass of {f} is {e}?", "prop": "Tell me the {p} for {e}."}}
def counts(formula, table): """independent parser: recursive descent over tokens""" tokens = re.findall(r"[A-Z][a-z]?|\d+|\(|\)|\.", formula) pos = 0
def group(): nonlocal pos c = {} while pos < len(tokens) and tokens[pos] not in (")", "."): tk = tokens[pos] if tk == "(": pos += 1 inner = group() pos += 1 # ')' k = 1 if pos < len(tokens) and tokens[pos].isdigit(): k = int(tokens[pos]); pos += 1 for e, n in inner.items(): c[e] = c.get(e, 0) + n * k else: if tk not in table: raise KeyError(tk) pos += 1 k = 1 if pos < len(tokens) and tokens[pos].isdigit(): k = int(tokens[pos]); pos += 1 c[tk] = c.get(tk, 0) + k return c return group()
def main(): table = {r["Symbol"]: r for r in csv.DictReader(open(sys.argv[1], encoding="utf-8"))} mass = {s: float(r["AtomicMass"]) for s, r in table.items()} rng = random.Random(38) items = [] for f in COMPOUNDS: c = counts(f, table) mm = sum(mass[e] * n for e, n in c.items()) split = "dev" if sum(map(ord, f)) % 2 == 0 else "heldout" tt = T[split] items.append({"split": split, "kind": "molar_mass", "valid": True, "q": tt["mm"].format(f=f), "expect": mm}) q = rng.choice([1, 2.5, 10, 18, 36, 50, 100]) items.append({"split": split, "kind": "g2mol", "valid": True, "q": tt["g2mol"].format(q=q, f=f), "expect": q / mm}) q2 = rng.choice([0.5, 1, 2, 3, 0.25]) items.append({"split": split, "kind": "mol2g", "valid": True, "q": tt["mol2g"].format(q=q2, f=f), "expect": q2 * mm}) e = rng.choice(sorted(c)) items.append({"split": split, "kind": "percent", "valid": True, "q": tt["pct"].format(e=table[e]["Name"].lower(), f=f), "expect": 100 * mass[e] * c[e] / mm}) for s, r in table.items(): if int(r["AtomicNumber"]) > 100: continue split = "dev" if int(r["AtomicNumber"]) % 2 == 0 else "heldout" p, col = rng.choice([x for x in PROPS if r[x[1]] not in ("", None)]) items.append({"split": split, "kind": "property", "valid": True, "q": T[split]["prop"].format(p=p, e=r["Name"].lower()), "expect": r[col]}) for i, w in enumerate(FAKE_EL): split = "dev" if i % 2 == 0 else "heldout" items.append({"split": split, "kind": "unknown", "valid": False, "q": T[split]["prop"].format(p="melting point", e=w), "expect": "decline"}) for i, f in enumerate(FAKE_F): split = "dev" if i % 2 == 0 else "heldout" items.append({"split": split, "kind": "unknown", "valid": False, "q": T[split]["mm"].format(f=f), "expect": "decline"}) json.dump(items, open(sys.argv[2], "w"), indent=1) import collections print("panel:", dict(collections.Counter((i["split"], i["kind"]) for i in items)))
if __name__ == "__main__": main()1234567891011121314151617181920212223#!/usr/bin/env python3"""chemistry_scorer - answer identity in the REPLY TEXT. Numeric answers (molar mass, moles, grams, percent): the firstnumber the reply states for the result must be within 0.5% of the value computed independently from PubChem. Elementproperties: PubChem's own value must appear in the reply. A must-decline item answered is a false yes. (ok, asserted)."""import re
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: return (not answered), answered if not answered: return False, False if p["kind"] == "property": return str(p["expect"]) in text, True pat = {"molar_mass": r"\bis (\d+(?:\.\d+)?) g/mol", "g2mol": r"\bis (\d+(?:\.\d+)?(?:e-?\d+)?) mol\b", "mol2g": r"\bis (\d+(?:\.\d+)?(?:e[+-]?\d+)?) g\b", "percent": r"\bis (\d+(?:\.\d+)?)% of\b"}[p["kind"]] m = re.search(pat, text) if not m: return False, True got, want = float(m.group(1)), float(p["expect"]) return abs(got - want) <= 0.005 * abs(want) + 1e-9, True1234567891011121314151617181920212223242526{ "id": "chemistry", "name": "Oracle7 Chemistry", "number": 38, "tier": "A", "sources": [ {"name": "PubChem periodic table (118 elements: masses, electronegativity, melting/boiling points, density, configuration)", "licence": "public domain (NIH/NCBI)", "url": "https://pubchem.ncbi.nlm.nih.gov/periodic-table/"}, {"name": "OpenStax Chemistry 2e (already in the core's world stores)", "licence": "CC-BY 4.0", "url": "https://openstax.org/details/books/chemistry-2e"} ], "store": {"path": "__ORACLE7_ROOT__/specialists/chemistry/pubchem_periodic_table.csv"}, "organ": {"dir": "__ORACLE7_ROOT__/specialists/chemistry", "module": "organ_chemistry_v1", "class": "ChemistryOrgan", "init": {"table_path": "__ORACLE7_ROOT__/specialists/chemistry/pubchem_periodic_table.csv"}}, "accept": { "kinds": ["molar_mass", "g2mol", "mol2g", "percent", "atomic_mass", "atomic_number", "electronegativity", "melting_point", "boiling_point", "density", "electron_configuration", "ionization_energy", "standard_state", "group_block", "year_discovered", "symbol"], "declines_in_domain": ["unknown", "no_value"], "context_regex": "\\b(?:molar mass|molecular (?:mass|weight)|formula (?:mass|weight)|moles?|mol|atomic|element|periodic|electronegativity|melting point|boiling point|ionization energy|electron configuration)\\b" }, "panel": {"path": "__ORACLE7_ROOT__/specialists/chemistry/chemistry_panel_v1.json", "splits": ["dev", "heldout"], "exclude_kinds_composed": [], "scorer_module": "chemistry_scorer", "scorer_fn": "ok"}, "routing_cues": ["molar mass", "moles", "grams of", "element", "atomic", "electronegativity", "melting point", "boiling point", "percent by mass"], "budgets": {"latency_p50_ms": 50, "store_mb": 1}, "core_sample": {"n": 400, "seed": 20260928}, "notes": "Gain is computation, not text (OpenStax is already in the core). Panel answer key computed with a formula parser written separately from the organ's. Held-out phrasings were written by the same author in the same session and were NOT used to tune the organ; one of them reverses the percent-composition word order."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152#!/usr/bin/env python3"""organ_chemistry_v1 - chemistry OPERATIONS over PubChem's periodic table (public domain): element properties, exactmolar mass of any formula (nested brackets, hydrates), grams <-> moles, percent composition. OpenStax chemistry text isalready in the core, so this organ earns its place by computing, and says which element data it used.Declines: an element or formula that does not exist, a property PubChem does not list. Returns {kind, status, response, value}."""from __future__ import annotations
import csvimport re
PROPS = [("atomic mass", r"\batomic (?:mass|weight)\b", "AtomicMass", "u"), ("atomic number", r"\batomic number\b|\bproton number\b|\bhow many protons\b", "AtomicNumber", ""), ("electronegativity", r"\belectronegativity\b", "Electronegativity", "(Pauling)"), ("melting point", r"\bmelting point\b|\bmelts? at\b", "MeltingPoint", "K"), ("boiling point", r"\bboiling point\b|\bboils? at\b", "BoilingPoint", "K"), ("density", r"\bdensity\b", "Density", "g/cm³"), ("electron configuration", r"\belectron configuration\b", "ElectronConfiguration", ""), ("ionization energy", r"\bioni[sz]ation energy\b", "IonizationEnergy", "eV"), ("standard state", r"\bstandard state\b|\b(?:solid|liquid|gas) at room temperature\b|\bstate at room temperature\b", "StandardState", ""), ("group block", r"\bgroup block\b|\bwhat (?:kind|type) of element\b|\bis \w+ a (?:metal|nonmetal|metalloid|noble gas)\b", "GroupBlock", ""), ("year discovered", r"\bdiscovered\b|\byear (?:of )?discovery\b", "YearDiscovered", ""), ("symbol", r"\b(?:chemical )?symbol\b", "Symbol", "")]FORMULA = re.compile(r"\b((?:[A-Z][a-z]?\d*|\((?:[A-Z][a-z]?\d*)+\)\d*)+(?:[·.*]\d*(?:[A-Z][a-z]?\d*)+)?)\b")MOLAR = re.compile(r"\bmolar mass\b|\bmolecular (?:mass|weight)\b|\bformula (?:mass|weight)\b|\bmass of one mole\b", re.I)G2MOL = re.compile(r"\b(\d+(?:\.\d+)?)\s*(?:g|grams?)\s+of\s+(\S+)", re.I)MOL2G = re.compile(r"\b(\d+(?:\.\d+)?)\s*(?:mol|moles?)\s+of\s+(\S+)", re.I)PCT = re.compile(r"\b(?:percent|percentage|%)\s+(?:by mass\s+)?(?:of\s+)?(\w+)\s+in\s+(\S+)", re.I)
class ChemistryOrgan: def __init__(self, table_path): self.el = {} for r in csv.DictReader(open(table_path, encoding="utf-8")): self.el[r["Symbol"]] = r self.by_name = {r["Name"].lower(): s for s, r in self.el.items()}
# ---- exact molar mass, with brackets and hydrates ---------------------------------------------------------------- def parse(self, f): f = f.replace("·", ".").replace("*", ".") total = {} for part in f.split("."): m = re.match(r"^(\d*)(.*)$", part) mult = int(m.group(1)) if m.group(1) else 1 for s, n in self._counts(m.group(2)).items(): total[s] = total.get(s, 0) + n * mult return total
def _counts(self, s): stack, i = [{}], 0 while i < len(s): c = s[i] if c == "(": stack.append({}); i += 1 elif c == ")": i += 1; m = re.match(r"\d+", s[i:]); k = int(m.group()) if m else 1; i += len(m.group()) if m else 0 top = stack.pop() for e, n in top.items(): stack[-1][e] = stack[-1].get(e, 0) + n * k else: m = re.match(r"([A-Z][a-z]?)(\d*)", s[i:]) if not m: raise ValueError("bad formula near %r" % s[i:]) if m.group(1) not in self.el: raise KeyError(m.group(1)) stack[-1][m.group(1)] = stack[-1].get(m.group(1), 0) + (int(m.group(2)) if m.group(2) else 1) i += len(m.group()) if len(stack) != 1: raise ValueError("unbalanced brackets") return stack[0]
def molar_mass(self, f): c = self.parse(f) return sum(float(self.el[s]["AtomicMass"]) * n for s, n in c.items()), c
def _formula_in(self, t): for m in FORMULA.finditer(t): f = m.group(1) if re.search(r"[a-z]\d|\d|\(|[A-Z][a-z]?[A-Z]", f) or f in self.el: # looks like a formula, not a word return f return None
def _say(self, kind, text, value=None, status="answered"): return {"kind": kind, "status": status, "response": text, "value": value}
def answer(self, text, session_id="default"): t = " ".join(str(text or "").split()) if not t: return None # grams -> moles / moles -> grams for rx, kind in ((G2MOL, "g2mol"), (MOL2G, "mol2g")): m = rx.search(t) if m and re.search(r"\bmol(?:e|es)?\b|\bgrams?\b|\bhow many\b|\bmass\b", t, re.I): f = m.group(2).rstrip("?.,") try: mm, _ = self.molar_mass(f) except KeyError as e: return self._say("unknown", "%s isn't an element symbol, so %s isn't a formula I can weigh." % (e.args[0], f), status="withheld") except ValueError: continue q = float(m.group(1)) if kind == "g2mol": v = q / mm return self._say("g2mol", "%g g of %s is %.4g mol (molar mass %.3f g/mol, from PubChem atomic masses)." % (q, f, v, mm), v) v = q * mm return self._say("mol2g", "%g mol of %s is %.4g g (molar mass %.3f g/mol, from PubChem atomic masses)." % (q, f, v, mm), v) m = PCT.search(t) if m: elw, f = m.group(1), m.group(2).rstrip("?.,") sym = self.by_name.get(elw.lower(), elw if elw in self.el else None) try: mm, c = self.molar_mass(f) except (KeyError, ValueError): sym = None if sym and sym in c: v = 100.0 * float(self.el[sym]["AtomicMass"]) * c[sym] / mm return self._say("percent", "%s is %.2f%% of %s by mass (%d × %s in %.3f g/mol)." % (self.el[sym]["Name"], v, f, c[sym], self.el[sym]["AtomicMass"], mm), v) if MOLAR.search(t): f = self._formula_in(t) if f: try: mm, c = self.molar_mass(f) except KeyError as e: return self._say("unknown", "%s isn't an element symbol, so %s isn't a formula I can weigh." % (e.args[0], f), status="withheld") except ValueError: return None parts = " + ".join("%d × %s" % (n, s) for s, n in c.items()) return self._say("molar_mass", "The molar mass of %s is %.3f g/mol (%s, PubChem atomic masses)." % (f, mm, parts), mm) # element property prop = next((p for p in PROPS if re.search(p[1], t, re.I)), None) if prop: sym = None for name, s in self.by_name.items(): if re.search(r"\b%s\b" % re.escape(name), t, re.I): sym = s break if not sym: m = re.search(r"\b(?:of|for|is)\s+([A-Z][a-z]?)\b", t) sym = m.group(1) if m and m.group(1) in self.el else None if not sym: w = re.search(r"\b(?:of|for)\s+([a-z]+ium|[a-z]+on|[a-z]+gen)\b", t, re.I) if w: return self._say("unknown", "There's no element called %s in PubChem's periodic table." % w.group(1), status="withheld") return None r = self.el[sym] val = r[prop[2]] if val in ("", None): return self._say("no_value", "PubChem lists no %s for %s, so I won't estimate one." % (prop[0], r["Name"]), status="withheld") unit = (" " + prop[3]) if prop[3] and prop[3] != "(Pauling)" else (" (Pauling scale)" if prop[3] else "") if prop[3] == "K": unit = " K (%.2f °C)" % (float(val) - 273.15) return self._say(prop[0].replace(" ", "_"), "The %s of %s (%s) is %s%s, per PubChem." % (prop[0], r["Name"], sym, val, unit), val) return None123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119"AtomicNumber","Symbol","Name","AtomicMass","CPKHexColor","ElectronConfiguration","Electronegativity","AtomicRadius","IonizationEnergy","ElectronAffinity","OxidationStates","StandardState","MeltingPoint","BoilingPoint","Density","GroupBlock","YearDiscovered"1,"H","Hydrogen",1.0080,"FFFFFF","1s1",2.2,120,13.598,0.754,"+1, -1","Gas",13.81,20.28,0.00008988,"Nonmetal",17662,"He","Helium",4.00260,"D9FFFF","1s2","",140,24.587,"","0","Gas",0.95,4.22,0.0001785,"Noble gas",18683,"Li","Lithium",7.0,"CC80FF","[He]2s1",0.98,182,5.392,0.618,"+1","Solid",453.65,1615,0.534,"Alkali metal",18174,"Be","Beryllium",9.012183,"C2FF00","[He]2s2",1.57,153,9.323,"","+2","Solid",1560,2744,1.85,"Alkaline earth metal",17985,"B","Boron",10.81,"FFB5B5","[He]2s2 2p1",2.04,192,8.298,0.277,"+3","Solid",2348,4273,2.37,"Metalloid",18086,"C","Carbon",12.011,"909090","[He]2s2 2p2",2.55,170,11.260,1.263,"+4, +2, -4","Solid",3823,4098,2.2670,"Nonmetal","Ancient"7,"N","Nitrogen",14.007,"3050F8","[He] 2s2 2p3",3.04,155,14.534,"","+5, +4, +3, +2, +1, -1, -2, -3","Gas",63.15,77.36,0.0012506,"Nonmetal",17728,"O","Oxygen",15.999,"FF0D0D","[He]2s2 2p4",3.44,152,13.618,1.461,"-2","Gas",54.36,90.2,0.001429,"Nonmetal",17749,"F","Fluorine",18.99840316,"90E050","[He]2s2 2p5",3.98,135,17.423,3.339,"-1","Gas",53.53,85.03,0.001696,"Halogen",167010,"Ne","Neon",20.180,"B3E3F5","[He]2s2 2p6","",154,21.565,"","0","Gas",24.56,27.07,0.0008999,"Noble gas",189811,"Na","Sodium",22.9897693,"AB5CF2","[Ne]3s1",0.93,227,5.139,0.548,"+1","Solid",370.95,1156,0.97,"Alkali metal",180712,"Mg","Magnesium",24.305,"8AFF00","[Ne]3s2",1.31,173,7.646,"","+2","Solid",923,1363,1.74,"Alkaline earth metal",180813,"Al","Aluminum",26.981538,"BFA6A6","[Ne]3s2 3p1",1.61,184,5.986,0.441,"+3","Solid",933.437,2792,2.70,"Post-transition metal","Ancient"14,"Si","Silicon",28.085,"F0C8A0","[Ne]3s2 3p2",1.9,210,8.152,1.385,"+4, +2, -4","Solid",1687,3538,2.3296,"Metalloid",185415,"P","Phosphorus",30.97376200,"FF8000","[Ne]3s2 3p3",2.19,180,10.487,0.746,"+5, +3, -3","Solid",317.3,553.65,1.82,"Nonmetal",166916,"S","Sulfur",32.07,"FFFF30","[Ne]3s2 3p4",2.58,180,10.360,2.077,"+6, +4, -2","Solid",388.36,717.75,2.067,"Nonmetal","Ancient"17,"Cl","Chlorine",35.45,"1FF01F","[Ne]3s2 3p5",3.16,175,12.968,3.617,"+7, +5, +1, -1","Gas",171.65,239.11,0.003214,"Halogen",177418,"Ar","Argon",39.9,"80D1E3","[Ne]3s2 3p6","",188,15.760,"","0","Gas",83.8,87.3,0.0017837,"Noble gas",189419,"K","Potassium",39.0983,"8F40D4","[Ar]4s1",0.82,275,4.341,0.501,"+1","Solid",336.53,1032,0.89,"Alkali metal",180720,"Ca","Calcium",40.08,"3DFF00","[Ar]4s2",1,231,6.113,"","+2","Solid",1115,1757,1.54,"Alkaline earth metal","Ancient"21,"Sc","Scandium",44.95591,"E6E6E6","[Ar]4s2 3d1",1.36,211,6.561,0.188,"+3","Solid",1814,3109,2.99,"Transition metal",187922,"Ti","Titanium",47.867,"BFC2C7","[Ar]4s2 3d2",1.54,187,6.828,0.079,"+4, +3, +2","Solid",1941,3560,4.5,"Transition metal",179123,"V","Vanadium",50.9415,"A6A6AB","[Ar]4s2 3d3",1.63,179,6.746,0.525,"+5, +4, +3, +2","Solid",2183,3680,6.0,"Transition metal",180124,"Cr","Chromium",51.996,"8A99C7","[Ar]3d5 4s1",1.66,189,6.767,0.666,"+6, +3, +2","Solid",2180,2944,7.15,"Transition metal",179725,"Mn","Manganese",54.93804,"9C7AC7","[Ar]4s2 3d5",1.55,197,7.434,"","+7, +4, +3, +2","Solid",1519,2334,7.3,"Transition metal",177426,"Fe","Iron",55.84,"E06633","[Ar]4s2 3d6",1.83,194,7.902,0.163,"+3, +2","Solid",1811,3134,7.874,"Transition metal","Ancient"27,"Co","Cobalt",58.93319,"F090A0","[Ar]4s2 3d7",1.88,192,7.881,0.661,"+3, +2","Solid",1768,3200,8.86,"Transition metal",173528,"Ni","Nickel",58.693,"50D050","[Ar]4s2 3d8",1.91,163,7.640,1.156,"+3, +2","Solid",1728,3186,8.912,"Transition metal",175129,"Cu","Copper",63.55,"C88033","[Ar]4s1 3d10",1.9,140,7.726,1.228,"+2, +1","Solid",1357.77,2835,8.933,"Transition metal","Ancient"30,"Zn","Zinc",65.4,"7D80B0","[Ar]4s2 3d10",1.65,139,9.394,"","+2","Solid",692.68,1180,7.134,"Transition metal",174631,"Ga","Gallium",69.723,"C28F8F","[Ar]4s2 3d10 4p1",1.81,187,5.999,0.3,"+3","Solid",302.91,2477,5.91,"Post-transition metal",187532,"Ge","Germanium",72.63,"668F8F","[Ar]4s2 3d10 4p2",2.01,211,7.900,1.35,"+4, +2","Solid",1211.4,3106,5.323,"Metalloid",188633,"As","Arsenic",74.92159,"BD80E3","[Ar]4s2 3d10 4p3",2.18,185,9.815,0.81,"+5, +3, -3","Solid",1090,887,5.776,"Metalloid","Ancient"34,"Se","Selenium",78.97,"FFA100","[Ar]4s2 3d10 4p4",2.55,190,9.752,2.021,"+6, +4, -2","Solid",493.65,958,4.809,"Nonmetal",181735,"Br","Bromine",79.90,"A62929","[Ar]4s2 3d10 4p5",2.96,183,11.814,3.365,"+5, +1, -1","Liquid",265.95,331.95,3.11,"Halogen",182636,"Kr","Krypton",83.80,"5CB8D1","[Ar]4s2 3d10 4p6",3,202,14.000,"","0","Gas",115.79,119.93,0.003733,"Noble gas",189837,"Rb","Rubidium",85.468,"702EB0","[Kr]5s1",0.82,303,4.177,0.468,"+1","Solid",312.46,961,1.53,"Alkali metal",186138,"Sr","Strontium",87.62,"00FF00","[Kr]5s2",0.95,249,5.695,"","+2","Solid",1050,1655,2.64,"Alkaline earth metal",179039,"Y","Yttrium",88.90584,"94FFFF","[Kr]5s2 4d1",1.22,219,6.217,0.307,"+3","Solid",1795,3618,4.47,"Transition metal",179440,"Zr","Zirconium",91.22,"94E0E0","[Kr]5s2 4d2",1.33,186,6.634,0.426,"+4","Solid",2128,4682,6.52,"Transition metal",178941,"Nb","Niobium",92.90637,"73C2C9","[Kr]5s1 4d4",1.6,207,6.759,0.893,"+5, +3","Solid",2750,5017,8.57,"Transition metal",180142,"Mo","Molybdenum",95.95,"54B5B5","[Kr]5s1 4d5",2.16,209,7.092,0.746,"+6","Solid",2896,4912,10.2,"Transition metal",177843,"Tc","Technetium",96.90636,"3B9E9E","[Kr]5s2 4d5",1.9,209,7.28,0.55,"+7, +6, +4","Solid",2430,4538,11,"Transition metal",193744,"Ru","Ruthenium",101.1,"248F8F","[Kr]5s1 4d7",2.2,207,7.361,1.05,"+3","Solid",2607,4423,12.1,"Transition metal",182745,"Rh","Rhodium",102.9055,"0A7D8C","[Kr]5s1 4d8",2.28,195,7.459,1.137,"+3","Solid",2237,3968,12.4,"Transition metal",180346,"Pd","Palladium",106.42,"6985","[Kr]4d10",2.2,202,8.337,0.557,"+3, +2","Solid",1828.05,3236,12.0,"Transition metal",180347,"Ag","Silver",107.868,"C0C0C0","[Kr]5s1 4d10",1.93,172,7.576,1.302,"+1","Solid",1234.93,2435,10.501,"Transition metal","Ancient"48,"Cd","Cadmium",112.41,"FFD98F","[Kr]5s2 4d10",1.69,158,8.994,"","+2","Solid",594.22,1040,8.69,"Transition metal",181749,"In","Indium",114.818,"A67573","[Kr]5s2 4d10 5p1",1.78,193,5.786,0.3,"+3","Solid",429.75,2345,7.31,"Post-transition metal",186350,"Sn","Tin",118.71,"668080","[Kr]5s2 4d10 5p2",1.96,217,7.344,1.2,"+4, +2","Solid",505.08,2875,7.287,"Post-transition metal","Ancient"51,"Sb","Antimony",121.760,"9E63B5","[Kr]5s2 4d10 5p3",2.05,206,8.64,1.07,"+5, +3, -3","Solid",903.78,1860,6.685,"Metalloid","Ancient"52,"Te","Tellurium",127.6,"D47A00","[Kr]5s2 4d10 5p4",2.1,206,9.010,1.971,"+6, +4, -2","Solid",722.66,1261,6.232,"Metalloid",178253,"I","Iodine",126.9045,"940094","[Kr]5s2 4d10 5p5",2.66,198,10.451,3.059,"+7, +5, +1, -1","Solid",386.85,457.55,4.93,"Halogen",181154,"Xe","Xenon",131.29,"429EB0","[Kr]5s2 4d10 5p6",2.6,216,12.130,"","0","Gas",161.36,165.03,0.005887,"Noble gas",189855,"Cs","Cesium",132.9054520,"57178F","[Xe]6s1",0.79,343,3.894,0.472,"+1","Solid",301.59,944,1.93,"Alkali metal",186056,"Ba","Barium",137.33,"00C900","[Xe]6s2",0.89,268,5.212,"","+2","Solid",1000,2170,3.62,"Alkaline earth metal",180857,"La","Lanthanum",138.9055,"70D4FF","[Xe]6s2 5d1",1.1,240,5.577,0.5,"+3","Solid",1191,3737,6.15,"Lanthanide",183958,"Ce","Cerium",140.116,"FFFFC7","[Xe]6s2 4f1 5d1",1.12,235,5.539,0.5,"+4, +3","Solid",1071,3697,6.770,"Lanthanide",180359,"Pr","Praseodymium",140.90766,"D9FFC7","[Xe]6s2 4f3",1.13,239,5.464,"","+3","Solid",1204,3793,6.77,"Lanthanide",188560,"Nd","Neodymium",144.24,"C7FFC7","[Xe]6s2 4f4",1.14,229,5.525,"","+3","Solid",1294,3347,7.01,"Lanthanide",188561,"Pm","Promethium",144.91276,"A3FFC7","[Xe]6s2 4f5","",236,5.55,"","+3","Solid",1315,3273,7.26,"Lanthanide",194562,"Sm","Samarium",150.4,"8FFFC7","[Xe]6s2 4f6",1.17,229,5.644,"","+3, +2","Solid",1347,2067,7.52,"Lanthanide",187963,"Eu","Europium",151.964,"61FFC7","[Xe]6s2 4f7","",233,5.670,"","+3, +2","Solid",1095,1802,5.24,"Lanthanide",190164,"Gd","Gadolinium",157.25,"45FFC7","[Xe]6s2 4f7 5d1",1.2,237,6.150,"","+3","Solid",1586,3546,7.90,"Lanthanide",188065,"Tb","Terbium",158.92535,"30FFC7","[Xe]6s2 4f9","",221,5.864,"","+3","Solid",1629,3503,8.23,"Lanthanide",184366,"Dy","Dysprosium",162.500,"1FFFC7","[Xe]6s2 4f10",1.22,229,5.939,"","+3","Solid",1685,2840,8.55,"Lanthanide",188667,"Ho","Holmium",164.93033,"00FF9C","[Xe]6s2 4f11",1.23,216,6.022,"","+3","Solid",1747,2973,8.80,"Lanthanide",187868,"Er","Erbium",167.26,"","[Xe]6s2 4f12",1.24,235,6.108,"","+3","Solid",1802,3141,9.07,"Lanthanide",184369,"Tm","Thulium",168.93422,"00D452","[Xe]6s2 4f13",1.25,227,6.184,"","+3","Solid",1818,2223,9.32,"Lanthanide",187970,"Yb","Ytterbium",173.05,"00BF38","[Xe]6s2 4f14","",242,6.254,"","+3, +2","Solid",1092,1469,6.90,"Lanthanide",187871,"Lu","Lutetium",174.9667,"00AB24","[Xe]6s2 4f14 5d1",1.27,221,5.426,"","+3","Solid",1936,3675,9.84,"Lanthanide",190772,"Hf","Hafnium",178.49,"4DC2FF","[Xe]6s2 4f14 5d2",1.3,212,6.825,"","+4","Solid",2506,4876,13.3,"Transition metal",192373,"Ta","Tantalum",180.9479,"4DA6FF","[Xe]6s2 4f14 5d3",1.5,217,7.89,0.322,"+5","Solid",3290,5731,16.4,"Transition metal",180274,"W","Tungsten",183.84,"2194D6","[Xe]6s2 4f14 5d4",2.36,210,7.98,0.815,"+6","Solid",3695,5828,19.3,"Transition metal",178375,"Re","Rhenium",186.207,"267DAB","[Xe]6s2 4f14 5d5",1.9,217,7.88,0.15,"+7, +6, +4","Solid",3459,5869,20.8,"Transition metal",192576,"Os","Osmium",190.2,"266696","[Xe]6s2 4f14 5d6",2.2,216,8.7,1.1,"+4, +3","Solid",3306,5285,22.57,"Transition metal",180377,"Ir","Iridium",192.22,"175487","[Xe]6s2 4f14 5d7",2.2,202,9.1,1.565,"+4, +3","Solid",2719,4701,22.42,"Transition metal",180378,"Pt","Platinum",195.08,"D0D0E0","[Xe]6s1 4f14 5d9",2.28,209,9,2.128,"+4, +2","Solid",2041.55,4098,21.46,"Transition metal",173579,"Au","Gold",196.96657,"FFD123","[Xe]6s1 4f14 5d10",2.54,166,9.226,2.309,"+3, +1","Solid",1337.33,3129,19.282,"Transition metal","Ancient"80,"Hg","Mercury",200.59,"B8B8D0","[Xe]6s2 4f14 5d10",2,209,10.438,"","+2, +1","Liquid",234.32,629.88,13.5336,"Transition metal","Ancient"81,"Tl","Thallium",204.383,"A6544D","[Xe]6s2 4f14 5d10 6p1",1.62,196,6.108,0.2,"+3, +1","Solid",577,1746,11.8,"Post-transition metal",186182,"Pb","Lead",207,"575961","[Xe]6s2 4f14 5d10 6p2",2.33,202,7.417,0.36,"+4, +2","Solid",600.61,2022,11.342,"Post-transition metal","Ancient"83,"Bi","Bismuth",208.98040,"9E4FB5","[Xe]6s2 4f14 5d10 6p3",2.02,207,7.289,0.946,"+5, +3","Solid",544.55,1837,9.807,"Post-transition metal",175384,"Po","Polonium",208.98243,"AB5C00","[Xe]6s2 4f14 5d10 6p4",2,197,8.417,1.9,"+4, +2","Solid",527,1235,9.32,"Metalloid",189885,"At","Astatine",209.98715,"754F45","[Xe]6s2 4f14 5d10 6p5",2.2,202,9.5,2.8,"7, 5, 3, 1, -1","Solid",575,"",7,"Halogen",194086,"Rn","Radon",222.01758,"428296","[Xe]6s2 4f14 5d10 6p6","",220,10.745,"","0","Gas",202,211.45,0.00973,"Noble gas",190087,"Fr","Francium",223.01973,"420066","[Rn]7s1",0.7,348,3.9,0.47,"+1","Solid",300,"","","Alkali metal",193988,"Ra","Radium",226.02541,"007D00","[Rn]7s2",0.9,283,5.279,"","+2","Solid",973,1413,5,"Alkaline earth metal",189889,"Ac","Actinium",227.02775,"70ABFA","[Rn]7s2 6d1",1.1,260,5.17,"","+3","Solid",1324,3471,10.07,"Actinide",189990,"Th","Thorium",232.038,"00BAFF","[Rn]7s2 6d2",1.3,237,6.08,"","+4","Solid",2023,5061,11.72,"Actinide",182891,"Pa","Protactinium",231.03588,"00A1FF","[Rn]7s2 5f2 6d1",1.5,243,5.89,"","+5, +4","Solid",1845,"",15.37,"Actinide",191392,"U","Uranium",238.0289,"008FFF","[Rn]7s2 5f3 6d1",1.38,240,6.194,"","+6, +5, +4, +3","Solid",1408,4404,18.95,"Actinide",178993,"Np","Neptunium",237.048172,"0080FF","[Rn]7s2 5f4 6d1",1.36,221,6.266,"","+6, +5, +4, +3","Solid",917,4175,20.25,"Actinide",194094,"Pu","Plutonium",244.06420,"006BFF","[Rn]7s2 5f6",1.28,243,6.06,"","+6, +5, +4, +3","Solid",913,3501,19.84,"Actinide",194095,"Am","Americium",243.061380,"545CF2","[Rn]7s2 5f7",1.3,244,5.993,"","+6, +5, +4, +3","Solid",1449,2284,13.69,"Actinide",194496,"Cm","Curium",247.07035,"785CE3","[Rn]7s2 5f7 6d1",1.3,245,6.02,"","+3","Solid",1618,3400,13.51,"Actinide",194497,"Bk","Berkelium",247.07031,"8A4FE3","[Rn]7s2 5f9",1.3,244,6.23,"","+4, +3","Solid",1323,"",14,"Actinide",194998,"Cf","Californium",251.07959,"A136D4","[Rn]7s2 5f10",1.3,245,6.30,"","+3","Solid",1173,"","","Actinide",195099,"Es","Einsteinium",252.0830,"B31FD4","[Rn]7s2 5f11",1.3,245,6.42,"","+3","Solid",1133,"","","Actinide",1952100,"Fm","Fermium",257.09511,"B31FBA","[Rn] 5f12 7s2",1.3,"",6.50,"","+3","Solid",1800,"","","Actinide",1952101,"Md","Mendelevium",258.09843,"B30DA6","[Rn]7s2 5f13",1.3,"",6.58,"","+3, +2","Solid",1100,"","","Actinide",1955102,"No","Nobelium",259.10100,"BD0D87","[Rn]7s2 5f14",1.3,"",6.65,"","+3, +2","Solid",1100,"","","Actinide",1957103,"Lr","Lawrencium",266.120,"C70066","[Rn]7s2 5f14 6d1",1.3,"","","","+3","Solid",1900,"","","Actinide",1961104,"Rf","Rutherfordium",267.122,"CC0059","[Rn]7s2 5f14 6d2","","","","","+4","Solid","","","","Transition metal",1964105,"Db","Dubnium",268.126,"D1004F","[Rn]7s2 5f14 6d3","","","","","5, 4, 3","Solid","","","","Transition metal",1967106,"Sg","Seaborgium",269.128,"D90045","[Rn]7s2 5f14 6d4","","","","","6, 5, 4, 3, 0","Solid","","","","Transition metal",1974107,"Bh","Bohrium",270.133,"E00038","[Rn]7s2 5f14 6d5","","","","","7, 5, 4, 3","Solid","","","","Transition metal",1976108,"Hs","Hassium",269.1336,"E6002E","[Rn]7s2 5f14 6d6","","","","","8, 6, 5, 4, 3, 2","Solid","","","","Transition metal",1984109,"Mt","Meitnerium",277.154,"EB0026","[Rn]7s2 5f14 6d7 (calculated)","","","","","9, 8, 6, 4, 3, 1","Solid","","","","Transition metal",1982110,"Ds","Darmstadtium",282.166,"","[Rn]7s2 5f14 6d8 (predicted)","","","","","8, 6, 4, 2, 0","Expected to be a Solid","","","","Transition metal",1994111,"Rg","Roentgenium",282.169,"","[Rn]7s2 5f14 6d9 (predicted)","","","","","5, 3, 1, -1","Expected to be a Solid","","","","Transition metal",1994112,"Cn","Copernicium",286.179,"","[Rn]7s2 5f14 6d10 (predicted)","","","","","2, 1, 0","Expected to be a Solid","","","","Transition metal",1996113,"Nh","Nihonium",286.182,"","[Rn]5f14 6d10 7s2 7p1 (predicted)","","","","","","Expected to be a Solid","","","","Post-transition metal",2004114,"Fl","Flerovium",290.192,"","[Rn]7s2 7p2 5f14 6d10 (predicted)","","","","","6, 4,2, 1, 0","Expected to be a Solid","","","","Post-transition metal",1998115,"Mc","Moscovium",290.196,"","[Rn]7s2 7p3 5f14 6d10 (predicted)","","","","","3, 1","Expected to be a Solid","","","","Post-transition metal",2003116,"Lv","Livermorium",293.205,"","[Rn]7s2 7p4 5f14 6d10 (predicted)","","","","","+4, +2, -2","Expected to be a Solid","","","","Post-transition metal",2000117,"Ts","Tennessine",294.211,"","[Rn]7s2 7p5 5f14 6d10 (predicted)","","","","","+5, +3, +1, -1","Expected to be a Solid","","","","Halogen",2010118,"Og","Oganesson",295.216,"","[Rn]7s2 7p6 5f14 6d10 (predicted)","","","","","+6, +4, +2, +1, 0, -1","Expected to be a Gas","","","","Noble gas",2006123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110{ "id": "chemistry", "name": "Oracle7 Chemistry", "tier": "A", "split": "dev", "head": "oracle_release_runtime_w363", "time": "2026-09-29T00:54:15Z", "domain": { "head": { "correct": 19, "false_yes": 4, "n": 225, "p50_ms": 410.5, "fails": [ [ "molar_mass", "What is the molar mass of CO2?", "corpus_query:property_of", "[ev:unknown] EXAMPLE 9.22 Determining Molar Mass Using Graham\u2019s Law An unknown gas effuses" ], [ "g2mol", "How many moles are in 100 g of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mol2g", "How many grams is 0.5 mol of CO2?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What is the percent of carbon in CO2?", "corpus_query:property_of|vessel:receipt", "No provenance-admitted sentence in the abstracts corpus answers that.\n\nI have received \"Wh" ], [ "molar_mass", "What is the molar mass of NaCl?", "corpus_query:property_of", "[ev:unknown] Calculate the empirical or molecular formula mass and the molar mass of each " ], [ "g2mol", "How many moles are in 10 g of NaCl?", "factoid:fts", "[ev:direct] Thus, it requires 769 kJ to separate one mole of solid NaCl into gaseous Na+ a" ], [ "mol2g", "How many grams is 3 mol of NaCl?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What is the percent of sodium in NaCl?", "corpus_query:property_of", "[ev:unknown] Examples of hypertonic solutions include 3 percent sodium chloride (3 percent" ] ] }, "spec": { "correct": 225, "false_yes": 0, "n": 225, "p50_ms": 0.03, "fails": [] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.02, "decision": "DEV-PASS", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159{ "id": "chemistry", "name": "Oracle7 Chemistry", "tier": "A", "split": "heldout", "head": "oracle_release_runtime_w363", "time": "2026-09-29T01:00:03Z", "domain": { "head": { "correct": 9, "false_yes": 4, "n": 281, "p50_ms": 424.35, "fails": [ [ "molar_mass", "Give me the molecular weight of H2O.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "g2mol", "Convert 50 g of H2O to moles.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mol2g", "What mass is 3 mol of H2O in grams?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of H2O is oxygen?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "molar_mass", "Give me the molecular weight of HCl.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "g2mol", "Convert 2.5 g of HCl to moles.", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "mol2g", "What mass is 0.25 mol of HCl in grams?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of HCl is hydrogen?", "act:clarify|vessel:receipt", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ] ] }, "spec": { "correct": 223, "false_yes": 0, "n": 281, "p50_ms": 0.06, "fails": [ [ "percent", "What percentage by mass of H2O is oxygen?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of HCl is hydrogen?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of NH3 is nitrogen?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of CH4 is hydrogen?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of C2H6 is carbon?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of C2H5OH is carbon?", "act:clarify|vessel:reinforced", "I didn't fully parse that, so I won't guess. I can summarize a topic, compare two things, " ], [ "percent", "What percentage by mass of C6H12O6 is hydrogen?", "organ:math>word:percent_of_total", "[ev:derived] 50%. Read as percent of total: percent = part / whole x 100 = 6 / 12 x 100. C" ], [ "percent", "What percentage by mass of C12H22O11 is oxygen?", "organ:math>word:percent_of_total", "[ev:derived] 50%. Read as percent of total: percent = part / whole x 100 = 11 / 22 x 100. " ] ] } }, "core": { "head": { "correct": 160, "false_yes": 3 }, "spec": { "correct": 160, "false_yes": 3 }, "n": 400, "taken_by_specialist": [] }, "self": [ { "q": "Who are you?", "same": true }, { "q": "What are you?", "same": true }, { "q": "Are you a human?", "same": true }, { "q": "What do you value?", "same": true }, { "q": "Are you conscious?", "same": true } ], "store_mb": 0.02, "decision": "ADMIT", "reasons": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422[ { "split": "dev", "kind": "cool1", "valid": true, "q": "I cooled soup from 135 F to 70 F in 1.5 hours. Does that meet the Food Code?", "expect": "Yes" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Chili was cooled from 70 F to 41 F in 6 hours. Is that compliant?", "expect": "No" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Is 43 F okay for cold holding in the walk-in cooler?", "expect": "No" }, { "split": "dev", "kind": "hot", "valid": true, "q": "Our steam table is holding food at 130 F. Does that meet hot holding?", "expect": "No" }, { "split": "dev", "kind": "cook", "valid": true, "q": "What is the minimum cooking temperature for ground beef?", "expect": 155 }, { "split": "dev", "kind": "reheat", "valid": true, "q": "What temperature must leftovers reach when reheating for hot holding?", "expect": 165 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Food has been out of temperature control for 6 hours under time as a public health control. Is it within the limit?", "expect": "Past" }, { "split": "dev", "kind": "date", "valid": true, "q": "Potato salad was made on Thursday. When must it be discarded under date marking?", "expect": "Wednesday" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "I cooled soup from 135 F to 70 F in 3 hours. Does that meet the Food Code?", "expect": "No" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Chili was cooled from 70 F to 41 F in 2 hours. Is that compliant?", "expect": "Yes" }, { "split": "dev", "kind": "hot", "valid": true, "q": "Our steam table is holding food at 125 F. Does that meet hot holding?", "expect": "No" }, { "split": "dev", "kind": "cook", "valid": true, "q": "What is the minimum cooking temperature for eggs for immediate service?", "expect": 145 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Food has been out of temperature control for 5 hours under time as a public health control. Is it within the limit?", "expect": "Past" }, { "split": "dev", "kind": "date", "valid": true, "q": "Potato salad was made on Wednesday. When must it be discarded under date marking?", "expect": "Tuesday" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Chili was cooled from 70 F to 41 F in 3.5 hours. Is that compliant?", "expect": "Yes" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Is 38 F okay for cold holding in the walk-in cooler?", "expect": "Yes" }, { "split": "dev", "kind": "hot", "valid": true, "q": "Our steam table is holding food at 140 F. Does that meet hot holding?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "What is the minimum cooking temperature for steak?", "expect": 145 }, { "split": "dev", "kind": "cool1", "valid": true, "q": "I cooled soup from 135 F to 70 F in 2.5 hours. Does that meet the Food Code?", "expect": "No" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "I cooled soup from 135 F to 70 F in 1 hours. Does that meet the Food Code?", "expect": "Yes" }, { "split": "dev", "kind": "hot", "valid": true, "q": "Our steam table is holding food at 150 F. Does that meet hot holding?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "What is the minimum cooking temperature for chicken?", "expect": 165 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Food has been out of temperature control for 4 hours under time as a public health control. Is it within the limit?", "expect": "Within" }, { "split": "dev", "kind": "date", "valid": true, "q": "Potato salad was made on Sunday. When must it be discarded under date marking?", "expect": "Saturday" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Chili was cooled from 70 F to 41 F in 4 hours. Is that compliant?", "expect": "Yes" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Is 41 F okay for cold holding in the walk-in cooler?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "What is the minimum cooking temperature for fish?", "expect": 145 }, { "split": "dev", "kind": "date", "valid": true, "q": "Potato salad was made on Saturday. When must it be discarded under date marking?", "expect": "Friday" }, { "split": "dev", "kind": "off_domain", "valid": false, "q": "What is the boiling point of water in F?", "expect": "not taken" }, { "split": "dev", "kind": "off_domain", "valid": false, "q": "Is 38 F cold for a winter day?", "expect": "not taken" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Rice went from 135 F down to 70 F over 3 hours while cooling. Is that within the Food Code limit?", "expect": "No" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, a stock cooled to 41 F within 5 hours. Does that comply?", "expect": "No" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "My refrigerator reads 45 F. Is that cold enough for cold holding?", "expect": "No" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "The chafing dish keeps the food at 130 F. Is that compliant for hot holding?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "To what internal temperature must fish be cooked?", "expect": 145 }, { "split": "heldout", "kind": "reheat", "valid": true, "q": "When reheating food for hot holding, how hot does it need to get (temperature)?", "expect": 165 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been sitting out for 4 hours. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Friday. Under Food Code date marking, discard by which day?", "expect": "Thursday" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Rice went from 135 F down to 70 F over 1 hours while cooling. Is that within the Food Code limit?", "expect": "Yes" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, a stock cooled to 41 F within 2 hours. Does that comply?", "expect": "Yes" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "My refrigerator reads 40 F. Is that cold enough for cold holding?", "expect": "Yes" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "The chafing dish keeps the food at 135 F. Is that compliant for hot holding?", "expect": "Yes" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "To what internal temperature must chicken be cooked?", "expect": 165 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been sitting out for 2 hours. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Tuesday. Under Food Code date marking, discard by which day?", "expect": "Monday" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, a stock cooled to 41 F within 3.5 hours. Does that comply?", "expect": "Yes" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "My refrigerator reads 34 F. Is that cold enough for cold holding?", "expect": "Yes" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "The chafing dish keeps the food at 125 F. Is that compliant for hot holding?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "To what internal temperature must eggs for immediate service be cooked?", "expect": 145 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been sitting out for 3.5 hours. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Monday. Under Food Code date marking, discard by which day?", "expect": "Sunday" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "The chafing dish keeps the food at 140 F. Is that compliant for hot holding?", "expect": "Yes" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "To what internal temperature must steak be cooked?", "expect": 145 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been sitting out for 6 hours. Within the limit?", "expect": "Past" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Rice went from 135 F down to 70 F over 2.5 hours while cooling. Is that within the Food Code limit?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "To what internal temperature must hamburgers be cooked?", "expect": 155 }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Rice went from 135 F down to 70 F over 2 hours while cooling. Is that within the Food Code limit?", "expect": "Yes" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "My refrigerator reads 38 F. Is that cold enough for cold holding?", "expect": "Yes" }, { "split": "heldout", "kind": "off_domain", "valid": false, "q": "How hot is the surface of Venus in F?", "expect": "not taken" }, { "split": "heldout", "kind": "off_domain", "valid": false, "q": "Is 90 F a hot day?", "expect": "not taken" }]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061#!/usr/bin/env python3"""coldchain_panel_v1 - the sealed panel for specialist #3 (cold chain & food storage). Expected answers from the FDA FoodCode 2022 limits restated here (cold <= 41 F; hot >= 135 F; cooling 135->70 in <= 2 h, 70->41 in <= 4 h, total <= 6 h;reheat 165 F; cook poultry 165, ground meat 155, steak/fish/eggs 145; TPHC 4 h; date marking 7 days counting prep day).Checks are scored by their verdict word (Yes / No / Within / Past). Must-decline: none - every item states its numbers;off-domain probes (no food context) must NOT be answered. Dev / held-out differ in seed and phrasing.usage: coldchain_panel_v1.py <out.json>"""import collectionsimport jsonimport randomimport sys
DAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]T = {"dev": {"cool1": "I cooled soup from 135 F to 70 F in {h} hours. Does that meet the Food Code?", "cool2": "Chili was cooled from 70 F to 41 F in {h} hours. Is that compliant?", "cold": "Is {f} F okay for cold holding in the walk-in cooler?", "hot": "Our steam table is holding food at {f} F. Does that meet hot holding?", "cook": "What is the minimum cooking temperature for {food}?", "reheat": "What temperature must leftovers reach when reheating for hot holding?", "tphc": "Food has been out of temperature control for {h} hours under time as a public health control. Is it within the limit?", "date": "Potato salad was made on {day}. When must it be discarded under date marking?"}, "heldout": {"cool1": "Rice went from 135 F down to 70 F over {h} hours while cooling. Is that within the Food Code limit?", "cool2": "After reaching 70 F, a stock cooled to 41 F within {h} hours. Does that comply?", "cold": "My refrigerator reads {f} F. Is that cold enough for cold holding?", "hot": "The chafing dish keeps the food at {f} F. Is that compliant for hot holding?", "cook": "To what internal temperature must {food} be cooked?", "reheat": "When reheating food for hot holding, how hot does it need to get (temperature)?", "tphc": "Under time as a public health control, sandwiches have been sitting out for {h} hours. Within the limit?", "date": "Chicken salad was prepared on {day}. Under Food Code date marking, discard by which day?"}}FOODS = [("chicken", 165), ("turkey", 165), ("ground beef", 155), ("hamburgers", 155), ("steak", 145), ("fish", 145), ("eggs for immediate service", 145)]OFF = {"dev": ["What is the boiling point of water in F?", "Is 38 F cold for a winter day?"], "heldout": ["How hot is the surface of Venus in F?", "Is 90 F a hot day?"]}
def main(): items = [] for split, seed in (("dev", 3), ("heldout", 3003)): rng = random.Random(seed) t = T[split] for _ in range(6): h1 = rng.choice([1, 1.5, 2, 2.5, 3]); h2 = rng.choice([2, 3.5, 4, 5, 6]); fc = rng.choice([34, 38, 40, 41, 43, 45]) fh = rng.choice([125, 130, 135, 140, 150]); food, ft = rng.choice(FOODS); hp = rng.choice([2, 3.5, 4, 5, 6]); day = rng.choice(DAYS) add = [("cool1", {"h": h1}, "Yes" if h1 <= 2 else "No"), ("cool2", {"h": h2}, "Yes" if h2 <= 4 else "No"), ("cold", {"f": fc}, "Yes" if fc <= 41 else "No"), ("hot", {"f": fh}, "Yes" if fh >= 135 else "No"), ("cook", {"food": food}, ft), ("reheat", {}, 165), ("tphc", {"h": hp}, "Within" if hp <= 4 else "Past"), ("date", {"day": day}, DAYS[(DAYS.index(day) + 6) % 7])] for kind, kw, exp in add: items.append({"split": split, "kind": kind, "valid": True, "q": t[kind].format(**kw), "expect": exp}) for q in OFF[split]: items.append({"split": split, "kind": "off_domain", "valid": False, "q": q, "expect": "not taken"}) seen, out = set(), [] for it in items: if (it["split"], it["q"]) not in seen: seen.add((it["split"], it["q"])) out.append(it) json.dump(out, open(sys.argv[1], "w"), indent=1) print("panel:", dict(collections.Counter(i["split"] for i in out)))
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422[ { "split": "dev", "kind": "cool1", "valid": true, "q": "Soup went from 135 F down to 70 F over 1.5 hours while cooling. Does that meet the Food Code?", "expect": "Yes" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Once at 70 F, the stew cooled to 41 F within 6 hours. Is that compliant?", "expect": "No" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Our walk-in cooler holds 43 F. Is that okay for cold holding?", "expect": "No" }, { "split": "dev", "kind": "hot", "valid": true, "q": "The steam table reads 130 F. Is that compliant for hot holding?", "expect": "No" }, { "split": "dev", "kind": "cook", "valid": true, "q": "Minimum internal cooking temperature for hamburgers?", "expect": 155 }, { "split": "dev", "kind": "reheat", "valid": true, "q": "To what temperature must leftovers be reheated for hot holding?", "expect": 165 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been out for 3.5 hours. Is that within the limit?", "expect": "Within" }, { "split": "dev", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Tuesday. When must it be discarded under date marking?", "expect": "Monday" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "Soup went from 135 F down to 70 F over 1 hours while cooling. Does that meet the Food Code?", "expect": "Yes" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Once at 70 F, the stew cooled to 41 F within 2 hours. Is that compliant?", "expect": "Yes" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Our walk-in cooler holds 41 F. Is that okay for cold holding?", "expect": "Yes" }, { "split": "dev", "kind": "hot", "valid": true, "q": "The steam table reads 150 F. Is that compliant for hot holding?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "Minimum internal cooking temperature for chicken?", "expect": 165 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been out for 6 hours. Is that within the limit?", "expect": "Past" }, { "split": "dev", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Sunday. When must it be discarded under date marking?", "expect": "Saturday" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "Soup went from 135 F down to 70 F over 3 hours while cooling. Does that meet the Food Code?", "expect": "No" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Our walk-in cooler holds 34 F. Is that okay for cold holding?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "Minimum internal cooking temperature for fish?", "expect": 145 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been out for 2 hours. Is that within the limit?", "expect": "Within" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "Soup went from 135 F down to 70 F over 2.5 hours while cooling. Does that meet the Food Code?", "expect": "No" }, { "split": "dev", "kind": "hot", "valid": true, "q": "The steam table reads 125 F. Is that compliant for hot holding?", "expect": "No" }, { "split": "dev", "kind": "date", "valid": true, "q": "Chicken salad was prepared on Thursday. When must it be discarded under date marking?", "expect": "Wednesday" }, { "split": "dev", "kind": "cool1", "valid": true, "q": "Soup went from 135 F down to 70 F over 2 hours while cooling. Does that meet the Food Code?", "expect": "Yes" }, { "split": "dev", "kind": "cool2", "valid": true, "q": "Once at 70 F, the stew cooled to 41 F within 4 hours. Is that compliant?", "expect": "Yes" }, { "split": "dev", "kind": "cold", "valid": true, "q": "Our walk-in cooler holds 40 F. Is that okay for cold holding?", "expect": "Yes" }, { "split": "dev", "kind": "hot", "valid": true, "q": "The steam table reads 135 F. Is that compliant for hot holding?", "expect": "Yes" }, { "split": "dev", "kind": "cook", "valid": true, "q": "Minimum internal cooking temperature for turkey?", "expect": 165 }, { "split": "dev", "kind": "tphc", "valid": true, "q": "Under time as a public health control, sandwiches have been out for 4 hours. Is that within the limit?", "expect": "Within" }, { "split": "dev", "kind": "off_domain", "valid": false, "q": "What is the boiling point of water in F?", "expect": "not taken" }, { "split": "dev", "kind": "off_domain", "valid": false, "q": "Is 38 F cold for a winter day?", "expect": "not taken" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Taking 1.5 hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "expect": "Yes" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, the rice took 2 hours to cool to 41 F. Is that within the limit?", "expect": "Yes" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "Is 43 F cold enough for holding food in the refrigerator?", "expect": "No" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "Hot holding food at 135 F in a warmer: does it meet the rule?", "expect": "Yes" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "What is the Food Code cooking temperature for hamburgers?", "expect": 155 }, { "split": "heldout", "kind": "reheat", "valid": true, "q": "What temperature do reheated leftovers need to reach for hot holding?", "expect": 165 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Salad has sat out for 3.5 hours under time as a public health control. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Pasta salad was made on Sunday. By which day must it be discarded (date marking)?", "expect": "Saturday" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Taking 3 hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "expect": "No" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "Is 38 F cold enough for holding food in the refrigerator?", "expect": "Yes" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "Hot holding food at 125 F in a warmer: does it meet the rule?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "What is the Food Code cooking temperature for chicken?", "expect": 165 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Salad has sat out for 2 hours under time as a public health control. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Pasta salad was made on Friday. By which day must it be discarded (date marking)?", "expect": "Thursday" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Taking 1 hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "expect": "Yes" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "Hot holding food at 130 F in a warmer: does it meet the rule?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "What is the Food Code cooking temperature for ground beef?", "expect": 155 }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Salad has sat out for 4 hours under time as a public health control. Within the limit?", "expect": "Within" }, { "split": "heldout", "kind": "date", "valid": true, "q": "Pasta salad was made on Wednesday. By which day must it be discarded (date marking)?", "expect": "Tuesday" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Taking 2.5 hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "expect": "No" }, { "split": "heldout", "kind": "cook", "valid": true, "q": "What is the Food Code cooking temperature for fish?", "expect": 145 }, { "split": "heldout", "kind": "date", "valid": true, "q": "Pasta salad was made on Monday. By which day must it be discarded (date marking)?", "expect": "Sunday" }, { "split": "heldout", "kind": "cool1", "valid": true, "q": "Taking 2 hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "expect": "Yes" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, the rice took 3.5 hours to cool to 41 F. Is that within the limit?", "expect": "Yes" }, { "split": "heldout", "kind": "hot", "valid": true, "q": "Hot holding food at 150 F in a warmer: does it meet the rule?", "expect": "Yes" }, { "split": "heldout", "kind": "tphc", "valid": true, "q": "Salad has sat out for 6 hours under time as a public health control. Within the limit?", "expect": "Past" }, { "split": "heldout", "kind": "cool2", "valid": true, "q": "After reaching 70 F, the rice took 4 hours to cool to 41 F. Is that within the limit?", "expect": "Yes" }, { "split": "heldout", "kind": "cold", "valid": true, "q": "Is 45 F cold enough for holding food in the refrigerator?", "expect": "No" }, { "split": "heldout", "kind": "off_domain", "valid": false, "q": "How hot is the surface of Venus in F?", "expect": "not taken" }, { "split": "heldout", "kind": "off_domain", "valid": false, "q": "Is 90 F a hot day?", "expect": "not taken" }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#!/usr/bin/env python3"""coldchain_panel_v2 - FRESH panel for cold chain v2 (v1 held-out sealed): seeds 3003003/30030030, free word order and named foods. Same author - disclosed.Derived from coldchain_panel_v1 - the sealed panel for specialist #3 (cold chain & food storage). Expected answers from the FDA FoodCode 2022 limits restated here (cold <= 41 F; hot >= 135 F; cooling 135->70 in <= 2 h, 70->41 in <= 4 h, total <= 6 h;reheat 165 F; cook poultry 165, ground meat 155, steak/fish/eggs 145; TPHC 4 h; date marking 7 days counting prep day).Checks are scored by their verdict word (Yes / No / Within / Past). Must-decline: none - every item states its numbers;off-domain probes (no food context) must NOT be answered. Dev / held-out differ in seed and phrasing.usage: coldchain_panel_v1.py <out.json>"""import collectionsimport jsonimport randomimport sys
DAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]T = {"dev": {"cool1": "Soup went from 135 F down to 70 F over {h} hours while cooling. Does that meet the Food Code?", "cool2": "Once at 70 F, the stew cooled to 41 F within {h} hours. Is that compliant?", "cold": "Our walk-in cooler holds {f} F. Is that okay for cold holding?", "hot": "The steam table reads {f} F. Is that compliant for hot holding?", "cook": "Minimum internal cooking temperature for {food}?", "reheat": "To what temperature must leftovers be reheated for hot holding?", "tphc": "Under time as a public health control, sandwiches have been out for {h} hours. Is that within the limit?", "date": "Chicken salad was prepared on {day}. When must it be discarded under date marking?"}, "heldout": {"cool1": "Taking {h} hours, chili dropped from 135 F to 70 F while cooling. Does it comply with the Food Code?", "cool2": "After reaching 70 F, the rice took {h} hours to cool to 41 F. Is that within the limit?", "cold": "Is {f} F cold enough for holding food in the refrigerator?", "hot": "Hot holding food at {f} F in a warmer: does it meet the rule?", "cook": "What is the Food Code cooking temperature for {food}?", "reheat": "What temperature do reheated leftovers need to reach for hot holding?", "tphc": "Salad has sat out for {h} hours under time as a public health control. Within the limit?", "date": "Pasta salad was made on {day}. By which day must it be discarded (date marking)?"}}
FOODS = [("chicken", 165), ("turkey", 165), ("ground beef", 155), ("hamburgers", 155), ("steak", 145), ("fish", 145), ("eggs for immediate service", 145)]OFF = {"dev": ["What is the boiling point of water in F?", "Is 38 F cold for a winter day?"], "heldout": ["How hot is the surface of Venus in F?", "Is 90 F a hot day?"]}
def main(): items = [] for split, seed in (("dev", 3003003), ("heldout", 30030030)): rng = random.Random(seed) t = T[split] for _ in range(6): h1 = rng.choice([1, 1.5, 2, 2.5, 3]); h2 = rng.choice([2, 3.5, 4, 5, 6]); fc = rng.choice([34, 38, 40, 41, 43, 45]) fh = rng.choice([125, 130, 135, 140, 150]); food, ft = rng.choice(FOODS); hp = rng.choice([2, 3.5, 4, 5, 6]); day = rng.choice(DAYS) add = [("cool1", {"h": h1}, "Yes" if h1 <= 2 else "No"), ("cool2", {"h": h2}, "Yes" if h2 <= 4 else "No"), ("cold", {"f": fc}, "Yes" if fc <= 41 else "No"), ("hot", {"f": fh}, "Yes" if fh >= 135 else "No"), ("cook", {"food": food}, ft), ("reheat", {}, 165), ("tphc", {"h": hp}, "Within" if hp <= 4 else "Past"), ("date", {"day": day}, DAYS[(DAYS.index(day) + 6) % 7])] for kind, kw, exp in add: items.append({"split": split, "kind": kind, "valid": True, "q": t[kind].format(**kw), "expect": exp}) for q in OFF[split]: items.append({"split": split, "kind": "off_domain", "valid": False, "q": q, "expect": "not taken"}) seen, out = set(), [] for it in items: if (it["split"], it["q"]) not in seen: seen.add((it["split"], it["q"])) out.append(it) json.dump(out, open(sys.argv[1], "w"), indent=1) print("panel:", dict(collections.Counter(i["split"] for i in out)))
if __name__ == "__main__": main()1234567891011121314151617181920212223#!/usr/bin/env python3"""coldchain_scorer - reads the REPLY TEXT. Checks: the reply opens with the verdict word (Yes / No / Within / Past).Temperatures: the stated number (after "minimum is" / "must reach") equals the Food Code value. Date marking: the rightweekday is named. Off-domain probes (valid False) must not be answered by the composed reply with a Food Code rule -scored as asserted if the reply cites a Food Code section. (ok, asserted)."""import re
def ok(p, r): text = str((r or {}).get("response", "")) answered = str((r or {}).get("status", "")) == "answered" if not p["valid"]: cited = bool(re.search(r"\[3-\d{3}", text)) return (not cited), cited if not answered: return False, False e = p["expect"] if p["kind"] in ("cool1", "cool2", "cold", "hot", "tphc"): return text.startswith(e), True if p["kind"] == "date": return ("end of %s" % e) in text, True m = re.search(r"\b(?:minimum is|must reach)\s+(\d+)", text) return bool(m) and int(m.group(1)) == int(e), True12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ "id": "coldchain-v2", "name": "Oracle7 Food Safety & Cold Chain v2", "number": 3, "tier": "B", "sources": [ { "name": "FDA Food Code 2022 (sections 3-401.11, 3-403.11, 3-501.14, 3-501.16, 3-501.17, 3-501.19)", "licence": "public domain (US government)", "url": "https://www.fda.gov/food/fda-food-code/food-code-2022" } ], "store": { "path": "__ORACLE7_ROOT__/specialists/coldchain-v2/organ_coldchain_v2.py" }, "organ": { "dir": "__ORACLE7_ROOT__/specialists/coldchain-v2", "module": "organ_coldchain_v2", "class": "ColdChainOrganV2", "init": {} }, "accept": { "kinds": [ "cooling_check", "cold_hold", "hot_hold", "cook_temp", "reheat", "tphc", "tphc_rule", "date_mark", "date_rule", "danger_zone" ], "declines_in_domain": [], "context_regex": "\\b(?:food|cool\\w*|hold\\w*|reheat\\w*|cook\\w*|fridge|refrigerat\\w*|cooler|date mark\\w*|danger zone|leftovers?)\\b" }, "panel": { "path": "__ORACLE7_ROOT__/specialists/coldchain-v2/coldchain_panel_v2.json", "splits": [ "dev", "heldout" ], "exclude_kinds_composed": [], "scorer_module": "coldchain_scorer", "scorer_fn": "ok" }, "routing_cues": [ "cold holding", "hot holding", "cooling", "reheat", "minimum cooking temperature", "date marking", "danger zone" ], "budgets": { "latency_p50_ms": 50, "store_mb": 1 }, "core_sample": { "n": 400, "seed": 20260928 }, "notes": "v2 = v1 + cooling checks in free word order ('Rice went from 135 F down to 70 F over 3 hours', 'After reaching 70 F, a stock cooled to 41 F within 5 hours'), named foods as food context, 'hamburgers' read as the singular v1's table knows (panel v2 dev), and the family numbers rule. Judged under spec_gate_v3.1 on a FRESH panel v2 (seeds 3003003/30030030). Same author - disclosed.", "supersedes": "coldchain (ADMIT gate v2, held-out 18/30; 12 misses safe - not taken)"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#!/usr/bin/env python3"""narrow_v1 - the shared NARROWING rule for specialist organs (2026-09-29, from the full-core sweep):
WORD PROBLEMS AND NARRATIVE TURNS BELONG TO THE HEAD. An organ answers a direct domain question. A turn that tells a story ("Justine wants to put a deck ...", "A new energy drink advertises 106 calories for 8 ounces ...") or relates quantities to each other ("the length is 9 inches more than the width") is a word problem, which the core's word- problem organ owns; organs firing on its nouns declined it or answered a different question. An organ may DECLINE only a short direct question (it is then refusing the domain question that was asked); on anything longer it says nothing and the head answers.
Narrowing only ever removes turns an organ takes, so on any input where it does not fire, the organ's reply isbyte-identical to the frozen version it wraps (checked per specialist by an invariance count before re-gating)."""import re
RELATION = re.compile(r"\b(?:\d+(?:\.\d+)?|one|two|three|four|five|six|seven|eight|nine|ten)\s+(?:\w+\s+){0,2}(?:more|less|fewer|longer|shorter)\s+than\b|" r"\b(?:twice|three times|half)\s+(?:as\s+\w+\s+as\s+)?the\s+\w+\b", re.I)
# a RATE ("106 calories for 8 ounces", "3 apples per 2 dollars") makes the turn a proportion problemRATE = re.compile(r"\b\d+(?:\.\d+)?\s+[a-z]+\s+(?:for|per|every)\s+(?:\d+(?:\.\d+)?|a|an|one|each)\s+[a-z]+", re.I)NUM = re.compile(r"(?<![\w.])\d+(?:\.\d+)?(?!\w|\.\d)") # "leg is 5." counts: a sentence-final period is not a decimal
def numbers(t): return len(NUM.findall(str(t or "")))
def last_sentence(t): parts = [s for s in re.split(r"(?<=[.!?;])\s+", str(t or "").strip()) if s.strip()] return parts[-1] if parts else ""
def sentences(t): return len([s for s in re.split(r"(?<=[.!?])\s+", str(t or "").strip()) if s.strip()])
def narrative(t): """a story-shaped or relational turn: 3+ sentences, 40+ words, or quantities defined relative to each other""" t = str(t or "") return sentences(t) >= 3 or len(t.split()) > 40 or RELATION.search(t) is not None or RATE.search(t) is not None
def short_direct(t): """a direct question an organ may decline: at most 2 sentences, at most 25 words, not narrative""" t = str(t or "") return sentences(t) <= 2 and len(t.split()) <= 25 and not narrative(t)root/specialists/additive-v2/additive_panel_v2.jsonAdded+366
root/specialists/additive-v2/additive_panel_v2.pyAdded+102
root/specialists/additive-v2/additive_scorer.pyAdded+20
root/specialists/additive-v2/manifest.jsonAdded+69
root/specialists/additive-v2/narrow_v1.pyAdded+47
root/specialists/additive-v2/organ_additive_v1.pyAdded+157
root/specialists/additive-v2/organ_additive_v2.pyAdded+80
root/specialists/additive-v2/verdict_dev.jsonAdded+113
root/specialists/additive-v2/verdict_heldout.jsonAdded+113
root/specialists/arthistory/arthistory_panel_v1.jsonAdded+201
root/specialists/arthistory/arthistory_panel_v1.pyAdded+19
root/specialists/arthistory/facts_arthistory_v1.pyAdded+18
root/specialists/arthistory/facts_panel_v1.pyAdded+19
root/specialists/arthistory/facts_scorer_v1.pyAdded+26
root/specialists/arthistory/manifest.jsonAdded+18
root/specialists/arthistory/narrow_v1.pyAdded+47
root/specialists/arthistory/organ_facts_v1.pyAdded+37
root/specialists/arthistory/verdict_dev.jsonAdded+96
root/specialists/arthistory/verdict_heldout.jsonAdded+95
root/specialists/biology/biology_panel_v1.jsonAdded+212
root/specialists/biology/biology_panel_v1.pyAdded+59
root/specialists/biology/biology_scorer.pyAdded+23
root/specialists/biology/manifest.jsonAdded+23
root/specialists/biology/narrow_v1.pyAdded+47
root/specialists/biology/organ_biology_v1.pyAdded+107
root/specialists/biology/verdict_dev.jsonAdded+113
root/specialists/biology/verdict_heldout.jsonAdded+113
root/specialists/carboncapture/carboncapture_panel_v1.jsonAdded+198
root/specialists/carboncapture/carboncapture_panel_v1.pyAdded+60
root/specialists/carboncapture/carboncapture_scorer.pyAdded+18
root/specialists/carboncapture/manifest.jsonAdded+23
root/specialists/carboncapture/narrow_v1.pyAdded+47
root/specialists/carboncapture/organ_carboncapture_v1.pyAdded+83
root/specialists/carboncapture/verdict_dev.jsonAdded+113
root/specialists/carboncapture/verdict_heldout.jsonAdded+113
root/specialists/chemistry/chemistry_panel_v1.jsonAdded+3544
root/specialists/chemistry/chemistry_panel_v1.pyAdded+96
root/specialists/chemistry/chemistry_scorer.pyAdded+23
root/specialists/chemistry/manifest.jsonAdded+26
root/specialists/chemistry/organ_chemistry_v1.pyAdded+152
root/specialists/chemistry/pubchem_periodic_table.csvAdded+119
root/specialists/chemistry/verdict_dev.jsonAdded+110
root/specialists/chemistry/verdict_heldout.jsonAdded+159
root/specialists/coldchain-v2/coldchain_panel_v1.jsonAdded+422
root/specialists/coldchain-v2/coldchain_panel_v1.pyAdded+61
root/specialists/coldchain-v2/coldchain_panel_v2.jsonAdded+422
root/specialists/coldchain-v2/coldchain_panel_v2.pyAdded+57
root/specialists/coldchain-v2/coldchain_scorer.pyAdded+23
root/specialists/coldchain-v2/manifest.jsonAdded+67
root/specialists/coldchain-v2/narrow_v1.pyAdded+47