mirror of
https://github.com/openai/codex.git
synced 2026-11-28 07:32:19 +00:00
Give Guardian classifications distinct turn identities (#41385)
## What changed - Generate a UUIDv7 turn ID for each Guardian classification and preserve it across retries. - Record the owning turn as `parent_turn_id` and propagate its trusted `root_turn_id` when known, including through the tool lifecycle extension API. - Omit ambiguous or unknown root lineage and keep classification identities distinct when reusing Guardian sessions and WebSocket connections. ## Testing - Cover classification metadata across retries, connection reuse, concurrent samples, auth refresh, and consecutive owning turns. GitOrigin-RevId: 78757f2ad031844e4b545802f634c678a9ee2298
This commit is contained in:
1 parent
e4d0ba4e92
commit
60fc699560
11 files changed
+221
-62
No files matched your search
@@ -123,6 +123,8 @@ pub struct ToolStartInput<'a> {
|
||||
pub turn_store: &'a ExtensionData,
|
||||
/// Current turn submission id.
|
||||
pub turn_id: &'a str,
|
||||
/// Trusted causal root of the owning turn, absent when unknown or ambiguous.
|
||||
pub root_turn_id: Option<&'a str>,
|
||||
/// Model-visible tool call id.
|
||||
pub call_id: &'a str,
|
||||
/// Tool name as routed by the host.
|
||||
|
||||
Reference in new issue
Block a user