# Mutants of EDR plan 5, after code review edr-api-code-5 (2026-11-26), envlib 0.1.9 from ../envlib (MUTATE_ENVLIB_VERSION=0.1.9), PYTHONDONTWRITEBYTECODE=1

## Baseline: each selection on the unmutated API code (25 of 25 PASS)
PASS test_an_older_version_returned_by_a_time_filter_is_not_latest | 1 passed, 88 deselected, 2 warnings in 2.53s
PASS test_bad_catalogue_parameters_answer_400 or test_a_negative_width_bbox | 18 passed, 71 deselected, 2 warnings in 5.31s
PASS test_catalogue_equals | 25 passed, 64 deselected, 2 warnings in 2.70s
PASS paging | 1 passed, 88 deselected, 2 warnings in 2.52s
PASS test_paging | 1 passed, 88 deselected, 2 warnings in 2.53s
PASS clamped | 1 passed, 88 deselected, 2 warnings in 2.49s
PASS unserved | 1 passed, 88 deselected, 2 warnings in 2.31s
PASS distinct | 18 passed, 71 deselected, 2 warnings in 2.44s
PASS test_version_history | 3 passed, 86 deselected, 2 warnings in 2.47s
PASS test_grid_entries | 1 passed, 88 deselected, 2 warnings in 3.54s
PASS test_resolve_follows | 1 passed, 88 deselected, 2 warnings in 2.39s
PASS cors | 3 passed, 86 deselected, 2 warnings in 2.42s
PASS outage | 1 passed, 88 deselected, 2 warnings in 2.31s
PASS cors or api | 89 passed, 2 warnings in 6.39s
PASS preflight | 1 passed, 88 deselected, 2 warnings in 2.30s
PASS lifespan | 1 passed, 88 deselected, 2 warnings in 2.30s
PASS test_bad_catalogue_parameters | 17 passed, 72 deselected, 2 warnings in 2.31s
PASS pipe | 1 passed, 88 deselected, 2 warnings in 2.34s
PASS whatever_its_stamp | 1 passed, 88 deselected, 2 warnings in 2.32s
PASS sorted | 1 passed, 88 deselected, 2 warnings in 2.31s
PASS self_link | 1 passed, 88 deselected, 2 warnings in 2.39s
PASS plus | 1 passed, 88 deselected, 2 warnings in 2.33s
PASS before_reading | 1 passed, 88 deselected, 2 warnings in 2.39s
PASS warnings_to_the_log | 1 passed, 88 deselected, 2 warnings in 0.16s
PASS config_defaults | 1 passed, 18 deselected, 1 warning in 0.02s

## API side (mutants_catalogue.json)
latest over the matches, not every entry     KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_an_older_version_returned_by_a_time_filter_is_not_latest_and_links_to_the_latest)
negative-width check dropped                 KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_a_negative_width_bbox_answers_400_on_cube_too)
an instant passed as a start only            KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'datetime': '2019-01-02T00:00:00Z'}])
the comma split dropped                      KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'variable': 'streamflow,gage_height'}])
empty means null dropped                     KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'product_code': ''}])
within-units ignored                         KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'coords': 'POINT(-176.3 -43.9)', 'within': ')
the cursor compared with >=                  KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_paging_covers_the_set_exactly_once_and_keeps_the_filters)
next dropping the filters                    KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_paging_covers_the_set_exactly_once_and_keeps_the_filters)
numberMatched counts the page                KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_paging_covers_the_set_exactly_once_and_keeps_the_filters)
limit not clamped                            KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_limit_defaults_to_the_cap_and_a_larger_one_is_clamped)
all-versions ignored                         KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'variable': 'precipitation', 'all-versions':)
alternate on an unserved type                KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_a_latest_entry_of_an_unserved_type_has_no_alternate_link)
distinct counts ignored                      KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_distinct_equals_catalogue_distinct_in_order[aggregation_statistic])
an entry's version-history from its own id   KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_version_history_lists_exactly_the_datasets_versions[qa])
a station collection's version-history from the wrong id KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_version_history_lists_exactly_the_datasets_versions[qa])
a grid collection's version-history from the wrong id KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_grid_entries_link_to_their_collections)
resolve back to its own rule                 KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_resolve_follows_envlibs_rule_whatever_it_is)
the expose header dropped                    KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_every_kind_of_answer_carries_cors_headers[None])
a MongoDB error not caught on /catalogue     KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_a_mongodb_outage_answers_503)
CORS headers not added                       KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_every_kind_of_answer_carries_cors_headers[None])
CORS only with an Origin                     KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_every_kind_of_answer_carries_cors_headers[None])
the 500 without CORS                         KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_every_kind_of_answer_carries_cors_headers[None])
the CORS middleware removed                  KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_every_kind_of_answer_carries_cors_headers[None])
preflight left to routing                    KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_a_preflight_answers_204_and_allows_get)
lifespan not passed through                  KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_the_app_runs_its_lifespan_through_the_cors_middleware)
the interval start dropped                   KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_catalogue_equals_catalogue_query_and_the_hand_listed_set[{'datetime': '2019-06-01T00:00:00Z/..', 'all-)
limit grammar loosened                       KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_bad_catalogue_parameters_answer_400[{'limit': 'ten'}])
the cursor parts not encoded                 KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_a_pipe_in_a_dataset_id_does_not_loop_the_cursor)
the sort by created_at text                  KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_the_served_version_comes_first_whatever_its_stamp_looks_like)
the sort ascending                           KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_entries_are_sorted_by_dataset_then_newest_then_greater_id)
the self link dropped                        KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_the_self_link_repeats_the_request)
next hrefs not percent-encoded               KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_next_links_encode_a_plus_and_keep_the_filter)
distinct's 404 after the read                KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_distinct_answers_404_before_reading_mongodb)
captureWarnings removed                      KILLED  (FAILED envlib_api/tests/test_catalogue.py::test_the_server_routes_warnings_to_the_log)
catalogue_limit not validated                KILLED  (FAILED envlib_api/tests/test_ops.py::test_config_defaults_and_refusals - Fail...)

