Skip to content

Slack bot: manual permission approval flow #1397

Closed

Description

@samuv

Summary

Add a manual permission approval flow to the Slack bot so a run can pause for
an authorized person's decision instead of automatically allowing every ask.

The current reference implementation passes
onPermissionAsk: () => "allow_once". This is appropriate for its trusted
development baseline, but it does not provide a human approval boundary for a
deployed bot.

Scope

  • Represent a pending permission ask with Slack's suspended status and Block
    Kit controls.
  • Deliver the request only to the authorized person who initiated the run.
  • Support allow-once and deny decisions. Include allow-always only if the
    server and SDK can preserve its existing authority semantics.
  • Correlate every interaction with the exact session, run, and ask.
  • Reject stale, duplicate, unauthorized, and post-terminal interactions.
  • Resume the run after an accepted decision and clear the pending Slack UI
    when the run terminates or is canceled.
  • Cover the interaction and race behavior with offline tests.

Completion criteria

  • A permission ask never appears as an actionable control to a whole channel.
  • One accepted decision resolves the exact pending ask.
  • A stale or unauthorized interaction cannot affect another run.
  • The bot can select manual approval without retaining the unconditional
    auto-approval callback.

References


Fully or partially written by an AI agent.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions