correct_mapping
Correct wrong canonical field mappings returned by normalize_telemetry. Provide the confirmed canonical to improve the retraining corpus and fix mappings for all users.
Instructions
Teach Forge the RIGHT canonical field for a source column that normalize_telemetry mapped wrong (or abstained on). Each correction is recorded as a corpus-improvement signal the retrainer uses to fix the mapping for everyone — so every agent interaction makes normalization better.
USE WHEN: you or the user can see normalize_telemetry returned the wrong canonical for a field (e.g. it mapped an oil-pressure column to a tire- pressure field), or it abstained on a field whose meaning you know.
source_field: the raw column name exactly as it appeared in your data.
confirmed_canonical: the canonical field it SHOULD map to.
original_canonical: what normalize_telemetry actually returned (pass the
canonicalfrom that field's entry; use "abstained" if it abstained).oem: the OEM you passed to normalize_telemetry (improves aggregation).
mapping_id: optional — the
mapping_idfrom the normalize_telemetry field entry. If omitted it is derived deterministically from (source_field, oem).
Returns {ok, feedback_id, action:"correct"}. Corrections feed an offline retrain (they don't hot-patch the live corpus), so noisy feedback can't poison other users' mappings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_field | Yes | ||
| confirmed_canonical | Yes | ||
| original_canonical | Yes | ||
| oem | No | ||
| mapping_id | No | ||
| sample_value | No | ||
| confidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||