feat(memory): preserve Agent tool history with bounded context #32117
Triggered via pull request
September 19, 2026 02:34
Status
Failure
Total duration
3m 20s
Artifacts
–
ci.yml
on: pull_request
Detect Version
Detect Desktop Changes
Prepare Trigger.dev
Matrix: Build AMD64
Matrix: Build Dev ECR
Matrix: Build ARM64 (GHCR Only)
Matrix: Test and Build / oauth-postgres
Matrix: Test and Build / test-shard
Test and Build
/
Lint and Test
2m 23s
Test and Build
/
Build App
2m 43s
Check Docs Changes
Migrate Dev DB
/
Apply Database Migrations
Matrix: Create GHCR Manifests
Process Docs
/
Process Documentation Embeddings
Promote Trigger.dev
Prune Desktop Prereleases
Matrix: Attest Images
Desktop Release
/
Build, Sign, Notarize
Annotations
14 errors and 15 warnings
|
Test and Build / Test (shard 3)
Process completed with exit code 1.
|
|
lib/memory/replay-provenance.test.ts > durable Agent replay provenance > releases large raw results from live state after artifact storage and hydrates only on replay:
apps/sim/lib/memory/replay-provenance.test.ts#L275
AssertionError: expected 16911 to be less than 2000
❯ lib/memory/replay-provenance.test.ts:275:76
|
|
Test and Build / Test (shard 3)
@sim/app#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Test and Build / Lint and Test
Process completed with exit code 1.
|
|
Test and Build / PostgreSQL integration (migrate)
Process completed with exit code 1.
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for native-native:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-native-native-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Memory.appendToMemory executor/handlers/agent/memory.ts:336:12
❯ lib/memory/message-provenance.postgres.test.ts:245:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-native-native-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-native-native-0', 1 ], args: [ 'workspace-1', 'strict-native-native-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for tool-native:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-tool-native-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Memory.appendToMemory executor/handlers/agent/memory.ts:336:12
❯ lib/memory/message-provenance.postgres.test.ts:245:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-tool-native-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-tool-native-0', 1 ], args: [ 'workspace-1', 'strict-tool-native-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for tool-tool:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-tool-tool-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Object.execute lib/memory/application/use-cases.ts:299:7
❯ lib/core/application/authorized-workspace-use-case.ts:210:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-tool-tool-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-tool-tool-0', 1 ], args: [ 'workspace-1', 'strict-tool-tool-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > keeps a large one-secret conversation exact across tool and native writes and model reads:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,large-conversation-strict,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Object.execute lib/memory/application/use-cases.ts:299:7
❯ lib/core/application/authorized-workspace-use-case.ts:210:24
❯ lib/memory/message-provenance.postgres.test.ts:195:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'large-conversation-strict', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'large-conversation-strict', 1 ], args: [ 'workspace-1', 'large-conversation-strict', 1 ], types: [ +0, +0, +0 ] }
|
|
Test and Build / PostgreSQL integration (push)
Process completed with exit code 1.
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for native-native:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-native-native-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Memory.appendToMemory executor/handlers/agent/memory.ts:336:12
❯ lib/memory/message-provenance.postgres.test.ts:245:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-native-native-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-native-native-0', 1 ], args: [ 'workspace-1', 'strict-native-native-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for tool-native:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-tool-native-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Memory.appendToMemory executor/handlers/agent/memory.ts:336:12
❯ lib/memory/message-provenance.postgres.test.ts:245:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-tool-native-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-tool-native-0', 1 ], args: [ 'workspace-1', 'strict-tool-native-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > preserves both first appends and secret bindings for tool-tool:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,strict-tool-tool-0,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Object.execute lib/memory/application/use-cases.ts:299:7
❯ lib/core/application/authorized-workspace-use-case.ts:210:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'strict-tool-tool-0', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'strict-tool-tool-0', 1 ], args: [ 'workspace-1', 'strict-tool-tool-0', 1 ], types: [ +0, +0, +0 ] }
|
|
lib/memory/message-provenance.postgres.test.ts > memory provenance in PostgreSQL > enforced memory provenance > keeps a large one-secret conversation exact across tool and native writes and model reads:
apps/sim/lib/memory/conversation-store.ts#L132
Error: Failed query: select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update
params: workspace-1,large-conversation-strict,1
❯ PostgresJsPreparedQuery.queryWithCache ../../node_modules/src/pg-core/session.ts:73:10
❯ ../../node_modules/src/postgres-js/session.ts:58:16
❯ lib/memory/conversation-store.ts:132:24
❯ scope ../../node_modules/postgres/src/index.js:261:18
❯ sql.begin ../../node_modules/postgres/src/index.js:244:14
❯ appendMemoryMessages lib/memory/conversation-store.ts:130:3
❯ Object.execute lib/memory/application/use-cases.ts:299:7
❯ lib/core/application/authorized-workspace-use-case.ts:210:24
❯ lib/memory/message-provenance.postgres.test.ts:195:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', params: [ 'workspace-1', 'large-conversation-strict', 1 ] }
Caused by: Caused by: PostgresError: column "storage_version" does not exist
❯ ErrorResponse ../../node_modules/postgres/src/connection.js:815:30
❯ handle ../../node_modules/postgres/src/connection.js:489:6
❯ Socket.data ../../node_modules/postgres/src/connection.js:324:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { severity_local: 'ERROR', severity: 'ERROR', code: '42703', position: '22', file: 'parse_relation.c', routine: 'errorMissingColumn', query: 'select "id", "data", "storage_version", "secret_provenance_version" from "memory" where ("memory"."workspace_id" = $1 and "memory"."key" = $2) limit $3 for update', parameters: [ 'workspace-1', 'large-conversation-strict', 1 ], args: [ 'workspace-1', 'large-conversation-strict', 1 ], types: [ +0, +0, +0 ] }
|
|
Test and Build / Test (shard 3)
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test (shard 3)
- Step: unknown (failed)
|
|
Test and Build / Test (shard 3)
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / Test (shard 3)
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test (shard 3)
- Step: unknown (failed)
|
|
Test and Build / Test (shard 3)
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / Test (shard 3)
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test (shard 3)
- Step: unknown (failed)
|
|
Test and Build / Test (shard 3)
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / PostgreSQL integration (migrate)
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / PostgreSQL integration (migrate)
- Step: unknown (failed)
|
|
Test and Build / PostgreSQL integration (migrate)
Found 2 failed/cancelled steps in previous workflow steps
|
|
Test and Build / PostgreSQL integration (push)
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / PostgreSQL integration (push)
- Step: unknown (failed)
|
|
Test and Build / PostgreSQL integration (push)
Found 2 failed/cancelled steps in previous workflow steps
|