Page MenuHomePhabricator

Enable Edit Check in the draft namespace
Closed, ResolvedPublic

Description

This task involves the work of enabling people to activate Edit Check in the draft namespace.

Deployment timing

Train that goes out Tuesday, 15 September 2026

Stories

  • As someone drafting content I intend to publish in the main namespace, I'd value knowing what – if any – potential issues might be latent within what I've done so far so that I can increase the likelihood of what I've invested time in creating remains on the wikis once published.
  • As an experienced volunteer/moderator motivated to ensure that people are successful in applying Wikipedia policies, I want people to be able to access policy feedback wherever they are publishing and/or developing contributions so that what they ultimately publish is of quality.

Requirements

  • Introduce a new config value that will enable volunteers to enable Edit Checks within the Draft namespace
    • By default, this configuration will be disabled
    • This config value could be set globally or defined on a per Check/Suggestion basis
  • If this configuration is enabled and Suggestion Mode is enabled (either wiki-wide or based on an individual enabling the Beta Feature), suggestions would appear were you to go back and edit a draft you'd published/saved at least one version of
  • All configuration values for the main namespace will be reflected/mirrored in the Draft namespace
    • Note: if/when this proves disruptive, we'll consider enabling Edit Check and Suggestion Mode to be configured differently depending on the namespace. Said another way: allowing config overrides in some way.

Done

Notes

  • How and when Checks are presented in this "mode" would likely need to differ from how they're done in public (e.g. main namespace) spaces
    • E.g. might there be an explicit action you take to "check" what you've written?

Background

The idea for this task emerged in response to @Chaotic_Enby noticing how many of the edits that caused the Possible AI-sourced citations filter to be activated happened in drafts.

This, combined with the attention @HNordeenWMF and the iOS Team has been lending to thinking about offering people safe spaces to experiment/get started with contributing opened up the space in my mind for this task/idea to emerge.


Derived Requirements

  1. When Edit Check and Suggestion Mode are enabled for the Draft namespace, users editing a previously saved draft with at least one version must be able to access the same configured suggestions available in the main namespace.
  2. Edit Check configuration for the main namespace must be reflected in the Draft namespace when Draft namespace support is enabled.
  3. Edit Check must remain unavailable in the Draft namespace by default when the Draft namespace configuration is disabled.

Test Steps

Test Case 1: Verify Edit Check suggestions appear when editing a saved draft

  1. Ensure Edit Check is enabled for the Draft namespace.
  2. Ensure Suggestion Mode is enabled.
  3. Create and save a draft in the Draft namespace.
  4. Create at least one saved version of the draft.
  5. Reopen the saved draft for editing.
  6. Verify that applicable Edit Check suggestions are presented.
  7. ✅❓❌⬜ AC1: Applicable Edit Check suggestions are available when editing a previously saved draft with at least one version.

Test Case 2: Verify Draft namespace reflects main namespace configuration

  1. Review the Edit Check and Suggestion Mode configuration enabled for the main namespace.
  2. Open a previously saved draft that is eligible for Edit Check.
  3. Verify that the applicable checks and suggestions correspond to the configuration available in the main namespace.
  4. ✅❓❌⬜ AC2: The Draft namespace reflects the applicable Edit Check configuration used by the main namespace.

Test Case 3: Verify Edit Check is disabled by default

  1. Ensure the Draft namespace Edit Check configuration is disabled.
  2. Open a previously saved draft with at least one version for editing.
  3. Verify that Edit Check suggestions are not presented in the Draft namespace.
  4. ✅❓❌⬜ AC3: Edit Check suggestions are unavailable in the Draft namespace when its configuration is disabled.

QA Results - TestWiki

ACStatusDetails
1✅T387897#12353043
2✅T387897#12353043
3✅T387897#12353043

Details

Due Date
Sep 16 2026, 7:00 AM

Event Timeline

Thanks a lot for putting me in the loop! Enabling it for drafts does make a lot of sense.

One thing I have in mind is with regards to Paste Check: when reviewing drafts on the English Wikipedia, I've seen quite a few that are translations of articles from another Wikipedia edition. In that case, it would make sense that editors might paste the content of the foreign language article in their draft before translating it. I wonder if Paste Check could detect that, maybe by checking the amount of wikicode? It wouldn't make sense to deactivate Paste Check completely for drafts, as copyright violations in drafts are also something I've seen quite often – sometimes directly copying text from a product's official website.

Drafts are a custom namespace, not part of the core mediawiki set, so I think we need to make this configurable.

We could:

  • add a site config for "namespaces that edit check will appear in"
  • add a per-check config for namespaces that check will appear in, in the config json

Probably makes the most sense to add it into the config json, because then the community can decide per-check how they want it to behave. Could also enhance that config so that it supports setting a default value for all checks that don't override it.

I wonder if Paste Check could detect that, maybe by checking the amount of wikicode?

