AANA Guardrail Skill
Monitors agent actions for safety and compliance, preventing violations, private data leaks, or irreversible steps by enforcing predefined decision rules.
Latest: v1.0.0
AANA Guardrail Skill 1.0.0 - Initial Release
- Introduces a guardrail system for OpenClaw-style agents to enforce hard constraints and safe decision-making.
- Details specific scenarios when to invoke AANA before agent action (e.g., handling sensitive data, customer support, code commits).
- Provides command-line usage instructions and JSON event schema for agent checks.
- Outlines decision rules for agent actions based on AANA recommendations.
- Includes default adapter mappings for common workflows and instructions for scaffolding new adapters.
AANA Guardrail Skill For OpenClaw-Style Agents
Use this skill when a user asks the agent to produce or execute an action that may violate hard constraints, depend on missing evidence, expose private information, or require a safe correction path.
When To Call AANA
Call AANA before:
- sending customer-support replies, emails, or messages,
- using private account, billing, payment, or personal data,
- making refund, eligibility, booking, purchase, or policy promises,
- editing, deleting, moving, or publishing user files,
- committing or publishing code,
- answering from incomplete evidence, citations, or source notes,
- doing anything the user cannot easily undo.
Command
Create an event JSON file and run:
python scripts/aana_cli.py agent-check --event path/to/agent_event.json
Event Shape
{
"event_version": "0.1",
"event_id": "unique-id",
"agent": "openclaw",
"adapter_id": "support_reply",
"user_request": "The user's request",
"candidate_action": "The answer or action the agent is about to take",
"available_evidence": ["Only facts actually available to the agent"],
"allowed_actions": ["accept", "revise", "ask", "defer", "refuse"]
}
Decision Rule
- If
gate_decisionispassandrecommended_actionisaccept, proceed. - If
recommended_actionisrevise, usesafe_responseor revise the plan before acting. - If
recommended_actionisask, ask the user for the missing information. - If
recommended_actionisdefer, route to a stronger tool, human review, or verified system. - If
recommended_actionisrefuse, do not execute the candidate action.
Default Adapter Mapping
- Customer support, refunds, private account details:
support_reply - Travel or booking plans:
travel_planning - Food, grocery, allergy, dietary plans:
meal_planning - Research briefs, cited summaries, knowledge synthesis:
research_summary
If no adapter fits, scaffold one:
python scripts/aana_cli.py scaffold "new workflow name"
