Hazel reports · report 058 · merge-a-thon · 2026-11-19, revised 2026-11-19 09:05 MST · work in progress · after report 057

What Could Merge Today

The Hazel team holds a merge-a-thon today, 2026-11-19, to review and merge as much as it can. Matthew Hammer asked, this morning, to look at dev and at our open pull requests that are small and self-contained: everything but livelits could be a candidate. This report sorts all of them by what each needs before it can merge. Report 057 covers how the livelits reach dev.

Outline

  1. Where dev stands: no merge since 2026-11-06; the merge queue's rules; our 48 open PRs, by what each needs.
  2. Ready for a review now: 14 PRs that merge cleanly into today's dev, CI green, needing only an approval; one is already approved.
  3. A decision first: 8 PRs that wait on a question for the team.
  4. Not today: 17 PRs that wait on others, or are larger than a day.
  5. An order for the queue: three groups of up to five, then the decisions.
  6. What next, and how this was put together.

Where dev stands

dev has had no merge since 2026-11-06, thirteen days, when hazelgrove/hazel#2605 (a let's definition sees the outer binding) went in at 782249bbd0. Of our 48 open PRs, 14 could merge today with only an approval, and one of them, #2613, already has it. The last merge-a-thon, on 2026-10-29, merged 20 PRs into dev in a day.

14Ready for a review now8A decision first17Not today9Livelits, left out
Our 48 open PRs on hazelgrove/hazel, by what each needs before it can merge into dev, as of 2026-11-19 09:05 MST.

How a PR reaches dev now. dev takes PRs through GitHub's merge queue, which builds up to five at a time, together, on top of dev, and merges them only if all are green. Two checks are required, Fast checks and Static checks, and one approving review from a code owner: every file's owner is the hazel-core team (Cyrus Omar, Alexander Bandukwala, Andrew Blinn, Thomas Porter, Matt Keenan and Matthew Hammer), and an author cannot approve their own PR. A PR's CI takes about 17 to 21 minutes (hazelgrove/hazel#2828's last two runs). Because the queue tests each group on the latest dev, a PR that is behind dev but merges cleanly needs no update first; one that conflicts must be resolved by hand.

