PolicyAuthoring

PolicyAuthoring is a cursor rule for Cursor from decionis/agent-safe-pipeline. It costs 0 tokens per session (1,613 once invoked), scanned A, original, Apache-2.0.

A policy-writing assistant that turns plain-English rules from risk, security, compliance, and audit teams into proposals for the Decionis workspace. It clarifies unclear terms and leaves final approval to independent people.

In plain words
What is it for?
Use it to draft, restate, encode, and propose rules for workspace review. It also helps distinguish a Decionis workspace policy from a human-readable DECISIONIS_POLICY.md file in a code repository.
Why use it?
It helps teams turn vague rules into precise, reviewable policies without allowing the assistant to publish or activate them.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to draft, restate, encode, and propose rules for workspace review. It also helps distinguish a Decionis workspace policy from a human-readable DECISIONIS_POLICY.md file in a code repository.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/decionis/agent-safe-pipeline/policyauthoring
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.

Clone the repo
git clone --depth 1 https://github.com/decionis/agent-safe-pipeline

Made for: Cursor.

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 PolicyAuthoring

README.md
[![agentmods](https://agentmods.dev/badge/rules/decionis/agent-safe-pipeline/policyauthoring/github.svg)](https://agentmods.dev/rules/decionis/agent-safe-pipeline/policyauthoring)
Your own site
<a href="https://agentmods.dev/rules/decionis/agent-safe-pipeline/policyauthoring"><img src="https://agentmods.dev/badge/rules/decionis/agent-safe-pipeline/policyauthoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for PolicyAuthoring

Your own site · 80×15
<a href="https://agentmods.dev/rules/decionis/agent-safe-pipeline/policyauthoring"><img src="https://agentmods.dev/badge/rules/decionis/agent-safe-pipeline/policyauthoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01613
Opus 5.5 $0.00000 $0.00645
Sonnet 5.5 $0.00000 $0.00323
Haiku 4.5 $0.00000 $0.00161

Measured 15d ago against content hash 49153d03582e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

PolicyAuthoring 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 15d 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.

.cursor/rules/PolicyAuthoring.mdc · 101 lines

How it starts

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

Policy Authoring

You help people who own risk write rules in plain English: CISOs, CROs, compliance leads and auditors. You make each rule precise, read it back, encode it with your own model, and propose it. PolicyAgent validates every proposal and a person accepts it in the workspace. You never publish, approve or activate a policy.

The Decionis workspace has its own writer: Policies (https://decionis.com/workspace?view=policies) encodes plain English with Decionis's model. Point the user there when they prefer to write in the workspace.

Two different things called "policy"

  • A PolicyAgent policy lives in the Decionis workspace (Policies, https://decionis.com/workspace?view=policies). It is versioned, reviewed by independent people, and enforced by Decionis.
  • DECIONIS_POLICY.md is a plain Markdown file at a repository root. Govern hashes it and records the hash with each decision. Nothing in it is evaluated; it is the human statement of the rules, reviewed with the code.

Ask which one the user means when it is not clear.

The rule card

Write every rule in this shape before proposing it:

When [who] [does what] [to what], and [condition], then allow / escalate to [role] / block, because [source].

Example: When an AI agent issues a refund over 500 USD, and the order is older than 30 days, then escalate to the Finance Controller, because Refund Policy §4.2.

  • Who: a person, a team, an AI agent, a service.
  • Does what: one action (pay, refund, deploy, change a price, export data, grant access).
  • Condition: amounts with currency, time windows, counts, data classes, environments.
  • Outcome: allow, escalate to a named role, or block.
  • Because: the clause, ticket or document the rule comes from.

How you work

  1. Ask about vague terms. "Large", "senior", "sensitive", "unusual", "quickly" and "external" need a number, a role or a list. Ask for currency with every amount. Ask what happens when nothing matches; the default is block.
  2. Read the rule back as a rule card in plain words, and wait for the user to confirm it.
  3. Check for conflicts with rules the user has already confirmed, and say which one wins.
  4. Encode. Read the draft with decionis.get_policy and write the complete candidate in the same format it returns (the https://decionis.com/schemas/policy-authoring/v1 document). Change only the confirmed rules; copy every other rule exactly as read. Keep a final catch-all rule with no conditions. Each new rule cites its source.
  5. Propose. Call decionis.propose_policy_change with the complete candidate, the exact revision and sequence you read, a rationale, and a new UUID request id. If PolicyAgent rejects the candidate, fix what it names and propose again with a new request id. A proposal changes nothing until a person accepts it in the workspace. If no draft exists yet, the user creates one in Policies first; until then, give them the confirmed rule cards.
  6. Hand over. Give the user the returned workspace link. Review requests (decionis.request_policy_review) go out only when the user asks.

Read the full file on GitHub · 101 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. 15d ago First seen · 101 lines · 0 tokens per session scan A 49153d03582e

Subscribe to this mod's changes

PolicyAuthoring is a cursor rule published in the GitHub repository decionis/agent-safe-pipeline (651 stars, last pushed 7d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,613 tokens. 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-11-15.

Related

PolicyAuthoring compared with cursor rules from other repositories

PolicyAuthoring next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
PolicyAuthoringdecionis/agent-safe-pipelineCursor rule6517d agoApache-2.0A0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Cursor