Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Follow-up fixes for v2 taxonomy (#4071)#4120

Merged
digitarald merged 1 commit into
mainfrom
digitarald/taxonomy-v2-followup
Mar 2, 2026
Merged

Follow-up fixes for v2 taxonomy (#4071)#4120
digitarald merged 1 commit into
mainfrom
digitarald/taxonomy-v2-followup

Conversation

@digitarald

Copy link
Copy Markdown
Contributor

Follow-up to #4071 addressing review comments.

Changes

  1. Add taxonomyVersion to telemetry — Adds a taxonomyVersion: 'v2' field to both the MSFT and internal promptCategorization telemetry events so dashboards can distinguish v1 vs v2 taxonomy data.

  2. Fix prompt/SafetyRules boundary — The system prompt string was rendered immediately before <SafetyRules /> with no separator, causing the taxonomy's last line to run together with safety rules. Adds a trailing \n\n.

  3. Consistent signals formatting — Kept signals rendering (used by scope definitions) but aligned bullet formatting (- Signals:) with the new - Keywords: style from v2.

cc @kevin-m-kent

- Add taxonomyVersion field to telemetry events to distinguish v1/v2 data
- Fix prompt/SafetyRules boundary by adding trailing newlines
- Consistent bullet formatting for signals in scope definitions
Copilot AI review requested due to automatic review settings March 2, 2026 19:01
@vs-code-engineering vs-code-engineering Bot added this to the March 2026 milestone Mar 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Follow-up to the v2 prompt categorization taxonomy work, ensuring telemetry can distinguish taxonomy versions and that the rendered classification prompt has correct formatting boundaries.

Changes:

  • Adds taxonomyVersion: 'v2' to both MSFT and internal promptCategorization telemetry events (and documents it in the GDPR block).
  • Fixes the system prompt / <SafetyRules /> boundary by appending a trailing separator (\n\n) to the composed system prompt string.
  • Aligns taxonomy prompt formatting by rendering signals as a bullet (- Signals:) to match - Keywords:.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/extension/prompts/node/panel/promptCategorization.tsx Adds a trailing separator to avoid taxonomy text running into <SafetyRules />.
src/extension/prompt/node/promptCategorizer.ts Adds and emits taxonomyVersion: 'v2' on both public and internal telemetry events.
src/extension/prompt/common/promptCategorizationTaxonomy.ts Updates prompt formatting so Signals uses the same bullet style as Keywords.

@kevin-m-kent

Copy link
Copy Markdown
Contributor

Looks good!

@digitarald digitarald added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit f470e85 Mar 2, 2026
23 checks passed
@digitarald digitarald deleted the digitarald/taxonomy-v2-followup branch March 2, 2026 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants