Repository navigation
Move over-budget tests to daily journeys - #5081
Conversation
|
@leaf-agent The base
|
|
Removed the 30 promotions in d0b9c9b; the 94 demotions remain. The title and description now cover that scope. All restored function ASTs and decorators match the base, all-tier collection finds 6,486 cases, and fixture planning plus Ruff pass. The pushed head goes through the normal review and landing workflows. |
Import urllib.request explicitly in the server revival journey. Align All pages keyboard coverage with #5039: opening the list already focuses its first row. Keep navigation, clamping, link activation and Escape coverage without changing product behavior.
|
Fixed both CI failures in f142213: the moved server-revival test explicitly imports Both repaired tests pass locally, as do the full Python type check with warnings treated as errors, Ruff and formatting. The description now includes these test repairs. The push is recorded for the configured review and landing workflows to verify the new head. |
The moved journey saw its error box before Playwright delivered the browser diagnostic, leaving consume_browser_errors an empty list. Use the existing report-completion helper for both deliberate invalid replacements. Preserve error visibility, old-evidence retention, recovery and focus coverage without changing product behavior.
|
Fixed the visual-review journey’s diagnostic-delivery race: it now waits for each expected browser report before consuming it. The visible error and recovery assertions remain intact; no product behavior changes. Pushed as |
…5114) A watchfiles watcher covers any number of directories, but each `FileChanges` started its own, one per recursion mode, so a process subscribing per page held two inotify instances per page. The per-user instance limit (`fs.inotify.max_user_instances`, 128 by default) is the one that ran out in #4812, and to save instances the Claude Code pages follower polled for held fork threads every 0.25 s. `file_changes` now keeps one watcher per recursion mode per process and hands each batch to every subscription that accepts a path in it. watchfiles fixes a watcher's directories when it starts, so a subscription needing a directory the watcher lacks replaces it with one covering every open subscription. The others then wake once, since the retired watcher drops any batch it had not reported, and a collecting reader's `batch()` returns `None`, which the preview takes as a cue to read every input again. A directory wanted in one mode is served only by that mode's watcher. Page subscriptions are now non-recursive: `page_roots` lists every directory under `page/` and `data/`, and the page reading stamps those directories, so a new one moves the reading and its owner subscribes again. On the 76 pages served on the author's Mac those trees hold a median of 1 directory and at most 3, so a process watching any number of pages holds one instance. The forks lane's follower waits on its pages' subscriptions and on the lane's name, bounded by the presence interval and the earliest hold, instead of polling. Over 40 messages per commit on macOS, a held thread reached it in a median 90 ms (p90 120 ms, slowest 127 ms) against 136 ms (p90 241 ms, slowest 249 ms). On Linux it costs one instance per Claude Code session beside the between-turn watch's one, while that watch drops from two to one wherever a page has `page/` or `data/`. The follower and the watch stay separate processes, since only a background Stop hook's exit wakes the session after an Escape and only the hooks module's child feeds the band. Page servers keep their timers, since each is a process per page. Measured in a Linux container: a process holding 10 page subscriptions and a session watch holds 1 inotify instance (main: 16 for the subscriptions alone). On macOS, starting a watcher grows with the square of its directories beyond a few dozen (0.1 s for 100, 3.6 s for 1,000), since notify restarts its FSEvents stream for each directory it adds. `test_a_page_reading_moves_on_exactly_the_writes_its_watchers_wake_on` now waits until the process's watcher reports a sentinel write before draining, since macOS delivered a setup write 0.5 s after subscribing and failed it, on main too. `test_a_page_subscription_hears_every_input_its_reading_reads`, which #5081 moved to `tests/journeys/`, now asserts that a page's subscription takes no tree. Verified with the focused watch, forks, hooks and preview tests, and the `claude-code` (delivery and `--forks`), `codex-queue` and `codex-app-server` journeys. `dev/tests/model/test_interact_preview.py::test_preview_file_subscription_follows_atomic_replacements` fails on main as well. > _This was written by Claude Code on behalf of max-sixty_
…ly journeys (#6038) Move 142 test functions that ran over their tier's time budget in both of the last two daily runs, November 13 ([43412323289](https://github.com/max-sixty/leaf/actions/runs/43412323289)) and November 14 ([43587194195](https://github.com/max-sixty/leaf/actions/runs/43587194195)), into the daily `tests/journeys/` tier. 121 come from `tests/browser/` (8 s budget) and 21 from `tests/model/` and `tests/process/` (3 s budget). Each moved function's source, decorators included, is the same at both runs' commits and at this branch's base, and each has a passing over-budget case in both runs. What changes is when they run: the moved browser tests run daily instead of on each push to main, and the moved model and process tests leave a pull request's broad selection for the daily run. No test body changes. Each function moves to the same relative path under `tests/journeys/`, imports its helpers from the module it left (`tests/AGENTS.md`: the module holding most of a subject's tests keeps the helpers), and takes that module's `pytestmark`. `browser/drafts/test_send_corner.py` lost every test, so the whole module moved with its helpers, and the one docstring that pointed at it names its new path. The journeys subdirectories gain empty `__init__.py` files, as their `tests/browser/` counterparts have, because two new modules would otherwise share a basename with another (`drafts/test_reading_place.py` and `navigation/test_reading_place.py`, `startup/test_activity.py` and `projection/test_activity.py`), which pytest refuses to import. Verification: all-tier collection gives the same test ids as `main` apart from the tier directory (only `test_suite_source.py`'s per-module cases differ, since they follow the files); `--setup-plan` resolves every moved case's fixtures; `tests/model/test_suite_source.py` (1,191 passed), `ty check --error-on-warning tests` and Ruff pass; the 21 moved model and process tests and one moved test from each of 10 new or extended journeys modules pass (32 cases). Journey promotions to `tests/browser/` are not proposed: a maintainer asked for them to come out of #5081, since `tests/AGENTS.md` moves a test to an earlier tier only by making it cheaper, and #5197 removes that step from the weekly task. <details><summary>Candidates left in place</summary> Over budget in both runs but not moved, because the function changed between the measured commits and this base: - `tests/browser/navigation/test_comment_marks.py::test_any_focus_on_a_note_rings_its_block_and_follows_it_redrawn` - `tests/browser/startup/test_hosting.py::test_a_sample_reached_while_loading_holds_growth_the_reader_did_not_cause` - `tests/browser/startup/test_projected_data.py::test_a_comment_on_an_identified_datum_follows_the_subject_across_replacements` - `tests/browser/test_render_anchors.py::test_page_search_reads_a_docs_captions_title_apart_from_its_text` - `tests/browser/test_render_application_boundary.py::test_packages_and_panel_share_threads_through_gestures_and_authored_content` - `tests/browser/test_render_diff_controls.py::test_file_tree_opens_current_diff_files_by_pointer_and_keyboard` - `tests/browser/test_render_floating_panel.py::test_a_thread_s_keys_answer_in_its_view` - `tests/browser/widgets/test_workspaces_and_bounds.py::test_a_page_up_in_a_log_a_stream_feeds_leaves_its_end` - `tests/model/test_server_lifetime.py::test_server_stop_closes_accepted_keep_alive_connections` Two more no longer exist on `main`: `process/test_interact_claude_code_module.py::test_a_fork_that_rewrote_the_cache_sends_later_forks_at_the_sessions_effort` and `process/test_interact_server.py::test_historical_deferred_reads_keep_the_document_revision_and_layer`. </details> <details><summary>The two daily readings behind each move (seconds per case, from <code>leaf-dev suite profile</code>)</summary> Times are the function's over-budget passing cases in each run, as a range where several parameter cases were over. A function moves as one unit. | Test, now at | From (budget) | November 13 | November 14 | | --- | --- | ---: | ---: | | `tests/journeys/controls/test_command_routes.py::test_native_disclosure_inherits_the_offered_control_target` | browser (8 s) | 15.5–16.0 | 9.5–10.2 | | `tests/journeys/controls/test_command_routes.py::test_offered_native_targets_keep_their_navigation_meaning` | browser (8 s) | 16.1 | 9.8 | | `tests/journeys/controls/test_focus.py::test_a_key_onto_a_control_at_a_scrollers_edge_shows_its_ring` | browser (8 s) | 10.8–13.6 | 8.4–8.6 | | `tests/journeys/controls/test_focus.py::test_a_scroll_box_inside_a_widgets_shadow_tree_takes_the_keyboard` | browser (8 s) | 11.0 | 9.7 | | `tests/journeys/controls/test_live_samples.py::test_reading_keys_page_on_from_a_sample_to_its_page` | browser (8 s) | 11.6 | 9.5 | | `tests/journeys/controls/test_live_samples.py::test_tab_walks_into_and_out_of_a_full_view_sample` | browser (8 s) | 19.5 | 12.9 | | `tests/journeys/controls/test_live_samples.py::test_the_gutter_shows_while_keys_go_to_the_sample` | browser (8 s) | 15.4 | 10.2 | | `tests/journeys/controls/test_merge_film.py::test_merge_film_phone_holds_readable_outcomes_and_preserves_them_on_reflow` | browser (8 s) | 12.0 | 9.6 | | `tests/journeys/controls/test_press_away.py::test_a_press_survives_a_frame_return_but_ends_when_its_document_loses_input` | browser (8 s) | 9.7 | 10.4 | | `tests/journeys/controls/test_previews.py::test_a_focus_preview_on_a_link_elsewhere_keeps_its_new_tab_description` | browser (8 s) | 15.5 | 11.1 | | `tests/journeys/controls/test_previews.py::test_a_link_into_the_page_previews_where_it_points` | browser (8 s) | 12.1–12.7 | 8.5–9.3 | | `tests/journeys/controls/test_previews.py::test_a_link_s_preview_shows_only_what_the_page_draws` | browser (8 s) | 11.2–12.6 | 8.8–9.5 | | `tests/journeys/controls/test_previews.py::test_a_preview_says_nothing_its_target_shows_whole` | browser (8 s) | 14.8–18.0 | 11.6–12.0 | | `tests/journeys/controls/test_previews.py::test_a_thread_s_words_in_a_widget_preview_it_unless_the_widget_draws_them` | browser (8 s) | 10.6–12.0 | 9.2–10.3 | | `tests/journeys/controls/test_previews.py::test_a_thread_s_words_where_something_else_takes_the_pointer_preview_that` | browser (8 s) | 11.2–12.7 | 10.0–11.1 | | `tests/journeys/controls/test_previews.py::test_a_walk_s_landing_previews_nothing_and_tab_reads_it` | browser (8 s) | 47.5 | 47.9 | | `tests/journeys/controls/test_rings.py::test_controls_show_keyboard_focus_without_ringing_pointer_activation` | browser (8 s) | 14.8 | 9.8 | | `tests/journeys/controls/test_status_and_news.py::test_a_closed_leaf_clears_itself_off_all_pages` | browser (8 s) | 9.4 | 8.3 | | `tests/journeys/controls/test_status_and_news.py::test_a_panel_row_follows_its_pages_status_live` | browser (8 s) | 11.7 | 10.0 | | `tests/journeys/drafts/test_reading_place.py::test_a_page_that_never_settles_lets_the_held_place_go_after_a_while` | browser (8 s) | 12.1 | 8.4 | | `tests/journeys/drafts/test_revisions.py::test_a_re_vendor_waits_for_the_reply_being_written` | browser (8 s) | 15.5 | 14.1 | | `tests/journeys/drafts/test_send_corner.py::test_send_follows_the_corner_when_an_edit_adds_or_removes_a_line` | browser (8 s) | 12.4–13.6 | 8.2–8.6 | | `tests/journeys/drafts/test_send_corner.py::test_send_leaves_the_corner_to_the_words_and_takes_a_press_after_a_rest` | browser (8 s) | 13.0–16.4 | 8.6–9.6 | | `tests/journeys/interact_contract/test_authored_markup.py::test_check_takes_a_stated_height_in_whole_css_pixels` | model (3 s) | 5.5 | 3.6 | | `tests/journeys/interact_contract/test_vocabulary.py::test_candidate_vocabulary_can_change_after_frozen_thread_actions` | model (3 s) | 5.1 | 3.7 | | `tests/journeys/margin/test_card_placement.py::test_a_card_above_its_target_holds_news_it_would_grow_up_for` | browser (8 s) | 13.2 | 8.5 | | `tests/journeys/margin/test_card_placement.py::test_the_shipped_long_thread_keeps_the_margin_and_its_height` | browser (8 s) | 12.2 | 8.6 | | `tests/journeys/margin/test_pins.py::test_o_hides_what_is_drawn_over_the_page_and_the_panel_says_so` | browser (8 s) | 9.8 | 8.3 | | `tests/journeys/navigation/test_command_reference.py::test_the_reference_runs_available_commands_and_explains_the_rest` | browser (8 s) | 20.5 | 12.1 | | `tests/journeys/navigation/test_comment_marks.py::test_notes_of_one_passage_across_two_blocks_each_follow_their_block_redrawn` | browser (8 s) | 47.8 | 47.0 | | `tests/journeys/navigation/test_go_to.py::test_global_destinations_switch_from_a_covering_workspace` | browser (8 s) | 12.0 | 8.5 | | `tests/journeys/projection/test_activity.py::test_activity_holds_arrivals_until_the_reader_reveals_them` | browser (8 s) | 11.5 | 10.0 | | `tests/journeys/projection/test_visual_review.py::test_visual_review_cases_are_independent_on_me_obligations` | browser (8 s) | 11.9 | 8.0 | | `tests/journeys/projection/test_widget_actions.py::test_a_settled_holder_in_a_reply_joins_the_panel_wearing_its_mark` | browser (8 s) | 11.9 | 8.1 | | `tests/journeys/projection/test_widget_actions.py::test_a_slot_naming_two_holders_retires_under_neither_until_decided` | browser (8 s) | 12.0 | 9.2 | | `tests/journeys/projection/test_widget_actions.py::test_withdrawing_a_custom_settlement_clears_the_layers_mark` | browser (8 s) | 10.8 | 8.2–8.4 | | `tests/journeys/startup/test_activity.py::test_a_thread_says_what_the_agent_is_doing_about_it` | browser (8 s) | 12.9 | 11.2 | | `tests/journeys/startup/test_activity.py::test_an_exact_workflow_reports_stale_work_beside_a_live_page_claim` | browser (8 s) | 10.5 | 8.2 | | `tests/journeys/startup/test_activity.py::test_the_leaf_and_all_pages_say_the_served_activity` | browser (8 s) | 12.6 | 8.4 | | `tests/journeys/startup/test_hosting.py::test_a_live_page_admits_only_leaf_parents_under_its_key` | browser (8 s) | 22.8 | 16.2 | | `tests/journeys/startup/test_hosting.py::test_a_sample_counts_each_document_its_frame_loads` | browser (8 s) | 16.4 | 12.9 | | `tests/journeys/startup/test_hosting.py::test_a_sample_queued_behind_a_rollout_leaves_the_page_live` | browser (8 s) | 18.9 | 15.0 | | `tests/journeys/startup/test_hosting.py::test_a_sample_removed_during_a_rollout_stops_asking` | browser (8 s) | 10.7 | 9.1 | | `tests/journeys/startup/test_hosting.py::test_a_sample_waits_out_a_release_still_rolling_out` | browser (8 s) | 9.6 | 8.1 | | `tests/journeys/test_chrome_contracts.py::test_a_band_names_the_group_passing_under_it` | browser (8 s) | 8.2–13.0 | 9.4 | | `tests/journeys/test_chrome_contracts.py::test_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_hold` | browser (8 s) | 14.5 | 8.2 | | `tests/journeys/test_claims.py::test_page_list_names_each_page_and_the_session_holding_it` | model (3 s) | 4.2 | 3.2 | | `tests/journeys/test_codex_adapter.py::test_codex_serializes_later_input_behind_the_offered_delivery` | model (3 s) | 5.9 | 3.6 | | `tests/journeys/test_hooks.py::test_a_checkout_that_takes_over_a_held_page_starts_its_sessions_delivery_again` | model (3 s) | 5.8 | 4.1 | | `tests/journeys/test_interact_layer.py::test_a_revision_reads_its_package_copy_after_the_selection_moves_on` | model (3 s) | 8.7 | 6.0 | | `tests/journeys/test_interact_layer.py::test_package_check_and_page_init_refuse_an_upgraded_widget_without_its_module` | model (3 s) | 3.4 | 3.2 | | `tests/journeys/test_interact_layer.py::test_package_init_widget_merges_an_existing_package` | model (3 s) | 4.8 | 3.2 | | `tests/journeys/test_interact_layer.py::test_package_install_makes_a_source_selectable_by_name` | model (3 s) | 5.2 | 4.5 | | `tests/journeys/test_interact_layer.py::test_package_instructions_do_not_change_a_revisions_browser_address` | model (3 s) | 4.5 | 3.1 | | `tests/journeys/test_interact_product.py::test_a_reply_drawn_before_posting_runs_no_script_its_thread_would_not` | model (3 s) | 6.1 | 4.2 | | `tests/journeys/test_interact_product.py::test_the_wire_ships_a_message_as_logged` | model (3 s) | 6.0 | 4.5 | | `tests/journeys/test_interact_server.py::test_a_frozen_preview_keeps_package_bytes_and_addresses_after_reinit` | process (3 s) | 6.1 | 4.1 | | `tests/journeys/test_interact_server.py::test_a_page_admits_frames_only_from_live_leaf_servers_under_its_key` | process (3 s) | 7.1 | 5.6 | | `tests/journeys/test_interact_server.py::test_a_page_runs_the_runtime_of_the_leaf_serving_it` | process (3 s) | 5.4 | 3.6 | | `tests/journeys/test_interact_server.py::test_a_reader_retires_rows_no_server_lease_holds` | process (3 s) | 5.7 | 3.8 | | `tests/journeys/test_interact_server.py::test_a_row_read_cannot_block_server_stop` | process (3 s) | 6.2 | 3.7 | | `tests/journeys/test_page_inspection.py::test_diagnostics_arrival_inside_sample_stays_in_child_document` | browser (8 s) | 14.7 | 9.8 | | `tests/journeys/test_page_inspection.py::test_sample_diagnostics_copy_failure_keeps_a_visible_manual_copy_route` | browser (8 s) | 14.9 | 10.0 | | `tests/journeys/test_public_api.py::test_render_check_keeps_departed_samples_invalid_outputs` | browser (8 s) | 15.6–16.0 | 12.0–12.3 | | `tests/journeys/test_render_anchors.py::test_a_change_opens_what_it_replaced_in_a_card_over_it` | browser (8 s) | 10.8 | 8.2 | | `tests/journeys/test_render_anchors.py::test_a_revised_example_travels_between_its_own_versions` | browser (8 s) | 10.2 | 8.5 | | `tests/journeys/test_render_application_boundary.py::test_thread_presentation_waits_for_its_frozen_widgets_only` | browser (8 s) | 12.3 | 9.1 | | `tests/journeys/test_render_code_reading.py::test_code_wrapping_keeps_source_copy_and_reader_choice` | browser (8 s) | 14.8 | 11.2 | | `tests/journeys/test_render_controls.py::test_a_leaf_served_at_a_new_address_keeps_its_row_and_focus` | browser (8 s) | 17.8 | 11.6 | | `tests/journeys/test_render_controls.py::test_a_live_revision_mounts_and_resets_its_new_sample` | browser (8 s) | 16.4 | 12.8 | | `tests/journeys/test_render_controls.py::test_a_window_sample_is_a_whole_leaf_window_that_scrolls_inside` | browser (8 s) | 17.3 | 13.6 | | `tests/journeys/test_render_controls.py::test_all_pages_opens_a_neighbour_in_a_tab_of_its_own` | browser (8 s) | 12.2 | 8.3 | | `tests/journeys/test_render_controls.py::test_live_samples_keep_real_gestures_and_drafts_inside_the_child` | browser (8 s) | 17.6 | 14.0 | | `tests/journeys/test_render_controls.py::test_live_samples_release_pending_allocations_and_can_reconnect` | browser (8 s) | 15.2 | 11.7 | | `tests/journeys/test_render_controls.py::test_live_samples_retire_before_navigation_and_coalesce_reset` | browser (8 s) | 19.6 | 15.9 | | `tests/journeys/test_render_controls.py::test_sample_fixture_history_presents_before_ready_and_returns_on_reset` | browser (8 s) | 15.3 | 12.7 | | `tests/journeys/test_render_controls.py::test_sample_host_view_changes_leave_its_scroll_and_keyboard_position` | browser (8 s) | 18.6 | 15.1 | | `tests/journeys/test_render_controls.py::test_sample_reset_keeps_the_keyboard_position_while_loading` | browser (8 s) | 19.6 | 15.7 | | `tests/journeys/test_render_controls.py::test_slow_sample_state_does_not_hold_up_other_child_loads` | browser (8 s) | 21.9 | 17.5 | | `tests/journeys/test_render_diff_controls.py::test_file_tree_lands_at_the_file_start_after_reading_down` | browser (8 s) | 14.2 | 8.9 | | `tests/journeys/test_render_diff_controls.py::test_worktree_disclosures_keep_diff_reading_state_and_unknown_totals` | browser (8 s) | 18.0 | 10.9 | | `tests/journeys/test_render_drafts.py::test_an_empty_draft_survives_reload_and_a_live_revision` | browser (8 s) | 10.0 | 8.4 | | `tests/journeys/test_render_drafts.py::test_resume_writing_keeps_editor_identity_caret_and_sent_conversation` | browser (8 s) | 11.0 | 8.1 | | `tests/journeys/test_render_drawing.py::test_a_drawing_is_pictured_in_the_window_it_was_drawn_in` | browser (8 s) | 13.0 | 9.9 | | `tests/journeys/test_render_floating_panel.py::test_a_finger_reads_a_neighbouring_page_s_whole_account` | browser (8 s) | 9.9 | 8.3 | | `tests/journeys/test_render_floating_panel.py::test_a_folded_status_keeps_its_reading_until_the_next_exposure` | browser (8 s) | 9.9 | 9.3 | | `tests/journeys/test_render_floating_panel.py::test_a_long_reply_takes_its_room_from_the_thread_s_top` | browser (8 s) | 16.0 | 11.1 | | `tests/journeys/test_render_floating_panel.py::test_a_sample_shows_its_threads_in_its_panel` | browser (8 s) | 18.5 | 12.1 | | `tests/journeys/test_render_floating_panel.py::test_a_view_s_close_ends_its_controls_and_the_field_the_row` | browser (8 s) | 27.4 | 16.1 | | `tests/journeys/test_render_floating_panel.py::test_all_pages_in_the_menu_counts_the_pages_it_lists` | browser (8 s) | 16.9 | 11.3 | | `tests/journeys/test_render_floating_panel.py::test_all_pages_is_a_view_of_the_panel` | browser (8 s) | 10.6 | 8.6 | | `tests/journeys/test_render_floating_panel.py::test_an_answer_the_user_waits_for_grows_the_view_up_to_its_cap` | browser (8 s) | 12.1 | 10.4 | | `tests/journeys/test_render_floating_panel.py::test_an_older_version_says_so_in_the_row_and_one_press_opens_the_latest` | browser (8 s) | 9.7 | 8.0 | | `tests/journeys/test_render_floating_panel.py::test_lines_removed_below_the_field_s_cap_leave_the_rest_in_place` | browser (8 s) | 25.0 | 15.1 | | `tests/journeys/test_render_floating_panel.py::test_the_row_s_marks_and_presses_share_the_words_line` | browser (8 s) | 14.6 | 9.6 | | `tests/journeys/test_render_floating_panel.py::test_versions_opens_at_the_version_the_page_shows` | browser (8 s) | 8.6–9.4 | 8.2 | | `tests/journeys/test_render_gate.py::test_a_frame_of_another_live_leaf_page_is_checked_on_its_own` | browser (8 s) | 24.0 | 20.8 | | `tests/journeys/test_render_gate.py::test_a_user_arrives_at_what_they_left_rather_than_watching_it_arrive` | browser (8 s) | 12.7 | 11.3 | | `tests/journeys/test_render_gate.py::test_the_render_gate_holds_project_widgets_to_their_declarations` | browser (8 s) | 28.1 | 23.8 | | `tests/journeys/test_render_gate.py::test_the_render_gate_refuses_visual_inventories_it_cannot_trust` | browser (8 s) | 15.8 | 13.3 | | `tests/journeys/test_render_navigation.py::test_a_thread_walk_card_leaves_and_returns_with_its_anchor` | browser (8 s) | 11.6 | 10.2 | | `tests/journeys/test_render_navigation.py::test_an_addressed_link_leaves_the_user_at_its_destination` | browser (8 s) | 12.1 | 10.6 | | `tests/journeys/test_render_navigation.py::test_an_external_link_says_and_opens_where_it_goes` | browser (8 s) | 11.9 | 8.3 | | `tests/journeys/test_render_navigation.py::test_the_pr_walkthrough_exercises_an_inline_diff_thread` | browser (8 s) | 11.0 | 8.1 | | `tests/journeys/test_render_pages.py::test_an_obligation_and_a_callout_keep_the_column_and_widen_to_what_they_hold` | browser (8 s) | 17.3 | 14.6 | | `tests/journeys/test_render_playwright_trace.py::test_trace_comparison_prepaint_shows_only_its_opening_recording` | browser (8 s) | 11.3 | 8.2 | | `tests/journeys/test_render_playwright_trace.py::test_trace_overview_shows_every_row_and_preserves_page_scrolling` | browser (8 s) | 13.7 | 9.8 | | `tests/journeys/test_render_projection.py::test_a_live_revision_preserves_a_reply_after_native_tab` | browser (8 s) | 10.8 | 9.5 | | `tests/journeys/test_render_projection.py::test_activity_held_targets_follow_the_current_document` | browser (8 s) | 10.6 | 9.1 | | `tests/journeys/test_render_projection.py::test_an_old_document_state_request_cannot_update_the_new_revision` | browser (8 s) | 9.6 | 8.2 | | `tests/journeys/test_render_read_state.py::test_a_page_seat_the_open_panel_stands_over_is_not_read` | browser (8 s) | 11.2–11.7 | 8.3 | | `tests/journeys/test_render_read_state.py::test_a_reply_in_a_diff_thread_draws_where_the_user_is_and_waits_elsewhere` | browser (8 s) | 12.5–13.3 | 8.5–8.8 | | `tests/journeys/test_render_sample_delivery.py::test_sample_native_departure_keeps_destination_and_reset` | browser (8 s) | 13.7–15.0 | 10.3–11.4 | | `tests/journeys/test_render_shift_watch.py::test_message_age_may_shift_metadata_but_leaves_the_thread_in_place` | browser (8 s) | 9.8–10.1 | 9.3 | | `tests/journeys/test_render_threads.py::test_a_settlement_in_a_reply_leaves_its_own_anchor_on_the_page` | browser (8 s) | 10.1 | 8.1 | | `tests/journeys/test_render_visual_review_journey.py::test_visual_review_keeps_its_inline_comment_editor_in_view_after_phone_resize` | browser (8 s) | 13.2–13.5 | 9.0–9.1 | | `tests/journeys/test_render_widgets.py::test_a_playground_dresses_each_sample_child_and_never_its_own_page` | browser (8 s) | 11.7 | 9.6 | | `tests/journeys/test_render_widgets.py::test_a_pointer_press_on_a_playground_control_leaves_the_user_in_the_preview` | browser (8 s) | 10.5 | 8.4 | | `tests/journeys/test_render_work.py::test_work_status_is_a_generated_browser_passage` | browser (8 s) | 10.8–12.0 | 8.8–9.8 | | `tests/journeys/test_server_lifetime.py::test_a_background_jobs_server_lives_as_long_as_the_job` | model (3 s) | 4.0 | 3.2 | | `tests/journeys/test_server_lifetime.py::test_a_server_exits_when_its_session_is_hard_killed` | model (3 s) | 4.9 | 3.2 | | `tests/journeys/test_themes.py::test_an_explicit_theme_must_name_a_personal_choice_before_creating_a_page` | model (3 s) | 4.1 | 3.5 | | `tests/journeys/test_themes.py::test_missing_theme_refuses_revendoring_and_keeps_the_selection` | model (3 s) | 5.7 | 4.1 | | `tests/journeys/test_widget_quality.py::test_package_render_check_compares_held_and_presented_boxes` | browser (8 s) | 10.8 | 9.2 | | `tests/journeys/threads/test_agent_replies.py::test_a_reply_sent_after_progress_stands_below_it` | browser (8 s) | 14.4 | 10.0 | | `tests/journeys/threads/test_layout.py::test_words_scrolled_past_a_card_head_show_nowhere_above_it` | browser (8 s) | 13.0–18.2 | 9.4–11.6 | | `tests/journeys/threads/test_media.py::test_touch_capture_attaches_on_lift_and_a_tap_or_cancel_attaches_nothing` | browser (8 s) | 11.7 | 10.0 | | `tests/journeys/threads/test_rewrites.py::test_a_rewrite_saves_the_pictures_it_keeps` | browser (8 s) | 10.5 | 8.0 | | `tests/journeys/threads/test_rewrites.py::test_an_emptied_rewrite_keeps_nothing_and_saved_deletes_its_message` | browser (8 s) | 11.0 | 8.1 | | `tests/journeys/widgets/test_charts.py::test_a_chart_picks_the_point_plot_s_own_pointer_picks` | browser (8 s) | 91.9–92.9 | 89.3–90.0 | | `tests/journeys/widgets/test_charts.py::test_merge_film_inspection_has_touch_and_keyboard_routes` | browser (8 s) | 15.1 | 12.1 | | `tests/journeys/widgets/test_code_and_documents.py::test_a_closed_tab_s_document_reports_its_draw_while_later_ones_wait` | browser (8 s) | 9.7 | 9.1 | | `tests/journeys/widgets/test_code_and_documents.py::test_a_long_text_document_draws_the_lines_in_view_and_keeps_the_rest_whole` | browser (8 s) | 11.1–14.7 | 9.1 | | `tests/journeys/widgets/test_motion.py::test_motion_recordings_share_native_playback_and_a_sticky_transport` | browser (8 s) | 12.9 | 8.6 | | `tests/journeys/widgets/test_playgrounds.py::test_a_playground_records_an_edit_made_while_loading_or_as_the_page_leaves` | browser (8 s) | 18.0 | 15.9 | | `tests/journeys/widgets/test_playgrounds.py::test_a_short_workspace_shows_more_below_its_playground_regions` | browser (8 s) | 14.5 | 9.2 | | `tests/journeys/widgets/test_playgrounds.py::test_playground_keeps_contributor_drafts_until_reset_or_a_new_choice` | browser (8 s) | 13.3 | 10.9 | | `tests/journeys/widgets/test_tabs.py::test_a_strip_marks_its_open_tab_by_the_way_it_runs` | browser (8 s) | 12.0 | 8.7 | | `tests/journeys/widgets/test_tabs.py::test_parts_switch_without_moving_the_list_and_follow_history` | browser (8 s) | 13.9 | 9.5 | | `tests/journeys/widgets/test_tabs.py::test_root_tabs_switch_views_without_moving_the_strip_and_follow_history` | browser (8 s) | 12.4 | 9.7 | | `tests/journeys/widgets/test_tabs.py::test_wide_evidence_in_a_part_takes_the_room_it_would_on_a_page_of_its_own` | browser (8 s) | 14.0–14.2 | 10.8–11.4 | | `tests/journeys/widgets/test_workspaces_and_bounds.py::test_the_page_end_clears_the_bottom_chrome_around_a_workspace` | browser (8 s) | 12.1 | 10.2 | </details> Co-authored-by: leaf-agent <[email protected]>
…5197) The weekly `test tier budgets` task in the `running-tend` overlay told the bot to move a journey into `tests/browser/` once two daily runs measured it within the browser budget. That contradicts [`tests/AGENTS.md`](https://github.com/max-sixty/leaf/blob/main/tests/AGENTS.md), which says "To move a test to an earlier tier, make it cheaper." This change removes the promotion step from the overlay. It also drops the "Journeys within the browser budget" section from `leaf-dev suite-profile`'s report, the CI summary list that existed only to feed that step, so the daily `test` job's summary no longer shows it. The step that moves over-budget tests out to `tests/journeys/` is unchanged. The weekly run followed the overlay in #5081 and promoted 30 unchanged journeys on measured time alone. A maintainer [asked for those promotions to come out](#5081 (comment)), and the bot removed them before merge. With the instruction and its candidate list both still in place, the next weekly run would have proposed the same promotions again. This edits agent instructions, so per **Landing** it needs the control-plane owner's approval and the bot will not merge it. <details><summary>Evidence</summary> - Overlay text on `main` (`.claude/skills/running-tend/SKILL.md`, "Weekly: test tier budgets"): "a journey within the browser budget in both moves to `tests/browser/` when its boundary is one page." - `dev/leaf_dev/commands/suite_profile.py` on `main`: the module header called the list "the moves tend's weekly pass makes", and `report_budgets`'s docstring said those journeys "could run on each push to main instead". - The correction on #5081 and the bot's reply removing the 30 promotions in d0b9c9b. - Recorded on the review-runs tracker #5067. </details> --------- Co-authored-by: leaf-agent <[email protected]>
Move 94 tests repeatedly over their tier budget into daily journeys. The October 31 and November 1 daily test jobs supply both readings. Module marks and shared fixtures follow their existing owners. The moved All pages keyboard test now checks that opening the list focuses its first row, matching #5039; its navigation, clamping, Enter and Escape assertions remain. The moved server-revival test explicitly imports
urllib.request. These test repairs change no product behavior.Validation: all-tier collection finds 6,486 cases; the tier move retains all 4,469 test functions and makes 94 demotions. Fixture planning succeeds for the 30 existing journeys kept in their original tier. After the two test repairs, the All pages keyboard and server-revival tests pass (2 tests);
ty check --error-on-warning, Ruff checks, formatting andgit diff --checkpass.Two daily readings for each moved test (seconds per case)
Times are ranges across each function’s recorded parameter cases. Each demotion has an over-budget passing case in both daily runs. A function moves as one unit.
tests/journeys/controls/test_press_away.py::test_a_press_away_puts_the_response_bar_awaytests/journeys/drafts/test_comment_targets.py::test_comment_follows_a_thread_current_location_instead_of_an_earlier_drafttests/journeys/interact_contract/test_revendoring.py::test_init_allows_a_log_holding_a_token_the_incoming_layer_droppedtests/journeys/interact_contract/test_revendoring.py::test_init_allows_changed_generated_child_semanticstests/journeys/interact_contract/test_revendoring.py::test_init_allows_retiring_a_logged_widgets_verbtests/journeys/interact_contract/test_revendoring.py::test_revendoring_activates_current_delivery_handling_only_for_valid_sourcetests/journeys/navigation/test_panes.py::test_thread_travel_reveals_a_review_detail_in_its_pane_onlytests/journeys/test_activity.py::test_only_a_fresh_turn_whose_hooks_take_input_reads_listeningtests/journeys/test_chrome_contracts.py::test_a_scrolling_draft_shows_the_caret_s_row_with_the_padding_beside_ittests/journeys/test_claims.py::test_a_codex_command_claims_the_page_for_its_threadtests/journeys/test_claims.py::test_a_fresh_init_does_not_delete_a_concurrently_created_pages_claimtests/journeys/test_codex_adapter.py::test_a_codex_adapter_whose_start_was_never_committed_exitstests/journeys/test_codex_adapter.py::test_a_connection_failure_in_the_delivery_loop_is_retriedtests/journeys/test_codex_adapter.py::test_a_later_claim_preserves_the_running_transporttests/journeys/test_codex_adapter.py::test_a_new_codex_adapter_observes_ordinary_turns_without_a_prior_hooktests/journeys/test_codex_adapter.py::test_a_queued_codex_delivery_leaves_the_turn_ended_stamp_in_placetests/journeys/test_codex_adapter.py::test_an_offline_sibling_does_not_stop_browser_comments_reaching_codextests/journeys/test_codex_adapter.py::test_an_uncertain_app_server_start_recovers_by_delivery_identitytests/journeys/test_codex_adapter.py::test_app_server_deliveries_preserve_order_with_one_plain_reply_eachtests/journeys/test_codex_adapter.py::test_codex_adapter_exits_when_delivery_retries_outlive_its_claimtests/journeys/test_codex_adapter.py::test_codex_adapter_follows_ownership_across_idle_and_server_stoptests/journeys/test_codex_adapter.py::test_codex_adapter_keeps_transferred_input_unreceivedtests/journeys/test_codex_adapter.py::test_codex_recovers_page_receipts_in_sequence_ordertests/journeys/test_codex_adapter.py::test_codex_restart_finishes_an_accepted_batch_without_queueing_againtests/journeys/test_codex_adapter.py::test_codex_retires_a_receipt_on_a_page_its_leaf_cannot_writetests/journeys/test_codex_adapter.py::test_one_thread_delivery_starts_and_receipts_its_app_server_turntests/journeys/test_codex_app_server.py::test_a_running_turn_holds_a_delivery_back_without_asking_the_tasktests/journeys/test_hook_registration.py::test_the_registered_hook_delivers_or_says_nothingtests/journeys/test_hook_registration.py::test_the_registered_session_end_releases_shared_claims_without_an_environmenttests/journeys/test_interact_anchors.py::test_a_comments_widget_markup_shares_one_id_universe_with_repliestests/journeys/test_interact_claude_code_module.py::test_the_band_follows_the_pages_the_session_holdstests/journeys/test_interact_document.py::test_a_page_keeps_its_readings_while_its_samples_livetests/journeys/test_interact_layer.py::test_read_commands_leave_an_older_page_and_its_server_alonetests/journeys/test_interact_pi.py::test_an_escape_leaves_input_handed_to_the_run_for_the_next_prompttests/journeys/test_interact_pi.py::test_input_arriving_as_a_tui_run_ends_waits_for_a_run_of_its_owntests/journeys/test_interact_pi.py::test_the_pi_watch_restarts_a_session_server_that_diedtests/journeys/test_interact_product.py::test_a_seed_no_writer_could_send_stops_the_page_it_seedstests/journeys/test_interact_product.py::test_reply_validates_widget_markuptests/journeys/test_interact_server.py::test_a_failed_row_producer_retires_and_revives_with_its_servicetests/journeys/test_interact_server.py::test_a_server_start_re_vendors_an_older_page_and_refuses_a_newer_onetests/journeys/test_interact_server.py::test_a_start_waits_for_uncommitted_preparation_before_reusingtests/journeys/test_interact_server.py::test_a_stated_host_serve_says_nothing_about_loopbacktests/journeys/test_interact_server.py::test_failed_row_preparation_preserves_the_previous_desired_servicetests/journeys/test_interact_server.py::test_private_revival_cannot_advertise_the_previous_serving_rowtests/journeys/test_interact_server.py::test_server_start_names_the_running_payloadtests/journeys/test_interact_server.py::test_stop_does_not_wait_forever_on_a_server_started_after_its_transitiontests/journeys/test_interact_server.py::test_test_teardown_ends_detached_delivery_before_removing_statetests/journeys/test_native_watch.py::test_a_page_subscription_hears_every_input_its_reading_readstests/journeys/test_plain_pages.py::test_an_ordinary_page_is_drawn_as_writtentests/journeys/test_receipts.py::test_ack_rearm_keeps_the_other_pages_when_its_batch_page_transferstests/journeys/test_receipts.py::test_concurrent_receipts_observe_one_session_without_nesting_page_lockstests/journeys/test_render_anchors.py::test_a_drag_released_mid_word_hugs_words_and_sentencestests/journeys/test_render_anchors.py::test_a_quote_finds_its_passage_whatever_its_whitespacetests/journeys/test_render_commands.py::test_a_widget_that_fails_in_a_message_is_refused_where_a_browser_draws_ittests/journeys/test_render_commands.py::test_render_reads_widget_chrome_where_it_standstests/journeys/test_render_controls.py::test_all_pages_takes_the_keyboardtests/journeys/test_render_drawing.py::test_strokes_join_one_drawing_until_it_is_sent_and_escape_leavestests/journeys/test_render_floating_panel.py::test_a_long_draft_offers_more_room_at_a_presstests/journeys/test_render_floating_panel.py::test_nothing_lies_over_a_view_s_foot_but_new_replytests/journeys/test_render_gate.py::test_the_render_gate_fails_a_page_that_scrolls_sideways_only_between_viewportstests/journeys/test_render_gate.py::test_the_render_gate_refuses_duplicate_diagram_identitiestests/journeys/test_render_gate.py::test_the_render_gate_reports_a_compact_spilltests/journeys/test_render_margin.py::test_drafting_in_a_pane_keeps_the_card_and_reply_top_when_its_room_runs_outtests/journeys/test_render_playwright_trace.py::test_trace_moment_lands_its_saved_element_over_the_trees_readingtests/journeys/test_render_playwright_trace.py::test_trace_results_can_be_read_and_compared_on_a_phonetests/journeys/test_render_shift_watch.py::test_an_unchanged_frame_misses_no_restyletests/journeys/test_render_shift_watch.py::test_native_clipping_preserves_only_painted_carrytests/journeys/test_render_visual_review_journey.py::test_visual_review_refresh_retains_inspection_and_hands_focus_off_removed_casestests/journeys/test_render_widgets.py::test_focus_reactions_keep_a_projected_data_targettests/journeys/test_revision_delivery.py::test_an_export_runs_the_exporters_runtimetests/journeys/test_revision_delivery.py::test_page_code_fetches_a_page_file_nothing_namestests/journeys/test_server_lifetime.py::test_a_desktop_app_sessions_server_lives_as_long_as_the_app_sessiontests/journeys/test_server_lifetime.py::test_a_live_session_can_take_over_an_existing_servertests/journeys/test_server_lifetime.py::test_a_persistent_server_outlives_a_session_that_picks_the_page_uptests/journeys/test_server_lifetime.py::test_a_refused_revendor_leaves_the_running_server_alonetests/journeys/test_server_lifetime.py::test_a_sessionless_server_ignores_a_stale_claim_and_requires_explicit_stoptests/journeys/test_server_lifetime.py::test_server_start_forwards_flags_and_returns_service_outputtests/journeys/test_server_lifetime.py::test_server_start_hands_the_page_to_a_process_of_its_owntests/journeys/test_session_lifecycle.py::test_session_end_releases_the_page_and_its_session_server_retirestests/journeys/test_stop_guard.py::test_agent_sees_codex_watcher_recoverytests/journeys/test_stop_guard.py::test_stop_hook_keeps_codex_inside_the_exact_wait_sessiontests/journeys/test_themes.py::test_theme_selection_is_independent_of_content_packages_and_later_defaultstests/journeys/test_wait.py::test_a_claim_transfer_stops_a_waiter_already_inside_a_polltests/journeys/test_wait.py::test_a_codex_watcher_task_takes_the_parent_watch_obligationtests/journeys/test_wait.py::test_a_harness_claim_supersedes_a_bare_shell_waittests/journeys/test_wait.py::test_a_revived_server_keeps_the_lifetime_it_was_serving_undertests/journeys/test_wait.py::test_a_superseded_waiter_cannot_deliver_the_new_owners_batchtests/journeys/test_wait.py::test_the_newest_watch_takes_the_session_overtests/journeys/test_wait.py::test_wait_restarts_a_server_that_died_under_ittests/journeys/test_wait.py::test_wait_revival_cannot_take_a_page_back_after_claim_transfertests/journeys/threads/test_composing.py::test_sends_from_a_page_threads_box_hold_its_foot_at_the_bandstests/journeys/threads/test_media.py::test_linked_images_zoom_and_return_to_the_reporttests/journeys/widgets/test_pressed_controls.py::test_a_pressed_control_keeps_its_face_and_takes_the_next_presstests/journeys/widgets/test_tabs.py::test_a_side_list_workspace_scrolls_its_list_and_its_item_apart