Agent Flight Recorder
Docs

One API call per action.

Do this at every tool call, decision point, and output in your agent — the ledger does the rest.

01 · Create an API key

Sign up, open API keys, and create a key for your agent. Keys start with afr_. Keep it secret — it writes to your ledger.

02 · Register your agent

Add the agent in your console. The agent_id you POST must match the agent ID you registered.

03 · Post actions

Python — one line per action:

import requests

requests.post("https://flightrecorder.getingeniousai.com/v1/actions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "agent_id": "support-bot",          # must match a registered agent
        "action_type": "tool_call",          # e.g. tool_call, decision, message
        "tool_name": "issue_refund",         # optional
        "input_summary": "Customer asked for a refund on order #1234",
        "output_summary": "Issued $42.00 refund via Stripe",
        "metadata": {"order_id": "1234", "amount_usd": 42.00},  # optional dict
    })

JavaScript — one line per action:

await fetch("https://flightrecorder.getingeniousai.com/v1/actions", {
  method: "POST",
  headers: {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
  body: JSON.stringify({
    agent_id: "support-bot",
    action_type: "tool_call",
    tool_name: "issue_refund",
    input_summary: "Customer asked for a refund on order #1234",
    output_summary: "Issued $42.00 refund via Stripe",
    metadata: { order_id: "1234", amount_usd: 42.00 },
  }),
});

04 · Verify the chain

Open your agent in the console and hit Verify chain — every hash is recomputed server-side with a PASS/FAIL stamp. Or check programmatically:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://flightrecorder.getingeniousai.com/v1/chain/support-bot
# {"agent_id": "support-bot", "intact": true, "break_seq": null, ...}

05 · Embed the integrity badge

Put this on your trust page. Green chain intact · N actions, or red the moment anything breaks. The badge links to your agent's public verification page (/verified/PUBLIC_ID), where anyone can watch the chain re-verify live:

<a href="https://flightrecorder.getingeniousai.com/verified/PUBLIC_ID?utm_source=share&utm_medium=badge&utm_campaign=agent-flight-recorder"><img src="https://flightrecorder.getingeniousai.com/badge/PUBLIC_ID.svg" alt="Agent audit trail integrity badge"></a>

Your agent's PUBLIC_ID is shown on its console page.

06 · Declare causal links (caused_by)

When one agent's action causes another's, declare it at ingest — the target is validated and the exact record is pinned at write time:

requests.post("https://flightrecorder.getingeniousai.com/v1/actions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "agent_id": "refund-bot",
        "action_type": "tool_call",
        "tool_name": "issue_refund",
        "output_summary": "Issued $42.00 refund via Stripe",
        "caused_by": {"agent_id": "orchestrator", "seq": 12},  # or {"hash": "3c07…"}
    })

The Pro causality graph renders every declared link across your agents as a labeled DAG — trace a multi-agent incident back to its cause, with hash citations.

07 · Mint a Tamper-Seal certificate (Pro)

Open any agent and hit Certificate to mint a signed attestation of ledger integrity — agent, action count, chain tip, minted-at, HMAC-SHA256 signature. Anyone can verify it without an account:

curl https://flightrecorder.getingeniousai.com/v1/attestations/AFR-20261011-XXXXXX
# {"cert_id": "…", "valid": true, "detail": "chain intact · 1482 actions at minting", …}

We never certify a broken chain. A public human-readable certificate lives at https://flightrecorder.getingeniousai.com/attest/<cert_id> — hand it to auditors, customers, regulators.

08 · Ask the Tape (Pro)

Every agent page has an Ask the Tape box: interrogate the ledger in plain language — "what happened before seq 42", "how many tool_calls", "first issue_refund use", "between seq 10 and 20". Answers are computed deterministically from the ledger — no language model, so no hallucinations — and every claim carries a seq # and hash.

09 · Log image generations with consent attestation

