Prototype docs. Endpoints, commands and addresses are illustrative.
Start

Quickstart

Stand up a program, prove it and take a first quote.

1. Install the CLI

Shell
npm install -g @policyfly/airframe
airframe login

2. Start from a chassis

A chassis is a working base for a line of business. Your program extends it and changes what differs.

Shell
airframe init contractors-equipment --from im-chassis@1.0.0

3. Prove it

Proof runs your scenarios and replays past quotes through the program. Nothing publishes until it passes.

Shell
airframe prove ./contractors-equipment

4. Publish

Publishing takes an effective date. From that date the version is live on API, MCP and email intake.

Shell
airframe publish --effective 2027-03-01

5. Take a quote

Shell
curl -X POST https://api.policyfly.com/v1/records \
  -H "Authorization: Bearer $POLICYFLY_KEY" \
  -d '{
    "program": "contractors-equipment@1.0.0",
    "insured": "Example Excavation LLC",
    "state": "TX",
    "total_insured_value": 1850000
  }'
Start

Build with your agent

Airframe is written to be read by agents. Point yours at the docs and hand it your rules, rates and forms.

Paste into your agent

Attach what you have

  • Rulesuw-guide.pdf
  • Ratesrates.xlsx
  • Formsforms.pdf
Read https://policyfly.com/docs/llms.txt, then build my program on Airframe from the attached rules, rates and forms. Draft the program files, run them against the sample risks, and show me the proof before you publish.

What the agent reads

  • llms.txt is an index of these docs in plain text.
  • get_program_schema returns the shape of a program, straight from the kernel.
  • Your files give it the rules, the rates and the forms. PDFs and spreadsheets are fine as they are.

Connect it to a live program

Shell
claude mcp add --transport http policyfly https://mcp.policyfly.com/p/<your-program>

Who can commit

An agent proposes changes as plans. What it may commit on its own is set per customer, and everything it does lands in the history.

Concepts

How Airframe works

Airframe is the kernel. It holds every policy as a record with a history, and it does the arithmetic.

Records

A submission, a quote and a policy are the same record at different stages. Quote, bind, endorse, cancel and renew are changes to that record.

Changes are plans

Every change is previewed as a plan first. The plan shows the premium change, the documents it will issue and the checks it passes. Committing the plan applies it.

Out of sequence is normal

A change dated before later changes is applied where it belongs. Everything after it is re-rated, and the money is settled to the cent.

One engine everywhere

Jet runs the same rules on the server and in the browser. The number an underwriter sees is the number that binds.

History

Every value, rule, rate and AI decision is recorded with where it came from. You can read any record as it stood on any date.

Concepts

Program format

A program is a folder of versioned files. Anyone, or any AI, can edit them.

Files

