Skip to content

fix(lint): Close gaps in the model and Slack post boundaries - #3468

Merged
dcramer merged 1 commit into
mainfrom
fix/boundary-followups
Nov 15, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/boundary-followups

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Fixes gaps in the checks that #3467 added. The net change is +4 lines (+48 / −44).

  • Slack post rule: the receiver check in fix(core): Record web search and image generation cost #3467 ran a regex over the call text. It missed await thread\n .post(msg), which the previous rule caught. It also missed args.thread?.post(...) and chat.channel(f(id)).post(...). The rule now matches the callee's object field structurally. The widening now covers only .post on a Thread or Channel. .schedule, .stream, .postChannelMessage, .openDM, and renamed-variable tracking had no callers, so they are removed.
  • .js specifiers: import { embedTexts } from "@/chat/pi/client.js" and @/chat/pi/sdk.js got past the raw-function ban. The ban now covers both .js forms.
  • junior-github exemption: webhooks/**, credential-support.ts, default-branch.ts, and github-status.ts turned no-restricted-imports off. That also turned off the SDK ban in those files. Those files now keep the ai, @ai-sdk/*, and pi-ai bans and drop only the credential-support ban.

junior-dashboard has its own oxlint config and does not depend on ai, so the SDK ban does not apply there. #3467 said "every package"; that is not correct for the dashboard.

via @dcramer.

--

View Session [Sentry]

Match the Slack post receiver structurally, so multiline and optional
calls are caught, and limit the widening to .post on a Thread or Channel.
Ban the .js specifiers of pi/client and pi/sdk. Keep the SDK bans on in
the junior-github files that may call GitHub directly.

Follow-up to #3467.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Nov 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 15, 2026 2:23am UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

29 screenshot changes — 29 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Show 12 more changed screenshots
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log Virtual · Desktop
Conversation Event Log Virtual · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Conversation Memory List Jump · Mobile
Conversation Memory List Jump · Mobile
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Conversation Text Attachment · Desktop
Conversation Text Attachment · Desktop
Changed
Conversations Sections Collapsed · Desktop
Conversations Sections Collapsed · Desktop
Changed
Memories · Mobile
Memories · Mobile
Changed

11 more changed screenshots in Frameshift.

@dcramer
dcramer merged commit e1c0ff2 into main Nov 15, 2026
47 checks passed
@dcramer
dcramer deleted the fix/boundary-followups branch November 15, 2026 02:30
dcramer added a commit that referenced this pull request Nov 15, 2026
…subpaths (#3470)

Follow-up to #3468. The net change is +16 lines (+38 /
−22).

- **Wrapped receivers:** `no-raw-slack-turn-post` now looks through
`thread!`, `(thread)`, and `thread as Thread`. Without this,
`args.thread!.post(...)` is the obvious workaround now that
`args.thread?.post(...)` is flagged.
- **`postChannelMessage`:** banned on any receiver, including `?.()`
calls. It is the next escape after `thread.post`. `openDM`, `schedule`,
and `stream` stay allowed.
- **`ai/*` subpaths:** `ai/internal` and `ai/test` now fall under the
SDK ban, the same as `ai`. Type-only imports stay allowed.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A6112415ddf04f2708ea441819fed397b -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A6112415ddf04f2708ea441819fed397b)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A6112415ddf04f2708ea441819fed397b/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0495b656 Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant