feat: add source-pinned default-off prompt experiments with native comparisons

This commit is contained in:
Agent Workbench Dev
2026-10-31 06:16:36 +08:00
parent 48635be1ce
commit 482acdeff1
47 changed files with 148346 additions and 36 deletions
+2
View File
@@ -1,5 +1,7 @@
# 1.14 工程执行界面
Purge工程提示实验沿用控制台的表单与结构线,以克制的灰紫#626594标记实验来源。默认关闭的复选入口位于受控安装之后,只对当前分工计划生效;开启后才显示来源检测、完整工程提示、字节上限和九份来源指纹。封存后父页与Run记录明确展示所选版本和原文本/SHA,不提供在旧Run上替换策略的入口。390px检测按钮保留42px触控区,长指纹自然换行。未经真实模型重复收益不增加成功徽标或默认开启。
受众是使用工作台交付本地工程的人。页面负责选择实际执行方式、冻结范围与预算、查看真实执行和审查成果;正式服务在完整验收后升级。
沿用现有工程控制台:深蓝墨色#153047、辅助文字#587087、结构线#c7d3de、动作蓝#2560a3、浅蓝底#edf3fa、核对琥珀#925619。标题使用Segoe UI/Microsoft YaHei的600–700字重,正文13px,原身份与路径使用Cascadia Code/Consolas 11–12px。颜色表示动作、原依据或待核对状态,不增加无依据的成功标记。
+17
View File
@@ -0,0 +1,17 @@
# Purge来源与可验证的实验范围
2026-10-31。独立源码upstream是1.1.78,Desktop/plugins是1.1.81;两者package.dshTarget都声明0.2.1-rc.2。两来源的package/index/identity/core/capability-protocol/patch不同,continue-retry原字节相同。九份关键原文件的大小/SHA与原package元数据分别封存在controlled-engine-purge-source-observation.json;没有导入、运行或安装原插件,也未读用户配置。
## 实际观测
原插件在system-prompt/assemble及agent/pre-step等位置调整提示段,处理固定身份、重复注入、严格插值、模式和能力目录。rewritePromptAssembly返回新装配对象;它也会删掉原harness身份、调整工作区段和persona。原1.1.78的capability-protocol区分红队主/子任务,1.1.81统一为同一份能力选择规则。
原完整index.apply不仅是字符串处理:即使autoApplyOnStart为false,仍有提示种子、profile插入/自愈、runtime环境、工具注册与默认设置;明确应用还涉及宿主源码、ASAR、shim、备份和重启。原autoRetry默认true,hooksDenyBypass默认true。源码里的提示、默认或工具不能赋予工作台权限,也不能与工作台已有重试预算叠加。
## 本阶段独立开发的实验
从来源锁定、明确提示段和实际生效点提炼成自有提示装配实验:仅在受控Run中追加一份已封存工程提示,保持原提示、工具目录和宿主检查/文件审查;开启时固定来源版本/SHA及完整文本/SHA,程序或提示变化需要新计划。默认关闭,不执行上游JavaScript,不安装上游完整插件,不自动重试/续跑或修改宿主。界面名称需明确是提示实验,不能标成完整Purge运行能力。
同题对照固定工程基线、需求、测试、模型、总预算和范围,两版本分别有/无提示各两轮,保存原生协议、原失败、实际检查/人工审批、用量与耗时。自有本地模型夹具可以证明提示真实到达模型、权限和预算保持;它无法证明真实模型收益。即使夹具工程都通过,也不得将策略默认开启或宣称模型能力提升。
独立实验已实现:34/34相关专项、两版本八个独立Node工程36节点同题对照、真实Edge桌面/390px9节点通过。每组保留原失败/8项功能测试/构建/审批/父审查/Git;两版本各两次有无实验对照的追加估算输入为2067–2076 tokens,每个工程实际7次自有HTTP请求与1176夹具报告tokens,审批仍为2次。完整原报告为controlled-engine-purge-comparison.json;真实模型收益未测,默认关闭。最终发行仍以QA-1.14和当前Task原报告判定。
+13 -1
View File
@@ -46,4 +46,16 @@
旧双任务33cb41d6完整10节点、旧连接516f5ca0完整10组兼容复验通过,0页面异常/请求失败。连接说明恢复为标题下可见正文;前两轮说明断言失败原DOM/日志分别保留。原1.13 workers-ui-validation和workers-engines-ui-validation与Git原字节核对一致,本轮新结果单独保存controlled-engine前缀,不覆盖历史。
原D第九节点日志中的「original unknown outcome」标签不够精确:originalOutcome来自实际cancelled Run,unknown是声明的后续状态转换。实际断言核对原Outcome/报告/预算不变;只修正后续验收标签为「original outcome」,原成功/失败证据不改写。E默认关闭的Purge来源/提示实验与同题对照、F最终版本/完整回归/独立发行/保留状态升级仍待完成。
原D第九节点日志中的「original unknown outcome」标签不够精确:originalOutcome来自实际cancelled Run,unknown是声明的后续状态转换。实际断言核对原Outcome/报告/预算不变;只修正后续验收标签为「original outcome」,原成功/失败证据不改写。E验收如下;F最终版本/完整回归/独立发行/保留状态升级仍待完成。
## E:来源锁定与默认关闭的提示实验
独立1.1.78和Desktop1.1.81分别固定九份关键来源;从来源核对和提示装配机制独立实现自有实验段,默认关闭。封存原版本、来源/完整提示/生效段SHA256和interpolate:false,每次实际模型输入需要在已观测系统入口恰好包含一份完整段,来源变化使旧计划/审批失效;原SDK程序权限、宿主检查/文件审查和累计预算保持。
首轮相关33项32/33中的预算断言误以为原生Run已创建,实际在宿主初始预算门控前已拒绝;修正为按实际输入度量构造预算边界,新12/12专项通过。八工程首轮在启用组因SDK使用messages[role=system]而非独立system字段,被原提示守卫拒绝,完整原输入/报告保留。修正守卫支持两种真实系统入口,并保持双份/用户或工具伪副本拒绝;新整轮34/34(21项兼容与13项提示专项)通过,0失败/取消/跳过。
第二次84015676完整八Node工程36节点通过,两来源各有无实验两次并交错顺序;294份原源码/脚本/基准/构建输入当轮保持。相同基线/测试/范围/模型算法/预算下,各组保留一次真实失败和修复,子/父8/8与构建/审查/Git通过,完整原生正常结束及全树关闭。各工程7次自有HTTP请求/1176夹具报告tokens/2次宿主审批;实验增加2067–2076估算输入tokens,不重置预算。该夹具没有测量真实模型推理收益,默认关闭与modelBenefit说明保持。
实际Edge/Harness的首个2af1c3af界面8节点通过,目视发现重新检测后旧封存失败仍显示;改为当前实验字段更新清除旧失败,新37ca77ef桌面/390px整轮9节点通过。来源缺失/实际变化拒绝、两来源检测/关闭、迟到错误隔离、42px触控和无横向溢出、原字面提示逐请求生效、完整所属树关闭、原SHA报告下载及新目标默认关闭均实际验证。原8节点与3张截图保留,最终9节点/3张截图已核对。
原证据为controlled-engine-purge-source-observation、kernel-first、kernel、kernel-layout、comparison-first、comparison、ui-first-validation与ui-validation及对应-log.txt。E仍使用开发版1.13.0,不能将局部通过计为正式1.14发行;当前正式PID23172/Provider与1.13不变,0真实模型请求。
+9 -1
View File
@@ -18,4 +18,12 @@
恢复场景原Outcome来自cancelled Run,原日志「unknown outcome」标签不够精确;后续标签已修正,原证据不改写。一次收尾脚本假定报告含数字groups而误报失败,按实际success/passed数组及assertions结构复核后确认三个原报告成功;没有重跑或拼接统计。
下一节点Purge完整插件含自愈/宿主修改入口,先实现独立提示装配实验及来源锁定,保留宿主审查权限,未经重复收益不默认启用。最终发行前还需审查升级对新增engine_run/CoreKind的初始化及无引擎历史导出兼容,不能仅复用旧升级器。
Purge完整插件含自愈/宿主修改入口,E独立实验见下方;最终发行前仍需审查升级对新增engine_run/CoreKind的初始化及无引擎历史导出兼容,不能仅复用旧升级器。
## E:实际生效输入与诚实的对照范围
独立实验默认关闭,不执行上游完整插件。首次预算测试失败发生在原生Run创建前,首次启用工程又暴露SDK实际系统提示在messages里;以原协议修正守卫,保留错误输入和结果。启动marker只能证明配置已加载,每个实际模型请求还需要完整字面提示唯一生效及原预算核对。
新34/34专项、两版本八工程36节点和最终桌面/390px9节点通过,保持原测试/源码/父审批/Git及全树结束。两版本的各次提示开销真实记录;本地固定回答夹具不能证明推理收益,也不能用相近耗时判定策略有益。真实模型同题实验仍独立待验,默认关闭。
目视核对发现成功重新检测后旧封存错误仍显示,虽功能流程可继续但反馈有误;字段更新清除旧失败,追加真实可见断言后复验9节点。原8节点报告/截图和失败输出分别保存,局部回归不替代F最终独立发行验收。
@@ -0,0 +1,14 @@
> local-agent-workbench@1.13.0 build
> tsc --noEmit && vite build && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1716 modules transformed.
rendering chunks...
computing gzip size...
dist-client/index.html 0.50 kB │ gzip: 0.37 kB
dist-client/assets/index-D4d9CZO8.css 129.14 kB │ gzip: 24.78 kB
dist-client/assets/index-utea2E6X.js 485.55 kB │ gzip: 143.14 kB
✓ built in 1.41s
Server bundle built.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
PASS 1.1.78-r1-disabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.78-r1-disabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.78-r1-disabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.78-r1-disabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.78-r1-enabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-purge-93e7675b-ad55-4db7-9fe2-1e3aa715f2e9
{"success":false,"cases":5,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-purge-93e7675b-ad55-4db7-9fe2-1e3aa715f2e9","realModelRequests":0,"error":"AssertionError [ERR_ASSERTION]: 实际模型输入缺少唯一完整的封存提示实验段,未发送请求。\n+ actual - expected\n\n+ 'failed'\n- 'completed'\n\n at runSample (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:147:14)\n at runNextTicks (node:internal/process/task_queues:65:5)\n at process.processTimers (node:internal/timers:615:9)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:225:24"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,38 @@
PASS 1.1.78-r1-disabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.78-r1-disabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.78-r1-disabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.78-r1-disabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.78-r1-enabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.78-r1-enabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.78-r1-enabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.78-r1-enabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.78 repetition 1: identical original task/baseline/tests/response algorithm and budgets; actual prompt overhead and host approvals recorded
PASS 1.1.78-r2-enabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.78-r2-enabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.78-r2-enabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.78-r2-enabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.78-r2-disabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.78-r2-disabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.78-r2-disabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.78-r2-disabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.78 repetition 2: identical original task/baseline/tests/response algorithm and budgets; actual prompt overhead and host approvals recorded
PASS 1.1.81-r1-disabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.81-r1-disabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.81-r1-disabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.81-r1-disabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.81-r1-enabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.81-r1-enabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.81-r1-enabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.81-r1-enabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.81 repetition 1: identical original task/baseline/tests/response algorithm and budgets; actual prompt overhead and host approvals recorded
PASS 1.1.81-r2-enabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.81-r2-enabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.81-r2-enabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.81-r2-enabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.81-r2-disabled: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
PASS 1.1.81-r2-disabled: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
PASS 1.1.81-r2-disabled: separately reviewed parent merge passes all 8 functional tests and actual build/compile
PASS 1.1.81-r2-disabled: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
PASS 1.1.81 repetition 2: identical original task/baseline/tests/response algorithm and budgets; actual prompt overhead and host approvals recorded
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-purge-84015676-a231-410d-a512-74abcbcef165
{"success":true,"cases":36,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-purge-84015676-a231-410d-a512-74abcbcef165","realModelRequests":0,"error":null}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
> local-agent-workbench@1.13.0 build
> tsc --noEmit && vite build && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1716 modules transformed.
rendering chunks...
computing gzip size...
dist-client/index.html 0.50 kB │ gzip: 0.37 kB
dist-client/assets/index-D4d9CZO8.css 129.14 kB │ gzip: 24.78 kB
dist-client/assets/index-Bf9kaC4h.js 485.57 kB │ gzip: 143.15 kB
✓ built in 1.42s
Server bundle built.
@@ -0,0 +1,51 @@
✔ controlled installation pins the native kernel and bridge independently of the existing connection-probe identity (793.257ms)
✔ controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract (0.5603ms)
✔ owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations (5.9635ms)
✔ bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch (618.3009ms)
✔ bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect (565.9574ms)
✔ bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity (673.695ms)
✔ stopped and oversized bridge requests never reach a local model or tool callback (794.3909ms)
✔ controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse (11058.2427ms)
✔ native text and call IDs preserve original result pairing while unsupported content fails closed (0.7758ms)
✔ one engine child freezes real installation identity before creating tasks and rejects a changed source (5802.5702ms)
✔ owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs (17894.2852ms)
✔ forged native scope cannot change a parent file and a final completion claim cannot replace worker proof (8916.7968ms)
✔ duplicate native IDs are rejected without replaying a saved tool (8503.6329ms)
✔ native input exceeding the context budget is retained and sends no model request (7072.0545ms)
✔ stop retains a late reported model usage once and executes no tool from that output (7324.6488ms)
✔ a source change after the original model intent stops before native tools execute (7295.5058ms)
✔ an engine source change while approval is pending invalidates the old permission before any check starts (9894.5032ms)
✔ missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text (0.578ms)
✔ closed root with an original live descendant remains unknown and retains its process tree (0.258ms)
✔ host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes (11070.9882ms)
✔ corrupted model reservation cannot reduce recovered budget or permit a new engine request (8900.6863ms)
✔ two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default (543.8912ms)
✔ incomplete, unsupported, relative and oversized sources cannot enable the experiment (627.6106ms)
✔ invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created (1774.5132ms)
✔ source edits between detection and plan are rejected without creating a parent Task (1517.2805ms)
✔ source edits after sealing cannot launch a child and do not reset its cumulative budget (5874.9873ms)
✔ literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required (18109.2202ms)
✔ source changes after a model response stop before any native tool is accepted, retaining the actual usage once (7376.2092ms)
✔ source changes while approval is pending invalidate the old permission before an engineering check starts (9991.9956ms)
✔ altered text, interpolation, section order and policy flags cannot reuse a sealed experiment (1524.9531ms)
✔ a missing or duplicated experimental section in the actual input is rejected before any model dispatch (14210.3009ms)
✖ experimental prompt overhead still participates in the original complete-input budget guard (6442.7283ms)
✔ source detection HTTP remains local-authenticated and read-only with no configured model requests (1580.9611ms)
ℹ tests 33
ℹ suites 0
ℹ pass 32
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 177200.7418
✖ failing tests:
test at tests\purge-strategy.test.mjs:119:1
✖ experimental prompt overhead still participates in the original complete-input budget guard (6442.7283ms)
TypeError [Error]: Cannot read properties of undefined (reading 'requests')
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/purge-strategy.test.mjs:122:68)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
@@ -0,0 +1,214 @@
TAP version 13
# Subtest: controlled installation pins the native kernel and bridge independently of the existing connection-probe identity
ok 1 - controlled installation pins the native kernel and bridge independently of the existing connection-probe identity
---
duration_ms: 813.8097
type: 'test'
...
# Subtest: controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract
ok 2 - controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract
---
duration_ms: 0.5268
type: 'test'
...
# Subtest: owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations
ok 3 - owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations
---
duration_ms: 5.2072
type: 'test'
...
# Subtest: bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch
ok 4 - bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch
---
duration_ms: 668.8887
type: 'test'
...
# Subtest: bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect
ok 5 - bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect
---
duration_ms: 778.3349
type: 'test'
...
# Subtest: bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity
ok 6 - bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity
---
duration_ms: 614.3418
type: 'test'
...
# Subtest: stopped and oversized bridge requests never reach a local model or tool callback
ok 7 - stopped and oversized bridge requests never reach a local model or tool callback
---
duration_ms: 651.1958
type: 'test'
...
# Subtest: controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse
ok 8 - controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse
---
duration_ms: 10876.4058
type: 'test'
...
# Subtest: native text and call IDs preserve original result pairing while unsupported content fails closed
ok 9 - native text and call IDs preserve original result pairing while unsupported content fails closed
---
duration_ms: 0.7768
type: 'test'
...
# Subtest: one engine child freezes real installation identity before creating tasks and rejects a changed source
ok 10 - one engine child freezes real installation identity before creating tasks and rejects a changed source
---
duration_ms: 5726.3702
type: 'test'
...
# Subtest: owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs
ok 11 - owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs
---
duration_ms: 18071.1785
type: 'test'
...
# Subtest: forged native scope cannot change a parent file and a final completion claim cannot replace worker proof
ok 12 - forged native scope cannot change a parent file and a final completion claim cannot replace worker proof
---
duration_ms: 8984.3641
type: 'test'
...
# Subtest: duplicate native IDs are rejected without replaying a saved tool
ok 13 - duplicate native IDs are rejected without replaying a saved tool
---
duration_ms: 8516.2249
type: 'test'
...
# Subtest: native input exceeding the context budget is retained and sends no model request
ok 14 - native input exceeding the context budget is retained and sends no model request
---
duration_ms: 6965.7673
type: 'test'
...
# Subtest: stop retains a late reported model usage once and executes no tool from that output
ok 15 - stop retains a late reported model usage once and executes no tool from that output
---
duration_ms: 7356.17
type: 'test'
...
# Subtest: a source change after the original model intent stops before native tools execute
ok 16 - a source change after the original model intent stops before native tools execute
---
duration_ms: 7565.7124
type: 'test'
...
# Subtest: an engine source change while approval is pending invalidates the old permission before any check starts
ok 17 - an engine source change while approval is pending invalidates the old permission before any check starts
---
duration_ms: 10010.533
type: 'test'
...
# Subtest: missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text
ok 18 - missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text
---
duration_ms: 0.5615
type: 'test'
...
# Subtest: closed root with an original live descendant remains unknown and retains its process tree
ok 19 - closed root with an original live descendant remains unknown and retains its process tree
---
duration_ms: 0.2551
type: 'test'
...
# Subtest: host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes
ok 20 - host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes
---
duration_ms: 10737.5166
type: 'test'
...
# Subtest: corrupted model reservation cannot reduce recovered budget or permit a new engine request
ok 21 - corrupted model reservation cannot reduce recovered budget or permit a new engine request
---
duration_ms: 8822.1825
type: 'test'
...
# Subtest: two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
ok 22 - two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
---
duration_ms: 608.3378
type: 'test'
...
# Subtest: incomplete, unsupported, relative and oversized sources cannot enable the experiment
ok 23 - incomplete, unsupported, relative and oversized sources cannot enable the experiment
---
duration_ms: 651.4882
type: 'test'
...
# Subtest: invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
ok 24 - invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
---
duration_ms: 1858.8864
type: 'test'
...
# Subtest: source edits between detection and plan are rejected without creating a parent Task
ok 25 - source edits between detection and plan are rejected without creating a parent Task
---
duration_ms: 1485.5494
type: 'test'
...
# Subtest: source edits after sealing cannot launch a child and do not reset its cumulative budget
ok 26 - source edits after sealing cannot launch a child and do not reset its cumulative budget
---
duration_ms: 6372.944
type: 'test'
...
# Subtest: literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
ok 27 - literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
---
duration_ms: 18120.2475
type: 'test'
...
# Subtest: source changes after a model response stop before any native tool is accepted, retaining the actual usage once
ok 28 - source changes after a model response stop before any native tool is accepted, retaining the actual usage once
---
duration_ms: 7565.0939
type: 'test'
...
# Subtest: source changes while approval is pending invalidate the old permission before an engineering check starts
ok 29 - source changes while approval is pending invalidate the old permission before an engineering check starts
---
duration_ms: 9826.6016
type: 'test'
...
# Subtest: altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
ok 30 - altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
---
duration_ms: 1487.0073
type: 'test'
...
# Subtest: the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
ok 31 - the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
---
duration_ms: 1490.4082
type: 'test'
...
# Subtest: a missing or duplicated experimental section in the actual input is rejected before any model dispatch
ok 32 - a missing or duplicated experimental section in the actual input is rejected before any model dispatch
---
duration_ms: 14467.5804
type: 'test'
...
# Subtest: experimental prompt overhead still participates in the original complete-input budget guard
ok 33 - experimental prompt overhead still participates in the original complete-input budget guard
---
duration_ms: 7193.9077
type: 'test'
...
# Subtest: source detection HTTP remains local-authenticated and read-only with no configured model requests
ok 34 - source detection HTTP remains local-authenticated and read-only with no configured model requests
---
duration_ms: 1601.1294
type: 'test'
...
1..34
# tests 34
# suites 0
# pass 34
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 180350.0686
+82
View File
@@ -0,0 +1,82 @@
TAP version 13
# Subtest: two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
ok 1 - two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
---
duration_ms: 621.8026
type: 'test'
...
# Subtest: incomplete, unsupported, relative and oversized sources cannot enable the experiment
ok 2 - incomplete, unsupported, relative and oversized sources cannot enable the experiment
---
duration_ms: 547.7004
type: 'test'
...
# Subtest: invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
ok 3 - invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
---
duration_ms: 1808.1188
type: 'test'
...
# Subtest: source edits between detection and plan are rejected without creating a parent Task
ok 4 - source edits between detection and plan are rejected without creating a parent Task
---
duration_ms: 1515.8252
type: 'test'
...
# Subtest: source edits after sealing cannot launch a child and do not reset its cumulative budget
ok 5 - source edits after sealing cannot launch a child and do not reset its cumulative budget
---
duration_ms: 5990.4401
type: 'test'
...
# Subtest: literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
ok 6 - literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
---
duration_ms: 18038.0235
type: 'test'
...
# Subtest: source changes after a model response stop before any native tool is accepted, retaining the actual usage once
ok 7 - source changes after a model response stop before any native tool is accepted, retaining the actual usage once
---
duration_ms: 7165.0333
type: 'test'
...
# Subtest: source changes while approval is pending invalidate the old permission before an engineering check starts
ok 8 - source changes while approval is pending invalidate the old permission before an engineering check starts
---
duration_ms: 9951.9068
type: 'test'
...
# Subtest: altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
ok 9 - altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
---
duration_ms: 1512.9111
type: 'test'
...
# Subtest: a missing or duplicated experimental section in the actual input is rejected before any model dispatch
ok 10 - a missing or duplicated experimental section in the actual input is rejected before any model dispatch
---
duration_ms: 14260.9088
type: 'test'
...
# Subtest: experimental prompt overhead still participates in the original complete-input budget guard
ok 11 - experimental prompt overhead still participates in the original complete-input budget guard
---
duration_ms: 7154.2276
type: 'test'
...
# Subtest: source detection HTTP remains local-authenticated and read-only with no configured model requests
ok 12 - source detection HTTP remains local-authenticated and read-only with no configured model requests
---
duration_ms: 1436.3579
type: 'test'
...
1..12
# tests 12
# suites 0
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 70125.2374
@@ -0,0 +1,14 @@
> local-agent-workbench@1.13.0 build
> tsc --noEmit && vite build && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1716 modules transformed.
rendering chunks...
computing gzip size...
dist-client/index.html 0.50 kB │ gzip: 0.37 kB
dist-client/assets/index-D4d9CZO8.css 129.14 kB │ gzip: 24.78 kB
dist-client/assets/index-utea2E6X.js 485.55 kB │ gzip: 143.14 kB
✓ built in 1.37s
Server bundle built.
@@ -0,0 +1,303 @@
{
"schemaVersion": 1,
"observedAt": "2026-10-30T21:21:44.921Z",
"scope": "Read-only public source comparison; no plugin import, installation, profile or model request.",
"sources": [
{
"root": "D:\\Ai-project\\REA逆向\\dsh-purge-1.1.78-windows\\source\\upstream",
"package": {
"name": "dsh-purge",
"version": "1.1.78",
"description": "DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分",
"type": "module",
"main": "lib/index.js",
"exports": {
".": {
"default": "./lib/index.js"
},
"./client": "./client.js",
"./redteam": "./lib/redteam/index.js",
"./redteam/store": "./lib/redteam/store.js",
"./redteam/ui": "./lib/redteam/ui.js",
"./redteam/tools": "./lib/redteam/tools.js",
"./package.json": "./package.json"
},
"bin": {
"dsh-purge": "bin/dsh-purge.js"
},
"files": [
"lib",
"!lib/default-prompt-inject.md",
"bin",
"docs",
"presets",
"scripts",
"client.js",
"cordis.patch.yml",
"screenshots.json",
"README.md",
"README.zh-CN.md",
"LICENSE",
"NOTICE"
],
"scripts": {
"embed-prompt": "node scripts/embed-default-prompt.mjs",
"build:client": "node scripts/build-client.mjs",
"postinstall": "node scripts/ensure-profile-bundle.mjs"
},
"license": "Apache-2.0",
"keywords": [
"dsh",
"dsh-plugin",
"dsh-plugins",
"网络安全",
"红队评测",
"llm-security",
"harness-security",
"deepseek-harness",
"red-team",
"instructions",
"rules",
"prompt-eval",
"agent"
],
"repository": {
"type": "git",
"url": "git+https://github.com/YuJunZhiXue/dsh-purge.git"
},
"homepage": "https://github.com/YuJunZhiXue/dsh-purge#readme",
"bugs": {
"url": "https://github.com/YuJunZhiXue/dsh-purge/issues"
},
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"platform": "web",
"inject": [
"@deepseek-ai/dsh-client-connection",
"@deepseek-ai/dsh-client-runtime",
"@deepseek-ai/dsh-client-locale",
"@deepseek-ai/dsh-client-ui-slots",
"@deepseek-ai/dsh-client-ui-settings",
"@deepseek-ai/dsh-client-ui-conversation"
]
},
"install": {
"preferred": "tarball",
"tarball": "https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master",
"zip": "https://codeload.github.com/YuJunZhiXue/dsh-purge/zip/refs/heads/master",
"git": "https://github.com/YuJunZhiXue/dsh-purge.git"
}
},
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.1"
},
"engines": {
"node": ">=18"
},
"dshTarget": "0.2.1-rc.2"
},
"files": [
{
"relative": "package.json",
"bytes": 2623,
"sha256": "c185af0cace16465becbb018d3bf2c2f3cfddd5133e36161b2798bddedf6cab1"
},
{
"relative": "lib/index.js",
"bytes": 108136,
"sha256": "1b6605ec4d0961755b6ba834e8f63f70adeefca44cef9deaa070bbe3b7b8f91d"
},
{
"relative": "lib/identity.js",
"bytes": 41793,
"sha256": "df0302ad7bfe01eaa83bd12d88d299c594ac8877ff16a891610d37f2a8be0902"
},
{
"relative": "lib/core.js",
"bytes": 342481,
"sha256": "752e3a0cb6f82071e912e8ee5d119027ca8cf4e51889b97a0e70353abffc9870"
},
{
"relative": "lib/continue-retry.js",
"bytes": 11758,
"sha256": "b4710fb4eb9990801756e5396f447f9da227177db78d3fff4880509d527be6d0"
},
{
"relative": "lib/capability-protocol.js",
"bytes": 3268,
"sha256": "49a7c72d99b41128d50a105af7d7c4138654f2e9a4513a62fd535e1653dda2b7"
},
{
"relative": "cordis.patch.yml",
"bytes": 1742,
"sha256": "16410a46d48782c2fc622e6307d7ddb6c83f882e36a498430d862693b33b55a6"
},
{
"relative": "LICENSE",
"bytes": 11341,
"sha256": "b45f2c5ef6ed471d1dcdf63c10e432d856c8867be2828aece1b383bbece7662a"
},
{
"relative": "NOTICE",
"bytes": 210,
"sha256": "ad63c4be7b12bdc1a43b05d49a831933671be7f2a6f723a6c079e8653a8ac54f"
}
]
},
{
"root": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\plugins\\dsh-purge",
"package": {
"name": "dsh-purge",
"version": "1.1.81",
"description": "DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分",
"type": "module",
"main": "lib/index.js",
"exports": {
".": {
"default": "./lib/index.js"
},
"./client": "./client.js",
"./redteam": "./lib/redteam/index.js",
"./redteam/store": "./lib/redteam/store.js",
"./redteam/ui": "./lib/redteam/ui.js",
"./redteam/tools": "./lib/redteam/tools.js",
"./package.json": "./package.json"
},
"bin": {
"dsh-purge": "bin/dsh-purge.js"
},
"files": [
"lib",
"!lib/default-prompt-inject.md",
"bin",
"docs",
"presets",
"scripts",
"client.js",
"cordis.patch.yml",
"screenshots.json",
"README.md",
"README.zh-CN.md",
"LICENSE",
"NOTICE"
],
"scripts": {
"embed-prompt": "node scripts/embed-default-prompt.mjs",
"build:client": "node scripts/build-client.mjs",
"postinstall": "node scripts/ensure-profile-bundle.mjs",
"test": "node --test"
},
"license": "Apache-2.0",
"keywords": [
"dsh",
"dsh-plugin",
"dsh-plugins",
"网络安全",
"红队评测",
"llm-security",
"harness-security",
"deepseek-harness",
"red-team",
"instructions",
"rules",
"prompt-eval",
"agent"
],
"repository": {
"type": "git",
"url": "git+https://github.com/YuJunZhiXue/dsh-purge.git"
},
"homepage": "https://github.com/YuJunZhiXue/dsh-purge#readme",
"bugs": {
"url": "https://github.com/YuJunZhiXue/dsh-purge/issues"
},
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"platform": "web",
"inject": [
"@deepseek-ai/dsh-client-connection",
"@deepseek-ai/dsh-client-runtime",
"@deepseek-ai/dsh-client-locale",
"@deepseek-ai/dsh-client-ui-slots",
"@deepseek-ai/dsh-client-ui-settings",
"@deepseek-ai/dsh-client-ui-conversation"
]
},
"install": {
"preferred": "tarball",
"tarball": "https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master",
"zip": "https://codeload.github.com/YuJunZhiXue/dsh-purge/zip/refs/heads/master",
"git": "https://github.com/YuJunZhiXue/dsh-purge.git"
}
},
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.1"
},
"engines": {
"node": ">=18"
},
"dshTarget": "0.2.1-rc.2"
},
"files": [
{
"relative": "package.json",
"bytes": 2650,
"sha256": "40e587aaa4d0d7210dbef8774730c9d43dc408c4e62ca553419f6c4b8770d33f"
},
{
"relative": "lib/index.js",
"bytes": 113347,
"sha256": "db60e1ca2c1e4ce69a723c9f5e0316179a0837514e29703e3a72e9f5488ec81b"
},
{
"relative": "lib/identity.js",
"bytes": 41624,
"sha256": "ed53f77b4bd411e36e05138848b134271e3d6d3267e70835f8a7a3d8260e5330"
},
{
"relative": "lib/core.js",
"bytes": 347312,
"sha256": "a672f1de3f9e4aed4023006991bb294ad8badab7bd132e412687c6494937017b"
},
{
"relative": "lib/continue-retry.js",
"bytes": 11758,
"sha256": "b4710fb4eb9990801756e5396f447f9da227177db78d3fff4880509d527be6d0"
},
{
"relative": "lib/capability-protocol.js",
"bytes": 2098,
"sha256": "9aa8601c427d652a863fe3d7b725fe31e9e2486e3190ede1b07708b812b43ce4"
},
{
"relative": "cordis.patch.yml",
"bytes": 1794,
"sha256": "9c7832a09c501f541f3c86221a0774bf5d5b351dcabd3449773ae919ff50d6c6"
},
{
"relative": "LICENSE",
"bytes": 11341,
"sha256": "b45f2c5ef6ed471d1dcdf63c10e432d856c8867be2828aece1b383bbece7662a"
},
{
"relative": "NOTICE",
"bytes": 210,
"sha256": "ad63c4be7b12bdc1a43b05d49a831933671be7f2a6f723a6c079e8653a8ac54f"
}
]
}
],
"realModelRequests": 0
}
@@ -0,0 +1,10 @@
PASS desktop prompt experiment is off by default and does not require, import or run Purge when disabled
PASS missing sources block sealing and an actual source change after UI detection is refused before creating a Task
PASS both source versions are detected explicitly and disabling the experiment removes its required source and prompt fields
PASS a late detection failure after disabling cannot overwrite or leak into the current experiment form
PASS 390px controls remain readable and touchable; sealing retains the exact selected source and literal prompt without model requests
PASS actual Harness applies the exact non-interpolated prompt once in every owned model request and closes its complete process tree
PASS owned Run UI displays the original source/text/strategy hashes and downloads the exact report bytes after real native execution
PASS retaining the original Run and starting the next parent goal restores default-off without changing prior strategy, report or usage
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-purge-ui-2af1c3af-d5a8-412e-a935-0dd81e04eec9
{"passed":true,"nodes":8,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-purge-ui-2af1c3af-d5a8-412e-a935-0dd81e04eec9","error":null}
File diff suppressed because one or more lines are too long
+11
View File
@@ -0,0 +1,11 @@
PASS desktop prompt experiment is off by default and does not require, import or run Purge when disabled
PASS missing sources block sealing and an actual source change after UI detection is refused before creating a Task
PASS successfully detecting the replacement source clears the obsolete failed-sealing feedback
PASS both source versions are detected explicitly and disabling the experiment removes its required source and prompt fields
PASS a late detection failure after disabling cannot overwrite or leak into the current experiment form
PASS 390px controls remain readable and touchable; sealing retains the exact selected source and literal prompt without model requests
PASS actual Harness applies the exact non-interpolated prompt once in every owned model request and closes its complete process tree
PASS owned Run UI displays the original source/text/strategy hashes and downloads the exact report bytes after real native execution
PASS retaining the original Run and starting the next parent goal restores default-off without changing prior strategy, report or usage
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-purge-ui-37ca77ef-1dd5-4325-90ab-0030b720bc5b
{"passed":true,"nodes":9,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-purge-ui-37ca77ef-1dd5-4325-90ab-0030b720bc5b","error":null}
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB