Architectural Field Notes / Independent Research

AI & Emerging Technology

Beyond the Model

What Building an Agentic AI Home Lab Taught Me About Enterprise Security Architecture

Read the full articleDownload PDF

Independent personal research. Not an employer-endorsed design or enterprise validation.

Original Beyond the Model V2.1 cover. Evidence (review and assurance), Execution (permitted actions), Policy (decision boundary) and Authority (delegated scope). Delegated authority permits execution; evidence informs review of authority.
Original publication · V2.1 · 13 pages

The executive introduction

Executive summary

Building a personal AI home lab began as an exercise in curiosity, practical learning and understanding the trade-offs between local and commercial models. It became an exploration of the architecture of autonomous systems.

When agents retrieve information, maintain memory, invoke services and perform actions, security extends beyond the model. Identity, delegated authority, information flows, operational resilience and accountability become fundamental design concerns.

This case study considers what independent experimentation can teach us about enterprise adoption. It is not a production-ready enterprise architecture.

The intelligence of the model influences what becomes possible. Architecture determines the conditions under which those possibilities can become acceptable.

At a glance / editorial guide

Key findings

These reading notes draw together the article’s architectural lessons; they are not additional experimental results.

  • Local inference is not an end-to-end privacy boundary. Tool calls, retrieval and external services require separate assessment.
  • Identity, capability and delegated authority are different. Protecting a credential does not constrain every action it enables.
  • A model gateway is one control point, not a universal boundary. Tool execution needs its own authorisation and monitoring.
  • Inspect execution, not only the answer. Purposeful observability must also protect sensitive information.
  • Evaluate complete outcomes. Model speed alone does not establish reliability, resilience or cost per successful task.

Evidence boundary: the home lab provides qualitative observations. Enterprise governance patterns are conceptual; comparative benchmarking and mid-flight revocation mechanisms remain future research.

01 / Architectural perspective

An unexpected justification

Original publication · p. 3

My wife once asked me a perfectly reasonable question. Why was I investing so much time and money in computer equipment that appeared to spend much of its life collecting dust and consuming electricity?

I suspected that explaining how it might eventually run GTA VI when the PC version becomes available was unlikely to be a particularly convincing argument. Building an AI home lab seemed like a more productive justification.

Behind the domestic humour was a genuine professional curiosity. I wanted to choose the models, connect the tools, inspect the execution, change the permissions and understand what happened when individual components behaved differently from my expectations.

As architects, we regularly work with conceptual models, vendor documentation and design assumptions. These are necessary, but building something yourself introduces a different perspective: you become responsible for the connections between components rather than simply consuming the capabilities they provide.

THE EXPERIMENTAL APPROACH

  1. Choose Compare local and hosted models.
  2. Connect Explore tools, memory and retrieval.
  3. Inspect Observe execution and information flows.
  4. Restrict Examine access and permission boundaries.
  5. Evaluate Decide when an external service is justified.

Building the system exposes the consequences of architectural decisions.

02 / Architectural perspective

From conversation to execution

Original publication · p. 4

A conventional model interaction takes a prompt and returns a response. An agent can instead interpret an objective, retrieve information, select tools, evaluate intermediate results and continue until it produces an outcome or reaches an execution limit.

A simple experiment illustrated the difference. A model without live weather tools explained that it could not provide current conditions. An agent used available tools to establish the relevant location and obtain information externally. The important distinction was not the final weather report, but the execution and information boundaries involved in producing it.

FIGURE 01 / FROM CONVERSATION TO AUTONOMOUS EXECUTION

From conversation to autonomous execution. The direct path is Prompt, Model inference, Response. The agentic path is Objective, Agent, Outcome / action, with repeated exchange between the Agent and Model / tools / memory.

A direct model response has a simpler execution path. An agent repeatedly exchanges information with models, tools and memory before returning an outcome or performing an action.

Open original figure 1 at full size (SVG) · Source PDF, p. 4

For an enterprise architect, understanding what enters a model and what comes back is no longer sufficient. We must also understand what happens between the request and the outcome.

03 / Architectural perspective

Designing an environment for experimentation

Original publication · p. 5

I deliberately assembled the home lab around separable components rather than relying exclusively on a single integrated AI product. The objective was not to recreate a commercial platform, but to expose the relationships between its constituent parts.

FIGURE 02 / EXPERIMENTAL AGENTIC AI ARCHITECTURE

Experimental agentic AI architecture. A local experimental environment contains Open WebUI, Hermes Agent, Memory / RAG, Tools / MCP, the LiteLLM model gateway and Ollama / llama.cpp local inference. External model options are OpenAI, NIM and OpenRouter; external services include Web / API / MCP. Knowledge and tool access have distinct routes from model access. These are logical relationships, not a deployment diagram.

Logical relationships, not a deployment diagram. Model and tool routes cross different boundaries; credential stores and policy controls require separate validation.

Open original figure 2 at full size (SVG) · Source PDF, p. 5

Components and roles
ComponentRole in the experiment
Open WebUIUser interaction and document access
Hermes AgentAgent orchestration, tools and memory
LiteLLMModel access and usage governance
Ollama / llama.cppLocal model serving and inference

Alongside these components, I have explored retrieval-augmented generation (RAG), credential handling, reusable skills and personal automation. A research agent does not necessarily require the same access as one supporting technical administration or personal assistance.

Componentisation provides flexibility, but each integration adds a configuration requirement and potential trust boundary. The wider conceptual design extends these ideas towards identity management, differentiated permissions, tool-level enforcement and observability. These are patterns for exploration, not a claim that every control is implemented or validated.

04 / Architectural perspective

The privacy boundary paradox

Original publication · p. 6

One of my most useful discoveries was that local AI does not automatically mean private AI. Local inference gives me greater control over model processing and can reduce disclosure to hosted model providers, but it describes only part of the information journey.

An agent may still use web searches, external APIs, Model Context Protocol (MCP) servers, hosted embedding services or other third-party integrations. Tool requests can contain contextual information derived from the task, including details a user did not intend to disclose externally.

FIGURE 03 / THE PRIVACY BOUNDARY PARADOX

The privacy boundary paradox. Within the local trust boundary, a user request reaches a local agent and local inference. A separate route carries task context across the boundary to an external Web / API / MCP tool. Data may leave the local environment even when inference is local.

Local inference is not equivalent to end-to-end local processing. A separate tool invocation can disclose information beyond the local trust boundary.

Open original figure 3 at full size (SVG) · Source PDF, p. 6

For enterprise adoption, assess the entire information lifecycle: retrieval, embeddings, tool requests, model routing, intermediate results, memory and telemetry. Data sovereignty also depends on processing locations, external dependencies, contractual arrangements and the controls governing the workflow.

A private inference environment with unrestricted tools may offer less privacy than its description suggests.

05 / Architectural perspective

Identity is not authority

Original publication · p. 7

An agent’s ability to authenticate to a service does not establish that it should be permitted to perform every action available through that service. This became particularly relevant when experimenting with agents that could use websites, access credentials or perform tasks on my behalf.

I removed permissions associated with activities I was not comfortable delegating, including purchasing. I also explored credential separation and masking sensitive information within model interactions. Credential vaults can help keep secrets out of prompts, provided the integration uses an appropriately controlled execution path. Protecting a credential from disclosure does not necessarily constrain what an agent can do with it.

An agent might legitimately retrieve product information, compare alternatives and prepare a recommendation. That does not mean it should also have permission to place an order or commit funds.

THREE DISTINCT DESIGN QUESTIONS

Identity
Which principal is acting?
Capability
What is it technically able to do?
Delegated authority
What may it do, on whose behalf, and under which conditions?

For consequential enterprise actions, authority should be bounded by operation, resource, purpose, conditions and duration. Where necessary, execution should require human approval or independent policy enforcement. An agent’s instructions should not be the sole security boundary protecting important systems.

06 / Architectural perspective

The model gateway as a control point

Original publication · p. 8

LiteLLM provides a layer of abstraction between applications, agents and model providers. It allows me to experiment with alternatives without requiring every consuming component to integrate directly with each provider. It also provides opportunities to centralise model-access policies, virtual keys, usage monitoring, budgets, rate limits and routing.

An agent-specific virtual key can be associated with permitted models and consumption limits. A gateway can also support alternative routing or fallback strategies, subject to configuration.

CONTROL COVERAGE / A DESIGN DISTINCTION

Model access
Virtual keys, permitted models, budgets and rate limits.
Model traffic
Input/output controls and routing where configured.
Tool execution
Independent authorisation, tool permissions and destination restrictions.

However, a gateway must not be mistaken for a universal security boundary. An agent may invoke a browser, database or external API without that interaction passing through the model gateway. Input and output guardrails on model traffic do not automatically govern these separate paths.

A more complete architecture needs complementary controls at appropriate boundaries: identity enforcement, tool permissions, destination restrictions, resource-level authorisation and operational monitoring.

Centralising governance is useful. Assuming that centralisation provides comprehensive control is not.

07 / Architectural perspective

Observability before autonomy

Original publication · p. 9

Inspecting execution rather than relying solely on final responses has been one of the most valuable aspects of the lab. Repeated model requests, retrieved context, tool calls and intermediate results reveal where additional controls may be required.

The weather example showed why a final answer is insufficient evidence: it does not reveal the preceding IP-based location lookup. In a separate demonstration, I inspected agent-specific model requests and explored masking payment-card and passport information in model interactions. These observations highlight the need to assess both the outcome and the execution path.

Execution traces from gateways, agents and connected services are not a complete explanation of a model’s internal reasoning. Nor does model-side masking establish that separate tool calls are protected.

FIGURE 04 / CONTROLLED AUTONOMY

Controlled autonomy, a conceptual enterprise pattern. Accountable ownership sits above Authority (delegated scope), Decision (policy / approval) and Operation (permitted action). Operating evidence feeds review, narrowing authority, revocation and policy improvement. This is not a claim of deployed home lab controls.

Conceptual enterprise governance pattern: accountable ownership, explicit delegation, independent policy decisions and continuous feedback. Not a claim of deployed home lab controls.

Open original figure 4 at full size (SVG) · Source PDF, p. 9

Visibility also introduces privacy risk. Detailed telemetry can expose sensitive prompts, retrieved documents and operational details. Unrestricted logging may create a new concentration of sensitive information.

The objective is purposeful observability: sufficient evidence to investigate unexpected behaviour without unnecessary exposure, supported by access and retention controls. Evidence should inform ongoing assurance and decisions to narrow or withdraw authority.

08 / Architectural perspective

Intelligence, performance and economics

Original publication · p. 10

Local inference introduces practical engineering trade-offs. Smaller models may be sufficient for straightforward tasks and easier to operate on limited hardware. More complex tasks may benefit from larger models or external services.

Tokens per second is a useful inference metric, but it does not tell us whether an agent can complete an objective reliably or efficiently. An agent may make several model requests, retrieve documents, wait for external tools, encounter failures and repeat parts of its workflow.

A fast model may still take longer to complete a task if it requires more iterations or produces unreliable tool calls. A more capable model may justify a higher cost if it completes the task with fewer interactions and less rework.

FIGURE 05 / BEYOND TOKENS PER SECOND

Beyond tokens per second. An illustrative execution path runs through Inference, Retrieve, Inference, Tool call, Validate and Outcome. End-to-end task completion time spans the workflow; Quality, Reliability and Cost support measuring successful, policy-compliant outcomes. This is illustrative, not measured benchmark data.

Illustrative workflow, not measured benchmark data. Inference is one contributor to end-to-end task completion.

Open original figure 5 at full size (SVG) · Source PDF, p. 10

I have not completed a formal comparative benchmark or total-cost-of-ownership assessment. The experiment helped clarify the questions such an assessment should answer:

  • Time to successful completion and number of model/tool interactions.
  • Reliability, quality, resource consumption and external service costs.
  • Frequency of retries, failures and human intervention.
  • Cost per successful, policy-compliant outcome.

Local execution also carries hardware, electricity, maintenance and operational costs. The appropriate comparison is whether an architecture provides the required capability, reliability and control at an acceptable total cost.

09 / Architectural perspective

Model independence and operational resilience

Original publication · p. 11

Separating the agent from the model provider gives me greater flexibility to experiment with alternatives. However, a common technical interface does not make different models behaviourally interchangeable.

In the lab, local-model responses for technical administration were slower than external alternatives. Repeated inference requests can compound latency and threaten task time limits. This was a qualitative observation, not a controlled substitution test.

Enterprise model changes should be managed through representative workflow tests, model-version management, controlled rollout and evaluation of fallback behaviour. Fallback models must remain within authorised information and security boundaries: technically successful failover is not acceptable if it redirects sensitive information to an unapproved provider.

10 / Architectural perspective

What this means for enterprise adoption

Original publication · p. 11

The home lab cannot substitute for enterprise engineering and assurance, but it helps challenge assumptions before they become embedded in architectural decisions.

  1. Who owns the agent and the authority it exercises?
  2. Which information flows and external dependencies does the complete execution path introduce?
  3. Where are permissions and consequential actions enforced independently of model-generated instructions?
  4. How will the organisation detect unexpected behaviour, intervene and establish whether controls remain effective?
  5. What evidence demonstrates reliable outcomes within acceptable risk and cost boundaries?

These questions apply to both built and bought platforms. A research assistant restricted to public information presents a different risk profile from an agent modifying infrastructure or initiating transactions. Governance should reflect these differences.

11 / Architectural perspective

Limitations and further research

Original publication · p. 12

My experimentation remains exploratory. It has not established production-scale performance, regulatory compliance, comprehensive resistance to adversarial manipulation or the effectiveness of every proposed architectural control.

Further areas of investigation include indirect prompt injection through external content, permission enforcement across tools, behavioural changes following model substitution and persistent agent memory.

12 / Architectural perspective

Closing perspective

Original publication · p. 12

What began as an attempt to put underused hardware to better use has become an exercise in architectural learning. Some of the most important questions concern the system surrounding the model: where information travels, who grants authority, how dependencies change and how we can intervene.

For me, the value of experimentation lies in making that distinction more tangible.

Better architectural judgement comes not only from understanding what technology promises, but also from observing what it actually does.

13 / Architectural perspective

Technical references

Original publication · p. 13

Primary documentation for the technologies and architectural considerations discussed. These resources describe product capabilities; they do not independently verify the experimental implementation.

  1. Open WebUI

    Interaction, knowledge and retrieval

    https://docs.openwebui.com/

  2. Hermes Agent

    Agent tools, configuration and workflows

    https://hermes-agent.nousresearch.com/docs

  3. LiteLLM

    Model proxy, routing and budgets

    https://docs.litellm.ai/docs/

  4. LiteLLM virtual keys

    Scoped model access and limits

    https://docs.litellm.ai/docs/proxy/virtual_keys

  5. Ollama

    Local model serving

    https://docs.ollama.com/

  6. llama.cpp

    Local inference runtime

    https://github.com/ggml-org/llama.cpp

  7. OpenRouter

    Provider routing and data-handling caveats

    https://openrouter.ai/blog/insights/zero-data-retention/

  8. Anthropic

    Multi-agent research system

    https://www.anthropic.com/research/multi-agent-research-system

ABOUT THE AUTHOR

Samir Tahir is an Enterprise Cyber Security Architect working at the intersection of enterprise architecture, cybersecurity strategy and technology transformation. His research explores controlled autonomy, agentic AI security, proportionate governance and architectural decisions that enable secure technology adoption in complex, regulated environments.

samirtahir.com / Research, engineering and architectural perspectives

Source and citation

Samir Tahir. Beyond the Model: What Building an Agentic AI Home Lab Taught Me About Enterprise Security Architecture. Architecture in Practice, case study 01, version 2.1. Published . Original publication (PDF, 13 pages).

This HTML edition retains the complete source prose, original figures, captions and technical references. PDF running headers, page furniture and typographic line breaks have been adapted for the web. Key findings are an editorial reading guide, not a separate validation study.

Permanent link: https://samirtahir.com/insights/beyond-the-model/