'the cursor compared with >=' now fails on an assertion (_pages: 'the next links do not end', 2.4 s), not on pytest-timeout (code review edr-api-code-5).

## envlib side (mutants_envlib.json, mutate_envlib.py); every selection passed unmutated
the tie-break reverted to the first one seen KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_created_at_tie_goes_to_the_greater_dataset_version_id_in_either_order)
the lesser id wins a tie                     KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_created_at_tie_goes_to_the_greater_dataset_version_id_in_either_order)
all_versions ignored                         KILLED  (FAILED envlib/tests/test_catalogue.py::test_all_versions_returns_every_matching_version)
the created_at guard removed                 KILLED  (FAILED envlib/tests/test_catalogue.py::test_an_unparsable_created_at_is_the_oldest_with_a_warning)
the stored-time guard removed                KILLED  (FAILED envlib/tests/test_catalogue.py::test_an_unparsable_stored_time_matches_no_time_filter_with_a_warning)
the finite-bbox check dropped                KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_malformed_stored_bbox_matches_no_spatial_filter_with_a_warning[stored2])
entries without a dataset_id put first       KILLED  (FAILED envlib/tests/test_catalogue.py::test_query_order_is_datasets_by_first_appearance_then_entries_without_a_dataset_id)
the station arc replaced by min/max          KILLED  (FAILED envlib/tests/test_catalogue.py::test_station_bbox_with_the_chathams_crosses_180)
the arc without the gap across 180           KILLED  (FAILED envlib/tests/test_catalogue.py::test_station_bbox_not_straddling_180_is_plain_min_max)
an equal gap across 180 not preferred        KILLED  (FAILED envlib/tests/test_catalogue.py::test_station_bbox_takes_the_largest_gap_wherever_it_lies)
the 360-degree geometry shifts dropped       KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_polygon_in_0_to_360_longitudes_finds_what_its_twin_finds)
the fraction padding dropped                 KILLED  (FAILED envlib/tests/test_catalogue.py::test_pad_fraction_gives_python_3_10_six_digits)
mixed-type distinct raises                   KILLED  (FAILED envlib/tests/test_catalogue.py::test_distinct_of_mixed_types_sorts_by_text_instead_of_failing)
the query bbox not normalised                KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_0_360_bbox_finds_what_its_twin_finds)
the query bbox edges not wrapped             KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_query_bbox_is_normalised_as_a_geometry_is[query0-expected0])
a full-width query bbox not special-cased    KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_query_bbox_is_normalised_as_a_geometry_is[query3-expected3])
a negative-width query bbox allowed          KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_query_bbox_envlib_cannot_read_raises[[190, -10, -190, 10]])
the non-finite geometry guard dropped        KILLED  (FAILED envlib/tests/test_catalogue.py::test_a_non_finite_geometry_raises_value_error)
the arc's plain branch on raw values         KILLED  (FAILED envlib/tests/test_catalogue.py::test_the_arc_after_the_wrap_is_shortest_for_edge_inputs[lons0-expected0-20.0])
the stations not reprojected                 KILLED  (FAILED envlib/tests/test_catalogue.py::test_the_station_arc_does_not_depend_on_the_crs[2193])
the stations' box transformed again          KILLED  (FAILED envlib/tests/test_catalogue.py::test_the_station_arc_does_not_depend_on_the_crs[2193])
version_key without the id                   KILLED  (FAILED envlib/tests/test_catalogue.py::test_version_key_orders_a_datasets_versions_as_latest_per_dataset_does)

## Plan 3 and plan 4 sets re-run on this code
mutants_api.json: 58 of 58 KILLED; mutants_grid.json: 51 of 51 KILLED
