bankai/rules/service

Product-facing mobile-rule service.

This module composes durable local rule records with the pure isolated Gleamunison evaluator. It never mutates a task: an optional task reference is serialized into an immutable bounded input view only.

Values

pub fn approve(
  workspace: String,
  hash: String,
) -> Result(json.Json, String)
pub fn audits(
  workspace: String,
  hash: String,
) -> Result(json.Json, String)
pub fn evaluate(
  workspace: String,
  hash: String,
  options: List(String),
) -> Result(json.Json, String)

options accepts only --caller <name> and --task <id>. A task is read once and encoded as immutable JSON; the evaluator gets no database handle.

pub fn list(workspace: String) -> Result(json.Json, String)
pub fn register(
  workspace: String,
  name: String,
  source: String,
) -> Result(json.Json, String)
pub fn revoke(
  workspace: String,
  hash: String,
) -> Result(json.Json, String)
pub fn show(
  workspace: String,
  hash: String,
) -> Result(json.Json, String)
Search Document