Problem · Directus

Catch a removed field in a Directus schema snapshot

Directus can write its whole schema to one file and apply it to another server. Applying a snapshot without a field removes the column and its data. The file does not say who reads that column.

An example

Take the CMS starter template that Directus Labs publishes. Between January and July 2026 its authors removed the field openai_api_key from the collection globals.

What an agent sees

An agent with access to Directus can change the schema. The governed model gives it, and you, a pass or a fail before the snapshot is applied.

What you can do today

  • The schema snapshot as JSON. Directus can also write YAML, which CoreModels does not read. CoreModels needs no login to Directus.
  • 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 collection that is deleted is not reported. Its fields are no longer compared.
  • The audit also gives advice about hidden and read-only fields. Those lines are warnings and do not make it fail.
  • CoreModels reads the file you give it. It has no login to Directus and it writes nothing back.

← Back to Directus

Start building

14-day free trial. Builder $49/mo after the trial. Cancel any time.