docs: track submitted diagnostic budget repair and retain old native proof in Drive
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"archive": {
|
||||
"id": "1f9Ao2YulvmK3Cg-uup3I0xzKGwSk409j",
|
||||
"url": "https://drive.google.com/file/d/1f9Ao2YulvmK3Cg-uup3I0xzKGwSk409j/view?usp=drivesdk"
|
||||
},
|
||||
"manifest": {
|
||||
"id": "1jqquwBfWmdXy3K-qZRUp3XFFHjyH29_o",
|
||||
"url": "https://drive.google.com/file/d/1jqquwBfWmdXy3K-qZRUp3XFFHjyH29_o/view?usp=drivesdk"
|
||||
},
|
||||
"actual_readback_verified": true,
|
||||
"archive_bytes": 7532961,
|
||||
"archive_sha256": "e0b9282b86f80ba0b244cbf94dbf04df008f184768924ac280eca67083787c45"
|
||||
}
|
||||
+21019
File diff suppressed because it is too large
Load Diff
+1
@@ -0,0 +1 @@
|
||||
Download https://drive.google.com/file/d/1f9Ao2YulvmK3Cg-uup3I0xzKGwSk409j/view?usp=drivesdk and manifest https://drive.google.com/file/d/1jqquwBfWmdXy3K-qZRUp3XFFHjyH29_o/view?usp=drivesdk. Verify archive bytes7532961 and SHA256 e0b9282b86f80ba0b244cbf94dbf04df008f184768924ac280eca67083787c45. Extract selected original paths into the base recorded in MANIFEST.json, then verify every member SHA; modes/mtime_ns are recorded. Do not overwrite current proof. R10 OS failure history and all R11 current proof retained locally. No acceptance credit.
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"retired_files": 2622,
|
||||
"retired_logical_bytes": 222061822,
|
||||
"free_before_bytes": 630935552,
|
||||
"free_after_bytes": 868958208,
|
||||
"scratch_files": 0,
|
||||
"current_R11_and_R10_OS_retained": true,
|
||||
"formal_credit": 0
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"id": "1IiPcDgDWW2CJpVJdu5lj096NSL6mR7tZ",
|
||||
"name": "p23-r10-closed-native-streams.RESTORE.md",
|
||||
"bytes": "549",
|
||||
"url": "https://drive.google.com/file/d/1IiPcDgDWW2CJpVJdu5lj096NSL6mR7tZ/view?usp=drivesdk",
|
||||
"shared": false,
|
||||
"visibility": "not_shared"
|
||||
},
|
||||
{
|
||||
"id": "1jqquwBfWmdXy3K-qZRUp3XFFHjyH29_o",
|
||||
"name": "p23-r10-closed-native-streams.manifest.json",
|
||||
"bytes": "886140",
|
||||
"url": "https://drive.google.com/file/d/1jqquwBfWmdXy3K-qZRUp3XFFHjyH29_o/view?usp=drivesdk",
|
||||
"shared": false,
|
||||
"visibility": "not_shared"
|
||||
},
|
||||
{
|
||||
"id": "1f9Ao2YulvmK3Cg-uup3I0xzKGwSk409j",
|
||||
"name": "p23-r10-closed-native-streams.tar.gz",
|
||||
"bytes": "7532961",
|
||||
"url": "https://drive.google.com/file/d/1f9Ao2YulvmK3Cg-uup3I0xzKGwSk409j/view?usp=drivesdk",
|
||||
"shared": false,
|
||||
"visibility": "not_shared"
|
||||
}
|
||||
]
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
"""Lossless cloud preparation for eight explicitly closed diagnostic streams."""
|
||||
from pathlib import Path
|
||||
import datetime, hashlib, io, json, shutil, tarfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[5]
|
||||
BASE = ROOT / 'artifacts/original-completion-2026-10-02'
|
||||
DOC = Path(__file__).resolve().parent
|
||||
SCRATCH = Path('/private/tmp/the-tree-p23-r10-native-20261015')
|
||||
TRIALS = ('p23-03-native-os-atomic-336a8cd-r10',)
|
||||
NAME = 'p23-r10-closed-native-streams'
|
||||
|
||||
def sha(path):
|
||||
digest = hashlib.sha256()
|
||||
with Path(path).open('rb') as stream:
|
||||
for block in iter(lambda: stream.read(1048576), b''):
|
||||
digest.update(block)
|
||||
return digest.hexdigest()
|
||||
|
||||
def inventory():
|
||||
rows = []
|
||||
for name in TRIALS:
|
||||
ended = json.loads((BASE/name/'runner-ended.json').read_text())
|
||||
assert not ended['cleanup_errors']
|
||||
assert all(row['engine_ended'] for row in ended['cleanup'])
|
||||
for label in ('layout-A', 'layout-B'):
|
||||
root = BASE/name/label
|
||||
assert root.is_dir() and not root.is_symlink()
|
||||
for path in [root] + sorted(root.rglob('*')):
|
||||
assert not path.is_symlink()
|
||||
stat = path.stat()
|
||||
row = dict(path=path.relative_to(BASE).as_posix(),
|
||||
mode=stat.st_mode & 0o7777, mtime_ns=stat.st_mtime_ns)
|
||||
if path.is_file():
|
||||
row.update(type='file', bytes=stat.st_size, sha256=sha(path))
|
||||
else:
|
||||
assert path.is_dir()
|
||||
row['type'] = 'directory'
|
||||
rows.append(row)
|
||||
return rows
|
||||
|
||||
def build():
|
||||
assert shutil.disk_usage(BASE).free > 512*1024**2
|
||||
SCRATCH.mkdir(exist_ok=True)
|
||||
archive = SCRATCH/(NAME+'.tar.gz')
|
||||
assert not archive.exists()
|
||||
rows = inventory()
|
||||
metadata = dict(schema='p23-closed-streams-cloud-v1', name=NAME,
|
||||
base=str(BASE), roots=[f'{n}/{v}' for n in TRIALS for v in ('layout-A', 'layout-B')],
|
||||
members=rows, files=sum(r['type']=='file' for r in rows),
|
||||
logical_bytes=sum(r.get('bytes', 0) for r in rows),
|
||||
selection='Ended native A/B diagnostics only; current source/OS/raw accepted P08 evidence retained',
|
||||
created_at=datetime.datetime.now(datetime.timezone.utc).isoformat())
|
||||
payload=(json.dumps(metadata, ensure_ascii=False, indent=2)+'\n').encode()
|
||||
with tarfile.open(archive, 'w:gz', compresslevel=6, format=tarfile.PAX_FORMAT) as output:
|
||||
for row in rows:
|
||||
output.add(BASE/row['path'], arcname=row['path'], recursive=False)
|
||||
info=tarfile.TarInfo('__P23_NATIVE_STREAM_ARCHIVE__.json')
|
||||
info.size=len(payload)
|
||||
output.addfile(info, io.BytesIO(payload))
|
||||
with tarfile.open(archive, 'r:gz') as source:
|
||||
assert len(source.getnames()) == len(rows)+1
|
||||
assert source.extractfile('__P23_NATIVE_STREAM_ARCHIVE__.json').read() == payload
|
||||
for row in rows:
|
||||
member=source.getmember(row['path'])
|
||||
if row['type']=='directory':
|
||||
assert member.isdir()
|
||||
continue
|
||||
digest=hashlib.sha256()
|
||||
with source.extractfile(member) as stream:
|
||||
for block in iter(lambda: stream.read(1048576), b''):
|
||||
digest.update(block)
|
||||
assert member.isfile() and member.size==row['bytes'] and digest.hexdigest()==row['sha256']
|
||||
assert inventory()==rows
|
||||
metadata.update(archive=str(archive), archive_bytes=archive.stat().st_size,
|
||||
archive_sha256=sha(archive), archive_members_verified=True)
|
||||
(DOC/'MANIFEST.json').write_text(json.dumps(metadata, ensure_ascii=False, indent=2)+'\n')
|
||||
print(json.dumps({k:v for k,v in metadata.items() if k!='members'}), flush=True)
|
||||
|
||||
if __name__=='__main__':
|
||||
build()
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"submitted": "49445d4a4d38281eb29dab1c1f85dd2b8ffbed11",
|
||||
"previous": "336a8cd0b30db1add11869ebceab847db693f531",
|
||||
"actual_runner_state": "submitted",
|
||||
"model": "gpt-6.1-sol",
|
||||
"local_python_tests": {
|
||||
"total": 51,
|
||||
"passed": true,
|
||||
"root_reexecuted": true
|
||||
},
|
||||
"worker_source_clean": true,
|
||||
"scope": "diagnostic setup costs from existing construction definitions, candidate signing_cost and effective/base RAW_FOOD quote; checker static preflight and meaningful missing-spend negatives. No product values changed.",
|
||||
"native_os_evidence": "artifacts/original-completion-2026-10-02/p23-03-native-os-budgetfix-49445d4-r11",
|
||||
"evidence_state": "collection running, not accepted",
|
||||
"formal_credit": 0,
|
||||
"remaining": [
|
||||
"complete A/B native/normalOS/formal distinctPID resume and strict semantic/provenance/mechanical checks",
|
||||
"independent Opus direct-image verdicts",
|
||||
"exact full177 and registered validate/review/integration/final/ledger"
|
||||
],
|
||||
"source_hashes": {
|
||||
"tests/fixtures/p23-03/observation.gd": "a9a0e611f1262151549ff033eae618436e52f661d52decbab5adb93efc4dcdf5",
|
||||
"tools/check_p23_life_observation_evidence.py": "927f8f63eef7d55c4a9f96783e7240adb05ad236c9252dd8b9e27e9beb996683",
|
||||
"tools/test_p23_life_observation_evidence.py": "721b187b86d45da7fd1d1815d466f6f34c1b941e7ffc9585fbffb5e7e1dc6eef"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user