amanat

v0.1.3
io.github.PugarHuda/amanat Checked 2 days ago Published 2 months ago

Storm risk, route risk and reanalysis backtests for any point on earth.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

storm_risk

Storm risk for a place or coordinate, 0 to 1, with the reading behind it: wind, gusts, precipitation, sea state, the nearest named cyclone, and a band across 51 ECMWF ensemble members. 0.75 is the line a parametric cover pays on. Accepts a place name, a whole question naming one, or "lat,lon".

ParameterTypeDescription
place *stringA place name, a question naming one, or "lat,lon".
hoursintegerHours ahead, 0 to 168. Omit to read it from the question, or 0 for now.

route_risk

Storm risk along a route, each leg read at the hour a vehicle travelling at `speed` actually reaches it — not one reading for the whole voyage. Returns the worst leg and whether it crosses the 0.75 trigger.

ParameterTypeDescription
from *stringOrigin place name.
to *stringDestination place name.
legsintegerWaypoints. Default 3.
speednumberSpeed in km/h. Default 37, about 20 knots.

backtest

Would the 0.75 trigger have fired at this place over this date range? Read from the ERA5 reanalysis archive, so it is what actually happened rather than a forecast. Typhoon Rai at Cebu, 2021-12-15 to 2021-12-18, reads 1.000.

ParameterTypeDescription
end *stringISO date, e.g. 2021-12-18.
place *stringPlace name or "lat,lon".
start *stringISO date, e.g. 2021-12-15.

telegraph_onchain_jobable

Which Telegraph intents an ERC-8183 on-chain job cannot survive, and which miners on each one can actually receive a job. A job is routed by rank and nothing in that path checks whether the miner it lands on declares an `on_chain.request` mapping — so on most intents the job is answered from that miner's first endpoint with no parameters. Read this before putting a contract on the on-chain rail. Pass `intent` for a verdict on one intent alone: can_receive_a_job is true, false, or null where the leader's registration cannot be fetched from outside the node — null is never a no.

ParameterTypeDescription
intentstringOne intent, e.g. STORM_ALERT. Omit for the whole audit.