KIO Audit Trail

Last updated 12 minutes ago

Learn how KIO marks the content it edits and how to find this content in Studio.

The audit trail with the Studio search filter described here is available with KIO Backend and KIO plugin version 3.0.0 or later.

What the Audit Trail Does

Whenever KIO creates, copies, or changes a content item, KIO marks the content item as edited with AI. This includes changes to properties, page grids, and content variants.

With the KIO Content Feeder plugin, these marks are indexed for the Studio search. Editors can then use the search filter Edited with AI (KIO) in the Library to find all content items that KIO has edited, and distinguish between:

  • Current version: The current version of the content item is the version KIO edited. Nobody has changed the content item since KIO’s change.

  • Earlier version: KIO edited an earlier version of the content item. The content item has a newer version since, for example because an editor changed it after KIO.

Use Cases

You can use the audit trail, for example, to:

  • Review AI-generated content. Find all content items whose current version comes from KIO and review them before or after publication.

  • Track human follow-up. Find content items that KIO edited and that editors have changed since, for example to check that AI-generated content was reviewed.

  • Support your content policies. Identify AI-edited content to meet internal or regulatory requirements on transparency, such as labeling AI-generated content.

  • Understand KIO usage. See which and how much content in a site or folder was edited with KIO.

Scope and Limitations

  • The audit trail records only the latest KIO change of each content item. It is not a full change history. Use the version history of the content item to see what was changed in which version.

  • The audit trail does not record who prompted KIO, or which prompt led to the change.

  • Folders are not marked.

  • Only content types with a localSettings struct property, as in the CoreMedia Blueprint content model, are marked.

Using the Audit Trail in Studio

  1. Open the Library and switch to the search mode.

  2. In the search filters, expand the filter Edited with AI (KIO).

  3. Select one or both options:

    • Current version to find content items whose current version was edited by KIO.

    • Earlier version to find content items that KIO edited in an earlier version.

You can combine the filter with all other search filters and with a search term, for example to find all AI-edited articles in a specific site or folder. As with every Library search, you can save the search for later use.

The filter is only shown if the CMS version supports the KIO Content Feeder plugin, see Supported CMS Versions. If the KIO Content Feeder plugin is not deployed, the filter is shown but finds no content.

How the Audit Trail Works

When KIO writes a content item, KIO stores the version it wrote in the struct property localSettings of the content item. When the Content Feeder indexes the content item, the KIO Content Feeder plugin compares this version with the current version of the content item:

  • If KIO wrote the current version, the content item matches Current version.

  • If the content item has a newer version, for example because an editor changed it after KIO, the content item matches Earlier version.

Content Edited with Earlier KIO Versions

KIO versions before 3.0.0 marked edited content with the flag localSettings.kioModified. The KIO Content Feeder plugin treats such content items as edited by KIO in their current version, even if editors changed them later, because the flag does not record which version KIO wrote. The next time KIO changes such a content item, KIO replaces the flag with the new mark. If you need to distinguish these content items, review them manually.

Deployment

The audit trail consists of two parts:

  • The KIO backend records the KIO metadata in the content. This is enabled by default.

  • The KIO Content Feeder plugin indexes the metadata, so that the Studio search filter can find the content. No change to the Solr schema is required.

Supported CMS Versions

The KIO Content Feeder plugin requires an extension point of the Content Feeder that is available in the following CMS versions:

  • CMCC 12.2406.4.2 or later within the 2406 release line

  • CMCC 12.2512.1.2 or later within the 2512 release line

  • All release lines after 2512

The 2412 and 2506 release lines are not supported. On these versions, the Content Feeder starts and logs the following warning, and Studio does not show the search filter:

KIO Content Feeder integration is disabled because com.coremedia.cms.feeder.content.internal.ContentFeederFeedablePopulator is unavailable.

KIO still records the metadata in the content on these versions, so the content can be found once you upgrade the CMS and reindex it.

Deploying the KIO Content Feeder Plugin

The KIO plugin descriptor kio-plugin-x.y.z.json contains both the Studio Client plugin and the Content Feeder plugin content-feeder.kio. Install it and build the Content Feeder application as described in Installing or Updating the KIO Plugin.

After deployment, check the Content Feeder log at startup: it lists the started plugin content-feeder.kio and does not show the warning above.

Reindexing Existing Content

The Content Feeder adds the markers when it indexes a content item. Content items that KIO edited before you deployed the KIO Content Feeder plugin are only found by the search filter after they have been indexed again, for example after their next change or after a full reindexing of the Content Feeder. This also applies to legacy content with the kioModified flag.

Configuration

The KIO backend records the KIO metadata by default. To turn it off, set the following property in the KIO backend:

kio.backend.cmcc-service.mark-modified-content=false

As an environment variable, set KIO_BACKEND_CMCCSERVICE_MARKMODIFIEDCONTENT=false.

If the recording is turned off, KIO no longer marks the content it edits. Content items that were marked before remain marked and can still be found with the search filter.

How to Continue

To learn more about KIO, explore the other guides: KIO Guides Overview

Need support? Feel free to contact us at support@coremedia.com.

If you encounter issues or unexpected behavior, our Support Team will be glad to assist.

Loading...