Review syntax after model without typo whitelist
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 53s

This commit is contained in:
Codex Agent
2026-11-28 22:26:14 +00:00
parent 1d20412bd6
commit 0bffbdf4bd
19 changed files with 222 additions and 261 deletions
+8 -2
View File
@@ -43,7 +43,13 @@ if peak > target:
print(f'WARNING: measured Actions job memory peak {peak} bytes exceeds the {target}-byte project target; continuing under the {limit}-byte hard ceiling', file=sys.stderr)
if events.get('max', 0):
print(f'WARNING: Actions job encountered {events["max"]} hard-ceiling pressure events; check resource.json for OOM events', file=sys.stderr)
assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live model or hard memory ceiling failed'
if result.returncode:
review_path = Path('out/review/review.json')
if review_path.is_file():
failed_review = json.loads(review_path.read_text())
print(f'Reviewer exit {result.returncode}: {failed_review.get("diagnostic") or failed_review.get("summary")}', file=sys.stderr)
raise SystemExit(f'Live reviewer failed with exit {result.returncode}')
assert events['oom_kill'] == 0 and peak <= limit, 'Hard memory ceiling failed'
p=Path('out/review/review.json');data=json.loads(p.read_text())
assert data['mode']=='live' and data['status']=='corrected'
data['resource_measurement']=measurement
@@ -55,6 +61,6 @@ subprocess.run([sys.executable,'tests/smoke_demo.py',str(p.parent/'reviewed.py')
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('Accepted 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)