As a Wikipedia admin, I want Revise Tone's confidence threshold to be configurable via Community Configuration, so that my community can tune the tradeoff between suggestion quality and quantity to meet our wiki's needs.
Background
The Revise Tone task already has basic configuration available via: Special:CommunityConfiguration/GrowthSuggestedEdits.
This task adds a configurable confidence threshold so admins can raise or lower the default value (0.79).
Acceptance Criteria
1. Section visibility
Given I am on a wiki where Revise Tone is available,
When I visit Special:CommunityConfiguration/GrowthSuggestedEdits,
Then I see a section labeled Revise Tone.
Given I am on a wiki where Revise Tone is not available,
When I visit Special:CommunityConfiguration/GrowthSuggestedEdits,
Then no Revise Tone section is shown.
2. Confidence threshold field
Within the Revise Tone section there is a text field labeled Minimum required confidence score that:
- accepts only numeric values between 0 and 1 (same input logic as the existing Minimum required link score field)
- is pre-populated with the current configured value, defaulting to 0.79
- has the help text: Minimum confidence threshold for Revise Tone suggestions, expressed as a decimal between 0 and 1. A higher value means suggestions shown to the end user are more likely to be good quality, but fewer will be available. A lower value makes more suggestions available, but some may be lower quality.
3. Validation
Given I enter an invalid value (e.g. 1.5, -0.2, or non-numeric text),
When I attempt to save,
Then I see a validation error and the invalid value is not saved (matching Minimum required link score behavior).
4. Saving and applying
Given I save a valid new value,
Then the change is stored via Community Configuration (including a corresponding entry in the configuration page's history),
And the new threshold is applied to all Revise Tone task recommendations generated after the change.