A pluggable consent provider field.
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556405. -->
Reported by: [catia_penas](https://www.drupal.org/user/3725216)
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>Active<br>
<strong>Short Description: </strong>Create an issue for: A pluggable consent provider field.<br>
<strong>Check-in Date: </strong>11/06/2025<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 id="overview">Problem Statement</h3>
<p>With AI we are almost sending lots of data to a third party. If someone uses a chatbot on the site or uses AI for anything else we will very likely need to gather explicit consent to send information to a third party. There are a number of modules and systems that can be used for gathering and logging consent.</p>
<p>When looking at a specific chat history, or an AI log. If it contains user data it would get good for governance to know if we have correctly gathered the consent for that. We don't want to recreate a complete consent management system in the AI module but we should create a pluggable and consistent approach in the AI module so that we can trace back from the Log of an individual API call to an entity or "thing" in a database that contains information about the consent gathered.</p>
<p>We should certainly support Klaro for Drupal CMS.</p>
<h3 id="overview">Overview</h3>
<p>A pluggable consent provider field.</p>
<ul>
<li>If we log something, the log has private information by the end-user. Have we gathered consent and what module was used to provide that consent and where we do have evidence for that consent. We should be able to go from the log -> provider of consent.</li>
</ul>
<ul>
<li>Drupal CMS has its own providers of consent, but this should be pluggable so other sources of consent can also report to the AI module.</li>
</ul>
<ul>
<li>AI Observability</li>
</ul>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>TODO - Create a plan of how we'd do this and where we'd do this. (AI Observability module? AI Logging?)</p>
<p>Note: Follow-up issue, we probably also want to create some consistent way to log if a piece of content has had AI used to generate it.</p>
<h3 id="ui-changes">User interface changes</h3>
issue