pub fn check_implicit_passing_mode(
explicit: bool,
required_args: usize,
has_yield: bool,
) -> Result<()>Expand description
The passing-mode backstop shared by the generic CALL path and the
db.ontology.* executor (the divert’s consumer): an in-query implicit
call — a CALL with a YIELD, in a clause pipeline — cannot pass
arguments; the procedure’s arguments resolve only in a standalone unit
call. required_args is the caller’s registry truth: the number of
declared parameters without a default (LABS-389: a procedure whose
parameters all carry defaults is callable implicitly). (The facade’s
compile-time validate_calls enforces the same contract before
execution; this is the executor-side backstop.)