AIFeed

One Year Building AI Agents for Companies That Weren't AI-Ready: Lessons Learned

Original text(via HN AI)

One Year Building AI Agents for Companies That Weren’t AI-Ready: Here’s What We Learned

From disconnected systems and AI guardrails to WebAssembly and air-gapped deployments: lessons from building digital workers for real organisations.

An AI demo can look remarkably simple.

Ask a question. The agent thinks for a moment. It calls a tool. A polished answer appears on screen.

Now put that same agent inside a large organisation.

The information it needs is spread across documents and operational systems. Some APIs are well documented; others are not. The person asking the question may not have access to every data source. One action needs approval. Another must be recorded for an audit. The customer wants the solution to run in its own infrastructure, and the production environment has no direct internet connection.

Suddenly, the question is no longer just “Which model should we use?”

Over the past year, we’ve been building agentic solutions through Greentic for organisations that are interested in AI but whose systems and processes weren’t necessarily designed for AI agents. Our work has drawn on experience across industries including telecoms, banking and industrial operations.

The following lessons reflect how we have approached these challenges. Some describe choices in our open-source platform; others describe practices we believe are important when designing and deploying enterprise AI. The right implementation will depend on the organisation and the maturity of its infrastructure.

To make the ideas concrete, I’ll use an illustrative example throughout: an AI worker helping a telecom operations team investigate a network alert.

1. The model is only one part of the solution

Suppose an alert arrives saying a network service is degraded.

A model can help interpret the alert. It might identify potentially affected services, summarise an operational procedure and suggest plausible causes.

But to be useful, the worker needs to answer questions the model cannot safely answer from general knowledge:

  • Is the service actually down, or is it undergoing planned maintenance?
  • Which customers or network elements are affected?
  • What procedure applies to this specific situation?
  • Has someone already opened an incident?
  • Is the worker allowed to create or update a ticket?
  • When should it hand the case to a human?

Each answer may live in a different system. Each system may have its own authentication, data model and failure modes.

The most impressive model in the world cannot compensate for a missing integration or an undefined business process. The model matters, but the work around it determines whether the solution can do anything useful.

2. RAG is useful, but it is not a system of record

Retrieval-augmented generation — RAG — gives an AI worker access to relevant documents. That is extremely useful for questions such as: “What is the procedure for investigating this type of alert?”

It is less suitable for answering: “Is this service currently in maintenance?”

A document might describe how maintenance is scheduled. It should not be treated as the authoritative source for whether a maintenance window is active right now. That information belongs in an operational system.

We found it useful to distinguish three things:

  • Knowledge: policies, manuals and playbooks that help explain what to do.
  • Facts: current business or operational data held in a system of record.
  • Actions: operations that change something, such as creating a ticket or updating a status.

The distinction is simple, but it affects the whole design. Knowledge may be retrieved and cited. Operational facts need a source, timestamp and appropriate access controls. Actions need validation, authorisation and, sometimes, approval.

In Greentic, our work on SoRLa [System of Record Language] addresses the problem of making structured business data and operations available to digital workers. The aim is to give the worker a way to ask the relevant system for the information it needs, rather than expecting the model to guess.

There is another subtlety: a system of record can be wrong, stale or unavailable. “Authoritative” means it is the designated source for a particular fact — not that every response is infallible. A good worker needs to know when data was last updated and what to do when it cannot obtain a reliable answer.

3. Not every task should be autonomous

The word “agentic” can create the impression that the agent should decide everything. We’ve found it more useful to ask which parts of a task benefit from flexibility and which need predictable boundaries.

In our telecom example, AI can interpret an unfamiliar alert and propose likely causes. A defined flow can then retrieve the current service status, check for a maintenance window and gather the relevant procedure. The worker can present its assessment to an operator. If an action has significant consequences, the flow can require approval before it proceeds.

The right boundary depends on context. Creating a draft summary is different from changing a network configuration. Searching for a ticket is different from closing an incident. Some low-risk actions may be automated; others need a named person to make the decision.

A deterministic flow does not make an LLM’s output deterministic. It gives you a clearer structure for deciding what happens around that output: what information is gathered, what checks are made, which actions are available and where control passes to a person.

The design question is: How much autonomy is appropriate for this decision, in this environment, given the consequences of being wrong?

4. Give digital workers capabilities — and boundaries

A useful worker needs new abilities over time. It may need to connect to a different ticketing system, check a new data source or communicate through a new channel.

