Skip to content

Fix menu focus scope#528

Merged
dowdiness merged 3 commits into
mainfrom
fix/511-menu-focus-scope
Jun 5, 2026
Merged

Fix menu focus scope#528
dowdiness merged 3 commits into
mainfrom
fix/511-menu-focus-scope

Conversation

@dowdiness

Copy link
Copy Markdown
Owner

Summary

  • Add Model::focus_cmd_within(root_id~) for scoped/headless menu item focus.
  • Keep existing document-level Model::focus_cmd() behavior unchanged for Ideal and other light-DOM consumers.
  • Document document-global vs scoped/open-shadow-root focus strategy.
  • Add a JS whitebox regression covering duplicate document id vs scoped shadow-host lookup.

Closes #511.

Reuse check

  • Reused Rabbita @cmd.custom_cmd(..., kind=@cmd.after_render) for after-patch focus effects.
  • Reused menu-owned item id generation through a private focused_item_id() helper.
  • Considered adjacent document-global patterns in lib/tabs and lib/context-menu, but left them unchanged because Make headless Menu focus strategy scope-aware #511 is scoped to lib/menu item focus.
  • Did not reuse lib/dom-boundary: it is document-global and JS-only, while lib/menu must keep its js+native package contract.

Validation

  • NEW_MOON_MOD=0 moon check --deny-warn
  • NEW_MOON_MOD=0 moon test
  • NEW_MOON_MOD=0 moon build --target js --release
  • NEW_MOON_MOD=0 moon test --target js lib/menu/src/menu
  • cd examples/ideal/web && CANOPY_SKIP_RELAY_SERVER=1 VITE_CANOPY_SKIP_SYNC=1 npx playwright test e2e/structural-editing.spec.ts --reporter=line
  • git diff --check

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@dowdiness, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 20 minutes and 47 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: eb764ad1-deb5-49f0-b9ec-6aca880589d7

📥 Commits

Reviewing files that changed from the base of the PR and between 34e91f3 and 7a7b9d9.

📒 Files selected for processing (8)
  • lib/context-menu/README.md
  • lib/context-menu/src/context_menu/context_menu_test.mbt
  • lib/context-menu/src/context_menu/pkg.generated.mbti
  • lib/context-menu/src/context_menu/types.mbt
  • lib/menu/README.md
  • lib/menu/src/menu/attrs.mbt
  • lib/menu/src/menu/menu_wbtest.mbt
  • lib/menu/src/menu/pkg.generated.mbti
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/511-menu-focus-scope

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
lambda-editor 7a7b9d9 Commit Preview URL

