VibeCoding / examples /clean-app-preview-validation.json
dellweb3's picture
Deploy verified conversational workbench and isolated Java application previews
caf8059 verified
Raw History Blame Contribute Delete
88.1 kB
{ "schema": "zkcoding.clean-app-preview-validation.v1", "browser": { "checks": [ "original workbench opens real code/documents/diffs and materializes a new immutable presentation revision", "old physical project files remain unchanged; this preview validation did not replay any model call" ], "scenarios": { "erp": { "checks": [ "click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789", "exact money and both approval thresholds match actual Java responses", "unauthorized department and invalid quantity do not retain a stale quote", "business results are checked against actual Java response/source digest without exposing raw JSON in the page", "downloadable project website bytes match the current application presentation", "saved project links open the clean application and reuse the current lease", "390px layout, refresh without VM restart and unchanged workbench verified" ], "source_digest": "dd8d42671bda1327f245b0fd540b0ac1762572e9e57bf6664e2516a1cf6cad57", "preview_id": "efe09fc1d8ef4659b215d5e15befaade", "receipt": { "source_digest": "dd8d42671bda1327f245b0fd540b0ac1762572e9e57bf6664e2516a1cf6cad57", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "config_digest": "841129aac9dd785fe877d72002533547377a93994d0afb830dadb1273b51389a", "classes_digest": "cdf0cdf9ed32e81d2d9d5e69a31cd3f4f3e02610d39be10ec5a8111b9210811a", "tests": 25, "network": "none", "host_mounts": [] }, "url": "http://127.0.0.1:8791/preview-site/?lease=efe09fc1d8ef4659b215d5e15befaade", "passed": true }, "calculator": { "checks": [ "click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789", "old application lease cannot access the replacement service", "keyboard, decimal precision, continuing from the last result and clipboard work", "division by zero, incomplete expression, history refill and clear invalidate stale results", "business results are checked against actual Java response/source digest without exposing raw JSON in the page", "downloadable project website bytes match the current application presentation", "390px layout, refresh without VM restart and unchanged workbench verified" ], "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "preview_id": "ef8c3f79158b4071a55328fea77c748f", "receipt": { "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "config_digest": "c46d1daa9b28bd7f8fdd157e1113ddd512216799fb1b752b9c165d6465d0ac96", "classes_digest": "dcfd8b31de91f795ab4a7a62e5041ed041a0a220640b2e1a79cddcf141ecb08f", "tests": 39, "network": "none", "host_mounts": [] }, "url": "http://127.0.0.1:8791/preview-site/?lease=ef8c3f79158b4071a55328fea77c748f", "passed": true }, "pdf": { "checks": [ "click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789", "old application lease cannot access the replacement service", "real two-page PDF parsing, pagination, copy and TXT/JSON export work", "missing/broken/oversized files, clearing and drag-drop recover without stale exports", "business results are checked against actual Java response/source digest without exposing raw JSON in the page", "downloadable project website bytes match the current application presentation", "390px layout, refresh without VM restart and unchanged workbench verified" ], "source_digest": "410fa3717502881c9be744f17cd59fda053e9b5f7f028bd0e85e1d364f772225", "preview_id": "c6d097e0c9a74a26b836ae26b98b8ea0", "receipt": { "source_digest": "410fa3717502881c9be744f17cd59fda053e9b5f7f028bd0e85e1d364f772225", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "config_digest": "128defe2109c8b7693134f252f9235bc863b5915fc11d640b8bd52394e589c72", "classes_digest": "669d901e2f6d2f5286d723313fe3b7a0891efce30fc7f9b96ade9695e3827bad", "tests": 23, "network": "none", "host_mounts": [] }, "url": "http://127.0.0.1:8791/preview-site/?lease=c6d097e0c9a74a26b836ae26b98b8ea0", "passed": true } }, "errors": [], "model_calls_started": 0, "user_calculator": { "id": "run-e5f984e69c324003bde900eae89992e3", "status": "verified", "repairs": 2, "model_calls": [ { "id": 59, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 19931, "charged": 5338, "state": "settled", "provider": "bailian-qwen3.8-flash", "prompt_digest": "80c035290215af8b94f12ca6369db6b75ecacaebaee921510aea96253dea8de6", "metadata": { "finish_reason": "stop", "model": "qwen3.8-flash", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-00ad4882-354e-9dd6-9ea1-47b5cd0d685f", "requested_output_tokens": 2048, "retry_of": null, "route_reason": "technical-design", "stage": "design" } }, { "id": 60, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 16306, "charged": 3629, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "e82a14e3b4c03f10371e016a834cb70cfe8e1d8bfe50e159f4639d3a99e50342", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-430fa7c0-7784-99ce-8ea5-e44629177fdd", "requested_output_tokens": 8192, "retry_of": null, "route_reason": "java-code", "stage": "code" } }, { "id": 61, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 23850, "charged": 4811, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "4140167e9800baca238bb1da3ee2075ca1e27c02354ccfee6dc7fa297ed945b6", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-6384acfd-bd31-99e9-9b5f-6f09abdd143c", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" } }, { "id": 62, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 23858, "charged": 4834, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "54477fbd8dcfa3949db73a86f2839edfb30358d6ffed8f8218e88cdc72fbf741", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-094a7135-47be-9565-bfe7-c36f8b28ae2f", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" } } ], "diagnostics": { "failures": [ { "actual_body": "{\"expression\":\"1.\",\"result\":\"1\"}", "actual_status": 200, "case_index": 23, "expected_status": 400, "path": "/api/calculate?expression64=MS4", "reason": "response_did_not_match_public_contract" } ] } }, "passed": 23, "release_usability": { "passed": true, "platform_code_digest": "08b0beb7074fb64d7358753c6e24364f858f2eefa8af20a7e30b07a1a2b3eeab", "tested_at_utc": "2026-10-24T02:50:13Z", "browser": "Microsoft Edge", "real_java_http_cases": 87, "workbench_entry": "http://127.0.0.1:8789/", "preview_origin": "http://127.0.0.1:8791", "existing_real_run": "run-5a19d7e9a63b468596ba8bb6de5eca6b" } }, "platform_tests": { "timestamp_utc": "2026-10-24T02:41:19.007006+00:00", "tests": 228, "failures": 0, "errors": 0, "skipped": [ { "test": "test_real_java_build_http_test_preview_and_cleanup (test_container_live.LiveContainerTests.test_real_java_build_http_test_preview_and_cleanup)", "reason": "需要本机Docker及显式指定的批准镜像digest;不回退宿主执行" }, { "test": "test_real_java_http_in_networkless_disposable_vm (test_qemu_live.LiveVMTests.test_real_java_http_in_networkless_disposable_vm)", "reason": "显式启用本地软件虚拟机验证" } ], "success": true, "real_model_calls": 0, "note": "Synthetic model and sandbox fixtures are protocol tests, not real Java/domain acceptance." }, "original_ui": { "passed": 8, "checks": [ "original conversational shell, project directory and composer retained", "three original users switch distinct authenticated server sessions", "business wizard replaces old Java context in dialogue, preserves MySQL directory and queries real records", "knowledge procedure response includes roles and traceable citations", "verified Java skill generated, exported with real evidence, selected in composer", "developer denied admin view; manager sees actual readiness and usage", "preserved mobile shell has no horizontal overflow", "no uncaught browser errors" ], "errors": [] }, "user_calculator_execution_record": { "schema": "zkcoding.execution-record.v1", "record": { "id": "run-e5f984e69c324003bde900eae89992e3", "scenario": "calculator", "requirement": "# DEMO-CALC-01:可操作的网页计算器\n\n## 背景与用户\n员工需要在内网快速核算公式,现有简单输入框不能解释优先级或处理错误。本场景交付可直接使用的计算器网站,运算由Java服务执行,页面负责输入和结果展示。\n\n## 页面与交互\n标题“工程计算器”,主卡片包含表达式输入框、结果显示区、数字键盘0–9、小数点、加减乘除、左右括号、退格、清空和等号;旁边显示最近10条成功计算记录,窄屏放到下方。默认示例(12.5+7.5)*3,等于60。历史记录点击后回填输入,不自动重新执行。\n物理键盘可输入公式,Enter计算,Escape清空;每个按钮有明确标签,焦点可见。计算时按钮显示忙碌且防止重复请求;服务返回后再显示结果,不演示虚假延迟。除零或非法表达式在结果区给可理解错误并保留输入。成功结果可作为下次运算起点;结果字符串可复制。\n\n## 编程需求与验收\n- CALC-01:Java17标准库HttpServer,GET /health。GET /api/calculate的唯一参数expression64为UTF-8表达式的无填充base64url;公开凭据demo-calculator,不接受任意脚本、eval或脚本引擎。\n- CALC-02:实现真正的表达式解析,支持+-*/、括号、空格、一元正负。乘除优先于加减,括号优先。2+3*4=14,(2+3)*4=20,-3+5=2。\n- CALC-03:用BigDecimal和DECIMAL128处理中间运算,最终最多12位小数,HALF_UP,去除尾零,不用科学记数法。0.1+0.2=0.3;1/3显示0.333333333333;连续运算可使用上次结果。\n- CALC-04:除零400 DIVISION_BY_ZERO;缺括号、连续非法运算、字母等400 INVALID_EXPRESSION;1+-2、--1属于合法一元符号。缺失、重复、未知参数及非法编码400 INVALID_INPUT。\n- CALC-05:表达式最多128字符、括号16层、64次运算;单个数字字面量最多24位(不含小数点),数值绝对值≤1e24;超限422 LIMIT_EXCEEDED。编码参数最多256字符,超限400 INVALID_INPUT。无身份401、非GET405、未知路径404,线程与输入有界。\n- CALC-06:独立HTTP系统测试覆盖算术、精度、结合顺序、负号、边界和错误;网页测试点击键盘与Enter、历史回填、连续运算、除零展示、窄屏布局。\n\n## 交付与完成条件\n交付Java源码、配套HTML/CSS/JS页面、需求与技术说明、差异、测试对应表、实际沙箱编译和测试证据、可下载ZIP及本地网站。生成源码限定src/main/java/demo/App.java及可选docs,不引入框架或修改保护测试;受控网页模板作为独立交付文件明确来源。失败必须留存诊断并修复复测,不以静态数字冒充Java执行结果。", "status": "verified", "runtime_status": "waiting_approval", "error": null, "created_at": 1792809232.7459378, "timeline": [ { "id": 644, "at": "2026-10-24T02:36:35.113251+00:00", "stage": "start", "status": "started", "title": "接收开发需求", "detail": "" }, { "id": 645, "at": "2026-10-24T02:36:35.138401+00:00", "stage": "start", "status": "completed", "title": "接收开发需求", "detail": "" }, { "id": 646, "at": "2026-10-24T02:36:35.153398+00:00", "stage": "requirements", "status": "started", "title": "整理需求与验收目标", "detail": "" }, { "id": 647, "at": "2026-10-24T02:36:35.188520+00:00", "stage": "requirements", "status": "completed", "title": "整理需求与验收目标", "detail": "" }, { "id": 648, "at": "2026-10-24T02:36:35.208472+00:00", "stage": "knowledge", "status": "started", "title": "检索相关知识", "detail": "" }, { "id": 649, "at": "2026-10-24T02:36:35.322057+00:00", "stage": "knowledge", "status": "completed", "title": "检索相关知识", "detail": "" }, { "id": 650, "at": "2026-10-24T02:36:35.347992+00:00", "stage": "context", "status": "started", "title": "冻结权限与上下文", "detail": "" }, { "id": 651, "at": "2026-10-24T02:36:35.379903+00:00", "stage": "context", "status": "completed", "title": "冻结权限与上下文", "detail": "" }, { "id": 652, "at": "2026-10-24T02:36:35.395860+00:00", "stage": "design", "status": "started", "title": "模型生成技术设计", "detail": "" }, { "id": 653, "at": "2026-10-24T02:36:35.425781+00:00", "stage": "routing", "status": "completed", "title": "按任务选择模型", "detail": "design → qwen3.8-flash;输出上限 2048" }, { "id": 654, "at": "2026-10-24T02:36:40.411274+00:00", "stage": "design", "status": "active", "title": "模型生成技术设计", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 655, "at": "2026-10-24T02:36:41.977517+00:00", "stage": "design", "status": "completed", "title": "模型生成技术设计", "detail": "" }, { "id": 656, "at": "2026-10-24T02:36:42.005132+00:00", "stage": "design_confirm", "status": "waiting", "title": "设计检查", "detail": "等待设计确认" }, { "id": 657, "at": "2026-10-24T02:36:42.130079+00:00", "stage": "execution_confirm", "status": "waiting", "title": "执行授权检查", "detail": "等待执行确认" }, { "id": 658, "at": "2026-10-24T02:36:42.254673+00:00", "stage": "code", "status": "started", "title": "模型编写Java源码", "detail": "" }, { "id": 659, "at": "2026-10-24T02:36:42.292505+00:00", "stage": "routing", "status": "completed", "title": "按任务选择模型", "detail": "code → qwen3.8-max;输出上限 8192" }, { "id": 660, "at": "2026-10-24T02:36:47.279850+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 661, "at": "2026-10-24T02:36:52.305209+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 662, "at": "2026-10-24T02:36:57.319345+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 663, "at": "2026-10-24T02:37:02.337614+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 664, "at": "2026-10-24T02:37:07.360265+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 665, "at": "2026-10-24T02:37:12.414968+00:00", "stage": "code", "status": "active", "title": "模型编写Java源码", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 666, "at": "2026-10-24T02:37:15.294383+00:00", "stage": "code", "status": "completed", "title": "模型编写Java源码", "detail": "" }, { "id": 667, "at": "2026-10-24T02:37:15.320606+00:00", "stage": "patch", "status": "started", "title": "形成候选文件", "detail": "" }, { "id": 668, "at": "2026-10-24T02:37:15.346030+00:00", "stage": "patch", "status": "completed", "title": "形成候选文件", "detail": "" }, { "id": 669, "at": "2026-10-24T02:37:15.364980+00:00", "stage": "policy", "status": "started", "title": "Harness源码约束检查", "detail": "" }, { "id": 670, "at": "2026-10-24T02:37:15.397044+00:00", "stage": "policy", "status": "completed", "title": "Harness源码约束检查", "detail": "" }, { "id": 671, "at": "2026-10-24T02:37:15.414333+00:00", "stage": "build", "status": "started", "title": "隔离沙箱编译与独立测试", "detail": "" }, { "id": 672, "at": "2026-10-24T02:37:20.442178+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 673, "at": "2026-10-24T02:37:25.470040+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 674, "at": "2026-10-24T02:37:30.501480+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 675, "at": "2026-10-24T02:37:35.520910+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 676, "at": "2026-10-24T02:37:40.545703+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 677, "at": "2026-10-24T02:37:45.567063+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 678, "at": "2026-10-24T02:37:50.596568+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 679, "at": "2026-10-24T02:37:55.612237+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 680, "at": "2026-10-24T02:38:00.647190+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 681, "at": "2026-10-24T02:38:05.680671+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 682, "at": "2026-10-24T02:38:10.723135+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 683, "at": "2026-10-24T02:38:15.763742+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 684, "at": "2026-10-24T02:38:20.791994+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 685, "at": "2026-10-24T02:38:22.811359+00:00", "stage": "build", "status": "failed", "title": "隔离沙箱编译与独立测试", "detail": "JAVA_BUILD_FAILED" }, { "id": 686, "at": "2026-10-24T02:38:22.979796+00:00", "stage": "repair", "status": "started", "title": "模型依据失败诊断修复", "detail": "根据实际编译或测试诊断请求模型修复" }, { "id": 687, "at": "2026-10-24T02:38:23.016697+00:00", "stage": "routing", "status": "completed", "title": "按任务选择模型", "detail": "repair → qwen3.8-max;输出上限 12288" }, { "id": 688, "at": "2026-10-24T02:38:28.002872+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 689, "at": "2026-10-24T02:38:33.012889+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 690, "at": "2026-10-24T02:38:38.030223+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 691, "at": "2026-10-24T02:38:43.055674+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 692, "at": "2026-10-24T02:38:48.082847+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 693, "at": "2026-10-24T02:38:53.115736+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 694, "at": "2026-10-24T02:38:53.899338+00:00", "stage": "repair", "status": "completed", "title": "模型依据失败诊断修复", "detail": "修复候选已返回;尚需重新构建与独立测试" }, { "id": 695, "at": "2026-10-24T02:38:53.991008+00:00", "stage": "patch", "status": "started", "title": "形成候选文件", "detail": "" }, { "id": 696, "at": "2026-10-24T02:38:54.041384+00:00", "stage": "patch", "status": "completed", "title": "形成候选文件", "detail": "" }, { "id": 697, "at": "2026-10-24T02:38:54.057054+00:00", "stage": "policy", "status": "started", "title": "Harness源码约束检查", "detail": "" }, { "id": 698, "at": "2026-10-24T02:38:54.083373+00:00", "stage": "policy", "status": "completed", "title": "Harness源码约束检查", "detail": "" }, { "id": 699, "at": "2026-10-24T02:38:54.097466+00:00", "stage": "build", "status": "started", "title": "隔离沙箱编译与独立测试", "detail": "" }, { "id": 700, "at": "2026-10-24T02:38:59.111925+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 701, "at": "2026-10-24T02:39:04.151073+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 702, "at": "2026-10-24T02:39:09.163450+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 703, "at": "2026-10-24T02:39:14.180987+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 704, "at": "2026-10-24T02:39:19.204555+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 705, "at": "2026-10-24T02:39:24.234094+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 706, "at": "2026-10-24T02:39:29.259815+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 707, "at": "2026-10-24T02:39:34.277251+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 708, "at": "2026-10-24T02:39:39.312795+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 709, "at": "2026-10-24T02:39:44.335468+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 710, "at": "2026-10-24T02:39:49.366479+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 711, "at": "2026-10-24T02:39:54.388411+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 712, "at": "2026-10-24T02:39:59.410351+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 713, "at": "2026-10-24T02:40:04.426990+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 714, "at": "2026-10-24T02:40:09.456605+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 715, "at": "2026-10-24T02:40:14.507162+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 716, "at": "2026-10-24T02:40:19.524059+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 717, "at": "2026-10-24T02:40:21.487772+00:00", "stage": "build", "status": "completed", "title": "隔离沙箱编译与独立测试", "detail": "" }, { "id": 718, "at": "2026-10-24T02:40:21.503730+00:00", "stage": "test", "status": "started", "title": "核验独立系统测试回执", "detail": "" }, { "id": 719, "at": "2026-10-24T02:40:21.515695+00:00", "stage": "test", "status": "failed", "title": "核验独立系统测试回执", "detail": "JAVA_TEST_FAILED" }, { "id": 720, "at": "2026-10-24T02:40:21.689923+00:00", "stage": "repair", "status": "started", "title": "模型依据失败诊断修复", "detail": "根据实际编译或测试诊断请求模型修复" }, { "id": 721, "at": "2026-10-24T02:40:21.728793+00:00", "stage": "routing", "status": "completed", "title": "按任务选择模型", "detail": "repair → qwen3.8-max;输出上限 12288" }, { "id": 722, "at": "2026-10-24T02:40:26.710919+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 723, "at": "2026-10-24T02:40:31.737297+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 724, "at": "2026-10-24T02:40:36.766237+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 725, "at": "2026-10-24T02:40:41.788616+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 726, "at": "2026-10-24T02:40:46.807882+00:00", "stage": "repair", "status": "active", "title": "模型依据失败诊断修复", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 727, "at": "2026-10-24T02:40:51.251751+00:00", "stage": "repair", "status": "completed", "title": "模型依据失败诊断修复", "detail": "修复候选已返回;尚需重新构建与独立测试" }, { "id": 728, "at": "2026-10-24T02:40:51.377697+00:00", "stage": "patch", "status": "started", "title": "形成候选文件", "detail": "" }, { "id": 729, "at": "2026-10-24T02:40:51.409359+00:00", "stage": "patch", "status": "completed", "title": "形成候选文件", "detail": "" }, { "id": 730, "at": "2026-10-24T02:40:51.430187+00:00", "stage": "policy", "status": "started", "title": "Harness源码约束检查", "detail": "" }, { "id": 731, "at": "2026-10-24T02:40:51.460063+00:00", "stage": "policy", "status": "completed", "title": "Harness源码约束检查", "detail": "" }, { "id": 732, "at": "2026-10-24T02:40:51.478193+00:00", "stage": "build", "status": "started", "title": "隔离沙箱编译与独立测试", "detail": "" }, { "id": 733, "at": "2026-10-24T02:40:56.510358+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 734, "at": "2026-10-24T02:41:01.535135+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 735, "at": "2026-10-24T02:41:06.563330+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 736, "at": "2026-10-24T02:41:11.609711+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 737, "at": "2026-10-24T02:41:16.702159+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 738, "at": "2026-10-24T02:41:21.750642+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 739, "at": "2026-10-24T02:41:26.786172+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 740, "at": "2026-10-24T02:41:31.830413+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 741, "at": "2026-10-24T02:41:36.856150+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 742, "at": "2026-10-24T02:41:41.888253+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 743, "at": "2026-10-24T02:41:46.911595+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 744, "at": "2026-10-24T02:41:51.938585+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 745, "at": "2026-10-24T02:41:56.949785+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 746, "at": "2026-10-24T02:42:01.979145+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 747, "at": "2026-10-24T02:42:07.002219+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 748, "at": "2026-10-24T02:42:12.024379+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 749, "at": "2026-10-24T02:42:17.048426+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 750, "at": "2026-10-24T02:42:22.072446+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 751, "at": "2026-10-24T02:42:27.096287+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 752, "at": "2026-10-24T02:42:32.142664+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 753, "at": "2026-10-24T02:42:37.162731+00:00", "stage": "build", "status": "active", "title": "隔离沙箱编译与独立测试", "detail": "执行器仍持有本任务租约,正在等待实际响应;本次心跳不代表编译或测试通过。" }, { "id": 754, "at": "2026-10-24T02:42:40.883660+00:00", "stage": "build", "status": "completed", "title": "隔离沙箱编译与独立测试", "detail": "" }, { "id": 755, "at": "2026-10-24T02:42:40.902038+00:00", "stage": "test", "status": "started", "title": "核验独立系统测试回执", "detail": "" }, { "id": 756, "at": "2026-10-24T02:42:40.938759+00:00", "stage": "test", "status": "completed", "title": "核验独立系统测试回执", "detail": "" }, { "id": 757, "at": "2026-10-24T02:42:40.956856+00:00", "stage": "preview", "status": "started", "title": "核验Java服务运行回执", "detail": "" }, { "id": 758, "at": "2026-10-24T02:42:41.001050+00:00", "stage": "preview", "status": "completed", "title": "核验Java服务运行回执", "detail": "" }, { "id": 759, "at": "2026-10-24T02:42:41.020302+00:00", "stage": "acceptance", "status": "waiting", "title": "技术交付,等待用户验收", "detail": "等待用户验收确认" } ], "progress": { "headline": "开发完成 · 技术通过", "detail": "独立测试和运行验证均已通过。代码、文档、制品和网站预览已可查看;等待人工验收。", "stage": "preview", "active": false, "server_time": 1792810355.4090478, "elapsed_seconds": 528.2743639945984, "stage_elapsed_seconds": 0.0634462833404541, "last_event_at": 1792809761.0203018, "last_heartbeat_at": 1792809757.1627307, "event_count": 116, "latest_record": "等待用户验收确认" }, "design_summary": "Java17 HttpServer on 8080. GET /health returns {\"status\":\"ok\"}. GET /api/calculate requires Bearer demo-calculator, parses expression64 (unpadded base64url). Recursive-descent parser for + - * / (), unary +/-, spaces. BigDecimal DECIMAL128 intermediates; final scale<=12 HALF_UP stripTrailingZeros toPlainString. Limits: expr<=128 chars, depth<=16, ops<=64, literal digits<=24, abs value<=1e24. Errors: 400 INVALID_INPUT (bad encoding/params), 400 INVALID_EXPRESSION (grammar), 400 DIVISION_BY_ZERO, 422 LIMIT_EXCEEDED, 401 UNAUTHORIZED, 405 METHOD_NOT_ALLOWED, 404 NOT_FOUND. Success JSON: {\"expression\":\"...\",\"result\":\"...\"}. No eval/script engines/reflection/subprocess/outbound. Single-thread bounded handling. Close exchanges.", "project": { "run_id": "run-e5f984e69c324003bde900eae89992e3", "name": "calculator-e5f984e6", "directory": "E:\\Code\\zkCoding\\.local\\local-web\\projects\\7b86f45f8d8ff444f9cfaee8\\run-e5f984e69c324003bde900eae89992e3\\presentation-1f22b0da8841d07f", "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "preview_url": "http://127.0.0.1:8791/preview-launch/?kind=run&reference=run-e5f984e69c324003bde900eae89992e3", "record_url": "/api/jobs/run-e5f984e69c324003bde900eae89992e3/record", "files": [ { "path": "src/main/java/demo/App.java", "change": "added", "additions": 72, "deletions": 0, "origin": "model-generated" }, { "path": "docs/requirements.md", "change": "added", "additions": 19, "deletions": 0, "origin": "run-record" }, { "path": "docs/design.md", "change": "added", "additions": 7, "deletions": 0, "origin": "platform-validation" }, { "path": "docs/acceptance.md", "change": "added", "additions": 45, "deletions": 0, "origin": "platform-validation" }, { "path": "tests/traceability.json", "change": "added", "additions": 284, "deletions": 0, "origin": "platform-validation" }, { "path": "tests/report.json", "change": "added", "additions": 63, "deletions": 0, "origin": "platform-validation" }, { "path": "README.md", "change": "added", "additions": 9, "deletions": 0, "origin": "platform-validation" }, { "path": "website/index.html", "change": "added", "additions": 5, "deletions": 0, "origin": "platform-template" }, { "path": "website/site.css", "change": "added", "additions": 5, "deletions": 0, "origin": "platform-template" }, { "path": "website/site.js", "change": "added", "additions": 59, "deletions": 0, "origin": "platform-template" } ], "sha256": { "src/main/java/demo/App.java": "eec82afe3ba63f2a90c8043f99293aa18e9f85ab04ae59d865b41ad8193c0fd0", "docs/requirements.md": "e7c584ffd4370550924e68d280bfcc9961b81520f07b212b5f93e86089ba8da6", "docs/design.md": "8b62cb3fd2ca73a6838e15c6d55281fdeb84598fd94a9d3fbb8624d9f8b674b8", "docs/acceptance.md": "fd88df596f5f61d8ca7dfe5b4f9b75fb3ba83cb0388a8f314a9531b1701d09de", "tests/traceability.json": "d421573d6975067c62932e3fcc17da97a4e5a7e14670efaeaa0cf025745f32ac", "tests/report.json": "68816144174f6c81c033efa894840a3f3edfde4fdc20aec0315278c61d776d0c", "README.md": "0c4cae671943d1904d59b2e7d0737dbe97a9441abea03fbd65febdd376f094c8", "website/index.html": "b34752de9ce2d3d55442a9bc4e5ae33dc41e792ceb897c22de795393b9db13e8", "website/site.css": "6677d74aa3a8a106c13299fbe672a63e1384c511973ba1b173038abe81634895", "website/site.js": "2161008f3d7763b276b659a41f75468caed80bd18e88c455b3265ba9966b4155", "evidence/validation.json": "54c6053017bf7f7c9a8594536b661fca83dad2f5a5be36e8cf11ee296d24e265" }, "host_execution": false }, "model_calls": [ { "id": 59, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 19931, "charged": 5338, "state": "settled", "provider": "bailian-qwen3.8-flash", "prompt_digest": "80c035290215af8b94f12ca6369db6b75ecacaebaee921510aea96253dea8de6", "metadata": { "finish_reason": "stop", "model": "qwen3.8-flash", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-00ad4882-354e-9dd6-9ea1-47b5cd0d685f", "requested_output_tokens": 2048, "retry_of": null, "route_reason": "technical-design", "stage": "design" } }, { "id": 60, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 16306, "charged": 3629, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "e82a14e3b4c03f10371e016a834cb70cfe8e1d8bfe50e159f4639d3a99e50342", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-430fa7c0-7784-99ce-8ea5-e44629177fdd", "requested_output_tokens": 8192, "retry_of": null, "route_reason": "java-code", "stage": "code" } }, { "id": 61, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 23850, "charged": 4811, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "4140167e9800baca238bb1da3ee2075ca1e27c02354ccfee6dc7fa297ed945b6", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-6384acfd-bd31-99e9-9b5f-6f09abdd143c", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" } }, { "id": 62, "run_id": "run-e5f984e69c324003bde900eae89992e3", "reservation": 23858, "charged": 4834, "state": "settled", "provider": "bailian-qwen3.8-max", "prompt_digest": "54477fbd8dcfa3949db73a86f2839edfb30358d6ffed8f8218e88cdc72fbf741", "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-094a7135-47be-9565-bfe7-c36f8b28ae2f", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" } } ], "repairs": 2, "diagnostics": { "failures": [ { "actual_body": "{\"expression\":\"1.\",\"result\":\"1\"}", "actual_status": 200, "case_index": 23, "expected_status": 400, "path": "/api/calculate?expression64=MS4", "reason": "response_did_not_match_public_contract" } ] }, "recovery_of": null, "followups": [], "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "validation": { "digest": "f2d3843f0df5e5aee996520d124e9ec49eef9b0be0e822bf0731fcb15cde7de8", "manifest": { "approvals": [ { "authorization_ref": "local-web-delegation-v1:user-1c2130d2e4c940fc883dae7c6ec0b7c3", "digest": "35b8cc87c121406068d23acb741ef3491d5f797c60541c455cdd1c3a1fee0336", "increment": true, "mechanism": "delegated_local_validation", "node": "design_confirm", "scope": "design", "user_id": "user-1c2130d2e4c940fc883dae7c6ec0b7c3" }, { "authorization_ref": "local-web-delegation-v1:user-1c2130d2e4c940fc883dae7c6ec0b7c3", "digest": "cc958ad1c175e0a0dde073c33f7f9bbb5b17e275f08f4a8b65e0b358e29b4841", "increment": true, "mechanism": "delegated_local_validation", "node": "execution_confirm", "scope": "execution", "user_id": "user-1c2130d2e4c940fc883dae7c6ec0b7c3" }, { "authorization_ref": "local-web-delegation-v1:user-1c2130d2e4c940fc883dae7c6ec0b7c3", "digest": "cd27eedf108a9dff58570911e1a0fe97576c127dc45a131db765cf5fb0033357", "increment": false, "mechanism": "delegated_local_validation", "node": "repair-execution", "scope": "execution", "user_id": "user-1c2130d2e4c940fc883dae7c6ec0b7c3" }, { "authorization_ref": "local-web-delegation-v1:user-1c2130d2e4c940fc883dae7c6ec0b7c3", "digest": "94174ae3e12c55a623ea098b11bd3110f0d7f9a2c45403d3e5690b98d0099011", "increment": false, "mechanism": "delegated_local_validation", "node": "repair-execution", "scope": "execution", "user_id": "user-1c2130d2e4c940fc883dae7c6ec0b7c3" } ], "candidate": { "classes_digest": "dcfd8b31de91f795ab4a7a62e5041ed041a0a220640b2e1a79cddcf141ecb08f", "config_digest": "c46d1daa9b28bd7f8fdd157e1113ddd512216799fb1b752b9c165d6465d0ac96", "container": "zk-run-e5f984e69c324003bde900eae89992e3", "execution_mode": "qemu", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "isolation": { "disposable": true, "host_mounts": [], "memory_mb": 1024, "network": "none", "vcpu": 1 }, "passed": true, "receipt_digest": "322d8f0b3bb6a2c557f8acecdac7f2a5b9e4a41cc26ee22da19060cd78074d7e", "receipt_ref": "run-e5f984e69c324003bde900eae89992e3-9f304d752361405a9ef12f8735ff56df", "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "stage": "build", "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", "tool_receipt": { "input_digest": "167de55b8e37e5b3cddd086416af3188346cf195bfef8358acae38baafe63aec", "operation": "AO08", "result_digest": "2d4956cfdfa87860d389c1a691ff43f0e7387eef902326512475f3cea74965ce", "run_id": "run-e5f984e69c324003bde900eae89992e3" } }, "deployment": "not_performed", "development": { "design": { "summary": "Java17 HttpServer on 8080. GET /health returns {\"status\":\"ok\"}. GET /api/calculate requires Bearer demo-calculator, parses expression64 (unpadded base64url). Recursive-descent parser for + - * / (), unary +/-, spaces. BigDecimal DECIMAL128 intermediates; final scale<=12 HALF_UP stripTrailingZeros toPlainString. Limits: expr<=128 chars, depth<=16, ops<=64, literal digits<=24, abs value<=1e24. Errors: 400 INVALID_INPUT (bad encoding/params), 400 INVALID_EXPRESSION (grammar), 400 DIVISION_BY_ZERO, 422 LIMIT_EXCEEDED, 401 UNAUTHORIZED, 405 METHOD_NOT_ALLOWED, 404 NOT_FOUND. Success JSON: {\"expression\":\"...\",\"result\":\"...\"}. No eval/script engines/reflection/subprocess/outbound. Single-thread bounded handling. Close exchanges." }, "requirement": "# DEMO-CALC-01:可操作的网页计算器\n\n## 背景与用户\n员工需要在内网快速核算公式,现有简单输入框不能解释优先级或处理错误。本场景交付可直接使用的计算器网站,运算由Java服务执行,页面负责输入和结果展示。\n\n## 页面与交互\n标题“工程计算器”,主卡片包含表达式输入框、结果显示区、数字键盘0–9、小数点、加减乘除、左右括号、退格、清空和等号;旁边显示最近10条成功计算记录,窄屏放到下方。默认示例(12.5+7.5)*3,等于60。历史记录点击后回填输入,不自动重新执行。\n物理键盘可输入公式,Enter计算,Escape清空;每个按钮有明确标签,焦点可见。计算时按钮显示忙碌且防止重复请求;服务返回后再显示结果,不演示虚假延迟。除零或非法表达式在结果区给可理解错误并保留输入。成功结果可作为下次运算起点;结果字符串可复制。\n\n## 编程需求与验收\n- CALC-01:Java17标准库HttpServer,GET /health。GET /api/calculate的唯一参数expression64为UTF-8表达式的无填充base64url;公开凭据demo-calculator,不接受任意脚本、eval或脚本引擎。\n- CALC-02:实现真正的表达式解析,支持+-*/、括号、空格、一元正负。乘除优先于加减,括号优先。2+3*4=14,(2+3)*4=20,-3+5=2。\n- CALC-03:用BigDecimal和DECIMAL128处理中间运算,最终最多12位小数,HALF_UP,去除尾零,不用科学记数法。0.1+0.2=0.3;1/3显示0.333333333333;连续运算可使用上次结果。\n- CALC-04:除零400 DIVISION_BY_ZERO;缺括号、连续非法运算、字母等400 INVALID_EXPRESSION;1+-2、--1属于合法一元符号。缺失、重复、未知参数及非法编码400 INVALID_INPUT。\n- CALC-05:表达式最多128字符、括号16层、64次运算;单个数字字面量最多24位(不含小数点),数值绝对值≤1e24;超限422 LIMIT_EXCEEDED。编码参数最多256字符,超限400 INVALID_INPUT。无身份401、非GET405、未知路径404,线程与输入有界。\n- CALC-06:独立HTTP系统测试覆盖算术、精度、结合顺序、负号、边界和错误;网页测试点击键盘与Enter、历史回填、连续运算、除零展示、窄屏布局。\n\n## 交付与完成条件\n交付Java源码、配套HTML/CSS/JS页面、需求与技术说明、差异、测试对应表、实际沙箱编译和测试证据、可下载ZIP及本地网站。生成源码限定src/main/java/demo/App.java及可选docs,不引入框架或修改保护测试;受控网页模板作为独立交付文件明确来源。失败必须留存诊断并修复复测,不以静态数字冒充Java执行结果。" }, "human_acceptance": false, "model_calls": [ { "charged": 5338, "id": 59, "metadata": { "finish_reason": "stop", "model": "qwen3.8-flash", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-00ad4882-354e-9dd6-9ea1-47b5cd0d685f", "requested_output_tokens": 2048, "retry_of": null, "route_reason": "technical-design", "stage": "design" }, "prompt_digest": "80c035290215af8b94f12ca6369db6b75ecacaebaee921510aea96253dea8de6", "provider": "bailian-qwen3.8-flash", "reservation": 19931, "run_id": "run-e5f984e69c324003bde900eae89992e3", "state": "settled" }, { "charged": 3629, "id": 60, "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-430fa7c0-7784-99ce-8ea5-e44629177fdd", "requested_output_tokens": 8192, "retry_of": null, "route_reason": "java-code", "stage": "code" }, "prompt_digest": "e82a14e3b4c03f10371e016a834cb70cfe8e1d8bfe50e159f4639d3a99e50342", "provider": "bailian-qwen3.8-max", "reservation": 16306, "run_id": "run-e5f984e69c324003bde900eae89992e3", "state": "settled" }, { "charged": 4811, "id": 61, "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-6384acfd-bd31-99e9-9b5f-6f09abdd143c", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" }, "prompt_digest": "4140167e9800baca238bb1da3ee2075ca1e27c02354ccfee6dc7fa297ed945b6", "provider": "bailian-qwen3.8-max", "reservation": 23850, "run_id": "run-e5f984e69c324003bde900eae89992e3", "state": "settled" }, { "charged": 4834, "id": 62, "metadata": { "finish_reason": "stop", "model": "qwen3.8-max", "policy_version": "bailian-task-routing-v2", "request_id": "chatcmpl-094a7135-47be-9565-bfe7-c36f8b28ae2f", "requested_output_tokens": 12288, "retry_of": null, "route_reason": "diagnostic-repair", "stage": "repair" }, "prompt_digest": "54477fbd8dcfa3949db73a86f2839edfb30358d6ffed8f8218e88cdc72fbf741", "provider": "bailian-qwen3.8-max", "reservation": 23858, "run_id": "run-e5f984e69c324003bde900eae89992e3", "state": "settled" } ], "preview": { "cases": 1, "classes_digest": "dcfd8b31de91f795ab4a7a62e5041ed041a0a220640b2e1a79cddcf141ecb08f", "config_digest": "c46d1daa9b28bd7f8fdd157e1113ddd512216799fb1b752b9c165d6465d0ac96", "container": "zk-run-e5f984e69c324003bde900eae89992e3", "execution_mode": "qemu", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "isolation": { "disposable": true, "host_mounts": [], "memory_mb": 1024, "network": "none", "vcpu": 1 }, "passed": true, "passed_cases": 1, "preview_scope": "disposable-vm-loopback-http", "receipt_digest": "322d8f0b3bb6a2c557f8acecdac7f2a5b9e4a41cc26ee22da19060cd78074d7e", "receipt_ref": "run-e5f984e69c324003bde900eae89992e3-9f304d752361405a9ef12f8735ff56df", "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "stage": "preview", "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", "tool_receipt": { "input_digest": "63f4c286d07f209947b5b37ae54001004f5b5edbdfbb2cb5debdfd615484e005", "operation": "AO10", "result_digest": "93f4fdf6a2ef10b3b308849bff29ae0967ad6d9ead096e25ee7907026dbcf1a8", "run_id": "run-e5f984e69c324003bde900eae89992e3" } }, "repairs": 2, "run_id": "run-e5f984e69c324003bde900eae89992e3", "sandbox_cleaned": true, "snapshot": { "budget": { "max_model_calls": 6, "max_repairs": 2, "max_seconds": 1800, "max_tokens": 120000 }, "execution_order": [ "start", "requirements", "knowledge", "context", "design", "design_confirm", "execution_confirm", "code", "patch", "policy", "build", "test", "preview", "acceptance", "evidence", "end" ], "execution_status": "not_started", "framework": { "allowed_paths": [ "src/main/", "src/test/", "docs/" ], "build_tool": "jdk", "dependencies": {}, "evidence_refs": [ "local-toolchain:zkcoding-qemu@sha256:2edf0743d12d34c25322e39a85539591b0a57c8007739a77c4de3351770fd473", "user-authorized-local-validation" ], "frontend": [ "html", "javascript", "css" ], "java_release": 17, "language": "java", "profile_id": "java17-standard-web", "state": "approved", "version": "0.1.0" }, "knowledge": [ { "collection_id": "java-basics", "digest": "6de6f354ff0e845da78ad210164775f51d9a4c5f01a1e5e355911423bd6a5b5c", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-6de6f354ff0e845da78ad210", "scope": "reference" }, { "collection_id": "java-patterns", "digest": "803bd1aef5f0764242a56a8c85a3eca81b26cebbe4ec3e6b53d3c4da8864aa2d", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-803bd1aef5f0764242a56a8c", "scope": "reference" }, { "collection_id": "web-development", "digest": "84c82986259278c89a30d2660f66454f0a5bcb10f871c96c7ec4ea9ebb47e02a", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-84c82986259278c89a30d266", "scope": "reference" }, { "collection_id": "java-frameworks", "digest": "28b65fe6ced6682555c8b32b676faf14020011ea525eeee57f17562acd17da4c", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-28b65fe6ced6682555c8b32b", "scope": "reference" }, { "collection_id": "java-persistence", "digest": "972ee7e1f0072e413bec262b67b8af46364ff8aac445a9faeeeb8c041eb07f92", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-972ee7e1f0072e413bec262b", "scope": "reference" }, { "collection_id": "java-testing", "digest": "8af9017057c130eef9f9a1617a2654859ba80ed4f108b28054aecf14a3d39c45", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-8af9017057c130eef9f9a161", "scope": "reference" }, { "collection_id": "java-integration", "digest": "befde1177fa13476703d89a8df3902d90ad01cb7d497d0583cfe15620348c7b1", "enterprise_approved": false, "quality_status": "imported_unreviewed", "revision": "corpus-befde1177fa13476703d89a8", "scope": "reference" } ], "operations_lock": { "AO01@0.1.0": "6f2a89d1624450c6e4afd8f776f23c7df4bf402976a82d0992dfd6cfdc643bf2", "AO02@0.1.0": "6a4491053f9a3f55d900f3f907f81a0cfc44f09a1e2f1e770248287bc0b8d7f6", "AO03@0.1.0": "8a1387e065674c2987930ad865a2bdb4ab7346cb589505c350c6bb1907a7eb6d", "AO04@0.1.0": "3ef3f1be1b0f9240f066fa6d0b3b1430026d55763d15b5fc584a801c64be688b", "AO05@0.2.0": "eeac70849a9d8bebd00b1d2111545f9376cc6901f6aa611412b1cb73238e47a7", "AO06@0.1.0": "2b369879ba0cd2847c173cfb7cb583c1dc051553d3d3ea80f954c81c21f1f233", "AO07@0.1.0": "69e1e824b4c5129f62595ac3df578eec7b083411cd391a72d47303eec3843baa", "AO08@0.1.0": "1d75566610ac000990fd15b9fd18a6518de8af12a329b3c56d51ff29c0c30623", "AO09@0.1.0": "2e4bf4b3fcdfce184b8dea9ffebd18ffe91af7320b0ef3ce430edb3b5cc15c52", "AO10@0.1.0": "d05863bea57e94ad860696bd6ac85e072034f89f6f038f132c65b854dd366e9f", "AO11@0.1.0": "43b910a51da7a58810d3890eb2305d80663db6a1c187b51466f8e396a94956f0" }, "project_id": "calculator-demo", "release_digest": "d0da8661b7aa191e3e6cab5e08e2e8474b2f47f292b371f09b67c48db165a937", "release_ref": "calculator-java-development@local-d0da8661b7aa191e", "snapshot_digest": "70f0509d57321d26e92f24f8d06c200492f190e5a22ab286612016f13fdf303b", "snapshot_id": "snapshot-27019ba9786945cdad48808422b289f4", "source_digest": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a", "tenant_id": "demo-tenant", "user_id": "user-1c2130d2e4c940fc883dae7c6ec0b7c3" }, "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.charset.*;\nimport java.util.Base64;\n\npublic class App {\n static final BigDecimal LIM = new BigDecimal(\"1e24\");\n static final MathContext MC = MathContext.DECIMAL128;\n String expr; int pos, ops, depth;\n\n public static void main(String[] args) throws Exception {\n HttpServer s = HttpServer.create(new InetSocketAddress(8080), 0);\n s.setExecutor(Runnable::run);\n s.createContext(\"/health\", e -> { if(!e.getRequestMethod().equals(\"GET\")){err(e,405,\"METHOD_NOT_ALLOWED\");return;} resp(e,200,\"{\\\"status\\\":\\\"ok\\\"}\"); });\n s.createContext(\"/api/calculate\", e -> { try { calc(e); } catch(Exception ex){ err(e,500,\"INTERNAL_ERROR\"); } });\n s.createContext(\"/\", e -> { if(!e.getRequestURI().getPath().equals(\"/\")){err(e,404,\"NOT_FOUND\");return;} if(!e.getRequestMethod().equals(\"GET\")){err(e,405,\"METHOD_NOT_ALLOWED\");return;} err(e,404,\"NOT_FOUND\"); });\n s.start();\n }\n\n static void calc(HttpExchange e) throws IOException {\n if (!e.getRequestMethod().equals(\"GET\")) { err(e, 405, \"METHOD_NOT_ALLOWED\"); return; }\n String auth = e.getRequestHeaders().getFirst(\"Authorization\");\n if (auth == null || !auth.equals(\"Bearer demo-calculator\")) { err(e, 401, \"UNAUTHORIZED\"); return; }\n String q = e.getRequestURI().getRawQuery();\n if (q == null || q.isEmpty()) { err(e, 400, \"INVALID_INPUT\"); return; }\n String[] parts = q.split(\"&\");\n if (parts.length != 1 || !parts[0].startsWith(\"expression64=\")) { err(e, 400, \"INVALID_INPUT\"); return; }\n String enc = parts[0].substring(13);\n if (enc.isEmpty() || enc.length() > 256 || !enc.matches(\"[A-Za-z0-9_-]+\")) { err(e, 400, \"INVALID_INPUT\"); return; }\n byte[] dec;\n try { dec = Base64.getUrlDecoder().decode(enc); } catch (Exception x) { err(e, 400, \"INVALID_INPUT\"); return; }\n String exprStr;\n try {\n CharsetDecoder cd = StandardCharsets.UTF_8.newDecoder()\n .onMalformedInput(CodingErrorAction.REPORT)\n .onUnmappableCharacter(CodingErrorAction.REPORT);\n exprStr = cd.decode(ByteBuffer.wrap(dec)).toString();\n } catch (Exception x) { err(e, 400, \"INVALID_INPUT\"); return; }\n if (exprStr.length() > 128) { err(e, 422, \"LIMIT_EXCEEDED\"); return; }\n if (!exprStr.matches(\"[0-9.+\\\\-*/() ]+\")) { err(e, 400, \"INVALID_EXPRESSION\"); return; }\n App p = new App(); p.expr = exprStr; p.pos = 0; p.ops = 0; p.depth = 0;\n BigDecimal r;\n try { r = p.parseSum(); } catch (RuntimeException x) {\n String msg = x.getMessage(); int idx = msg.indexOf(':');\n err(e, Integer.parseInt(msg.substring(0, idx)), msg.substring(idx + 1)); return;\n }\n p.skip();\n if (p.pos < exprStr.length()) { err(e, 400, \"INVALID_EXPRESSION\"); return; }\n BigDecimal fin = r.setScale(12, RoundingMode.HALF_UP).stripTrailingZeros();\n String rs = fin.compareTo(BigDecimal.ZERO) == 0 ? \"0\" : fin.toPlainString();\n resp(e, 200, \"{\\\"expression\\\":\\\"\" + esc(exprStr) + \"\\\",\\\"result\\\":\\\"\" + rs + \"\\\"}\");\n }\n\n static String esc(String s) { return s.replace(\"\\\\\",\"\\\\\\\\\").replace(\"\\\"\",\"\\\\\\\"\"); }\n static void resp(HttpExchange e, int c, String b) throws IOException { byte[] d=b.getBytes(StandardCharsets.UTF_8); e.getResponseHeaders().set(\"Content-Type\",\"application/json\"); e.sendResponseHeaders(c,d.length); try(OutputStream o=e.getResponseBody()){o.write(d);} e.close(); }\n static void err(HttpExchange e, int c, String m) throws IOException { resp(e,c,\"{\\\"error\\\":\\\"\"+m+\"\\\"}\"); }\n void fail(int c,String m){throw new RuntimeException(c+\":\"+m);}\n void skip(){while(pos<expr.length()&&expr.charAt(pos)==' ')pos++;}\n void chkOps(){if(++ops>64)fail(422,\"LIMIT_EXCEEDED\");}\n void chkVal(BigDecimal v){if(v.abs().compareTo(LIM)>0)fail(422,\"LIMIT_EXCEEDED\");}\n\n BigDecimal parseSum(){BigDecimal l=parseProduct();skip();while(pos<expr.length()&&(expr.charAt(pos)=='+'||expr.charAt(pos)=='-')){char o=expr.charAt(pos++);chkOps();BigDecimal r=parseProduct();l=o=='+'?l.add(r,MC):l.subtract(r,MC);chkVal(l);skip();}return l;}\n BigDecimal parseProduct(){BigDecimal l=parseUnary();skip();while(pos<expr.length()&&(expr.charAt(pos)=='*'||expr.charAt(pos)=='/')){char o=expr.charAt(pos++);chkOps();BigDecimal r=parseUnary();if(o=='*')l=l.multiply(r,MC);else{if(r.signum()==0)fail(400,\"DIVISION_BY_ZERO\");l=l.divide(r,MC);}chkVal(l);skip();}return l;}\n BigDecimal parseUnary(){skip();if(pos<expr.length()&&(expr.charAt(pos)=='+'||expr.charAt(pos)=='-')){char o=expr.charAt(pos++);chkOps();BigDecimal v=parseUnary();return o=='-'?v.negate():v;}return parseAtom();}\n BigDecimal parseAtom(){skip();if(pos>=expr.length())fail(400,\"INVALID_EXPRESSION\");char c=expr.charAt(pos);if(c=='('){pos++;depth++;if(depth>16)fail(422,\"LIMIT_EXCEEDED\");BigDecimal v=parseSum();skip();if(pos>=expr.length()||expr.charAt(pos)!=')')fail(400,\"INVALID_EXPRESSION\");pos++;depth--;return v;}if((c>='0'&&c<='9')||c=='.'){int s=pos;boolean dot=false;int digits=0;while(pos<expr.length()){char ch=expr.charAt(pos);if(ch>='0'&&ch<='9'){digits++;pos++;}else if(ch=='.'&&!dot){dot=true;pos++;}else break;}if(digits==0)fail(400,\"INVALID_EXPRESSION\");if(dot&&expr.charAt(pos-1)=='.')fail(400,\"INVALID_EXPRESSION\");String ns=expr.substring(s,pos);if(digits>24)fail(422,\"LIMIT_EXCEEDED\");BigDecimal v=new BigDecimal(ns);chkVal(v);return v;}fail(400,\"INVALID_EXPRESSION\");return null;}\n}" }, "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a" }, "status": "verified_pending_user_acceptance", "test": { "cases": 39, "classes_digest": "dcfd8b31de91f795ab4a7a62e5041ed041a0a220640b2e1a79cddcf141ecb08f", "config_digest": "c46d1daa9b28bd7f8fdd157e1113ddd512216799fb1b752b9c165d6465d0ac96", "container": "zk-run-e5f984e69c324003bde900eae89992e3", "execution_mode": "qemu", "image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf", "isolation": { "disposable": true, "host_mounts": [], "memory_mb": 1024, "network": "none", "vcpu": 1 }, "passed": true, "passed_cases": 39, "preview_scope": "disposable-vm-loopback-http", "receipt_digest": "322d8f0b3bb6a2c557f8acecdac7f2a5b9e4a41cc26ee22da19060cd78074d7e", "receipt_ref": "run-e5f984e69c324003bde900eae89992e3-9f304d752361405a9ef12f8735ff56df", "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "stage": "test", "suite_digest": "05e353f239f8919946d419e91e63fedccbf62b02386fa12f39ad8795b6a4de4d", "tool_receipt": { "input_digest": "63f4c286d07f209947b5b37ae54001004f5b5edbdfbb2cb5debdfd615484e005", "operation": "AO09", "result_digest": "95580dec92dfaf72b488c8894780c28a9d7ecd03ded207020018b3cd50c63d2d", "run_id": "run-e5f984e69c324003bde900eae89992e3" } } } } }, "digest": "07b28ff6a0867cea96079d9739ce6e1b0861a9b05236af10ec80adfd49c45da6", "human_acceptance": false }, "user_calculator_source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "user_calculator_actual_model_calls": 4, "user_calculator_tokens": 18612, "user_calculator_project": { "run_id": "run-e5f984e69c324003bde900eae89992e3", "name": "calculator-e5f984e6", "directory": "E:\\Code\\zkCoding\\.local\\local-web\\projects\\7b86f45f8d8ff444f9cfaee8\\run-e5f984e69c324003bde900eae89992e3\\presentation-1f22b0da8841d07f", "source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a", "preview_url": "http://127.0.0.1:8791/preview-launch/?kind=run&reference=run-e5f984e69c324003bde900eae89992e3", "record_url": "/api/jobs/run-e5f984e69c324003bde900eae89992e3/record", "files": [ { "path": "src/main/java/demo/App.java", "change": "added", "additions": 72, "deletions": 0, "origin": "model-generated" }, { "path": "docs/requirements.md", "change": "added", "additions": 19, "deletions": 0, "origin": "run-record" }, { "path": "docs/design.md", "change": "added", "additions": 7, "deletions": 0, "origin": "platform-validation" }, { "path": "docs/acceptance.md", "change": "added", "additions": 45, "deletions": 0, "origin": "platform-validation" }, { "path": "tests/traceability.json", "change": "added", "additions": 284, "deletions": 0, "origin": "platform-validation" }, { "path": "tests/report.json", "change": "added", "additions": 63, "deletions": 0, "origin": "platform-validation" }, { "path": "README.md", "change": "added", "additions": 9, "deletions": 0, "origin": "platform-validation" }, { "path": "website/index.html", "change": "added", "additions": 5, "deletions": 0, "origin": "platform-template" }, { "path": "website/site.css", "change": "added", "additions": 5, "deletions": 0, "origin": "platform-template" }, { "path": "website/site.js", "change": "added", "additions": 59, "deletions": 0, "origin": "platform-template" } ], "sha256": { "src/main/java/demo/App.java": "eec82afe3ba63f2a90c8043f99293aa18e9f85ab04ae59d865b41ad8193c0fd0", "docs/requirements.md": "e7c584ffd4370550924e68d280bfcc9961b81520f07b212b5f93e86089ba8da6", "docs/design.md": "8b62cb3fd2ca73a6838e15c6d55281fdeb84598fd94a9d3fbb8624d9f8b674b8", "docs/acceptance.md": "fd88df596f5f61d8ca7dfe5b4f9b75fb3ba83cb0388a8f314a9531b1701d09de", "tests/traceability.json": "d421573d6975067c62932e3fcc17da97a4e5a7e14670efaeaa0cf025745f32ac", "tests/report.json": "68816144174f6c81c033efa894840a3f3edfde4fdc20aec0315278c61d776d0c", "README.md": "0c4cae671943d1904d59b2e7d0737dbe97a9441abea03fbd65febdd376f094c8", "website/index.html": "b34752de9ce2d3d55442a9bc4e5ae33dc41e792ceb897c22de795393b9db13e8", "website/site.css": "6677d74aa3a8a106c13299fbe672a63e1384c511973ba1b173038abe81634895", "website/site.js": "2161008f3d7763b276b659a41f75468caed80bd18e88c455b3265ba9966b4155", "evidence/validation.json": "54c6053017bf7f7c9a8594536b661fca83dad2f5a5be36e8cf11ee296d24e265" }, "host_execution": false }, "legacy_snapshot_files_verified": 11, "presentation_files": { "index.html": "b34752de9ce2d3d55442a9bc4e5ae33dc41e792ceb897c22de795393b9db13e8", "site.js": "db6bc0a79b9014961aee64a3272949622fc72ad65ee72d7f0cd7291b5d7c3045", "site.css": "fdcf785a62ce4e954aa6b901361323fa03738cb94897d55dc5f4f05187900ae1" }, "protected_java_http_cases": 87, "model_calls_added_by_preview_validation": 0, "test_previews_closed": true, "human_acceptance": false, "public_deployment": false }
{
"schema": "zkcoding.clean-app-preview-validation.v1",
"browser": {
"checks": [
"original workbench opens real code/documents/diffs and materializes a new immutable presentation revision",
"old physical project files remain unchanged; this preview validation did not replay any model call"
],
"scenarios": {
"erp": {
"checks": [
"click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789",
"exact money and both approval thresholds match actual Java responses",
"unauthorized department and invalid quantity do not retain a stale quote",
"business results are checked against actual Java response/source digest without exposing raw JSON in the page",
"downloadable project website bytes match the current application presentation",
"saved project links open the clean application and reuse the current lease",
"390px layout, refresh without VM restart and unchanged workbench verified"
],
"source_digest": "dd8d42671bda1327f245b0fd540b0ac1762572e9e57bf6664e2516a1cf6cad57",
"preview_id": "efe09fc1d8ef4659b215d5e15befaade",
"receipt": {
"source_digest": "dd8d42671bda1327f245b0fd540b0ac1762572e9e57bf6664e2516a1cf6cad57",
"image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf",
"config_digest": "841129aac9dd785fe877d72002533547377a93994d0afb830dadb1273b51389a",
"classes_digest": "cdf0cdf9ed32e81d2d9d5e69a31cd3f4f3e02610d39be10ec5a8111b9210811a",
"tests": 25,
"network": "none",
"host_mounts": []
},
"url": "http://127.0.0.1:8791/preview-site/?lease=efe09fc1d8ef4659b215d5e15befaade",
"passed": true
},
"calculator": {
"checks": [
"click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789",
"old application lease cannot access the replacement service",
"keyboard, decimal precision, continuing from the last result and clipboard work",
"division by zero, incomplete expression, history refill and clear invalidate stale results",
"business results are checked against actual Java response/source digest without exposing raw JSON in the page",
"downloadable project website bytes match the current application presentation",
"390px layout, refresh without VM restart and unchanged workbench verified"
],
"source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a",
"preview_id": "ef8c3f79158b4071a55328fea77c748f",
"receipt": {
"source_digest": "3cbb54928d01eb6315a4bde640ad0145415d3e23e7d43dceca3ffe7d754aed2a",
"image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf",
"config_digest": "c46d1daa9b28bd7f8fdd157e1113ddd512216799fb1b752b9c165d6465d0ac96",
"classes_digest": "dcfd8b31de91f795ab4a7a62e5041ed041a0a220640b2e1a79cddcf141ecb08f",
"tests": 39,
"network": "none",
"host_mounts": []
},
"url": "http://127.0.0.1:8791/preview-site/?lease=ef8c3f79158b4071a55328fea77c748f",
"passed": true
},
"pdf": {
"checks": [
"click opens only the ready application on 8791; no launch/debug panel; parent stays on 8789",
"old application lease cannot access the replacement service",
"real two-page PDF parsing, pagination, copy and TXT/JSON export work",
"missing/broken/oversized files, clearing and drag-drop recover without stale exports",
"business results are checked against actual Java response/source digest without exposing raw JSON in the page",
"downloadable project website bytes match the current application presentation",
"390px layout, refresh without VM restart and unchanged workbench verified"
],
"source_digest": "410fa3717502881c9be744f17cd59fda053e9b5f7f028bd0e85e1d364f772225",
"preview_id": "c6d097e0c9a74a26b836ae26b98b8ea0",
"receipt": {
"source_digest": "410fa3717502881c9be744f17cd59fda053e9b5f7f028bd0e85e1d364f772225",
"image": "zkcoding-qemu@sha256:123b955068e212a3cb1cf6db348cc8efab24c44ca2b4fb67835100845a9e7ddf",
"config_digest": "128defe2109c8b7693134f252f9235bc863b5915fc11d640b8bd52394e589c72",
"classes_digest": "669d901e2f6d2f5286d723313fe3b7a0891efce30fc7f9b96ade9695e3827bad",
"tests": 23,
"network": "none",
"host_mounts": []
},
"url": "http://127.0.0.1:8791/preview-site/?lease=c6d097e0c9a74a26b836ae26b98b8ea0",
"passed": true
}
},
"errors": [],
"model_calls_started": 0,
"user_calculator": {
"id": "run-e5f984e69c324003bde900eae89992e3",
"status": "verified",
"repairs": 2,
"model_calls": [
{
"id": 59,
"run_id": "run-e5f984e69c324003bde900eae89992e3",
"reservation": 19931,
"charged": 5338,
"state": "settled",
"provider": "bailian-qwen3.8-flash",
"prompt_digest": "80c035290215af8b94f12ca6369db6b75ecacaebaee921510aea96253dea8de6",
"metadata": {
"finish_reason": "stop",
"model": "qwen3.8-flash",
"policy_version": "bailian-task-routing-v2",