Goal
Use openviking_rule_search to retrieve the compiled Rules that constrain the current task,
then validate the planned action or response against every applicable Rule.
Workflow
- Build
task_contextfrom the user's goal, the planned action or decision, and concrete facts that may affect which Rules apply. Include material unknowns instead of guessing them. - Call
openviking_rule_searchwith thattask_context. - Review every returned Rule independently. Apply a Rule when its
applies_whencondition is supported by the task context and noexceptionapplies. - Adjust the planned action or response to comply with all applicable Rules.
- Call
openviking_rule_searchagain when new information materially changes the task context.
Boundaries
- Treat returned Rules as constraints, not as evidence that unobserved facts are true.
- Do not omit known facts from
task_contextto force a preferred result.