ruleverdict

v0.1.0
io.github.CloudCorpRecords/ruleverdict Checked 1 day ago Published 29 days ago

Deterministic rule-engine decisions with document-grounded explanations, rules and usage tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

decide

Make a decision in a domain from structured facts and/or free text; the verdict comes from the rule engine, with a document-grounded explanation.

ParameterTypeDescription
domain *stringDomain this call applies to.
as_ofstringEvaluate as of this date (optional).
fact_sourcesobjectSources for the facts (optional).
factsobjectFacts payload for this call.
pattern_01booleanFirst pattern to evaluate.
pattern_02booleanSecond pattern to evaluate.
textstringText content for this call.

get_parameters

The facts a domain's rules decide on, most decisive first — what to collect before decide.

ParameterTypeDescription
domain *stringDomain this call applies to.

list_rules

Inspect a domain's rules — conditions, verdicts, salience, overlaps.

ParameterTypeDescription
domain *stringDomain this call applies to.

get_rule_source

Fetch a domain's rule set as editable YAML.

ParameterTypeDescription
domain *stringDomain this call applies to.

import_policy_rules

Turn a written policy document into draft rules, each citing the sentence it encodes. Nothing is saved.

ParameterTypeDescription
domain *stringDomain this call applies to.
text *stringText content for this call.

put_rules

Create or replace a domain's rule set from YAML (dry_run to validate).

ParameterTypeDescription
domain *stringDomain this call applies to.
rules *stringRules payload for this call.
dry_runbooleanWhen true, preview the change without applying it (optional).

ingest_text

Add policy text to a domain's knowledge base, optionally dated or replacing an earlier version.

ParameterTypeDescription
domain *stringDomain this call applies to.
text *stringText content for this call.
effective_fromstringEffective-from date (optional).
effective_untilstringEffective-until date (optional).
supersedesstringIdentifier of the record this supersedes (optional).

list_documents

Browse a domain's ingested documents.

ParameterTypeDescription
domain *stringDomain this call applies to.

get_usage

Check your plan and remaining monthly decision quota.