isHeSatoshi commited on
Commit
5db2981
·
verified ·
1 Parent(s): 2463232

Lore verified final release update

Browse files
PROJECT_README.md CHANGED
@@ -4,8 +4,9 @@ A text-to-SQL semantic layer that learns reusable database knowledge from verifi
4
 
5
  **Live demo:** [Lore](https://ishesatoshi-lore.hf.space), running on an existing
6
  free CPU Basic [HF Space](https://huggingface.co/spaces/isHeSatoshi/lore).
7
- A strict public-browser correction-and-reuse loop passes. Final patched-build
8
- security, keyboard/mobile and restart checks are in progress.
 
9
  See [hosting status and release steps](deploy/hf/README.md).
10
 
11
  ## The problem
@@ -309,23 +310,39 @@ export LORE_LLM_CONCURRENCY=4
309
  Run `.venv/bin/pytest -q` for local tests. For real HydraDB integration checks,
310
  run `LORE_INTEGRATION=1 .venv/bin/pytest -q`.
311
  The latest [integration-enabled release check](results/smoke/release_tests.hosted.json)
312
- passes all **168 tests**, with zero skips and all six runtime source hashes
313
  unchanged during the run. Ruff and the typed frontend build also pass.
 
 
 
314
  Use an unused validation run ID. The recorded `s1`–`s3` runs are historical
315
  calibrations, not results to overwrite with the final code.
316
 
317
- ## Built but not established by reported numbers
318
 
319
  The sandbox UI, correction confirmation, rule certification, seed round-trip,
320
  vector and flat implementations, paired reporting and deployment image exist.
321
  Full accuracy comparisons and a real four-database seeded cold start are now
322
  complete. All twelve teaching pairs and all 3,000 trained-load requests pass.
323
- Public-host checks remain a separate gate; tests are not substitutes for them.
 
 
 
324
 
325
  VM deployment instructions are in [`deploy/README.md`](deploy/README.md);
326
  the approved free-hosting route is in [`deploy/hf/README.md`](deploy/hf/README.md).
327
  The existing free CPU Space is running and the strict public-browser teaching
328
- loop passes. Patched-build security, keyboard/mobile and restart checks remain.
 
 
 
 
 
 
 
 
 
 
329
  New public GitHub repository creation is blocked by the integration's HTTP 403;
330
  no existing private repository was made public.
331
  The [submission handoff](SUBMISSION.md) tracks owner actions and outstanding gates.
 
4
 
5
  **Live demo:** [Lore](https://ishesatoshi-lore.hf.space), running on an existing
6
  free CPU Basic [HF Space](https://huggingface.co/spaces/isHeSatoshi/lore).
7
+ A strict public-browser correction-and-reuse loop, scoped access-control checks,
8
+ keyboard/mobile checks and hosted seed restoration pass.
9
+ See the [public validation evidence](results/r4/hosting_public.json).
10
  See [hosting status and release steps](deploy/hf/README.md).
11
 
12
  ## The problem
 
310
  Run `.venv/bin/pytest -q` for local tests. For real HydraDB integration checks,
311
  run `LORE_INTEGRATION=1 .venv/bin/pytest -q`.
312
  The latest [integration-enabled release check](results/smoke/release_tests.hosted.json)
313
+ passes all **171 tests**, with zero skips and all six runtime source hashes
314
  unchanged during the run. Ruff and the typed frontend build also pass.
315
+ The [fresh-clone check](results/smoke/clean_clone.hosted.json) separately passed
316
+ new Python/npm installs, 165 nonintegration tests and the real local HTTP
317
+ entrypoint, reusing downloaded BIRD data and the existing Hydra without restart.
318
  Use an unused validation run ID. The recorded `s1`–`s3` runs are historical
319
  calibrations, not results to overwrite with the final code.
320
 
321
+ ## Interactive validation and deployment limits
322
 
323
  The sandbox UI, correction confirmation, rule certification, seed round-trip,
324
  vector and flat implementations, paired reporting and deployment image exist.
325
  Full accuracy comparisons and a real four-database seeded cold start are now
326
  complete. All twelve teaching pairs and all 3,000 trained-load requests pass.
327
+ The [public browser trial](results/r4/hosting_browser.json) independently
328
+ re-executes SQL and confirms correction-to-transfer on toxicology. Its failed
329
+ school trial is retained. This is selected demo evidence, not a future-success
330
+ guarantee.
331
 
332
  VM deployment instructions are in [`deploy/README.md`](deploy/README.md);
333
  the approved free-hosting route is in [`deploy/hf/README.md`](deploy/hf/README.md).
334
  The existing free CPU Space is running and the strict public-browser teaching
335
+ loop passes. All four trained public graph projections match their pre-rebuild
336
+ hashes, with 345 MEANS rules restored. The visitor sandbox reset, as expected.
337
+ Seven desktop/mobile/error accessibility audits report zero violations.
338
+ The chart's incomplete automated contrast check has a separate rendered-color
339
+ check; this is not full WCAG certification.
340
+ The [native proof](results/r4/hosting_cold.json) exercises HF's hostname and
341
+ HTTPS routing: 22.32 seconds fresh, 5.03 seconds on restart, zero model calls.
342
+ These local startup times are not hosted latency guarantees.
343
+ No CSP, Referrer-Policy, X-Content-Type-Options or X-Frame-Options response header
344
+ was observed. Scoped access-control checks are not a complete security audit.
345
+ Free hosting can sleep and lose visitor state; model quotas still apply.
346
  New public GitHub repository creation is blocked by the integration's HTTP 403;
347
  no existing private repository was made public.
348
  The [submission handoff](SUBMISSION.md) tracks owner actions and outstanding gates.
results/r4/hosting_public.json ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "passed": true,
3
+ "scope": "Specific public runtime, restoration, file-access, read-only, browser, keyboard and accessibility checks; not a comprehensive security or WCAG certification.",
4
+ "at": "2026-11-15T23:14:48.303343+00:00",
5
+ "app_url": "https://ishesatoshi-lore.hf.space",
6
+ "allocation": {
7
+ "revision": "2463232b44060e8f502591b21d07894dd1d76f8b",
8
+ "public": true,
9
+ "stage": "RUNNING",
10
+ "current_hardware": "cpu-basic",
11
+ "requested_hardware": "cpu-basic"
12
+ },
13
+ "runtime_source_commit": "41bdcf1bd834d81dfaeacbf07511c95f2eef21e0",
14
+ "runtime_source_sha256": {
15
+ "lore/api.py": "07d3b2c6c1eaa6f84f8d0903290202a4535abe3e90aae8dd7004ebf8681f0537",
16
+ "lore/connection_pool.py": "171e352941015148d08183261c08662e775e979e3acdf6229e1958c319347735",
17
+ "lore/live_reader.py": "f9bf16ecc572bb5495b7c2709073a3e3446995bea790fe8b485fe6c70dbb7bdd",
18
+ "deploy/hf/app.py": "ff34d1d7b103184f597a3d4069bf6d1d6615d1607a40396dda774b0f48476680",
19
+ "deploy/hf/droid_runtime.py": "3e19b7d41d89f6ac574e6a572ef3313c73caf365c049983d7f809416c1bc227a",
20
+ "deploy/hf/FACTORY_NOTICE.md": "439e746d435366851887de25ac46cfae4760f8ce2ee632dce57cd11d56d12fb2"
21
+ },
22
+ "runtime_revision": "0281ca5454bbaddd2a0cd2deb0eccb0c81212908",
23
+ "frontend_source_commit": "749a7cc604f833bca2a82f93e26f5020c96cbb4e",
24
+ "frontend_revision": "2463232b44060e8f502591b21d07894dd1d76f8b",
25
+ "baseline_at": "2026-11-15T22:37:49.221Z",
26
+ "all_trained_semantic_projections_restored": true,
27
+ "graph_comparison": "Public API projection only. Recursively sort object keys; remove node used/new and edge id/used; sort records by canonical JSON using browser localeCompare. Edge IDs regenerate on seed import. Full private Hydra records are not audited here; native proof separately compares complete returned node/edge record multisets across restart.",
28
+ "runtime_checks": {
29
+ "at": "2026-11-15T23:14:05.265Z",
30
+ "current_script_paths": [
31
+ "/assets/index-AosEvqhi.js"
32
+ ],
33
+ "graphs": {
34
+ "california_schools": {
35
+ "edges": 138,
36
+ "means": 89,
37
+ "nodes": 123,
38
+ "semantic_sha256": "759b912321ca679dfcfd0fa99595eadf3c1f946beac08485877435e64b9c2490"
39
+ },
40
+ "superhero": {
41
+ "edges": 71,
42
+ "means": 49,
43
+ "nodes": 67,
44
+ "semantic_sha256": "297b27e2a4ae4f8c39f0a11d3c549a22c2ff28d931d370d5e1dc400a09a34247"
45
+ },
46
+ "thrombosis_prediction": {
47
+ "edges": 184,
48
+ "means": 135,
49
+ "nodes": 170,
50
+ "semantic_sha256": "66b2915d7ee93e835db110c8ab62dcc110f11b449a342b1ea7396ad3d1ba177d"
51
+ },
52
+ "toxicology": {
53
+ "edges": 83,
54
+ "means": 72,
55
+ "nodes": 62,
56
+ "semantic_sha256": "fd1ad21e31a24bab3aa5487d8f3963464b59b237abe4929d18e2b0da558f50ee"
57
+ }
58
+ },
59
+ "headers": {
60
+ "content-security-policy": null,
61
+ "referrer-policy": null,
62
+ "x-content-type-options": null,
63
+ "x-frame-options": null
64
+ },
65
+ "hosting_fetch_final_url": "https://ishesatoshi-lore.hf.space/hosting/",
66
+ "hosting_fetch_status": 200,
67
+ "hosting_gradio_roots": [
68
+ "https://ishesatoshi-lore.hf.space/hosting"
69
+ ],
70
+ "own_visitor_sandbox_after_rebuild": {
71
+ "edges": 0,
72
+ "nodes": 0
73
+ },
74
+ "paths": {
75
+ "/.env": {
76
+ "content_type": "application/json",
77
+ "status": 404
78
+ },
79
+ "/hosting/gradio_api/file=/home/user/.cache/lore-space/auth-token": {
80
+ "content_type": "application/json",
81
+ "status": 403
82
+ },
83
+ "/hosting/gradio_api/file=/home/user/app/data/bird/superhero.sqlite": {
84
+ "content_type": "application/json",
85
+ "status": 403
86
+ }
87
+ },
88
+ "root_status": 200,
89
+ "trained_certification_statuses": [
90
+ 403,
91
+ 403,
92
+ 403,
93
+ 403
94
+ ],
95
+ "trained_public_projection_unchanged": true
96
+ },
97
+ "strict_public_teaching": "hosting_browser.json, includes failed school trial and passing toxicology transfer; API/model/learning sources unchanged by origin/presentation fixes.",
98
+ "post_origin_fix_trained_query": {
99
+ "key": "s298",
100
+ "db": "toxicology",
101
+ "correct": true,
102
+ "full_reexecution": true,
103
+ "api_rows_agree": true,
104
+ "predicted_rows": 1,
105
+ "gold_rows": 1,
106
+ "sql": "SELECT CAST(COUNT(CASE WHEN T1.element = 'h' AND T2.label = '+' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id",
107
+ "rows": [
108
+ [
109
+ 17.22094171880145
110
+ ]
111
+ ],
112
+ "prompt_tokens": 2041,
113
+ "block_characters": 2677,
114
+ "ui_requests_with_model_work": 1,
115
+ "provider_usage_audit": false,
116
+ "note": "Fresh post-origin-fix trained-mode query, not another sandbox teaching trial."
117
+ },
118
+ "ui": {
119
+ "audits": {
120
+ "results/ui/hf-current-ask-desktop-a11y.json": {
121
+ "axe_version": "4.12.1",
122
+ "inapplicable": 42,
123
+ "incomplete": 0,
124
+ "passes": 47,
125
+ "violations": 0
126
+ },
127
+ "results/ui/hf-current-ask-mobile-a11y.json": {
128
+ "axe_version": "4.12.1",
129
+ "inapplicable": 42,
130
+ "incomplete": 0,
131
+ "passes": 47,
132
+ "violations": 0
133
+ },
134
+ "results/ui/hf-current-graph-desktop-a11y.json": {
135
+ "axe_version": "4.12.1",
136
+ "inapplicable": 45,
137
+ "incomplete": 0,
138
+ "passes": 44,
139
+ "violations": 0
140
+ },
141
+ "results/ui/hf-current-graph-mobile-a11y.json": {
142
+ "axe_version": "4.12.1",
143
+ "inapplicable": 44,
144
+ "incomplete": 0,
145
+ "passes": 45,
146
+ "violations": 0
147
+ },
148
+ "results/ui/hf-current-error-mobile-a11y.json": {
149
+ "axe_version": "4.12.1",
150
+ "inapplicable": 49,
151
+ "incomplete": 0,
152
+ "passes": 40,
153
+ "violations": 0
154
+ },
155
+ "results/ui/hf-final-proof-desktop-a11y.json": {
156
+ "axe_version": "4.12.1",
157
+ "inapplicable": 48,
158
+ "incomplete": 1,
159
+ "passes": 41,
160
+ "violations": 0
161
+ },
162
+ "results/ui/hf-final-proof-mobile-a11y.json": {
163
+ "axe_version": "4.12.1",
164
+ "inapplicable": 47,
165
+ "incomplete": 1,
166
+ "passes": 42,
167
+ "violations": 0
168
+ }
169
+ },
170
+ "knowledge_keyboard_scroll": {
171
+ "after": 31,
172
+ "before": 0,
173
+ "focused": true,
174
+ "outline": "rgb(76, 102, 60) solid 3px"
175
+ },
176
+ "mobile_proof_keyboard_scroll": {
177
+ "focused": "System comparison table",
178
+ "page": 390,
179
+ "proofTableScrollLeft": 30,
180
+ "viewport": 390
181
+ },
182
+ "simulated_error_recovery": {
183
+ "askEnabled": true,
184
+ "model_requests": 0,
185
+ "page": 390,
186
+ "staleAnswerRemoved": true,
187
+ "synthetic": true,
188
+ "viewport": 390,
189
+ "visibleError": "Simulated temporary service issue. Please retry."
190
+ },
191
+ "manual_chart_contrast": {
192
+ "minimum_required": 4.5,
193
+ "minimum_observed": 5.680892953588579,
194
+ "observations": [
195
+ {
196
+ "background": "rgb(255, 255, 255)",
197
+ "color": "rgb(41, 95, 77)",
198
+ "text": "Lore",
199
+ "contrast_ratio": 7.398713363053667
200
+ },
201
+ {
202
+ "background": "rgb(255, 255, 255)",
203
+ "color": "rgb(103, 98, 139)",
204
+ "text": "Vector memory",
205
+ "contrast_ratio": 5.680892953588579
206
+ },
207
+ {
208
+ "background": "rgb(255, 255, 255)",
209
+ "color": "rgb(83, 96, 76)",
210
+ "text": "0",
211
+ "contrast_ratio": 6.676609625094115
212
+ },
213
+ {
214
+ "background": "rgb(255, 255, 255)",
215
+ "color": "rgb(83, 96, 76)",
216
+ "text": "250",
217
+ "contrast_ratio": 6.676609625094115
218
+ },
219
+ {
220
+ "background": "rgb(255, 255, 255)",
221
+ "color": "rgb(83, 96, 76)",
222
+ "text": "500",
223
+ "contrast_ratio": 6.676609625094115
224
+ },
225
+ {
226
+ "background": "rgb(255, 255, 255)",
227
+ "color": "rgb(83, 96, 76)",
228
+ "text": "750",
229
+ "contrast_ratio": 6.676609625094115
230
+ },
231
+ {
232
+ "background": "rgb(255, 255, 255)",
233
+ "color": "rgb(83, 96, 76)",
234
+ "text": "864",
235
+ "contrast_ratio": 6.676609625094115
236
+ },
237
+ {
238
+ "background": "rgb(255, 255, 255)",
239
+ "color": "rgb(83, 96, 76)",
240
+ "text": "Stream questions seen",
241
+ "contrast_ratio": 6.676609625094115
242
+ },
243
+ {
244
+ "background": "rgb(255, 255, 255)",
245
+ "color": "rgb(83, 96, 76)",
246
+ "text": "0%",
247
+ "contrast_ratio": 6.676609625094115
248
+ },
249
+ {
250
+ "background": "rgb(255, 255, 255)",
251
+ "color": "rgb(83, 96, 76)",
252
+ "text": "25%",
253
+ "contrast_ratio": 6.676609625094115
254
+ },
255
+ {
256
+ "background": "rgb(255, 255, 255)",
257
+ "color": "rgb(83, 96, 76)",
258
+ "text": "50%",
259
+ "contrast_ratio": 6.676609625094115
260
+ },
261
+ {
262
+ "background": "rgb(255, 255, 255)",
263
+ "color": "rgb(83, 96, 76)",
264
+ "text": "75%",
265
+ "contrast_ratio": 6.676609625094115
266
+ },
267
+ {
268
+ "background": "rgb(255, 255, 255)",
269
+ "color": "rgb(83, 96, 76)",
270
+ "text": "100%",
271
+ "contrast_ratio": 6.676609625094115
272
+ },
273
+ {
274
+ "background": "rgb(255, 255, 255)",
275
+ "color": "rgb(83, 96, 76)",
276
+ "text": "floor",
277
+ "contrast_ratio": 6.676609625094115
278
+ },
279
+ {
280
+ "background": "rgb(255, 255, 255)",
281
+ "color": "rgb(83, 96, 76)",
282
+ "text": "ceiling",
283
+ "contrast_ratio": 6.676609625094115
284
+ },
285
+ {
286
+ "background": "rgb(255, 255, 255)",
287
+ "color": "rgb(83, 96, 76)",
288
+ "text": "Flat",
289
+ "contrast_ratio": 6.676609625094115
290
+ }
291
+ ],
292
+ "prior_failure": "../ui/hf-chart-contrast.before.json"
293
+ },
294
+ "limitation": "Proof chart triggers an incomplete automated color-contrast check; rendered SVG/legend colors on their computed white background were separately checked with the WCAG relative-luminance formula. No full manual accessibility certification."
295
+ },
296
+ "failed_hosted_attempts": [
297
+ {
298
+ "all_trained_semantic_projections_restored": true,
299
+ "at": "2026-11-15T22:52:12.710Z",
300
+ "current_script_paths": [
301
+ "/assets/index-Dbg-P8sf.js"
302
+ ],
303
+ "graphs": {
304
+ "california_schools": {
305
+ "edges": 138,
306
+ "means": 89,
307
+ "nodes": 123,
308
+ "semantic_sha256": "759b912321ca679dfcfd0fa99595eadf3c1f946beac08485877435e64b9c2490"
309
+ },
310
+ "superhero": {
311
+ "edges": 71,
312
+ "means": 49,
313
+ "nodes": 67,
314
+ "semantic_sha256": "297b27e2a4ae4f8c39f0a11d3c549a22c2ff28d931d370d5e1dc400a09a34247"
315
+ },
316
+ "thrombosis_prediction": {
317
+ "edges": 184,
318
+ "means": 135,
319
+ "nodes": 170,
320
+ "semantic_sha256": "66b2915d7ee93e835db110c8ab62dcc110f11b449a342b1ea7396ad3d1ba177d"
321
+ },
322
+ "toxicology": {
323
+ "edges": 83,
324
+ "means": 72,
325
+ "nodes": 62,
326
+ "semantic_sha256": "fd1ad21e31a24bab3aa5487d8f3963464b59b237abe4929d18e2b0da558f50ee"
327
+ }
328
+ },
329
+ "hosting_config_uses_https": false,
330
+ "hosting_fetch_final_url": "https://ishesatoshi-lore.hf.space/hosting/",
331
+ "hosting_fetch_status": 404,
332
+ "own_visitor_sandbox_after_rebuild": {
333
+ "edges": 0,
334
+ "nodes": 0,
335
+ "status": 200
336
+ },
337
+ "passed": false,
338
+ "revision": "4298813254b579d27fc56825a987744e002f059d",
339
+ "failure": "Full-URL Gradio root_path returned 404 in HF HTTPS environment; main React/API remained healthy. Local validator had not set SPACE_HOST."
340
+ }
341
+ ],
342
+ "limitations": [
343
+ "No CSP, Referrer-Policy, X-Content-Type-Options or X-Frame-Options header was observed. The verified access controls are not a complete security audit.",
344
+ "Free CPU hosting/storage can sleep/reset; visitor sandbox loss was observed and is expected.",
345
+ "Model request limits can be shared behind the hosting proxy; this is not a hosted load or uptime guarantee.",
346
+ "Strict public teaching is selected demonstration evidence, not a future-success guarantee or full provider-usage audit."
347
+ ]
348
+ }
results/r4/hosting_publish.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "at": "2026-11-15T22:41:21.906484+00:00",
3
  "space_url": "https://huggingface.co/spaces/isHeSatoshi/lore",
4
  "app_url": "https://ishesatoshi-lore.hf.space",
5
  "public": true,
@@ -65,5 +65,10 @@
65
  "creation_error": "HTTP 403 Resource not accessible by integration",
66
  "graphql_and_rest_both_denied": true,
67
  "existing_private_repo_visibility_changed": false
68
- }
 
 
 
 
 
69
  }
 
1
  {
2
+ "at": "2026-11-15T23:14:48.303343+00:00",
3
  "space_url": "https://huggingface.co/spaces/isHeSatoshi/lore",
4
  "app_url": "https://ishesatoshi-lore.hf.space",
5
  "public": true,
 
65
  "creation_error": "HTTP 403 Resource not accessible by integration",
66
  "graphql_and_rest_both_denied": true,
67
  "existing_private_repo_visibility_changed": false
68
+ },
69
+ "verified_runtime_revision": "0281ca5454bbaddd2a0cd2deb0eccb0c81212908",
70
+ "verified_frontend_revision": "2463232b44060e8f502591b21d07894dd1d76f8b",
71
+ "final_public_checks": "hosting_public.json",
72
+ "public_checks_passed": true,
73
+ "latest_reviewed_snapshot": "lore-space-114bym2a"
74
  }