Skip to content

Manage agent policy versions and production labels in AOS

Users can view an agent’s policies only with agentPolicies:read. Creating versions, changing labels, applying policy packs, and deleting versions require agentPolicies:CUD. AOS also enforces per-agent visibility: if a user cannot see the agent, they cannot see or change its policies. In the UI, write controls are hidden when write access is missing, and the Policy tab shows an access message when read access is missing.

Start in the agent’s Policy tab in the Agent Registry entry.

Expected result: users only see policy data and controls allowed by their project scope and per-agent access.

Common failures and next steps:

  1. If the Policy tab says you do not have access to the agent’s policies, ask a project admin for agentPolicies:read and any required per-agent access.
  2. If edit controls are missing, ask for agentPolicies:CUD.
  3. If applying a policy pack should also update guardrail settings, that separate step additionally needs agentRegistry:CUD.

Who can do this: users with agentPolicies:CUD who can see the agent.

Prerequisites:

  1. You can open the agent’s Policy tab.
  2. You have policy edit access.
  3. You have a valid AGT manifest, or you plan to generate a starter policy first.

Where to start: the Policy tab’s New version area.

Steps:

  1. Open the agent’s Policy tab and review any status banner about existing production coverage.
  2. Enter or paste an AGT manifest in the editor. AOS validates the manifest live after a short debounce.
  3. Create the version without the production label. Review it first, then use the existing version’s labels control to promote it.
  4. Wait for the validation state to show a valid manifest.
  5. Select Create vNEXT.

Expected result: AOS stores a new immutable version for that agent, increments the version number automatically, records structural lint results, and shows the new version in the version list.

Defaults, ceilings, and behavior:

  • Versions are immutable; edits always create a new version.
  • The editor placeholder and help text show AGT format expectations, including apiVersion: governance.toolkit/v1.
  • manifestYaml is required; rego is optional. Each is limited to 200,000 JavaScript string code units by the server schema, not a byte-size limit.
  • Up to 20 labels can be set on create.
  • Version numbers increment per agent and are retried on conflicts.

Common failures and next steps:

  1. If validation shows errors, fix the manifest before creating the version.
  2. If creation fails with an invalid manifest error, review the returned structural errors and try again.
  3. If version allocation conflicts, retry the create action.
  4. Structural validation is not certification. Review the policy and use the separate label-update promotion path before relying on it in production.

Generate a starter policy from observed tools

Section titled “Generate a starter policy from observed tools”

Who can do this: users with policy read access can validate and fetch starter content; creating the resulting version still requires agentPolicies:CUD.

Prerequisites:

  1. The agent is visible to you.
  2. The agent has a canonical name, and may have trace aliases.
  3. Tool activity may exist in recent traces, or the agent may already have a legacy tool allowlist.

Where to start: the Policy tab’s New version area.

Steps:

  1. In Starter template, choose either Standard or Strict.
  2. Select Generate starter policy.
  3. Review the generated manifest placed into the editor.
  4. Review the seeded tools summary shown below the action buttons.
  5. Validate and edit the manifest as needed.
  6. Create the new version when ready.

Expected result: AOS generates YAML for review without storing anything yet. The tool seed combines observed tool names from recent traces with names from the legacy preTool.toolAllowlist, if present.

Defaults, ceilings, and behavior:

  • The default look-back window is 30 days.
  • Standard uses default_action: allow; its tool rules use the combined seed of observed tools and the legacy allowlist.
  • Strict uses default_action: deny; allowed tool names are seeded from both observed tools and the legacy allowlist. It also includes destructive-action denial rules. Review the resulting manifest before saving.
  • Observed tools come from both TOOL observations and AGT GUARDRAIL observations that include agt.tool.name.
  • The observed tools query returns at most 500 tool names.
  • No observed tools does not mean an empty seed: legacy allowlist names are still included. A tool-specific rule is absent only when both sources are empty.

Common failures and next steps:

  1. If no tool calls were seen, review the generated manifest carefully and add needed rules manually.
  2. If the agent has no traces under its name or trace aliases, confirm that tracing uses the expected names.
  3. If generation fails, retry and check whether you still have access to the agent and project.

Who can do this: users with agentPolicies:CUD can apply the pack and create a policy version. Users also need agentRegistry:CUD if they want the same workflow to update the agent’s guardrail settings.

Prerequisites:

  1. You can open the Apply policy pack dialog from the Policy tab.
  2. You can review the pack preview and selected tools.
  3. If you want guardrail settings updated too, you have agent edit access.

Where to start: the Policy tab, then Apply policy pack.