One approach is to keep adding integrations directly into a single application. That can work initially, but it becomes harder to understand, update and secure as the number of integrations grows.

We chose to build around components with explicit interfaces and capabilities. It helps to separate three related concepts:

  • What a component offers: for example, an operation to retrieve a service status.
  • What it requires: perhaps access to a specific API or secret.
  • What policy allows: whether this worker, acting for this user, may invoke that operation in this context.

A network operations assistant might be allowed to read status information while a separate, more tightly controlled capability can change it. An integration should not receive broad access simply because another integration needs it.

Components also make it possible to reuse an integration across different workers and workflows. The aim is to introduce new functionality through a defined contract instead of reinventing the integration each time.

This requires discipline. A manifest saying what a component needs is useful only if the host actually validates and enforces those requirements. Compatibility, versioning and the lifecycle of each component also matter.

5. Why we chose Rust, WebAssembly and WASI

These needs influenced our technology choices.

We use Rust for parts of the platform where memory safety and systems-level control are valuable. We use WebAssembly components as executable building blocks with defined interfaces. WASI and host-provided interfaces allow components to interact with selected resources, while the host controls which capabilities are made available.

The distinction between the component and the host is important. A component might request access to a secret or an HTTP service. The host decides what to provide and under which policy. The component’s contract describes its requirements; the runtime must enforce them.

Our component tooling describes manifests, capability checks and a component store. The interfaces repository documents shared contracts used between components and the runtime. These choices help us work towards portable, reusable units that can be deployed in different environments.

WebAssembly is not magic security dust. A sandbox can limit access, but its effectiveness depends on the runtime, the host functions exposed and their configuration. If you give a component permission to call a powerful API, it can still do harm through that API. Business authorisation remains essential.

There are engineering costs too. Interfaces need versioning. Errors have to cross boundaries in a form operators can understand. Developers need tooling for building, testing and inspecting components. An architecture that looks elegant on a whiteboard can become painful if the developer experience is neglected.

For us, the value is in the combination: explicit contracts, reusable components and a controlled execution environment.

6. Deployment is a product feature

Enterprise customers do not all want to run software in the same place.

One organisation may use a public cloud. Another may have Kubernetes in its own data centre. A third may need edge devices which behave like virtual machines accessible through a VPN. A customer pursuing sovereign AI may have specific requirements for where data is processed, who can operate the system and which dependencies it can use. An air-gapped environment may have no direct internet connection at all.

If the platform assumes one cloud, one container service or one way to obtain credentials, deployment becomes a redesign project for every customer.

Our design goal is to keep workers, components and business logic as independent as practical from the environment in which they run. The deployment layer then deals with the specifics of the infrastructure. Depending on the customer, that may involve cloud services, Kubernetes, virtual machines or packaging and deployment approaches such as Snap and Juju.

This is a design goal, not a claim that every combination is already implemented and proven. Portability requires testing each supported path, especially when the environment differs from the development environment.

What happens when an air-gapped system needs an upgrade?

Imagine a production environment that cannot pull an image or contact an update server directly. A possible controlled process looks like this:

  • An authorised operator signs in from a connected environment and downloads an approved, signed update package.
  • The package crosses the air gap through the organisation’s approved transfer process, e.g. usb stick physically moved from one computer to another.
  • The receiving environment verifies the signature, integrity and compatibility of the package.
  • Where the infrastructure allows it, the update is applied to a small initial group.
  • Operators check system health and business outcomes before continuing the rollout.
  • If something goes wrong, the rollout stops and the team uses a tested recovery or rollback procedure.

In some environments that first group can be a canary; in others it might be a set of early adopters. A single isolated installation may need a different approach entirely.

Rollback needs more thought than reinstalling the previous binary. What if the update changed a database schema or wrote data that the previous version cannot understand? Upgrade and migration compatibility need to be designed together.

Finally, ask what must work locally: models, identity, secrets, logging, audit, administration and system integrations. Running an LLM in a local data centre does not automatically make the rest of the solution sovereign.

7. Security is a chain of trust

When people ask whether an AI agent is secure, the conversation often starts with the model. Can it be tricked? Will it reveal sensitive information? Will it follow malicious instructions?

Those questions matter. So do questions about the software and infrastructure surrounding it: who built a component, whether it has changed, what it can access, who can use it and whether its actions can be investigated afterwards.

Security needs to cover the whole journey.

Trust what gets deployed

Signing WASM components and deployment bundles can help an organisation verify their integrity and establish which key signed them. Verifiable credentials can express claims about an issuer or release; decentralised identifiers such as did:web can be used as part of a trust design.

