Skip to content

Maintain a sourced time series

Before you start. Story edit/read. Manual observations avoid an AI call.

  1. Create a manual series with a named unit, such as depots that accepted a return. Collect two dated observations with their evidence URLs.

  2. Use import_story_metrics to save the points, then read list_story_metrics. Compare units and dates before combining the values.

  3. To correct a value, use add_story_metric with its expected revision and a source for the correction. Inspect the previous revision to see what changed. Manual entry needs no model call.

Import, correct and audit a manual chart · Tool reference

Source files api/src/lib/metricObservations.ts.