)]}'
{
  "commit": "16fbdb73360e9f3583cf6477293aa22e2cde5c86",
  "tree": "4fb5f25b6202ee31a74957ba46c0fe93507c4432",
  "parents": [
    "10d1ce11962229734b8780cecc2a2aae2403e5f5"
  ],
  "author": {
    "name": "Steve Golton",
    "email": "stevegolton@google.com",
    "time": "Thu Oct 22 08:47:24 2026 +0100"
  },
  "committer": {
    "name": "Steve Golton",
    "email": "stevegolton@google.com",
    "time": "Thu Oct 22 08:47:24 2026 +0100"
  },
  "message": "ui: Replace non-null assertions on index accesses with checked constructs\n\nSince noUncheckedIndexedAccess was enabled, many index accesses were\nsilenced with \u0027!\u0027. This removes those assertions in the obvious cases,\nfollowing the guidance in AGENTS-ui.md:\n\n- Convert index loops to for...of / arr.entries() where the index is\n  only used for indexing (charts, datagrid, DataExplorer, plugins).\n- Read-then-check instead of checking length and then indexing (scroll\n  details panel, line chart, trace config version check).\n- Use ensureDefined() where an invariant genuinely needs asserting.\n- Widen sqlValuesEqual() to accept undefined, which it already\n  normalised, dropping the assertions in groupPathsEqual().\n- Zip key/column pairs once per decode in SliceTrack so the per-row\n  loop needs no indexing at all.\n\nHot paths keep indexed iteration (with a comment explaining why the\nindex is provably in range): the flamegraph renderer and the per-frame\nslice hover-variant loop, where .entries() would allocate a pair per\niteration.\n\nNo behaviour changes are intended. ui/build --typecheck, ESLint and\nPrettier are clean; all unit tests pass.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9324d880fe3ec2a3b9dd701929d6bc359128f9a8",
      "old_mode": 33188,
      "old_path": "ui/src/base/fuzzy_unittest.ts",
      "new_id": "6461903976d1e9a3c88514cce873b2ad15db647b",
      "new_mode": 33188,
      "new_path": "ui/src/base/fuzzy_unittest.ts"
    },
    {
      "type": "modify",
      "old_id": "353db673443770553dd818ccb5b945bbf6293357",
      "old_mode": 33188,
      "old_path": "ui/src/chrome_extension/trace_config_utils.ts",
      "new_id": "1c7e0433cb656a97ebf8e2f33e33402797e1889f",
      "new_mode": 33188,
      "new_path": "ui/src/chrome_extension/trace_config_utils.ts"
    },
    {
      "type": "modify",
      "old_id": "a438f9ac84aee94bf22d25792bdd2f3469431448",
      "old_mode": 33188,
      "old_path": "ui/src/components/tracks/slice_track.ts",
      "new_id": "0ba86597765e8802fba11c51691e8e8998bf3f11",
      "new_mode": 33188,
      "new_path": "ui/src/components/tracks/slice_track.ts"
    },
    {
      "type": "modify",
      "old_id": "48b1d51ba48256dab14d09505e87cd5c110f2883",
      "old_mode": 33188,
      "old_path": "ui/src/components/widgets/charts_svg/line_chart_svg.ts",
      "new_id": "debfb6f71ee63b2354499d2ed360a41f2201acc8",
      "new_mode": 33188,
      "new_path": "ui/src/components/widgets/charts_svg/line_chart_svg.ts"
    },
    {
      "type": "modify",
      "old_id": "f5435eeee385dfae7cb72e7d27694feeaf489c2b",
      "old_mode": 33188,
      "old_path": "ui/src/components/widgets/datagrid/datagrid.ts",
      "new_id": "b8f63a41b612a9448c07102eb7587f49e919caa9",
      "new_mode": 33188,
      "new_path": "ui/src/components/widgets/datagrid/datagrid.ts"
    },
    {
      "type": "modify",
      "old_id": "327fabd08262d8a67a8d3a6ee9372012c4212a78",
      "old_mode": 33188,
      "old_path": "ui/src/components/widgets/datagrid/sql_data_source/rollup_tree.ts",
      "new_id": "37c411eca8f67dd681750130cd06c1e99af33c70",
      "new_mode": 33188,
      "new_path": "ui/src/components/widgets/datagrid/sql_data_source/rollup_tree.ts"
    },
    {
      "type": "modify",
      "old_id": "b546cab618ecb07cfb3fb0b9dd39c2a010c0471f",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/com.android.HeapDumpExplorer/queries.ts",
      "new_id": "6eebe34f287d316279749efa923e4b01704d1305",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/com.android.HeapDumpExplorer/queries.ts"
    },
    {
      "type": "modify",
      "old_id": "63af99ee67dd4e0792b53f12ab48efc32985e48c",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.AutoPinAndExpandTracks/index.ts",
      "new_id": "3fc300d78813d796e5e69bd973e7cd67ff5bc550",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.AutoPinAndExpandTracks/index.ts"
    },
    {
      "type": "modify",
      "old_id": "a629f4368f6ef62cbe4b0eca0f49fa35bc391c16",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/pbtxt_import.ts",
      "new_id": "b2d8fa008f35f9fadd564e8efd5e1e6b564644ed",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/pbtxt_import.ts"
    },
    {
      "type": "modify",
      "old_id": "7f40fca4f31b33b352db5ebd129a9ea270f61f70",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/graph/graph.ts",
      "new_id": "8ea701b0cfb109d0184f6a40b5762371657168fb",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/graph/graph.ts"
    },
    {
      "type": "modify",
      "old_id": "5f5f03caf8e5d1c60d724fd74f9ecb48b3f5c74a",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/graph/node_box.ts",
      "new_id": "6e99bb06e0e37ac03c7cbed536fcfc7d9e527c63",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/graph/node_box.ts"
    },
    {
      "type": "modify",
      "old_id": "07a3c187a58ce141ace5569555e283e3f6034de3",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/connections_unittest.ts",
      "new_id": "29eacba7be94b1c8d024aaa79902e03d66b7c016",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/connections_unittest.ts"
    },
    {
      "type": "modify",
      "old_id": "5a4e244d0bedd4971391486c2b26a7ab70ef6dc3",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/group_node/inner_graph_preview.ts",
      "new_id": "c3c590d6473739183a9b0b9a286bf34fa0e138f6",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/group_node/inner_graph_preview.ts"
    },
    {
      "type": "modify",
      "old_id": "ed7ad250c017ba7c5b4d5300909b8cd4d88a1aad",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/interval_intersect_node.ts",
      "new_id": "297740d97566779b63e3764b60155aeaa69d3760",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/interval_intersect_node.ts"
    },
    {
      "type": "modify",
      "old_id": "6e17ae5b4531c097d791f1b53a8fe56334068a51",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/metrics_export_modal.ts",
      "new_id": "15c1efb5d73d1017d2288f7075ed5d5cb6419125",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/metrics_export_modal.ts"
    },
    {
      "type": "modify",
      "old_id": "ab2cf396ccbdeea94dba3f2ba80575b566d5afeb",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/trace_summary_results_panel.ts",
      "new_id": "8055dff1a7b4f31792946a2f2978cfb9fd1e6fd1",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/nodes/trace_summary_results_panel.ts"
    },
    {
      "type": "modify",
      "old_id": "1d56be576d9da14fb18626798d342b5ae31f2784",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/structured_query_builder.ts",
      "new_id": "3649b439adf993c240b2e073460e70db8203a477",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.DataExplorer/query_builder/structured_query_builder.ts"
    },
    {
      "type": "modify",
      "old_id": "9cae7d2cee79e44b1d824710fb319b2b86376866",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.Gpu/index.ts",
      "new_id": "3716b555d1df90427fe16a1ac8cabee32611585a",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.Gpu/index.ts"
    },
    {
      "type": "modify",
      "old_id": "4aa98fc36dab2fa41c59981aa87af00f9eebe5a4",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.Memscope/views/tabs/processes.ts",
      "new_id": "9c2f81d30fbf7937599a252b2d734690f662b77b",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.Memscope/views/tabs/processes.ts"
    },
    {
      "type": "modify",
      "old_id": "c5982e58def203db072e9e83fa98a07bbcbbcfb4",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.MetricsPage/metrics_page.ts",
      "new_id": "148877401effdbd22baf6e4c0a0971d6b5518fde",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.MetricsPage/metrics_page.ts"
    },
    {
      "type": "modify",
      "old_id": "30425039c23caa822916971f4c4c0bee087ee357",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.TimelineSync/index.ts",
      "new_id": "5b69bbd3fb7798277e93385a3f80bec3e8634b06",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.TimelineSync/index.ts"
    },
    {
      "type": "modify",
      "old_id": "7b2689cc673938a14b4e205f008ee0c60e46526e",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.VideoFrames/video_frame_player.ts",
      "new_id": "4ee00f8819ba8be0284408fde0b6318044b66792",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.VideoFrames/video_frame_player.ts"
    },
    {
      "type": "modify",
      "old_id": "b68e466af19cfcab0b4403d3e8955e91f6054dca",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/org.chromium.ChromeScrollJank/scroll_delta_graph.ts",
      "new_id": "15ed625559f15238bde1c792d5089433d205c573",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/org.chromium.ChromeScrollJank/scroll_delta_graph.ts"
    },
    {
      "type": "modify",
      "old_id": "f84c6851f3ce6d088aba7e144c9693cab0f88ce0",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/org.chromium.ChromeScrollJank/scroll_details_panel.ts",
      "new_id": "6154b967f55d6ffb32b0b5cd071f2f7982659b29",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/org.chromium.ChromeScrollJank/scroll_details_panel.ts"
    },
    {
      "type": "modify",
      "old_id": "0171bea9d1e15124888e2ba03d1f743c09fd8910",
      "old_mode": 33188,
      "old_path": "ui/src/trace_processor/query_result_benchmark_unittest.ts",
      "new_id": "e2ea6d50b76f7111143632582751db632eedacf4",
      "new_mode": 33188,
      "new_path": "ui/src/trace_processor/query_result_benchmark_unittest.ts"
    },
    {
      "type": "modify",
      "old_id": "b476bfbd10e9cd606c73c2305bdb5e33f1cd97da",
      "old_mode": 33188,
      "old_path": "ui/src/widgets/flamegraph.ts",
      "new_id": "86aa07e4b92b513038855786b34791cc1adbe987",
      "new_mode": 33188,
      "new_path": "ui/src/widgets/flamegraph.ts"
    },
    {
      "type": "modify",
      "old_id": "97138300b373c954a3324e97ba3d1b4bb6c0f39e",
      "old_mode": 33188,
      "old_path": "ui/src/widgets/tree_explorer.ts",
      "new_id": "c8ecf433e2ee60e81ed7d2dd73d083b6d91d1a45",
      "new_mode": 33188,
      "new_path": "ui/src/widgets/tree_explorer.ts"
    }
  ]
}
