Skip to content

bug(gates): a held gated message is replayed to the agent in later history — it can act on a never-approved request #3402

Closed

Description

@vybe

Deferred-debt entry (verbatim from the trinity-dev DEBT_INBOX.md)

debt:2026-10-02-gate-held-request-in-history

What: On the Workspace, channels, rooms and public links the gate reads only the sender's new words, so a held /pay-invoice … message is replayed to the agent inside the history or transcript on later turns, as text it never approved.
Why deferred: Scanning history would re-hold every later turn after a single mention. The replayed text never starts with /, so it cannot expand as a command; only the model choosing to act on prose remains, and that is the in-container hook's lane (ent#752).
Context: The history builders in client_portal/service.py, adapters/message_router.py, shared_sessions/service.py and public_chat_service.py. An option is to elide a held turn's text (or mark it "held for approval, not run") when replaying history.
Interest: Until ent#752 lands, an agent could run a held request on its own judgement after reading it in history.
Effort (AI): M
Source: abilityai/trinity-enterprise#751 (/review)
Note (2026-10-03, delta review): on an agent whose runtime has no --resume (Codex), EVERY Workspace turn is cold, so the held invocation sits in the replayed history on every later turn of that thread, not only after a reaped session.


Filed by trinity-pm /groom 2026-10-08 (Debt Health & Inbox Triage).

Activity

  1. added
    priority-p2
    type-bug
    theme-security
    complexity-medium
    status-ready
    on Oct 8, 2026
  2. webmixgamer commented on Oct 20, 2026

    @webmixgamer
    Contributor

    /claim

  3. added
    status-in-progress
    and removed
    status-ready
    on Oct 20, 2026
  4. github-actions commented on Oct 20, 2026

    @github-actions

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

    Next steps:

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

Metadata

Metadata

Assignees

Labels

complexity-mediumpriority-p2theme-securitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions