Skip to content

messaging: Slack link proposals have no per-person cooldown — cache a no-match result per person and email, answer 429 while Slack is rate-limiting, and record no-match lookups #35809

Open

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2

Filing gate: ② review follow-up on PR #35789 (#34730 step 2), routed to an area card. ⛔ Not a claim.

Rule. A person's Slack link proposal (SlackLinkStore.propose in @objectstack/service-messaging) calls Slack's users.lookupByEmail on the organization's token. The rule to add:

  • a short per-person cooldown: a no-match result is cached for a few minutes, keyed on the user and the digest of the email, and a repeat inside the window answers from the cache with no Slack call;
  • while Slack answers ratelimited for that organization, a proposal answers 429 (the existing rate-limit refusal shape) instead of calling again;
  • a no-match lookup leaves a trace (log or audit row, per the package's existing convention).

Note: the reusable limiter applyTokenBucket lives in @objectstack/runtime, which depends on service-messaging, so importing it would close a workspace cycle; use the kernel cache or move the helper to a package both can import.

Pins: a repeat no-match inside the window makes no second Slack call; a ratelimited answer then a proposal → 429; the trace is written.

Blocked-by: #35789.
Suggested-grade: p2 · bounds an organization's Slack API budget.
Dedupe: slack link proposal cooldown, lookupByEmail (searched before filing).

Activity

  1. added
    area:workflow
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:blocked (Blocked-by #35789); rationale: area:workflow · Task · Slack link proposals call users.lookupByEmail with no per-person cooldown or ratelimited back-off; effect: one organization can burn its own Slack API budget, no data or access effect; review follow-up of PR #35789 → p3 (Task default; the filer's p2 is a suggestion) · size S. Stays its own card because it is blocked; unblocks when #35789 lands.

  3. added
    domain:server
    pm:blocked
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-20T23:48Z · Unblocked: its Blocked-by: PR #35789 merged at 23:03Z. pm:blocked → pm:queue; grade and lane unchanged.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 20, 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

    area:workflowdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions