Repository navigation
Description
Summary
retry is absent from both trigger sets — _AUTONOMOUS_TRIGGERS (task_execution_service.py:153) and PULL_REACHABLE_TRIGGERS (pull_pilot.py:95). Nothing in either set's rationale mentions it, so this reads as an oversight rather than a decision, and it has two independent consequences.
On eu2 it is 308 executions over 30 days — 4.7% of all traffic, more than fan_out, reminder, mcp, manual and self_task combined.
Consequence 1 — a retried task straddles both dispatch systems
Measured on eu2 after three agents were put on the pull pilot (2026-09-15):
agent_name | arm | trigger
-----------------+------+----------
oracle-6-science | PULL | schedule
oracle-6-science | PUSH | retry
oracle-7-ai-semi | PULL | schedule
oracle-7-ai-semi | PUSH | retry
A pilot agent's scheduled run is claimed from the durable queue; when it fails, RETRY-001 re-dispatches it on the push path. So one logical task runs its first attempt with durable ownership, a lease and reaper recovery, and its second attempt with none of them — an in-process dispatch record plus a 60s Redis liveness marker that a backend restart destroys.
This is the same "one agent, two independent capacity systems" hazard #1982 closed for the primary trigger, reintroduced one layer down. It is also self-defeating: the retry exists because the first attempt failed, and it runs on the less reliable path.
Consequence 2 — an unresolved command inside a retry alerts nobody
_AUTONOMOUS_TRIGGERS membership gates _alert_skill_not_found (task_execution_service.py:2213). The set's own comment justifies every exclusion as a case where "a human [is] looking at the 'Unknown command' text as it comes back" — manual, mcp, public, chat, session, and room for the transcript reason.
None of that applies to a retry. A retry of a scheduled run has exactly the same audience as the scheduled run: nobody. So if attempt 1 fails for an unrelated reason and attempt 2 hits an unresolved command, the operator alert that would have fired on attempt 1 does not fire on attempt 2. Silent, and independent of anything to do with pull.
Why it matters more now
Per the decision recorded on #1989 (2026-09-16), the durable queue carries all traffic and the push coordination path is deleted afterwards. A trigger that can reach neither set is not a gap at the margin any more — it is a hole in the destination. Phase 5 cannot delete the push path while 4.7% of traffic still requires it.
Scope
- Decide
retry's membership in_AUTONOMOUS_TRIGGERS. The audience argument says it belongs. - Decide its membership in
PULL_REACHABLE_TRIGGERS. If a retry is dispatched by the same producer as the run it retries, it should be as pullable as that run. - If either is deliberately excluded, say so in the set's comment — every other exclusion carries its reasoning, and this one's silence is what made it invisible.
- Check the interaction with re-delivery: a pulled row that fails and is retried must not double-count against
MAX_REDELIVERY, sinceredelivery_countand retry count are deliberately different things (Async chat_with_agent: long execution silently fails with null response (reader-thread) #678).
Acceptance criteria
-
retry's membership in both sets is explicit — included, or excluded with a stated reason in the comment - On a pilot agent, a retried scheduled run does not silently change dispatch systems between attempts
- An unresolved command in a retry raises the same operator alert the first attempt would have
- Retry counting and re-delivery counting remain distinct
- The reach table in
PULL_MIGRATION_TESTING.md§9 listsretry, which it currently does not
Notes
- Parent: feat: pull / work-stealing coordination (push→pull dispatch) #1081. Found during the Production soak-test of pull/work-stealing coordination (#1081) before default-on #1766 soak while adding cron-driven pilot arms on
eu2. - Related: feat(pull): let scheduled work reach the durable queue — Option 2 deferred from #2048 #2391 (which widened the reachable set for cron), fix(pull): close the pilot-scoped gaps left by #2391 — schedule context, RETRY-001 stacking, _dispatch_and_record_outcome, breaker test #2514 (RETRY-001 stacking on the pilot path).
Activity
docs: Open Question 7 is decided — chat joins the queue, push is dele…
docs: record the Open Question 7 decision on dev — chat joins the que…
obasilakis commentedon Sep 21, 2026
/claim
github-actions commentedon Sep 21, 2026
Claimed by @obasilakis. Label
status-in-progressadded.Next steps:
feature/2845-<short-slug>Fixes #2845fix(pull): classify `retry` like the run it retries (#2845) (#2980)
fix(assistant): a restart reports the retries it clears, and a delete…
fix(assistant): the first session's email offer sends each run's resu…