Repository navigation
Conversation
Contributor
size-limit report 📦Compared: 2e7910b (PR test merge using base PR #27198 at 2688388) Against: 2688388 (base PR #27198) · base run #68950 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 65 successful. See the run. Successful checks
|
isaacs
force-pushed
the
feat/agent-rules-checks
branch
from
December 5, 2026 02:01
5b40c1d to
78685d3
Compare
isaacs
marked this pull request as ready for review
December 5, 2026 21:43
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
December 5, 2026 21:43
Member
Author
Member
Author
|
@sentry-junior review |
isaacs
force-pushed
the
feat/agent-rules-checks
branch
from
December 5, 2026 22:32
78685d3 to
a5cb2d1
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Add the `sdk/valid-span-origin` lint rule. It checks span origins against the trace origin format: string literals written to an origin attribute, and string literals assigned to a constant whose name ends in `ORIGIN`. Add `scripts/agent-rules.test.mjs`. It checks that no new dev-packages test sets `traceLifecycle`, and that every `exports` subpath with a worker entry puts `workerd` before `browser`. Cloudflare bundlers set `workerd`, `worker` and `browser`, and the first matching key wins. The test leaves the place of `worker` to each package: webpack `target: 'webworker'` builds for browser Web Workers also set `worker` and `browser`, so `@sentry/react-router` keeps `worker` last on purpose (#24866). Remove the AGENTS.md text these checks now enforce, text that restates code, and the Coding Standards and Testing lines that showed no effect in an ablation eval. `REVIEW-RULES.md` no longer points the review at the removed Testing section, and now holds the `stringifyForCodeInjection` rule itself, so reviews keep checking it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isaacs
force-pushed
the
feat/agent-rules-checks
branch
from
December 5, 2026 22:51
a5cb2d1 to
0e6f42e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
sdk/valid-span-originlint rule. It checks span originsagainst the trace origin format: string literals written to an origin
attribute, and string literals assigned to a constant whose name ends in
ORIGIN. Addscripts/agent-rules.test.mjs. It checks that no newdev-packages test sets
traceLifecycle, and that everyexportssubpath with a worker entry puts
workerdbeforebrowser.Cloudflare bundlers set
workerd,workerandbrowser, and the firstmatching key wins. The test leaves the place of
workerto each package:webpack
target: 'webworker'builds for browser Web Workers also setworkerandbrowser, so@sentry/react-routerkeepsworkerlast onpurpose (#24866).
Remove the AGENTS.md text these checks now enforce, text that restates
code, and the Coding Standards and Testing lines that showed no effect
in an ablation eval.
REVIEW-RULES.mdno longer points the review atthe removed Testing section, and now holds the
stringifyForCodeInjectionrule itself, so reviews keep checking it.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com