Summary
AI plugin 0.9.0's internal Guidelines service can read the latest wp_guideline without filtering by wp_guideline_type=content. Gutenberg 23.1 made Guidelines type-aware and default artifact guidelines can exist alongside content guidelines, so an artifact guideline can shadow the content guideline in prompt assembly.
Observed behavior
The service queries the latest wp_guideline row without a tax_query. In a site with both artifact and content guideline terms, the newest artifact guideline can be selected for content prompt grounding.
Expected behavior
When the wp_guideline_type taxonomy exists, the content prompt Guidelines service should query wp_guideline_type=content.
Reproduction
- Install Gutenberg 23.1.x and AI plugin 0.9.0.
- Create one
wp_guideline assigned wp_guideline_type=artifact.
- Create one
wp_guideline assigned wp_guideline_type=content.
- Make the artifact guideline newer than the content guideline.
- Invoke the AI plugin Guidelines formatting service for content prompt assembly.
- Observe that the newest artifact guideline can be selected.
Summary
AI plugin 0.9.0's internal Guidelines service can read the latest
wp_guidelinewithout filtering bywp_guideline_type=content. Gutenberg 23.1 made Guidelines type-aware and default artifact guidelines can exist alongside content guidelines, so an artifact guideline can shadow the content guideline in prompt assembly.Observed behavior
The service queries the latest
wp_guidelinerow without atax_query. In a site with bothartifactandcontentguideline terms, the newest artifact guideline can be selected for content prompt grounding.Expected behavior
When the
wp_guideline_typetaxonomy exists, the content prompt Guidelines service should querywp_guideline_type=content.Reproduction
wp_guidelineassignedwp_guideline_type=artifact.wp_guidelineassignedwp_guideline_type=content.