<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="0" failures="2" skipped="0" tests="117" time="20.203" timestamp="2026-10-27T19:58:00.363528+00:00" hostname="01b0c2dfb6bb"><testcase classname="tests.test_mask_annotation_update" name="test_new_warm_update_is_fixed_budget_old_EMA_not_generic_restart" time="0.000" /><testcase classname="tests.test_mask_annotation_update" name="test_all_new_human_images_base_exposure_then_balanced_component_extra" time="0.050" /><testcase classname="tests.test_mask_annotation_update" name="test_actual_human_positive_pixels_survive_neighbor_ignore" time="0.000" /><testcase classname="tests.test_mask_annotation_update" name="test_context_has_no_target_polygon_or_pose_or_class_features" time="0.000" /><testcase classname="tests.test_mask_annotation_update" name="test_new_input_loader_uses_pixels_masks_and_validity_only" time="0.041" /><testcase classname="tests.test_mask_annotation_update" name="test_raw_event_hash_does_not_canonicalize_original_UTF8" time="0.001" /><testcase classname="tests.test_mask_annotation_update" name="test_detector_targets_derive_from_mask_only_not_class_ID" time="0.002" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_new_machine_validator_binds_updated_checkpoint_and_class_K" time="0.001"><failure message="KeyError: 'final_class_id'">def test_new_machine_validator_binds_updated_checkpoint_and_class_K():
        p=updated(proposal());s=dict(classes={'4':dict(standard_count=8)})
&gt;       validate(p,s,'standard',p['model_provenance']['checkpoint_sha256'])

tests/test_mask_annotation_update_requests.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

