Datasets:
CompilingThings Compile Benchmark for MQL5 - v1.0.0
Browse files- .gitattributes +3 -60
- CITATION.cff +20 -0
- LICENSE +58 -0
- PROJECTION_REPORT.json +117 -0
- README.md +218 -0
- SHA256SUMS.txt +10 -0
- per_item_results.jsonl +0 -0
- prompts.jsonl +0 -0
- publication_metadata.json +613 -0
- serving_template.json +11 -0
- verify_public_release.py +490 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
*
|
| 4 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
# Audio files - uncompressed
|
| 40 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
-
# Audio files - compressed
|
| 44 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
# Video files - compressed
|
| 59 |
-
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
# The manifest hashes these files by byte. Pin the line endings to the tree so a
|
| 2 |
+
# checkout cannot rewrite them and break every hash in SHA256SUMS.txt.
|
| 3 |
+
* text eol=lf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CITATION.cff
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: If you use this benchmark, cite it as below.
|
| 3 |
+
title: CompilingThings Compile Benchmark for MQL5®
|
| 4 |
+
type: dataset
|
| 5 |
+
authors:
|
| 6 |
+
- name: CompilingThings
|
| 7 |
+
version: 1.0.0
|
| 8 |
+
date-released: 2026-09-02
|
| 9 |
+
identifiers:
|
| 10 |
+
- type: other
|
| 11 |
+
value: CompilingThings/compile-benchmark-v1.0.0
|
| 12 |
+
description: Release identifier.
|
| 13 |
+
abstract: >-
|
| 14 |
+
A paired three-arm benchmark of whether generated MQL5® source compiles. It
|
| 15 |
+
publishes 184 prompts, the serving template and the system prompt, and
|
| 16 |
+
per-item results for a base model, a fine-tuned model and a frontier model
|
| 17 |
+
over the same items.
|
| 18 |
+
Released under the CompilingThings Benchmark Evaluation Licence v1.0; see the LICENSE file for terms.
|
| 19 |
+
MQL5® and MetaTrader 5® are registered trademarks of MetaQuotes Ltd.
|
| 20 |
+
CompilingThings is an independent project. No affiliation, sponsorship, certification, endorsement, or approval by MetaQuotes Ltd. is claimed.
|
LICENSE
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CompilingThings Benchmark Evaluation Licence v1.0
|
| 2 |
+
=================================================
|
| 3 |
+
|
| 4 |
+
Copyright © 2026 CompilingThings. All rights reserved.
|
| 5 |
+
|
| 6 |
+
SCOPE. The grant below covers the published benchmark files: prompts.jsonl,
|
| 7 |
+
per_item_results.jsonl and serving_template.json.
|
| 8 |
+
|
| 9 |
+
The remaining files in this release - README.md, publication_metadata.json,
|
| 10 |
+
PROJECTION_REPORT.json, verify_public_release.py, SHA256SUMS.txt, CITATION.cff,
|
| 11 |
+
.gitattributes and this LICENSE - describe and verify the release. They may be
|
| 12 |
+
reproduced and quoted for the purpose of using, checking or citing this
|
| 13 |
+
benchmark, including in published results that disagree with ours, and
|
| 14 |
+
verify_public_release.py may be run as-is to verify a copy of this release.
|
| 15 |
+
That permission covers those files only and grants nothing over the benchmark
|
| 16 |
+
data, which is governed by the terms below.
|
| 17 |
+
|
| 18 |
+
Nothing here grants any right to material that is not in this release.
|
| 19 |
+
|
| 20 |
+
YOU MAY:
|
| 21 |
+
- run the 184 published prompts against any model.
|
| 22 |
+
- implement and use the published scoring contract.
|
| 23 |
+
- publish and compare benchmark results, including results that disagree with ours.
|
| 24 |
+
- cite the benchmark and the release identifier.
|
| 25 |
+
|
| 26 |
+
YOU MAY NOT:
|
| 27 |
+
- use the prompts for training, fine-tuning, continued pretraining, distillation, or reinforcement learning.
|
| 28 |
+
- incorporate the prompts or result rows into another dataset.
|
| 29 |
+
- create or sell derivative datasets.
|
| 30 |
+
- claim any right to the private training corpus.
|
| 31 |
+
- represent the benchmark as your own work.
|
| 32 |
+
- treat this grant as extending to future releases.
|
| 33 |
+
|
| 34 |
+
NO OTHER RIGHTS ARE GRANTED. Nothing here grants any right to the private
|
| 35 |
+
training corpus, the generated MQL5 outputs, the model weights, the production
|
| 36 |
+
tooling, or any unreleased material. This grant does not extend to future
|
| 37 |
+
releases or later versions of this benchmark.
|
| 38 |
+
|
| 39 |
+
Commercial licences, evaluation access, research collaboration and partnership
|
| 40 |
+
are arranged individually under written agreement. Enquiries are welcome via a
|
| 41 |
+
discussion on the Hugging Face repository.
|
| 42 |
+
|
| 43 |
+
Hosting-platform terms operate separately from this licence and may grant
|
| 44 |
+
platform users rights this licence does not.
|
| 45 |
+
|
| 46 |
+
METAQUOTES NOTICE
|
| 47 |
+
-----------------
|
| 48 |
+
MQL5® and MetaTrader 5® are registered trademarks of MetaQuotes Ltd.
|
| 49 |
+
|
| 50 |
+
CompilingThings is an independent project. No affiliation, sponsorship, certification, endorsement, or approval by MetaQuotes Ltd. is claimed.
|
| 51 |
+
|
| 52 |
+
The benchmark prompts published in this release were produced by CompilingThings' own generators and are owned by CompilingThings. No model-generated MQL5 source or other model outputs are distributed. No ownership of the MQL5 language, the MetaTrader platform, MetaEditor, or MetaQuotes technology is claimed.
|
| 53 |
+
|
| 54 |
+
Compilation validation was performed using the MetaQuotes Language Compiler supplied with MetaEditor. The compiler is used solely as the MQL5® compilation and validation instrument.
|
| 55 |
+
|
| 56 |
+
This release does not distribute MetaTrader 5®, MetaEditor, the MetaQuotes Language Compiler, EX5 protection technology, MetaQuotes documentation, or other MetaQuotes-owned software or proprietary materials.
|
| 57 |
+
|
| 58 |
+
All MetaQuotes trademarks and MetaQuotes-owned technology remain the property of MetaQuotes Ltd.
|
PROJECTION_REPORT.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"generated_from_evidence_manifest_sha256": "a3ecb53728523005648b995871b8389f40cfa997a45b7f58935e9cecc335b936",
|
| 3 |
+
"generated_from_evidence_manifest_note": "sha256 of the retained evidence package's checksum manifest file, the same value publication_metadata.json publishes as evidence_manifest_sha256. The evidence remains private; the hash is a commitment, not a means of independent verification.",
|
| 4 |
+
"membership_source_sha256": "9f1a271e664f895d02afea0113ca03db16fdf991dfac2f9386ab95263f624c50",
|
| 5 |
+
"membership_source_note": "sha256 of the sealed point-estimate record the clean-184 membership was read from; the record itself is not distributed",
|
| 6 |
+
"n_items": 184,
|
| 7 |
+
"n_public_rows": 552,
|
| 8 |
+
"rows_per_arm": {
|
| 9 |
+
"base": 184,
|
| 10 |
+
"tuned": 184,
|
| 11 |
+
"frontier": 184
|
| 12 |
+
},
|
| 13 |
+
"arm_derivation": "from directory name - the row's own `arm` field is withheld",
|
| 14 |
+
"internal_arm_field_observed": [
|
| 15 |
+
"base: internal arm field = ['A']",
|
| 16 |
+
"tuned: internal arm field = ['A']",
|
| 17 |
+
"frontier: internal arm field = ['C']"
|
| 18 |
+
],
|
| 19 |
+
"item_id_scheme": "Opaque. item_id is a stable public identifier used to join prompts and result rows; it carries none of the item's name.",
|
| 20 |
+
"ea_name_not_in_rows_because": "The rows key on item_id so that the row schema does not depend on the corpus's naming convention. This is a schema choice, not anonymisation: every published prompt carries a `// NAME:` line holding that item's original name, so all 184 names are recoverable from this release.",
|
| 21 |
+
"allow_listed_fields": [
|
| 22 |
+
"item_id",
|
| 23 |
+
"verdict_headline",
|
| 24 |
+
"verdict_strict",
|
| 25 |
+
"bucket",
|
| 26 |
+
"ex5_exists",
|
| 27 |
+
"errors",
|
| 28 |
+
"warnings",
|
| 29 |
+
"result_line_errors",
|
| 30 |
+
"result_line_warnings",
|
| 31 |
+
"compile_infra_reason",
|
| 32 |
+
"generation_error",
|
| 33 |
+
"positive_control_errors",
|
| 34 |
+
"positive_control_warnings",
|
| 35 |
+
"truncated",
|
| 36 |
+
"finish_reason",
|
| 37 |
+
"n_fenced_blocks",
|
| 38 |
+
"used_block_index",
|
| 39 |
+
"fence_unterminated",
|
| 40 |
+
"used_block_unterminated",
|
| 41 |
+
"extractor_version",
|
| 42 |
+
"harness_version",
|
| 43 |
+
"seed",
|
| 44 |
+
"seed_applied",
|
| 45 |
+
"temperature",
|
| 46 |
+
"temperature_applied",
|
| 47 |
+
"max_new_tokens",
|
| 48 |
+
"quantisation",
|
| 49 |
+
"quantisation_mismatch",
|
| 50 |
+
"prompt_sha256_public",
|
| 51 |
+
"prompt_sha256",
|
| 52 |
+
"mq5_sha256",
|
| 53 |
+
"ex5_sha256"
|
| 54 |
+
],
|
| 55 |
+
"version_field_definitions": {
|
| 56 |
+
"harness_version": "identifies the evaluation harness that ran the arm and wrote the row",
|
| 57 |
+
"extractor_version": "identifies the code-block extraction rule applied to the model response before compilation"
|
| 58 |
+
},
|
| 59 |
+
"withheld_fields": [
|
| 60 |
+
"adapter_path",
|
| 61 |
+
"adapter_sha256",
|
| 62 |
+
"base_model_sha256",
|
| 63 |
+
"category",
|
| 64 |
+
"compile_log_path",
|
| 65 |
+
"compile_log_raw_path",
|
| 66 |
+
"compile_log_raw_sha256",
|
| 67 |
+
"compile_log_sha256",
|
| 68 |
+
"compile_stem",
|
| 69 |
+
"ea_name",
|
| 70 |
+
"elapsed_seconds",
|
| 71 |
+
"ex5_path",
|
| 72 |
+
"generated_code_path",
|
| 73 |
+
"generated_code_sha256",
|
| 74 |
+
"manifest_selection_sha256",
|
| 75 |
+
"manifest_sha256",
|
| 76 |
+
"metaeditor_build",
|
| 77 |
+
"metaeditor_path",
|
| 78 |
+
"metaeditor_sha256",
|
| 79 |
+
"metaeditor_size_bytes",
|
| 80 |
+
"model_id",
|
| 81 |
+
"mq5_path",
|
| 82 |
+
"source_sha256",
|
| 83 |
+
"system_prompt_sha256",
|
| 84 |
+
"usage"
|
| 85 |
+
],
|
| 86 |
+
"replaced_fields": {
|
| 87 |
+
"arm": "The sealed rows' own `arm` field is dropped, not published: it reads \"A\" on both local arms and discriminates nothing. The `arm` on every public row is a replacement, derived from the source directory the sealed rows came from. Values: base, tuned, frontier."
|
| 88 |
+
},
|
| 89 |
+
"hash_definitions": {
|
| 90 |
+
"prompt_sha256_public": "sha256 of the UTF-8 encoding of the prompt exactly as published in prompts.jsonl",
|
| 91 |
+
"prompt_sha256": "base and tuned rows: sha256 of the UTF-8 encoding of the rendered serving template in serving_template.json. frontier rows: sha256 of the UTF-8 encoding of the canonical system+user rendering (the system prompt, two newlines, the prompt), because the vendor API takes the two as separate fields and the local template cannot be submitted to it",
|
| 92 |
+
"verified_at_build": "recomputed for all published rows under each arm's rendering rule; the build refuses to write if any disagrees"
|
| 93 |
+
},
|
| 94 |
+
"outputs": {
|
| 95 |
+
"per_item_results.jsonl": {
|
| 96 |
+
"rows": 552,
|
| 97 |
+
"sha256": "3584aefb4f4226e9ba9ae7453c274eebab6f30b62d0dd89a23f41202c6ec070d",
|
| 98 |
+
"distribution": "PUBLIC"
|
| 99 |
+
},
|
| 100 |
+
"prompts.jsonl": {
|
| 101 |
+
"rows": 184,
|
| 102 |
+
"sha256": "d58391038d39b22d1865e5d874764201f65918fbf92fe837a465f58daee7cfa7",
|
| 103 |
+
"distribution": "PUBLIC"
|
| 104 |
+
},
|
| 105 |
+
"serving_template.json": {
|
| 106 |
+
"sha256": "979346bc6c0bfee309188be88a5f1611882344ebd44d7e9796066068cd004541",
|
| 107 |
+
"distribution": "PUBLIC"
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
"private_outputs": {
|
| 111 |
+
"item_id_mapping.jsonl": {
|
| 112 |
+
"rows": 184,
|
| 113 |
+
"sha256": "30e9853232c8239e06206e2e9357b57fd9a6482db9583a775d550b134a031164",
|
| 114 |
+
"distribution": "PRIVATE - not distributed; written agreement only"
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: compilingthings-benchmark-evaluation-licence-v1.0
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# CompilingThings Compile Benchmark for MQL5®
|
| 8 |
+
|
| 9 |
+
This release evaluates compile success on 184 public MQL5 prompts across three model arms.
|
| 10 |
+
|
| 11 |
+
MQL5 and MetaTrader 5 are registered trademarks of MetaQuotes Ltd. CompilingThings is an independent project. No affiliation, sponsorship, certification, endorsement, or approval by MetaQuotes Ltd. is claimed.
|
| 12 |
+
|
| 13 |
+
Release identifier: `CompilingThings/compile-benchmark-v1.0.0`.
|
| 14 |
+
|
| 15 |
+
## Result
|
| 16 |
+
|
| 17 |
+
| Arm | Compile success | Result |
|
| 18 |
+
|---|---:|---:|
|
| 19 |
+
| Base Qwen2.5-Coder-14B-Instruct | 1.09% | 2/184 |
|
| 20 |
+
| Fine-tuned Qwen2.5-Coder-14B-Instruct | 92.39% | 170/184 |
|
| 21 |
+
| gpt-5.6-sol | 97.28% | 179/184 |
|
| 22 |
+
|
| 23 |
+
One epoch of domain fine-tuning increased compile success by 91.30 percentage points, from 2/184 to 170/184. The fine-tuned 14B model finished 4.89 percentage points below gpt-5.6-sol on the same benchmark items.
|
| 24 |
+
|
| 25 |
+
A pass requires zero compiler errors and a produced EX5 artifact.
|
| 26 |
+
|
| 27 |
+
The two local arms shared one prompt template, the tuned model's training format. A quantised base-model control comparing that template against the base's native ChatML format changed one verdict out of 183 jointly scoreable items, in the shared template's favour. Details are under "Serving template and control" below.
|
| 28 |
+
|
| 29 |
+
## Run the benchmark
|
| 30 |
+
|
| 31 |
+
Inputs are in `prompts.jsonl`. Render each prompt with the system prompt and template in `serving_template.json`, generate MQL5, compile it, and record the verdict using the schema in `per_item_results.jsonl`.
|
| 32 |
+
|
| 33 |
+
The system prompt:
|
| 34 |
+
|
| 35 |
+
```text
|
| 36 |
+
You are an expert MQL5 programmer. Write the complete MQL5 Expert Advisor code that implements the given specification exactly.
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
The serving template:
|
| 40 |
+
|
| 41 |
+
```text
|
| 42 |
+
<|system|>{system_prompt}<|end|>\n<|user|>{prompt}<|end|>\n<|assistant|>
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
`\n` is a real newline. The `template` field in `serving_template.json` holds actual newline characters, so a JSON parser returns the correct string without further unescaping.
|
| 46 |
+
|
| 47 |
+
The benchmark prompts and scoring contract are public. Readers can evaluate another model against the same 184 items. The original generation and compilation harness is not distributed, so exact implementation parity on edge cases is not guaranteed.
|
| 48 |
+
|
| 49 |
+
`verify_public_release.py` ships in this release and checks release hashes, item pairing, row counts, contingency tables, and headline result counts. It needs Python 3.9+ and nothing else.
|
| 50 |
+
|
| 51 |
+
## Scoring contract
|
| 52 |
+
|
| 53 |
+
Two verdicts are computed for every item and published side by side:
|
| 54 |
+
|
| 55 |
+
- `verdict_headline` — true when the compile log reports zero errors and the .ex5 artifact was produced.
|
| 56 |
+
- `verdict_strict` — true when the compile log reports zero errors and zero warnings and the .ex5 artifact was produced.
|
| 57 |
+
|
| 58 |
+
Each row carries one of four buckets, assigned in this order. A generation error is an infrastructure failure. Otherwise a truncated response is TRUNCATED. Otherwise a compile-side infrastructure reason is an infrastructure failure. Everything else is compile-pass or compile-fail from `verdict_headline`. TRUNCATED and INFRASTRUCTURE-FAILURE rows leave the denominator. On this release's rows all three arms have zero TRUNCATED rows and zero INFRASTRUCTURE-FAILURE rows, so every comparison is over the full 184 items.
|
| 59 |
+
|
| 60 |
+
Extraction (`three_way.v4`): truncate the response at the first serving end-token; find every fenced code block; if none, use the whole response; otherwise take the first block that defines a real MQL5 event handler, falling back to the first block. The chosen index is published per row as `used_block_index`. The same extraction runs on every arm.
|
| 61 |
+
|
| 62 |
+
Compile logs are UTF-16LE with a byte-order mark and must be decoded before matching. A diagnostic is a line matching `(line,col): error N:` or `(line,col): warning N:`. A log without the compiler's own `Result: N errors, M warnings` line is an infrastructure failure, never a model result.
|
| 63 |
+
|
| 64 |
+
Compilation used the MetaQuotes Language Compiler supplied with MetaEditor, build 5836, the same build for all three arms.
|
| 65 |
+
|
| 66 |
+
## Serving configuration, local arms
|
| 67 |
+
|
| 68 |
+
- Engine: Hugging Face transformers, `AutoModelForCausalLM`, greedy decoding (`do_sample=False`), seed set per generation, bfloat16 compute, no quantisation, 8,192 max new tokens.
|
| 69 |
+
- Hardware: one AMD Radeon AI PRO R9700 (RDNA 4, gfx1201) under ROCm, in an AMD Ryzen 9 7950X3D host with 64 GB of system memory. The device is not recorded in the run parameters; it is stated from the evaluation host's configuration.
|
| 70 |
+
- The transformers, torch and tokenizer versions in force during the evaluation, the host OS, GPU driver version and environment variables were not recorded and are not established. The published experiment cannot be re-run to its exact environment; the same 184 prompts can be run under the published template, scoring contract and generation settings on any stack.
|
| 71 |
+
|
| 72 |
+
Before an arm is scored, two known fixtures are compiled: one that must produce an error, one that must produce a warning and still build. The harness writes no rows for an arm whose control fails. The per-row `positive_control_*` counts are those fixture results, identical on every row of an arm.
|
| 73 |
+
|
| 74 |
+
## Serving template and control
|
| 75 |
+
|
| 76 |
+
Both local arms were served the same prompt template, the one the tuned model was trained on. The published `prompt_sha256` is identical for the two local arms on every item, so this is verifiable from the release.
|
| 77 |
+
|
| 78 |
+
That template is not the base model's native chat format, so part of the measured base-vs-tuned difference could in principle reflect template mismatch rather than capability. A template control measured this in a control configuration: the base model, quantised to Q8_0 on a different inference stack, run over the same 184 items once under the shared template and once under its native ChatML format, with identical settings and scoring.
|
| 79 |
+
|
| 80 |
+
Among the 183 items with scoreable outputs under both templates, one verdict changed: it compiled under the shared training template and failed under native ChatML. The remaining item was truncated under the shared-template condition and could not be compared. The observed difference on the 183 jointly scoreable items was one compile pass in favour of the shared template. Under the shared template the control reproduced the published base arm's two passing items.
|
| 81 |
+
|
| 82 |
+
The control served a different quantisation and stack than the published arms, so only the difference between its two conditions carries meaning; neither condition is a published arm. Carrying the one-item result to the published bf16 arms assumes the template effect transfers across quantisation and serving stack, and that transfer was not measured. The control's per-item rows are not distributed; they are identified by SHA-256 in `publication_metadata.json`.
|
| 83 |
+
|
| 84 |
+
## The frontier arm
|
| 85 |
+
|
| 86 |
+
The third arm is `gpt-5.6-sol`, evaluated on 2026-09-02 against the same 184 items, using the same extraction logic, compiler build, and scoring path as the local arms.
|
| 87 |
+
|
| 88 |
+
All 184 items returned scoreable results. There were no truncations or infrastructure failures.
|
| 89 |
+
|
| 90 |
+
The frontier arm was served through the vendor API rather than the local inference stack. It received the same system-prompt text and item text, but the vendor API applied its own chat framing.
|
| 91 |
+
|
| 92 |
+
Other serving differences:
|
| 93 |
+
|
| 94 |
+
- The run used temperature=1. A fixed seed was requested. This is a single run of a sampled decoder; a rerun may differ item-for-item.
|
| 95 |
+
- The model is vendor-hosted and is identified by model name and evaluation date rather than a locally pinned weight hash.
|
| 96 |
+
- The generation cap was 8,192 tokens, sent as the API's `max_completion_tokens` parameter, matching the local arms' cap.
|
| 97 |
+
|
| 98 |
+
The frontier rows' `prompt_sha256` is a canonical SHA-256 commitment to the system-prompt text and item text submitted to the API. It is not a hash of the vendor's serialized request or internal chat framing. The exact rule is under "Hash definitions".
|
| 99 |
+
|
| 100 |
+
### Tuned 14B vs frontier
|
| 101 |
+
|
| 102 |
+
| | gpt-5.6-sol pass | gpt-5.6-sol fail |
|
| 103 |
+
|---|---:|---:|
|
| 104 |
+
| Tuned pass | 168 | 2 |
|
| 105 |
+
| Tuned fail | 11 | 3 |
|
| 106 |
+
|
| 107 |
+
gpt-5.6-sol compiled 11 items the tuned model missed. The tuned model compiled 2 items gpt-5.6-sol missed. Three items failed under both. The exact-binomial McNemar test on the 13 discordant pairs gives p = 0.0225.
|
| 108 |
+
|
| 109 |
+
Readers can evaluate the public base model and gpt-5.6-sol on the same benchmark prompts, subject to model access. Exact item-level reproduction of the sampled frontier run is not expected. The fine-tuned arm cannot be independently rerun from this public release because its weights are not distributed.
|
| 110 |
+
|
| 111 |
+
## Statistics
|
| 112 |
+
|
| 113 |
+
Stratum: `CLEAN 184 — no normalised-exact training twin`.
|
| 114 |
+
|
| 115 |
+
| Measure | Value | 95% CI |
|
| 116 |
+
|---|---:|---:|
|
| 117 |
+
| Base compile rate | 1.09% (2/184) | 0.30%–3.88% |
|
| 118 |
+
| Tuned compile rate | 92.39% (170/184) | 87.63%–95.41% |
|
| 119 |
+
| Frontier compile rate | 97.28% (179/184) | 93.80%–98.83% |
|
| 120 |
+
| Base-vs-tuned paired difference | +91.30 pp | 85.40–94.55 pp |
|
| 121 |
+
|
| 122 |
+
Rate intervals are Wilson score intervals at z = 1.96 exactly. The paired-difference interval is Newcombe's square-and-add MOVER method for paired data. The base-vs-tuned contingency table is 1/1/169/13 (both pass / base only / tuned only / both fail); the exact-binomial McNemar p-value is 2.29e-49. Full-precision values, the phi term the MOVER interval needs, and the paired-bootstrap record are in `publication_metadata.json`; every statistic except the bootstrap recomputes from the published rows.
|
| 123 |
+
|
| 124 |
+
## Evaluation set
|
| 125 |
+
|
| 126 |
+
The 184 items are a decontaminated stratum of a frozen 300-item draw from a 9,168-record pool. The draw used seed 42 and a deterministic selection rule with no RNG, stated in full:
|
| 127 |
+
|
| 128 |
+
> score(ea_name) = sha256(utf8(str(seed)) + b"\x00" + utf8(ea_name)); order by (lowercase hex of score ASC, ea_name ASC); take first n; manifest lists them sorted by ea_name. seed is encoded as its decimal characters (--seed 42 hashes b"42").
|
| 129 |
+
|
| 130 |
+
The pool's SHA-256 is `2ca2d669626a44b8a0096ce25873e23d6cbf08f6887295a26179218c7e0d29cf`. The selection and manifest identity hashes are published in `publication_metadata.json`; both are canonical-JSON content hashes computed by the rules the frozen manifest records in its own `hash_spec` field, not hashes of a file's raw bytes.
|
| 131 |
+
|
| 132 |
+
The original 300-item draw was frozen before any result was seen and was not redrawn.
|
| 133 |
+
|
| 134 |
+
## Decontamination
|
| 135 |
+
|
| 136 |
+
The frozen set was scanned against the training corpus with two methods.
|
| 137 |
+
|
| 138 |
+
The exact method computes SHA-256 over the UTF-8 encoding of each evaluation item's reference solution and over each training row's completion field, and tests digest equality. It found 0 collisions.
|
| 139 |
+
|
| 140 |
+
The normalised-equivalence method applies a domain normaliser to both sides before hashing: it strips comments, canonicalises names, magic numbers, timeframe and price constants, indicator periods, risk multipliers and symbol literals, and collapses whitespace. The normaliser source is pinned by SHA-256 in `publication_metadata.json`. This method found 116 collisions; removing them from the frozen 300 produced the clean stratum of 184.
|
| 141 |
+
|
| 142 |
+
The predicate, the collision count of 116 and a capped witness set of 30 identities were recorded before either local arm ran; the pre-run record kept those 30 witnesses, not all 116 identities. After both local arms had run, the fixed predicate was re-executed twice, independently, and each rerun had to reproduce the pre-run count and all 30 witnesses before the full identity list was emitted. What predates the results is the rule and the count; the explicit membership list was derived afterwards from the rule.
|
| 143 |
+
|
| 144 |
+
The normaliser is deliberately aggressive: it collapses parameter variation, so items differing only in parameters normalise to the same string. The clean stratum removes more than a strict reading requires.
|
| 145 |
+
|
| 146 |
+
No similarity threshold decides membership. The evaluation prompts come from the same specification generator family as the training corpus, so the benchmark measures in-distribution competence on that family's specification style, not generalisation to human-written specifications.
|
| 147 |
+
|
| 148 |
+
## Models
|
| 149 |
+
|
| 150 |
+
Base: `Qwen/Qwen2.5-Coder-14B-Instruct`, pinned revision `aedcc2d42b622764e023cf882b6652e646b95671`, served at bf16 with no quantisation.
|
| 151 |
+
|
| 152 |
+
Tuned: the base model fine-tuned for one epoch on the withheld corpus (83,155 rows, SHA-256 `5e9881b61f3375d3d575c35950a236375eb5648f5fe55b8d18de321f69659c68`), merged to bf16 and served directly. Adapter, merge tool, merge settings and merged-weight identities are pinned by SHA-256 in `publication_metadata.json`, including the epoch and global-step evidence read from trainer state rather than directory names. Two historical merges from the same inputs in the same environment produced byte-identical weights; cross-environment reproduction was not performed.
|
| 153 |
+
|
| 154 |
+
Frontier: `gpt-5.6-sol` through the vendor API, identified by model name and evaluation date 2026-09-02.
|
| 155 |
+
|
| 156 |
+
## Hash definitions
|
| 157 |
+
|
| 158 |
+
`prompt_sha256_public` is the SHA-256 of the UTF-8 encoding of the prompt exactly as published in `prompts.jsonl`.
|
| 159 |
+
|
| 160 |
+
`prompt_sha256` is an arm-specific request-content hash. On base and tuned rows it hashes the rendered serving template from `serving_template.json`. On frontier rows it hashes the system prompt, two newline characters, then the prompt, the canonical form of the two fields submitted to the API. Both rules are machine-checked by the release verifier.
|
| 161 |
+
|
| 162 |
+
`mq5_sha256` and `ex5_sha256` are commitments to the generated source and compiled artifact of a row. `mq5_sha256` is present on every row. `ex5_sha256` is present only on rows where an EX5 artifact was produced and is null on the rest; a failed compile leaves nothing to hash. Those artifacts are not distributed; the hashes permit integrity verification if they are later disclosed under agreement.
|
| 163 |
+
|
| 164 |
+
## What is public and what is not
|
| 165 |
+
|
| 166 |
+
| Claim or artifact | Publicly verifiable |
|
| 167 |
+
|---|---|
|
| 168 |
+
| Published prompts and prompt hashes | Yes |
|
| 169 |
+
| Per-arm result arithmetic and statistics | Yes |
|
| 170 |
+
| Running a new model on the 184 prompts | Yes |
|
| 171 |
+
| Original generated MQL5 and compiler logs | No |
|
| 172 |
+
| Tuned model outputs and weights | No |
|
| 173 |
+
| Training-corpus contents and decontamination scan | No |
|
| 174 |
+
| Exact original harness behaviour | No |
|
| 175 |
+
|
| 176 |
+
Non-public claims are bound to retained artifacts and hashes but cannot be independently reproduced from this release. Generated MQL5 source is not distributed for any arm. Access to undistributed material is available under written agreement.
|
| 177 |
+
|
| 178 |
+
Item names are public: each prompt carries a `// NAME:` line because that line was part of the prompt the models were served, and the published prompts are byte-identical to the evaluated ones. The names disclose the corpus naming scheme for these 184 items; the corpus itself remains undistributed. The 184 prompts should be treated as a public benchmark from this release onward, not as an uncontaminated evaluation set. A separate private holdout is reserved for future releases.
|
| 179 |
+
|
| 180 |
+
## Files
|
| 181 |
+
|
| 182 |
+
| File | Content |
|
| 183 |
+
|---|---|
|
| 184 |
+
| `README.md` | this card |
|
| 185 |
+
| `prompts.jsonl` | 184 prompt rows |
|
| 186 |
+
| `per_item_results.jsonl` | 552 rows: 184 base, 184 tuned, 184 frontier |
|
| 187 |
+
| `serving_template.json` | system prompt and serving template |
|
| 188 |
+
| `publication_metadata.json` | release metadata, full-precision statistics, model provenance |
|
| 189 |
+
| `PROJECTION_REPORT.json` | row-projection record, field inventory, hash definitions |
|
| 190 |
+
| `verify_public_release.py` | the release verifier |
|
| 191 |
+
| `SHA256SUMS.txt` | checksum manifest over every file except itself |
|
| 192 |
+
| `LICENSE`, `CITATION.cff`, `.gitattributes` | licence, citation metadata, line-ending pin |
|
| 193 |
+
|
| 194 |
+
File hashes are in `SHA256SUMS.txt`. The hashes cover the files as stored, with LF line endings; `.gitattributes` pins that so checkout does not rewrite them. The per-row field dictionary is in `PROJECTION_REPORT.json`. Two error counts appear on every row: `errors` counts printed diagnostics, which the compiler caps around 100, and `result_line_errors` is the compiler's own final tally; they differ on 12 base-arm rows and both are far above zero wherever they differ.
|
| 195 |
+
|
| 196 |
+
## Licence
|
| 197 |
+
|
| 198 |
+
The benchmark files are provided under the CompilingThings Benchmark Evaluation Licence v1.0. The summary below is non-exhaustive; LICENSE controls in the event of any conflict.
|
| 199 |
+
|
| 200 |
+
Permitted: running the 184 published prompts against any model; implementing and using the published scoring contract; publishing and comparing benchmark results, including results that disagree with ours; citing the benchmark and release identifier. The supporting files may be reproduced and quoted for using, checking or citing the benchmark, and `verify_public_release.py` may be run as-is.
|
| 201 |
+
|
| 202 |
+
Not permitted: using the prompts for training, fine-tuning, continued pretraining, distillation, or reinforcement learning; incorporating the prompts or result rows into another dataset; creating or selling derivative datasets; representing the benchmark as your own work.
|
| 203 |
+
|
| 204 |
+
Commercial licences, evaluation access, research collaboration and partnership are arranged individually under written agreement.
|
| 205 |
+
|
| 206 |
+
## Contact
|
| 207 |
+
|
| 208 |
+
Identity: CompilingThings. For evaluation access, research collaboration, commercial licensing, or partnership, open a discussion on the Hugging Face dataset repository.
|
| 209 |
+
|
| 210 |
+
## Citation
|
| 211 |
+
|
| 212 |
+
`CITATION.cff` ships with the release and identifies CompilingThings as the author of version 1.0.0.
|
| 213 |
+
|
| 214 |
+
## MetaQuotes notice
|
| 215 |
+
|
| 216 |
+
MQL5® and MetaTrader 5® are registered trademarks of MetaQuotes Ltd. CompilingThings is an independent project. No affiliation, sponsorship, certification, endorsement, or approval by MetaQuotes Ltd. is claimed.
|
| 217 |
+
|
| 218 |
+
Compilation validation used the MetaQuotes Language Compiler supplied with MetaEditor. This release does not distribute MetaTrader 5, MetaEditor, compiler binaries, MetaQuotes documentation, or other MetaQuotes-owned materials. The benchmark prompts published in this release were produced by CompilingThings' own generators and are owned by CompilingThings. No model-generated MQL5 source or other model outputs are distributed.
|
SHA256SUMS.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
a098d07c577a07fd743b89f23ca6417fc4a8d1577d1c1e4293a74dbf6e75cff9 .gitattributes
|
| 2 |
+
232c0818adbdc5bfa72e6a733862f6c2f7db1950b050836436367c24e5d5d86b CITATION.cff
|
| 3 |
+
7255cd65f9b5ba70a17df527a2b4dca4c4709afc36ddb1e6795f01245c4a6cfe LICENSE
|
| 4 |
+
3584aefb4f4226e9ba9ae7453c274eebab6f30b62d0dd89a23f41202c6ec070d per_item_results.jsonl
|
| 5 |
+
f5d16bb2b25def5823e349359338e22f187e2618895b47167562a90184d4f748 PROJECTION_REPORT.json
|
| 6 |
+
d58391038d39b22d1865e5d874764201f65918fbf92fe837a465f58daee7cfa7 prompts.jsonl
|
| 7 |
+
cc9a185490cdaafc26c26df74716a9233055328435e87907dc501c75a5e8e0c4 publication_metadata.json
|
| 8 |
+
bcbb7137986bdc92121648fd4b004590b9220f10efc938554b799365bf47373f README.md
|
| 9 |
+
979346bc6c0bfee309188be88a5f1611882344ebd44d7e9796066068cd004541 serving_template.json
|
| 10 |
+
8f78bd149381a0529787f9c38130f57e4a6858ea5fa1dc453eb2ad8c10eca2ef verify_public_release.py
|
per_item_results.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
prompts.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
publication_metadata.json
ADDED
|
@@ -0,0 +1,613 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"record_type": "publication_metadata",
|
| 3 |
+
"record_version": "1.0.0",
|
| 4 |
+
"evidence_manifest_sha256": "a3ecb53728523005648b995871b8389f40cfa997a45b7f58935e9cecc335b936",
|
| 5 |
+
"evidence_manifest_note": "SHA-256 of the checksum manifest of the retained evidence package behind this release. The evidence remains private; this hash is a commitment to its contents, not a means of independent verification.",
|
| 6 |
+
"release_id": "CompilingThings/compile-benchmark-v1.0.0",
|
| 7 |
+
"release_title": "CompilingThings Compile Benchmark for MQL5\u00ae",
|
| 8 |
+
"release_repo_slug": "compile-benchmark",
|
| 9 |
+
"metaquotes": {
|
| 10 |
+
"trademark_attribution": "MQL5\u00ae and MetaTrader 5\u00ae are registered trademarks of MetaQuotes Ltd.",
|
| 11 |
+
"no_endorsement": "CompilingThings is an independent project. No affiliation, sponsorship, certification, endorsement, or approval by MetaQuotes Ltd. is claimed.",
|
| 12 |
+
"compiler_use": "Compilation validation was performed using the MetaQuotes Language Compiler supplied with MetaEditor. The compiler is used solely as the MQL5\u00ae compilation and validation instrument.",
|
| 13 |
+
"no_redistribution": "This release does not distribute MetaTrader 5\u00ae, MetaEditor, the MetaQuotes Language Compiler, EX5 protection technology, MetaQuotes documentation, or other MetaQuotes-owned software or proprietary materials.",
|
| 14 |
+
"source_ownership": "The benchmark prompts published in this release were produced by CompilingThings' own generators and are owned by CompilingThings. No model-generated MQL5 source or other model outputs are distributed. No ownership of the MQL5 language, the MetaTrader platform, MetaEditor, or MetaQuotes technology is claimed.",
|
| 15 |
+
"marks_remain": "All MetaQuotes trademarks and MetaQuotes-owned technology remain the property of MetaQuotes Ltd."
|
| 16 |
+
},
|
| 17 |
+
"item_naming": {
|
| 18 |
+
"item_id_purpose": "item_id is a stable public identifier used to join prompts and result rows.",
|
| 19 |
+
"names_are_recoverable": "The original item name of every published item is recoverable: each prompt contains a `// NAME:` line, because that line was part of the prompt the models were given. Publishing the prompts as evaluated therefore publishes the names.",
|
| 20 |
+
"why_not_removed": "Removing the names would make the published prompt differ from the evaluated prompt. Every hash in this release, and the claim that a reader is running the benchmark we ran, depends on those being the same bytes. The names are published rather than the benchmark being weakened.",
|
| 21 |
+
"what_this_discloses": "The names disclose the corpus naming scheme, indicator families, parameter conventions and versioning for these 184 items. The corpus itself, and the names of every item not in this release, remain undistributed."
|
| 22 |
+
},
|
| 23 |
+
"positive_control": {
|
| 24 |
+
"what_it_is": "Before an arm is scored, two fixtures are compiled. One is known to produce a compiler error. One is known to produce a compiler warning and still build.",
|
| 25 |
+
"pass_condition": "The error fixture must report at least one error. The warning fixture must report at least one warning and must score as a headline pass and a strict failure - the one outcome that tells the two metrics apart.",
|
| 26 |
+
"on_failure": "The harness raises and writes no rows for that arm. A scored arm is therefore an arm whose control passed; there is no run in which the control failed and results were kept anyway.",
|
| 27 |
+
"why_every_row_reads_1_and_1": "The recorded counts come from the fixtures, not from the evaluated item, so they are the same on every row of an arm. A row reading 1 and 1 means the control passed for that arm. It is not a defect in that item.",
|
| 28 |
+
"what_it_establishes": "That the compiler and the log scorer could still see an error and a warning during this run. It says nothing about any individual item's verdict."
|
| 29 |
+
},
|
| 30 |
+
"serving": {
|
| 31 |
+
"scope": "The two local arms. The frontier arm's serving is described under models.frontier.",
|
| 32 |
+
"engine": "Hugging Face transformers, AutoModelForCausalLM.from_pretrained, generating with model.generate",
|
| 33 |
+
"decoding": "Greedy. do_sample=False and top_p=1.0.",
|
| 34 |
+
"temperature_note": "Both local arms record temperature 0.0 and temperature_applied UNSUPPORTED. Greedy decoding does not consume a temperature, so the requested value was recorded and had no effect. This is why the field reads UNSUPPORTED rather than APPLIED.",
|
| 35 |
+
"seed": "torch.manual_seed is set per generation. Recorded as seed_applied APPLIED.",
|
| 36 |
+
"compute_dtype": "bfloat16, passed as torch_dtype. No quantisation was applied at load time for either local arm.",
|
| 37 |
+
"max_new_tokens": 8192,
|
| 38 |
+
"library_versions_not_established": "The transformers, torch and tokenizer library versions in force during the evaluation run were not recorded in the run parameters and are not established. The merge-time environment is recorded, but that was a different process.",
|
| 39 |
+
"evaluation_hardware": "Both local arms were generated on one AMD Radeon AI PRO R9700 (RDNA 4, gfx1201) under ROCm, in an AMD Ryzen 9 7950X3D host with 64 GB of system memory.",
|
| 40 |
+
"hardware_note": "The device is not recorded in the run parameters; it is stated here from the evaluation host's configuration. An earlier version of this note inferred CPU execution from the per-item timing alone, which was wrong.",
|
| 41 |
+
"compiler_build": 5836,
|
| 42 |
+
"compiler_build_note": "All three arms compiled against the same compiler build. The build number is published; the compiler binary is not distributed and is not ours to distribute."
|
| 43 |
+
},
|
| 44 |
+
"attested_not_verifiable": {
|
| 45 |
+
"statement": "The following are author attestations. They rely on undistributed evidence and cannot be verified from this package.",
|
| 46 |
+
"claims": [
|
| 47 |
+
"The per-item verdicts are the compiler outcomes we observed. The generated MQL5, the compiler logs and the compiler binary are not distributed, so a reader can recompute the statistics from our rows but cannot confirm the rows against the artifacts that produced them.",
|
| 48 |
+
"The base model identity at the pinned revision.",
|
| 49 |
+
"The tuned arm's adapter hash, epoch, global step, merge tool, merge settings and merged-weight hash.",
|
| 50 |
+
"The determinism result for the two historical merges.",
|
| 51 |
+
"The decontamination collision counts, which are measured against a corpus that is not distributed.",
|
| 52 |
+
"That the evaluation set was frozen at seed 42 before any result was seen and was not redrawn.",
|
| 53 |
+
"Everything stated about how the harness behaves: that the positive control aborts an arm rather than writing rows, that the seed is set per generation, that extraction and scoring ran identically on all three arms, and that the scoring rules published here are the rules the harness applied. The harness is not distributed.",
|
| 54 |
+
"The full-300 comparison. Only the clean-184 rows are published, so the full-300 figures and the change between the two strata cannot be recomputed from this package.",
|
| 55 |
+
"Which model produced which arm. The public `arm` is derived from the source directory of the sealed rows; the two local arms' own sealed arm field reads the same value on both and discriminates nothing. We bound the tuned rows to the merged artifact internally by byte-identity to the run directory that served it, but a reader holding only this release cannot check that attribution."
|
| 56 |
+
],
|
| 57 |
+
"what_is_verifiable_instead": "Everything computed from the published rows: both prompt hashes, the pairing, all three rates, the differences, the confidence intervals, both McNemar results and both paired tables. A reader can also run the 184 prompts against any model and compare, which is the comparison the release exists to enable."
|
| 58 |
+
},
|
| 59 |
+
"licence_scope": {
|
| 60 |
+
"licensed_under_the_benchmark_evaluation_licence": [
|
| 61 |
+
"prompts.jsonl",
|
| 62 |
+
"per_item_results.jsonl",
|
| 63 |
+
"serving_template.json"
|
| 64 |
+
],
|
| 65 |
+
"supporting_files": [
|
| 66 |
+
"README.md",
|
| 67 |
+
"LICENSE",
|
| 68 |
+
"CITATION.cff",
|
| 69 |
+
"SHA256SUMS.txt",
|
| 70 |
+
".gitattributes",
|
| 71 |
+
"publication_metadata.json",
|
| 72 |
+
"PROJECTION_REPORT.json",
|
| 73 |
+
"verify_public_release.py"
|
| 74 |
+
],
|
| 75 |
+
"supporting_files_terms": "The supporting files describe and verify the release. They may be reproduced and quoted for the purpose of using, checking or citing this benchmark, including in published results that disagree with ours, and verify_public_release.py may be run as-is to verify a copy of this release. They carry no grant over the benchmark data itself, which is covered by the licence above.",
|
| 76 |
+
"note": "Being listed as published means a file ships in the release. It does not by itself say which terms cover it; this block does."
|
| 77 |
+
},
|
| 78 |
+
"error_counts": {
|
| 79 |
+
"errors": "The number of individual error diagnostics printed in the compile log, counted line by line.",
|
| 80 |
+
"result_line_errors": "The compiler's own final tally, read from its `Result: N errors, M warnings` line.",
|
| 81 |
+
"why_they_differ": "The compiler stops printing individual diagnostics past a limit while its final tally keeps counting. A log can list 99 errors by line and end with `Result: 103 errors`. Both numbers are recorded and neither is corrected against the other.",
|
| 82 |
+
"measured_disagreement": "They disagree on 12 of the 368 local-arm rows, all in the base arm, all at 99 or 100 printed diagnostics.",
|
| 83 |
+
"effect_on_the_verdict": "None. A verdict turns on whether there were any errors at all, and both counts are far above zero on every row where they differ."
|
| 84 |
+
},
|
| 85 |
+
"bootstrap_caveat": "The bootstrap interval is reported for completeness and is not independently reproducible from this package: the resampling implementation, its RNG and the percentile convention are not published, and a seed alone does not determine identical endpoints across implementations. The Wilson and Newcombe intervals, the McNemar result and both rates do recompute from the published rows, and those are the intervals the headline rests on.",
|
| 86 |
+
"scoring": {
|
| 87 |
+
"verdicts": {
|
| 88 |
+
"verdict_headline": "TRUE when the compile log reports zero errors AND the .ex5 artifact was produced. This is the headline metric.",
|
| 89 |
+
"verdict_strict": "TRUE when the compile log reports zero errors AND zero warnings AND the .ex5 artifact was produced.",
|
| 90 |
+
"note": "Both are computed for every item and published side by side. Neither is derived from the other."
|
| 91 |
+
},
|
| 92 |
+
"buckets": {
|
| 93 |
+
"values": [
|
| 94 |
+
"compile-pass",
|
| 95 |
+
"compile-fail",
|
| 96 |
+
"TRUNCATED",
|
| 97 |
+
"INFRASTRUCTURE-FAILURE"
|
| 98 |
+
],
|
| 99 |
+
"precedence": "Applied in this order, and the order is load-bearing: a generation error gives INFRASTRUCTURE-FAILURE; else truncation gives TRUNCATED; else a compile-side infrastructure reason gives INFRASTRUCTURE-FAILURE; else compile-pass if verdict_headline is true, otherwise compile-fail.",
|
| 100 |
+
"why_that_order": "A generation-side failure means nothing about the model was measured. Truncation is the harness's token cap, not the model's failure. A compile-side infrastructure failure is ours too. Only after all three are excluded does a pass or fail describe the model.",
|
| 101 |
+
"excluded_from_the_denominator": [
|
| 102 |
+
"TRUNCATED",
|
| 103 |
+
"INFRASTRUCTURE-FAILURE"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
"extraction": {
|
| 107 |
+
"version": "three_way.v4",
|
| 108 |
+
"step_1": "Truncate the response at the first serving end-token found, if any: <|end|>, <|endoftext|>, </s>, <|im_end|>.",
|
| 109 |
+
"step_2": "Find every fenced code block, accepting both CommonMark fence characters (``` and ~~~). An unterminated final fence still counts as a block, because that is what a truncated generation looks like and dropping it would hide the truncation.",
|
| 110 |
+
"step_3": "If there are no fenced blocks, use the whole response, stripped.",
|
| 111 |
+
"step_4": "Otherwise take the first block that defines a real MQL5 event handler - a recognised handler name with a matching return type and parameter signature. If no block defines one, take the first block. The chosen index is published per row as used_block_index, beside n_fenced_blocks.",
|
| 112 |
+
"why_the_entry_point_rule": "First-wins handed the compiler whatever a response opened with. Measured against the live compiler on an identical EA body: a leading plan block scored 2 errors and a leading block of helper includes scored 1, each published as the model's own compile failure, while the same EA sent alone passed. The cost is asymmetric - only arms that write prose and plans pay it - so the rule exists to stop the extractor manufacturing failures.",
|
| 113 |
+
"applied_identically_to_every_arm": "The same extraction runs on every arm. Stripping fences for some arms and not others is the bias this rule exists to prevent."
|
| 114 |
+
},
|
| 115 |
+
"compile_log_reading": {
|
| 116 |
+
"encoding": "The compiler writes its logs as UTF-16LE with a byte-order mark. They must be decoded before matching. Matching the raw bytes returns zero hits and exits cleanly, which silently collapses the strict metric onto the headline metric with nothing in the output saying so.",
|
| 117 |
+
"diagnostic_rule": "A diagnostic is a printed line matching `(line,col): error N:` or `(line,col): warning N:`, not the bare substring 'error' anywhere in the log.",
|
| 118 |
+
"completion_rule": "A log without the compiler's own `Result: N errors, M warnings` line is an INFRASTRUCTURE-FAILURE, never a model result. That line is the compiler's statement that a compilation ran to completion; a partial log carries zero printed diagnostics and would otherwise read as a clean compile."
|
| 119 |
+
},
|
| 120 |
+
"what_is_not_published": "The harness, the extractor and the scorer are not distributed, and neither is the compiler. These rules describe what they do at the level published here; load-bearing details below that level are not published, so an independent implementation may score individual items differently while following every published rule. A reader also cannot confirm that our published rows were produced by an implementation that follows these rules."
|
| 121 |
+
},
|
| 122 |
+
"interval_conventions": {
|
| 123 |
+
"z": 1.96,
|
| 124 |
+
"z_note": "The 95% intervals use z = 1.96 exactly, not a higher-precision normal quantile. Using 1.959963... instead shifts the endpoints in the last few decimal places, so a reader recomputing them will match only with 1.96.",
|
| 125 |
+
"rate_intervals": "Wilson score interval, applied to each arm's successes over its denominator.",
|
| 126 |
+
"difference_interval": "Newcombe's square-and-add MOVER interval for the difference between two paired proportions.",
|
| 127 |
+
"phi": "Newcombe's continuity-corrected phi-hat for the paired 2x2 table, the association term the MOVER interval needs. It is published because the interval cannot be recomputed without it. With cells e (both pass), f (first arm only), g (second arm only), h (both fail): A = e*h - f*g, n = e+f+g+h, and D = sqrt((e+f)(g+h)(e+g)(f+h)). The rule: phi is 0 when any marginal is zero, (A - n/2)/D when A > n/2, 0 when 0 <= A <= n/2, and A/D when A < 0.",
|
| 128 |
+
"mcnemar": "Exact binomial test on the discordant pairs."
|
| 129 |
+
},
|
| 130 |
+
"what_is_not_measured": {
|
| 131 |
+
"specification_adherence": "The verdict is a compiler outcome. It does not establish that the generated program implements the specification, or any part of it. A minimal Expert Advisor that compiles and does nothing scores exactly as a correct one does. This is a stronger limitation than 'compiling is not trading correctly': adherence to the prompt is not measured at all.",
|
| 132 |
+
"why_it_cannot_be_ruled_out_here": "Because the generated source is not distributed, this benchmark does not distinguish semantic implementation from compilable boilerplate.",
|
| 133 |
+
"what_would_settle_it": "Structural or functional conformance checks against each specification, or publication of the generated source so others can judge. Neither is in this release."
|
| 134 |
+
},
|
| 135 |
+
"serving_template_confound": {
|
| 136 |
+
"what_was_done": "The two local arms were served with the same prompt template, the one the tuned model was trained on: <|system|>...<|end|>\\n<|user|>...<|end|>\\n<|assistant|>. The published prompt_sha256 is identical for the two local arms on every item, so this is verifiable from the release rather than asserted.",
|
| 137 |
+
"the_confound": "That template is not the base model's native chat format. The base model ships a ChatML chat template using <|im_start|> and <|im_end|>. Serving an instruction model a format it was not tuned for can depress its output quality, so part of the measured difference could in principle reflect template mismatch rather than capability.",
|
| 138 |
+
"why_it_was_done_this_way": "Holding the prompt byte-identical across arms removes prompt wording as a variable. That choice trades one confound for another: identical inputs, but an input that suits one arm better than the other.",
|
| 139 |
+
"corroborating_observation": "The published rows show a clean split in response convention: every base row records one fenced code block and every tuned row records none. That is consistent with two models following different output conventions, and it is what the extraction rule exists to handle fairly.",
|
| 140 |
+
"template_control": "The base model was run twice over the same 184 items with identical generation settings and identical scoring, once under the shared training-format template and once under its own native ChatML template. Among the 183 items with scoreable outputs under both templates, one verdict changed: it compiled under the shared training template and failed under native ChatML. The remaining item was truncated under the shared-template condition and could not be compared. The observed difference on the 183 jointly scoreable items was one compile pass in favour of the shared template. Under the shared template the control reproduced the published base arm's two passing items.",
|
| 141 |
+
"template_control_rows": "The control's per-item rows are not distributed. They are identified by SHA-256: training-format condition c9e0a70a99f90785ed4e7f9213ad63fecd9ddbf2319c1394885ecc09b82ce866, native ChatML condition 47f8b9eed8c1e0c369af26ca9606f48a72399f9c1cfa52b29918062964c64e33.",
|
| 142 |
+
"template_control_caveats": "The control served a Q8_0 quantisation of the base model on a different inference stack than the published arms, which were served at bf16. The one-item effect is measured in that control configuration; carrying it to the published bf16 arms assumes the template effect transfers across quantisation and serving stack, and that transfer was not measured. Neither control condition is a published arm and neither replaces one. The shared-template Q8 control produced the same two passing item identities as the published base arm among the 183 jointly scoreable items. One item was truncated, so full 184-item replication is not claimed.",
|
| 143 |
+
"status": "Measured in a control configuration: one changed verdict among 183 jointly scoreable items, in the shared template's favour. Transfer to the published bf16 arms was not measured. The headline remains a difference between the two local arms as served, under one shared template."
|
| 144 |
+
},
|
| 145 |
+
"licence": {
|
| 146 |
+
"title": "CompilingThings Benchmark Evaluation Licence v1.0",
|
| 147 |
+
"notice": "Copyright \u00a9 2026 CompilingThings. All rights reserved.\n\nThe published benchmark files - prompts.jsonl, per_item_results.jsonl and serving_template.json - are made available under the CompilingThings Benchmark Evaluation Licence v1.0.\n\nYou may: run the 184 published prompts against any model; implement and use the published scoring contract; publish and compare benchmark results, including results that disagree with ours; cite the benchmark and the release identifier.\n\nYou may not: use the prompts for training, fine-tuning, continued pretraining, distillation, or reinforcement learning; incorporate the prompts or result rows into another dataset; create or sell derivative datasets; claim any right to the private training corpus; represent the benchmark as your own work; treat this grant as extending to future releases.\n\nNo rights are granted to the private training corpus, the generated MQL5 outputs, the model artifacts, the production tooling, or any unreleased material. Commercial licences, evaluation access and research collaboration are arranged individually under written agreement, and enquiries are welcome.",
|
| 148 |
+
"permitted": [
|
| 149 |
+
"run the 184 published prompts against any model",
|
| 150 |
+
"implement and use the published scoring contract",
|
| 151 |
+
"publish and compare benchmark results, including results that disagree with ours",
|
| 152 |
+
"cite the benchmark and the release identifier"
|
| 153 |
+
],
|
| 154 |
+
"prohibited": [
|
| 155 |
+
"use the prompts for training, fine-tuning, continued pretraining, distillation, or reinforcement learning",
|
| 156 |
+
"incorporate the prompts or result rows into another dataset",
|
| 157 |
+
"create or sell derivative datasets",
|
| 158 |
+
"claim any right to the private training corpus",
|
| 159 |
+
"represent the benchmark as your own work",
|
| 160 |
+
"treat this grant as extending to future releases"
|
| 161 |
+
],
|
| 162 |
+
"hugging_face_fields": {
|
| 163 |
+
"license": "other",
|
| 164 |
+
"license_name": "compilingthings-benchmark-evaluation-licence-v1.0",
|
| 165 |
+
"license_link": "LICENSE"
|
| 166 |
+
},
|
| 167 |
+
"published": [
|
| 168 |
+
"this dataset card (README.md)",
|
| 169 |
+
"the 184 benchmark prompts (prompts.jsonl)",
|
| 170 |
+
"the serving template and system prompt (serving_template.json)",
|
| 171 |
+
"sanitised per-item metadata for all three arms (per_item_results.jsonl)",
|
| 172 |
+
"the projection report (PROJECTION_REPORT.json)",
|
| 173 |
+
"the release metadata, including all aggregate results (publication_metadata.json)",
|
| 174 |
+
"the verification script (verify_public_release.py)",
|
| 175 |
+
"the checksum manifest (SHA256SUMS.txt)",
|
| 176 |
+
"the citation metadata (CITATION.cff)",
|
| 177 |
+
"the line-ending pin that keeps the checksums valid on checkout (.gitattributes)",
|
| 178 |
+
"the licence (LICENSE)"
|
| 179 |
+
],
|
| 180 |
+
"not_published": [
|
| 181 |
+
"the training corpus",
|
| 182 |
+
"generated MQL5 outputs, all arms",
|
| 183 |
+
"model weights",
|
| 184 |
+
"production tooling",
|
| 185 |
+
"the item-id-to-name mapping"
|
| 186 |
+
],
|
| 187 |
+
"note": "The grant is deliberately narrow and covers only the published benchmark files. Everything outside that list is reserved, and nothing here extends to a later release.",
|
| 188 |
+
"platform_terms_caveat": "Hosting-platform terms operate separately from this notice. They have not been read by the authors of this metadata and are deliberately not characterised here; only artifacts intended to be public are uploaded anywhere."
|
| 189 |
+
},
|
| 190 |
+
"training_corpus": {
|
| 191 |
+
"rows": 83155,
|
| 192 |
+
"sha256": "5e9881b61f3375d3d575c35950a236375eb5648f5fe55b8d18de321f69659c68",
|
| 193 |
+
"row_schema": [
|
| 194 |
+
"prompt",
|
| 195 |
+
"completion"
|
| 196 |
+
],
|
| 197 |
+
"measured": "row count and hash computed directly from the corpus file",
|
| 198 |
+
"distributed": false,
|
| 199 |
+
"why_withheld": "The corpus is not distributed with this release. Claims that depend on it are attested, not independently reproducible from the public package."
|
| 200 |
+
},
|
| 201 |
+
"evaluation": {
|
| 202 |
+
"source_pool_records": 9168,
|
| 203 |
+
"source_pool_sha256": "2ca2d669626a44b8a0096ce25873e23d6cbf08f6887295a26179218c7e0d29cf",
|
| 204 |
+
"frozen_n": 300,
|
| 205 |
+
"frozen_seed": 42,
|
| 206 |
+
"selection_sha256": "8684badae73db0b8c69eb2f8c3d62e6b54aed64875430498485d178af3b33ff4",
|
| 207 |
+
"manifest_sha256": "2accc593805d0d480e5bd6777971bf37c540a6b2bc2527283b06efc1554bf1d5",
|
| 208 |
+
"selection_rule": "score(ea_name) = sha256(utf8(str(seed)) + b\"\\x00\" + utf8(ea_name)); order by (lowercase hex of score ASC, ea_name ASC); take first n; manifest lists them sorted by ea_name. seed is encoded as its decimal characters (--seed 42 hashes b\"42\"). No RNG.",
|
| 209 |
+
"selection_is_deterministic": "No RNG. The manifest states the full rule."
|
| 210 |
+
},
|
| 211 |
+
"decontamination": {
|
| 212 |
+
"against": "the training corpus named above, by SHA-256",
|
| 213 |
+
"methods": [
|
| 214 |
+
{
|
| 215 |
+
"name": "exact",
|
| 216 |
+
"definition": "SHA-256 equality over the UTF-8 encoding of the evaluation item's reference solution and each training row's completion field",
|
| 217 |
+
"collisions": 0
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"name": "normalised-equivalence",
|
| 221 |
+
"definition": "SHA-256 equality after a domain normaliser is applied to both sides. Compares an evaluation item's reference solution against every training row's completion.",
|
| 222 |
+
"normaliser_source_sha256": "789bd40d55a5c38ead9c0951fbe38bf1a4aa0b06bcb2e9fdc6a17907d2486794",
|
| 223 |
+
"normaliser_source_hash_scope": "SHA-256 of the _normalize_code function source after universal-newline normalisation to LF, from the def _normalize_code line through the line immediately before the next top-level def, with no trailing newline. It is not a hash of the whole source file, and it is not a hash of the raw on-disk bytes, which carry CRLF line endings.",
|
| 224 |
+
"normaliser_substitution_count": 13,
|
| 225 |
+
"normaliser_substitution_count_meaning": "the number of regex substitution rules in the normaliser's source at the hash above, counted from that source",
|
| 226 |
+
"normalisation_steps": [
|
| 227 |
+
"strip line and block comments",
|
| 228 |
+
"canonicalise EA name string literals",
|
| 229 |
+
"canonicalise magic numbers",
|
| 230 |
+
"canonicalise timeframe constants",
|
| 231 |
+
"canonicalise applied-price enums",
|
| 232 |
+
"canonicalise indicator period arguments",
|
| 233 |
+
"canonicalise risk, stop-loss, take-profit and trailing multipliers",
|
| 234 |
+
"canonicalise instrument symbol literals",
|
| 235 |
+
"collapse all whitespace runs to a single space"
|
| 236 |
+
],
|
| 237 |
+
"steps_are_bound_to_the_hash_above": "The step list describes the normaliser at that source hash. If the hash moves, treat the list as unverified until it is re-read.",
|
| 238 |
+
"direction_of_error": "The normaliser is deliberately aggressive: it collapses parameter variation, so two items that differ only in their parameters normalise to the same string. Removing these items therefore removes more than a strict reading requires. The clean stratum is the conservative one.",
|
| 239 |
+
"collisions": 116
|
| 240 |
+
}
|
| 241 |
+
],
|
| 242 |
+
"frozen_n": 300,
|
| 243 |
+
"clean_n": 184,
|
| 244 |
+
"colliding_n": 116,
|
| 245 |
+
"no_similarity_cutoff": "No similarity threshold decides membership. The two methods above are the whole predicate.",
|
| 246 |
+
"reproduction_gate_passed": true,
|
| 247 |
+
"witnesses_preserved": 30,
|
| 248 |
+
"witness_cap_is_a_known_defect": {
|
| 249 |
+
"preserved": 30,
|
| 250 |
+
"collisions_found": 116,
|
| 251 |
+
"statement": "The scanner caps preserved witnesses. Every collision was counted; only a subset was preserved as a witness. The count is complete, the witness set is not."
|
| 252 |
+
}
|
| 253 |
+
},
|
| 254 |
+
"models": {
|
| 255 |
+
"base": {
|
| 256 |
+
"repo_id": "Qwen/Qwen2.5-Coder-14B-Instruct",
|
| 257 |
+
"pinned_revision": "aedcc2d42b622764e023cf882b6652e646b95671",
|
| 258 |
+
"identity_verdict": "PROVEN_AGAINST_HUGGING_FACE_AT_PINNED_REVISION",
|
| 259 |
+
"weight_dtype": "bf16",
|
| 260 |
+
"quantisation_method": "none - weights are stored at bf16 precision, not quantised",
|
| 261 |
+
"serving_quantisation": "None. The model is loaded with torch_dtype=bfloat16 and no quantisation configuration on this path. The rows' `quantisation` field records the string bf16, which names the dtype, not a quantisation method."
|
| 262 |
+
},
|
| 263 |
+
"tuned": {
|
| 264 |
+
"description": "The base above, fine-tuned on the withheld corpus, then merged to bf16 and served directly. No adapter was applied at serving time.",
|
| 265 |
+
"weights_distributed": false,
|
| 266 |
+
"identity_note": "The tuned weights are not published. The per-item rows commit to its outputs by hash; they are not a route to the model.",
|
| 267 |
+
"weight_dtype": "bf16",
|
| 268 |
+
"quantisation_method": "none - weights are stored at bf16 precision, not quantised",
|
| 269 |
+
"adapter": {
|
| 270 |
+
"adapter_model_sha256": "9cc2d9bc1b75dabca474cb49de2c6aa340ee1185ebf463322cc3341ff0769c3d",
|
| 271 |
+
"adapter_config_sha256": "f07d8621efe63994172cc86150fcfcae8bca4959899a90e505258c1334e7d8ce",
|
| 272 |
+
"epoch": 1,
|
| 273 |
+
"epoch_verdict": "PROVEN",
|
| 274 |
+
"epoch_status": "MEASURED",
|
| 275 |
+
"epoch_evidence": [
|
| 276 |
+
{
|
| 277 |
+
"requirement": "trainer_state.json epoch == N.0",
|
| 278 |
+
"literal_value": "\"epoch\": 1.0"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"requirement": "trainer_state.json global_step == max_steps",
|
| 282 |
+
"literal_value": "\"global_step\": 4694, \"max_steps\": 4694"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"requirement": "train_config num_train_epochs consistent with N",
|
| 286 |
+
"literal_value": "train_config.json \"epochs\": 1 ; trainer_state.json \"num_train_epochs\": 1"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"directory_name_disclaimer": "The directory name checkpoint-4694 was not used as evidence. The three literals above were read from the file contents.",
|
| 290 |
+
"adapter_selection_note": "A second adapter from a later epoch exists and is the same size. The two are told apart by hash only; a check on the directory name would decide nothing.",
|
| 291 |
+
"lora": {
|
| 292 |
+
"r": 64,
|
| 293 |
+
"lora_alpha": 128,
|
| 294 |
+
"lora_dropout": 0.05,
|
| 295 |
+
"target_modules": [
|
| 296 |
+
"down_proj",
|
| 297 |
+
"gate_proj",
|
| 298 |
+
"k_proj",
|
| 299 |
+
"o_proj",
|
| 300 |
+
"q_proj",
|
| 301 |
+
"up_proj",
|
| 302 |
+
"v_proj"
|
| 303 |
+
],
|
| 304 |
+
"peft_version_that_wrote_the_adapter": "0.18.1"
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
"merge": {
|
| 308 |
+
"tool": "merge_adapter.py",
|
| 309 |
+
"tool_sha256": "f426179b80cce7c1c9f63fbdc2f058e95562bad9a24e6d57fb4ded07d5ede473",
|
| 310 |
+
"tool_sha256_source": "re-derived by this generator from the copy sealed in the evidence package, then checked against the value the merge record wrote",
|
| 311 |
+
"dtype": "bfloat16",
|
| 312 |
+
"device": "cpu",
|
| 313 |
+
"base_identity_asserted_against": "Qwen/Qwen2.5-Coder-14B-Instruct",
|
| 314 |
+
"argv_note": "The verbatim argv is four absolute local paths plus the settings above. The paths are withheld; the settings are what determine the output.",
|
| 315 |
+
"started_utc": "2026-08-23T03:00:55Z",
|
| 316 |
+
"finished_utc": "2026-08-23T03:06:35Z",
|
| 317 |
+
"duration_seconds": 339.795
|
| 318 |
+
},
|
| 319 |
+
"merged_weights": {
|
| 320 |
+
"model_safetensors_sha256": "1b8ee53b697e9a600834871a595924b183f8229d6cb8850cd6ba63075ac4c66b",
|
| 321 |
+
"model_safetensors_bytes": 29540134824,
|
| 322 |
+
"dtype": "bfloat16"
|
| 323 |
+
},
|
| 324 |
+
"determinism": {
|
| 325 |
+
"verdict": "MATCH",
|
| 326 |
+
"independent_methods": [
|
| 327 |
+
"tools/merge_adapter.py internal hashing",
|
| 328 |
+
"GNU coreutils sha256sum, run separately after the merge"
|
| 329 |
+
],
|
| 330 |
+
"environment": "The 2026-08-20 and 2026-08-23 merges ran on the same interpreter and package set: Python 3.14.0, torch 2.13.0+cpu, transformers 5.15.0, peft 0.20.0, accelerate 1.14.0, safetensors 0.8.0. Byte-identity is therefore evidence of determinism WITHIN that environment, not across environments.",
|
| 331 |
+
"what_it_establishes": "It establishes that the same base + same adapter + same tool + same package versions + same device and dtype reproduce the same bytes. It does not establish that the artifact is correct for evaluation, and it produces no score.",
|
| 332 |
+
"limitation": "Two merges run in 2026 from the same inputs in the same environment produced byte-identical weights. Neither was run at release time, and neither was run in a different environment. Cross-environment reproduction is not established."
|
| 333 |
+
},
|
| 334 |
+
"quantisation_parity_vs_base_arm": {
|
| 335 |
+
"verdict": "MATCH",
|
| 336 |
+
"target": "bf16 (bfloat16)",
|
| 337 |
+
"comparison_arm_quantisation": "bf16"
|
| 338 |
+
},
|
| 339 |
+
"served_artifact_binding": "The sealed tuned rows were bound to this merged artifact three ways: the sealed results file is byte-identical to the run directory that served it; that run's parameters name the merged model and its fingerprint, which the run's own console log prints; and the only other tuned run candidate produced no results file at all."
|
| 340 |
+
},
|
| 341 |
+
"frontier": {
|
| 342 |
+
"model_id": "gpt-5.6-sol",
|
| 343 |
+
"provider": "openai",
|
| 344 |
+
"access": "vendor chat-completions API; weights are vendor-hosted and not independently pinned by this release",
|
| 345 |
+
"identity_basis": "model identifier and evaluation date",
|
| 346 |
+
"evaluated_on": "2026-09-02",
|
| 347 |
+
"temperature": 1.0,
|
| 348 |
+
"temperature_note": "the run used temperature 1. This arm is a single run of a sampled decoder.",
|
| 349 |
+
"seed": 42,
|
| 350 |
+
"seed_note": "sent via the API's seed parameter; determinism is not guaranteed by the vendor",
|
| 351 |
+
"max_completion_tokens": 8192,
|
| 352 |
+
"generation_cap_note": "The retained run record stores the 8,192-token generation cap under the harness's generic max_new_tokens field; max_completion_tokens is the API parameter it was sent as. max_new_tokens is not the literal API parameter used for this arm.",
|
| 353 |
+
"results_rows_sha256": "354f695a34a429d9676279c2a39fbe6c47bd3280054db4c643bac51374fbb4f0",
|
| 354 |
+
"run_params_sha256": "1914a9aef38f22cf40b6fead17eae077f584a4a471a5be9b573eaa6b5cfde00b",
|
| 355 |
+
"run_params_n_note": "run_params.json records n=300, while the retained frontier results contain 184 rows matching the published clean-184 benchmark. The stale n field is not used in any reported result.",
|
| 356 |
+
"served_format": "system and user messages as separate API fields; the local serving template cannot be submitted to the API. The frontier rows' prompt_sha256 hashes the canonical system+user rendering, as defined in PROJECTION_REPORT.json."
|
| 357 |
+
},
|
| 358 |
+
"arm_field_warning": "The sealed per-item rows of the two local arms carry an internal `arm` field that reads \"A\" on both. It discriminates nothing and is withheld from the public rows, which carry an arm derived from the source directory instead. The frontier arm's sealed rows read \"C\"."
|
| 359 |
+
},
|
| 360 |
+
"headline": {
|
| 361 |
+
"stratum": "CLEAN 184 \u2014 no normalised-exact training twin",
|
| 362 |
+
"n": 184,
|
| 363 |
+
"base": {
|
| 364 |
+
"successes": 2,
|
| 365 |
+
"total": 184,
|
| 366 |
+
"rate": 0.010869565217391304,
|
| 367 |
+
"rate_pct": "1.09%",
|
| 368 |
+
"ci95": [
|
| 369 |
+
0.0029858430553776835,
|
| 370 |
+
0.0387599683090911
|
| 371 |
+
],
|
| 372 |
+
"ci95_pct": [
|
| 373 |
+
"0.30%",
|
| 374 |
+
"3.88%"
|
| 375 |
+
],
|
| 376 |
+
"ci_method": "wilson-score-95"
|
| 377 |
+
},
|
| 378 |
+
"tuned": {
|
| 379 |
+
"successes": 170,
|
| 380 |
+
"total": 184,
|
| 381 |
+
"rate": 0.9239130434782609,
|
| 382 |
+
"rate_pct": "92.39%",
|
| 383 |
+
"ci95": [
|
| 384 |
+
0.8763482447676944,
|
| 385 |
+
0.9541387187164326
|
| 386 |
+
],
|
| 387 |
+
"ci95_pct": [
|
| 388 |
+
"87.63%",
|
| 389 |
+
"95.41%"
|
| 390 |
+
],
|
| 391 |
+
"ci_method": "wilson-score-95"
|
| 392 |
+
},
|
| 393 |
+
"difference": {
|
| 394 |
+
"diff": 0.9130434782608695,
|
| 395 |
+
"numerator": "(169 - 1)/184",
|
| 396 |
+
"ci95": [
|
| 397 |
+
0.8540098171850538,
|
| 398 |
+
0.9455338107113938
|
| 399 |
+
],
|
| 400 |
+
"phi": -0.16760440475893776,
|
| 401 |
+
"method": "newcombe-1998-square-and-add-mover-paired",
|
| 402 |
+
"diff_pp": "91.30 pp",
|
| 403 |
+
"ci95_pp": [
|
| 404 |
+
"85.40 pp",
|
| 405 |
+
"94.55 pp"
|
| 406 |
+
]
|
| 407 |
+
},
|
| 408 |
+
"mcnemar": {
|
| 409 |
+
"b": 1,
|
| 410 |
+
"c": 169,
|
| 411 |
+
"n_discordant": 170,
|
| 412 |
+
"p_value": 2.2852138271288273e-49,
|
| 413 |
+
"method": "mcnemar-exact-binomial"
|
| 414 |
+
},
|
| 415 |
+
"contingency": {
|
| 416 |
+
"a_both_pass": 1,
|
| 417 |
+
"b_base_only": 1,
|
| 418 |
+
"c_tuned_only": 169,
|
| 419 |
+
"d_neither": 13,
|
| 420 |
+
"n": 184
|
| 421 |
+
},
|
| 422 |
+
"bootstrap": {
|
| 423 |
+
"method": "paired-item-percentile-bootstrap",
|
| 424 |
+
"seed": 20260824,
|
| 425 |
+
"resamples": 20000,
|
| 426 |
+
"n_items": 184,
|
| 427 |
+
"point_estimate": 0.9130434782608695,
|
| 428 |
+
"ci95": [
|
| 429 |
+
0.8695652173913043,
|
| 430 |
+
0.9510869565217391
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"denominator_rule": "The denominator is every item of the stratum that both local arms produced a scoreable row for. Measured on these rows: truncation 0, infrastructure failure 0, missing output 0 in both local arms, so the strict and inclusive denominators are identical and the headline is the same number under either reading."
|
| 434 |
+
},
|
| 435 |
+
"frontier_result": {
|
| 436 |
+
"successes": 179,
|
| 437 |
+
"total": 184,
|
| 438 |
+
"rate": 0.9728260869565217,
|
| 439 |
+
"rate_pct": "97.28%",
|
| 440 |
+
"ci95": [
|
| 441 |
+
0.937973928367375,
|
| 442 |
+
0.9883384539803052
|
| 443 |
+
],
|
| 444 |
+
"ci95_pct": [
|
| 445 |
+
"93.80%",
|
| 446 |
+
"98.83%"
|
| 447 |
+
],
|
| 448 |
+
"ci_method": "wilson",
|
| 449 |
+
"buckets": {
|
| 450 |
+
"truncated": 0,
|
| 451 |
+
"infrastructure_failure": 0
|
| 452 |
+
},
|
| 453 |
+
"paired_vs_tuned": {
|
| 454 |
+
"both_pass": 168,
|
| 455 |
+
"tuned_only_pass": 2,
|
| 456 |
+
"frontier_only_pass": 11,
|
| 457 |
+
"both_fail": 3,
|
| 458 |
+
"n_discordant": 13,
|
| 459 |
+
"mcnemar_p": 0.0224609375,
|
| 460 |
+
"method": "mcnemar-exact-binomial",
|
| 461 |
+
"gap_pp": "4.89 pp",
|
| 462 |
+
"reading": "The frontier arm compiled 11 items the tuned arm missed; the tuned arm compiled 2 items the frontier arm missed; 3 failed under both."
|
| 463 |
+
},
|
| 464 |
+
"derived": "every figure in this block is derived from the sealed frontier and tuned per-item rows"
|
| 465 |
+
},
|
| 466 |
+
"full_300_for_comparison": {
|
| 467 |
+
"contingency": {
|
| 468 |
+
"a_both_pass": 1,
|
| 469 |
+
"b_base_only": 1,
|
| 470 |
+
"c_tuned_only": 283,
|
| 471 |
+
"d_neither": 15,
|
| 472 |
+
"n": 300
|
| 473 |
+
},
|
| 474 |
+
"base": {
|
| 475 |
+
"successes": 2,
|
| 476 |
+
"total": 300
|
| 477 |
+
},
|
| 478 |
+
"tuned": {
|
| 479 |
+
"successes": 284,
|
| 480 |
+
"total": 300
|
| 481 |
+
},
|
| 482 |
+
"difference": 0.94,
|
| 483 |
+
"mcnemar_p": 1.8338173912479853e-83,
|
| 484 |
+
"decontamination_cost": -0.027,
|
| 485 |
+
"reading": "Decontamination moved the difference from 0.9400 to 0.9130, a change of -0.0270. The uplift is smaller on the decontaminated stratum and the direction is unchanged."
|
| 486 |
+
},
|
| 487 |
+
"public_release_contents": {
|
| 488 |
+
"per_item_rows": {
|
| 489 |
+
"rows": 552,
|
| 490 |
+
"sha256": "3584aefb4f4226e9ba9ae7453c274eebab6f30b62d0dd89a23f41202c6ec070d",
|
| 491 |
+
"distribution": "PUBLIC"
|
| 492 |
+
},
|
| 493 |
+
"fields_published": [
|
| 494 |
+
"item_id",
|
| 495 |
+
"verdict_headline",
|
| 496 |
+
"verdict_strict",
|
| 497 |
+
"bucket",
|
| 498 |
+
"ex5_exists",
|
| 499 |
+
"errors",
|
| 500 |
+
"warnings",
|
| 501 |
+
"result_line_errors",
|
| 502 |
+
"result_line_warnings",
|
| 503 |
+
"compile_infra_reason",
|
| 504 |
+
"generation_error",
|
| 505 |
+
"positive_control_errors",
|
| 506 |
+
"positive_control_warnings",
|
| 507 |
+
"truncated",
|
| 508 |
+
"finish_reason",
|
| 509 |
+
"n_fenced_blocks",
|
| 510 |
+
"used_block_index",
|
| 511 |
+
"fence_unterminated",
|
| 512 |
+
"used_block_unterminated",
|
| 513 |
+
"extractor_version",
|
| 514 |
+
"harness_version",
|
| 515 |
+
"seed",
|
| 516 |
+
"seed_applied",
|
| 517 |
+
"temperature",
|
| 518 |
+
"temperature_applied",
|
| 519 |
+
"max_new_tokens",
|
| 520 |
+
"quantisation",
|
| 521 |
+
"quantisation_mismatch",
|
| 522 |
+
"prompt_sha256_public",
|
| 523 |
+
"prompt_sha256",
|
| 524 |
+
"mq5_sha256",
|
| 525 |
+
"ex5_sha256"
|
| 526 |
+
],
|
| 527 |
+
"fields_withheld": [
|
| 528 |
+
"adapter_path",
|
| 529 |
+
"adapter_sha256",
|
| 530 |
+
"base_model_sha256",
|
| 531 |
+
"category",
|
| 532 |
+
"compile_log_path",
|
| 533 |
+
"compile_log_raw_path",
|
| 534 |
+
"compile_log_raw_sha256",
|
| 535 |
+
"compile_log_sha256",
|
| 536 |
+
"compile_stem",
|
| 537 |
+
"ea_name",
|
| 538 |
+
"elapsed_seconds",
|
| 539 |
+
"ex5_path",
|
| 540 |
+
"generated_code_path",
|
| 541 |
+
"generated_code_sha256",
|
| 542 |
+
"manifest_selection_sha256",
|
| 543 |
+
"manifest_sha256",
|
| 544 |
+
"metaeditor_build",
|
| 545 |
+
"metaeditor_path",
|
| 546 |
+
"metaeditor_sha256",
|
| 547 |
+
"metaeditor_size_bytes",
|
| 548 |
+
"model_id",
|
| 549 |
+
"mq5_path",
|
| 550 |
+
"source_sha256",
|
| 551 |
+
"system_prompt_sha256",
|
| 552 |
+
"usage"
|
| 553 |
+
],
|
| 554 |
+
"item_id_scheme": "Opaque. item_id is a stable public identifier used to join prompts and result rows; it carries none of the item's name.",
|
| 555 |
+
"ea_name_not_in_rows_because": "The rows key on item_id so that the row schema does not depend on the corpus's naming convention. This is a schema choice, not anonymisation: every published prompt carries a `// NAME:` line holding that item's original name, so all 184 names are recoverable from this release.",
|
| 556 |
+
"generated_mql5_source_distributed": false,
|
| 557 |
+
"prompts_distributed": true,
|
| 558 |
+
"prompts": {
|
| 559 |
+
"rows": 184,
|
| 560 |
+
"sha256": "d58391038d39b22d1865e5d874764201f65918fbf92fe837a465f58daee7cfa7",
|
| 561 |
+
"distribution": "PUBLIC"
|
| 562 |
+
},
|
| 563 |
+
"serving_template": {
|
| 564 |
+
"sha256": "979346bc6c0bfee309188be88a5f1611882344ebd44d7e9796066068cd004541",
|
| 565 |
+
"distribution": "PUBLIC"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
"not_distributed": {
|
| 569 |
+
"item_id_to_name_mapping": 184,
|
| 570 |
+
"training_corpus_rows": 83155,
|
| 571 |
+
"generated_mql5_source": "all three arms",
|
| 572 |
+
"tuned_model_weights": true,
|
| 573 |
+
"release_under": "written agreement only"
|
| 574 |
+
},
|
| 575 |
+
"contact": {
|
| 576 |
+
"route": "Hugging Face - open a discussion on the dataset repository",
|
| 577 |
+
"for": "evaluation access, research collaboration, commercial licensing, partnership",
|
| 578 |
+
"identity": "CompilingThings"
|
| 579 |
+
},
|
| 580 |
+
"limitations": [
|
| 581 |
+
"The training corpus is not distributed. Any claim about its contents is attested by hash, not independently reproducible from this package.",
|
| 582 |
+
"The tuned model weights are not distributed.",
|
| 583 |
+
"Generated MQL5 source is not distributed for any arm. The mq5_sha256 and ex5_sha256 values are stable commitments to the withheld artifacts: they permit integrity verification if those artifacts are later disclosed under agreement. mq5_sha256 is present on every row; ex5_sha256 is present only on rows where an EX5 artifact was produced and is null on the rest, because a failed compile leaves nothing to hash. They do not let a reader check independently generated output against ours, because two models almost never emit byte-identical source.",
|
| 584 |
+
"The result rows carry an opaque item_id rather than the original item name, but the names are not hidden: every published prompt contains a `// NAME:` line, because that line was in the prompt the models were given. The naming scheme for these 184 items is therefore public. An earlier draft of this card claimed otherwise and was wrong.",
|
| 585 |
+
"The 184 prompts are now public. They should be treated as a public benchmark from this release onward, not as an uncontaminated evaluation set: once published, prompts enter crawls and downstream corpora regardless of licence. A separate private holdout is reserved for future releases.",
|
| 586 |
+
"The compile verdict comes from one compiler on one platform. It measures whether the code compiles, not whether it trades correctly or profitably.",
|
| 587 |
+
"The benchmark is a single frozen draw at seed 42 from a larger pool. It was frozen before any result was seen, and was not redrawn.",
|
| 588 |
+
"The witness set preserved for the normalised-equivalence collisions is capped and therefore incomplete; the collision count itself is complete.",
|
| 589 |
+
"Two historical merges under the same recorded environment produced byte-identical weights: same merge tool, same adapter, same 336 merge targets over 579 base tensors, and an identical model.safetensors hash. A fresh release-time or cross-environment reproduction was not performed.",
|
| 590 |
+
"One base-model authority underlies both the shard hash check and the Hub tree check, so those two are not fully independent of each other."
|
| 591 |
+
],
|
| 592 |
+
"reproducibility": {
|
| 593 |
+
"what_a_reader_can_verify": [
|
| 594 |
+
"Run the benchmark. The 184 prompts and the serving template are published, so a third party can generate their own arm, compile it, and score it against the same items.",
|
| 595 |
+
"Both published hashes: prompt_sha256_public is sha256 of the prompt as published, and prompt_sha256 is arm-specific - the rendered serving template on local-arm rows, the canonical system+user rendering on frontier rows. verify_public_release.py recomputes both under each arm's rule.",
|
| 596 |
+
"All three rates, both paired tables, both McNemar p-values and every confidence interval except the bootstrap recompute from the published per-item rows alone.",
|
| 597 |
+
"The frozen selection rule is fully stated and deterministic, so anyone holding a pool with the stated source hash can recompute which items were drawn."
|
| 598 |
+
],
|
| 599 |
+
"what_a_reader_cannot_do": [
|
| 600 |
+
"Inspect the generated MQL5 for any arm.",
|
| 601 |
+
"Recompute the decontamination counts, which are measured against a corpus that is not distributed.",
|
| 602 |
+
"Reproduce our tuned arm, whose weights are not distributed. A reader can run their own model against the same items and compare.",
|
| 603 |
+
"Confirm any per-item verdict against the artifact that produced it. The generated MQL5 and the compiler logs are not distributed, so the rows are an attestation and the statistics computed from them are not."
|
| 604 |
+
],
|
| 605 |
+
"scope_summary": "The public files support new evaluations on the 184 prompts. The corpus, generated source, tuned weights, and original harness are withheld."
|
| 606 |
+
},
|
| 607 |
+
"checksum_manifest": {
|
| 608 |
+
"file": "SHA256SUMS.txt",
|
| 609 |
+
"files_listed": 10,
|
| 610 |
+
"files_present": 11,
|
| 611 |
+
"reconciliation": "every file except SHA256SUMS.txt, which cannot list itself"
|
| 612 |
+
}
|
| 613 |
+
}
|
serving_template.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"system_prompt": "You are an expert MQL5 programmer. Write the complete MQL5 Expert Advisor code that implements the given specification exactly.",
|
| 3 |
+
"system_prompt_sha256": "820208ddccc935fe44222db63416e192f605183e1b77c8e833de0d8aa94c6377",
|
| 4 |
+
"template": "<|system|>{system_prompt}<|end|>\n<|user|>{prompt}<|end|>\n<|assistant|>",
|
| 5 |
+
"note": "This template applies to the two local arms (base and tuned) only; the frontier arm was not served with it. On local-arm rows prompt_sha256 is sha256 of the UTF-8 encoding of the rendered string; frontier rows follow the system+user rule in PROJECTION_REPORT.json hash_definitions. prompt_sha256_public is sha256 of the UTF-8 encoding of the prompt alone, exactly as published in prompts.jsonl.",
|
| 6 |
+
"worked_example": {
|
| 7 |
+
"item_id": "item_001",
|
| 8 |
+
"prompt_sha256_public": "8002a63c52279e6c92f85b146dc099375fa382f06b02f93c9cc424ecf64e605a",
|
| 9 |
+
"prompt_sha256": "02ad9e31a9c46835c8f1e1d1edf7caa1e85f1537eb5e3d98f393a6ff9718147f"
|
| 10 |
+
}
|
| 11 |
+
}
|
verify_public_release.py
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Verify the public release, and ship with the package.
|
| 3 |
+
|
| 4 |
+
Needs Python 3.9 or later and nothing else - no third-party packages. Invoke it with
|
| 5 |
+
whichever launcher your system has: `py`, `python3` or `python`.
|
| 6 |
+
|
| 7 |
+
Most checks here are ones a third party can run on the published files. Checks 1 and 2
|
| 8 |
+
are not: they need the evaluation pool, the frozen manifest and the id-to-name mapping,
|
| 9 |
+
none of which is distributed, and they report SKIPPED without them. Hashes are computed
|
| 10 |
+
with the semantics the harness used - sha256 over the UTF-8 encoding of the string, no
|
| 11 |
+
normalisation - so a mismatch is a real finding rather than an encoding artefact.
|
| 12 |
+
|
| 13 |
+
Checks:
|
| 14 |
+
1 authority file hashes to the source_sha256 the frozen manifest recorded
|
| 15 |
+
2 every published prompt is byte-identical to the evaluated prompt
|
| 16 |
+
3 both published hashes recompute from the published prompt for every row, under
|
| 17 |
+
each arm's rendering rule (local template for base/tuned; system+user for frontier)
|
| 18 |
+
4 each item maps to exactly three result rows: one base, one tuned, one frontier
|
| 19 |
+
5 the public rows reproduce every published table: 2/184, 170/184, 179/184, the
|
| 20 |
+
base-vs-tuned contingency table and the tuned-vs-frontier paired table
|
| 21 |
+
6 substituting into the published template reproduces prompt_sha256 for every
|
| 22 |
+
local-arm row
|
| 23 |
+
7 every SHA-256 quoted in the card is one the release stands behind
|
| 24 |
+
8 every checksum-manifest entry recomputes from the shipped files
|
| 25 |
+
D diagnostic: do the sealed spec_sha256 / prompt_sha256 reproduce from the prompt?
|
| 26 |
+
|
| 27 |
+
Checks 1 and 2 need the evaluation pool, the frozen manifest and the id-to-name mapping.
|
| 28 |
+
None of those is distributed, so for a public reader they report SKIPPED and the run
|
| 29 |
+
continues. Checks 3 through 8 need nothing but the published files.
|
| 30 |
+
|
| 31 |
+
Check 6 is not redundant with check 3. Check 3 renders the prompt with this file's own
|
| 32 |
+
format_local_prompt; check 6 renders it the way a reader does, by substituting into the
|
| 33 |
+
template published in serving_template.json. They agree only if the published template is
|
| 34 |
+
correct - and it once was not.
|
| 35 |
+
|
| 36 |
+
Exit 0 all checks pass, 2 a check failed, 3 an input was missing or unreadable.
|
| 37 |
+
|
| 38 |
+
Usage:
|
| 39 |
+
python3 verify_public_release.py --public .
|
| 40 |
+
|
| 41 |
+
With the undistributed inputs to hand, checks 1 and 2 also run:
|
| 42 |
+
python3 verify_public_release.py --public <dir> --private <dir> \
|
| 43 |
+
--authority <pool.jsonl> --manifest <frozen manifest.json>
|
| 44 |
+
"""
|
| 45 |
+
|
| 46 |
+
from __future__ import annotations
|
| 47 |
+
|
| 48 |
+
import argparse
|
| 49 |
+
import hashlib
|
| 50 |
+
import json
|
| 51 |
+
import re
|
| 52 |
+
import sys
|
| 53 |
+
from collections import defaultdict
|
| 54 |
+
from pathlib import Path
|
| 55 |
+
|
| 56 |
+
MANIFEST_NAME = "SHA256SUMS.txt"
|
| 57 |
+
|
| 58 |
+
SYSTEM_PROMPT = (
|
| 59 |
+
"You are an expert MQL5 programmer. Write the complete MQL5 "
|
| 60 |
+
"Expert Advisor code that implements the given specification exactly."
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
EXPECTED = {"n": 184, "base": 2, "tuned": 170, "a": 1, "b": 1, "c": 169, "d": 13}
|
| 64 |
+
# The frontier arm and its pairing against the tuned arm, added 2026-09-02.
|
| 65 |
+
EXPECTED_FRONTIER = {"n": 184, "frontier": 179,
|
| 66 |
+
"both_pass": 168, "tuned_only": 2,
|
| 67 |
+
"frontier_only": 11, "both_fail": 3}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def format_api_prompt(system: str, spec: str) -> str:
|
| 71 |
+
"""Canonical rendering of the frontier arm's system+user pair. The vendor API
|
| 72 |
+
takes the two as separate fields; the frontier rows' prompt_sha256 hashes this
|
| 73 |
+
single-string rendering of them."""
|
| 74 |
+
return f"{system}\n\n{spec}"
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def sha256_text(text: str) -> str:
|
| 78 |
+
"""Byte-for-byte the harness's hash rule: sha256 over the UTF-8 encoding."""
|
| 79 |
+
return hashlib.sha256(text.encode("utf-8")).hexdigest()
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def sha256_file(path: Path) -> str:
|
| 83 |
+
h = hashlib.sha256()
|
| 84 |
+
with path.open("rb") as fh:
|
| 85 |
+
for chunk in iter(lambda: fh.read(1 << 20), b""):
|
| 86 |
+
h.update(chunk)
|
| 87 |
+
return h.hexdigest()
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def read_jsonl(path: Path):
|
| 91 |
+
with path.open("r", encoding="utf-8") as fh:
|
| 92 |
+
for lineno, line in enumerate(fh, 1):
|
| 93 |
+
line = line.strip()
|
| 94 |
+
if not line:
|
| 95 |
+
continue
|
| 96 |
+
try:
|
| 97 |
+
yield json.loads(line)
|
| 98 |
+
except json.JSONDecodeError as exc:
|
| 99 |
+
raise SystemExit(f"{path}:{lineno}: {exc}")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def format_local_prompt(spec: str) -> str:
|
| 103 |
+
"""The serving template, rendered exactly as the harness rendered it."""
|
| 104 |
+
return (
|
| 105 |
+
f"<|system|>{SYSTEM_PROMPT}<|end|>\n"
|
| 106 |
+
f"<|user|>{spec}<|end|>\n"
|
| 107 |
+
f"<|assistant|>"
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def main(argv: list[str]) -> int:
|
| 112 |
+
ap = argparse.ArgumentParser(description=__doc__)
|
| 113 |
+
# Only --public is required. The authority pool, the frozen manifest and the id-to-name
|
| 114 |
+
# mapping are not distributed, so a public reader has none of them; requiring any of
|
| 115 |
+
# them made the script exit before check 3 and the release was not runnable by anyone
|
| 116 |
+
# outside. Checks 3, 4 and 5 need nothing but the published files, and they are the
|
| 117 |
+
# checks that matter to a reader: the hashes recompute, the pairing is one-to-one, and
|
| 118 |
+
# the headline falls out of the rows.
|
| 119 |
+
ap.add_argument("--public", type=Path, required=True)
|
| 120 |
+
ap.add_argument("--private", type=Path,
|
| 121 |
+
help="holds item_id_mapping.jsonl; not distributed, so check 2 skips")
|
| 122 |
+
ap.add_argument("--authority", type=Path,
|
| 123 |
+
help="the evaluation pool; not distributed, so check 1 skips")
|
| 124 |
+
ap.add_argument("--manifest", type=Path,
|
| 125 |
+
help="the frozen manifest; not distributed, so check 1 skips")
|
| 126 |
+
ap.add_argument("--sealed-rows", type=Path,
|
| 127 |
+
help="the sealed base-arm results file (not distributed), "
|
| 128 |
+
"for the reproduction diagnostic")
|
| 129 |
+
args = ap.parse_args(argv)
|
| 130 |
+
|
| 131 |
+
failures: list[str] = []
|
| 132 |
+
notes: list[str] = []
|
| 133 |
+
|
| 134 |
+
# ---- check 1 -----------------------------------------------------------------
|
| 135 |
+
# Runs only when the pool and the frozen manifest are both to hand. Neither ships, so
|
| 136 |
+
# for a public reader this reports SKIPPED and the run continues.
|
| 137 |
+
have_authority = args.authority is not None and args.authority.is_file()
|
| 138 |
+
have_manifest = args.manifest is not None and args.manifest.is_file()
|
| 139 |
+
authority: dict[str, str] = {}
|
| 140 |
+
|
| 141 |
+
if have_authority and have_manifest:
|
| 142 |
+
manifest = json.loads(args.manifest.read_text(encoding="utf-8"))
|
| 143 |
+
actual = sha256_file(args.authority)
|
| 144 |
+
if actual == manifest["source_sha256"]:
|
| 145 |
+
print(f" [1] authority sha256 matches the frozen manifest {actual[:16]}...")
|
| 146 |
+
else:
|
| 147 |
+
failures.append(
|
| 148 |
+
f"[1] authority sha256 {actual} != manifest source_sha256 "
|
| 149 |
+
f"{manifest['source_sha256']}"
|
| 150 |
+
)
|
| 151 |
+
# The authority is the only source of prompt text. Published prompts are checked
|
| 152 |
+
# against it rather than the other way round.
|
| 153 |
+
for rec in read_jsonl(args.authority):
|
| 154 |
+
name = rec.get("ea_name")
|
| 155 |
+
if name is not None:
|
| 156 |
+
authority[name] = rec["prompt"]
|
| 157 |
+
else:
|
| 158 |
+
print(" [1] SKIPPED - needs the evaluation pool and the frozen manifest, "
|
| 159 |
+
"neither of which is distributed")
|
| 160 |
+
|
| 161 |
+
# Checks 3-8 verify the PUBLIC release, so they read the public prompts file
|
| 162 |
+
# unconditionally. An earlier version fell back between the two, which meant a
|
| 163 |
+
# present --private copy silently substituted for the release copy and the
|
| 164 |
+
# verifier could pass a public file that no longer matched its results.
|
| 165 |
+
public_prompts = args.public / "prompts.jsonl"
|
| 166 |
+
if not public_prompts.is_file():
|
| 167 |
+
print(f"MISSING: prompts.jsonl in {args.public}")
|
| 168 |
+
return 3
|
| 169 |
+
|
| 170 |
+
published = list(read_jsonl(public_prompts))
|
| 171 |
+
|
| 172 |
+
# ---- check 2 -----------------------------------------------------------------
|
| 173 |
+
# Needs the id-to-name mapping, which is not distributed. A public reader gets a
|
| 174 |
+
# clear SKIPPED rather than a crash; internally the mapping is present and it runs.
|
| 175 |
+
id_to_name: dict[str, str] = {}
|
| 176 |
+
mapping_path = args.private / "item_id_mapping.jsonl" if args.private else None
|
| 177 |
+
if mapping_path is not None and mapping_path.is_file():
|
| 178 |
+
id_to_name = {r["item_id"]: r["ea_name"] for r in read_jsonl(mapping_path)}
|
| 179 |
+
|
| 180 |
+
if not id_to_name or not authority:
|
| 181 |
+
print(" [2] SKIPPED - needs the evaluation pool and the id-to-name mapping, "
|
| 182 |
+
"neither of which is distributed")
|
| 183 |
+
else:
|
| 184 |
+
mismatched = [
|
| 185 |
+
r["item_id"] for r in published
|
| 186 |
+
if authority.get(id_to_name.get(r["item_id"], "")) != r["prompt"]
|
| 187 |
+
]
|
| 188 |
+
if mismatched:
|
| 189 |
+
failures.append(
|
| 190 |
+
f"[2] {len(mismatched)} published prompt(s) differ from the evaluated "
|
| 191 |
+
f"prompt"
|
| 192 |
+
)
|
| 193 |
+
else:
|
| 194 |
+
print(f" [2] all {len(published)} published prompts are byte-identical to "
|
| 195 |
+
f"the evaluated prompt")
|
| 196 |
+
|
| 197 |
+
# ---- check 3 -----------------------------------------------------------------
|
| 198 |
+
# The check any reader can run with nothing but the published files.
|
| 199 |
+
public_hash = {r["item_id"]: sha256_text(r["prompt"]) for r in published}
|
| 200 |
+
results_path = args.public / "per_item_results.jsonl"
|
| 201 |
+
if not results_path.is_file():
|
| 202 |
+
# The docstring's exit-3 contract for missing inputs, honoured here too —
|
| 203 |
+
# without this a missing results file was an uncaught traceback.
|
| 204 |
+
print(f"MISSING: per_item_results.jsonl in {args.public}")
|
| 205 |
+
return 3
|
| 206 |
+
rows = list(read_jsonl(results_path))
|
| 207 |
+
prompt_by_id = {p["item_id"]: p["prompt"] for p in published}
|
| 208 |
+
# The published prompt_sha256 per item for the LOCAL arms, for check 6 to compare a
|
| 209 |
+
# reader-built template render to. Frontier rows hash a different rendering (the
|
| 210 |
+
# API's system+user pair) and are checked under that rule in check 3.
|
| 211 |
+
by_id_hash = {r["item_id"]: r.get("prompt_sha256") for r in rows
|
| 212 |
+
if r.get("arm") != "frontier"}
|
| 213 |
+
|
| 214 |
+
hash_bad = [
|
| 215 |
+
r["item_id"] for r in rows
|
| 216 |
+
if public_hash.get(r["item_id"]) != r.get("prompt_sha256_public")
|
| 217 |
+
]
|
| 218 |
+
tmpl_bad_rows = []
|
| 219 |
+
for r in rows:
|
| 220 |
+
if r["item_id"] not in prompt_by_id:
|
| 221 |
+
continue
|
| 222 |
+
prompt = prompt_by_id[r["item_id"]]
|
| 223 |
+
want = (format_api_prompt(SYSTEM_PROMPT, prompt)
|
| 224 |
+
if r.get("arm") == "frontier" else format_local_prompt(prompt))
|
| 225 |
+
if sha256_text(want) != r.get("prompt_sha256"):
|
| 226 |
+
tmpl_bad_rows.append(r["item_id"])
|
| 227 |
+
if hash_bad:
|
| 228 |
+
failures.append(f"[3] prompt_sha256_public does not recompute for "
|
| 229 |
+
f"{len(set(hash_bad))} item(s)")
|
| 230 |
+
elif tmpl_bad_rows:
|
| 231 |
+
failures.append(f"[3] prompt_sha256 does not recompute from the published "
|
| 232 |
+
f"serving template for {len(set(tmpl_bad_rows))} item(s)")
|
| 233 |
+
else:
|
| 234 |
+
print(f" [3] both published hashes recompute from the published prompt for all "
|
| 235 |
+
f"{len(public_hash)} items ({len(rows)} rows)")
|
| 236 |
+
|
| 237 |
+
# ---- check 4 -----------------------------------------------------------------
|
| 238 |
+
by_item: dict[str, list[dict]] = defaultdict(list)
|
| 239 |
+
for r in rows:
|
| 240 |
+
by_item[r["item_id"]].append(r)
|
| 241 |
+
bad = {
|
| 242 |
+
i: sorted(x["arm"] for x in v)
|
| 243 |
+
for i, v in by_item.items()
|
| 244 |
+
if sorted(x["arm"] for x in v) != ["base", "frontier", "tuned"]
|
| 245 |
+
}
|
| 246 |
+
if bad:
|
| 247 |
+
failures.append(f"[4] {len(bad)} item(s) do not map to exactly one base, one "
|
| 248 |
+
f"tuned and one frontier row: {list(bad.items())[:3]}")
|
| 249 |
+
else:
|
| 250 |
+
print(f" [4] all {len(by_item)} items map to exactly one base, one tuned and "
|
| 251 |
+
f"one frontier row")
|
| 252 |
+
|
| 253 |
+
# ---- check 5 -----------------------------------------------------------------
|
| 254 |
+
# The headline is a claim about verdict_headline, so it is measured on that field.
|
| 255 |
+
# The two verdict fields can and do diverge - warnings fail strict but not headline,
|
| 256 |
+
# and some frontier rows show exactly that - so the divergence is counted and printed
|
| 257 |
+
# below rather than assumed away, and the tables are measured on verdict_headline
|
| 258 |
+
# only. An earlier version read verdict_strict and got away with it only while the
|
| 259 |
+
# two happened to agree.
|
| 260 |
+
disagree = [
|
| 261 |
+
i for i, v in by_item.items()
|
| 262 |
+
if any(x["verdict_headline"] != x["verdict_strict"] for x in v)
|
| 263 |
+
]
|
| 264 |
+
if disagree:
|
| 265 |
+
notes.append(f"[5] NOTE: verdict_headline and verdict_strict disagree on "
|
| 266 |
+
f"{len(disagree)} item-arm row(s); the headline below is measured on "
|
| 267 |
+
f"verdict_headline")
|
| 268 |
+
else:
|
| 269 |
+
notes.append(f"[5] verdict_headline and verdict_strict agree on all "
|
| 270 |
+
f"{len(rows)} rows")
|
| 271 |
+
|
| 272 |
+
a = b = c = d = 0
|
| 273 |
+
fp = f_both_pass = f_tuned_only = f_frontier_only = f_both_fail = 0
|
| 274 |
+
for v in by_item.values():
|
| 275 |
+
base = next(x for x in v if x["arm"] == "base")["verdict_headline"]
|
| 276 |
+
tuned = next(x for x in v if x["arm"] == "tuned")["verdict_headline"]
|
| 277 |
+
frontier = next(x for x in v if x["arm"] == "frontier")["verdict_headline"]
|
| 278 |
+
if base and tuned:
|
| 279 |
+
a += 1
|
| 280 |
+
elif base and not tuned:
|
| 281 |
+
b += 1
|
| 282 |
+
elif tuned:
|
| 283 |
+
c += 1
|
| 284 |
+
else:
|
| 285 |
+
d += 1
|
| 286 |
+
if frontier:
|
| 287 |
+
fp += 1
|
| 288 |
+
if tuned and frontier:
|
| 289 |
+
f_both_pass += 1
|
| 290 |
+
elif tuned:
|
| 291 |
+
f_tuned_only += 1
|
| 292 |
+
elif frontier:
|
| 293 |
+
f_frontier_only += 1
|
| 294 |
+
else:
|
| 295 |
+
f_both_fail += 1
|
| 296 |
+
got = {"n": len(by_item), "base": a + b, "tuned": a + c,
|
| 297 |
+
"a": a, "b": b, "c": c, "d": d}
|
| 298 |
+
got_frontier = {"n": len(by_item), "frontier": fp,
|
| 299 |
+
"both_pass": f_both_pass, "tuned_only": f_tuned_only,
|
| 300 |
+
"frontier_only": f_frontier_only, "both_fail": f_both_fail}
|
| 301 |
+
if got == EXPECTED and got_frontier == EXPECTED_FRONTIER:
|
| 302 |
+
print(f" [5] headline reproduces from the public rows: base {got['base']}/"
|
| 303 |
+
f"{got['n']}, tuned {got['tuned']}/{got['n']}, frontier "
|
| 304 |
+
f"{fp}/{got['n']}, a={a} b={b} c={c} d={d}; tuned-vs-frontier "
|
| 305 |
+
f"{f_both_pass}/{f_tuned_only}/{f_frontier_only}/{f_both_fail}")
|
| 306 |
+
else:
|
| 307 |
+
failures.append(f"[5] headline does not reproduce. expected {EXPECTED} + "
|
| 308 |
+
f"{EXPECTED_FRONTIER}, got {got} + {got_frontier}")
|
| 309 |
+
# ---- check 6 -----------------------------------------------------------------
|
| 310 |
+
# The reader's path, and the reason this check exists. Checks 3 renders the prompt
|
| 311 |
+
# with format_local_prompt, a function compiled into this script. A reader has no such
|
| 312 |
+
# function: they parse serving_template.json, substitute the two placeholders, and
|
| 313 |
+
# hash. Those are different routes to the same string only if the published template
|
| 314 |
+
# is right. It once was not - the template field held the two-character sequence
|
| 315 |
+
# backslash-n where a newline belonged, so every reader-side hash disagreed while
|
| 316 |
+
# check 3 passed. A check that shares the harness's own definition cannot see that.
|
| 317 |
+
template_path = args.public / "serving_template.json"
|
| 318 |
+
if not template_path.is_file():
|
| 319 |
+
failures.append("[6] serving_template.json is missing from the public release")
|
| 320 |
+
else:
|
| 321 |
+
tmpl = json.loads(template_path.read_text(encoding="utf-8"))
|
| 322 |
+
sys_prompt = tmpl["system_prompt"]
|
| 323 |
+
if sha256_text(sys_prompt) != tmpl["system_prompt_sha256"]:
|
| 324 |
+
failures.append("[6] the published system prompt does not match its own "
|
| 325 |
+
"published hash")
|
| 326 |
+
rendered_bad = [
|
| 327 |
+
r["item_id"] for r in published
|
| 328 |
+
if sha256_text(
|
| 329 |
+
tmpl["template"].replace("{system_prompt}", sys_prompt)
|
| 330 |
+
.replace("{prompt}", r["prompt"])
|
| 331 |
+
) != by_id_hash.get(r["item_id"])
|
| 332 |
+
]
|
| 333 |
+
if rendered_bad:
|
| 334 |
+
failures.append(
|
| 335 |
+
f"[6] substituting into the published template does not reproduce "
|
| 336 |
+
f"prompt_sha256 for {len(set(rendered_bad))} item(s). A reader following "
|
| 337 |
+
f"serving_template.json cannot reproduce our hashes."
|
| 338 |
+
)
|
| 339 |
+
else:
|
| 340 |
+
print(f" [6] substituting into the published template reproduces "
|
| 341 |
+
f"prompt_sha256 for all {len(published)} items")
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
# ---- check 7 -----------------------------------------------------------------
|
| 345 |
+
# Every 64-hex string in README.md must be a hash the release actually stands behind.
|
| 346 |
+
# The card quotes file hashes in prose and in a table, and those are hand-carried from
|
| 347 |
+
# the metadata when the card is written - so they go stale the moment any file is
|
| 348 |
+
# regenerated. That happened: the card published a serving_template.json hash from an
|
| 349 |
+
# earlier build while the manifest, the metadata and the projection report all agreed
|
| 350 |
+
# on a different one. Nothing caught it, because nothing was comparing the two.
|
| 351 |
+
readme = args.public / "README.md"
|
| 352 |
+
manifest_file = args.public / MANIFEST_NAME
|
| 353 |
+
if readme.is_file() and manifest_file.is_file():
|
| 354 |
+
known: set[str] = set()
|
| 355 |
+
for line in manifest_file.read_text(encoding="utf-8").splitlines():
|
| 356 |
+
digest = line.split(" ")[0].strip()
|
| 357 |
+
if len(digest) == 64:
|
| 358 |
+
known.add(digest)
|
| 359 |
+
# Hashes the release legitimately quotes that are not file hashes: model weights,
|
| 360 |
+
# the corpus, the adapter, the evaluation pool, the normaliser source. Those live
|
| 361 |
+
# in publication_metadata.json, so that file is the second authority.
|
| 362 |
+
# serving_template.json is a third authority: it carries the system-prompt hash
|
| 363 |
+
# and the worked example, which are legitimately quoted in the card and appear in
|
| 364 |
+
# neither the manifest nor the metadata.
|
| 365 |
+
authorities = "".join(
|
| 366 |
+
(args.public / n).read_text(encoding="utf-8")
|
| 367 |
+
for n in ("publication_metadata.json", "serving_template.json",
|
| 368 |
+
"PROJECTION_REPORT.json")
|
| 369 |
+
if (args.public / n).is_file()
|
| 370 |
+
)
|
| 371 |
+
stale = sorted({
|
| 372 |
+
h for h in re.findall(r"\b[0-9a-f]{64}\b", readme.read_text(encoding="utf-8"))
|
| 373 |
+
if h not in known and h not in authorities
|
| 374 |
+
})
|
| 375 |
+
if stale:
|
| 376 |
+
failures.append(
|
| 377 |
+
f"[7] README.md quotes {len(stale)} sha256 value(s) that appear in none "
|
| 378 |
+
f"of {MANIFEST_NAME}, publication_metadata.json, serving_template.json "
|
| 379 |
+
f"or PROJECTION_REPORT.json, so the card disagrees with the release: "
|
| 380 |
+
f"{stale[:3]}"
|
| 381 |
+
)
|
| 382 |
+
else:
|
| 383 |
+
print(" [7] every sha256 quoted in the card is one the release stands behind")
|
| 384 |
+
else:
|
| 385 |
+
# A copy missing the card or the manifest must not verify. Without this branch
|
| 386 |
+
# the check was silently skipped and a damaged copy printed ALL CHECKS PASSED.
|
| 387 |
+
absent = [n for n, f in (("README.md", readme), (MANIFEST_NAME, manifest_file))
|
| 388 |
+
if not f.is_file()]
|
| 389 |
+
failures.append(f"[7] cannot run: missing {', '.join(absent)}")
|
| 390 |
+
|
| 391 |
+
# ---- check 8 -----------------------------------------------------------------
|
| 392 |
+
# Recompute the manifest. Check 7 reads SHA256SUMS.txt to learn which hashes the
|
| 393 |
+
# release stands behind, but never hashes a file - so a modified LICENSE or
|
| 394 |
+
# CITATION.cff passed the verifier untouched while the card said the verifier checks
|
| 395 |
+
# the release package. Third parties do not all have sha256sum, and telling them to
|
| 396 |
+
# run a tool this script could run itself is not verification.
|
| 397 |
+
if manifest_file.is_file():
|
| 398 |
+
listed: dict[str, str] = {}
|
| 399 |
+
for line in manifest_file.read_text(encoding="utf-8").splitlines():
|
| 400 |
+
if not line.strip():
|
| 401 |
+
continue
|
| 402 |
+
digest, _, name = line.partition(" ")
|
| 403 |
+
if len(digest.strip()) == 64 and name.strip():
|
| 404 |
+
listed[name.strip()] = digest.strip()
|
| 405 |
+
|
| 406 |
+
bad, missing = [], []
|
| 407 |
+
for name, want in sorted(listed.items()):
|
| 408 |
+
f = args.public / name
|
| 409 |
+
if not f.is_file():
|
| 410 |
+
missing.append(name)
|
| 411 |
+
elif sha256_file(f) != want:
|
| 412 |
+
bad.append(name)
|
| 413 |
+
|
| 414 |
+
present = {p.name for p in args.public.iterdir() if p.is_file()}
|
| 415 |
+
unlisted = sorted(present - set(listed) - {MANIFEST_NAME})
|
| 416 |
+
|
| 417 |
+
if bad or missing:
|
| 418 |
+
failures.append(
|
| 419 |
+
f"[8] manifest reconciliation FAILED: {len(bad)} file(s) do not match "
|
| 420 |
+
f"their recorded hash {bad[:3]}, {len(missing)} listed file(s) absent "
|
| 421 |
+
f"{missing[:3]}"
|
| 422 |
+
)
|
| 423 |
+
elif unlisted:
|
| 424 |
+
failures.append(
|
| 425 |
+
f"[8] {len(unlisted)} file(s) in the release are not listed in "
|
| 426 |
+
f"{MANIFEST_NAME}: {unlisted[:5]}"
|
| 427 |
+
)
|
| 428 |
+
else:
|
| 429 |
+
print(f" [8] all {len(listed)} manifest entries recompute, and the only "
|
| 430 |
+
f"unlisted file is {MANIFEST_NAME}, which cannot list itself")
|
| 431 |
+
else:
|
| 432 |
+
# Same rule as check 7: a copy with no manifest is unverifiable, not verified.
|
| 433 |
+
failures.append(f"[8] cannot run: {MANIFEST_NAME} is missing")
|
| 434 |
+
|
| 435 |
+
# ---- diagnostic --------------------------------------------------------------
|
| 436 |
+
if args.sealed_rows and args.sealed_rows.is_file():
|
| 437 |
+
sealed = {r["ea_name"]: r for r in read_jsonl(args.sealed_rows)}
|
| 438 |
+
spec_ok = spec_bad = tmpl_ok = tmpl_bad = 0
|
| 439 |
+
example = None
|
| 440 |
+
for r in published:
|
| 441 |
+
s = sealed.get(id_to_name.get(r["item_id"], ""))
|
| 442 |
+
if not s:
|
| 443 |
+
continue
|
| 444 |
+
if sha256_text(r["prompt"]) == s.get("spec_sha256"):
|
| 445 |
+
spec_ok += 1
|
| 446 |
+
else:
|
| 447 |
+
spec_bad += 1
|
| 448 |
+
if example is None:
|
| 449 |
+
# Published rows carry item_id only; the name comes from the
|
| 450 |
+
# private mapping already resolved above.
|
| 451 |
+
example = (r["item_id"], id_to_name.get(r["item_id"], "?"),
|
| 452 |
+
sha256_text(r["prompt"]), s.get("spec_sha256"))
|
| 453 |
+
if sha256_text(format_local_prompt(r["prompt"])) == s.get("prompt_sha256"):
|
| 454 |
+
tmpl_ok += 1
|
| 455 |
+
else:
|
| 456 |
+
tmpl_bad += 1
|
| 457 |
+
notes.append(
|
| 458 |
+
f"[D] sealed spec_sha256 reproduces for {spec_ok}/{spec_ok + spec_bad} items; "
|
| 459 |
+
f"sealed prompt_sha256 reproduces under the local serving template for "
|
| 460 |
+
f"{tmpl_ok}/{tmpl_ok + tmpl_bad}"
|
| 461 |
+
)
|
| 462 |
+
if example:
|
| 463 |
+
notes.append(f"[D] first divergence: {example[0]} ({example[1]})\n"
|
| 464 |
+
f" sha256(published prompt) = {example[2]}\n"
|
| 465 |
+
f" sealed spec_sha256 = {example[3]}")
|
| 466 |
+
# A known-answer check on the hashing itself, so a zero above cannot be blamed
|
| 467 |
+
# on this script's encoding.
|
| 468 |
+
want = "820208ddccc935fe44222db63416e192f605183e1b77c8e833de0d8aa94c6377"
|
| 469 |
+
got_sp = sha256_text(SYSTEM_PROMPT)
|
| 470 |
+
notes.append(f"[D] instrument check: sha256(SYSTEM_PROMPT) "
|
| 471 |
+
f"{'MATCHES' if got_sp == want else 'DIFFERS FROM'} the sealed "
|
| 472 |
+
f"system_prompt_sha256")
|
| 473 |
+
if got_sp != want:
|
| 474 |
+
failures.append("[D] this script's hashing does not reproduce a known answer; "
|
| 475 |
+
"every hash result above is untrustworthy")
|
| 476 |
+
|
| 477 |
+
for n in notes:
|
| 478 |
+
print(n)
|
| 479 |
+
|
| 480 |
+
if failures:
|
| 481 |
+
print("\n=== FAILED ===")
|
| 482 |
+
for f in failures:
|
| 483 |
+
print(f" {f}")
|
| 484 |
+
return 2
|
| 485 |
+
print("\n=== ALL CHECKS PASSED ===")
|
| 486 |
+
return 0
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
if __name__ == "__main__":
|
| 490 |
+
sys.exit(main(sys.argv[1:]))
|