> ## Documentation Index
> Fetch the complete documentation index at: https://docs.instructorphp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tell harness transient experiment

## Overview

A transient request compiles the selected durable conversation as context but
cannot publish objects, refs, or legacy-session updates. This lets an
application test an alternative prompt or implementation plan without
contaminating the conversation it may later resume.

## Example

```php theme={null}
<?php
require 'examples/boot.php';
require_once dirname(__DIR__).'/Support.php';

use Cognesy\Tell\Tell;
use Cognesy\Tell\TellRequest;

$project = TellHarnessExample::project();

try {
    $tell = Tell::open($project);
    $tell->workspace()->initialize();
    $review = $tell->conversation('release-review');

    $review->send(TellRequest::prompt('Record the current release decision.'));
    $before = $review->history()->head;

    $prompt = 'Challenge that decision and describe the strongest alternative.';
    $experiment = $tell->run(
        TellRequest::prompt($prompt)
            ->conversation('release-review')
            ->transient(),
    );
    $after = $review->history()->head;

    echo "=== Transient Result ===\n";
    echo $experiment->text(), "\n";
    echo 'Transient: '.($experiment->isTransient() ? 'yes' : 'no')."\n";
    echo 'Conversation head unchanged: '.($before === $after ? 'yes' : 'no')
        ."\n";

    assert($experiment->isTransient(), 'Expected a transient result.');
    assert(
        $before === $after,
        'A transient run must not move the conversation head.',
    );
} finally {
    TellHarnessExample::remove($project);
}
```

## Key Points

* `transient()` is an execution guarantee, not merely a display preference.
* Use an explicit `conversation()` selector to evaluate the exact durable
  context that a later durable request would receive.
* Traces may still record transient execution under Tell's separate trace
  privacy policy; durable conversation state remains unchanged.
