chore: capture post-P0/P1 state for clean P2 start (working tree was dirty at task begin)

This commit is contained in:
2026-05-27 00:53:49 -05:00
parent 9cb38a9a18
commit 0c1840d223
17 changed files with 1500 additions and 170 deletions
+4
View File
@@ -202,6 +202,10 @@ func (tc *TieredCache) promoteToFast(key string, reader io.ReadCloser) {
}
}
// P1-01: guard promotion ReadAll using already-fetched size (in addition to space check above)
if size > 0 && size > (1<<30) { // conservative 1GB hard limit on promotion reads (aligns with typical max_object_size)
return
}
// Read the entire file content
content, err := io.ReadAll(reader)
if err != nil {