Verify the archived Windows 205 closure through a separate read-only native path
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-16 13:33:26 +01:00
parent 760b706d40
commit 090fcdffda
2 changed files with 130 additions and 7 deletions
@@ -312,10 +312,15 @@ mod platform {
pub fn run() -> Result<()> {
let args = std::env::args().skip(1).collect::<Vec<_>>();
ensure!(
args.len() == 1 && matches!(args[0].as_str(), "--witness" | "--apply-reviewed-receipt"),
args.len() == 1
&& matches!(
args[0].as_str(),
"--witness" | "--apply-reviewed-receipt" | "--verify-applied"
),
"ALIGN_FIXED_ARGUMENTS"
);
let apply = args[0] == "--apply-reviewed-receipt";
let verify_applied = args[0] == "--verify-applied";
phase(1);
admin()?;
both()?;
@@ -428,7 +433,7 @@ mod platform {
"ALIGN_HELPER_ORIGINAL_LEDGER_LOCK_IDENTITY"
);
phase(11);
if apply {
if apply || verify_applied {
let receipt = PinnedFile::open(Path::new(RECEIPT), false, &[], &[], false)?;
let raw = bytes(&receipt.file, 4 * 1024 * 1024)?;
let helper_read = Db::open(PATHS[3], false)?;
@@ -440,11 +445,15 @@ mod platform {
binding: &binding,
helper_binding: &settings.binding,
};
recovery::apply(&local, &mut h.db, &guard, &raw, chrono::Utc::now())?;
println!(
"{}",
serde_json::json!({"schema_version":1,"closed_admin_alignment_applied":true,"actual_applied_at":chrono::Utc::now(),"ready":false,"helper_ready":false,"unlock":false,"fresh_normal_signed_sync_required":true})
);
if verify_applied {
println!("{}", recovery::verify_applied(&local, &guard, &raw)?);
} else {
recovery::apply(&local, &mut h.db, &guard, &raw, chrono::Utc::now())?;
println!(
"{}",
serde_json::json!({"schema_version":1,"closed_admin_alignment_applied":true,"actual_applied_at":chrono::Utc::now(),"ready":false,"helper_ready":false,"unlock":false,"fresh_normal_signed_sync_required":true})
);
}
} else {
let local = Local {
agent: &a.db,