back to table · edit · history · where entries came from · files · download
1274 bytes, as of the version from 2026-12-02 03:42 (current). Recorded here, not run.
"""Run both alternate checks on the stored-data read-back; writes no website state."""
import contextlib,io,json,sys,hashlib
from pathlib import Path
import check_values
import bounded_series_check
source=Path(__file__).with_name('stored-results.json')
sys.argv=[str(Path(__file__)),str(source)]
first=io.StringIO()
with contextlib.redirect_stdout(first):check_values.main()
text=first.getvalue()
line=next(x for x in text.splitlines() if x.startswith('CHECK_RESULT_JSON:'))
integral=json.loads(line.split(':',1)[1])
second=io.StringIO()
with contextlib.redirect_stdout(second):bounded_series_check.main()
series=json.loads(second.getvalue())
result={'table':'T857','stage':'builder checks on API read-back','checked_entries':integral['checked_entries'],
'total_entries':integral['total_entries'],'failures':integral['failures']+series['failures'],
'known_answer_control':bool(integral['known_answer_control'] and series['known_answer_control']),
'negative_control_rejected':bool(integral['negative_control_rejected'] and series['negative_control_rejected']),
'stored_input_sha256':hashlib.sha256(source.read_bytes()).hexdigest(),
'skill_manifest':'../20261128T140524Z-build-skills/manifest.json','integral':integral,'series':series}
print(json.dumps(result,indent=2))