test(e2e): harden chat-separation spec fixtures and source separation (#2764) #2807
Reference in New Issue
Block a user
Delete Branch "fix/2764-chat-separation-fail-closed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes #2764 / CR2 #11492.
canvas/e2e/chat-separation.spec.tsis wired into the E2E Chat lane, but its Activity API source-filter tests had a fixture bug: canvas-origin rows were seeded with a bearer token that could resolve to the target workspace, so they could be logged as agent-sourced instead of canvas-sourced.seedChatHistorynow throws whenE2E_DATABASE_URLis missing (fail-closed; no silent fixture skip).postA2AMessagenow takes asourceparameter:"canvas": sends no workspace-resolving auth and noX-Workspace-ID, forcing ProxyA2A callerID empty →activity_logs.source_idNULL (matching/activity?source=canvas)."agent": sends the workspace bearer token →source_id = workspace_id(matching/activity?source=agent).E2E_ADMIN_TOKENdependency from the Activity API block.Test plan
npx eslint e2e/fixtures/chat-seed.ts e2e/chat-separation.spec.tspasses.Fixes #2764
🤖 Generated with Claude Code
APPROVED on head
2f9dc544.5-axis review:
2f9dc544, including E2E Chat and Canvas required contexts.No findings.
test(e2e): make chat-history fixture seeding fail-closed (#2764)to test(e2e): harden chat-separation spec fixtures and source separation (#2764)