Download the latest enforcement bundle

Important Guardian Agents are available in private preview. The command in this topic is only included in the CLI's Guardian preview releases, and it doesn't appear in the CLI's help. Details are based on an early build and are subject to change before general availability.

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.

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 always writes a manifest file, bundle.manifest.yaml, in the same folder as the ZIP file. The manifest records which AI agent, version, and content the bundle has, so that the next run can tell whether the bundle is up to date.

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 in any of the following cases:

The CLI downloads the bundle through a signed link, and verifies its SHA-256 hash before it writes the file. If the link has expired, run the command again.

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