Skip to main content

Crate relate_planner

Crate relate_planner 

Source
Expand description

relate-planner: bind a lowered Query to a LogicalPlan (ADR-0009), then rewrite MATCH (ADR-0024).

Module map:

  • plan — plan types, the plan entry point (consumes the Query) and the canonical plan walks (walk_plan_clauses for the full clause tree, walk_plan_parts for part-granular top-level clauses, walk_query_parts for the same part-granular walk over a not-yet-planned ir::Query)
  • [binding] — the variable-binding environment
  • [validate] — clause-level semantic validation
  • [expr_check] / [pattern] / [agg] — expression, pattern, and aggregation checks used by validation
  • [names] — output-column computation (UNION agreement, subquery exports, NEXT-stage seeds)
  • [rewrite] — post-bind MATCH rewrites
  • [order] — cardinality estimates and MATCH pattern order
  • [clause_kind] — the Cypher keyword for a parser / planner-IR clause, the one read/write/schema clause classification behind clause_mutates_store and clause_projects_rows (its published per-clause answers)
  • [access] — the one read/write/schema clause fold over a statement, shared by [namespaces] and query_type
  • [namespaces] — the ADR-0116 namespace classifiers (§2 database-administration commands, §4 system / system_ontologies gates, read/write classification); the §3 USE rules live in [use_target]
  • query_type — the Neo4j Query API v2 queryType classifier (r / w / rw / s), a projection of the shared [access] fold plus the statement’s returned columns (ADR-0332)
  • [inline] — the bounded-work plan predicate (which planned statements are quick at this engine’s scale and may run on the calling thread of a worker-stack-asserting connection, ADR-0504) and the cache-hit inline route’s containment rule (whether a raw-string plan-cache hit may run on a thread that never asserted the worker’s stack, ADR-0663)

Structs§

CrossClauseCost
Result of pricing a cross-clause MATCH pattern against nested-loop re-expansion.
DegreeMoments
The first two moments of an out-degree distribution — what a cost gate needs to price a chain of hops: the mean fanout is sum / nodes and the size-biased (excess) degree a trail meets after its first hop is sum_sq / sum - 1. Estimates on the histogram’s log2-bucket scale (each bucket read at the uniform mean of its degree range), summed over the selected labels and rel types; a node’s degrees on several selected types are crossed (independently) in sum_sq, so it stands for the node’s total degree.
HeavyValue
A value a key holds more often than most, with a count that is an upper bound on how many admitted values equal it.
JunctionSplitPoint
Structural split point of a mixed fixed+varlen single path pattern.
KeyStats
The statistics of one (label, property), over the values the collector’s type gate admitted.
LogicalPlan
Logical plan is a pipeline of clauses (plus UNION).
NoPatternStats
No counts. Ordering uses the bound / equality / label / bare ranks.
RowEstimate
A row-count estimate with its provenance: the planner’s reading of an equality predicate on a key.
SeekPick
One indexed seek the start element’s predicates resolve to (ADR-0486): the winning (label, property) index pair, the op, the bound, and the count — the equality-before-window pick, the anchored-equality point read (a point lookup, the degenerate tightest window on the same index, carrying BinaryOp::Eq) outranking the comparison window, an ordering spelled once, in best_seek, never again as separate control flow in a consumer: the ladder’s first measured level (endpoint_estimate) and the plan tree’s seek narration (index_seek in the top-level crate) both consume this one pick.

Enums§

