When an agent rule changes with no version record, the trouble shows up weeks later: someone asks why an agent approved a payment, and nobody can say which rule it followed or who agreed to that rule. Advice on prompt versioning covers part of the fix, with a history of text, a diff and a way to pin a version in code. An agent rule also needs a person who answers for what it says, and a record of which version an agent read when it made each decision.
Vendor quotes below come from their own pages as of 18 Oct 2026 and illustrate single steps. To compare the tools themselves, platforms that let humans approve rules before agents use them sets the approval gates side by side.
What counts as one version of an agent rule?
A version is the rule’s text plus everything that decides how it applies, frozen at the moment someone approved it. If only the sentence is versioned, you can see that a limit changed but not who agreed to it, which agents it reached, or which policy paragraph it was meant to match.
How much to freeze is a real design choice. Sierra freezes a great deal: each release is “a snapshot that includes not only the underlying source code and prompts, but model version dependencies and an immutable snapshot of all of the knowledge available to the agent.” That suits a single customer service agent, where the release is the unit you care about. When many agents read the same company rules, the useful unit is smaller: one rule, versioned on its own, so a change to the travel policy does not ride along with a change to refunds.
Whatever the unit, a rule version should carry these fields. Use it as a checklist against your current setup:
- Rule text in plain language, exactly as agents will receive it.
- Source: the document, page and passage it was drawn from, and that document’s version.
- Scope: which teams, agents or cases it applies to, and which it must stay invisible to.
- Effective dates: when it starts, and when it expires if it is a temporary exception.
- Author and reason: who proposed the change and why, in one sentence.
- Approver and timestamp: a named person, not “the team”.
- Supersedes: the version it replaces, kept readable.
- Test record: which cases were run against it before approval, and what changed.
The expiry field is the one most often missing. Temporary exceptions written into an instruction as a sentence (“until the end of Q2”) tend to outlive their date, because nothing in the system knows the sentence is a date.
Should agent rules be versioned like prompts or like code?
Like code, for the mechanics. Immutable versions, diffs, separate staging and production, and promotion between them are the parts software teams already trust, and the prompt tools have copied them well.
LangSmith is a clear example. Its Context Hub says “Every change to a repo in the Context Hub creates a new commit. Commits are immutable, browsable, and comparable”, and prompts get named Staging and Production environments with “an ordered history of which commits were assigned to it and when.” Its docs recommend referencing tags rather than commit IDs, so you “can update which version is being used without modifying the code itself.” Decagon offers the same habit for its natural-language procedures: “Technical teams can version with Git-based tracking and retain full ownership of code.” Letta goes further for agent memory, where “Every memory edit is committed to the MemFS git repository.”
Where rules differ from code is review. In a code repository the reviewer is another engineer who can read the diff. A rule’s diff might be a change from 4% to 6%, and the person who knows whether 6% is right works in finance, not engineering. LangSmith shows the gap plainly: its strictest setting is “Owners only: only users added as prompt owners can create or update commit tags, promote commits to environments, and delete the prompt.” That controls who can promote. We found no mention on its pages of a request-and-approve step that records who reviewed the change. For prompts owned by an engineering team, that may be all you need. For rules a business team owns, add the recorded approval yourself or pick a tool that has one.
Who should sign off a change to an agent rule?
The owner of the policy the rule came from. Engineering reviews whether the agent still works; the policy owner reviews whether the rule says what the policy says. The two reviews usually belong to different people.
Some tools let you name the reviewer. Sierra says “A dedicated Reviewer role lets you decide exactly whose sign-off is needed: a CX lead, a compliance stakeholder, an engineering manager, or another domain expert.” Atlan assigns the job by domain: “Each domain has one accountable owner who approves definitions and policy exceptions.”
Three rules keep the review honest:
- The author cannot approve their own change. Check whether your tool has a role that skips review. Glean, for example, documents optional moderator approval for shared agents, and also says “Users with the explicit Agent Creator role can publish any agent they can edit.”
- Review effort follows risk. A typo fix and a raised approval limit should not travel the same path. Tag each change as wording, scope or substance, and require the policy owner only for scope and substance.
- Edits during review restart the review. If the approver rewrites the rule, someone else reads the rewrite.
How should a rule change move from draft to live?
Through a fixed sequence in which the current approved version keeps governing until the new one is signed off. The steps below are the minimum; most teams add a staged rollout for rules with money attached.
- Propose. The change comes from a person, an edited source document or a correction an agent reported. Record which.
- Diff. Show the proposed text next to the live version, with the source passage for each.
- Check for conflicts. Compare the proposal with every approved rule in the same scope. Two rules that can both match one case need an explicit precedence before either goes live.
- Test. Run the proposal against recent real cases and the edge cases the rule exists for (next section).
- Approve. The policy owner signs off by name. The approval is stored on the version.
- Release in stages. Send it to one agent, team or share of traffic first.
- Promote. Make it the version every agent in scope reads.
- Log. Keep the release, the approval and the first reads of the new version in the audit trail.
Glean says “the currently published version stays live until a moderator publishes the update,” which is step 5 working as it should. Sierra offers “split traffic releases” for step 6. Microsoft Copilot Studio handles steps 6 and 7 through Power Platform, where an agent sits in a solution that moves between environments “for pipeline deployments and other application lifecycle management (ALM) scenarios.” In each of these the unit moving through the pipeline is the whole agent, so if one agent’s release carries several rule changes, each still needs its own owner’s sign-off inside that release. Sierra and Decagon, both built for customer service agents, version and test the agent as a unit in this way; the approval-gate comparison covers when one of them is the right pick.
How do you test a rule change before agents follow it?
Replay recent real cases under the old version and the new one, and read every case where the outcome differs. Then run the handful of edge cases the rule was written for, since recent traffic may not contain them.
A changed outcome is what the reviewer needs to see. Someone approving a new spending threshold should see each case from last month that would now be decided differently, with the old and new outcome side by side.
The tools that document testing tie it to release. Decagon says its Simulations “help teams validate agent behavior across channels before deploying to production and with every subsequent update”, and that teams can “Integrate with CI/CD practices to test every agent version”. Sierra lets teams “require Simulations to pass before moving toward production.” Atlan describes a simulate step that shows “which questions land, which miss, and what specific change closes each gap, before exposing the context to agents.” Keep the test set with the rule, so the next person to change it inherits the cases that mattered last time.
What happens to the old version once a new one is approved?
It stays, read-only, linked to the decisions made while it governed. Going back to an earlier version should create a new version that copies the old text and passes review again, so the history never has a gap.
Glean describes that pattern for agents: “you can restore that older version as a new draft, verify it, and re-publish it.” LangSmith’s Context Hub says you can “Revert to any prior commit if a change regresses behavior.” Sierra says “every release is an immutable snapshot, rolling back is just as fast if something unexpected appears.” Whichever you use, check one thing: after the revert, can you still see that the reverted version was live for three days, and which decisions it made? If the revert overwrites history, an auditor’s question about those three days has no answer.
What should the audit trail record about rules?
Two histories that join up: the life of each rule version, and every read an agent made against it. The first answers “why does this rule say 6%?”; the second answers “what rule did the agent apply to this invoice on 4 March?”
For each version, record the author, reason, source passage, approver, approval time and release time. For each read, record the agent, the case, the rule, the version and the time. With both, you can start from a decision and walk back to the person who approved the rule behind it, or start from a rule and list every decision it governed. Teams that log only the agent’s output, without the rule version it read, find the record stops one step short. The same applies to shared memory, which memory layers for enterprise AI agents compares on provenance and access.
Where to start if your rules come from policy documents
If your rules are drawn from policies, SOPs and contracts that business teams own, and several agents need to follow them, start with Trail. Its pages put the record described above on each rule. Trail calls a rule “a governed object” with five properties (provenance, scope, approval, version and access), and describes the approval as “A named approver, with a timestamp” and the version as “Prior versions retained, so past decisions replay”.
The sequence matches the draft-to-live steps. Its Rule Engine page describes “Four stages, and a human decides at the second one.” When a source document changes, its finance page says “Update the source document and Trail re-proposes the rules it affects for review. Approve the change once and every connected agent follows the new version, with the previous one still visible in the audit log.” Conflicts are handled in review: “Both rules stay visible with their sources, the approved one keeps governing until someone decides, and the decision is recorded against whoever made it.” For the audit trail, it says “Every read, approval and version is logged, so what an agent applied on a given day can be reconstructed.”
The limits matter for this process. Paid plans start at $20k per year (the Small plan, listed in dollars with no regional price); the free plan covers 100 rules and 1 editor, which is enough to version and review a pilot policy but not to try the review split across several people. There are no public developer docs yet (its /docs page is a placeholder), so a team that wants to wire rule changes into its own CI has nothing to read before a call. Its pages describe a superseded rule as “versioned, not deleted”, and we found no mention of a rollback or revert action. Approval is said to come from “your team” or the rule’s owner; we saw no separate reviewer roles and no way to require two sign-offs on one rule, so ask about that if your policies need it. The product is meant for company rules and policies; remembering each user’s chat preferences is outside its scope.
Moving a purchasing rule from version 3 to version 4
Proposal. Priya (procurement operations) proposes raising the purchase amount that needs two supplier quotes from $5,000 to $10,000. Reason: the purchasing policy was updated on 1 October. Source: Purchasing Policy v7, section 2.3.
Diff. Version 3: “Purchase requests above $5,000 need two supplier quotes.” Version 4: “Purchase requests above $10,000 need two supplier quotes.” Scope unchanged: the purchase-request agent only, not the invoice agent.
Conflict check. One approved rule overlaps: “Purchases from suppliers onboarded in the last 90 days always need two quotes.” No conflict; the new-supplier rule is stricter and keeps precedence, and the reviewer notes that in the record.
Test. The last 30 days of purchase requests are replayed under both versions. 41 requests come out the same way; 9 requests between $5,000 and $10,000 would now go through on one quote. The reviewer reads all 9. One was from a new supplier, correctly still sent for a second quote.
Approval. Marcus, who owns the purchasing policy, approves version 4 at 14:20 on 8 October. Priya cannot approve her own proposal.
Release. Version 4 goes to the agent for one business unit for two days, then to every unit. Version 3 stays readable, marked superseded, linked to every request it decided.
Audit question a month later. “Why did the agent accept a single quote for a $7,800 order on 20 October?” Answer: rule version 4, approved by Marcus on 8 October, drawn from Purchasing Policy v7 section 2.3.
If your setup cannot produce the last paragraph of that example, start by adding the rule version to each logged decision. Rules that come from many enterprise documents add a further step, keeping the sources in sync, which context graphs for enterprise knowledge sources covers.
How we chose
We compare tools on what their own public pages say, checked on the dates shown, and label every claim. How we compare tools.
FAQ
How should approved agent rules be versioned and reviewed?
Give every change a new, immutable version that records the rule text, its source, its scope, the person who changed it and the person who approved it. Have the owner of the underlying policy review the content, test the new version against recent real cases, and keep the old version live until the new one is approved. Afterwards, keep the old version read-only so past decisions can still be explained.
Prompt versioning best practices for agent rules?
Borrow the mechanics of code: immutable commits, a diff against the live version, separate staging and production, and code that points at a label rather than a hard-coded version. Then add what a prompt history usually lacks: the source passage each rule came from, a named approver, and a record of which version each agent read. Tools such as LangSmith cover the first half well; the approval and source link are where teams usually have to add process.
What should an AI agent audit trail record about rules?
Two things: the history of each rule and the reads made against it. For each version, record who changed it, why, who approved it and when. For each agent decision, record which rule and which version it read, so you can reconstruct what governed an answer on a given day; Trail's pages say every read, approval and version is logged for that purpose.
Sources checked
Show 16 sources
- trailhq.com: Natural Language Rule Engine, checked
- trailhq.com: Context graph, how it works, checked
- trailhq.com: Finance solutions page, checked
- trailhq.com: Pricing, checked
- trailhq.com: Docs placeholder, checked
- LangSmith docs: Manage prompts, checked
- LangSmith docs: Context engineering concepts, checked
- Sierra blog: Release governance, guardrails for agents at scale, checked
- Sierra blog: The agent development life cycle, checked
- Decagon: Agent Operating Procedures, checked
- Decagon: Testing and QA, checked
- Glean docs: Review and publish agents, checked
- Glean docs: Manage drafts, versions and rollbacks, checked
- Microsoft Learn: Copilot Studio solutions overview, checked
- Atlan docs: Build an enterprise context layer, checked
- Letta docs: MemFS, checked