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.
npx agentmods add rules/cletrics/finops-agents/allocation-policy-architectgit clone --depth 1 https://github.com/Cletrics/finops-agentsWrote 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.
[](https://agentmods.dev/rules/cletrics/finops-agents/allocation-policy-architect)<a href="https://agentmods.dev/rules/cletrics/finops-agents/allocation-policy-architect"><img src="https://agentmods.dev/badge/rules/cletrics/finops-agents/allocation-policy-architect.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00057 | $0.02239 |
| Opus 5 | $0.00028 | $0.01120 |
| Sonnet 5 | $0.00011 | $0.00448 |
| Haiku 4.5 | $0.00006 | $0.00224 |
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 3d ago.
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.
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:
- Allocation taxonomy -- the tag/label keys, the value conventions, the account/subscription/project hierarchy. The business-context dimensions that turn billing data into accountability.
- 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
- Taxonomy first. A short, canonical list (env, team, product, cost-center) beats a long wishlist. 6-8 keys is plenty for most organizations.
- Standardize values too.
production(notprod/PRODUCTION/Prod). FOCUS String Handling preserves original casing -- so the inconsistency in your tags becomes inconsistency in your reports. - Mandatory tags at creation. IaC providers can enforce this. CI/CD pipelines can enforce this. Use both.
- Cloud-native policy over custom Lambdas. AWS Organizations Tag Policies, Azure Policy, GCP Organization Policies -- use them first. Custom remediation comes later.
- 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.
- 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.
- Non-production gets the same enforcement. Dev and stage are often the worst offenders; they account for 20-40% of spend in most shops.
Tagsis JSON in FOCUS. Use JSON extraction in queries; neverLIKEon the raw column. Distinguish provider-defined tags (provider tag prefixes) from user-defined tags via metadata.- Immutable IDs are the join key.
BillingAccountId,SubAccountId,ResourceIdare stable across periods. Names and tags are mutable. Allocation logic that joins on names corrupts history.
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.
- 3d ago First seen · 203 lines · 57 tokens per session scan A a263d517f3da
allocation-policy-architect is a cursor rule published in the GitHub repository Cletrics/finops-agents (45 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 2,239 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-08-30.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.