Independent analysis by NHI Mgmt GroupSource article: Skyrelis, “The Fork Tax: What Per-Customer AI Policy Is Costing Your Roadmap” (November 12, 2026)

TL;DR: Per-customer AI policy embedded as flags and forks creates a recurring engineering burden of slower releases, larger test matrices and inconsistent enforcement, according to Skyrelis. Separating agent capability from tenant policy and evaluating policy at runtime restores one codebase with auditable, customer-specific controls.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Skyrelis's blog post: Per-customer AI agent policy buried in application code creates fork tax, and runtime tenant policy is the cleaner operating model.

Why it matters: IAM and AI platform teams need to separate agent capability from customer-specific authorization so releases stay governable, auditable and scalable across tenants.


Context

When customer-specific agent rules are hard-coded into product logic, policy stops being governable as a separate control plane and starts behaving like feature debt. That creates release drag, makes audit evidence brittle, and turns every new enterprise exception into another branch to maintain.

For AI agents, the real design question is where decision logic belongs. Capabilities should stay in code, but customer, region and compliance constraints belong in agentic AI security policy that can change without a redeploy.


Key questions

Q: How do runtime policy checks work for AI agents?

A: Runtime policy checks evaluate an agent action at the moment it is requested, using tenant, actor, destination, action type and parameter context. The policy layer then returns allow, block or escalate, which keeps enforcement separate from the agent’s core code and lets customer-specific rules change without redeployment.

Q: When should customer rules move out of application code?

A: Customer rules should move out of application code when they need independent change control, frequent updates, auditability, or consistent enforcement across services and agents. Put them in a policy engine or rules service when product logic would otherwise hard-code approvals, eligibility, routing, or escalation decisions. Keep only deterministic technical checks in code, and centralise business policy so ownership, review, and revocation are clearer.

Q: What is the difference between feature flags and policy engines?

A: Feature flags turn code paths on or off, usually by environment, user segment, or rollout condition. Policy engines evaluate explicit rules at runtime and return allow, deny, or an obligation based on attributes, context, or claims, which makes them suitable for authorisation and governance decisions. Flags control release behaviour; policy engines control decision logic.

Q: How can teams migrate from forks to shared policy?

A: Teams migrate from forks to shared policy by extracting duplicated approval logic, encoding it in a common policy layer, and giving each product team scoped inputs rather than custom copies. A central policy owner, versioned policies, test cases, and staged enforcement help prevent drift. That shift reduces inconsistent decisions and makes review, audit, and rollback simpler.


Technical breakdown

Why feature flags turn into forked agent policy

Feature flags are useful for controlled rollout, but they are a poor home for policy that differs by tenant, region or regulatory profile. Once an agent action depends on nested conditions in wrappers or branches, the same intent can be enforced three different ways, which makes behavior hard to reason about and harder to prove. The technical failure is not the flag itself. It is the collapse of policy semantics into application logic, where version drift and code path variation create inconsistent outcomes across tenants. See the Agentic AI Security Policy Template.

Practical implication: Keep capability logic in code and move customer-specific enforcement into a separate policy decision layer.

Runtime policy evaluation for AI agents

Runtime policy evaluation means the agent asks for permission at the moment it wants to act, and the system decides using tenant-scoped rules. The check can consider actor, tenant, destination, action type, and parameter values, then return allow, block or escalate. This is materially different from compiling customer logic into the app because the policy can be versioned, logged and changed independently of deployments. That separation is what makes one codebase support many customers without creating hidden behavioral forks. See the Low-Code Agent Platform Security Guide.

Practical implication: Evaluate sensitive agent actions at execution time rather than hard-coding customer exceptions into the product.

Auditability depends on policy lineage, not code archaeology

When customer rules sit in code branches and wrapper logic, proving what applied to a tenant at a given point in time becomes an exercise in reconstructing history from flags, commits and release notes. Policy lineage fixes that by making the rule, its version and the tenant scope explicit in the decision record. That changes audit evidence from an investigation into a control artifact. For regulated buyers, that distinction matters because the organization needs to show not only what happened, but what policy authorized it.

Practical implication: Record each agent decision against the tenant policy version that produced it.


NHI Mgmt Group analysis

Per-customer AI policy becomes fork debt when it is embedded in application logic. Every tenant exception that lands in code creates a future governance cost, because the organization now has to maintain behavior, test coverage and audit evidence across multiple code paths. That is why the problem is structural rather than procedural: the control is in the wrong layer. The practical conclusion is that policy variation must be treated as data, not as product branching.

