Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
30b68bd
Refine incompatible native chat histories into proved multi-history s…
bradhilton Sep 26, 2026
fb0b7f4
Bind native stream request context across STOP callbacks
bradhilton Sep 26, 2026
ef3742a
Recheck all native stream sources after STOP callbacks
bradhilton Sep 26, 2026
13db8a1
Certify exact sampled occupancy across native streams
bradhilton Sep 26, 2026
9273bf5
Isolate prefix warning state in native stream tests
bradhilton Sep 26, 2026
d1bb8e9
Verify native-stream losses and gradients against recorded completions
bradhilton Sep 26, 2026
f0344bb
Preserve request roles and source evidence across native streams
bradhilton Sep 26, 2026
c1b63b6
Cover cross-history request context mutation
bradhilton Sep 26, 2026
cbec1ab
Retain original history context through native stream refinement
bradhilton Sep 26, 2026
897ba0c
Merge complete request-context and callback evidence validation
bradhilton Sep 26, 2026
6b5115d
Preserve the late native role proof before stream refinement
bradhilton Sep 26, 2026
5745905
Compose consumed-source validation and retain real fork mutation cont…
bradhilton Sep 26, 2026
cc5657f
Compose rendered evidence validation with native stream refinement
bradhilton Sep 26, 2026
60b83ad
Compose full consumed evidence and historical prompt validation
bradhilton Sep 26, 2026
7e3c57e
Merge parent consumed-protocol evidence fixes into native streams
bradhilton Sep 26, 2026
1886e0d
Merge parent render callback guards and retain stream preflight evidence
bradhilton Sep 26, 2026
1c3bade
Merge reviewed STOP metadata and selected-template fixes
bradhilton Sep 26, 2026
02f4880
Merge exact rendering-wrapper STOP capability classification
bradhilton Sep 26, 2026
df2b516
Type native-stream role mutation fixtures explicitly
bradhilton Sep 26, 2026
7fd134a
Merge reviewed parent context admission and projection corrections
bradhilton Sep 26, 2026
7a667b0
Preserve consumed callback authority across native stream completion
bradhilton Sep 26, 2026
f24d63f
Merge reviewed native decoder admission and scalar context coverage
bradhilton Sep 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions docs/features/additional-histories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,25 @@ for unchanged, complete exchange histories. Recorded logprobs belong to those
exact conditioned tokens. Chat, Responses, Messages, and Completions keep their
existing protocol-specific projection rules; no separate tokenization API or
native-representation option is needed. `multi_history=True` preserves the
histories selected by the trajectory, including their order and model selection.
selected source order and model selection. If a complete unchanged Chat history
cannot use the native fast path and its recorded requests are not one continuous
token prefix, ART can refine it into adjacent native streams. Each stream retains
the final request in that run, all sampled responses' original conditioning and
logprobs, and the original trajectory's reward. The existing first-occurrence
mask still owns each sampled prefix edge once across streams. Earlier responses
outside a run are that request's context; their assistant and STOP roles require
the normal rendering proof. They retain native `EXACT` provenance but carry
neither `SAMPLED` nor `OUTPUT`, so their generic output/SFT masks differ from an
unsplit copied-response history. This may load a tokenizer to prove request
roles. Unproved request roles still refuse.

The internal exchange-training path uses the same refinement and one token weight
per original trajectory. `History.tokenize()` and `multi_history=False` keep
their single-linear representation. Explicit overrides, incomplete native
records, and edited contexts do not authorize splitting. Extra streams may
repeat context; there is no implied memory, speed, or numerical-training claim.
Passing `chat_template` or `chat_template_kwargs` explicitly also disables
refinement when the supplied value equals the recorded settings.

Complete unchanged Chat histories end at the final recorded response token,
including tool responses and responses stopped by a length limit. ART does not
Expand Down Expand Up @@ -240,13 +258,15 @@ Unused opaque request metadata remains valid on complete callback-free native
paths, including a supplied tokenizer exposing only plain EOS metadata;
callbacks require context that ART can compare.

A response copied into a later, shortened prompt is output provenance, but it is
not a fresh sample under that new prompt. ART keeps its `OUTPUT`, `ASSISTANT`,
In an unsplit history, a response copied into a later, shortened prompt is output
provenance, but it is not a fresh sample under that new prompt. ART keeps its
`OUTPUT`, `ASSISTANT`,
`EXACT`, and proven `STOP` flags while removing `SAMPLED` and the old conditional
logprob. This requires the complete original sampled occurrence to remain in an
earlier selected history; otherwise unchanged native replay is refused. The
original occurrence retains its logprobs and ownership, including recorded NaNs
before finite-value filtering. Tokenizing only the shortened view cannot prove
earlier selected history. Multi-history tokenization may establish that coverage
by refining complete native sources into streams; if it cannot, native replay
is refused. The original occurrence retains its logprobs and ownership, including
recorded NaNs before finite-value filtering. Tokenizing only the shortened view cannot prove
that coverage; tokenize the containing trajectory instead. This correction does
not change how generic output/SFT masks include copied assistant content.

Expand Down
Loading
Loading