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.

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
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
- Choose Compare local and hosted models.
- Connect Explore tools, memory and retrieval.
- Inspect Observe execution and information flows.
- Restrict Examine access and permission boundaries.
- Evaluate Decide when an external service is justified.
Building the system exposes the consequences of architectural decisions.
02 / Architectural perspective
From conversation to execution
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
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
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
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
| Component | Role in the experiment |
|---|---|
| Open WebUI | User interaction and document access |
| Hermes Agent | Agent orchestration, tools and memory |
| LiteLLM | Model access and usage governance |
| Ollama / llama.cpp | Local 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
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
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.
06 / Architectural perspective
The model gateway as a control point
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
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
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
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
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
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
The home lab cannot substitute for enterprise engineering and assurance, but it helps challenge assumptions before they become embedded in architectural decisions.
- Who owns the agent and the authority it exercises?
- Which information flows and external dependencies does the complete execution path introduce?
- Where are permissions and consequential actions enforced independently of model-generated instructions?
- How will the organisation detect unexpected behaviour, intervene and establish whether controls remain effective?
- 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
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
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
Primary documentation for the technologies and architectural considerations discussed. These resources describe product capabilities; they do not independently verify the experimental implementation.
- Open WebUI
Interaction, knowledge and retrieval
https://docs.openwebui.com/
- Hermes Agent
Agent tools, configuration and workflows
https://hermes-agent.nousresearch.com/docs
- LiteLLM
Model proxy, routing and budgets
https://docs.litellm.ai/docs/
- LiteLLM virtual keys
Scoped model access and limits
https://docs.litellm.ai/docs/proxy/virtual_keys
- Ollama
Local model serving
https://docs.ollama.com/
- llama.cpp
Local inference runtime
https://github.com/ggml-org/llama.cpp
- OpenRouter
Provider routing and data-handling caveats
https://openrouter.ai/blog/insights/zero-data-retention/
- Anthropic
Multi-agent research system
https://www.anthropic.com/research/multi-agent-research-system
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/