claytonsamples commited on
Commit
d799b6a
·
verified ·
1 Parent(s): b0b1f38

Upload 6 files

Browse files
huggingface-runtime-update/README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: ControlSpec — Before an agent acts
3
+ emoji: 🧭
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: static
7
+ app_file: runtime.html
8
+ pinned: false
9
+ license: apache-2.0
10
+ short_description: Exact-action approval and evidence, alongside OpenShell
11
+ ---
12
+
13
+ # Before an agent acts
14
+
15
+ Explore 14 recorded probes through an actual NVIDIA OpenShell v0.1.2 sandbox,
16
+ authenticated TLS ControlSpec middleware, and a synthetic HTTPS purchase target.
17
+ Inspect exact approvals, changed amounts, replay, missing proof, native path
18
+ denial, direct-IP and control-plane attempts, and a middleware outage. Download
19
+ the original observations, effective policy, supervisor logs and recovery proof.
20
+
21
+ **Static evidence replay.** Scripted requests and test-operator approvals; no
22
+ live LLM, money or external actions. The runtime ran on Docker Desktop / WSL2.
23
+ Selected probes passed; this is not a production security certification or a
24
+ platform benchmark. A separate protocol lab preserves the earlier nine scenes;
25
+ its native comparison lane remains unrun.
26
+
27
+ [Source and reproduction](https://github.com/claytonsamples/controlspec/tree/main/integrations/openshell) ·
28
+ [Experimental releases](https://github.com/claytonsamples/controlspec/releases) ·
29
+ [Report a failure](https://github.com/claytonsamples/controlspec/issues)
30
+
31
+ The prior six-scene action demo and seven original reference examples remain
32
+ available through links in the app. Raw observations are downloadable. No signup
33
+ or keys are required. ControlSpec is independent; no NVIDIA or Hugging Face
34
+ endorsement is implied.
huggingface-runtime-update/index.html ADDED
The diff for this file is too large to render. See raw diff
 
huggingface-runtime-update/openshell-traces.json ADDED
The diff for this file is too large to render. See raw diff
 
huggingface-runtime-update/runtime-observations.json ADDED
The diff for this file is too large to render. See raw diff
 
huggingface-runtime-update/runtime-support.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1",
3
+ "synthetic_only": true,
4
+ "sandbox_id": "cf9877e9-b1d4-4c13-b919-f222cc9dae1f",
5
+ "runtime_report_sha256": "c0e375fd5b56c3e3185ed1a98880e70a87d68eea5ad3691dea327b6518eab414",
6
+ "controller_image": "ghcr.io/astral-sh/uv@sha256:531f855bda2c73cd6ef67d56b733b357cea384185b3022bd09f05e002cd144ca",
7
+ "supervisor_base": "ghcr.io/nvidia/openshell/supervisor@sha256:d7b5264bb6bc56f4796e6fa3617b8e4a8d785be0b7293542efd8cc250b0fb67a",
8
+ "supervisor_image_id": "sha256:6991babe94f436fb043f7d3510ba42517d6f248870e3cc852afc2a713f55fa3a",
9
+ "workload_image_id": "sha256:43618714a62a0fd0f1c6889aa6cbe9c1d618f459a69cb1c673da72d721ca9b7f",
10
+ "docker_version": "28.5.1",
11
+ "kernel": "6.6.87.2-microsoft-standard-WSL2",
12
+ "supervisor_logs": [
13
+ "2026-09-30T22:20:19.487Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
14
+ "2026-09-30T22:20:19.531Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
15
+ "2026-09-30T22:20:19.567Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:true]",
16
+ "2026-09-30T22:20:19.659Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
17
+ "2026-09-30T22:20:19.712Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
18
+ "2026-09-30T22:20:19.742Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:action_already_reserved]",
19
+ "2026-09-30T22:20:19.813Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
20
+ "2026-09-30T22:20:19.853Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
21
+ "2026-09-30T22:20:19.876Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:approval_required]",
22
+ "2026-09-30T22:20:19.943Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
23
+ "2026-09-30T22:20:19.980Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
24
+ "2026-09-30T22:20:20.007Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:approval_required]",
25
+ "2026-09-30T22:20:20.145Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
26
+ "2026-09-30T22:20:20.185Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
27
+ "2026-09-30T22:20:20.217Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:true]",
28
+ "2026-09-30T22:20:20.334Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
29
+ "2026-09-30T22:20:20.384Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
30
+ "2026-09-30T22:20:20.425Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:approval_required]",
31
+ "2026-09-30T22:20:20.575Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
32
+ "2026-09-30T22:20:20.623Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
33
+ "2026-09-30T22:20:20.635Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:action_changed]",
34
+ "2026-09-30T22:20:20.781Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
35
+ "2026-09-30T22:20:20.822Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
36
+ "2026-09-30T22:20:20.852Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:false reason:middleware_denied:controlspec-purchases:policy_denied]",
37
+ "2026-09-30T22:20:20.949Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
38
+ "2026-09-30T22:20:20.988Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
39
+ "2026-09-30T22:20:21.014Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:false transformed:true]",
40
+ "2026-09-30T22:20:21.208Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
41
+ "2026-09-30T22:20:21.253Z OCSF HTTP:GET [MED] DENIED GET http://host.openshell.internal:18081/state [policy:synthetic-purchase engine:l7] [reason:L7_REQUEST deny GET host.openshell.internal:18081/state reason=GET /state not permitted by policy]",
42
+ "2026-09-30T22:20:21.346Z OCSF NET:OPEN [MED] DENIED /usr/bin/curl(0) -> 172.30.0.2:18081 [reason:transparent_tcp_policy_denied]",
43
+ "2026-09-30T22:20:21.462Z OCSF NET:OPEN [MED] DENIED /usr/bin/curl(0) -> 172.30.0.2:17670 [reason:transparent_tcp_policy_denied]",
44
+ "2026-09-30T22:20:21.556Z OCSF NET:OPEN [MED] DENIED /usr/bin/curl(0) -> 172.30.0.2:50051 [reason:transparent_tcp_policy_denied]",
45
+ "2026-09-30T22:20:21.878Z OCSF NET:OPEN [INFO] ALLOWED /usr/bin/curl(0) -> host.openshell.internal:18081 [policy:synthetic-purchase engine:opa]",
46
+ "2026-09-30T22:20:21.920Z OCSF HTTP:POST [INFO] ALLOWED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:l7]",
47
+ "2026-09-30T22:20:21.921Z OCSF HTTP:POST [MED] DENIED POST http://host.openshell.internal:18081/purchases [policy:synthetic-purchase engine:middleware] [failed:true transformed:false reason:middleware_failed: external_service_error]"
48
+ ],
49
+ "recovery": {
50
+ "scenario": "middleware_recovery",
51
+ "command": [
52
+ "openshell",
53
+ "--gateway-endpoint",
54
+ "http://127.0.0.1:17670",
55
+ "sandbox",
56
+ "exec",
57
+ "--name",
58
+ "csrt-20260930-8e3f",
59
+ "--no-tty",
60
+ "--no-login-shell",
61
+ "--",
62
+ "/usr/bin/curl",
63
+ "-sS",
64
+ "-i",
65
+ "--max-time",
66
+ "12",
67
+ "https://host.openshell.internal:18081/purchases",
68
+ "-H",
69
+ "content-type: application/json",
70
+ "--data",
71
+ "{\"schema_version\":\"1\",\"action_id\":\"runtime-43e46fd5e9-recovery\",\"amount_minor\":4200,\"currency\":\"USD\",\"merchant\":\"demo-store\",\"recurring\":false}"
72
+ ],
73
+ "exit_code": 0,
74
+ "stdout": "HTTP/1.1 200 OK\ndate: Wed, 30 Sep 2026 22:21:47 GMT\nserver: uvicorn\ncontent-length: 618\ncontent-type: application/json\n\n{\"schema_version\":\"1\",\"synthetic_only\":true,\"status\":\"committed\",\"action_id\":\"runtime-43e46fd5e9-recovery\",\"scope\":{\"gateway_id\":\"controlspec-runtime-18a317b6341a\",\"sandbox_id\":\"cf9877e9-b1d4-4c13-b919-f222cc9dae1f\"},\"request_digest\":\"sha256:f7c068f1e05f61a3fb5dd6f658cbacf04d64e34a633caf35360ae663c2a977fa\",\"nonce\":\"3dde692254cedb2d1c061d5e0e7b3ba27b0f2467b4c94a262b68337ecc2a2d5e\",\"amount_minor\":4200,\"committed_at\":\"2026-09-30T22:21:48.071657Z\",\"evidence_id\":\"sha256:eaae0f87ecdb0d3a8f8c73821e670f583d7850f6d9a87f53a4c311603a823766\",\"evidence_mac\":\"e3fe357b29f5771c565a67bc36acd10be1686a159838700dc2cab1b6b13a1603\"}",
75
+ "stderr": "",
76
+ "http": {
77
+ "status": 200,
78
+ "headers": {
79
+ "date": "Wed, 30 Sep 2026 22:21:47 GMT",
80
+ "server": "uvicorn",
81
+ "content-length": "618",
82
+ "content-type": "application/json"
83
+ },
84
+ "body": {
85
+ "schema_version": "1",
86
+ "synthetic_only": true,
87
+ "status": "committed",
88
+ "action_id": "runtime-43e46fd5e9-recovery",
89
+ "scope": {
90
+ "gateway_id": "controlspec-runtime-18a317b6341a",
91
+ "sandbox_id": "cf9877e9-b1d4-4c13-b919-f222cc9dae1f"
92
+ },
93
+ "request_digest": "sha256:f7c068f1e05f61a3fb5dd6f658cbacf04d64e34a633caf35360ae663c2a977fa",
94
+ "nonce": "3dde692254cedb2d1c061d5e0e7b3ba27b0f2467b4c94a262b68337ecc2a2d5e",
95
+ "amount_minor": 4200,
96
+ "committed_at": "2026-09-30T22:21:48.071657Z",
97
+ "evidence_id": "sha256:eaae0f87ecdb0d3a8f8c73821e670f583d7850f6d9a87f53a4c311603a823766",
98
+ "evidence_mac": "e3fe357b29f5771c565a67bc36acd10be1686a159838700dc2cab1b6b13a1603"
99
+ }
100
+ },
101
+ "target_purchase_delta": 1,
102
+ "target_spend_delta_minor": 4200,
103
+ "completion_verified": true,
104
+ "effective_policy_unchanged": true,
105
+ "policy_after": {
106
+ "active_version": 2,
107
+ "config_revision": 16511938764146938059,
108
+ "hash": "672621067d5e56ef6db856be8c756d9a1529ef66327428263026eea079f779fd",
109
+ "policy": {
110
+ "filesystem_policy": {
111
+ "include_workdir": true,
112
+ "read_only": [
113
+ "/usr",
114
+ "/lib",
115
+ "/etc",
116
+ "/var/log",
117
+ "/proc",
118
+ "/dev/urandom"
119
+ ],
120
+ "read_write": [
121
+ "/tmp",
122
+ "/dev/null"
123
+ ]
124
+ },
125
+ "network_middlewares": {
126
+ "controlspec-purchases": {
127
+ "config": {
128
+ "profile": "synthetic-purchases-v1"
129
+ },
130
+ "endpoints": {
131
+ "include": [
132
+ "host.openshell.internal"
133
+ ]
134
+ },
135
+ "middleware": "controlspec-demo",
136
+ "name": "ControlSpec synthetic purchases",
137
+ "on_error": "fail_closed",
138
+ "order": 100
139
+ }
140
+ },
141
+ "network_policies": {
142
+ "synthetic-purchase": {
143
+ "binaries": [
144
+ {
145
+ "path": "/usr/bin/curl"
146
+ }
147
+ ],
148
+ "endpoints": [
149
+ {
150
+ "enforcement": "enforce",
151
+ "host": "host.openshell.internal",
152
+ "port": 18081,
153
+ "protocol": "rest",
154
+ "rules": [
155
+ {
156
+ "allow": {
157
+ "method": "POST",
158
+ "path": "/purchases"
159
+ }
160
+ }
161
+ ]
162
+ }
163
+ ],
164
+ "name": "Synthetic purchases"
165
+ }
166
+ },
167
+ "version": 1
168
+ },
169
+ "policy_source": "sandbox",
170
+ "sandbox": "csrt-20260930-8e3f",
171
+ "scope": "sandbox",
172
+ "status": "effective",
173
+ "version": 2
174
+ },
175
+ "synthetic_only": true,
176
+ "status": "passed"
177
+ }
178
+ }
huggingface-runtime-update/runtime.html ADDED
The diff for this file is too large to render. See raw diff