Validation and release

How a calculation is checked before it is offered.

A calculation tool is only as trustworthy as the engine behind it, so every engine is checked against published worked examples, and a calculation is offered over MCP only after an engineer has reviewed those results and released it.

The validation corpus

The corpus currently holds 617 worked examples across 23 tools (version corpus-18bb4f2c8ce3). Each case records:

Cases run through exactly the same tool code you call — the same input mapping, engine and output — not through a separate test harness.

Every case of a published tool is also a fully worked example on the calculation's help page — the inputs, each formula with the numbers substituted, every check and the reference — generated from the case itself, so the page and the scorecard can never disagree. The scorecard links each case to its example, and the worked examples index lists every example by calculation.

The scorecard

Each run of the corpus is stored with the code build that answered and the corpus version, and published on the validation scorecard: per tool, cases passed, failed and skipped, and every failure with expected and actual values. An assistant can read the same information with the fe_ref_validation tool, which also says whether the latest published run matches the build answering now. Every result's provenance.engine.validation_suite names the corpus version its build was checked against.

Release for MCP

Passing cases is necessary but not sufficient. Each calculation engine has a separate MCP release switch, independent of whether it is live on the fast.engineer website. An engineer ticks it only after reviewing:

  1. the engine's validation cases and their references;
  2. its known engineering review notes — behaviour that is correct for the engine's stated method but that users must know about, or that has to be resolved first;
  3. how the tool's inputs map onto the engine and which assumptions it records.

Until then the tool is not listed and calls to it are refused. A tool that runs several engines (for example cable sizing across standards) is listed once any of them is released, and a call is refused if the engine it would use is not. Currently 6 of 23 calculation tools are released.

Why so strict? An assistant will use whatever tools it is offered. Holding a tool back until its engine is validated and reviewed is the only way to make sure an assistant never quotes an unreviewed number from fast.engineer.

Reporting a discrepancy

If a result disagrees with your own calculation, send us the tool name, your inputs and the request_id from the result. Operators can pull a tool out of service immediately while it is investigated; confirmed cases are added to the corpus so the fix stays fixed.