diff --git a/audits/README.md b/audits/README.md index a41a4e839f3..8f101727614 100644 --- a/audits/README.md +++ b/audits/README.md @@ -46,7 +46,7 @@ Every command below runs through the exec plugin from the repository root, after | `audits/catalog/name-backport*.json` | Descriptive names given to the legacy fixtures. | | `audits/catalog/legacy-corpus.json` | The preservation snapshot of the legacy corpus. | | `audits/catalog/publication-policy.json` | Labels the publisher applies. | -| `audits/catalog/discovery-plan.json`, `capability-catalog.json`, `coverage-plan.json` | The accepted capability baseline: discovery policy with reviewed assignments and omissions, the capabilities found at the baseline's commit, and the identities, minimums, bindings and exclusions later runs are held to. | +| `audits/catalog/discovery-plan.json`, `capability-catalog.json`, `coverage-plan.json` | The accepted capability baseline: discovery policy with reviewed assignments and omissions, the capabilities found at the baseline's commit, and the identities, minimums, bindings, exclusions and reviewed gaps later runs are held to. | | `core/src/test/resources/dev/morphia/test/generated/manifest.json` | Every case on the runner and every file the generated namespace owns. | | `core/src/test/java/dev/morphia/test/generated/` | Generated test classes; never edit them by hand. | diff --git a/audits/catalog/coverage-plan.json b/audits/catalog/coverage-plan.json index c63a80bb009..904b93a150d 100644 --- a/audits/catalog/coverage-plan.json +++ b/audits/catalog/coverage-plan.json @@ -5,49 +5,1624 @@ "sourceRoots" : [ "annotations/src/main/java", "core/src/main/java" ] }, "bindings" : [ { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$accumulator" + } + }, + "id" : "aggregation-expression-accumulator-accumulatorexpressions-accumulator", + "kind" : "TYPED", + "selector" : { + "member" : "accumulator", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$avg" + } + }, + "id" : "aggregation-expression-avg-accumulatorexpressions-avg", + "kind" : "TYPED", + "selector" : { + "member" : "avg", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$bsonSize" + } + }, + "id" : "aggregation-expression-bsonsize-datasizeexpressions-bsonsize", + "kind" : "TYPED", + "selector" : { + "member" : "bsonSize", + "owner" : "dev.morphia.aggregation.expressions.DataSizeExpressions" + } + }, { + "capability" : { + "facet" : "section-behavior-65e37ad46b63", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$bsonSize" + } + }, + "id" : "aggregation-expression-bsonsize-facet-65e37ad46b63-datasizeexpressions-bsonsize", + "kind" : "TYPED", + "selector" : { + "member" : "bsonSize", + "owner" : "dev.morphia.aggregation.expressions.DataSizeExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$concatArrays" + } + }, + "id" : "aggregation-expression-concatarrays-arrayexpressions-concatarrays", + "kind" : "TYPED", + "selector" : { + "member" : "concatArrays", + "owner" : "dev.morphia.aggregation.expressions.ArrayExpressions" + } + }, { + "capability" : { + "facet" : "section-behavior-convert-to-string-f88cada25d76", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "id" : "aggregation-expression-convert-facet-f88cada25d76-typeexpressions-convert", + "kind" : "TYPED", + "selector" : { + "member" : "convert", + "owner" : "dev.morphia.aggregation.expressions.TypeExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "id" : "aggregation-expression-convert-typeexpressions-convert", + "kind" : "TYPED", + "selector" : { + "member" : "convert", + "owner" : "dev.morphia.aggregation.expressions.TypeExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$dateToString" + } + }, + "id" : "aggregation-expression-datetostring-dateexpressions-datetostring", + "kind" : "TYPED", + "selector" : { + "member" : "dateToString", + "owner" : "dev.morphia.aggregation.expressions.DateExpressions" + } + }, { + "capability" : { + "facet" : "section-format-specifiers-cd1738c8df24", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$dateToString" + } + }, + "id" : "aggregation-expression-datetostring-facet-cd1738c8df24-dateexpressions-datetostring", + "kind" : "TYPED", + "selector" : { + "member" : "dateToString", + "owner" : "dev.morphia.aggregation.expressions.DateExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$first" + } + }, + "id" : "aggregation-expression-first-accumulatorexpressions-first", + "kind" : "TYPED", + "selector" : { + "member" : "first", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$firstN" + } + }, + "id" : "aggregation-expression-firstn-accumulatorexpressions-firstn", + "kind" : "TYPED", + "selector" : { + "member" : "firstN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : "section-syntax-05102744efbd", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$getField" + } + }, + "id" : "aggregation-expression-getfield-facet-05102744efbd-miscellaneous-getfield", + "kind" : "TYPED", + "selector" : { + "member" : "getField", + "owner" : "dev.morphia.aggregation.expressions.Miscellaneous" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$getField" + } + }, + "id" : "aggregation-expression-getfield-miscellaneous-getfield", + "kind" : "TYPED", + "selector" : { + "member" : "getField", + "owner" : "dev.morphia.aggregation.expressions.Miscellaneous" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$ifNull" + } + }, + "id" : "aggregation-expression-ifnull-conditionalexpressions-ifnull", + "kind" : "TYPED", + "selector" : { + "member" : "ifNull", + "owner" : "dev.morphia.aggregation.expressions.ConditionalExpressions" + } + }, { + "capability" : { + "facet" : "section-examples-multiple-input-expressions-111ebf9f4094", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$ifNull" + } + }, + "id" : "aggregation-expression-ifnull-facet-111ebf9f4094-conditionalexpressions-ifnull", + "kind" : "TYPED", + "selector" : { + "member" : "ifNull", + "owner" : "dev.morphia.aggregation.expressions.ConditionalExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$last" + } + }, + "id" : "aggregation-expression-last-accumulatorexpressions-last", + "kind" : "TYPED", + "selector" : { + "member" : "last", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$lastN" + } + }, + "id" : "aggregation-expression-lastn-accumulatorexpressions-lastn", + "kind" : "TYPED", + "selector" : { + "member" : "lastN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$max" + } + }, + "id" : "aggregation-expression-max-accumulatorexpressions-max", + "kind" : "TYPED", + "selector" : { + "member" : "max", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$maxN" + } + }, + "id" : "aggregation-expression-maxn-accumulatorexpressions-maxn", + "kind" : "TYPED", + "selector" : { + "member" : "maxN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$median" + } + }, + "id" : "aggregation-expression-median-mathexpressions-median", + "kind" : "TYPED", + "selector" : { + "member" : "median", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$mergeObjects" + } + }, + "id" : "aggregation-expression-mergeobjects-objectexpressions-mergeobjects", + "kind" : "TYPED", + "selector" : { + "member" : "mergeObjects", + "owner" : "dev.morphia.aggregation.expressions.ObjectExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$min" + } + }, + "id" : "aggregation-expression-min-accumulatorexpressions-min", + "kind" : "TYPED", + "selector" : { + "member" : "min", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$minN" + } + }, + "id" : "aggregation-expression-minn-accumulatorexpressions-minn", + "kind" : "TYPED", + "selector" : { + "member" : "minN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$percentile" + } + }, + "id" : "aggregation-expression-percentile-mathexpressions-percentile", + "kind" : "TYPED", + "selector" : { + "member" : "percentile", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$setUnion" + } + }, + "id" : "aggregation-expression-setunion-setexpressions-setunion", + "kind" : "TYPED", + "selector" : { + "member" : "setUnion", + "owner" : "dev.morphia.aggregation.expressions.SetExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$stdDevPop" + } + }, + "id" : "aggregation-expression-stddevpop-windowexpressions-stddevpop", + "kind" : "TYPED", + "selector" : { + "member" : "stdDevPop", + "owner" : "dev.morphia.aggregation.expressions.WindowExpressions" + } + }, { + "capability" : { + "facet" : "section-behavior-65e37ad46b63", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$toString" + } + }, + "id" : "aggregation-expression-tostring-facet-65e37ad46b63-stringexpressions-tostring", + "kind" : "TYPED", + "selector" : { + "member" : "toString", + "owner" : "dev.morphia.aggregation.expressions.StringExpressions" + } + }, { + "capability" : { + "facet" : "section-behavior-65e37ad46b63", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$toString" + } + }, + "id" : "aggregation-expression-tostring-facet-65e37ad46b63-typeexpressions-tostring", + "kind" : "TYPED", + "selector" : { + "member" : "toString", + "owner" : "dev.morphia.aggregation.expressions.TypeExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$toString" + } + }, + "id" : "aggregation-expression-tostring-stringexpressions-tostring", + "kind" : "TYPED", + "selector" : { + "member" : "toString", + "owner" : "dev.morphia.aggregation.expressions.StringExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$toString" + } + }, + "id" : "aggregation-expression-tostring-typeexpressions-tostring", + "kind" : "TYPED", + "selector" : { + "member" : "toString", + "owner" : "dev.morphia.aggregation.expressions.TypeExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$accumulator" + } + }, + "id" : "group-accumulator-accumulator-accumulatorexpressions-accumulator", + "kind" : "TYPED", + "selector" : { + "member" : "accumulator", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$addToSet" + } + }, + "id" : "group-accumulator-addtoset-accumulatorexpressions-addtoset", + "kind" : "TYPED", + "selector" : { + "member" : "addToSet", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$avg" + } + }, + "id" : "group-accumulator-avg-accumulatorexpressions-avg", + "kind" : "TYPED", + "selector" : { + "member" : "avg", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$bottom" + } + }, + "id" : "group-accumulator-bottom-accumulatorexpressions-bottom", + "kind" : "TYPED", + "selector" : { + "member" : "bottom", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$bottomN" + } + }, + "id" : "group-accumulator-bottomn-accumulatorexpressions-bottomn", + "kind" : "TYPED", + "selector" : { + "member" : "bottomN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$count" + } + }, + "id" : "group-accumulator-count-accumulatorexpressions-count", + "kind" : "TYPED", + "selector" : { + "member" : "count", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$first" + } + }, + "id" : "group-accumulator-first-accumulatorexpressions-first", + "kind" : "TYPED", + "selector" : { + "member" : "first", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$firstN" + } + }, + "id" : "group-accumulator-firstn-accumulatorexpressions-firstn", + "kind" : "TYPED", + "selector" : { + "member" : "firstN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$last" + } + }, + "id" : "group-accumulator-last-accumulatorexpressions-last", + "kind" : "TYPED", + "selector" : { + "member" : "last", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$lastN" + } + }, + "id" : "group-accumulator-lastn-accumulatorexpressions-lastn", + "kind" : "TYPED", + "selector" : { + "member" : "lastN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$max" + } + }, + "id" : "group-accumulator-max-accumulatorexpressions-max", + "kind" : "TYPED", + "selector" : { + "member" : "max", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$maxN" + } + }, + "id" : "group-accumulator-maxn-accumulatorexpressions-maxn", + "kind" : "TYPED", + "selector" : { + "member" : "maxN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$median" + } + }, + "id" : "group-accumulator-median-mathexpressions-median", + "kind" : "TYPED", + "selector" : { + "member" : "median", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$mergeObjects" + } + }, + "id" : "group-accumulator-mergeobjects-objectexpressions-mergeobjects", + "kind" : "TYPED", + "selector" : { + "member" : "mergeObjects", + "owner" : "dev.morphia.aggregation.expressions.ObjectExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$min" + } + }, + "id" : "group-accumulator-min-accumulatorexpressions-min", + "kind" : "TYPED", + "selector" : { + "member" : "min", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$minN" + } + }, + "id" : "group-accumulator-minn-accumulatorexpressions-minn", + "kind" : "TYPED", + "selector" : { + "member" : "minN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$percentile" + } + }, + "id" : "group-accumulator-percentile-mathexpressions-percentile", + "kind" : "TYPED", + "selector" : { + "member" : "percentile", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$push" + } + }, + "id" : "group-accumulator-push-accumulatorexpressions-push", + "kind" : "TYPED", + "selector" : { + "member" : "push", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$stdDevPop" + } + }, + "id" : "group-accumulator-stddevpop-windowexpressions-stddevpop", + "kind" : "TYPED", + "selector" : { + "member" : "stdDevPop", + "owner" : "dev.morphia.aggregation.expressions.WindowExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$stdDevSamp" + } + }, + "id" : "group-accumulator-stddevsamp-windowexpressions-stddevsamp", + "kind" : "TYPED", + "selector" : { + "member" : "stdDevSamp", + "owner" : "dev.morphia.aggregation.expressions.WindowExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$sum" + } + }, + "id" : "group-accumulator-sum-accumulatorexpressions-sum", + "kind" : "TYPED", + "selector" : { + "member" : "sum", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$top" + } + }, + "id" : "group-accumulator-top-accumulatorexpressions-top", + "kind" : "TYPED", + "selector" : { + "member" : "top", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$topN" + } + }, + "id" : "group-accumulator-topn-accumulatorexpressions-topn", + "kind" : "TYPED", + "selector" : { + "member" : "topN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$densify" + } + }, + "id" : "pipeline-stage-densify-densify-densify", + "kind" : "TYPED", + "selector" : { + "member" : "densify", + "owner" : "dev.morphia.aggregation.stages.Densify" + } + }, { + "capability" : { + "facet" : "section-behavior-and-restrictions-field-restrictions-444483791d70", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$densify" + } + }, + "id" : "pipeline-stage-densify-facet-444483791d70-densify-densify", + "kind" : "TYPED", + "selector" : { + "member" : "densify", + "owner" : "dev.morphia.aggregation.stages.Densify" + } + }, { + "capability" : { + "facet" : "section-examples-interpolate-identical-values-in-different-partitions-32901c9ce91a", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$fill" + } + }, + "id" : "pipeline-stage-fill-facet-32901c9ce91a-fill-fill", + "kind" : "TYPED", + "selector" : { + "member" : "fill", + "owner" : "dev.morphia.aggregation.stages.Fill" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$fill" + } + }, + "id" : "pipeline-stage-fill-fill-fill", + "kind" : "TYPED", + "selector" : { + "member" : "fill", + "owner" : "dev.morphia.aggregation.stages.Fill" + } + }, { + "capability" : { + "facet" : "section-considerations-accumulator-operator-d085bdf1a820", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$group" + } + }, + "id" : "pipeline-stage-group-facet-d085bdf1a820-group-group", + "kind" : "TYPED", + "selector" : { + "member" : "group", + "owner" : "dev.morphia.aggregation.stages.Group" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$group" + } + }, + "id" : "pipeline-stage-group-group-group", + "kind" : "TYPED", + "selector" : { + "member" : "group", + "owner" : "dev.morphia.aggregation.stages.Group" + } + }, { + "capability" : { + "facet" : "section-syntax-correlated-subqueries-using-concise-syntax-2bf9ea10f597", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$lookup" + } + }, + "id" : "pipeline-stage-lookup-facet-2bf9ea10f597-lookup-pipeline", + "kind" : "TYPED", + "selector" : { + "member" : "pipeline", + "owner" : "dev.morphia.aggregation.stages.Lookup" + } + }, { + "capability" : { + "facet" : "section-examples-perform-a-concise-correlated-subquery-with-lookup-fa69f50a291a", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$lookup" + } + }, + "id" : "pipeline-stage-lookup-facet-fa69f50a291a-lookup-pipeline", + "kind" : "TYPED", + "selector" : { + "member" : "pipeline", + "owner" : "dev.morphia.aggregation.stages.Lookup" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$lookup" + } + }, + "id" : "pipeline-stage-lookup-lookup-lookup", + "kind" : "TYPED", + "selector" : { + "member" : "lookup", + "owner" : "dev.morphia.aggregation.stages.Lookup" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$lookup" + } + }, + "id" : "pipeline-stage-lookup-lookup-pipeline", + "kind" : "TYPED", + "selector" : { + "member" : "pipeline", + "owner" : "dev.morphia.aggregation.stages.Lookup" + } + }, { + "capability" : { + "facet" : "section-examples-use-variables-to-customize-the-merge-use-variables-defined-in-the-aggre-deb3897cb957", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$merge" + } + }, + "id" : "pipeline-stage-merge-facet-deb3897cb957-aggregationoptions-let", + "kind" : "TYPED", + "selector" : { + "member" : "let", + "owner" : "dev.morphia.aggregation.AggregationOptions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$merge" + } + }, + "id" : "pipeline-stage-merge-merge-merge", + "kind" : "TYPED", + "selector" : { + "member" : "merge", + "owner" : "dev.morphia.aggregation.stages.Merge" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$out" + } + }, + "id" : "pipeline-stage-out-out-out", + "kind" : "TYPED", + "selector" : { + "member" : "out", + "owner" : "dev.morphia.aggregation.stages.Out" + } + }, { + "capability" : { + "facet" : "section-output-cec9db6fe2d6", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$planCacheStats" + } + }, + "id" : "pipeline-stage-plancachestats-facet-cec9db6fe2d6-plancachestats-plancachestats", + "kind" : "TYPED", + "selector" : { + "member" : "planCacheStats", + "owner" : "dev.morphia.aggregation.stages.PlanCacheStats" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$planCacheStats" + } + }, + "id" : "pipeline-stage-plancachestats-plancachestats-plancachestats", + "kind" : "TYPED", + "selector" : { + "member" : "planCacheStats", + "owner" : "dev.morphia.aggregation.stages.PlanCacheStats" + } + }, { + "capability" : { + "facet" : "section-explain-output-01b439c107f5", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$setWindowFields" + } + }, + "id" : "pipeline-stage-setwindowfields-facet-01b439c107f5-setwindowfields-setwindowfields", + "kind" : "TYPED", + "selector" : { + "member" : "setWindowFields", + "owner" : "dev.morphia.aggregation.stages.SetWindowFields" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$setWindowFields" + } + }, + "id" : "pipeline-stage-setwindowfields-setwindowfields-setwindowfields", + "kind" : "TYPED", + "selector" : { + "member" : "setWindowFields", + "owner" : "dev.morphia.aggregation.stages.SetWindowFields" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_MODIFIER", + "product" : "mongodb", + "token" : "$position" + } + }, + "id" : "push-modifier-position", + "kind" : "TYPED", + "selector" : { + "member" : "position", + "owner" : "dev.morphia.query.PushOptions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_MODIFIER", + "product" : "mongodb", + "token" : "$slice" + } + }, + "id" : "push-modifier-slice", + "kind" : "TYPED", + "selector" : { + "member" : "slice", + "owner" : "dev.morphia.query.PushOptions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_MODIFIER", + "product" : "mongodb", + "token" : "$sort" + } + }, + "id" : "push-modifier-sort", + "kind" : "TYPED", + "selector" : { + "member" : "sort", + "owner" : "dev.morphia.query.PushOptions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PREDICATE", + "product" : "mongodb", + "token" : "$elemMatch" + } + }, + "id" : "query-predicate-elemmatch-filters-elemmatch", + "kind" : "TYPED", + "selector" : { + "member" : "elemMatch", + "owner" : "dev.morphia.query.filters.Filters" + } + }, { + "capability" : { + "facet" : "section-examples-extend-regex-options-to-match-characters-outside-of-ascii-fe70f91967e1", + "key" : { + "context" : "QUERY_PREDICATE", + "product" : "mongodb", + "token" : "$regex" + } + }, + "id" : "query-predicate-regex-facet-fe70f91967e1-filters-regex", + "kind" : "TYPED", + "selector" : { + "member" : "regex", + "owner" : "dev.morphia.query.filters.Filters" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PREDICATE", + "product" : "mongodb", + "token" : "$regex" + } + }, + "id" : "query-predicate-regex-filters-regex", + "kind" : "TYPED", + "selector" : { + "member" : "regex", + "owner" : "dev.morphia.query.filters.Filters" + } + }, { + "capability" : { + "facet" : "section-behavior-memory-limits-4128eb35ae26", + "key" : { + "context" : "QUERY_PREDICATE", + "product" : "mongodb", + "token" : "$text" + } + }, + "id" : "query-predicate-text-facet-4128eb35ae26-filters-text", + "kind" : "TYPED", + "selector" : { + "member" : "text", + "owner" : "dev.morphia.query.filters.Filters" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PREDICATE", + "product" : "mongodb", + "token" : "$text" + } + }, + "id" : "query-predicate-text-filters-text", + "kind" : "TYPED", + "selector" : { + "member" : "text", + "owner" : "dev.morphia.query.filters.Filters" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PROJECTION", + "product" : "mongodb", + "token" : "$meta" + } + }, + "id" : "query-projection-meta-meta-indexkey", + "kind" : "TYPED", + "selector" : { + "member" : "indexKey", + "owner" : "dev.morphia.query.Meta" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PROJECTION", + "product" : "mongodb", + "token" : "$meta" + } + }, + "id" : "query-projection-meta-meta-searchhighlights", + "kind" : "TYPED", + "selector" : { + "member" : "searchHighlights", + "owner" : "dev.morphia.query.Meta" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PROJECTION", + "product" : "mongodb", + "token" : "$meta" + } + }, + "id" : "query-projection-meta-meta-searchscore", + "kind" : "TYPED", + "selector" : { + "member" : "searchScore", + "owner" : "dev.morphia.query.Meta" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PROJECTION", + "product" : "mongodb", + "token" : "$meta" + } + }, + "id" : "query-projection-meta-meta-textscore", + "kind" : "TYPED", + "selector" : { + "member" : "textScore", + "owner" : "dev.morphia.query.Meta" + } + }, { "capability" : { "facet" : null, "key" : { "context" : "UPDATE_MODIFIER", "product" : "mongodb", - "token" : "$position" + "token" : "$each" + } + }, + "id" : "update-modifier-each-updateoperators-addtoset", + "kind" : "TYPED", + "selector" : { + "member" : "addToSet", + "owner" : "dev.morphia.query.updates.UpdateOperators" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_MODIFIER", + "product" : "mongodb", + "token" : "$each" + } + }, + "id" : "update-modifier-each-updateoperators-push", + "kind" : "TYPED", + "selector" : { + "member" : "push", + "owner" : "dev.morphia.query.updates.UpdateOperators" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_OPERATOR", + "product" : "mongodb", + "token" : "$addToSet" + } + }, + "id" : "update-operator-addtoset-updateoperators-addtoset", + "kind" : "TYPED", + "selector" : { + "member" : "addToSet", + "owner" : "dev.morphia.query.updates.UpdateOperators" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "UPDATE_OPERATOR", + "product" : "mongodb", + "token" : "$push" + } + }, + "id" : "update-operator-push-updateoperators-push", + "kind" : "TYPED", + "selector" : { + "member" : "push", + "owner" : "dev.morphia.query.updates.UpdateOperators" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$addToSet" + } + }, + "id" : "window-function-addtoset-accumulatorexpressions-addtoset", + "kind" : "TYPED", + "selector" : { + "member" : "addToSet", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$avg" + } + }, + "id" : "window-function-avg-accumulatorexpressions-avg", + "kind" : "TYPED", + "selector" : { + "member" : "avg", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$bottom" + } + }, + "id" : "window-function-bottom-accumulatorexpressions-bottom", + "kind" : "TYPED", + "selector" : { + "member" : "bottom", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$bottomN" + } + }, + "id" : "window-function-bottomn-accumulatorexpressions-bottomn", + "kind" : "TYPED", + "selector" : { + "member" : "bottomN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$count" + } + }, + "id" : "window-function-count-accumulatorexpressions-count", + "kind" : "TYPED", + "selector" : { + "member" : "count", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$first" + } + }, + "id" : "window-function-first-accumulatorexpressions-first", + "kind" : "TYPED", + "selector" : { + "member" : "first", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$firstN" + } + }, + "id" : "window-function-firstn-accumulatorexpressions-firstn", + "kind" : "TYPED", + "selector" : { + "member" : "firstN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$last" + } + }, + "id" : "window-function-last-accumulatorexpressions-last", + "kind" : "TYPED", + "selector" : { + "member" : "last", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$lastN" + } + }, + "id" : "window-function-lastn-accumulatorexpressions-lastn", + "kind" : "TYPED", + "selector" : { + "member" : "lastN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$max" + } + }, + "id" : "window-function-max-accumulatorexpressions-max", + "kind" : "TYPED", + "selector" : { + "member" : "max", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$maxN" + } + }, + "id" : "window-function-maxn-accumulatorexpressions-maxn", + "kind" : "TYPED", + "selector" : { + "member" : "maxN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$median" + } + }, + "id" : "window-function-median-mathexpressions-median", + "kind" : "TYPED", + "selector" : { + "member" : "median", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$mergeObjects" } }, - "id" : "push-modifier-position", + "id" : "window-function-mergeobjects-objectexpressions-mergeobjects", "kind" : "TYPED", "selector" : { - "member" : "position", - "owner" : "dev.morphia.query.PushOptions" + "member" : "mergeObjects", + "owner" : "dev.morphia.aggregation.expressions.ObjectExpressions" } }, { "capability" : { "facet" : null, "key" : { - "context" : "UPDATE_MODIFIER", + "context" : "WINDOW_FUNCTION", "product" : "mongodb", - "token" : "$slice" + "token" : "$min" } }, - "id" : "push-modifier-slice", + "id" : "window-function-min-accumulatorexpressions-min", "kind" : "TYPED", "selector" : { - "member" : "slice", - "owner" : "dev.morphia.query.PushOptions" + "member" : "min", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" } }, { "capability" : { "facet" : null, "key" : { - "context" : "UPDATE_MODIFIER", + "context" : "WINDOW_FUNCTION", "product" : "mongodb", - "token" : "$sort" + "token" : "$minN" } }, - "id" : "push-modifier-sort", + "id" : "window-function-minn-accumulatorexpressions-minn", "kind" : "TYPED", "selector" : { - "member" : "sort", - "owner" : "dev.morphia.query.PushOptions" + "member" : "minN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$percentile" + } + }, + "id" : "window-function-percentile-mathexpressions-percentile", + "kind" : "TYPED", + "selector" : { + "member" : "percentile", + "owner" : "dev.morphia.aggregation.expressions.MathExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$push" + } + }, + "id" : "window-function-push-accumulatorexpressions-push", + "kind" : "TYPED", + "selector" : { + "member" : "push", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$stdDevPop" + } + }, + "id" : "window-function-stddevpop-windowexpressions-stddevpop", + "kind" : "TYPED", + "selector" : { + "member" : "stdDevPop", + "owner" : "dev.morphia.aggregation.expressions.WindowExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$stdDevSamp" + } + }, + "id" : "window-function-stddevsamp-windowexpressions-stddevsamp", + "kind" : "TYPED", + "selector" : { + "member" : "stdDevSamp", + "owner" : "dev.morphia.aggregation.expressions.WindowExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$sum" + } + }, + "id" : "window-function-sum-accumulatorexpressions-sum", + "kind" : "TYPED", + "selector" : { + "member" : "sum", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$top" + } + }, + "id" : "window-function-top-accumulatorexpressions-top", + "kind" : "TYPED", + "selector" : { + "member" : "top", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" + } + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$topN" + } + }, + "id" : "window-function-topn-accumulatorexpressions-topn", + "kind" : "TYPED", + "selector" : { + "member" : "topN", + "owner" : "dev.morphia.aggregation.expressions.AccumulatorExpressions" } } ], "contexts" : [ { @@ -2834,6 +4409,187 @@ }, "reason" : "a Queryable Encryption operator, usable only on encrypted fields through the client-side encryption setup; out of Morphia's scope" } ], + "missing" : [ { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$bottom" + } + }, + "reason" : "AccumulatorExpressions.bottom writes the accumulator's output field. The $bottom expression operator takes the array to rank as input." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$bottomN" + } + }, + "reason" : "AccumulatorExpressions.bottomN writes the accumulator's output field. The $bottomN expression operator takes the array to rank as input." + }, { + "capability" : { + "facet" : "section-behavior-convert-to-array-ba04d6ce2c9e", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "reason" : "ConvertType has no array target. MongoDB 8.3 converts strings and other inputs to arrays with to: \"array\"." + }, { + "capability" : { + "facet" : "section-behavior-convert-to-bindata-convert-an-object-to-bindata-4f7b29fcaed2", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "reason" : "ConvertType has no binData target. MongoDB 9.0 converts an object to its raw BSON as binData." + }, { + "capability" : { + "facet" : "section-behavior-convert-to-object-ed7abbe03b50", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "reason" : "ConvertType has no object target. MongoDB 8.3 converts strings and other inputs to objects with to: \"object\"." + }, { + "capability" : { + "facet" : "section-syntax-05102744efbd", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "reason" : "ConvertExpression has no format option. MongoDB 8.3 requires format when converting between binData and string." + }, { + "capability" : { + "facet" : "section-syntax-binary-subtypes-2a132119fd41", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$convert" + } + }, + "reason" : "ConvertType has no binData target with a subtype. $convert takes to: {type: \"binData\", subtype: n} for binary subtypes." + }, { + "capability" : { + "facet" : "section-syntax-05102744efbd", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$filter" + } + }, + "reason" : "FilterExpression has no arrayIndexAs option. MongoDB 8.3 names the element's index variable with arrayIndexAs." + }, { + "capability" : { + "facet" : "section-syntax-05102744efbd", + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$map" + } + }, + "reason" : "MapExpression has no arrayIndexAs option. MongoDB 8.3 names the element's index variable with arrayIndexAs." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$top" + } + }, + "reason" : "AccumulatorExpressions.top writes the accumulator's output field. The $top expression operator takes the array to rank as input." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "AGGREGATION_EXPRESSION", + "product" : "mongodb", + "token" : "$topN" + } + }, + "reason" : "AccumulatorExpressions.topN writes the accumulator's output field. The $topN expression operator takes the array to rank as input." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$concatArrays" + } + }, + "reason" : "ArrayExpressions.concatArrays always writes an array of its arguments. As an accumulator, $concatArrays takes one array expression, written without the array." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "GROUP_ACCUMULATOR", + "product" : "mongodb", + "token" : "$setUnion" + } + }, + "reason" : "SetExpressions.setUnion always writes an array of its arguments. As an accumulator, $setUnion takes one array expression, written without the array." + }, { + "capability" : { + "facet" : "section-definition-syntax-f03d636e3559", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$currentOp" + } + }, + "reason" : "CurrentOp has no targetAllNodes option. MongoDB 7.1 reports every node of a sharded cluster with targetAllNodes." + }, { + "capability" : { + "facet" : "section-syntax-05102744efbd", + "key" : { + "context" : "PIPELINE_STAGE", + "product" : "mongodb", + "token" : "$out" + } + }, + "reason" : "Out has no timeseries options. $out can create a time series collection, with bucketMaxSpanSeconds and bucketRoundingSeconds since MongoDB 6.3." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "QUERY_PROJECTION", + "product" : "mongodb", + "token" : "$elemMatch" + } + }, + "reason" : "FindOptions has no elemMatch projection. Filters.elemMatch is the query predicate; a find can't project the first matching array element with $elemMatch." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$concatArrays" + } + }, + "reason" : "ArrayExpressions.concatArrays always writes an array of its arguments. As a window function, $concatArrays takes one array expression, written without the array." + }, { + "capability" : { + "facet" : null, + "key" : { + "context" : "WINDOW_FUNCTION", + "product" : "mongodb", + "token" : "$setUnion" + } + }, + "reason" : "SetExpressions.setUnion always writes an array of its arguments. As a window function, $setUnion takes one array expression, written without the array." + } ], "omissions" : [ ], "product" : "mongodb", "schemaVersion" : 1 diff --git a/audits/src/main/kotlin/dev/morphia/audits/coverage/ContractValidation.kt b/audits/src/main/kotlin/dev/morphia/audits/coverage/ContractValidation.kt index b9f9f453164..b0ed3e792a5 100644 --- a/audits/src/main/kotlin/dev/morphia/audits/coverage/ContractValidation.kt +++ b/audits/src/main/kotlin/dev/morphia/audits/coverage/ContractValidation.kt @@ -318,6 +318,21 @@ internal object ContractValidation { it.capability.id(), ) } + unique(plan.missing.map { it.capability }, "reviewed gaps") + val excluded = plan.exclusions.map { it.capability }.toSet() + val bound = plan.bindings.map { it.capability }.toSet() + plan.missing.forEach { + ref(it.capability) + check( + it.capability in bindingRefs && + it.reason.isNotBlank() && + it.capability !in excluded && + it.capability !in bound, + "INVALID_REVIEWED_GAP", + "A reviewed gap needs a current target and rationale, and no binding or exclusion", + it.capability.id(), + ) + } unique(plan.omissions.map { it.capability }, "expected omissions") plan.omissions.forEach { ref(it.capability) diff --git a/audits/src/main/kotlin/dev/morphia/audits/coverage/Contracts.kt b/audits/src/main/kotlin/dev/morphia/audits/coverage/Contracts.kt index ead1ea7c22d..3eca1497290 100644 --- a/audits/src/main/kotlin/dev/morphia/audits/coverage/Contracts.kt +++ b/audits/src/main/kotlin/dev/morphia/audits/coverage/Contracts.kt @@ -179,6 +179,16 @@ data class ApiBinding( data class PolicyExclusion(val capability: CapabilityRef, val reason: String) +/** + * A reviewed gap: a capability, usually a feature facet, that Morphia's tagged API claims but + * cannot express, such as an option its builder lacks. It reports [ApiState.MISSING_TYPED_API] with + * the reason instead of staying [ApiState.UNKNOWN_MAPPING]. + */ +data class ReviewedGap(val capability: CapabilityRef, val reason: String) + +/** The prefix of the coverage note that carries a [ReviewedGap]'s reason. */ +const val REVIEWED_GAP = "Reviewed gap: " + data class ExpectedOmission( val capability: CapabilityRef, val reason: String, @@ -193,6 +203,7 @@ data class CoveragePlan( val bindings: List, val exclusions: List, val omissions: List, + val missing: List = emptyList(), ) enum class ReportState { @@ -231,6 +242,12 @@ enum class AnnotationState { AMBIGUOUS, UNKNOWN_EXPECTATION, NOT_APPLICABLE, + /** + * The declaration also serves an earlier capability, or one whose introduction is unknown, such + * as an accumulator factory that later became an expression, or the base of a facet. One + * annotation can't carry a minimum per context, so the earliest one decides it. + */ + LATER_VARIANT, } enum class CheckState { diff --git a/audits/src/main/kotlin/dev/morphia/audits/coverage/CoverageComparison.kt b/audits/src/main/kotlin/dev/morphia/audits/coverage/CoverageComparison.kt index 90d400afe5c..4cc989e9344 100644 --- a/audits/src/main/kotlin/dev/morphia/audits/coverage/CoverageComparison.kt +++ b/audits/src/main/kotlin/dev/morphia/audits/coverage/CoverageComparison.kt @@ -129,8 +129,10 @@ object CoverageComparison { ) } val configured = plan.bindings.filter { it.capability == ref } + // A reviewed gap overrides what the tags would infer. + val gap = plan.missing.firstOrNull { it.capability == ref } val inferred = - if (configured.isEmpty() && ref.facet == null) + if (configured.isEmpty() && ref.facet == null && gap == null) inferBindings(ref, active, plan, api, byContext) else emptyList() val bindings = configured + inferred @@ -164,7 +166,18 @@ object CoverageComparison { } } .toSet() - claims.size > 1 + // A selector may claim operators the manual documents only in + // other contexts, as a push that takes a list writes $each. Another + // operator of this context, one the manual doesn't document, or + // claims that name other tokens only, leave its capability + // undecided. An untagged member, such as a builder option, claims + // nothing. + claims.isNotEmpty() && ref.key.token !in claims || + (claims - ref.key.token).any { other -> + val documented = active.filter { it.key.token == other } + documented.isEmpty() || + documented.any { it.key.context == ref.key.context } + } } .keys val mappingProblems = @@ -197,6 +210,7 @@ object CoverageComparison { "Unresolved API binding: ${it.id} (${it.selector.owner}#${it.selector.member})" } if (exclusion != null) notes += "Policy exclusion: ${exclusion.reason}" + if (gap != null) notes += REVIEWED_GAP + gap.reason if (!observed && omitted != null) notes += "Reviewed omission: ${omitted.reason}" val apiState = when { @@ -207,6 +221,7 @@ object CoverageComparison { stale.isNotEmpty() -> ApiState.INVALID_BINDING typed.isNotEmpty() -> ApiState.TYPED_PRESENT raw.isNotEmpty() -> ApiState.RAW_BSON_ONLY + gap != null -> ApiState.MISSING_TYPED_API tokenClaim -> ApiState.UNKNOWN_MAPPING else -> ApiState.MISSING_TYPED_API } @@ -302,7 +317,7 @@ object CoverageComparison { ) ), contexts = health, - capabilities = rows, + capabilities = laterVariants(rows), problems = (health.flatMap { it.problems } + bindingProblems) .distinct() @@ -326,6 +341,49 @@ object CoverageComparison { else -> emptySet() } + /** + * A declaration serving several capabilities carries the earliest one's annotation. A missing + * or earlier annotation for a later one, when another capability the declaration serves is + * earlier or of unknown introduction, reports [AnnotationState.LATER_VARIANT]; an annotation + * after the capability's own introduction stays a finding. A facet's base counts only when the + * declaration serves it too: a method only the facet uses carries the facet's version. + */ + private fun laterVariants(rows: List): List { + val served = + rows + .flatMap { row -> row.annotations.map { it.declaration to row } } + .groupBy({ it.first }) { it.second } + fun earlier(other: CapabilityCoverage, row: CapabilityCoverage): Boolean { + val version = other.introduction.version + return other.introduction.state != IntroductionState.EXPLICIT || + version == null || + version < row.introduction.version!! + } + return rows.map { row -> + if (row.introduction.state != IntroductionState.EXPLICIT) return@map row + row.copy( + annotations = + row.annotations.map { check -> + val others = served[check.declaration].orEmpty().filter { it !== row } + // Only a missing or earlier annotation fits an earlier capability; a + // minimum after this one's introduction is wrong whatever else it serves. + val minimum = + check.serverRequirements.firstOrNull()?.let { + VersionRange.parse(it.value)?.minimum + } + val earlierAnnotation = + check.state == AnnotationState.MISSING || + check.state == AnnotationState.INCORRECT_MINIMUM && + minimum != null && + minimum < row.introduction.version!! + if (earlierAnnotation && others.any { earlier(it, row) }) + check.copy(state = AnnotationState.LATER_VARIANT) + else check + } + ) + } + } + private fun inferBindings( ref: CapabilityRef, active: List, @@ -449,6 +507,7 @@ object CoverageComparison { api = plan.api.copy(sourceRoots = plan.api.sourceRoots.sorted()), bindings = plan.bindings.sortedBy { it.id }, exclusions = plan.exclusions.sortedBy { it.capability.id() }, + missing = plan.missing.sortedBy { it.capability.id() }, omissions = plan.omissions .sortedBy { it.capability.id() } diff --git a/audits/src/main/kotlin/dev/morphia/audits/publish/Publisher.kt b/audits/src/main/kotlin/dev/morphia/audits/publish/Publisher.kt index 97752a6d9b3..1b2004058d9 100644 --- a/audits/src/main/kotlin/dev/morphia/audits/publish/Publisher.kt +++ b/audits/src/main/kotlin/dev/morphia/audits/publish/Publisher.kt @@ -5,6 +5,7 @@ import dev.morphia.audits.coverage.ApiState import dev.morphia.audits.coverage.AuditJson import dev.morphia.audits.coverage.CapabilityCoverage import dev.morphia.audits.coverage.CoverageReport +import dev.morphia.audits.coverage.REVIEWED_GAP import dev.morphia.audits.coverage.ReportState import java.nio.file.Files import java.nio.file.Path @@ -308,13 +309,21 @@ class Publisher( private fun missingApi(coverage: CapabilityCoverage): Finding? { if (coverage.api != ApiState.MISSING_TYPED_API) return null val subject = subject(coverage) + // A reviewed gap says which variant Morphia can't express; its first sentence tells + // the issues for one operator's variants apart. + val gap = + coverage.notes + .firstOrNull { it.startsWith(REVIEWED_GAP) } + ?.removePrefix(REVIEWED_GAP) return Finding( "${FindingType.MISSING_API}:$subject", FindingType.MISSING_API, - "Add typed support for ${coverage.capability.key.token} (${coverage.capability.key.context.name.lowercase()})", + "Add typed support for ${coverage.capability.key.token} (${coverage.capability.key.context.name.lowercase()})" + + gap?.let { ": " + it.substringBefore(". ").removeSuffix(".") }.orEmpty(), "The documentation describes `${coverage.capability.key.token}`" + (coverage.capability.facet?.let { " (`$it`)" } ?: "") + " in the ${coverage.capability.key.context} context, and Morphia has no typed API for it." + + gap?.let { "\n\n$it" }.orEmpty() + coverage.introduction.version ?.let { "\n\nIntroduced in MongoDB ${it.display()}." } .orEmpty(), diff --git a/audits/src/test/kotlin/dev/morphia/audits/offline/CoverageComparisonTest.kt b/audits/src/test/kotlin/dev/morphia/audits/offline/CoverageComparisonTest.kt index d0d96842a23..f790d1e773c 100644 --- a/audits/src/test/kotlin/dev/morphia/audits/offline/CoverageComparisonTest.kt +++ b/audits/src/test/kotlin/dev/morphia/audits/offline/CoverageComparisonTest.kt @@ -449,6 +449,38 @@ class CoverageComparisonTest { assertEquals(7, rows.single { it.capability.facet == null }.introduction.version!!.major) assertEquals(8, rows.single { it.capability.facet != null }.introduction.version!!.major) assertTrue(rows.all { it.annotations.single().state == AnnotationState.MINIMUM_MATCH }) + fun facet(plan: CoveragePlan, extra: String) = + CoverageComparison.compare( + candidate, + plan, + api(root.resolve("x").also { it.toFile().mkdirs() }, extra), + ) + .capabilities + .single { it.capability.facet != null } + .annotations + .map { it.state } + // A method only the facet uses carries the facet's version: without one it's a finding. + assertEquals( + listOf(AnnotationState.MISSING), + facet( + expected, + "/** @aggregation.expression ${'$'}median */\n" + + "public static Object modern(Object value) { return value; }", + ), + ) + // The base's factory, serving the facet too, keeps the base's 7.0. + val shared = + expected.copy( + bindings = + plan().bindings + + ApiBinding( + "shared", + feature, + ApiSelector("fixture.Factories", "median"), + BindingKind.TYPED, + ) + ) + assertEquals(listOf(AnnotationState.LATER_VARIANT), facet(shared, "")) } @Test @@ -971,6 +1003,135 @@ class CoverageComparisonTest { assertTrue(result.problems.any { it.code == "AMBIGUOUS_API_BINDING" }) } + /** + * [catalog] and [plan] with a second capability, [other] introduced in [version], expected in + * its context and, when [bound], bound to the same factory as the first. + */ + private fun withSecond( + other: CapabilityKey, + version: String, + bound: Boolean, + ): Pair { + val base = catalog() + val second = + base.capabilities + .single() + .copy( + key = other, + versions = + listOf( + VersionEvent( + LifecycleEvent.INTRODUCED, + null, + version, + VersionRange.parse(version), + EvidenceConfidence.EXPLICIT, + listOf("introduced"), + ) + ), + ) + val otherRef = CapabilityRef(other, null) + val plan = plan() + return base.copy(capabilities = base.capabilities + second) to + plan.copy( + contexts = + plan.contexts.map { + if (it.context == other.context) + it.copy( + minimumCapabilities = 1, + expected = listOf(otherRef), + intentionalEmptyEvidence = emptyList(), + ) + else it + }, + bindings = + plan.bindings + + listOfNotNull( + ApiBinding( + "second", + otherRef, + ApiSelector("fixture.Factories", "median"), + BindingKind.TYPED, + ) + .takeIf { bound } + ), + ) + } + + @Test + fun aReviewedGapIsMissingWithItsReason(@TempDir root: Path) { + val reason = "Factories has no median option. The server added it in 7.0." + val gapped = plan().copy(bindings = emptyList(), missing = listOf(ReviewedGap(ref, reason))) + val row = CoverageComparison.compare(catalog(), gapped, api(root)).capabilities.single() + assertEquals(ApiState.MISSING_TYPED_API, row.api) + assertTrue(row.notes.contains(REVIEWED_GAP + reason), row.notes.toString()) + // A reviewed gap can't also be bound. + val bound = plan().copy(missing = listOf(ReviewedGap(ref, reason))) + val invalid = CoverageComparison.compare(catalog(), bound, api(root)) + assertEquals(ReportState.INVALID, invalid.state) + assertTrue( + invalid.problems.any { it.code == "INVALID_REVIEWED_GAP" }, + invalid.problems.toString(), + ) + } + + @Test + fun aSelectorMayAlsoClaimAnOperatorOfAnotherContext(@TempDir root: Path) { + // As a push that takes a list writes $each, a modifier the manual documents elsewhere. + val each = CapabilityKey(key.product, OperatorContext.WINDOW_FUNCTION, "${'$'}each") + val (catalog, plan) = withSecond(each, "7.0", bound = false) + val inventory = + api( + root, + """ + /** + * @aggregation.expression ${'$'}median + * @aggregation.expression ${'$'}each + * @mongodb.server.release 7.0 + */ + public static Object median(Object value, Object other) { return value; } + """ + .trimIndent(), + ) + val result = CoverageComparison.compare(catalog, plan, inventory) + assertEquals( + ApiState.TYPED_PRESENT, + result.capabilities.single { it.capability == ref }.api, + result.problems.toString(), + ) + assertTrue(result.problems.none { it.code == "AMBIGUOUS_API_BINDING" }) + } + + @Test + fun aLaterContextOfOneFactoryIsAVariantNotAWrongAnnotation(@TempDir root: Path) { + // The factory's 7.0 annotation is right for the accumulator; the window function came + // later. + val window = CapabilityKey(key.product, OperatorContext.WINDOW_FUNCTION, key.token) + val (catalog, plan) = withSecond(window, "8.0", bound = true) + val result = CoverageComparison.compare(catalog, plan, api(root)) + fun state(of: CapabilityKey) = + result.capabilities.single { it.capability.key == of }.annotations.single().state + assertEquals(AnnotationState.MINIMUM_MATCH, state(key)) + assertEquals(AnnotationState.LATER_VARIANT, state(window)) + // A minimum after the window function's own introduction is wrong whatever else it serves. + val late = CoverageComparison.compare(catalog, plan, api(root, server = "9.0")) + assertEquals( + AnnotationState.INCORRECT_MINIMUM, + late.capabilities.single { it.capability.key == window }.annotations.single().state, + ) + // Alone, the same 7.0 annotation is wrong for an 8.0 capability. + val alone = plan.copy(bindings = plan.bindings.filter { it.capability.key == window }) + assertEquals( + AnnotationState.INCORRECT_MINIMUM, + CoverageComparison.compare(catalog, alone, api(root)) + .capabilities + .single { it.capability.key == window } + .annotations + .single() + .state, + ) + } + @Test fun diagnosticsAreDeterministicEvenWhenCodesAndSubjectsCollide(@TempDir root: Path) { val diagnostics = diff --git a/audits/src/test/kotlin/dev/morphia/audits/offline/PublisherTest.kt b/audits/src/test/kotlin/dev/morphia/audits/offline/PublisherTest.kt index fcc82bbd18d..f63079b856f 100644 --- a/audits/src/test/kotlin/dev/morphia/audits/offline/PublisherTest.kt +++ b/audits/src/test/kotlin/dev/morphia/audits/offline/PublisherTest.kt @@ -15,6 +15,7 @@ import dev.morphia.audits.coverage.Introduction import dev.morphia.audits.coverage.IntroductionState import dev.morphia.audits.coverage.OperatorContext import dev.morphia.audits.coverage.OverloadVersionCheck +import dev.morphia.audits.coverage.REVIEWED_GAP import dev.morphia.audits.coverage.ReleaseVersion import dev.morphia.audits.coverage.ReportState import dev.morphia.audits.publish.Finding @@ -462,4 +463,42 @@ class PublisherTest { Publisher.findings(report.copy(state = ReportState.INVALID)) } } + + @Test + fun aReviewedGapNamesTheVariantMorphiaLacks() { + val gap = + coverage("\$out", OperatorContext.PIPELINE_STAGE, ApiState.MISSING_TYPED_API) + .copy( + capability = + CapabilityRef( + CapabilityKey("docs", OperatorContext.PIPELINE_STAGE, "\$out"), + "section-syntax", + ), + notes = + listOf(REVIEWED_GAP + "Out has no timeseries options. It can create one."), + ) + val report = + CoverageReport( + state = ReportState.COMPARED, + catalogSha256 = null, + planSha256 = null, + apiSha256 = null, + contexts = + listOf( + ContextHealth(OperatorContext.PIPELINE_STAGE, true, 40, 30, emptyList()) + ), + capabilities = listOf(gap), + problems = emptyList(), + ) + val finding = Publisher.findings(report).single() + assertEquals("MISSING_API:docs/PIPELINE_STAGE/\$out#section-syntax", finding.key) + assertEquals( + "Add typed support for \$out (pipeline_stage): Out has no timeseries options", + finding.title, + ) + assertTrue( + "Out has no timeseries options. It can create one." in finding.body, + finding.body, + ) + } } diff --git a/core/src/main/java/dev/morphia/aggregation/AggregationOptions.java b/core/src/main/java/dev/morphia/aggregation/AggregationOptions.java index a4ee1c0a4e8..d401e97c183 100644 --- a/core/src/main/java/dev/morphia/aggregation/AggregationOptions.java +++ b/core/src/main/java/dev/morphia/aggregation/AggregationOptions.java @@ -169,6 +169,7 @@ public AggregationOptions hint(Document hint) { * * @param let the variable definitions * @return this + * @mongodb.server.release 5.0 * @since 3.0 */ public AggregationOptions let(Document let) { diff --git a/design/operator-audits-design.md b/design/operator-audits-design.md index 551d778e9b8..1a4787ac71d 100644 --- a/design/operator-audits-design.md +++ b/design/operator-audits-design.md @@ -452,7 +452,12 @@ The baseline is three reviewed files in `audits/catalog/`: - `capability-catalog.json`: the capabilities discovery found at the baseline's commit, with their evidence. - `coverage-plan.json`: the accepted identities and per-context minimums later runs must keep, - explicit API bindings where tags do not settle the mapping, and reviewed exclusions. + explicit API bindings where tags do not settle the mapping, reviewed exclusions, and reviewed + gaps (`missing`): a capability, usually a feature facet, that the tagged API claims but can't + express, such as `$out`'s time series options. A gap reports `MISSING_TYPED_API` with its + reason, so the weekly job files it; the issue's title carries the reason's first sentence. + Every capability the manual documents is bound, inferred, excluded or a reviewed gap; none is + left `UNKNOWN_MAPPING`. `audits/discover.sh` acquires the manual at the clone's commit (`manual-baseline-sources.json` with that revision), parses it, discovers its capabilities under the committed discovery plan, diff --git a/design/operator-audits-progress.md b/design/operator-audits-progress.md index 12b35334100..e249b01631b 100644 --- a/design/operator-audits-progress.md +++ b/design/operator-audits-progress.md @@ -49,8 +49,8 @@ Step 5, generation and cutover: the filter's matches), alternative commands. Step 6, monitoring: -- **Explicit bindings for the 102 capabilities tags do not map** (`UNKNOWN_MAPPING` in the - coverage report); until then they are neither published nor counted as present. +- ~~Explicit bindings for the 102 capabilities tags do not map~~: done (see Capability bindings + below). Step 7, retiring old paths: - **The legacy RST extractor:** retire it after the structured parser owns example extraction, @@ -2785,3 +2785,19 @@ no product-documentation changes. Legacy operator AsciiDoc tables are intentiona from 112 to 104. None generates yet: `$merge`, `$out` and pipeline updates have no binding. The page-wide pass now also marks a write after a write, and no longer counts a syntax template as a write. +- Capability bindings: the 102 `UNKNOWN_MAPPING` capabilities are settled. Tokens the manual + documents in several contexts (`$sum` as an accumulator and a window function, `$push` as an + accumulator and an update) are bound to the factories that claim them where the factory writes + that context's form, and `$merge` and `$out` to their stage factories (their tags are on the + class). Eight contexts the factories can't write are reviewed gaps: `$concatArrays` and + `$setUnion` as accumulators and window functions (the factories always write an array), and + `$top`, `$bottom`, `$topN` and `$bottomN` as expressions (the factories write `output`, not the + expression's `input`). Of the 25 facets, 15 are reachable through the existing API (server + behavior, or a variant the builder already writes, such as `$lookup`'s concise syntax and + `$merge` with aggregate-level `let`) and are bound; 10 are reviewed gaps (`$convert` to array, + object and binData, its `format` and subtypes, `arrayIndexAs` on `$filter` and `$map`, + `$currentOp`'s `targetAllNodes`, `$out`'s time series options, and `$elemMatch` as a + projection). Coverage at e4b0c153: 315 typed, 32 excluded, 32 missing, none unmapped. The weekly + job would file 32 `MISSING_API` issues and no version findings: 4 annotation checks of later + variants are `LATER_VARIANT`, and `AggregationOptions#let`, which only the `$merge` variables + facet uses, now carries its `@mongodb.server.release 5.0`. diff --git a/design/operator-audits-reference.md b/design/operator-audits-reference.md index 98b90560d85..be270c774e3 100644 --- a/design/operator-audits-reference.md +++ b/design/operator-audits-reference.md @@ -98,7 +98,8 @@ A lifecycle removal notice does not erase a current observation; a deliberate po can suppress support checks while preserving that evidence. The plan declares all eight contexts, accepted identities and lower bounds, explicit evidence -for empty contexts, API input scope, binding exceptions, exclusions, and reviewed omissions. +for empty contexts, API input scope, binding exceptions, exclusions, reviewed omissions, and +reviewed gaps (`missing`) for capabilities the tagged API claims but can't express. New identities are allowed. Missing accepted identities, lost categories, and unexplained count drops invalidate their discovery domain. A broken example does not hide an independently verified new capability. Invalid/empty API inventories invalidate the comparison. @@ -106,11 +107,21 @@ verified new capability. Invalid/empty API inventories invalidate the comparison Unambiguous method-level tags map ordinary operator APIs automatically. All compatible discovery contexts must be healthy before inference; broad or conflicting claims remain `UNKNOWN_MAPPING`. Explicit bindings select every public overload of a factory/builder member -where aliases or multiple contexts require a decision. Unresolved selectors and overload -groups claiming different operator tokens produce binding errors and a partial report, -rather than a false missing-API finding. Raw BSON bindings have a distinct state. Version checks inspect every selected overload and retain class/method annotation +where aliases or multiple contexts require a decision. Binding a selector stops inference for +it, so each capability that selector serves is bound explicitly. Unresolved selectors produce +binding errors and a partial report, rather than a false missing-API finding. So does an overload +group that doesn't claim the bound token, or also claims another operator of the bound context or +one the manual doesn't document; a claim of an operator the manual documents only in other +contexts is allowed, as a `push` that takes a list also claims the `$each` modifier. An untagged +member, such as a builder option bound for a facet, claims nothing. A reviewed gap turns +inference off for its capability. Raw BSON bindings have a distinct state. Version checks inspect every selected overload and retain class/method annotation origins. A later minimum on an inferred API can indicate a feature variant requiring a binding, -so it is ambiguous rather than automatically incorrect. +so it is ambiguous rather than automatically incorrect. One declaration can serve several +capabilities, such as an accumulator factory that later became an expression, and carries the +earliest one's annotation. A missing or earlier annotation for a later one, when the declaration +also serves an earlier capability or one of unknown introduction, is `LATER_VARIANT`, not a +finding. A facet's base counts only when the declaration serves it: a method only the facet uses, +such as an option the facet added, carries the facet's version. API presence, version annotations, serialization, behavior, and example extraction have independent report states. This milestone has no execution attestations: serialization and