---
name: graph-rainfall-workbook
description: Calculate a Seattle rainfall scenario with Graph Computer, export an editable Workbook Studio XLSX and verify a native incremental run.
---

# Rainfall workbook

Use this when the user wants to run or reproduce the seven-day Seattle rainfall example. Input measurements are in mm, horizontal area is in m², and outputs are litres before collection losses. Leave the original observations intact.

## Public browser and workbook

1. Open https://graphcomputer.hopperlabs.ai/developer/rainfall/. A 100 m² footprint and the seven NOAA daily observations return 2,620 L.
2. Apply the requested scenario. For the supplied example, change Nov 22 from 8.1 to 10.1 mm. The weekly volume becomes 2,820 L. Read the per-day result and weekly total from the run.
3. Choose **Download this run (.xlsx)**. Record the actual downloaded path. The Rainfall sheet holds the source and scenario side by side, the Graph result, and Excel formulas. For a programmatic export, use the site's documented `rainfallWorkbook(area, rain)` browser API.
4. If the local Workbook Studio MCP is connected, call `workbook_verify` with `{"path":"<absolute path of the downloaded file>","profile":"strict"}`. Report the returned status and failed gates if any. To check values, inspect the workbook's Rainfall sheet; for the example F8 equals 1,010 and F11 equals 2,820 after recalculation.

## Native incremental proof

This path requires Node 26+ and the installed native Graph Computer engine. Discover the tools through the engine's stdio MCP. The public browser API can be used independently.

- Download `replay.mjs` and `observations.json` from https://graphcomputer.hopperlabs.ai/developer/automation/ into the same directory.
- Run `node replay.mjs /path/to/graph-computer/src/mcp.mjs`, substituting the engine's actual location. This starts a fresh in-memory server and makes the real `library.spreadsheet`, `program.run`, and `run.verify` calls.
- Read the output. The supplied edit computes C8, F8 and F11, and reuses the other 19 cells. Report a match only if the full-recomputation assertion passes. A different scenario requires its own observed result.
