paperclip/server
nickyleach c66868abb9 refactor(server): move the steering queue mutation into the wake-queue module
The steering route kept the identity lifecycle, the row locks, the
acknowledgement replay checks, the provider steering call, the queue
removal, the wake cancellation, and the run acknowledgement write inline.
Move that logic into createQueuedCommentQueue as steerQueuedWakeComment,
the fourth mutation on the same queue adapter. The route now keeps only
authorization, validation, issue access, error mapping, the activity log,
and the response shape.

The three identity calls that must run before or after the module's own
transaction (reserveSteeredIdentity, reconcileSteeredIdentity,
rejectSteeredIdentity) stay on the root database handle, so a lost
response after the final queued message still resolves to a durable
idempotency record instead of a second steer. The module reserves the
identity itself; no caller-supplied pending identity id crosses the port.

Delete lockQueuedCommentState and assertQueueMutationTarget from the route
now that steering is their only caller. buildQueuedCommentQueue stays,
since the read-only queued-comments route still needs it.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-10 23:14:39 +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 refactor(server): move the steering queue mutation into the wake-queue module 2026-09-10 23:14:39 +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