SAME FROZEN R3 SOURCE RECOVERY 3/9. Browser paragraph rendering adds blank separator lines; all nonempty lines and indentation are verified unchanged. These are static display fragments, not raw-byte hash verification. Do not audit yet. Reply only ACK 3/9 if all code in this fragment is visible. No tools. BEGIN action_bundle.py fragment 3/9 actor,'key':key}) @staticmethod def _get(c,slot): row=c.execute('SELECT body FROM requests WHERE slot=?',(slot,)).fetchone() return json.loads(row[0]) if row else None @staticmethod def _save(c,request): c.execute('UPDATE requests SET body=? WHERE id=?',(_json(request),request['requestId'])) @staticmethod def _fresh_id(c,prefix): value=_id(prefix) for table in ('definitions','resources','requests','events'): require(not c.execute('SELECT 1 FROM '+table+' WHERE id=?',(value,)).fetchone(),'generated-id-collision') return value @staticmethod def _event(c,m,request,kind,payload,now): eid=Executor._fresh_id(c,'evt') cur=c.execute('INSERT INTO events(id,body) VALUES(?,?)',(eid,'{}')) e={'eventId':eid,'sequence':cur.lastrowid,'controlSequence':m['control_sequence'],'kind':kind,'requestId':request['requestId'],'recordedAt':now,'issuerId':m['issuer'],'payload':payload} validate('Event',e) c.execute('UPDATE events SET body=? WHERE sequence=?',(_json(e),cur.lastrowid)); return e @staticmethod def _definition(c,intent,now): pin=intent['definition'] row=c.execute('SELECT * FROM definitions WHERE id=? AND version=? AND digest=?',(pin['definitionId'],pin['version'],pin['sha256'])).fetchone() if not row: return None,False d=json.loads(row['body']) return d,bool(row['available'] and d['validFrom']<=now=intent['expiresAt']: self._terminal(c,m,request,'expired','deadline',now,trial['eventId']) elif not allowed: return self._out(c,request,readable,'current-execution-denied') else: row=c.execute('SELECT * FROM resources WHERE id=? ORDER BY revision DESC LIMIT 1',(intent['resourceId'],)).fetchone() reason='resource-revision' valid=bool(row and row['revision']==intent['expectedRevision']) if intent['compensatesReceiptId']: old=c.execute('SELECT body FROM events WHERE i END fragment 3/9