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.
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.
Ingress
Section titled “Ingress”| Entry | What arrives | Authentication |
|---|---|---|
| ServiceDesk Plus custom trigger | A webhook POST with ticket identity and event type | Scoped webhook key bound to one target |
| Page script (technician / requester Copilot) | A conversation turn from the browser | MAIA token exchanged from the SDP session |
| MAIA WebUI | Administrator actions | WebUI session |
| Workflow webhook trigger | Arbitrary JSON payload | Webhook 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.
Queue and worker
Section titled “Queue and worker”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.
Context assembly
Section titled “Context assembly”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.
Retrieval and redaction
Section titled “Retrieval and redaction”- The query is embedded through the Embedding route.
- Similar chunks are fetched from PostgreSQL.
- PII policies run over the assembled text, using the NER service when enabled and regex always.
- 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.
Provider call
Section titled “Provider call”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.
Tools and the write boundary
Section titled “Tools and the write boundary”Every tool carries a type, a source, a risk level and an approval rule:
| Path | Behaviour |
|---|---|
| Read | Executes immediately if the scope allows |
| Write or external effect | Goes to the action ledger, or waits for approval |
| Blocked | Never 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.
Completion and audit
Section titled “Completion and audit”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.
What is stored, and for how long
Section titled “What is stored, and for how long”| Store | Content | Retention control |
|---|---|---|
| PostgreSQL (MAIA) | Configuration, runs, conversation transcripts, chunks and vectors, audit events, memory, model artifacts metadata | Retention and export |
| ServiceDesk Plus | Tickets, notes, tasks — MAIA Plus writes through tools, never behind SDP’s back | SDP policy |
| Provider | Prompts and responses | Provider agreement |
| MCP server | Tool calls and their arguments | That server’s policy |
| NER service | Text submitted for entity detection | That service’s policy |
Control checklist
Section titled “Control checklist”| Concern | Control | Where |
|---|---|---|
| Personal data in prompts | NER + regex policies with Block or Pseudonymize | Data Protection |
| Ticket visibility | Ticket read scope, enforced during context assembly | Roles, portals and scope |
| Requester exposure | Requester conversations filtered of internal notes and worklogs | Requester Copilot |
| Data sent to a vendor | Workload routes plus the “allow redacted ticket content” provider flag (off by default) | AI providers |
| Unattended writes | Autonomy mode and approval policy | Approvals and autonomy |
| Uncontrolled egress | Destination policy on the audited outbound fetch; MCP servers listed explicitly | Tools and MCP |
| Evidence | Enterprise Audit with actor, time, tool calls and business result | Enterprise Audit |
| Secrets at rest | Secret store, masked in UI, never returned by the API | Security and secrets |
Limits worth naming
Section titled “Limits worth naming”- 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.
Related topics
Section titled “Related topics”Roles, portals and scope · Approvals and autonomy · Data Protection · Retention and export · Platform support