wp_postmeta has a key and a text value. What the key means, and which values it may have, is in the ACF field group. When a choice leaves the group, the old value stays in the table and the template no longer knows it.
An example
Take the public WordPress theme of Iowa State University. In August 2023 its authors replaced the choice twitter with x-twitter in the social menu and added threads.
What an agent sees
An agent that reads a WordPress site gets keys and strings. ACF JSON gives it the types. The governed model also gives it the version that the content was made with.
What you can do today
- The JSON files in the
acf-jsonfolder of your theme, or the file from ACF, Tools, Export. CoreModels needs no login to WordPress. - Your assistant imports it into a CoreModels project.
- After the next change, the assistant audits the new file. The answer is pass or fail and names each removed field and each changed type.
- The same check runs in a pull request with one command.
See the recorded run, with every prompt and answer
What it does not do
- A field that becomes required is not reported.
- A field group that is deleted is not reported. Its fields are no longer compared.
- The answer names the list that changed, not each value. Read the list in the new file.
- CoreModels reads the files you give it. It needs no login to your site.