fix: retain complete histories with bounded journal capacity and native recovery
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 19:11:45 +01:00
parent da7eb8109c
commit c512bd6fb2
36 changed files with 2556 additions and 38 deletions
+7
View File
@@ -119,6 +119,13 @@ def status_vm(payload):
result[name]=dict(faults=db.execute('SELECT count(*) FROM '+table+' WHERE fault IS NOT NULL').fetchone()[0],
receipts=db.execute('SELECT count(*) FROM checkpoint_repair_receipts').fetchone()[0] if 'checkpoint_repair_receipts' in tables else 0,
integrity_ok=db.execute('PRAGMA integrity_check').fetchone()[0]=='ok')
if payload.get('job_id'):
job=str(uuid.UUID(payload['job_id']));attempt=str(uuid.UUID(payload['attempt_id']))
if name=='agent':
result[name]['attempts']=[dict(state=s,revision=r,grant_id=g) for s,r,g in db.execute(
'SELECT state,revision,grant_id FROM job_attempts WHERE job=? AND attempt=?',(job,attempt))]
else:
result[name]['attempt_consumed']=db.execute('SELECT count(*) FROM consumed WHERE job=? AND attempt=?',(job,attempt)).fetchone()[0]
if name=='helper':
result[name].update(consumed=db.execute('SELECT count(*) FROM consumed').fetchone()[0],
unresolved=db.execute('SELECT count(*) FROM consumed WHERE result IS NULL').fetchone()[0])