Manage the human-in-the-loop approval workflow. Check for pending approval requests, review approved/rejected items, process decisions, and check for expired requests. Use when managing sensitive actions that require human sign-off before execution.
Handle the human-in-the-loop approval workflow for sensitive actions.
Always create approval requests for:
List all .md files in vault/Pending_Approval/ (ignore .gitkeep)
For each file, report: action type, priority, creation date, expiry
List all .md files in vault/Approved/
These have been approved by the human and are ready for execution
For each: read the action details and execute the approved action
After execution, move the file to vault/Done/
List all .md files in vault/Rejected/
Log the rejection and move to vault/Done/
For each file in vault/Pending_Approval/:
Parse the "expires" field from YAML frontmatter
If expired, flag it and log the expiration
When a sensitive action is needed, create a file in vault/Pending_Approval/:
---