The candidates, by size. Of the 215 open PRs on hazelgrove/hazel, 48 are ours. Nine are livelits work and left out here (#2536, #2597, #2616, #2635, #2650, #2806, #2810, #2817, #2819). The other 39 are below; the candidates of the first two groups are drawn here, by the lines each changes.

1000 lines100 lines10 linesReady for a review now#2812 README: link the hazeljs npm package9#2825 Modulo by zero: an error, not a crash48#2818 A frame-rate HUD, with ?hud60#2816 Ids minted and compared as strings78#2652 The eval worker in Firefox, started at load108#2671 MapPiece keeps unchanged pieces179#2675 Incremental evaluation around a recursive …91#2651 A module binding analyzes its definition o…59#2815 Goto first use, Goto next use279#2603 Statics: a let analyzed once unless it ref…630#2697 Test: the nodes an evaluation builds, held…147#2613 Colors: every var() is one the theme defin…40#2606 Keep the incremental cache in the eval wor…311#2661 Types get a Merkle hash426A decision first#2793 Fewer trampoline bounces339#2592 Report each error once, not once per wrapp…148#2614 Load text about 2.5× faster338#2610 The load fallback through the segmented pa…299#2717 A module binding is a non-recursive let487#2608 Elaborations without the source's whitespa…86#2729 A module's sum types usable after it114#2749 Tests: a module's sum types at the edges82
The candidates for today, each bar the lines its PR adds and removes on GitHub, on a log scale. Most of the ready ones are under 200 lines. A stacked PR's count includes the PRs under it until those merge.

Ready for a review now

14 PRs, 2,465 lines in all, merge cleanly into today's dev, and all but the last, #2661, into each other one after another in the queue's order below; CI is green at each head; and nothing is asked of them but an approval. Three of them conflicted with dev when this report was first written, at 07:35: #2613, #2606 and #2661. Each was resolved, between 07:49 and 07:51, by merging dev into its branch, and CI, full tests included, is green on each. #2697, a draft that had waited on two PRs since merged, has dev merged in too and was marked ready at 08:16. The trial merge is of the text only: building and testing them together is the queue's job. The last column counts the commits to dev, since 2025-11-01, that touched each PR's existing source files, by members of hazel-core other than Matthew: the people who know that code best, a hint for whom to ask.

PRWhat it isSizeInto today's devReviewsBefore it mergesIts files, lately
#2812README: link the hazeljs npm package. A short README section pointing to the experimental hazeljs package, saying it is a 0.0.x prototype that does not track dev yet.+9 −0
1 files
merges cleanly; CI green at its head, 11-06none yetAn approval.Cyrus 4, Alexander 1
#2825Modulo by zero: an error, not a crash. int_mod(7, 0), and the SInt, Nat and Float modulos, crashed the interpreter: they named a builtin, mod, that does not exist. Now each gives Divide by Zero, as 7 / 0 does.+43 −5
3 files
merges cleanly; CI green at its head, 11-15none yetAn approval.Andrew 23, Alexander 10
#2818A frame-rate HUD, with ?hud. Frames a second and frame times, in a corner, only when the address has ?hud. One file, index.html.+60 −0
1 files
merges cleanly; CI green at its head, 11-08none yetAn approval.Alexander 2, Cyrus 1
#2816Ids minted and compared as strings. An id is built by joining one-byte strings and compared as a string, not through Uuidm's buffer: evaluation about 13% faster on the heaviest programs (the PR's own measurement). On the livelits branch since 2026-10-10.+54 −24
2 files
merges cleanly; CI green at its head, 11-07none yetAn approval.Andrew 5, Alexander 2
#2652The eval worker in Firefox, started at load. Firefox showed Evaluation timed out for answers the worker could give at once, when the page's thread was busy: the worker now starts at load, and a reply waiting in the queue is not timed out. Finding 8 on #2609.+69 −39
2 files
merges cleanly; CI green at its head, 10-05none yetAn approval.Andrew 21, Matt Keenan 17
#2671MapPiece keeps unchanged pieces. A projector update away from the caret copied the whole program; now every piece with nothing changed under it stays the same object. 3.12 to 1.92 ms an update on a 2,000-let program (its benchmark).+173 −6
3 files
merges cleanly; CI green at its head, 10-10none yetAn approval.Andrew 12, Alexander 3
#2675Incremental evaluation around a recursive let. Fixes the free variables statics reports for a recursive let, so an expression with one inside (a module with a recursive member, a function with a recursive helper) is reused, not run again.+90 −1
2 files
merges cleanly; CI green at its head, 10-12none yetAn approval. Alexander noted on 10-29 that #2431 (Matt Keenan's property tests, open) changes this code too: review them side by side.Andrew 36, Alexander 11
#2651A module binding analyzes its definition once. Statics analyzed a module's definition twice, once as a let and once directly; now it reads back the elaboration the let recorded. Finding 7 on #2609.+54 −5
3 files
merges cleanly; CI green at its head, 10-21comments by Alexander, AndrewAn approval. Alexander's review of 10-21 is answered, in three commits that day. #2717, below, is an optional follow-up.Andrew 36, Alexander 11
#2815Goto first use, Goto next use. Two moves in the context menu, the reverse of Goto definition: to a definition's first use, and from each use to the next. With tests.+277 −2
6 files
merges cleanly; CI green at its head, 11-06none yetAn approval.Andrew 62, Alexander 24
#2603Statics: a let analyzed once unless it refers to itself. Four statics and completion speedups, found by profiling the livelits branch, each its own commit with tests. The big one: a let-bound function no longer takes the recursive path's four passes, which multiplied with nesting. Byte-identical hazel analyze -W output on dev's 72 programs when it was made.+563 −67
10 files
merges cleanly; CI green at its head, 09-26none yetAn approval. Its CI ran on 09-26, 462 commits of dev ago; the merge queue runs it again on today's dev.Andrew 61, Alexander 18
#2697Test: the nodes an evaluation builds, held to budgets. Counts the terms an evaluation builds, beside its steps, so copies like those #2679 removed cannot come back unseen. It waited, as a draft, on #2678 and #2679, both merged (10-29, 10-19).+118 −29
2 files
merges cleanly; CI green at its head, 11-19none yetAn approval. Dev was merged in at 07:51, so its diff is its own commit, and its CI on today's dev holds the budgets; marked ready at 08:16.Andrew 41, Matt Keenan 26
#2613Colors: every var() is one the theme defines. Eleven var() names that nothing defined, so those colors ignored the Colors slide, dark mode and high contrast; each now reads a theme role, and a lint keeps it so. Approved by Alexander on 11-07.+19 −21
8 files
merges cleanly; CI green at its head, 11-19Alexander: approved 11-07Nothing more: it is approved. Dev was merged in at 07:49: dev had deleted assistant.css (#2438, dead stylesheets), and this PR's edit to it went with the file. Alexander left one visible change, the probe stack's focus pill, as Andrew's call.Alexander 62, Andrew 59
#2606Keep the incremental cache in the eval worker. The worker's answer carried its whole incremental cache to the page, and the next request carried it back, on every run; now the worker keeps it.+302 −9
6 files
merges cleanly; CI green at its head, 11-19none yetAn approval; Matt Keenan is the natural reviewer, as it sits beside his #2660 (keep incremental evaluation for expensive small programs). Dev was merged in at 07:51, keeping #2660's tests beside these; #2660's cost gate still sees the previous run's steps, since the worker fills in the kept cache before it asks.Andrew 50, Alexander 36
#2661Types get a Merkle hash. The evaluator asks is_consistent once per pair of types, not once per copy of them, keyed by a hash kept for each type object.+425 −1
4 files
merges cleanly; CI green at its head, 11-19none yetAn approval. Dev was merged in at 07:51: the hash now remembers the check #2734 (Typ.unroll, Alexander's) gave a constructor's sum type. #2681 builds on this PR.Andrew 9, Alexander 6

A decision first

8 PRs wait on a question rather than a review: whether a gain is worth its cost (#2793), which of two goes first (#2614 and #2610), whether a follow-up is wanted (#2717), how a fix should be finished (#2608, #2592), and what to wait for (#2729 and its tests, #2749). Most are small; once decided, they can go in the same day.

PRWhat it isSizeInto today's devReviewsBefore it mergesIts files, lately
#2793Fewer trampoline bounces. Two small changes to the evaluator's trampoline: half the steps on the PerfBudgets program (206,834 to 96,438), and its budgets lowered to match.+200 −139
4 files
merges cleanly; CI green at its head, 11-03comments by Matt KeenanMatt Keenan, 11-03: 15% faster and 4% less memory, a little less readable, and “ambivalent”. Take it, or close it.Matt Keenan 25, Andrew 23
#2592 (draft)Report each error once, not once per wrapper. An error inside parentheses was listed once for each layer: (((y))) made four rows in the problems sidebar. A draft.+146 −2
2 files
merges cleanly; CI green at its head, 09-22none yetHow it goes with issue #2561 (a type mismatch reported on every enclosing form): first, after, or folded in.Alexander 17, Andrew 1
#2614Load text about 2.5× faster. The recovering parser (MarkerParse.of_text, for a text FastParse rejects) inserted the text a character at a time, re-grouting each time: now whole tokens, and one re-grout.+292 −46
9 files
merges cleanly; CI green at its head, 09-29none yetIt and #2610 both rewrite that parser's path and conflict with each other in MarkerParse.re; each merges into dev alone. Which first, or one only?Andrew 90, Alexander 5
#2610The load fallback through the segmented parser. The same fallback through Parser.to_segment, which splits the text at safe points to avoid the quadratic cost, keeping projectors.+296 −3
4 files
merges cleanly; CI green at its head, 10-20none yetSee #2614.Andrew 19
#2717 (draft)A module binding is a non-recursive let. A draft follow-up to #2651: it tells the let up front that a module is not recursive, instead of #2651's check afterwards.+473 −14
3 files
merges cleanly; CI green at its head, 10-21none yetTake it after #2651, or close it. It conflicts with #2603 in Statics.re.Andrew 36, Alexander 11
#2608Elaborations without the source's whitespace and comments. Elaborations, sent to the worker with every request, carried each node's whitespace and comments.+83 −3
4 files
merges cleanly; CI green at its head, 09-29Alexander: changes requested 10-21Alexander requested changes on 10-21, not yet answered: 13.5% of it is left (types through Typ.normalize, labels, builtins), and he offered two fixes: cover those paths, with a test over the docs corpus, or strip once at the worker's boundary (17.7 ms over the whole corpus). Pick one.Andrew 42, Alexander 15
#2729A module's sum types usable after it. A sum type declared in a module can be built and matched outside it, not only inside. It came up in Messed Up Dress Up's scripts. #2749 adds tests at its edges, into this branch.+106 −8
3 files
merges cleanly; CI green at its head, 10-23none yetAlexander said on 10-30 he would review it once his #2493 (Modules II, part 1) merges. Wait for #2493, or review it now.Andrew 36, Alexander 11
#2749Tests: a module's sum types at the edges. Tests only, for #2729: a signature that leaves the sum out, shadowing, nesting. Into #2729's branch.+82 −0
2 files
into module-exports-ctrs; CI: Deploy branch preview failed at its headnone yetWith #2729.—

Our lean: take #2793, whose budgets now hold its gain in CI; merge #2614 first, then merge it into #2610 and keep #2610 only if it still adds something measurable; merge #2651 today and leave #2717 for after.

Not today

17 PRs wait on something else: a PR under them, a conflict larger than a day's, a deferral, a decision about a new surface, or a rework: #2828, whose question Cyrus answered (an SInt has 64 bits, not 32). The three test PRs, #2689, #2690 and #2691, each hold a fix to a budget in CI, so each lands after the fixes it tests.

PRWhat it isSizeWhy not today
#2828SInt at 32 bits everywhere; overflow an error. use SInt in 2147483647 + 1 was -2147483648 in the browser and 2147483648 natively; the PR makes it an error, at 32 bits everywhere.+139 −11Rework first. Cyrus's answer, through Matthew (11-18): an SInt is a fixed-precision 64-bit integer (perhaps 63 bits, as OCaml's own int), not 32. In the browser that needs more than an OCaml int, which has 32 bits there.
#2673Incremental evaluation: an unchanged expression by its hash. The largest of the evaluator changes (832 lines).+832 −7Conflicts with #2660 in IncrEval.re.
#2681A value known to have a type is not walked again. Builds on #2661.+687 −49Alexander, 10-19: still thinking about it.
#2676The cursor inspector shows a long type whole. A panel over the inspector's bar (issue #2674). #2698 is stacked on it.+372 −11Conflicts with four of Alexander's commits in Statics.re and CursorInspector.re; a change to try in the app.
#2698 (draft)Gamma's long types. Stacked on #2676.+224 −50With #2676.
#2689 (draft)Test: statics within a budget. Counts statics' passes, held to budgets.+1038 −74After #2603 and #2651.
#2690 (draft)Test: a re-run beside a recursive library. A step budget for an edit beside a library with recursive members.+351 −9After #2675.
#2691 (draft)Test: the worker's bytes within a budget. Byte budgets for what the page sends the worker and gets back.+535 −12After #2606 and #2608.
#2583Deep links. The address says which slide, panel and caret.+881 −51Cyrus deferred it on 10-29, until modular editors and the “world tree” change.
#2577 (draft)Serve the web build from an Internet Computer canister. A second deploy target. A draft.+164 −0A decision for the team, not a merge.
#2711 (draft)Hazel as a JS library. hazeljs's source; stacked on it, #2719, #2807, #2808, #2809 and #2814.+510 −3A new public surface, drafts, with its own review.
#2719 (draft)Hazel in another page's frame. Stacked on #2711.+4168 −109With #2711.
#2807Library calls bind their argument. Stacked on #2719.+18 −1With #2711.
#2808A function the library hands back keeps its closure. Stacked on #2807.+242 −15With #2711.
#2809Hazel.value: a JS value converted once. Stacked on #2808.+50 −0With #2711.
#2814 (draft)Embed mode: editable cells. Stacked on #2719.+948 −72With #2711.
#2490Spike: the evaluator through wasm_of_ocaml. A benchmark.—Not for merging.

An order for the queue

Three groups of up to five, the queue's limit, chosen so that no two PRs in a group conflict; all three groups are ready PRs, and in a trial on today's dev they merge one after another in this order with one conflict, #2661's, in the tests' list.

  1. Group 1: #2812, #2825, #2818, #2816, #2652 (303 lines in all). The five smallest, 9 to 108 lines, in files no other candidate touches.
  2. Group 2: #2671, #2675, #2651, #2815, #2603 (1,238 lines in all). The rest of the ready ones. #2651 and #2675 both touch Statics.re, as #2603 does, without conflicting.
  3. Group 3: #2697, #2613, #2606, #2661 (924 lines in all). #2613 is already approved. #2661 and #2671 both add to the tests' list, test/haz3ltest.re, so once the second group is in, #2661 needs dev merged in again: the one conflict among the fourteen, in a trial merging them in this order on today's dev.
  4. Then, as the team decides: #2793, #2614 and #2610 in the chosen order, #2717, #2592; and each test PR once the fixes it holds to budgets are in (#2689 after #2603 and #2651, #2690 after #2675, #2691 after #2606 and #2608).

What next

  1. Ask for a review on each ready PR, naming a reviewer from the last column of its row; Matt Keenan for #2606, which sits beside his #2660.
  2. Bring the decisions to the meeting: #2793, #2614 and #2610, #2717, #2592, #2729 with #2493; and answer Alexander's review of #2608 with the fix chosen.
  3. Rework #2828 for SInt at 64 bits, as Cyrus answered: first, whether that is 63 bits (OCaml's own int) or 64, and whether overflow is an error or wraps.
  4. After the merge-a-thon, gather again: mark this report with what merged, and move each test PR forward whose fixes landed.

How this was put together

Gathered on 2026-11-19 between 07:15 and 07:35 MST, and again at 09:05, after dev was merged into four of the branches (#2613 86316c1277, #2606 29beeb41d4, #2661 6bc326c750, #2697 808d469394; CI runs 44548016193, 44548236959, 44548378828 and 44548426433, all green); dev had not moved. GitHub's view of each of Matthew Hammer's open PRs (gh pr list --author matthewhammer, then gh pr view for its size, draft state, base, head, checks at the head, reviews and comments), with each PR's description, reviews and comments read for what it needs. Each PR into dev was fetched (refs/pull/N/head) and merged into dev at 782249bbd0 with git merge-tree --write-tree, which merges without a checkout and names the files that conflict; the ready PRs were then merged one after another, in the queue's order, the same way, each on the result of the last: all merged cleanly but #2661, the last, in test/haz3ltest.re, the tests' list. Pairs of candidates were merged the same way to find the conflicts between them. dev's rules are its ruleset and branch protection, read from GitHub's API, and its .github/CODEOWNERS. The last column of the tables counts non-merge commits on dev since 2025-11-01 that touch the PR's source files, by author, for the members of hazel-core other than Matthew. Nothing was built or tested for this report, and no PR was changed. The driver is 058/drivers/prep058.py; its output, 058/data/prs.json, and the tiers, 058/data/tiers.json, are with the report.