AXONN Vantis logo
AXONN VantisAgentic eXperience, Open Neural Network,Complete Governance
EN
← Blog

Designing Autonomous AI Agents That Work With Business Teams

In a system where AI agents working alongside business teams read and analyze sources at a fixed time every day and submit proposals, a single review can finish in a few seconds or take tens of minutes. The duration depends on the volume of input that arrived that day, and on heavy days model calls chain into the dozens. If a late call fails and the whole review restarts from scratch, every call that already completed is repeated. If model calls were the only thing a rerun repeated, the loss would be limited to time and resources. The proposals these agents produce, however, eventually lead to a change in a work item's state or to an external publication. If state changes and publication sit inside the agent's execution path, a rerun or a misjudgment leaves results that cannot be undone. Analysis can therefore be delegated to the agent, but the final act of changing state or publishing has to be a person's. Prompt instructions alone cannot guarantee that boundary, so it has to be enforced in code.

This post draws on a platform AXONN Vantis runs as a tool used only by its own employees, with a dedicated agent for each department, and sets out what to consider when designing autonomous AI agents that collaborate with business teams. It first defines the structural problem of autonomous execution entangled with human decisions, then walks through the options considered for the deployment unit, the data boundary, and execution schedules. It then explains the two structures adopted, per-department resource isolation and step-based execution, covers the failures seen in operation and the design changes they prompted, and closes with decision criteria other teams can apply.

Collaboration Where Autonomous Execution Meets Human Decisions

On this platform, agents act as members of a department working alongside its staff. Each department has a dedicated agent that analyzes sources on its own schedule and submits proposals, and the decision-maker reads the reports in each department's view and decides. Departments differ in the tools they use, the state they keep, the schedules of their recurring jobs, and the range of data they may access. The duration and number of model calls in a review vary widely with the volume of input, and long reviews cannot complete within the lifetime of an HTTP request. There are some conversational features, but even a single conversational turn goes through several rounds of reasoning and tool calls, which makes it hard to meet the latency users expect from an instant reply. The platform was therefore designed to run analysis in the background on a fixed schedule, with the decision-maker reading the finished reports later. Conversational features are limited to short tool loops, and every job that calls models multiple times was moved into this background execution.

The design constraints come from separating execution from decision. Agents analyze and propose, but adopting, deferring, or discarding a proposal, and publishing anything externally, is done only by people. Human decisions feed the next job, so whichever view a decision is made in, every agent and every view must see the same state. Some departments' data also contains internal judgments that must not be made public, while another department takes part of that data to prepare external publications. A structure that judges tool calls at the execution boundary was covered in "From Guardrails to the Execution Boundary — Policy Enforcement for Agent Tool Calls". For agents that collaborate with business teams, that boundary has to be drawn separately at four layers: the deployment unit, the data store, the execution unit, and the source of truth for decisions.

Options for Deployment Units, Data Boundaries, and Execution Schedules

For the deployment unit, two options were considered: deploying a separate application per department, or one class holding per-department profiles. Per-department deployments give the clearest isolation, but at a scale with a single decision-maker they mostly multiply deployment pipelines and authentication configuration by the number of departments. A single class with profiles accumulates department-specific branches in one class. AXONN Vantis therefore chose a middle path: one deployment unit with code and resources split per department. A separate deployment is reserved for when a department handling internal credentials is added, so that the secrets boundary matches the deployment unit. Moving to an agent-specific framework was also deferred at this scale, but department addresses follow the /agents/{department} form to lower the cost of moving later.

For the data boundary, the starting point was the initial design. When a general-purpose conversational agent was the center of the system, all job records lived in a single database. But departments differed in data lifetime, access scope, and schema migration cadence. The larger problem was the publication boundary. If the department preparing external publications queries another department's tables directly, every piece of code that queries those tables has to enforce on its own which fields may go outside. Once the publication boundary is scattered across code, a single omission becomes a leak of internal judgment.