Consent attestation in Agent Flight Recorder is a configurable protective control for sensitive image-generation workflows — not a universal statutory requirement, and not something the EU AI Act Article 5 imposes on every image-generation call. Article 5 prohibits specific practices, including non-consensual intimate imagery (NCII) and CSAM, effective 2026-12-02; recording a consent attestation for the image generations you choose to log is one optional control toward that risk. A recorded attestation proves a configured record was made — it does not prove the consent behind it was legally valid. Post an image_generation event with consent metadata and the ledger becomes your consent-evidence record:

requests.post("https://flightrecorder.getingeniousai.com/v1/actions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "agent_id": "creator-bot",
        "action_type": "image_generation",   # first-class event type
        "image_gen": {
            "model": "veo-3.1",              # model/tool used
            "prompt_sha256": "9f2c…",        # 64 hex chars: SHA-256 of the full prompt
            "prompt_summary": "Product hero shot of a sneaker on white",  # redacted, ≤300 chars
            "output_sha256": "b71d…",        # 64 hex chars: SHA-256 of the generated file
            "consent_attested": True,
            "consent_attested_by": "jane@studio.com",
            "consent_attested_at": "2026-10-12T14:30:00Z",
            "subject_is_real_person": False,
            # optional extended attestation record (stored when supplied):
            "scope": "likeness-use:promo-2026",
            "subject_ref": "subject:8841",
            "intended_use": "product promo image",
            "authorization_source": "signed release form R-118",
            "attested_at": "2026-10-12T14:30:00Z",
            "expires_at": "2027-10-12T14:30:00Z",
            "withdrawal_state": "none",   # or "withdrawn" + "withdrawn_at"
        },
    })

Instead of prompt_sha256 you may send "prompt": "the full prompt text" — it is hashed server-side and never stored. The ledger keeps only the hash plus your redacted summary. input_summary is ignored for these events and replaced by the redacted summary.

Deterministic, never an accuracy play: the ledger records what your agent reports — model, hashes, consent attestations. It never inspects, classifies, or claims to verify image content, and a recorded attestation is not proof consent was genuine — it is proof the attestation was recorded in a tamper-evident chain.

  • Every image_generation event with consent_attested: false fires a consent_missing alert in your inbox immediately.
  • Filter the agent timeline by event type to review consent metadata per record.
  • Pro: the consent evidence extract (agent page → 📦 Article 5 extract; the route name is kept for compatibility) bundles the hash-chained generation sequence + consent attestations — including any extended record fields supplied — + chain-integrity statement as downloadable JSON, PDF, or a printable page — hand it to an auditor.

10 · Log agent memory (Memory Integrity Ledger)

Persistent agent memory — Meta's "Wonder" active memory, claude-mem, and every framework that carries context across sessions — is an unlogged attack surface: memory poisoning (malicious instructions persisted into long-term memory) and cross-session contamination (a write in session A steering a flagged decision in session B). Post a memory_write event for every memory your agent reports persisting, and a memory_read event for every memory fragment injected into a session:

requests.post("https://flightrecorder.getingeniousai.com/v1/actions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "agent_id": "support-bot",
        "action_type": "memory_write",      # or "memory_read"
        "memory": {
            "session_id": "sess-2026-10-13-001",   # which session wrote it
            "memory_key": "user:preferences",      # the key/namespace
            "content_sha256": "4a1f…",             # 64 hex chars: SHA-256 of the full memory text
            "summary": "User prefers concise answers; timezone America/Belize",  # redacted, ≤300 chars
            "source": "user",                     # user | agent | tool | environment
            "ttl": 86400,                         # seconds until expiry; 0 = persistent
        },
    })

Instead of content_sha256 you may send "content": "the full memory text" — it is hashed server-side and never stored. The ledger keeps only the hash plus your redacted summary. input_summary is ignored for these events and replaced by the redacted summary. For memory_read, send session_id (the reading session), memory_key, and optionally content_hash (fingerprint of the injected fragment).

