Airframe
The kernelQuote, bind, endorse, cancel and renew. A back-dated change re-rates everything after it.
Path A · Build
The policy kernel, the program format and the rails, behind one API and one MCP server.
~/programs $ claude "Build a contractors equipment program on Airframe" Read policyfly.com/docs/llms.txt Wrote contractors-equipment/program.yaml Wrote rules.yaml, raters.yaml, forms.yaml (+6 files) ~/programs $ airframe prove ./contractors-equipment ✓ 212 scenarios pass ✓ 1,240 past quotes match to the cent ~/programs $ airframe publish --effective 2027-03-01 ● v1.0.0 live · API · MCP · email intake
The program format
Rates, rules, forms, lifecycle and automations live in plain files. Anyone on your team can read them, and any AI can edit them. Every version is kept.
# Identity, version, where it's sold and for how long.
program:
id: contractors-equipment
version: 1.0.0
name: Contractors Equipment
lob: inland-marine
extends: [im-chassis@1.0.0] # start from a chassis, change what differs
regulatory: surplus-lines
states: [TX, OK, LA, AR]
term: { default: P1Y, max: P18M }
# A rule is checked at the stages it names.
- 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]
- id: no-cranes-over-100t
on: record
check: record.equipment.all(e, e.type != 'crane' || e.capacity_tons <= 100)
message: "Cranes over 100 tons are outside appetite."
severity: error
when: [submit]
# Premium is insured value times a base rate times the factors.
base_rate:
table: tables/base_rates.csv # by equipment class
key: [equipment.class]
factors:
- id: deductible
table: tables/deductible_factors.csv
key: [deductible]
- id: loss_history
when: record.prior_losses_3yr > 0
table: tables/loss_factors.csv
key: [prior_losses_band]
minimum_premium: 2500
round: cent
# When this happens, and this holds, do these actions.
stp_quote: # just a name
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 }
issue_binder:
on: policy.bound
do:
- document.generate: binder
- email.send: { template: binder_issued, to: producer, attach: binder }
send_endorsement:
on: endorsement.issued
do:
- document.generate: endorsement
- email.send: { template: endorsement, to: producer, attach: endorsement }
chase_missing_info:
on: application.incomplete
do:
- email.send: { template: missing_info, to: producer }
- task.create: { for: underwriter, due: P2D }
# A scenario is a risk plus the outcome you expect.
name: Over authority is stopped at submit
given:
total_insured_value: 6200000
equipment:
- { type: excavator, value: 6200000 }
expect:
submit: blocked
by: tiv-within-authority
Example program. File contents are illustrative.
Proof
Every change is replayed against real risks before it goes live. You see what moves, and by how much, before anyone is affected.
Surfaces
Anything you can click, your AI can do. The same change runs through the screen, the API and the MCP server, with the same checks and the same history.
An underwriter keys the change. Example data.
# 1. propose the change
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" }
# 2. commit the plan
curl -X POST https://api.policyfly.com/v1/plans/pln_8f2c/commit \
-H "Authorization: Bearer $POLICYFLY_KEY"
Another system posts the change. Endpoints are illustrative.
> Add two units to POL-1042, effective June 1.
edit record POL-1042 · effective 2027-06-01 · +2 units
preview_changes premium +$1,284.33 · all checks pass
commit_plan applied once you accept
An agent asks for the change in plain language. The exchange is illustrative.
Parts list
Every part runs on the same kernel, so they agree with each other.
Quote, bind, endorse, cancel and renew. A back-dated change re-rates everything after it.
Change a rate or a rule, replay it against the book, publish with an effective date.
Versioned files. Review a rate change the way you review code.
When this happens, do that. Documents, emails and follow-ups, sent and logged.
Headless. The same rules run on the server and in the browser.
Emails and attachments become proposed values, each with its source.
For trucking: crashes, inspections and peer benchmarks on the submission.
Every value, rule, rate and AI decision, traceable to where it came from.
Every program can be a market. A risk reaches it through as many hands as the deal needs.
Quotes, binders, policies and endorsements from the same data.
A transaction guarantee for programs configured on our rails. The kernel executes what you publish, and we stand behind the execution.
Attach what you have
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.