Add reviewed Windows scope completion and idle certificate renewal; deploy completion API
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-16 10:25:25 +01:00
parent ebcad08731
commit bb4ffe518d
43 changed files with 5146 additions and 50 deletions
@@ -96,6 +96,31 @@ fn handoff() -> Handoff {
fn key() -> SigningKey {
SigningKey::from_bytes(&[73; 32])
}
#[test]
fn windows_clock_transition_keeps_historical_four_file_shape_and_requires_exact_new_fifth_role() {
let mut value = handoff();
value.pin_transition = PinTransition::WindowsCodePairV1;
value.stop_set = vec![Service::WindowsAgent, Service::WindowsHelper];
value.files[2].role = FileRole::WindowsSettings;
value.files[3].role = FileRole::WindowsPin;
value.validate().unwrap();
let old = value.bytes().unwrap();
value.pin_transition = PinTransition::WindowsCodePairClockV1;
assert!(value.validate().is_err());
value.files.push(FileTransition {
role: FileRole::WindowsTimeProfile,
old_sha256: h(23),
new_sha256: h(24),
});
value.validate().unwrap();
value.files[3].new_sha256 = h(25);
assert!(value.validate().is_err());
value.files[3].new_sha256 = value.target.pin_sha256.clone();
value.files.swap(3, 4);
assert!(value.validate().is_err());
let historical: Handoff = serde_json::from_slice(&old).unwrap();
assert_eq!(historical.bytes().unwrap(), old);
}
fn open(handoff: &Handoff) -> Journal {
Journal::open(&handoff.bytes().unwrap(), key().verifying_key().to_bytes()).unwrap()
}