Deterministic, never an accuracy play: the ledger records what your agent reports persisting — it never judges whether a memory is true, safe, or correct. Only that it existed, was read, and preceded a decision.

  • Source provenance: every memory_write carries an OWASP-style source_class — external_tool, user_input, agent_authored, or system. Send it explicitly, or it is derived deterministically from source (user→user_input, agent→agent_authored, tool→external_tool, environment→system). The timeline shows a provenance badge per write.
  • A memory_write from an untrusted source (agent, tool, environment) whose summary contains tool-call instructions or credential-like material fires a memory_poisoning alert to your alert inbox immediately.
  • When a memory_read in session B consumes a key last written by a different session A, and a flagged/bypassed/anomalous decision follows in session B, a memory_contamination alert fires with the full write→read→decision lineage (write seq/hash/session/time → read seq/time → decision seq).
  • Self-reinforcement (OWASP ASI06): a decision whose pre-decision knowledge is entirely agent_authored memories fires a memory_self_reinforcement alert — the agent acted on its own past output with no external grounding recorded. Likewise, an agent_authored write whose content hash matches a fragment the agent previously read fires an echo-write alert (re-ingested output).
  • Protected keys: any memory_write targeting a protected key — identity, permissions, budget limits, access lists, policy, credentials — fires a memory_protected_key alert immediately (creation and overwrite alike).
  • The 🧠 Memory ledger page on every agent (all plans) shows writes + reads with TTL/decay state (live / expired / persistent), per-key cross-session lineage, source-provenance badges, self-reinforcement + protected-key alerts (full detail Pro), and memory forensics: for every recorded decision, replay exactly what the agent knew at that moment.
  • Pro: the 🧠 Memory evidence extract (agent page → 🧠 Memory extract) bundles the hash-chained memory sequence + TTL state + chain-integrity statement + contamination lineage as downloadable JSON, PDF, or a printable page — hand it to an auditor.
  • Pro: the Independent Auditor Mode pack embeds a point-in-time memory snapshot — a SHA-256 snapshot hash over the memory store at audit time, per-key latest writes, and a structured SecurityEvent per memory-guard decision with its knowledge lineage.

11 · Independent Auditor Mode

One click audits everything your agent's ledger records: ledger coverage (actions logged, sequence continuity — any missing seq is a provable gap), anomaly summary (every fired rule, outcomes, unresolved counts), approval-event stats, full hash-chain re-verification with the first broken link pinned, and a deterministic RED / AMBER / GREEN verdict computed from fixed rules only — never an ML judgment. Export the audit pack as JSON, PDF, or print it for an auditor.

Verdict rules: RED if the chain is broken, sequence gaps exist, or any critical alert is unresolved (consent_missing, memory_poisoning, memory_contamination, memory_self_reinforcement, memory_protected_key). AMBER if non-critical alerts are unresolved, an idle gap exceeds 24h, or nothing is recorded yet. Otherwise GREEN. Pro audits embed a point-in-time memory snapshot + guard SecurityEvents.

  • Agent page → 🔍 Audit. The first audit per agent per calendar month is free for every logged-in user.
  • Pro/Team: unlimited audits + scheduled monthly audits that run automatically — results land in the audit history.
  • Unlock per-session coverage by reporting session_id in your action metadata; unlock approval stats by logging approval_requested / approval_granted / approval_denied action types.

Deterministic, never an accuracy play: the audit describes the record — a GREEN verdict means the record is complete, consistent, and rule-clean, not that the agent behaved correctly in the world. An unlogged action is invisible to the audit by construction.

12 · Oversight-Tamper Guard (Pro)

The recorder also watches its own oversight stack. At session start the monitoring configuration — the workspace capture policy, the deterministic alert-rule set, and the safety integrations — is sealed: its canonical JSON is hashed with SHA-256 into a seal record. Seal explicitly at session start, or let the first action write seal automatically:

