[PIX-8316] Isolate heartbeat retry reason guard compile fix #57

Merged
andrei merged 1 commit from agent-cto/pix-8316-heartbeat-fix into master 2026-06-08 11:07:58 +00:00
Owner

Summary

  • isolate the heartbeat.ts retry-reason guard into its own branch
  • replace direct max-turn retry comparisons with a helper to avoid fragile type-narrowing in the scheduled-retry gate
  • keep unrelated dirty control-plane changes out of delivery

Verification

  • NODE_ENV=development pnpm --filter @paperclipai/server exec vitest run src/__tests__/heartbeat-list.test.ts --reporter=verbose
  • NODE_ENV=development pnpm --filter @paperclipai/server exec vitest run src/__tests__/heartbeat-retry-scheduling.test.ts --reporter=verbose shows the same 2 pre-existing failures on both the source dirty checkout and this isolated branch
  • pnpm --filter @paperclipai/server typecheck passes on the source dirty checkout; clean worktree typecheck still reports unrelated workspace/type noise outside heartbeat.ts
## Summary - isolate the `heartbeat.ts` retry-reason guard into its own branch - replace direct max-turn retry comparisons with a helper to avoid fragile type-narrowing in the scheduled-retry gate - keep unrelated dirty control-plane changes out of delivery ## Verification - `NODE_ENV=development pnpm --filter @paperclipai/server exec vitest run src/__tests__/heartbeat-list.test.ts --reporter=verbose` ✅ - `NODE_ENV=development pnpm --filter @paperclipai/server exec vitest run src/__tests__/heartbeat-retry-scheduling.test.ts --reporter=verbose` shows the same 2 pre-existing failures on both the source dirty checkout and this isolated branch - `pnpm --filter @paperclipai/server typecheck` passes on the source dirty checkout; clean worktree typecheck still reports unrelated workspace/type noise outside `heartbeat.ts`
fix: isolate heartbeat retry reason guard
All checks were successful
Agents CI / Typecheck and Build (pull_request) Successful in 2m33s
6c7f359cb6
andrei merged commit 634aee6ef7 into master 2026-06-08 11:07:58 +00:00
andrei deleted branch agent-cto/pix-8316-heartbeat-fix 2026-06-08 11:07:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
europa-tech-srl/europa-tech-agents!57
No description provided.