Spaces:
Sleeping
Sleeping
Download examples/dependency-recovery-validation.json from dellweb3/VibeCoding: direct link, hf CLI and curl.
- Browser
- Download file 29.5 kB
-
https://huggingface.co/spaces/dellweb3/VibeCoding/resolve/main/examples/dependency-recovery-validation.json
- Command line
-
hf download hf://spaces/dellweb3/VibeCoding/examples/dependency-recovery-validation.json
-
curl -L -o dependency-recovery-validation.json https://huggingface.co/spaces/dellweb3/VibeCoding/resolve/main/examples/dependency-recovery-validation.json
29.5 kB
| { | |
| "platform_code_digest": "93df1f49cf2297ffdb8edeff3a27e300025e5d62eb18e0aaf6d2a584950f070e", | |
| "browser": { | |
| "localization": { | |
| "checks": [ | |
| "Original wizard submits an explicit recovery policy; conversation tail shows actual phase, elapsed time and read freshness instead of dots", | |
| "Controlled GET interruption is visible and retries the same task without re-submitting", | |
| "Repeated compile failure is localized, repaired within the original budget and reaches 39 protected HTTP passes", | |
| "Recovered files and diff are reviewable; separate Java website calculates and rejects division by zero; original workbench and narrow layout remain usable" | |
| ], | |
| "errors": [], | |
| "controlled_failure": true, | |
| "external_model_calls": 0, | |
| "platform_code_digest": "93df1f49cf2297ffdb8edeff3a27e300025e5d62eb18e0aaf6d2a584950f070e", | |
| "fixture_budget_max_repairs": 2, | |
| "original_run": "run-62d7d9dde0b34cfeafda9355f01eb185", | |
| "final_run": "run-62d7d9dde0b34cfeafda9355f01eb185", | |
| "protected_http_cases": 39, | |
| "controlled_provider_calls": 5, | |
| "passed": 4 | |
| }, | |
| "https": { | |
| "checks": [ | |
| "original conversation shell and all three real sessions work over HTTPS with secure cookies", | |
| "foreign-origin mutation is rejected before entering the local app", | |
| "workbench preview click opens the actual Java calculator on the same public HTTPS origin; decimal and error paths operate", | |
| "application refresh is usable and original workbench remains at root", | |
| "fresh third-party iframe and null WindowProxy popup receive only an authorized manager lease capability and run real Java", | |
| "popup receives the exact parent identity; an independent programmer remains denied" | |
| ], | |
| "errors": [], | |
| "platform_code_digest": "93df1f49cf2297ffdb8edeff3a27e300025e5d62eb18e0aaf6d2a584950f070e", | |
| "cloud_runtime_files": { | |
| "deploy/hf/adapter.py": "0088b19648ab9661bb6eb6bdf4fa34de368f5fe5d6c347a58504c60331f42e95", | |
| "deploy/hf/app.py": "0e8a5729b5e99aae88c277d718e0afa6de21350515f92452996d10deac7612f3", | |
| "deploy/hf/prepare_image.py": "8c548bf8881ee0510fd65e5d2de6b464df3d4212bcc5f736363bbdaac32ff0c7", | |
| "deploy/hf/Dockerfile": "e18a9d956fec5943436409223be6ec5df6f85be46980a58458e02c9ce3439f31", | |
| "deploy/hf/preview_bridge.py": "9a5fe782621e8a9afe2ff199f294018ae4910c007244e350c31829eaaf19d093", | |
| "deploy/hf/scoped_preview.py": "278f70a4cff3b6fabf26d66a648910518356aa6efeba2a46b4a45f4332eee5bf", | |
| "deploy/hf/preview-parent.js": "3f4dcde23d39cce65b597059ad42d759f8c4b35a76813a2c0f6ffb7483f9a442", | |
| "deploy/hf/preview-bridge.js": "436c295efd8631f88cbcc46021a14f53173e3c4f6e471e63fcf8b3c1fe6ec014", | |
| "deploy/hf/preview-bridge.html": "0f709ec2027d6f623cfa5c4b6aad4f104355895fdc768907b8c6dd31a52b06cc" | |
| }, | |
| "scope": "local HTTPS ingress, not HF runtime", | |
| "receipt": { | |
| "source_digest": "b80e5c95d1153f8e664d4b7bac3701d52fecab2a41de12e5a49ea0fd795cd7a4", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "config_digest": "ec1c941302d1f0bf34512b9b524f7c8dc5bfd523f22fe50093f8cd757cdfc848", | |
| "classes_digest": "779f483b28864a212c3e199cedc317c3664d207bc8eab14f7d48e47d6be085ad", | |
| "tests": 39, | |
| "network": "none", | |
| "host_mounts": [] | |
| }, | |
| "passed": 6, | |
| "tested_at_utc": "2026-10-24T05:48:36.861647+00:00" | |
| }, | |
| "three_apps": { | |
| "checks": [ | |
| "erp: exact HF-generated source passes protected tests again, real website operates and refreshes independently", | |
| "calculator: exact HF-generated source passes protected tests again, real website operates and refreshes independently", | |
| "pdf: exact HF-generated source passes protected tests again, real website operates and refreshes independently", | |
| "All three independent real Java websites coexist; original conversation workbench stays at its entry" | |
| ], | |
| "errors": [], | |
| "scenarios": { | |
| "erp": { | |
| "generation_run": "run-8f523ff16b6b4c95832e46b4b6110a8d", | |
| "source_digest": "86f2fd3b99c6f8b21ceb2595171ed841194fcc7c791b60ea1a8cf0d90d6ba1be", | |
| "lease": "3e50b8de27e94ce78901cbfb5b62cf5d", | |
| "receipt": { | |
| "source_digest": "86f2fd3b99c6f8b21ceb2595171ed841194fcc7c791b60ea1a8cf0d90d6ba1be", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "config_digest": "841129aac9dd785fe877d72002533547377a93994d0afb830dadb1273b51389a", | |
| "classes_digest": "ba589b760a2583fe523da87f68e84a69e3914972b2cb6417c9a44f768ba604a1", | |
| "tests": 25, | |
| "network": "none", | |
| "host_mounts": [] | |
| } | |
| }, | |
| "calculator": { | |
| "generation_run": "run-4e2329b555864957bc5b477ae1432717", | |
| "source_digest": "e1c26eeccec092a09b3481bc6f601f6f02b043b0e0e41219ff67a2e295b6a798", | |
| "lease": "c2c0b69ee9fe42788c640bbbc41b721c", | |
| "receipt": { | |
| "source_digest": "e1c26eeccec092a09b3481bc6f601f6f02b043b0e0e41219ff67a2e295b6a798", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "config_digest": "ec1c941302d1f0bf34512b9b524f7c8dc5bfd523f22fe50093f8cd757cdfc848", | |
| "classes_digest": "31888e310a086e6807cc096b7bdb06164ae9a556c8f582228d9e9d7b43b0b6cf", | |
| "tests": 39, | |
| "network": "none", | |
| "host_mounts": [] | |
| } | |
| }, | |
| "pdf": { | |
| "generation_run": "run-415025244a2a42f09cb63bc4e17902ca", | |
| "source_digest": "9f3208baf0d4fa933050bde2753eee151517a6e197f2983a14bfdc7c92d9e79b", | |
| "lease": "1303f1ab52e943f68fb29389516cc6c6", | |
| "receipt": { | |
| "source_digest": "9f3208baf0d4fa933050bde2753eee151517a6e197f2983a14bfdc7c92d9e79b", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "config_digest": "128defe2109c8b7693134f252f9235bc863b5915fc11d640b8bd52394e589c72", | |
| "classes_digest": "84d779e18a69c02f3dd173aa8899c5eb2a4688958424aebdacb467c44c50e3fe", | |
| "tests": 23, | |
| "network": "none", | |
| "host_mounts": [] | |
| } | |
| } | |
| }, | |
| "external_model_calls": 0, | |
| "platform_code_digest": "93df1f49cf2297ffdb8edeff3a27e300025e5d62eb18e0aaf6d2a584950f070e", | |
| "scope": "Exact prior HF-generated source replay on local QEMU, not a new cloud generation", | |
| "passed": 4 | |
| }, | |
| "main": { | |
| "passed": 3, | |
| "checks": [ | |
| "Original 8789 shell and three real users remain usable", | |
| "8810 QA was separate: production workbench still uses 8789 and independent 8791 previews", | |
| "Wizard injects full brief into original composer and discloses bounded recovery before send" | |
| ], | |
| "errors": [], | |
| "model_calls_started": 0, | |
| "platform_code_digest": "93df1f49cf2297ffdb8edeff3a27e300025e5d62eb18e0aaf6d2a584950f070e" | |
| } | |
| }, | |
| "unit_tests": { | |
| "total": 255, | |
| "passed": 253, | |
| "skipped": 2 | |
| }, | |
| "hf_unit_tests": { | |
| "passed": 27 | |
| }, | |
| "real_model_repair": { | |
| "status": "verified", | |
| "origin": "run-5f29adca2f124701a0833fefb0ea2ff1", | |
| "run_id": "run-fa45e3ec4b2e48e599c6e799a6f51547", | |
| "analysis": { | |
| "summary": "Root cause: The trailing-character check in calc() uses a fresh local `int pos=0` instead of the parser's mutable cursor `p[0]`. After parseSum(\"2+3\", p) returns, p[0]==3 (end of input), but `pos` is reset to 0. The loop `while(pos<expr.length()&&expr.charAt(pos)==' ') pos++;` finds no spaces, leaving pos==0. Then `if(pos!=expr.length())` evaluates `0!=3`, which is true, so every valid expression incorrectly returns 400 INVALID_EXPRESSION. This branch is the only path producing that exact status and body for these inputs. Fix: Replace `int pos=0; while(pos<expr.length()&&expr.charAt(pos)==' ') pos++; if(pos!=expr.length())` with `int[] p=new int[]{0}; ... int pos=p[0]; while(pos<expr.length()&&expr.charAt(pos)==' ') pos++; if(pos!=expr.length())`. Pass `p` into parseSum and reuse it for the end-of-input check." | |
| }, | |
| "source": { | |
| "files": { | |
| "src/main/java/demo/App.java": "package demo;\n\nimport com.sun.net.httpserver.HttpServer;\nimport com.sun.net.httpserver.HttpExchange;\nimport java.io.*;\nimport java.math.*;\nimport java.net.InetSocketAddress;\nimport java.nio.ByteBuffer;\nimport java.nio.CharBuffer;\nimport java.nio.charset.*;\nimport java.util.Base64;\n\npublic class App {\n static int ops, depth;\n public static void main(String[] args) throws Exception {\n HttpServer s = HttpServer.create(new InetSocketAddress(8080), 0);\n s.createContext(\"/\", App::handle);\n s.setExecutor(null);\n s.start();\n }\n static void handle(HttpExchange x) throws IOException {\n try { doHandle(x); } finally { x.close(); }\n }\n static void doHandle(HttpExchange x) throws IOException {\n String p = x.getRequestURI().getPath();\n if (p.equals(\"/health\")) {\n if (!x.getRequestMethod().equals(\"GET\")) { send(x,405,\"{\\\"error\\\":\\\"METHOD_NOT_ALLOWED\\\"}\"); return; }\n send(x,200,\"{\\\"status\\\":\\\"ok\\\"}\"); return;\n }\n if (p.equals(\"/api/calculate\")) {\n if (!x.getRequestMethod().equals(\"GET\")) { send(x,405,\"{\\\"error\\\":\\\"METHOD_NOT_ALLOWED\\\"}\"); return; }\n String a = x.getRequestHeaders().getFirst(\"Authorization\");\n if (a==null||!a.equals(\"Bearer demo-calculator\")) { send(x,401,\"{\\\"error\\\":\\\"UNAUTHORIZED\\\"}\"); return; }\n calc(x); return;\n }\n send(x,404,\"{\\\"error\\\":\\\"NOT_FOUND\\\"}\");\n }\n static void calc(HttpExchange x) throws IOException {\n String q = x.getRequestURI().getRawQuery();\n if (q==null||q.isEmpty()) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n String[] ps = q.split(\"&\");\n if (ps.length!=1) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n int eq = ps[0].indexOf('=');\n if (eq<0||!ps[0].substring(0,eq).equals(\"expression64\")) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n String v = ps[0].substring(eq+1);\n if (v.isEmpty()||v.length()>256) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n for (int i=0;i<v.length();i++) { char c=v.charAt(i); if (!((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')||c=='-'||c=='_')) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; } }\n byte[] b; try { b=Base64.getUrlDecoder().decode(v); } catch(Exception e) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n CharsetDecoder d=StandardCharsets.UTF_8.newDecoder().onMalformedInput(CodingErrorAction.REPORT).onUnmappableCharacter(CodingErrorAction.REPORT);\n CharBuffer cb; try { cb=d.decode(ByteBuffer.wrap(b)); } catch(Exception e) { send(x,400,\"{\\\"error\\\":\\\"INVALID_INPUT\\\"}\"); return; }\n String expr=cb.toString();\n if (expr.length()>128) { send(x,422,\"{\\\"error\\\":\\\"LIMIT_EXCEEDED\\\"}\"); return; }\n ops=0; depth=0;\n int[] p=new int[]{0};\n BigDecimal r; try { r=parseSum(expr,p); } catch(RE e) { send(x,e.c,e.m); return; }\n int pos=p[0]; while(pos<expr.length()&&expr.charAt(pos)==' ') pos++;\n if (pos!=expr.length()) { send(x,400,\"{\\\"error\\\":\\\"INVALID_EXPRESSION\\\"}\"); return; }\n r=r.setScale(12,RoundingMode.HALF_UP).stripTrailingZeros();\n String rs=r.compareTo(BigDecimal.ZERO)==0?\"0\":r.toPlainString();\n String j=\"{\\\"expression\\\":\\\"\"+expr.replace(\"\\\\\",\"\\\\\\\\\").replace(\"\\\"\",\"\\\\\\\"\")+\"\\\",\\\"result\\\":\\\"\"+rs+\"\\\"}\";\n send(x,200,j);\n }\n static void send(HttpExchange x,int c,String b) throws IOException {\n byte[] by=b.getBytes(StandardCharsets.UTF_8);\n x.getResponseHeaders().set(\"Content-Type\",\"application/json;charset=utf-8\");\n x.sendResponseHeaders(c,by.length);\n try(OutputStream o=x.getResponseBody()){o.write(by);}\n }\n static class RE extends RuntimeException { String m; int c; RE(int c,String m){this.c=c;this.m=\"{\\\"error\\\":\\\"\"+m+\"\\\"}\";} }\n static void chk(BigDecimal v) { if(v.abs().compareTo(new BigDecimal(\"1E+24\"))>0) throw new RE(422,\"LIMIT_EXCEEDED\"); }\n static BigDecimal parseSum(String e,int[] p) {\n BigDecimal l=parseProduct(e,p);\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n while(p[0]<e.length()&&(e.charAt(p[0])=='+'||e.charAt(p[0])=='-')) {\n char op=e.charAt(p[0]); p[0]++; if(++ops>64) throw new RE(422,\"LIMIT_EXCEEDED\");\n BigDecimal r=parseProduct(e,p);\n l=op=='+'?l.add(r,MathContext.DECIMAL128):l.subtract(r,MathContext.DECIMAL128); chk(l);\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n }\n return l;\n }\n static BigDecimal parseProduct(String e,int[] p) {\n BigDecimal l=parseUnary(e,p);\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n while(p[0]<e.length()&&(e.charAt(p[0])=='*'||e.charAt(p[0])=='/')) {\n char op=e.charAt(p[0]); p[0]++; if(++ops>64) throw new RE(422,\"LIMIT_EXCEEDED\");\n BigDecimal r=parseUnary(e,p);\n if(op=='*'){l=l.multiply(r,MathContext.DECIMAL128);}else{if(r.signum()==0)throw new RE(400,\"DIVISION_BY_ZERO\");l=l.divide(r,30,RoundingMode.HALF_UP);}\n chk(l); while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n }\n return l;\n }\n static BigDecimal parseUnary(String e,int[] p) {\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n if(p[0]>=e.length()) throw new RE(400,\"INVALID_EXPRESSION\");\n if(e.charAt(p[0])=='+'||e.charAt(p[0])=='-') {\n int s=1;\n while(p[0]<e.length()&&(e.charAt(p[0])=='+'||e.charAt(p[0])=='-')) {\n if(e.charAt(p[0])=='-') s=-s; p[0]++; if(++ops>64) throw new RE(422,\"LIMIT_EXCEEDED\");\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n }\n BigDecimal v=parseAtom(e,p); return s==-1?v.negate():v;\n }\n return parseAtom(e,p);\n }\n static BigDecimal parseAtom(String e,int[] p) {\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n if(p[0]>=e.length()) throw new RE(400,\"INVALID_EXPRESSION\");\n if(e.charAt(p[0])=='(') {\n p[0]++; if(++depth>16) throw new RE(422,\"LIMIT_EXCEEDED\");\n BigDecimal v=parseSum(e,p);\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n if(p[0]>=e.length()||e.charAt(p[0])!=')') throw new RE(400,\"INVALID_EXPRESSION\");\n p[0]++; depth--; return v;\n }\n return parseNum(e,p);\n }\n static BigDecimal parseNum(String e,int[] p) {\n while(p[0]<e.length()&&e.charAt(p[0])==' ') p[0]++;\n int s=p[0]; boolean dot=false; boolean hasDigit=false;\n while(p[0]<e.length()&&(e.charAt(p[0])>='0'&&e.charAt(p[0])<='9'||e.charAt(p[0])=='.')) {\n if(e.charAt(p[0])=='.') { if(dot) break; dot=true; } else { hasDigit=true; } p[0]++;\n }\n if(!hasDigit) throw new RE(400,\"INVALID_EXPRESSION\");\n if(dot&&p[0]>s+1&&e.charAt(p[0]-1)=='.') throw new RE(400,\"INVALID_EXPRESSION\");\n String t=e.substring(s,p[0]);\n int dc=0; for(int i=0;i<t.length();i++) if(t.charAt(i)>='0'&&t.charAt(i)<='9') dc++;\n if(dc>24) throw new RE(422,\"LIMIT_EXCEEDED\");\n BigDecimal v=new BigDecimal(t); chk(v); return v;\n }\n}" | |
| }, | |
| "source_digest": "235d2b5bc9d1583691fece244daafbb9994a730cd26305e88402cc65973008e2" | |
| }, | |
| "candidate": { | |
| "source_digest": "235d2b5bc9d1583691fece244daafbb9994a730cd26305e88402cc65973008e2", | |
| "classes_digest": "6ad41c4e8745087648e92d02c503575abcf07e69a7455b34f1b8606a1bcbc4f2", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", | |
| "config_digest": "ec1c941302d1f0bf34512b9b524f7c8dc5bfd523f22fe50093f8cd757cdfc848", | |
| "execution_mode": "qemu", | |
| "container": "zk-run-33c6f3ed0a6d4be7bbf5c79af3ca4e55", | |
| "stage": "build", | |
| "passed": true, | |
| "receipt_ref": "run-33c6f3ed0a6d4be7bbf5c79af3ca4e55-b5314964b0c842cb90f1dafbf3ab4914", | |
| "receipt_digest": "985604d60097aa1f7d4d0d690187a4c58e4162c3ecef4849e568fac6e1feaae7", | |
| "isolation": { | |
| "network": "none", | |
| "host_mounts": [], | |
| "memory_mb": 1024, | |
| "vcpu": 1, | |
| "disposable": true | |
| } | |
| }, | |
| "test": { | |
| "source_digest": "235d2b5bc9d1583691fece244daafbb9994a730cd26305e88402cc65973008e2", | |
| "classes_digest": "6ad41c4e8745087648e92d02c503575abcf07e69a7455b34f1b8606a1bcbc4f2", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", | |
| "config_digest": "ec1c941302d1f0bf34512b9b524f7c8dc5bfd523f22fe50093f8cd757cdfc848", | |
| "execution_mode": "qemu", | |
| "container": "zk-run-33c6f3ed0a6d4be7bbf5c79af3ca4e55", | |
| "stage": "test", | |
| "passed": true, | |
| "receipt_ref": "run-33c6f3ed0a6d4be7bbf5c79af3ca4e55-b5314964b0c842cb90f1dafbf3ab4914", | |
| "receipt_digest": "985604d60097aa1f7d4d0d690187a4c58e4162c3ecef4849e568fac6e1feaae7", | |
| "isolation": { | |
| "network": "none", | |
| "host_mounts": [], | |
| "memory_mb": 1024, | |
| "vcpu": 1, | |
| "disposable": true | |
| }, | |
| "cases": 39, | |
| "passed_cases": 39, | |
| "preview_scope": "disposable-vm-loopback-http" | |
| }, | |
| "preview": { | |
| "source_digest": "235d2b5bc9d1583691fece244daafbb9994a730cd26305e88402cc65973008e2", | |
| "classes_digest": "6ad41c4e8745087648e92d02c503575abcf07e69a7455b34f1b8606a1bcbc4f2", | |
| "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", | |
| "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", | |
| "config_digest": "ec1c941302d1f0bf34512b9b524f7c8dc5bfd523f22fe50093f8cd757cdfc848", | |
| "execution_mode": "qemu", | |
| "container": "zk-run-33c6f3ed0a6d4be7bbf5c79af3ca4e55", | |
| "stage": "preview", | |
| "passed": true, | |
| "receipt_ref": "run-33c6f3ed0a6d4be7bbf5c79af3ca4e55-b5314964b0c842cb90f1dafbf3ab4914", | |
| "receipt_digest": "985604d60097aa1f7d4d0d690187a4c58e4162c3ecef4849e568fac6e1feaae7", | |
| "isolation": { | |
| "network": "none", | |
| "host_mounts": [], | |
| "memory_mb": 1024, | |
| "vcpu": 1, | |
| "disposable": true | |
| }, | |
| "cases": 1, | |
| "passed_cases": 1, | |
| "preview_scope": "disposable-vm-loopback-http" | |
| }, | |
| "model_calls": [ | |
| { | |
| "id": 1, | |
| "run_id": "run-fa45e3ec4b2e48e599c6e799a6f51547", | |
| "reservation": 16112, | |
| "charged": 4079, | |
| "state": "settled", | |
| "provider": "bailian-qwen3.8-max", | |
| "prompt_digest": "d4861366ccadd8ce9b7ee61715bfb71bc7b7e8aa005bf265e5dab91c7ed6013c", | |
| "metadata": { | |
| "finish_reason": "stop", | |
| "model": "qwen3.8-max", | |
| "policy_version": "bailian-task-routing-v3", | |
| "request_id": "chatcmpl-068b22cc-4ca0-9c07-a8ed-6ac997e17d4c", | |
| "requested_output_tokens": 2048, | |
| "retry_of": null, | |
| "route_reason": "failure-localization", | |
| "stage": "diagnose" | |
| } | |
| }, | |
| { | |
| "id": 2, | |
| "run_id": "run-fa45e3ec4b2e48e599c6e799a6f51547", | |
| "reservation": 26946, | |
| "charged": 6471, | |
| "state": "settled", | |
| "provider": "bailian-qwen3.8-max", | |
| "prompt_digest": "b04e80b6b1f079ca22822a75d3eeac321d40ae52791333ff7ac7efce3b068fc7", | |
| "metadata": { | |
| "finish_reason": "stop", | |
| "model": "qwen3.8-max", | |
| "policy_version": "bailian-task-routing-v3", | |
| "request_id": "chatcmpl-4bb498cc-8895-9874-a106-a2ec2f9e04a3", | |
| "requested_output_tokens": 12288, | |
| "retry_of": null, | |
| "route_reason": "diagnostic-repair", | |
| "stage": "repair" | |
| } | |
| } | |
| ], | |
| "human_acceptance": false, | |
| "method": "independent routed diagnosis then model repair; no human source edits" | |
| }, | |
| "dependency_transfer": { | |
| "status": "verified", | |
| "artifact": "org.apache.pdfbox:pdfbox-app:3.0.8", | |
| "bytes": 13602031, | |
| "lock": { | |
| "schema": "java-dependency-lock-v1", | |
| "roots": [ | |
| "org.apache.pdfbox:pdfbox-app:3.0.8" | |
| ], | |
| "artifacts": [ | |
| { | |
| "coordinate": "org.apache.pdfbox:pdfbox-app:3.0.8", | |
| "sha512": "768847238f683568507bf73570a2b6fedcbe58b25c7b4f97fba536ba110b290fe96ba065aed58629d41fb94857d76bc1978c2f31d294b553c69f287f71ee9600", | |
| "license": "Apache-2.0; bundled notices preserved", | |
| "max_bytes": 20000000 | |
| } | |
| ], | |
| "digest": "9eddd7f39e33b6c48e070ffb8bb9c2371a6d5e9aebd19551cd2f693b98583265" | |
| }, | |
| "bundle_sha256": "e74cbde30958dfcfe4685bf4caa0775167a636f221e95da44e6c9bcf1d6d9975", | |
| "network_calls": 0, | |
| "empty_destination_cache": true, | |
| "tampered_cache_rejected": true, | |
| "java_executed_on_host": false, | |
| "scope": "approved PDFBox closure portability; not a complete Maven project build" | |
| }, | |
| "failed_local_diagnosis": { | |
| "analysis": { | |
| "summary": "The handler returns INVALID_EXPRESSION because the base64url decoder rejects unpadded input. Java's Base64.getUrlDecoder() mandates padding, but the contract requires canonical UNPADDED strings. Decoding fails for all test cases (e.g., 'Misz' -> 3 bytes, needs no padding). Fix: Before decoding, manually append '=' characters to make the encoded string length a multiple of 4. Alternatively, implement a custom decoder that processes 4-character blocks without requiring trailing '='. The current code catches the IllegalArgumentException from decode() and maps it to INVALID_INPUT or INVALID_EXPRESSION depending on flow, but here it likely hits the generic catch or validation logic incorrectly. Specifically, ensure `v` is padded to `(v.length()+3)/4*4` before passing to `Base64.getUrlDecoder().decode()`." | |
| }, | |
| "source_digest": "fb192b3efb20cf844e15673c838091153d04fb628c731c5d6c77bd504969885e", | |
| "test": { | |
| "cases": 39, | |
| "classes_digest": "0f8683d2bf16e5c6d103cdda53a1ada3d35e10e83e17148e77a9611f0c37f8b4", | |
| "failures": [ | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 1, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=Misz", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 2, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MTAtMTM", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 3, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=Nio3", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 4, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=OC8y", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 5, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MiszKjQ", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 6, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=KDIrMykqNA", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 7, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MC4xKzAuMg", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 8, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=LSgyKzMpKi0y", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 9, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MTAvMiozLTE", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 10, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MS82", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 11, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=LTA", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 12, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=LjUrLjI1", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 13, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=IDEyICsgKCAzICogMiApIA", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 14, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=KCgoKCgoKCgoKCgoKCgoKDEpKSkpKSkpKSkpKSkpKSkp", | |
| "reason": "response_did_not_match_public_contract" | |
| }, | |
| { | |
| "actual_body": "{\"error\":\"INVALID_EXPRESSION\"}", | |
| "actual_status": 400, | |
| "case_index": 15, | |
| "expected_status": 200, | |
| "path": "/api/calculate?expression64=MTAwMDAwMDAwMDAwMCoxMDAwMDAwMDAwMDAw", | |
| "reason": "response_did_not_match_public_contract" | |
| } | |
| ], | |
| "passed": false, | |
| "passed_cases": 24 | |
| }, | |
| "model_calls": [ | |
| { | |
| "id": 1, | |
| "run_id": "run-b7ee1e2ce7d64070a5fa66f72c4287d5", | |
| "reservation": 15719, | |
| "charged": 3954, | |
| "state": "settled", | |
| "provider": "bailian-qwen3.8-flash", | |
| "prompt_digest": "f92b0718e8b386af50d5150c0b0a25ea03ff716cf1313baf9a57d740f88901a4", | |
| "metadata": { | |
| "finish_reason": "stop", | |
| "model": "qwen3.8-flash", | |
| "policy_version": "bailian-task-routing-v3", | |
| "request_id": "chatcmpl-7bad8a9f-a292-955f-9581-ad51f6927caf", | |
| "requested_output_tokens": 2048, | |
| "retry_of": null, | |
| "route_reason": "failure-localization", | |
| "stage": "diagnose" | |
| } | |
| }, | |
| { | |
| "id": 2, | |
| "run_id": "run-b7ee1e2ce7d64070a5fa66f72c4287d5", | |
| "reservation": 26933, | |
| "charged": 6438, | |
| "state": "settled", | |
| "provider": "bailian-qwen3.8-max", | |
| "prompt_digest": "30dea087a30d23346b6133d87a064da38ee65788b538018008681224d711e876", | |
| "metadata": { | |
| "finish_reason": "stop", | |
| "model": "qwen3.8-max", | |
| "policy_version": "bailian-task-routing-v3", | |
| "request_id": "chatcmpl-b0f68dde-cce7-99eb-9a41-3e139a973f42", | |
| "requested_output_tokens": 12288, | |
| "retry_of": null, | |
| "route_reason": "diagnostic-repair", | |
| "stage": "repair" | |
| } | |
| } | |
| ], | |
| "runner_error": "EVIDENCE_BINDING_MISMATCH; test outcome retained in the independently bound VM receipt" | |
| }, | |
| "cloud_candidate_verified": false, | |
| "human_acceptance": false, | |
| "tested_at_utc": "2026-10-24T05:53:47.662113+00:00" | |
| } |