innovate.invoke_registered_extension
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”def invoke_registered_extension( callback: Callable[[dict[str, Any], Any], Any], selection: dict[str, Any], payload: Any,) -> dict[str, Any]: ...Resolve an extension, invoke its trusted callback, and validate the output.
The callback runs Python code in the current process without sandboxing. Manifest resolution happens before invocation; native ingestion, alias, diagnostic or artifact validation happens afterward. Validation does not establish the safety or scientific validity of arbitrary callback behaviour.
Parameters
Section titled “Parameters”callback: Trusted callable receiving the resolved manifest andpayload. Its return value must satisfy the selected extension point’s contract.selection: JSON-compatible selection passed toresolve_extension_manifest.payload: Application object passed unchanged tocallback; it is not serialized by this wrapper before callback invocation.
Returns
Section titled “Returns”Native validated result for the callback output, without the outer
request envelope.
Raises
Section titled “Raises”NativeError: If manifest resolution or output validation fails.TypeError: If selection or callback output is not JSON-compatible.ValueError: If serialized fields contain non-finite or circular values.Exception: Any exception raised by the trusted callback propagates unchanged.