baseline_record_change
Record an operator change-log entry for a tag to mark a regime boundary, ensuring baseline learning uses only post-change samples for trustworthy bands.
Instructions
[READ][risk=low] Record an operator change-log entry for a tag (local only).
Writes ONLY local metadata (~/.iaiops/baselines.json, owner-only) — never an
OT device write, hence risk=low. A recorded change (setpoint moved, valve
replaced, probe swapped) marks a regime boundary: the next baseline_learn
uses only samples AFTER the latest change, so the band never mixes
pre-change and post-change behavior. This operator change log — not a
black-box score — is what makes the baseline trustworthy.
Args:
tag: Tag whose process changed, e.g. 'line1.temp'.
note: What changed (required), e.g. 'setpoint 60→70C'.
Returns dict: {tag, change:{ts, note}, changes_recorded}.
Example: baseline_record_change(tag="line1.temp", note="setpoint 60→70C").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| note | Yes |