Skip to content

Data flow and privacy

This page answers one question an administrator is always asked by security: when MAIA Plus handles a ticket, where does the data go? It follows a single request from ingress to audit and marks every point where data leaves the host or is written down.

MAIA Plus request path: ingress, queue, context and retrieval, redaction, provider, tool gate, audit

The control points are the arrows that can stop a request: redaction before the model, the tool gate before a write, and the destination policy before an outbound call.

EntryWhat arrivesAuthentication
ServiceDesk Plus custom triggerA webhook POST with ticket identity and event typeScoped webhook key bound to one target
Page script (technician / requester Copilot)A conversation turn from the browserMAIA token exchanged from the SDP session
MAIA WebUIAdministrator actionsWebUI session
Workflow webhook triggerArbitrary JSON payloadWebhook key bound to the workflow entry

At ingress MAIA Plus validates the target registration, the key’s route template, the model and profile revision, and the event type. A caller cannot override the event type of a scoped key — that check exists so a compromised payload cannot reshape what runs.

The request becomes an agent_run_state row in queued, with a matching log row. A worker claims it with FOR UPDATE SKIP LOCKED, moves it to running, and takes a lease with a heartbeat every 20 seconds. An expired lease can be recovered by another worker, bounded by a recovery counter.

Nothing is lost if a worker dies: the run stays in the database, not in memory.

Before any model call, the runtime restores: profile, agent, autonomy mode, approval policy, language policy, ticket read scope, knowledge scope, conversation history and the tool set.

This is where visibility is decided, not at retrieval time. A ticket the caller may not read never becomes context; a requester conversation is filtered free of technician notes, worklogs and internal history.

  1. The query is embedded through the Embedding route.
  2. Similar chunks are fetched from PostgreSQL.
  3. PII policies run over the assembled text, using the NER service when enabled and regex always.
  4. A category with action Block stops the request before the model is called.

Step 3 is the only point where data is sent to a component outside MAIA Plus for inspection: with the NER service enabled, text goes to that service. With it disabled, detection is regex-only and nothing leaves the host for redaction.

The workload route selects the profile; queries go to the configured provider over HTTPS, through an audited outbound fetch with a destination policy. What the provider receives is the prompt, the selected context and the tool definitions — nothing else.

Two consequences worth stating plainly:

  • The provider sees ticket content. That is the product working as designed; contract and data-residency questions belong to the provider agreement.
  • A profile without an assigned route fails instead of falling back, so a misconfiguration cannot silently send data to an unexpected vendor.

Every tool carries a type, a source, a risk level and an approval rule:

PathBehaviour
ReadExecutes immediately if the scope allows
Write or external effectGoes to the action ledger, or waits for approval
BlockedNever executes

Approval-required calls create a decision record; the run pauses as waiting_for_approval and resumes only after a human decides. Nothing is written while the approval is pending — the gate is before the effect.

The run closes through a lease-conditioned transition (completed, failed, cancelled, waiting_*). Audit is written only after a successful transition, so the record always describes a state that actually happened.

The identifier chain makes the record traceable: run_id → correlation_id → action_id → tool_call_id → delivery_id, plus ticket_id.

StoreContentRetention control
PostgreSQL (MAIA)Configuration, runs, conversation transcripts, chunks and vectors, audit events, memory, model artifacts metadataRetention and export
ServiceDesk PlusTickets, notes, tasks — MAIA Plus writes through tools, never behind SDP’s backSDP policy
ProviderPrompts and responsesProvider agreement
MCP serverTool calls and their argumentsThat server’s policy
NER serviceText submitted for entity detectionThat service’s policy
ConcernControlWhere
Personal data in promptsNER + regex policies with Block or PseudonymizeData Protection
Ticket visibilityTicket read scope, enforced during context assemblyRoles, portals and scope
Requester exposureRequester conversations filtered of internal notes and worklogsRequester Copilot
Data sent to a vendorWorkload routes plus the “allow redacted ticket content” provider flag (off by default)AI providers
Unattended writesAutonomy mode and approval policyApprovals and autonomy
Uncontrolled egressDestination policy on the audited outbound fetch; MCP servers listed explicitlyTools and MCP
EvidenceEnterprise Audit with actor, time, tool calls and business resultEnterprise Audit
Secrets at restSecret store, masked in UI, never returned by the APISecurity and secrets
  • Redaction is not anonymisation. Pseudonymised values can still be re-identified from their pattern.
  • NER is optional, so an installation that never enabled it relies on regex alone.
  • Audit stores trimmed payloads, not verbatim transcripts; it is evidence of what was reported.
  • A write you approve is a write. The audit explains it; it does not undo it.
  • Local models change the map — if inference runs on the host, nothing leaves, but the sizing and the GPU story change with it.

Roles, portals and scope · Approvals and autonomy · Data Protection · Retention and export · Platform support