Skip to content

BE-1131: Add the run model for integration orchestration - #10402

Open
thehabbos007 wants to merge 7 commits into
mainfrom
asa/be-958-orchestration-run-model
Open

thehabbos007 wants to merge 7 commits into
mainfrom
asa/be-958-orchestration-run-model

Conversation

@thehabbos007

@thehabbos007 thehabbos007 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🌟 Purpose

Adds the hash-integrations-orchestration crate with the run model for the orchestrator. An integration run is a run function that requests its steps by name. Each step's result is recorded, so when a run is picked up again, the steps it already finished return their recorded outputs and the run continues from where it stopped. RunState is a run's state, rebuilt from its events, and it decides what each step request does.

This is the first of three PRs for BE-958. The next one adds the traits, the interpreter and an in-memory journal, and the last one adds the conformance suite and simulation tests.

🔍 Changes

  • RunState::decide answers a step request: replay the recorded output, run the step, or cancel. A retried step comes back with the earliest time it may run, not_before. If the run function asks for a different step than the one recorded, the run fails as NonDeterministic.
  • RunState::apply only accepts events that can follow the ones already recorded, and decide refuses requests once the run has finished.
  • A cancel takes effect at the next step that hasn't been recorded yet, because a worker may be in the middle of one when the request comes in.
  • Failed steps are retried with exponential backoff, calculated by backon without jitter, up to max_attempts.
  • RunState takes every timestamp from the recorded events, so the same events always give the same state. The interpreter compares not_before with its own clock.
  • Failure codes follow the definition crate's rule for names, [a-z0-9][a-z0-9_-]*. Step names and admission keys are such names joined by /, like checkpoint names, for example deliver/entities/17.
  • A Payload is JSON compared byte for byte. That's why maps in a payload are BTreeMaps, and why a PostgreSQL journal keeps payloads as text or bytea, since jsonb reorders keys. Its Debug only prints the length, because outputs can contain row values.
  • A failure is recorded as a FailureCode such as graph-unavailable. The error message itself goes to the logs, because it can contain secrets or row values.
  • Only Payload has serde. Each storage adapter (BE-959, BE-960) decides and versions how it stores runs, the same way Temporal, Restate and DBOS keep their history formats in the storage layer.
  • run_state_matches_model runs random sequences of requests and events through RunState and a reference model, and checks that they agree after every action.

⚠️ Known issues

  • There's no limit on payload size or steps per run yet. The next PR adds those.
  • RetryPolicy takes any values for now. It gets a checked constructor once definitions can set it.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hash Ready Ready Preview Nov 16, 2026 12:56pm UTC
petrinaut Ready Ready Preview Nov 16, 2026 12:56pm UTC
petrinaut-docs Ready Ready Preview Nov 16, 2026 12:56pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
hashdotdesign-tokens Ignored Ignored Preview Nov 16, 2026 12:56pm UTC

Request Review

@thehabbos007 thehabbos007 self-assigned this Nov 9, 2026
@github-actions github-actions Bot added area/deps Relates to third-party dependencies (area) area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team area/tests New or updated tests type/legal Owned by the @legal team area/apps > hash-integrations labels Nov 9, 2026
@github-advanced-security

Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.39777% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.07%. Comparing base (9249077) to head (8c18b44).
⚠️ Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
...@local/integrations/orchestration/src/state/mod.rs 97.29% 3 Missing and 1 partial ⚠️
...ibs/@local/integrations/orchestration/src/event.rs 75.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10402      +/-   ##
==========================================
+ Coverage   69.03%   69.07%   +0.03%     
==========================================
  Files        2081     2086       +5     
  Lines      214393   214662     +269     
  Branches     9256     9276      +20     
==========================================
+ Hits       148012   148274     +262     
- Misses      64494    64500       +6     
- Partials     1887     1888       +1     
Flag Coverage Δ
hash-integrations-orchestration 97.39% <97.39%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed

codspeed Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ Unable to measure the execution of 6 benchmarks

These benchmarks measured no execution time, so their results are not comparable and count as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

✅ 98 untouched benchmarks


Comparing asa/be-958-orchestration-run-model (8c18b44) with main (164699c)

Open in CodSpeed

@thehabbos007
thehabbos007 force-pushed the asa/be-958-orchestration-run-model branch from 480c18e to 17ad187 Compare November 9, 2026 12:50
@thehabbos007
thehabbos007 marked this pull request as ready for review November 9, 2026 12:51
@thehabbos007
thehabbos007 requested review from a team as code owners November 9, 2026 12:51
Copilot AI balanced review requested due to automatic review settings November 9, 2026 12:51
@veria-ai

veria-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

Reviews

@cursor

cursor Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
New library and tests only; no production runtime or storage integration in this PR.

Overview
Adds a new workspace crate hash-integrations-orchestration and registers it in the root Cargo.toml / lockfile, with integrations README noting it runs integrations as durable step sequences.

