Files
Agent-Workbench/docs/project-cache-d-evidence/project-cache-api-first.tap
T

46 lines
3.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
✖ cache controls require desktop authority, exact inputs and owned project identity while preserving task evidence (2143.4704ms)
✔ cache enablement and derived reuse survive a real host restart without becoming task recovery state (3983.0287ms)
ℹ tests 2
ℹ suites 0
ℹ pass 1
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 6213.1724
✖ failing tests:
test at tests\project-cache-api.test.mjs:7:1
✖ cache controls require desktop authority, exact inputs and owned project identity while preserving task evidence (2143.4704ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
execution: {
accountedTaskTokens: 0,
artifacts: [],
browserJobs: [],
...
executionSchemaVersion: 1,
+ exportedAt: '2026-10-31T18:33:37.763Z',
- exportedAt: '2026-10-31T18:33:37.537Z',
project: {
addedAt: '2026-10-31T18:33:36.123Z',
id: '6a670d06-8a1e-4382-b7ed-b152d582d810',
name: 'project',
root: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-NRQAGD\\project'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/project-cache-api.test.mjs:29:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { schemaVersion: 1, executionSchemaVersion: 1, exportedAt: '2026-10-31T18:33:37.763Z', project: { id: '6a670d06-8a1e-4382-b7ed-b152d582d810', root: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-NRQAGD\\project', name: 'project', addedAt: '2026-10-31T18:33:36.123Z' }, session: { id: '230d317a-749b-4d5f-96da-916804d59f3b', projectId: '6a670d06-8a1e-4382-b7ed-b152d582d810', title: '新任务', status: 'idle', createdAt: '2026-10-31T18:33:36.147Z', updatedAt: '2026-10-31T18:33:36.147Z', messages: [], providerMessages: [], events: [], changes: [], approvals: [], failure: null, lastFailure: null, compactions: 0, estimatedTokens: 0, usage: null, archived: false, revision: 1, eventSeq: 1 }, execution: { schemaVersion: 1, task: null, run: null, workspaceIdentity: [Object], workspaces: [], runs: [], progress: [Object], artifacts: [], checks: [], mcpJobs: [], taskPlans: [], taskProofs: [], researchTargets: [], researchJobs: [], engineJobs: [], browserPlans: [], browserJobs: [], contextPlans: [], changeSets: [], plans: [], deliveries: [], deliveryPlans: [], accountedTaskTokens: 0 } },
expected: { schemaVersion: 1, executionSchemaVersion: 1, exportedAt: '2026-10-31T18:33:37.537Z', project: { id: '6a670d06-8a1e-4382-b7ed-b152d582d810', root: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-NRQAGD\\project', name: 'project', addedAt: '2026-10-31T18:33:36.123Z' }, session: { id: '230d317a-749b-4d5f-96da-916804d59f3b', projectId: '6a670d06-8a1e-4382-b7ed-b152d582d810', title: '新任务', status: 'idle', createdAt: '2026-10-31T18:33:36.147Z', updatedAt: '2026-10-31T18:33:36.147Z', messages: [], providerMessages: [], events: [], changes: [], approvals: [], failure: null, lastFailure: null, compactions: 0, estimatedTokens: 0, usage: null, archived: false, revision: 1, eventSeq: 1 }, execution: { schemaVersion: 1, task: null, run: null, workspaceIdentity: [Object], workspaces: [], runs: [], progress: [Object], artifacts: [], checks: [], mcpJobs: [], taskPlans: [], taskProofs: [], researchTargets: [], researchJobs: [], engineJobs: [], browserPlans: [], browserJobs: [], contextPlans: [], changeSets: [], plans: [], deliveries: [], deliveryPlans: [], accountedTaskTokens: 0 } },
operator: 'deepStrictEqual',
diff: 'simple'
}