[Grid agent] Enforce authorization, tool policy, approvals, and prompt-injection defenses #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Create the central authorization and safety layer through which every LLM- or operator-requested action must pass. Public text is untrusted data, not authority, even when written by an authorized avatar.
Trust and policy rules
Observable outcomes
Every decision emits a redacted record containing origin UUID, session/correlation ID, requested tool, allow/deny/approval result, stable reason code, applied budget, and final outcome. Do not record secret arguments or hidden chain-of-thought.
Acceptance criteria
Dependencies
Depends on the architecture types and generic tool loop. All later action issues must register through this policy surface and extend its matrix/tests.
Implemented and pushed in
e3b9d57.Summary:
Verification:
Review against every acceptance criterion completed. No credentials or .env content were read or committed.