# BR-STREAM-07

When the application restores each chunk separately, without the decoder, then a cut placeholder is never recognized, and the user reads "Hello <<PERSON:1>>.".

Defined in [Show a streamed reply](https://docs.piighost.dev/en/domain/processes/show-a-streamed-reply/#br-stream-07).

## Where the rule lives

- [`PIIAnonymizationMiddleware.deanonymize_stream()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/integrations/langchain/middleware.py#L206)

## Direct tests

- [`tests/integrations/langchain/test_middleware_stream.py::test_middleware_deanonymize_stream_restores_split_token`](https://github.com/Athroniaeth/piighost/blob/master/tests/integrations/langchain/test_middleware_stream.py#L33)

## Indirect tests

- [`tests/integrations/langchain/test_middleware_e2e.py::test_second_model_call_never_sees_clear_tool_args`](https://github.com/Athroniaeth/piighost/blob/master/tests/integrations/langchain/test_middleware_e2e.py#L74)
- [`tests/integrations/langchain/test_middleware.py::TestFactoryContract::test_a_pipeline_without_a_recognizer_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/integrations/langchain/test_middleware.py#L639)
- [`tests/integrations/langchain/test_middleware.py::TestFactoryContract::test_reads_the_recognizer_from_the_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/integrations/langchain/test_middleware.py#L610)

## Used by

No caller found.

Read from the code graph graphify builds, at the places the domain documentation gives.
