@@ -90,13 +90,6 @@ reviews:
9090 poem : false
9191 enable_prompt_for_ai_agents : true
9292 path_filters :
93- - " !**/*.g.cs"
94- - " !**/*.g.ts"
95- - " !**/*.g.sql"
96- - " !**/*.g.tsp"
97- - " !**/*.Designer.cs"
98- - " !**/Generated/**"
99- - " !**/generated/**"
10093 - " !**/bin/**"
10194 - " !**/obj/**"
10295 - " !**/dist/**"
@@ -107,15 +100,62 @@ reviews:
107100 - " !**/.next/**"
108101 - " !**/*.min.js"
109102 - " !**/*.min.css"
110- - " !**/package-lock.json"
111- - " !**/pnpm-lock.yaml"
112- - " !**/yarn.lock"
113103 - " !Artifacts/**"
114104 - " !artifacts/**"
115105 - " !**/*.sarif"
116106 - " !**/*.trx"
117107 path_instructions :
118- - path : " **/*.{cs,csproj,props,targets,sln,slnx}"
108+ - path : " **/*.cs"
109+ instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
110+ package boundaries, and generated code as correctness concerns. Flag sync-over-async
111+ (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
112+ lifecycle/error handling, missing CancellationToken on public/internal async
113+ methods, `DateTime.Now`/`UtcNow` in domain logic instead of TimeProvider, null-forgiving
114+ ` !` without a documented proof, catch-and-fallback paths that hide failures,
115+ and service registration drift. Prefer data-driven, composable code over hardcoded
116+ switch/case tables. Public package/API surface changes need XML docs and explicit
117+ compatibility notes.
118+ - path : " **/*.csproj"
119+ instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
120+ package boundaries, and generated code as correctness concerns. Flag sync-over-async
121+ (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
122+ lifecycle/error handling, missing CancellationToken on public/internal async
123+ methods, `DateTime.Now`/`UtcNow` in domain logic instead of TimeProvider, null-forgiving
124+ ` !` without a documented proof, catch-and-fallback paths that hide failures,
125+ and service registration drift. Prefer data-driven, composable code over hardcoded
126+ switch/case tables. Public package/API surface changes need XML docs and explicit
127+ compatibility notes.
128+ - path : " **/*.props"
129+ instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
130+ package boundaries, and generated code as correctness concerns. Flag sync-over-async
131+ (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
132+ lifecycle/error handling, missing CancellationToken on public/internal async
133+ methods, `DateTime.Now`/`UtcNow` in domain logic instead of TimeProvider, null-forgiving
134+ ` !` without a documented proof, catch-and-fallback paths that hide failures,
135+ and service registration drift. Prefer data-driven, composable code over hardcoded
136+ switch/case tables. Public package/API surface changes need XML docs and explicit
137+ compatibility notes.
138+ - path : " **/*.targets"
139+ instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
140+ package boundaries, and generated code as correctness concerns. Flag sync-over-async
141+ (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
142+ lifecycle/error handling, missing CancellationToken on public/internal async
143+ methods, `DateTime.Now`/`UtcNow` in domain logic instead of TimeProvider, null-forgiving
144+ ` !` without a documented proof, catch-and-fallback paths that hide failures,
145+ and service registration drift. Prefer data-driven, composable code over hardcoded
146+ switch/case tables. Public package/API surface changes need XML docs and explicit
147+ compatibility notes.
148+ - path : " **/*.sln"
149+ instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
150+ package boundaries, and generated code as correctness concerns. Flag sync-over-async
151+ (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
152+ lifecycle/error handling, missing CancellationToken on public/internal async
153+ methods, `DateTime.Now`/`UtcNow` in domain logic instead of TimeProvider, null-forgiving
154+ ` !` without a documented proof, catch-and-fallback paths that hide failures,
155+ and service registration drift. Prefer data-driven, composable code over hardcoded
156+ switch/case tables. Public package/API surface changes need XML docs and explicit
157+ compatibility notes.
158+ - path : " **/*.slnx"
119159 instructions : C#/.NET review. Treat warnings, nullable annotations, async flow,
120160 package boundaries, and generated code as correctness concerns. Flag sync-over-async
121161 (`.Result`, `.Wait()`, `.GetAwaiter().GetResult()`), fire-and-forget work without
@@ -139,21 +179,72 @@ reviews:
139179 keep required and non-blocking jobs clear; preserve tokenless OIDC upload patterns
140180 where used; and flag any admin-bypass, force-push, destructive cleanup, or auto-merge
141181 behavior that can mask a failed required check.
142- - path : " **/*.{md,mdx}"
182+ - path : " **/*.md"
183+ instructions : ' Documentation review. Treat docs as executable team memory: flag
184+ instructions that disagree with actual scripts, package versions, branch protection,
185+ generated-file workflows, or repo layout. Keep AGENTS.md/CLAUDE.md rules coherent
186+ with automation. Do not request cosmetic prose changes unless ambiguity would
187+ mislead an agent or maintainer.'
188+ - path : " **/*.mdx"
143189 instructions : ' Documentation review. Treat docs as executable team memory: flag
144190 instructions that disagree with actual scripts, package versions, branch protection,
145191 generated-file workflows, or repo layout. Keep AGENTS.md/CLAUDE.md rules coherent
146192 with automation. Do not request cosmetic prose changes unless ambiguity would
147193 mislead an agent or maintainer.'
148- - path : " **/*.{ g.cs,g.ts,g.sql,g.tsp,Designer.cs,generated.*,snap} "
194+ - path : " **/*.g.cs"
149195 instructions : Generated-output discipline. Do not suggest hand-editing generated
150196 files. If generated output is wrong or missing, identify the generator/source
151197 input and require regeneration in the same PR. If source model changes without
152198 matching generated artifacts, flag it.
153- - path : " **/*.{yaml,yml,tsp,json}"
154- instructions : OpenTelemetry/TypeSpec convention models. Validate schema shape,
155- stability names, attribute reuse, generated-output consistency, and that changes
156- regenerate all emitted C#/TS/docs artifacts through the documented generator.
199+ - path : " **/*.g.ts"
200+ instructions : Generated-output discipline. Do not suggest hand-editing generated
201+ files. If generated output is wrong or missing, identify the generator/source
202+ input and require regeneration in the same PR. If source model changes without
203+ matching generated artifacts, flag it.
204+ - path : " **/*.g.sql"
205+ instructions : Generated-output discipline. Do not suggest hand-editing generated
206+ files. If generated output is wrong or missing, identify the generator/source
207+ input and require regeneration in the same PR. If source model changes without
208+ matching generated artifacts, flag it.
209+ - path : " **/*.g.tsp"
210+ instructions : Generated-output discipline. Do not suggest hand-editing generated
211+ files. If generated output is wrong or missing, identify the generator/source
212+ input and require regeneration in the same PR. If source model changes without
213+ matching generated artifacts, flag it.
214+ - path : " **/*.Designer.cs"
215+ instructions : Generated-output discipline. Do not suggest hand-editing generated
216+ files. If generated output is wrong or missing, identify the generator/source
217+ input and require regeneration in the same PR. If source model changes without
218+ matching generated artifacts, flag it.
219+ - path : " **/*.generated.*"
220+ instructions : Generated-output discipline. Do not suggest hand-editing generated
221+ files. If generated output is wrong or missing, identify the generator/source
222+ input and require regeneration in the same PR. If source model changes without
223+ matching generated artifacts, flag it.
224+ - path : " **/*.snap"
225+ instructions : Generated-output discipline. Do not suggest hand-editing generated
226+ files. If generated output is wrong or missing, identify the generator/source
227+ input and require regeneration in the same PR. If source model changes without
228+ matching generated artifacts, flag it.
229+ - path : " **/semconv/**/*.yaml"
230+ instructions : OpenTelemetry semantic-convention YAML. Validate schema shape, stability
231+ names, attribute reuse, generated-output consistency, and regenerated downstream
232+ artifacts.
233+ - path : " **/semconv/**/*.yml"
234+ instructions : OpenTelemetry semantic-convention YAML. Validate schema shape, stability
235+ names, attribute reuse, generated-output consistency, and regenerated downstream
236+ artifacts.
237+ - path : " **/model/**/*.yaml"
238+ instructions : OpenTelemetry semantic-convention model YAML. Validate schema shape,
239+ stability names, attribute reuse, generated-output consistency, and regenerated
240+ downstream artifacts.
241+ - path : " **/models/**/*.yaml"
242+ instructions : OpenTelemetry semantic-convention model YAML. Validate schema shape,
243+ stability names, attribute reuse, generated-output consistency, and regenerated
244+ downstream artifacts.
245+ - path : " **/*.tsp"
246+ instructions : TypeSpec contracts. Validate API/schema contract drift, generated-output
247+ consistency, and documented generator usage.
157248 - path : Pipeline/**
158249 instructions : NUKE generation/release pipeline. Keep fluent C# targets, typed
159250 parameters, no raw shell, and generator outputs reproducible.
@@ -255,11 +346,13 @@ reviews:
255346 repo uses one.'
256347 - mode : error
257348 name : CI Release Safety
258- instructions : ' Pass/fail criteria: fail workflow/build/release changes that
259- reduce required validation, introduce admin bypasses, broaden token permissions
260- without justification, leak secrets, remove concurrency where needed, make
261- publish steps run on the wrong trigger, or allow failed required checks to
262- be ignored.'
349+ instructions : ' Pass/fail criteria: if no workflow/build/release files changed,
350+ pass. Fail when a changed workflow removes an existing validation job, removes
351+ concurrency from push/PR workflows, adds --admin/force-push/bypass commands,
352+ increases token permissions beyond contents:read without inline rationale,
353+ exposes secrets in command arguments/logs, changes publish triggers to run
354+ outside tags or approved environments, or allows a previously required failing
355+ check to be ignored.'
263356 - mode : warning
264357 name : Tests Match Risk
265358 instructions : ' Pass/fail criteria: warn when production behavior changes without
@@ -305,7 +398,7 @@ reviews:
305398 timeout_ms : 900000
306399 languagetool :
307400 enabled : true
308- level : picky
401+ level : default
309402 biome :
310403 enabled : false
311404 hadolint :
@@ -436,7 +529,7 @@ knowledge_base:
436529 pull_requests :
437530 scope : global
438531 mcp :
439- usage : enabled
532+ usage : auto
440533 linked_repositories :
441534 - repository : ANcpLua/ANcpLua.Agents
442535 instructions : Related ANcpLua/O-ANcppLua repository. Use for cross-repo API, package,
@@ -497,7 +590,11 @@ code_generation:
497590 instructions : Generate XML docs for public/protected APIs and package surfaces.
498591 Document intent, contracts, cancellation, exceptions, and compatibility. Do
499592 not add obvious comments to private implementation details.
500- - path : " **/*.{ts,tsx}"
593+ - path : " **/*.ts"
594+ instructions : Generate concise TSDoc only for exported APIs, hooks, reusable
595+ components, schemas, and non-obvious utility behavior. Avoid restating prop
596+ names.
597+ - path : " **/*.tsx"
501598 instructions : Generate concise TSDoc only for exported APIs, hooks, reusable
502599 components, schemas, and non-obvious utility behavior. Avoid restating prop
503600 names.
@@ -507,7 +604,10 @@ code_generation:
507604 instructions : Use the repo test stack (xUnit v3/Microsoft Testing Platform where
508605 present). Prefer focused unit tests plus integration tests for persistence,
509606 queues, external clients, and generated contracts. Avoid sleeps; use fakes/signals.
510- - path : " **/*.{ts,tsx}"
607+ - path : " **/*.ts"
608+ instructions : Use the repo frontend test stack. Assert user-visible behavior
609+ and accessible roles/states. Avoid waitForTimeout and brittle snapshots.
610+ - path : " **/*.tsx"
511611 instructions : Use the repo frontend test stack. Assert user-visible behavior
512612 and accessible roles/states. Avoid waitForTimeout and brittle snapshots.
513613 - path : " **/*.py"
@@ -528,37 +628,21 @@ issue_enrichment:
528628 - help-wanted
529629 labeling :
530630 labeling_instructions :
531- - label : area:api
532- instructions : Apply when REST, RPC, MCP, public endpoints, contracts, or request/response
533- models change.
534- - label : area:ui
535- instructions : Apply when frontend UI, styling, accessibility, or client-side
536- state changes.
537- - label : area:build
538- instructions : Apply when build scripts, NUKE/MSBuild, package managers, Docker,
539- CI, or release automation change.
540- - label : area:test
541- instructions : Apply when tests, fixtures, test infrastructure, coverage, or
542- snapshots change.
543- - label : area:docs
544- instructions : Apply when docs, AGENTS.md, CLAUDE.md, README, changelogs, specs,
545- or generated reference docs change.
546- - label : area:security
547- instructions : Apply when authentication, authorization, secrets, token handling,
548- logging of sensitive data, or dependency security changes.
549- - label : area:data
550- instructions : Apply when database schema, persistence, migrations, queues, storage,
551- serialization, generated data, or data contracts change.
552- - label : area:agents
553- instructions : Apply when agent prompts, MCP tools, AI workflow code, model calls,
554- tool schemas, or agent-facing instructions change.
555- - label : area:generated
556- instructions : Apply when generated files, generators, schemas, OpenAPI/TypeSpec/semconv
557- models, lockfiles, or generated docs change.
558- - label : breaking
559- instructions : Apply when public APIs, CLI flags, package surfaces, endpoint
560- schemas, storage formats, config keys, or emitted artifacts change incompatibly.
561- - label : review:slop
562- instructions : Auto-applied by CodeRabbit slop detection for low-quality AI-generated
563- changes. Do not apply manually.
631+ - label : bug
632+ instructions : Apply when the issue reports incorrect behavior, failing tests,
633+ regressions, or broken automation.
634+ - label : enhancement
635+ instructions : Apply when the issue asks for new capability or meaningful improvement.
636+ - label : documentation
637+ instructions : Apply when the issue is primarily about docs, examples, guides,
638+ or agent instructions.
639+ - label : security
640+ instructions : Apply when the issue involves secrets, auth, privacy, dependency
641+ risk, or exploitability.
642+ - label : dependencies
643+ instructions : Apply when the issue is about package, SDK, runtime, or lockfile
644+ updates.
645+ - label : good-first-issue
646+ instructions : Apply only when the issue is small, well-scoped, and low-risk
647+ for a new contributor or agent.
564648 auto_apply_labels : true
0 commit comments