p = {'accepted_candidate': False, 'automatic_training_eligible': False, 'class_id': 4, 'class_keypoint_constraint': {'clas... 4, 'method': 'unique_class_saved_polygon_vertex_count_mode', 'standard_count': 8, 'standard_sha256': 'standard'}, ...}
standard = {'classes': {'4': {'standard_count': 8}}}, standard_sha = 'standard'
checkpoint_sha = '92ce35476d4b0887a0e791dc20972c9640aab558ec876df84296b713ebe8ed4c'

    def validate(p,standard,standard_sha,checkpoint_sha):
        k=standard['classes'][str(p['class_id'])]['standard_count'];constraint=p.get('class_keypoint_constraint',{})
        proof=p.get('model_provenance',{})
        if not (p.get('schema')==SCHEMA and p.get('origin')=='updated_M2_prediction' and
                p.get('status')=='model_preannotated_pending_human_review' and all(p.get(f) is False for f in FLAGS)
                and re.fullmatch('[0-9a-f]{24}',p['target_key']) and p['source']['target_key']==p['target_key']
&gt;               and p['class_id']==p['source']['final_class_id'] and len(p['polygon'])==p['vertex_count']==k
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                and constraint.get('class_id')==p['class_id'] and constraint.get('standard_count')==k
                and constraint.get('standard_sha256')==standard_sha and constraint.get('method')=='unique_class_saved_polygon_vertex_count_mode'
                and proof.get('model_family')=='RF-DETR-Seg Small' and proof.get('checkpoint_sha256')==checkpoint_sha
                and proof.get('human_saved') is False and proof.get('quality_gate_passed') is False
E               KeyError: 'final_class_id'

pallet/mask_annotation_update_review.py:31: KeyError</failure></testcase><testcase classname="tests.test_mask_annotation_update_requests" name="test_no_machine_auto_promotion[human_edited]" time="0.000" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_no_machine_auto_promotion[ground_truth_eligible]" time="0.000" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_no_machine_auto_promotion[automatic_training_eligible]" time="0.000" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_no_machine_auto_promotion[counts_as_completed_annotation]" time="0.000" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_new_namespace_keeps_original_human_add_delete_and_does_not_touch_old_drafts" time="0.000" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_new_namespace_manual_added_points_saved_and_exported_without_machine_change" time="0.221"><failure message="ValueError: Model-native source must not masquerade as assistant drawing/human save/GT">tmp_path = PosixPath('/tmp/pytest-of-root/pytest-600/test_new_namespace_manual_adde0')

    def test_new_namespace_manual_added_points_saved_and_exported_without_machine_change(tmp_path):
        import json
        e,p=editor(tmp_path);updated(p);before=deepcopy(p)
        e.gallery.publication_version=NAMESPACE;e.gallery.allow_class_keypoint_count_changes=True
        data=payload(p);data['polygon']=[p['polygon'][0],[35,10]]+p['polygon'][1:]
&gt;       first=e.save(p['target_key'],data)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_mask_annotation_update_requests.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pallet/mask_model_review.py:86: in save
    p=self.proposal(key);self.validate(p)
                         ^^^^^^^^^^^^^^^^
pallet/mask_model_review.py:47: in validate
    return validator(p)
           ^^^^^^^^^^^^
pallet/mask_model_worklist.py:185: in validate_proposal
    require(p['schema']==SCHEMA and p['origin']=='model_prediction' and p['status']=='model_preannotated_pending_human_review'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

value = False
message = 'Model-native source must not masquerade as assistant drawing/human save/GT'

    def require(value, message):
        if not value:
&gt;           raise ValueError(message)
E           ValueError: Model-native source must not masquerade as assistant drawing/human save/GT

pallet/mask_model_training_data.py:41: ValueError</failure></testcase><testcase classname="tests.test_mask_annotation_update_requests" name="test_update_audit_base_count_comes_from_manifest_not_old1559" time="0.310" /><testcase classname="tests.test_mask_annotation_update_requests" name="test_serve_uses_a_separate_port_store_and_accepts_only_added_point_browser_evidence" time="0.007" /><testcase classname="tests.test_mask_annotation_full" name="test_every_image_and_component_is_guaranteed_each_epoch" time="0.009" /><testcase classname="tests.test_mask_annotation_full" name="test_balanced_extra_component_round_does_not_follow_large_group_size" time="0.001" /><testcase classname="tests.test_mask_annotation_full" name="test_sampling_is_reproducible_but_changes_by_epoch" time="0.003" /><testcase classname="tests.test_mask_annotation_full" name="test_roi_depends_only_on_original_box_and_image_not_label" time="0.000" /><testcase classname="tests.test_mask_annotation_full" name="test_known_neighbor_is_ignored_but_actual_manual_positives_are_not_erased" time="0.001" /><testcase classname="tests.test_mask_annotation_full" name="test_valid_mask_blocks_invalid_pixels_and_keeps_mask_gradient" time="0.008" /><testcase classname="tests.test_mask_annotation_full" name="test_rfdetr_single_category_targets_are_normalized_no_original_class_feature" time="0.001" /><testcase classname="tests.test_mask_annotation_full" name="test_empty_rf_mask_is_not_fabricated_as_a_target" time="0.001" /><testcase classname="tests.test_mask_annotation_full" name="test_no_old_validation_selection_or_holdouts_in_new_configs" time="0.000" /><testcase classname="tests.test_mask_annotation_full" name="test_raw_logits_native_mapping_is_not_double_threshold" time="0.000" /><testcase classname="tests.test_mask_annotation_full" name="test_photometric_augmentation_preserves_padding_and_shape" time="0.001" /><testcase classname="tests.test_mask_class_keypoints" name="test_each_class_gets_unique_mode_not_average_or_max" time="0.000" /><testcase classname="tests.test_mask_class_keypoints" name="test_tied_modes_are_not_silently_resolved" time="0.001" /><testcase classname="tests.test_mask_class_keypoints" name="test_events_cannot_duplicate_one_human_target_in_mode_statistics" time="0.001" /><testcase classname="tests.test_mask_class_keypoints" name="test_true_rectangle_stays_four_not_padded_to_eight" time="0.019" /><testcase classname="tests.test_mask_class_keypoints" name="test_opening_is_not_erased_to_satisfy_four_point_class" time="0.001" /><testcase classname="tests.test_mask_class_keypoints" name="test_eight_actual_corners_and_indent_are_preserved" time="0.019" /><testcase classname="tests.test_mask_class_keypoints" name="test_clockwise_start_rule_does_not_depend_on_input_rotation_or_winding" time="0.000" /><testcase classname="tests.test_mask_class_keypoints" name="test_nearly_collinear_points_cannot_fake_keypoints" time="0.002" /><testcase classname="tests.test_mask_class_keypoints" name="test_closed_holes_are_not_filled_in_keypoint_conversion" time="0.000" /><testcase classname="tests.test_mask_class_keypoints" name="test_conversion_diagnostics_use_exact_full_native_export_frame" time="0.011" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_class_standard_validated_in_addition_to_model_provenance" time="0.002" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_wrong_K_human_save_rejected_without_event" time="0.148" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_fixed_K_human_save_binds_new_namespace_and_standard" time="0.204" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_browser_retains_drafts_in_a_distinct_namespace_and_blocks_insertion" time="0.001" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_active_human_editor_restores_original_edge_insertion_and_local_draft_key" time="0.001" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_human_can_save_inserted_point_without_changing_initial_class_K" time="0.303" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_caller_cannot_forge_count_override_provenance" time="0.257" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_human_count_change_does_not_weaken_machine_proposal_validation" time="0.213" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_added_count_export_uses_actual_saved_K_points_not_standard_count" time="0.295" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_variable_point_history_restore_appends_and_records_previous_count" time="0.452" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_added_point_stale_revision_cannot_overwrite_saved_history" time="0.201" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_variable_K_still_requires_valid_finite_native_polygon[polygon0]" time="0.254" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_variable_K_still_requires_valid_finite_native_polygon[polygon1]" time="0.233" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_variable_K_still_requires_valid_finite_native_polygon[polygon2]" time="0.233" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_variable_K_still_requires_valid_finite_native_polygon[polygon3]" time="0.216" /><testcase classname="tests.test_mask_class_keypoint_review" name="test_audit_preserves_legacy_fixed_count_events_and_accepts_traced_new_addition" time="0.508" /><testcase classname="tests.test_mask_model_worklist" name="test_pixel_cell_polygon_reconstruction_preserves_concave_notch" time="0.027" /><testcase classname="tests.test_mask_model_worklist" name="test_valid_four_corners_are_not_forced_to_eight" time="0.003" /><testcase classname="tests.test_mask_model_worklist" name="test_closed_holes_never_silently_filled" time="0.004" /><testcase classname="tests.test_mask_model_worklist" name="test_disjoint_components_never_discarded_to_fake_good_polygon" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_empty_prediction_is_not_original_box" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[human_edited]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[human_mask_confirmed]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[human_pose_confirmed]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[ground_truth_eligible]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[automatic_training_eligible]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[robot_command_eligible]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[production_saved]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[counts_as_completed_annotation]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[accepted_candidate]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_machine_candidate_never_promoted_by_a_flag[propagation_seed_eligible]" time="0.000" /><testcase classname="tests.test_mask_model_worklist" name="test_real_model_schema_cannot_masquerade_as_assistant_handdrawn" time="0.002" /><testcase classname="tests.test_mask_model_worklist" name="test_model_save_has_exact_model_task_target_provenance_and_no_GT" time="0.291" /><testcase classname="tests.test_mask_model_worklist" name="test_conflict_does_not_append_or_overwrite_a_real_save" time="0.332" /><testcase classname="tests.test_mask_model_worklist" name="test_changed_external_target_rejects_stale_candidate" time="0.269" /><testcase classname="tests.test_mask_model_worklist" name="test_cannot_route_model_writes_into_old_production_gallery" time="0.001" /><testcase classname="tests.test_mask_model_worklist" name="test_history_restore_appends_instead_of_deleting" time="0.494" /><testcase classname="tests.test_mask_model_worklist" name="test_model_target_and_native_image_target_cannot_differ" time="0.001" /><testcase classname="tests.test_mask_model_worklist" name="test_manual_save_does_not_pretend_unchanged_prediction_was_redrawn" time="0.266" /><testcase classname="tests.test_mask_model_worklist" name="test_actual_geometry_edit_is_distinguished_from_accepting_model" time="0.284" /><testcase classname="tests.test_mask_model_worklist" name="test_changed_native_source_cannot_overwrite_previous_target_history" time="0.284" /><testcase classname="tests.test_mask_gallery_review" name="test_independent_store_append_history_and_sibling_identity" time="0.487" /><testcase classname="tests.test_mask_gallery_review" name="test_edits_are_drafts_not_confirmed_truth_or_pose" time="0.686" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[self_cross]" time="0.326" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[out_of_bounds]" time="0.234" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[duplicate]" time="0.336" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[too_few]" time="0.422" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[nan]" time="0.785" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[revision_bool]" time="0.200" /><testcase classname="tests.test_mask_gallery_review" name="test_invalid_edits_are_rejected_without_partial_write[restored_unknown]" time="0.181" /><testcase classname="tests.test_mask_gallery_review" name="test_conflicts_and_publication_binding_preserve_current_and_history" time="0.326" /><testcase classname="tests.test_mask_gallery_review" name="test_exports_match_saved_native_mask_and_revision" time="0.312" /><testcase classname="tests.test_mask_gallery_review" name="test_read_access_is_public_but_edit_api_requires_login" time="0.758" /><testcase classname="tests.test_mask_gallery_review" name="test_cookie_csrf_conflict_and_logout_http" time="0.830" /><testcase classname="tests.test_mask_gallery_review" name="test_editor_cannot_use_gallery_or_pose_directory_as_review_store" time="0.011" /><testcase classname="tests.test_mask_gallery_review" name="test_gallery_template_edit_revokes_unsaved_descendant_without_losing_human_revision" time="0.404" /><testcase classname="tests.test_mask_gallery_review" name="test_template_dependency_is_checked_in_same_transaction_as_initial_save" time="0.343" /><testcase classname="tests.test_mask_gallery_review" name="test_cumulative_publication_keeps_saved_edits_and_rejects_old_client_binding" time="0.401" /><testcase classname="tests.test_mask_gallery_review" name="test_original_pose_manual_source_is_not_a_fabricated_gallery_save" time="0.492" /><testcase classname="tests.test_mask_gallery_review" name="test_actual_human_four_point_source_is_not_a_propagation_template" time="0.419" /><testcase classname="tests.test_mask_gallery_review" name="test_inspected_original_rectangle_is_review_only_without_fake_gallery_revision" time="0.368" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[fake_edit]" time="0.422" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[fake_template]" time="0.266" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[seed]" time="0.260" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[changed_polygon]" time="0.284" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[confirmation]" time="0.359" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_rectangle_fails_closed_on_false_claims[foreign_source]" time="0.339" /><testcase classname="tests.test_mask_gallery_review" name="test_review_only_original_source_new_revision_revokes_old_snapshot" time="0.295" /><testcase classname="tests.test_mask_gallery" name="test_report_and_assets_only" time="0.529" /><testcase classname="tests.test_mask_gallery" name="test_methods_and_hash_checks" time="0.523" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_health_does_not_misreport588_available" time="0.003" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_original_url_shows_safe_notice_not_dense_drafts" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/api/review/targets/aaaaaaaaaaaaaaaaaaaaaaaa-GET]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/api/review/annotations/aaaaaaaaaaaaaaaaaaaaaaaa-POST]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/labelme/a.json-GET]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/masks/a.png-GET]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/cases/a.png-GET]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_old_draft_cannot_be_loaded_exported_or_saved_during_hold[/%63ases/a.png-GET]" time="0.002" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_corrupt_control_fails_closed" time="0.001" /><testcase classname="tests.test_mask_model_keypoint_hold" name="test_unheld_health_preserves_original_contract" time="0.001" /></testsuite></testsuites>