Check if any virtual rules are registered.
Total number of virtual rules across all sources.
Get all raw virtual rule definitions grouped by source. Used by the merged virtual document.
Get all compiled virtual rules in registration order.
Register virtual rules from an external source. Idempotent: re-registering with the same source replaces previous rules.
Unique identifier for the rule source.
Inference rule definitions to register.
Human-readable description of what this rule does.
Optionalmap?: JsonMapMapJsonMap transformation (inline or reference to named map).
JSON Schema object to match against document metadata.
Unique name for this inference rule.
Optionalrender?: {Declarative structured renderer configuration (mutually exclusive with template).
Ordered markdown body sections.
Keys or glob patterns to extract from context and include as YAML frontmatter.
OptionalrenderAs?: stringOutput file extension override (e.g. "md", "html", "txt"). Requires template or render.
Optionalschema?: (Array of schema references to merge (named refs and/or inline objects).
Optionaltemplate?: stringHandlebars template (inline string, named ref, or .hbs/.handlebars file path).
Remove virtual rules by source.
The source identifier to unregister.
true if rules were found and removed.
In-memory store for virtual inference rules.
Virtual rules are appended AFTER config-file rules in evaluation order. Since inference uses last-match-wins for overlapping fields, virtual rules take precedence over config rules when both match the same file.