Steps:

  1. Open Apply policy pack.
  2. Select one of the available named packs.
  3. Review the pack’s listed effects.
  4. Review the suggested tools, which are based on known tools for the agent, and adjust the selection if needed.
  5. Optionally add extra tools by name.
  6. Decide whether to keep Also update the agent’s guardrail settings selected.
  7. Review the Preview content.
  8. Select Apply for the chosen pack.

Expected result: AOS stores the pack’s AGT manifest as a new unlabelled policy version. If you kept the guardrail option enabled and have agent edit access, AOS also submits the merged guardrail configuration through the normal agent update flow, which may be held for approval.

Defaults, ceilings, and behavior:

  • Pack suggestions use a 30-day tool window.
  • Applying a pack does not promote the new policy version to production.
  • The saved version is stamped with pack metadata in lint results.
  • Guardrail updates are optional and handled as a separate agent update path.

Common failures and next steps:

  1. If the preview shows an error, correct the selected tools and try again.
  2. If you cannot enable guardrail updates, request agentRegistry:CUD or leave that option off.
  3. If the guardrail update is held for approval, wait for the normal review process before expecting those guardrail changes to take effect.
  4. After applying the pack, promote the resulting version separately if it should become the SDK default.

Compare versions, move labels, roll back by copy, and delete safely

Section titled “Compare versions, move labels, roll back by copy, and delete safely”

Who can do this: users with agentPolicies:read can compare and inspect versions. Users with agentPolicies:CUD can change labels, start a new version from an older manifest, and delete eligible versions.

Prerequisites:

  1. At least one policy version exists for the agent.
  2. For compare, select exactly two versions.
  3. For label changes, edits, or deletion, you have policy write access.

Where to start: the Policy versions list in the Policy tab.

Steps:

  1. To compare, tick two versions and select Compare. Review both manifest and label differences side by side.
  2. To inspect a manifest, use the view control for a version.
  3. To roll back by copy, use the rollback action on an older version. AOS copies that manifest into the new version editor so you can create a fresh immutable version.
  4. To move labels, open the labels control for a version, select the labels to keep on that version, then save.
  5. To delete a version, use the delete action on a non-production version and confirm.

Expected result: AOS preserves immutable history while letting you compare versions, move unique labels between versions, create a new version from older content, and delete versions that are not currently serving as production.

Defaults, permissions, and safeguards:

  • Labels are unique per agent, so assigning a label such as production to one version removes it from another version of the same agent in the same transaction.
  • Label names must start with a lowercase letter or digit and may contain lowercase letters, digits, ., _, or -, up to 36 characters.
  • Up to 20 labels are allowed per update.
  • A version carrying production cannot be deleted.
  • Adding production through the existing version’s label-update operation (setLabels) is certification-gated. The agent’s newest attestation must be passing and unexpired, unless an eligible override is used. Keeping or removing production is not gated.

Common failures and next steps:

  1. If Compare is disabled, select exactly two versions first.
  2. If saving labels fails while adding production, review the certification error and either resolve the attestation state or use an approved override path if your role allows it.
  3. If delete is blocked, move production to another version first.
  4. If you remove production and no other version has it, the public policy endpoint will either fall back to the translated legacy allowlist or return 404.

Scope of this safeguard: the reviewed release applies that certification gate in setLabels. Version creation accepts labels through a separate path without the same gate. A production label alone is therefore not proof of certification. Use the create-without-production, review, then label-update procedure above.

What happens when no production policy exists

Section titled “What happens when no production policy exists”

AOS surfaces three policy-serving states for an agent.

  1. If no policy version exists yet and the agent still has a legacy preTool.toolAllowlist, AOS indicates that the public policy endpoint serves a translated manifest from that allowlist.
  2. If no policy version exists and there is no legacy allowlist, AOS indicates that the public policy endpoint returns 404. This means no policy was returned; it does not establish how every SDK or deployed agent handles a missing policy.
  3. If versions exist but none carries production, AOS indicates that the SDK fetch default has no production version. In that case, the public endpoint either serves the translated legacy allowlist or returns 404, depending on whether the legacy allowlist exists.

Expected result: operators can tell whether the SDK default will resolve to a production-labelled policy, a translated legacy allowlist, or no policy response.

Common failures and next steps:

  1. If the endpoint would return 404, create a version and label one version production.
  2. If AOS is still serving the translated legacy allowlist, create and promote an explicit policy version to replace that fallback.
  3. If multiple teams manage labels, confirm which version should carry production because only one version per agent can have that label.

Verify your agent runtime’s missing-policy behavior separately. Do not assume a 404 either enforces a deny policy or permits execution.