Branch Preview URL
Jun 05 2026, 03:54 PM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd8f1568a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +196 to +198
pub fn Model::focus_cmd_within(self : Model, root_id~ : String) -> @rabbita.Cmd {
self.focus_item_cmd(id => focus_element_by_id_within(root_id, id))
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expose scoped focus through context menus

When this menu behavior is used through lib/context-menu inside an open shadow root, callers still cannot use the scoped lookup added here: lib/context-menu/src/context_menu/types.mbt keeps the embedded @menu.Model private (lines 62-64) and its public Model::focus_cmd still delegates to document-global self.menu.focus_cmd() (lines 201-202). That leaves context-menu consumers stuck on document.getElementById even though they hit the same duplicate-id/shadow-root scenario, so please add a matching scoped focus API on the wrapper or otherwise route it through this method.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Benchmark Comparison Report

Comparing PR branch against main

Main Module Benchmarks

Base branch:

[dowdiness/btree] bench btree_benchmark.mbt:79 ("bench: build via inserts (100)") ok
time (mean ± σ)         range (min … max) 
  65.80 µs ± 707.80 ns    65.07 µs …  67.57 µs  in 10 ×   1461 runs
[dowdiness/btree] bench btree_benchmark.mbt:84 ("bench: build via from_sorted (100)") ok
time (mean ± σ)         range (min … max) 
   3.04 µs ±   6.64 ns     3.03 µs …   3.06 µs  in 10 ×  35940 runs
[dowdiness/btree] bench btree_benchmark.mbt:91 ("bench: build via inserts (1000)") ok
time (mean ± σ)         range (min … max) 
   1.06 ms ±  23.11 µs     1.04 ms …   1.12 ms  in 10 ×     94 runs
[dowdiness/btree] bench btree_benchmark.mbt:96 ("bench: build via from_sorted (1000)") ok
time (mean ± σ)         range (min … max) 
  29.74 µs ±  76.72 ns    29.60 µs …  29.83 µs  in 10 ×   3345 runs
[dowdiness/btree] bench btree_benchmark.mbt:103 ("bench: build via inserts (10000)") ok
time (mean ± σ)         range (min … max) 
  16.20 ms ± 140.73 µs    16.03 ms …  16.40 ms  in 10 ×      7 runs
[dowdiness/btree] bench btree_benchmark.mbt:108 ("bench: build via from_sorted (10000)") ok
time (mean ± σ)         range (min … max) 
 525.21 µs ±   7.24 µs   515.35 µs … 534.01 µs  in 10 ×    195 runs
[dowdiness/btree] bench btree_benchmark.mbt:115 ("bench: delete_range middle 10% (1000)") ok
time (mean ± σ)         range (min … max) 
  57.98 µs ± 522.34 ns    57.42 µs …  59.12 µs  in 10 ×   1673 runs
[dowdiness/btree] bench btree_benchmark.mbt:124 ("bench: delete_range middle 50% (1000)") ok
time (mean ± σ)         range (min … max) 
  52.68 µs ± 187.41 ns    52.40 µs …  52.95 µs  in 10 ×   1904 runs
[dowdiness/btree] bench btree_benchmark.mbt:133 ("bench: delete_range middle 10% (10000)") ok
time (mean ± σ)         range (min … max) 
 709.15 µs ±   2.03 µs   706.72 µs … 713.66 µs  in 10 ×    142 runs
[dowdiness/btree] bench btree_benchmark.mbt:142 ("bench: delete_range middle 50% (10000)") ok
time (mean ± σ)         range (min … max) 
 700.16 µs ±  10.91 µs   686.86 µs … 714.55 µs  in 10 ×    143 runs
Total tests: 10, passed: 10, failed: 0. [wasm-gc]
node count: 502
node count: 1002
node count: 2502
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:24 ("viewnode serialization (100 defs)") ok
time (mean ± σ)         range (min … max) 
   2.27 ms ±  36.99 µs     2.22 ms …   2.34 ms  in 10 ×     45 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:35 ("viewnode serialization (200 defs)") ok
time (mean ± σ)         range (min … max) 
   6.04 ms ± 251.22 µs     5.68 ms …   6.53 ms  in 10 ×     17 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:46 ("viewnode serialization (500 defs)") ok
time (mean ± σ)         range (min … max) 
  25.90 ms ±   2.23 ms    23.59 ms …  28.98 ms  in 10 ×      4 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:57 ("compute_view_patches (100 defs, single edit)") ok
time (mean ± σ)         range (min … max) 
   1.91 ms ±  36.49 µs     1.88 ms …   2.01 ms  in 10 ×     49 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:98 ("json object - incremental keystroke (20 members)") ok
time (mean ± σ)         range (min … max) 
   1.00 ms ±  58.25 µs   910.35 µs …   1.10 ms  in 10 ×     98 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:103 ("json object - incremental keystroke (100 members)") ok
time (mean ± σ)         range (min … max) 
   3.84 ms ±  61.86 µs     3.78 ms …   3.98 ms  in 10 ×     27 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:108 ("json object - incremental keystroke (500 members)") ok
time (mean ± σ)         range (min … max) 
  25.44 ms ± 187.94 µs    25.25 ms …  25.75 ms  in 10 ×      4 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:113 ("json object - incremental keystroke (1000 members)") ok
time (mean ± σ)         range (min … max) 
  58.57 ms ± 309.77 µs    58.16 ms …  58.98 ms  in 10 ×      2 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:118 ("json array - incremental keystroke (20 elements)") ok
time (mean ± σ)         range (min … max) 
 815.79 µs ± 180.81 µs   540.96 µs …   1.02 ms  in 10 ×    216 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:123 ("json array - incremental keystroke (100 elements)") ok
time (mean ± σ)         range (min … max) 
   1.86 ms ±  47.21 µs     1.77 ms …   1.91 ms  in 10 ×     58 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:128 ("json array - incremental keystroke (500 elements)") ok
time (mean ± σ)         range (min … max) 
  12.43 ms ±  77.16 µs    12.30 ms …  12.55 ms  in 10 ×      8 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:133 ("json array - incremental keystroke (1000 elements)") ok
time (mean ± σ)         range (min … max) 
  31.63 ms ± 822.60 µs    30.86 ms …  33.62 ms  in 10 ×      4 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:38 ("tree refresh unchanged (20 defs)") ok
time (mean ± σ)         range (min … max) 
   6.39 µs ±  78.92 ns     6.33 µs …   6.56 µs  in 10 ×  15251 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:48 ("tree refresh unchanged (80 defs)") ok
time (mean ± σ)         range (min … max) 
  26.39 µs ± 260.30 ns    26.11 µs …  26.77 µs  in 10 ×   3572 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:58 ("tree refresh unchanged (320 defs)") ok
time (mean ± σ)         range (min … max) 
 109.33 µs ± 539.87 ns   108.43 µs … 110.13 µs  in 10 ×    841 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:68 ("tree refresh unchanged (1000 defs)") ok
time (mean ± σ)         range (min … max) 
 474.08 µs ±   4.27 µs   467.19 µs … 481.44 µs  in 10 ×    213 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:80 ("tree refresh 1 changed (20 defs)") ok
time (mean ± σ)         range (min … max) 
  10.80 µs ±  16.84 ns    10.77 µs …  10.82 µs  in 10 ×   9272 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:95 ("tree refresh 1 changed (320 defs)") ok
time (mean ± σ)         range (min … max) 
 190.24 µs ± 746.45 ns   188.91 µs … 191.10 µs  in 10 ×    528 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:110 ("tree refresh 1 changed (1000 defs)") ok
time (mean ± σ)         range (min … max) 
 760.05 µs ±   5.80 µs   749.75 µs … 766.22 µs  in 10 ×    132 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:125 ("tree refresh 1 changed (80 defs)") ok
time (mean ± σ)         range (min … max) 
  42.24 µs ±  52.38 ns    42.16 µs …  42.32 µs  in 10 ×   2373 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:61 ("reconcile wide-siblings (20 defs)") ok
time (mean ± σ)         range (min … max) 
  11.25 µs ±  15.86 ns    11.23 µs …  11.27 µs  in 10 ×   8867 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:66 ("reconcile wide-siblings (80 defs)") ok
time (mean ± σ)         range (min … max) 
 105.33 µs ±  90.49 ns   105.21 µs … 105.47 µs  in 10 ×    957 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:71 ("reconcile wide-siblings (320 defs)") ok
time (mean ± σ)         range (min … max) 
   1.37 ms ±   6.05 µs     1.36 ms …   1.38 ms  in 10 ×     74 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:76 ("reconcile wide-siblings (1000 defs)") ok
time (mean ± σ)         range (min … max) 
  13.60 ms ± 112.31 µs    13.48 ms …  13.83 ms  in 10 ×      8 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:148 ("fp_incr unchanged (20 defs)") ok
time (mean ± σ)         range (min … max) 
   8.39 µs ±  13.05 ns     8.37 µs …   8.41 µs  in 10 ×  11950 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:157 ("fp_incr unchanged (80 defs)") ok
time (mean ± σ)         range (min … max) 
  51.33 µs ± 147.68 ns    51.15 µs …  51.67 µs  in 10 ×   1952 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:166 ("fp_incr unchanged (320 defs)") ok
time (mean ± σ)         range (min … max) 
 569.16 µs ± 696.71 ns   568.53 µs … 570.93 µs  in 10 ×    175 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:175 ("fp_incr unchanged (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   5.14 ms ±  22.99 µs     5.12 ms …   5.19 ms  in 10 ×     20 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:186 ("fp_incr tail (20 defs)") ok
time (mean ± σ)         range (min … max) 
  16.88 µs ±  55.40 ns    16.80 µs …  16.94 µs  in 10 ×   5924 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:195 ("fp_incr tail (80 defs)") ok
time (mean ± σ)         range (min … max) 
  85.67 µs ± 245.60 ns    85.37 µs …  86.03 µs  in 10 ×   1171 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:204 ("fp_incr tail (320 defs)") ok
time (mean ± σ)         range (min … max) 
 736.25 µs ±   1.39 µs   734.74 µs … 739.44 µs  in 10 ×    136 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:213 ("fp_incr tail (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   5.80 ms ±  41.14 µs     5.76 ms …   5.89 ms  in 10 ×     18 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:224 ("fp_incr shifted (20 defs)") ok
time (mean ± σ)         range (min … max) 
  23.75 µs ± 517.84 ns    23.30 µs …  24.69 µs  in 10 ×   4155 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:230 ("fp_incr shifted (80 defs)") ok
time (mean ± σ)         range (min … max) 
  96.79 µs ±   2.40 µs    94.71 µs … 100.77 µs  in 10 ×   1005 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:236 ("fp_incr shifted (320 defs)") ok
time (mean ± σ)         range (min … max) 
 429.72 µs ±  10.27 µs   421.71 µs … 446.46 µs  in 10 ×    226 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:242 ("fp_incr shifted (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   1.47 ms ±  40.21 µs     1.44 ms …   1.55 ms  in 10 ×     67 runs
Total tests: 36, passed: 36, failed: 0. [js]
Warning: no test entry found.
Total tests: 0, passed: 0, failed: 0. [native]

PR branch:

Registry index cloned successfully
Symbols updated successfully
Downloading dowdiness/rle@0.2.0
Downloading dowdiness/incr@0.8.0
Downloading moonbitlang/x@0.4.38
Downloading moonbitlang/quickcheck@0.14.0
Downloading moonbitlang/async@0.16.8
[dowdiness/btree] bench btree_benchmark.mbt:79 ("bench: build via inserts (100)") ok
time (mean ± σ)         range (min … max) 
  64.95 µs ±   1.04 µs    63.80 µs …  66.90 µs  in 10 ×   1500 runs
[dowdiness/btree] bench btree_benchmark.mbt:84 ("bench: build via from_sorted (100)") ok
time (mean ± σ)         range (min … max) 
   3.04 µs ±   7.53 ns     3.04 µs …   3.06 µs  in 10 ×  35988 runs
[dowdiness/btree] bench btree_benchmark.mbt:91 ("bench: build via inserts (1000)") ok
time (mean ± σ)         range (min … max) 
   1.04 ms ±  11.37 µs     1.02 ms …   1.05 ms  in 10 ×     89 runs
[dowdiness/btree] bench btree_benchmark.mbt:96 ("bench: build via from_sorted (1000)") ok
time (mean ± σ)         range (min … max) 
  29.89 µs ± 175.09 ns    29.76 µs …  30.36 µs  in 10 ×   3366 runs
[dowdiness/btree] bench btree_benchmark.mbt:103 ("bench: build via inserts (10000)") ok
time (mean ± σ)         range (min … max) 
  16.10 ms ± 192.05 µs    15.88 ms …  16.44 ms  in 10 ×      7 runs
[dowdiness/btree] bench btree_benchmark.mbt:108 ("bench: build via from_sorted (10000)") ok
time (mean ± σ)         range (min … max) 
 519.53 µs ±   7.89 µs   510.92 µs … 527.89 µs  in 10 ×    171 runs
[dowdiness/btree] bench btree_benchmark.mbt:115 ("bench: delete_range middle 10% (1000)") ok
time (mean ± σ)         range (min … max) 
  57.34 µs ± 427.18 ns    56.89 µs …  58.13 µs  in 10 ×   1697 runs
[dowdiness/btree] bench btree_benchmark.mbt:124 ("bench: delete_range middle 50% (1000)") ok
time (mean ± σ)         range (min … max) 
  52.28 µs ± 211.61 ns    52.00 µs …  52.62 µs  in 10 ×   1919 runs
[dowdiness/btree] bench btree_benchmark.mbt:133 ("bench: delete_range middle 10% (10000)") ok
time (mean ± σ)         range (min … max) 
 703.54 µs ±   1.72 µs   700.87 µs … 706.42 µs  in 10 ×    142 runs
[dowdiness/btree] bench btree_benchmark.mbt:142 ("bench: delete_range middle 50% (10000)") ok
time (mean ± σ)         range (min … max) 
 696.65 µs ±  10.13 µs   686.38 µs … 709.08 µs  in 10 ×    145 runs
Total tests: 10, passed: 10, failed: 0. [wasm-gc]
node count: 502
node count: 1002
node count: 2502
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:24 ("viewnode serialization (100 defs)") ok
time (mean ± σ)         range (min … max) 
   2.29 ms ±  26.37 µs     2.25 ms …   2.33 ms  in 10 ×     44 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:35 ("viewnode serialization (200 defs)") ok
time (mean ± σ)         range (min … max) 
   6.11 ms ± 215.98 µs     5.86 ms …   6.50 ms  in 10 ×     17 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:46 ("viewnode serialization (500 defs)") ok
time (mean ± σ)         range (min … max) 
  26.61 ms ±   2.15 ms    23.68 ms …  29.70 ms  in 10 ×      4 runs
[dowdiness/canopy] bench editor/view_updater_benchmark_wbtest.mbt:57 ("compute_view_patches (100 defs, single edit)") ok
time (mean ± σ)         range (min … max) 
   2.11 ms ± 269.71 µs     1.88 ms …   2.59 ms  in 10 ×     50 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:98 ("json object - incremental keystroke (20 members)") ok
time (mean ± σ)         range (min … max) 
   1.07 ms ±  52.00 µs     1.01 ms …   1.15 ms  in 10 ×     95 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:103 ("json object - incremental keystroke (100 members)") ok
time (mean ± σ)         range (min … max) 
   3.85 ms ± 105.42 µs     3.77 ms …   4.10 ms  in 10 ×     24 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:108 ("json object - incremental keystroke (500 members)") ok
time (mean ± σ)         range (min … max) 
  25.13 ms ±  91.27 µs    25.01 ms …  25.27 ms  in 10 ×      4 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:113 ("json object - incremental keystroke (1000 members)") ok
time (mean ± σ)         range (min … max) 
  59.09 ms ±   2.18 ms    57.79 ms …  65.14 ms  in 10 ×      2 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:118 ("json array - incremental keystroke (20 elements)") ok
time (mean ± σ)         range (min … max) 
 795.51 µs ± 176.46 µs   541.86 µs …   1.03 ms  in 10 ×    220 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:123 ("json array - incremental keystroke (100 elements)") ok
time (mean ± σ)         range (min … max) 
   1.84 ms ±  50.80 µs     1.76 ms …   1.90 ms  in 10 ×     58 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:128 ("json array - incremental keystroke (500 elements)") ok
time (mean ± σ)         range (min … max) 
  12.35 ms ±  79.26 µs    12.22 ms …  12.47 ms  in 10 ×      9 runs
[dowdiness/canopy] bench lang/json/companion/json_benchmark.mbt:133 ("json array - incremental keystroke (1000 elements)") ok
time (mean ± σ)         range (min … max) 
  31.74 ms ± 611.68 µs    31.26 ms …  33.34 ms  in 10 ×      4 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:38 ("tree refresh unchanged (20 defs)") ok
time (mean ± σ)         range (min … max) 
   6.66 µs ± 272.53 ns     6.48 µs …   7.19 µs  in 10 ×  14767 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:48 ("tree refresh unchanged (80 defs)") ok
time (mean ± σ)         range (min … max) 
  24.17 µs ±  63.27 ns    24.09 µs …  24.28 µs  in 10 ×   3837 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:58 ("tree refresh unchanged (320 defs)") ok
time (mean ± σ)         range (min … max) 
 111.76 µs ±   1.25 µs   110.53 µs … 113.89 µs  in 10 ×    815 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:68 ("tree refresh unchanged (1000 defs)") ok
time (mean ± σ)         range (min … max) 
 464.82 µs ±   5.07 µs   455.78 µs … 470.79 µs  in 10 ×    215 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:80 ("tree refresh 1 changed (20 defs)") ok
time (mean ± σ)         range (min … max) 
  11.05 µs ±  16.68 ns    11.03 µs …  11.08 µs  in 10 ×   9057 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:95 ("tree refresh 1 changed (320 defs)") ok
time (mean ± σ)         range (min … max) 
 195.20 µs ±   1.75 µs   193.44 µs … 198.46 µs  in 10 ×    517 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:110 ("tree refresh 1 changed (1000 defs)") ok
time (mean ± σ)         range (min … max) 
 852.62 µs ±   6.52 µs   847.80 µs … 869.77 µs  in 10 ×    118 runs
[dowdiness/canopy] bench projection/tree_refresh_benchmark_wbtest.mbt:125 ("tree refresh 1 changed (80 defs)") ok
time (mean ± σ)         range (min … max) 
  39.90 µs ± 122.86 ns    39.77 µs …  40.19 µs  in 10 ×   2503 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:61 ("reconcile wide-siblings (20 defs)") ok
time (mean ± σ)         range (min … max) 
  11.02 µs ±  45.37 ns    10.99 µs …  11.14 µs  in 10 ×   9093 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:66 ("reconcile wide-siblings (80 defs)") ok
time (mean ± σ)         range (min … max) 
 103.76 µs ± 167.08 ns   103.49 µs … 103.99 µs  in 10 ×    963 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:71 ("reconcile wide-siblings (320 defs)") ok
time (mean ± σ)         range (min … max) 
   1.37 ms ±   3.61 µs     1.36 ms …   1.37 ms  in 10 ×     73 runs
[dowdiness/canopy] bench projection/reconcile_lcs_benchmark_wbtest.mbt:76 ("reconcile wide-siblings (1000 defs)") ok
time (mean ± σ)         range (min … max) 
  13.19 ms ±  39.58 µs    13.16 ms …  13.27 ms  in 10 ×      8 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:148 ("fp_incr unchanged (20 defs)") ok
time (mean ± σ)         range (min … max) 
   8.39 µs ±  17.88 ns     8.36 µs …   8.41 µs  in 10 ×  11888 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:157 ("fp_incr unchanged (80 defs)") ok
time (mean ± σ)         range (min … max) 
  50.80 µs ± 649.06 ns    50.19 µs …  51.93 µs  in 10 ×   1957 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:166 ("fp_incr unchanged (320 defs)") ok
time (mean ± σ)         range (min … max) 
 569.46 µs ± 546.21 ns   568.68 µs … 570.44 µs  in 10 ×    176 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:175 ("fp_incr unchanged (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   5.11 ms ±  12.99 µs     5.10 ms …   5.13 ms  in 10 ×     20 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:186 ("fp_incr tail (20 defs)") ok
time (mean ± σ)         range (min … max) 
  16.36 µs ±  39.18 ns    16.32 µs …  16.45 µs  in 10 ×   6108 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:195 ("fp_incr tail (80 defs)") ok
time (mean ± σ)         range (min … max) 
  84.69 µs ± 204.36 ns    84.45 µs …  85.12 µs  in 10 ×   1183 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:204 ("fp_incr tail (320 defs)") ok
time (mean ± σ)         range (min … max) 
 733.50 µs ±   3.30 µs   730.43 µs … 742.07 µs  in 10 ×    137 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:213 ("fp_incr tail (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   6.30 ms ±  20.36 µs     6.27 ms …   6.33 ms  in 10 ×     16 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:224 ("fp_incr shifted (20 defs)") ok
time (mean ± σ)         range (min … max) 
  21.74 µs ±  47.56 ns    21.66 µs …  21.81 µs  in 10 ×   4612 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:230 ("fp_incr shifted (80 defs)") ok
time (mean ± σ)         range (min … max) 
  89.24 µs ± 459.70 ns    89.01 µs …  90.53 µs  in 10 ×   1123 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:236 ("fp_incr shifted (320 defs)") ok
time (mean ± σ)         range (min … max) 
 404.41 µs ±   6.63 µs   401.14 µs … 423.10 µs  in 10 ×    250 runs
[dowdiness/canopy] bench projection/module_projection_incremental_benchmark_wbtest.mbt:242 ("fp_incr shifted (1000 defs)") ok
time (mean ± σ)         range (min … max) 
   1.35 ms ±   8.87 µs     1.34 ms …   1.36 ms  in 10 ×     75 runs
Total tests: 36, passed: 36, failed: 0. [js]
Warning: no test entry found.
Total tests: 0, passed: 0, failed: 0. [native]

event-graph-walker Benchmarks

Base branch:

Registry index updated successfully
Symbols updated successfully
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:21 ("merge - concurrent edits (2 agents x 10)") ok
time (mean ± σ)         range (min … max) 
  21.03 µs ±   2.89 µs    19.27 µs …  27.38 µs  in 10 ×   4685 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:59 ("merge - concurrent edits (2 agents x 50)") ok
time (mean ± σ)         range (min … max) 
  94.99 µs ± 272.45 ns    94.69 µs …  95.42 µs  in 10 ×   1051 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:97 ("merge - concurrent edits (2 agents x 200)") ok
time (mean ± σ)         range (min … max) 
 443.18 µs ±   1.70 µs   441.20 µs … 445.94 µs  in 10 ×    226 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:135 ("merge - many agents (5 agents x 20)") ok
time (mean ± σ)         range (min … max) 
 122.05 µs ±   1.24 µs   120.74 µs … 123.84 µs  in 10 ×    826 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:184 ("merge - with deletes (50 inserts, 25 deletes)") ok
time (mean ± σ)         range (min … max) 
  89.97 µs ± 118.44 ns    89.84 µs …  90.21 µs  in 10 ×   1113 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:230 ("merge - graph_diff advance (20 ops)") ok
time (mean ± σ)         range (min … max) 
  61.21 µs ± 166.12 ns    60.98 µs …  61.41 µs  in 10 ×   1623 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:303 ("merge - repeated small (10 iterations x 5 ops)") ok
time (mean ± σ)         range (min … max) 
  98.71 µs ± 333.09 ns    98.21 µs …  99.36 µs  in 10 ×   1011 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:341 ("merge - retreat concurrent deletes (500 items, 50 deletes)") ok
time (mean ± σ)         range (min … max) 
 211.50 µs ± 638.95 ns   210.66 µs … 212.69 µs  in 10 ×    466 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:408 ("merge - context apply operations (50 ops)") ok
time (mean ± σ)         range (min … max) 
  41.12 µs ±  20.21 µs    25.32 µs …  79.51 µs  in 10 ×   2173 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:6 ("branch - checkout (10 ops)") ok
time (mean ± σ)         range (min … max) 
   3.98 µs ±  11.35 ns     3.96 µs …   4.00 µs  in 10 ×  25063 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:29 ("branch - checkout (100 ops)") ok
time (mean ± σ)         range (min … max) 
  27.09 µs ± 273.30 ns    26.92 µs …  27.86 µs  in 10 ×   3692 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:47 ("branch - checkout (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 360.08 µs ±   1.38 µs   358.51 µs … 362.94 µs  in 10 ×    279 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:65 ("branch - advance (10 new ops)") ok
time (mean ± σ)         range (min … max) 
  11.07 µs ±   3.15 µs     8.94 µs …  16.56 µs  in 10 ×   7901 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:91 ("branch - advance (100 new ops)") ok
time (mean ± σ)         range (min … max) 
 104.90 µs ±  67.06 µs    57.87 µs … 249.18 µs  in 10 ×   1571 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:117 ("branch - checkout with concurrent branches") ok
time (mean ± σ)         range (min … max) 
  36.43 µs ± 189.88 ns    36.20 µs …  36.68 µs  in 10 ×   2748 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:145 ("branch - checkout with deletes") ok
time (mean ± σ)         range (min … max) 
  36.51 µs ±  50.94 ns    36.43 µs …  36.57 µs  in 10 ×   2760 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:176 ("branch - repeated advance steady-state (10 iterations)") ok
time (mean ± σ)         range (min … max) 
  26.87 µs ± 671.89 ns    26.34 µs …  28.27 µs  in 10 ×   3644 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:220 ("branch - repeated advance with oplog mutations (10 iterations)") ok
time (mean ± σ)         range (min … max) 
   6.94 ms ±   3.49 ms     2.59 ms …  12.54 ms  in 10 ×     67 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:246 ("branch - to_text (100 chars)") ok
time (mean ± σ)         range (min … max) 
  11.87 µs ±  65.44 ns    11.80 µs …  12.00 µs  in 10 ×   8342 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:264 ("branch - to_text (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 122.58 µs ±   1.28 µs   121.83 µs … 126.18 µs  in 10 ×    823 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:285 ("branch - single advance (1 new op)") ok
time (mean ± σ)         range (min … max) 
   4.04 µs ± 349.49 ns     3.83 µs …   4.92 µs  in 10 ×  25558 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:311 ("branch - single advance (50 new ops)") ok
time (mean ± σ)         range (min … max) 
  49.91 µs ±  33.86 µs    30.03 µs … 116.12 µs  in 10 ×   2076 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:342 ("branch - realistic typing (50 chars)") ok
time (mean ± σ)         range (min … max) 
  17.34 ms ±   5.63 ms     8.52 ms …  24.80 ms  in 10 ×     21 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:375 ("branch - concurrent merge scenario") ok
time (mean ± σ)         range (min … max) 
  14.10 µs ±   4.14 µs    12.22 µs …  25.76 µs  in 10 ×   7418 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:6 ("walker - linear history (10 ops)") ok
time (mean ± σ)         range (min … max) 
 638.38 ns ±   7.46 ns   628.11 ns … 648.63 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:22 ("walker - linear history (100 ops)") ok
time (mean ± σ)         range (min … max) 
   4.81 µs ±   4.58 ns     4.81 µs …   4.82 µs  in 10 ×  20728 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:38 ("walker - linear history (1000 ops)") ok
time (mean ± σ)         range (min … max) 
  45.36 µs ± 650.86 ns    44.86 µs …  46.94 µs  in 10 ×   2228 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:54 ("walker - concurrent branches (2 agents x 50)") ok
time (mean ± σ)         range (min … max) 
   6.32 µs ± 343.02 ns     6.06 µs …   7.04 µs  in 10 ×  16237 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:79 ("walker - concurrent branches (5 agents x 20)") ok
time (mean ± σ)         range (min … max) 
   6.06 µs ±   8.96 ns     6.05 µs …   6.08 µs  in 10 ×  16411 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:99 ("walker - diamond pattern (50 diamonds)") ok
time (mean ± σ)         range (min … max) 
   8.26 µs ±  34.88 ns     8.24 µs …   8.32 µs  in 10 ×  11963 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:121 ("walker - diff advance only (10 new ops)") ok
time (mean ± σ)         range (min … max) 
   3.42 µs ±   3.97 ns     3.42 µs …   3.43 µs  in 10 ×  29226 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:145 ("walker - diff with concurrent branches") ok
time (mean ± σ)         range (min … max) 
   5.54 µs ± 136.93 ns     5.48 µs …   5.92 µs  in 10 ×  18232 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:176 ("walker - large history (10000 ops)") ok
time (mean ± σ)         range (min … max) 
 473.83 µs ± 791.58 ns   472.62 µs … 474.85 µs  in 10 ×    212 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:196 ("walker - linear history (100000 ops)") ok
time (mean ± σ)         range (min … max) 
   7.92 ms ±  45.83 µs     7.86 ms …   7.98 ms  in 10 ×     13 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:213 ("walker - concurrent branches (100000 ops, 5 agents)") ok
time (mean ± σ)         range (min … max) 
  28.61 ms ±   4.21 ms    26.00 ms …  36.73 ms  in 10 ×      4 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:6 ("version_vector - create (1 agent)") ok
time (mean ± σ)         range (min … max) 
  52.80 ns ±   0.44 ns    51.97 ns …  53.27 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:15 ("version_vector - create (5 agents)") ok
time (mean ± σ)         range (min … max) 
 153.79 ns ±   0.59 ns   153.20 ns … 155.15 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:29 ("version_vector - create (20 agents)") ok
time (mean ± σ)         range (min … max) 
   1.19 µs ±   0.64 ns     1.19 µs …   1.19 µs  in 10 ×  83721 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:42 ("version_vector - compare equal (5 agents)") ok
time (mean ± σ)         range (min … max) 
 188.11 ns ±   0.51 ns   187.67 ns … 189.10 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:63 ("version_vector - compare <= (5 agents)") ok
time (mean ± σ)         range (min … max) 
 132.53 ns ±   0.66 ns   131.76 ns … 133.33 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:84 ("version_vector - compare <= (20 agents)") ok
time (mean ± σ)         range (min … max) 
 528.42 ns ±   1.25 ns   526.67 ns … 529.85 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:100 ("version_vector - merge (5 agents)") ok
time (mean ± σ)         range (min … max) 
 221.04 ns ±   0.70 ns   220.25 ns … 222.08 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:118 ("version_vector - merge (20 agents)") ok
time (mean ± σ)         range (min … max) 
   1.33 µs ±   1.02 ns     1.32 µs …   1.33 µs  in 10 ×  75419 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:134 ("version_vector - includes (5 agents)") ok
time (mean ± σ)         range (min … max) 
 162.06 ns ±   1.11 ns   160.76 ns … 163.75 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:153 ("version_vector - concurrent (5 agents)") ok
time (mean ± σ)         range (min … max) 
 133.87 ns ±   0.64 ns   133.02 ns … 134.68 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:170 ("version_vector - from_frontier (10 ops)") ok
time (mean ± σ)         range (min … max) 
 595.33 ns ±   2.87 ns   590.14 ns … 597.90 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:186 ("version_vector - from_frontier (100 ops, 5 agents)") ok
time (mean ± σ)         range (min … max) 
   5.02 µs ±   7.63 ns     5.01 µs …   5.03 µs  in 10 ×  19956 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:206 ("version_vector - to_frontier (5 agents)") ok
time (mean ± σ)         range (min … max) 
 214.81 ns ±   0.53 ns   214.14 ns … 215.77 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:230 ("version_vector - roundtrip (5 agents)") ok
time (mean ± σ)         range (min … max) 
   5.28 µs ±  10.74 ns     5.27 µs …   5.31 µs  in 10 ×  18930 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:251 ("version_vector - agents (5 agents)") ok
time (mean ± σ)         range (min … max) 
  77.35 ns ±   0.67 ns    76.35 ns …  78.39 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:266 ("version_vector - length (20 agents)") ok
time (mean ± σ)         range (min … max) 
  13.30 ns ±   0.43 ns    12.77 ns …  13.97 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:20 ("bench: cache invalidate + position query (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 195.27 µs ±   1.26 µs   193.98 µs … 197.71 µs  in 10 ×    473 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:31 ("bench: cache invalidate + position query (5000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.95 ms ±  46.15 µs     2.90 ms …   3.02 ms  in 10 ×     34 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:41 ("bench: cache invalidate + position query (10000 chars)") ok
time (mean ± σ)         range (min … max) 
   9.49 ms ± 201.69 µs     9.29 ms …   9.91 ms  in 10 ×     11 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:57 ("bench: 10 remote inserts + queries (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
   3.51 ms ±  38.46 µs     3.47 ms …   3.58 ms  in 10 ×     27 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:84 ("bench: 10 remote inserts + queries (5000-char doc)") ok
time (mean ± σ)         range (min … max) 
  31.76 ms ± 614.94 µs    30.92 ms …  33.13 ms  in 10 ×      4 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:113 ("bench: warm cache position query (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 100.68 ns ±   0.33 ns   100.32 ns … 101.27 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:120 ("bench: warm cache position query (10000 chars)") ok
time (mean ± σ)         range (min … max) 
 101.11 ns ±   0.32 ns   100.73 ns … 101.70 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/fugue/tree_position_benchmark.mbt:20 ("bench: lv_to_position middle of 10K tree") ok
time (mean ± σ)         range (min … max) 
 612.76 µs ±   7.35 µs   608.34 µs … 632.59 µs  in 10 ×    165 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:2 ("jump - sequential append 1K") ok
time (mean ± σ)         range (min … max) 
 196.53 µs ±  33.03 µs   164.10 µs … 232.43 µs  in 10 ×    403 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:26 ("jump - concurrent insert into 1K doc") ok
time (mean ± σ)         range (min … max) 
 159.34 µs ± 597.80 ns   158.63 µs … 160.39 µs  in 10 ×    630 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:58 ("jump - concurrent insert into 10K doc") ok
time (mean ± σ)         range (min … max) 
   4.47 ms ± 107.04 µs     4.32 ms …   4.65 ms  in 10 ×     23 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:90 ("jump - degenerate chain remote insert") ok
time (mean ± σ)         range (min … max) 
 159.75 µs ± 374.12 ns   159.36 µs … 160.45 µs  in 10 ×    626 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:6 ("oplog - insert (100 ops)") ok
time (mean ± σ)         range (min … max) 
  37.16 µs ±   1.03 µs    36.62 µs …  40.04 µs  in 10 ×   2360 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:20 ("oplog - insert (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 467.26 µs ±   1.41 µs   465.51 µs … 469.67 µs  in 10 ×    215 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:34 ("oplog - insert and delete mix (100 ops)") ok
time (mean ± σ)         range (min … max) 
  54.01 µs ±   1.03 µs    53.25 µs …  56.74 µs  in 10 ×   1854 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:58 ("oplog - apply_remote (50 ops)") ok
time (mean ± σ)         range (min … max) 
  25.92 µs ± 124.94 ns    25.69 µs …  26.08 µs  in 10 ×   3871 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:79 ("oplog - get_op (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 127.45 ns ±   0.76 ns   126.62 ns … 128.98 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:97 ("oplog - get_frontier (single agent)") ok
time (mean ± σ)         range (min … max) 
  22.55 ns ±   0.28 ns    22.07 ns …  22.89 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:112 ("oplog - get_frontier (5 agents)") ok
time (mean ± σ)         range (min … max) 
  25.99 ns ±   0.38 ns    25.46 ns …  26.52 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:134 ("oplog - walk_and_collect (100 ops)") ok
time (mean ± σ)         range (min … max) 
   8.37 µs ± 105.89 ns     8.27 µs …   8.56 µs  in 10 ×  11598 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:150 ("oplog - walk_and_collect (concurrent)") ok
time (mean ± σ)         range (min … max) 
  17.18 µs ±  60.26 ns    17.07 µs …  17.28 µs  in 10 ×   5228 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:177 ("oplog - diff_and_collect (advance 20)") ok
time (mean ± σ)         range (min … max) 
   5.04 µs ±   7.86 ns     5.03 µs …   5.05 µs  in 10 ×  19766 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:202 ("oplog - walk_filtered (inserts only)") ok
time (mean ± σ)         range (min … max) 
   7.41 µs ± 149.88 ns     7.30 µs …   7.70 µs  in 10 ×  14269 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:233 ("oplog - sequential typing (500 chars)") ok
time (mean ± σ)         range (min … max) 
 211.88 µs ± 624.47 ns   210.93 µs … 212.98 µs  in 10 ×    475 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:249 ("oplog - random position inserts (100 ops)") ok
time (mean ± σ)         range (min … max) 
  36.40 µs ±  84.06 ns    36.25 µs …  36.51 µs  in 10 ×   2763 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:270 ("oplog - sequential typing (100000 chars)") ok
time (mean ± σ)         range (min … max) 
 172.44 ms ±  27.90 ms   130.53 ms … 196.66 ms  in 10 ×      1 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:287 ("oplog - diff_and_collect (100000 ops advance)") ok
time (mean ± σ)         range (min … max) 
  68.36 ms ±  16.49 ms    47.49 ms …  89.82 ms  in 10 ×      2 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:10 ("text - insert append (100 chars)") ok
time (mean ± σ)         range (min … max) 
  97.90 µs ± 312.71 ns    97.41 µs …  98.39 µs  in 10 ×    889 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:22 ("text - insert append (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   1.44 ms ±  13.90 µs     1.43 ms …   1.48 ms  in 10 ×     72 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:35 ("text - insert prepend (100 chars)") ok
time (mean ± σ)         range (min … max) 
 175.74 µs ±   9.02 µs   171.21 µs … 200.79 µs  in 10 ×    578 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:51 ("text - delete (100 deletes from 100-char doc)") ok
time (mean ± σ)         range (min … max) 
 242.98 µs ± 325.04 ns   242.52 µs … 243.52 µs  in 10 ×    410 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:70 ("text - text() (100-char doc)") ok
time (mean ± σ)         range (min … max) 
  14.72 µs ± 179.02 ns    14.59 µs …  15.14 µs  in 10 ×   6753 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:83 ("text - text() (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
 150.46 µs ± 354.43 ns   150.10 µs … 151.18 µs  in 10 ×    666 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:96 ("text - len() (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
  13.17 ns ±   0.50 ns    12.57 ns …  13.89 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:113 ("text - sync export_all (100 ops)") ok
time (mean ± σ)         range (min … max) 
 105.71 ns ±   0.72 ns   104.66 ns … 106.73 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:126 ("text - sync export_all (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 106.12 ns ±   2.15 ns   104.98 ns … 111.87 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:139 ("text - sync export_since (50-op delta, 1000-op base)") ok
time (mean ± σ)         range (min … max) 
  35.50 µs ±   1.10 µs    34.86 µs …  38.35 µs  in 10 ×   2707 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:156 ("text - sync apply (50 remote ops)") ok
time (mean ± σ)         range (min … max) 
  47.85 µs ± 365.13 ns    47.34 µs …  48.41 µs  in 10 ×   2097 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:171 ("text - sync apply (500 remote ops)") ok
time (mean ± σ)         range (min … max) 
 613.39 µs ±   1.94 µs   610.09 µs … 615.96 µs  in 10 ×    161 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:186 ("text - bidirectional sync (2 peers, 50 ops each)") ok
time (mean ± σ)         range (min … max) 
 101.86 µs ± 252.02 ns   101.58 µs … 102.37 µs  in 10 ×    986 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:216 ("text - checkout (midpoint of 100-op doc)") ok
time (mean ± σ)         range (min … max) 
  13.41 µs ±  42.77 ns    13.36 µs …  13.50 µs  in 10 ×   7340 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:233 ("text - checkout (midpoint of 1000-op doc)") ok
time (mean ± σ)         range (min … max) 
 156.07 µs ± 415.74 ns   155.46 µs … 156.76 µs  in 10 ×    641 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:256 ("text - undo record_insert (100 ops, 1 group)") ok
time (mean ± σ)         range (min … max) 
   2.16 µs ± 213.19 ns     2.02 µs …   2.61 µs  in 10 ×  49506 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:269 ("text - undo record_insert (100 ops, 100 groups)") ok
time (mean ± σ)         range (min … max) 
   2.43 µs ±   7.38 ns     2.42 µs …   2.44 µs  in 10 ×  40940 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:281 ("text - undo undo() (10-op group)") ok
time (mean ± σ)         range (min … max) 
  30.13 µs ± 135.42 ns    29.95 µs …  30.27 µs  in 10 ×   3278 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:295 ("text - undo undo() (50-op group)") ok
time (mean ± σ)         range (min … max) 
 493.72 µs ±   1.55 µs   491.60 µs … 496.80 µs  in 10 ×    203 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:309 ("text - undo undo+redo roundtrip (10-op group)") ok
time (mean ± σ)         range (min … max) 
  33.43 µs ±  50.32 ns    33.36 µs …  33.50 µs  in 10 ×   3002 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:324 ("text - undo 10 undo+redo cycles (10-op group)") ok
time (mean ± σ)         range (min … max) 
 293.53 µs ±   2.08 µs   290.65 µs … 296.85 µs  in 10 ×    343 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:17 ("cache - sequential append (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   1.35 ms ±  18.81 µs     1.32 ms …   1.38 ms  in 10 ×     74 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:34 ("cache - alternating pos (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   3.48 ms ±  21.90 µs     3.45 ms …   3.51 ms  in 10 ×     29 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:52 ("cache - jump to pos 0 every 10 chars (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.20 ms ±  12.36 µs     2.18 ms …   2.22 ms  in 10 ×     47 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:71 ("cache - jump to middle every 10 chars (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.92 ms ±  19.56 µs     2.88 ms …   2.94 ms  in 10 ×     34 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:94 ("cache - single non-seq insert on 1000-char doc") ok
time (mean ± σ)         range (min … max) 
   7.72 µs ±   1.07 µs     6.54 µs …  10.20 µs  in 10 ×  14966 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:108 ("cache - single non-seq insert on 5000-char doc") ok
time (mean ± σ)         range (min … max) 
   7.52 µs ±   1.23 µs     6.38 µs …   9.89 µs  in 10 ×  13842 runs
Total tests: 105, passed: 105, failed: 0.

PR branch:

Registry index updated successfully
Symbols updated successfully
Using cached dowdiness/rle@0.2.0
Downloading dowdiness/alga@0.3.0
Downloading dowdiness/btree@0.1.0
Downloading dowdiness/order-tree@0.1.0
Downloading moonbitlang/quickcheck@0.11.2
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:21 ("merge - concurrent edits (2 agents x 10)") ok
time (mean ± σ)         range (min … max) 
  18.65 µs ± 684.56 ns    18.06 µs …  20.21 µs  in 10 ×   5312 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:59 ("merge - concurrent edits (2 agents x 50)") ok
time (mean ± σ)         range (min … max) 
  93.37 µs ± 244.52 ns    92.89 µs …  93.73 µs  in 10 ×   1071 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:97 ("merge - concurrent edits (2 agents x 200)") ok
time (mean ± σ)         range (min … max) 
 435.36 µs ±   1.03 µs   433.83 µs … 437.20 µs  in 10 ×    229 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:135 ("merge - many agents (5 agents x 20)") ok
time (mean ± σ)         range (min … max) 
 121.13 µs ± 402.18 ns   120.65 µs … 121.75 µs  in 10 ×    836 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:184 ("merge - with deletes (50 inserts, 25 deletes)") ok
time (mean ± σ)         range (min … max) 
  88.01 µs ± 207.90 ns    87.76 µs …  88.40 µs  in 10 ×   1139 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:230 ("merge - graph_diff advance (20 ops)") ok
time (mean ± σ)         range (min … max) 
  61.78 µs ± 337.84 ns    61.25 µs …  62.17 µs  in 10 ×   1620 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:303 ("merge - repeated small (10 iterations x 5 ops)") ok
time (mean ± σ)         range (min … max) 
  96.42 µs ± 669.44 ns    95.53 µs …  97.24 µs  in 10 ×   1034 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:341 ("merge - retreat concurrent deletes (500 items, 50 deletes)") ok
time (mean ± σ)         range (min … max) 
 222.10 µs ±  18.28 µs   208.83 µs … 262.12 µs  in 10 ×    473 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_merge_benchmark.mbt:408 ("merge - context apply operations (50 ops)") ok
time (mean ± σ)         range (min … max) 
  39.35 µs ±  19.96 µs    25.70 µs …  82.01 µs  in 10 ×   2118 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:6 ("branch - checkout (10 ops)") ok
time (mean ± σ)         range (min … max) 
   3.91 µs ±  60.27 ns     3.87 µs …   4.03 µs  in 10 ×  25846 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:29 ("branch - checkout (100 ops)") ok
time (mean ± σ)         range (min … max) 
  26.91 µs ± 346.58 ns    26.65 µs …  27.71 µs  in 10 ×   3600 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:47 ("branch - checkout (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 363.09 µs ±  16.06 µs   354.01 µs … 406.68 µs  in 10 ×    282 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:65 ("branch - advance (10 new ops)") ok
time (mean ± σ)         range (min … max) 
  12.16 µs ±   4.56 µs     8.80 µs …  21.48 µs  in 10 ×   8890 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:91 ("branch - advance (100 new ops)") ok
time (mean ± σ)         range (min … max) 
  83.33 µs ±  43.45 µs    57.25 µs … 188.24 µs  in 10 ×   1206 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:117 ("branch - checkout with concurrent branches") ok
time (mean ± σ)         range (min … max) 
  35.73 µs ± 181.28 ns    35.51 µs …  36.01 µs  in 10 ×   2749 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:145 ("branch - checkout with deletes") ok
time (mean ± σ)         range (min … max) 
  35.97 µs ± 177.59 ns    35.77 µs …  36.29 µs  in 10 ×   2784 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:176 ("branch - repeated advance steady-state (10 iterations)") ok
time (mean ± σ)         range (min … max) 
  26.79 µs ± 692.60 ns    26.27 µs …  28.15 µs  in 10 ×   3706 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:220 ("branch - repeated advance with oplog mutations (10 iterations)") ok
time (mean ± σ)         range (min … max) 
   7.15 ms ±   3.79 ms     2.63 ms …  13.44 ms  in 10 ×     68 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:246 ("branch - to_text (100 chars)") ok
time (mean ± σ)         range (min … max) 
  11.76 µs ±  28.29 ns    11.73 µs …  11.81 µs  in 10 ×   8415 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:264 ("branch - to_text (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 122.42 µs ± 386.72 ns   121.96 µs … 123.07 µs  in 10 ×    818 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:285 ("branch - single advance (1 new op)") ok
time (mean ± σ)         range (min … max) 
   4.11 µs ± 387.11 ns     3.84 µs …   4.99 µs  in 10 ×  24148 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:311 ("branch - single advance (50 new ops)") ok
time (mean ± σ)         range (min … max) 
  51.39 µs ±  29.44 µs    30.50 µs … 116.40 µs  in 10 ×   2238 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:342 ("branch - realistic typing (50 chars)") ok
time (mean ± σ)         range (min … max) 
  16.49 ms ±   7.74 ms     6.71 ms …  31.36 ms  in 10 ×     28 runs
[dowdiness/event-graph-walker] bench internal/branch/branch_benchmark.mbt:375 ("branch - concurrent merge scenario") ok
time (mean ± σ)         range (min … max) 
  17.40 µs ±   6.74 µs    12.30 µs …  33.18 µs  in 10 ×   7541 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:6 ("walker - linear history (10 ops)") ok
time (mean ± σ)         range (min … max) 
 629.03 ns ±   8.35 ns   619.20 ns … 640.70 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:22 ("walker - linear history (100 ops)") ok
time (mean ± σ)         range (min … max) 
   4.84 µs ±   7.33 ns     4.83 µs …   4.85 µs  in 10 ×  20721 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:38 ("walker - linear history (1000 ops)") ok
time (mean ± σ)         range (min … max) 
  45.25 µs ± 544.55 ns    44.73 µs …  46.51 µs  in 10 ×   2212 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:54 ("walker - concurrent branches (2 agents x 50)") ok
time (mean ± σ)         range (min … max) 
   6.04 µs ±  12.80 ns     6.03 µs …   6.07 µs  in 10 ×  16551 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:79 ("walker - concurrent branches (5 agents x 20)") ok
time (mean ± σ)         range (min … max) 
   6.03 µs ±   9.31 ns     6.01 µs …   6.04 µs  in 10 ×  16586 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:99 ("walker - diamond pattern (50 diamonds)") ok
time (mean ± σ)         range (min … max) 
   8.28 µs ±  11.02 ns     8.27 µs …   8.30 µs  in 10 ×  12045 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:121 ("walker - diff advance only (10 new ops)") ok
time (mean ± σ)         range (min … max) 
   3.57 µs ±   3.99 ns     3.56 µs …   3.57 µs  in 10 ×  27970 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:145 ("walker - diff with concurrent branches") ok
time (mean ± σ)         range (min … max) 
   5.53 µs ±   8.06 ns     5.52 µs …   5.54 µs  in 10 ×  18101 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:176 ("walker - large history (10000 ops)") ok
time (mean ± σ)         range (min … max) 
 471.97 µs ± 744.00 ns   470.81 µs … 472.95 µs  in 10 ×    213 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:196 ("walker - linear history (100000 ops)") ok
time (mean ± σ)         range (min … max) 
   7.49 ms ±  43.34 µs     7.43 ms …   7.57 ms  in 10 ×     14 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/walker_benchmark.mbt:213 ("walker - concurrent branches (100000 ops, 5 agents)") ok
time (mean ± σ)         range (min … max) 
  28.57 ms ±   3.76 ms    25.56 ms …  34.74 ms  in 10 ×      4 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:6 ("version_vector - create (1 agent)") ok
time (mean ± σ)         range (min … max) 
  52.42 ns ±   0.60 ns    51.51 ns …  53.66 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:15 ("version_vector - create (5 agents)") ok
time (mean ± σ)         range (min … max) 
 150.03 ns ±   0.52 ns   149.35 ns … 150.95 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:29 ("version_vector - create (20 agents)") ok
time (mean ± σ)         range (min … max) 
   1.16 µs ±   0.61 ns     1.16 µs …   1.16 µs  in 10 ×  86588 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:42 ("version_vector - compare equal (5 agents)") ok
time (mean ± σ)         range (min … max) 
 186.14 ns ±   0.17 ns   185.86 ns … 186.47 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:63 ("version_vector - compare <= (5 agents)") ok
time (mean ± σ)         range (min … max) 
 132.53 ns ±   0.95 ns   131.54 ns … 134.47 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:84 ("version_vector - compare <= (20 agents)") ok
time (mean ± σ)         range (min … max) 
 528.58 ns ±   2.25 ns   525.86 ns … 532.68 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:100 ("version_vector - merge (5 agents)") ok
time (mean ± σ)         range (min … max) 
 217.90 ns ±   0.79 ns   217.02 ns … 218.94 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:118 ("version_vector - merge (20 agents)") ok
time (mean ± σ)         range (min … max) 
   1.32 µs ±   1.04 ns     1.32 µs …   1.32 µs  in 10 ×  75544 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:134 ("version_vector - includes (5 agents)") ok
time (mean ± σ)         range (min … max) 
 160.02 ns ±   1.23 ns   158.50 ns … 162.28 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:153 ("version_vector - concurrent (5 agents)") ok
time (mean ± σ)         range (min … max) 
 134.19 ns ±   0.68 ns   133.22 ns … 134.86 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:170 ("version_vector - from_frontier (10 ops)") ok
time (mean ± σ)         range (min … max) 
 592.06 ns ±   2.04 ns   590.23 ns … 596.85 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:186 ("version_vector - from_frontier (100 ops, 5 agents)") ok
time (mean ± σ)         range (min … max) 
   5.04 µs ±   5.96 ns     5.03 µs …   5.05 µs  in 10 ×  19764 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:206 ("version_vector - to_frontier (5 agents)") ok
time (mean ± σ)         range (min … max) 
 212.82 ns ±   0.56 ns   211.80 ns … 213.59 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:230 ("version_vector - roundtrip (5 agents)") ok
time (mean ± σ)         range (min … max) 
   5.21 µs ±  31.75 ns     5.18 µs …   5.26 µs  in 10 ×  19266 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:251 ("version_vector - agents (5 agents)") ok
time (mean ± σ)         range (min … max) 
  76.58 ns ±   0.72 ns    75.70 ns …  77.64 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/causal_graph/version_vector_benchmark.mbt:266 ("version_vector - length (20 agents)") ok
time (mean ± σ)         range (min … max) 
  13.19 ns ±   0.49 ns    12.69 ns …  13.93 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:20 ("bench: cache invalidate + position query (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 191.95 µs ± 421.34 ns   191.37 µs … 192.63 µs  in 10 ×    480 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:31 ("bench: cache invalidate + position query (5000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.98 ms ±  53.10 µs     2.91 ms …   3.04 ms  in 10 ×     34 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:41 ("bench: cache invalidate + position query (10000 chars)") ok
time (mean ± σ)         range (min … max) 
   9.55 ms ± 187.66 µs     9.40 ms …   9.91 ms  in 10 ×     11 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:57 ("bench: 10 remote inserts + queries (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
   3.49 ms ±  47.65 µs     3.42 ms …   3.56 ms  in 10 ×     27 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:84 ("bench: 10 remote inserts + queries (5000-char doc)") ok
time (mean ± σ)         range (min … max) 
  31.33 ms ±   1.00 ms    30.24 ms …  33.07 ms  in 10 ×      4 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:113 ("bench: warm cache position query (1000 chars)") ok
time (mean ± σ)         range (min … max) 
 103.04 ns ±   0.49 ns   102.46 ns … 103.99 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/document/document_benchmark.mbt:120 ("bench: warm cache position query (10000 chars)") ok
time (mean ± σ)         range (min … max) 
 102.76 ns ±   0.25 ns   102.35 ns … 103.09 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/fugue/tree_position_benchmark.mbt:20 ("bench: lv_to_position middle of 10K tree") ok
time (mean ± σ)         range (min … max) 
 556.07 µs ±   2.10 µs   553.78 µs … 559.48 µs  in 10 ×    181 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:2 ("jump - sequential append 1K") ok
time (mean ± σ)         range (min … max) 
 165.77 µs ±   1.04 µs   164.33 µs … 167.22 µs  in 10 ×    601 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:26 ("jump - concurrent insert into 1K doc") ok
time (mean ± σ)         range (min … max) 
 158.96 µs ± 339.82 ns   158.54 µs … 159.49 µs  in 10 ×    632 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:58 ("jump - concurrent insert into 10K doc") ok
time (mean ± σ)         range (min … max) 
   4.52 ms ± 149.37 µs     4.36 ms …   4.76 ms  in 10 ×     23 runs
[dowdiness/event-graph-walker] bench internal/fugue/jump_ancestors_benchmark.mbt:90 ("jump - degenerate chain remote insert") ok
time (mean ± σ)         range (min … max) 
 161.48 µs ± 495.34 ns   160.84 µs … 162.20 µs  in 10 ×    619 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:6 ("oplog - insert (100 ops)") ok
time (mean ± σ)         range (min … max) 
  37.36 µs ±   1.00 µs    36.48 µs …  39.93 µs  in 10 ×   2702 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:20 ("oplog - insert (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 474.54 µs ±   1.84 µs   472.27 µs … 478.31 µs  in 10 ×    211 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:34 ("oplog - insert and delete mix (100 ops)") ok
time (mean ± σ)         range (min … max) 
  54.26 µs ± 252.58 ns    53.87 µs …  54.61 µs  in 10 ×   1843 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:58 ("oplog - apply_remote (50 ops)") ok
time (mean ± σ)         range (min … max) 
  25.74 µs ± 105.72 ns    25.64 µs …  25.95 µs  in 10 ×   3889 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:79 ("oplog - get_op (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 151.77 ns ±  31.88 ns   130.56 ns … 223.84 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:97 ("oplog - get_frontier (single agent)") ok
time (mean ± σ)         range (min … max) 
  23.28 ns ±   0.67 ns    22.33 ns …  24.23 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:112 ("oplog - get_frontier (5 agents)") ok
time (mean ± σ)         range (min … max) 
  26.80 ns ±   0.29 ns    26.26 ns …  27.11 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:134 ("oplog - walk_and_collect (100 ops)") ok
time (mean ± σ)         range (min … max) 
   8.49 µs ±  57.00 ns     8.44 µs …   8.64 µs  in 10 ×  11226 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:150 ("oplog - walk_and_collect (concurrent)") ok
time (mean ± σ)         range (min … max) 
  17.27 µs ±  50.68 ns    17.18 µs …  17.33 µs  in 10 ×   5780 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:177 ("oplog - diff_and_collect (advance 20)") ok
time (mean ± σ)         range (min … max) 
   5.15 µs ±   6.78 ns     5.14 µs …   5.16 µs  in 10 ×  19398 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:202 ("oplog - walk_filtered (inserts only)") ok
time (mean ± σ)         range (min … max) 
   7.50 µs ±  22.84 ns     7.48 µs …   7.55 µs  in 10 ×  14030 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:233 ("oplog - sequential typing (500 chars)") ok
time (mean ± σ)         range (min … max) 
 211.79 µs ± 899.21 ns   210.62 µs … 213.49 µs  in 10 ×    475 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:249 ("oplog - random position inserts (100 ops)") ok
time (mean ± σ)         range (min … max) 
  37.09 µs ± 316.00 ns    36.64 µs …  37.56 µs  in 10 ×   2709 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:270 ("oplog - sequential typing (100000 chars)") ok
time (mean ± σ)         range (min … max) 
 160.03 ms ±  25.98 ms   122.45 ms … 191.54 ms  in 10 ×      1 runs
[dowdiness/event-graph-walker] bench internal/oplog/oplog_benchmark.mbt:287 ("oplog - diff_and_collect (100000 ops advance)") ok
time (mean ± σ)         range (min … max) 
  65.64 ms ±  21.41 ms    40.75 ms …  87.81 ms  in 10 ×      2 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:10 ("text - insert append (100 chars)") ok
time (mean ± σ)         range (min … max) 
  98.18 µs ± 349.97 ns    97.81 µs …  98.75 µs  in 10 ×    880 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:22 ("text - insert append (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   1.35 ms ±   9.01 µs     1.34 ms …   1.37 ms  in 10 ×     74 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:35 ("text - insert prepend (100 chars)") ok
time (mean ± σ)         range (min … max) 
 171.00 µs ± 472.81 ns   170.28 µs … 171.75 µs  in 10 ×    583 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:51 ("text - delete (100 deletes from 100-char doc)") ok
time (mean ± σ)         range (min … max) 
 246.91 µs ±   1.10 µs   245.70 µs … 248.70 µs  in 10 ×    404 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:70 ("text - text() (100-char doc)") ok
time (mean ± σ)         range (min … max) 
  14.90 µs ± 109.89 ns    14.78 µs …  15.18 µs  in 10 ×   6690 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:83 ("text - text() (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
 152.28 µs ± 433.91 ns   151.63 µs … 152.76 µs  in 10 ×    627 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:96 ("text - len() (1000-char doc)") ok
time (mean ± σ)         range (min … max) 
  13.15 ns ±   0.38 ns    12.76 ns …  13.80 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:113 ("text - sync export_all (100 ops)") ok
time (mean ± σ)         range (min … max) 
 106.52 ns ±   0.54 ns   105.93 ns … 107.38 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:126 ("text - sync export_all (1000 ops)") ok
time (mean ± σ)         range (min … max) 
 107.15 ns ±   0.44 ns   106.58 ns … 107.76 ns  in 10 × 100000 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:139 ("text - sync export_since (50-op delta, 1000-op base)") ok
time (mean ± σ)         range (min … max) 
  36.44 µs ± 206.98 ns    36.21 µs …  36.94 µs  in 10 ×   2765 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:156 ("text - sync apply (50 remote ops)") ok
time (mean ± σ)         range (min … max) 
  47.42 µs ± 196.85 ns    47.15 µs …  47.73 µs  in 10 ×   2119 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:171 ("text - sync apply (500 remote ops)") ok
time (mean ± σ)         range (min … max) 
 643.23 µs ±  54.66 µs   606.30 µs … 749.24 µs  in 10 ×    165 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:186 ("text - bidirectional sync (2 peers, 50 ops each)") ok
time (mean ± σ)         range (min … max) 
 101.04 µs ± 199.33 ns   100.65 µs … 101.37 µs  in 10 ×    988 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:216 ("text - checkout (midpoint of 100-op doc)") ok
time (mean ± σ)         range (min … max) 
  13.54 µs ±  89.46 ns    13.43 µs …  13.66 µs  in 10 ×   7313 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:233 ("text - checkout (midpoint of 1000-op doc)") ok
time (mean ± σ)         range (min … max) 
 155.91 µs ± 468.15 ns   155.23 µs … 156.59 µs  in 10 ×    642 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:256 ("text - undo record_insert (100 ops, 1 group)") ok
time (mean ± σ)         range (min … max) 
   2.02 µs ±   2.28 ns     2.01 µs …   2.02 µs  in 10 ×  49562 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:269 ("text - undo record_insert (100 ops, 100 groups)") ok
time (mean ± σ)         range (min … max) 
   2.43 µs ±   6.57 ns     2.42 µs …   2.44 µs  in 10 ×  41094 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:281 ("text - undo undo() (10-op group)") ok
time (mean ± σ)         range (min … max) 
  30.53 µs ± 134.28 ns    30.36 µs …  30.81 µs  in 10 ×   3246 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:295 ("text - undo undo() (50-op group)") ok
time (mean ± σ)         range (min … max) 
 492.55 µs ±   2.28 µs   489.42 µs … 497.19 µs  in 10 ×    203 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:309 ("text - undo undo+redo roundtrip (10-op group)") ok
time (mean ± σ)         range (min … max) 
  33.73 µs ± 112.14 ns    33.58 µs …  33.88 µs  in 10 ×   2966 runs
[dowdiness/event-graph-walker] bench text/text_benchmark.mbt:324 ("text - undo 10 undo+redo cycles (10-op group)") ok
time (mean ± σ)         range (min … max) 
 293.54 µs ±   1.26 µs   291.90 µs … 295.52 µs  in 10 ×    341 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:17 ("cache - sequential append (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   1.39 ms ±   7.51 µs     1.38 ms …   1.40 ms  in 10 ×     74 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:34 ("cache - alternating pos (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   3.44 ms ±  19.76 µs     3.40 ms …   3.46 ms  in 10 ×     29 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:52 ("cache - jump to pos 0 every 10 chars (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.19 ms ±  10.48 µs     2.18 ms …   2.20 ms  in 10 ×     46 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:71 ("cache - jump to middle every 10 chars (1000 chars)") ok
time (mean ± σ)         range (min … max) 
   2.89 ms ±  14.20 µs     2.88 ms …   2.91 ms  in 10 ×     35 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:94 ("cache - single non-seq insert on 1000-char doc") ok
time (mean ± σ)         range (min … max) 
   7.90 µs ±   1.18 µs     6.74 µs …  10.31 µs  in 10 ×  14379 runs
[dowdiness/event-graph-walker] bench text/position_cache_benchmark.mbt:108 ("cache - single non-seq insert on 5000-char doc") ok
time (mean ± σ)         range (min … max) 
   7.51 µs ±   1.41 µs     6.42 µs …  11.04 µs  in 10 ×  13894 runs
Total tests: 105, passed: 105, failed: 0.

Benchmarks run with --release flag

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ade7c72d0a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/context-menu/README.md Outdated
Comment on lines +62 to +64
model. If the context menu is rendered under a scoped container or open shadow
root, use `Model::focus_cmd_within(root_id=...)` instead so item focus is looked
up through the same scoped menu strategy as `lib/menu`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid advertising shadow-root context menus prematurely

For context menus rendered inside an open shadow root, swapping item focus to focus_cmd_within is not enough: the same README flow still calls position_cmd() and subscriptions(), but those helpers resolve the panel with document.getElementById(self.id) in lib/context-menu/src/context_menu/positioning.mbt and lib/context-menu/src/context_menu/subscriptions.mbt, which cannot see shadow-root contents. In that scenario the panel will not be measured/repositioned after open, and pointer/key dismissal checks can treat interactions inside the menu as outside; please either add scoped variants for those panel lookups or narrow this guidance to plain lib/menu item focus only.

Useful? React with 👍 / 👎.

@dowdiness dowdiness merged commit 6f6e8d4 into main Jun 5, 2026
27 checks passed
@dowdiness dowdiness deleted the fix/511-menu-focus-scope branch June 5, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make headless Menu focus strategy scope-aware

1 participant