feat(ql3): add local run log retention

This commit is contained in:
whyour
2026-08-12 02:57:43 +08:00
parent 308aa75d89
commit 2bfa8ca279
50 changed files with 2752 additions and 85 deletions
@@ -535,7 +535,7 @@ function snapshotReceipt(evidence) {
function isSnapshot(value) {
return (
hasExactKeys(value, SNAPSHOT_KEYS) &&
value.contractVersion === 43 &&
value.contractVersion === 44 &&
typeof value.sha256 === 'string' &&
SHA256_PATTERN.test(value.sha256) &&
Number.isSafeInteger(value.bytes) &&
@@ -1337,7 +1337,7 @@ async function resumePhase(options, manifest) {
const outcomes = Object.freeze({
commitStatus: committed.status,
replayStatus: replay.status,
sqliteIntegrity: databaseEvidence.contractVersion === 43 ? 'ok' : 'invalid',
sqliteIntegrity: databaseEvidence.contractVersion === 44 ? 'ok' : 'invalid',
stageRemoved: !fs.existsSync(session.collection.stagePath),
tombstonePresent: fs.existsSync(tombstonePath),
retainedSnapshots,