dellweb3 commited on
Commit
dd54b02
·
verified ·
1 Parent(s): 0109623

Deploy verified conversational workbench and isolated Java application previews

Browse files

Source 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": "5a0c7f6c3fcf9f5eecd17a602153c09c8f5d9147c0b55635c568137a0b192fbc",
6
- "probe": "ae4b3a078d070d16895886bb4860550e421d67e2dae0aa93ee7fe1def151e8bf"
 
 
 
 
 
 
 
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": "088cfca0d4edfc237d039549fe366fa39b68c358",
3
  "files": {
4
  "AGENTS.md": {
5
  "sha256": "4df6d563018fb1a26bb220f7e3732572cd9fffdc5129c6aa64eb80af98497e47",
@@ -74,7 +74,7 @@
74
  "bytes": 16581
75
  },
76
  "examples/hf-ingress-validation.json": {
77
- "sha256": "361281ea34c0a463d82c80b30b9e2d0ad9428e7858aab9fe934bd237a0b7f866",
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": "d3caa63f01a5a0587edf2c514769110023b764005b4c79edc0d21a502dd776ee",
138
- "bytes": 405
139
  },
140
  "deploy/hf/Dockerfile": {
141
  "sha256": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31",
@@ -150,8 +150,8 @@
150
  "bytes": 6124
151
  },
152
  "deploy/hf/prepare_image.py": {
153
- "sha256": "8c548bf8881ee0510fd65e5d2de6b464df3d4212bcc5f736363bbdaac32ff0c7",
154
- "bytes": 1600
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
- image=ROOT/'.local/tools/vm';control=ROOT/'src/modules/execution/container'
10
- database=ROOT/'.local/platform/knowledge.sqlite'
11
- with gzip.open(database.with_suffix('.sqlite.gz'),'rb') as source,database.open('wb') as target:
12
- import shutil
13
- shutil.copyfileobj(source,target)
14
- expected=json.loads((ROOT/'deploy/hf/knowledge-manifest.json').read_text())
15
- if hashlib.sha256(database.read_bytes()).hexdigest()!=expected['sha256']:raise RuntimeError('KNOWLEDGE_SNAPSHOT_MISMATCH')
16
- database.with_suffix('.sqlite.gz').unlink()
17
- baseline=json.loads((ROOT/'deploy/hf/base-vm-manifest.json').read_text())
18
- paths={'kernel':image/'kernel','rootfs':image/'rootfs.cpio.gz','worker':control/'vm_worker.py','probe':control/'probe.py'}
19
- for name,path in paths.items():
20
- if hashlib.sha256(path.read_bytes()).hexdigest()!=baseline[name]:raise RuntimeError('UNAPPROVED_VM_INPUT')
21
- paths['qemu']=ROOT/'.local/tools/qemu/qemu-system-x86_64.exe'
22
- manifest={name:hashlib.sha256(path.read_bytes()).hexdigest() for name,path in paths.items()}
23
- (image/'manifest.json').write_text(json.dumps(manifest,indent=2),encoding='utf-8')
24
- (image/'build-evidence.json').write_text(json.dumps({'backend':'qemu-tcg','platform':'linux-amd64','image':'zkcoding-qemu@sha256:'+digest(manifest),
25
- 'inputs':manifest,'runtime_repin':False},indent=2),encoding='utf-8')
 
 
 
 
 
 
 
 
 
 
 
 
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": "8c548bf8881ee0510fd65e5d2de6b464df3d4212bcc5f736363bbdaac32ff0c7",
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:36:12.718045+00:00"
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
  }