Inspiration
A network policy can look reasonable on paper and still cut off a service the team depends on. We built Sudo Audit to answer a concrete question before approval. Which required connections would this change break, and what in the policy explains the result?
What it does
Sudo Audit compares the current policy with a proposal using the same sample traffic. The team declares required connections separately. If the proposal violates one of those requirements, the tool blocks approval.
In our synthetic payments demo, the first proposal would block six of twelve sample connections, including Stripe. The corrected proposal adds a narrow TCP port 443 exception for the sample Stripe endpoint while keeping unrelated external HTTPS blocked. Both reviews export a Markdown report with the before-and-after decisions, supporting quotes, and audit hashes that can be shared in a pull request.
How we built it
Gemini 3.6 Flash reads a Spanish-language policy and proposes structured rules with quotes from the source text. Python checks for conflicting rules, unsupported values, and missing explicit restrictions. The simulator evaluates the policy, and a human makes the final approval decision. The prototype simulates network behavior in user space.
Challenges and what we learned
A model can quote valid values and still omit a port or associate it with the wrong destination. That led us to check restrictions together and define required connectivity independently of the model. We also recorded real Gemini responses so judges can replay the full demo without credentials or an API connection.
Results and how to try it
In a separate recorded evaluation, all nine concrete policies matched the expected decisions on the tested connections. All three ambiguous policies prompted for the expected clarification. The public repository includes the recordings and 89 automated tests.
From the GitHub repository, run the following command to generate both reports. Enter y when the corrected proposal is ready for approval.
python3 -m demo.replay_change --report-dir "$(mktemp -d)"
```ration
