Required means present for lists and maps; an explicit NotBlank carries non-empty
### Problem/Motivation
After #3583049 step 1 (!179), three behaviors disagree about an empty array on a required list input:
* A shim-converted required multiple that declared `NotNull`, or `NotBlank` without `allowNull`, rejects `[]`: `ListDefinitionBase::splitMultipleConstraints()` manufactures a list-level `NotNull`, `validateInputValue()` enforces declared list constraints, and core's `NotNullConstraintValidator` turns an empty list into `NULL` before checking.
* A hand-declared required list input accepts `[]` - nothing infers the `NotNull`, and requiredness alone does not reject an empty value.
* The advertised schemas disagree by path: the ai module's `ContextDefinitionNormalizer` has always set `minItems: 1` on a required multiple (both its `'list'` branch and its `isMultiple()` wrapper), and keeps doing so for converted lists presented through tool_ai_connector - while tool's own `ContextDefinitionNormalizer::applyListConstraintSchema()` maps only `Count`, so the tool-native and MCP bridge schemas advertise nothing.
Ruling on !179 ([note 3351562](https://git.drupalcode.org/project/tool/-/merge_requests/179#note_3351562)): rejecting `[]` is the intended semantics, because required is a different promise on each side. A required output promises the key is present - zero results is still a result, so `[]` passes and #3583040 stands for outputs. A required input is the caller's obligation to give the tool something to work with - "Export these nodes" with `[]` is a caller mistake. The bugs are that the rule reaches only shim-converted inputs, and that the tool-native schema does not advertise it.
The beta10 behavior is on the record as a release note on !179; this issue makes the rule uniform.
### Proposed resolution
1. `validateInputValue()` rejects an empty array for a required list input, as its own check beside the required and three-state handling rather than by adding `NotNull` to the definition, so the author-only `getConstraints()` contract and schema emission stay untouched. (Alternative: restore the required flag on input-side effective definitions and let typed data's `NotNull` carry it - implementer's choice; the walker check keeps `EffectiveDataDefinition` neutral between directions per #3583040.)
2. Tool's `ContextDefinitionNormalizer` advertises `minItems: 1` for a required list input (a declared `Count` min still wins when higher), aligning the tool-native and MCP bridge schemas with what the ai path already advertises.
3. Remove the `NotNull` inference from `splitMultipleConstraints()` once requiredness carries the rule - it adds nothing on a required input. Side effect worth pinning in a test: an optional converted multiple that declared `NotBlank` without `allowNull` currently rejects `[]` too, because the split never reads the required flag; with the inference gone it accepts `[]` again, matching the multiple-era behavior.
4. Re-run the ai boundary round-trip gates: the delta-only constraint mapping in `ToolContextDefinitionTrait` uses `splitMultipleConstraints()` as its baseline, so the presented set changes when the inference goes.
5. Confirm provider strict modes accept `minItems` (`ToolsPropertyInput` carries it through; the OpenAI structured-output strict mode is the one to verify). If a provider strips it, validation still rejects with a clear violation, but it should be a known trade.
6. Document the escape hatch: an input that may legitimately receive an empty value ("set these tags", where `[]` clears them) is declared optional with a `[]` default. If a real need for required-but-may-be-empty appears, a `Count(min: 0)` opt-out can be added then.
### Open question
Should a required map input reject `{}` the same way? #3583040 also made a required property-less map input accept `{}`; the ruling leans toward maps following the same input rule, while outputs keep #3583040 untouched. A required map with declared properties already fails through its required properties, so the question is only the property-less shape.
### Release note (when this lands)
A required list input now rejects an empty array and advertises `minItems: 1` on every schema path. This includes hand-declared required lists that accepted `[]` before. An optional converted multiple that declared `NotBlank` accepts `[]` again. An input that may legitimately receive an empty value should be optional with an empty default.
### Remaining tasks
* Walker check plus kernel coverage: required list input with `[]`, optional list with `[]`, converted multiple both ways.
* Schema emission plus `MultipleListSchemaTest` and acceptance updates.
* Inference removal plus the round-trip gates.
* Provider strict-mode confirmation.
* Decide the map question.
Related: #3583049 (step 1 shipped the shim), #3583040 (outputs unaffected), #3583056 (output lists skip declared constraints, masking the mirror question), and core issue [#3625989](https://www.drupal.org/project/drupal/issues/3625989) (`NotNull` conflating required with non-empty; when core adds an opt-out, this rule stays deliberate rather than conflation-dependent).
### AI usage (if applicable)
* [ ] AI Assisted Issue: This issue was generated with AI assistance, but was reviewed and refined by the creator.
* [ ] AI Assisted Code: This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.
* [ ] AI Generated Code: This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.
* [ ] Vibe Coded: This code was generated by an AI and has only been functionally tested.
issue
GitLab AI Context
Project: project/tool
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/tool/-/raw/1.0.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/tool
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD