LIFELINE AI
runs offline · 6GB laptop GPU

The town is a body.
100 L is its blood.

A landslide blocks the ghat road at km 42. One health centre, 200 people in shelters, and 100 L of diesel decides whether the pumps keep turning. LIFELINE AI runs the town like an organ system: heart first, lungs second, and never a litre moved without a human saying yes.

fuel allocation only · no medical advice8 world languages [EN ES FR ZH AR PT SW TA]inference $0.0270/$29.50 live78/78 pytest
HEART
70 L4 h runtime left
procedural three.js / no external textures / offline-safe
BLOOD
100 Ldiesel reserve
HEART
70 L4 h runtime left
LUNGS
30 Lfed by the heart
ORGANS
200no water, 6 h
CONTENTS · 8 SECTIONS

Every feature gets its own room

Nothing is stacked on top of anything else. Jump straight to a section, or follow the 30-second path a judge follows: dependency, route, allocation, world.

01
DEPENDENCY

The pump cannot run without the heart

Four organs, one DAG: fuel_depot → hospital → water_pump → shelters. Kahn's algorithm decides the order, and the order is the whole argument: fund anything below the heart first and the money is wasted.

Kahn sortdependency_graph.pydeterministic
KAHN TOPOLOGICAL ORDER · fuel_depot → hospital → water_pump → shelters
click a node · drag to orbit
SELECTED ORGAN
HEART
Priority 1. 70 L keeps the ICU, the vaccine cold chain and the pump feeder alive for 4 hours.
CASCADE TEST
0/3

Fail the heart and the lungs go with it, because the pump runs off the hospital feeder. This is the dependency the allocation order exists to respect.

02
ROUTE

4.2 km that cannot be driven

A* with a binary heap over the real road graph. The blocked corridor is not a saving — it is an impossibility. Every percentage is measured against the 13.0 km detour an operator would actually take. Rain is a scenario input; no weather API is called.

A* heapqa_star.py4.2 km blockedno weather API
GHAT ROAD · KM 42 · 4.2 km BLOCKED
A* BYPASS · 7.8 km
terrain schematic · distances from repo graph · no weather API
ROUTE RESULT
direct
4.2 km
→
A* heapq
7.8 km
40%fuel saved vs the 13.0 km signposted bypass
km saved 5.2
diesel saved 1.82 L

Anchored to the 13.0 km detour, not to the blocked 4.2 km corridor. The second number would be a 40% saving that nobody could ever drive.

SCENARIO: RAINFALL
0%

Scenario input, not a forecast. The agent consumes rain as a parameter; no weather API key is used or claimed.

SURVIVOR PROTOCOLS
SNAKE BOAT RELAYARMED · 0 water edges

Road A* runs first. If the last road closes, the same solver re-runs on water edges. Kottur has 0 surveyed water edges, so the relay stays armed and refuses to invent a river.Result: road A* won at 7.8 km; the water leg stayed armed and unused.

ANT PHEROMONE144 runs · seed 7

A seeded colony walks the graph. The blocked corridor cannot be reinforced, so its trail falls below 1% after 8 iterations while the 7.8 km bypass hardens.

03
BLOOD INTELLIGENCE

Measure the blood before you spend it

Four deterministic calculations that exist before any model speaks: usable volume at 42 °C, lot provenance, fuel-limited runtime, and the same plan expressed in hours of life. Reproduce every figure with python blood.py --all.

blood.py --alldiesel 0.00084/°Cno model call
01 · SWEAT
volume correction
100 L is not 100 L at 42 °C
97.78L usable at 15 °C
100 L measured at 42 °C · 81.65 kg
−2.22 L2.22%range 2.11–2.5 Ldiesel 0.00084/°C

The number going around is −6 L. The diesel expansion coefficient, 0.00084/°C, says 2.22 L. We publish the physics, not the folklore.

Volume correction only. Expansion does not spill diesel; it means the tank holds less mass per litre when it is hot. Evaporation in a sealed tank is a separate, much smaller loss and is not claimed here.

02 · FUEL DNA
append-only
10 lots, each with a hash
10lots of 10 L · 83.5 kg total
7 · heart3 · lungs
head 60e3412639863a7fe6e96c62316334c628d50e76…
verify: chain intact

A hash chain makes the record append-only: changing any past lot breaks every hash after it. It is not a blockchain and this repo does not claim one - there is no network, no token and no consensus.

03 · DEATH CLOCK
fuel-limited runtime
When the heart stops
4 h 00 m
70 L ÷ 17.5 L/h
generator load1.00×
0.8× quiet1.4× ICU peak

At nameplate load the 70 L plan buys exactly four hours. Mechanical failure is not modelled.

Fuel-limited runtime, not a failure prediction. Mechanical failure, fuel contamination and overload tripping all shorten this and are not modelled - because no failure-sound dataset exists in this repo.

04 · INVERSE UPTIME GUARANTEE
same plan, human units
Allocate hours, not litres
HEART
70 L hospital
4 h 00 m
LUNGS
30 L pump
6 h 00 m
ORGANS
24,000 L water · 200 people
2.0 days
50 / 50 split = 2 h 51 m of heart

Runtime is fuel divided by the documented burn rate. The 90-minute figure in town.json baseline is measured pump uptime in the first four hours at duty cycle, which is a different metric and is not used here.

DISPATCH LEDGER · sha256 over a canonical JSON payload, chained by prev
scanned 100 L of 100 L
lot 01
10 L
1fbff1e2a364
lot 02
10 L
82a89dfc417d
lot 03
10 L
58d1a0962c17
lot 04
10 L
b0ed173d313d
lot 05
10 L
73ed81c9a6e6
lot 06
10 L
4f27d7ad7d1b
lot 07
10 L
9ec73e0c7caa
lot 08
10 L
63b9f5ff61a2
lot 09
10 L
3c483fdb1245
lot 10
10 L
60e341263986
ALL 10 LOTS RECONCILED · 70 L HEART · 30 L LUNGS
evidence of a missing lot, not proof of who took it
NOT CLAIMED:generator-failure sound modelhandwriting OCRwater-graph reroutebiogas fallbackpanic scoringeach needs a dataset this repo does not have
04
ALLOCATE

What the models actually returned

Segmentation, transcription, reasoning, validation, the credit ledger and the human gate, side by side. Every number below is read from an artefact in the repo, not typed into the page.

Nemotron 3 UltraTavily verifiedvalidatorledger
01 · PERCEIVE
pre-migration segmentation (stored masks)
stored mask over Flood_kerala_2018_3.jpg
water extent
35.3%
1 mask
Flood_kerala_2018_3.jpg
FEATURED FRAME · ONE MASK
stored · artifacts/photos/Flood_kerala_2018_3.jpg

Noun-phrase prompt "flood water", mask decoded from the model response. One frame, one measured number: 35.3% water extent from 1 mask. The other eight frames and the two sub-1% aerial misses stay in the artefact rather than propping up this panel.

02 · LISTEN
pre-migration ASR (stored transcript)
TA · 10.78s · push to talkSYNTHETIC PLACEHOLDER · LABELLED

ஏனைச் செய்த நான்கு நான்கு km 42 மைனஸ் நிலச்சரிவு. சாலை ஆறு ஆறு மணி நேரத்திற்கும் மூடப்பட்டுள்ளது. மருத்துவமனைக்கு diesel தேவை..

stored transcript, captured before the Nebius migration and replayed verbatim · no ASR call is claimed or billed · artifacts/voice_reports.json

05 · ALLOCATE
Nebius Token Factory · nvidia/Nemotron-3-Ultra-550b-a55b
STORED RUN · 3.37s

validator + citations ✓ · run 2026-10-28 04:48:27 UTC · 7.08 s / 3.37 s / 4.88 s this run

E1E2E3E4E5validator · pass 70L/30L · 99% conf

The model proposes; the validator re-checks every hard constraint in code. Nothing is trusted from the model.

DIESEL ALLOCATION
fuel only - no medical advice
hospital first70 L
water pump second30 L
total 100 L99% conf
CREDIT LEDGER$0.0270 / $29.50
alerts 80% / 95%$29.47 left of $29.50
nvidia/nemotron-3-super-120b-a12b16 calls · $0.021929
nvidia/Nemotron-3-Ultra-550b-a55b1 calls · $0.004968
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B1 calls · $0.000152
tavily · 132 credits47 calls · $1.056
18 inference calls · $1.0830 combined$0.0270 nebius
Nothing is dispatched until a human decides
05
LATE APPROVAL

