amaru-source / sidecar /src /amaru /chakras /_stub_kernel.py
betterwithage's picture
mirror github.com/szl-holdings/amaru@779a0d7e4e69
a8b4b87 verified
"""Helper to declare a chakra whose upstream kernel is not vendored locally."""
from __future__ import annotations
from typing import Any, Mapping
def make_stub(name: str):
STUBBED = True
def evaluate(envelope: Mapping[str, Any]) -> dict[str, Any]:
raise NotImplementedError(
f"upstream kernel not vendored (chakra={name!r}). "
"Vendor the upstream Amaru bundle to enable real evaluation."
)
return STUBBED, evaluate