fix: preserve original worker verification logs without newline conversion

This commit is contained in:
Agent Workbench Dev
2026-10-31 01:06:39 +08:00
parent 1a847c1577
commit 3abc0e8595
8 changed files with 228 additions and 224 deletions
+51 -51
View File
@@ -1,51 +1,51 @@
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11294.7189ms)
✖ a completion-only model pauses each worker without fabricated changes or checks (9093.3029ms)
ℹ tests 2
ℹ suites 0
ℹ pass 0
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 20508.9926
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11294.7189ms)
AssertionError [ERR_ASSERTION]: [{"status":"failed","summary":"持久执行记录不能移动到其他任务或项目。","failure":null},{"status":"failed","summary":"持久执行记录不能移动到其他任务或项目。","failure":null}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\workers.test.mjs:75:1
✖ a completion-only model pauses each worker without fabricated changes or checks (9093.3029ms)
AssertionError [ERR_ASSERTION]: "持久执行记录不能移动到其他任务或项目。"
+ actual - expected
+ null
- 'worker_incomplete'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:80:110)
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) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: null,
expected: 'worker_incomplete',
operator: 'strictEqual',
diff: 'simple'
}
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11294.7189ms)
✖ a completion-only model pauses each worker without fabricated changes or checks (9093.3029ms)
ℹ tests 2
ℹ suites 0
ℹ pass 0
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 20508.9926
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11294.7189ms)
AssertionError [ERR_ASSERTION]: [{"status":"failed","summary":"持久执行记录不能移动到其他任务或项目。","failure":null},{"status":"failed","summary":"持久执行记录不能移动到其他任务或项目。","failure":null}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\workers.test.mjs:75:1
✖ a completion-only model pauses each worker without fabricated changes or checks (9093.3029ms)
AssertionError [ERR_ASSERTION]: "持久执行记录不能移动到其他任务或项目。"
+ actual - expected
+ null
- 'worker_incomplete'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:80:110)
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) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: null,
expected: 'worker_incomplete',
operator: 'strictEqual',
diff: 'simple'
}
+14 -14
View File
@@ -1,14 +1,14 @@
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (587.18ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (8633.5423ms)
✔ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (19461.1322ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (8691.5541ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (10455.2706ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (8392.3437ms)
ℹ tests 6
ℹ suites 0
ℹ pass 6
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 56336.5639
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (587.18ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (8633.5423ms)
✔ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (19461.1322ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (8691.5541ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (10455.2706ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (8392.3437ms)
ℹ tests 6
ℹ suites 0
ℹ pass 6
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 56336.5639
+55 -55
View File
@@ -1,55 +1,55 @@
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (637.895ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (8247.1926ms)
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11356.0679ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (8663.1033ms)
✖ a completion-only model pauses each worker without fabricated changes or checks (8897.8571ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (8453.4236ms)
ℹ tests 6
ℹ suites 0
ℹ pass 4
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 46372.7737
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11356.0679ms)
AssertionError [ERR_ASSERTION]: 子任务已停止或需要处理,已完成结果保留。
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\workers.test.mjs:75:1
✖ a completion-only model pauses each worker without fabricated changes or checks (8897.8571ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ null
- 'worker_incomplete'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:80:110)
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) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: null,
expected: 'worker_incomplete',
operator: 'strictEqual',
diff: 'simple'
}
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (637.895ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (8247.1926ms)
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11356.0679ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (8663.1033ms)
✖ a completion-only model pauses each worker without fabricated changes or checks (8897.8571ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (8453.4236ms)
ℹ tests 6
ℹ suites 0
ℹ pass 4
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 46372.7737
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (11356.0679ms)
AssertionError [ERR_ASSERTION]: 子任务已停止或需要处理,已完成结果保留。
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\workers.test.mjs:75:1
✖ a completion-only model pauses each worker without fabricated changes or checks (8897.8571ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ null
- 'worker_incomplete'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:80:110)
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) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: null,
expected: 'worker_incomplete',
operator: 'strictEqual',
diff: 'simple'
}
+30 -30
View File
@@ -1,30 +1,30 @@
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17786.5763ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17901.7218
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17786.5763ms)
AssertionError [ERR_ASSERTION]: [{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null,"reason":"worker_incomplete","messages":["从已保存的执行记录继续,已完成的工具结果保留。","夹具声称完成,宿主仍需核验","子任务还不能交付:子成果中的批次没有完整应用结果:src/a.mjs。原目标和结果已保存。"]},{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null,"reason":"worker_incomplete","messages":["从已保存的执行记录继续,已完成的工具结果保留。","夹具声称完成,宿主仍需核验","子任务还不能交付:子成果中的批次没有完整应用结果:src/b.mjs。原目标和结果已保存。"]}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17786.5763ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17901.7218
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17786.5763ms)
AssertionError [ERR_ASSERTION]: [{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null,"reason":"worker_incomplete","messages":["从已保存的执行记录继续,已完成的工具结果保留。","夹具声称完成,宿主仍需核验","子任务还不能交付:子成果中的批次没有完整应用结果:src/a.mjs。原目标和结果已保存。"]},{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null,"reason":"worker_incomplete","messages":["从已保存的执行记录继续,已完成的工具结果保留。","夹具声称完成,宿主仍需核验","子任务还不能交付:子成果中的批次没有完整应用结果:src/b.mjs。原目标和结果已保存。"]}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
+31 -31
View File
@@ -1,31 +1,31 @@
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17354.4449ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (10289.3832ms)
ℹ tests 2
ℹ suites 0
ℹ pass 1
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 27758.5238
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17354.4449ms)
AssertionError [ERR_ASSERTION]: [{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null},{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17354.4449ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (10289.3832ms)
ℹ tests 2
ℹ suites 0
ℹ pass 1
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 27758.5238
✖ failing tests:
test at tests\workers.test.mjs:45:1
✖ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (17354.4449ms)
AssertionError [ERR_ASSERTION]: [{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null},{"status":"paused","summary":"原子任务已保存,等待审查或继续。","failure":null}]
+ actual - expected
+ 'paused'
- 'ready_to_collect'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/workers.test.mjs:47:10)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'paused',
expected: 'ready_to_collect',
operator: 'strictEqual',
diff: 'simple'
}
+43 -43
View File
@@ -1,43 +1,43 @@
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/two.mjs', LF will be replaced by CRLF the next time Git touches it
✔ sealed batches preserve bytes until review, then apply and explicitly restore BOM/CRLF/new files (2328.8361ms)
Switched to a new branch 'owner-branch'
✔ a conflict in the last file or Git branch prevents writing every file in the batch (2849.7417ms)
✔ duplicate canonical paths, ancestor collisions, links, dependencies and Windows aliases never form a batch (958.2824ms)
✔ fingerprints, changed proposals and corrupt snapshot artifacts cannot write or restore any target (2246.286ms)
✔ a failure after replacement restores only batch bytes and never retries an old application (1887.1675ms)
✔ rollback preserves owner edits, blocks other project writers, and explicit acknowledgement releases recovery (1717.7744ms)
✔ an unattempted owner-created file identical to a suggestion remains external and is never removed (1508.44ms)
✔ active batch requests are serialized and cancellation leaves a verifiable ended batch (1707.1052ms)
✔ batch application and rollback preserve unrelated Git index and worktree bytes (3473.6038ms)
✔ recovery reuses exact staged bytes but retains a conflicting temporary file for owner inspection (2697.1792ms)
✔ one Task can seal pending proposals from earlier Runs while snapshots retain each source Run (2091.2088ms)
✔ engineering inspection preserves a dirty Git baseline and treats project rules as data (2263.3827ms)
✔ real npm tests and build produce counted results, log artifacts and persistent verification (2604.4731ms)
✔ an actual failing test retains the nonzero exit code and failed count (2134.3808ms)
✔ zero tests, skipped tests and unrecognized stdout cannot become verification passes (7110.2094ms)
✔ a successful build with no selected tests does not verify the task (1903.2808ms)
✔ stale check plans and forged script names execute no project commands (1191.0967ms)
✔ applying a later proposal invalidates the prior passed engineering snapshot (2558.1788ms)
✔ stopping an actual check terminates its child process and blocks concurrent jobs (2195.3353ms)
✔ check timeout records a failure with its actual termination result (2310.8461ms)
✔ source edits during a successful check make the result stale (2999.3104ms)
✔ bounded large logs retain the test footer and readable artifact instead of inventing counts (1569.0375ms)
✔ model-selected checks require a run-bound decision and denial creates no check job (2567.6394ms)
✔ check APIs expose owned plans and jobs and preserve the authoritative results across restart (3716.4954ms)
✔ reviewed changes continue the original task without reopening a generic completed run (2246.0716ms)
✔ concurrent review-continuation API requests accept one run and retain the goal after restart (4478.3583ms)
✔ the model reads owned failure logs without running the check again (2665.5831ms)
✔ process exit at check queued preserves results and never replays commands (1334.1134ms)
✔ process exit at check result_committed preserves results and never replays commands (1732.2751ms)
✔ managed worktree preserves source index and dirty files, opens a distinct project and binds Run identity (4827.2507ms)
✔ stale review, branch/path collisions and forged ownership do not run worktree creation (3383.8726ms)
✔ workspace project verification is read-only and rejects physical Git identity changes (4400.677ms)
ℹ tests 32
ℹ suites 0
ℹ pass 32
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 47703.7776
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/two.mjs', LF will be replaced by CRLF the next time Git touches it
✔ sealed batches preserve bytes until review, then apply and explicitly restore BOM/CRLF/new files (2328.8361ms)
Switched to a new branch 'owner-branch'
✔ a conflict in the last file or Git branch prevents writing every file in the batch (2849.7417ms)
✔ duplicate canonical paths, ancestor collisions, links, dependencies and Windows aliases never form a batch (958.2824ms)
✔ fingerprints, changed proposals and corrupt snapshot artifacts cannot write or restore any target (2246.286ms)
✔ a failure after replacement restores only batch bytes and never retries an old application (1887.1675ms)
✔ rollback preserves owner edits, blocks other project writers, and explicit acknowledgement releases recovery (1717.7744ms)
✔ an unattempted owner-created file identical to a suggestion remains external and is never removed (1508.44ms)
✔ active batch requests are serialized and cancellation leaves a verifiable ended batch (1707.1052ms)
✔ batch application and rollback preserve unrelated Git index and worktree bytes (3473.6038ms)
✔ recovery reuses exact staged bytes but retains a conflicting temporary file for owner inspection (2697.1792ms)
✔ one Task can seal pending proposals from earlier Runs while snapshots retain each source Run (2091.2088ms)
✔ engineering inspection preserves a dirty Git baseline and treats project rules as data (2263.3827ms)
✔ real npm tests and build produce counted results, log artifacts and persistent verification (2604.4731ms)
✔ an actual failing test retains the nonzero exit code and failed count (2134.3808ms)
✔ zero tests, skipped tests and unrecognized stdout cannot become verification passes (7110.2094ms)
✔ a successful build with no selected tests does not verify the task (1903.2808ms)
✔ stale check plans and forged script names execute no project commands (1191.0967ms)
✔ applying a later proposal invalidates the prior passed engineering snapshot (2558.1788ms)
✔ stopping an actual check terminates its child process and blocks concurrent jobs (2195.3353ms)
✔ check timeout records a failure with its actual termination result (2310.8461ms)
✔ source edits during a successful check make the result stale (2999.3104ms)
✔ bounded large logs retain the test footer and readable artifact instead of inventing counts (1569.0375ms)
✔ model-selected checks require a run-bound decision and denial creates no check job (2567.6394ms)
✔ check APIs expose owned plans and jobs and preserve the authoritative results across restart (3716.4954ms)
✔ reviewed changes continue the original task without reopening a generic completed run (2246.0716ms)
✔ concurrent review-continuation API requests accept one run and retain the goal after restart (4478.3583ms)
✔ the model reads owned failure logs without running the check again (2665.5831ms)
✔ process exit at check queued preserves results and never replays commands (1334.1134ms)
✔ process exit at check result_committed preserves results and never replays commands (1732.2751ms)
✔ managed worktree preserves source index and dirty files, opens a distinct project and binds Run identity (4827.2507ms)
✔ stale review, branch/path collisions and forged ownership do not run worktree creation (3383.8726ms)
✔ workspace project verification is read-only and rejects physical Git identity changes (4400.677ms)
ℹ tests 32
ℹ suites 0
ℹ pass 32
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 47703.7776