---
model: openai/gpt-5.6-sol
service: opencode
timestamp: 2026-09-03T19:27:42Z
git_ref: wkt/replay_provider_e2e
diff_cmd: git diff HEAD~1..HEAD
---

## Generated changes

> `git diff HEAD~1..HEAD -- piker/brokers/replay.py`

Implements a fixture-driven market-data backend with typed scenario,
quote, failure, command, acknowledgement, snapshot, and transcript
structures. It provides the normal market-info, bounded history,
quote-stream, search, and Tractor control endpoints without external
network access.

> `git diff HEAD~1..HEAD -- tests/_inputs/replay/ tests/replay/test_contract.py`

Adds versioned basic and failure scenarios plus focused validation and
history-boundary tests. The scenarios carry normalized market metadata,
one-second and one-minute OHLCV arrays, sequenced quotes, and a named
failure point.

## Verification

- Python compilation, Ruff, JSON parsing, and staged whitespace checks
  pass.
- Scenario normalization and bounded repeatable history tests pass.
- The production history contract exposed a need for Pendulum datetime
  values; the implementation was corrected before final verification.

## Design discussion

The user questioned placing test infrastructure beside production
backends and proposed dynamic test registration. The resulting review
identified standard Python package entry points as the preferred future
mechanism for external and testing backends. The user then deprioritized
replay entirely in favor of real-backend chart E2E and requested that
the completed experiment be parked with that follow-up recorded.