requests.post("https://flightrecorder.getingeniousai.com/v1/oversight/seal",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"agent_id": "support-bot", "session_id": "sess-2026-10-22-001"})
# {"ok": true, "config_hash": "9f2c…", "status": "active", "ledger_seq": 1, …}
  • Seal verification: before every action write, the live monitoring configuration is hashed and compared with the session's seal. A mismatch records a hash-chained oversight_evasion ledger entry (kind seal_break, with pre/post config hashes) and raises an oversight_evasion alert — then the action is still recorded.
  • Oversight-modification rules: an action whose tool, type, or metadata matches the fixed taxonomy — modifying logger policy, suppressing or disabling alert rules, pausing recording, modifying safety integrations, editing the ledger — records the same kind of event, citing the offending action's seq and hash.
  • Chain of custody: a legitimate configuration change (the capture-policy console, or re-sealing through the seal API above) writes its own hash-chained oversight_config_change entry with pre/post config hashes and a field-level diff, and rotates the seal. A change that arrives without such an entry is exactly what seal verification catches.
  • Denial reconciliation: when a run summary submitted to the Omission Detector explicitly denies something — “did not”, “never”, “no … was/were” — that the ledger recorded, an oversight-evasion event (kind denial_contradiction) is recorded with the denial sentence and the contradicting ledger seq(s) + hash prefixes. Silence about an action stays an omission, never a denial.
  • Pro: the 🛡 Oversight page on every agent shows the current seal status (SEALED / SEAL BROKEN, with the break event cited / NOT SEALED), the seal history, the config change log from the chain, every oversight-evasion event with its evidence bundle, and the denial-reconciliation results. Free plans get the verdict banner only — status plus sealed/broken counts — on the agent page.

Deterministic, never an intent finding: findings state that an oversight-evasion event was RECORDED, or that a self-report CONTRADICTS the ledger. They never state why it happened. Detection is fixed-rule matching only — a configuration change made outside an action write is detected at the next action write.

13 · Gateway evidence from Agent Auth Gateway

If your agent's tool calls are authorized by Agent Auth Gateway, you do not need to log the authorization side yourself. Link the two agents once (gateway console → Evidence connector, using this agent's ID and one of its afr_… keys) and the gateway forwards three event types into this chain, all carrying the same correlation ID as the recorder-side request_id:

  • authorization.decision — every gateway verdict (allow / deny / approval required) with a reason class and the estimated cost in cents.
  • authorization.approval — the human approval resolution, with the approver recorded as a role, never an identity.
  • execution.outcome — succeeded / failed / not-executed, reported by your executor through the gateway; denied actions are closed automatically by the connector, so a blocked action is a recorded action, not a gap.

Event summaries carry classes only — action name, decision, reason class, outcome class, amounts in cents. Keys, prompts, message content, and personal data never enter an event. Delivery is duplicate-safe with retries, so a recorder outage delays evidence, never authorization — unless you enable the gateway's opt-in strict-evidence mode for specific actions, under which those actions wait for their decision to land in this chain and fail closed if it cannot. Verification covers the records that were submitted; it cannot prove an action that was never sent to the gateway or the recorder never happened.

Limits & guards

  • Ingest is rate-limited per API key; monthly action quotas are enforced server-side (Free: 1,000/mo, Pro: 100,000/mo, Team: unlimited).
  • Any URL inside your payload must point at a public internet host — private/internal addresses are rejected (SSRF guard).
  • A caused_by target must name a registered agent in your workspace and an existing record; invalid targets are rejected with 400.
  • Summaries are capped at 4,000 characters each; metadata at 20 KB.
  • image_generation events require image_gen with a valid prompt_sha256/prompt, a redacted prompt_summary (≤300 chars), and output_sha256. When consent_attested is true, consent_attested_by and a non-future consent_attested_at are required. Raw prompts are never stored.

Frequently asked questions

How much integration does recording take?

One API call per action. You post at every tool call, decision point, and output in your agent; the ledger hash-chains each record into the append-only chain for you.

How do I verify the chain?

Open the agent in the console and hit Verify chain — every hash is recomputed server-side with a PASS or FAIL stamp. The same check is available programmatically through the chain endpoint shown above.

What does the integrity badge show?

The badge shows green while the chain is intact, with the action count, and turns red the moment anything breaks. It links to the agent's public verification page, where anyone can watch the chain re-verify live.

Why declare causal links with caused_by?

When one agent's action causes another's, declaring the link at ingest pins the exact target record at write time. Incident reviews can then follow cause across agents instead of guessing from timestamps.

Sources

← Back