Show accepted model repair in Actions logs [skip ci]

This commit is contained in:
Codex Agent
2026-11-28 21:28:54 +00:00
parent 8a8efe961b
commit 25167307e8
4 changed files with 11 additions and 2 deletions
+6
View File
@@ -52,3 +52,9 @@ data['raw_response']=(p.parent/'raw_response.txt').read_text()
data['runtime_response']=json.loads((p.parent/'runtime_response.json').read_text())
p.write_text(json.dumps(data,indent=2)+'\n')
subprocess.run([sys.executable,'tests/smoke_demo.py',str(p.parent/'reviewed.py')],check=True)
print(f'LIVE REVIEW ACCEPTED for source commit {data["source_commit"]}', flush=True)
print(f'Model: {data["model_id"]}; input tokens: {data["input_tokens"]}; output tokens: {data["output_tokens"]}', flush=True)
print(f'Raw model response: {data["raw_response"]!r}', flush=True)
print('Accepted one-character source diff:', flush=True)
print(data['diff'], end='' if data['diff'].endswith('\n') else '\n', flush=True)
print('Reviewed Python execution: PASS (stdout: hello)', flush=True)