## Why
The `always` policy ties retention across context windows to inheritance by
spawned agents. Callers need to control those behaviors independently.
## What changed
- `alwaysInThread` carries items across context windows in the current thread
and excludes them from spawned agents, including full-history forks.
- `alwaysInChildren` passes items still in the parent's context to spawned
agents and leaves each thread's context-window retention to the usual rules.
- `always` continues to apply in both scopes, including for items saved by
older versions. Retained tool calls and outputs must be adjacent, with the
call first and the same retention policy on both items.
## Testing
Extend integration coverage for retention across remote compaction, inheritance
by spawned agents, and injection through the app server.
GitOrigin-RevId: aafede69cfbe149aa52292e6029d248d4bdf6401