Spaces:
Sleeping
Sleeping
Deploy verified conversational workbench and isolated Java application previews
Browse filesSource baseline: ee0d98b81fba450612379cef3fdf7ee652d3e524. Credentials are runtime Secrets only.
deploy/hf/base-vm-manifest.json
CHANGED
|
@@ -2,6 +2,13 @@
|
|
| 2 |
"qemu": "47d57a6072e0bb3bd98f87926eb129eb1736dfe818c67b3b81ef7ce4edd0b3cd",
|
| 3 |
"kernel": "26f146f664ad057be3b39b211422b03b1f94cb2c3d66522fd4841811a224bfd5",
|
| 4 |
"rootfs": "04dde6e0e91f7605ab80a52c41e19320031b5cba0af09c8afdd630cb76fad752",
|
| 5 |
-
"worker": "
|
| 6 |
-
"probe": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
|
|
|
| 2 |
"qemu": "47d57a6072e0bb3bd98f87926eb129eb1736dfe818c67b3b81ef7ce4edd0b3cd",
|
| 3 |
"kernel": "26f146f664ad057be3b39b211422b03b1f94cb2c3d66522fd4841811a224bfd5",
|
| 4 |
"rootfs": "04dde6e0e91f7605ab80a52c41e19320031b5cba0af09c8afdd630cb76fad752",
|
| 5 |
+
"worker": "2d11aae8bf620f618dcdc8739ce74fb39d43a0b1116db5c912215395f7872105",
|
| 6 |
+
"probe": "4dcc7436c5e2e1c1755e61ed98ba9d5f489bcddf88b90acd8c6488475ba5086d",
|
| 7 |
+
"launch": {
|
| 8 |
+
"machine": "q35,accel=tcg",
|
| 9 |
+
"cpu": "max",
|
| 10 |
+
"memory_mb": 1024,
|
| 11 |
+
"vcpus": 1,
|
| 12 |
+
"kernel_arguments": "console=ttyS0 quiet panic=1 noapic rdinit=/init"
|
| 13 |
+
}
|
| 14 |
}
|
deploy/hf/package-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"git_commit": "
|
| 3 |
"files": {
|
| 4 |
"AGENTS.md": {
|
| 5 |
"sha256": "4df6d563018fb1a26bb220f7e3732572cd9fffdc5129c6aa64eb80af98497e47",
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"bytes": 16581
|
| 75 |
},
|
| 76 |
"examples/hf-ingress-validation.json": {
|
| 77 |
-
"sha256": "
|
| 78 |
"bytes": 1833
|
| 79 |
},
|
| 80 |
"examples/hf-localized-cloud-validation.json": {
|
|
@@ -134,8 +134,8 @@
|
|
| 134 |
"bytes": 5796
|
| 135 |
},
|
| 136 |
"deploy/hf/base-vm-manifest.json": {
|
| 137 |
-
"sha256": "
|
| 138 |
-
"bytes":
|
| 139 |
},
|
| 140 |
"deploy/hf/Dockerfile": {
|
| 141 |
"sha256": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31",
|
|
@@ -150,8 +150,8 @@
|
|
| 150 |
"bytes": 6124
|
| 151 |
},
|
| 152 |
"deploy/hf/prepare_image.py": {
|
| 153 |
-
"sha256": "
|
| 154 |
-
"bytes":
|
| 155 |
},
|
| 156 |
"deploy/hf/prepare_qemu_rootfs.sh": {
|
| 157 |
"sha256": "428c3d895c7af4f5588e0f4ff6b26f2afc2498a670a7059ffe35000301bc4c56",
|
|
|
|
| 1 |
{
|
| 2 |
+
"git_commit": "ee0d98b81fba450612379cef3fdf7ee652d3e524",
|
| 3 |
"files": {
|
| 4 |
"AGENTS.md": {
|
| 5 |
"sha256": "4df6d563018fb1a26bb220f7e3732572cd9fffdc5129c6aa64eb80af98497e47",
|
|
|
|
| 74 |
"bytes": 16581
|
| 75 |
},
|
| 76 |
"examples/hf-ingress-validation.json": {
|
| 77 |
+
"sha256": "c420bb78a583a79d0b3eb98e977bd74b8b2daf777f8780e8ed96392e479d3545",
|
| 78 |
"bytes": 1833
|
| 79 |
},
|
| 80 |
"examples/hf-localized-cloud-validation.json": {
|
|
|
|
| 134 |
"bytes": 5796
|
| 135 |
},
|
| 136 |
"deploy/hf/base-vm-manifest.json": {
|
| 137 |
+
"sha256": "10276e3e771a41be3c439c2db2a8ddbd6fbf74a4fea83b6532c0c2e624f43b08",
|
| 138 |
+
"bytes": 594
|
| 139 |
},
|
| 140 |
"deploy/hf/Dockerfile": {
|
| 141 |
"sha256": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31",
|
|
|
|
| 150 |
"bytes": 6124
|
| 151 |
},
|
| 152 |
"deploy/hf/prepare_image.py": {
|
| 153 |
+
"sha256": "379b37ac75d221146f09b1ee0f91adcdc7d8f5e5b0041685f64599adf7500cca",
|
| 154 |
+
"bytes": 2008
|
| 155 |
},
|
| 156 |
"deploy/hf/prepare_qemu_rootfs.sh": {
|
| 157 |
"sha256": "428c3d895c7af4f5588e0f4ff6b26f2afc2498a670a7059ffe35000301bc4c56",
|
deploy/hf/prepare_image.py
CHANGED
|
@@ -1,25 +1,36 @@
|
|
| 1 |
-
"""Build-time Linux executor pin; runtime never approves or rewrites its image."""
|
| 2 |
-
import hashlib
|
| 3 |
-
import json
|
| 4 |
-
import gzip
|
| 5 |
-
import sys
|
| 6 |
-
from pathlib import Path
|
| 7 |
-
ROOT=Path(__file__).resolve().parents[2];sys.path.insert(0,str(ROOT))
|
| 8 |
-
from src.modules.skill.domain.models import digest
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
paths
|
| 19 |
-
for name,path in paths.items()
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Build-time Linux executor pin; runtime never approves or rewrites its image."""
|
| 2 |
+
import hashlib
|
| 3 |
+
import json
|
| 4 |
+
import gzip
|
| 5 |
+
import sys
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
ROOT=Path(__file__).resolve().parents[2];sys.path.insert(0,str(ROOT))
|
| 8 |
+
from src.modules.skill.domain.models import digest
|
| 9 |
+
from src.adapters.sandbox.qemu import VM_LAUNCH_V8
|
| 10 |
+
|
| 11 |
+
def prepare_executor(root):
|
| 12 |
+
image=root/'.local/tools/vm';control=root/'src/modules/execution/container'
|
| 13 |
+
baseline=json.loads((root/'deploy/hf/base-vm-manifest.json').read_text())
|
| 14 |
+
if baseline.get('launch')!=VM_LAUNCH_V8:raise RuntimeError('UNAPPROVED_VM_LAUNCH')
|
| 15 |
+
paths={'kernel':image/'kernel','rootfs':image/'rootfs.cpio.gz','worker':control/'vm_worker_v6.py','probe':control/'probe_v3.py'}
|
| 16 |
+
for name,path in paths.items():
|
| 17 |
+
if hashlib.sha256(path.read_bytes()).hexdigest()!=baseline[name]:raise RuntimeError('UNAPPROVED_VM_INPUT')
|
| 18 |
+
paths['qemu']=root/'.local/tools/qemu/qemu-system-x86_64.exe'
|
| 19 |
+
manifest={name:hashlib.sha256(path.read_bytes()).hexdigest() for name,path in paths.items()}
|
| 20 |
+
manifest['launch']=VM_LAUNCH_V8
|
| 21 |
+
(image/'manifest-v8.json').write_text(json.dumps(manifest,indent=2),encoding='utf-8')
|
| 22 |
+
(image/'build-evidence.json').write_text(json.dumps({'backend':'qemu-tcg','platform':'linux-amd64','image':'zkcoding-qemu@sha256:'+digest(manifest),
|
| 23 |
+
'inputs':manifest,'runtime_repin':False},indent=2),encoding='utf-8')
|
| 24 |
+
return manifest
|
| 25 |
+
|
| 26 |
+
def main():
|
| 27 |
+
database=ROOT/'.local/platform/knowledge.sqlite'
|
| 28 |
+
with gzip.open(database.with_suffix('.sqlite.gz'),'rb') as source,database.open('wb') as target:
|
| 29 |
+
import shutil
|
| 30 |
+
shutil.copyfileobj(source,target)
|
| 31 |
+
expected=json.loads((ROOT/'deploy/hf/knowledge-manifest.json').read_text())
|
| 32 |
+
if hashlib.sha256(database.read_bytes()).hexdigest()!=expected['sha256']:raise RuntimeError('KNOWLEDGE_SNAPSHOT_MISMATCH')
|
| 33 |
+
database.with_suffix('.sqlite.gz').unlink()
|
| 34 |
+
prepare_executor(ROOT)
|
| 35 |
+
|
| 36 |
+
if __name__=='__main__':main()
|
examples/hf-ingress-validation.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
"cloud_runtime_files": {
|
| 12 |
"deploy/hf/adapter.py": "ef613fd33c30627d4caeaa75d59ec535bad5064c6f2629737834b83f01d444f8",
|
| 13 |
"deploy/hf/app.py": "857effc073f2ceb82bb22f121aff5b9444d247c57dbc48ed0d9ef5a10f38c40b",
|
| 14 |
-
"deploy/hf/prepare_image.py": "
|
| 15 |
"deploy/hf/Dockerfile": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31",
|
| 16 |
"deploy/hf/preview_bridge.py": "9a5fe782621e8a9afe2ff199f294018ae4910c007244e350c31829eaaf19d093",
|
| 17 |
"deploy/hf/scoped_preview.py": "b56d5f537641a17ad993a540a4ba42af7a3c829b51a4b9f201c75d0464dfd1e0",
|
|
@@ -21,5 +21,5 @@
|
|
| 21 |
},
|
| 22 |
"scope": "local HTTPS standalone admin login, native drag and persistence; not HF runtime",
|
| 23 |
"passed": 5,
|
| 24 |
-
"tested_at_utc": "2026-10-28T16:
|
| 25 |
}
|
|
|
|
| 11 |
"cloud_runtime_files": {
|
| 12 |
"deploy/hf/adapter.py": "ef613fd33c30627d4caeaa75d59ec535bad5064c6f2629737834b83f01d444f8",
|
| 13 |
"deploy/hf/app.py": "857effc073f2ceb82bb22f121aff5b9444d247c57dbc48ed0d9ef5a10f38c40b",
|
| 14 |
+
"deploy/hf/prepare_image.py": "379b37ac75d221146f09b1ee0f91adcdc7d8f5e5b0041685f64599adf7500cca",
|
| 15 |
"deploy/hf/Dockerfile": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31",
|
| 16 |
"deploy/hf/preview_bridge.py": "9a5fe782621e8a9afe2ff199f294018ae4910c007244e350c31829eaaf19d093",
|
| 17 |
"deploy/hf/scoped_preview.py": "b56d5f537641a17ad993a540a4ba42af7a3c829b51a4b9f201c75d0464dfd1e0",
|
|
|
|
| 21 |
},
|
| 22 |
"scope": "local HTTPS standalone admin login, native drag and persistence; not HF runtime",
|
| 23 |
"passed": 5,
|
| 24 |
+
"tested_at_utc": "2026-10-28T16:50:19.844226+00:00"
|
| 25 |
}
|