AI Agent Inboxes: Building Asynchronous Approval and Feedback Workflows
A unified inbox can turn human review from a blocking terminal interaction into a persistent, traceable workflow. This article explains how to define approval requests, bind decisions to specific versions, deliver structured feedback reliably, and manage state, security, and resource usage across multiple agents. It also outlines a practical implementation sequence and the failure scenarios to test before relying on the system.
1. When Human Approval Becomes the Bottleneck
As AI coding agents become capable of breaking down tasks, inspecting code, and proposing changes independently, developers’ work does not disappear. Instead, it shifts toward reviewing objectives, assessing risks, and authorizing execution.
Traditional interaction usually happens in a terminal: an agent prints a lengthy plan, the user scrolls through it, and then types an approval or revision request. This works well for short tasks. But when work spans multiple modules, parallel sessions, or long waiting periods, several problems emerge.
First, terminal output is chronological, so important decisions can disappear among execution logs. Second, user feedback is often unstructured text that is difficult to associate with a specific passage or plan version. Third, the agent’s approval needs rarely align with the user’s schedule. The machine may be ready to proceed while the developer is in a meeting, handling an incident, or reviewing another task.
The problem is therefore not how to make terminal output look better. It is how to turn decision-making between humans and agents into a workflow that can be persisted, precisely referenced, and resumed, rather than requiring a live conversation.
A unified inbox provides an entry point for this workflow. It is not another chat window, but a task center for pending requests, approval status, and feedback history.
2. Define Approval Objects Before Designing the Inbox
A reliable inbox should distinguish between request types rather than combine every message into one undifferentiated feed.
Plan Approval
Before making substantial changes, the agent submits the objective, implementation steps, affected scope, validation approach, and potential risks. The user can approve, reject, or request more information.
Approval must have an explicit scope. Permission to change business logic, for example, should not automatically authorize deleting historical data, deploying to production, or expanding access permissions.
Clarification Requests
When requirements are ambiguous, the agent asks the user to choose an option or provide additional information. The request should include enough context, available options, and their consequences to avoid forcing the user to reread the entire session.
Structured options are generally easier to parse than free text for straightforward choices. Questions involving business judgment should still allow supplementary explanations.
Deliverable Acceptance
After execution, the agent submits a change summary, validation results, and unresolved issues. The user can then assess the deliverable based on evidence, rather than a simple “task complete” message.
High-Risk Authorization
Actions involving sensitive data, irreversible changes, external access, or elevated privileges can require a separate high-risk approval workflow. These requests need stricter identity verification and authorization controls. Approval of an ordinary plan must not automatically authorize them.
Only after request types are defined can the interface provide appropriate information layouts and actions. Otherwise, the inbox merely moves the terminal’s information overload into a browser.
3. Core Architecture: Persist Requests and Return Decisions Asynchronously
A general architecture has five components:
- Intake layer: Receives approval, clarification, and acceptance requests from agents.
- Request store: Persists request content, associated sessions, versions, states, and history.
- Review interface: Displays pending items and supports annotations, selections, and diff review.
- Decision dispatch layer: Routes feedback to the correct task and handles retries and duplicate delivery.
- Execution recovery layer: Checks whether the decision is still valid, then resumes execution or replans.
The basic workflow is:
Agent submits a request → Request is persisted → User reviews and annotates → Decision is persisted → Decision is returned to the associated task → Agent validates it and continues.
The essential rule is: persist requests and decisions reliably before triggering downstream actions.
If the workflow depends entirely on a connected browser page, closing the page, restarting a process, or losing network connectivity can cause approvals to be lost. With persistence, the browser becomes an interaction surface rather than a requirement for keeping the workflow alive.
Asynchronous approval also does not mean keeping a process running indefinitely. A better approach is to save recoverable state, pause the task or end the current execution unit, and reload the necessary context when a decision arrives.
Whether this is possible depends on the integrated agent’s recovery capabilities. Environments without resumable execution may still need to retain a session or use controlled polling.
4. Data Modeling: Give Every Approval a Precise Target
An approval record should answer at least four questions: Who submitted the request? Which task does it belong to? Which version did the user approve? Where should the decision be delivered?
A useful data model includes:
- Request and task identifiers.
- Request type, title, body, and creation time.
- Plan version or content hash.
- Current state and expiration time.
- Requester, approver, and authorization scope.
- Decision, annotations, and decision time.
- Delivery status, retry history, and failure reasons.
These are general modeling recommendations, not a fixed interface for any particular tool.
Version binding deserves particular attention. Suppose a user opens the first version of a plan, and the agent subsequently submits a second version. If the user approves the old page, the system must not apply that approval directly to the new plan.
A version number or content hash can enforce this boundary. The submitted decision includes the reviewed version; if the server detects a change, it asks the user to review again.
For high-risk tasks, the system should also check whether important environmental conditions have changed. The target branch, configuration state, or data scope may no longer match what the user reviewed.
An approval authorizes a defined set of operations, not everything the agent might do afterward.
5. Structured Annotations: Turn Objections into Actionable Changes
Free text is useful for complex reasoning, but handing an agent a large block of feedback can lead to omissions, misunderstandings, and repeated clarification.
More actionable feedback contains five elements:
- Location: The section, step, or change fragment being discussed.
- Category: Whether the issue concerns objective alignment, implementation, risk controls, or insufficient validation.
- Requested action: What should be removed, changed, added, or explained.
- Rationale: Why the adjustment is needed.
- Acceptance criteria: How to determine whether the revision satisfies the request.
For example, “This plan is unsafe” offers little direction. A clearer comment is: “The data cleanup step lacks scope restrictions. Add a preview and rollback plan, and demonstrate during validation that records outside the target set will not be modified.”
Anchoring annotations also creates technical challenges. Once the document changes, the original paragraph location may no longer be valid. A combination of section identifiers, selected text, surrounding context, and version information can help locate the intended passage.
If the system cannot match an annotation reliably, it should ask the user to confirm its location rather than silently attach it elsewhere.
For revised plans, a diff view helps users identify which concerns were addressed and which changes are new. However, a diff does not replace a full review: even a local edit can alter the overall execution order or risk boundaries.
6. State Machines and Reliability: Prevent Duplicate Execution and Misrouted Decisions
An inbox should use an explicit state machine rather than infer progress from scattered flags.
One possible progression is:
Pending review → Approved or revision required → Pending delivery → Receipt acknowledged → Completed.
The system should also account for cancellation, expiration, and delivery failure. The exact states can vary, but each must define which operations are allowed and who can trigger a transition.
Three engineering issues require particular attention.
Duplicate Submissions
Users may click a button repeatedly, clients may retry requests, and dispatchers may deliver the same decision more than once. Unique decision identifiers and idempotent handling should prevent repeated approvals from causing repeated execution.
Misrouted Decisions
With multiple tasks running in parallel, feedback cannot be routed by window position or display name alone. Use stable task identifiers and session associations, and validate them again at the receiving end.
Expiration and Cancellation
A task may be canceled while awaiting review, or its environment may change. A late approval must not reactivate a canceled task.
For destructive operations, an approval timeout should generally stop execution or trigger a new confirmation request, rather than default to approval.
Reliable delivery also requires acknowledgment. Successful dispatch means that a message was sent, not necessarily that the agent received and applied it. The system should distinguish “sent” from “received” so users can see the actual progress.
7. Multiple Agents: Centralize Work Without Centralizing Noise
When several agents work simultaneously, the inbox should reduce context switching, not require users to read more messages.
The list view should prioritize actionable information: task objective, request type, blocking reason, risk level, waiting time, and recent changes. Detailed execution logs can be expanded on demand; they should not dominate the review interface by default.
Categories and filters should reflect real decisions. Useful dimensions include project, task, owner, risk level, and pending status. Sorting only by time allows low-value messages to keep consuming attention.
Notifications also need restraint. Routine clarification requests can be grouped, while high-risk approvals or important requests nearing expiration may warrant individual alerts. Notification frequency should not become another source of interruption.
Similar requests can be grouped for display, but each must retain its own authorization boundary. Plans that look alike may have different scopes and risks. Reducing clicks is not a reason to approve them all indiscriminately.
8. Resource Management: Avoid Processing the Entire History
As a unified inbox accumulates messages, the common bottleneck is often not storage capacity. It is loading, parsing, and rendering too much content at once.
Resource usage can be controlled through several measures:
- Paginate lists or load items on demand instead of retrieving all history by default.
- Use viewport-based rendering for long lists to limit the number of interface elements rendered at once.
- Fetch summaries separately from full content, loading the body when the user opens a detail view.
- Compute diffs on demand and cache results against their associated versions.
- Store large attachments separately rather than embedding them in message bodies.
- Archive completed tasks to reduce the data volume in active queries.
- Retrieve background updates incrementally instead of repeatedly scanning the complete history.
Idle resource consumption also needs measurement. Continuous polling, repeated parsing, and unnecessary interface refreshes can create significant overhead even when the user is doing nothing.
Performance evaluation should go beyond whether the page initially feels responsive. Track list load time, detail load time, annotation save time, decision delivery latency, retry rates, and how resource consumption changes as history grows.
9. Security Boundaries: The Approval Interface Is an Attack Surface
Content submitted by an agent should not be treated as trusted code. Rendering plans, logs, and attachments must not allow untrusted content to execute scripts or trigger unintended actions.
The review interface must also defend against forged requests, unauthorized access, and cross-session mix-ups. Running a service locally does not make it inherently safe. Listening scope, access credentials, cross-site request protection, and local file permissions all require explicit configuration.
In team environments, validate task visibility and approval authority separately. Someone permitted to read a plan may not be authorized to approve a production change.
The agent must continue to obey its existing permission boundaries during execution. An approval is not a credential for bypassing access controls.
Audit records should retain request versions, decisions, approver identities, and significant state transitions, but should not indiscriminately copy all sensitive context. Credentials, personal information, and business data require redaction and appropriate retention periods.
10. Implementation Sequence: Close the Loop Before Expanding Features
Start with a narrowly defined scenario, such as approving a plan before implementation, and complete the minimum end-to-end workflow.
- Define the approval trigger and the scope of permitted operations.
- Implement persistent requests, version validation, and a basic state machine.
- Provide an interface for reviewing plans, approving or rejecting them, and submitting comments.
- Implement feedback delivery, receipt acknowledgment, and failure recovery.
- Gradually add paragraph annotations, diff review, multi-task filtering, risk classification, and team permissions.
Testing should deliberately simulate browser closure, repeated clicks, process restarts, delayed decisions, task cancellation, and plan updates.
A smooth normal path shows that the feature is usable. Controlled failure paths show that the system is dependable.
Ultimately, giving an agent an inbox is not about making it easier for a person to click “Approve.” It is about ensuring that every intervention has a precise target, a sufficient basis, and a traceable outcome. Only when requests, decisions, authorization, and execution form a reliable feedback loop can parallel agent work become a manageable collaboration process rather than a growing pile of messages.
