﻿# Verify that your protection takes effect

[中文](../../zh-CN/protection/verify.md) · [Protection guide](index.md) · [Evidence index](../reference/verification.md)

Test FinSAFE controls with a small program or synthetic workload in the selected protected execution mode, then inspect the actual file, network or process result. Separately, test an Agent integration by running the operation through that Agent and checking its execution path. Repeat the relevant checks after changing the product, platform, execution mode, effective settings or integration.

This guide provides a manual test procedure. Dated installed-version results live in the [evidence index](../reference/verification.md), including Windows, macOS and Docker-Linux records with their limits. An untested combination remains unverified.

## Choose what you are verifying

| Question | Test route | What the result establishes |
| --- | --- | --- |
| Does a FinSAFE control work? | Run a deterministic file, network or bounded resource workload through a supported FinSAFE execution entry | The named control under the recorded platform, version, mode and settings |
| Does an Agent use that control? | Run the corresponding task through its supported integration and inspect the execution process or request path | Coverage and compatibility of that integration |

Product capability tests do not require Agent authentication or a model account. A failed Agent login can block integration acceptance while leaving independently collected product-capability results valid. Conversely, a successful product test does not prove that an Agent's external tools or requests enter the same boundary.

## Before you start

Save your work and use a new test session. Prepare disposable files that you own; use synthetic text for network checks. Keep real credentials, customer information and unrelated directories out of the test.

Record these facts before running an operation:

| Item | What to record |
| --- | --- |
| Host | OS version/build, CPU architecture and relevant host prerequisites |
| Product | Release URL, package filename/checksum and actual executable version; a release archive can contain an older platform binary |
| Test program | Program and runtime versions; for integration tests, also Agent name/version/form and plugin version |
| Entry | Exact supported launch route, plugin version if applicable, and which process executes tools |
| Settings | Configuration source, effective file/network rules and preparation or authorization result |
| Trial | Date/timezone, intended operation, expected effect and how you will inspect it |

Use the matching [installation guide](../getting-started/install.md) and [configuration reference](configuration.md) for product tests. For Agent integration tests, also use the [compatibility matrix](../agents/compatibility.md). A configuration field alone does not establish that your entry offers a supported way to change it; see [Configuration explained](configuration.md). Preserve existing settings and narrower permissions.

## Choose your platform and entry

### Windows