FileWhat it holds
program.yamlIdentity, version, states and term
fields.yaml, objects.yamlWhat you collect about a risk
coverages.yamlCoverages, limits and deductibles
rules.yamlEligibility, authority and referral checks
raters.yamlHow premium is calculated
forms.yaml, clauses.yamlDocuments and their wording
lifecycle.yamlStages from submission to renewal
automations.yamlWhat the program does on its own: documents, emails and follow-ups. See Automations.
money.yamlTaxes, fees and how money moves
scenarios/Risks with the outcome you expect
tables/*.csvRate tables

A rule

A rule names what it checks, what to say when it fails, and the stages where it runs.

rules.yaml
- id: tiv-within-authority
  on: record
  check: record.total_insured_value <= 5000000
  message: "Total insured value is above the $5M authority."
  severity: error
  when: [submit, release, bind]

Extending a chassis

A program can extend a chassis and change only what differs. The chassis carries the parts every program in a line shares.

program.yaml
program:
  id: contractors-equipment
  version: 1.0.0
  extends: [im-chassis@1.0.0]
  states: [TX, OK, LA, AR]
  term: { default: P1Y, max: P18M }

Versions

Every publish is a version with an effective date. The files and their history stay readable for as long as the program runs.

Concepts

Proof

Every change is proven against real risks before it goes live.

Scenarios

A scenario is a risk plus the outcome you expect. Scenarios run on every change, so a rule that worked last month still works today.

Replay

Past quotes are run through the new version. Any quote that comes out different is listed with the reason.

Impact

Before you publish, you see which in-force policies would change and by how much.

Shell · example output
airframe prove ./contractors-equipment

  scenarios        212 / 212 pass
  replay           1,240 / 1,240 match to the cent
  in-force impact  0 policies change
  new referrals    0
Concepts

Automations

An automation says: when this happens, and this holds, do these actions. It is how a program sends documents, emails and follow-ups without being asked.

The shape

Each automation has a name, a trigger, an optional condition and a list of actions.

automations.yaml
issue_binder:                        # just a name
  on: policy.bound
  do:
    - document.generate: binder
    - email.send: { template: binder_issued, to: producer, attach: binder }

stp_quote:
  on: application.submitted
  when: checks.passed && record.total_insured_value <= 1000000
  do:
    - quote.release
    - document.generate: quote
    - email.send: { template: quote_ready, to: producer, attach: quote }
KeyWhat it holds
onThe event that starts it, such as policy.bound. It can also be a point in time, such as 60 days before expiry.
whenA condition on the record. Leave it out and the automation always runs.
doThe actions to take, in order

Actions

Actions come from one list. An automation can only do what is on it.

ActionWhat it does
document.generateRenders a document from the record: a quote, a binder, an endorsement
email.sendSends a template to a party on the risk, with documents attached
quote.releaseReleases a quote to the producer
stage.advanceMoves the record to its next stage
task.createPuts work in front of a person, with a due date

One mechanism

Documents, notifications and straight-through quoting are the same kind of configuration. Each one is an automation calling actions.

What you wantHow it is written
A binder when a policy bindson: policy.bound, then document.generate
A quote nobody has to touchon: application.submitted, when every check passes, then quote.release and email.send
An endorsement in the broker's inboxon: endorsement.issued, then document.generate and email.send
A stage that moves itselfAny trigger, then stage.advance

Stages and gates

Automations sit beside two other parts of a program. A stage is the step a submission or policy is sitting at. A gate is a check that blocks a step. An automation is what happens once the step is taken.

How actions run

  • Actions are queued with the change that caused them, in the same transaction. If the change does not commit, nothing is sent.
  • They run after the change, never inside the request.
  • Each action runs once per event, even if the event arrives twice.
  • A failed action retries. If it keeps failing, it raises a task and an alert.
  • Each event in the history lists the actions it caused.

Previews

A preview lists the actions a change would cause and runs none of them.

Preview · example output
planned actions
  would render  binder
  would send    binder_issued to broker@example.com, binder attached

Examples

  • A policy binds. The binder is generated and emailed to the broker.
  • A submission arrives with information missing. An email back to the agent is drafted or sent.
  • A telematics feed reports a new vehicle. An endorsement is proposed for an underwriter to accept.
Connect

API

Everything the screen does goes through this API.

Endpoints

RequestWhat it does
POST /v1/recordsCreate a submission
GET /v1/records/{id}Read a record, as of any date
POST /v1/records/{id}/editsPropose a change and get a plan back
POST /v1/plans/{id}/commitApply a plan
GET /v1/records/{id}/historyEvery change, who made it and why

Preview, then commit

An edit never applies on its own. It returns a plan you can inspect, and the plan applies when you commit it.

Shell
curl -X POST https://api.policyfly.com/v1/records/POL-1042/edits \
  -H "Authorization: Bearer $POLICYFLY_KEY" \
  -d '{ "effective": "2027-06-01", "add": { "units": 2 } }'

# { "plan": "pln_8f2c", "premium_change": "+1284.33", "checks": "pass" }

curl -X POST https://api.policyfly.com/v1/plans/pln_8f2c/commit \
  -H "Authorization: Bearer $POLICYFLY_KEY"
Connect

MCP server

Anything you can click, your AI can do.

Connect

Shell
claude mcp add --transport http policyfly https://mcp.policyfly.com/p/<your-program>

Tools

ToolWhat it does
search_recordsFind submissions, quotes and policies
showRead a record
get_termRead one policy term
get_actionsList what can be done to a record next
editPropose a change
preview_changesSee the plan: premium, documents and checks
commit_planApply a plan
get_historyRead what changed, when and by whom
compareCompare two versions of a record
get_program_schemaRead the shape of a program

Permissions

Reading and previewing are open to any connected agent you approve. Who may commit is set per customer.

Connect

Distribution

Distribution is a program's lifeblood. A wholesaler or agent sends you business the way they already work.

Their agent, over MCP

A wholesaler's agent connects with one line and starts sending submissions. You decide what it can see and do.

Their system, over API

Portals, agency systems and legacy platforms post to the same endpoints your own screens use.

Their inbox, over email

Mail sent to your program's address is read by Capture. Each value it proposes points back to the line it came from. Questions, quotes and documents go back on the same thread, so your brokers never leave their inbox.

Your program's address
submissions@<your-program>.policyfly.com

Through the network

A program can be published as a market on Interconnect. A risk then reaches it through as many hands as the deal needs, and each coverage can take its own path.

One record either way

Whichever door a submission comes through, it becomes the same record and runs the same rules.

Reference

Lifecycle

Stages from submission to renewal, and the checks that run at each one.

This page is not written yet. The prototype covers the quickstart, the program format, proof, automations, the API and the MCP server.

Reference

Money

Taxes, fees, commission and installments, settled to the cent on every transaction.

This page is not written yet. The prototype covers the quickstart, the program format, proof, automations, the API and the MCP server.

Reference

Documents

Quotes, binders, policies and endorsements, issued from the same data that rated them.

This page is not written yet. The prototype covers the quickstart, the program format, proof, automations, the API and the MCP server.

Concept · not offered today

Transaction guarantee

An idea we are exploring. If the kernel executes a transaction wrongly on a program configured on our rails, PolicyFly covers the error.

What it would cover

  • A wrong proration on an endorsement or a cancellation
  • A figure printed on a document that differs from the record
  • A wrong line on a bordereau

What stays with you

  • The rates and rules you publish
  • Underwriting decisions

Status

Nothing here is offered today. The limit and the terms are not set.