Skip to content

Update sentry-javascript monorepo to v11 - #940

Merged
jaywedgeworth22 merged 3 commits into
mainfrom
renovate/major-sentry-javascript-monorepo
Oct 11, 2026
Merged

jaywedgeworth22 merged 3 commits into
mainfrom
renovate/major-sentry-javascript-monorepo

Conversation

@renovate

@renovate renovate Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@sentry/node (source) ^10.73.0 → ^11.0.0 age confidence
@sentry/react (source) ^10.73.0 → ^11.0.0 age confidence

Release Notes

getsentry/sentry-javascript (@​sentry/node)

v11.4.0

Compare Source

  • feat(sveltekit): Support stable SvelteKit 3 (#​25009)
  • fix(remix): Match the Remix 3.0.0 package versions (#​25008)

v11.3.0

Compare Source

Important Changes
  • Remix 3 support (alpha, may break in minor releases)

    • feat(remix): Add Remix 3 browser SDK with a bundled client entry (#​24802)
    • feat(remix): Add source map upload for Remix 3 (#​24943)
    • feat(remix): Capture Remix 3 component render errors (#​24873)
    • feat(remix): Complete Remix 3 server error handling (#​24878)
    • feat(remix): Inject debug IDs through the Remix 3 asset server (#​24761)
    • feat(remix): Run the orchestrion transform on Remix 3 browser modules (#​24894)
  • feat(nextjs): Add cache_origin span links to use cache hit spans (#​24821)

    A cache.get span for a "use cache" hit now carries a span link (sentry.link.type: 'cache_origin') to the cache.put span of the request that filled the cache entry, connecting the trace that reads a cached value to the trace that produced it.

  • fix(cloudflare): Don't treat DO constructor work as incoming RPC calls (#​24829)

    Durable Object constructors now run in their own isolation scope. When work that the constructor starts, for example a blockConcurrencyWhile callback, calls a method of the instance, that call is no longer treated as an incoming RPC call, so an error the instance catches itself is no longer reported as unhandled. As a result, Sentry.setTag(), setUser() and setContext() in a constructor now apply only to that constructor work. They no longer reach later fetch, RPC or alarm invocations, because the scope they used to write to is shared by every Durable Object and handler in the isolate. Use initialScope for static data, and set per-instance data in each handler.

  • fix(effect)!: Change peerDependency to v4 and fix currentSpan (#​24940)

    @sentry/effect now requires a stable Effect v4 release. Effect v4 beta and release candidate versions are no longer supported. @sentry/effect is in alpha, so this ships in a minor release.

Other Changes
  • feat(astro): Register astro route provider (#​23792)
  • feat(cloudflare): Trace TypeSafe Jev calls in Workers AI as evaluate spans (#​24833)
  • feat(core): Add route provider API for parameterized route resolution (#​23551)
  • feat(deps): bump devalue from 5.9.2 to 5.9.4 (#​24964)
  • feat(effect): Add opt-in for external span parents and isolate root spans (#​23900)
  • feat(nextjs): Register nextjs route provider (#​23552)
  • feat(nuxt): Register nuxt route provider (#​23794)
  • feat(remix): Register remix route provider (#​23791)
  • feat(vue): Register Vue route provider (#​23793)
  • fix(bundler-plugins): Keep debug IDs on Vite source maps after the preload rewrite (#​24920)
  • fix(bundler-plugins): Stabilize debug IDs for Rolldown and Vite 8 builds (#​24919)
  • fix(cloudflare): Skip binding instrumentation work when spans are not sent (#​24655)
  • fix(core, node, bun, deno): Align server span client address with event IP (#​24767)
  • fix(hono): Return the existing client on repeated init in Bun and Deno (#​24520)
  • fix(nitro): Capture errors only through the Nitro error hook (#​24952)
  • fix(profiling-node): Send profile chunks with client.sendEnvelope (#​24896)
  • fix(react-router): Avoid duplicating Vite config arrays (#​24930)
  • fix(react-router): Resolve the Cloudflare entry in Workers and skip trace meta tags in prerendered pages (#​24866)
  • fix(server-utils): Match the Anthropic stream helper header regardless of case (#​24855)
  • fix(server-utils): Skip Fastify 4xx errors raised before the reply status is set (#​24924)
  • fix(tanstackstart-react): Avoid duplicating Vite config arrays (#​24929)
Internal Changes
  • chore(deps-dev): bump @​vercel/nft from 1.5.0 to 1.11.0 (#​24954)
  • chore(deps): Bump @​sentry/conventions to 0.25.0 (#​24958)
  • chore(deps): dev dependency security fixes (#​24275)
  • chore(size-limit): weekly auto-bump (#​24969)
  • ci(deps): bump anthropics/claude-code-action from 1.0.210 to 1.0.236 (#​24950)
  • ci(deps): bump getsentry/craft from 2.30.1 to 2.31.2 (#​24951)
  • ci(deps): bump getsentry/github-workflows/validate-pr from 4013fc6 to 36c7292 (#​24949)
  • ci(deps): bump pnpm/action-setup from 6.0.10 to 6.1.0 (#​24948)
  • license: Add cli FSL notice (#​24956)
  • ref(core): Use cache attribute constants from conventions (#​24973)
  • ref(core): Use conversation ID constant from conventions (#​24966)
  • ref(core): Use exclusive time constant from conventions (#​24971)
  • ref(core): Use HTTP method constant from conventions (#​24977)
  • ref(core): Use idle span finish reason constant from conventions (#​24970)
  • ref(core): Use profile ID constant from conventions (#​24976)
  • ref(core): Use SDK metadata constants from conventions (#​24978)
  • ref(core): Use status message constant from conventions (#​24967)
  • ref(core): Use user attribute constants from conventions (#​24974)
  • ref(server-utils): Clarify API promise helper naming and references (#​24928)
  • test(cloudflare): Add Flue E2E test that deploys a real Worker and sends to Sentry (#​24816)
  • test(cloudflare): Match the expected error in the WebSocket e2e tests (#​24923)
  • test(deno): Port integration tests to span streaming (#​24870)
  • test(e2e): Add node-anthropic-send-to-sentry test app (#​24856)
  • test(e2e): Avoid rate limits when polling Sentry in send-to-sentry tests (#​24957)

Work in this release was contributed by @​Shubham-Padkonde and @​tobias-schnabel. Thank you for your contributions!

v11.2.0

Compare Source

Important Changes
  • feat(hono): add orchestrion-based auto-instrumentation (#​24497)

    Hono is now instrumented automatically. Request spans are named after the matched Hono route, each middleware gets its own span, and errors thrown in handlers are captured.

  • feat(node/bun): Enable dedupeIntegration by default (#​24794)

    @sentry/node and @sentry/bun now include dedupeIntegration in their default integrations, like the browser, Deno, Vercel Edge and Cloudflare SDKs. When the same error is captured two times in a row, only the first event is sent. To keep the previous behavior, remove the integration: integrations: defaults => defaults.filter(integration => integration.name !== 'Dedupe').

  • feat(remix): Instrument Remix 3 server requests via fetch-router (#​24801)

    On Remix 3, the SDK now adds the matched route as http.route, the response status and a low-cardinality name to the http.server span of each fetch-router request. Start the app with --import @sentry/remix/v3/node in place of --import remix/node-tsx.

Other Changes
  • chore(bundler-plugins): Allow magic-string 1.x (#​24768)
  • feat(deps): Bump oxc-parser to 0.152.0 and sentry to 0.45.0 (#​24823)
  • feat(elysia): Export bunRuntimeMetricsIntegration (#​24892)
  • feat(react-router): Support request-scoped CSP nonces in createSentryHandleRequest (#​24826)
  • fix(aws-serverless): Keep Lambda extension polling past 300s (#​24811)
  • fix(browser-utils): Stop leaking DOM instrumentation listeners on mismatched removals (#​24727)
  • fix(core): Resolve escape sequences in fmt / parameterize messages (#​24770)
  • fix(deno): Flush buffered metrics and logs before process exit (#​24807)
  • fix(node): End Express layer spans when next is called (#​24854)
  • fix(node): Flush buffered metrics on process exit (#​24806)
  • fix(nuxt): Fix CommonJS interop for force-inlined instrumented packages (#​24799)
  • fix(server-utils): Preserve raw Anthropic response bodies (#​24902)
  • fix(server-utils): Preserve raw Groq and Together response bodies (#​24906)
  • fix(server-utils): Preserve raw OpenAI embeddings and conversation responses (#​24908)
  • fix(server-utils): Preserve response bodies for OpenAI parse helpers (#​24783)
  • fix(solidstart): Support rolldownOptions in instrumentation file plugin (#​24863)
  • fix(sveltekit): Skip trace meta tags when prerendering (#​24777)
  • fix(vue): Share one root render span debounce timer across components (#​24868)
  • perf(server-utils): Avoid quadratic SQL sanitizer output handling (#​24834)
Internal Changes
  • chore: Add external contributor to CHANGELOG.md (#​24822)
  • chore: Add external contributor to CHANGELOG.md (#​24827)
  • chore: Add external contributor to CHANGELOG.md (#​24835)
  • chore: Add external contributor to CHANGELOG.md (#​24850)
  • chore: Add external contributor to CHANGELOG.md (#​24851)
  • chore: Add external contributor to CHANGELOG.md (#​24914)
  • chore(deps): Update to Vitest 4 and Vite 8 (#​24746)
  • chore(github): Add external label on PRs of external contributors (#​24825)
  • chore(solidstart): Remove unused Vitest setup from e2e apps (#​24789)
  • ci: shard Bun integration tests (#​24771)
  • ci: shard Deno shared integration tests (#​24772)
  • docs(core): Clarify error object dedupe and dedupeIntegration (#​24893)
  • feat(deps): bump axios from 1.18.0 to 1.20.0 (#​24918)
  • feat(deps): bump fast-uri from 3.1.7 to 3.1.8 (#​24889)
  • feat(deps): bump fastify from 5.12.1 to 5.12.5 (#​24917)
  • feat(deps): bump hono from 4.13.5 to 4.13.7 (#​24916)
  • feat(deps): bump ip-address from 10.4.0 to 10.7.2 (#​24810)
  • feat(deps): bump moment from 2.30.1 to 2.31.0 (#​24890)
  • fix(deps): runtime dependency security fixes (#​24911)
  • ref(hono): move shared Hono instrumentation into @​sentry/server-utils (#​24496)
  • test(browser): Fix flaky reportPageLoaded duration assertion (#​24814)
  • test(bun): Run the auto-instrumentation suites with bundled scenarios (#​24612)
  • test(cloudflare): Add shared streamed-span helpers to the integration test runner (#​24176)
  • test(cloudflare): Assert Workers AI gen_ai spans in the send-to-sentry E2E test (#​24515)
  • test(cloudflare): Port the binding suites to span streaming (#​24190)
  • test(cloudflare): Port the http-server integration suites to span streaming (#​24195)
  • test(cloudflare): Port the request handler suites to span streaming (#​24196)
  • test(cloudflare): Port the tracing propagation suites to span streaming (#​24185)
  • test(cloudflare): Port the tracing suites to span streaming (#​24179)
  • test(cloudflare): Port the vite-autoinstrument suites to span streaming (#​24189)
  • test(e2e): Add Bun Express test app (#​24306)
  • test(e2e): Add trace test for background use cache revalidation (#​24740)
  • test(e2e): Mark supabase-nextjs as optional (#​24898)
  • test(e2e): Retry a hung SAM start in aws-serverless tests (#​24879)
  • test(nextjs): Add tests for low-cardinality span names for cache spans (#​24819)
  • test(nextjs): Add UI components for cached/dynamic content (#​24874)
  • test(nuxt): Remove version pin for @​nuxt/cli in Nuxt 5 E2E (#​24798)
  • test(replay): De-flake mutationLimit large-mutations test (#​24784)
  • test(sveltekit): Add missing prerender e2e test (#​24921)
  • test(test-utils): Add fetchSpanAttributes to read span attributes via the sentry CLI (#​24514)
  • test(test-utils): Extract Cloudflare Worker deploys into test-utils/cloudflare (#​24815)

Work in this release was contributed by @​nabi-noor, @​LuccaRebelloToledo, @​andasan, @​breken-ai, @​EmileBrunelle, and @​diobriggs. Thank you for your contributions!

v11.1.0

Compare Source

Important Changes
  • feat(server-utils): Auto-instrument MCP servers via orchestrion (#​24529)

    A new default mcpServerIntegration wraps every McpServer instance (from @modelcontextprotocol/server and @modelcontextprotocol/sdk) when it is created. You no longer need to call wrapMcpServerWithSentry manually. You can still call wrapMcpServerWithSentry to override options, for example recordInputs: false.

  • feat(node): Support Prisma 8 in prismaIntegration (#​24682)

    prismaIntegration now creates a prisma:client:operation span for each Prisma 8 ORM call, with the database query spans nested below it. No code changes are necessary.

  • feat(server-utils): Add TypeSafe integration (#​24703)

    A new default typesafeIntegration creates a gen_ai.evaluate span for each TypeSafe Jev call through @typesafe-ai/sdk (TypeSafeClient.systemOne). For runtimes without auto-instrumentation, use instrumentTypeSafeClient().

  • feat(server-utils): Instrument Vercel AI experimental_evaluate (#​24694)

    Vercel AI experimental_evaluate calls now create a gen_ai.evaluate span, with the state and questions as input messages and the answers as output messages.

Other Changes
  • feat(browser): Add onError callback to showReportDialog (#​24780)
  • feat(bun): Add client address, port and protocol to Bun.serve spans (#​24523)
  • feat(cloudflare): Re-export httpServerIntegration from /request (#​24614)
  • feat(remix): Add Remix 3 export subpaths and optional peer deps (#​24697)
  • feat(server-utils): Support amqplib v2 (#​24652)
  • feat(server-utils): Support tedious v20 (#​24644)
  • fix: Injection silently no-ops on Windows (registerHooks path) (#​24705)
  • fix(bun): Keep diagnostics channel subscriptions alive (#​24632)
  • fix(cloudflare): Call connect() on the binding for service bindings and DO stubs (#​24593)
  • fix(cloudflare): Keep the user's class name when auto-wrapping an export (#​24700)
  • fix(core): Support joined set-cookie headers (split them) (#​24659)
  • fix(nextjs): Don't prepend basePath to absolute router navigation URLs (#​24680)
  • fix(nextjs): Limit Turbopack orchestrion loader to instrumented packages (#​24792)
  • fix(nextjs): Stop Turbopack loaders from loading the Sentry CLI (#​24651)
  • fix(server-runtime-injection): Keep ES modules working on Deno (#​24669)
  • fix(server-utils): Deduplicate Google GenAI streaming tool calls (#​23432)
  • fix(sveltekit,remix): Export Mistral manual wrapper (#​24566)
  • fix(sveltekit): Resolve @opentelemetry/api via the SDK on SvelteKit 3 (#​24736)
  • fix(wasm): map wasm:// stack frames to registered debug images (#​23999)
  • perf(bundler-plugins): Use fast component annotation for HTML injection mode (#​24440)
  • perf(bundler-plugins): Use fast component annotation for Webpack and Turbopack (#​24448)
  • ref(bundler-plugins): Remove Babel fallback from component annotation (#​24449)
Internal Changes
  • chore: Add external contributor to CHANGELOG.md (#​24674)
  • chore: Add external contributor to CHANGELOG.md (#​24675)
  • chore: Add external contributor to CHANGELOG.md (#​24745)
  • chore: Add external contributor to CHANGELOG.md (#​24766)
  • chore: Add external contributor to CHANGELOG.md (#​24782)
  • chore: Update base node version to 24.21.0 (#​24343)
  • chore: upgrade oxfmt to 0.70.0 (#​24637)
  • chore(ci): Assign server package reviews back to server team (#​24743)
  • chore(deps-dev): bump elysia from 1.4.27 to 1.4.29 (#​24673)
  • chore(deps): Bump @sentry/conventions to 0.24.0 (#​24645)
  • chore(size-limit): weekly auto-bump (#​24729)
  • ci: Replace per-run flaky issues with a weekly report (#​24707)
  • ci: shard Cloudflare integration tests (#​24726)
  • ci: shard Node integration tests and increase browser Playwright workers (#​24676)
  • docs: Point browser SDK READMEs to documentation (#​24634)
  • docs: Point Effect, Elysia, and Wasm READMEs to documentation (#​24636)
  • docs: Point framework SDK READMEs to documentation (#​24631)
  • docs: Point profiling and native READMEs to documentation (#​24640)
  • docs: Point Replay and Feedback READMEs to documentation (#​24639)
  • docs: Point server SDK READMEs to documentation (#​24635)
  • docs: Point tooling READMEs to documentation (#​24641)
  • docs: Standardize internal package READMEs (#​24638)
  • docs(angular): Point README to SDK documentation (#​24623)
  • docs(astro): Point README to SDK documentation (#​24626)
  • docs(aws-serverless): Point README to SDK documentation (#​24627)
  • docs(cloudflare): Point README to SDK documentation (#​24624)
  • docs(ember): Point README to SDK documentation (#​24628)
  • docs(hono): Point README to SDK documentation (#​24621)
  • docs(nestjs): Point README to SDK documentation (#​24618)
  • docs(nitro): Point README to SDK documentation (#​24629)
  • docs(opentelemetry): Point README to documentation (#​24642)
  • docs(react-router): Point README to SDK documentation (#​24625)
  • docs(remix): Point README to SDK documentation (#​24630)
  • docs(solidstart): Point README to SDK documentation (#​24622)
  • fix(ci): Handle missing workers in E2E cleanup (#​24779)
  • fix(server-utils): Use Bun-safe diagnostics channel wrappers in MCP integration (#​24797)
  • test(bun, deno): Run shared Node integration suites on Bun and Deno (#​24609)
  • test(bun): Exclude Typesafe tests in bun (#​24785)
  • test(bun): Run all Node integration suites on Bun (#​24610)
  • test(bun): Run the Bun-only suites with the shared Node runner (#​24668)
  • test(cloudflare): Add e2e test app for @cloudflare/think (#​24660)
  • test(cloudflare): Resend requests until the deployed Cloudflare Worker answers (#​24560)
  • test(deno): Run all Node integration suites on Deno (#​24611)
  • test(e2e): Add cache origin link tests for cached components in pages (#​24739)
  • test(e2e): Add cache origin link tests for use cache route handlers (#​24734)
  • test(e2e): Add Next.js cache component nesting scenarios (#​24704)
  • test(e2e): Add node-prisma-8 test app (#​24683)
  • test(e2e): Add pageload connection test for cache component apps (#​24741)
  • test(e2e): fix flaky hydrogen send-to-sentry tests (#​24708)
  • test(effect): Make effect/http stable (#​24781)
  • test(node): Add Prisma 8 integration test suite (#​24681)
  • test(node): Assert absence of PII attributes in OpenAI integration tests (#​24031)
  • test(node): Port envelope-header tests to span streaming (#​24528)
  • test(node): Use a separate instrument file for the Vercel AI evaluate privacy test (#​24742)
  • test(nuxt): Fix Nuxt 5 E2E by pinning @​nuxt/cli (#​24788)
  • test(remix): Add Remix 3 e2e test application (#​24698)
  • test(vue): verify vue-router 5 support (#​24595)

Work in this release was contributed by @​camc314, @​ihsraham, @​zkasuran, @​Shubham-Padkonde, and @​itz-puneet. Thank you for your contributions!

v11.0.0

Compare Source

Version 11.0.0 marks a major release of the Sentry JavaScript SDKs containing breaking changes.
The goal of this release is to be better compatible with OpenTelemetry, make our integrations work across Node.js, Cloudflare, Bun and Deno through run-time and build-time instrumentation, and make span streaming and more permissive data collection the default.

How To Upgrade

Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 10 to version 11. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/

A comprehensive migration guide outlining all changes can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md

Breaking Changes
All SDKs
  • feat: Remove support for initialising via --require (#​22513)
  • feat!: Rename deprecated http.* span attributes (#​23574)
  • feat!: Rename deprecated net. span attributes (#​23301)
  • feat!: Replace skipOpenTelemetrySetup with enableOpenTelemetrySetup (#​23199)
  • feat!: Replace the deprecated http.target span attribute (#​23575)
  • feat!: Require Node >=20.19.0 as minimum supported version (#​22558)
  • feat!: Use handler span op for terminal request handlers (#​22871)
  • feat!: Use middleware span op for web-server middleware (#​22852)
  • feat(frameworks)!: Use function op for framework functions (#​23047)
  • feat(node/cloudflare)!: Remove deprecated honoIntegration (#​22480)
  • feat(v11): Drop TypeScript 3.8 support (#​18604)
AI integrations
  • feat(langchain): Emit gen_ai.pipeline.name instead of langchain.chain.name (#​23740)
  • ref(anthropic)!: Move Anthropic AI integration to @sentry/server-utils (#​22954)
  • ref(google-genai)!: Move Google GenAI integration to @sentry/server-utils (#​22959)
  • ref(langchain)!: Move LangChain and LangGraph integrations to @sentry/server-utils (#​22962)
  • ref(langgraph)!: Drop gen_ai.create_agent spans (#​22840)
  • ref(openai)!: Move OpenAI AI integration to @sentry/server-utils (#​22953)
  • ref(vercel-ai)!: Move Vercel AI integration to @sentry/server-utils (#​22964)
  • ref(workers-ai)!: Move Workers AI integration to @sentry/server-utils (#​22960)
@​sentry/angular
  • feat(angular,ember,sveltekit)!: Use router span op for frontend routers (#​23086)
  • feat(angular)!: Use ui.mount and function span ops for tracing decorators (#​22667)
@​sentry/astro
  • feat(astro)!: Drop support for Astro 3 (#​22683)
  • feat(astro)!: Enable orchestrion instrumentation on Cloudflare Workers (#​23003)
  • feat(astro)!: Remove deprecated sourceMapsUploadOptions build option (#​23630)
  • feat(astro)!: Remove unstable_sentryVitePluginOptions (#​23370)
  • ref(astro)!: Migrate import hook to makeOrchestrionLoader (#​22861)
  • ref(astro)!: Remove deprecated release/debug conflict workaround from BuildTimeOptionsBase (#​23270)
@​sentry/aws-serverless
  • chore(aws-serverless)!: Drop nodejs18.x from the Lambda layer runtimes (#​23155)
  • feat(aws-serverless): Remove deprecated disableAwsContextPropagation option (#​23170)
  • feat(aws-serverless)!: Emit faas.invocation_id and cloud.resource_id (#​24384)
  • feat(aws-serverless)!: Remove unused startTrace option and tryPatchHandler (#​23219)
  • feat(aws-serverless)!: Use function.aws span op for Lambda invocations (#​22677)
  • feat(aws)!: Use queue Span OP for AWS SQS & SNS messaging (#​23757)
  • ref(aws-serverless)!: Migrate import hook to makeOrchestrionLoader (#​22862)
@​sentry/browser
  • chore(browser)!: Remove legacy profiling option profilesSampleRate (#​23220)
  • feat(browser)!: Do not include metrics in base CDN bundle (#​23207)
  • feat(browser)!: drop browser support for AI integrations (#​22438)
  • feat(browser)!: Extract performance.{mark,measure} spans into new userTimingSpansIntegration (#​22554)
  • feat(browser)!: Extract interaction spans into new interactionsIntegration (#​23295)
  • feat(browser)!: Record console breadcrumbs via consoleIntegration (#​24387)
  • feat(browser)!: Rename bfcacheIntegration to bfcacheMetricsIntegration (#​23776)
  • feat(browser)!: Report browser.navigation.type exactly as web-vitals does (#​24479)
  • feat(browser)!: Report web vitals for bfcache restores by default (#​24325)
  • feat(browser)!: Send session status unhandled instead of crashed for unhandled errors (#​22475)
  • feat(browser)!: Switch default browser session lifecycle mode to page (#​21245)
  • feat(browser)!: Use browser.paint span op for paint entries (#​22673)
  • fix(browser)!: stop tagging DOMException.code on events (#​23992)
  • fix(browser)!: Use snake_case consistently for ops (#​23100)
  • ref(browser)!: Remove the web vital report event attribute (#​24511)
  • ref(browser): Remove deprecated trackFetchStreamPerformance flag (#​23172)
  • ref(browser)!: Drop Safari 14 support - remove navigationStart fallback and pagehide listeners (#​21293)
  • ref(browser)!: Remove beforeSpanEnd callback in favor of beforeIdleSpanEnd hook (#​22818)
@​sentry/bundler-plugins
  • feat(bundler-plugins)!: Migrate from @​sentry/cli to the sentry CLI SDK (#​23398)
  • ref(bundler-plugins)!: Require webpack 5.1 and remove the webpack5 entry point (#​24455)
@​sentry/cloudflare
  • feat(cf/vercel-edge)!: Align request data collection with v11 defaults (#​22850)
  • feat(cloudflare)!: Auto-instrument the Worker by default in the Vite plugin (#​23273)
  • feat(cloudflare)!: Enable build-time instrumentation by default in Vite plugin (#​22950)
  • feat(cloudflare)!: Make the nodejs_compat entrypoint the default (#​22900)
  • feat(cloudflare)!: Match rpcTracePropagationBindings case-insensitively (#​23625)
  • feat(cloudflare)!: Replace enableRpcTracePropagation with rpcTracePropagationBindings (#​23486)
  • feat(cloudflare)!: Skip rate limit spans (#​23907)
  • feat(cloudflare)!: Use function span op for cron, email and workflow steps (#​22703)
  • ref(cloudflare)!: Remove deprecated instrumentD1WithSentry export (#​23153)
  • ref(cloudflare)!: Remove instrumentPrototypeMethods option (#​22961)
  • ref(cloudflare)!: Remove wrapRequestHandler from main entrypoint (#​22881)
  • ref(cloudflare)!: Use shared SentryTracerProvider for OpenTelemetry interop (#​23300)
@​sentry/core
  • feat(core): Remove span from ScopeData (#​23225)
  • feat(core)!: Align request data collection with v11 defaults (#​22853)
  • feat(core)!: Default attachStacktrace to true (#​22572)
  • feat(core)!: Enable data collection by default (#​22917)
  • feat(core)!: Enable span streaming by default (#​22642)
  • feat(core)!: Flip genAI defaults to collect it by default (#​22706)
  • feat(core)!: Gate incoming HTTP body capture on dataCollection.httpBodies (#​22834)
  • feat(core)!: Make beforeSendSpan compatible with streamed spans by default (#​22643)
  • feat(core)!: Make tracePropagationTargets matching case-insensitive (#​23534)
  • feat(core)!: Remove enableMetrics option (#​23321)
  • feat(core)!: Remove enableTruncation flag and all AI integrations truncation logic (#​23045)
  • feat(core)!: Remove endTimestamp from SentrySpanArguments (#​23269)
  • feat(core)!: Remove kind for spans, move to sentry.kind attribute (#​22528)
  • feat(core)!: Remove queryParams in favor of urlQueryParams (#​22711)
  • feat(core)!: Remove scope.clear() method (#​23230)
  • feat(core)!: Remove sendDefaultPii in favor of dataCollection (#​22918)
  • feat(core)!: Remove sentry.sdk_meta.gen_ai.input.messages.original_length attribute (#​22516)
  • feat(core)!: Remove streamGenAiSpans flag (#​22495)
  • feat(core)!: Remove deprecated _experiments.enableLogs option (#​22808)
  • feat(core)!: Remove deprecated inboundFiltersIntegration (#​23008)
  • feat(core)!: Remove deprecated instrumentLangGraph (#​22485)
  • feat(core)!: Remove Unstable*PluginOptions build option types (#​23390)
  • feat(core)!: Return StreamedSpanJSON from spanToJSON (#​23238)
  • feat(core)!: Update all spans to use url.full, url.fragment and url.query (#​22547)
  • feat(core)!: Use rpc span op for tRPC spans (#​22914)
  • feat(server-utils,core)!: Use router span op for backend router layers (#​23088)
  • fix(core)!: Remove enableLogs option (#​23319)
  • ref(core)!: Make attributes in sampling context required (#​24153)
  • ref(core)!: Align gen_ai cache token attributes with conventions (#​22811)
  • ref(core)!: Make attributes required on ScopeData (#​23277)
  • ref(core)!: Migrate to SENTRY_SEGMENT_NAME_SOURCE (#​23368)
  • ref(core)!: Move getComponentName to browser-utils (#​23716)
  • ref(core)!: Remove getLocationHref export from core (#​23717)
  • ref(core)!: Remove startIdleSpan from server exports (#​23420)
  • ref(core)!: Remove supportsDOMError, supportsHistory, supportsReportingObserver exports (#​23718)
  • ref(core)!: Remove supportsNativeFetch export (#​23719)
  • ref(core)!: Remove deprecated addAutoIpAddressToUser export (#​23174)
  • ref(core)!: Remove deprecated htmlTreeAsString from core (#​23715)
  • ref(core)!: Remove deprecated patchExpressModule(options) signature (#​23175)
  • ref(core)!: Remove deprecated positional spanOrigin argument from instrumentFetchRequest (#​23177)
  • ref(core)!: Remove experimental enableMetrics / beforeSendMetric flags (#​23276)
  • ref(core)!: Remove orphaned deprecated Express patch APIs (#​23827)
  • ref(core)!: Rename gen_ai.request.available_tools to gen_ai.tool.definitions (#​22820)
  • ref(core)!: Rename gen_ai.system to gen_ai.provider.name (#​22814)
  • ref(core)!: Rename gen_ai.tool.input to gen_ai.tool.call.arguments (#​22821)
  • ref(core)!: Rename gen_ai.tool.output to gen_ai.tool.call.result (#​22822)
  • ref(core)!: Rename Vercel AI cache/reasoning token attributes (#​22823)
  • ref(core)!: Replace deprecated code.* and fs_error span attributes (#​23401)
  • ref(core)!: Split browser/server-only exports out of the default entrypoint (#​23762)
  • ref(core)!: Stop setting deprecated gen_ai.tool.type span attribute (#​22824)
  • ref(core)!: Unify tracePropagation vs propagateTrace option names (#​23649)
@​sentry/deno

❗ Important

✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@jaywedgeworth22
jaywedgeworth22 enabled auto-merge (squash) October 8, 2026 02:22
@renovate
renovate Bot force-pushed the renovate/major-sentry-javascript-monorepo branch 3 times, most recently from 1340a09 to cc82279 Compare October 8, 2026 04:11
@renovate
renovate Bot force-pushed the renovate/major-sentry-javascript-monorepo branch 2 times, most recently from ec47e58 to 28d7e43 Compare October 10, 2026 17:17
@kody-ai

kody-ai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Never move or delete existing app support.html URLs
  • Keep server secrets out of client bundles
Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@kody-ai

kody-ai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

kody code-review Business Logic medium

🤔 Insufficient Task Context

I found a task linked to this PR, but it only contains minimal information (title only, no description or acceptance criteria). To perform a meaningful business rules validation, I need more details.

🔍 What I need to validate:

  • Business requirements and acceptance criteria
  • Expected behavior and business rules
  • Edge cases and constraints to consider

💡 How to improve the task context:

  • Add a description to the linked ticket
  • Include acceptance criteria or business rules
  • Describe the expected behavior after the change

⚠️ Important:

A task title alone is not sufficient to determine whether the implementation is correct or complete.


💡 This validation runs automatically only on the first review of a pull request. To run it again, comment @kody -v business-logic.

@renovate renovate Bot changed the title fix(deps): update sentry-javascript monorepo to v11 Update sentry-javascript monorepo to v11 Oct 11, 2026
@renovate
renovate Bot force-pushed the renovate/major-sentry-javascript-monorepo branch from 28d7e43 to 82c46bd Compare October 11, 2026 19:06
@kody-ai

kody-ai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

⚠️ 1 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Prefer Sentry for new observability; do not add new Datadog RUM/APM surfaces
Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@kody-ai

kody-ai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

kody code-review Business Logic medium

🤔 Insufficient Task Context

I found a task linked to this PR, but it only contains minimal information (title only, no description or acceptance criteria). To perform a meaningful business rules validation, I need more details.

🔍 What I need to validate:

  • Business requirements and acceptance criteria
  • Expected behavior and business rules
  • Edge cases and constraints to consider

💡 How to improve the task context:

  • Add a description to the linked ticket
  • Include acceptance criteria or business rules
  • Describe the expected behavior after the change

⚠️ Important:

A task title alone is not sufficient to determine whether the implementation is correct or complete.


💡 This validation runs automatically only on the first review of a pull request. To run it again, comment @kody -v business-logic.

Comment thread pnpm-lock.yaml Resolved
Comment thread pnpm-lock.yaml Resolved
Comment thread pnpm-lock.yaml Resolved
Comment thread pnpm-lock.yaml Resolved
v11 renamed maxIncomingRequestBodySize and queryParams, dropped
enableLogs/sendDefaultPii/streamGenAiSpans, and streams spans by default
so beforeSendTransaction no longer runs.  Keep the webhook-secret scrub
with traceLifecycle: static and explicit dataCollection privacy flags.

Co-authored-by: Jay Wedgeworth <[email protected]>
@jaywedgeworth22

Copy link
Copy Markdown
Member

The v11 typecheck and scrub adaptations are on f90d6df.  @kody start-review

@renovate

renovate Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

v11 parents a startSpan inside an HTTP handler to that request.  The
/hooks integration drops that parent, so the child never reached the
transport.  startNewTrace keeps the scrub fixture's transaction.

Co-authored-by: Jay Wedgeworth <[email protected]>
@kody-ai

kody-ai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@kody-ai

kody-ai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

kody code-review Business Logic medium

🤔 Insufficient Task Context

I found a task linked to this PR, but it only contains minimal information (title only, no description or acceptance criteria). To perform a meaningful business rules validation, I need more details.

🔍 What I need to validate:

  • Business requirements and acceptance criteria
  • Expected behavior and business rules
  • Edge cases and constraints to consider

💡 How to improve the task context:

  • Add a description to the linked ticket
  • Include acceptance criteria or business rules
  • Describe the expected behavior after the change

⚠️ Important:

A task title alone is not sufficient to determine whether the implementation is correct or complete.


💡 This validation runs automatically only on the first review of a pull request. To run it again, comment @kody -v business-logic.

@jaywedgeworth22
jaywedgeworth22 merged commit d1270b6 into main Oct 11, 2026
14 checks passed
@jaywedgeworth22
jaywedgeworth22 deleted the renovate/major-sentry-javascript-monorepo branch October 11, 2026 22:19
jaywedgeworth22 added a commit that referenced this pull request Oct 11, 2026
* Fix the two typecheck and lint breaks main is carrying

Neither is new code:  both are pre-existing failures on main that make every pull
request red, so nothing can land until they are fixed.

`server/sentry.ts` named `maxRequestBodySize`, which Sentry v11 (#940) renamed
to `maxIncomingRequestBodySize` and narrowed to incoming bodies.  `"none"` is
still a valid value there, so the line now compiles and keeps its meaning:  an
incoming request body is never captured.

`src/components/EngineMarksVisualFixture.tsx` asserted a `?skin=` query
parameter straight to `SkinId`.  It is typed by hand in a URL, so looking the
value up in `SKIN_IDS` is both true and the same answer for every skin the
fixture's own e2e spec asks for.

* Assert the Sentry v11 body-size option the code actually passes

The webhook test read `maxRequestBodySize` back off the integration, so it went
green against a spelling v11 had already dropped.  It now reads the option the
code sets, and still fails if the value ever stops being "none".

Refs #1083

* Undo the Sentry option rename:  it was never broken

`maxRequestBodySize` is correct for the locked @sentry/node 11.6.0 that CI
installs.  My local `node_modules` was still on 10.76.0, whose option is named
`maxIncomingRequestBodySize`, so `tsc` failed here and I renamed a line that was
right.  CI caught it with the type error this removes.

This branch is now the lint fix alone.

Refs #1083

---------

Co-authored-by: MiniMax <[email protected]>
cursor Bot pushed a commit that referenced this pull request Oct 11, 2026
* Fix the two typecheck and lint breaks main is carrying

Neither is new code:  both are pre-existing failures on main that make every pull
request red, so nothing can land until they are fixed.

`server/sentry.ts` named `maxRequestBodySize`, which Sentry v11 (#940) renamed
to `maxIncomingRequestBodySize` and narrowed to incoming bodies.  `"none"` is
still a valid value there, so the line now compiles and keeps its meaning:  an
incoming request body is never captured.

`src/components/EngineMarksVisualFixture.tsx` asserted a `?skin=` query
parameter straight to `SkinId`.  It is typed by hand in a URL, so looking the
value up in `SKIN_IDS` is both true and the same answer for every skin the
fixture's own e2e spec asks for.

* Assert the Sentry v11 body-size option the code actually passes

The webhook test read `maxRequestBodySize` back off the integration, so it went
green against a spelling v11 had already dropped.  It now reads the option the
code sets, and still fails if the value ever stops being "none".

Refs #1083

* Undo the Sentry option rename:  it was never broken

`maxRequestBodySize` is correct for the locked @sentry/node 11.6.0 that CI
installs.  My local `node_modules` was still on 10.76.0, whose option is named
`maxIncomingRequestBodySize`, so `tsc` failed here and I renamed a line that was
right.  CI caught it with the type error this removes.

This branch is now the lint fix alone.

Refs #1083

---------

Co-authored-by: MiniMax <[email protected]>
jaywedgeworth22 added a commit that referenced this pull request Oct 13, 2026
… nine criteria (#1074)

* fix(chat): stop the streaming bubble flooding screen readers

The whole transcript sits inside `role="log" aria-live="polite"`
(ChatView.tsx:1687). The streaming bubble was a child of it with no live
region of its own, so every token frame rewrote a live node and the whole
bubble was re-announced — a 30-second turn became hundreds of
interruptions. Only the caret was `aria-hidden`.

Nest an `aria-live="off"` region inside the streaming bubble so it stops
propagating, and let the settled bubble carry the text and be announced
once, when it lands. `aria-busy="true"` conveys "still generating" to AT
that understands it. Both bubbles are still visible exactly as before.

Also in this pass:

- Settled bubbles get `role="article"` and an `aria-label` of speaker and
  time. As anonymous divs they announced only prose, with no indication of
  who spoke or when.
- The Request-ID menu was reachable only by right-click, and its aria-label
  instructed the user to right-click — unusable by keyboard and meaningless
  to a screen reader. Added Shift+Enter as a keyboard path, plus
  `aria-haspopup="menu"` and `aria-expanded` so AT sees a menu rather than
  an ordinary button.

Verified: tsc --noEmit clean; 5 new tests in ChatAccessibility.test.tsx.
A/B checked — reverting each fix fails the matching test (4 failed / 1
passed with all three reverted), so these are real checks and not
vacuous passes.

Not changed: the per-frame re-render finding. The measured baseline calls
it PARTIAL — the expensive part (MessagesList) is memo'd and bails out, and
the rest re-executes ChatView's own body only. Refactoring it on inference
rather than measurement is exactly what the streaming-performance criterion
forbids; it stays a measured follow-up.

* fix(ios): make the chat reachable at AX5 and quiet the accessibility tree

Measured against the nine criteria, not inspected. Every change is a visual
no-op at default settings.

Dynamic Type was capped at AX3 and bot text never scaled at all: MarkdownText
pinned `.system(size: 17)` at seven sites, so a bot reply stayed 17pt all the
way to AX5 while the rest of the app scaled around it. Lifted both clamps to
accessibility5 and moved every pinned size onto a scaling helper.

The helper is UIFontMetrics rather than `.custom(size, relativeTo:)`, because
`.custom` drops weight and monospaced design — applying that to code and diff
runs would have changed their typeface at default size. It keeps weight,
design and exact default size, and at default Dynamic Type the TextStyle
factor is 1.0, so a swap is invisible until the reader turns text size up.

The transcript had no per-bubble accessibility treatment, so VoiceOver read
loose fragments with no speaker and no time. Rows now carry a sender/time
label. Used `.contain`, not `.combine`, on MessageRow and LiveReplyRow:
`.combine` folds the whole subtree into one element, which would have taken
the approval card's one-tap buttons, reaction chips, Read Aloud and version
switcher out of VoiceOver's reach. `.combine` is used on the markdown
subtree, where it is wanted.

Streaming text rebuilt its whole markdown tree every token frame inside the
accessibility tree, so the reply re-announced as it grew and drowned out
everything else. The streaming subtree is now hidden while it streams; the
settled bubble announces the finished text once.

Reduce Motion was respected at four sites and ignored at nine. All nine are
gated now — plus sheet, command HUD, HUD toggle, dictation pulse, send button
and the two activity expand animations. Reduce Transparency was never read:
Glass.swift now degrades to an opaque `secondarySystemBackground` fill, chosen
as a system surface so dark mode still matches.

The four cards each hand-rolled a gradient + material + clip + shadow block
while Glass.swift sat unused next to them; stacking a gradient under a
material is muddy. They now use glassRounded, their springs and the
never-ending pulse are gated, their headers announce expanded state, and SQL
rows are grouped so a table is not one VoiceOver stop per cell.

Verified: swift test 870 passed / 0 failed; xcodebuild ** BUILD SUCCEEDED **.
NOT verified: any actual VoiceOver behaviour — that needs a simulator pass with
VoiceOver on, and one known trade-off is recorded in the PR: combining the
markdown subtree means a VoiceOver user can no longer swipe to an individual
link in a sources-heavy reply.

* fix(chat): drop the unused vitest import CI caught

TS6133 on 'vi' in the new accessibility test, failing all three platform
typecheck jobs. The test asserts rendered markup and source invariants, so it
never used vi.

Locally I had run 'tsc --noEmit -p tsconfig.json', which is not what CI runs.
The script is 'tsc -b && tsc -p tsconfig.server.json' — the build mode catches
the unused import and the non-build one does not. Running the package script
from now on rather than a hand-rolled tsc invocation.

* docs(decision): Correct the iOS chat survey after review (#1071)

* docs(decision): correct the iOS chat survey after review

The 10-10 superseding note now says BotFleet already owns the components.  The addendum drops relicensing as a risk, quotes the Stream licence at a pinned commit, states the Xcode 27.0 CI toolchain, and scores accessibility and streaming from source.  The simulator comparison and the grouping spike stay open.

Co-authored-by: Jay Wedgeworth <[email protected]>

* autofix: address review comment [1/5]

* autofix: address review comment [2/5]

* autofix: address review comment [3/5]

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat(chat): group messages by speaker, with the spec both clients share

The survey's "~40 lines" estimate was wrong, and section 0 of the spec says so
plainly rather than leaving a number nobody checked. CompanionCore already had
TranscriptItem, groupActivityRuns, isFoldableActivity, endsRun and the
timestamp-at-break helpers. So this generalises them rather than rebuilding:
a run is now any consecutive stretch from one speaker inside
groupMessageTimeGap, not only a stretch of tool chips.

groupMessageTimeGap (60s) is deliberately NOT transcriptStretchGap (30min).
One decides membership, the other decides stamping; conflating them would let
a group survive a 45-minute pause, which is not a group.

Two rules the tests earned their way to:
- Tool steps join only tool runs, prose joins only prose. A text bubble
  between two tools ends that run instead of being swallowed by it.
- A run is one accessibility element whose label carries its member count and
  its failure count, because a run that quietly swallows a failure is how a
  user misses their deploy broke.

The tests found a real bug in my first implementation: the opening message was
emitted straight to `items`, so `run` stayed empty and no two text messages
ever grouped. Also caught that Message.at is epoch MILLISECONDS (date divides
by 1000) while my fixture mixed seconds into it.

Verified: 13/13 new tests, 870 existing XCTest still pass, and the boundary
rule is A/B checked — removing the tool/text distinction fails 2 tests. Mac is
not ported yet; the spec makes cross-client agreement an acceptance criterion
so it cannot quietly drift.

* docs(decision): record what the simulator comparison actually showed

Closes the survey's residual uncertainty that beautiful-ui-swift was only
compiled for macOS: it BUILDS for the iOS simulator (BUILD SUCCEEDED at
dfd6da90), and a throwaway comparison app against the real library ran on an
iPhone 18 Pro / iOS 27.0.

The screenshot settles something the source read could not. BeautifulTheme is
a plain struct of fixed Colors with no colorScheme query anywhere in the
package, and its DEFAULT initializer is hard-coded dark (surface 0.13,0.13,
0.15). referenceLight exists but must be injected by hand. So in light mode the
ApprovalCard renders near-black text on a near-black surface — the prompt, both
options and the custom-answer field are unreadable.

That is a real fit problem independent of the licensing and adoption concerns
already on record: BotFleet's iOS app follows the system appearance and the Mac
app has System Auto plus User Auto, so adopting BeautifulSurface unchanged
would regress appearance on iOS and fixing it means forking a theme struct in a
package we do not control.

Honest gaps, recorded rather than glossed: the dark-mode screenshot did not land
(the simulator install hung and was not retried to exhaustion), AX5 was not
captured, and VoiceOver was not driven. None of those can rescue a component
that is unreadable in the default appearance, but the AX5 and VoiceOver checks
are what would say whether ThinkingTraceView is worth borrowing shapes from.

* fix(updater): fall back to the live owner record when the launcher predates the credential handoff (#1049)

* fix(updater): fall back to the live owner record when the launcher predates the credential handoff

The installed harness and app predate the BOTFLEET_OWNER_NONCE handoff, so every update they launch bootstraps an updater that refuses to authenticate.  The resolver now prefers the launcher-provided credential and falls back to the live owner record's own value, which is already in memory at every call site.  A present-but-malformed variable still fails, since that is a real misconfiguration rather than an old launcher.

* autofix: address review comment [1/5]

* test(updater): assert the exact malformed-nonce error wording

Tighten the fallback test to the full message so the wording cannot drift
without failing.  Verifies Kody thread on scripts/update-botfleet-mac.mjs.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Fix MiniMax/mcode/DeepSeek gen_ai labels and catalog costs (#1078)

* Fix MiniMax/mcode/DeepSeek gen_ai labels and catalog costs.

DSH MiniMax turns were tagged deepseek with a null cost, mcode reported no dollars, and execute_tool spans lacked system/model. Catalog estimates now fill those gaps, conversation ids stay per-task, and prompt capture is opt-in behind SENTRY_AI_PROMPT_CAPTURE.

Co-authored-by: Jay Wedgeworth <[email protected]>

* Fix catalog-cost test math and CI lint/typecheck.

MiniMax ≤512K tests used 1M input tokens, which hits the next price tier. Tool spans now stamp the model after start instead of a conditional spread, and the ACP catalog case narrows turn.completed before reading cost.

Co-authored-by: Jay Wedgeworth <[email protected]>

* Avoid widening the Sentry user object for the lint ratchet.

The conversation user is built as one of two concrete objects so a named username does not get annotated onto an anonymous optional shape.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Platform marks stop taking the theme accent, and Clutch reads DeepSeek-V4-Pro (#1055)

* Platform marks stop taking the theme accent, and Clutch reads DeepSeek-V4-Pro

Two owner-reported defects in one work unit (board 915ab05a).

Platform marks.  Grok, OpenAI and OpenCode painted fill-[var(--color-ink)], so a
palette that puts main text on the accent paints those logos in the accent; DeepSeek
(#4D6BFE), Claude (#D97757) and the Gemini, Qwen and MiniMax marks carried their
brand's paint outright, and at 14 to 18px the gradients were a few pixels of mud.
Every mark now paints one --color-mark token, declared in each preset skin beside
that skin's own ink and set for the Custom Palette from the ground's lightness, so a
palette cannot recolor a logo.  The shapes stay, because the shape is what tells one
engine from another.

DeepSeek Pro.  DeepSeek's catalog (api-docs.deepseek.com, 2026-10-10) is wire id
deepseek-flash / version DeepSeek-V4.1-Flash, plus wire id deepseek-v4-pro / version
DeepSeek-V4-Pro-0813.  Only Flash carries a ".1", so the picker's DeepSeek-V4.1-Pro
was a name DeepSeek never published.  It reads DeepSeek-V4-Pro, the retired spelling
folds onto it through RETIRED_MODEL_REPLACEMENTS, and a stale display name in an
owner's settings.yaml folds onto the same row instead of listing the model twice.
The two ids the vision route keys off are exported constants now rather than three
copies of a literal, and the send path asks the same predicate the chain rewrite
uses, so a Pro turn can never stop routing off Pro without a test failing.

Verified: pnpm typecheck, pnpm lint (baseline tightened, not loosened), 10105
vitest tests with one pre-existing environment failure (server/env-path.test.ts
finds two mcode binaries on this Mac and fails the same way on main's sources),
every node --test stage of pnpm test green, and the new tests/e2e/engine-marks.spec.ts
in Atelier, Midnight and the palette whose main text is its accent.  Reverting one
mark to fill-[var(--color-ink)] fails that spec and nothing else, which is the shape
of the original bug.

* Effort-log mirror row: name PR #1055 and record why this session could not open it

* fix(marks): restore MiniMax gradient ids after the rebase onto #1047

Keep MiniMax on the deliberate brand ramp from #1047 (const base/highlight
were dropped during conflict surgery).  Close the monogram-fallback describe
that the combined test file left open, so both suites parse.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* docs(evidence): simulator screenshots of the three renderable candidates

Real iOS 27.0 simulator output, same bot turn in each, so the comparison does
not rest on reading three source trees.

Also corrects my own earlier claim: the blank screenshots were my harness, not
the libraries.  A .frame(height:) I had added collapsed a view that sizes
itself, and both Exyte and SwiftyChat rendered correctly once it was removed.
I should have isolated that before concluding anything about the libraries.

What the screenshots show:
- Exyte (MIT) is the more finished messenger: delivered checkmark, grouped
  steps, composer with attachment + mic.  Two visible flaws - the user
  bubble's timestamp overlaps its own text, and the bot avatar initial floats
  orphaned outside the bubble.
- SwiftyChat (Apache-2.0) is cleaner but sparser, with a 90s-era gradient
  bubble and heavy drop shadow that would fight the Glass surfaces.
- beautiful-ui-swift (MIT) renders legibly EXCEPT its ApprovalCard, which is
  near-black text on a near-black surface in light mode.

The decisive observation: Exyte renders the two tool steps as ordinary text
bubbles, because it has no concept of a tool call.  So either library gives
messaging-grade polish while every agent concept - tool cards, approvals, the
thought chamber - still gets written by us.

* autofix: address review comment [1/5]

* Update sentry-javascript monorepo to v11 (#940)

* Update sentry-javascript monorepo to v11

* fix(sentry): adapt init options for the Sentry JavaScript v11 API

v11 renamed maxIncomingRequestBodySize and queryParams, dropped
enableLogs/sendDefaultPii/streamGenAiSpans, and streams spans by default
so beforeSendTransaction no longer runs.  Keep the webhook-secret scrub
with traceLifecycle: static and explicit dataCollection privacy flags.

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): start the hook gen_ai span on its own v11 trace

v11 parents a startSpan inside an HTTP handler to that request.  The
/hooks integration drops that parent, so the child never reached the
transport.  startNewTrace keeps the scrub fixture's transaction.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Add A Guarded Kody DeepSeek Fix Pilot (#865)

* ci: add guarded Kody DeepSeek fix pilot

Prepare a manual, default-disabled workflow and offline safety fixtures.  Proposals use separate draft branches; no merge or activation.

* fix: harden pilot cleanup and failure reporting

Address verified Kody findings with offline regressions.  Preserve synthetic credentials and the default-disabled draft scope.

* fix(autofix): harden Kody pilot env validation and credential logging

Parse workflow dispatch inputs with a strict Zod schema before defense-in-depth
assertions.  Require DEEPSEEK_API_KEY from the environment at runtime, emit
masked key previews on provider auth/quota failures, and install the autofix
script dependency in CI.  Update verification and fleet coordination metadata.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* chore(deps): update pnpm to v12 (#934)

* chore(deps): update pnpm to v12

* autofix: address review comment [1/5]

* fix(pnpm): record packageManagerDependencies so v12 frozen installs work

pnpm 12.9.1 refuses --frozen-lockfile until the lockfile lists the
package-manager binary.  A lockfile-only refresh adds that first document
without changing the project graph.

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(pnpm): list ignored build scripts so v12 frozen installs can finish

pnpm 12 fails the install when a dependency's build script is unreviewed.
Keep electron and esbuild allowed, and deny the transitive scripts the
v10 allowlist already skipped.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Add Opt-In Speech-To-Speech Call Mode With xAI And Gemini Providers (#1075)

* Add opt-in speech-to-speech call mode with xAI and Gemini providers

A duplex STS session replaces the whole chained call loop rather than
swapping one link of it, so it is its own seam and the existing chained
path is untouched.  STS is off by default and selectable per workspace.

The design answer to "front the real engine, and if not, let it answer":
the bot's own engine is offered as a function tool, bounded by a
deadline, and on timeout or failure the model answers that turn alone
and the transcript line is marked engineBypassed.  A silent swap is
worse than a visible one, because otherwise nothing distinguishes "my
bot answered" from "the voice model answered because my bot was
unreachable".  The deadline is an Infisical knob, since a coding engine
running 10-30s against a vendor preamble covering ~2s is what decides
when a call degrades rather than going quiet.

Provider selection uses a per-provider capability map rather than a
single cloudSttConfigured boolean, which is what makes a second cloud
provider honest: a boolean cannot say "an xAI key but no Gemini key".

Keys never reach the renderer.  Both providers connect with a short-lived
single-session token minted in the main process, mirroring the existing
transcription.streamingToken rule.  xAI's browser auth is a
sec-websocket-protocol entry rather than an Authorization header,
because the WebSocket API does not expose headers to page code; copying
the vendor Node example connects and then silently receives nothing.

Infisical remains the only source of truth: gemini.key joins
secret-map, sts.engineTimeoutMs and sts.frontEngine join knob-map.

61 tests across the session layer, engine tool, token minters and
provider picker.  Full typecheck clean.

* Record the measured lint baseline for the STS additions

The allow-lint-baseline-increase label requires each raised rule to
equal its measured count with no headroom, so the baseline file has to
move to exactly what this branch produces rather than stay at main's
numbers.  Most of the increase is Record<string, unknown> on JSON
Schema tool parameters, which is the correct type and fights the
no-unsafe-dictionary-type rule.

* fix(sts): clear a failed Gemini start and keep vendor parse errors visible

The knob table grew by two STS rows; pin the write-through count to 16 so
the suite matches the map.  A rejected startPromise is no longer cached, so
a network blip or expired token can retry.  parseJson now splits JSON.parse
from Zod and logs issues instead of collapsing both failures into silence.

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sts): clear a rejected Gemini start after the promise exists

TypeScript rejected a self-reference to `pending` inside the
async start IIFE.  Attach the retry-clearing catch after
assignment so a failed handshake can start again.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Update dependency typescript to v7 (#930)

* chore(deps): update dependency typescript to v7

* fix(tsconfig): drop baseUrl so TypeScript 7 typecheck can run

TypeScript 7 removed compilerOptions.baseUrl (TS5102) and now rejects
non-relative path mappings.  Point @/* at ./src/* so renovate/typescript-7.x
can typecheck.

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Fix the lint ratchet break main is carrying (#1083)

* Fix the two typecheck and lint breaks main is carrying

Neither is new code:  both are pre-existing failures on main that make every pull
request red, so nothing can land until they are fixed.

`server/sentry.ts` named `maxRequestBodySize`, which Sentry v11 (#940) renamed
to `maxIncomingRequestBodySize` and narrowed to incoming bodies.  `"none"` is
still a valid value there, so the line now compiles and keeps its meaning:  an
incoming request body is never captured.

`src/components/EngineMarksVisualFixture.tsx` asserted a `?skin=` query
parameter straight to `SkinId`.  It is typed by hand in a URL, so looking the
value up in `SKIN_IDS` is both true and the same answer for every skin the
fixture's own e2e spec asks for.

* Assert the Sentry v11 body-size option the code actually passes

The webhook test read `maxRequestBodySize` back off the integration, so it went
green against a spelling v11 had already dropped.  It now reads the option the
code sets, and still fails if the value ever stops being "none".

Refs #1083

* Undo the Sentry option rename:  it was never broken

`maxRequestBodySize` is correct for the locked @sentry/node 11.6.0 that CI
installs.  My local `node_modules` was still on 10.76.0, whose option is named
`maxIncomingRequestBodySize`, so `tsc` failed here and I renamed a line that was
right.  CI caught it with the type error this removes.

This branch is now the lint fix alone.

Refs #1083

---------

Co-authored-by: MiniMax <[email protected]>

* fix(ios-ship): Sentry org simple-with-us + fleet app project map (#1084)

* fix(ios-ship): map codecaps, hoghunter, fleetlink Sentry projects

Extend sentry_project_for_app for fleet apps that share the ios-fleet
ship script.  SENTRY_ORG already defaults to simple-with-us (not
jays-services).

Co-authored-by: Jay Wedgeworth <[email protected]>

* chore(lint): add SAFETY comments for gemini-live type assertions

Unblocks the per-rule lint ratchet on main (+2 over baseline).

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>

* Update dependency zod to v4.6.5 (#1081)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Export completed gen_ai turns to Sentry fleet-infra (#1079)

* Export completed gen_ai turns to Sentry fleet-infra.

A second client keyed by Infisical SENTRY_FLEET_DSN sends one summary event per bot turn (provider, model, tokens, cost, tools). The product botfleet DSN is unchanged, and a missing fleet DSN leaves the export inert.

Co-authored-by: Jay Wedgeworth <[email protected]>

* test(sentry): justify recording-sink span handle assertion for lint ratchet

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): reuse fleet NodeClient and route estimated export costs

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): adapt the fleet NodeClient for Sentry JavaScript v11

v11 dropped sendDefaultPii and tightened NodeClient.captureEvent.  The
fleet export now uses dataCollection privacy flags and a thin wrapper so
the live client still matches FleetNodeClient.

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): align fleet NodeClient flush/close with PromiseLike

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): satisfy Sentry v11 NodeClient event typing for fleet export

Co-authored-by: Jay Wedgeworth <[email protected]>

* autofix: address review comment [1/5]

* ci: retrigger full pull request checks

Co-authored-by: Jay Wedgeworth <[email protected]>

* ci: retrigger full pull request checks

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(config): justify knob-strip type assertion for lint ratchet

Co-authored-by: Jay Wedgeworth <[email protected]>

* ci: retrigger checks after cancelled macos job

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Routine Command Allowlist On The Real Engines, Plus A Director Seat (#1070)

* Hold Routine Turns To A Command Allowlist On Grok, Refuse Engines That Cannot Be Held, And Give Director A Seat

A routine can now carry a toolPolicy:  the fixed commands its turns may run
(absolute argv0, fixed sub-words, typed flags) and the exact files they may
write.  It is validated on save, snapshotted on each run, stored on the
turn's prompt message so every re-dispatch keeps it, and handed to the
engine as SendTurnInput.toolPolicy.

Probes of the real engines decided where it is enforced.  Grok's
--permission-mode default is not a guard:  the owner's config allows
Bash(*) and MCPTool(*), so a bare `touch PWNED` and Composio MCP calls ran
without a permission request, and agent mode ignores --deny and --tools.
MiniMax Code runs shell and writes without asking in every mode and
ignores the client terminal.

So an allowlist turn on Grok is held at four places in acp/core.ts, before
the full-auto auto-allow:  a client-registered pre_tool_use hook that Grok
asks before every tool (MCP and subagents included), permission answers
from the same policy with once-only options, the client terminal and file
calls BotFleet executes itself with no shell, and a tripwire that stops the
turn if a tool runs unapproved.  The turn spawns without bypass, with web
search and subagents off and --no-leader, and mounts no MCP.  Every other
engine is refused, in the ACP core and in the harness, and the run says why.

Commands are split shell-style (quotes group a word) and any unquoted
metacharacter is refused.  agent-sync never takes --as, --rc, --fleet, --to,
--to-owner or an abbreviation of one, and dm only with --owner.

Director joins BOTFLEET_ROLES as BF-DIRECTOR, with bots/director.md.

Fixes BF-2409

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Type a routine command's positional words, so a file-reading program cannot be pointed at any file

A bare positional count let an allowed tail read ~/.secrets.  Positional
words are now declared in order with the same value kinds as flags, and a
word that names a file must be a path.  The wiring test also pins that a
turn with denials still completes its run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Let a routine read back an allowed command Grok moved to the background

A real 200 second allowed command:  Grok backgrounds it after about 30
seconds and reads its output back with get_command_or_subagent_output,
which the hook refused.  Subagents are off, so that tool reaches only the
turn's own allowed commands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Pin an allowed command's cwd, refuse files reached through a symlinked parent, and never fold runs held to different allowlists

Codex review of #1070:
- Every allowed command now runs in the turn's own directory, whatever cwd
  the engine asks for.
- A write or read whose parent resolves into a dot directory or a
  credential or login directory is refused (a planted `state -> ~/.ssh`
  link), and a configured write path may not sit in a dot directory.
- Queued runs fold into one turn only when they carry the same allowlist,
  so a delivery queued after the owner narrowed a routine never rides on
  the older, broader one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* BFS-1: refuse a read reached through a symlinked parent, and finish the review fixes

Uncommitted work from the capped CLAUDE session, completed during the cap handoff;
authorship credit retained.  Three review findings:

- a command allowed to read one file could read any file, because nothing checked
  where a path word really lands;  the words a `path` spec matched are now resolved
  and re-checked, so a symlinked parent cannot carry an allowed name into ~/.ssh;
- a refused write created the parent directory first, so a link into a protected
  place grew a directory before the refusal;  the parent is resolved before mkdir;
- runs held to different allowlists were folded into one another;  they stay apart.

Two fixes here.  tool-policy.ts had a half-finished type edit, a truncated line 43
that was a parse error and stopped the suite from loading at all.  And
allowlist-core.test.ts runs a real `#!/bin/sh` fake CLI with POSIX argv0 paths, so
mkdtemp on Windows handed back C:\Users\...\fake-agent-sync, which
isCleanAbsolutePath rightly refuses;  the three describes that spawn it are now
POSIX-gated the way the rest of the suite is, and the pure grokAllowlistProblem
logic still runs everywhere.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* BFS-1: write the fake CLI's dump atomically

The ubuntu leg failed on `SyntaxError: Unexpected end of JSON input` while reading
dump.json.  `writeFileSync` truncates the target before it writes, so a test reading
the file in the moment between the two could see an empty one; the macOS and windows
legs passed, which is timing, not behaviour.

The fake now writes beside the dump and renames it into place, so a reader either sees
the previous contents or the new ones, never a partial file.  Both suites that use this
fake (allowlist-core, routine-allowlist-wiring) pass, and `tsc --noEmit` is clean.

* BFS-1: refuse a protected path by name as well as through a link, and give each attack class its own test

A routine's path words, read paths and write paths can no longer name a
dotfile or anything under a credential or login directory:  the policy is
refused when it is saved, and at run time the path's own spelling is checked
as well as where it resolves, so a policy that skipped validation is held
too.  The pre-tool hook applies the same check to reads and writes, not only
commands, and a path that runs through a dangling link is refused instead of
being treated as an ordinary missing directory.

Tests:  one test per attack class in tool-policy.test.ts (chaining,
substitution, redirects and quoting tricks are now separate), the engine
wrapper's double-quote escapes walked through to the strict check, six
save-time refusals, and driver tests for a protected path in an unchecked
policy, a read through a link into a credential directory, and dangling
links.  The doc example no longer carries the owner's home path.

Refs BF-2409

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* BFS-1: keep the allowlist on every continuation, and follow only root-owned links

A boot resume that continued with the recovery notice instead of replaying
the starter dispatched the rest of an allowlisted routine with no policy,
so it ran with everything the bot can do.  bootRecoveryTurnOpts now carries
the starter's toolPolicy on both paths, the connector and secret card
continuations take the policy of the turn they resume
(continuedTurnToolPolicy), and branchMessage copies it so an edit or retry
of a routine's prompt is still held to it.

A path is now walked one component at a time, following only links root
owns (macOS's /tmp and /var).  Any other link on the way is refused, even
one into an ordinary directory, because a user-level process could have
planted it and turned the exact file the policy names into another file.
A link loop and an existing file with a second hard link are refused too.
argv0 stays exempt:  a program may itself be a link.

Refs BF-2409

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* BFS-1: read and write through one checked handle, so nothing swapped in after the checks is used

A read checked the file with lstat and then opened it again by path, so a
link swapped in between could hand the model another file.  readText now
opens once with O_NOFOLLOW, checks that handle, and reads through it.
writeText opens with O_NOFOLLOW and no O_TRUNC, checks the handle, and only
then truncates, writes and fchmods through it.

The handle must be a regular file with one link, on the same device and
inode that the listed path resolves to at that moment (through root-owned
links only), which also catches a directory swapped higher up the path.

Refs BF-2409

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(routines): fold case on protected paths and agent-sync

macOS default volumes are case-insensitive, so a LaunchAgents write
spelled /library/launchagents or an AGENT-SYNC argv0 must still hit the
same save-time refusals.  Full symlink identity for agent-sync is left
open: that needs a resolved executable, not a basename.

Co-authored-by: Jay Wedgeworth <[email protected]>

* autofix: address review comment [1/5]

* Fold the protected-path and agent-sync rules to the Mac's own case rules

A Mac volume is case-insensitive by default, so `~/library/launchagents` is the
login-items directory and `Agent-Sync` is the agent-sync binary.  The policy
compared both as written, so a case-folded spelling walked straight past them.

agent-sync is also caught when it is not the program:  as the script an
interpreter runs, and under any other name, including a link the policy never
saw.  The ACP gate resolves the link at run time and applies the same rules
from the word that turns out to be agent-sync, so an alias buys nothing.

Refs Simple-With-Us/BotFleet#1070

* Say why the Grok hook schema stays loose instead of strict

The capability check reads only `pre_tool_use` plus `deny`, so an unknown key
cannot fake it and passing keys through smuggles nothing.  Strict would fail
`safeParse` on one new field from a Grok upgrade and switch the allowlist off
fleet-wide, which is a worse failure than ignoring a field.

Refs Simple-With-Us/BotFleet#1070

* Re-run CI now that main carries the lint fix

Every check on this branch is green except `lint`, which was measured against
a main whose ratchet was one warning over its own baseline.  #1083 fixed that,
so the result on record no longer describes what this branch does.

No code change: this commit exists only to make GitHub rebuild the checks
against the corrected main.

* Re-run CI now that main carries the lint fix

Every check on this branch is green except `lint`, which was measured against
a main whose ratchet was one warning over its own baseline.  #1083 fixed that,
so the result on record no longer describes what this branch does.

No code change: this commit exists only to make GitHub rebuild the checks
against the corrected main.

* autofix: address review comment [2/5]

* Carry the allowlist onto a group turn's fallback dispatch

The autofix bot's fix threads the allowlist through `runGroupMemberTurn` to
`sendTurn`, and both resume dispatchers now supply it.  One path still dropped
it: when the chosen engine fails and the turn retries on the fallback
selection, the recursive `runGroupMemberTurn` call passed `turnSelection` but
not `toolPolicy`, so the retry ran unguarded even though the first attempt was
held to the allowlist and refused to start at all on an engine that cannot hold
one.

One argument, closing the last hole in the path.

* Export the Grok hook schemas so tests can share one source of truth

`hookCapabilitySchema`, `hookMetaSchema` and `initializeHooksSchema` were
module-private, so a test that needed the shape had to rebuild it by hand and
could drift from the runtime check.  Exporting them lets a test import the same
declarations instead.

Addresses the Rule [23] finding on this pull request.  No behaviour change.

Refs #1070

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: MiniMax <[email protected]>

* Update dependency posthog-js to v1.438.2 (#1088)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* iOS: Approve A Permission Ask From The Lock Screen (#1087)

* iOS: a permission ask survives background and can be approved from the lock screen

The Lock Screen card already rendered Allow/Deny through a LiveActivityIntent,
and two things stopped it being a feature.  The 2026-09-12 suspension policy
ended every activity on background, so the card left the Lock Screen the moment
the phone locked.  And AnswerApprovalIntent.handler was assigned from
RootView.onAppear, which never runs in the background launch the system performs
to run a LiveActivityIntent, so the tap was a silent no-op;  even with a handler
installed, Session.perform opens with `guard let client`, so a cold launch had
no client to answer with.

Backgrounding now ends ambient work and keeps decisions.  transition(to:
.background) returns .endAmbient, and LiveActivityRetention decides what stays:  a
working bot, an unread thread and a card with nothing to tap go, while a pending
ask with real choices stays.  Sign-out still ends everything.

The approval route is installed from CompanionApp.init, the first code the
process runs, and rebuilds the client on demand inside a bounded wait.  The card
is dismissed once the answer lands, because with the app backgrounded no sync
will redraw it and the buttons would otherwise sit there claiming an approval
that already went through.

Tests:  877 pass under `cd ios && swift test`, including four new
LiveActivityRetention cases and the reworked background cases in
LiveActivityLifecycleTests.  An unsigned iphonesimulator build of the app and
widget targets succeeds, which is the only gate that compiles LiveActivities,
CompanionApp and Session — `swift test` does not build those targets.

Physical-device tap-approve-from-a-locked-screen remains open.  See
docs/rollouts/2026-10-11-ios-live-activity-approval.md.

Fixes BF-2410

* iOS: a DEBUG launch argument that starts a real approval activity

Lets the Lock Screen card and its Allow/Deny buttons be seen on a simulator
with no paired harness, which is how the retention behaviour and the widget
rendering get verified.  DEBUG only, and only when -live-activity-preview is
passed; Activity.request still runs off the main actor for the same reason the
real path does.

* autofix: address review comment [1/5]

* autofix: address review comment [2/5]

* Fix the lint ratchet break main was carrying, blocking every PR

origin/main fails its own baseline check with no pull request changes at all:
anti-slop/require-safety-comment-for-type-assertion measures 1565 against a
committed baseline of 1564.  Every PR is red until that is true, so this lands
as its own commit rather than inside the iOS work it was found from.

The two casts are the ones that Gemini live voice work added to
src/lib/sts/gemini-live.ts, and both are sound: one asserts an entirely
optional shape, the other adds a field it then owns.  Neither carried the
SAFETY: marker the rule asks for.  Adding the marker states the invariant each
one already relies on, and takes main from 1565 to 1563.

Verified with node scripts/check-lint-baseline.mjs --baseline-ref origin/main
on this branch: BASELINE CHECK PASSED.

Refs BF-2410

* Stop reconciliation from ending the -live-activity-preview fixture

The preview activity has no bot behind it, so the pass that ends activities
whose bot left the update list removed the fixture card within a second of it
being requested.  That made the fixture unable to show the thing it exists to
show, which is why a simulator run produced an empty Island.

DEBUG only, and only for the fixture's own bot id.

* Anchor the handoff doc's changes to real file paths

Kody Rule 28 wants a handoff document to map each edit to the file it landed
in, and this one described every change by type and method name only.  Adds a
## Changes block with one bullet per edited path and reduces ## Behavior to a
summary that points back at them.

The paths are the ones that actually exist; Kody's suggested example paths
(ios/Sources/LiveActivityCoordinator/...) do not match this repo's layout.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Set Sentry release to git SHA and add electron, maps, profiling (#1080)

* Set Sentry release to git SHA and add electron, maps, profiling.

Node and React clients now stamp release from SENTRY_RELEASE, GITHUB_SHA, or the harness build identity. Vite uploads renderer source maps when SENTRY_AUTH_TOKEN is present, Electron main uses @sentry/electron, and @sentry/profiling-node is a real dependency.

Co-authored-by: Jay Wedgeworth <[email protected]>

* test: add SAFETY comments for lint ratchet on Sentry release lane

Co-authored-by: Jay Wedgeworth <[email protected]>

* autofix: address review comment [1/5]

* docs(sentry): document VERCEL_GIT_COMMIT_SHA in release resolution

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(electron): avoid new oxlint typeof hits in desktop Sentry init

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(test): use SentryInitOptions instead of open Record types

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(test): narrow initOpts before reading tracesSampler

Co-authored-by: Jay Wedgeworth <[email protected]>

* test(sentry): use valid hex length for VERCEL_GIT_COMMIT_SHA fixture

Co-authored-by: Jay Wedgeworth <[email protected]>

* test(sentry): use hex-only VERCEL_GIT_COMMIT_SHA fixture

Co-authored-by: Jay Wedgeworth <[email protected]>

* chore(pnpm): allow Sentry cli and cpu-profiler build scripts

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): align vite release naming and initSentry fallback

Co-authored-by: Jay Wedgeworth <[email protected]>

* fix(sentry): align Vite release with build identity fallback

Co-authored-by: Jay Wedgeworth <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jay Wedgeworth <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Model selector: readable names, usage above the list, engine name intact (#1090)

* Readable model names, usage above the list, engine name intact

Three defects, one report (owner screenshots, 2026-10-11):  a model slug
broke one character per line in a narrow picker, a per-row quota chip
squeezed the slug it sat beside and pushed a horizontal scrollbar under the
list, and the engine name was cut to "Cu…" by its own green version pill.

**Names.**  The label was `flex-1` (basis 0) beside `shrink-0` tags, so it
was the only shrinkable item: width pressure collapsed it toward zero and
the text broke per character.  It now takes a `min(9rem, 100%)` floor — wide
enough to read a slug, capped so a row can never be forced wider than its
pane — and the tags are one wrapping unit that drops below the name rather
than splitting.  `mr-auto` rather than `flex-1`, because a growing label
pushed the tags onto a second line even beside a short slug, which doubles
the height of the list to buy nothing.

**Usage.**  The packed chip printed `(67% / 96% for 5h / w)` beside every
model, which said the same thing down the whole list and is what made the
slug unreadable.  Quotas belong to the account, not to a model, so they now
read once, above the list, in the same place a capped engine shows its
"Usage cap in effect" card:  each window named, with its own bar, its
percentage and its reset time, and the window that will run out first
called out in words.  The engine being browsed is open by default; the rest
of the fleet stays one click away behind a disclosure that says so.

**Header.**  The name is the heading, so it wraps instead of truncating and
the status pill is capped at 45%, keeping the full version string in its
tooltip.

Verified:  pnpm typecheck clean; 2283 tests across 191 component and lib
files pass; a new Playwright spec asserts the GEOMETRY rather than only a
picture — every slug renders on one line at both pane widths, every label
keeps its 140px floor, the tags move below the name in a narrow pane and
stay beside it in a wide one, and no row overflows sideways.  That spec
caught a real flaw in the first attempt (`flex-1` made every row two
lines).  Lint ratchet:  4906 warnings against 4908 on the branch, net 2
cleaner.

Refs 19664124

* Linux visual baselines for the model selector change

The three screenshot comparisons in the previous commit were the only red
checks on the hosted gate: 115 other assertions passed, including every
geometry assertion in the new spec.  These are the Linux renders CI itself
wrote on that run, committed under the names CI compares against — a Mac
cannot produce one, since every baseline in this directory is a Linux
render with pinned DejaVu fonts.

* Route Kody Autofix through direct MiniMax API (#1089)

* chore: switch Kody autofix to MiniMax M3

* fix: route Kody autofix through direct MiniMax API

* chore: pin Kody caller to final MiniMax helper

* chore: pin Kody caller to MiniMax helper J

* Ask a connection what it serves instead of retyping its model list (#1091)

There were three ways to point BotFleet at an OpenAI-compatible endpoint, and
all three left the operator guessing. The reserved settings row takes a key
and a URL and no models, so its models come from a hardcoded default list.
Add Engine takes model IDs but the route refused an empty one — and a
non-empty config list is exactly what switches off the driver's own
`/models` probe, so every connection added through the UI had permanently
disabled the one code path that could have filled that list in. Hand-editing
config.json was the only way to get both a URL and discovery.

`POST /api/instances/probe-models` breaks the knot: the same
`GET {baseUrl}/models` the driver would make, asked while the person is
still looking at the answer, so a wrong URL or a rejected key shows up here
instead of as a bot that fails every turn. It is loopback-only for the same
reason the desktop-open route is, behind the same JSON content-type gate,
and the key is read and forwarded and never stored, logged, or echoed.

The Add Engine form grows a "Fetch Models" button beside the Model IDs box.
It fills the list, then says how many it found, and it names the failure by
its HTTP status: a 401 says the endpoint rejected the key, a 404 says this
endpoint has no model list to ask. Sixteen ids is still refused; an empty
list is not, because an empty list is now a request for discovery.

The route body is parsed with a schema rather than narrowed by hand, which
is what the anti-slop ratchet asks for and what keeps this route honest as
its shape grows. Lint ratchet: 4904 warnings against 4908 on origin/main,
net 4 cleaner.

Refs 19664124

* Test the mcode dedupe, not the developer's PATH (#1097)

The canonical-mcode test planted a real binary and a farm symlink to it, then
asserted findCliCandidates returned exactly one result.  On a machine that
already has its own mcode on PATH that is three, so the test failed on a
developer's Mac while passing on CI, and the failure said nothing about the
behaviour it was written to protect.

The assertion now counts only what the test planted.  That still proves the
farm symlink and the canonical binary share an inode and collapse to the
canonical path, which is the actual claim, and no longer depends on what else
happens to be installed.

candidates[0] was already asserted to be the canonical path and passed, so the
resolution order this file exists to protect was never broken — only the
machine it ran on.

* OpenCode catalog: ask a CLI that refuses --verbose, and say why it is empty (#1092)

* OpenCode catalog: ask a CLI that refuses --verbose, and say why it is empty

The catalog probe sent exactly one command, `opencode models --verbose`,
because the verbose form is what turns a bare id list into provider/model
header lines with metadata. `--verbose` is not part of that command's
contract: opencode v2.0.26 answers `Unrecognized flag: --verbose` and exits.
The rejection fell through to the empty fallback catalog, and the fallback
is empty on purpose, so the engine read as having no models at all — for a
CLI that lists them perfectly well without the flag, and with nothing on
screen to say which of the two it was.

The probe now asks the plain command first and only adds the flag when the
plain answer was useless, and when both fail it reports the plain command's
reason, since that is the one this CLI version supports.

Separately, an empty catalog now carries the sentence that explains it
instead of reading as a broken engine. That is the difference between "the
CLI answered and had nothing to list" and "we could not tell you", and the
second one sends people to reinstall a CLI that is installed fine.

Refs 19664124

* Skip the fake-CLI probe tests on Windows

Both new tests write a `#!/bin/sh` fixture and mark it executable, which
Windows cannot run at all, so the windows-latest job failed on a test that
never could have passed there. Guarded with the same
`it.skipIf(process.platform === "win32")` the sibling ACP suites use, with a
note saying why: the fixtures are shell scripts, not a claim about the
driver.

Refs 19664124

* Tell "the CLI is broken" apart from "the CLI has no models"

Kody's review was right about the gap: when the plain command printed nothing
and the verbose form threw, the catch discarded the verbose message and the
probe reported one generic string for both failures.

The fix keeps the two signals apart rather than merging them. A plain command
that ERRORED means the CLI is unusable, so its message is the answer. A plain
command that RAN and printed nothing means the CLI answered correctly and has
nothing to list — and the verbose failure beside it is only ever about the
flag, so it is reported as context, never as the cause. Preferring the
verbose message outright, as suggested, would have turned "Unrecognized flag"
into the reported cause of an empty catalog, which is the opposite of true and
sends people to reinstall a CLI that is installed fine.

A new test drives both shapes against real fake CLIs: one that exits 127 for
both forms (the broken-CLI case, reported as such), and one that exits 0 with
no output for plain and refuses only --verbose (the empty-catalog case, which
names the flag refusal without blaming it).

Refs 19664124

* Put the platform on the engine row, and make the callout a control

Three complaints about the Engines settings page, and only one of them was
missing work — but all three had a real cause worth fixing.

**No platform on the row.**  The data was never missing: every capability
entry already carries `providerKinds`, and the capabilities matrix already
renders them.  They were only ever rendered INSIDE the collapsed "Why This
Engine?" disclosure, so a row reading "Clutch" hid the fact that the bridge
hosts both DeepSeek and MiniMax behind a bar that looks like a section
heading.  Multi-brand engines now carry their brand marks beside the engine
name, with the names in the tooltip and in an aria-label.  Single-brand
engines get none: their own name and mark already say it, and a mark invented
for a brand we hold no art for is worse than none.

**"Why This Engine?" read as a heading.**  It was a full-width bold bar with
a chevron, sitting directly under an engine name — the exact shape of a
section title, and directly above the block of engines it looked like it was
captioning.  It now names its engine ("Why Clutch?"), sizes to its label
instead of stretching across the row, and carries no card or border until it
opens; the detail below it has its own panel.

**The monogram stretched its row.**  `size-full` on a span with no sized
ancestor resolves a percentage width against the nearest positioned box —
which in a wide flex row is the row itself, so any driver without a
registered mark stretched across it and shoved the engine name to the far
right.  Muse Code's row rendered as a floating "M" three hundred pixels from
its name for exactly this reason.  Every other mark is an SVG with real
width and height; the monogram now is too.

Refs 19664124

* BotFleet could not update itself on any Mac: the dependency gate compared a pnpm stream against one of its own documents (#1098)

* Compare the installed lockfile document, not the whole pnpm stream

BotFleet could not update itself on any Mac.  `ubf --force` died at its own
dependency gate with "Staged dependency tree does not match the exact source
lockfile", after a full 1,407-package install had already succeeded.

The gate compared `pnpm-lock.yaml` against `node_modules/.pnpm/lock.yaml`
byte-for-byte.  Since pnpm 12 those are different byte lengths on purpose:
pnpm records `packageManagerDependencies` — the self-hosted pnpm it installs
for `packageManager: "[email protected]"` — as a SEPARATE leading YAML document,
then the real lockfile after a second `---`.  Its internal copy under
`.pnpm` is that second document alone.  Verified on this repo both ways:
the final document of `pnpm-lock.yaml` equals `.pnpm/lock.yaml` exactly,
while the whole file never can.

It stayed invisible because `pnpm install --frozen-lockfile` still passes —
pnpm reads the document it needs and ignores the rest — so the broken gate
only surfaced at the one moment someone tried to update, fleet-wide, and
looked like a network or CI problem.

This landed with #934, "chore(deps): update pnpm to v12", on 2026-10-11: its
parent's lockfile has no document separator and that commit's has two.

The gate now compares the document pnpm actually wrote, so a real drift in
dependency content still fails it.  110 tests pass in the updater suite,
including a new case pinning both shapes — the pnpm 12 stream and the
single-document lockfile pnpm 11 produced — and asserting that different
dependency content still compares unequal.

Refs 19664124

* Compare the gate's bytes as bytes, not as a string

The previous commit fixed which document the gate compares and then compared
it with `.equals()` — on a STRING. String has no `equals`, so the call threw a
TypeError and the updater died at the same gate with the same message, which
made a correct fix look like it had done nothing.  Found by running the
updater, not by the test: the test exercised the document helper, never the
comparison the gate performs.

Now it compares Buffers, and a new case drives the exact expression
`assertDependenciesMatchSource` runs — stream vs document, equal vs drifted —
so a type slip fails here instead of on someone's Mac.  111 tests pass.

Refs 8ab3a680

* Push-To-Start: A Permission Ask Reaches A Killed Phone As A Live Activity (#1096)

* companion: start Live Activities from a push

An approval or a question that lands while a phone has no socket only
raised a banner.  The island already exists on the phone and renders this
content state; nothing was telling it to start.

The payload is pinned to the synthesized Codable on BotActivityAttributes
in ios/Shared/BotActivity.swift, including the detail that `since` is a
Swift Date and therefore a number of seconds since Apple's reference date,
never an ISO-8601 string.  The topic is derived from the configured bundle
id so a sandbox/production switch moves both channels together, and the
send runs through the same session cache, provider-token cache and
key-fault handling as an alert, so a refused key is one verdict rather
than two.

Fields a newer harness does not send yet degrade one at a time: the bot
name falls back to the frame title, the palette to a neutral, the options
to Allow/Deny on a permission card.  A missing field costs the island a
caption, never the push.

Four things stay deliberately separate.  The Live Activity token is its
own field and its own list, because it is registered on its own channel
and health counts phones from the alert list — counting a phone twice
there would have counted it against itself.  Its lanes are their own map,
because the alert queue drops its oldest entry when full and says nothing
about islands.  Its outcomes never touch the sent/failed counters or the
circuit run, because the banner queue is already using them.  And its
dead-token path is its own forget, since clearing the alert token against
this one would compare the wrong field and do nothing.

Refs push-to-start

* Harness: carry what a Live Activity needs on the notify frame

A phone that receives this frame while its app is not running cannot re-read
the transcript, so the frame is all it has to draw the card from.  It carried
neither the card's choices nor whether this was a permission decision, which
means a pushed Live Activity would have had to guess the verbs — showing Deny
where the card said Reject, or answering a free-text question as a permission
decision.

options, isPermission and color now travel on a blocking frame, gated exactly
like requestId is, so a frame where nothing is waiting still advertises nothing
to answer.  Populated at the one call site that already has the card in scope.

Widen the frame rather than have the sidecar look these up by botId: the data
already exists here, and a lookup adds round trips and staleness.

* iOS: hand the sidecar a Live Activity push-to-start token

An ask could only become a Live Activity while this app was alive, because
Activity.request was called with pushType nil and no ActivityKit token was
ever sent anywhere.  So a phone whose app had been killed got a notification
banner instead, which cannot be approved from.

ActivityKit mints a per-device push-to-start token whether or not an
activity is running, and it is the only credential that can start an activity
from a push.  Observe it once at attach and post it to the sidecar.

Activity.request now asks for a token as well, so the sidecar can later update
or end a running activity.  The per-activity token it mints is deliberately not
posted: the sidecar keeps one slot per device and that slot belongs to the
push-to-start token, so posting both would replace a credential that can start
an activity with one that cannot.

Registration is quiet and, unlike the device token, is not deduped — the
push-to-start sequence re-emits on rotation rather than once per launch, and a
token the sidecar has not been told about is an app it cannot reach.

Verified: 12 LiveActivity tests pass under cd ios && swift test, and an
unsigned iphonesimulator build of the app and widget targets succeeds.

* companion: check the frame before it becomes an island

`LiveActivitySource` was a promise about a value nobody had checked.
The interface says `title` is a string, and the builder reads it as one,
and the only thing standing between the harness's JSON and the widget was
a TypeScript annotation on a `JSON.parse` result.  A `title` that arrived
as a number was copied into the payload exactly as happily as a string.

So the frame is decoded at the SSE boundary, which is where raw JSON
enters this process at all: `parseLiveActivitySource` holds every field
the island reads to the type it must have, and `deliver` sends nothing
from a frame that fails.  A malformed frame costs the island and nothing
else — the banner is built before the parse runs and goes out either way.

Sparse is not malformed.  A harness that predates the Live Activity work
sends no color, no options and no requestId, and every one of those
fields stays optional, so those frames parse and keep their documented
fallbacks.  What changed is that a field which is PRESENT must be the
right shape.

Unknown keys are ignored rather than refused, and that is a deliberate
departure from a strict schema.  The harness frame is a contract this
sidecar neither owns nor versions against: `server/notify.ts` already
sends `avatarUrl`, which nothing here reads, and refusing on an
unrecognised key would have dropped every push from every bot with a
profile picture.

The token route now checks its body before reading a field off it.
`String(body.token)` turned a number into "42" and an array into "…", and
the registry rejected the result for a reason that named the token rather
than the request.  The body is one field of type string or it is a 400.

The alert path reads the same frame and now types it honestly too: the
frame is `JsonObject`, and each field is narrowed where it is used rather
than assumed.  A banner title that arrived as a number falls back the same
way an absent one does.

Refs push-to-start

* companion: import JsonObject where the frame parser uses it

parseLiveActivitySource typed the harness frame as JsonObject in three places
without importing it, so every typecheck job on this branch failed with
TS2304.  The tests passed because vitest transpiles without checking types,
which is how a missing import survives a green local test run.

Found by the real gate, pnpm typecheck.  Verified: typecheck clean, 473
companion tests pass, lint ratchet passes.

* companion: narrow the error response instead of casting it

The test asserted on (await rejected.json()) as { error: string }, which is a
compile-time claim about a runtime value.  Had the denial's shape drifted, the
test would have thrown on parsed.error.length of the wrong thing and reported a
confusing failure rather than the drift.

Narrowed with the package's own isJsonObject/isJsonString guards, so a wrong
shape fails the assertion saying which shape it got.  The companion declares
no dependencies and is not a pnpm workspace member, so a schema library is not
available here and is not worth one to assert a two-field object in a test.

companion/src/routes.ts:companionLiveActivityTokenDenial was flagged by the
same rule and already does this — it validates with isJsonString and casts
nothing.  Left unchanged.

* Keep the always-on checkout on main, and say so when it is not (#1100)

The always-on checkout is meant to be a detached origin/main checkout, and
the updater leaves it there when it applies.  Nothing enforced that: a seat
switched it to a working branch on Oct 9, and the harness served that branch
for three days with nothing on screen saying so.  That is the whole answer to
"why is my app weeks behind main", and it took a failed update to surface.

Preflight now names the drift — which branch, which commit, and what the
update is about to move it to — and stays silent when HEA…
lucasbraum added a commit to uptide-dev/uptide that referenced this pull request Oct 17, 2026
… from public 10 → 11 ground truth (UPT-64) (#192)

## Pack

`@sentry/browser` and `@sentry/react`, 10.x → 11.x. Fixes
[UPT-64](https://linear.app/uptide/issue/UPT-64/sentry-browserreact-find-ground-truth-to-re-promote-to-verified):
UPT-48 (#155) demoted both because they had too few breaking sites (3
and 2; the gate needs 5).

**Before → after** (`pnpm uptide pack test <lead>`):

| Lead | Repos | Breaking sites | Precision / recall | FP | Status |
| --- | ---: | ---: | --- | ---: | --- |
| `@sentry/browser` | 2 → 5 | 3 → 22 | 100% / 100% → 100% / 50% | 0 |
candidate → **verified** |
| `@sentry/react` | 2 → 14 | 2 → 29 | 100% / 100% → 88% / 72% | 0 → 3 |
candidate → **candidate** (3 FPs among breaking findings) |

Rules, notes and fixtures are unchanged. Ground truth was committed
(87cb970) before the first score with it, and nothing in it changed
afterward. Only the 15 new entries were added; the existing ones are
untouched.

## Ground-truth repositories

These are all of the merged public 10 → 11 upgrades the search found
where three things hold: a lead moves next to its own lockfile, the diff
removes an API that v11 removed or changed, and the upgrade isn't
bump-only. I added every one that qualified, not a hand-picked subset.
Each was drafted with `pnpm packs:truth` and reviewed by hand under
docs/packs.md as it stands now, including the UPT-53 anchors. Sites per
repository, the review conventions and the screened-out repos are in
`packages/core/src/packs/sentry/RESEARCH.md`.

- **react (12 new):** Seklfreak/flimm#28, daler91/Hyrox-Companion#2102,
jey3dayo/ultra-rss-reader#346, jirikrucek/ricochet-app#33,
louisclarencepeter/destinationparadise#162, poporonnet/kaniwriter#1430,
preijm/milk-me-not#293, CandeeGenerations/central-flock#30,
DougZeThug/717rec#1594, CandeeGenerations/attendance-public#3,
cucumber/cucumber-reports#314, Simple-With-Us/BotFleet#940
- **browser (3 new):** MihaelaAghirculesei/Pokedex#99,
Simple-With-Us/ContactLogo#161, getsentry/sentry-godot#991

The issue's list (cal.com, midday, rallly, inbox-zero, unkey, twenty,
outline) has none that qualifies. Four of them use `@sentry/nextjs`,
twenty and outline are still on `@sentry/react` 10, and unkey declares
neither lead.

**The 3 react false positives** (truth unchanged; flagged for your
call):
- Hyrox-Companion `server/bootstrap/observability.ts:114`: an
`@sentry/node` `sendDefaultPii`. `check` moves `@sentry/node` with the
release group, but this repo kept it at 10.75.2.
- ultra-rss-reader `src/lib/runtime/monitoring.ts:25`:
`"InboundFilters"` in an integration allowlist. v11 renamed that
integration and this upgrade left the entry in place, so it may be a
real miss in their upgrade; it still scores as an FP.
- BotFleet `server/sentry-scrub-real-sdk.test.ts:30`:
`beforeSendTransaction`. The repo kept it working by adding
`traceLifecycle: "static"` to the same call.

## Also in this PR

- `scripts/packs-truth-compiler.ts`: `packs:truth` crashed on repos with
TypeScript 7.0.2, which has no `main` field, before its documented
fallback to this checkout's compiler could run. Six of the new repos are
on TS 7. This affects drafting only, not scoring.
- The issue's side note: youth-activity-scheduler's local
`MODULE_NOT_FOUND` comes from local corepack 0.34, which can't start
pnpm 12 (pnpm 12 ships `bin/pnpm.mjs` plus a native binary, not
`bin/pnpm.cjs`). It isn't the engine, which matches CI passing. These
local runs used a `pnpm` shim for repos pinning `pnpm@12`. BotFleet also
needs `git-lfs`, which CI runners have; it's noted in RESEARCH.md.

## CI follow-ups (7a6288e, 4d105da)

- **Pack test summary over 1 MB.** The log keeps the full report. The
job summary keeps every score table and the first 20 sites of each FP/FN
list ("… and M more, see the job log"), and is cut at a line under 960
KiB if it's still too long. A test in `packages/cli/src/pack.test.ts`
covers the cap. On this PR's 17 pack reports: 1.88 MB of log, 71 KB of
summary.
- **`pack sentry-react` exits 1 by design.** `pack test` fails any pack
with a breaking FP, candidate or not. The record is current (`stale:
false` in CI and locally), so nothing needed regenerating. The other
candidates aren't excluded anywhere; they pass only because they have no
breaking FPs. So I added an explicit, narrow exception: `FP_CANDIDATES:
sentry-react` in `packs.yml`. Its job still runs and its summary still
says FAIL, but it doesn't fail the required `Pack test` when breaking
FPs on a candidate are its only failure. An overclaimed record, an
unscored repo or a left-behind companion still fails it. Ground truth
and the gate are unchanged.

## `uptide pack test` output

```
uptide pack test @sentry/browser · verified, recorded candidate
fixtures      4 cases, 16 sites · pass
ground truth
  Automancer-Ltd/automancer-site@ea78c738e8de  @sentry/browser 10.75.2 → 11.4.0  predicted 2, expected 2, false positives 0, false negatives 0
  sbomify/sbomify@4c2be2012677                 @sentry/browser 10.75.2 → 11.0.0  predicted 1, expected 1, false positives 0, false negatives 0
  MihaelaAghirculesei/Pokedex@9b48984a5c81     @sentry/browser 10.74.0 → 11.1.0  predicted 1, expected 1, false positives 0, false negatives 0
  Simple-With-Us/ContactLogo@e3ad95203065      @sentry/browser 10.76.0 → 11.4.0  predicted 2, expected 2, false positives 0, false negatives 0
  getsentry/sentry-godot@be1c5daf6050          @sentry/browser 10.75.2 → 11.5.0  predicted 5, expected 16, false positives 0, false negatives 11
    with @sentry/core 10.75.2 → 11.5.0, @sentry/wasm 10.75.2 → 11.5.0

  rule                         precision  recall    tp   fp   fn
  before-send-transaction            n/a      0%     0    0    1
  breadcrumbs-console               100%    100%     1    0    0
  enable-logs                       100%    100%     2    0    0
  generic                            n/a      0%     0    0    2
  removed-exports                   100%    100%     3    0    0
  renamed-exports                    n/a      0%     0    0    8
  send-default-pii                  100%    100%     5    0    0
  overall (sites)                   100%     50%    11    0   11
  behavior notes (sites)             n/a     n/a     0    0    0
  breaking (sites)                  100%     50%    11    0   11

false negatives (11)
  getsentry/sentry-godot@be1c5daf6050  src/sentry-bridge.ts:261  before-send-transaction (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:39  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:418  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:423  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:432  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:434  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:436  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:445  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:447  renamed-exports (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:468  generic (breaking)
  getsentry/sentry-godot@be1c5daf6050  test.js:473  generic (breaking)

gate          22 breaking sites, 0 behavior-note sites in public ground truth · verified
  · no real site exercises enable-metrics, integration-names, renamed-exports, streamed-span-wrapper: their rewrites run as assisted
recorded candidate by choice; measures verified
PASS @sentry/browser: verified
```

```
uptide pack test @sentry/react · candidate
fixtures      4 cases, 16 sites · pass
ground truth
  owine/youth-activity-scheduler@18b467f5c4f2  @sentry/react 10.75.3 → 11.0.0  predicted 2, expected 2, false positives 0, false negatives 0
    · @sentry/vite-plugin stays at 5.4.0 (not in the release group of @sentry/react)
  successible/cleanslate@5d45401e6562          @sentry/react 10.74.0 → 11.0.0  predicted 0, expected 0, false positives 0, false negatives 0
  Seklfreak/flimm@e9fb0517b68b                 @sentry/react 10.75.3 → 11.0.0  predicted 1, expected 1, false positives 0, false negatives 0
  daler91/Hyrox-Companion@77e68b5e1176         @sentry/react 10.75.2 → 11.1.0  predicted 2, expected 1, false positives 1, false negatives 0
    with @sentry/node 10.75.2 → 11.1.0
    · @sentry/esbuild-plugin stays at 5.4.0 (not in the release group of @sentry/react)
    · @sentry/vite-plugin stays at 5.4.0 (not in the release group of @sentry/react)
  jey3dayo/ultra-rss-reader@9b2075e57bf1       @sentry/react 10.75.0 → 11.0.0  predicted 2, expected 1, false positives 1, false negatives 0
    · @sentry/vite-plugin stays at 5.4.0 (not in the release group of @sentry/react)
  jirikrucek/ricochet-app@f9313aca7077         @sentry/react 10.70.0 → 11.1.0  predicted 1, expected 1, false positives 0, false negatives 0
  louisclarencepeter/destinationparadise@04894de5d063 @sentry/react 10.75.0 → 11.7.0  predicted 1, expected 2, false positives 0, false negatives 1
    with @sentry/node 10.75.0 → 11.7.0
  poporonnet/kaniwriter@340019428754           @sentry/react 10.76.0 → 11.5.0  predicted 1, expected 1, false positives 0, false negatives 0
    · @sentry/vite-plugin stays at 5.4.1 (not in the release group of @sentry/react)
  preijm/milk-me-not@471ec20450c8              @sentry/react 10.76.2 → 11.4.0  predicted 1, expected 1, false positives 0, false negatives 0
  CandeeGenerations/central-flock@8d2155e0f985 @sentry/react 10.75.3 → 11.2.0  predicted 4, expected 5, false positives 0, false negatives 1
    with @sentry/node 10.75.3 → 11.2.0
    · @sentry/cli stays at 3.8.0 (not in the release group of @sentry/react)
    · @sentry/vite-plugin stays at 5.4.0 (not in the release group of @sentry/react)
  DougZeThug/717rec@b4b9baa8728d               @sentry/react 10.75.2 → 11.0.0  predicted 1, expected 1, false positives 0, false negatives 0
  CandeeGenerations/attendance-public@661c08b633a2 @sentry/react 10.75.3 → 11.2.0  predicted 2, expected 2, false positives 0, false negatives 0
    · @sentry/cli stays at 3.8.0 (not in the release group of @sentry/react)
    · @sentry/vite-plugin stays at 5.4.0 (not in the release group of @sentry/react)
  cucumber/cucumber-reports@a2b50ccbb67c       @sentry/react 10.75.3 → 11.2.0  predicted 1, expected 1, false positives 0, false negatives 0
  Simple-With-Us/BotFleet@8ddc42a46f27         @sentry/react 10.76.1 → 11.6.0  predicted 5, expected 10, false positives 1, false negatives 6
    with @sentry/node 10.76.1 → 11.6.0

  rule                         precision  recall    tp   fp   fn
  before-send-transaction            75%    100%     3    1    0
  enable-logs                       100%     80%     4    0    1
  error-handlers                     n/a      0%     0    0    1
  generic                            50%     25%     1    1    3
  http-integration-options           n/a      0%     0    0    1
  integration-names                   0%     n/a     0    1    0
  send-default-pii                   92%     80%    12    1    3
  overall (sites)                    88%     72%    21    3    8
  behavior notes (sites)             n/a     n/a     0    0    0
  breaking (sites)                   88%     72%    21    3    8

false positives (3)
  daler91/Hyrox-Companion@77e68b5e1176  server/bootstrap/observability.ts:114  send-default-pii (breaking)
  jey3dayo/ultra-rss-reader@9b2075e57bf1  src/lib/runtime/monitoring.ts:25  integration-names (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry-scrub-real-sdk.test.ts:30  before-send-transaction (breaking)

false negatives (8)
  louisclarencepeter/destinationparadise@04894de5d063  src/utils/sentry.js:99  send-default-pii (breaking)
  CandeeGenerations/central-flock@8d2155e0f985  server/index.ts:120  error-handlers (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  src/lib/sentry.ts:101  enable-logs (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  src/lib/sentry.ts:102  send-default-pii (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry.ts:558  send-default-pii (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry.ts:561  generic (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry-scrub-real-sdk.test.ts:32  generic (breaking)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry-scrub-real-sdk.test.ts:97  generic (breaking)

reported under another rule (1)
  Simple-With-Us/BotFleet@8ddc42a46f27  server/sentry.ts:497  generic, expected http-integration-options

gate          29 breaking sites, 0 behavior-note sites in public ground truth · candidate
  · 3 false positives among breaking findings
  · no real site exercises enable-metrics, integration-names, renamed-exports, streamed-span-wrapper: their rewrites run as assisted
verification.json differs from this run: `uptide pack test @sentry/react --write` records it
FAIL @sentry/react: 3 false positives among breaking findings
 ELIFECYCLE  Command failed with exit code 1.
```

## Checklist

- [x] Ground truth comes from public repos at the commit before their
upgrade, with findings taken from their own upgrade commit and compiler,
never from Uptide's output
- [x] `pnpm uptide pack test` was run and its output is pasted above;
`verification.json` was written with `--write`
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass locally
- [x] Changeset added
- [x] No private code, names or paths (`public:check` is clean)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Lucas Braum <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants