Sections
A lighter workstation, a dedicated AI worker
Portfolio project · Distributed AI architecture study
A hybrid compute pattern for moving code analysis, local-model inference and test workloads off a developer’s everyday machine, without treating a private network as a substitute for capacity planning or verification.
Architecture study. This resource develops the supplied design for a Tailscale-connected worker with WSL2, Ollama and a multi-model gateway. The workflow is illustrative, not a published benchmark or independently audited deployment. Hardware specifications describe the source’s reference setup; they do not establish measured application performance.

1. The problem: too much work on one machine
A coding workflow can put several different loads on the same workstation. An editor needs to stay responsive. A repository indexer traverses files and constructs symbols, abstract syntax trees and dependency relationships. Tests compete for CPU, memory and disk access. A local language model needs memory for its weights, context and runtime buffers. A review process may ask several models to inspect the same change.
Those jobs do not have the same resource profile or the same urgency. Running them together can make a powerful machine feel slow even when no single component is failing. The source whitepaper’s central design choice is to separate coordination from execution: keep the interactive client close to the developer and place expensive, repeatable work on a dedicated worker.
That moves contention rather than abolishing it. The worker still has finite CPU, VRAM, RAM, storage throughput and queue capacity. The useful question is whether this separation improves the developer’s experience while preserving reproducibility, data controls and a recoverable failure path.
2. The topology: roles and boundaries
| Layer | Intended responsibility | Boundary that matters |
|---|---|---|
| Local coordination client | Interpret the task, choose eligible work, track progress and present results | Do not confuse dispatch with completion; retain job identity and outcome evidence |
| Private mesh | Carry authorized traffic between the client and worker | Encryption protects transport; access rules, service binding and host controls still determine exposure |
| Dedicated worker | Run repository analysis, local inference and isolated verification | Resource limits, clean inputs and durable outputs matter more than simply having a reachable machine |
| Model gateway | Route eligible inference requests to configured local or external providers | A fallback can change cost, data destination, model behavior and availability |
| Verification layer | Evaluate patches through tests and separately framed review | Model agreement is review input, not proof that code is safe |
The source places a Windows 11 Pro host behind this design, with Ubuntu in WSL2 and Docker plus the NVIDIA Container Toolkit for GPU-enabled workloads. Microsoft documents NVIDIA CUDA support in WSL2, including Docker and toolkit support. Actual driver, runtime and container compatibility must still be checked for the installed versions.
The design has three logical service interfaces: SSH for job dispatch and file transfer, Ollama for local inference, and the gateway for provider routing. A production design should document which operating environment owns each service: the Windows host, WSL distribution or container. That determines where it starts, which filesystem it sees, where logs go and which firewall rules apply. This ownership detail is not resolved by the source whitepaper.
3. Reference hardware and its limits
| Component | Reference setup described in the source | What can be established |
|---|---|---|
| CPU | AMD Ryzen 9 9950X3D | AMD lists 16 cores and 32 threads; this is capacity, not an indexing benchmark |
| System memory | 64 GB DDR5 | Source-described configuration; available RAM depends on host and WSL allocations |
| GPU | NVIDIA GeForce RTX 5080 | NVIDIA lists 16 GB GDDR7 and CUDA compute capability 12.0 |
| Operating environment | Windows 11 Pro, Ubuntu in WSL2, Docker/NVIDIA toolkit | Supported architectural direction; installed versions and readiness are not evidenced here |
| Connectivity | Tailscale private mesh | Direct or relayed paths are possible; latency must be measured on the actual path |
CUDA compute capability and CUDA software version are different facts. The supplied document’s “13.3” is not a valid compute-capability claim for this GPU: NVIDIA’s published value for the RTX 5080 is 12.0. This page does not infer an installed toolkit version from either number.
More CPU threads can help workloads that parallelize well, but repository size, language mix, parser behavior, storage and cache state affect indexing time. Likewise, a dedicated GPU can improve inference placement without making every model fit entirely in VRAM.
4. Local inference: fit the model before promising acceleration
Ollama is the local serving layer in the design. The source proposes models including deepseek-r1:32b and qwen3:30b, with large context settings and full GPU offload. That combination needs a capacity check, not a configuration wish.
At the time of review, Ollama’s library lists deepseek-r1:32b at approximately 20 GB and qwen3:30b at approximately 19 GB. Those listed artifacts exceed the card’s 16 GB VRAM before allowing for context and runtime memory. A different quantization or smaller model changes the fit, but must be identified explicitly. System RAM does not become extra VRAM merely because both are present.
Ollama documents GPU-only, CPU-only and mixed CPU/GPU placement. Its ollama ps output reports the processor split and allocated context. Increasing context increases memory requirements; parallel requests add further demand. The model’s supported context and the context actually allocated by the server are separate settings.
A useful inference record therefore includes:
- Exact model tag or digest and quantization.
- Allocated context, concurrency and cache settings.
- CPU/GPU placement observed while the model is loaded.
- Prompt size, output length and whether the run was cold or warm.
- Time to first token, generation rate and peak memory use.
The source’s YAML is best understood as a statement of intended settings, not a verified Ollama deployment file. A publishable implementation should use the selected runtime’s documented controls and show the observed result. This resource does not reproduce an unverified “full offload” recipe.
5. The gateway: availability with explicit tradeoffs
The second serving layer is OmniRoute. Its project documentation describes an OpenAI-compatible gateway with provider translation, model-combination fallback, account fallback and usage tracking. That supports the architectural role proposed in the whitepaper: the client can use one interface while the gateway selects among configured upstreams.
The important distinction is between routing and review. A gateway that retries a failed request on another provider has not automatically created an independent security, performance and concurrency review. A three-perspective review needs its own task definitions, evidence, disagreement handling and acceptance criteria. The source’s council is a proposed workflow around the gateway, not a certification supplied by fallback routing.
| Routing decision | Benefit sought | Control needed |
|---|---|---|
| Prefer a local model | Keep an eligible request on owned compute | Validate model fit, queue time and task quality |
| Retry another local model | Recover from model-specific failure | Preserve input, job identity and failure reason |
| Use an external provider | Obtain capacity or a different capability | Explicit data classification, approved provider and cost limits |
| Stop when no eligible route exists | Avoid an unsafe or unauthorized fallback | Return a clear blocked result rather than silently changing policy |
A free quota is not unlimited capacity, and an external “free” route still changes where data is processed. The source’s aliases are examples of intended routing policy, not verified universal model identifiers. Resolve actual aliases and available models from the deployed gateway configuration.
6. Private transport is one part of security
Tailscale documents end-to-end encrypted direct and relayed connections. Direct connections generally offer lower latency, while relays can be necessary when network conditions prevent a direct path. A claim of 11-13 ms round-trip latency needs a dated test with the connection type, locations and workload conditions. It cannot be inferred from using Tailscale.
The design goal is private service access, not a guarantee that installing the mesh eliminates every public or local exposure. Review listening interfaces, Windows and Linux firewalls, container-published ports, shared-device access and tailnet permissions together.
Tailscale Serve is one documented option for making a local service available inside a tailnet. Its documentation says access rules apply, and recommends localhost-only backends when relying on injected identity or capability headers. Public Funnel exposure is a separate choice and is not required by this design.
For this architecture, a security review should answer four practical questions:
- Which principals can reach each service, and which operations can they perform?
- Can an inference or dispatch endpoint be reached by bypassing its intended authorization path?
- What code, prompts, patches and logs can leave the worker through external providers or telemetry?
- How are credentials, retention, revocation and incident recovery handled?
Keeping inference local can reduce external disclosure for that request. It does not prove full privacy for the entire workflow. Gateway fallback, logs, backups and application behavior remain part of the data path.
7. Dispatch policy: proactive, but bounded
The source proposes automatic offloading instead of waiting for a person to ask for the worker on every task. That can be a useful operating policy when the eligible work and its limits are explicit.
| Workload | Candidate placement | Admission check |
|---|---|---|
| Repository indexing and static analysis | Worker CPU and storage | Correct repository revision, tool availability and output location |
| Local-model reasoning or embeddings | Worker inference service | Model fit, context, queue and data policy |
| Test suites and build verification | Isolated worker environment | Reproducible inputs, dependencies, timeout and resource budget |
| Multi-perspective patch review | Approved local or external models | Provider eligibility, review rubric and evidence handling |
| Interactive editing and task presentation | Local client | Keep the foreground experience responsive |
A healthy TCP connection establishes reachability, not operational readiness. A worker might answer SSH while its disk is full, the required model is absent or the test image is stale. A readiness check should match the workload being admitted.
Offloading should not silently widen authority. A request to analyze code is different from permission to modify a repository, contact a new model provider or deploy a patch. The coordination policy should carry those boundaries alongside the job, including a timeout and a clear response when a prerequisite fails.
8. An illustrative refactoring workflow
The whitepaper describes a four-phase enterprise refactoring trace. No raw execution logs or benchmark results accompany the supplied file, so the phases below explain intended mechanics rather than claim a completed measured run.
Phase 1: ingest and index
Dispatch a job tied to a repository revision. Transfer only the required inputs, run the selected analysis tool on the worker and retain the tool version, exit status and index artifact. ASTs, dependency graphs and program-dependence information are different analysis outputs; the tool and its actual supported analysis determine which are available.
Success means the expected artifact exists and corresponds to the intended revision. It does not mean the whole codebase was understood correctly because a command finished quickly.
Phase 2: analyze and propose a patch
Send the relevant code and analysis context to an eligible model route. Keep the original input, selected model, generated diff and explanation together. The local inference route may reduce cloud API usage, but its speed and memory placement need observation.
The output is a proposed change. A model’s taint-analysis explanation does not replace a suitable static analysis tool or a reproducing security test.
Phase 3: review from distinct perspectives
Ask separately framed reviewers to inspect security assumptions, performance risks and concurrency behavior. Require concrete findings tied to the diff, not just an aggregate approval score. Record disagreements and have a defined way to resolve them.
A score such as 98/100 is not a safety certificate. Several models can share the same blind spot, and a consensus can be wrong. Review should help decide what to test, inspect or reject.
Phase 4: run verification and return evidence
Execute the relevant tests in a controlled environment and retain commands, image/dependency versions, results and failures. Use GPU access only for tests that need it; granting a container a GPU does not improve ordinary unit-test coverage.
A container is an execution boundary, not proof of complete isolation. Repository mounts and network permissions should match the job. The result returned to the client should distinguish proposed patch, applied patch, tests executed and tests passed. Deployment is a separate decision.
9. Quality gates and failure behavior
The source emphasizes independent checks, fail-closed behavior and an audit trail. Those are valuable intentions when translated into observable conditions.
| Gate | Evidence expected | If the gate fails |
|---|---|---|
| Input identity | Repository revision and job manifest | Do not analyze or patch the wrong snapshot |
| Worker readiness | Workload-specific dependency and capacity checks | Queue, stop or choose an already authorized alternative |
| Patch integrity | Reviewable diff, scope and generated artifacts | Preserve the proposal without treating it as accepted |
| Verification | Relevant test outputs and unresolved review findings | Report failure or uncertainty; do not turn a model score into approval |
| Result provenance | Tool/model versions, timestamps and output references | Mark the result incomplete rather than fabricate a trace |
| Release decision | Explicit release criteria and authorized owner | Do not equate test completion with deployment permission |
Logging every prompt and output can itself create a sensitive dataset. Retain enough to reproduce and audit the work while applying access controls, redaction and retention limits. An audit trail is useful only if it is trustworthy, retrievable and safe to keep.
10. What to measure before calling it successful
The design aims to reduce foreground disruption, make use of dedicated hardware and control reliance on external APIs. None of those outcomes is established by a topology diagram alone.
Compare local-only and offloaded runs on the same task and revision. Record cold and warm runs, connection type, queue time, transfer time, execution time and foreground responsiveness. For inference, include context, quantization, processor split and output length. For tests, record the suite actually run and failures rather than claiming “complete coverage.”
Cost accounting should include hardware, electricity, maintenance and any external provider use. Local inference may avoid a per-token cloud charge for a particular request, but does not have zero total cost. Likewise, moving work off the client can reduce contention without making coordination, transfer and result handling free.
The strongest version of this resource would add reproducible traces, a before/after workload comparison, negative tests for failed routes and a recovery demonstration. Until then, its contribution is an architectural pattern with explicit tradeoffs: separate interactive work from expensive execution, make model routing visible, and require evidence before accepting a result.
11. Sources and scope
Prepared from the supplied architectural whitepaper, with technical checks against the following primary documentation on November 4, 2026. Operational procedures and validation tables above develop the source’s design intent; they are not claims about a tested deployment.
- AMD Ryzen 9 9950X3D specifications: core/thread count and DDR5 support.
- NVIDIA RTX 5080 specifications and CUDA compute capability table: memory and compute-capability correction.
- Microsoft: NVIDIA CUDA in WSL2: supported Windows/WSL GPU direction.
- Ollama FAQ and context-length documentation: memory placement, context and concurrency.
- DeepSeek-R1 32B model listing and Qwen3 model listing: listed model sizes, not machine-specific memory measurements.
- Tailscale connection types and Tailscale Serve: transport paths, service access and backend binding.
- OmniRoute architecture documentation: gateway routing capabilities. Project documentation describes intended software behavior, not independent certification of this setup.