Skip to content

AI reviews 1/6: Add storage for imported AI reviews - #1467

Open
Hackwar wants to merge 1 commit into
joomla:masterfrom
Hackwar:feature/ai-reviews-storage
Open

Hackwar wants to merge 1 commit into
joomla:masterfrom
Hackwar:feature/ai-reviews-storage

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

This is the first of a series of PRs that let site admins process the results of AI reviews of the open joomla-cms issues and pull requests. The reviews run locally with Claude Code in a separate tool; its results are imported into the tracker as an SQL file. Nothing on the server calls an AI, and the AI never changes anything on GitHub by itself: every change is a click by a site admin, made with the admin's own GitHub account.

This PR adds the storage:

  • #__ai_reviews: one review of an item per review run (batch), with the PR head commit, a hash of the description and the time of the item's last activity at review time. These are used later to hide reviews of items that changed since.
  • #__ai_review_findings: the findings of a review (testing instructions, duplicate, fixed elsewhere, obsolete, abandoned, needs info, test suitability) and how an admin processed them.
  • #__issue_promotions: which pull requests were posted to Mattermost for testing, so that none is posted twice.
  • Table classes for all three, and Documentation/Applications/AI-Reviews.md with the SQL import format the review tool writes.

Also fixes etc/mysql.sql: its #__migrations INSERT was missing 20261109002, 20261110001 and 20261110002, so a fresh install would run those migrations again on top of the finished schema. A new test keeps the INSERT and the migration files in sync.

The series

  1. This PR: storage
  2. AI reviews 2/6: Add an admin list for AI review findings #1469 Admin list of the findings, dismiss and done
  3. AI reviews 3/6: Adopt AI-proposed testing instructions into pull requests #1470 Adopt proposed testing instructions into the PR description
  4. AI reviews 4/6: Close confirmed duplicates and items fixed elsewhere #1471 Comment and close confirmed duplicates and items fixed elsewhere
  5. Process label changes of pull requests #1468 Process label events of pull requests (independent of the others)
  6. AI reviews 6/6: Promote pull requests for testing in Mattermost #1472 Promote pull requests for testing in Mattermost

Each PR builds on the previous one, so later PRs show the commits of earlier ones until those are merged.

Testing Instructions

  1. Run php bin/jtracker database:migrate on an existing installation and check that the three tables exist.
  2. Install from scratch with etc/mysql.sql and check that database:migrate has nothing left to run.
  3. Import an SQL file in the documented format (see Documentation/Applications/AI-Reviews.md) twice and check that the second import adds nothing.

🤖 Generated with Claude Code

Adds the tables #__ai_reviews, #__ai_review_findings and
#__issue_promotions with their table classes, and documents the SQL
import format the external review tool writes.

The #__migrations INSERT in etc/mysql.sql was missing 20261109002,
20261110001 and 20261110002, so a fresh install would run them again
on top of the finished schema. A new test keeps the list and the
migration files in sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant