blyte-agent 0.93.0

The blyte agent loop: tools, context, persistent shell sessions, search and the command sandbox.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Verification of state serialization and runtime invariants.

use blyte_agent::state::Runtime;

/// Verifies backward compatibility when deserializing Runtime instances.
#[test]
fn test_runtime_default_backward_compatibility() {
    let legacy_json = r#"{"attempts":1,"failures":[],"rollbacks":0,"files_written":[]}"#;
    let runtime: Runtime =
        serde_json::from_str(legacy_json).expect("deserializing legacy JSON should succeed");
    assert_eq!(runtime.rollbacks, 0);
}