Concept study Architecture study

P.03 / 2026

AI + Infrastructure

The private assistant

A reference architecture for knowledge work behind the firewall.

Private knowledge assistant architecture schematicA user request passes through identity, policy gateway, access-aware retrieval, local inference, and audit inside a controlled network boundary. A conceptual diagram.CONCEPT / PRIVATE KNOWLEDGE ASSISTANTNO EXTERNAL INFERENCEUSER / DEVICECONTROLLED NETWORK / POLICY BOUNDARYIDENTITYGATEWAYRETRIEVALINFERENCEPOLICYAUDITsource ACL · retention · operator controlsLOCAL / CONTROLLEDTRACEquestion · permitted sources · model version · evaluation metadata · action

Conceptual schematic / not a screenshot.

Local inference, access-aware retrieval, and an audit trail for organisations whose knowledge cannot leave the building.

Type
Concept study
Discipline
AI + Infrastructure
Status
Architecture study

Project note.

This concept study asks what a knowledge assistant looks like when the data cannot be sent to a hosted model. It is not a product and there is no commercial deployment behind it. It is a way of testing whether the useful parts of a modern assistant survive the constraints.

The answer is mostly yes — but only if identity, retrieval, inference, and audit are designed together. A local model bolted onto a shared folder is not a private assistant. It is a search box with new risks.

01 Problem

What made itdifficult.

The interesting part is rarely the happy path. These are the conditions that shaped the work.

The obvious constraint is inference location. The less obvious one is authorisation. A retrieval system must respect the same access boundaries as the source systems, at the granularity of the person asking, not the service account indexing the corpus.

The second challenge is audit. An answer that influences a decision may need to record the question, the sources, the model version, and the retrieval configuration. That record has to be useful without becoming a surveillance tool.

02 Constraints

The edgeswere the design.

A constraint is only useful when it eliminates an option. These are the boundaries the project had to respect.

  • No source content or query leaves the controlled network.
  • Retrieval permissions are evaluated per user and per request.
  • Model choice is replaceable without rebuilding the application.
  • Every answer links to permitted sources and a trace record.
  • Operators can inspect, disable, and update models independently.

03 Architecture

The system,in parts.

A component view. The diagram above is a conceptual schematic; this is the responsibility map behind it.

  1. 01

    Identity

    OIDC-backed sessions and per-user authorisation claims.

    P.03.1
  2. 02

    Gateway

    Request policy, rate limits, prompt assembly, and tool permissions.

    P.03.2
  3. 03

    Retrieval

    Access-aware candidate selection over a local index.

    P.03.3
  4. 04

    Inference

    Open-weight models served inside the network behind a common interface.

    P.03.4
  5. 05

    Audit

    Trace records, retention policy, and operator controls.

    P.03.5

04 Decisions

What we chose,and why.

Architecture is the set of decisions that are expensive to reverse. These are the ones that shaped the project.

D.01

Retrieval respects the source ACL

Filtering after retrieval is a data leak with extra steps. Permissions are applied to candidates before they enter the model context.

D.02

The model is replaceable

The application is built against an inference interface, not a specific checkpoint. Operators can change models without changing the product logic.

D.03

Every answer is a record

Questions, permitted sources, model version, and evaluation metadata are stored under an explicit retention policy.

D.04

Human review is a first-class path

High-impact answers support escalation with the evidence attached, rather than pretending every response is advisory.

05 Method

How itevolved.

A short account of the work, including what changed direction.

The study produced a threat model, an interface map, and a set of failure scenarios before any code. That was the useful part. The architecture is deliberately conventional: identity, policy, retrieval, inference, audit. Novelty would add risk without adding trust.

What would turn this into an implementation? A concrete corpus, a real access model, a hardware budget, and an operator team. None of those exist as part of this study, and the project should not be presented as if they do.

Artefacts

  1. Artifact 01

    Threat model

    Data-boundary, authorisation, prompt-injection, and audit risks with mitigations.

  2. Artifact 02

    Interface map

    The contracts between identity, policy, retrieval, inference, and audit.

  3. Artifact 03

    Failure scenarios

    Documented cases where the assistant must refuse, escalate, or degrade safely.

Next / Project inquiry

RX / INQ

Have something worth engineering?

Context Project / The private assistant
First step A conversation
Format Written brief or call

Tell us what you are building, what is getting in the way, and what good looks like. We will reply with a considered next step.