ras_manifest_write
Generate a JSON provenance manifest recording file hashes, QA status, edits, and tool calls after a HEC-RAS run, enabling audit and re-comparison while flagging any missing files.
Instructions
Write a provenance manifest (JSON) for one modelling step: the project .prj + input + result (.p##.hdf) + figure files each with a sha256, the ras_run QA status, the edits made (ras_plan_set / ras_flow_set_hydrograph returns), the tool calls, and free notes. Call it at the end of a run so the run can be audited or re-compared later. Reports any referenced file that is missing. No HEC-RAS needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | The ras_run return value (its QA fields are kept). | |
| case | No | Short case name. | |
| plan | No | Plan number that was run. | |
| edits | No | ras_plan_set / ras_flow_set_hydrograph returns. | |
| notes | No | Free-text notes / the plain-language goal. | |
| inputs | No | Input files (.u##, .p##, rainfall CSV ...). | |
| figures | No | PNG figures produced. | |
| project | No | The .prj that was run (the copy). | |
| results | No | Result files (.p##.hdf) from ras_run. | |
| out_json | Yes | Where to write the manifest (e.g. runs/<case>/manifest.json). | |
| tool_calls | No | Ordered {tool, args, ok} records. |