diff --git a/agentydragon/tasks/11-custom-approval-predicates.md b/agentydragon/tasks/11-custom-approval-predicates.md index 4e023ca819..066c2d1d3c 100644 --- a/agentydragon/tasks/11-custom-approval-predicates.md +++ b/agentydragon/tasks/11-custom-approval-predicates.md @@ -38,4 +38,7 @@ Allow users to plug in an external executable that makes approval decisions for ## Notes - Consider passing context via environment variables (e.g. `CODEX_SESSION_ID`, `CODEX_CONTAINER_CWD`, `CODEX_HOST_CWD`, `CODEX_COMMAND`). -- Reuse invocation logic from the auto-approval predicates feature (Task 02). \ No newline at end of file +- Reuse invocation logic from the auto-approval predicates feature (Task 02). +- **Motivating example**: auto-approve `pre-commit run --files `. +- **Motivating example**: auto-approve any `git` command (e.g. `git add`, `git commit`, `git push`, `git status`, etc.) provided its repository root is under ``, correctly handling common flags and safe invocation modes. +- **Motivating example**: auto-approve any shell pipeline composed out of `` operating on `` with ``, using a general pipeline parser to ensure safety—a nontrivial example of predicate logic. \ No newline at end of file