# Rippletide Docs > This file is very large and may be truncated. For an index of this content, please refer to https://docs.rippletide.com/llms.txt instead. > Connect existing agents, inspect runtime evidence, and apply reviewed business rules at action and response boundaries. # Changelog Source: https://docs.rippletide.com/changelog Product updates and release notes. Historical entries were reconstructed from release records. **October 22, 2026** CLI 0.35.0 ## Clearer policy coverage for Codex * Codex tools missing from their declared catalog now receive an explicit **Not evaluated** result. * These calls continue without policy coverage until the tools are declared. * Use `rippletide codex catalog` to refresh the declared tool catalog. **October 16, 2026** ## Tide-1 in your workspace * Test decisions, inspect shared memory, and manage policies directly from your Rippletide workspace. * Save corrections alongside the original interactions. * Access follows your existing workspace roles, using your Rippletide account. **October 2, 2026** ## Clearer policy outcomes in Traces * Traces now distinguish undetermined policy outcomes from failures, including when trace content is redacted. * Successful tool execution remains separate from approval by a Rule. **Breaking change:** The standalone Coding Agent APIs and the legacy `/code` dashboard have been retired. Contact Rippletide for migration guidance if your integration relied on these endpoints. # API keys Source: https://docs.rippletide.com/docs/api-keys Use workspace management credentials and connection-scoped runtime keys in the right place. | Key | Scope | Where it belongs | | - | - | - | | Platform key | Management access for its authorized workspace | Your CLI or management scripts; created/managed by an Admin | | Connection key | Exactly one agent, MCP server, API integration or memory bank | That connection's runtime, or backend calls to Tide-1 | Never install a Platform key in an agent. A Connection key cannot administer the workspace or select another resource by changing the request body. List views expose metadata, not secrets. ## Use the generated configuration For agent and MCP connections, the CLI writes one value to the repository's git-ignored `.env`: ```bash theme={"system"} RIPPLETIDE=rippletide://@/ ``` `rippletide connect` removes superseded discrete Rippletide variables, including `RIPPLETIDE_PROXY_URL`. Do not re-add it. The app/manual path supplies: ```bash theme={"system"} RIPPLETIDE_AGENT_ID= RIPPLETIDE_API_KEY= ``` Both formats remain supported. A valid connection string takes precedence over legacy fields; explicit client configuration can override environment settings. Use the complete block generated by your chosen path rather than mixing credentials from different connections. Keep staging and production credentials separate. Legacy key prefixes identify the environment; the connection string includes the endpoint explicitly. Codex uses `~/.rippletide/codex.env`, not the repository's `.env`. Its setup command claims the Connection key on the machine that runs Codex. The app's single-use session token is a setup token, not a runtime key. ## Tide-1 keys Open [Tide-1](/docs/decision-api) in the selected workspace. The app uses your signed-in account session. An Admin's first visit creates the workspace's memory bank and its Connection key; later visits reuse them. Editors can use Tide-1 without receiving the secret. Provisioning, copying and replacing the key require an Admin account session. Backend calls use this bank's Connection key in `Authorization: Bearer ` for memory, policies, decisions and feedback. It also authorizes [Policy inference from document text](/docs/decision-api#infer-policies-from-a-document) and explicit Policy edits. Inference returns suggestions; saving or activating them requires a separate Policy write. Agent/MCP and direct-integration policy guards use their own Connection keys in `x-api-key`; those credentials do not authorize Tide-1. An Admin can copy the same active secret again from Tide-1. Copying does not rotate it. Store the copied value in your application's secret manager. Platform-key management scripts can manage separate issuer-owned banks; they cannot provision or manage the workspace's default bank or its key. ## Rotation and revocation * **Agent/MCP Connection key:** replace it from the connection's page and update the runtime configuration. The previous key is revoked when replaced. For a CLI-managed repository, rerun `connect` to refresh its configuration. * **Direct API integration keys:** replacement keys can overlap. Revoke the old key explicitly after switching the integration. * **Workspace Tide-1 key:** expires after 90 days. An Admin explicitly replaces it in Tide-1; replacement immediately revokes previous keys for that bank and preserves its memory and policies. Update your backend secret after replacement. Expired or revoked keys cannot be copied and are not automatically replaced; account access remains available. * **Platform keys:** creating a new one does not revoke older keys. Revoke obsolete keys in Settings after switching your scripts. * **CLI login:** a repeated `login` reuses a valid stored key. Use `logout` then `login` to replace it or change accounts. Logout revokes the key before clearing local credentials; failed revocation preserves the local login for retry. CLI-issued keys expire after 90 days. A Workspace Admin authorizes CLI access. `workspaces use` changes the CLI's authorized workspace through browser approval, independently of the workspace open in the app. ## Local files and removal | File | Purpose | | - | - | | `~/.rippletide/config.json` | CLI account/endpoint configuration and Platform credential; private | | `.rippletide/project.json` | Repository binding; safe to commit | | Repository `.env` | Runtime Connection key; never commit | | `~/.rippletide/codex.env` | Codex runtime Connection key and capture settings; private | To disconnect a repository, remove instrumentation, remove the project binding and Rippletide runtime variables, and revoke its Connection key. Keep unrelated `.env` values. Account logout is a separate operation. For Codex use [its uninstall command](/docs/connect-codex#maintain-or-remove). # Business context Source: https://docs.rippletide.com/docs/business-context Connect policy sources, propose Rules from documents and traces, and review the impact of updates. Business context connects your team's documents and recorded activity to the Rules they inform. Uploading or syncing a source does not automatically change active Rules. Use an Editor or Admin in the right workspace to manage sources and proposals. ## Overview and Sources Open **Business context** on the agent or integration. **Overview** connects sources to current Rules; select either to inspect its recorded associations. A Rule linked to several sources appears once in the overview. Sources and Rules without an association remain visible. **Sources** contains documents, versions, connectors and saved trace sources. These links record authoring provenance, not proof that a source was consulted or a Rule covered a particular runtime action. ## Connect a document 1. Choose **Connect source → Upload documents**. 2. Select PDF, Word (`.docx`), Markdown or text files, up to 10 MB each. 3. Upload and wait until the sources are ready. A source may receive a short business-purpose label; its original filename and version remain available. If a label cannot be generated, the filename remains the fallback. Open a document to read the imported text in the side panel. Saved passages associated with current Rules are highlighted. Select a passage to see its Rules, or a Rule to locate its passages. The reader is version-specific: missing excerpts or references to another version are not inferred. ## Connect Notion 1. Choose **Connect source → Notion** and authorize the pages your integration may read. 2. Select one shared page. Only that page is stored as a versioned snapshot. 3. Review the imported source and choose whether to propose Rules from it. 4. Use the source's sync action when you want to check for updates; review any resulting Rule changes before applying them. Disconnecting Notion stops its connection to that source; use the separate archive action when you intend to archive the source and its dependent Rules. If Notion is not configured in your environment, the app explains that it is unavailable. Google Drive and SharePoint are disabled **Preview** entries. They do not connect accounts or import documents. ## Propose a Rule Choose **Propose a Rule**. Select documents, captured traces, or both, then start analysis. * **Documents** contribute the selected versions and supporting passages. * **Traces** contributes retained runtime cases. Selecting it and starting discovery permits analysis of captured values. It is available for connected agents even without uploaded documents; direct integrations retain the document path. * Selecting both analyses does not automatically establish corroboration between them. Review each proposal's scope, evidence, replay, counterexamples and setup requirements. Complete required configuration before saving. Document discovery offers Disabled or Observe; Trace proposals in the web start Observe. No Rule is created until you apply your selection. Saved Trace proposals retain a frozen source containing the analysis window and exact trace/span references. They do not copy raw argument values into that source. Missing original traces are shown as unavailable. Review snapshots can expire; analyze again when prompted rather than applying a stale proposal. ## Update a document and review impact 1. In **Sources**, select **Update** and choose the replacement file. 2. Choose **Upload and analyze**. The new version is stored before Rule changes are applied. 3. Review the full-page impact view: proposed updates, new Rules, archived Rules and unchanged Rules. Select a node to inspect its passages, required configuration or recorded calls. 4. Select the changes you want and complete required settings. Review the recalculated before/after preview and the new-Rule Disabled/Observe choice. 5. Apply the reviewed selection. Updated Rules return to Observe; new Rules use the chosen mode. The preview compares current and proposed Rules on the same bounded set of captured tool inputs. It is not historical enforcement or measured agent adaptation. Missing inputs/context and unsupported evaluation paths produce inconclusive results. Counts describe the returned cohort, not all stored activity; groups can contain overlapping traces. Leaving the review keeps the stored document and leaves Rules unchanged. If analysis fails, use **Retry analysis**. Expired reviews, changed Rules or a newer source version require reanalysis. During recalculation the app prevents applying stale results. The web apply operation commits the reviewed selection together; after an unconfirmed response, follow the retry guidance for that same preview. ## Archive a source Use the source's delete/archive action, inspect the confirmation and choose **Archive source**. This disables and archives the current Rules that depend on it. The source leaves future discovery, while earlier versions and Rule history remain for audit. For scripted upload, versioning, discovery and selected updates, see [Business context commands](/docs/cli#business-context). CLI reviews have their own apply flow and report per-change results; do not assume they share the web preview's transaction behavior. # CLI reference Source: https://docs.rippletide.com/docs/cli Connect, inspect traces, manage Rules and sources, and administer authorized workspaces. Install the Node.js CLI once: ```bash theme={"system"} npm install -g rippletide-package rippletide --help ``` Use ` --help` for its exact options. User-facing commands support `--json` for automation. Command success (`ok`) is not runtime health; inspect explicit evidence fields. Gate commands such as `verify`, `doctor`, `events --wait` and `connect --wait-evidence` also fail when their verification condition is not met. ## Sign in and connect | Command | Purpose | | - | - | | `login` | Browser authorization by a Workspace Admin; reuses a valid stored key | | `logout` | Revoke the CLI Platform key, then clear the local login | | `whoami` | Account, current workspace and role | | `connect --kind agent` | Create/link a JavaScript or TypeScript agent repository | | `connect --kind agent --language python` | Create/link a Python agent repository | | `connect --kind mcp` | Create/link a JavaScript or TypeScript MCP server | | `connect --kind agent --print-prompt` | Non-interactive agent setup prompt; include the kind on first connection | | `connect --agent ` | Bind the repository to an existing agent | | `connect --session ` | Claim a supported app-generated connection session | | `connect --wait-evidence` | Wait for the server's runtime proof contract; add `--kind` on first connection | | `connect --yes` | Allow execution of the repository's existing `rippletide:sync` script | `--kind` accepts `agent` or `mcp`; `--language` accepts `typescript` or `python` for agents. The CLI does not infer the kind for a first non-interactive connection. It does not launch your coding agent, invent sync scripts or run `rippletide:start`. Login and project binding are distinct from runtime health. A failed logout keeps the local credential for retry. Changing workspace requires its own authorization. ## Inspect and diagnose | Command | Purpose | | - | - | | `agents` | List agents in the authorized workspace | | `agents show ` | Inspect one agent and its connection state | | `agents risks [--analyze]` | Read action risks; explicitly start/retry classification with `--analyze` | | `status` | Login, project binding, inventory and evidence summary | | `doctor` | Diagnose auth, configuration and evidence gaps | | `verify` | Verify readable stored tool inventory and local configuration; no account login required | | `events --agent --limit 20` | List recorded traces | | `events --agent --json` | Read one complete retained trace | | `events --cursor --json` | Continue to older traces | | `events --wait` | Wait for the server-owned runtime evidence contract | Use `--agent` outside a connected repository. `--wait` cannot be combined with a trace ID or cursor. SDK-agent proof includes before-response evidence; MCP requires a tool call but no turn. `verify` does not prove a live turn or compare the stored catalogue with every tool in your source code. Running `rippletide` without a command opens the interactive home in a terminal. Non-interactive use returns next-step information rather than waiting for terminal input. ## Rules | Command | Purpose | | - | - | | `rules targets` | List policy targets (`rules agents` is an alias) | | `rules show-target ` | Inspect a target and its catalogue | | `rules create-target --agent ` | Sync a target from agent inventory | | `rules create-target --name "Name" --catalog catalog.json` | Create an API integration target | | `rules list` | List the connected target's releases | | `rules create --actions --input "Policy"` | Compile and save a Disabled Rule | | `rules compile --actions --input "Policy" --json` | Compile without saving | | `rules save --file rule.json` | Save a compiled release | | `rules discover [--source ]` | Discover and review proposals from the catalogue and optional documentation | | `rules decisions --agent --limit 20` | Recent action/response decisions | | `rules result-decisions --agent --limit 20` | Result-plan summaries | | `rules result-decisions show --agent ` | Ordered item decisions and plan details | | `rules set-mode --release --mode observe` | Set a release to `disabled`, `observe` or `enforce` | | `rules archive --release ` | Archive the logical family containing that release | | `rules restore --release ` | Restore the family with its releases Disabled | Use `--agent ` or advanced `--target ` when there is no project binding. Enforce requires Admin permission. Authoring selectors are `--actions ` (repeat for selected actions), `--all-actions`, `--before-response`, and `--after-action ` for one declared collection. Legacy `--action ` remains supported. Before-action Rules accept `--effect ALLOW` or `BLOCK`; BLOCK is the default. If the compiler asks a question, keep the original input/effect and add `--context "answer"`. ### Discover from recorded traces ```bash theme={"system"} rippletide rules discover --agent --traces \ --include-raw-values --out proposals.json rippletide rules save --agent --file proposals.json \ --proposal ``` `--include-raw-values` permits analysis of captured values for that request. Review the output's evidence, replay and required settings. Add `--config '{"setting":100}'` using the proposal's declared fields when needed. Saving through this CLI flow starts Disabled; set Observe explicitly after review. For catalogue/document discovery, `--source` accepts text, an HTTPS URL or `@file` containing UTF-8 text. `--json` is read-only for discovery. Interactive ready-only batches omit proposals needing additional configuration; trace export preserves proposals for explicit review/save. ## Business context Run from the connected repository, or add `--agent ` / `--target `: ```bash theme={"system"} rippletide business-context upload policy.pdf rippletide business-context list --json rippletide business-context history --json rippletide business-context discover --out proposals.json rippletide business-context apply proposals.json --select rippletide business-context update policy.pdf --expected-version 1 rippletide business-context analyze --from 1 --to 2 --out review.json rippletide business-context apply review.json --select rippletide business-context archive --yes ``` Uploads accept PDF, DOCX, Markdown and text up to 10 MB. Discovery reads up to eight selected documents; repeat `--source ` to select them. `update` checks the expected version to avoid overwriting someone else's newer version. `analyze` proposes changes; `apply` changes only selected IDs and accepts `--config` keyed by those IDs. New Rules start Disabled, replacements Observe. Review per-change failures before retrying. Archiving disables dependent Rules. See [Business context](/docs/business-context) for the web preview, Notion and retained evidence. ## Workspaces | Command | Purpose | | - | - | | `workspaces list` / `workspaces current` | Authorized workspaces / current workspace | | `workspaces use [id]` | Browser approval for another workspace | | `workspaces members` | List members (Admin) | | `workspaces invite user@example.com --role editor` | Create an invitation link (Admin) | | `workspaces set-role --role viewer` | Change role (Admin) | | `workspaces remove-member --yes` | Remove a member (Admin) | | `workspaces invitations` | List invitations (Admin) | | `workspaces revoke-invitation --yes` | Revoke an invitation (Admin) | | `workspaces rename "Name"` | Rename the workspace (Admin) | | `workspaces accept ""` | Verify and accept in the browser | Roles are `viewer`, `editor` or `admin`; invitations default to viewer. Invitation commands return a link, not an automatically sent email. CLI workspace changes do not change the browser's selected workspace. ## Codex ```bash theme={"system"} rippletide codex setup rippletide codex setup --traces --no-backfill rippletide codex catalog rippletide codex backfill --dry-run --stats rippletide codex backfill --since 2026-09-01 rippletide codex setup --uninstall ``` Setup accepts `--session ` or `--agent `; without either it can create the Codex agent. `--traces`/`--no-traces` controls stored activity, and `--backfill`/`--no-backfill` controls history import. Backfill accepts `--capture-content`; content is withheld unless the flag is present or `RIPPLETIDE_CAPTURE_CONTENT` is exactly `true` in `~/.rippletide/codex.env`. Repository and shell `RIPPLETIDE_*` settings do not configure this adapter. `codex hook ` is called by Codex, not a manual verification command. Read [Connect Codex](/docs/connect-codex) before setup for coverage, trust and privacy choices. ## Local configuration The account credential is in `~/.rippletide/config.json`, project binding in `.rippletide/project.json`, and runtime connection in the repository's git-ignored `.env`. CLI setup writes only `RIPPLETIDE`; Codex has its own `~/.rippletide/codex.env`. See [API keys](/docs/api-keys) for rotation, precedence and removal. # Connect an agent Source: https://docs.rippletide.com/docs/connect-agent Instrument an existing JavaScript or TypeScript agent through its generated setup prompt. Use this guide for an existing JavaScript or TypeScript agent on Node.js 18.19+ on the 18.x line, or 20.6+. The agent continues to run in your infrastructure. [Python](/docs/connect-python), [MCP servers](/docs/connect-mcp-server), and [Codex itself](/docs/connect-codex) have separate guides. ## CLI connection Run from the repository that owns the agent: ```bash theme={"system"} npm install -g rippletide-package rippletide login rippletide connect --kind agent ``` A Workspace Admin approves CLI access in the browser. The CLI creates or links the agent, saves `.rippletide/project.json`, writes `RIPPLETIDE` in a git-ignored `.env`, and presents a repository-specific instrumentation prompt. Apply that prompt with your coding agent. It adds inventory registration, causal tracing, tool guards and a response-delivery guard at the existing call sites. It does not replace the agent or its provider. For a headless coding-agent session, the human signs in first: ```bash theme={"system"} npx -p rippletide-package rippletide connect --kind agent --print-prompt ``` Use `--agent ` to link an existing agent. Re-running `connect` reuses the saved connection kind and can refresh setup. The CLI can run an existing `rippletide:sync` script after confirmation; `--yes` permits that script in a trusted repository. It does not invent the script, run `rippletide:start`, or start the agent. ## App-based connection Choose **Connect → Agent (JS/TS)** in the app. Save its generated `.env` credentials and apply its generated prompt in your repository. The app/manual path uses `RIPPLETIDE_AGENT_ID` and `RIPPLETIDE_API_KEY`. The CLI path uses one `RIPPLETIDE` connection string. Use the configuration your chosen path generates; see [API keys](/docs/api-keys) for rotation and precedence. ## Prove the connection Start your application and send a real request that uses a tool and delivers a response. Run: ```bash theme={"system"} rippletide verify rippletide events --wait ``` The server validates the current inventory, heartbeat, expected tool call, turn and before-response evidence. In **Context & actions**, inspect the inventory. In **Traces**, open the run and inspect its tool calls and response outcome. A copied prompt or stored key proves setup only. A missing delivery receipt is not fixed by creating another agent. Check the instrumentation at the real response sink, using [Manual TypeScript setup](/docs/manual-setup). Run `rippletide doctor` for configuration and evidence gaps. Review [Privacy & capture](/docs/privacy) before exporting runtime content. Declaring a third-party connection reports credential names/status, not the secret values. # Connect OpenAI Codex Source: https://docs.rippletide.com/docs/connect-codex Install local Codex hooks, choose what to record, and understand the limits of tool governance. This path governs **Codex itself**, using its local hooks. It does not add SDK code to the repositories Codex edits. To use Codex to instrument another agent, follow [Connect an agent](/docs/connect-agent) instead. ## Requirements and setup Install Codex first. Rippletide's adapter requires Codex 0.154.0 or later; it has been verified with CLI versions 0.154.0 and 0.155.1. Recheck hook registration after upgrading Codex. Desktop builds must support and trust the same hooks; desktop behavior is not covered by the CLI verification alone. On the machine that runs Codex: ```bash theme={"system"} npm install -g rippletide-package rippletide codex setup ``` The command signs in through the browser if needed and can create the Codex agent. A Workspace Admin must authorize CLI access. You can also choose **Connect → Codex** in the app and run its generated `rippletide codex setup --session ` command, or use `--agent ` for an existing agent. Setup stores the Connection key in `~/.rippletide/codex.env`, merges the hooks into `~/.codex/hooks.json`, and registers their trust in `~/.codex/config.toml`. It backs up both Codex files and preserves other hooks. Codex silently skips untrusted hooks: if setup cannot register trust, follow its `/hooks` instructions before relying on enforcement. ## Choose what to store Setup asks separately whether to: * **Store activity:** tool calls and their outcomes become traces. The default is **No**, including in a non-interactive terminal. `--traces` or `--no-traces` selects explicitly. With traces off, decisions and receipts are still recorded, but the activity-based connection status may remain declared. * **Import history:** only offered when storing activity. Default **No**. `--backfill` imports past sessions once; `--no-backfill` declines. Recorded activity withholds input/output content by default. To include bounded tool inputs/results and final response content, set `RIPPLETIDE_CAPTURE_CONTENT=true` in `~/.rippletide/codex.env` after owner consent. Setup preserves this setting but does not enable it. Repository and shell `RIPPLETIDE_*` settings do not configure the adapter. See [Privacy & capture](/docs/privacy). Run a new Codex session with a tool call to verify the live hooks and its decision receipt. A historical import does not prove that a live hook is installed. ## What the hooks can govern | Surface | Coverage | | - | - | | Shell/unified exec, `apply_patch`, MCP tools, declared local function tools | Policy check before the call, when Codex routes it through the supported hook path | | Completion of a tool call | Post-tool evidence and execution receipt | | Hosted tools such as `WebSearch` | Not governed by local hooks | | `write_stdin` into an open exec session | Not governed or recorded by the hook | | The JavaScript body of an `exec` cell | No hook on the cell; covered nested tool calls are checked | | Final response | Stop evaluates the last assistant message and can request a revision; delivery or suppression is not confirmed | | Tool result filtering | Cannot be enforced after the effect through the post-tool hook | Shell payloads expose the command but not every execution flag or working directory. Some subagent message bodies are encrypted by Codex and unavailable for matching. Unknown or changed tool payloads require compatibility verification. These hooks are a guardrail, not complete coverage of everything Codex can do. An enforced `BLOCK` becomes a native deny before the covered call. Availability failures such as network outages, rate limits, 5xx and timeouts fail open. Deterministic policy rejections and arguments too large/deep to evaluate are refused. A missing, untrusted or crashed hook can leave a call ungoverned. At Stop, Rippletide evaluates Codex's complete last assistant message against before-response Rules. An enforced `BLOCK` requests that Codex revise the response. Observe decisions allow stopping. Evaluation errors, invalid replies and timeouts fail open. The check sends `request: null`, so the original user request is unavailable for matching. Stop review does not produce a delivery or suppression receipt and is separate from the required Codex connection-proof contract. It sends the complete response for policy evaluation and decision audit even when activity storage or content capture is off. See [Privacy & capture](/docs/privacy). Check `~/.rippletide/codex-hook.log` and recent decision receipts when diagnosing coverage. An authorized call with no post-tool evidence has an unknown outcome; authorization alone is not proof it executed. ## Import past sessions explicitly ```bash theme={"system"} rippletide codex backfill --dry-run --stats rippletide codex backfill --since 2026-09-01 ``` Backfill reads Codex's own sessions under `~/.codex/sessions` and imports them as backdated evidence. Review the dry run first. Content is withheld by default. `--capture-content` explicitly includes bounded prompts, patches, commands and outputs for that import. The same opt-in can be configured with `RIPPLETIDE_CAPTURE_CONTENT=true` in `~/.rippletide/codex.env`. Re-runs skip already imported sessions using local state. Historical turns are not re-evaluated against today's Rules and do not prove earlier enforcement. They can show **No policy check**. Keep historical evidence separate from proof that a live guard blocked an action. ## Maintain or remove Run `rippletide codex catalog` to rebuild the declared tool catalogue. Re-run setup to repair registration or change the traces choice. To remove the integration: ```bash theme={"system"} rippletide codex setup --uninstall ``` Review the uninstall summary for local cleanup. Previously stored server evidence is not erased by removing local hooks. `rippletide logout` separately revokes the CLI's Platform key. # Connect an MCP server Source: https://docs.rippletide.com/docs/connect-mcp-server Declare a JavaScript or TypeScript MCP server and guard its real tool dispatcher. Connect a JavaScript or TypeScript MCP server to inventory its tools and apply Rules before tool execution. This is a tools-only subject: it has no agent response loop to instrument. Python MCP servers are not supported by this path. ## Connect From the server repository: ```bash theme={null} npm install -g rippletide-package rippletide login rippletide connect --kind mcp --print-prompt ``` Alternatively, choose **Connect → MCP** in the app and save its generated credentials. Apply the generated setup prompt with your coding agent. It declares the server's tools and guards the actual dispatcher, where every protected call passes before reaching its handler. A manual integration uses the [TypeScript SDK](/docs/manual-setup): declare tools only, and guard the dispatcher. Do not invent prompts, a model client or response-delivery events for an MCP server. Return policy errors to the MCP client as a normal `isError: true` tool result, rather than crashing the server or sending a protocol error. ## Verify Start the server normally and call a guarded tool through your MCP client: ```bash theme={null} rippletide verify rippletide events --wait ``` The MCP evidence contract requires registration, inventory, heartbeat and a tool call. **It does not require a turn or before-response delivery evidence.** Inspect Actions in **Context & actions** and the call's decision/outcome in **Traces**. [Write a Rule](/docs/write-rules), start in Observe, and [test representative inputs](/docs/evaluate-improve). An enforced blocking match must prevent the handler from executing. A server registered in the catalogue is not protected unless the caller actually goes through the guard. # Connect a Python agent Source: https://docs.rippletide.com/docs/connect-python Install the Python SDK, apply the generated setup prompt, and verify your first live turn. `rippletide-python` supports existing Python 3.10+ agents with synchronous and asyncio call sites. It has no model-provider dependencies: keep your provider and wrap its existing call sites. Provider streams can be traced. Responses streamed directly to the caller are evaluated after delivery and cannot be suppressed. Python MCP servers are not supported by this integration. ## Install and connect Use your project's existing Python environment. If it has none, create one: ```bash theme={"system"} python3 -m venv .venv source .venv/bin/activate python -m pip install rippletide-python ``` On Windows PowerShell, activate with `.venv\Scripts\Activate.ps1`. Record the dependency in your project's dependency manifest. In the app, choose **Connect → Agent (Python)**, save the generated credentials in a git-ignored `.env`, and apply the generated prompt with your coding agent. The Node.js CLI can also create the Python connection: ```bash theme={"system"} npm install -g rippletide-package rippletide login rippletide connect --kind agent --language python --print-prompt ``` The CLI writes `RIPPLETIDE=rippletide://…` in the connected repository's `.env`. It does not install the Python package into your Python environment for you. ## Apply the setup prompt Paste the generated prompt into your coding agent in the connected repository. It guides the instrumentation of your existing model calls, tool dispatcher and response delivery. Prefer to add the instrumentation yourself? Follow [Manual Python setup](/docs/manual-python-setup). Runtime content capture is disabled by default. See [Privacy & capture](/docs/privacy) before enabling `capture_content=True` on the client. ## Verify a real run Run a turn that uses a guarded tool and delivers a response. Check `rippletide verify`, then `rippletide events --wait`. The app must show the inventory, heartbeat, tool and turn evidence, and the response-delivery outcome in **Traces**. Recording only a model candidate does not prove delivery. For a directly delivered stream, verification proves recorded delivery, not a pre-delivery enforcement boundary. See [Async and streaming](/docs/manual-python-setup#async-and-streaming). # Tide-1 Source: https://docs.rippletide.com/docs/decision-api Send explicit choices, get a recommendation with a score for each choice and the facts it was shown. Tide-1 is the decision API for agents. It compares the choices you provide and returns the option it considers best supported by your question, current context, retrieved memory and active policies. Your application decides how to use that recommendation. Each workspace has a shared memory bank for stored information, previous interactions and policies. You can use **Tide-1 → Test, Memory and Policies** in the [platform](https://app.rippletide.com/decision-api), or call the API with that bank's Connection key. An agent connection is not required. Policies guide the model's comparison. [Rules and the Policy API](/docs/policy-api) evaluate execution and delivery boundaries. A Tide-1 recommendation does not execute, approve or block an action. ## Get your API key 1. Sign in at [app.rippletide.com](https://app.rippletide.com/decision-api) and open **Tide-1** in the sidebar. 2. Select **Copy API key**. When you sign up, Rippletide creates a workspace and makes you its Admin. Your first visit to Tide-1 creates the key, so you can copy it right away. In a shared workspace, only Admins see **Copy API key**. If you are an Editor or Viewer, ask a workspace Admin to copy the key and share it with you through your secret manager. If the page asks you to contact an administrator, no Admin has opened Tide-1 in this workspace yet. An Admin's first visit creates the key. The key is a Bearer token for your workspace's memory bank. It can also change memory and policies, so keep it in your backend. It expires after 90 days. See [API keys](/docs/api-keys#tide-1-keys) for copying and replacement. ## Make your first call This example asks Tide-1 for the most likely cause of an incident. The logs go in `context`. The candidate causes go in `choices`. Tide-1 picks one of the choices. Set the key you copied: ```bash theme={"system"} export RT_BANK_KEY='' ``` ```bash curl theme={"system"} curl -sS -X POST 'https://agent-evalserver-production.up.railway.app/v1/decide' \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "question": "Which cause best explains the checkout errors in these logs?", "context": { "service": "checkout", "logs": [ "12:04:01 ERROR pg: timeout acquiring connection from pool (size=20, waiting=57)", "12:04:01 WARN POST /api/checkout 503 in 30012 ms", "12:04:03 ERROR pg: timeout acquiring connection from pool (size=20, waiting=61)", "12:04:05 INFO payments-gateway p95 latency 180 ms" ] }, "choices": ["db_pool_exhausted", "payment_gateway_timeout", "bad_deploy"] }' ``` ```python Python theme={"system"} import os import uuid import requests API = "https://agent-evalserver-production.up.railway.app" response = requests.post( f"{API}/v1/decide", headers={ "Authorization": f"Bearer {os.environ['RT_BANK_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "question": "Which cause best explains the checkout errors in these logs?", "context": { "service": "checkout", "logs": [ "12:04:01 ERROR pg: timeout acquiring connection from pool (size=20, waiting=57)", "12:04:01 WARN POST /api/checkout 503 in 30012 ms", "12:04:03 ERROR pg: timeout acquiring connection from pool (size=20, waiting=61)", "12:04:05 INFO payments-gateway p95 latency 180 ms", ], }, "choices": ["db_pool_exhausted", "payment_gateway_timeout", "bad_deploy"], }, timeout=60, ) response.raise_for_status() decision = response.json() print(decision["choice"], decision.get("choice_scores")) ``` ```typescript TypeScript theme={"system"} const API = "https://agent-evalserver-production.up.railway.app"; const response = await fetch(`${API}/v1/decide`, { method: "POST", signal: AbortSignal.timeout(60_000), headers: { Authorization: `Bearer ${process.env.RT_BANK_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ question: "Which cause best explains the checkout errors in these logs?", context: { service: "checkout", logs: [ "12:04:01 ERROR pg: timeout acquiring connection from pool (size=20, waiting=57)", "12:04:01 WARN POST /api/checkout 503 in 30012 ms", "12:04:03 ERROR pg: timeout acquiring connection from pool (size=20, waiting=61)", "12:04:05 INFO payments-gateway p95 latency 180 ms", ], }, choices: ["db_pool_exhausted", "payment_gateway_timeout", "bad_deploy"], }), }); if (!response.ok) throw new Error(`Tide-1 returned ${response.status}`); const decision = await response.json(); console.log(decision.choice, decision.choice_scores); ``` The Python sample uses `requests` (`pip install requests`). The TypeScript sample also runs as JavaScript: save it as `first-decision.mjs` and run `node first-decision.mjs` on Node.js 20 or later. Each new decision needs a new `Idempotency-Key` UUID. To retry a call you are unsure about, send the same key and the same body again. A successful call returns HTTP 200. This sample comes from a bank that already holds one runbook note and one active policy. Your IDs, scores and evidence will differ, and so can the choice: it depends on what your bank's memory and policies hold. ```json theme={"system"} { "decision_id": "6f1c2a9e-3b7d-4c51-9a0e-2d8f4b6c1e73", "mode": "choice", "status": "answered", "choice": "db_pool_exhausted", "answer": null, "reason": null, "evidence": { "context_id": "0b7e4d12-8a3f-4e6c-b1d9-5c2a7f9e3d40", "policy_versions": [{ "policy_id": "incident-diagnosis", "version": 1 }], "retrieved_fact_ids": ["a3d9e1f0-6c2b-4f8a-9e7d-1b5c3a2f4e68"], "presented_fact_ids": ["a3d9e1f0-6c2b-4f8a-9e7d-1b5c3a2f4e68"], "presented_source_refs": ["runbook:checkout-db"], "presented_facts": [ { "fact_id": "a3d9e1f0-6c2b-4f8a-9e7d-1b5c3a2f4e68", "text": "Checkout uses a Postgres pool of 20 connections. Pool timeouts mean the pool is exhausted.", "source": { "ref": "runbook:checkout-db", "observed_at": "2026-10-14T09:00:00.000Z", "kind": "direct_memory", "decision_id": null } } ], "presented_policies": [ { "policy_id": "incident-diagnosis", "version": 1, "text": "Choose the cause supported by the supplied logs and runbook facts.", "display_id": "diagnosis-evidence" } ], "citation_status": "unsupported", "cited_fact_ids": [], "source_refs": [] }, "usage": { "input_tokens": 912, "output_tokens": 6 }, "choice_scores": [ { "choice": "db_pool_exhausted", "probability": 0.86 }, { "choice": "payment_gateway_timeout", "probability": 0.09 }, { "choice": "bad_deploy", "probability": 0.05 } ], "explanation": { "status": "unavailable", "text": null, "policy_refs": [] }, "memory": { "status": "pending", "error_code": null, "ingestions": [ { "kind": "client_input", "ingestion_id": "c4e8a1b2-7d3f-4a69-8e15-9f2b6d0c3a71", "memory_id": "e1b7c3d9-2a4f-4e8b-a6c0-7d9f1e3b5a28" }, { "kind": "model_output", "ingestion_id": "f9a2d6e4-1c8b-4d37-b5e0-3a7c9e1f2b84", "memory_id": "b5d3f1a7-9e2c-4b68-8a04-6c1e7d3f9b52" } ] } } ``` `choice` is always one of your `choices`. Use it, the scores and the evidence however your application needs. [Read a decision](#read-a-decision) explains each field. ## Try it in the app This example uses a fictional service, **Orion**, and synthetic error code **RP17**. It compares the same question before and after adding sourced information. Review [Privacy & capture](/docs/privacy#tide-1-memory-and-replay) before submitting customer data: successful decisions can retain their inputs and generated results as memory. Sign in, select your workspace and open **Tide-1** below **Agents & integrations**. An Admin's first visit creates the workspace bank and key. Editors can test decisions and change memory or policies; Viewers can read memory and policies. The app uses your account session, with no key to paste. **1. Prepare the comparison** Inspect **Memory** and **Policies** first. If Orion or RP17 already has a definition in the bank, use another unused synthetic service and code throughout the example. Keep the active policies unchanged for the two decisions. In **Test**, select **Add choices**, enter `upstream_timeout` and `db_pool_full` separately, then select **Done**. Select **Add context** and paste only this JSON object: ```json theme={"system"} { "service": "Orion", "error_code": "RP17" } ``` Select **Done**, then enter: “What does error code RP17 mean for Orion?” **2. Record the first decision** Send the question. Record the selected option, open **Choice scores** and record both scores. Then open **Decision context** to inspect the memory excerpts and policies presented to the model. This is a baseline: it may already select the right option. Earlier interactions or generated hypotheses in memory do not establish what RP17 means. **3. Add the missing runbook information** Open **Memory → Add information**. Enter: > For Orion, RP17 means the upstream request timed out. It does not indicate a database pool problem. Set **Source** to `runbook:orion-rp17` and select **Add information**. The app supplies the observation time. Check **Added to memory**, then search for Orion or RP17. The information is stored and indexed when the addition commits. Retention makes it eligible for retrieval; a later question may still retrieve a different selection of excerpts. **4. Repeat with the same inputs** Return to **Test** and send the same question without changing **Choices**, **Context** or the active policies. Sending clears the question but keeps the configured choices and context. The supplied runbook supports `upstream_timeout`. Open **Decision context** and check whether the runbook text appears as **Information**. Compare the actual option and scores with your first result. One comparison, or a higher score alone, does not measure overall accuracy. The conversation clears on reload, workspace changes and logout. Stored memory and policies remain in their workspace bank. Coordinate additions and policy changes with teammates using the same bank. ## Read a decision | Field or view | Meaning | | - | - | | `decision_id` | Identifier to retain for feedback and diagnostics | | `choice` | One of the exact strings supplied in `choices` | | `choice_scores` | Each option's `probability` from 0 to 1, in submitted order; the selected option has a maximum score. Can be absent when the model returns no scores | | `mode`, `status` | New decisions return `choice` and `answered` | | `answer`, `reason` | Currently `null` for new decisions; no free-text answer or explanation is returned here | | `evidence.presented_facts` | Exact retrieved excerpts presented to this decision, with source references, observation dates and provenance | | `evidence.policy_versions` | IDs and versions of policies included in the decision | | `evidence.presented_policies` | Exact text and version of each policy included in the decision, with its short `display_id` when it has one | | `usage` | Input and output tokens for the decision | | `explanation` | A short summary generated after the decision. New decisions return `status: pending` or `unavailable` | | `memory` | Ingestions created to keep this question and result in the bank's memory | | **Decision context** (app) | The original decision's memory excerpts and policy versions, rather than the bank's current contents | Scores are model outputs, not calibrated certainty. Presented facts prove what was supplied to the model, not factual correctness, causal influence or compliance with a policy. `citation_status: unsupported` means the response provides no model citations. In the app, **Information**, **Interaction**, **Hypothesis** and **Correction** identify the origin of memory excerpts. A Hypothesis is generated history. Source references and observation dates remain available in the API JSON; the compact app blocks do not display them. The API selects from the supplied choices even with weak evidence. If your workflow needs `insufficient_evidence`, include it as a choice and describe when to select it in a policy. Check the result against your use case. ## Call from your application Use the key from [Get your API key](#get-your-api-key). This Connection key is bound to the workspace bank and uses **Bearer** authentication. It also authorizes memory and policy edits, so keep it in the intended backend application's secret manager. See [API keys](/docs/api-keys#tide-1-keys) for expiration, copying and replacement. The Bash examples use `uuidgen`. Set the production API URL and the key copied from the same environment: ```bash theme={"system"} export RT_API='https://agent-evalserver-production.up.railway.app' export RT_BANK_KEY='' ``` For staging, use `https://agent-evalserver-staging.up.railway.app` with its staging bank key. Keep the app, API and credentials in the same environment. **1. Check the key and prepare a request** List policies to check authentication without calling the decision model: ```bash theme={"system"} curl -sS "$RT_API/v1/policies" \ -H "Authorization: Bearer $RT_BANK_KEY" ``` HTTP 200 confirms that the key is accepted. The list includes inactive policies; only active policies guide decisions. Save the comparison inputs so both calls use the same body: ```bash theme={"system"} cat > orion-request.json <<'JSON' { "question": "What does error code RP17 mean for Orion?", "context": { "service": "Orion", "error_code": "RP17" }, "choices": ["upstream_timeout", "db_pool_full"] } JSON ``` `question` and `choices` are required. Supply 1–80 unique, nonblank choices, each up to 256 characters. Optional `context` must be a JSON object and defaults to `{}`. **2. Request the baseline decision** Create a UUID once for this attempt, then send the request: ```bash theme={"system"} export RT_DECISION_REQUEST_ID="$(uuidgen)" curl -sS -o orion-before.json -w '\nHTTP %{http_code}\n' \ -X POST "$RT_API/v1/decide" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $RT_DECISION_REQUEST_ID" \ --data-binary @orion-request.json cat orion-before.json ``` HTTP 200 returns the decision. Keep its actual scores, evidence and `decision_id`. Reuse this UUID and body when retrying an uncertain attempt; create a new UUID for a new decision. **3. Record and retrieve the runbook information** Use this API path instead of adding the same information in the app: ```bash theme={"system"} export RT_MEMORY_REQUEST_ID="$(uuidgen)" curl -sS -X POST "$RT_API/v1/memories" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $RT_MEMORY_REQUEST_ID" \ -d '{ "content": "For Orion, RP17 means the upstream request timed out. It does not indicate a database pool problem.", "source": { "ref": "runbook:orion-rp17", "observed_at": "2026-10-14T09:00:00Z" } }' ``` HTTP 202 returns `status: recorded`, `memory_status: retained`, `memory_id` and `ingestion_id`. The text is already stored and indexed when the request returns. `GET /v1/ingestions/:ingestionId` checks the ingestion's status. Retrieve relevant information without a decision-model call: ```bash theme={"system"} curl -sS -X POST "$RT_API/v1/context/recall" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -d '{"query":"What does error code RP17 mean for Orion?"}' ``` Inspect `facts` for the runbook text and `source.ref: runbook:orion-rp17`. Recall returns a bounded selection of retained excerpts and active policies. **4. Repeat the decision and compare** Create a new request UUID, keeping the original body: ```bash theme={"system"} export RT_DECISION_REQUEST_ID="$(uuidgen)" curl -sS -o orion-after.json -w '\nHTTP %{http_code}\n' \ -X POST "$RT_API/v1/decide" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $RT_DECISION_REQUEST_ID" \ --data-binary @orion-request.json cat orion-after.json ``` Compare `choice`, `choice_scores` and `evidence.presented_facts` in the two files. Check whether the follow-up contains the sourced runbook information, including its reference. Report the actual result even if it did not improve. ## Add a policy After the memory comparison, open **Policies → Add a policy**. Enter “Choose the diagnosis supported by the supplied observations and runbook facts”, keep the policy **Active**, then select **Save policy**. The app handles version checks. Through the API, create a policy with `expected_version: 0`: ```bash theme={"system"} curl -sS -X PUT "$RT_API/v1/policies/orion-diagnosis" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -d '{ "text": "Choose the diagnosis supported by the supplied observations and runbook facts.", "active": true, "expected_version": 0 }' ``` A new policy starts at version 1. For an update, use its current version from `GET /v1/policies`. Identical updates are no-ops; a stale version returns `409 POLICY_VERSION_CONFLICT`. Inactive policies are excluded from future decisions. Run a new decision and inspect `evidence.policy_versions` for the policy and saved version. ## Infer policies from a document Editors and Admins can select **Policies → Infer policy from document**, upload one UTF-8 `.md`/`.txt` file or paste text, then review the suggested instructions and their exact source excerpts. Edit or deselect proposals before choosing **Save and activate**. Generation saves nothing; each selected Policy becomes active only after its save succeeds. Backend clients use `POST /v1/policies/infer` with the same bank Bearer key. Send document text as JSON, not a multipart upload or a file URL: ```json theme={"system"} { "document": { "name": "provider-policy.md", "text": "When a caller switches to a different patient for claims, change the current member while preserving provider verification and clearing member verification. Verify the new member before looking up claims." } } ``` HTTP 200 returns `{ "policies": [{ "text": "...", "source_excerpt": "..." }] }`. An empty `policies` array is valid. Each excerpt is an exact substring of the submitted text. Excerpts support review; they do not prove that all conditions, exceptions or sections of the document were preserved. Check coverage and wording before activation. Generation does not add the document or proposals to the bank's Policy or Memory stores. ### Document to reviewed Policy to decision Use a bank reserved for testing, or coordinate changes with its workspace owner. This fictional provider-line example evaluates a proposed action or response. It does not perform the action or deliver the response. The commands use Bash, `curl` with `--fail-with-body` support, `jq` and `uuidgen`. Set `RT_API` and `RT_BANK_KEY` as described in [Call from your application](#call-from-your-application). **1. Submit document text** Save your Markdown/text document as `provider-policy.md`. You can also create a text file from pasted content: ```bash theme={"system"} cat > provider-policy.md <<'MD' # Fictional provider-line policy When a caller switches to a different patient for claims, change the current member while preserving provider verification and clearing member verification. Verify the new member before looking up claims. When an authorization is denied, vendor-managed and has no readable denial reason, say the reason is unavailable and offer the vendor's contact details for the reason and next steps. Do not invent a denial reason. MD jq -n --rawfile text provider-policy.md \ '{document: {name: "provider-policy.md", text: $text}}' \ > inference-request.json curl --fail-with-body -sS --max-time 60 \ -X POST "$RT_API/v1/policies/infer" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ --data-binary @inference-request.json \ -o policy-proposals.json ``` Reading a file and pasting text produce the same `document.text` field. This endpoint does not require an `Idempotency-Key`. Do not add automatic generation retries after a timeout; no Policy was saved by generation. **2. Review proposals against the source** Display each proposal with its index and exact excerpt: ```bash theme={"system"} jq '.policies | to_entries[] | {index: .key, text: .value.text, source_excerpt: .value.source_excerpt}' \ policy-proposals.json ``` Check the patient-switch conditions, provider verification, member reset, and vendor-denial exception against your document. Proposal order and how instructions are split can vary. If no suitable proposal is returned, edit a Policy manually rather than treating an empty result as approval. **3. Explicitly save and activate a selected instruction** After review, choose one proposal index and a new lowercase Policy ID: ```bash theme={"system"} export RT_POLICY_INDEX=0 export RT_POLICY_ID='provider-patient-switch' jq --argjson index "$RT_POLICY_INDEX" \ '(.policies[$index] // error("No proposal at this index")) | {text: .text, active: true, expected_version: 0}' \ policy-proposals.json > reviewed-policy.json cat reviewed-policy.json ``` Edit `reviewed-policy.json` if the instruction needs correction. Confirm its text and `active: true`, then save it: ```bash theme={"system"} curl --fail-with-body -sS --max-time 60 \ -X PUT "$RT_API/v1/policies/$RT_POLICY_ID" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ --data-binary @reviewed-policy.json ``` `expected_version: 0` creates a new Policy at version 1. If that ID already exists, read its current version before editing; do not overwrite it with a guessed version. Repeat this deliberate review/save for each relevant instruction, using a distinct ID. Activate the vendor-denial instruction too before using the response example below. **4. Evaluate the proposed action or response** Save one of these request bodies as `review-request.json`. The question identifies what to judge; `context` contains the candidate and the preceding conversation/state. Use actual trusted state and lookup results in your integration, and distinguish a proposed transition from an observed effect. ```json Action check theme={"system"} { "question": "Does the proposed next action comply with the active policies?", "choices": ["yes", "no", "insufficient_evidence"], "context": { "conversation": [ {"role": "agent", "message": "We have finished this claim question."}, {"role": "caller", "message": "I have a different patient now, also for claims."} ], "state": { "intent": "claims", "provider_verified": true, "member_verified": true }, "proposed_action": { "action": "riverbend/claims/change_member", "params": {"new_intent": "claims"}, "proposed_transition": { "provider_verified": true, "member_verified": false } } } } ``` ```json Response check theme={"system"} { "question": "Does the proposed response comply with the active policies?", "choices": ["yes", "no", "insufficient_evidence"], "context": { "conversation": [ {"role": "agent", "message": "The authorization status returned as denied."}, {"role": "caller", "message": "Why was it denied?"} ], "state": { "intent": "prior_auth_status", "provider_verified": true, "member_verified": true, "lookup": { "status": "denied", "readable_denial_reason": null, "vendor_managed": true } }, "proposed_response": "I cannot see the specific denial reason. The vendor managing this authorization can provide the denial details and next steps. Would you like their contact information?" } } ``` Send the request with a new UUID: ```bash theme={"system"} export RT_REVIEW_REQUEST_ID="$(uuidgen)" curl --fail-with-body -sS --max-time 60 \ -X POST "$RT_API/v1/decide" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $RT_REVIEW_REQUEST_ID" \ --data-binary @review-request.json \ -o reviewed-decision.json jq '{choice, choice_scores, policies: .evidence.presented_policies}' \ reviewed-decision.json ``` Check the actual choice and the relevant saved Policy IDs/versions in `evidence.presented_policies`. These fixtures are intended to satisfy their corresponding instructions, but a generated suggestion or one decision does not establish complete policy coverage or accuracy. For your use case, test incorrect and missing-context variants too. Including `insufficient_evidence` makes it available as a choice; define when to use it in your reviewed policies if abstention is required. ## Correct a response In **Test**, select **Correct this answer** below the result, pick the **Correct choice**, add an optional **Comment** and select **Submit**. The app saves it as a sourced correction with an observation time. It can inform future decisions without changing the original response or its **Decision context**. The API supports either a vote or a sourced correction. For an incorrect result with a source, use the returned `decision_id` and generate a UUID once for the feedback operation: ```bash theme={"system"} export RT_FEEDBACK_REQUEST_ID="$(uuidgen)" curl -sS -X POST "$RT_API/v1/feedback" \ -H "Authorization: Bearer $RT_BANK_KEY" \ -H 'Content-Type: application/json' \ -H "Idempotency-Key: $RT_FEEDBACK_REQUEST_ID" \ -d '{ "decision_id": "", "rating": "incorrect", "correction": "For Orion, RP17 means the upstream request timed out.", "source": { "ref": "runbook:orion-rp17", "observed_at": "2026-10-14T09:00:00Z" } }' ``` A sourced correction returns HTTP 202 and retained ingestion metadata. A vote omits both `correction` and `source`, uses `rating: correct` or `incorrect`, and returns HTTP 201 without adding memory. Only completed decisions in the same bank accept feedback. Corrections retain attribution; they do not change policies or model weights. ## Endpoint reference All routes below use the bank's Bearer Connection key. The key selects the bank; requests cannot supply another bank or workspace. | Method and path | Contract | | - | - | | `POST /v1/decide` | Question, required choices and optional context; UUID `Idempotency-Key`; returns a recommendation and evidence | | `POST /v1/memories` | Content plus `source.ref` and `source.observed_at`; UUID `Idempotency-Key` | | `GET /v1/ingestions/:ingestionId` | Status for an ingestion in this bank | | `GET /v1/memories?offset=0` | Retained excerpts, newest first, 50 per page; `total` counts excerpts | | `POST /v1/context/recall` | `{ "query": "..." }`; returns `{ bank_id, facts, policies }` without calling the decision model | | `GET /v1/policies` | Exact policy text, versions and activation state, including inactive policies | | `POST /v1/policies/infer` | `{ "document": { "name": "policy.md", "text": "..." } }`; source-supported proposals without saving; no UUID required | | `PUT /v1/policies/:policyId` | Exact `text`, `active` and `expected_version`; version 0 creates | | `POST /v1/feedback` | Decision ID and rating, optionally correction plus source; UUID `Idempotency-Key` | ## Retries, limits and errors Keep the original UUID and request body when retrying an uncertain decision, memory addition or feedback submission. Changed content under the same UUID returns `409 IDEMPOTENCY_CONFLICT`. A pending decision retry returns `409 REQUEST_IN_PROGRESS`; a failed decision retry returns its saved error. A new UUID requests a new decision. Exact replay of a completed response is disabled by default: `409 RESULT_NOT_REPLAYABLE` can confirm completion without returning the original result or calling the model again. See [Memory and replay](/docs/privacy#tide-1-memory-and-replay) for the separate opt-in cache. | Limit | Current budget | | - | - | | Question | 1–8,000 nonblank characters | | Choices | 1–80 unique, nonblank strings; 256 characters each | | Context | JSON object; 16 nested levels and 2,048 nodes | | Question and context | 12,000 UTF-8 bytes after canonical serialization | | Complete decision request | 32,000 characters after canonical serialization | | Prepared question, context, memory and policies | 24,000 bytes | | Memory or correction | 16,000 characters; source reference up to 256; observation time in UTC ISO 8601 ending in `Z` | | Recall query | 1–2,000 nonblank characters | | Policy | Lowercase slug ID up to 64 characters; text up to 8,000; 100 policies per bank and 50 active; no aggregate active-text character cap | | Inference document | Nonblank UTF-8 text, up to 24,000 characters and 48 KiB, with a safe filename; JSON body up to 64 KiB | | Inference proposals | Up to 20; each instruction up to 8,000 characters and source excerpt up to 4,000 | | Decision rate | Two simultaneous decisions and 20 new decisions per second per bank | Decision and memory HTTP bodies are limited to 64 KiB; policy bodies to 32 KiB. Memory additions and recall share 30 requests/minute/bank per server instance; memory reads and ingestion checks share 120/minute/bank. Policy writes allow 30/minute/bank and reads 120/minute/bank per instance. For HTTP 429, honor `Retry-After` when supplied. Within each server process, browser and API inference requests share three calls/minute/bank and two simultaneous calls/bank, including replacement keys. Each process admits eight concurrent generations across all banks; the public route also limits each IP to 120 requests/minute. The generation deadline is 45 seconds; it does not retry automatically. Inference responses use `Cache-Control: no-store`. Save and activation are separate operations. Decisions still have to fit their prepared-context byte budget; the higher active Policy count does not increase that budget. | Error | Next step | | - | - | | `401` or `403` | Check the bank key, expiry and environment; an agent or Platform key cannot authorize these runtime routes | | `400 INVALID_REQUEST` | Check required choices, valid JSON and the UUID header; objects reject unexpected fields | | `400 INPUT_BUDGET_EXCEEDED` or `CONTEXT_BUDGET_EXCEEDED` | Shorten the question or context. The second code also counts the retrieved memory and active policies, so shorter policies help too | | `400 BANK_SELECTED_BY_CREDENTIAL` | Remove query parameters (other than `offset` on `GET /v1/memories`) and any `x-bank-id` or `x-workspace-id` header; the key selects the bank | | `404 DECISION_NOT_FOUND` | Send feedback for a completed decision from the same bank | | `409 POLICY_VERSION_CONFLICT` | Read the latest policy version before editing | | `409 POLICY_LIMIT_EXCEEDED` | Check total and active policy budgets; at the total limit, edit an existing policy rather than adding another | | `413 PAYLOAD_TOO_LARGE` | Keep decision and memory bodies under 64 KiB and policy bodies under 32 KiB | | `429 RATE_LIMITED` | Wait for `Retry-After`. For decisions, retry with the original UUID; inference has no UUID and shares its own bank/concurrency limits | | `429 BANK_QUEUE_FULL` | Retry the same memory operation after capacity is available | | `502 INVALID_MODEL_OUTPUT` or `MODEL_ERROR` | Keep the error code and request ID for diagnosis | | `503 SERVICE_UNAVAILABLE`, `MEMORY_UNAVAILABLE` or `CONTEXT_UNAVAILABLE` | Check service availability; do not treat the error as a recommendation | | `504 TIMEOUT` | Retry with the same UUID to check the attempt's outcome | | `503 POLICY_INFERENCE_UNAVAILABLE` | Document generation is not configured; do not treat this as an empty result | | `502` or `504 POLICY_INFERENCE_FAILED` | Generation failed or timed out; preserve the document for review and retry deliberately. Nothing was saved by inference | Inference rejects malformed documents and caller-supplied bank/workspace selectors with `400 INVALID_REQUEST`; JSON parser overflow returns `413 PAYLOAD_TOO_LARGE`. Provider details and document contents are omitted from its error responses. A successful decision can return `memory.status: not_queued` with `BANK_QUEUE_FULL` when fewer than two queue slots are free. Otherwise its response keeps the compatibility value `memory.status: pending`, while the associated ingestions are already retained on commit. Check the returned ingestion IDs when memory status matters. Request IDs, key replacement and retries do not make your application's business effects idempotent. Implement that behavior at the effect itself. Read [Privacy & capture](/docs/privacy#tide-1-memory-and-replay) for the retained content and how to delete a memory entry. # Test your rules Source: https://docs.rippletide.com/docs/evaluate-improve Test matching and non-matching cases, inspect the applied outcome, and review replay limits. Test in your agent's normal runtime. Generated prompts and replay are evidence to review, not a substitute for checking the real protected action. ## Try a Rule 1. [Create the Rule](/docs/write-rules), finish any required setup and set its release to **Observe**. 2. Open its detail panel and select **Testing**. Review **Test prompts**, or select **Generate tests**. 3. Include cases that should match and cases that should not. For an Allow rule, a match means Allow, not Would block. 4. Run each prompt as a separate turn in a safe test environment. Observe permits the real action even when it would block. 5. Open the run in **Traces**. Inspect which Rule matched, the effective decision and the reported execution or delivery outcome. A non-match for this Rule does not guarantee an Allow decision: another active Rule may block. A match does not imply execution succeeded. Keep those expectations separate. For an MCP server, invoke guarded tools through the MCP client. For a response Rule, inspect the actual response sink. For a result Rule, check exactly which items are delivered and excluded. Codex can test only boundaries covered by its [hooks](/docs/connect-codex). ## Inspect decisions ```bash theme={"system"} rippletide rules decisions --agent --limit 20 rippletide events --agent --json rippletide rules result-decisions --agent --limit 20 rippletide rules result-decisions show --agent ``` Trace details expose only content that was actually retained; traces cannot reconstruct values withheld from the original capture. Decision-history views also limit sensitive fields. ## Use replay carefully Trace discovery and [source-update review](/docs/business-context) can compare proposed Rules with retained recorded inputs. Review the cases, supporting evidence, counterexamples and **inconclusive** outcomes. Replay is a counterfactual on a bounded cohort: it does not prove the historical action was blocked or predict how the agent would adapt to a different result. Missing capture/context, unsupported predicates, truncated evidence or evaluation failures can prevent a conclusion. Changing selections or required configuration may recalculate the preview. ## Verify Enforce After reviewing Observe evidence, an Admin can enable Enforce for the release. Repeat a blocking example and confirm the real callback was not invoked, the response was suppressed, or the expected result items were excluded. Check the matching receipt. Refine the Rule or integration when the observed behavior differs from the intended policy. # Fleet overview Source: https://docs.rippletide.com/docs/fleet Prioritize incomplete connections, risky action calls and repeated human interventions. The workspace's agents and integrations overview helps you decide which connection needs attention next. Check the selected workspace before interpreting its totals. | Measure | What it means | Useful next step | | - | - | - | | Human interventions | Traces involving a recorded human review or approval over the last 30 days | Inspect the recurring situations and their underlying traces | | Risky actions | Calls to actions classified as high risk over the last 30 days | Inspect the action, evidence and existing Rules | | Needs attention | Incomplete setup or missing active Rules | Finish runtime verification or review appropriate Rules | Pending risk analysis and unavailable activity are shown explicitly. They are not zero risk or zero activity. A high-risk label is classification guidance, not proof that a call was unauthorized or blocked. Select an agent to inspect **Context & actions**, **Business context**, **Rules**, and **Traces**. A declared inventory and a verified runtime are different states; use the connection's actual evidence requirements. Recorded human interventions and Rippletide Rule activations measure different things. A trace may contain both. Rule match totals also count individual matching decisions, not simply one count per trace. Use the fleet to choose a concrete case, inspect the exact evidence, propose a Rule, and verify it in Observe before enabling Enforce. For collaboration and access, see [Workspaces](/docs/workspaces). # Context & actions Source: https://docs.rippletide.com/docs/harness-management Understand the declared agent, inspect action risks, and choose where Rules would help. **Context & actions** shows the inventory your agent declared and the runtime evidence associated with its actions. It answers what the agent is configured to do; [Traces](/docs/runtime-events) show what it reported doing. ## Inspect the inventory | View | What to inspect | | - | - | | Actions | Declared tools and schemas, action risks, linked Rules and recorded activity | | Instructions | Declared prompts and configuration, subject to the integration's content-export settings | | Connections | Third-party services and credential names/status, never the secret values | | Mission, when available | A business workflow and declared capabilities for a recognized profile | Mission is available only for supported, recognized capability profiles. Other agents open their Actions view. MCP servers show the tools relevant to their narrower connection contract. ## Choose a useful action to control Start from actions associated with recorded human intervention or a meaningful risk. Inspect the tool schema and related traces, then propose or write a Rule for a specific decision. Risk classification is guidance: it never creates a Rule or enables enforcement automatically. Use **Traces** to inspect the actual case behind a counter. A recorded human review, a matching Rule and a blocked call are different events and should not be treated as interchangeable measures. ## Keep the declaration current Sync the inventory when the agent starts, or use the repository's existing `rippletide:sync` script through `rippletide connect`. Re-run after changing tools or trusted context. The inventory reflects the last successful declaration; it cannot discover undeclared code automatically. A changed contract disables active Rule releases that depend on it. Unrelated catalogue changes do not disable every release. Review and recompile affected Rules before reactivating them. ## Configuration versus proof Visible inventory proves declaration, not a successful live run. SDK agents also need heartbeat, expected tool usage, turn and response-delivery evidence. MCP and Codex have different acceptance contracts. Follow your [connection guide](/docs/quickstart) and inspect `rippletide events --wait` before calling the runtime verified. # Manual Python setup Source: https://docs.rippletide.com/docs/manual-python-setup Instrument Python model, tool, and response call sites yourself. Use this guide when you maintain the instrumentation yourself. First [install the Python SDK and create a connection](/docs/connect-python#install-and-connect). The generated setup prompt can adapt these same boundaries to your repository. This integration supports Python 3.10+ agents with synchronous and asyncio call sites, including provider streams. Python MCP servers are not supported. ## Instrument your existing request handler This fragment belongs inside your application. `SYSTEM_PROMPT`, `TOOLS`, `raw_model_call`, `run_existing_agent`, `trusted_context` and `send_to_caller` are your existing prompt, tool definitions, provider call, existing tool loop, authenticated context and response sink. Keep your real tool loop and add a guard at its dispatcher. ```python theme={"system"} from rippletide import Rippletide, load_rippletide_env load_rippletide_env("/absolute/path/to/your-agent/.env") rippletide = Rippletide(name="Support agent") rippletide.register_prompts({"system": {"fallback": SYSTEM_PROMPT}}) rippletide.tools("core", TOOLS) rippletide.connection("provider", env={"api_key": "PROVIDER_API_KEY"}) def handle_request(request, trusted_context): def dispatch_tool(tool_name, tool_args): return rippletide.guard_tool_call( toolset="core", tool=tool_name, params=tool_args, context=trusted_context, execute=lambda evaluated: tool_handlers[tool_name](evaluated), ) try: with rippletide.run(name="inbound_request", input=request): with rippletide.agent(name="orchestrator"): call_model = rippletide.traced( raw_model_call, name="provider.request", kind="model" ) candidate = run_existing_agent( request, call_model=call_model, dispatch_tool=dispatch_tool ) return rippletide.deliver_response( request=request, response=candidate, context=trusted_context, deliver=send_to_caller, ) finally: rippletide.flush() ``` At the real tool dispatcher, call `guard_tool_call()` with the declared toolset/tool, parameters, trusted context and execution callback. Use the repository-specific generated prompt to fit that wrapper to your application's dispatcher. A policy check only protects paths that honor its outcome. `load_rippletide_env()` does not override process environment variables. The SDK also accepts the app/manual `RIPPLETIDE_API_KEY` and `RIPPLETIDE_AGENT_ID` configuration. Never put a Platform key in the agent. ## Async and streaming `guard_tool_call()`, `guard_tool_result()` and `deliver_response()` accept `async def` callbacks. Await their returned result. Keep `run()`, `agent()` and `span()` as plain `with` blocks. Use `await rippletide.aflush()` before a short-lived invocation exits and `await rippletide.ashutdown()` when the client is no longer needed. Wrap the existing provider call with `traced()`. Await coroutine results; consume returned synchronous or asynchronous iterators normally. A directly returned iterator keeps its model span open until it is consumed or closed. For response enforcement, pass the complete candidate your agent has already assembled to `deliver_response()` before its existing sink delivers it. If the sink streams tokens to the caller as they arrive, pass the synchronous or asynchronous iterator of response-text strings as `response`. The SDK forwards the chunks to `deliver` and records the policy decision after delivery. A `BLOCK` recorded after delivery cannot suppress content already sent; the receipt remains `DELIVERED` and the trace marks the decision as after delivery. A successful verification proves recorded delivery; it does not prove that a streamed response could be blocked before reaching the caller. ## Capture and failure behavior Runtime content capture is disabled by default. Set `capture_content=True` on the `Rippletide` constructor only after the content owner approves exporting bounded input/output values. Prompt inventory is separate: text is withheld unless its owner explicitly enables `allow_content_export=True` on `register_prompts()`. See [Privacy & capture](/docs/privacy). For tool guards and complete-response delivery, an enforced `BLOCK` raises `RippletidePolicyBlockedError` before the callback. Observe-only `WOULD_BLOCK` permits it. Network errors, 5xx, rate limits and malformed/interrupted HTTP responses fail open. Deterministic 400/401/403/404 decision errors raise `RippletidePolicyDecisionError`; do not treat them as telemetry outages. For a declared result collection, `guard_tool_result()` requires explicit `allow_result_export=True`. The complete result is sent for transient evaluation, and your `apply` callback preserves the original response shape while delivering only the allowed items. See [Result filtering](/docs/result-filtering) for the contract and fallback behavior. ## Verify a real run Run a turn that uses a guarded tool and delivers a response. Check `rippletide verify`, then `rippletide events --wait`. The app must show the inventory, heartbeat, tool and turn evidence, and the response-delivery outcome in **Traces**. Recording only a model candidate does not prove delivery. # Manual TypeScript setup Source: https://docs.rippletide.com/docs/manual-setup Declare the real inventory and protect tool execution and response delivery inside a causal run. Use this guide when you maintain the instrumentation yourself. The [generated setup prompt](/docs/connect-agent) fits the same boundaries to your repository. For Python use [Manual Python setup](/docs/manual-python-setup). The examples below are integration fragments: retain your application's existing request handler, model/tool loop, tool definitions, authenticated context and response sink. Do not replace a working agent with an example loop. ## 1. Install and load the connection ```bash theme={"system"} npm install rippletide-package ``` Use the git-ignored `.env` from your connection path. A CLI connection contains `RIPPLETIDE=rippletide://…`. The app/manual path supplies `RIPPLETIDE_AGENT_ID` and `RIPPLETIDE_API_KEY`. ```ts theme={"system"} import Rippletide, { loadRippletideEnv } from "rippletide-package"; loadRippletideEnv("/absolute/path/to/your-agent/.env"); const rippletide = new Rippletide({ name: "Support agent", captureContent: false, contextSchema: { type: "object", properties: { role: { type: "string" }, }, }, }); ``` This example leaves runtime content capture disabled, which is also the default. Enable `captureContent: true` only after the content owner approves exporting bounded input/output values. See [Privacy & capture](/docs/privacy). A client with no Connection key runs disabled; instrumented code alone is not proof of governance. ## 2. Declare inventory At startup, register your existing system prompt, provider-compatible tool definitions and connection secret names: ```ts theme={"system"} await rippletide.prompt("system", { fallback: systemPrompt }); await rippletide.tools("core", tools); await rippletide.connection("provider", { env: { api_key: "PROVIDER_API_KEY" }, }); ``` `systemPrompt` and `tools` come from your application. Use the actual provider and environment variable names. Connection registration sends credential names/status, not their secret values. Inspect the inventory in **Context & actions**. For an MCP server, declare tools only and use the guarded dispatcher below; do not create a model loop or response-delivery event for the server. ## 3. Guard the actual tool dispatcher ```ts theme={"system"} async function dispatchTool(toolName, toolArgs, authenticatedUser) { return rippletide.guardToolCall( { toolset: "core", tool: toolName, params: toolArgs, getTrustedUserContext: () => ({ role: authenticatedUser.role }), }, (evaluatedParams) => toolHandlers[toolName](evaluatedParams), ); } ``` Wire the existing tool loop to this dispatcher. `toolHandlers` is your actual handler registry. Resolve trusted identity from your authenticated application, never from model-generated tool arguments. Match its shape to the declared `contextSchema`. `guardToolCall()` remains supported. The equivalent general API is `guard({ trigger: "before_action", action: "core/tool_name", ... }, execute)`. An enforced blocking decision raises `RippletidePolicyBlockedError` before the callback. Do not catch that error and execute the tool anyway. For MCP, convert it into an `isError: true` tool result without crashing the server. ## 4. Trace the run through final delivery Wrap the existing model client with `wrapOpenAI()` when using OpenAI, or trace the actual provider call with `traced()`. The following example assumes `runExistingAgent` keeps your real tool loop and uses the guarded dispatcher above: ```ts theme={"system"} const observedModelCall = rippletide.traced(rawModelCall, { name: "provider.request", type: "llm", }); async function handleRequest(request, authenticatedUser) { try { return await rippletide.run( { name: "support_request", input: request }, async () => { const candidate = await rippletide.agent( { name: "orchestrator" }, () => runExistingAgent(request, { callModel: observedModelCall, dispatchTool: (name, args) => dispatchTool(name, args, authenticatedUser), }), ); return rippletide.deliverResponse( { request, response: candidate, getTrustedUserContext: () => ({ role: authenticatedUser.role }), }, (evaluatedResponse) => sendToUser(evaluatedResponse), ); }, ); } finally { await rippletide.flush(); } } ``` `rawModelCall`, `runExistingAgent` and `sendToUser` stand for your existing functions. The delivery callback must be the real caller-facing sink. Keep the run open until it completes. A model's returned text is only a candidate, not evidence it reached the user. Let a blocking delivery error leave the run before an outer application handler turns it into a safe error response. Do not send the blocked candidate from an error handler. Always flush before a short-lived worker or script exits; long-running services should also flush on shutdown. For real delegated agents, add `agent()` spans without changing concurrency. The SDK propagates causal context and supports explicit dependency links. Use `traceHeaders()` only when forwarding context to another instrumented process belonging to the same connected agent; an incoming W3C `traceparent` can be passed to `run()`. ## 5. Verify and extend Run a real tool-using request that delivers a response, then check `rippletide verify` and `rippletide events --wait`. Inspect the run and delivery outcome in **Traces**. If `before_response` remains missing, check causal placement and the actual sink. For completed collections, use [Result filtering](/docs/result-filtering). For an out-of-process executor, use `authorize()` followed by `recordOutcome()` when the real result arrives, rather than an empty guard callback that would falsely report execution. Keep the returned authorization inside your trusted application; it is plain JSON, not a signed capability. # Observe & enforce Source: https://docs.rippletide.com/docs/observe-and-enforce Understand Rule modes, Allow/Block decisions, and the evidence of an applied outcome. Every Rule release has a mode: **Disabled**, **Observe**, or **Enforce**. There is no target-wide mode switch. Mode and effect are different: an Allow rule can match without asking for a block. [Tide-1 Policies](/docs/decision-api#add-a-policy) guide the model's comparison of supplied choices. Keeping a Policy Active includes it in future recommendations; it does not enable Rule enforcement at an action or delivery boundary. ## Modes | Mode | Behavior | | - | - | | Disabled | The release does not participate in runtime evaluation | | Observe | Matches are recorded; a blocking match alone returns Would block and lets the protected callback run | | Enforce | A blocking match prevents the protected callback; an Allow match does not block it | Basic manual/CLI creation starts Disabled. Discovery may explicitly create in Observe. Web trace proposals use Observe, and source-update replacements return to Observe. Check the mode shown before saving or applying a review. ## Allow and Block Before-action rules can express **ALLOW** or **BLOCK**. The Rules' conclusion and the runtime's effective disposition are separate: | Rules' conclusion | Effective disposition | | - | - | | An Allow rule matches, with no blocking match or evaluation error | `ALLOW`: the action can proceed | | No Rule matches, with no evaluation error | `UNDETERMINED` with reason `NO_MATCH`; disposition `ALLOW` lets the action proceed | | Blocking matches are all Observe-only | `WOULD_BLOCK`: record the matches and let the action proceed | | A blocking match is Enforce | `BLOCK`: prevent the protected handler | Only an enforced Block prevents execution. `UNDETERMINED` is not an enforced deny. Before-action Rules do not change a separate action-wide decision mode. An Allow match does not override an enforced Block from another applicable Rule. When only Observe releases block, the effective disposition is **Would block**; if an Enforce release blocks, it is **Block**. Test the combined active set as well as the Rule you are reviewing. Allow rules apply before actions, not as an Allow authoring option for response or result rules. Disabling or archiving an Allow release removes it from evaluation; it does not switch the action into another mode. ## Decisions need an enforcement boundary The policy API returns a decision. Your SDK callback or direct integration must honor it before the effect. A guard on one path cannot protect another path that bypasses it. | Boundary | Blocking behavior | Reported outcome | | - | - | - | | Before action | Do not invoke the protected handler | Executed or Prevented | | Before response | Do not deliver the candidate | Delivered or Suppressed | | After action | Exclude only enforced-blocked collection items | Result delivered or Result filtered | An Executed receipt means the handler was invoked, not necessarily that it succeeded. No receipt means the applied outcome is unconfirmed. [Traces](/docs/runtime-events) combine policy evidence with actual runtime reports. ## When the contract changes Only releases whose contract dependencies changed are disabled. Unrelated action catalogue changes do not disable every release. Review affected Rules, recompile and explicitly choose a mode again. Restoring an archived Rule family also leaves it Disabled. ## Failure behavior Evidence upload is best effort and must not fail the host agent. SDK policy guards permit execution on availability failures such as network errors, timeouts, 5xx or rate limits. They do not silently ignore deterministic authentication or malformed-request failures. A valid enforced Block is honored. A client with no Connection key is disabled and executes unguarded. Some additive endpoints have compatibility fallbacks on older servers; see [Result filtering](/docs/result-filtering), [Python](/docs/connect-python), and [Codex](/docs/connect-codex) for their exact boundaries. Verify the integration you use rather than assuming every runtime has the same failure semantics. ## Promote with evidence Use a safe test environment, check matching and non-matching examples, then let an Admin enable Enforce for that release. Repeat a blocked example and verify the protected callback did not run. A Rule's mode alone does not prove that its enforcement boundary is installed. # Policy API Source: https://docs.rippletide.com/docs/policy-api Call scoped decision endpoints and report what your application actually applied. Use the runtime policy API when your application implements its own enforcement boundary. The [SDK](/docs/manual-setup) handles guards, correlation and receipts for supported runtimes. Calling the API alone does not execute, stop or deliver anything. For recommendations among explicit choices using shared memory and policies, use [Tide-1](/docs/decision-api) instead. Its bank-scoped Bearer key and question/choices contract differ from the target-scoped runtime requests below. ## Authentication and target setup Runtime requests use `x-api-key` with a **Connection key** bound to one agent or API integration. The key selects the target; the body cannot switch it. Management requests use a workspace-authorized **Platform key**, which must never be installed in an agent. Use the API base URL supplied by your connection. A `RIPPLETIDE` connection string contains its API host. With raw HTTP, set the base URL and Connection key explicitly; keep production and staging aligned. The examples below assume `RIPPLETIDE_BASE_URL` and `RIPPLETIDE_API_KEY` are already set securely. For an agent, Connect and inventory sync create its policy target. For a direct API integration, use the management API or CLI to declare the full catalogue first: ```bash theme={"system"} rippletide rules create-target --name "Calendar integration" --catalog catalog.json ``` `catalog.json` contains the catalogue, for example: ```json theme={"system"} { "formatVersion": 1, "actions": [{ "key": "calendar/create_event", "name": "create_event", "paramsSchema": { "type": "object", "properties": { "title": { "type": "string" } }, "required": ["title"], "additionalProperties": false } }] } ``` The management routes are: | Method and path | Purpose | | - | - | | `POST /api/policy-targets` | Create an integration with `kind`, `name` and `actionCatalog` | | `GET /api/policy-targets` | List authorized targets | | `GET /api/policy-targets/:targetId` | Inspect catalogue and risk assessment | | `PUT /api/policy-targets/:targetId/catalog` | Replace the complete catalogue using `actionCatalog` | | `POST /api/policy-targets/:targetId/runtime-key` | Create a Connection key for an API-owned integration | For runtime-key creation send a name and optional `expiresInDays`; the secret is returned once in `runtimeKey.apiKey`. Keep its `apiKeyId` for revocation through `DELETE /api/api-keys/:apiKeyId`. Agent-owned targets use their Connect credentials instead. Direct-integration replacement keys overlap until explicitly revoked. ## Before an action Call immediately before the protected effect. The action and inputs must match the target's declared catalogue; context facts come from your trusted application. ```bash theme={"system"} curl "$RIPPLETIDE_BASE_URL/v1/policy/decide" \ -H "content-type: application/json" \ -H "x-api-key: $RIPPLETIDE_API_KEY" \ -d '{ "invocationId": "calendar-job-42-attempt-1", "action": "calendar/create_event", "params": {"title": "Quarterly review"}, "context": {} }' ``` The response includes `decisionId`, `invocationId`, the immutable Rule snapshot and effective `disposition`: * `ALLOW`: the effect may run. * `WOULD_BLOCK`: blocking matches were Observe-only; allow the effect and retain the evidence. * `BLOCK`: an enforced release blocked; do not invoke the effect. Native Rule outcomes may include Undetermined. Apply the effective disposition instead of treating every match as a block or treating an Allow match as overriding another Rule's Block. ## Before a response `POST /v1/policy/decide-response` accepts: ```json theme={"system"} { "invocationId": "support-turn-42-response-1", "request": {"message": "Show my account"}, "response": "The candidate response", "context": {} } ``` It returns the same action/response dispositions. On `BLOCK`, suppress the candidate before the actual delivery callback. Do not invent a tool action for this response boundary. ## After an action result `POST /v1/policy/decide-result` accepts `invocationId`, `action`, `params`, the complete `result`, and trusted `context`. The action must declare the collection as described in [Result filtering](/docs/result-filtering). The returned plan identifies items by ordered index, unique ID and fingerprint. Its aggregate disposition is `ALLOW`, `WOULD_FILTER` or `FILTER`. Preserve order; exclude only enforced-blocked items. Validate the complete plan against the evaluated result before delivery. Never apply a plan to a modified result. The capability endpoint `GET /v1/policy/capabilities` identifies supported contracts, including `beforeResponse` and `afterActionResults`. Do not assume an older server exposes every additive endpoint. ## Report the actual outcome After applying a decision, call `POST /v1/policy/decisions/:decisionId/receipt` with the same target's Connection key: ```json theme={"system"} { "outcome": "EXECUTED", "occurredAt": "2026-09-24T10:00:00Z" } ``` Use the actual occurrence time. For actions, `EXECUTED` means the handler was invoked, even if it failed; `PREVENTED` means it was not invoked. For responses use `DELIVERED` or `SUPPRESSED`. For result plans, report `RESULT_DELIVERED` or `RESULT_FILTERED`, the returned `resultPlanFingerprint`, and the exact ascending `deliveredItemIndexes` / `excludedItemIndexes` covering the entire plan. No raw item bodies are needed in the receipt. Authorization without a completion report remains unconfirmed. Do not submit an Executed receipt merely because you received Allow. ## Retries, failures and limits * Use a new invocation ID for every real attempt and a distinct ID for its result or response boundary. An identical retry replays the original decision. Reusing the ID with different input returns `409 INVOCATION_CONFLICT`. * Replaying a decision does not make your business side effect idempotent. Implement that separately. * Receipt retries must be identical. Contradictory reports return `409 RECEIPT_CONFLICT`; a result partition inconsistent with its plan is rejected. * Missing authentication, wrong target credentials and invalid schemas are errors, not Allow decisions. Handle transport/server failures deliberately; do not invent a successful policy result. * Runtime bodies are limited to 256 KB, with bounded catalogue, rule and result-item budgets. Unsupported schema keywords or excessive evaluation budgets are rejected rather than silently evaluated partially. Read [Privacy & capture](/docs/privacy) before choosing policy inputs. Management history endpoints under `/api/policy-targets/:targetId/decisions` and `/result-decisions` expose decisions and reported outcomes, with separate detail routes ending in `/:decisionId`. They deliberately exclude raw sensitive policy payloads. Use the [CLI reference](/docs/cli) for Rules and history operations. # Privacy & capture Source: https://docs.rippletide.com/docs/privacy Choose what runtime content to export and distinguish traces, inventory and decision audit data. Trace capture, inventory declaration and policy evaluation are separate data paths. Reducing trace capture does not prevent a policy check from receiving the values it must evaluate. ## Defaults by integration | Integration | Default trace behavior | Content controls | | - | - | - | | TypeScript SDK, including instrumented JS/TS MCP | Operational metadata; input/output content withheld | `captureContent: true` on the client, after owner consent | | Python SDK | Operational metadata; input/output content withheld | `capture_content=True` on the client, after owner consent; prompt inventory needs separate `allow_content_export=True` | | Codex live hooks | Activity storage off until selected; content withheld when enabled | Setup `--traces`/`--no-traces`; content opt-in via `RIPPLETIDE_CAPTURE_CONTENT=true` in `~/.rippletide/codex.env` | | Codex history import | Explicit import; content withheld by default | `backfill --capture-content`, or the adapter content setting | Review the content setting before running an integration on customer data. SDK content capture is off by default; inventory and policy inputs have separate data boundaries. ## SDK content capture Both SDKs export allowlisted operational metadata by default. Inputs, outputs, arbitrary application attributes and exception messages/stacks are withheld until content capture is enabled. ```ts theme={"system"} const rippletide = new Rippletide({ captureContent: false }); ``` ```python theme={"system"} rippletide = Rippletide(capture_content=False) ``` Set the option to `true` in TypeScript or `True` in Python only after explicit owner consent. Captured values are bounded, with credential-shaped keys and inline authorization values redacted. This is not a general PII filter. Operation names and correlation identifiers must not contain user content. The old `captureMode` option and `RIPPLETIDE_CAPTURE_MODE` variable are no longer supported. They do not override content capture or grant consent; remove them from code and deployment settings. Metadata can still be sensitive. Identifiers, tool names and model names may identify a person or system. Redaction is not a guarantee that all personal or business-sensitive data has been removed. ## Inventory and prompts Third-party connection declarations send credential names and status, not secret values. Prompt/instruction inventory is distinct from trace payload capture: a TypeScript prompt declaration can send its fallback text even when runtime content capture is disabled. Review what you register. Python withholds prompt text by default. Enable `allow_content_export=True` only when the prompt owner has approved storing it. Do not put secrets in prompt text or schema descriptions. ## Policy decision data Before-action parameters and trusted context are sent to Rippletide and stored in the decision audit trail. Before-response checks evaluate the candidate response and request. These policy inputs do not inherit trace content-capture settings. Keep their scope limited to facts needed by the policy. Codex Stop sends the complete last assistant message for response evaluation and stores it in the decision audit trail even when activity storage or content capture is off. It sends `request: null`; the original user request is unavailable. Trace capture settings do not redact these policy inputs. Result filtering sends the full declared result for transient validation and evaluation. Raw collection/item bodies are not persisted in the result decision; item IDs, fingerprints, decisions, reasons and plan metadata are retained. Python requires explicit `allow_result_export=True`. Runtime traces can separately capture result content when content capture is enabled. Rules using a model predicate can send the selected field and instruction to the configured model evaluator. Trace discovery analyses captured values, and document discovery/labeling analyses imported text. Only select sources and fields approved for that processing. A trace without captured content cannot later be replayed as if its raw arguments had been retained. ## Tide-1 memory and replay [Tide-1](/docs/decision-api) sends the question, context, supplied choices, selected retained facts and the exact text of active policies to its decision model. A successful new decision automatically retains the original question/context/choices and generated result as two memories in its bank when queue capacity permits. They are committed with decision completion; a decision recorded as failed creates no automatic memories. A timeout response alone does not prove that completion or memory retention failed. Direct memory additions and sourced feedback corrections are stored and indexed as text excerpts in Postgres in the same transaction as their ingestion journal. They are searchable when the request returns. Exact policy text and every revision are also retained. Generated results and attributed corrections are not automatically verified truth; memories do not change policies. [Document Policy inference](/docs/decision-api#infer-policies-from-a-document) sends the supplied document text to the generation model and returns instructions with exact source excerpts. It does not add the document or proposals to Policy or Memory storage. Review them before explicitly saving; saved Policy text, revisions and authorship are retained. Source excerpts remain in the browser's review session or your API response files. Submit only documents approved for that model processing. SDK trace options such as `captureContent` and `capture_content` do not control Tide-1 memory. This content does not receive a general redaction pass. Submit only information approved for model processing and retention. The metadata-only decision journal and optional replay cache are separate from retained memory. Explicit replay consent enables an encrypted response-only cache for 24 hours; responses can include the fact excerpts presented to the model. Cache expiry does not expire memory or policy revisions, and database backups can outlive cache expiry. In the app's **Memory** tab, Editors and Admins can select **Delete from memory** on an entry. This removes its text from the bank and from future retrieval; for an earlier decision it removes both the question and the result. Policy revisions are kept, and database backups can outlive the deletion. There is no bulk purge. Confirm your database and backup retention requirements before processing client data. Disabling a bank or revoking/replacing its [Connection key](/docs/api-keys) does not erase retained memory or policies. ## Codex history and local state Codex stores activity only when selected with `--traces`. Input/output content is withheld by default. To include bounded tool inputs/results and final response content, set the following in `~/.rippletide/codex.env` after owner consent: ```bash theme={"system"} RIPPLETIDE_CAPTURE_CONTENT=true ``` Setup preserves this setting but does not enable it. Repository and shell `RIPPLETIDE_*` settings do not configure the adapter. Set the adapter value to `false` to withhold content on subsequent runs and history imports. Backfill reads local Codex rollouts only when explicitly requested, or when you opt into history import during setup. Use `--dry-run --stats` first. Content is withheld unless `--capture-content` is supplied or the adapter setting is exactly `true`. That opt-in can export bounded prompts, patches, command lines and output; the history does not receive retroactive policy decisions. Removing local instrumentation or hooks does not erase previously stored server evidence. Keep Connection keys and local credential files private; use [API keys](/docs/api-keys) for rotation and revocation. # Quickstart Source: https://docs.rippletide.com/docs/quickstart Connect an agent, verify a tool-using run and response delivery, then observe your first Rule. This path connects an existing JavaScript or TypeScript agent on Node.js 18.19+ on the 18.x line, or 20.6+. For another runtime, use [Python](/docs/connect-python), [MCP](/docs/connect-mcp-server), or [Codex](/docs/connect-codex). ## 1. Install and sign in From the repository containing your agent: ```bash theme={"system"} npm install -g rippletide-package rippletide login rippletide connect --kind agent ``` A Workspace Admin authorizes the CLI in the browser. `connect` creates or links the agent, writes its connection string to the repository's git-ignored `.env`, and gives you a setup prompt. Check that you are in the intended workspace with `rippletide workspaces current`. ## 2. Apply the generated prompt Paste the prompt into the coding agent you use for that repository. It adds the SDK at your existing model, tool, and response-delivery boundaries. The CLI does not launch the coding agent or start your application. For a session without an interactive terminal, sign in first and request the prompt explicitly: ```bash theme={"system"} npx -p rippletide-package rippletide connect --kind agent --print-prompt ``` Keep `--kind agent` on the first connection: the CLI does not guess whether the repository contains an agent or an MCP server. The prompt contains no Connection key. Keep the generated `.env` git-ignored. ## 3. Run a real turn Start the application normally, with its own provider and tool credentials. Send a request that uses a tool and delivers a response to its normal recipient. Runtime traces export operational metadata by default and withhold input/output content. Before using customer data, review [Privacy & capture](/docs/privacy). Enable `captureContent: true` only after the content owner approves exporting bounded values. ## 4. Verify the complete connection ```bash theme={"system"} rippletide verify rippletide events --wait ``` `verify` checks local configuration and declared inventory. `events --wait` checks the server's evidence contract. For an SDK agent this includes inventory, heartbeat, a tool call when required, a turn, and a proven **before-response delivery boundary**. In the app, inspect **Context & actions** for instructions, actions, and connections. Open **Traces** for the run, tool calls, policy decisions, and delivery outcome. A model response is a candidate until the delivery callback runs. If `before_response` is missing, check that `deliverResponse()` stays inside the causal `run()` and wraps the actual delivery callback. See [Manual TypeScript setup](/docs/manual-setup). ## 5. Observe your first Rule 1. Open **Rules** and describe a restriction on the tool you just used. 2. Review its action scope and setup, then save and set its release to **Observe**. 3. Repeat the tool-using request in a safe test environment. 4. Inspect the recorded match and **Would block** disposition. The action still runs in Observe. 5. Follow [Test your rules](/docs/evaluate-improve) before an Admin enables **Enforce**. ## If evidence is missing Run `rippletide doctor`. Check the repository binding, `.env` location, current workspace, and whether the instrumented process is running. Provider credentials are still your application's responsibility. Share diagnostic messages with your Rippletide contact, never the key or the `.env` itself. # Filter tool results Source: https://docs.rippletide.com/docs/result-filtering Apply Rules to each item in a declared collection before delivering the tool result. An after-action Rule filters one ordered collection returned by a tool. The tool has already run: filtering prevents delivery of selected items, not the original action or its side effects. Use this for a homogeneous collection such as products or records, where each item has a unique string ID. The catalogue must declare the full `resultSchema` and a `resultCollection` identifying the array and its item IDs. This is a single-result operation, not streaming filtering. ## Declare the collection The following extends your existing provider tool definitions with a result contract: ```ts theme={null} await rippletide.tools("catalog", tools, { results: { list_products: { resultSchema: { type: "object", properties: { products: { type: "array", items: { type: "object", properties: { id: { type: "string" }, eligible: { type: "boolean" }, }, required: ["id", "eligible"], additionalProperties: false, }, }, }, required: ["products"], additionalProperties: false, }, resultCollection: { itemsPath: ["products"], itemIdPath: ["id"] }, }, }, }); ``` `tools` must include the actual `list_products` tool and its input schema. Match the result schema to the complete real provider response rather than removing fields to fit this example. ## Apply the plan at the delivery boundary This fragment belongs inside the existing tool handler: ```ts theme={null} const result = await listProducts(params); return rippletide.guard( { trigger: "after_action", action: "catalog/list_products", params, result, resultItems: result.products, getTrustedUserContext: () => trustedContext, }, ({ result: evaluatedResult, deliveredItems }) => ({ ...evaluatedResult, products: deliveredItems, }), ); ``` Use the callback's evaluated snapshot and preserve the native response shape. `trustedContext` comes from authenticated application state and must match the declared context schema. For Python, use `guard_tool_result(..., allow_result_export=True, apply=...)` after declaring the same contract with `tools(..., results=...)`. The default is no result export; this opt-in needs the owner's approval and is not silently added by the setup prompt. ## Read the decision and receipt | Aggregate disposition | What to deliver | | - | - | | `ALLOW` | All items | | `WOULD_FILTER` | All items; some would be excluded if the blocking Rules were enforced | | `FILTER` | Preserve order and exclude exactly the items with enforced `BLOCK` dispositions | Each item has its own decision. The SDK validates result/item/plan fingerprints before applying it and reports **Result delivered** or **Result filtered**. Direct API callers must apply and report the exact index partition themselves. Transient policy failures or malformed/mismatched plans fall back to the original items in the SDK. An older server missing the result endpoint also falls back; deterministic request or permission errors still surface. Test both normal filtering and the integration's fallback path before relying on it. ```bash theme={null} rippletide rules create --after-action catalog/list_products \ --input "Exclude products whose eligible field is false." rippletide rules result-decisions --agent --limit 20 rippletide rules result-decisions show --agent ``` See [Policy API](/docs/policy-api) for direct callers and [Privacy & capture](/docs/privacy) for the difference between transient result evaluation and stored trace content. Codex's post-tool hook is too late to enforce this delivery callback. # Traces Source: https://docs.rippletide.com/docs/runtime-events Read runs, tool calls, policy decisions and reported outcomes without overstating the evidence. **Traces** presents recorded runs and their outcomes. It contains what the integration actually reported, with the content allowed by its [capture setting](/docs/privacy). ## Find a run or situation The Traces list is the default. Use filters to inspect human interventions, matching Rules, or a particular action. **Situations** groups related recorded cases to help identify repeated work that could benefit from a Rule. Counts in a loaded list describe the loaded traces; older traces may be available. Human interventions include recorded reviews and approvals. Rippletide activations include matching Rules in Observe or Enforce. The same trace can appear in both categories. ## Inspect the details Open a trace in the detail panel: * **Flow** presents recorded business steps and their outcomes. * **Technical** presents the technical span structure: runs, agents, model calls, tools, policy checks and response delivery when reported. * Correlation links connect a protected invocation to its decision and actual reported outcome. Technical is a view, not a guarantee that raw content was captured. A trace cannot recover content that was withheld. A missing span or receipt is unavailable evidence, not a successful action. ## Read outcomes precisely | Evidence | Meaning | | - | - | | Heartbeat | A connected process reported being alive | | Inventory/manifest | The integration declared configuration | | Run/turn | A request or conversation turn was recorded | | Tool call | A tool attempt and any captured result/error | | Policy decision | The Rules' decision at the protected boundary | | Executed / Prevented | The handler was invoked / was not invoked | | Delivered / Suppressed | The candidate response was delivered / withheld | | Result delivered / Result filtered | The caller reports applying the collection plan | | Unconfirmed / unknown | The actual outcome has not been proven by a report | An executed handler can still fail. A model candidate is not a delivered response. Authorization without a completion event is not proof of execution. ## Connection evidence differs by integration | Integration | Runtime proof | | - | - | | TypeScript or Python SDK agent | Current inventory, heartbeat, expected tool call, turn and before-response evidence | | JavaScript/TypeScript MCP server | Inventory, heartbeat and tool call; no turn or response boundary | | Codex hooks | Inventory, heartbeat, covered tool call and turn when activity is enabled; Stop response review is separate from the required connection-proof contract | Codex Stop can request a revised response, but does not report a delivery or suppression receipt. Codex with activity disabled can still produce policy decisions while its activity-based status remains declared. Imported Codex history is backdated evidence, not proof that those turns were governed. ## Inspect from the CLI ```bash theme={"system"} rippletide events --agent --limit 20 rippletide events --agent --json rippletide events --agent --cursor --json ``` `events --wait` checks live readiness and cannot be combined with a trace ID or cursor. Use [Rule testing](/docs/evaluate-improve) and [Business context](/docs/business-context) to turn inspected evidence into a reviewed policy change. # Workspaces Source: https://docs.rippletide.com/docs/workspaces Share agents, rules, and evidence with your team. A workspace brings your team's agents, rules, documents, and activity together. Membership covers every agent in the workspace; each person's role determines what they can change. ## Choose your workspace Your first workspace is created automatically when you sign in. Use the workspace name in the sidebar to switch between workspaces you belong to. Check the selected workspace before connecting an agent or adding documents. An Admin can rename it under **Settings → Workspace**. ## Invite a teammate 1. As an Admin, open **Settings → Workspace** and choose **Invite member**. 2. Enter your teammate's email, choose a role, and create the invitation. 3. Copy the invitation link before closing the dialog, then share it directly with your teammate. The link is shown once and expires after seven days. 4. Your teammate opens the link, signs in with the account that should receive access, and selects **Accept invitation**, then **Open workspace**. ## Choose a role | Role | What they can do | | - | - | | Viewer | View agents, rules, business context, and activity. | | Editor | Viewer access, plus updates to agents, rules, and business context. | | Admin | Editor access, plus member management, workspace settings, API keys, and enabling Enforce. | Admins can change roles, remove members, or revoke pending invitations under **Settings → Workspace**. The workspace creator must remain an Admin. ## Workspaces in the CLI A Workspace Admin authorizes the CLI. Its selected workspace is independent of the workspace open in the browser. ```bash theme={null} rippletide workspaces current rippletide workspaces list rippletide workspaces use ``` `use` opens browser approval and preserves the current login until the replacement is approved and saved. Pass a workspace ID to select it explicitly. Management keys are workspace-scoped. Admins can use `members`, `invite`, `set-role`, `remove-member`, `invitations`, `revoke-invitation` and `rename`. `workspaces accept ""` verifies the recipient in the browser; then authorize CLI access with `workspaces use` if appropriate. Invitations create a link to share; they do not send an email. See the [CLI reference](/docs/cli#workspaces) for arguments and confirmation flags. ## Next step Add [business context](/docs/business-context) to turn your team's policies into rule suggestions. # Write rules Source: https://docs.rippletide.com/docs/write-rules Choose a boundary and scope, review required setup, and create a versioned Rule. A Rule expresses business policy against a declared action, result collection or candidate response. Write it in plain English, review the compiled behavior and required facts, then choose when it should observe or enforce. ## Choose the protected boundary | Boundary | Scope | Example | | - | - | - | | Before action | One action, selected actions, or all actions | Block refunds above an approved limit | | Before response | The connected target's candidate response | Suppress a response containing credentials | | After action | One action's declared result collection | Exclude products not available in the customer's country | After-action rules require `resultSchema` and `resultCollection` on that action. They filter returned items; they do not undo the tool call. Before-response rules require a real delivery guard. [Codex hooks](/docs/connect-codex) do not provide that boundary. ## Create and review 1. Open **Rules** for the agent or integration and start rule creation. 2. Choose the trigger and scope. For a before-action Rule, choose **Allow** or **Block**. 3. Describe the policy and answer any clarification questions. 4. Review the generated wording, action scope, required context and readiness. 5. Save the Rule, then [test in Observe](/docs/evaluate-improve) before enabling Enforce. For example: “Block calendar invitations to external attendees unless the authenticated user is an admin.” The identity fact must come from your application, not the model's claim that a user is an admin. ## When setup is missing A policy needing undeclared trusted facts can become a **Draft** in the Active list. Open **Review setup** and **Setup details** to see the required schema and agent instructions. Update the integration and sync its inventory, then finish the draft and use **Save as disabled**. A draft is not an active release and does not govern traffic. Saved draft wording and scope may be read-only during setup; archive and create a new draft when those need to change. Use the Rule detail panel for configuration, code, testing and version history. ## Releases and activation Releases are immutable. Editing a Rule produces a new release and preserves history. Basic manual/CLI creation starts Disabled. Discovery can explicitly create in Observe; Trace proposals in the web use Observe, and replacing a Rule through source-update review returns it to Observe. Review the mode shown before applying a batch. Each release records the contract dependencies it was compiled against. A changed dependency disables the affected release; an unrelated catalogue edit does not disable every Rule. Review, recompile and deliberately reactivate affected releases. An Admin enables Enforce. See [Observe & enforce](/docs/observe-and-enforce) for Allow/Block behavior and failure handling. ## Propose from evidence Use **Propose a Rule** in [Business context](/docs/business-context) to select documents, captured activity, or both. Review supporting passages, recorded cases, counterexamples and any configuration still required. Combining sources does not itself prove they corroborate each other. The action catalogue can also support suggestions. Risk classification and proposed Rules are guidance; neither enables enforcement automatically. ## Archive or restore Archiving a Rule family disables and hides all its releases from the active set. Restoring the family leaves its releases Disabled. Review and explicitly re-enable the desired release. For action and response Rules, match counters count decisions where that release actually matched, not every evaluation or entire trace. Result Rules have related-result counts and should not be interpreted as the same per-Rule attribution. ## CLI examples From a connected repository: ```bash theme={"system"} rippletide rules create --actions calendar/create_event \ --input "Block external invitations unless the authenticated user is an admin." rippletide rules create --all-actions --effect ALLOW \ --input "Allow actions approved by the authenticated administrator." rippletide rules create --before-response \ --input "Suppress responses containing credentials." rippletide rules set-mode --release --mode observe ``` If compilation asks a question, repeat the original input and effect and add `--context "your answer"`. See the [CLI reference](/docs/cli) for discovery, saving proposals and lifecycle commands. # What is Rippletide? Source: https://docs.rippletide.com/index Connect an existing agent, understand its actions, and apply rules with runtime evidence. Rippletide connects to agents you already run. It shows their declared instructions and tools, records runtime evidence, and evaluates business rules at the boundaries where actions or responses happen. Start by observing. Review which rules match real activity, then deliberately enable enforcement for the releases you trust. Your agent keeps its existing model provider, application lifecycle, credentials, and infrastructure. > [card] [Tide-1](/docs/decision-api) > > The decision API for agents. Send a question and your choices, get a recommendation with a score for each choice and the facts it was shown. Make your first call in a few minutes. No agent connection needed. > [card] [Quickstart](/docs/quickstart) > > Connect a JavaScript or TypeScript agent, verify a real run, and observe your first Rule. ## Choose your connection | What you run | Start here | Supported boundary | | - | - | - | | JavaScript or TypeScript agent, Node.js 18.19+ on the 18.x line, or 20.6+ | [Connect an agent](/docs/connect-agent) | Guarded actions, declared result collections, and response delivery | | Python agent, Python 3.10+ | [Connect Python](/docs/connect-python) | Synchronous and asyncio actions, declared result collections, and response delivery; directly delivered streams are observed after delivery | | JavaScript or TypeScript MCP server | [Connect an MCP server](/docs/connect-mcp-server) | The server's guarded tool dispatcher | | OpenAI Codex with supported local hooks | [Connect Codex](/docs/connect-codex) | Covered tool calls and Stop response review; see the guide for delivery-proof limits | | An application that calls policy APIs directly | [Policy API](/docs/policy-api) | The enforcement boundary your application implements | | An application that chooses between explicit options using shared memory and policies | [Tide-1](/docs/decision-api) | A recommendation your application decides how to apply | Using a coding agent to instrument your application and connecting Codex itself are different paths. Choose the application guide for the former and the Codex guide for the latter. ## From evidence to enforcement **1. Connect and prove a real run** Inspect **Context & actions**, then confirm the required evidence in **Traces**. Saving credentials alone does not prove a connection. **2. Find an action worth controlling** Use the [fleet](/docs/fleet), action risks, and recorded interventions to choose a concrete problem. **3. Write or propose a Rule** Start from plain English, [Business context](/docs/business-context), or captured traces. Review its scope, evidence, and required setup. **4. Test in Observe** A blocking match records **Would block**, while the action continues. An Allow rule records an explicit allowance. **5. Enforce deliberately** An enforced blocking match must prevent the protected effect. Check the receipt to see what the caller reports actually happened. The generic action/response dispositions are **Allow**, **Would block**, and **Block**. Human reviews and approvals can be recorded from your runtime; they are not a separate generic `Escalate` disposition returned by the policy API. Read [Observe & enforce](/docs/observe-and-enforce) for policy behavior and [Privacy & capture](/docs/privacy) before choosing which content to export.