An air-gapped deployment adds a complication: did:web normally depends on information published over HTTPS. An isolated environment needs an approved way to bring in and update trusted keys and related verification information, including a process for key expiry or revocation.

A valid signature does not prove a component is harmless. It establishes that the signed content has not changed and can be linked to a signing key the verifier recognises. The organisation still needs to decide which signers, releases and permissions it trusts.

Restrict the runtime

At the container layer, minimal or distroless images and static binaries can reduce unnecessary software. Running filesystems as read-only where practical limits where a process can write. If a service needs writable storage — for logs, temporary files or state — that access should be explicit and limited.

At the component layer, WASM permissions and host capabilities provide another boundary. Secrets should come from controlled secret-management interfaces rather than being baked into images or pasted into prompts.

These controls address different parts of the problem. A read-only filesystem does not prevent an authorised network call. A sandbox does not replace a business permission check. The layers have to work together.

Secure the agent’s interactions

An agent can have carefully limited permissions and still receive sensitive data or malicious instructions in a document or tool response.

Guardrails therefore need to consider what enters the agent, what it asks tools to do and what it returns:

  • Personal data: detect and minimise it where appropriate, and check whether the user and model are authorised to receive it.
  • Prompt injection: treat retrieved documents, web content and tool results as untrusted data, and restrict the actions an agent can take in response.
  • Secrets: avoid placing credentials in prompts, detect potential exposure and prevent secrets from appearing in responses or logs.
  • Tool calls: validate the operation, arguments and authorisation before a consequential action is executed.

These controls involve trade-offs. A customer-service worker may legitimately need some personal information. Detection will not catch every prompt injection or secret, and it can also flag harmless content. That is why guardrails must be supported by permissions, isolation, validation and human approval where appropriate.

Manage people and record actions

Enterprise identity matters too: single sign-on, passkeys where supported, and SCIM provisioning and deprovisioning can help organisations manage access through their existing identity processes. Roles and tenant boundaries determine which workers and data a user can access.

Finally, operators need visibility. Telemetry, including OpenTelemetry where appropriate, helps diagnose performance and failures. Audit records answer different questions: who initiated an action, what was attempted, what happened and under which context. Both need careful handling so they do not become a new source of sensitive-data exposure.

The principle is straightforward: inspect what goes in, control what the agent can do, check what comes out and record what happened.

8. The happy path is not a production strategy

In a demo, the API responds, the model produces a sensible answer and the user is ready for the next step.

In production, a system is unavailable. An API returns an unexpected response. A user changes their mind. An approval takes two days. A model produces an answer that sounds convincing but misses an important detail.

What happens then?

A useful digital worker needs a way to handle timeouts, errors and escalation. A long-running task may need to pause and resume with its context intact. Retries need care: repeating a read is different from accidentally creating the same ticket twice. For consequential writes, idempotency and a way to reconcile uncertain outcomes matter.

Evaluation needs to cover the whole task, not just whether the final answer sounds good. Did the worker retrieve the right information? Did it call the correct tool with the right arguments? Did it refuse or escalate when it should have? Did it complete the business task without creating a new problem?

Some of these checks can be automated; others require human review. The important point is to test realistic cases, including missing data, misleading content and failures, and then monitor what happens after deployment.

9. You don’t have to be perfectly AI-ready to start

The preceding sections may sound daunting. They can create the impression that an organisation needs a perfect data estate, a complete security redesign and a new operating model before it can use AI.

In our experience, the better starting point is a valuable, bounded problem.

Understand how the work is done today. Identify the people, systems and information involved. Decide what success looks like and which actions need human control. Build a solution that can work with the current environment, measure its results and improve it with the people who use it.

That does not remove the need for security or governance. It makes those decisions concrete. Instead of debating AI readiness in the abstract, the organisation learns which capabilities it needs for a particular task — and can reuse them for the next one.

From AI demos to digital workers

The past year has reinforced something for me: the hardest questions in enterprise AI are rarely limited to the model.

They are questions about where information comes from, who is allowed to act, how software is deployed, what happens when a system fails and how people remain in control.

That is why we have been building Greentic.ai around digital workers, reusable components and defined flows. Our platform and approach continue to evolve, but the goal is clear: help organisations put AI to useful work in the environments they already have.

The organisations that benefit most from AI will not necessarily be the ones with the most impressive demo. They will be the ones that can turn a useful idea into a dependable way of working.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