test(e2e): align agent JWT instance

Mint Playwright agent JWTs for the same instance that verifies them so invalid Bearer credentials cannot rely on local board fallback.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta 2026-08-06 14:09:58 +00:00 committed by cryppadotta
parent dfe85bd9dc
commit 649c97cf45
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ const PAPERCLIP_TOOL_ACTION_SIGNING_SECRET =
const PLAYWRIGHT_CHANNEL = process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL;
process.env.PAPERCLIP_HOME = PAPERCLIP_HOME;
// JWT signing is instance-derived. Keep the Playwright worker that mints test
// tokens on the same instance boundary as the web server that verifies them.
process.env.PAPERCLIP_INSTANCE_ID = PAPERCLIP_INSTANCE_ID;
process.env.PAPERCLIP_CONFIG = PAPERCLIP_CONFIG;
// Worker processes reload this config; retain the main process's server path
// for specs that seed historical database state in the throwaway instance.