1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright (c) 2026 2youg1 and the sprawling contributors
//! What a run has recorded of its prompt.
//!
//! `prompt_assembled` is written once per run: on the first turn, and
//! again only when the payload a turn assembles differs from the last
//! one written. The prefix is frozen for the run and the breakpoint plan
//! moves only when the conversation goes from empty to not, so every
//! later line was a copy of the first; what does move between turns is
//! recorded by `prompt_shape_compared`. The comparison is on the payload
//! rather than on the turn index, so a turn whose request really differs
//! still gets its own line (`crates/runtime/spec/Prefix.lean` ยง8-39, item 5).
use Payload;
use crateFrozenPrefix;
/// The prompt one turn is assembled from: the run's frozen prefix, and
/// what the run has already recorded of it.
/// The `prompt_assembled` payload a run wrote last; empty before its
/// first turn. It lives across turns, in the run's own state.