SERVER-138003ClosedFixed

Investigate apiStrict behavior for extension agg stages

DocumentSourceExtensionOptimizable::registerStage registers every extension stage with AllowedWithApiStrict::kAlways, but the built-in fallback parsers for $search, $vectorSearch and $listSearchIndexes (as of SERVER-137305) all use kNeverInVersion1. This means the same strict query can be accepted/rejected depending on whether the extension is loaded and its feature flag is enabled. One simple approach would be to change the default to kNeverInVersion1 (kInternal for internal extension stages

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10259.0.9
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-extensions-api