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.
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.
A program is a folder of versioned files. Anyone, or any AI, can edit them.
Files
File
What it holds
program.yaml
Identity, version, states and term
fields.yaml, objects.yaml
What you collect about a risk
coverages.yaml
Coverages, limits and deductibles
rules.yaml
Eligibility, authority and referral checks
raters.yaml
How premium is calculated
forms.yaml, clauses.yaml
Documents and their wording
lifecycle.yaml
Stages from submission to renewal
automations.yaml
What the program does on its own: documents, emails and follow-ups. See Automations.
money.yaml
Taxes, fees and how money moves
scenarios/
Risks with the outcome you expect
tables/*.csv
Rate 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.
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 }
Key
What it holds
on
The event that starts it, such as policy.bound. It can also be a point in time, such as 60 days before expiry.
when
A condition on the record. Leave it out and the automation always runs.
do
The actions to take, in order
Actions
Actions come from one list. An automation can only do what is on it.
Action
What it does
document.generate
Renders a document from the record: a quote, a binder, an endorsement
email.send
Sends a template to a party on the risk, with documents attached
quote.release
Releases a quote to the producer
stage.advance
Moves the record to its next stage
task.create
Puts 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 want
How it is written
A binder when a policy binds
on: policy.bound, then document.generate
A quote nobody has to touch
on: application.submitted, when every check passes, then quote.release and email.send
An endorsement in the broker's inbox
on: endorsement.issued, then document.generate and email.send
A stage that moves itself
Any 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.
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.