fix: keep artifact pages observable and pause repeated context reads

This commit is contained in:
Agent Workbench Dev
2026-10-29 21:50:53 +08:00
parent 3825142a68
commit 6e465a26d4
42 changed files with 520 additions and 30 deletions
+8
View File
@@ -23,3 +23,11 @@
覆盖单user回合的长Task、近期大小混合结果、Unicode、完整多工具配对、原参数和历史不变、目标和追加要求完整、固定开销/输出余量/Run和Task剩余预算、工件缺失/外部篡改、显式续接及实际进程重启。API/桌面/390px应能读取请求估算与实际用量、历史索引和工件;真实同题样本单独报告用量和人工介入。
本文件描述当前开发契约;实际完成/部署以VALIDATION.md为准。
## 1.5.1:读取预算与重复进展
1.5.0真实样本暴露较大工件页被整体封存的循环,失败记录保留。1.5.1的read_artifact按下一请求中工具消息的双层JSON字节预算生成实际读取页;默认2000字符,requested_limit与实际范围分别返回,next_offset指向下一段。UTF-16坐标按合法Unicode边界处理;分页不改写历史工具参数,原工件与SHA256保持。
请求计划优先选择近期直接代码/原结果组,并提供有界working_evidence定位。目标、追加要求和完整协议仍按原契约保留;不能容纳的原大结果仍整体封存,不宣称所有任意大小工具组都能进入模型窗口。
Task保存有界工件覆盖区间、重复次数和最近读取身份。连续3次读取已完整覆盖区间或连续追逐6个更新历史索引时,以no_progress暂停,所有已执行结果先保存并完成工具配对。读取新区间或取得直接证据会结束重复序列;显式续接清除暂停序列,保留已读证据与同Task身份。此检测针对工件读取,尚不是通用任务调度/语义无进展判断。
+9
View File
@@ -0,0 +1,9 @@
# 1.5.1 验收清单
本轮由[1.5真实失败](context-live-model-failure.json)驱动:较大的工件页在下一请求中被封存,模型反复读取同一片段。修复实际工具分页、直接依据保留和工件重复进展检测。
专项4/4读取测试及1项直接代码保留回归通过;原上下文/API/Runtime的25项针对性回归通过。专项包含实际本地HTTP中模型必须收到最新工件结果、完整Unicode重建、重复读取暂停、保存后重新打开不重放,以及显式续接同Task。
完整163/163项行为/API/实际退出/升级回归通过,0失败/跳过/取消,见[完整回归](context-fix-tests-validation.json)。基础10、诊断9、任务7、Git9、索引8、批次11及上下文9共63组界面通过,0页面/请求异常,见[界面总表](context-fix-all-ui-validation.json)。新增暂停用例最初误沿用桌面视口,已显式设置并验证390px后复验;手机查看原因、关闭任务抽屉及显式续接保持原Task。
便携/源码独立验收、保留原进程升级与同一个真实失败Task的续接随后登记。当前正式服务仍为1.5.0,不将待验收结果写为完成。
+8
View File
@@ -1,5 +1,13 @@
# Agent Workbench 验收记录
## 1.5.1 · 实际工件分页与重复读取暂停
构建、163/163项完整回归及63组界面全部通过,0失败/跳过/取消/页面或请求异常;见[回归](context-fix-tests-validation.json)、[界面总表](context-fix-all-ui-validation.json)和[QA-1.5.1](QA-1.5.1.md)。工件页按下一请求的双层JSON字节限额生成、返回next_offset;原工件、Unicode与完整协议保留。直接代码依据优先选择,Task已读区间和no_progress暂停持久保存,恢复不自动重放。
新增实际HTTP用例证明下一请求包含刚读取的大工件页,分页推进而不重复工具;重复已覆盖区间的实际循环以no_progress暂停,重新打开后保留原Task/已完成结果,显式续接才请求模型。手机用例检查实际390px宽度、可读原因和续接归属;第一次误用桌面截图的验证器已修正并重跑。
独立发行和同一真实失败Task续接正在执行,后续追加实际结果。1.5.0首轮失败证据保持,尚无同题多次对照的费用收益结论。
## 1.5.0 · 有界请求与完整历史
Windows x64、Node24.22.1、Edge156.0.4314.42。构建与158/158项行为/API/实际进程退出/升级回归通过,0失败/跳过/取消;上下文8、批次11及原有43共62组真实界面全部通过,0页面/请求异常。桌面与390px历史/工件截图已目视核对。
+38
View File
@@ -0,0 +1,38 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:47:45.452Z",
"count": 63,
"checks": [
{
"script": "verify-ui.mjs",
"passed": 10
},
{
"script": "verify-diagnostics-ui.mjs",
"passed": 9
},
{
"script": "verify-execution-ui.mjs",
"passed": 7
},
{
"script": "verify-delivery-ui.mjs",
"passed": 9
},
{
"script": "verify-index-ui.mjs",
"passed": 8
},
{
"script": "verify-change-sets-ui.mjs",
"passed": 11
},
{
"script": "verify-context-ui.mjs",
"passed": 9
}
],
"contextUiRecheckedAt": "2026-10-29T13:47:45.452Z",
"mobileReadPauseWidth": 390
}
+27
View File
@@ -0,0 +1,27 @@
{
"success": true,
"url": "http://127.0.0.1:52218",
"browser": "Microsoft Edge 156.0.4314.42",
"date": "2026-10-29T13:39:52.423Z",
"projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\ui-4e108dc4-3f09-4a10-8235-1d0125675aba\\ui-project",
"viewports": [
1440,
780,
390
],
"passed": [
"project selection and real file preview",
"real command consent, execution and stale snapshot rejection",
"diff review and verified file application",
"manual editor creates a reviewable proposal",
"file responses stay with the current selection",
"denial, session selection, reload, stale response rejection and export",
"project inventory responses cannot replace another project",
"780 and 390 px: project drawer, file, diff and trace controls, no page overflow",
"unified and detailed research reports render",
"model list, ephemeral key, compatible fixture tool loop and return to offline mode"
],
"pageErrors": [],
"requestFailures": [],
"modelValidation": "controlled local HTTP fixture; no real model"
}
+29
View File
@@ -0,0 +1,29 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:42:38.074Z",
"cases": [
"Desktop batch scope, per-file diffs, sealed single-write guard and pre-apply bytes",
"Three-file reviewed application preserves exact BOM/CRLF/LF and creates the new file",
"Explicit batch rollback restores exact originals and removes only the reviewed new file",
"A last-file owner conflict blocks the whole batch and shows the real recovery direction",
"Durable partial recovery reads actual hashes and preserves owner content during rollback",
"Changed observation fingerprints reject stale acknowledgement without releasing the project",
"Explicit owner-content acknowledgement ends recovery without claiming successful application",
"Switching projects clears the previous task notification while retaining its durable error and recovery history",
"390px step-limit review, same-task continuation entry, rollback confirmation and keyboard close fit the viewport",
"A delayed preparation response never opens a different project or changes its selected session",
"A failed batch response after its component unmounts cannot display an error in the newly selected project"
],
"pageErrors": [],
"requestFailures": [],
"screenshots": [
"docs/screenshots/context-fix-batch-desktop-review.png",
"docs/screenshots/context-fix-batch-desktop-conflict.png",
"docs/screenshots/context-fix-batch-desktop-recovery.png",
"docs/screenshots/context-fix-batch-mobile-review.png",
"docs/screenshots/context-fix-batch-mobile-rollback.png"
],
"projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\batch-ui-261708de-6af0-40ff-ad0d-66e5b444cfa3",
"scope": "Real independent demo host and durable batch states; UI fixtures include actual owner conflict/rollback results. No real model credentials or user project were used."
}
@@ -0,0 +1,31 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:42:22.402Z",
"browser": "156.0.4314.42",
"passed": [
"actual failing tests and four source proposals retain the original project and task",
"reviewed changes continue the same Task through 14 real tests and model-prepared Git review",
"review shows actual paths, diffs, tests, author and policy; cancelling leaves Git unchanged",
"an index change after confirmation preview refuses the stale job and preserves both staged owners",
"390px confirmation keeps file hashes, diffs and actions inside the modal",
"double confirmation creates one four-file commit, retains owner bytes and publishes report with completion",
"report viewing and Markdown/JSON downloads preserve verified artifact bytes and truthful acceptance limits",
"mobile report preview closes cleanly and keeps the task input fixed",
"unknown Git results block new submission and the explicit reconcile action restores the existing commit"
],
"pageErrors": [],
"requestFailures": [],
"projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\delivery-ui-5b728005-4b5e-4f90-96ad-d21bb97c4efe\\四模块交付工程",
"projectId": "bc9f1b3a-0af3-4919-8a8e-6e736e6ae638",
"sessionId": "e6703858-6abd-40bb-a25f-76267efc3bec",
"taskId": "9d62894b-79d2-429f-a13e-b8e38c0cb036",
"commit": "657c040cdef31e810a75ee3f7668221a84ac16a4",
"recoveryCommit": "34836a8ffdbe75921a28d8523e073043e03d3cd2",
"testCounts": {
"baselineFailed": 13,
"passed": 14
},
"model": "controlled local HTTP fixture",
"confirmations": 2
}
@@ -0,0 +1,20 @@
{
"success": true,
"version": "1.5.1",
"url": "http://127.0.0.1:52218",
"date": "2026-10-29T13:40:38.565Z",
"passed": [
"model response validation checks the tentative connection before saving",
"a model failure after successful tools shows source, attempts and local runtime diagnosis",
"explicit retry preserves the completed tool result without replaying the task",
"an error question receives the actual session diagnosis and formatted answer",
"review state exposes the review action and prevents application during a running request",
"approved Unicode commands execute in the declared shell and retain Chinese output",
"authentication errors do not retry and error/diagnostic controls fit a 390 px viewport",
"stop cancels pending retry and clears running model state",
"a transient service failure recovers within the bounded retry policy"
],
"pageErrors": [],
"requestFailures": [],
"modelValidation": "controlled local HTTP fixture; actual configured model is verified separately"
}
@@ -0,0 +1,19 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:41:30.900Z",
"browser": "156.0.4314.42",
"passed": [
"model-selected checks wait for approval and display actual counted results",
"verified artifact preview shows the real check log and hash",
"changed source invalidates old checks and manual confirmation runs the new plan",
"390px task drawer, log preview, close controls and fixed composer remain operable",
"reconnection synchronizes missed session changes in other projects",
"budget controls pause before tools and preserve the goal across recorded runs",
"applied proposals continue the original task into actual engineering verification"
],
"pageErrors": [],
"requestFailures": [],
"projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\execution-ui-db8cc267-eb38-49b5-ae45-693fbf088ca5\\project",
"model": "controlled local HTTP fixture"
}
+19
View File
@@ -0,0 +1,19 @@
{
"checkedAt": "2026-10-29T13:42:27.687Z",
"version": "1.5.1",
"passed": [
"工程索引可独立于任务使用,实际覆盖范围与损坏文件显示明确",
"真实AST查询打开原文件第181行并仅滚动代码容器,输入区和顶部保持可见",
"查询词保留;过期SHA不高亮旧位置,增量刷新后正确定位第184行",
"切换项目时延迟返回的旧索引不覆盖新项目结果",
"Python候选、字符串误报排除和局部导入文件候选保留真实证据标签",
"两处唯一锚点成为待审核提案,真实界面应用后BOM/CRLF和未选择原字节保留",
"390px索引查询、范围和完整指纹可读且无横向溢出,实际文件行定位通过",
"索引刷新失败保留归属和解释,旧结果禁用并可重试恢复"
],
"pageErrors": [],
"requestFailures": [],
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\index-ui-982c3cea-8762-4ac7-ab43-3328c8ef105f",
"primaryProjectId": "759b7254-d556-41dd-a529-05154762bc73",
"otherProjectId": "bf558c4e-768f-4ac1-a268-cb53f496283d"
}
+16
View File
@@ -0,0 +1,16 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:41:56.942Z",
"counts": {
"tests": 163,
"pass": 163,
"fail": 0,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"exitCode": 0,
"logFile": ".qa/context-full-tests.tap",
"testFiles": 19
}
+30
View File
@@ -0,0 +1,30 @@
{
"success": true,
"version": "1.5.1",
"testedAt": "2026-10-29T13:47:45.452Z",
"passed": [
"desktop request estimate, actual usage, complete goal and history identity are visible",
"paged complete history opens actual tool result artifacts without executing tools",
"historical and resumed Runs retain their own request records",
"390px history, original JSON and sent-body dialogs fit and retain close controls",
"late old history failure stays in its original scope after switching projects",
"late old Run failure stays in its original scope after switching projects",
"late old request-body failure stays in its original scope after switching projects",
"context-limit pause explains the intact requirement and explicit continuation",
"390px repeated-read pause explains the cause and explicit continuation retains the same Task"
],
"pageErrors": [],
"requestFailures": [],
"screenshots": [
"docs/screenshots/context-fix-desktop-plan.png",
"docs/screenshots/context-fix-desktop-history.png",
"docs/screenshots/context-fix-mobile-history.png",
"docs/screenshots/context-fix-mobile-original.png",
"docs/screenshots/context-fix-mobile-request-body.png",
"docs/screenshots/context-fix-mobile-read-pause.png"
],
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-17d4e124-33a6-45cc-8004-ff58e3bad461",
"data": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-17d4e124-33a6-45cc-8004-ff58e3bad461\\data",
"mode": "saved synthetic context evidence; no real model or project commands executed by this UI verifier",
"browser": "156.0.4314.42"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB