Expand description
The engines this build compiles a policy document with, and the tree built from them.
Structs§
- Cedar
Language - The
didbot-policy-records::compile::Languagebridge for"cedar": hands back a freshCedarEvaluatorover this server’sshapesper predicate document. - Count
Language - The
didbot-policy-records::compile::Languagebridge for"count": hands back a freshCountEvaluatorper predicate document. The counts themselves are the process’s, not the evaluator’s, so a tree rebuilt on a poll tick keeps counting where the last one left off – seedidbot-policy-count’s own doc comment. - Engine
- One engine this build carries.
- Regex
Language - The
didbot-policy-records::compile::Languagebridge for"regex": hands back a fresh, not-yet-compiledRegexEvaluatorper predicate document. The actual compiling — parsingdidbot-policy-regex’s own JSON predicate schema, documented onRegexEvaluator::compile_json— happens insidedidbot_policy::Evaluator::compileitself: this bridge’s only job is naming which evaluator crate answers to"regex"for an operator’s record. The built-ins incrate::builtincompile their own statements with the same crate and never pass through here.
Constants§
- ENGINES
- Every engine this build carries. A language no entry names is one
crate::compiletreats asdidbot_policy::Predicate::Unusable, the fail-closed, scoped treatment an unrecognised language gets.
Functions§
- build_
tree - Assembles one
PolicyTreefrom every source a deployment carries. - engine_
for - The engine that reads a document of this
$type, if this build carries one. - shapes
- The record shapes this server validates Cedar documents against and
types
context.valuewith. One set, shared by every evaluator and by the loader that splits a document into statements, so both see the same schema.