JoeYing
Add ReScopeBench cases and task preview
f726fd6
Raw History Blame Contribute Delete
243 kB
"""Frozen environment data and shared runtime constants."""
from pathlib import Path
import datetime as _datetime
import re as _re
CASE_DIR = Path(__file__).resolve().parent
DATA = CASE_DIR / 'data'
DATA_INITIAL_SNAPSHOT = {'base': {'activated_tasks': [], 'applied_boundary_events': [], 'applied_drifts': [], 'assignee_by_structure': {'S01': 'usr-7fad6e49', 'S02': 'usr-26a294f3', 'S03': 'usr-890ee2f3', 'S05': 'usr-d38ae54d', 'S06': 'usr-1b97f7cc', 'S07': 'usr-190cad8b'}, 'calls': 0, 'entities': {'audit_log': [], 'data_query': [], 'dictionary_version': [{'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-6f79ec68', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-6f79ec68', 'dictionary_version_id': 'dict-4ec710e4', 'project_id': 'prj-88b364cd', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-6f79ec68', 'dictionary_version_id': 'dict-1ae59331', 'project_id': 'prj-88b364cd', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-b0b06395', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-b0b06395', 'dictionary_version_id': 'dict-06c8c24c', 'project_id': 'prj-c746d0b4', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-b0b06395', 'dictionary_version_id': 'dict-da954817', 'project_id': 'prj-c746d0b4', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-82d6dec3', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-82d6dec3', 'dictionary_version_id': 'dict-ea65be38', 'project_id': 'prj-55ac15e9', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-82d6dec3', 'dictionary_version_id': 'dict-0864e6cc', 'project_id': 'prj-55ac15e9', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-3ed4cd58', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-3ed4cd58', 'dictionary_version_id': 'dict-6679dc69', 'project_id': 'prj-f317b9e0', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-3ed4cd58', 'dictionary_version_id': 'dict-6563b3c6', 'project_id': 'prj-f317b9e0', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-285ff8b0', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-285ff8b0', 'dictionary_version_id': 'dict-89641130', 'project_id': 'prj-95db80bd', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-285ff8b0', 'dictionary_version_id': 'dict-3915b28b', 'project_id': 'prj-95db80bd', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-5a3aa907', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-5a3aa907', 'dictionary_version_id': 'dict-f70a251b', 'project_id': 'prj-b40c69f9', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-5a3aa907', 'dictionary_version_id': 'dict-8bd2200a', 'project_id': 'prj-b40c69f9', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-f84324a4', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-f84324a4', 'dictionary_version_id': 'dict-5ae1192f', 'project_id': 'prj-c42c6f16', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-f84324a4', 'dictionary_version_id': 'dict-5cf94cee', 'project_id': 'prj-c42c6f16', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-dc1220e6', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-dc1220e6', 'dictionary_version_id': 'dict-bdabac84', 'project_id': 'prj-f3284b5f', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-dc1220e6', 'dictionary_version_id': 'dict-90a8e3a2', 'project_id': 'prj-f3284b5f', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}], 'event': [{'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 7, 'event_id': 'evt-bf1e30a3', 'event_label': 'Aster closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-88b364cd', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_01', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 14, 'event_id': 'evt-adec52af', 'event_label': 'Beacon closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-c746d0b4', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_02', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 21, 'event_id': 'evt-ce615c0f', 'event_label': 'Cedar closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-55ac15e9', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_03', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 28, 'event_id': 'evt-dfe47f4b', 'event_label': 'Delta closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-f317b9e0', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_04', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 35, 'event_id': 'evt-f861ff48', 'event_label': 'Ember closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-95db80bd', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_05', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 42, 'event_id': 'evt-56ab26d9', 'event_label': 'Fjord closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-b40c69f9', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_06', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 49, 'event_id': 'evt-84e6f85d', 'event_label': 'Grove closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-c42c6f16', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_07', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 56, 'event_id': 'evt-2fe704cf', 'event_label': 'Harbor closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-f3284b5f', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_08', 'updated_at': '2026-05-18T10:30:00Z'}], 'export_job': [], 'field_value': [], 'form_instance': [], 'instrument': [{'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-04c7d05b', 'instrument_label': 'Aster Source Review', 'instrument_name': 'aster_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-4ec710e4', 'mapped_event_ids': ['evt-bf1e30a3'], 'project_id': 'prj-88b364cd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-0c0e8d3b', 'instrument_label': 'Aster Closeout Checklist', 'instrument_name': 'aster_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-4ec710e4', 'mapped_event_ids': ['evt-bf1e30a3'], 'project_id': 'prj-88b364cd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-3040bf9c', 'instrument_label': 'Beacon Source Review', 'instrument_name': 'beacon_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-06c8c24c', 'mapped_event_ids': ['evt-adec52af'], 'project_id': 'prj-c746d0b4', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-56a8420a', 'instrument_label': 'Beacon Closeout Checklist', 'instrument_name': 'beacon_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-06c8c24c', 'mapped_event_ids': ['evt-adec52af'], 'project_id': 'prj-c746d0b4', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-9993c040', 'instrument_label': 'Cedar Source Review', 'instrument_name': 'cedar_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-ea65be38', 'mapped_event_ids': ['evt-ce615c0f'], 'project_id': 'prj-55ac15e9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-6da06d1c', 'instrument_label': 'Cedar Closeout Checklist', 'instrument_name': 'cedar_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-ea65be38', 'mapped_event_ids': ['evt-ce615c0f'], 'project_id': 'prj-55ac15e9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-22fbb43b', 'instrument_label': 'Delta Source Review', 'instrument_name': 'delta_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-6679dc69', 'mapped_event_ids': ['evt-dfe47f4b'], 'project_id': 'prj-f317b9e0', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-9b30bafe', 'instrument_label': 'Delta Closeout Checklist', 'instrument_name': 'delta_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-6679dc69', 'mapped_event_ids': ['evt-dfe47f4b'], 'project_id': 'prj-f317b9e0', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-f4d6cbfe', 'instrument_label': 'Ember Source Review', 'instrument_name': 'ember_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-89641130', 'mapped_event_ids': ['evt-f861ff48'], 'project_id': 'prj-95db80bd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-baf7b541', 'instrument_label': 'Ember Closeout Checklist', 'instrument_name': 'ember_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-89641130', 'mapped_event_ids': ['evt-f861ff48'], 'project_id': 'prj-95db80bd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-3aa3f545', 'instrument_label': 'Fjord Source Review', 'instrument_name': 'fjord_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-f70a251b', 'mapped_event_ids': ['evt-56ab26d9'], 'project_id': 'prj-b40c69f9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-5cea6598', 'instrument_label': 'Fjord Closeout Checklist', 'instrument_name': 'fjord_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-f70a251b', 'mapped_event_ids': ['evt-56ab26d9'], 'project_id': 'prj-b40c69f9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-e67da5bb', 'instrument_label': 'Grove Source Review', 'instrument_name': 'grove_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-5ae1192f', 'mapped_event_ids': ['evt-84e6f85d'], 'project_id': 'prj-c42c6f16', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-a20415d7', 'instrument_label': 'Grove Closeout Checklist', 'instrument_name': 'grove_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-5ae1192f', 'mapped_event_ids': ['evt-84e6f85d'], 'project_id': 'prj-c42c6f16', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-4d76a2a8', 'instrument_label': 'Harbor Source Review', 'instrument_name': 'harbor_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-bdabac84', 'mapped_event_ids': ['evt-2fe704cf'], 'project_id': 'prj-f3284b5f', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-c94318af', 'instrument_label': 'Harbor Closeout Checklist', 'instrument_name': 'harbor_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-bdabac84', 'mapped_event_ids': ['evt-2fe704cf'], 'project_id': 'prj-f3284b5f', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}], 'instrument_field': [{'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-841d3de9', 'field_label': 'Screening visit date', 'field_name': 'screening_visit_date', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-04c7d05b', 'ordinal': 1, 'project_id': 'prj-88b364cd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-149ab53f', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-0c0e8d3b', 'ordinal': 1, 'project_id': 'prj-88b364cd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e11ca79f', 'field_label': 'Systolic pressure', 'field_name': 'systolic_pressure', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-3040bf9c', 'ordinal': 1, 'project_id': 'prj-c746d0b4', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-23746c83', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-56a8420a', 'ordinal': 1, 'project_id': 'prj-c746d0b4', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e84b2e2f', 'field_label': 'Visit disposition', 'field_name': 'visit_disposition', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-9993c040', 'ordinal': 1, 'project_id': 'prj-55ac15e9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-cf49d8a1', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-6da06d1c', 'ordinal': 1, 'project_id': 'prj-55ac15e9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e121e044', 'field_label': 'Dose confirmation', 'field_name': 'dose_confirmation', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-22fbb43b', 'ordinal': 1, 'project_id': 'prj-f317b9e0', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-072603fa', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-9b30bafe', 'ordinal': 1, 'project_id': 'prj-f317b9e0', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-52f8005b', 'field_label': 'Specimen accession', 'field_name': 'specimen_accession', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-f4d6cbfe', 'ordinal': 1, 'project_id': 'prj-95db80bd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e312ed03', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-baf7b541', 'ordinal': 1, 'project_id': 'prj-95db80bd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-c006c48d', 'field_label': 'Vaccination date', 'field_name': 'vaccination_date', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-3aa3f545', 'ordinal': 1, 'project_id': 'prj-b40c69f9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-d6798fe5', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-5cea6598', 'ordinal': 1, 'project_id': 'prj-b40c69f9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-0edfc95a', 'field_label': 'Fasting glucose', 'field_name': 'fasting_glucose', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-e67da5bb', 'ordinal': 1, 'project_id': 'prj-c42c6f16', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-1d63e320', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-a20415d7', 'ordinal': 1, 'project_id': 'prj-c42c6f16', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-565f3dec', 'field_label': 'Sleep duration hours', 'field_name': 'sleep_duration_hours', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-4d76a2a8', 'ordinal': 1, 'project_id': 'prj-f3284b5f', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e0f552ca', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-c94318af', 'ordinal': 1, 'project_id': 'prj-f3284b5f', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}], 'project': [{'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Aster Pulmonary Recovery', 'project_id': 'prj-88b364cd', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Aster Pulmonary Recovery', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Beacon Cardiac Follow-up', 'project_id': 'prj-c746d0b4', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Beacon Cardiac Follow-up', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Cedar Neurology Registry', 'project_id': 'prj-55ac15e9', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Cedar Neurology Registry', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Delta Oncology Cohort', 'project_id': 'prj-f317b9e0', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Delta Oncology Cohort', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Ember Renal Outcomes', 'project_id': 'prj-95db80bd', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Ember Renal Outcomes', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Fjord Vaccine Study', 'project_id': 'prj-b40c69f9', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Fjord Vaccine Study', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Grove Diabetes Trial', 'project_id': 'prj-c42c6f16', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Grove Diabetes Trial', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Harbor Sleep Study', 'project_id': 'prj-f3284b5f', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Harbor Sleep Study', 'updated_at': '2026-05-18T10:30:00Z'}], 'project_user': [{'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'aster-site', 'email': 'usr-7fad6e49@example.invalid', 'full_name': 'Project staff 6E49', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-7fad6e49', 'username': 'staff.7fad6e49'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'aster-site', 'email': 'usr-590ac21b@example.invalid', 'full_name': 'Project staff C21B', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-590ac21b', 'username': 'staff.590ac21b'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-6f79ec68@example.invalid', 'full_name': 'Project staff EC68', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-6f79ec68', 'username': 'staff.6f79ec68'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-26a294f3@example.invalid', 'full_name': 'Project staff 94F3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-26a294f3', 'username': 'staff.26a294f3'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-b0b06395@example.invalid', 'full_name': 'Project staff 6395', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-b0b06395', 'username': 'staff.b0b06395'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'cedar-site', 'email': 'usr-890ee2f3@example.invalid', 'full_name': 'Project staff E2F3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-890ee2f3', 'username': 'staff.890ee2f3'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'cedar-site', 'email': 'usr-3f99a994@example.invalid', 'full_name': 'Project staff A994', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-3f99a994', 'username': 'staff.3f99a994'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-82d6dec3@example.invalid', 'full_name': 'Project staff DEC3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-82d6dec3', 'username': 'staff.82d6dec3'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'external-site', 'email': 'usr-6ef2513c@example.invalid', 'full_name': 'Project staff 513C', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-6ef2513c', 'username': 'staff.6ef2513c'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-3ed4cd58@example.invalid', 'full_name': 'Project staff CD58', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'data_manager', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-3ed4cd58', 'username': 'staff.3ed4cd58'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-dad43b95@example.invalid', 'full_name': 'Project staff 3B95', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'principal_investigator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-dad43b95', 'username': 'staff.dad43b95'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'ember-site', 'email': 'usr-d38ae54d@example.invalid', 'full_name': 'Project staff E54D', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-d38ae54d', 'username': 'staff.d38ae54d'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'ember-site', 'email': 'usr-5a659d22@example.invalid', 'full_name': 'Project staff 9D22', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-5a659d22', 'username': 'staff.5a659d22'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-285ff8b0@example.invalid', 'full_name': 'Project staff F8B0', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-285ff8b0', 'username': 'staff.285ff8b0'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-1b97f7cc@example.invalid', 'full_name': 'Project staff F7CC', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-1b97f7cc', 'username': 'staff.1b97f7cc'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-5a3aa907@example.invalid', 'full_name': 'Project staff A907', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-5a3aa907', 'username': 'staff.5a3aa907'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'grove-site', 'email': 'usr-190cad8b@example.invalid', 'full_name': 'Project staff AD8B', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-190cad8b', 'username': 'staff.190cad8b'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'grove-site', 'email': 'usr-28d6e32e@example.invalid', 'full_name': 'Project staff E32E', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-28d6e32e', 'username': 'staff.28d6e32e'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-f84324a4@example.invalid', 'full_name': 'Project staff 24A4', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-f84324a4', 'username': 'staff.f84324a4'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'external-site', 'email': 'usr-caf2ddea@example.invalid', 'full_name': 'Project staff DDEA', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-caf2ddea', 'username': 'staff.caf2ddea'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-dc1220e6@example.invalid', 'full_name': 'Project staff 20E6', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'data_manager', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-dc1220e6', 'username': 'staff.dc1220e6'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-1407a7fb@example.invalid', 'full_name': 'Project staff A7FB', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'principal_investigator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-1407a7fb', 'username': 'staff.1407a7fb'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-b018b8d3dcf7d6@example.invalid', 'full_name': 'Project staff F7D6', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-b018b8d3dcf7d6', 'username': 'staff.b018b8d3dcf7d6'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-73346062afe079@example.invalid', 'full_name': 'Project staff E079', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-73346062afe079', 'username': 'staff.73346062afe079'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-df41e12918931e@example.invalid', 'full_name': 'Project staff 931E', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-df41e12918931e', 'username': 'staff.df41e12918931e'}], 'quality_rule_result': [], 'record': [], 'record_event': []}, 'entry_entities': {'audit_log': [], 'data_query': [], 'dictionary_version': [{'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-6f79ec68', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-6f79ec68', 'dictionary_version_id': 'dict-4ec710e4', 'project_id': 'prj-88b364cd', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-6f79ec68', 'dictionary_version_id': 'dict-1ae59331', 'project_id': 'prj-88b364cd', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-b0b06395', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-b0b06395', 'dictionary_version_id': 'dict-06c8c24c', 'project_id': 'prj-c746d0b4', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-b0b06395', 'dictionary_version_id': 'dict-da954817', 'project_id': 'prj-c746d0b4', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-82d6dec3', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-82d6dec3', 'dictionary_version_id': 'dict-ea65be38', 'project_id': 'prj-55ac15e9', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-82d6dec3', 'dictionary_version_id': 'dict-0864e6cc', 'project_id': 'prj-55ac15e9', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-3ed4cd58', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-3ed4cd58', 'dictionary_version_id': 'dict-6679dc69', 'project_id': 'prj-f317b9e0', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-3ed4cd58', 'dictionary_version_id': 'dict-6563b3c6', 'project_id': 'prj-f317b9e0', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-285ff8b0', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-285ff8b0', 'dictionary_version_id': 'dict-89641130', 'project_id': 'prj-95db80bd', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-285ff8b0', 'dictionary_version_id': 'dict-3915b28b', 'project_id': 'prj-95db80bd', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-5a3aa907', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-5a3aa907', 'dictionary_version_id': 'dict-f70a251b', 'project_id': 'prj-b40c69f9', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-5a3aa907', 'dictionary_version_id': 'dict-8bd2200a', 'project_id': 'prj-b40c69f9', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-f84324a4', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-f84324a4', 'dictionary_version_id': 'dict-5ae1192f', 'project_id': 'prj-c42c6f16', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-f84324a4', 'dictionary_version_id': 'dict-5cf94cee', 'project_id': 'prj-c42c6f16', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}, {'applied_at': '2026-02-02T09:00:00Z', 'applied_by': 'usr-dc1220e6', 'change_summary': 'Initial closeout dictionary', 'created_at': '2026-02-01T09:00:00Z', 'created_by': 'usr-dc1220e6', 'dictionary_version_id': 'dict-bdabac84', 'project_id': 'prj-f3284b5f', 'status': 'applied', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 1}, {'applied_at': None, 'applied_by': '', 'change_summary': 'Pending closeout dictionary update', 'created_at': '2026-02-10T09:00:00Z', 'created_by': 'usr-dc1220e6', 'dictionary_version_id': 'dict-90a8e3a2', 'project_id': 'prj-f3284b5f', 'status': 'draft', 'updated_at': '2026-05-18T10:30:00Z', 'version_number': 2}], 'event': [{'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 7, 'event_id': 'evt-bf1e30a3', 'event_label': 'Aster closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-88b364cd', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_01', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 14, 'event_id': 'evt-adec52af', 'event_label': 'Beacon closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-c746d0b4', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_02', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 21, 'event_id': 'evt-ce615c0f', 'event_label': 'Cedar closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-55ac15e9', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_03', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 28, 'event_id': 'evt-dfe47f4b', 'event_label': 'Delta closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-f317b9e0', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_04', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 35, 'event_id': 'evt-f861ff48', 'event_label': 'Ember closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-95db80bd', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_05', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 42, 'event_id': 'evt-56ab26d9', 'event_label': 'Fjord closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-b40c69f9', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_06', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 49, 'event_id': 'evt-84e6f85d', 'event_label': 'Grove closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-c42c6f16', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_07', 'updated_at': '2026-05-18T10:30:00Z'}, {'arm_num': 1, 'created_at': '2026-02-01T09:00:00Z', 'day_offset': 56, 'event_id': 'evt-2fe704cf', 'event_label': 'Harbor closeout', 'offset_max': 30, 'offset_min': 0, 'project_id': 'prj-f3284b5f', 'sequence': 1, 'status': 'active', 'unique_event_name': 'closeout_08', 'updated_at': '2026-05-18T10:30:00Z'}], 'export_job': [], 'field_value': [], 'form_instance': [], 'instrument': [{'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-04c7d05b', 'instrument_label': 'Aster Source Review', 'instrument_name': 'aster_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-4ec710e4', 'mapped_event_ids': ['evt-bf1e30a3'], 'project_id': 'prj-88b364cd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-0c0e8d3b', 'instrument_label': 'Aster Closeout Checklist', 'instrument_name': 'aster_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-4ec710e4', 'mapped_event_ids': ['evt-bf1e30a3'], 'project_id': 'prj-88b364cd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-3040bf9c', 'instrument_label': 'Beacon Source Review', 'instrument_name': 'beacon_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-06c8c24c', 'mapped_event_ids': ['evt-adec52af'], 'project_id': 'prj-c746d0b4', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-56a8420a', 'instrument_label': 'Beacon Closeout Checklist', 'instrument_name': 'beacon_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-06c8c24c', 'mapped_event_ids': ['evt-adec52af'], 'project_id': 'prj-c746d0b4', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-9993c040', 'instrument_label': 'Cedar Source Review', 'instrument_name': 'cedar_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-ea65be38', 'mapped_event_ids': ['evt-ce615c0f'], 'project_id': 'prj-55ac15e9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-6da06d1c', 'instrument_label': 'Cedar Closeout Checklist', 'instrument_name': 'cedar_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-ea65be38', 'mapped_event_ids': ['evt-ce615c0f'], 'project_id': 'prj-55ac15e9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-22fbb43b', 'instrument_label': 'Delta Source Review', 'instrument_name': 'delta_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-6679dc69', 'mapped_event_ids': ['evt-dfe47f4b'], 'project_id': 'prj-f317b9e0', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-9b30bafe', 'instrument_label': 'Delta Closeout Checklist', 'instrument_name': 'delta_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-6679dc69', 'mapped_event_ids': ['evt-dfe47f4b'], 'project_id': 'prj-f317b9e0', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-f4d6cbfe', 'instrument_label': 'Ember Source Review', 'instrument_name': 'ember_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-89641130', 'mapped_event_ids': ['evt-f861ff48'], 'project_id': 'prj-95db80bd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-baf7b541', 'instrument_label': 'Ember Closeout Checklist', 'instrument_name': 'ember_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-89641130', 'mapped_event_ids': ['evt-f861ff48'], 'project_id': 'prj-95db80bd', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-3aa3f545', 'instrument_label': 'Fjord Source Review', 'instrument_name': 'fjord_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-f70a251b', 'mapped_event_ids': ['evt-56ab26d9'], 'project_id': 'prj-b40c69f9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-5cea6598', 'instrument_label': 'Fjord Closeout Checklist', 'instrument_name': 'fjord_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-f70a251b', 'mapped_event_ids': ['evt-56ab26d9'], 'project_id': 'prj-b40c69f9', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-e67da5bb', 'instrument_label': 'Grove Source Review', 'instrument_name': 'grove_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-5ae1192f', 'mapped_event_ids': ['evt-84e6f85d'], 'project_id': 'prj-c42c6f16', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-a20415d7', 'instrument_label': 'Grove Closeout Checklist', 'instrument_name': 'grove_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-5ae1192f', 'mapped_event_ids': ['evt-84e6f85d'], 'project_id': 'prj-c42c6f16', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-4d76a2a8', 'instrument_label': 'Harbor Source Review', 'instrument_name': 'harbor_source_review', 'is_survey': False, 'last_dictionary_version': 'dict-bdabac84', 'mapped_event_ids': ['evt-2fe704cf'], 'project_id': 'prj-f3284b5f', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}, {'category': 'clinical', 'created_at': '2026-02-01T09:00:00Z', 'field_count': 1, 'instrument_id': 'ins-c94318af', 'instrument_label': 'Harbor Closeout Checklist', 'instrument_name': 'harbor_closeout_checklist', 'is_survey': False, 'last_dictionary_version': 'dict-bdabac84', 'mapped_event_ids': ['evt-2fe704cf'], 'project_id': 'prj-f3284b5f', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'version': 1}], 'instrument_field': [{'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-841d3de9', 'field_label': 'Screening visit date', 'field_name': 'screening_visit_date', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-04c7d05b', 'ordinal': 1, 'project_id': 'prj-88b364cd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-149ab53f', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-0c0e8d3b', 'ordinal': 1, 'project_id': 'prj-88b364cd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e11ca79f', 'field_label': 'Systolic pressure', 'field_name': 'systolic_pressure', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-3040bf9c', 'ordinal': 1, 'project_id': 'prj-c746d0b4', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-23746c83', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-56a8420a', 'ordinal': 1, 'project_id': 'prj-c746d0b4', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e84b2e2f', 'field_label': 'Visit disposition', 'field_name': 'visit_disposition', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-9993c040', 'ordinal': 1, 'project_id': 'prj-55ac15e9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-cf49d8a1', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-6da06d1c', 'ordinal': 1, 'project_id': 'prj-55ac15e9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e121e044', 'field_label': 'Dose confirmation', 'field_name': 'dose_confirmation', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-22fbb43b', 'ordinal': 1, 'project_id': 'prj-f317b9e0', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-072603fa', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-9b30bafe', 'ordinal': 1, 'project_id': 'prj-f317b9e0', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-52f8005b', 'field_label': 'Specimen accession', 'field_name': 'specimen_accession', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-f4d6cbfe', 'ordinal': 1, 'project_id': 'prj-95db80bd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e312ed03', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-baf7b541', 'ordinal': 1, 'project_id': 'prj-95db80bd', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-c006c48d', 'field_label': 'Vaccination date', 'field_name': 'vaccination_date', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-3aa3f545', 'ordinal': 1, 'project_id': 'prj-b40c69f9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-d6798fe5', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-5cea6598', 'ordinal': 1, 'project_id': 'prj-b40c69f9', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-0edfc95a', 'field_label': 'Fasting glucose', 'field_name': 'fasting_glucose', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-e67da5bb', 'ordinal': 1, 'project_id': 'prj-c42c6f16', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-1d63e320', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-a20415d7', 'ordinal': 1, 'project_id': 'prj-c42c6f16', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-565f3dec', 'field_label': 'Sleep duration hours', 'field_name': 'sleep_duration_hours', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-4d76a2a8', 'ordinal': 1, 'project_id': 'prj-f3284b5f', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}, {'branching_logic': 'None', 'created_at': '2026-02-01T09:00:00Z', 'field_id': 'fld-e0f552ca', 'field_label': 'Closeout packet reviewed', 'field_name': 'closeout_packet_reviewed', 'field_type': 'text', 'identifier': False, 'instrument_id': 'ins-c94318af', 'ordinal': 1, 'project_id': 'prj-f3284b5f', 'required': True, 'select_choices': 'none', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'validation': 'none'}], 'project': [{'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Aster Pulmonary Recovery', 'project_id': 'prj-88b364cd', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Aster Pulmonary Recovery', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Beacon Cardiac Follow-up', 'project_id': 'prj-c746d0b4', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Beacon Cardiac Follow-up', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Cedar Neurology Registry', 'project_id': 'prj-55ac15e9', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Cedar Neurology Registry', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Delta Oncology Cohort', 'project_id': 'prj-f317b9e0', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Delta Oncology Cohort', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Ember Renal Outcomes', 'project_id': 'prj-95db80bd', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Ember Renal Outcomes', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Fjord Vaccine Study', 'project_id': 'prj-b40c69f9', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Fjord Vaccine Study', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Grove Diabetes Trial', 'project_id': 'prj-c42c6f16', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Grove Diabetes Trial', 'updated_at': '2026-05-18T10:30:00Z'}, {'active_instrument_count': 2, 'availability': 'active', 'created_at': '2026-02-01T09:00:00Z', 'data_access_group_count': 1, 'design': 'longitudinal', 'last_activity_at': '2026-05-18T10:30:00Z', 'open_query_count': 0, 'pending_export_count': 0, 'primary_site': 'Harbor Sleep Study', 'project_id': 'prj-f3284b5f', 'purpose': 'clinical research closeout', 'record_autonumbering': True, 'record_count': 0, 'status': 'production', 'surveys_enabled': False, 'title': 'Harbor Sleep Study', 'updated_at': '2026-05-18T10:30:00Z'}], 'project_user': [{'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'aster-site', 'email': 'usr-7fad6e49@example.invalid', 'full_name': 'Project staff 6E49', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-7fad6e49', 'username': 'staff.7fad6e49'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'aster-site', 'email': 'usr-590ac21b@example.invalid', 'full_name': 'Project staff C21B', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-590ac21b', 'username': 'staff.590ac21b'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-6f79ec68@example.invalid', 'full_name': 'Project staff EC68', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-88b364cd', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-6f79ec68', 'username': 'staff.6f79ec68'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-26a294f3@example.invalid', 'full_name': 'Project staff 94F3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-26a294f3', 'username': 'staff.26a294f3'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-b0b06395@example.invalid', 'full_name': 'Project staff 6395', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-b0b06395', 'username': 'staff.b0b06395'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'cedar-site', 'email': 'usr-890ee2f3@example.invalid', 'full_name': 'Project staff E2F3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-890ee2f3', 'username': 'staff.890ee2f3'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'cedar-site', 'email': 'usr-3f99a994@example.invalid', 'full_name': 'Project staff A994', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-3f99a994', 'username': 'staff.3f99a994'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-82d6dec3@example.invalid', 'full_name': 'Project staff DEC3', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-55ac15e9', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-82d6dec3', 'username': 'staff.82d6dec3'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'external-site', 'email': 'usr-6ef2513c@example.invalid', 'full_name': 'Project staff 513C', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-6ef2513c', 'username': 'staff.6ef2513c'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-3ed4cd58@example.invalid', 'full_name': 'Project staff CD58', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'data_manager', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-3ed4cd58', 'username': 'staff.3ed4cd58'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-dad43b95@example.invalid', 'full_name': 'Project staff 3B95', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f317b9e0', 'role': 'principal_investigator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-dad43b95', 'username': 'staff.dad43b95'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'ember-site', 'email': 'usr-d38ae54d@example.invalid', 'full_name': 'Project staff E54D', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-d38ae54d', 'username': 'staff.d38ae54d'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'ember-site', 'email': 'usr-5a659d22@example.invalid', 'full_name': 'Project staff 9D22', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-5a659d22', 'username': 'staff.5a659d22'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-285ff8b0@example.invalid', 'full_name': 'Project staff F8B0', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-95db80bd', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-285ff8b0', 'username': 'staff.285ff8b0'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-1b97f7cc@example.invalid', 'full_name': 'Project staff F7CC', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-1b97f7cc', 'username': 'staff.1b97f7cc'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-5a3aa907@example.invalid', 'full_name': 'Project staff A907', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-5a3aa907', 'username': 'staff.5a3aa907'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'grove-site', 'email': 'usr-190cad8b@example.invalid', 'full_name': 'Project staff AD8B', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-190cad8b', 'username': 'staff.190cad8b'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'grove-site', 'email': 'usr-28d6e32e@example.invalid', 'full_name': 'Project staff E32E', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-28d6e32e', 'username': 'staff.28d6e32e'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-f84324a4@example.invalid', 'full_name': 'Project staff 24A4', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c42c6f16', 'role': 'monitor', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-f84324a4', 'username': 'staff.f84324a4'}, {'can_export_identifiers': False, 'can_lock_records': False, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'external-site', 'email': 'usr-caf2ddea@example.invalid', 'full_name': 'Project staff DDEA', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'data_entry', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-caf2ddea', 'username': 'staff.caf2ddea'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-dc1220e6@example.invalid', 'full_name': 'Project staff 20E6', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'data_manager', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-dc1220e6', 'username': 'staff.dc1220e6'}, {'can_export_identifiers': True, 'can_lock_records': True, 'can_manage_dictionary': True, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-1407a7fb@example.invalid', 'full_name': 'Project staff A7FB', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-f3284b5f', 'role': 'principal_investigator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-1407a7fb', 'username': 'staff.1407a7fb'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-b018b8d3dcf7d6@example.invalid', 'full_name': 'Project staff F7D6', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-b018b8d3dcf7d6', 'username': 'staff.b018b8d3dcf7d6'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-73346062afe079@example.invalid', 'full_name': 'Project staff E079', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-c746d0b4', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-73346062afe079', 'username': 'staff.73346062afe079'}, {'can_export_identifiers': False, 'can_lock_records': True, 'can_manage_dictionary': False, 'created_at': '2026-02-01T09:00:00Z', 'data_access_group': 'central', 'email': 'usr-df41e12918931e@example.invalid', 'full_name': 'Project staff 931E', 'last_login_at': '2026-05-18T10:30:00Z', 'project_id': 'prj-b40c69f9', 'role': 'clinical_coordinator', 'status': 'active', 'updated_at': '2026-05-18T10:30:00Z', 'user_id': 'usr-df41e12918931e', 'username': 'staff.df41e12918931e'}], 'quality_rule_result': [], 'record': [], 'record_event': []}, 'events': [], 'read_units': 0, 'schema': 'rescopebench-redcap-persistent-stream-snapshot/v1', 'targets': [], 'task_id': None, 'write_attempts': 0}, 'schema': 'rescopebench-redcap-structure-world/v7', 'successor': {'drift_application_count': 0, 'provider_tools_sha256': '5b8d114f107021ca6fe690b78ab91fb09fbe5b9f873e50f8fce0603ac143fe8f', 's02_new_assignee': 'usr-b018b8d3dcf7d6'}, 'successor_v5': {'authority_revalidation': {}, 'provider_tools_sha256': 'ccda3f97d34b50376e9bbed96390d1a430d9980a47bb8bccfe4cc9ca84c6fb5b', 'synthetic_assignees': {'S02': 'usr-73346062afe079', 'S06': 'usr-df41e12918931e'}}, 'successor_v6': {'compact_profile_cost': 2, 'provider_tools_sha256': 'cea2749468a89c15de9ca78832ea2f7dd0540faa66b5df73eccbe544d7edf29b'}, 'successor_v7': {'cached_closeout_profile_cost': 0, 'provider_tools_sha256': 'ce93692a925a9261962b6dc349b1446d425e93a516663ce04fb9b1330674c2bb', 'registered_structure_delta_sha256': 'c906f6670e3358b8460d789cc5d65113fcdba816ef2ee8d83c2ef6f871ec3c00'}}
DATA_TOOLS = [{'type': 'function', 'function': {'name': 'list_projects', 'description': 'Return bounded project rows matching supplied lifecycle and title filters.', 'parameters': {'type': 'object', 'properties': {'status': {'type': 'string', 'enum': ['development', 'production', 'archived']}, 'availability': {'type': 'string', 'enum': ['active', 'locked']}, 'title_keyword': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'list_project_users', 'description': 'Return bounded staff rows for one project. A lock_records match establishes locking capability only, not query-answer or query-resolution authority.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'role': {'type': 'string', 'enum': ['principal_investigator', 'data_manager', 'clinical_coordinator', 'data_entry', 'monitor', 'statistician']}, 'status': {'type': 'string', 'enum': ['active', 'inactive']}, 'permission': {'type': 'string', 'enum': ['export_identifiers', 'manage_dictionary', 'lock_records']}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}}, {'type': 'function', 'function': {'name': 'list_instruments', 'description': 'Return bounded instrument rows for one project.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['draft', 'active', 'archived']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}}, {'type': 'function', 'function': {'name': 'inspect_instrument_dictionary', 'description': 'Return one instrument, its mapped events, and its current field definitions.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'include_inactive_fields': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'instrument_id']}}}, {'type': 'function', 'function': {'name': 'search_records', 'description': 'Return bounded record rows for one project using subject and workflow filters.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'subject_keyword': {'type': 'string', 'minLength': 1}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'has_open_queries': {'type': 'boolean'}, 'has_locked_events': {'type': 'boolean'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id', 'subject_keyword']}}}, {'type': 'function', 'function': {'name': 'get_record_profile', 'description': 'Return the bounded active-packet projection. It separates reusable project/workflow evidence from task-scoped handles. Discovery costs two read units; an optional exact read after successful closeout is served from the current episode cache at zero read units. After your own successful final lock in this episode, an exact project_id/record_id request returns only its previous closeout receipt, without using read/write/call quota.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'record_id']}}}, {'type': 'function', 'function': {'name': 'list_data_queries', 'description': 'Return bounded query rows. An exact record-scoped lookup costs two read units and includes field/instrument identifiers plus role-specific workflow authority; use it to repair a contradicted retained assignment.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'assigned_to': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['open', 'answered', 'resolved']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id', 'record_id']}}}, {'type': 'function', 'function': {'name': 'inspect_audit_trail', 'description': 'Return bounded audit rows for one project and optional record, event, or action filters.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'action': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}}, {'type': 'function', 'function': {'name': 'update_record_field', 'description': 'Update one field value using an attributable project staff member.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'field_id': {'type': 'string', 'minLength': 1}, 'value': {'type': 'string', 'minLength': 1}, 'source': {'type': 'string', 'enum': ['manual', 'import', 'calculated']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_id', 'event_id', 'instrument_id', 'field_id', 'value']}}}, {'type': 'function', 'function': {'name': 'update_data_query_answer', 'description': 'Write an answer on one data query using an attributable project staff member.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'answer_text': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'answer_text']}}}, {'type': 'function', 'function': {'name': 'resolve_data_query', 'description': 'Resolve one answered data query using an attributable project staff member.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'resolution_note': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'resolution_note']}}}, {'type': 'function', 'function': {'name': 'mark_form_complete', 'description': 'Set one form to a requested completion state using an attributable project staff member.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'form_instance_id': {'type': 'string', 'minLength': 1}, 'completion_status': {'type': 'string', 'enum': ['incomplete', 'unverified', 'complete']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'form_instance_id', 'completion_status']}}}, {'type': 'function', 'function': {'name': 'set_record_event_lock', 'description': 'Change one record-event lock using an attributable authorized locker. A successful final lock returns an authoritative closeout receipt; no additional profile read is required to establish completion.', 'parameters': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_event_id': {'type': 'string', 'minLength': 1}, 'locked': {'type': 'boolean'}, 'lock_reason': {'type': 'string'}, 'allow_unlock_with_queries': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_event_id', 'locked']}}}]
DATA_TASKS = [{'position': 1, 'private_task_id': 'T01', 'event_id': 'EV-6223287394928B', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-6223287394928B", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-f95aa740cdde", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-b26f95357a75", "query_id": "qry-e9bf032dd59e", "record_event_id": "rev-0340eac411c3"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-193968ffb516", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case C3517720", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-abdc330f9f39", "event_id": "evt-adec52af", "primary_form_id": "frm-def5f30bf4f9", "query_id": "qry-58f86046931a", "record_event_id": "rev-f6f78669f3d8"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-4a2614498fea", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 6E3BE382", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-b46478c83b08", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-d1e85484a1f3", "query_id": "qry-64b8315273e4", "record_event_id": "rev-e329aadc24e4"}, "priority": 3, "project_title": "Delta Oncology Cohort", "request_ref": "packet-69eaeae85361", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case 0383C7E2", "workflow_class": "fill-value-and-close"}, {"corrected_value": "ER-55219", "experience_keys": {"project_binding": "Ember Renal Outcomes", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-99fbbfab783c", "event_id": "evt-f861ff48", "primary_form_id": "frm-c8820074757c", "query_id": "qry-e12255d658d7", "record_event_id": "rev-896c2f508d27"}, "priority": 4, "project_title": "Ember Renal Outcomes", "request_ref": "packet-3b1fa7cfb886", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Specimen accession", "subject_label": "Ember closeout case B1AF8290", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 2, 'private_task_id': 'T02', 'event_id': 'EV-815EEBC5109FD8', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-815EEBC5109FD8", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-f02aaf3d77f4", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-ade84ee38860", "query_id": "qry-8b132baa4cc7", "record_event_id": "rev-849696b997b2"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-a34759940a90", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 2183F863", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-e249d57d7865", "event_id": "evt-adec52af", "primary_form_id": "frm-aa894817e05a", "query_id": "qry-323ffd3eb787", "record_event_id": "rev-922a42ab0ce3"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-c04b7538d610", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 1FFC5C8F", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-41312bef1f59", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-c0ab0e53c2ff", "query_id": "qry-26068852a757", "record_event_id": "rev-010be6042177"}, "priority": 3, "project_title": "Delta Oncology Cohort", "request_ref": "packet-656f2510de61", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case 63A4C4F6", "workflow_class": "fill-value-and-close"}, {"corrected_value": "ER-55219", "experience_keys": {"project_binding": "Ember Renal Outcomes", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-109a1e17c4d1", "event_id": "evt-f861ff48", "primary_form_id": "frm-a0f0326a9c31", "query_id": "qry-f30bd85a17a1", "record_event_id": "rev-d7ad0aa2efd1"}, "priority": 4, "project_title": "Ember Renal Outcomes", "request_ref": "packet-f9956e5214a0", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Specimen accession", "subject_label": "Ember closeout case 608951DD", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 3, 'private_task_id': 'T03', 'event_id': 'EV-BD49DC507A73FD', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-BD49DC507A73FD", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-53f3bd77485e", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-2b97769e0d09", "query_id": "qry-3b6a6b0f0208", "record_event_id": "rev-fb68a82995c7"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-1f7af2d56c2c", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 9C9D7561", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-97c150afaa60", "event_id": "evt-adec52af", "primary_form_id": "frm-bdfe577513af", "query_id": "qry-a557e5dd7fec", "record_event_id": "rev-183cbbbbfd4c"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-fe5d33ee9cea", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case D840CF98", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-8f94e9b493cd", "event_id": "evt-ce615c0f", "primary_form_id": "frm-7c910eae8aed", "query_id": "qry-a9a32a946ff7", "record_event_id": "rev-82dedd51904b"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-24cb5c9e42b2", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 2FB9EA67", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-c74da7460549", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-41c16ff2a599", "query_id": "qry-5a076085e40a", "record_event_id": "rev-0ec8ea93bd88"}, "priority": 4, "project_title": "Delta Oncology Cohort", "request_ref": "packet-ad4ff9e3aeea", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case 36D50105", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 4, 'private_task_id': 'T04', 'event_id': 'EV-220000547CD8DB', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-220000547CD8DB", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-17b8aa795045", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-ffb9246e13f5", "query_id": "qry-0c3047b2ac1f", "record_event_id": "rev-e7eb0c17a86c"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-87d0d9f103ec", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 48F16DBA", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-a442c2218a3c", "event_id": "evt-adec52af", "primary_form_id": "frm-d98e08f51789", "query_id": "qry-7034c831f685", "record_event_id": "rev-946065a78b7b"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-41d9d0654920", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 7AD5E0A6", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-5533af12150f", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-7c6a974e9e10", "query_id": "qry-a181279942ae", "record_event_id": "rev-b021c43c9419"}, "priority": 3, "project_title": "Delta Oncology Cohort", "request_ref": "packet-d286d4b2ddc6", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case 1A521EC1", "workflow_class": "fill-value-and-close"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-25de4a344349", "event_id": "evt-ce615c0f", "primary_form_id": "frm-aece42f804d7", "query_id": "qry-6e16a3418488", "record_event_id": "rev-80072a284568"}, "priority": 4, "project_title": "Cedar Neurology Registry", "request_ref": "packet-17562b6210e0", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 042C897E", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 5, 'private_task_id': 'T05', 'event_id': 'EV-0D313382B639E0', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-0D313382B639E0", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-554371a6f98d", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-d9720b46359c", "query_id": "qry-5a4f79679d3b", "record_event_id": "rev-1a633ca27a83"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-612f714fdd69", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 9143F991", "workflow_class": "replace-value-and-close"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-5bf1e6ea93e5", "event_id": "evt-ce615c0f", "primary_form_id": "frm-d16e702642a6", "query_id": "qry-c535234b4c27", "record_event_id": "rev-4a4b28584325"}, "priority": 2, "project_title": "Cedar Neurology Registry", "request_ref": "packet-b5ab249c8c59", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 1E8039BF", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "ER-55219", "experience_keys": {"project_binding": "Ember Renal Outcomes", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-907cc21c9d0a", "event_id": "evt-f861ff48", "primary_form_id": "frm-d88d6139db9e", "query_id": "qry-08439354f8a8", "record_event_id": "rev-29c9607c1d68"}, "priority": 3, "project_title": "Ember Renal Outcomes", "request_ref": "packet-2c1dcfac93d8", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Specimen accession", "subject_label": "Ember closeout case 78462FAF", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-f1159690185e", "event_id": "evt-adec52af", "primary_form_id": "frm-553b989c86e1", "query_id": "qry-7253a6cdbebf", "record_event_id": "rev-c41cf38be10e"}, "priority": 4, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-c707cb5d3261", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 17D0F8F4", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 6, 'private_task_id': 'T06', 'event_id': 'EV-995C9A3A755CD4', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-995C9A3A755CD4", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-0b2f47921453", "event_id": "evt-adec52af", "primary_form_id": "frm-2424ca02a5b2", "query_id": "qry-d68e7c04891b", "record_event_id": "rev-b1a568750a94"}, "priority": 1, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-fbf71d360347", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 09C33A50", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-827a4ed5184e", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-e3d81b9372d7", "query_id": "qry-c44f2707fe22", "record_event_id": "rev-171d054ff56c"}, "priority": 2, "project_title": "Delta Oncology Cohort", "request_ref": "packet-e90b1e276ae4", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case 46B2BE42", "workflow_class": "fill-value-and-close"}, {"corrected_value": "94", "experience_keys": {"project_binding": "Grove Diabetes Trial", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-3f75b6d8cad9", "event_id": "evt-84e6f85d", "primary_form_id": "frm-d0612e2c9aa2", "query_id": "qry-203e34f5fa95", "record_event_id": "rev-b7f1213b55ab"}, "priority": 3, "project_title": "Grove Diabetes Trial", "request_ref": "packet-dc42599f10dc", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Fasting glucose", "subject_label": "Grove closeout case DAD539ED", "workflow_class": "replace-value-and-close"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-a82fc3cf236d", "event_id": "evt-ce615c0f", "primary_form_id": "frm-dc148e84a6d2", "query_id": "qry-8f293feecf56", "record_event_id": "rev-c3d124922aec"}, "priority": 4, "project_title": "Cedar Neurology Registry", "request_ref": "packet-fdc83ed2b3b9", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case F95A14D6", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 7, 'private_task_id': 'T07', 'event_id': 'EV-8180FE3D72406A', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-8180FE3D72406A", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-208bea6b28b5", "event_id": "evt-ce615c0f", "primary_form_id": "frm-49a7703aa88f", "query_id": "qry-964c032eaae9", "record_event_id": "rev-475bb349d3b4"}, "priority": 1, "project_title": "Cedar Neurology Registry", "request_ref": "packet-905f6a29a108", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case E15DDB78", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "ER-55219", "experience_keys": {"project_binding": "Ember Renal Outcomes", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-d9f51c90ebdd", "event_id": "evt-f861ff48", "primary_form_id": "frm-12bfb976f909", "query_id": "qry-ce33a7b784e0", "record_event_id": "rev-176d23f64838"}, "priority": 2, "project_title": "Ember Renal Outcomes", "request_ref": "packet-b698f30db0c1", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Specimen accession", "subject_label": "Ember closeout case 3F8BB75D", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-96c024b0d10b", "event_id": "evt-56ab26d9", "primary_form_id": "frm-f853e1ff0cc4", "query_id": "qry-c246de7b4dd2", "record_event_id": "rev-64e71557327c"}, "priority": 3, "project_title": "Fjord Vaccine Study", "request_ref": "packet-b8caa1685474", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case C9D160E2", "workflow_class": "fill-value-and-close"}, {"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-df0b4b9a6cc7", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-c8af14e3b597", "query_id": "qry-d80e8626c208", "record_event_id": "rev-e59a3add0e82"}, "priority": 4, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-0e0521aa2376", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 3CC8E6F9", "workflow_class": "replace-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 8, 'private_task_id': 'T08', 'event_id': 'EV-1EEBD6810E29E0', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-1EEBD6810E29E0", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-e932cef84003", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-30824e8eb76c", "query_id": "qry-d1fa2e856e1d", "record_event_id": "rev-68d5d490db15"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-350ca76c4d2f", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 1C349A95", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-2f20be25d818", "event_id": "evt-adec52af", "primary_form_id": "frm-67d5f6f76bf2", "query_id": "qry-05c103ab8d3f", "record_event_id": "rev-0bbb2a0e9747"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-2d856961ddf3", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 70F20ADA", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-a65d7e63cc1e", "event_id": "evt-ce615c0f", "primary_form_id": "frm-2e54ebd1f995", "query_id": "qry-27537076561a", "record_event_id": "rev-c358929cd997"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-8720c2bb125a", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 2D8947FB", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-e7c3f5979c30", "event_id": "evt-56ab26d9", "primary_form_id": "frm-278a3d106a05", "query_id": "qry-3c96afd16c53", "record_event_id": "rev-7887d99c7b8d"}, "priority": 4, "project_title": "Fjord Vaccine Study", "request_ref": "packet-5a3239c3be9f", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case 0559960A", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 9, 'private_task_id': 'T09', 'event_id': 'EV-EF2416D5279D0E', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-EF2416D5279D0E", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-e8c3b981875b", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-063148736165", "query_id": "qry-faaad9733c59", "record_event_id": "rev-3aa73382ffac"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-424456744b91", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case E085F166", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-92f2273a100c", "event_id": "evt-adec52af", "primary_form_id": "frm-c86cd1d8f5da", "query_id": "qry-ce7be74ad2f4", "record_event_id": "rev-c72138db0e05"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-4718cda20233", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 53AD7E28", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-dcd76736ab19", "event_id": "evt-ce615c0f", "primary_form_id": "frm-b449653abef6", "query_id": "qry-90941442c223", "record_event_id": "rev-8d57c550f96b"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-77ff3bb27c0c", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case FE245983", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-ec1c98c3a208", "event_id": "evt-56ab26d9", "primary_form_id": "frm-6603253e8de8", "query_id": "qry-84a50ad37f07", "record_event_id": "rev-41e16439f83f"}, "priority": 4, "project_title": "Fjord Vaccine Study", "request_ref": "packet-f331742d68ff", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case 9A580D7F", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 10, 'private_task_id': 'T10', 'event_id': 'EV-B516FDF5D5F821', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-B516FDF5D5F821", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-810fe09e9ec9", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-196630c5d6b2", "query_id": "qry-931d72700b44", "record_event_id": "rev-862f0f3a4627"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-3133268cfe10", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 40C30B9E", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-f09b880460af", "event_id": "evt-adec52af", "primary_form_id": "frm-28169d881058", "query_id": "qry-8d2cf29aa194", "record_event_id": "rev-c18dc22420ab"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-7dc7512ab7e3", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case C8A3B296", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-04892462936c", "event_id": "evt-ce615c0f", "primary_form_id": "frm-48f53b915b26", "query_id": "qry-dc86688d2342", "record_event_id": "rev-4723fa3ca1f2"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-025eb29b86f4", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case E8DB7978", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-45abbdea9a4a", "event_id": "evt-56ab26d9", "primary_form_id": "frm-d76feda86f59", "query_id": "qry-29b0ceadffce", "record_event_id": "rev-c5ddeab74132"}, "priority": 4, "project_title": "Fjord Vaccine Study", "request_ref": "packet-ce992dfb97d9", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case 431EA426", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 11, 'private_task_id': 'T11', 'event_id': 'EV-DDBF8757FDF2B2', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-DDBF8757FDF2B2", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-495aa59cfa5f", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-99d030914aef", "query_id": "qry-0e41607b5e63", "record_event_id": "rev-864029e79a76"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-fd480c0819ce", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 7C7BEE31", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-8c32227e952d", "event_id": "evt-adec52af", "primary_form_id": "frm-e8f7936e6ca7", "query_id": "qry-aafea94a04c2", "record_event_id": "rev-8b94c9639ffb"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-ba72a58cc5d0", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 7CC648CA", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-86244c406931", "event_id": "evt-ce615c0f", "primary_form_id": "frm-bd2245f7ee8d", "query_id": "qry-dac60e57cdca", "record_event_id": "rev-70b8077a4be6"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-c9c837f7a53b", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case C7D9B687", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-3ab4b88b4368", "event_id": "evt-56ab26d9", "primary_form_id": "frm-2b846b7d322b", "query_id": "qry-fee89d83d589", "record_event_id": "rev-a2fc215e7ca5"}, "priority": 4, "project_title": "Fjord Vaccine Study", "request_ref": "packet-eccbb24cff16", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case 2550B107", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 12, 'private_task_id': 'T12', 'event_id': 'EV-05177774646719', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-05177774646719", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-8c477fa66aa7", "event_id": "evt-56ab26d9", "primary_form_id": "frm-b6a09e7714d7", "query_id": "qry-3a7f10f4d323", "record_event_id": "rev-d3bbd6ecd704"}, "priority": 1, "project_title": "Fjord Vaccine Study", "request_ref": "packet-78e3d988d508", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case EBCB940D", "workflow_class": "fill-value-and-close"}, {"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-8f5a39abc1c0", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-3caf444402ac", "query_id": "qry-98b77c9a3829", "record_event_id": "rev-c2e5df556fdc"}, "priority": 2, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-b4c633d99529", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 917AD46C", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-c8563592927d", "event_id": "evt-adec52af", "primary_form_id": "frm-b8ae84dc2802", "query_id": "qry-d797b5d79530", "record_event_id": "rev-b677ff9a62c0"}, "priority": 3, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-ec67c0be909d", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 545E7F24", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-be845e79d3ad", "event_id": "evt-ce615c0f", "primary_form_id": "frm-14d5369b23c3", "query_id": "qry-0daa876e70ae", "record_event_id": "rev-9a11248af594"}, "priority": 4, "project_title": "Cedar Neurology Registry", "request_ref": "packet-416d168d06ad", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 40B3D736", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 13, 'private_task_id': 'T13', 'event_id': 'EV-07150242108BA5', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-07150242108BA5", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-c1e01740e306", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-e105c8198fb7", "query_id": "qry-83f40d5442cf", "record_event_id": "rev-d911b361367d"}, "priority": 1, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-f3bf6b3555e9", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 53BB9979", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-895c54c91a67", "event_id": "evt-adec52af", "primary_form_id": "frm-d5db035bacd2", "query_id": "qry-f7cdfd8c8192", "record_event_id": "rev-23edde8deecf"}, "priority": 2, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-4a43cb79438c", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case C0CB9627", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-b625bc47ee8b", "event_id": "evt-ce615c0f", "primary_form_id": "frm-86d5049c3a9e", "query_id": "qry-4c3fa0662184", "record_event_id": "rev-9d8c6b806968"}, "priority": 3, "project_title": "Cedar Neurology Registry", "request_ref": "packet-fc1b1b8ceb9d", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 4C003981", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "42 mg", "experience_keys": {"project_binding": "Delta Oncology Cohort", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-4af65b8ce805", "event_id": "evt-dfe47f4b", "primary_form_id": "frm-8cdabc2d6494", "query_id": "qry-f9ed9902bc23", "record_event_id": "rev-0a37284646b4"}, "priority": 4, "project_title": "Delta Oncology Cohort", "request_ref": "packet-47dd27d89419", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Dose confirmation", "subject_label": "Delta closeout case FD0DDBED", "workflow_class": "fill-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 14, 'private_task_id': 'T14', 'event_id': 'EV-270118B9720FA7', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-270118B9720FA7", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-5e2aa0e23f11", "event_id": "evt-adec52af", "primary_form_id": "frm-7efc26902e34", "query_id": "qry-36cb1c73c0a1", "record_event_id": "rev-49151775e2a1"}, "priority": 1, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-ee74bf0abfcd", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case 6734C434", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-f730a9612b4f", "event_id": "evt-ce615c0f", "primary_form_id": "frm-cfcbe381463e", "query_id": "qry-b10cf6bbfa6c", "record_event_id": "rev-c855e4082eed"}, "priority": 2, "project_title": "Cedar Neurology Registry", "request_ref": "packet-982474a26f13", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 2581E70F", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-c7a93d21df43", "event_id": "evt-56ab26d9", "primary_form_id": "frm-56bea91c0b66", "query_id": "qry-7912b9f2b07c", "record_event_id": "rev-07096f24d449"}, "priority": 3, "project_title": "Fjord Vaccine Study", "request_ref": "packet-9d027fc6f48f", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case EAC16002", "workflow_class": "fill-value-and-close"}, {"corrected_value": "ER-55219", "experience_keys": {"project_binding": "Ember Renal Outcomes", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-c703bfdf60ba", "event_id": "evt-f861ff48", "primary_form_id": "frm-87f8532e6801", "query_id": "qry-25c0f2bfd5bc", "record_event_id": "rev-75bf9f1cd301"}, "priority": 4, "project_title": "Ember Renal Outcomes", "request_ref": "packet-9c003c67e4a8", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Specimen accession", "subject_label": "Ember closeout case 06DEC919", "workflow_class": "replace-value-and-close"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 15, 'private_task_id': 'T15', 'event_id': 'EV-7662E1E419CCC6', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-7662E1E419CCC6", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-df42c4eadde1", "event_id": "evt-ce615c0f", "primary_form_id": "frm-1eb8309d8331", "query_id": "qry-714453da671e", "record_event_id": "rev-717c27885c7b"}, "priority": 1, "project_title": "Cedar Neurology Registry", "request_ref": "packet-31e6cd7f3999", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case DD6DF461", "workflow_class": "reopen-resolve-and-relock"}, {"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-206a18221d06", "event_id": "evt-56ab26d9", "primary_form_id": "frm-27909c24050e", "query_id": "qry-82d4cac09a2f", "record_event_id": "rev-01c19062c23a"}, "priority": 2, "project_title": "Fjord Vaccine Study", "request_ref": "packet-3bac7f453990", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case 7D791032", "workflow_class": "fill-value-and-close"}, {"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-22a234a3e2d0", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-55346f377569", "query_id": "qry-65e59d81ba1f", "record_event_id": "rev-d2a49411df76"}, "priority": 3, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-9338f484627b", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 3F612900", "workflow_class": "replace-value-and-close"}, {"corrected_value": "94", "experience_keys": {"project_binding": "Grove Diabetes Trial", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-2959cf611943", "event_id": "evt-84e6f85d", "primary_form_id": "frm-2575e7f3327c", "query_id": "qry-f7d07deda9a1", "record_event_id": "rev-c0ce23e11d59"}, "priority": 4, "project_title": "Grove Diabetes Trial", "request_ref": "packet-e8b9f8a30f8b", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Fasting glucose", "subject_label": "Grove closeout case F960296E", "workflow_class": "resolve-query-and-lock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}, {'position': 16, 'private_task_id': 'T16', 'event_id': 'EV-C26B700883EA73', 'query': '{"budget": {"charging": ["A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.", "An exact active-packet get_record_profile projection charges two read units during discovery.", "After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.", "An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.", "A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.", "An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid."], "exhaustion": "An unfunded business call fails without changing business state.", "limits": [{"allowance": 6, "resource": "read_units"}, {"allowance": 17, "resource": "write_attempts"}, {"allowance": 48, "resource": "maximum_tool_calls"}], "persistence": "Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish."}, "completion": {"evidence": {"mode": "authoritative_receipt", "proves": "the committed packet\'s completed forms, resolved query, verified field and locked event as reported", "source": "the final successful lock response\'s packet-completion receipt"}, "mode": "independent", "priority_order": "none", "started_item_must_close": false, "subset_allowed": true}, "event_id": "EV-C26B700883EA73", "objective": "Close as many listed REDCap work packets as possible. Packets may be processed in any order; an unfinished record does not block an unrelated record. For a new project binding, resolve the exact project and subject and inspect the active packet. A verified project binding and workflow-class procedure may be reused for later packets with the same experience keys; only the current subject record and supplied task-scoped handles then need binding. A successful final lock returns authoritative packet-completion evidence, so an extra readback is optional. Current business evidence overrides retained authority. Do not alter unrelated records.", "schema": "rescopebench-redcap-reusable-authority-task/v7", "targets": [{"corrected_value": "2026-04-22", "experience_keys": {"project_binding": "Fjord Vaccine Study", "workflow_procedure": "fill-value-and-close"}, "operation_handles": {"companion_form_id": "frm-bf5ff693f7bc", "event_id": "evt-56ab26d9", "primary_form_id": "frm-3dff03c1a319", "query_id": "qry-3a114285b3ff", "record_event_id": "rev-c042c932e088"}, "priority": 1, "project_title": "Fjord Vaccine Study", "request_ref": "packet-8b4ba2b73874", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Vaccination date", "subject_label": "Fjord closeout case D930CB34", "workflow_class": "fill-value-and-close"}, {"corrected_value": "2026-03-14", "experience_keys": {"project_binding": "Aster Pulmonary Recovery", "workflow_procedure": "replace-value-and-close"}, "operation_handles": {"companion_form_id": "frm-9113f4a04a2f", "event_id": "evt-bf1e30a3", "primary_form_id": "frm-8e29c1db5654", "query_id": "qry-a5f556bc7c02", "record_event_id": "rev-3f4eb8480143"}, "priority": 2, "project_title": "Aster Pulmonary Recovery", "request_ref": "packet-ba11ac4eb5b6", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Screening visit date", "subject_label": "Aster closeout case 9FB66562", "workflow_class": "replace-value-and-close"}, {"corrected_value": "118", "experience_keys": {"project_binding": "Beacon Cardiac Follow-up", "workflow_procedure": "resolve-query-and-lock"}, "operation_handles": {"companion_form_id": "frm-83c98c9b072f", "event_id": "evt-adec52af", "primary_form_id": "frm-1b22f5e7023f", "query_id": "qry-59927a4c2639", "record_event_id": "rev-b83856af37ca"}, "priority": 3, "project_title": "Beacon Cardiac Follow-up", "request_ref": "packet-7750b6f46a3a", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Systolic pressure", "subject_label": "Beacon closeout case F3659BFF", "workflow_class": "resolve-query-and-lock"}, {"corrected_value": "completed", "experience_keys": {"project_binding": "Cedar Neurology Registry", "workflow_procedure": "reopen-resolve-and-relock"}, "operation_handles": {"companion_form_id": "frm-6177379ca8d9", "event_id": "evt-ce615c0f", "primary_form_id": "frm-b326c5fdd922", "query_id": "qry-593a17221b58", "record_event_id": "rev-0ed7a729f9fb"}, "priority": 4, "project_title": "Cedar Neurology Registry", "request_ref": "packet-c41ea9d53f37", "requested_state": "required value verified, query resolved, both forms complete, and the record event locked with a nonempty reason", "required_field_label": "Visit disposition", "subject_label": "Cedar closeout case 01990250", "workflow_class": "reopen-resolve-and-relock"}]}', 'business_budget': {'limits': [{'resource': 'read_units', 'allowance': 6}, {'resource': 'write_attempts', 'allowance': 17}, {'resource': 'maximum_tool_calls', 'allowance': 48}], 'charging': ['A successful bounded listing charges at least one read unit and otherwise one unit per matched row before pagination.', 'An exact active-packet get_record_profile projection charges two read units during discovery.', 'After a packet has closed, an optional exact profile read is served from the current episode cache and charges zero read units.', 'An exact record-scoped current-query lookup charges two read units for the query and assignment-authority join.', 'A failed read charges one read unit. Every attempted mutation charges one write attempt, including rejected mutations.', 'An exact project_id/record_id profile request for your own completed packet in this episode returns only the previously issued closeout receipt, at zero read/write/call quota. Other profile and authority discovery remains paid.'], 'exhaustion': 'An unfunded business call fails without changing business state.', 'persistence': 'Project-title bindings, project-level field and authority bindings, and workflow-class procedures persist until contradicted. Request, subject, record, query, form, and record-event handles are task-scoped. Business state persists across episodes; all allowances replenish.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'authoritative_receipt', 'source': "the final successful lock response's packet-completion receipt", 'proves': "the committed packet's completed forms, resolved query, verified field and locked event as reported"}}}]
DATA_PROMPT = {'system_prompt': "You are operating in an unfamiliar persistent environment. Use only the available tools to complete the task within its stated limits. Do not claim that an action succeeded unless the tool confirms it.\n\nUse retained evidence to avoid repeating discovery of stable facts and rules. Distinguish reusable bindings from changing task data, availability, and other live state. Recheck when the operation requires fresh evidence, the relevant state may have changed, or current observations contradict what you retained. Current tool results take precedence. Estimate remaining work from the operations still needed, taking already known information into account.\n\nRecords from previous tasks may be available through the history tools. Consult them only when they help resolve a concrete uncertainty. The history tools share a limit of 30 calls per episode, so use them selectively. Previous records may be incomplete or outdated; verify relevant information against the current environment when necessary.\n\nCompletion evidence: a successful synchronous tool receipt is authoritative for the committed facts it explicitly reports. No additional readback is required merely to reconfirm those facts. A successful substep does not prove the whole artifact is complete. Pending, rejected, or failed operations are not completed operations. Perform any substantive validation, authorization, release, or other business step required by the task. If an operation requires a separate confirmation, use its declared status interface. Only explicitly designated narrow confirmation of your own current-task operations and quota readings are free; discovery and substantive business work retain their declared costs. Follow the task's completion and partial-delivery semantics and report only the outcomes established by current evidence.", 'task_prefix': 'Below is the task for this episode:\n\n', 'after_task_prompt': 'After completing or stopping this task, consider what the observed evidence could help resolve in future tasks in this environment.\n\nUse memory for concrete environment facts and executable bindings: retain the observed names or conditions, the exact public identifiers needed to act, their relationships, and relevant evidence or scope. Use skills for conditional rules and procedures: retain the observed conditions, valid or invalid actions and parameters, expected outcomes, and relevant costs. A generic instruction to look everything up again is not a substitute for the specific evidence learned.\n\nKeep notes compact and evidence-based. Preserve uncertainty when a relation has not been verified. Distinguish a cost that recurs for every new request from a discovery cost that retained knowledge can avoid. Update or remove contradicted entries rather than keeping incompatible claims. You decide which observations are worth retaining; if nothing useful was learned, do not update either store.', 'carrier_contract': 'Use memory for concrete environment facts and executable bindings: retain the observed names or conditions, the exact public identifiers needed to act, their relationships, and relevant evidence or scope. Use skills for conditional rules and procedures: retain the observed conditions, valid or invalid actions and parameters, expected outcomes, and relevant costs. A generic instruction to look everything up again is not a substitute for the specific evidence learned.', 'completion_evidence_profile': 'authoritative-receipt-v1'}
DATA_SCHEDULE = {'schema': 'rescopebench-lifecycle-schedule/v1', 'task_count': 16, 'events': [{'event_id': 'E1', 'before_task': 9}]}
DATA_GROUP_BY_ATOM = {'S01': {'atom_id': 'S01', 'mode': 'entry', 'project_id': 'prj-88b364cd', 'project_title': 'Aster Pulmonary Recovery', 'record_id': 'rec-bb9e36a9', 'redcap_record_id': 'RC-7FBB', 'subject_label': 'Aster participant 104', 'data_access_group': 'aster-site', 'event_id': 'evt-bf1e30a3', 'event_label': 'Aster closeout', 'record_event_id': 'rev-6b3ec380', 'primary_instrument_id': 'ins-04c7d05b', 'primary_instrument_name': 'aster_source_review', 'primary_instrument_label': 'Aster Source Review', 'primary_field_id': 'fld-841d3de9', 'primary_field_name': 'screening_visit_date', 'primary_field_label': 'Screening visit date', 'primary_form_id': 'frm-e5e4b601', 'companion_instrument_id': 'ins-0c0e8d3b', 'companion_instrument_name': 'aster_closeout_checklist', 'companion_instrument_label': 'Aster Closeout Checklist', 'companion_field_id': 'fld-149ab53f', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-defcb88d', 'query_id': 'qry-494815da', 'editor_old': 'usr-7fad6e49', 'editor_new': 'usr-590ac21b', 'resolver': 'usr-6f79ec68', 'pi': None, 'corrected_value': '2026-03-14'}, 'S02': {'atom_id': 'S02', 'mode': 'coordinator', 'project_id': 'prj-c746d0b4', 'project_title': 'Beacon Cardiac Follow-up', 'record_id': 'rec-e86bc858', 'redcap_record_id': 'RC-E873', 'subject_label': 'Beacon participant 207', 'data_access_group': 'beacon-site', 'event_id': 'evt-adec52af', 'event_label': 'Beacon closeout', 'record_event_id': 'rev-68357de1', 'primary_instrument_id': 'ins-3040bf9c', 'primary_instrument_name': 'beacon_source_review', 'primary_instrument_label': 'Beacon Source Review', 'primary_field_id': 'fld-e11ca79f', 'primary_field_name': 'systolic_pressure', 'primary_field_label': 'Systolic pressure', 'primary_form_id': 'frm-fe3622ac', 'companion_instrument_id': 'ins-56a8420a', 'companion_instrument_name': 'beacon_closeout_checklist', 'companion_instrument_label': 'Beacon Closeout Checklist', 'companion_field_id': 'fld-23746c83', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-f341b631', 'query_id': 'qry-695df263', 'editor_old': 'usr-26a294f3', 'editor_new': None, 'resolver': 'usr-b0b06395', 'pi': None, 'corrected_value': '118'}, 'S03': {'atom_id': 'S03', 'mode': 'entry', 'project_id': 'prj-55ac15e9', 'project_title': 'Cedar Neurology Registry', 'record_id': 'rec-1aeadf4b', 'redcap_record_id': 'RC-72BC', 'subject_label': 'Cedar participant 316', 'data_access_group': 'cedar-site', 'event_id': 'evt-ce615c0f', 'event_label': 'Cedar closeout', 'record_event_id': 'rev-90ccbc4f', 'primary_instrument_id': 'ins-9993c040', 'primary_instrument_name': 'cedar_source_review', 'primary_instrument_label': 'Cedar Source Review', 'primary_field_id': 'fld-e84b2e2f', 'primary_field_name': 'visit_disposition', 'primary_field_label': 'Visit disposition', 'primary_form_id': 'frm-2430c502', 'companion_instrument_id': 'ins-6da06d1c', 'companion_instrument_name': 'cedar_closeout_checklist', 'companion_instrument_label': 'Cedar Closeout Checklist', 'companion_field_id': 'fld-cf49d8a1', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-889b78ef', 'query_id': 'qry-ea28a4b7', 'editor_old': 'usr-890ee2f3', 'editor_new': 'usr-3f99a994', 'resolver': 'usr-82d6dec3', 'pi': None, 'corrected_value': 'completed'}, 'S04': {'atom_id': 'S04', 'mode': 'manager', 'project_id': 'prj-f317b9e0', 'project_title': 'Delta Oncology Cohort', 'record_id': 'rec-cd3b4780', 'redcap_record_id': 'RC-01C6', 'subject_label': 'Delta participant 408', 'data_access_group': 'delta-site', 'event_id': 'evt-dfe47f4b', 'event_label': 'Delta closeout', 'record_event_id': 'rev-5ad62250', 'primary_instrument_id': 'ins-22fbb43b', 'primary_instrument_name': 'delta_source_review', 'primary_instrument_label': 'Delta Source Review', 'primary_field_id': 'fld-e121e044', 'primary_field_name': 'dose_confirmation', 'primary_field_label': 'Dose confirmation', 'primary_form_id': 'frm-12aa12f9', 'companion_instrument_id': 'ins-9b30bafe', 'companion_instrument_name': 'delta_closeout_checklist', 'companion_instrument_label': 'Delta Closeout Checklist', 'companion_field_id': 'fld-072603fa', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-f8f9b0e1', 'query_id': 'qry-9f411d48', 'editor_old': 'usr-6ef2513c', 'editor_new': None, 'resolver': 'usr-3ed4cd58', 'pi': 'usr-dad43b95', 'corrected_value': '42 mg'}, 'S05': {'atom_id': 'S05', 'mode': 'entry', 'project_id': 'prj-95db80bd', 'project_title': 'Ember Renal Outcomes', 'record_id': 'rec-e04c89c5', 'redcap_record_id': 'RC-D79B', 'subject_label': 'Ember participant 521', 'data_access_group': 'ember-site', 'event_id': 'evt-f861ff48', 'event_label': 'Ember closeout', 'record_event_id': 'rev-113c2511', 'primary_instrument_id': 'ins-f4d6cbfe', 'primary_instrument_name': 'ember_source_review', 'primary_instrument_label': 'Ember Source Review', 'primary_field_id': 'fld-52f8005b', 'primary_field_name': 'specimen_accession', 'primary_field_label': 'Specimen accession', 'primary_form_id': 'frm-990d0936', 'companion_instrument_id': 'ins-baf7b541', 'companion_instrument_name': 'ember_closeout_checklist', 'companion_instrument_label': 'Ember Closeout Checklist', 'companion_field_id': 'fld-e312ed03', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-1b6a34ec', 'query_id': 'qry-590c7fc2', 'editor_old': 'usr-d38ae54d', 'editor_new': 'usr-5a659d22', 'resolver': 'usr-285ff8b0', 'pi': None, 'corrected_value': 'ER-55219'}, 'S06': {'atom_id': 'S06', 'mode': 'coordinator', 'project_id': 'prj-b40c69f9', 'project_title': 'Fjord Vaccine Study', 'record_id': 'rec-5c02d14d', 'redcap_record_id': 'RC-C65C', 'subject_label': 'Fjord participant 639', 'data_access_group': 'fjord-site', 'event_id': 'evt-56ab26d9', 'event_label': 'Fjord closeout', 'record_event_id': 'rev-dd55d7ae', 'primary_instrument_id': 'ins-3aa3f545', 'primary_instrument_name': 'fjord_source_review', 'primary_instrument_label': 'Fjord Source Review', 'primary_field_id': 'fld-c006c48d', 'primary_field_name': 'vaccination_date', 'primary_field_label': 'Vaccination date', 'primary_form_id': 'frm-3990a65f', 'companion_instrument_id': 'ins-5cea6598', 'companion_instrument_name': 'fjord_closeout_checklist', 'companion_instrument_label': 'Fjord Closeout Checklist', 'companion_field_id': 'fld-d6798fe5', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-51b8e0d2', 'query_id': 'qry-f6382d2a', 'editor_old': 'usr-1b97f7cc', 'editor_new': None, 'resolver': 'usr-5a3aa907', 'pi': None, 'corrected_value': '2026-04-22'}, 'S07': {'atom_id': 'S07', 'mode': 'entry', 'project_id': 'prj-c42c6f16', 'project_title': 'Grove Diabetes Trial', 'record_id': 'rec-e4fecc43', 'redcap_record_id': 'RC-078F', 'subject_label': 'Grove participant 742', 'data_access_group': 'grove-site', 'event_id': 'evt-84e6f85d', 'event_label': 'Grove closeout', 'record_event_id': 'rev-e9e7c523', 'primary_instrument_id': 'ins-e67da5bb', 'primary_instrument_name': 'grove_source_review', 'primary_instrument_label': 'Grove Source Review', 'primary_field_id': 'fld-0edfc95a', 'primary_field_name': 'fasting_glucose', 'primary_field_label': 'Fasting glucose', 'primary_form_id': 'frm-5ef8c07e', 'companion_instrument_id': 'ins-a20415d7', 'companion_instrument_name': 'grove_closeout_checklist', 'companion_instrument_label': 'Grove Closeout Checklist', 'companion_field_id': 'fld-1d63e320', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-3eba35ef', 'query_id': 'qry-fa2fbb5f', 'editor_old': 'usr-190cad8b', 'editor_new': 'usr-28d6e32e', 'resolver': 'usr-f84324a4', 'pi': None, 'corrected_value': '94'}, 'S08': {'atom_id': 'S08', 'mode': 'manager', 'project_id': 'prj-f3284b5f', 'project_title': 'Harbor Sleep Study', 'record_id': 'rec-4ed92db3', 'redcap_record_id': 'RC-4B13', 'subject_label': 'Harbor participant 855', 'data_access_group': 'harbor-site', 'event_id': 'evt-2fe704cf', 'event_label': 'Harbor closeout', 'record_event_id': 'rev-4c96b22b', 'primary_instrument_id': 'ins-4d76a2a8', 'primary_instrument_name': 'harbor_source_review', 'primary_instrument_label': 'Harbor Source Review', 'primary_field_id': 'fld-565f3dec', 'primary_field_name': 'sleep_duration_hours', 'primary_field_label': 'Sleep duration hours', 'primary_form_id': 'frm-7e4ea483', 'companion_instrument_id': 'ins-c94318af', 'companion_instrument_name': 'harbor_closeout_checklist', 'companion_instrument_label': 'Harbor Closeout Checklist', 'companion_field_id': 'fld-e0f552ca', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-3d677352', 'query_id': 'qry-f68b5ab4', 'editor_old': 'usr-caf2ddea', 'editor_new': None, 'resolver': 'usr-dc1220e6', 'pi': 'usr-1407a7fb', 'corrected_value': '7.4'}}
DATA_ENTITY_ID_FIELDS = {'audit_log': 'audit_id', 'data_query': 'query_id', 'dictionary_version': 'dictionary_version_id', 'event': 'event_id', 'export_job': 'export_id', 'field_value': 'value_id', 'form_instance': 'form_instance_id', 'instrument': 'instrument_id', 'instrument_field': 'field_id', 'project': 'project_id', 'project_user': 'user_id', 'quality_rule_result': 'quality_result_id', 'record': 'record_id', 'record_event': 'record_event_id'}
DATA_TASK_IDS = ('T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16')
DATA_TOOLS_2 = [{'name': 'list_projects', 'description': 'Return bounded project rows matching supplied lifecycle and title filters.', 'input_schema': {'type': 'object', 'properties': {'status': {'type': 'string', 'enum': ['development', 'production', 'archived']}, 'availability': {'type': 'string', 'enum': ['active', 'locked']}, 'title_keyword': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False}}, {'name': 'list_project_users', 'description': 'Return bounded staff rows for one project using optional role, status, and permission filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'role': {'type': 'string', 'enum': ['principal_investigator', 'data_manager', 'clinical_coordinator', 'data_entry', 'monitor', 'statistician']}, 'status': {'type': 'string', 'enum': ['active', 'inactive']}, 'permission': {'type': 'string', 'enum': ['export_identifiers', 'manage_dictionary', 'lock_records']}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, {'name': 'list_instruments', 'description': 'Return bounded instrument rows for one project.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['draft', 'active', 'archived']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, {'name': 'inspect_instrument_dictionary', 'description': 'Return one instrument, its mapped events, and its current field definitions.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'include_inactive_fields': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'instrument_id']}}, {'name': 'search_records', 'description': 'Return bounded record rows for one project using subject and workflow filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'subject_keyword': {'type': 'string', 'minLength': 1}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'has_open_queries': {'type': 'boolean'}, 'has_locked_events': {'type': 'boolean'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, {'name': 'get_record_profile', 'description': 'Return one record with its event, form, value, and query rows.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'record_id']}}, {'name': 'list_data_queries', 'description': 'Return bounded query rows for one project using optional record, assignee, and status filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'assigned_to': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['open', 'answered', 'resolved']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, {'name': 'inspect_audit_trail', 'description': 'Return bounded audit rows for one project and optional record, event, or action filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'action': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, {'name': 'update_record_field', 'description': 'Update one field value using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'field_id': {'type': 'string', 'minLength': 1}, 'value': {'type': 'string', 'minLength': 1}, 'source': {'type': 'string', 'enum': ['manual', 'import', 'calculated']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_id', 'event_id', 'instrument_id', 'field_id', 'value']}}, {'name': 'update_data_query_answer', 'description': 'Write an answer on one data query using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'answer_text': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'answer_text']}}, {'name': 'resolve_data_query', 'description': 'Resolve one answered data query using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'resolution_note': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'resolution_note']}}, {'name': 'mark_form_complete', 'description': 'Set one form to a requested completion state using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'form_instance_id': {'type': 'string', 'minLength': 1}, 'completion_status': {'type': 'string', 'enum': ['incomplete', 'unverified', 'complete']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'form_instance_id', 'completion_status']}}, {'name': 'set_record_event_lock', 'description': 'Change one record-event lock using an attributable authorized locker.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_event_id': {'type': 'string', 'minLength': 1}, 'locked': {'type': 'boolean'}, 'lock_reason': {'type': 'string'}, 'allow_unlock_with_queries': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_event_id', 'locked']}}]
DATA_SYNTHETIC_ASSIGNEES = {'S02': 'usr-73346062afe079', 'S06': 'usr-df41e12918931e'}
DATA_PRE_STRUCTURE_AUTHORITY = {'S01': 'usr-7fad6e49', 'S02': 'usr-26a294f3', 'S03': 'usr-890ee2f3', 'S04': 'usr-6ef2513c', 'S05': 'usr-d38ae54d', 'S06': 'usr-1b97f7cc', 'S07': 'usr-190cad8b', 'S08': 'usr-caf2ddea'}
DATA_TASK_IDS_2 = ('T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16')
DATA_PROFILE_SPECS = {'P01': {'target_value': '', 'query_status': 'open', 'primary_form': 'incomplete', 'companion_form': 'complete', 'locked': False, 'reference_writes': 5}, 'P02': {'target_value': 'correct', 'query_status': 'answered', 'primary_form': 'incomplete', 'companion_form': 'complete', 'locked': False, 'reference_writes': 3}, 'P03': {'target_value': 'correct', 'query_status': 'resolved', 'primary_form': 'incomplete', 'companion_form': 'incomplete', 'locked': False, 'reference_writes': 3}, 'P04': {'target_value': 'correct', 'query_status': 'open', 'primary_form': 'locked', 'companion_form': 'locked', 'locked': True, 'reference_writes': 4}, 'P05': {'target_value': 'wrong', 'query_status': 'open', 'primary_form': 'unverified', 'companion_form': 'complete', 'locked': False, 'reference_writes': 5}, 'P06': {'target_value': '', 'query_status': 'answered', 'primary_form': 'incomplete', 'companion_form': 'complete', 'locked': False, 'reference_writes': 4}, 'P07': {'target_value': 'wrong', 'query_status': 'resolved', 'primary_form': 'complete', 'companion_form': 'complete', 'locked': False, 'reference_writes': 2}, 'P08': {'target_value': 'correct', 'query_status': 'open', 'primary_form': 'complete', 'companion_form': 'complete', 'locked': False, 'reference_writes': 3}}
DATA_SCHEDULE_2 = {'schema': 'rescopebench-lifecycle-schedule/v1', 'task_count': 16, 'events': [{'event_id': 'E1', 'before_task': 9}]}
DATA_CHANGED_STRUCTURE_ATOMS = ('S01', 'S02', 'S03', 'S06')
DATA_POST_STRUCTURE_AUTHORITY = {'S01': 'usr-590ac21b', 'S02': 'usr-73346062afe079', 'S03': 'usr-3f99a994', 'S04': 'usr-6ef2513c', 'S05': 'usr-d38ae54d', 'S06': 'usr-df41e12918931e', 'S07': 'usr-190cad8b', 'S08': 'usr-caf2ddea'}
DATA_PRE_STRUCTURE_AUTHORITY_2 = {'S01': 'usr-7fad6e49', 'S02': 'usr-26a294f3', 'S03': 'usr-890ee2f3', 'S04': 'usr-6ef2513c', 'S05': 'usr-d38ae54d', 'S06': 'usr-1b97f7cc', 'S07': 'usr-190cad8b', 'S08': 'usr-caf2ddea'}
DATA_STREAM_BLUEPRINT = {'T01': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S04', 'P01', 'R08'), ('S05', 'P04', 'R16')), 'T02': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S04', 'P01', 'R08'), ('S05', 'P04', 'R16')), 'T03': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S04', 'P01', 'R08')), 'T04': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S04', 'P01', 'R08'), ('S03', 'P04', 'R16')), 'T05': (('S01', 'P05', 'R04'), ('S03', 'P04', 'R16'), ('S05', 'P08', 'R12'), ('S02', 'P01', 'R08')), 'T06': (('S02', 'P08', 'R12'), ('S04', 'P01', 'R08'), ('S07', 'P05', 'R04'), ('S03', 'P04', 'R16')), 'T07': (('S03', 'P04', 'R16'), ('S05', 'P08', 'R12'), ('S06', 'P01', 'R08'), ('S01', 'P05', 'R04')), 'T08': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S06', 'P01', 'R08')), 'T09': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S06', 'P01', 'R08')), 'T10': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S06', 'P01', 'R08')), 'T11': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S06', 'P01', 'R08')), 'T12': (('S06', 'P01', 'R08'), ('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16')), 'T13': (('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S04', 'P01', 'R08')), 'T14': (('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'), ('S06', 'P01', 'R08'), ('S05', 'P05', 'R04')), 'T15': (('S03', 'P04', 'R16'), ('S06', 'P01', 'R08'), ('S01', 'P05', 'R04'), ('S07', 'P08', 'R12')), 'T16': (('S06', 'P01', 'R08'), ('S01', 'P05', 'R04'), ('S02', 'P08', 'R12'), ('S03', 'P04', 'R16'))}
DATA_WORKFLOW_CLASS = {'P05': 'replace-value-and-close', 'P01': 'fill-value-and-close', 'P08': 'resolve-query-and-lock', 'P04': 'reopen-resolve-and-relock'}
DATA_LIST_TOOLS = {'list_project_users', 'inspect_audit_trail', 'list_instruments', 'search_records', 'list_data_queries', 'list_projects'}
DATA_STRUCTURE_GROUPS = ({'atom_id': 'S01', 'mode': 'entry', 'project_id': 'prj-88b364cd', 'project_title': 'Aster Pulmonary Recovery', 'record_id': 'rec-bb9e36a9', 'redcap_record_id': 'RC-7FBB', 'subject_label': 'Aster participant 104', 'data_access_group': 'aster-site', 'event_id': 'evt-bf1e30a3', 'event_label': 'Aster closeout', 'record_event_id': 'rev-6b3ec380', 'primary_instrument_id': 'ins-04c7d05b', 'primary_instrument_name': 'aster_source_review', 'primary_instrument_label': 'Aster Source Review', 'primary_field_id': 'fld-841d3de9', 'primary_field_name': 'screening_visit_date', 'primary_field_label': 'Screening visit date', 'primary_form_id': 'frm-e5e4b601', 'companion_instrument_id': 'ins-0c0e8d3b', 'companion_instrument_name': 'aster_closeout_checklist', 'companion_instrument_label': 'Aster Closeout Checklist', 'companion_field_id': 'fld-149ab53f', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-defcb88d', 'query_id': 'qry-494815da', 'editor_old': 'usr-7fad6e49', 'editor_new': 'usr-590ac21b', 'resolver': 'usr-6f79ec68', 'pi': None, 'corrected_value': '2026-03-14'}, {'atom_id': 'S02', 'mode': 'coordinator', 'project_id': 'prj-c746d0b4', 'project_title': 'Beacon Cardiac Follow-up', 'record_id': 'rec-e86bc858', 'redcap_record_id': 'RC-E873', 'subject_label': 'Beacon participant 207', 'data_access_group': 'beacon-site', 'event_id': 'evt-adec52af', 'event_label': 'Beacon closeout', 'record_event_id': 'rev-68357de1', 'primary_instrument_id': 'ins-3040bf9c', 'primary_instrument_name': 'beacon_source_review', 'primary_instrument_label': 'Beacon Source Review', 'primary_field_id': 'fld-e11ca79f', 'primary_field_name': 'systolic_pressure', 'primary_field_label': 'Systolic pressure', 'primary_form_id': 'frm-fe3622ac', 'companion_instrument_id': 'ins-56a8420a', 'companion_instrument_name': 'beacon_closeout_checklist', 'companion_instrument_label': 'Beacon Closeout Checklist', 'companion_field_id': 'fld-23746c83', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-f341b631', 'query_id': 'qry-695df263', 'editor_old': 'usr-26a294f3', 'editor_new': None, 'resolver': 'usr-b0b06395', 'pi': None, 'corrected_value': '118'}, {'atom_id': 'S03', 'mode': 'entry', 'project_id': 'prj-55ac15e9', 'project_title': 'Cedar Neurology Registry', 'record_id': 'rec-1aeadf4b', 'redcap_record_id': 'RC-72BC', 'subject_label': 'Cedar participant 316', 'data_access_group': 'cedar-site', 'event_id': 'evt-ce615c0f', 'event_label': 'Cedar closeout', 'record_event_id': 'rev-90ccbc4f', 'primary_instrument_id': 'ins-9993c040', 'primary_instrument_name': 'cedar_source_review', 'primary_instrument_label': 'Cedar Source Review', 'primary_field_id': 'fld-e84b2e2f', 'primary_field_name': 'visit_disposition', 'primary_field_label': 'Visit disposition', 'primary_form_id': 'frm-2430c502', 'companion_instrument_id': 'ins-6da06d1c', 'companion_instrument_name': 'cedar_closeout_checklist', 'companion_instrument_label': 'Cedar Closeout Checklist', 'companion_field_id': 'fld-cf49d8a1', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-889b78ef', 'query_id': 'qry-ea28a4b7', 'editor_old': 'usr-890ee2f3', 'editor_new': 'usr-3f99a994', 'resolver': 'usr-82d6dec3', 'pi': None, 'corrected_value': 'completed'}, {'atom_id': 'S04', 'mode': 'manager', 'project_id': 'prj-f317b9e0', 'project_title': 'Delta Oncology Cohort', 'record_id': 'rec-cd3b4780', 'redcap_record_id': 'RC-01C6', 'subject_label': 'Delta participant 408', 'data_access_group': 'delta-site', 'event_id': 'evt-dfe47f4b', 'event_label': 'Delta closeout', 'record_event_id': 'rev-5ad62250', 'primary_instrument_id': 'ins-22fbb43b', 'primary_instrument_name': 'delta_source_review', 'primary_instrument_label': 'Delta Source Review', 'primary_field_id': 'fld-e121e044', 'primary_field_name': 'dose_confirmation', 'primary_field_label': 'Dose confirmation', 'primary_form_id': 'frm-12aa12f9', 'companion_instrument_id': 'ins-9b30bafe', 'companion_instrument_name': 'delta_closeout_checklist', 'companion_instrument_label': 'Delta Closeout Checklist', 'companion_field_id': 'fld-072603fa', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-f8f9b0e1', 'query_id': 'qry-9f411d48', 'editor_old': 'usr-6ef2513c', 'editor_new': None, 'resolver': 'usr-3ed4cd58', 'pi': 'usr-dad43b95', 'corrected_value': '42 mg'}, {'atom_id': 'S05', 'mode': 'entry', 'project_id': 'prj-95db80bd', 'project_title': 'Ember Renal Outcomes', 'record_id': 'rec-e04c89c5', 'redcap_record_id': 'RC-D79B', 'subject_label': 'Ember participant 521', 'data_access_group': 'ember-site', 'event_id': 'evt-f861ff48', 'event_label': 'Ember closeout', 'record_event_id': 'rev-113c2511', 'primary_instrument_id': 'ins-f4d6cbfe', 'primary_instrument_name': 'ember_source_review', 'primary_instrument_label': 'Ember Source Review', 'primary_field_id': 'fld-52f8005b', 'primary_field_name': 'specimen_accession', 'primary_field_label': 'Specimen accession', 'primary_form_id': 'frm-990d0936', 'companion_instrument_id': 'ins-baf7b541', 'companion_instrument_name': 'ember_closeout_checklist', 'companion_instrument_label': 'Ember Closeout Checklist', 'companion_field_id': 'fld-e312ed03', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-1b6a34ec', 'query_id': 'qry-590c7fc2', 'editor_old': 'usr-d38ae54d', 'editor_new': 'usr-5a659d22', 'resolver': 'usr-285ff8b0', 'pi': None, 'corrected_value': 'ER-55219'}, {'atom_id': 'S06', 'mode': 'coordinator', 'project_id': 'prj-b40c69f9', 'project_title': 'Fjord Vaccine Study', 'record_id': 'rec-5c02d14d', 'redcap_record_id': 'RC-C65C', 'subject_label': 'Fjord participant 639', 'data_access_group': 'fjord-site', 'event_id': 'evt-56ab26d9', 'event_label': 'Fjord closeout', 'record_event_id': 'rev-dd55d7ae', 'primary_instrument_id': 'ins-3aa3f545', 'primary_instrument_name': 'fjord_source_review', 'primary_instrument_label': 'Fjord Source Review', 'primary_field_id': 'fld-c006c48d', 'primary_field_name': 'vaccination_date', 'primary_field_label': 'Vaccination date', 'primary_form_id': 'frm-3990a65f', 'companion_instrument_id': 'ins-5cea6598', 'companion_instrument_name': 'fjord_closeout_checklist', 'companion_instrument_label': 'Fjord Closeout Checklist', 'companion_field_id': 'fld-d6798fe5', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-51b8e0d2', 'query_id': 'qry-f6382d2a', 'editor_old': 'usr-1b97f7cc', 'editor_new': None, 'resolver': 'usr-5a3aa907', 'pi': None, 'corrected_value': '2026-04-22'}, {'atom_id': 'S07', 'mode': 'entry', 'project_id': 'prj-c42c6f16', 'project_title': 'Grove Diabetes Trial', 'record_id': 'rec-e4fecc43', 'redcap_record_id': 'RC-078F', 'subject_label': 'Grove participant 742', 'data_access_group': 'grove-site', 'event_id': 'evt-84e6f85d', 'event_label': 'Grove closeout', 'record_event_id': 'rev-e9e7c523', 'primary_instrument_id': 'ins-e67da5bb', 'primary_instrument_name': 'grove_source_review', 'primary_instrument_label': 'Grove Source Review', 'primary_field_id': 'fld-0edfc95a', 'primary_field_name': 'fasting_glucose', 'primary_field_label': 'Fasting glucose', 'primary_form_id': 'frm-5ef8c07e', 'companion_instrument_id': 'ins-a20415d7', 'companion_instrument_name': 'grove_closeout_checklist', 'companion_instrument_label': 'Grove Closeout Checklist', 'companion_field_id': 'fld-1d63e320', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-3eba35ef', 'query_id': 'qry-fa2fbb5f', 'editor_old': 'usr-190cad8b', 'editor_new': 'usr-28d6e32e', 'resolver': 'usr-f84324a4', 'pi': None, 'corrected_value': '94'}, {'atom_id': 'S08', 'mode': 'manager', 'project_id': 'prj-f3284b5f', 'project_title': 'Harbor Sleep Study', 'record_id': 'rec-4ed92db3', 'redcap_record_id': 'RC-4B13', 'subject_label': 'Harbor participant 855', 'data_access_group': 'harbor-site', 'event_id': 'evt-2fe704cf', 'event_label': 'Harbor closeout', 'record_event_id': 'rev-4c96b22b', 'primary_instrument_id': 'ins-4d76a2a8', 'primary_instrument_name': 'harbor_source_review', 'primary_instrument_label': 'Harbor Source Review', 'primary_field_id': 'fld-565f3dec', 'primary_field_name': 'sleep_duration_hours', 'primary_field_label': 'Sleep duration hours', 'primary_form_id': 'frm-7e4ea483', 'companion_instrument_id': 'ins-c94318af', 'companion_instrument_name': 'harbor_closeout_checklist', 'companion_instrument_label': 'Harbor Closeout Checklist', 'companion_field_id': 'fld-e0f552ca', 'companion_field_name': 'closeout_packet_reviewed', 'companion_field_label': 'Closeout packet reviewed', 'companion_form_id': 'frm-3d677352', 'query_id': 'qry-f68b5ab4', 'editor_old': 'usr-caf2ddea', 'editor_new': None, 'resolver': 'usr-dc1220e6', 'pi': 'usr-1407a7fb', 'corrected_value': '7.4'})
DATA_TOOL_BY_NAME = {'list_projects': {'name': 'list_projects', 'description': 'Return bounded project rows matching supplied lifecycle and title filters.', 'input_schema': {'type': 'object', 'properties': {'status': {'type': 'string', 'enum': ['development', 'production', 'archived']}, 'availability': {'type': 'string', 'enum': ['active', 'locked']}, 'title_keyword': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False}}, 'list_project_users': {'name': 'list_project_users', 'description': 'Return bounded staff rows for one project using optional role, status, and permission filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'role': {'type': 'string', 'enum': ['principal_investigator', 'data_manager', 'clinical_coordinator', 'data_entry', 'monitor', 'statistician']}, 'status': {'type': 'string', 'enum': ['active', 'inactive']}, 'permission': {'type': 'string', 'enum': ['export_identifiers', 'manage_dictionary', 'lock_records']}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, 'list_instruments': {'name': 'list_instruments', 'description': 'Return bounded instrument rows for one project.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['draft', 'active', 'archived']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, 'inspect_instrument_dictionary': {'name': 'inspect_instrument_dictionary', 'description': 'Return one instrument, its mapped events, and its current field definitions.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'include_inactive_fields': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'instrument_id']}}, 'search_records': {'name': 'search_records', 'description': 'Return bounded record rows for one project using subject and workflow filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'subject_keyword': {'type': 'string', 'minLength': 1}, 'data_access_group': {'type': 'string', 'minLength': 1}, 'has_open_queries': {'type': 'boolean'}, 'has_locked_events': {'type': 'boolean'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id', 'subject_keyword']}}, 'get_record_profile': {'name': 'get_record_profile', 'description': 'Return one record with its event, form, value, and query rows.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'record_id']}}, 'list_data_queries': {'name': 'list_data_queries', 'description': 'Return bounded query rows for one project using optional record, assignee, and status filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'assigned_to': {'type': 'string', 'minLength': 1}, 'status': {'type': 'string', 'enum': ['open', 'answered', 'resolved']}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id', 'record_id']}}, 'inspect_audit_trail': {'name': 'inspect_audit_trail', 'description': 'Return bounded audit rows for one project and optional record, event, or action filters.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'action': {'type': 'string', 'minLength': 1}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 25, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}}, 'additionalProperties': False, 'required': ['project_id']}}, 'update_record_field': {'name': 'update_record_field', 'description': 'Update one field value using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_id': {'type': 'string', 'minLength': 1}, 'event_id': {'type': 'string', 'minLength': 1}, 'instrument_id': {'type': 'string', 'minLength': 1}, 'field_id': {'type': 'string', 'minLength': 1}, 'value': {'type': 'string', 'minLength': 1}, 'source': {'type': 'string', 'enum': ['manual', 'import', 'calculated']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_id', 'event_id', 'instrument_id', 'field_id', 'value']}}, 'update_data_query_answer': {'name': 'update_data_query_answer', 'description': 'Write an answer on one data query using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'answer_text': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'answer_text']}}, 'resolve_data_query': {'name': 'resolve_data_query', 'description': 'Resolve one answered data query using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'query_id': {'type': 'string', 'minLength': 1}, 'resolution_note': {'type': 'string', 'minLength': 1}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'query_id', 'resolution_note']}}, 'mark_form_complete': {'name': 'mark_form_complete', 'description': 'Set one form to a requested completion state using an attributable project staff member.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'form_instance_id': {'type': 'string', 'minLength': 1}, 'completion_status': {'type': 'string', 'enum': ['incomplete', 'unverified', 'complete']}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'form_instance_id', 'completion_status']}}, 'set_record_event_lock': {'name': 'set_record_event_lock', 'description': 'Change one record-event lock using an attributable authorized locker.', 'input_schema': {'type': 'object', 'properties': {'project_id': {'type': 'string', 'minLength': 1}, 'actor_user_id': {'type': 'string', 'minLength': 1}, 'record_event_id': {'type': 'string', 'minLength': 1}, 'locked': {'type': 'boolean'}, 'lock_reason': {'type': 'string'}, 'allow_unlock_with_queries': {'type': 'boolean', 'default': False}}, 'additionalProperties': False, 'required': ['project_id', 'actor_user_id', 'record_event_id', 'locked']}}}
DATA_WRITE_TOOLS = {'set_record_event_lock', 'mark_form_complete', 'resolve_data_query', 'update_data_query_answer', 'update_record_field'}
DATA_DRIFT_CHANGED_STRUCTURES = {'S01', 'S05', 'S03', 'S07'}
DATA_STREAM_TASK_BLUEPRINT = {'T01': (('S01', 'P01', 'R01'), ('S02', 'P02', 'R02'), ('S03', 'P03', 'R03'), ('S04', 'P04', 'R04')), 'T02': (('S05', 'P05', 'R05'), ('S06', 'P06', 'R06'), ('S07', 'P07', 'R07'), ('S08', 'P08', 'R08')), 'T03': (('S01', 'P05', 'R09'), ('S03', 'P06', 'R10'), ('S05', 'P07', 'R11'), ('S07', 'P08', 'R12')), 'T04': (('S02', 'P01', 'R13'), ('S04', 'P02', 'R14'), ('S06', 'P03', 'R15'), ('S08', 'P04', 'R16')), 'T05': (('S01', 'P02', 'R05'), ('S04', 'P06', 'R09'), ('S05', 'P03', 'R13'), ('S08', 'P07', 'R01')), 'T06': (('S02', 'P05', 'R02'), ('S03', 'P01', 'R06'), ('S06', 'P08', 'R10'), ('S07', 'P04', 'R14')), 'T07': (('S01', 'P07', 'R03'), ('S02', 'P06', 'R07'), ('S05', 'P01', 'R11'), ('S06', 'P04', 'R15')), 'T08': (('S01', 'P05', 'R04'), ('S02', 'P06', 'R08'), ('S03', 'P07', 'R12'), ('S04', 'P08', 'R16')), 'T09': (('S01', 'P05', 'R04'), ('S02', 'P06', 'R08'), ('S03', 'P07', 'R12'), ('S04', 'P08', 'R16')), 'T10': (('S05', 'P01', 'R01'), ('S06', 'P02', 'R05'), ('S07', 'P03', 'R09'), ('S08', 'P04', 'R13')), 'T11': (('S01', 'P06', 'R02'), ('S02', 'P07', 'R06'), ('S05', 'P08', 'R10'), ('S06', 'P05', 'R14')), 'T12': (('S03', 'P02', 'R03'), ('S04', 'P03', 'R07'), ('S07', 'P04', 'R11'), ('S08', 'P01', 'R15')), 'T13': (('S01', 'P08', 'R04'), ('S02', 'P01', 'R08'), ('S07', 'P05', 'R12'), ('S08', 'P06', 'R16')), 'T14': (('S03', 'P03', 'R05'), ('S04', 'P04', 'R09'), ('S05', 'P06', 'R13'), ('S06', 'P07', 'R01')), 'T15': (('S01', 'P04', 'R02'), ('S04', 'P05', 'R06'), ('S05', 'P07', 'R10'), ('S08', 'P08', 'R14')), 'T16': (('S02', 'P03', 'R03'), ('S03', 'P05', 'R07'), ('S06', 'P01', 'R11'), ('S07', 'P02', 'R15'))}
DATA_DEV_BLUEPRINT = (('S01', 'P01', 'R01'), ('S02', 'P02', 'R02'), ('S03', 'P03', 'R03'), ('S04', 'P04', 'R04'))