Repository navigation
[Tooling] Lighter Bugbot reviews: smart effort, skip drafts - #1365
Conversation
Co-authored-by: Aymeric Rabot <Aymericr@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Aymericr
left a comment
There was a problem hiding this comment.
Independent review at b3f0613, focused on whether anything security-sensitive lands on low or unmatched effort. Not an LGTM yet: a few security boundaries need to be named under high, and the low wording needs tightening. Everything else looks good.
What checks out
- The keys match the documented schema (cursor.com/docs/bugbot, "Repository config file"):
version,triggers.drafts,triggers.frequency: everyPush,review.effort: smart,review.smartPrompt,review.incremental. - CI is green at this head.
- The diff only adds
.cursor/config/bugbot.yaml. - Bugbot reads this file from the base branch, so it takes effect for PRs opened after merge, not for this one.
- The high list already covers MCP (
packages/mcp, includingtransports/http.tsandlib/safe-fetch.ts), the geometry-script worker, the IFC importers, the CLI, dependency manifests and workflows. It also covers the IndexedDB asset store changed in #1357,packages/core/src/lib/asset-storage.ts, but only by package ("core scene and geometry logic"), not by topic. - There is no
vercel.json,CODEOWNERS, middleware other thanapps/editor/proxy.ts, Server Action ('use server'), ordangerouslySetInnerHTML/innerHTMLin the tree today.
How Smart applies this. smartPrompt is prose, not globs. Smart reads it along with the title and a possibly trimmed diff, and anything not named falls to default. So today a change limited to the editor's auth gate gets default, and an agent-instruction change gets low via *.md.
Paths to add to high
-
Editor auth, sharing and serving user bytes (default today):
apps/editor/proxy.ts: the auth gate that decides open vs self-guarded paths.apps/editor/lib/self-host-auth.ts: signed sessions.apps/editor/app/api/auth/**.apps/editor/app/api/scenes/**,apps/editor/app/api/artifacts/**.apps/editor/lib/{scene-api-security,scene-sharing,scene-thumbnails,public-url,safe-next-path}.ts.apps/editor/app/embed/[id]/page.tsx: checks sharing before loading the graph.
In short: any route handler or server code under
apps/*. -
Host half of the geometry-script sandbox:
packages/editor/src/lib/geometry-script/client.ts. It setsiframe.sandboxandsrcdoc, supplies the frame CSP and checkspostMessagesources. The worker side is already high; this side currently gets default. -
Review policy and agent permissions/instructions:
.cursor/**(including thisbugbot.yaml),.claude/settings.json(grantsBash(npx turbo:*)),.agents/**.- The
{.claude,.codex,.cursor}/skillssymlinks: a retarget changes loaded instructions without touching any Markdown. AGENTS.mdandapps/*/AGENTS.md, plus theirCLAUDE.md/GEMINI.mdaliases (symlinks) and.github/copilot-instructions.md.**/SKILL.mdandskills/**.
The
*.mdlow rule currently catches all of these. -
Things that choose what runs or gets installed:
mcp.json,server.json,gemini-extension.json,.cursor-plugin/mcp.json,skills/.mcp.json,packaging/chatgpt/mcp.json,.agents/plugins/marketplace.json.patches/*.patch: declared inpackage.json, but a patch-only PR doesn't touch the manifest..githooks/**,tooling/release/**.Dockerfile,docker-compose.yml,.devcontainer/**.apps/*/next.config.ts, which sets/embedCSPframe-ancestors, redirects and image patterns.
Low wording to tighten
- "tests only" → "isolated non-security tests". Tests that guard a high boundary should stay high: for example
packages/mcp/src/lib/safe-fetch.test.ts(SSRF and redirect regressions), and the auth or sharing tests. The same goes for test helpers, preloads and runnable fixtures such asfixtures/viewer-live/vite.config.ts. - "docs (*.md)" → "human-facing prose", excluding the agent-instruction and skill files above.
- "locale catalogs" → limit low to
messages.poand generatedmessages.tsdata with an unchanged wrapper.packages/editor/src/i18n/locales/*/index.tsare loaders (logic), not catalogs. - "copy and styling-only UI" → "literal UI text or cosmetic CSS". Anything that changes a link or URL, handler, resource load, raw HTML sink,
srcdocor sandbox attribute is not copy or styling. - Precedence and trimmed diffs: add "High wins for the whole PR; never infer low from a directory, filename or title; if a trimmed diff can't rule out a high cue, don't use low."
Suggested addition to smartPrompt
This keeps the existing high sentence and replaces the low and default sentences:
HIGH wins for the whole PR. Also use HIGH for apps/editor/proxy.ts,
apps/editor/app/api/**, apps/editor/app/embed/**, apps/editor/lib/{self-host-auth,
scene-api-security,scene-sharing,scene-thumbnails,public-url,safe-next-path}.ts,
packages/editor/src/lib/geometry-script/**, any server code under apps/*, and any
change to auth, sessions, sharing, CSP/headers, redirects, raw HTML sinks, iframe
sandboxing or trusted postMessage handling, uploads or stored user bytes (incl.
packages/core/src/lib/asset-storage.ts), and tests protecting these. Use HIGH for
.cursor/**, .claude/**, .agents/**, the */skills symlinks, AGENTS.md/CLAUDE.md/
GEMINI.md (any depth), .github/copilot-instructions.md, **/SKILL.md, skills/**,
mcp.json, server.json, gemini-extension.json, */mcp.json, marketplace.json,
patches/**, .githooks/**, tooling/release/**, Dockerfile, docker-compose.yml,
.devcontainer/**, apps/*/next.config.*.
Use LOW only when every change is human-facing prose, translation text in
messages.po/messages.ts with unchanged code, isolated non-security tests, or literal
UI text or cosmetic CSS. Changed links, handlers, loaders, fixtures or sinks are not
LOW. If LOW isn't clearly established, use DEFAULT.
None of these are vulnerabilities in the app. They are routing gaps for future PRs. With the four high additions and the low rewording, this is an LGTM from me.
Co-authored-by: Aymeric Rabot <Aymericr@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 33ed898. Configure here.
Aymericr
left a comment
There was a problem hiding this comment.
Re-review at 33ed898. Almost there, but not an LGTM yet: the plugin manifests still aren't on high.
What I checked. The b3f0613..33ed898 diff only changes smartPrompt. The YAML still parses: version, triggers (drafts: false, frequency: everyPush) and review (effort: smart, incremental: true) are unchanged and match cursor.com/docs/bugbot, and smartPrompt is a single block scalar. CI is green; Cursor Bugbot is neutral because of the finding below.
Points from my last review that are now covered:
- "HIGH wins for the whole PR" is in.
- The editor auth, sharing and server paths are listed:
proxy.ts,app/api/**,app/embed/**, the sixapps/editor/libhelpers, and any server code underapps/*. packages/editor/src/lib/geometry-script/**coversclient.ts.- Agent config is covered:
.cursor/**,.claude/**,.agents/**, the*/skillssymlinks (including.codex/skills), theAGENTS.md/CLAUDE.md/GEMINI.mdaliases at any depth,.github/copilot-instructions.md,**/SKILL.mdandskills/**. - The files that decide what runs are listed: patches, githooks, release tooling, Dockerfile, compose, devcontainer, and
apps/*/next.config.*. - The
*.mdlow rule, "tests only" and "default for everything else" are gone. - The low wording now covers tests, locales and UI, and adds the "never infer low from a directory, title or trimmed diff" guard.
Still missing: plugin manifests. This is the open Bugbot Medium at 33ed898, and it is real. My pasted block left these out. They pick the MCP server, skills and API-key settings that agents install and run, so they belong with mcp.json and marketplace.json:
plugin.json(root).cursor-plugin/plugin.json:.cursor-plugin/mcp.jsonis only reached through*/mcp.json.codex-plugin/plugin.json.claude-plugin/marketplace.json: the baremarketplace.jsonreads as root-only, and.agents/**covers only.agents/plugins/marketplace.jsonpackaging/chatgpt/mcp.json:*/mcp.jsonis one level deep, so it doesn't match this one
(skills/.claude-plugin/plugin.json, skills/.cursor-plugin/* and skills/.mcp.json are already covered by skills/**.)
Suggested edit: in the second HIGH sentence, replace mcp.json, server.json, gemini-extension.json, */mcp.json, marketplace.json with:
mcp.json, server.json, plugin.json, gemini-extension.json, .cursor-plugin/**,
.codex-plugin/**, .claude-plugin/**, packaging/**, and any mcp.json, plugin.json
or marketplace.json at any depth,
With that change, this is an LGTM from me.
Co-authored-by: Aymeric Rabot <Aymericr@users.noreply.github.com>
Aymericr
left a comment
There was a problem hiding this comment.
LGTM at fc93901.
- Scope:
33ed898..fc93901is a single commit. It changes only the manifest line insmartPrompt, which now coversmcp.json,server.json,plugin.json,gemini-extension.json,.cursor-plugin/**,.codex-plugin/**,.claude-plugin/**,packaging/**, and anymcp.json,server.json,plugin.jsonormarketplace.jsonat any depth. - Plugin manifests: that covers every manifest tracked in the repo: root
plugin.json,.cursor-plugin/{plugin,mcp}.json,.codex-plugin/plugin.json,.claude-plugin/marketplace.json,.agents/plugins/marketplace.json,packaging/chatgpt/mcp.jsonand theskills/manifests. So my last open point and the earlier Bugbot Medium are resolved. - YAML: still valid (
version,triggers,reviewwitheffort: smartandincremental: true). Nothing else changed. - CI: green at this head, and Cursor Bugbot passes.
Thanks for working through all the points.

What does this PR do?
Adds a repo-level Bugbot config at
.cursor/config/bugbot.yamlto reduce review cost without weakening review of security-sensitive code. Today every review runs on the dashboard defaults at high effort.triggers.drafts: false): draft PRs are no longer reviewed automatically. Mark a PR "Ready for review" to get a Bugbot pass. Reviews still run on every push after that (frequency: everyPush).review.effort: smart) with asmartPromptthat asks for:packages/core,packages/nodes,packages/geometry-script), the MCP server (packages/mcp), file import/export and parsing (packages/ifc-converter,apps/ifc-converter), CLI code (packages/cli,scripts), dependency manifests and CI workflows;apps/editor/proxy.ts,apps/editor/app/api/**, the embed page, the self-host auth and scene sharing/security libs, and any server code underapps/*; plus any change to auth, sessions, sharing, CSP/headers, redirects, raw HTML sinks, iframe sandboxing, trustedpostMessagehandling or stored user bytes, and tests that protect these;packages/editor/src/lib/geometry-script/**);.cursor/**,.claude/**,.agents/**, skills symlinks,AGENTS.md/CLAUDE.md/GEMINI.mdat any depth,.github/copilot-instructions.md,**/SKILL.md,skills/**;mcp.jsonfiles,server.json,gemini-extension.json,marketplace.json,patches/**,.githooks/**,tooling/release/**, Docker and devcontainer files,apps/*/next.config.*.messages.po/messages.tswith unchanged code, isolated non-security tests, or literal UI text or cosmetic CSS. Changed links, handlers, loaders (such aslocales/*/index.ts), fixtures or sinks are not low, and low is never inferred from a directory, filename or title, or from a trimmed diff that can't rule out a high cue.review.incremental: true): only changes since the previous Bugbot review are reviewed.PR summary and autofix settings are left out of the file, so they keep their current dashboard behavior.
All keys follow the documented schema in the Bugbot docs (Repository config file); no keys needed renaming. Note that per the docs, effort levels apply only on usage-based Bugbot plans.
Takes effect after merge: Bugbot reads this file from the PR's base branch, so this PR itself is still reviewed with the current settings.
How to test
apps/editor/proxy.ts,AGENTS.mdor.github/workflows, a review comment with findings should report High effort; a PR changing only human-facing docs should get a Low-effort review.The YAML was checked to parse into the expected structure, and every concrete path named in the prompt was checked to exist; no other local checks were run (no code changed).
Screenshots / screen recording
N/A — non-visual change
Checklist
bun devbun checkto verify)mainbranchNote
Low Risk
Tooling-only YAML for review automation; no application runtime or deployment behavior changes.
Reviewed by Cursor Bugbot for commit fc93901. Bugbot is set up for automated code reviews on this repo. Configure here.