Skip to content

Type Alias: FunctionRefusalCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FunctionRefusalCode

FunctionRefusalCode = "function_has_callers" | "function_not_found" | "function_plugin_owned" | "function_name_mismatch" | "function_tenant_mismatch" | "function_conformal_tau_uncertified" | "function_codomain_empty" | "function_codomain_non_string_label" | "function_codomain_blank_label" | "function_codomain_repeats_label" | string & object

Defined in: src/types/functions.ts:422

The stable code of a function-lifecycle refusal (the engine’s FunctionRefusalResponse).

  • function_has_callers — other functions or rules call it; callers names them. Re-issue with callers: 'orphan' after showing them.
  • function_not_found — no function has this name.
  • function_plugin_owned — a plugin owns it.
  • function_name_mismatch / function_tenant_mismatch — the body names a different function or tenant than the route.
  • function_conformal_tau_uncertified — a conformal threshold is not certified.
  • function_codomain_empty, function_codomain_non_string_label, function_codomain_blank_label, function_codomain_repeats_label (422) — a Neural clause’s codomain is empty, holds a non-string label, a blank label or a repeated label. Checked before the conformalTau check; nothing is written.

The engine can add a code, so any other string is admitted.