import Base import ./execution_builder.bend as Build import ./execution_declaration.bend as D import ./execution_query_interpreter.bend as Query import ./execution_resource_interpreter.bend as Resource # The ordinary framework selects genuine interpreters for the same closed Program. # No caller-supplied permission catalog or dynamic invocation inventory enters caps. # Actual World admission still checks the retained full owners before invocation. def compile(~S:Data,~WC:Type,~C:Type,~R:Type,~Ops:Data -> (Type -> Type) -> Type -> Type,~program:Build.Program(~S,~WC,~C,~R,~Ops)) -> D.Compilation: Build.compile_with_interpreters(~S,~WC,~C,~R,~Query.provider_dictionary(~S,~WC,~C,~R),~Resource.read_dictionary(~S,~C,~R),~Resource.write_dictionary(~S,~C,~R),~Ops,~program) # Trusted kernel variant uses the same closed interpreter selection. def compile_framework(~S:Data,~WC:Type,~C:Type,~R:Type,~Ops:Data -> (Type -> Type) -> Type -> Type,~program:Build.FrameworkProgram(~S,~WC,~C,~R,~Ops)) -> D.Compilation: Build.compile_framework_with_interpreters(~S,~WC,~C,~R,~Query.provider_dictionary(~S,~WC,~C,~R),~Resource.read_dictionary(~S,~C,~R),~Resource.write_dictionary(~S,~C,~R),~Ops,~program)