Skip to content

Scheduled runs re-ask what is already pending — show an agent its open asks and let it replace one #3247

Closed

Description

@vybe

Summary

Journey Impact: extends: J05 ("I can schedule work, walk away, and find out what happened").

A scheduled run that needs a decision files a new ask even when an earlier run already asked the same thing and is still waiting. The person ends up with several pending asks about one subject, the older ones out of date, and no way to tell which one is current. The agent has no way to see its own open asks at the start of a run, and no way to replace one when the facts changed.

Context

Raised by the operator on 2026-10-05: asks and notifications pile up, a later one makes an earlier one irrelevant, and both stay pending.

What an agent knows today:

  • At the start of a run the Execution Context lists its asks that ended in the last 24 hours. It does not list the ones still pending, so a fresh run cannot know it already asked.
  • The ask contract tells agents to derive request_id from the current execution id. That makes a retry safe, and it also makes two runs about the same subject look unrelated.
  • An agent can re-ask after an ask expired (supersedes_expired). It cannot say "this replaces my earlier ask" while that one is still pending.

Two costs: the person's list holds asks that are no longer true, and stale asks count toward the agent's open-ask limit, so they can get its real asks refused (queue_full).

Acceptance Criteria

  • At the start of every run an agent is shown its own pending asks (id, type, title, age), beside the ended ones, bounded in size like that list.
  • The ask contract (tool description and platform prompt) says: do not re-ask what is still pending; if the facts changed, replace the earlier ask.
  • An agent can raise an ask that replaces one of its own pending asks. The earlier ask ends with a recorded ending that says it was replaced and links to the new one. It leaves the pending set on every surface, can no longer be answered, and stops counting toward the open-ask limit.
  • An approval is never changed in place: what a person is reading is what they approve. Replacing always ends the old ask and shows a new one.
  • If a person answers the earlier ask before the replacement lands, the answer stands and the agent is told so instead of getting a silent replace.
  • An agent can replace only its own asks, never a platform-raised item or another agent's.
  • The replaced ask shows as replaced, with a link to its successor, wherever ended asks are shown.
  • Tests: the pending list reaches the agent's context; a replace ends the old ask and creates the new one in one step; the race with a person's answer; the open-ask limit after a replace; the cross-agent refusal.

Scope note

This is the narrow part of abilityai/trinity-enterprise#619 (supersede, priority inheritance, withdrawal), pulled forward: replace-my-own-pending-ask only. Priority inheritance, withdrawal without a successor and the wider correction flow stay with that issue.

Related

Activity

  1. added
    priority-p1
    type-feature
    theme-reliability
    complexity-medium
    status-ready
    on Oct 5, 2026
  2. 23 remaining items

  3. added
    status-in-progress
    and removed
    status-ready
    on Oct 8, 2026
  4. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 9, 2026
  5. 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

No one assigned

    Labels

    complexity-mediumpriority-p1theme-reliabilitytype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions