Inspiration

AI agents are becoming increasingly capable of performing real-world tasks, but intelligence alone does not guarantee trust.

Software development teams frequently receive unstructured bug reports, feature requests, duplicate issues, and incomplete feedback. Manually processing these requests is time-consuming, while blindly automating them with AI introduces risks such as incorrect classifications, unauthorized actions, and inconsistent system states.

This inspired AgentGuard — an accountable AI workflow execution platform designed around a fundamental principle:

AI should not only be capable of taking actions but also be accountable for their consequences.

What it does

AgentGuard is designed to transform unstructured software reports into meaningful, verified, and actionable GitHub issues.

Unlike traditional chatbot applications, AgentGuard connects AI-powered understanding with real-world execution through a structured decision pipeline.

Its planned capabilities include:

  • Intelligent extraction of information from unstructured reports.
  • Automated classification of bugs, feature requests, and documentation issues.
  • Rule-based priority and severity assessment.
  • Duplicate issue detection.
  • Confidence-based decision-making.
  • Deterministic permission and security checks.
  • Human intervention when uncertainty or risk is detected.
  • Automated GitHub issue creation through REST APIs.
  • Transparent and inspectable decision histories.
  • Controlled retries and recovery from incorrect actions.

Every external action must pass through an accountability gateway before execution.

How we are building it

AgentGuard is designed using a modular full-stack architecture that separates AI-generated decisions from deterministic execution.

AI Decision Engine

A large language model processes unstructured inputs and produces structured outputs containing classifications, extracted information, supporting evidence, and confidence estimates.

Structured Decision Map

The system is designed around seven inspectable decision types:

  1. Information extraction.
  2. Request classification.
  3. Priority scoring.
  4. Duplicate detection.
  5. Permission validation.
  6. Action routing.
  7. Execution verification.

Each decision records its method, evidence, output, and validation status.

Accountability Gateway

The accountability gateway evaluates proposed actions using schema validation, role-based access control, confidence thresholds, and deterministic policies.

Low-risk, validated actions can proceed automatically, while uncertain actions are escalated for human review. Unauthorized operations are blocked regardless of AI confidence.

Execution and Recovery Layer

The GitHub REST API enables real-world issue management. Persistent workflow states, idempotency controls, execution verification, and compensating actions are designed to prevent duplicate operations and support recovery from failures.

Audit and Transparency Layer

AgentGuard maintains a detailed history of decisions, approvals, actions, failures, and recovery operations.

A SHA-256 hash-linked audit trail is planned to provide tamper-evident verification of historical records.

Technology Stack

  • Frontend: React.js, Tailwind CSS, Recharts
  • Backend: Node.js, Express.js
  • Database: MongoDB, Mongoose
  • Artificial Intelligence: Large Language Model API
  • Integration: GitHub REST API, Octokit
  • Validation: Zod
  • Security: JWT, bcrypt, RBAC, SHA-256
  • Testing: Vitest, Supertest
  • Deployment: Docker, Vercel, Render

Challenges we are addressing

Building dependable AI agents introduces challenges beyond conventional application development:

  • Converting unpredictable LLM responses into reliable structured decisions.
  • Distinguishing genuine confidence from uncertain AI predictions.
  • Preventing unauthorized actions and prompt injection.
  • Maintaining consistent workflow states during API failures.
  • Preventing duplicate external actions during retries.
  • Supporting recovery without compromising historical accountability.
  • Balancing autonomous execution with meaningful human oversight.

The proposed architecture addresses these challenges by combining probabilistic AI understanding with deterministic software engineering principles.

Accomplishments we are working toward

  • A complete workflow from unstructured input to real-world execution.
  • A modular architecture that separates intelligence from authorization.
  • An inspectable decision explorer.
  • A human-in-the-loop approval system.
  • Persistent audit records and recovery mechanisms.
  • Reliable handling of previously unseen inputs.

What we aim to learn

Through AgentGuard, we aim to explore the engineering challenges behind production-grade AI agents, including structured LLM outputs, policy-driven orchestration, AI reliability, external tool integration, failure recovery, and responsible autonomous decision-making.

The central lesson guiding this project is that the reliability of an AI agent depends not only on the intelligence of its underlying model but also on the architecture, validation, and accountability mechanisms surrounding it.

Testing and validation

The planned testing strategy includes at least 15 scenarios covering successful execution and failure-oriented conditions.

These include ambiguous inputs, duplicate reports, invalid AI outputs, unauthorized operations, API failures, prompt injection, repeated submissions, and incorrect AI classifications.

Evaluation will focus on classification accuracy, execution reliability, duplicate prevention, escalation correctness, and recovery effectiveness.

Measured results will be added after testing.

What's next for AgentGuard

Future development could extend AgentGuard beyond GitHub issue management into a reusable accountability infrastructure for autonomous AI systems.

Potential extensions include:

  • GitLab, Jira, Slack, and other workflow integrations.
  • Configurable organizational policies.
  • Semantic duplicate detection.
  • Advanced reliability analytics.
  • Multi-agent orchestration.
  • A reusable SDK for accountable AI execution.

Our vision

The future of AI is not simply about building agents that can act autonomously. It is about building systems that know when to act, when to ask, when to stop, and how to recover.

AgentGuard — Autonomous Actions. Verifiable Decisions.

Built With

Share this project:

Updates

Submission history