data2dsl

Ticket 060: Validate comparability in comparator and batch to prevent false matches (F03)

Goal and scope

Fix audit finding F03: DeterministicComparator.compare() and batch comparator must validate comparability between query and observations (subject, metric, window, query_id, side). Mismatches must result in UNEVALUABLE or clear rejection rather than producing false MATCH outcomes. Also ensure Data2DslSkill.execute_compare validates returned bundles.

SESSION_EXECUTION_AUTHORIZATION recorded from user prompt.

Acceptance criteria

Participants