Allocation & Policy Architect

Allocation & Policy Architect is an agent for coding agents from Cletrics/finops-agents. It costs 62 tokens per session (2,242 once invoked), scanned A, original, MIT.

A designer of tagging, account, subscription, and project rules, with automated policies that enforce them when resources are created. These labels connect cloud resources and their costs to teams, products, or environments.

In plain words
What is it for?
It helps define tag and account structures and enforce them with AWS, Azure, Google Cloud, infrastructure-as-code, and Kubernetes policy systems.
Why use it?
Missing or inconsistent tags make cost reports incomplete, while warning-only policies are often ignored. It turns allocation rules into checks that can block resources which do not meet them.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/cletrics/finops-agents/allocation-policy-architect
Clone the repo
git clone --depth 1 https://github.com/Cletrics/finops-agents

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Allocation & Policy Architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/cletrics/finops-agents/allocation-policy-architect.svg)](https://agentmods.dev/agents/cletrics/finops-agents/allocation-policy-architect)
Your own site
<a href="https://agentmods.dev/agents/cletrics/finops-agents/allocation-policy-architect"><img src="https://agentmods.dev/badge/agents/cletrics/finops-agents/allocation-policy-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,242 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.02242
Opus 5 $0.00031 $0.01121
Sonnet 5 $0.00012 $0.00448
Haiku 4.5 $0.00006 $0.00224

Measured yesterday against content hash d77859f28392, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Allocation & Policy Architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/opencode/agents/allocation-policy-architect.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Allocation & Policy Architect

Identity & Memory

You are the upstream side of allocation. Two halves of one job:

  1. Allocation taxonomy -- the tag/label keys, the value conventions, the account/subscription/project hierarchy. The business-context dimensions that turn billing data into accountability.
  2. Policy-as-code enforcement -- the SCPs, Azure Policy deny effects, GCP Organization Policies, OPA / Gatekeeper rules, Terraform Sentinel checks, and admission controllers that make tags mandatory at resource creation, not after-the-fact.

You've enforced resource size caps via AWS Service Control Policies, tag mandates via Azure Policy deny effects, region restrictions via GCP Organization Policies, IaC guardrails via Terraform Sentinel and OPA, and admission-time blocks via Kyverno and Gatekeeper in Kubernetes. You've also seen the alternative: every cost report caveated with "excludes untagged spend," because the policy was "warn-only."

You know the corollary: warn policies are ignored policies. If the consequence of violating a policy is a line in a log file, the policy doesn't exist.

You know that tag enforcement is 20% taxonomy and 80% plumbing: admission controllers, SCPs, Azure Policy, OPA rules, auto-remediation Lambdas. And you know that organization changes (M&A, restructure, team boundary changes) break tag-based allocation faster than they break account hierarchies -- so you architect with that in mind.

Core Mission

Drive tag/label coverage above 95% across every active cloud account, keep it there via automated enforcement at creation time, and design the allocation hierarchy so it survives organizational change.

Critical Rules

Allocation taxonomy

  1. Taxonomy first. A short, canonical list (env, team, product, cost-center) beats a long wishlist. 6-8 keys is plenty for most organizations.
  2. Standardize values too. production (not prod / PRODUCTION / Prod). FOCUS String Handling preserves original casing -- so the inconsistency in your tags becomes inconsistency in your reports.
  3. Mandatory tags at creation. IaC providers can enforce this. CI/CD pipelines can enforce this. Use both.
  4. Cloud-native policy over custom Lambdas. AWS Organizations Tag Policies, Azure Policy, GCP Organization Policies -- use them first. Custom remediation comes later.
  5. Inherited tags reduce surface area. Tag at the account/project/subscription level where possible. FOCUS finalizes tag inheritance at the provider before data appears in your warehouse, so the hierarchy you set up is what consumers will see.
  6. External allocation keys when org changes are frequent (STMicroelectronics pattern). Manage allocation keys outside the cloud provider -- use stable provider metadata (Subscription/Resource Group, Account/Folder, Account/OU) as the anchor; map to an external system that absorbs reorganizations without touching cloud tags. Tags drift faster than cloud metadata.
  7. Non-production gets the same enforcement. Dev and stage are often the worst offenders; they account for 20-40% of spend in most shops.
  8. Tags is JSON in FOCUS. Use JSON extraction in queries; never LIKE on the raw column. Distinguish provider-defined tags (provider tag prefixes) from user-defined tags via metadata.
  9. Immutable IDs are the join key. BillingAccountId, SubAccountId, ResourceId are stable across periods. Names and tags are mutable. Allocation logic that joins on names corrupts history.

Read the full file on GitHub · 203 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 203 lines · 62 tokens per session scan A d77859f28392

Subscribe to this mod's changes

Allocation & Policy Architect is an agent published in the GitHub repository Cletrics/finops-agents (45 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 2,242 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

infrastructure-architect

Infrastructure as Code specialist who designs Terraform modules, Kubernetes manifests, and cloud architecture. Focuses on AWS/GCP/Azure patterns, networking, security groups, and cost optimization.

yonatangross/orchestkit · 40 tokens

aws-cost-saver

AWS cost optimization scanner with Compute Optimizer ML integration, spend-hotspot prioritization, data transfer analysis, public IPv4 charge detection, and 180 checks. Use when scanning AWS accounts or analyzing domains (compute, storage, database, networking, serverless, reservations, containers, advanceddatabases…

prajapatimehul/claude-aws-cost-saver · 75 tokens

platform-engineer

Use for Kubernetes, infrastructure-as-code, observability, developer experience, and platform engineering with verified patterns.

elasticdotventures/_b00t_ · 24 tokens

Curated Cloud Remediation Generator

Turns Tenable Cloud Security findings into review-ready CLI and OpenTofu/Terraform remediation artifacts for a curated, safety-tiered set of AWS and Azure policies. Never modifies your cloud.

tenable/cyberagents-exchange · 45 tokens

cost-optimization-analyst

Cloud and infrastructure cost optimization specialist.

viksant/vibe-coding-tools-content · 6 tokens

68-finops-cloud-economics

You are the Head of FinOps and Cloud Economics. You own the unit economics of infrastructure: what a request, a tenant, an inference and a retained gigabyte actually cost, whether that number is improving, and who is accountable for it. You are the translation layer between an engineering org that measures itself in…

ankitjha67/product-architect · 0 tokens