Basis
Where an estimate’s rows came from, ordered by trust: a larger variant is more trustworthy. The ordering gates strategies and breaks ties between orientations the cost model prices alike; it never overrides a strictly cheaper cost (a default can win an anchor it genuinely prices lower).
ContainsCount
Provenance of a plan-time CONTAINS candidate count (LABS-643): the TEXT index stays the one exact measurement, and without one the count comes from a bounded sample scan of the label’s nodes — exact when the label fits inside the sampler’s bound, an extrapolation beyond it. The variant, never a bare number, says which: no consumer can mistake the extrapolation for the measurement, and the sampled form carries the whole-label scan rows the unseekable filter still pays — the floor the compound start estimate (ADR-0474) maxes with the sampled output.
CrossClauseSearchEnd
Which endpoint of a cross-clause pattern is cheaper to scan from.
Estimate
One canonical endpoint ladder (LABS-351): a bound variable is one row, then the best measured index signal (equality, the range window, CONTAINS, then label rows), then the unmeasured rank sentinels. Measured counts and rank sentinels share one ordered scale (the constants are ordered, direction_cost compares them directly), so both the planner’s pattern ordering and the executor’s start-element choice consume the same estimate. pub for the executor’s cheapest_start.
MatchStrategy
Planner-selected physical execution strategy for one MATCH clause.
Provenance
How a figure was produced, ordered by trust: a larger variant is more trustworthy, so a planner level can ask provenance >= UpperBound without matching.
QueryType
Neo4j Query API v2 queryType of a statement.
SystemComposition
What a system query part is rejected for. The gate’s ordering ([part_offence] orders the first three): a WITH around a SHOW takes the 42NA9 text, then SHOW CURRENT GRAPH TYPE beside another command takes its 42001 NotAllowedOnSystemDatabase text, then a CALL beside a schema catalog takes 42NA9 again, and only a part with none of these falls through to the 42N17 whitelist.

Constants§

HASH_JOIN_MIN_SIDE_ROWS
Minimum side-A / incoming row count before a hash join pays for itself.

Traits§

PatternStats
Live or stubbed counts used to estimate how many rows a pattern endpoint produces. Every method returns None when that signal is unavailable, which is not the same as zero rows. Labels and relationship types arrive as a name beside its planning-time relate_names::Token (ADR-0541): an implementor reads the id when planning resolved one and falls back to the name only for an unresolved token.

Functions§

admin_command_heads_statement
ADR-0116 §2, amended 2026-11-04: whether the statement’s body is headed by a database-administration command — the first top-level clause after any leading USE clauses is one of the §2 commands. This is the shape the 42N79 auto-routing gate is scoped to: every headed spelling under a non-system USE (bare, YIELD … RETURN …, UNION arm, ALTER DATABASE) is 42N79. A command later in the body (after e.g. a MATCH, or behind a leading WITH) is not headed, so that gate passes it through to the namespace gates — where, off system, it is the composed-form rejection instead (ADR-0590). Part-granular on the head part only: a command headed in a NEXT stage is already refused by the NEXT-chain rule (is_show_databases_with_next), and USE clauses never split parts.
apply_degree
One hop’s fanout over a distinct seed set — the planner’s walk model and the kernels’ cost gates price a hop leaving distinct nodes with it (see [HopRows::Seeds]).
apply_hop_bound
One hop’s fanout for a kernel’s cost gate (LABS-991): apply_degree’s price where the statistics can name one, and — where they cannot (an untyped rel, or a hop leaving an unlabeled node, which the walk model leaves at the input row count) — the out-degree tail over every labeled node (PatternStats::any_degree_tail), unclamped so the bound compounds across a chain’s hops. A hop leaving the walk’s seed on the rel’s start side only: the in-degree and undirected shapes have no histogram to ride and keep the unpriced row count, as does a stats source with no histogram. pub for the executor kernels’ gate, the one consumer — the planner’s own orientation costs keep apply_degree.
apply_path_degree
One hop’s fanout over a path multiset — apply_degree’s policy without its degree-sum clamp ([HopRows::Paths]): a chained path multiplicity (a quantifier’s second and later hops) whose rows are paths, not distinct nodes. pub for the frontier family’s cost gate, which prices the DFS’s path count against the distinct endpoints.
best_seek
The one equality-before-window derivation (ADR-0486): the pick a seek-capable start element’s predicates resolve to — an indexed equality on the folded map first (a point lookup is the degenerate tightest window on the same index, so it outranks), else the servable comparison conjunct’s window. The ladder’s measured level and the plan tree’s seek narration consume this derivation, never a second spelling of the ranking.
can_reverse_path
True when path may be reversed without changing query semantics or element-predicate evaluation order under bound.
can_reverse_varlen_leg
Whether a split var-length leg (whose elements may contain lowered PatternElement::Quantified wrappers around anonymous-boundary single hops) can be reversed so that its junction node sits at nodes[0].
check_union_joiners
The one spelling of the UNION joiner-uniformity rule: a query’s part boundaries are all UNION or all UNION ALL, never mixed. The stage validator applies it to every planned stage; the executor’s UNION fold applies it again to bodies that are never stage-validated (COUNT {} / COLLECT {} and conditional branch bodies), so a mixed chain there fails with this typed error instead of reaching the fold.
clause_is_ddl_command
The grammar-ending DDL family: the commands whose own grammar ends at its OPTIONS/EOF, so no continuation may follow them. Membership is decided here, explicitly — not through clause_class, which is the access classification and puts ALTER DATABASE in Write:
clause_keyword
The Cypher clause keyword(s) for any parser Clause — e.g. "MATCH", "SHOW INDEXES". The table lives beside the enum (relate_parser::Clause::keyword); this keeps the planner’s existing public path.
clause_mutates_store
Whether clause is a mutation operator against the store — the ONE published per-clause answer to “does this clause write?”, read by the namespace gates, validate.rs’s composition rules, the executor’s ADR-0402 statement write-attempt walk and its read-path admission policy alike, so no consumer keeps a second list of write clauses.
clause_projects_rows
Whether clause projects statement rows of its own: a RETURN, a row-producing catalog command (the SHOW family and TERMINATE TRANSACTIONS), MATCH/WITH/UNWIND/CALL { … }/WHEN and every other read clause do; a data write, FINISH and schema/admin DDL do not. The one published per-clause answer to “does this clause produce rows?”, beside clause_mutates_store and read by the executor’s CALL { … } merge policy and NEXT-stage seeding policy, so no consumer keeps a second list of write clauses.
clause_writes_store
Whether clause mutates the store as the composition rules and the executor read it: the clause table’s answer (clause_mutates_store) minus LOAD CSV, which only reads a file — the table classes it Write for the conservative access fold (ADR-0332), but it never makes a part (or stage) a writing one. The ONE home of that “LOAD CSV is not a store mutation” fact, beside the table it refines; the 42I25 composition rule and the executor’s per-clause write-attempt answer both read it. CALL stays Read here: the registry’s writes flag is the caller’s layer’s fact.
composed_show_current_user
The composition rule for SHOW CURRENT USER, the second command live refuses composed off system (51N28, verified 2026.10.1: SHOW CURRENT USER YIELD user MATCH (n) RETURN n). Same shape rule as composed_show_databases, but a composition-only classifier: the ADR-0116 §2 vocabulary ([DatabaseAdminCommand]) is untouched, so the bare command’s behaviour and the system_ontologies exemption (is_database_admin_command) do not move. SHOW USERS/ROLES/ SERVERS are not covered: they were not probed (SHOW USERS does not compose on live at all — a parse error).
composed_show_databases
ADR-0590: the command spelling for a plan that composes SHOW DATABASES with other clauses, or None when every occurrence stands in the canonical shape (the command alone, or with a trailing RETURN over its yielded columns, as the statement’s whole body). Off the system namespace such a plan is CE’s 51N28 NotSystemDatabaseError; on system the command is where it belongs and §4’s clause whitelist governs instead.
composed_system_offence
ADR-0116 §4: the clause kind CE forbids in a query part that composes a SHOW command on the system namespace — WITH, the one tail clause the §4 whitelist (collect_system_offenders) still allows after a SHOW’s YIELD. The composition test is [is_system_show], the same predicate the whitelist’s head set reads. Live CE 2026.09/2026.10 rejects the composed command with The following clauses are not allowed on a system database: WITH. (GQLSTATUS 42NA9) for both the … YIELD … WITH … and the WITH … <command> … spelling (position within the part is not part of the rule); the other §4 offenders keep CE’s 42N17 text. Scope is every catalog command the system namespace admits (SHOW PROCEDURES, SHOW FUNCTIONS, SHOW SETTINGS, SHOW CURRENT GRAPH TYPE, SHOW TRANSACTIONS, …), not only the §2 administration commands. SHOW CURRENT GRAPH TYPE beside another command, and a CALL beside a per-database schema catalog (SHOW INDEXES, SHOW CONSTRAINTS), are the further offenders ([part_offence] orders the rules). Returns the first offending part’s SystemComposition, or None when no part offends.
conditional_declared_columns
The declared column list of a WHEN clause: the same derivation [part_output_names] runs, with no enclosing seed and no CALL-scope import exclusion.
crossover_scan_rows
ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s crossover population — the scan a range seek replaces is the pattern’s label conjunction, sized by its smallest label. The one fold both consumers ride (the ladder’s best_range over the planner’s stats, the executor funnel’s Seek::crossover_declines over the graph’s counts): None when the pattern names no label or any label is unmeasured (no measurement, no gate — ADR-0486’s default). Allocation-free: the executor’s cheapest-start loop runs it per (pattern, row) (LABS-351).
detect_junction_split
Detect whether pattern can be split at a named junction node separating a purely fixed-length leg from a variable-length/quantified leg with no shared non-junction variables.
endpoint_estimate
evaluate_cross_clause_cost
Canonical cost helper for cross-clause HashJoin vs nested-loop expansion.
expr_text
Render expr the way the query spelled it, as far as the IR retains the spelling. Idempotent and allocation-light; recursion follows the arms below, which cover every variant either by rendering its operands or by naming its structural form.
hit_is_inline_safe
The cache-hit inline route’s containment rule (ADR-0663), in its one home: whether a raw-string cache hit may run its statement on a thread that never asserted the query worker’s stack budget. Every conjunct must hold —
is_database_admin_command
ADR-0116 §2: database-administration commands run from any namespace and execute against the store’s catalog (the neo4j graph). A plan qualifies when every clause is a database-administration Catalog command.
is_show_databases_with_next
ADR-0116 §2: whether the plan combines SHOW DATABASES with a NEXT stage. The front-end’s NEXT-chain validation rejects the combination before planning; this classifier is the execution-phase backstop the facade checks after its EXPLAIN early return (EXPLAIN plans without executing, so the rule does not apply there). Part-granular over every stage’s TOP-LEVEL clauses, matching the front-end’s per-body scan: a SHOW DATABASES nested in an expression subquery does not participate in a NEXT chain.
is_write
The write classifier is a projection of the one shared clause fold ([crate::access::plan_access]): each part’s TOP-LEVEL clauses (plus NEXT stages and WHEN/ELSE branch bodies) only — it deliberately does NOT descend into CALL { … } bodies or expression subqueries, because the fold already classifies a top-level CALL { … } as a write outright and a read-only CALL { … } nested in an EXISTS/COUNT/COLLECT expression must not reclassify the statement as a write. Schema (index/constraint DDL) counts as a write here; see [crate::access::Access::is_write].
junction_legs_have_cross_inline_refs
Return true when any inline element WHERE clause or property map on one leg references a non-junction variable owned by the opposite leg.
plan
Bind AST to a logical plan (ADR-0009), then rewrite MATCH (ADR-0024).
plan_any_clause
Whether any clause of plan (via walk_plan_clauses) satisfies pred — the one walk-and-accumulate boolean over plan clauses, so classifiers stay one-line predicates instead of hand-rolling let mut found = false; … found |= …; found.
plan_calls_write_procedure
Whether any CALL of a write procedure appears anywhere in the plan. crate::walk_plan_clauses descends into CALL { … } subqueries, WHEN/ELSE branches, FOREACH bodies, expression subqueries and NEXT stages, so a write procedure nested in any of those positions still counts — the query-type classification reads it (crate::query_type).
plan_contains_dynamic_operands
Whether a plan references any dynamic name operand — a dynamic label (LabelExpr::Dynamic, in a pattern’s label expressions or a label predicate) or a dynamic property key (Expr::DynamicProperty). ADR-0503’s insert gate reads this: the front validates such operands against bound values at lowering time (LABS-709 — the check has a content half, an empty or null-byte name, beyond its type half), and a cache hit skips lowering, so a plan carrying one must not be cached — the statement stays uncached, never silently unvalidated.
plan_contains_in_transactions
ADR-0210: whether the plan carries CALL { … } IN TRANSACTIONS anywhere (top level or nested in a CALL { } body — the nested form is rejected by [crate::validate], so in practice this is the top-level batched subquery). The facade’s auto-commit write path uses this to attach the per-batch commit sink.
plan_has_bound_float_integer_site
Whether executing plan with these parameters would accept a float where the original literal is rejected at plan time (a slice bound or a list index). The plan-cache hit path uses this to fall back to the original statement, which reports the compile error.
plan_is_bounded_work
Whether plan is bounded-work — every clause a bounded shape, no scope-bearing expression — the plan fact the ADR-0504 fast path routes on: a bounded-work statement may run on the calling thread of a connection that asserted the worker stack. The predicate errs toward false: anything with data-proportional work (variable-length or quantified paths, GPM patterns, vector search, any write clause — an auto-commit write must never run inline, where a client that gave up waiting cannot be kept alive by ADR-0312’s NOOPs while its write lands; and writes already pay WAL/commit latency that dwarfs the handoff), unbounded row potential (UNWIND, LOAD CSV), the cartesian class (multi-pattern MATCH whose patterns share no variables — the one read shape whose row product is quadratic in the store and breaks the keep-alive interval’s arithmetic), nested engines (CALL {}, WHEN/ELSE, FOREACH), or procedure calls escalates to the query worker, whose wait keeps ADR-0312’s NOOP keep-alive ticking for the statements that can actually outlive it.
plan_is_create_only
Whether plan may join a pipelined write batch (ADR-0642): the statement’s only mutating clause is CREATE, it produces no rows, and it is a single part with no UNION and no NEXT. The Bolt session opens one commit for a framed message batch’s run of these, so the statement shape is the conservative gate, not a performance hint.
plan_missing_parameters
The parameters plan references but params does not supply — the ADR-0308 predicate, in one place. Two consumers read it: the facade’s admission gate, which refuses the statement (connection::dispatch:: post_explain_gates), and the 01N60 notice the notification derivation raises under EXPLAIN (ADR-0363), so the refusal and the notice can never disagree about which names are unbound.
plan_output_names
The output column names of a planned statement (ADR-0319): the names the final stage’s RETURN/YIELD/SHOW exports, through the same output-name analysis semantic validation uses. The engine reports them for a statement whose execution failed, so a surface can still announce its columns. A planned statement already passed the UNION column-agreement check, so the Err arm is that check’s error; callers that hold a plan-produced statement share the one expect policy (plan_output_names_expect).
plan_output_names_expect
plan_output_names for a caller that holds a planned statement: the Err arm is the UNION column-agreement check, which plan already ran, so a planned statement’s output names always derive. The one expect for that invariant, shared with the facade’s ExecutionFailure::staged (ADR-0319, ADR-0332).
plan_parameter_names
The parameter names plan references ($name), each once, in the order of first appearance in the full-descent walk (walk_plan_clauses’ coverage: UNION arms, NEXT stages, subqueries, branches, FOREACH bodies and pattern payloads). The facade checks them against the supplied parameters before dispatch (ADR-0308).
plan_references_auto_parameter
Whether any expression of the plan references an auto-extracted placeholder parameter (ADR-0503’s __AUTO_*__ names). Public for its two consumers, which must agree by construction (ADR-0663): the containment rule’s conjunct (a placeholder-referencing plan makes the dispatch epilogue re-parse the statement’s raw text to restore authored column names — recursion with the statement’s own nesting, the query worker’s stack, not an arbitrary caller’s) and that very epilogue, which consults this fact as its re-parse trigger so the two sites can never diverge. Over-declining is the safe direction: a placeholder in a non-projected position declines too.
plan_with_stats
plan with cardinality hints for MATCH ordering (ADR-0218).
plan_with_tokens
plan_with_stats after resolving the statement’s labels, relationship types and property keys to token ids against resolver (ADR-0541), once, before any planning step reads them. The ids ride the compiled plan; the caller’s statement tree (cloned into query) stays id-free.
query_any_clause
The not-yet-planned Query analog of plan_any_clause, riding walk_query_parts (top-level clauses per part, NEXT stages; the caller’s predicate decides which nested queries to descend into).
query_type
Classify a planned statement into its Neo4j Query API v2 queryType.
query_with_persistent_imports
Rewrite query so every imported name survives its WITHs: the name is added as a bare-variable projection item where the item list does not already carry it, and the terminal RETURN of a NEXT stage gets the same treatment. Validation uses the rewrite to admit the imports; the executor’s expression subqueries (EXISTS/COUNT/COLLECT) use it so an implicitly imported outer variable stays a grouping key of an aggregating WITH. A query transformation, not a validation check: this module already owns the import/export name computation.
range_seek_gated
ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s range-seek crossover policy — pub for the executor funnel, the policy’s second consumer (the ladder is the first). ADR-0493’s gate over a population: true when a measured scan population makes the window cheaper as the label scan — the one composition of crossover_scan_rows and [range_seek_wins] both consumers apply, so pricing and execution decline the same windows.
reverse_path
Reverse a linear path pattern in place, flipping its node/relationship sequence and relationship directions.
reverse_varlen_leg
Reverse a split var-length leg in place, flipping both nodes/rels and elements (including lowered single-hop PatternElement::Quantified items).
seed_on_rel_start
Which side of rel a walk’s seed node rides (LABS-426): the typed derivation every walk-orientation consumer shares — a written-outgoing rel seeded from its start side walked forward, a written-incoming one seeded from its start side walked reversed, and an UNDIRECTED rel has no start side in either orientation (the mean stays; the histogram is keyed by the start side only). reverse_path flips directions, so a post-reversal spelling is its own written direction.
seed_rows
split_junction_legs
Split pattern at split into (fixed_leg, var_leg), preserving aligned nodes, rels, and elements slices on both legs.
unsupported_system_clause_names
ADR-0116 §4: on a system session only SHOW commands, supported administration commands and standalone procedure calls (CALL … [YIELD …] [RETURN …]) run. Returns the offending clause kinds (deduplicated, in order of appearance) for CE’s 42N17 text, or None when the statement is allowed.
walk_cost
The walk cost of an endpoint estimate over hops — the ONE model of which estimate kind gets which walk, read by the planner’s direction_cost (the whole pattern’s hop chain) and the executor’s GraphStats::estimate (the first hop of the same chain), so the per-row start selection and the plan-time orientation cannot disagree on the anchor (LABS-671’s insurance test ties them at the executor side). A measured seed walks the degree-scaled chain; a sampled CONTAINS seed compounds (ADR-0474): its walk cost is the degree-scaled output floored at the whole-label scan — the scan is paid once, before any hop, so it never rides the degree (GBL SF0.1 q8: the 13,750-row Forum scan floor keeps the 137-row sampled title seed from undercutting Person’s 1,528-row scan whose degree-scaled walk lands on the same 13,750 rels). A rank sentinel carries no measured label to scale — its rows travel unscaled.
walk_plan_clauses
The canonical way to visit every clause of a LogicalPlan: each part’s clause tree via relate_ir::walk_clauses — UNION arms are parts, and CALL { … } subqueries, WHEN/ELSE branches, FOREACH bodies and expression subqueries are all descended into — recursing into NEXT stages. Hand-rolling a plan.parts + plan.next recursion instead of calling this is how coverage of a nesting position gets dropped.
walk_plan_parts
The canonical way to visit a LogicalPlan PART BY PART: each part’s TOP-LEVEL clause slice (UNION arms are parts), recursing into NEXT stages — with no descent into CALL { … } bodies, WHEN/ELSE branches, FOREACH bodies or expression subqueries.
walk_query_parts
The canonical way to visit a not-yet-planned Query PART BY PART — the ir::Query analog of walk_plan_parts: each part’s TOP-LEVEL clause slice (UNION arms are parts), recursing into NEXT stages — with no descent into CALL { … } bodies, WHEN/ELSE branches, FOREACH bodies or expression subqueries.
where_conjuncts_of
The where clause as its conjunct list — the ladder’s CONTAINS level reads individual conjuncts, the executor passes its residual conjuncts in this shape natively, and the plan tree’s seek narration (ADR-0486) reads the same view, so no consumer re-flattens the AND tree.

Type Aliases§

Bound
The bound check as a membership predicate, not a concrete collection: the executor’s cheapest_start runs once per (pattern, row) and must not clone the row’s keys into a HashSet per call (LABS-351, stellar F-3-1).
Hop
One hop of the walk model’s input: the node the walk is leaving, the rel it traverses, and the hop’s derived orientation fact (seed_is_start, from the one typed derivation seed_on_rel_start) — computed once by the orientation owner, never re-derived inside the walk.