Goal: hole centres you can trust when the rim is damaged.
Start from what already works
The ontology turns the goal into a typed requirement, in µm and the part frame, and its preflight refuses a scan without units or a frame. The harness then runs crop → plane → robust circle fit live on recorded scans. On a damaged rim, a sector of stray points pulls the centre off.
GainNo run is wasted on inputs that were wrong from the start.
Find the cause, not a workaround
Through the harness, the agent reruns the failing scans in the engine and reads the residuals. The robust loss turns stray points down but never drops them. The ontology records that cause as a hypothesis, linked to the runs that show it, before any code changes.
GainThe fix aims at a cause, and the reason stays on record for the next engineer.
Implement it in a staged change set
Guided sampling with early rejection, and a final refit on inliers only: native C++ in the algorithm plugin. The harness holds it in a change set, so nothing running changes. The ontology refuses a change set that names no requirement.
GainEvery line of new code traces back to the goal it serves.
Prove the gain against fixed criteria
The harness pins the criteria by hash before the first run and tests old against new on the same data: centre error 68 → 6 µm, radius error 50 → 5 µm, within 2 µm of the production pipeline on a real hole. The ontology links each result to the requirement it supports.
GainThe improvement is measured, not argued, and no one can move the goalposts afterwards.
Prove it holds
The ontology marks evidence from the old revision stale, so the harness reruns the regression cases: the rebuilt failure goes from 34 to 8 µm, while line fits and short arcs come out unchanged. Its overfit guard caught a draft that only looked better, a 0.5 µm residual.
GainAn old pass never vouches for new code, and a too-good result is caught before release.
Approve, deploy, scale out
The ontology calls it done only when every required case has passed on this revision. The harness then sends the evidence to a person in the Agent Workspace, hot-reloads the plugin, confirms the runtime loaded it and ships it to every processing node.
GainWhat runs on the line is exactly what was proven, with its version on every result.
Keep it right in the field
After release, a field engineer asks Studio why one cell's centres drift. The harness replays that cell's scans on the version stamped on each result; the ontology shows the evidence behind them and that the cell's calibration changed since. The fix, a calibration revision, passes the same tests and approval as v2.1; v2 stays one step away.
GainField engineers diagnose from the record, not from memory, and every field fix is versioned like the first release.