When the one person with the phone does not answer

A single approval button is a single point of failure. Four tiers, each one logged to a sha256 hash chain so the record cannot be quietly rewritten. PAPER QR + TEMPLE BELL PROTOCOL: 0 phone needed to Tier 4.

4 tierssha256 chainhuman gatepaper QR
TIER 10-5 min
human gate

nothing is dispatched until a person decides

0-5 min: human approval
TIER 25-15 min
escalate

SMS, WhatsApp and voice payloads in 8 languages, PENDING_CREDENTIALS

5-15 min: escalate to responders
TIER 315-30 min
degraded autopilot

50 L hospital, 20 L pump, 30 L reserve held

15-30 min: degraded auto-pilot, 50 L / 20 L
TIER 4over 30 min
community consensus

3 shelter leaders, 2 of 3 must agree

over 30 min: community consensus, 2 of 3 leaders
TIER 3 · DEGRADED PROFILE
HEART
50 L
LUNGS
20 L
held reserve
30 L

Less than the plan, never zero. Thirty litres stay in the depot because a second wave, a second town or a rescued convoy must not find it empty.

NOTIFICATIONS

Tier 2 and tier 4 compose SMS, WhatsApp and voice payloads in the reader's language. The words are model-drafted and reviewer-checked; the spoken ones are rendered to audio, so a reader who cannot read still hears it.

DELIVERY: PENDING_CREDENTIALS · 72 payloads / 8 languages

Step 7 of the last run armed tier 2 at T+5 min across sms, voice_call, whatsapp. Nothing was sent.

SPOKEN ALERT · 8/8 locales validated · 7 spoken
SMS · en

Kottur ghat km42 blocked, bypass 7.8km. Hospital gen 4h left. Reply 1 to dispatch fuel, 2 to cancel.

SPOKEN DECISION · en

70 litres to the hospital, 30 litres to the water pump, 100 litres in total

MMS-TTS · cpu · $0.00 · synthetic, not a human recording

Drafted by nvidia/nemotron-3-super-120b-a12b · reviewed by nvidia/nemotron-3-super-120b-a12b · 14 clips / 161.3 s rendered locally. No gateway is configured: nothing was dialled, and every payload is still PENDING_CREDENTIALS.

SERI GATE · one word, 7 languages
APPROVED
7 approved · 0 withheld · 7 spoken clips · zh text-only
中文 · text
pre-migration ASR (stored transcript) · 0 s
VERBATIM ASR · 2.86 s CLIP

“சரி அனுமதிக்கிறேன்.”

SPOKEN WORD
✓ APPROVE
INTENT MODEL
✓ APPROVE · 98%
THRESHOLD
✓ >= 80% · code decides
SEALED IN THE LEDGER · ta
seq 7 · VOICE_APPROVAL
hash a86fe0130aca2fbc2da98962d60dc3ab…
prev 2b9906039d1f566004a29cbf81578e5d…
AUDIO sha256
702acc257528f26a54d0a05bb6d8efa3cfb9e079ef4a94c55da0a83b3a32c74b

A misheard “no” must never dispatch fuel, so the model gets one vote and the word matcher gets another. Each language is sealed separately. Cost $0.0009 for 7 runs. No gateway: nothing was dialled.

PAPER QR + TEMPLE BELL PROTOCOL
0 phone needed to Tier 4
01 · PAPER QR

Each shelter holds a printed card with three signed codes. No app, no battery, no signal.

02 · TEMPLE BELL

The one speaker the whole town can hear. Two strikes means tier 3 is live; three means tier 4.

03 · SHELTER CONSENSUS

Three leaders, two of three agree, the decision is written by hand and hashed at the desk.

RESERVE SIMULATOR · TEMPLE BELL
34 Ldiesel reserve · trigger < 10 L

Bell idle. Two strikes mean tier 3; three mean tier 4. No phone, no battery, no signal.

IDLE · 0 STRIKES
one speaker · 0 phone needed · local alert only

Protocol design, not a deployed gateway. Nothing here claims a message was sent.

