Keep authorization consistent as agents write your backend.
Arkveil moves permission checks and row-level data rules out of application code into one testable access model shared by your team and coding agents.
Coding agents produce endpoints faster than any team can review the authorization inside them.
An agent works from the files in front of it. Authorization is a property of the whole system — so every generated check looks right on its own while the real access model quietly diverges across services. Soon nobody can say who may do what without reading the code.
The AnswerArkveil externalizes authorization into one structured, testable access model — compact enough for an agent to load in full, like a schema or API spec. Anyone on your team can see who may do what without tracing code across services. Agents extend and test the model, and every service enforces the same policies.
Traditional access control wasn't built for software that ships at agent speed. Arkveil is.
Protecting an endpoint doesn't protect the data behind it. A permitted action can still expose the wrong rows, modify records it shouldn't, or leave data the user isn't allowed to create.
Managers can edit draft invoices from their own region
user.role = "manager"data.region = user.region and data.status = "draft"invoice.region = 'EU' AND invoice.status = 'draft'
Arkveil brings action permissions and data rules into one access model. Action policies control which operations are allowed, and data policies restrict which records can be accessed and what states they may end up in.
A granted or denied decision for every protected endpoint. One annotation marks the enforcement point, and policies hold the rules.
Row policies compile to a SQL condition your query carries along. The database filters the rows — no per-record authorization calls, however large the table.
Before an update or delete, the rows being touched are checked. After an insert or update, so is the state they end up in. A failed check rolls the transaction back.
Action policies can query your data at decision time. An ownership check takes one line:exists invoice where (data.id = request.invoiceId and data.owner_id = user.id)
Hand the new rule to the agent you already use. It extends the access model through the Arkveil CLI — and proves the change before anything ships.
arkveil model allarkveil policies create <edit-invoice-target> --type PERMISSION \ --title "Accounting edits invoices" \ --condition 'user.department = "accounting"'
arkveil tests create --name "Accounting cannot issue an invoice" \ --action-code invoices:issue --expected-access DENIED …
arkveil tests run-allarkveil eval explain -a invoices:edit --user '{"department":"accounting"}'
No agent-specific setup: arkveil --help teaches agents how to work with Arkveil, and arkveil skill provides the full, up-to-date policy authoring guide.
The agent reads the whole model first — targets, policies, tests, attribute schemas. Nothing is inferred from whatever code happens to be open.
It adds a target, a policy and tests — including the access that must stay denied. No inline check lands in your application code.
One command runs every test in the model, not just the new ones. A red suite stops the change before it ships.
An unexpected decision? The agent gets a full explanation: which policies granted access, which didn't apply, and how every condition was evaluated.
Explores the model, creates policies and tests, runs the suite, explains unexpected results.
The same policies and tests, whoever is working on them.
Reviews the model, inspects policies and test results, approves what agents propose, manages rules visually.
Policy tests are first-class artifacts with run history — a user, a context, fixtures, an expected outcome. They run against the model, independently of your application.
Every policy change can be tested against expected access behavior — so agents can't silently break the rules your team relies on. A failing suite gates your pipeline.
The evaluation trace names the candidate policies, the ones that granted, and what every sub-expression evaluated to. Your agent reads it on the CLI, your team sees it in Studio.
One access model, managed in Arkveil Cloud. Every decision evaluated by Arkveil Runtime inside your own infrastructure — no cloud round trip on the hot path.
Arkveil Cloudcontrol planeenforcement SQL runs in your application's own database session
Actions, datasets, targets, policies and tests in one place — shared by coding agents on the CLI, your team in Studio, and the runtime that enforces it.
Arkveil Runtime keeps a complete mirror of the model next to your services and decides from it. If Arkveil Cloud is unreachable, syncing stops — deciding doesn't.
One annotation guards an action. Read filters travel inside your own queries, write checks run inside your own transactions. Fail-closed by design.
One annotation marks an enforcement point, the way a route decorator marks an endpoint. Business logic contains no access rules — and never changes when they do.
Protect any endpoint with a single line — zero boilerplate
On the roadmap: .NET · Go · Python
Rules change without a rebuild, a redeploy or a code edit. User attributes come from the authentication you already have — Arkveil decides what the authenticated user may do.
Start next to your existing checks, one endpoint at a time. Arkveil coexists with what you have and expands at your pace — actions first, data when you are ready.
The door stays open. Every policy, target and test is exportable and mirrored in your own infrastructure. A coding agent can translate Arkveil enforcement points back into plain code — the policies say what to write, the tests check the result.
RBAC enumerates access scenarios through roles.
Attribute-based policies express the logic behind them.
Regional managers, finance managers, senior managers — every new access condition becomes another role, or another exception buried in code.
Express access through attributes — ownership, department, region, record state. A handful of attribute policies replace hundreds of roles.
user.role = "manager"
and user.department = request.departmentdata.region = user.region and data.status = "draft"This is attribute-based access control: a single policy can express relationships between attributes without hardcoding their possible values. Role is just one attribute among many.
The model and its enforcement are shipped. These extend them.
Persistent decision history, audit reports, and compliance evidence — on top of today's on-demand traces.
Automated analysis of the access model to identify overly broad grants, redundant policies, unintended overlaps, and gaps in test coverage.
Column-level projections and masking, extending row-level control down to individual fields.
Detection of unusual access patterns, suspicious requests, and potential misuse of granted permissions.
What Arkveil is, how it compares with the alternatives, and what it takes to rely on it.
Protect your first endpoint in minutes — by hand, or by handing it to the coding agent you already use.