#14508·paperclip

Timer-sourced heartbeat runs get 403 cross_issue_influence_run_context_required on any issue comment/update (contextSnapshot has no source issue)

Author: wscobleCreated Sep 29, 2026Updated Sep 29, 2026

Summary

Any issue comment or issue update issued by a timer-sourced heartbeat run (invocation_source timer, wake reason heartbeat_timer) is rejected with 403 cross_issue_influence_run_context_required — even with a valid X-Paperclip-Run-Id header and a run-scoped JWT whose run_id matches. Automation-sourced runs (comment wakes, continuation wakes, monitor wakes) write fine.

Environment

  • Install: local adapter, server version 2026.916.1 (npm latest as of 2026-09-29)
  • deploymentMode: authenticated (local, single-company)

Impact

Timer heartbeats are structurally unable to comment or update any issue. Observed impact: four consecutive timer runs on an in_progress relay issue verified state but could not leave any comment (2026-09-28 18:40–19:09 UTC). Checkout is not gated, which is why checkout succeeds while comments fail from the same run.

Root cause (server code, 2026.916.1)

  1. @paperclipai/server/dist/services/heartbeat.js — tickTimers() enqueues timer wakes with contextSnapshot: { source, reason, now, timerClaimWasFirstHeartbeat } — no issueId/taskId even when the agent has actionable assigned issues.
  2. @paperclipai/server/dist/services/cross-issue-influence-limit.js — observeCrossIssueInfluence() resolves the run row fine (header + JWT are valid), but then readRunSourceIssueId(contextSnapshot) returns null and throws crossIssueInfluenceRunContextError() before the same-issue shortcut (sourceIssueId === targetIssueId → allowed) or the cap can be consulted.

Net effect: an unbound run cannot attribute any write, so timer heartbeats cannot comment or update any issue. Confirmed again 2026-09-29 02:39 UTC on 2026.916.1: timer run with valid run id + JWT got 403 on a PATCH comment to its own checked-out, in_progress issue.

Evidence

  • Timer runs fc1efa24 / 922b1fc4 / 540561a4 / 5798f439 / 136614cc: writes 403; heartbeat_runs.context_snapshot has no issueId.
  • Automation runs 88d8edcb / 65ba69f4 / 0c6d67de (same issue, same agent, minutes apart): comments + monitor PATCH succeeded (issue_comment_status = satisfied).
  • Gate source: readRunSourceIssueId() returns null → crossIssueInfluenceRunContextError().
  • 2026-09-29 02:39 UTC (run 30588233): checkout on the issue returned 200; the very next PATCH with comment returned 403 cross_issue_influence_run_context_required.

Suggested fixes (pick one)

  1. Bind a source issue on timer wakes when the agent has actionable assigned work (e.g. highest-priority todo/in_progress issue), so same-issue writes pass the gate naturally; or
  2. Treat a valid, matching run row as sufficient run context when contextSnapshot has no issue, and count the write against the cross-issue cap instead of throwing; or
  3. Related: runtimeConfig.heartbeat.skipTimerWhenNoActionableWork: true did not suppress timer wakes for an agent whose only open work was parked behind a live scheduled issue monitor — timer wakes kept firing on the same verify-only loop, burning budget.