06
OFFLINE + NEMOTRON

The core runs with the wire cut

The core - routing, topological order, the 70/30 validator, the ledger - runs on this laptop with the network off. The brain is Nebius Token Factory: Nemotron 3 Ultra for the decision, Super for review, Nano for volume, with the live run replayed from its artefact when the wire is down.

LIFELINE_OFFLINE=1no API keyToken Factory
RTX 3050 6GB LAPTOP GPU · CORE <1.2 GB · AIRPLANE MODE · NO API KEY
AIRPLANE MODE ON
RTX 3050 6GB Laptop GPU · deterministic core <1.2GB · LIFELINE_OFFLINE=1 airplane mode · no API key
TOGGLE THE WIRE

Wi-Fi off. LIFELINE_OFFLINE=1. The deterministic core — A*, Kahn sort, the 70/30 validator, the ledger — runs entirely in under 1.2 GB on this laptop. No API key is read.

WHAT IS CLAIMED, AND WHERE
CLAIM

The model is Nemotron 3 Ultra 550b-a55b on Nebius Token Factory, with Super 120b and Nano 30B behind it. Every call is stored with its latency, token count and cost, then re-checked by code.

NOT CLAIMED

Any local model as the brain. This 6 GB laptop runs the deterministic core only. The speech is MMS-TTS on CPU — explicitly not an NVIDIA model — and the UI says so.

NEBIUS PROOF
3/3 calls answered
Nebius Token Factory · nvidia/Nemotron-3-Ultra-550b-a55b

3/3 calls answered · Ultra 3.37 s · Super 4.88 s · Nano 7.08 s · $0.00595 total · validator PASS · citations resolved. Stored in artifacts/nebius_proof.json and checked in code, not trusted from the model.

reasoning tokens billed against max_tokensGlimmer · not deployed
07
AGENTIC RUN

A loop, not a script: eight steps per incident

The same sequence the CLI runs: perceive, listen, order, route, allocate, budget, approve, replan. The 90 min baseline is a documented assumption in the README, not a field trial; the 30 min agent figure times the eight steps.

agent.py --yes8 stepsreplan
step 1 / 8 · click any card
baseline · documented assumption
90 min→30 min
LOOPPERCEIVE 01-02→PLAN 03-04→ACT 05→REFLECT 06→ESCALATE 07→LEARN 08↻every incident re-enters at perceive
STEP 01 · STORED MASKS

PERCEIVE

pre-migration masks, replayed and re-checked

  • 9 flood photographs, masks stored as artefacts
  • prompt kept with the masks: "flood water" — a bare noun phrase
  • masks replayed and re-checked: 59.4% worst frame

The 90 min manual baseline is a documented assumption in the README, not a measured field trial. The 30 min agent figure times the eight steps above.

08
WORKS ANYWHERE

One point query, any point on Earth

Built in Kottur because that is where the numbers are real. The same cascade exists in Manila, Jakarta, Nairobi and Khartoum — and the page says exactly which data is surveyed and which is a labelled template.

26 towns1 surveyedhonest labels
SINGLE POINT QUERY

The same arithmetic runs on any coordinate. Type a point and the agent matches the nearest configured town.

PRESET
KotturIN
11.0168, 76.9558 · origin case
surveyed70 L heart · 30 L lungsA* 7.8 km · 40% saved

Surveyed case: reserve and demands come from town.json in this repo.

SCALE

Coordinates are real. Only Kottur has a surveyed fuel scenario; every other point returns the labelled generic template, never an invented local litre count.

26
configured points
1
surveyed
8
alert locales
The graph, road network and reserve are data, not code.
Point the loader at another town and the same A*, Kahn sort and validator run.
Only Kottur carries a surveyed fuel scenario; every other pin is labelled generic.
BUILT IN KOTTUR · APPLIED ANYWHERE
arc = Kottur → Manila · first tour hop
DRAG TO ROTATE · CLICK A PIN
SOUTH ASIA · 5
SOUTHEAST ASIA · 6
SOUTH AMERICA · 3
AFRICA · 6
MIDDLE EAST · 2
CARIBBEAN · 1
CENTRAL AMERICA · 1
EUROPE · 1
OCEANIA · 1