# `replay.differed`

A request `jadpo replay` replayed was answered with another status or code, or took another path, than its recording kept.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

A replay gives the request everything that could make it go another way:
the records it read, each provider's answer, its clock and its random
bytes, as the deployment recorded them. On the code that answered it in
production, it gets the same status, code and path. When it doesn't, the
code on the request's way has changed since it was recorded, or the
request read something the recording didn't keep, and the replay is no
longer evidence of what happened in production.

## What it looks like

A library refused Ada's second loan of a book as already hers. Since
then, its action checks whether the book is on loan first, so the replay
is refused as the book being on loan:

```text
jadpo replay  POST /books/{book_id}/lend · req_0b1e2f3a4b5c · 2026-11-30T09:12:44Z

  recorded  409 already_yours · path 342 · pk_b067c36c669d156d
  replayed  409 on_loan · path 338 · pk_7bbf679c033a43f2
  build     b_9a1f03c6d2e4 at 8d113e6 recorded it; replayed on the source now
  records   1 the request read, made in a throwaway database
  personal  generated in place of Book.borrower, Loan.email
  random    6 bytes drawn as recorded

✗ error  The replayed request was answered 409 on_loan, not 409 already_yours
  reason  A replay gives the request the records it read, its providers'
          answers, its clock and its random bytes as recorded, so on the
          code that answered it the status, code and path are the same.
          Here they aren't: the code on its way has changed since it was
          recorded, or the request read something the recording didn't
          keep.
  next    If the change since `8d113e6` is the fix, keep the replay as a
          test with `jadpo test new --from-event production.log`;
          otherwise replay it on that commit, `git checkout 8d113e6`
          (agent)
  rule    replay.differed

✗ replay differed  the code and path in 1.4 s
```

`(agent)` at the end of the `next:` line means your coding agent can make
the fix itself.

## How to fix it

**If the change is the fix**, the request no longer fails as it did,
which is what you wanted: keep it as a test, so it stays fixed.

```sh
jadpo test new --from-event production.log
```

**Otherwise**, replay it on the commit that recorded it, which the event
names as `commit`, to see the production failure as it was:

```sh
git checkout 8d113e6
jadpo replay production.log
```

There the code is the code that answered it, so the replay gets the same
results and shows the failure as production saw it.

## Related

- [Replaying a production request](/docs/what-the-graph-and-production-evidence-add.md#replaying-a-production-request)
- [`jadpo replay`](/docs/commands-for-services-calls-email-and-stored-data.md#jadpo-replay)
- [Capturing a failing request as a test](/docs/capturing-a-failing-request-as-a-test.md)
