You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/codex/prompts/pr-labels.md
+35-11Lines changed: 35 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ Inputs:
9
9
Task:
10
10
- Inspect the diff and changed files.
11
11
- Output JSON with a single top-level key: "labels" (array of strings).
12
-
- Include every label that applies. Only use labels from the allowed list.
12
+
- Only use labels from the allowed list.
13
+
- Prefer false negatives over false positives. If you are unsure, leave the label out.
14
+
- Return the smallest accurate set of labels for the PR's primary intent and primary surface area.
13
15
14
16
Allowed labels:
15
17
- documentation
@@ -26,20 +28,42 @@ Allowed labels:
26
28
- feature:tracing
27
29
- feature:voice
28
30
31
+
Important guidance:
32
+
-`documentation`, `project`, and `dependencies` are also derived deterministically elsewhere in the workflow. You may include them when the evidence is explicit, but do not stretch to infer them from weak signals.
33
+
- Use direct evidence from changed implementation files and the dominant intent of the diff. Do not add labels based only on tests, examples, comments, docstrings, imports, type plumbing, or shared helpers.
34
+
- Cross-cutting features often touch many adapters and support layers. Only add a `feature:*` label when that area is itself a primary user-facing surface of the PR, not when it receives incidental compatibility or parity updates.
35
+
- Mentions of a feature area in helper names, comments, tests, or trace metadata are not enough by themselves.
36
+
- Prefer the most general accurate feature label over a larger set of narrower labels. For broad runtime work, this usually means `feature:core`.
37
+
- A secondary `feature:*` label needs two things: a non-test implementation/docs change in that area, and evidence that the area is a user-facing outcome of the PR rather than support work for another feature.
38
+
29
39
Label rules:
30
40
- documentation: Documentation changes (docs/), or src/ changes that only modify comments/docstrings without behavior changes. If only comments/docstrings change in src/, do not add bug/enhancement.
31
41
- project: Any change to pyproject.toml.
32
42
- dependencies: Dependencies are added/removed/updated (pyproject.toml dependency sections or uv.lock changes).
33
-
- bug: src/ code changes that fix incorrect behavior.
34
-
- enhancement: src/ code changes that add or expand functionality.
35
-
- feature:chat-completions: Changes related to Chat Completions integration or conversion, including the litellm chat completions converter.
36
-
- feature:core: Core agent loop, tool calls, run pipeline, or other central runtime behavior. Do not use this if the changes are only in other feature areas (extensions, mcp, etc.). If both core and other areas changed, include both.
- feature:voice: Voice pipeline (stt -> llm -> tts) or related components.
43
+
- bug: The PR's primary intent is to correct existing incorrect behavior. Use only with strong evidence such as the title/body/tests clearly describing a fix, regression, crash, incorrect output, or restore/preserve behavior. Do not add `bug` for incidental hardening that accompanies a new feature.
44
+
- enhancement: The PR's primary intent is to add or expand functionality. Prefer `enhancement` for feature work even if the diff also contains some fixes or guardrails needed to support that feature.
45
+
- bug vs enhancement: Prefer exactly one of these. Include both only when the PR clearly contains two separate substantial changes and both are first-order outcomes.
46
+
- feature:chat-completions: Chat Completions support or conversion is a primary deliverable of the PR. Do not add it for a small compatibility guard or parity update in `chatcmpl_converter.py`.
47
+
- feature:core: Core agent loop, tool calls, run pipeline, or other central runtime behavior is a primary surface of the PR. For cross-cutting runtime changes, this is usually the single best feature label.
48
+
- feature:lite-llm: LiteLLM adapter/provider behavior is a primary deliverable of the PR.
49
+
- feature:mcp: MCP-specific behavior or APIs are a primary deliverable of the PR. Do not add it for incidental hosted/deferred tool plumbing touched by broader runtime work.
50
+
- feature:realtime: Realtime-specific behavior, API shape, or session semantics are a primary deliverable of the PR. Do not add it for small parity updates in realtime adapters.
51
+
- feature:sessions: Session or memory behavior is a primary deliverable of the PR. Do not add it for persistence updates that merely support a broader feature.
52
+
- feature:tracing: Tracing is a primary deliverable of the PR. Do not add it for trace naming or metadata changes that accompany another feature.
53
+
- feature:voice: Voice pipeline behavior is a primary deliverable of the PR.
54
+
55
+
Decision process:
56
+
1. Determine the PR's primary intent in one sentence from the title and dominant runtime diff.
57
+
2. Start with zero labels.
58
+
3. Add `bug` or `enhancement` conservatively.
59
+
4. Add only the minimum `feature:*` labels needed to describe the primary surface area.
60
+
5. Treat extra `feature:*` labels as guilty until proven necessary. Keep them only when the PR would feel mislabeled without them.
61
+
6. Re-check every label. Drop any label that is supported only by secondary edits, parity work, or touched files outside the PR's main focus.
62
+
63
+
Examples:
64
+
- If a new cross-cutting runtime feature touches Chat Completions, Realtime, Sessions, MCP, and tracing support code for parity, prefer `["enhancement","feature:core"]` over labeling every touched area.
65
+
- If a PR mainly adds a Responses/core capability and touches realtime or sessions files only to keep shared serialization, replay, or adapters in sync, do not add `feature:realtime` or `feature:sessions`.
66
+
- If a PR mainly fixes realtime transport behavior and also updates tests/docs, prefer `["bug","feature:realtime"]`.
0 commit comments