MOAT: Exchange Replay #13

Open
opened 2026-03-29 23:24:25 +02:00 by claude · 0 comments
Owner

Overview

Re-execute a previously recorded exchange through its original route with an optionally modified start payload. Fully audited — every replay is logged with who triggered it, what was changed, and the full execution result.

Concept

  • User selects a recorded exchange from the trace history
  • Optionally modifies the start payload (headers, body, properties)
  • Platform replays it through the original route on the target agent
  • Full execution trace captured (same as live execution)
  • Diff between original and replay execution available

Relationship to Other MOAT Features

  • Uses Debugger infrastructure — same bidirectional SSE protocol, same agent-side execution mechanics
  • Uses Lineage — replay execution gets full per-processor lineage capture automatically
  • Feeds Correlation — replay traces appear in the correlation graph (tagged as replay)
  • Distinct from Debugger — no breakpoints/stepping, focus is on re-execution with altered input

Protocol

  • Extends existing replay SSE command in cameleer3
  • New fields: sourceExchangeId (original exchange), modifiedPayload, replayId
  • Agent sends back full execution trace tagged with replayId

Audit Requirements (SOC 2 aligned)

  • Immutable audit record per replay: who, when, source exchange, payload diff, execution result
  • Audit log queryable by tenant admins
  • Replay permission gated by RBAC role
  • Production replay requires explicit permission (separate from dev/staging)

Use Cases

  • "What would have happened if the input was X instead of Y?"
  • Reproduce and verify bug fixes without waiting for real traffic
  • Regression testing: replay known-good exchanges after code changes
  • Compliance: prove that a specific payload produces a specific output

Tier Availability

Low Mid High Business
No No Yes Yes

Same tier gating as the Live Route Debugger — dedicated infrastructure only.

## Overview Re-execute a previously recorded exchange through its original route with an optionally modified start payload. Fully audited — every replay is logged with who triggered it, what was changed, and the full execution result. ## Concept - User selects a recorded exchange from the trace history - Optionally modifies the start payload (headers, body, properties) - Platform replays it through the original route on the target agent - Full execution trace captured (same as live execution) - Diff between original and replay execution available ## Relationship to Other MOAT Features - **Uses Debugger infrastructure** — same bidirectional SSE protocol, same agent-side execution mechanics - **Uses Lineage** — replay execution gets full per-processor lineage capture automatically - **Feeds Correlation** — replay traces appear in the correlation graph (tagged as replay) - **Distinct from Debugger** — no breakpoints/stepping, focus is on re-execution with altered input ## Protocol - Extends existing `replay` SSE command in cameleer3 - New fields: `sourceExchangeId` (original exchange), `modifiedPayload`, `replayId` - Agent sends back full execution trace tagged with `replayId` ## Audit Requirements (SOC 2 aligned) - Immutable audit record per replay: who, when, source exchange, payload diff, execution result - Audit log queryable by tenant admins - Replay permission gated by RBAC role - Production replay requires explicit permission (separate from dev/staging) ## Use Cases - "What would have happened if the input was X instead of Y?" - Reproduce and verify bug fixes without waiting for real traffic - Regression testing: replay known-good exchanges after code changes - Compliance: prove that a specific payload produces a specific output ## Tier Availability | Low | Mid | High | Business | |-----|-----|------|----------| | No | No | Yes | Yes | Same tier gating as the Live Route Debugger — dedicated infrastructure only.
claude added the epicobservability labels 2026-03-29 23:24:28 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cameleer/cameleer-saas#13