The paste check filters out known sources (other VE instances, and known word processors that're detectable), so that should already be working.

This would be pretty easy to do if we review: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/1172669

However, we should decide whether we want to support per-namespace overrides for check config. (E.g. "when in Drafts, show X check to all users not just those with <100 edits")

Requirements

  • Introduce a new config value that will enable volunteers to enable Edit Checks within the Draft namespace
    • By default, this configuration will be disabled
    • This config value could be set globally or defined on a per Check/Suggestion basis
  • If this configuration is enabled and Suggestion Mode is enabled (either wiki-wide or based on an individual enabling the Beta Feature), suggestions would appear were you to go back and edit a draft you'd published/saved at least one version of
  • All configuration values for the main namespace will be reflected/mirrored in the Draft namespace
    • Note: if/when this proves disruptive, we'll consider enabling Edit Check and Suggestion Mode to be configured differently depending on the namespace. Said another way: allowing config overrides in some way.
ppelberg triaged this task as Medium priority.
ppelberg added a project: User-notice.
ppelberg set Due Date to Sep 16 2026, 7:00 AM.
ppelberg updated the task description. (Show Details)

Patch creates new option:

"extraNamespaces": {
    "draft": true,
    "user": false
}

It's this shape so that eventually we'll be able to have the value be a config-override instead without needing to change things. You can't currently use it to disable a check in the main namespace, though we could support that if we wanted.

Tech News draft:

Later this week, it will be possible for communities to configure [[mw:Special:MyLanguage/Help:Edit check|Edit Checks and Suggestions]] so that they are [[mw:Special:MyLanguage/Edit_check/Configuration#extraNamespaces|shown within additional namespaces]], such as a Draft: namespace. [[mw:Talk:VisualEditor/Suggestion Mode|Feedback is welcome]].

DLynch moved this task from Code review to QA on the Editing-team (FY2026-27 Q1 sprint 6) board.

The patch merged on Sept 18th, and will be on the train next week. Once it reaches a wiki it'll be able to make the relevant changes to the config. We haven't changed the default config at all.

e.g. Turning on all checks in draft, apart from addReference:

"*": {
    "extraNamespaces": {
        "draft": true
    }
},
"addReference": {
    "extraNamespaces": {}
}

@DLynch Thanks for adding the config! Validated Edit Check and Suggestion Mode are available in the Draft namespace when enabled, allowing users to receive applicable suggestions while editing previously saved drafts. The Draft namespace must reflect the configured Edit Check behavior of the main namespace and remain disabled by default, as seen in screenshots/videos. I will mark this as Resolved. Thanks for all your work!

UPDATE: after config was added.

Status: ✅ PASS
Environment: TestWiki
OS: macOS Tahoe 26.6.2
Browser: Chrome 153
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.wikipedia.org/w/index.php?title=MediaWiki:Editcheck-config.json&action=edit
https://test.wikipedia.org/w/index.php?title=Draft%3AT387897_test&veaction=editsource&action=edit

Test Steps

Test Case 1: Verify Edit Check suggestions appear when editing a saved draft

  1. Ensure Edit Check is enabled for the Draft namespace.
  2. Ensure Suggestion Mode is enabled.
  3. Create and save a draft in the Draft namespace.
  4. Create at least one saved version of the draft.
  5. Reopen the saved draft for editing.
  6. Verify that applicable Edit Check suggestions are presented.
  7. ✅ AC1: Applicable Edit Check suggestions are available when editing a previously saved draft with at least one version.
Draft: Edit SuggestionsConfig
2026-09-23_09-38-07.png (1,555×783 px, 169 KB)

Test Case 2: Verify Draft namespace reflects main namespace configuration

  1. Review the Edit Check and Suggestion Mode configuration enabled for the main namespace.
  2. Open a previously saved draft that is eligible for Edit Check.
  3. Verify that the applicable checks and suggestions correspond to the configuration available in the main namespace.
  4. ✅ AC2: The Draft namespace reflects the applicable Edit Check configuration used by the main namespace.
MainDraft
2026-09-23_11-49-57.png (1,632×1,199 px, 600 KB)
2026-09-23_11-50-42.png (1,549×821 px, 200 KB)

Test Case 3: Verify Edit Check is disabled by default

  1. Ensure the Draft namespace Edit Check configuration is disabled.
  2. Open a previously saved draft with at least one version for editing.
  3. Verify that Edit Check suggestions are not presented in the Draft namespace.
  4. ✅AC3: Edit Check suggestions are unavailable in the Draft namespace when its configuration is disabled.

That would be correct behavior given the current state of the config on test wiki, which does not have things enabled in the draft namespace.

This comment was removed by DLynch.
GMikesell-WMF edited projects, added: Verified; removed: Editing QA.
GMikesell-WMF updated the task description. (Show Details)

Hello @DLynch, I'm responding to the user notice tag; how should we word this announcement?

Hello @DLynch, I'm responding to the user notice tag; how should we word this announcement?

There's a draft up at T387897#12336181