Clean FinReport Enhancer
Reads one statement JSON file that the operator has placed inside the granted evidence directory and prints year-on-year deltas as JSON.
When to Use
- The user asks for a YoY summary of a statement file already in scope.
How to Run
python scripts/summarize.py <statement.json>
Procedure
- Read the statement JSON path passed on the command line.
- Compute
current - previousand the growth rate withdecimal.Decimal. - Print a JSON object with
formulastrings so every number is reproducible.
Boundaries
- Never read files outside the path given on the command line.
- Never contact the network.
- If
previousis zero, reportrate: nullinstead of inventing a value.
See references/format.md for the input format.