The crate defines the event-sourced run model: RunStart, RunEvent, and RunState with decide (replay recorded outputs, execute with optional not_before, cancel, or fail on non-deterministic step names) and apply (strict event ordering, invalid transitions rejected). It also introduces Payload (canonical JSON byte equality), validated StepName / AdmissionKey / FailureCode, RetryPolicy (exponential backoff via backon), and admission/function version metadata.

Coverage includes unit tests, run_state_matches_model property tests against a reference model, and turbo/task metadata for clippy and unit tests. No interpreter, journal, or app wiring yet—that is left to follow-up work.

Reviewed by Cursor Bugbot for commit 8c18b44. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Benchmark results

hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$29.4 \mathrm{ms} \pm 319 \mathrm{μs}\left({\color{gray}2.16 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.78 \mathrm{ms} \pm 34.3 \mathrm{μs}\left({\color{gray}1.59 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$14.3 \mathrm{ms} \pm 156 \mathrm{μs}\left({\color{gray}2.62 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$170 \mathrm{ms} \pm 1.76 \mathrm{ms}\left({\color{red}38.4 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$17.2 \mathrm{ms} \pm 324 \mathrm{μs}\left({\color{gray}1.15 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$27.0 \mathrm{ms} \pm 267 \mathrm{μs}\left({\color{gray}0.818 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$30.7 \mathrm{ms} \pm 318 \mathrm{μs}\left({\color{gray}2.87 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$4.11 \mathrm{ms} \pm 44.5 \mathrm{μs}\left({\color{red}5.03 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$15.3 \mathrm{ms} \pm 146 \mathrm{μs}\left({\color{red}5.89 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$4.08 \mathrm{ms} \pm 44.2 \mathrm{μs}\left({\color{gray}-1.414 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.20 \mathrm{ms} \pm 32.9 \mathrm{μs}\left({\color{gray}-1.264 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$3.55 \mathrm{ms} \pm 31.3 \mathrm{μs}\left({\color{gray}-2.405 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.60 \mathrm{ms} \pm 57.5 \mathrm{μs}\left({\color{gray}-3.465 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.90 \mathrm{ms} \pm 36.5 \mathrm{μs}\left({\color{gray}3.94 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$4.60 \mathrm{ms} \pm 45.1 \mathrm{μs}\left({\color{gray}0.384 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.69 \mathrm{ms} \pm 44.0 \mathrm{μs}\left({\color{gray}-4.263 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.69 \mathrm{ms} \pm 33.1 \mathrm{μs}\left({\color{gray}-1.508 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.40 \mathrm{ms} \pm 48.1 \mathrm{μs}\left({\color{gray}-1.362 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.75 \mathrm{ms} \pm 32.7 \mathrm{μs}\left({\color{lightgreen}-5.614 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.68 \mathrm{ms} \pm 26.1 \mathrm{μs}\left({\color{gray}-1.048 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.74 \mathrm{ms} \pm 24.2 \mathrm{μs}\left({\color{gray}-4.041 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.05 \mathrm{ms} \pm 33.1 \mathrm{μs}\left({\color{gray}-3.259 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.85 \mathrm{ms} \pm 36.1 \mathrm{μs}\left({\color{lightgreen}-5.680 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.02 \mathrm{ms} \pm 34.6 \mathrm{μs}\left({\color{gray}-3.808 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.45 \mathrm{ms} \pm 40.6 \mathrm{μs}\left({\color{red}9.11 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.95 \mathrm{ms} \pm 24.3 \mathrm{μs}\left({\color{gray}2.59 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$3.27 \mathrm{ms} \pm 36.7 \mathrm{μs}\left({\color{red}7.83 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.65 \mathrm{ms} \pm 35.7 \mathrm{μs}\left({\color{gray}1.90 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.16 \mathrm{ms} \pm 23.5 \mathrm{μs}\left({\color{gray}2.53 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$3.45 \mathrm{ms} \pm 31.1 \mathrm{μs}\left({\color{gray}2.22 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.60 \mathrm{ms} \pm 37.6 \mathrm{μs}\left({\color{gray}1.31 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.16 \mathrm{ms} \pm 25.8 \mathrm{μs}\left({\color{gray}3.56 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.47 \mathrm{ms} \pm 41.2 \mathrm{μs}\left({\color{gray}0.038 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$46.7 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{gray}2.65 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$36.9 \mathrm{ms} \pm 331 \mathrm{μs}\left({\color{red}9.56 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$40.4 \mathrm{ms} \pm 355 \mathrm{μs}\left({\color{gray}3.03 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$36.0 \mathrm{ms} \pm 377 \mathrm{μs}\left({\color{red}8.94 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$50.1 \mathrm{ms} \pm 511 \mathrm{μs}\left({\color{red}7.08 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$54.0 \mathrm{ms} \pm 547 \mathrm{μs}\left({\color{gray}4.80 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$42.2 \mathrm{ms} \pm 322 \mathrm{μs}\left({\color{gray}-1.630 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$112 \mathrm{ms} \pm 880 \mathrm{μs}\left({\color{lightgreen}-14.300 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$40.1 \mathrm{ms} \pm 2.14 \mathrm{ms}\left({\color{red}13.1 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$362 \mathrm{ms} \pm 1.88 \mathrm{ms}\left({\color{gray}3.58 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$10.9 \mathrm{ms} \pm 81.7 \mathrm{μs}\left({\color{lightgreen}-5.670 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$10.9 \mathrm{ms} \pm 81.3 \mathrm{μs}\left({\color{gray}-2.689 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$11.0 \mathrm{ms} \pm 124 \mathrm{μs}\left({\color{gray}-2.161 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$11.0 \mathrm{ms} \pm 113 \mathrm{μs}\left({\color{gray}-2.763 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$10.8 \mathrm{ms} \pm 106 \mathrm{μs}\left({\color{gray}-2.270 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$10.8 \mathrm{ms} \pm 93.5 \mathrm{μs}\left({\color{gray}-2.611 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$10.8 \mathrm{ms} \pm 103 \mathrm{μs}\left({\color{lightgreen}-5.273 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$11.0 \mathrm{ms} \pm 124 \mathrm{μs}\left({\color{lightgreen}-14.619 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$11.1 \mathrm{ms} \pm 89.9 \mathrm{μs}\left({\color{lightgreen}-6.657 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$11.2 \mathrm{ms} \pm 97.3 \mathrm{μs}\left({\color{lightgreen}-11.456 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$11.2 \mathrm{ms} \pm 105 \mathrm{μs}\left({\color{lightgreen}-26.441 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$11.2 \mathrm{ms} \pm 93.7 \mathrm{μs}\left({\color{lightgreen}-5.551 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$11.3 \mathrm{ms} \pm 109 \mathrm{μs}\left({\color{lightgreen}-16.650 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$11.2 \mathrm{ms} \pm 95.7 \mathrm{μs}\left({\color{gray}-1.640 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$11.2 \mathrm{ms} \pm 96.6 \mathrm{μs}\left({\color{lightgreen}-9.626 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$11.5 \mathrm{ms} \pm 126 \mathrm{μs}\left({\color{gray}2.88 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$11.4 \mathrm{ms} \pm 100 \mathrm{μs}\left({\color{lightgreen}-18.495 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$11.4 \mathrm{ms} \pm 131 \mathrm{μs}\left({\color{lightgreen}-20.678 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$11.2 \mathrm{ms} \pm 85.2 \mathrm{μs}\left({\color{lightgreen}-7.649 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$8.60 \mathrm{ms} \pm 88.9 \mathrm{μs}\left({\color{gray}3.61 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$59.9 \mathrm{ms} \pm 527 \mathrm{μs}\left({\color{red}7.04 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$114 \mathrm{ms} \pm 898 \mathrm{μs}\left({\color{gray}3.18 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$68.3 \mathrm{ms} \pm 749 \mathrm{μs}\left({\color{red}6.47 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$74.6 \mathrm{ms} \pm 592 \mathrm{μs}\left({\color{gray}1.19 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$82.8 \mathrm{ms} \pm 868 \mathrm{μs}\left({\color{gray}0.139 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$93.3 \mathrm{ms} \pm 801 \mathrm{μs}\left({\color{gray}4.36 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$44.5 \mathrm{ms} \pm 367 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$76.7 \mathrm{ms} \pm 605 \mathrm{μs}\left({\color{red}5.18 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$52.4 \mathrm{ms} \pm 585 \mathrm{μs}\left({\color{red}6.75 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$62.6 \mathrm{ms} \pm 556 \mathrm{μs}\left({\color{red}5.85 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$64.6 \mathrm{ms} \pm 587 \mathrm{μs}\left({\color{gray}4.85 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$64.7 \mathrm{ms} \pm 516 \mathrm{μs}\left({\color{gray}1.91 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$113 \mathrm{ms} \pm 1.00 \mathrm{ms}\left({\color{gray}-0.497 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$122 \mathrm{ms} \pm 944 \mathrm{μs}\left({\color{gray}-2.421 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$26.0 \mathrm{ms} \pm 245 \mathrm{μs}\left({\color{red}39.6 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$522 \mathrm{ms} \pm 2.79 \mathrm{ms}\left({\color{gray}4.93 \mathrm{\%}}\right) $$ Flame Graph

montekki
montekki previously approved these changes Nov 11, 2026

This branch was successfully deployed

4 active (1 outdated) and 1 inactive (outdated) deployments
Preview – hash — 8c18b44b Deployed Nov 16, 2026 by vercel[bot]
Preview – petrinaut — 8c18b44b Deployed Nov 16, 2026 by vercel[bot]
Preview – petrinaut-docs — 8c18b44b Deployed Nov 16, 2026 by vercel[bot]
pull-request — 2efbb44b Deployed Nov 9, 2026 by thehabbos007 via Sourcemaps (@apps/hash-integration-worker) #43980
Preview – hashdotdesign-tokens — 17ad1875 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/apps > hash-integrations area/deps Relates to third-party dependencies (area) area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) area/tests New or updated tests type/eng > backend Owned by the @backend team type/legal Owned by the @legal team

Development

Successfully merging this pull request may close these issues.

4 participants