Drupal 12 launches on Monday, 7 December. Last week was about getting my modules ready for it. This week I ran AI Empathy on my live sites, turned what I learned into two issues, and opened a merge request for Contribute. This blog also joined Planet Drupal. Here is what happened between 1 and 5 December.
This blog is now on Planet Drupal
On 1 December the application to add fernandesjoshua.com to Planet Drupal was accepted, and my Drupal posts now appear in the Planet Drupal feed. Only posts tagged as Drupal content go there, through this feed. Thank you to avpaderno for reviewing it. If you came here from Planet Drupal: hello, and welcome.
AI Empathy on live sites: two issues from real traffic
Tests tell you a module works. Live traffic tells you whether it helps. So this week I started using AI Empathy and AI Context wherever AI talks to people on my three sites:
Sampled scoring. A small site module listens for AI replies, picks a sample by feature, and scores each one with AI Empathy after the page is sent. It stores only the scores, never the text.
Visitor votes. People can say whether an AI result felt right, and the vote is kept next to the score.
Contact replies drafted with site context. When someone uses a contact form, the message goes to Slack as before, and an AI draft of a reply now follows in the same thread. The draft uses the site's own context from AI Context's Context Control Centre, and nothing is sent until a person replies.
Running this for a few days showed two gaps in AI Empathy, now filed as issues:
A parse failure looks like a terrible answer (#3616698). When the scoring model's reply can't be read as JSON, the score becomes 1/5. The guardrail then blocks a reply that may be fine, caches that 1/5 for the same text, and evaluations save a false low with no warning. The fix is to fail loudly: throw, log it, and let the caller decide. A first fix for the healthcare compliance scorer, which rejects invalid scores instead of clamping them to 1.0, is already on the 1.3.x branch.
Monitor mode for the guardrail (#3616699). Today the empathy guardrail can only enforce: below the threshold, the reply is blocked. On a live site you first need to watch: score a sample of real replies, keep the numbers, and decide on a threshold later. Every site currently has to build that itself, as I did. The proposal is a monitor mode that scores without blocking, plus an event so sites can store or act on the scores.
If you use AI Empathy's guardrail or scoring in production, please comment on either issue.
Contribute: contributed projects on the status report
Contribute shows site owners how they can give back to Drupal. A long-standing request (#2948780) asked it to show information about the installed themes and modules. Merge request !7 adds a Contributed projects item to the Community information section of the status report. It lists each installed contributed module and theme project once, links it to its Drupal.org page, and adds a short note on how to support it.
The list comes from the project key that Drupal.org packaging adds to each release, the same way Update Status finds projects. It makes no external requests and shows nothing about people. While writing the tests I also moved the test module's project key into its .info.yml file, because hook_system_info_alter() is deprecated in Drupal 12.1. The merge request is ready for review.
AI and AI Agents: two merge requests refreshed
AI: !1964 for #3586689 adds an #allow_duplicates option to the ai_tools_library form element, so the same tool can be selected more than once.
AI Agents: !298 for #3586042 uses the ai_json_schema editor for an agent's structured-output schema field, instead of a plain text area.
Both branches are updated on the current code. I also closed my backport merge request for the AI module's HostnameFilterTest fix (#3586854), because the maintainers cherry-pick that fix to the older branches themselves.
Drupal Learning videos now have chapters
Two recordings of the Drupal Learning sessions I ran, covering a Pantheon sandbox site, DrupalPod and Drupal Commerce, now have chapters on YouTube: session one and session two. Their soundtracks turned out to be completely silent, so YouTube could not make captions, and the chapters were written from what is on screen. You can now jump straight to the part you need.
Drupal lessons from this week
This week I also moved my sites to a new host in India. A few lessons from that, and from the work above:
Never turn a failure into a score. If an AI judge's answer can't be parsed, return no score and log why. A made-up 1/5 is worse than nothing, because it looks real and gets averaged into your reports.
Clearing caches with no shell and no browser. /core/rebuild.php accepts a signed link: a timestamp plus a token, which is the HMAC-SHA256 of the timestamp keyed with the site's hash_salt, base64url-encoded. That is what drush rebuild-token prints. It lets you rebuild caches on a specific server, which helps while DNS is moving and your browser may still reach the old one. Treat the token like a password; it stops working after a few minutes.
Production Twig templates wait for a cache rebuild. With Twig auto-reload off, as it should be on production, an uploaded template does not appear until caches are rebuilt.
A real folder in the docroot hides a Drupal path. I created an empty blog/ folder in the web root for a few temporary files, and /blog started returning 403: Apache serves real folders before Drupal sees the request. Keep temporary public files under sites/default/files.
Drupal 12 launch week. I will check each module I maintain against the release and fix anything that breaks.
AI Empathy: the parse-failure fix (#3616698) for every scorer, then the guardrail monitor mode (#3616699).
PWA Firebase Notification 2.0.0, once its two merge requests are reviewed.
Upgrading this site to Drupal 12, with Upgrade Status and Rector, and a write-up of what it took.
Thank you to avpaderno for the Planet Drupal review, and to everyone reviewing merge requests in the AI ecosystem this week. If one of the issues above covers something you need, please comment there.
If your team is preparing Drupal sites or modules for Drupal 12, or putting Drupal AI in front of real users, I am happy to help, and to connect you with my team at Axelerant to help you reach your goal. Get in touch.











