Skip to content

feat(j5): reconcile agent queue mutations with A2A delivery and Exchanges #136

Closed

Description

@Jacksondr5

The upstream integration deliberately defers t3_queue_edit, t3_queue_cancel, t3_queue_reorder, and t3_queue_promote_to_steer from the agent catalog, as approved by the maintainer. Queue list/read tools and existing human queue controls remain available.

Upstream permits writable same-project callers to mutate another thread's queue. Queued work can represent a durable J5 delivery, so raw mutation may change or withdraw the work without updating message/Exchange accounting. Define the smallest shared behavior that keeps the ledger and execution truthful before exposing these agent tools.

Acceptance:

  • Specify how each operation affects a J5 delivery: edited content and identity, withdrawal/terminal notices, ordering, and promotion to steer.
  • Preserve upstream behavior for ordinary queued user work and the existing ownership/mode checks.
  • Reuse the queue command path with a small J5 integration; inspect human UI paths for the same accounting consequences.
  • Prove retries, cancellation/promotion races, archive/unarchive, and terminal Exchange/notice behavior using receipts and drains.
  • Add production discovery/direct-call coverage when the tools are admitted; keep remote environment authority scoped.

Separate follow-up to the upstream merge; do not introduce another delivery ledger or queue implementation.

Activity

  1. Jacksondr5 commented on Oct 25, 2026

    @Jacksondr5
    OwnerAuthor

    Decided (Jackson, 2026-10-24): expose all four queue tools to agents (t3_queue_edit, t3_queue_cancel, t3_queue_reorder, t3_queue_promote_to_steer), with two rules:

    1. An agent may edit only messages it sent. When it edits a J5 delivery, J5 re-wraps the new text in the delivery's envelope, so the sender and header can't change. For messages from others, agents get cancel, promote and reorder only.
    2. J5's record follows every edit, whoever makes it (agent or person in the UI). J5 observes edits to delivery messages, as feat(j5): a sender is told when its queued message is removed before it runs #589 does for removals, and updates the ledger to the new text, marked as edited and by whom.

    Reorder: the platform still delivers in send order (D4). A person or agent who reorders by hand is fine. D4 gets a sentence saying so.

    Cancel and promote are already accounted for by #589.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions