Skip to content

bug(pull): retry is in neither the autonomous nor the pull-reachable trigger set — retried tasks switch dispatch systems mid-task and skip the skill-not-found alert #2845

Closed

Description

@obasilakis

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

  1. Decide retry's membership in _AUTONOMOUS_TRIGGERS. The audience argument says it belongs.
  2. 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.
  3. 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.
  4. Check the interaction with re-delivery: a pulled row that fails and is retried must not double-count against MAX_REDELIVERY, since redelivery_count and 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 lists retry, which it currently does not

Notes

Activity

  1. added
    priority-p1
    type-bug
    theme-reliability
    on Sep 16, 2026
  2. added
    status-ready
    complexity-low
    priority-p2
    and removed
    priority-p1
    on Sep 17, 2026
  3. removed
    status-ready
    on Sep 21, 2026
  4. obasilakis commented on Sep 21, 2026

    @obasilakis
    ContributorAuthor

    /claim

  5. added
    status-in-progress
    on Sep 21, 2026
  6. github-actions commented on Sep 21, 2026

    @github-actions

    Claimed by @obasilakis. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/2845-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #2845
  7. added
    status-in-dev
    and removed
    status-in-progress
    on Sep 23, 2026
  8. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-reliabilitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions