Complete source 6 engineering workflows and preserve release validation evidence

This commit is contained in:
Codex
2026-09-06 21:49:04 -07:00
parent 2b2d2bc18b
commit 4b6b5fc197
290 changed files with 48271 additions and 1791 deletions
+16
View File
@@ -32,6 +32,22 @@ pub struct RecoveryWorkspace {
}
impl RecoveryWorkspace {
/// Refresh only accepted clean buffers. Dirty baselines and invalid/unapplied
/// workspaces are authored recovery data, not migration input.
pub(crate) fn upgrade_clean_buffers(&mut self, old: &SourceBundle, new: &SourceBundle) {
if !self.applied || self.entry != old.entry {
return;
}
for (path, (text, baseline)) in &mut self.files {
if text == baseline
&& old.files.get(path) == Some(text)
&& let Some(upgraded) = new.files.get(path)
{
*text = upgraded.clone();
*baseline = upgraded.clone();
}
}
}
/// Check the same bounds before replacing a checkpoint and before restoring it.
pub(crate) fn validate(&self) -> Result<(), String> {
if self.files.len() > LIMITS.max_files