> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Privacy collection mode

> Filter content locally while retaining structure and usage.

If you arrived from a masking-marker hint in a Trace, go to [Interpret redaction evidence](#reporting-redaction). These hints do not change local collection mode or treat content markers as execution receipts. Official Hermes Relay uses its own redaction component; see [Hermes integration](https://aivision.mintlify.site/en/integrations/hermes.md).

Full exports the existing collected content. Privacy filters input, output, reasoning, tool arguments/results and free-text errors locally, while retaining structure, IDs, status, duration and Token/call counts.

It applies to supported Claude Code, Codex, Kimi, OpenCode, OpenClaw, Pi and DSH application plugins.

For Web onboarding, append `--collection-mode privacy` to the complete generated command, keeping its platform, space, Agent, and temporary installation authorization. The short commands below assume you have signed in and selected a space using [CLI quickstart](https://aivision.mintlify.site/en/quickstart.md).

```bash theme={null}
aiv connect codex --collection-mode privacy --dry-run
aiv connect codex --collection-mode privacy
aiv agent status codex
```

First installation defaults to Full; reinstallations preserve the saved mode. Use `--collection-mode full` explicitly to restore Full. Web-generated commands accept the same flag, but the Web interface cannot change the locally saved mode. Some deployments show recognized replacement markers in Enhanced view; these hints do not replace the new-session verification below.

The mode is saved on the machine running the Agent, separately for each Agent and host configuration directory. It is not a Web space setting. Check the target directory, mode, and source shown by `--dry-run`, then run the actual connect command; the dry run does not save the mode.

## Apply the configuration

Restart the host and begin a new session. Existing sessions, workers and resumed sessions retain their original mode. Runtime priority is `AIVISION_COLLECTION_MODE`, Agent-specific environment variable, saved configuration, then Full. Environment overrides do not rewrite the saved setting.

## Verify the actual mode

For these CLI queries, first follow [CLI queries](https://aivision.mintlify.site/en/guides/cli.md) to sign in, select the target space, and save its query Key. These examples use Codex. A Web-generated installation command does not configure query credentials.

```bash theme={null}
aiv query trace list --since 1h --limit 10 --agent-product Codex
aiv query trace get <trace-id> --format json --agent-product Codex
```

1. After applying the configuration and restarting the host, start a new session and ask the Agent to reply only with `privacy-check-20261015-a`. This is fictional test content. Use a new unique marker for each check and note the session ID and execution time.
2. Use the list command above to find the Trace for that time and session. Replace `<trace-id>` with its real ID before running the detail command. The most recent record alone does not prove that it came from this machine.
3. In the detail JSON’s resource attributes, confirm `agentic.collection.mode` is `privacy`. Check that Trace / Span IDs, status, duration, and existing counts remain readable, then search the export for the original marker and confirm it is absent.

This result is consistent with Privacy filtering for the new task you checked; it is not a per-record rule-execution receipt or proof of complete coverage. Full privacy acceptance also requires checking the same task’s logs/events, metric attributes, and plugin-persisted content. The saved mode shown by `aiv agent status` does not verify the host’s runtime mode.

Privacy does not delete historical exports or the host's own session files, and does not automatically filter Langfuse SDK instrumentation.

## Interpret redaction evidence

On deployments with this feature, open the Trace's **Preview → Enhanced** view. Recognizable replacement text such as `[REDACTED]` or `[REDACTED_EMAIL]` is highlighted in place within received messages, model input/output and tool content. The warm color locates replacement text; it does not indicate an error or successful execution. Native and Langfuse **User input** still shows explicit user messages only, without treating tool results, system messages or model output as user input. See [User input and message sources](https://aivision.mintlify.site/en/guides/user-input.md).

A marker means that the received content contains that text, not that a policy execution receipt exists. It may originate in the input or another component. NeMo Relay 0.10.4 does not provide per-Trace redaction execution receipts or hit counts, so a marker does not establish who performed redaction or complete coverage. Open the corresponding call's original input/output or JSON to inspect context.

When you configure additional omitted paths, the newly generated exporter declares those rules. If that declaration is received, tool input can show **Fields excluded by reporting configuration: /path**. It shows a path summary by default; expand it for the full path list. This means the producer configured those JSON Pointers; it does not prove this call matched and removed a field. `{}` alone cannot establish why a field is absent. Stored records without a declaration remain unknown; current settings are not backfilled into past records.

The declaration comes from resource attributes `aivision.privacy.policy = relay-observability/v1` and `aivision.privacy.omitted_paths` (a JSON-array string). They contain paths, not original field values, and are not per-operation receipts.

No hint does not mean redaction is disabled. Fields may be omitted, partial masking or hashes may not be recognizable, no rule may have matched, or content may not have been collected or loaded. A producer's `agentic.collection.mode` value of `full` / `privacy` declares configuration rather than execution; `full` can still filter credentials.

LangChain [PIIMiddleware](https://docs.langchain.com/oss/python/langchain/middleware/built-in#pii-detection) processes actual conversation messages, for example replacing user content before a model call. Relay reporting redaction processes observability copies. A replaced value at the model does not establish that earlier root, tool or middleware inputs were also redacted; those nodes may already have recorded the original value. Verify model context and export coverage separately.

**Original** means received telemetry, not the model or tool's pre-processing content. It cannot restore values removed or replaced before export. The list's **Hide inputs and outputs / Show inputs and outputs** controls browser presentation without changing collection rules, stored data or exports.

To verify a new configuration, use synthetic content without real credentials. Compare the same new task at model/tool boundaries and in its network export, then check original events and downloaded JSON. Match the verification to the chosen mechanism's processing boundary. One successful run does not prove complete coverage of later business Traces.

## If the result differs

| Symptom | Next step |
| - | - |
| Preflight says Privacy is unsupported | Ask the deployment maintainer to update the installer, plugin artifact for this platform, and backend serving them, then retry preflight. Updating only the local CLI is insufficient. |
| The new Trace still says Full | Confirm you ran the actual connect command for this host’s configuration directory. Check `AIVISION_COLLECTION_MODE` and the Agent-specific variable in the host process, then restart and start a new session. Do not resume an old session to test the new mode. |
| The test Trace is missing | Check the space, Agent, session ID, and time range, then use [missing-data troubleshooting](https://aivision.mintlify.site/en/help/no-data.md). Missing content and a missing Trace do not prove filtering worked. |
| Privacy is reported but the marker remains | Keep the Trace ID and field location. Check for another machine’s record or an old session; if it is the same new task, report it to the maintainer rather than accepting the result. |

## Collection and viewing permissions are different

| Situation | Where is the original content? | Action |
| - | - | - |
| Privacy filtered it locally | It was not uploaded in Full mode | If needed, change mode, restart, and verify a new session; historical content is not restored. |
| Role or display restriction | It may be stored but unavailable to the current account or view | Check the space and [member permissions](https://aivision.mintlify.site/en/guides/members.md) with an administrator. |
| Plugin or source omitted the field | An empty UI alone cannot determine why | Check Agent capability and source records using [missing-data troubleshooting](https://aivision.mintlify.site/en/help/no-data.md). |

Privacy preserves structure and usage but limits full-text search, answer assessment, and tool-argument analysis that require original content. Skipped or failed diagnosis due to missing evidence is not a passing result. Sharing, exporting, or increasing permissions cannot restore content that was never uploaded.

## Stopping collection and historical data

| Goal | Action and boundary |
| - | - |
| Stop new reports from this machine | Ask the maintainer to handle the host, workers, and native registrations using the [application collector procedure](https://aivision.mintlify.site/en/integrations/agents.md#stop-collection-or-uninstall). Privacy still reports structure and usage. |
| Revoke Agent installation authorization | A member with management permission removes the Agent, disabling all its installation credentials across machines using that Agent. Issued short-lived tokens may remain valid until expiry. Local plugins are not uninstalled automatically. |
| Revoke a query SpaceKey | Prevent further queries using that Key. Dedicated installation credentials are independent, so this does not establish that collection has stopped. |
| Delete historical reports | This page provides no self-service history deletion command. Give the deployment maintainer the space, Agent, time range, and data source; follow their retention/deletion process and verify the result. Stopping collection, removing an Agent, revoking a Key, or switching to Privacy does not delete historical data. |

Session files saved by the host itself require separate handling under the host's own rules.

[![Two checks for missing content](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/privacy-boundaries.en.light.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=fa1386145db6933f87d927c40f3ba158)](https://aivision.mintlify.site/assets/diagrams/privacy-boundaries.en.light.svg)

[![Two checks for missing content](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/privacy-boundaries.en.dark.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=ef3b00fad8a10b9350e4c27b2cab50bc)](https://aivision.mintlify.site/assets/diagrams/privacy-boundaries.en.dark.svg)

Two checks for missing content · Concept diagram · Open full-size SVG

Only retained, reported data reaches the viewing stage. A permission change cannot recover content filtered out before upload.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.