Flight Recorder
The Flight Recorder is a local SQLite database that keeps a record of every run Recon executes. Use it to look back at past responses, search response bodies, pin baselines for diffs, and prove that the history has not been edited.
Look at your history
Section titled “Look at your history”Send a few requests, then list them. The newest run comes first.
recon send "List Students"recon send "List Students" --env stagingrecon send "Create Enrollment"recon history01a22d22-db71-7526-83bf-b9b2acfcae86 [cli] GET http://127.0.0.1:4401/_sandbox/local/v1/students -> 200 (0.5ms)01a22d22-db67-73af-a6ea-6590ab9f75e7 [cli] POST http://127.0.0.1:4401/_sandbox/local/v1/enrollments -> 201 (1.3ms)01a22d22-db5b-7215-bdf8-6e5de1aa2070 [cli] GET http://127.0.0.1:4401/_sandbox/staging/v1/students -> 200 (0.4ms)01a22d22-db51-7188-93a4-55805882bfdc [cli] GET http://127.0.0.1:4401/_sandbox/local/v1/students -> 200 (0.6ms)Each line shows the run ID, the actor label in brackets, the method, the URL, the status and the total time.
Search across everything that was recorded:
recon search MDiv01a22d22-db71-7526-83bf-b9b2acfcae86 GET http://127.0.0.1:4401/_sandbox/local/v1/students (200)01a22d22-db5b-7215-bdf8-6e5de1aa2070 GET http://127.0.0.1:4401/_sandbox/staging/v1/students (200)01a22d22-db51-7188-93a4-55805882bfdc GET http://127.0.0.1:4401/_sandbox/local/v1/students (200)MDiv appears only inside the response bodies, so this shows that bodies are indexed.
The database file
Section titled “The database file”The database lives at the path in the flight_db key of .recon.toml. The default is .recon/flight.db, relative to the workspace root. See Configuration for the key.
- Recon creates the parent directory when it opens the store.
recon initadds.recon/flight.db*to.gitignore, so the database and its WAL files stay out of Git.- The database runs in WAL mode, so you see
flight.db,flight.db-walandflight.db-shmside by side.
On open, Recon sets these SQLite pragmas:
| Pragma | Value |
|---|---|
journal_mode |
WAL |
synchronous |
NORMAL |
foreign_keys |
ON |
busy_timeout |
5000 (milliseconds) |
All database work happens on one dedicated thread named recon-flight-db. Callers send it jobs through a queue that holds up to 128 pending jobs. When the store closes, it runs PRAGMA wal_checkpoint(PASSIVE).
You can open the file with any SQLite client:
sqlite3 .recon/flight.db 'PRAGMA journal_mode;' '.tables'walagent_activity runs runs_fts_content runs_fts_idxagent_approvals runs_fts runs_fts_data volatile_ignoresrun_blobs runs_fts_config runs_fts_docsizeTables
Section titled “Tables”One row per executed request.
| Column | Type | Notes |
|---|---|---|
seq |
INTEGER |
Primary key, autoincrement. Sets the order of the hash chain. |
id |
TEXT |
Unique. A UUIDv7 generated when the run is recorded. |
ts_utc |
TEXT |
RFC 3339 timestamp. |
actor |
TEXT |
human, agent or cli. |
actor_label |
TEXT |
Free-form tag, see Actors. |
request_id |
TEXT |
ID of the .http request. |
request_name |
TEXT |
Display name of the request. |
env_name |
TEXT |
Environment used. |
method |
TEXT |
HTTP method. |
url |
TEXT |
Final URL, with known secret values replaced. |
status |
INTEGER |
HTTP status code. |
protocol |
TEXT |
For example HTTP/1.1 or HTTP/2. |
waterfall_json |
TEXT |
Timing breakdown as JSON. |
tls_json |
TEXT |
TLS certificate details, or NULL. |
req_headers_json |
TEXT |
Request headers, with known secret values replaced. |
req_body |
TEXT |
Request body, with known secret values replaced. |
res_headers_json |
TEXT |
Response headers as received. |
res_body |
TEXT |
Response body as received. |
wire_bytes |
INTEGER |
Bytes on the wire. |
decoded_bytes |
INTEGER |
Bytes after decoding. |
assertions_json |
TEXT |
Assertion results. |
airlock_receipt_json |
TEXT |
The PII Airlock compliance receipt for this run. |
is_baseline |
INTEGER |
1 when pinned as the baseline. Default 0. |
prev_hash |
TEXT |
entry_hash of the previous row, or GENESIS. |
entry_hash |
TEXT |
SHA-256 of this row, see Hash chain. |
Indexes: idx_runs_req_seq on (request_id, seq DESC), idx_runs_ts on seq DESC, idx_runs_status on status, and idx_runs_actor on actor.
What is stored for the request depends on which part of Recon recorded the run:
| Recorded by | url |
req_headers_json |
req_body |
|---|---|---|---|
recon send, Web Studio send, MCP send tool, flows |
Secret values replaced with [SECRET:<label>] |
Secret values replaced with [SECRET:<label>] |
Secret values replaced with [SECRET:<label>] |
recon test |
Secret values replaced | Stored as sent, not scrubbed | Empty |
recon watch |
Secret values replaced | Empty | Empty |
| Capture proxy | Stored as sent | Authorization, Proxy-Authorization, Cookie, Set-Cookie and X-API-Key values replaced with [REDACTED:PROXY_HEADER]; other headers as sent |
Stored as sent |
runs_fts
Section titled “runs_fts”An FTS5 virtual table with the unicode61 tokenizer. Its columns are run_id (not indexed), request_name, method, url, req_body, res_headers and res_body.
Two triggers keep it in sync. runs_ai inserts a row after each insert into runs and copies res_headers_json into res_headers. runs_ad deletes the row when a run is deleted.
Request headers are not indexed. A search for Bearer returns nothing even though every demo request sends an Authorization: Bearer header.
volatile_ignores
Section titled “volatile_ignores”Extra JSON paths to ignore when diffing runs.
| Column | Notes |
|---|---|
id |
Primary key, autoincrement. |
request_id |
The request the rule applies to. NULL means the rule is global. |
pattern |
The path pattern. |
created_at |
When the rule was added. |
The pair (request_id, pattern) is unique. Adding a duplicate rule does nothing.
run_blobs
Section titled “run_blobs”Raw bytes for binary responses.
| Column | Notes |
|---|---|
run_id |
Primary key. References runs(id) with ON DELETE CASCADE. |
content_type |
Content type from the response, if any. |
data |
The raw body bytes. |
Only the Web Studio send route writes blobs. It stores one when the body is not empty, is 5 MiB or smaller, and either has a content type that starts with image/, application/pdf, audio/, video/ or application/octet-stream, or is not valid UTF-8. recon send never writes a blob.
agent_activity and agent_approvals
Section titled “agent_activity and agent_approvals”These tables log what MCP agents tried to do and hold approval requests for gated actions. They are described in Agent Policy & Approvals.
Actors
Section titled “Actors”The actor column is one of human, agent or cli. When a stored value is not one of these, it reads back as human.
The actor_label column tells you which part of Recon recorded the run:
| Label | Recorded by |
|---|---|
cli |
recon send |
ci |
recon test |
watch |
recon watch |
you |
Web Studio send, or a flow run by a human |
agent |
MCP send tool |
proxy |
The capture proxy |
flow |
A flow run from the CLI |
agent-flow |
A flow run by an agent |
Hash chain
Section titled “Hash chain”Each run row is chained to the one before it.
- When Recon records a run, it reads the
entry_hashof the latest row. If the table is empty it uses the stringGENESIS. That value becomesprev_hash. - It computes
entry_hashas the lowercase hex SHA-256 of this string:
recon-flight-v1:{prev_hash}:{id}:{ts_utc}:{actor}:{method}:{url}:{status}:{res_body}:{receipt_hash}receipt_hash is the hash inside the run’s airlock receipt. Headers, the request body and the timings are not part of the hash.
sqlite3 .recon/flight.db 'select seq, substr(prev_hash,1,16), substr(entry_hash,1,16) from runs order by seq;'1|GENESIS|148b88594d062b842|148b88594d062b84|1f2e78f0b3a58d1a3|1f2e78f0b3a58d1a|83de1f7053b688124|83de1f7053b68812|fe10a0e484b98898Verification walks every row in seq order, checks that prev_hash matches the previous hash, and recomputes entry_hash. It reports:
total_entries: rows checked. Verification stops at the first broken row, so on failure this counts only up to that row.valid: true when every row matched.first_broken_id: the ID of the first row that did not match.head_hash: the last hash when valid,GENESISfor an empty table, or the stored hash of the broken row when invalid.
Run it from the CLI with recon airlock verify:
Airlock Salt Fingerprint: 9d2de0d49b08Flight Ledger: VALID (4 entries, head fe10a0e484b98898ed4fa976fb7bcea0452266c247be65c69fe6d19422c5fa73)When a row has been edited, the line reads TAMPERED and the command exits with code 1. See PII Airlock & Receipts for the rest of that command.
Baselines
Section titled “Baselines”You can pin one run per request as its baseline. Pinning a run clears is_baseline on every other run with the same request_id. Three features use the pinned run:
- A Web Studio send diffs the new response against the baseline, labelled
Baseline. With no baseline it diffs against the previous run, labelledHEAD~1. - The baseline-versus-latest check in Drift.
- The Mock Server, which prefers baseline runs when it builds responses from history.
There is no CLI command to pin a baseline. Use the HTTP route or the Web Studio.
Volatile ignores
Section titled “Volatile ignores”Diffs skip JSON paths that change on every call. There are two sources of rules:
volatile_pathsin.recon.toml. The default is$.request_id,$.timestampand$.trace_id.- Rows in the
volatile_ignorestable. When you list rules for a request, you get the global rules (request_idisNULL) plus the rules for that request.
The /api/v1/diff route, the Web Studio send diff and the recon_diff_runs MCP tool use both sources. The recon diff CLI command uses only volatile_paths from the config. See Twin-Run & Diff for how diffs work.
recon history
Section titled “recon history”Lists recent runs, newest first.
recon history [--limit N] [--status-min CODE]| Flag | Default | Description |
|---|---|---|
--limit |
20 |
Maximum runs to show. 0 means 50. Values above 500 are capped at 500. |
--status-min |
none | Only show runs with a status at or above this code. |
recon history --status-min 20101a22d22-db67-73af-a6ea-6590ab9f75e7 [cli] POST http://127.0.0.1:4401/_sandbox/local/v1/enrollments -> 201 (1.3ms)With --format json or --format agent, the command prints an array of run summaries:
recon history --limit 1 --format json[ { "seq": 4, "id": "01a22d22-db71-7526-83bf-b9b2acfcae86", "ts_utc": "2026-11-30T15:46:28.849018637+00:00", "actor": "cli", "actor_label": "cli", "request_id": "campus-demo-list-students", "request_name": "List Students", "env_name": "local", "method": "GET", "url": "http://127.0.0.1:4401/_sandbox/local/v1/students", "status": 200, "total_ms": 0.486834, "wire_bytes": 669, "is_baseline": false, "verified_zero_leak": true }]total_ms comes from the stored timing waterfall. verified_zero_leak comes from the stored airlock receipt.
recon search
Section titled “recon search”Runs a full-text search over the indexed columns.
recon search <QUERY> [--limit N]| Argument | Default | Description |
|---|---|---|
QUERY |
required | The search text. |
--limit |
25 |
Maximum hits. 0 means 50. Values above 200 are capped at 200. |
Hits are ordered newest first. The human output is id method url (status). JSON and agent output use the same summary objects as recon history.
How the query is built
Section titled “How the query is built”Recon does not pass your text to FTS5 as-is. It splits the query on whitespace, removes every double quote, turns each word into a prefix phrase, and joins the words with AND. The query students elena becomes "students"* AND "elena"*.
This has some effects you should know:
- Every word is a prefix match.
enrollfinds runs that containenrollments. - All words must match. There is no way to ask for one word or another.
- FTS5 operators lose their meaning.
elena OR enrollmentssearches for three words, includingOR, and here returns nothing. - An empty or whitespace-only query returns the most recent runs, as
recon historywould.
recon search enroll01a22d22-db67-73af-a6ea-6590ab9f75e7 POST http://127.0.0.1:4401/_sandbox/local/v1/enrollments (201)Because response bodies are stored raw, a search can match real PII values. In the demo, searching for a word from a real email domain in the response returns every run that contained it.
Errors and exit codes
Section titled “Errors and exit codes”recon history and recon search exit 0 on success, including when nothing matches. Store errors are reported as a CLI runtime error with exit code 2. The store produces these messages:
| Message prefix | Cause |
|---|---|
flight database error: |
SQLite failed. |
flight storage I/O error at |
Recon could not create the database directory. |
flight recorder worker unavailable: |
The database thread stopped. |
flight serialization error: |
A stored JSON column could not be read or written. |
Also available via
Section titled “Also available via”HTTP routes (served by recon ui; see HTTP API):
| Route | Purpose |
|---|---|
GET /api/v1/runs?limit=&status_min=&request_id= |
List runs. limit defaults to 50. |
GET /api/v1/runs/{id} |
One full run, with its airlock view. |
GET /api/v1/runs/{id}/body |
The raw body. Serves the blob when one exists, else res_body. Add ?download=true for a file download. |
POST /api/v1/runs/{id}/baseline |
Pin or unpin with {"is_baseline": true}. |
GET /api/v1/search?q=&limit= |
Full-text search. limit defaults to 50. |
GET /api/v1/volatile-ignores |
List ignore rules. |
POST /api/v1/volatile-ignores |
Add a rule with {"request_id": "...", "pattern": "..."}. request_id is optional. |
DELETE /api/v1/volatile-ignores/{id} |
Remove a rule. |
GET /api/v1/ledger/verify |
Verify the hash chain. |
The body route always sets X-Content-Type-Options: nosniff. For every type except application/pdf it also sets Content-Security-Policy: default-src 'none'; sandbox.
MCP tools (see MCP Tools): recon_latest_runs, recon_inspect_run, recon_search_history, recon_diff_runs and recon_verify_airlock.
Web Studio: press Cmd+Shift+F (or Ctrl+Shift+F) or pick “Global Flight Recorder Search” from the command palette. The search box waits 120 ms after you stop typing, then asks for up to 50 hits. See Web Studio.