fix(typescript): classify legacy PgQ errors#251
Conversation
REV — post-merge correctionThis review should have been posted before merge. Process mistake: #251 was merged after local checks + CI, but without the REV artifact being written here first. Scope: TypeScript client parity/code review only. SOC2/compliance checklist intentionally skipped. ResultClean after the #249 follow-up fix. What was checked
Gates
FindingsNo remaining blocker found in this follow-up. The previous REV blocker from #249 — TS missing legacy PgQ error strings — is fixed here. |
REV rerun update — findingScope: TypeScript client parity/code review only. SOC2/compliance checklist skipped. FindingMedium — TypeScript still misclassifies mid-operation connection/pool failures as Evidence:
Impact: TS application recovery code cannot reliably catch Clean areas
Gates checked
Next action: open a follow-up fix PR for TS operation-time connection classification. |
Summary
Fix the REV finding from #249: TypeScript classified only the modern PgQue error strings, while Go also recognizes legacy PgQ messages emitted by the SQL layer.
PgqueQueueNotFoundError:no such queueNo such event queueEvent queue not created yetevent queue not foundPgqueBatchNotFoundError:Cannot find data for batch ...Test
cd clients/typescript && bun run check && bun run test(30 passed, 50 skipped locally withoutPGQUE_TEST_DSN)git diff --check