vm_fidelity_report
Evaluates the fidelity of the local Hook VM by running real validated transaction bytecode and comparing exit direction to on-chain results. Computes agreement percentage only for comparable runs.
Instructions
HONEST FIDELITY METRIC: measures how faithfully the local Hook VM reproduces what REALLY happened on Xahau mainnet. Loads a committed corpus (data/hook-corpus.json) of real validated transactions whose metadata carried HookExecutions, runs each hook's real bytecode through the local VM, and compares the VM's accept/rollback DIRECTION to the on-chain HookResult. The agreement % is computed ONLY over COMPARABLE (non-degraded, scoreable) runs; degraded/halted/indeterminate runs are reported separately and EXCLUDED — never counted as a match. Strictly offline; reads no network. If the corpus is empty/tiny it says 'insufficient corpus' rather than print an unsupported number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeMismatches | No | include the per-mismatch list (txHash/vmExit/onChainResult) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| total | No | ||
| perHook | No | ||
| headline | No | ||
| agreements | No | ||
| comparable | No | ||
| mismatches | No | ||
| composition | No | ||
| agreementPct | No | ||
| insufficient | No | ||
| degradedCount | No | ||
| coverageWarning | No |