# How HeimWall works

This is the path a prompt takes, in order, and the point at which each part of
it stops. Your prompt reaches the tool untouched. Detection runs on the Mac,
and matched values are masked before anything is written to our records.

## Capture (read-only)

The agent reads the composer of Cursor, Claude Desktop, VS Code with Copilot,
ChatGPT Desktop and Windsurf through the macOS Accessibility API, and watches the clipboard.
It never carries traffic and never modifies the tool's behaviour.

## Detection (on-device)

47 hand-written rules with real validators, built against a latency budget
enforced by a benchmark in CI. No model, no network call, and no millisecond
figure quoted.

## The two-plane record (team tier)

- **Plane 1, readable metadata:** tool, category, severity, matched rules,
  timestamps. The only input to Safety Scores, counters and the weekly digest.
- **Plane 2, sealed evidence:** the masked snippet (500-character cap, matched
  values removed) travels end-to-end encrypted to the org's key. A masked
  provider key or token keeps a short hash tag in the snippet, so repeats of
  one secret can later be told apart from different secrets.

Managers see category, severity, tool and counts. The masked preview is
reachable only through Investigation Mode: second factor, a written
justification, the
engineer is notified, access expires in 24 hours, and the whole sequence
appends to a per-org hash chain on a table that rejects updates and deletes.

By contract, HeimWall data cannot be used in performance review, promotion or
compensation decisions.
