You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(inbox): correctly resolve slot_usage-only slots and subclass rows
Three bugs caused false errors when researchers submitted inbox workbooks:
1. build_label_index only indexed global slots. Slots like had_input_entity,
realized_plan, and carried_out_by that are defined only in class slot_usage
blocks (not globally) were missing from the index, so the script treated
their Excel rows as new-slot additions rather than existing-slot lookups.
Fix: also index slot_usage slot names across all classes.
2. Subclass slot rows (e.g. has_concentration with domain=CoPrecipitation)
appear in the Excel because _collect_rows recurses through the class
hierarchy. These slots are mixin / attribute slots that cannot be modified
via the inbox workflow. The script was erroneously raising errors
("new slot with non-empty domain").
Fix: skip such rows with a silent info diagnostic.
3. Class rows (e.g. Precursor with domain="had input entity") imply the parent
slot is present in the workbook, but the script never added it to
seen_slot_names, triggering false deletion warnings.
Fix: when processing a class row, mark the domain slot as seen.
Also adds sys.stdout.reconfigure(encoding="utf-8") so emoji in the Markdown
output does not crash on Windows cp1252 consoles.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments