Make Guardian risk score persistence opt-in (#40911)

## What changed

- Add the `features.guardianv2.persist_scores` configuration option for debugging.
- Default the option to `false`, so Guardian V2 reviewed actions and risk scores are only written to rollout files when explicitly enabled and the session is not ephemeral.

## Testing

- Cover configuration deserialization, default non-persistence, and opt-in persistence for nested code-mode actions.

GitOrigin-RevId: 452af99ef14553d45140340ececc2913389124d0
This commit is contained in:
jif authored and copyberry committed 2026-08-26 16:23:34 +00:00
1 parent bde9db1375
commit 5b92c2d2f5
6 files changed
+24 -22

No files matched your search

+4
View File
@@ -1441,6 +1441,10 @@
"minimum": 0.0,
"type": "integer"
},
"persist_scores": {
"description": "Persist reviewed actions and risk scores to rollout files for debugging.",
"type": "boolean"
},
"reasoning_effort": {
"$ref": "#/definitions/ReasoningEffort"
},