paperclip/server
nickyleach 8ff7f36c2b fix(server): resolve and require a responsible user on the review-participant recovery run
The review-participant recovery writer left the queued run's responsible
user unresolved. Give this writer the same shape as the sibling
immediate-recovery writer: the application layer resolves the responsible
user before it calls the port, and it fails the recovery explicitly when
no value resolves, instead of queuing an unowned run.

- Build the review-participant context snapshot in the application layer,
  resolve the responsible user against it, and throw a
  WakeQueueApplicationError with code responsible_user_unresolved when the
  value does not resolve.
- Require contextSnapshot and responsibleUserId on the
  queueReviewParticipantRecoveryRun port input.
- Persist the caller-resolved value on the heartbeatRuns insert. The
  adapter still derives the two stage fields it alone can compute, and
  merges them onto the same context snapshot object the caller resolved
  against, so a marker the resolver stamped on that object survives onto
  the persisted row.
- Remove the code comment that explained and accepted the null value; the
  writer no longer produces one.
- Add focused tests: the resolve-before-queue order, the throw with no
  queue call, the same-object identity between the resolve call and the
  queue call, and the resolver's marker surviving the persisted row.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-10 19:04:00 +00:00
..
scripts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00
src fix(server): resolve and require a responsible user on the review-participant recovery run 2026-09-10 19:04:00 +00:00
CHANGELOG.md fix: bound workspace Git scans (#11572) 2026-08-17 22:11:30 -05:00
package.json fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00