runner hook resolves target via Ticket.most_recent — breaks with concurrent pipelines #357

Open
opened 2026-08-14 14:14:32 +00:00 by jared · 1 comment
Owner

Context

Target wiring (2026-08-14) persists the intake target on the ticket row; hooks/post_tool_use.rb reads it back via Ticket.most_recent because the hook re-entry carries no CLI/env context. With two pipelines in flight in one repo, the hook would read the newer ticket's target for both. Fine under today's single-run assumption; needs a real ticket-attribution mechanism (e.g. correlate the Agent tool call to its ticket) before parallel runs are supported.

## Context Target wiring (2026-08-14) persists the intake target on the ticket row; hooks/post_tool_use.rb reads it back via Ticket.most_recent because the hook re-entry carries no CLI/env context. With two pipelines in flight in one repo, the hook would read the newer ticket's target for both. Fine under today's single-run assumption; needs a real ticket-attribution mechanism (e.g. correlate the Agent tool call to its ticket) before parallel runs are supported.
Author
Owner

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.
Sign in to join this conversation.
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
jared/cc-os#357
No description provided.