Download the latest enforcement bundle

Use the collibra ai-gov guardian sync command to synchronize the enforcement bundle on your computer with the latest version that Guardian compiled for an AI agent. The enforcement bundle contains the compiled rules, built from the AI agent's Agent Contracts, that Guardian enforces at runtime.

The command only downloads the bundle when needed. If the bundle on your computer is already the latest, nothing is downloaded. Because bundles can be large, this makes it safe to run the command often. For example, you can run it every time before you start an AI agent, and periodically while the agent runs, so that the agent always uses the latest rules.

You only give the command the ID of the AI agent. Guardian works out which version of the AI agent is active, so you don't need to know the version ID.

Prerequisites

Syntax

collibra ai-gov guardian sync --agent-id <UUID> [--output <PATH>]

Flag Required Default Description
--agent-id Yes None The UUID of the AI agent to download the enforcement bundle for.
--output No bundle.zip The path to write the downloaded bundle ZIP file to.

Note The command also writes a small file, bundle.manifest.yaml, in the same folder as the ZIP file. The command uses it to tell whether your bundle is up to date, so don't edit it.

Steps

  1. Open your terminal or command prompt.
  2. Run the following command, and replace the placeholder with your AI agent's UUID:
    collibra ai-gov guardian sync --agent-id <UUID>
    To save the bundle somewhere other than the current folder, add the --output flag, for example --output ./bundles/agent.zip.

Results

The result depends on whether the bundle on your computer is up to date.

The CLI downloads a new bundle when the ZIP file or the manifest file is missing, when they belong to a different AI agent, or when a newer bundle is available.

Note The default output file, bundle.zip, is the file that the SDK looks for by default in its working directory. To use the bundle with the run command, run both commands from the same folder, or set the policy_bundle SDK setting. The sync command doesn't start your program, and the run command doesn't download a bundle.

For the errors that the command can return, go to Guardian CLI error codes.

What's next