For recurring execution, both the mechanism and the way schedules are expressed were examined. Waking jobs with per-object timers would have required building retries and per-stage execution records by hand, so it was not adopted. Starting workflows from a message queue had been used by the early general-purpose conversational agent. Recurring jobs, however, produce the same result even if delivery is somewhat late, and the workflow engine already provides retries and state persistence. Because the queue added no durability and only lengthened the delivery path and the set of resources to manage, it was removed. For schedule expressions, the weekly jobs' cron expressions initially named a weekday. In POSIX crontab, the weekday field takes values 0 to 6 with 0 as Sunday, and when both day of month and weekday are restricted, the two conditions are combined with OR. Which time zone a schedule is evaluated in, however, is left undefined and falls to the scheduler implementation. What a schedule expression means is set out in the specification, but whether jobs actually ran was something AXONN Vantis confirmed from the records in the department database.

A Department Registry in a Single Deployment and Per-Department Data Store Isolation

The adopted structure runs on Cloudflare Workers. A single application checks the department identifier in the request path against a department registry defined as a code constant and hands the request to that department's route handler. Requests for departments not in the registry, or that fail the caller rules, are rejected before reaching a handler. Each department has its own D1 database, Workflows instances, and Durable Objects class for conversation state, and conversational features run only short tool loops inside an instance scoped to a user and conversation. A department never writes to another department's database, and it receives another department's data only through a single function provided by that department's module. For example, the news data the publication-preparing department receives is limited to title, date, facts, source link, and relevance; the company's interpretation and internal judgments are never returned by that function. On every deployment a check script verifies that the receiving code contains no table names from the other department, so any query that bypasses the boundary function is caught before deployment.

The price of this structure is that application code has to guarantee consistency across departments. Once databases are split per department, writes spanning two departments cannot be made atomic in a single transaction. Writes therefore need a fixed order, and any inconsistency left by an interrupted write is resolved by a periodic reconciliation job. The flow in which one department's no-go decision moves another department's item to discarded is handled this way as well, and in operation both databases ended up consistent. Adding and removing departments, on the other hand, became simple. The department lineup changed several times early in operation, and one department added a new database and workflows, yet each change came down to one registry line, a department code directory, and resource configuration. When the early general-purpose agent was removed, its database could be deleted wholesale. Because all departments share one deployment, however, one department's error can block the whole deployment. Bundle size and startup cost also add up across departments, so the requests of every department pay for the dependencies any one department brings in. Blast radius and bundle growth have to be tracked together as the criteria for deciding when to split the deployment.

Splitting Long Model Calls into Steps and Leaving Decisions to People

Every job that calls models multiple times runs in a workflow that supports durable execution, split into a step per stage. A failure in one batch or one evaluation does not stop the rest of the review. Source sync, aggregation, analysis, review, evaluation, and persistence are each steps; news analysis is one step per batch of several items, and review comments are one step per model call. The workflow engine caches the result of each successful step, keyed by step name, so an instance resumed after a failure does not rerun completed steps and uses their stored results instead. Sizing each step as one model call or one batch therefore confines the impact of a failure to that one call or batch. Because steps can be retried, they are written to be idempotent, and any logic that depends on the time or on randomness sits inside a step so that a resumed run sees the same values. Instance IDs are unique per workflow, so they are derived from business keys such as the review date or the post number and revision to keep the same job from starting twice.

The decision boundary is implemented by separating tools from persistence. Every agent tool is read-only, and agent output is saved to the department database only after the workflow validates it in code. Only people change state or publish, and each decision is recorded in exactly one place. Scope decisions go in a decision log table, an item's state in that item's table and history, and a post in a single row of the post table; proposal cards and dashboards read state from that source of truth. Early on, each proposal card stored its own decision, and the approach was abandoned when different views began showing different states. Approval is conditioned on the version the person actually saw. A post is approved against the reviewed commit, and a revision submitted from a view against the modification time that view read, so anything changed after the person looked cannot be approved. Approving a post is the PR merge, and the merge is the deployment, so nothing but the build and deployment pipeline stands between approval and publication, with no second human judgment. The workflow does not assume publication; it changes the post's state only after observing that the change is actually live. The deferral, discard, or rejection reasons people record become input to the next job, and each view reads state fresh from the source of truth whenever it opens. Operation also revealed a problem: when an in-progress item appeared in no view, users mistook it for having been deleted. A rule was therefore added to keep in-progress items on screen together with their status.

Failure Isolation and Signal-Based Write Control Observed in Operation

The effect of splitting into steps showed up in the daily review. Every daily review in the operating period completed, and failed batches or evaluations reran only their own step. The reliability of recurring execution itself, by contrast, fell short of expectations. The daily review had a day when the scheduled run was skipped for no identifiable reason and a person started it manually. The production instance list has a short retention period, so whether past runs happened had to be verified from the department database. The schedule expressions changed as well. Because the time zone in which schedules are evaluated is left to the scheduler implementation, every schedule now starts daily at the same time without a weekday. The weekday check is done in code against a single designated business time zone. Jobs needed only on certain days, such as the weekly review, also start every day and exit immediately when the day does not apply. Each workflow now performs exactly one recurring job, so the type of job is never inferred from the cron string, and each workflow has its own start time so that recurring runs never overlap.

The second lesson came from writes that overlap with an external automated job. The source of truth for the sources is a version-controlled repository; an external batch job commits to it every morning, and a sync job copies it to the object storage the platform reads. Human decisions are committed conditioned on the sha the platform received when it read the source file, and on conflict the same change is reapplied to the latest version. The batch job followed decisions committed this way on the next day. Because there is a sync delay before a commit reaches the copy, the view shows a pending-reflection status in the meantime rather than hiding that the source is ahead of the copy. At first, to avoid colliding with the batch job, commits were blocked for the entire morning window in which the batch could run. As a result, even on days the batch job finished early, human decisions stayed blocked until the window closed. Whether the batch job had finished could be determined from whether the day's log had appeared in the copy. The release condition was therefore changed to the appearance of that log, with the fixed end time kept only as an upper bound for days the batch job does not run. A limit of the boundary function also came to light in operation. Individual facts from news items once found their way into an external publication. The function's own boundary held; the cause was that its output had been included unchanged in the next stage's writing input.

Design Considerations Other Teams Can Apply

In autonomous agents, isolation cannot be concentrated in one place; it has to be placed separately at each layer. First, isolate data with resources and a boundary function. With a database per department, code that queries another department's tables can be caught by a check script on table names alone, and the list of fields safe to publish collects in one function's return type. What a boundary function guarantees, however, ends at the fields it returns. What gets included when that result is combined with the next stage's input has to be checked separately. Second, size a step as the largest unit whose loss is acceptable when it is rerun after a failure. On this platform that unit was one model call or one news batch, and deriving instance IDs from business keys such as a date or post number makes duplicate starts structurally impossible. Third, put only times in cron expressions and make calendar decisions such as the weekday in code against a single time zone. Whether a recurring run actually happened should be reconciled weekly against your own store's records, which outlive the platform's instance list.

Fourth, record each decision in a single source of truth and condition approval on the version the person saw, whether a commit or a modification time. Binding approval and publication into one action removes the need for a person to decide on the same item twice. Fifth, when blocking writes that overlap with an external automated job by time, first check whether a signal that the job has finished can be observed, and use the fixed time only as an upper bound for days the signal never arrives. Open problems and limits remain. A timeout on the model call itself had to be set separately from the workflow step timeout. In local development, an application reload stops running workflows and scheduled runs do not fire, so verifying recurring jobs still depends on production. The growing blast radius of a single deployment remains a judgment call about when to split deployments, starting with departments that need a secrets boundary.

Summary

AXONN Vantis's per-department agent platform has a single application route requests through a department registry, gives each department its own database and workflows, and lets departments receive one another's data only through a single function. Jobs that call models many times are split into steps per call or per batch so that failures stay inside the step, and agent tools are read-only so that state changes and publication remain human decisions. Every daily review in the operating period completed, but whether recurring runs actually happened had to be reconciled against the platform's own records. A fixed-time write block also delayed human decisions from taking effect even after the external job had finished. In response, the weekday check moved into code, and releasing the block was tied to a signal that the external job had finished.

Ultimately, the operational stability of autonomous agents that work alongside business teams depends less on making the agents themselves more trustworthy than on structural design: deciding, layer by layer, which boundary failures, data, and decisions each stay within, and verifying those boundaries with code and observable signals.

References

← Blog