About
## Challenges we ran into
- Our first version let anyone buy cover after the flight had landed. We closed sales in the agent, then moved the rule on-chain as a signed proof of sale. - AeroDataBox's default date role also matches the arrival date of overnight flights, so the on-chain request hash pins dateLocalRole to Departure. - A cancelled flight has no arrival time, and a missing projection pointer means nothing is signed, so cancellations settle through a separate status-only request with its own hash. - An airline can retime a flight after the sale. The contract now stores the scheduled arrival from the signed proof of sale and measures the delay from it. - Flights that do not run daily left empty calendar days in the history, so the agent prices from flightDates. - Five data points make a noisy price, so the prior is learned from every other flight the agent has observed. - Paying for data per traveller would break the economics; the history and the proof of sale are per flight, so later travellers on a flight cost no data.
## The problem it solves
Two separate tickets, one delay, and the connection is gone. EU 261 only protects connections on a single booking, so self-transfer travellers carry the whole loss; even on one ticket, compensation starts at 3 hours, needs a claim and takes weeks. Parametric insurance can pay automatically, but earlier attempts (Etherisc's FlightDelay, AXA's fizzy) relied on an oracle that had to be trusted, and AXA stopped fizzy in 2019 saying it had not found the right distribution channels.
FlightGuard is parametric cover in which every input that moves money is a response signed by the AeroDataBox Airnode on API3 AirnodeHub, verified by the contract itself:
- Buying needs a signed proof of sale from the last 15 minutes: status Expected or CheckIn, departure at least 2 hours away. Nobody can insure a flight that is already late or cancelled, and the contract checks it, not a backend.
- Settling takes the signed arrival (pays if the flight lands at least the threshold after the scheduled arrival in the proof of sale, so a flight the airline retimes after the sale still counts as late) or the signed cancellation or diversion. Anyone can settle and earns a keeper reward, so payouts never wait for the insurer.
- Self-transfer cover turns the slack in a connection (gap minus minutes to change) into the delay threshold of a policy on the first flight.
- An underwriter agent pays per call over x402, checks that the Airnode still publishes the signer the contract trusts, prices each flight from the history it bought (empirical Bayes), refuses cover it cannot settle or should not sell, caps exposure counting open quotes, and shares data across travellers: a proof of sale is about the flight, not the buyer. The contract enforces the same caps itself (50 % of the pool per flight, 80 % per date), plus a payout limit, a quote-signing key the owner can rotate, and a pause that stops sales but never payouts.
- A watch keeper sleeps until each flight's scheduled arrival and settles it on its own.
- An MCP server lets an AI assistant quote, explain the price, buy after the user confirms, and settle.
- The contract derives every request hash itself from the flight number, the local departure date and the projection, so a signed response for another flight, date or request recovers a different signer and reverts.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.