For a product-capability test, use a supported `run` / `self-confine` execution entry and a disposable test program. The [minimal CLI integration](../development/integration-guide.md#minimal-windows-cli-integration) illustrates this with PowerShell. The following Agent steps apply when checking an integration.

For DSH and OpenCode Desktop plugins, follow their published installation, authorization and protected-restart steps linked from [installation](../getting-started/install.md). For a desktop launcher, use the FinShield entry rather than the vendor shortcut. For CLI integration, use the version conditions and launch route in the [Codex](../agents/codex.md) or [Claude](../agents/claude.md) guide.

Confirm that the tool task reaches the protected execution Host/process. The UI and separately running browser or MCP service can remain outside that boundary. Record their scope separately. Published plugin [defaults](defaults.md) do not restrict all outside-workspace files, and host networking does not enable destination filtering or PII inspection.

The [December 3 Windows record](../reference/windows-verification-2026-12-03.md) documents installed-0.11.84 file checks and a separate 0.11.85 Inspector demo. It also records a protected Codex authentication failure before tool execution. Use the named versions and entry conditions when interpreting those outcomes; they do not validate every Windows integration.

### macOS

Use the macOS package and supported FinSAFE execution entry in [installation](../getting-started/install.md#macos), checking the actual binary version and architecture. Record the OS build and the availability of the documented Seatbelt / `sandbox-exec` path. Keep the package's matching support files.

Select the policy and launch syntax documented by that installed release. Then run the file operations below with a protected test program; use the Agent tool when checking integration coverage. A successful diagnostic or CLI launch does not establish enforcement.

The [December 3 macOS record](../reference/macos-verification-2026-12-03.md) covers the v0.11.85 archive containing executable 0.11.48 on macOS 26.6.1 arm64. Personal-CLI `run` / `self-confine` file denials were reported in [#110](https://github.com/finogeeks/finsafe/issues/110#issuecomment-7372339261). An authenticated Codex CLI 0.152.0 complete-Agent task then completed the same file checks through `finsafe --policy` host-network `run`. The advertised `finsafe codex` privacy-guard entry failed TLS (`UnknownIssuer`) before a tool write. Hermes remained unauthenticated. Same-day wrapper YAML `--version` for Codex, Claude and Hermes (Python interpreter) is not complete-Agent. The existing [file-access comparison](../getting-started/demos.md#macos-and-linux-compare-file-access) is a component walkthrough, not a substitute for those Agent results.

### Linux

Use the Linux package and supported entry in [installation](../getting-started/install.md#linux). Record distribution, kernel, architecture, bubblewrap, namespaces, applicable seccomp/Landlock support, cgroup v2 delegation and matching helpers. Distinguish a missing prerequisite from an operation that ran but escaped its configured restriction.

Use the installed release's policy and launch syntax, then run the file operations with a protected test program; use the Agent tool for integration coverage. Do not substitute Windows Candidate configuration or infer resource enforcement from macOS results.

The [December 3 Linux record](../reference/linux-verification-2026-12-03.md) used privileged Docker Desktop linuxkit (Ubuntu 24.04.5, kernel 7.0.12-linuxkit, linux/amd64 on Apple Silicon) and the v0.11.85 linux-x64 archive containing `finsafe 0.11.48`. Workspace write and read-only read succeeded; bind-mount writes outside the workspace returned `Read-only file system`. Undeclared deny-dir and custom credential **reads succeeded** on that public x64 guest. `self-confine` fail-closed (`landlock policy was only partially enforced`). Overlay helper later passed with tmpfs scratch; existing `~/.ssh/id_rsa` deny-read passed. A separate aarch64 unix CLI **0.9.105** on the same kernel reported Landlock ABI 8 and Codex/Claude `--version` under `run`. Do not copy those Landlock rows onto the public linux-x64 package. Linux Agent LLM remains unexecuted; [#110](https://github.com/finogeeks/finsafe/issues/110) stays open.

### Managed or SaaS entry

Use only the administration and evidence interfaces delivered for that service. Identify the tenant's applicable policy and execution host without publishing tenant identifiers. Personal CLI or desktop results do not verify managed deployment, central records or SaaS capabilities. If no public recipe or accessible evidence exists for the selected entry, record it as unverified; do not substitute a local test.

## Prepare disposable file fixtures

Use [Set and check file access](file-access.md) for platform-specific configuration examples and shell commands. This self-check remains the shared procedure for collecting and interpreting evidence.

1. In an ordinary host session outside the tested boundary, create three new directories you own: a writable test workspace, a read-only test target and a denied test target. Keep the latter two outside the test workspace. Record their absolute paths.
2. In each target, create `fixture.txt` containing a different random, nonsensitive marker. Save the original contents or hashes outside the tested boundary. Confirm that the host session can read all three files.
3. Through an entry that supports these settings, apply read-write, read-only and deny rules to the respective targets. Follow the existing [file-permission guide](configuration.md#file-permission-fields) and matching integration instructions. Complete required preparation/authorization and start a new protected session. Do not edit generated Effective files directly.
4. If your entry cannot configure these test targets through a supported workflow, stop that part and record the missing entry. Do not repurpose real credential directories, grant whole-disk access or assume a filename is automatically protected.

For a product test, perform these operations directly with the protected test program: create/read/update an allowed file, read then attempt to overwrite a read-only fixture, and attempt to read a denied fixture. Retain return values and original errors, then inspect the files from the ordinary host session. These operations do not need a model call.

## Run the minimum file self-check

Run each operation with the protected test program and retain the command, return value and original error. These are test operations, not newly verified product CLI recipes. Use the selected release's supported launch and configuration syntax.

### 1. Check an allowed operation

In the writable test workspace, create `allowed.txt` with `finshield-check-allowed`, read it, then update it to `finshield-check-updated`. From the ordinary host session, read the file and confirm the final content. If creation or modification fails, investigate the path, program and effective permissions before continuing. A denied operation alone cannot show a usable boundary when the allowed control also fails.

### 2. Check a read-only target

Read the read-only `fixture.txt` and check its marker. In a separate operation, attempt to overwrite it with `finshield-check-changed`. The expected result is a successful read and a denied write. From the host session, confirm the original contents/hash remain unchanged. A changed file fails the check even if the test program reports a denial.

### 3. Check a denied target

Attempt to read the denied `fixture.txt`. Confirm that the program attempted the correct path and returned an access error. From the host session, confirm the file still exists. A missing file, wrong path or unexecuted attempt does not establish enforcement. A successful read of the marker fails the check.

### Optional: repeat through an Agent integration

Repeat the same three operations using the Agent's normal file/shell tool. Confirm that the tool reaches the intended protected process. An example task is: “Create, read and update `allowed.txt` in `<absolute test-workspace path>`; show the tool result.” Request read-only modification and denied-file reading as separate tasks. Do not supply the denied file's marker in the prompt.

Retain tool calls and original results. A model refusal before a tool attempt leaves that integration check unverified. Do not change Agent approval or safety settings to force execution. An Agent login failure does not invalidate the direct product tests above.

These checks establish only the tested operations on the named paths. Overwrite, rename and deletion are separate operations. Test them only on additional disposable fixtures when the documented recipe makes those claims; a writable target can be deleted and protection does not provide undo.

## Check network and sensitive-content handling

Use this section only when the selected entry delivers the relevant network or content-inspection configuration. Follow [Network access, exfiltration and PII](network-pii.md) and its linked integration recipes instead of copying another entry's complete policy.

1. Record the initial network mode. In default host mode, do not expect a FinShield destination deny list or PII inspection.
2. For a destination-restriction test, use two destinations you control, one permitted and one outside the configured scope. Use a unique synthetic request marker for each trial and record the actual scheme, host and port. Check receiver availability with a separate control marker before interpreting absence as a block.
3. Using a protected test client, send the ordinary test request to the permitted destination, then a separate request to the excluded destination. Check the tool result, receiver records and available product records. A network outage, DNS error or unavailable receiver is not proof of policy enforcement.
4. For content inspection, first send ordinary synthetic text through the supported model request path. Then send a separate supported synthetic finding, such as the public example in the network guide. Test user-message and tool-result input separately where the recipe covers both.
5. Check the configured finding action: warning can forward the original, block should prevent receipt, and approval should wait for the existing decision flow. For redaction, inspect what the receiver actually obtained and compare it with the original. Record the observation window and request marker; absence alone is insufficient.

Record whether HTTPS inspection and the tested request format are covered. A local mock demo or detector workbench can verify its named component behavior. To establish product request processing, check supported synthetic requests through the configured inspection path and inspect actual receipt. Agent coverage additionally requires that Agent’s real request path; arbitrary uploads and other protocols remain separate claims. Skip unsupported capabilities with a stated basis; missing evidence remains unverified.

## Interpret and retain the result

| Outcome | Use it when |
| --- | --- |
| Verified in this environment | The intended operation ran, the allowed control worked, and independent observations matched the expected effect |
| Failed | An executed operation contradicted its expected effect; retain the evidence without inventing a cause |
| Incomplete / unverified | No tool attempt, missing evidence, interruption, ambiguous error or an untested combination prevents a conclusion |
| Unavailable / unsupported for this entry | A documented delivery or prerequisite limit prevents the test; cite the basis rather than treating unknown support as unsupported |

Model text, a green status and a policy file describe different parts of the workflow. None alone proves the OS or network effect. A product-capability test can establish the named control without a complete Agent task; integration coverage remains separate, and a merged fix does not establish installed-version resolution.

For each operation, retain the environment record, exact safe steps, expected result, actual tool output, independent file/receiver observation, available correlated product record and cleanup. If a log interface or matching entry is missing, say so. Do not claim complete auditing from one record. Use the [evidence record fields](../reference/verification.md#record-a-result) when sharing a finding.

## Clean up or report a failure

End the protected test session and confirm its test child processes have exited. Remove only the disposable directories whose absolute paths you recorded. Restore temporary settings through the supported workflow; retain the evidence you need before deleting fixtures. Stopping a task, disabling an integration, uninstalling software and revoking credentials are separate actions.

For an unexpected result, follow [Get help](../getting-started/install.md#get-help), providing the versions, entry, effective rule, steps and redacted original error. Do not publish credentials, customer data, private source or raw sensitive captures. Use the support channel for sensitive security reports. A failed self-check is a result to investigate, not a reason to weaken global protection.
