[Meta] Create AI Review Functionality
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3574179. --> Reported by: [breidert](https://www.drupal.org/user/135619) >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <strong>Additional Collaborators: </strong><br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3>Summary</h3> <p>This meta issue is for the implementation an AI-powered content review system that automatically checks content against defined standards before and after publication.</p> <p>Reviews should produce a scores for each criterion along with an explanations of the score and concrete suggestions for improvement. In the future it should be possible to automatically apply suggested changes, but this is out of scope for the first iteration.</p> <h3>Sprint Planning Outcome</h3> <p>During sprint planning, the team agreed to scope the first iteration to a functional concept and UX design only. This establishes a shared understanding of the desired functionality before any implementation begins. Based on these outputs, a technical concept will be created that defines the implementation approach and can be executed in the following sprint.</p> <h3>Use Cases (First Iteration)</h3> <p>The initial scope focuses on the following review criteria:</p> <ul> <li><strong>Brand compliance:</strong> Verify content aligns with brand voice, tone, and style guidelines</li> <li><strong>Brand name and term spelling: </strong>Catch incorrect capitalization or formatting of proper names and special terms (e.g. "Drupal Association" not "DrupalAssociation", "React Native" not "ReactNative")</li> <li><strong>Legal compliance:</strong> Flag prohibited claims or missing required disclosures</li> <li><strong>Reading level:</strong> Assess content for appropriate reading comprehension level and clarity</li> </ul> <h3>Implementation</h3> <p>Work is organized into four phases:</p> <ol> <li><strong> Architecture:</strong> Define the review pipeline, LLM integration points, criteria format (Markdown templates), and severity classification (blocking / warning / suggestion)</li> <li><strong>Implementation:</strong> Build the "Review with AI" workflow action, analysis logic, and results report UI</li> <li><strong>Packaging:</strong> Release as installable Drupal module(s) and a Drupal recipe; include demo content with intentional issues and automated test scripts</li> <li><strong>Drupal CMS integration:</strong> Integrate into Drupal CMS</li> </ol> <h3>Related</h3> <p>This feature should integrate with the <a href="https://www.drupal.org/project/ai_context">Context Control Center</a> for managing brand guidelines, legal requirements, and editorial standards. Integration timing depends on when a first version of the Context Control Center becomes available. If no version is available at the time of implementation, the first iteration can source context (e.g. brand guidelines) from elsewhere (e.g. configuration).</p> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[x] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p> > Related issue: [Issue #3571115](https://www.drupal.org/node/3571115)
issue