Runtime policy is the only scalable way to keep AI agent authority tenant-specific. An agent that can look up records, issue refunds or update systems needs one capability model, but each customer may impose different limits, approvals or data scopes. A runtime decision layer preserves that distinction by evaluating the same action against different tenant rules at execution time. The governance win is consistency without redeployment, which is the only durable way to avoid policy drift at scale.

Auditability depends on making policy decisions first-class identity events. If a reviewer has to reconstruct the rule from code, flags and branches, the control is already too opaque for enterprise assurance. AI policy separation is not just a software architecture choice, it is an evidence model for customer trust, change control and incident review. Practitioners should treat every policy decision as a governed event with tenant, rule version and outcome attached.

Tenant-scoped policy resolves the false choice between flexibility and control. The article’s central lesson is that custom customer behavior does not require custom product behavior. It requires a policy architecture that can express exceptions without multiplying product versions. The practitioner implication is clear: if customer requirements force code forks, the control model is already losing to the sales process.

Read next: Agentic AI Security Policy Template

What this signals

Fork tax is a policy architecture problem, not just a development nuisance. Once customer exceptions are scattered through code, the organization has turned governance into a release-management issue. That usually means every future product change now carries hidden policy risk, because a change to one branch can alter behavior for another tenant.

AI agents make policy separation more urgent because their actions are evaluative, not static. The control point has to move to the moment of execution, where tenant scope and action context can be checked together. Without that shift, enterprise customisation will keep eroding consistency, and the audit trail will remain a reconstruction exercise instead of a control record.

Policy decisions should become operational telemetry. If the organization cannot see which rule version permitted or blocked an agent action, it cannot prove governance at scale. Runtime policy gives security and platform teams a common evidence layer for customer trust, change control and incident review.


For practitioners

  • Inventory every tenant-specific agent rule Catalog flags, config branches and forked logic that alter agent actions, then group them by access, limits, approvals and data scope.
  • Separate capability from policy Keep what the agent can do in shared code and move customer-specific restrictions into a runtime policy layer.
  • Evaluate policy at execution time Check each action against tenant-scoped rules when the agent calls a tool or API, so the same codebase can enforce different customer constraints.
  • Log policy lineage for audit Store the tenant, policy version and decision outcome for each sensitive action so reviewers can reconstruct what was enforced without reading code history.
  • Cut over high-risk actions first Start migration with money movement, deletion and cross-tenant data access, then remove redundant flags after observe-mode validation.

Key takeaways

  • Customer-specific AI rules become expensive when they live in application code, because every exception creates more branches, more testing and more governance drift.
  • The operational problem is not custom policy itself but the loss of a single enforcement layer across tenants.
  • Runtime policy evaluated at execution time gives teams one codebase, clearer audit records and a safer path away from forked behavior.

Related NHI Mgmt Group resources: Agentic AI Security Policy Template · Low-Code Agent Platform Security Guide · AI Acceptable Use Policy vs AI Security Policy


Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 addresses the attack surface, NIST AI RMF and NIST CSF 2.0 set the technical controls, and ISO/IEC 42001:2023 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseCustomer-scoped agent rules govern what an agent may do under different identities and tenants.
Recommendation — Separate agent capability from tenant policy and enforce each action at runtime to prevent privilege drift.
NIST AI RMFMANAGE — AI Risk ManagementTenant-specific agent policy is an AI governance problem requiring managed controls and traceability.
Recommendation — Define, version and log tenant policy decisions as governed AI risk controls.
ISO/IEC 42001:2023Clause 8 — OperationRuntime policy and policy lineage support operational control over AI system behavior.
Recommendation — Operate AI policy as a controlled process with versioning, approval and evidence.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsTenant policy determines which actions an AI agent is authorised to perform.
Recommendation — Apply PR.AA-05 to keep agent authorizations explicit, scoped and reviewable.

Key terms

  • Runtime Policies: Runtime policies are enforcement rules that control what a workload is allowed to do while it is running. They can be used to block dangerous actions, contain suspicious behavior, or automate response based on security requirements. In container environments, they turn detection into immediate control.
  • Tenant-Scoped Policy: Tenant-scoped policy restricts authorization rules to a specific customer boundary or organisation context. It allows one SaaS platform to support different roles, permissions, and resource visibility per tenant without exposing those rules to other tenants or duplicating the entire policy model.
  • Policy lineage: Policy lineage is the traceable history of a policy from authoring through rollout and enforcement. It matters because identity governance is not only about whether a decision was correct, but also about whether the organisation can prove which rule produced it and why.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org