Control
Shadow Mode
Shadow Mode lets you run Hivenora in your production environment and observe what it would have done — without blocking any agent actions. Use it to validate your policies and understand agent behavior before enabling enforcement.
What Shadow Mode does
When an agent is in Shadow Mode:
- Hivenora evaluates the action exactly as it would in enforcement mode.
- The evaluation result is recorded in the activity log and Flight Recorder.
- The
effective_decisionis alwaysallow— the action proceeds regardless of what the policy would have decided. - The
shadow_resultfield in the response shows what the actual decision would have been.
Shadow Mode response
A typical Shadow Mode evaluate() response:
Key fields:
shadow_mode: true— always present when the agent is in shadow modeeffective_decision: "allow"— always allow in shadow modedecision— what Hivenora would have decided in enforcement modeshadow_result— the full enforcement-mode result for review
Shadow Mode SDK behavior
The SDK returns the response exactly as described above. Your application code sees result.isAllowed === true even when the policy would have blocked — this is intentional. Shadow Mode does not require any application code changes.
Shadow Report
Open the Shadow Report in the Control Room to see an aggregate view of shadow evaluations:
- Total actions observed vs. total that would have been blocked
- Total that would have required approval
- Breakdown by decision type and blast radius level
- Individual events in the activity log with shadow decisions marked
Use this data to tune your policies before enabling enforcement. When you are confident in the policy configuration, switch the agent from Shadow to Enforce mode in the Agents panel.
Recommended adoption path
- Register your agent and create an API key.
- Set the agent to Shadow Mode in the Control Room → Agents.
- Integrate the SDK. Deploy to production.
- Run your normal workload for 1–2 weeks.
- Review the Shadow Report. Identify policies that are too broad or too narrow.
- Adjust policies. Review again.
- Switch the agent to Enforce Mode.
- Monitor the Activity feed and Approvals queue.