Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 18, 2026

The regulatory agent should exit early if it doesn't have the necessary tools or permissions to perform the investigation, rather than failing mid-execution.

Changes

  • Added Phase 0: Prerequisites Check before Phase 1 in daily-regulatory.md:

    • Step 0.1: Verify github-discussion-query safe-input tool is accessible
    • Step 0.2: Verify create-discussion and close-discussion safe-output tools are available
    • Step 0.3: Explicit exit conditions checklist
  • Exit behavior: Agent writes clear explanation of which prerequisite failed with remediation steps

  • Updated Success Criteria: Added prerequisites verification as first success criterion

Exit Conditions

- ❌ The `github-discussion-query` tool is not available or fails
- ❌ GitHub Discussions are not enabled for the repository
- ❌ The `create-discussion` safe-output is not available
- ❌ The `close-discussion` safe-output is not available
Original prompt

The regulatory agent should exit early if it doesn't have the necessary tools or permissions to help it perform the investigation.

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 18, 2026 20:48
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add early exit for regulatory agent without tools or permissions Add early exit prerequisites check to regulatory agent workflow Jan 18, 2026
Copilot AI requested a review from Mossaka January 18, 2026 20:57
@Mossaka Mossaka marked this pull request as ready for review January 18, 2026 21:13
@Mossaka Mossaka merged commit 9c49f8d into main Jan 18, 2026
116 checks passed
@Mossaka Mossaka deleted the copilot/exit-early-regulatory-agent branch January 18, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants