Upload 26 files
Browse files- CHANGELOG.md +8 -0
- CITATION.cff +7 -0
- EVALUATION_PROTOCOL.md +8 -0
- LICENSE +121 -0
- README.md +75 -0
- RELEASE_MANIFEST.json +17 -0
- SHA256SUMS +25 -0
- VERSION +1 -0
- controls/direct_controls.jsonl +20 -0
- croissant.json +19 -0
- data/reo20_items.frozen.jsonl +20 -0
- fixtures/parser_fixtures.jsonl +10 -0
- fixtures/scorer_fixtures.jsonl +4 -0
- schemas/control_fixture_v0.5.schema.json +92 -0
- schemas/reo_item_prefreeze.schema.json +193 -0
- scripts/score_reo20.py +41 -0
- scripts/validate_release.py +41 -0
- spec/scoring_contract.md +13 -0
- spec/task_wrapper.md +10 -0
- src/__init__.py +1 -0
- src/parse.py +133 -0
- src/score.py +85 -0
- src/wrapper.py +31 -0
- tests/gold_predictions.jsonl +20 -0
- tests/test_parser.py +19 -0
- tests/test_public_scorer.py +28 -0
CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
## 1.0.0
|
| 4 |
+
|
| 5 |
+
- Initial frozen public REO-20 release.
|
| 6 |
+
- Includes the 20-item main set, relevant direct controls, frozen parser/scorer/wrapper, schemas, CLI, validator, and tests.
|
| 7 |
+
|
| 8 |
+
- English-only public packaging is enforced by the release validator.
|
CITATION.cff
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "Citation is appreciated but not required under CC0."
|
| 3 |
+
title: "REO-20"
|
| 4 |
+
type: dataset
|
| 5 |
+
version: "1.0.0"
|
| 6 |
+
date-released: "2026-07-17"
|
| 7 |
+
license: CC0-1.0
|
EVALUATION_PROTOCOL.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# REO-20 evaluation protocol v1.0.0
|
| 2 |
+
|
| 3 |
+
1. Use `rendered_prompt` exactly as stored.
|
| 4 |
+
2. Do not add demonstrations, labels, or hidden chain-of-thought requests.
|
| 5 |
+
3. Record raw model output before any normalization.
|
| 6 |
+
4. Use deterministic decoding when the model/runtime permits it and report model ID, revision, tokenizer, runtime, generation parameters, seed, quantization, and hardware.
|
| 7 |
+
5. Score with `scripts/score_reo20.py`.
|
| 8 |
+
6. Report item and pair metrics from the generated score file; keep any diagnostic normalization separate from frozen headline results.
|
LICENSE
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Creative Commons Legal Code
|
| 2 |
+
|
| 3 |
+
CC0 1.0 Universal
|
| 4 |
+
|
| 5 |
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
| 6 |
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
| 7 |
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
| 8 |
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
| 9 |
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
| 10 |
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
| 11 |
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
| 12 |
+
HEREUNDER.
|
| 13 |
+
|
| 14 |
+
Statement of Purpose
|
| 15 |
+
|
| 16 |
+
The laws of most jurisdictions throughout the world automatically confer
|
| 17 |
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
| 18 |
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
| 19 |
+
authorship and/or a database (each, a "Work").
|
| 20 |
+
|
| 21 |
+
Certain owners wish to permanently relinquish those rights to a Work for
|
| 22 |
+
the purpose of contributing to a commons of creative, cultural and
|
| 23 |
+
scientific works ("Commons") that the public can reliably and without fear
|
| 24 |
+
of later claims of infringement build upon, modify, incorporate in other
|
| 25 |
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
| 26 |
+
and for any purposes, including without limitation commercial purposes.
|
| 27 |
+
These owners may contribute to the Commons to promote the ideal of a free
|
| 28 |
+
culture and the further production of creative, cultural and scientific
|
| 29 |
+
works, or to gain reputation or greater distribution for their Work in
|
| 30 |
+
part through the use and efforts of others.
|
| 31 |
+
|
| 32 |
+
For these and/or other purposes and motivations, and without any
|
| 33 |
+
expectation of additional consideration or compensation, the person
|
| 34 |
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
| 35 |
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
| 36 |
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
| 37 |
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
| 38 |
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
| 39 |
+
|
| 40 |
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
| 41 |
+
protected by copyright and related or neighboring rights ("Copyright and
|
| 42 |
+
Related Rights"). Copyright and Related Rights include, but are not
|
| 43 |
+
limited to, the following:
|
| 44 |
+
|
| 45 |
+
i. the right to reproduce, adapt, distribute, perform, display,
|
| 46 |
+
communicate, and translate a Work;
|
| 47 |
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
| 48 |
+
iii. publicity and privacy rights pertaining to a person's image or
|
| 49 |
+
likeness depicted in a Work;
|
| 50 |
+
iv. rights protecting against unfair competition in regards to a Work,
|
| 51 |
+
subject to the limitations in paragraph 4(a), below;
|
| 52 |
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
| 53 |
+
in a Work;
|
| 54 |
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
| 55 |
+
European Parliament and of the Council of 11 March 1996 on the legal
|
| 56 |
+
protection of databases, and under any national implementation
|
| 57 |
+
thereof, including any amended or successor version of such
|
| 58 |
+
directive); and
|
| 59 |
+
vii. other similar, equivalent or corresponding rights throughout the
|
| 60 |
+
world based on applicable law or treaty, and any national
|
| 61 |
+
implementations thereof.
|
| 62 |
+
|
| 63 |
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
| 64 |
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
| 65 |
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
| 66 |
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
| 67 |
+
of action, whether now known or unknown (including existing as well as
|
| 68 |
+
future claims and causes of action), in the Work (i) in all territories
|
| 69 |
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
| 70 |
+
treaty (including future time extensions), (iii) in any current or future
|
| 71 |
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
| 72 |
+
including without limitation commercial, advertising or promotional
|
| 73 |
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
| 74 |
+
member of the public at large and to the detriment of Affirmer's heirs and
|
| 75 |
+
successors, fully intending that such Waiver shall not be subject to
|
| 76 |
+
revocation, rescission, cancellation, termination, or any other legal or
|
| 77 |
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
| 78 |
+
as contemplated by Affirmer's express Statement of Purpose.
|
| 79 |
+
|
| 80 |
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
| 81 |
+
be judged legally invalid or ineffective under applicable law, then the
|
| 82 |
+
Waiver shall be preserved to the maximum extent permitted taking into
|
| 83 |
+
account Affirmer's express Statement of Purpose. In addition, to the
|
| 84 |
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
| 85 |
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
| 86 |
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
| 87 |
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
| 88 |
+
maximum duration provided by applicable law or treaty (including future
|
| 89 |
+
time extensions), (iii) in any current or future medium and for any number
|
| 90 |
+
of copies, and (iv) for any purpose whatsoever, including without
|
| 91 |
+
limitation commercial, advertising or promotional purposes (the
|
| 92 |
+
"License"). The License shall be deemed effective as of the date CC0 was
|
| 93 |
+
applied by Affirmer to the Work. Should any part of the License for any
|
| 94 |
+
reason be judged legally invalid or ineffective under applicable law, such
|
| 95 |
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
| 96 |
+
of the License, and in such case Affirmer hereby affirms that he or she
|
| 97 |
+
will not (i) exercise any of his or her remaining Copyright and Related
|
| 98 |
+
Rights in the Work or (ii) assert any associated claims and causes of
|
| 99 |
+
action with respect to the Work, in either case contrary to Affirmer's
|
| 100 |
+
express Statement of Purpose.
|
| 101 |
+
|
| 102 |
+
4. Limitations and Disclaimers.
|
| 103 |
+
|
| 104 |
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
| 105 |
+
surrendered, licensed or otherwise affected by this document.
|
| 106 |
+
b. Affirmer offers the Work as-is and makes no representations or
|
| 107 |
+
warranties of any kind concerning the Work, express, implied,
|
| 108 |
+
statutory or otherwise, including without limitation warranties of
|
| 109 |
+
title, merchantability, fitness for a particular purpose, non
|
| 110 |
+
infringement, or the absence of latent or other defects, accuracy, or
|
| 111 |
+
the present or absence of errors, whether or not discoverable, all to
|
| 112 |
+
the greatest extent permissible under applicable law.
|
| 113 |
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
| 114 |
+
that may apply to the Work or any use thereof, including without
|
| 115 |
+
limitation any person's Copyright and Related Rights in the Work.
|
| 116 |
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
| 117 |
+
consents, permissions or other rights required for any use of the
|
| 118 |
+
Work.
|
| 119 |
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
| 120 |
+
party to this document and has no duty or obligation with respect to
|
| 121 |
+
this CC0 or use of the Work.
|
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: REO-20
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: cc0-1.0
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: default
|
| 12 |
+
default: true
|
| 13 |
+
data_files:
|
| 14 |
+
- split: test
|
| 15 |
+
path: data/reo20_items.frozen.jsonl
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# REO-20 v1.0.0
|
| 19 |
+
|
| 20 |
+
REO-20 is a frozen synthetic matched-pair benchmark for deciding whether a proposed local rule update is authorized by the evidence and then executing the active rule.
|
| 21 |
+
|
| 22 |
+
## Contents
|
| 23 |
+
|
| 24 |
+
- `data/reo20_items.frozen.jsonl`: 10 pairs / 20 benchmark items.
|
| 25 |
+
- `controls/direct_controls.jsonl`: public direct-rule controls for the 10 released pairs.
|
| 26 |
+
- `src/`: the frozen parser, scorer, and prompt wrapper.
|
| 27 |
+
- `scripts/score_reo20.py`: command-line scorer.
|
| 28 |
+
- `scripts/validate_release.py`: release validator.
|
| 29 |
+
- `tests/`: parser, scorer, and release tests.
|
| 30 |
+
- `schemas/`: data schemas.
|
| 31 |
+
- `spec/`: the frozen English-language scorer contract and task wrapper.
|
| 32 |
+
|
| 33 |
+
The Hub Dataset Viewer is explicitly configured to load only `data/reo20_items.frozen.jsonl`. Python files are ordinary reproducibility files, not dataset-loading scripts. All public file names, documentation, code comments, diagnostics, and data are English-only.
|
| 34 |
+
|
| 35 |
+
## Output contract
|
| 36 |
+
|
| 37 |
+
Return exactly:
|
| 38 |
+
|
| 39 |
+
```text
|
| 40 |
+
DECISION: KEEP_CURRENT or APPLY_UPDATE
|
| 41 |
+
ACTIVE_RULE: R0 or R1
|
| 42 |
+
RESULT: <result>
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Scoring
|
| 46 |
+
|
| 47 |
+
Predictions are JSON Lines records:
|
| 48 |
+
|
| 49 |
+
```json
|
| 50 |
+
{"item_id":"<member_id>","response":"DECISION: ...\nACTIVE_RULE: ...\nRESULT: ..."}
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
Run:
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
python scripts/score_reo20.py --predictions predictions.jsonl --output scores.json
|
| 57 |
+
python scripts/validate_release.py
|
| 58 |
+
python -m unittest discover -s tests -v
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
The bundled `src/parse.py`, `src/score.py`, and `src/wrapper.py` are copied from the frozen REO-20 v1.0.0 artifact. The public CLI is only an adapter around those frozen components.
|
| 62 |
+
|
| 63 |
+
## Construction and selection
|
| 64 |
+
|
| 65 |
+
The set was selected using structural quality and coverage constraints. Model results and PCE/EPE results were not used for selection. Reserve items, raw model outputs, review ledgers, and internal registries are not distributed.
|
| 66 |
+
|
| 67 |
+
## License
|
| 68 |
+
|
| 69 |
+
All released files are dedicated to the public domain under CC0 1.0 Universal. Citation is appreciated but not required.
|
| 70 |
+
|
| 71 |
+
## Lineage
|
| 72 |
+
|
| 73 |
+
- Frozen artifact ID: `reo20-frozen-release:4e05cb8c-afdb-4849-b918-002400c0a6d3`
|
| 74 |
+
- Frozen source ZIP SHA-256: `0b9cca4d451b0e9c9f041a167954d13d1c13bbfe47c2c4a4f2f89ad71e4d4854`
|
| 75 |
+
- Frozen main data SHA-256: `8192febe8b60e498ad7f145a925d4fb9c06e3d8ddf424525c3cc3d7047be6723`
|
RELEASE_MANIFEST.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_kind": "reo20_hf_public_text_release",
|
| 3 |
+
"counts": {
|
| 4 |
+
"controls": 20,
|
| 5 |
+
"items": 20,
|
| 6 |
+
"pairs": 10
|
| 7 |
+
},
|
| 8 |
+
"data_sha256": "8192febe8b60e498ad7f145a925d4fb9c06e3d8ddf424525c3cc3d7047be6723",
|
| 9 |
+
"english_only_validation": true,
|
| 10 |
+
"license": "CC0-1.0",
|
| 11 |
+
"public_language": "en",
|
| 12 |
+
"selection_used_model_results": false,
|
| 13 |
+
"selection_used_pce_epe_results": false,
|
| 14 |
+
"source_artifact_id": "reo20-frozen-release:4e05cb8c-afdb-4849-b918-002400c0a6d3",
|
| 15 |
+
"source_zip_sha256": "0b9cca4d451b0e9c9f041a167954d13d1c13bbfe47c2c4a4f2f89ad71e4d4854",
|
| 16 |
+
"version": "1.0.0"
|
| 17 |
+
}
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
bf22da2d45f719d100a44ce8c845efacb210057121452695cacea9abe5c7ba96 CHANGELOG.md
|
| 2 |
+
a25c0d18677b922d5b812533d0a2071256ae98c531441535d4f03010a016ec29 CITATION.cff
|
| 3 |
+
05026d2693b58062144c34e6fad60202294a52881544b5380c6845fea7b45f16 EVALUATION_PROTOCOL.md
|
| 4 |
+
a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499 LICENSE
|
| 5 |
+
95518ffa50bdb114771e3a290be47b17fb8ef4d2d3eea4d4dc0a21f2879983a9 README.md
|
| 6 |
+
ea1b5388be62ef8e7090374d3efd904927d6a94d6ae7ed6e7d5cd135c0797415 RELEASE_MANIFEST.json
|
| 7 |
+
59854984853104df5c353e2f681a15fc7924742f9a2e468c29af248dce45ce03 VERSION
|
| 8 |
+
d1abac841c6ea640dad21ba774e713d61491f2b9dfc82c9569b67907ef21d185 controls/direct_controls.jsonl
|
| 9 |
+
d106f7127e195ebe268fe8a044126bdd589187732382c8e1bfe37d5a7838e1b6 croissant.json
|
| 10 |
+
8192febe8b60e498ad7f145a925d4fb9c06e3d8ddf424525c3cc3d7047be6723 data/reo20_items.frozen.jsonl
|
| 11 |
+
cd3817c5d7450749137d00becea3bd17d2c552883fea58a72237bfe0bda936b0 fixtures/parser_fixtures.jsonl
|
| 12 |
+
17af16812f19f72a3c95a267df0436acea9e189e3c7ab17904592da11a54dbcd fixtures/scorer_fixtures.jsonl
|
| 13 |
+
81073467f61c16dacf3f174c25f1638632b0b3243b13c05d4982c4822dc5286c schemas/control_fixture_v0.5.schema.json
|
| 14 |
+
1792bb6dbaf560b99bd7def5a33500099f3a0e7ac920df9da9d77a80bc14ff33 schemas/reo_item_prefreeze.schema.json
|
| 15 |
+
feb15f93196c1ee0c43b007bb1fb7bb866204855fb7d1d35f751fbf72508a07b scripts/score_reo20.py
|
| 16 |
+
94628ce38428c62043225ac9fd9e494d42a5d1f46c27470c4eaa076fe537d1c9 scripts/validate_release.py
|
| 17 |
+
32efc27b9b8fa05d60740315eafb187d1cae5688ada5c7f6251b226d04e9bde6 spec/scoring_contract.md
|
| 18 |
+
0badc713ec509c2da05fa59f4bcb3399fdd426bff6e2e78a5d5e39be3fb63b30 spec/task_wrapper.md
|
| 19 |
+
01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b src/__init__.py
|
| 20 |
+
392dd65bf2f7813cc2353ce8589c5e8c72ce0729602f8c78d65ff4829b174c48 src/parse.py
|
| 21 |
+
747e4bac25ef432fa316ac89523af28a906cfd8e5db5c1220a07ad6ab1e0ba66 src/score.py
|
| 22 |
+
4d01a2bca9fb1114da0dd159f098a14a69fd8efbebe6ea2c8f35eda695b0450e src/wrapper.py
|
| 23 |
+
807ae242a079cf152ef9f32d1b4b5947d9df1f3f8e362ce94e1d1b54a0d8b3f1 tests/gold_predictions.jsonl
|
| 24 |
+
09dc640af5ecd09fc28f43de8aeb0ca89d4758ae320b280e8509f4728fd01652 tests/test_parser.py
|
| 25 |
+
1d51c79516d858abf321e89bf7ada531804f3fbf1a97c93e002b389f42a4c297 tests/test_public_scorer.py
|
VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1.0.0
|
controls/direct_controls.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P03-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to mira7.","result":"NX-mira7"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P03","probe_input":"mira7","rendered_prompt":"Apply this rule directly: Add prefix NX- before the input.\nINPUT: mira7\nReturn exactly:\nRESULT: <result>","rule_text":"Add prefix NX- before the input.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 2 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P03-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to mira7.","result":"mira7-QZ"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P03","probe_input":"mira7","rendered_prompt":"Apply this rule directly: Add suffix -QZ after the input.\nINPUT: mira7\nReturn exactly:\nRESULT: <result>","rule_text":"Add suffix -QZ after the input.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 3 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P12-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to owl.","result":"3"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P12","probe_input":"owl","rendered_prompt":"Apply this rule directly: Map input owl with this fixed lookup: owl->3, fox->4, yak->5.\nINPUT: owl\nReturn exactly:\nRESULT: <result>","rule_text":"Map input owl with this fixed lookup: owl->3, fox->4, yak->5.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 4 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P12-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to owl.","result":"7"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P12","probe_input":"owl","rendered_prompt":"Apply this rule directly: Map input owl with this fixed lookup: owl->7, fox->8, yak->9.\nINPUT: owl\nReturn exactly:\nRESULT: <result>","rule_text":"Map input owl with this fixed lookup: owl->7, fox->8, yak->9.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 5 |
+
{"artifact_id":"reo-gen:e982762a-2127-445c-ae5d-4a86f40222e5","batch_id":"REO-GEN-20260713T064427Z-e982762a","control_id":"REO-GEN-20260713T064427Z-e982762a-P02-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to wood=oak; shelf=17.","result":"oak-17"},"pair_id":"REO-GEN-20260713T064427Z-e982762a-P02","probe_input":"wood=oak; shelf=17","rendered_prompt":"Apply this rule directly: Join the two fields with a hyphen.\nINPUT: wood=oak; shelf=17\nReturn exactly:\nRESULT: <result>","rule_text":"Join the two fields with a hyphen.","run_id":"RUN-e982762a","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 6 |
+
{"artifact_id":"reo-gen:e982762a-2127-445c-ae5d-4a86f40222e5","batch_id":"REO-GEN-20260713T064427Z-e982762a","control_id":"REO-GEN-20260713T064427Z-e982762a-P02-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to wood=oak; shelf=17.","result":"oak/17"},"pair_id":"REO-GEN-20260713T064427Z-e982762a-P02","probe_input":"wood=oak; shelf=17","rendered_prompt":"Apply this rule directly: Join the two fields with a slash.\nINPUT: wood=oak; shelf=17\nReturn exactly:\nRESULT: <result>","rule_text":"Join the two fields with a slash.","run_id":"RUN-e982762a","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 7 |
+
{"artifact_id":"reo-gen:eb18eb48-1c9c-448b-8903-86fcc35c743f","batch_id":"REO-GEN-20260713T075653Z-eb18eb48","control_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to m4.","result":"m4-R"},"pair_id":"REO-GEN-20260713T075653Z-eb18eb48-P01","probe_input":"m4","rendered_prompt":"Apply this rule directly: Append -R to the mark.\nINPUT: m4\nReturn exactly:\nRESULT: <result>","rule_text":"Append -R to the mark.","run_id":"RUN-eb18eb48","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 8 |
+
{"artifact_id":"reo-gen:eb18eb48-1c9c-448b-8903-86fcc35c743f","batch_id":"REO-GEN-20260713T075653Z-eb18eb48","control_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to m4.","result":"L-m4"},"pair_id":"REO-GEN-20260713T075653Z-eb18eb48-P01","probe_input":"m4","rendered_prompt":"Apply this rule directly: Prepend L- to the mark.\nINPUT: m4\nReturn exactly:\nRESULT: <result>","rule_text":"Prepend L- to the mark.","run_id":"RUN-eb18eb48","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 9 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P19-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to Cobalt-3.","result":"COBALT-3"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P19","probe_input":"Cobalt-3","rendered_prompt":"Apply this rule directly: Convert every letter in the input to uppercase.\nINPUT: Cobalt-3\nReturn exactly:\nRESULT: <result>","rule_text":"Convert every letter in the input to uppercase.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 10 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P19-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to Cobalt-3.","result":"cobalt-3"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P19","probe_input":"Cobalt-3","rendered_prompt":"Apply this rule directly: Convert every letter in the input to lowercase.\nINPUT: Cobalt-3\nReturn exactly:\nRESULT: <result>","rule_text":"Convert every letter in the input to lowercase.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 11 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P23-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to red=r2; blue=b4; gold=g6.","result":"r2,b4,g6"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P23","probe_input":"red=r2; blue=b4; gold=g6","rendered_prompt":"Apply this rule directly: Reorder the labeled fields as red, blue, gold; remove labels; use delimiter ',' with no spaces.\nINPUT: red=r2; blue=b4; gold=g6\nReturn exactly:\nRESULT: <result>","rule_text":"Reorder the labeled fields as red, blue, gold; remove labels; use delimiter ',' with no spaces.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 12 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P23-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to red=r2; blue=b4; gold=g6.","result":"g6,r2,b4"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P23","probe_input":"red=r2; blue=b4; gold=g6","rendered_prompt":"Apply this rule directly: Reorder the labeled fields as gold, red, blue; remove labels; use delimiter ',' with no spaces.\nINPUT: red=r2; blue=b4; gold=g6\nReturn exactly:\nRESULT: <result>","rule_text":"Reorder the labeled fields as gold, red, blue; remove labels; use delimiter ',' with no spaces.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 13 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P13-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to Quartz-8.","result":"quartz-8"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P13","probe_input":"Quartz-8","rendered_prompt":"Apply this rule directly: Convert every letter in the input to lowercase.\nINPUT: Quartz-8\nReturn exactly:\nRESULT: <result>","rule_text":"Convert every letter in the input to lowercase.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 14 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P13-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to Quartz-8.","result":"QUARTZ-8"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P13","probe_input":"Quartz-8","rendered_prompt":"Apply this rule directly: Convert every letter in the input to uppercase.\nINPUT: Quartz-8\nReturn exactly:\nRESULT: <result>","rule_text":"Convert every letter in the input to uppercase.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 15 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P16-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to HOLD-9.","result":"WAIT-9"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P16","probe_input":"HOLD-9","rendered_prompt":"Apply this rule directly: Replace token HOLD with WAIT and leave all other text unchanged.\nINPUT: HOLD-9\nReturn exactly:\nRESULT: <result>","rule_text":"Replace token HOLD with WAIT and leave all other text unchanged.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 16 |
+
{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","control_id":"REO-GEN-20260717T024546Z-cb11e835-P16-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to HOLD-9.","result":"PASS-9"},"pair_id":"REO-GEN-20260717T024546Z-cb11e835-P16","probe_input":"HOLD-9","rendered_prompt":"Apply this rule directly: Replace token HOLD with PASS and leave all other text unchanged.\nINPUT: HOLD-9\nReturn exactly:\nRESULT: <result>","rule_text":"Replace token HOLD with PASS and leave all other text unchanged.","run_id":"RUN-cb11e835","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 17 |
+
{"artifact_id":"reo-gen:55ff0282-1774-477b-9093-b6eb48070b6c","batch_id":"REO-GEN-20260713T054214Z-55ff0282","control_id":"REO-GEN-20260713T054214Z-55ff0282-P05-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to north | 28.","result":"28 north"},"pair_id":"REO-GEN-20260713T054214Z-55ff0282-P05","probe_input":"north | 28","rendered_prompt":"Apply this rule directly: Output the second field, then the first field, separated by one space.\nINPUT: north | 28\nReturn exactly:\nRESULT: <result>","rule_text":"Output the second field, then the first field, separated by one space.","run_id":"RUN-55ff0282","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 18 |
+
{"artifact_id":"reo-gen:55ff0282-1774-477b-9093-b6eb48070b6c","batch_id":"REO-GEN-20260713T054214Z-55ff0282","control_id":"REO-GEN-20260713T054214Z-55ff0282-P05-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to north | 28.","result":"north 28"},"pair_id":"REO-GEN-20260713T054214Z-55ff0282-P05","probe_input":"north | 28","rendered_prompt":"Apply this rule directly: Output the first field, then the second field, separated by one space.\nINPUT: north | 28\nReturn exactly:\nRESULT: <result>","rule_text":"Output the first field, then the second field, separated by one space.","run_id":"RUN-55ff0282","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
| 19 |
+
{"artifact_id":"reo-gen:99864454-7472-439a-abfb-41efb29df45b","batch_id":"REO-GEN-20260713T075611Z-99864454","control_id":"REO-GEN-20260713T075611Z-99864454-P06-C-R0","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R0 directly to dock [N].","result":"dock north"},"pair_id":"REO-GEN-20260713T075611Z-99864454-P06","probe_input":"dock [N]","rendered_prompt":"Apply this rule directly: Replace [N] with north and [S] with south.\nINPUT: dock [N]\nReturn exactly:\nRESULT: <result>","rule_text":"Replace [N] with north and [S] with south.","run_id":"RUN-99864454","schema_version":"0.5.0","target_rule":"R0","worker_pack_version":"0.5.0"}
|
| 20 |
+
{"artifact_id":"reo-gen:99864454-7472-439a-abfb-41efb29df45b","batch_id":"REO-GEN-20260713T075611Z-99864454","control_id":"REO-GEN-20260713T075611Z-99864454-P06-C-R1","control_type":"direct_rule_execution","diagnostic_scope":"base_rule_execution_only_not_benchmark_item","gold":{"derivation":"Apply R1 directly to dock [N].","result":"dock upper"},"pair_id":"REO-GEN-20260713T075611Z-99864454-P06","probe_input":"dock [N]","rendered_prompt":"Apply this rule directly: Replace [N] with upper and [S] with lower.\nINPUT: dock [N]\nReturn exactly:\nRESULT: <result>","rule_text":"Replace [N] with upper and [S] with lower.","run_id":"RUN-99864454","schema_version":"0.5.0","target_rule":"R1","worker_pack_version":"0.5.0"}
|
croissant.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"@context": {
|
| 3 |
+
"@vocab": "https://schema.org/",
|
| 4 |
+
"cr": "http://mlcommons.org/croissant/"
|
| 5 |
+
},
|
| 6 |
+
"@type": "Dataset",
|
| 7 |
+
"distribution": [
|
| 8 |
+
{
|
| 9 |
+
"@type": "cr:FileObject",
|
| 10 |
+
"contentUrl": "data/reo20_items.frozen.jsonl",
|
| 11 |
+
"encodingFormat": "application/jsonl",
|
| 12 |
+
"name": "reo20-test-jsonl",
|
| 13 |
+
"sha256": "8192febe8b60e498ad7f145a925d4fb9c06e3d8ddf424525c3cc3d7047be6723"
|
| 14 |
+
}
|
| 15 |
+
],
|
| 16 |
+
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
|
| 17 |
+
"name": "REO-20",
|
| 18 |
+
"version": "1.0.0"
|
| 19 |
+
}
|
data/reo20_items.frozen.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to mira7.","result":"mira7-QZ"},"mechanism_family":"credential_match","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P03","pair_rank":1,"probe_family":"prefix_suffix","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"1. CONTEXT — A fictional violet dispatch tag applies one transformation rule to a supplied probe.\n2. CURRENT R0 — Add prefix NX- before the input.\n3. PROPOSED R1 — Add suffix -QZ after the input.\n4. ACTIVATION RULE — Use R1 only when the credential band is VIOLET and the dispatch key is PX-4.\n5. EVIDENCE — The credential band is VIOLET; the dispatch key is PX-4. The request card uses tray code T03. The record margin shows dot pattern M03.\n6. PROBE — mira7\nRespond with exactly these three lines:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":2,"evidence_depth":2,"policy_operator":"conjunction_all","renderer_template_id":"RENDER-LEDGER-04","structural_difficulty":"medium"},"surface_family":"violet_dispatch_tag"}
|
| 2 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for mira7.","result":"NX-mira7"},"mechanism_family":"credential_match","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P03","pair_rank":1,"probe_family":"prefix_suffix","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"1. CONTEXT — A fictional violet dispatch tag applies one transformation rule to a supplied probe.\n2. CURRENT R0 — Add prefix NX- before the input.\n3. PROPOSED R1 — Add suffix -QZ after the input.\n4. ACTIVATION RULE — Use R1 only when the credential band is VIOLET and the dispatch key is PX-4.\n5. EVIDENCE — The credential band is VIOLET; the dispatch key is PX-9. The request card uses tray code T03. The record margin shows dot pattern M03.\n6. PROBE — mira7\nRespond with exactly these three lines:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":2,"evidence_depth":2,"policy_operator":"conjunction_all","renderer_template_id":"RENDER-LEDGER-04","structural_difficulty":"medium"},"surface_family":"violet_dispatch_tag"}
|
| 3 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for owl.","result":"3"},"mechanism_family":"credential_match","member_id":"REO-GEN-20260717T024546Z-cb11e835-P12-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P12","pair_rank":2,"probe_family":"simple_mapping","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"[CONTEXT]\nA fictional hexagon glyph access applies one transformation rule to a supplied probe.\n[RULE R0]\nMap input owl with this fixed lookup: owl->3, fox->4, yak->5.\n[RULE R1]\nMap input owl with this fixed lookup: owl->7, fox->8, yak->9.\n[UPDATE CONDITION]\nUse R1 when the access glyph appears in this switch set: ORB, HEX.\n[EVIDENCE]\nThe access glyph is SUN. The request card uses tray code T12. The record margin shows dot pattern M12.\n[INPUT]\nowl\n[REQUIRED OUTPUT]\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":2,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"RENDER-BRACKET-05","structural_difficulty":"medium"},"surface_family":"hexagon_glyph_access"}
|
| 4 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to owl.","result":"7"},"mechanism_family":"credential_match","member_id":"REO-GEN-20260717T024546Z-cb11e835-P12-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P12","pair_rank":2,"probe_family":"simple_mapping","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"[CONTEXT]\nA fictional hexagon glyph access applies one transformation rule to a supplied probe.\n[RULE R0]\nMap input owl with this fixed lookup: owl->3, fox->4, yak->5.\n[RULE R1]\nMap input owl with this fixed lookup: owl->7, fox->8, yak->9.\n[UPDATE CONDITION]\nUse R1 when the access glyph appears in this switch set: ORB, HEX.\n[EVIDENCE]\nThe access glyph is ORB. The request card uses tray code T12. The record margin shows dot pattern M12.\n[INPUT]\nowl\n[REQUIRED OUTPUT]\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":2,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"RENDER-BRACKET-05","structural_difficulty":"medium"},"surface_family":"hexagon_glyph_access"}
|
| 5 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"D-12 maps to capitalization changes, not separator changes, so R0 remains active; the fields are joined with a hyphen.","result":"oak-17"},"mechanism_family":"role_permission","member_id":"REO-GEN-20260713T064427Z-e982762a-P02-N","pair_id":"REO-GEN-20260713T064427Z-e982762a-P02","pair_rank":3,"probe_family":"delimiter_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional card catalog joins a wood code and a shelf number using the active separator rule.\n\nCURRENT RULE R0:\nJoin the two fields with a hyphen.\n\nPROPOSED RULE R1:\nJoin the two fields with a slash.\n\nUPDATE POLICY:\nDelegation table: D-11 maps to separator changes; D-12 maps to capitalization changes. R1 becomes active only when the request's delegate code maps to separator changes. Queue lane and card color do not affect this decision.\n\nUPDATE REQUEST:\nUse R1 for this probe. Please process this promptly; the queue is waiting.\n\nREQUEST EVIDENCE:\nDelegate code: D-12\nQueue lane: west\nCard color: ivory\n\nPROBE INPUT:\nwood=oak; shelf=17\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:e982762a-2127-445c-ae5d-4a86f40222e5","batch_id":"REO-GEN-20260713T064427Z-e982762a","run_id":"RUN-e982762a","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":0,"structure_tags":{"distractor_count":2,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"LEGACY-REQUEST-PLAIN","structural_difficulty":"medium"},"surface_family":"catalog_separator"}
|
| 6 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"D-11 maps to separator changes, so R1 applies; the fields are joined with a slash.","result":"oak/17"},"mechanism_family":"role_permission","member_id":"REO-GEN-20260713T064427Z-e982762a-P02-S","pair_id":"REO-GEN-20260713T064427Z-e982762a-P02","pair_rank":3,"probe_family":"delimiter_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional card catalog joins a wood code and a shelf number using the active separator rule.\n\nCURRENT RULE R0:\nJoin the two fields with a hyphen.\n\nPROPOSED RULE R1:\nJoin the two fields with a slash.\n\nUPDATE POLICY:\nDelegation table: D-11 maps to separator changes; D-12 maps to capitalization changes. R1 becomes active only when the request's delegate code maps to separator changes. Queue lane and card color do not affect this decision.\n\nUPDATE REQUEST:\nUse R1 for this probe. Please process this promptly; the queue is waiting.\n\nREQUEST EVIDENCE:\nDelegate code: D-11\nQueue lane: west\nCard color: ivory\n\nPROBE INPUT:\nwood=oak; shelf=17\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:e982762a-2127-445c-ae5d-4a86f40222e5","batch_id":"REO-GEN-20260713T064427Z-e982762a","run_id":"RUN-e982762a","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":1,"structure_tags":{"distractor_count":2,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"LEGACY-REQUEST-PLAIN","structural_difficulty":"medium"},"surface_family":"catalog_separator"}
|
| 7 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"One lookup maps Mira to ledger marks, so R1 is active; prepend L- to m4.","result":"L-m4"},"mechanism_family":"role_permission","member_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-S","pair_id":"REO-GEN-20260713T075653Z-eb18eb48-P01","pair_rank":4,"probe_family":"prefix_suffix","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional index workshop formats short ledger marks using one active rule.\n\nCURRENT RULE R0:\nAppend -R to the mark.\n\nPROPOSED RULE R1:\nPrepend L- to the mark.\n\nUPDATE POLICY:\nUse the assignment table exactly once: Mira -> ledger marks; Niko -> carton marks. R1 becomes active only when the requester's assigned scope is ledger marks. Do not add another inference step. The ticket color, note code, and urgency phrase do not affect this policy.\n\nREQUEST EVIDENCE:\nRequester: Mira.\nTicket color: silver.\nNote code: NX-4.\nUrgency phrase: routine.\n\nPROBE INPUT:\nm4\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:eb18eb48-1c9c-448b-8903-86fcc35c743f","batch_id":"REO-GEN-20260713T075653Z-eb18eb48","run_id":"RUN-eb18eb48","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":0,"structure_tags":{"distractor_count":3,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"LEGACY-PLAIN-SENTENCE","structural_difficulty":"medium"},"surface_family":"ledger_mark_assignment"}
|
| 8 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"One lookup maps Niko to carton marks, so R0 remains active; append -R to m4.","result":"m4-R"},"mechanism_family":"role_permission","member_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-N","pair_id":"REO-GEN-20260713T075653Z-eb18eb48-P01","pair_rank":4,"probe_family":"prefix_suffix","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional index workshop formats short ledger marks using one active rule.\n\nCURRENT RULE R0:\nAppend -R to the mark.\n\nPROPOSED RULE R1:\nPrepend L- to the mark.\n\nUPDATE POLICY:\nUse the assignment table exactly once: Mira -> ledger marks; Niko -> carton marks. R1 becomes active only when the requester's assigned scope is ledger marks. Do not add another inference step. The ticket color, note code, and urgency phrase do not affect this policy.\n\nREQUEST EVIDENCE:\nRequester: Niko.\nTicket color: silver.\nNote code: NX-4.\nUrgency phrase: routine.\n\nPROBE INPUT:\nm4\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:eb18eb48-1c9c-448b-8903-86fcc35c743f","batch_id":"REO-GEN-20260713T075653Z-eb18eb48","run_id":"RUN-eb18eb48","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":1,"structure_tags":{"distractor_count":3,"evidence_depth":1,"policy_operator":"table_lookup","renderer_template_id":"LEGACY-PLAIN-SENTENCE","structural_difficulty":"medium"},"surface_family":"ledger_mark_assignment"}
|
| 9 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to Cobalt-3.","result":"cobalt-3"},"mechanism_family":"approval_threshold","member_id":"REO-GEN-20260717T024546Z-cb11e835-P19-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P19","pair_rank":5,"probe_family":"case_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"1. CONTEXT — A fictional cedar vote label applies one transformation rule to a supplied probe.\n2. CURRENT R0 — Convert every letter in the input to uppercase.\n3. PROPOSED R1 — Convert every letter in the input to lowercase.\n4. ACTIVATION RULE — R1 becomes active when the approval count is at least 4.\n5. EVIDENCE — The approval count is 4.\n6. PROBE — Cobalt-3\nRespond with exactly these three lines:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":0,"evidence_depth":1,"policy_operator":"threshold_at_least","renderer_template_id":"RENDER-LEDGER-04","structural_difficulty":"easy"},"surface_family":"cedar_vote_label"}
|
| 10 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for Cobalt-3.","result":"COBALT-3"},"mechanism_family":"approval_threshold","member_id":"REO-GEN-20260717T024546Z-cb11e835-P19-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P19","pair_rank":5,"probe_family":"case_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"1. CONTEXT — A fictional cedar vote label applies one transformation rule to a supplied probe.\n2. CURRENT R0 — Convert every letter in the input to uppercase.\n3. PROPOSED R1 — Convert every letter in the input to lowercase.\n4. ACTIVATION RULE — R1 becomes active when the approval count is at least 4.\n5. EVIDENCE — The approval count is 3.\n6. PROBE — Cobalt-3\nRespond with exactly these three lines:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":0,"evidence_depth":1,"policy_operator":"threshold_at_least","renderer_template_id":"RENDER-LEDGER-04","structural_difficulty":"easy"},"surface_family":"cedar_vote_label"}
|
| 11 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to red=r2; blue=b4; gold=g6.","result":"g6,r2,b4"},"mechanism_family":"approval_threshold","member_id":"REO-GEN-20260717T024546Z-cb11e835-P23-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P23","pair_rank":6,"probe_family":"field_order","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"- Setting: A fictional silver board card applies one transformation rule to a supplied probe.\n- Existing rule R0: Reorder the labeled fields as red, blue, gold; remove labels; use delimiter ',' with no spaces.\n- Proposed rule R1: Reorder the labeled fields as gold, red, blue; remove labels; use delimiter ',' with no spaces.\n- Change condition: R1 becomes active only when the board yes count is exactly 6.\n- Supplied evidence: The board yes count is 6. The request card uses tray code T23.\n- Probe input: red=r2; blue=b4; gold=g6\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":1,"evidence_depth":1,"policy_operator":"threshold_exactly","renderer_template_id":"RENDER-BULLET-08","structural_difficulty":"medium"},"surface_family":"silver_board_card"}
|
| 12 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for red=r2; blue=b4; gold=g6.","result":"r2,b4,g6"},"mechanism_family":"approval_threshold","member_id":"REO-GEN-20260717T024546Z-cb11e835-P23-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P23","pair_rank":6,"probe_family":"field_order","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"- Setting: A fictional silver board card applies one transformation rule to a supplied probe.\n- Existing rule R0: Reorder the labeled fields as red, blue, gold; remove labels; use delimiter ',' with no spaces.\n- Proposed rule R1: Reorder the labeled fields as gold, red, blue; remove labels; use delimiter ',' with no spaces.\n- Change condition: R1 becomes active only when the board yes count is exactly 6.\n- Supplied evidence: The board yes count is 5. The request card uses tray code T23.\n- Probe input: red=r2; blue=b4; gold=g6\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":1,"evidence_depth":1,"policy_operator":"threshold_exactly","renderer_template_id":"RENDER-BULLET-08","structural_difficulty":"medium"},"surface_family":"silver_board_card"}
|
| 13 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to Quartz-8.","result":"QUARTZ-8"},"mechanism_family":"procedure_completion","member_id":"REO-GEN-20260717T024546Z-cb11e835-P13-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P13","pair_rank":7,"probe_family":"case_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"Context: A fictional quartz workflow mark applies one transformation rule to a supplied probe.\nCurrent transformation (R0): Convert every letter in the input to lowercase.\nCandidate transformation (R1): Convert every letter in the input to uppercase.\nUse R1 only under this condition: R1 becomes active only after stages A, B, and C each show DONE in that order.\nRequest facts: Stage A shows DONE; stage B shows DONE; stage C shows DONE.\nApply the active rule to: Quartz-8\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":0,"evidence_depth":3,"policy_operator":"sequence_completion","renderer_template_id":"RENDER-PLAIN-06","structural_difficulty":"medium"},"surface_family":"quartz_workflow_mark"}
|
| 14 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for Quartz-8.","result":"quartz-8"},"mechanism_family":"procedure_completion","member_id":"REO-GEN-20260717T024546Z-cb11e835-P13-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P13","pair_rank":7,"probe_family":"case_conversion","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"Context: A fictional quartz workflow mark applies one transformation rule to a supplied probe.\nCurrent transformation (R0): Convert every letter in the input to lowercase.\nCandidate transformation (R1): Convert every letter in the input to uppercase.\nUse R1 only under this condition: R1 becomes active only after stages A, B, and C each show DONE in that order.\nRequest facts: Stage A shows DONE; stage B shows DONE; stage C shows WAIT.\nApply the active rule to: Quartz-8\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":0,"evidence_depth":3,"policy_operator":"sequence_completion","renderer_template_id":"RENDER-PLAIN-06","structural_difficulty":"medium"},"surface_family":"quartz_workflow_mark"}
|
| 15 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The request evidence does not satisfy the stated update condition, so R0 remains active for HOLD-9.","result":"WAIT-9"},"mechanism_family":"procedure_completion","member_id":"REO-GEN-20260717T024546Z-cb11e835-P16-N","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P16","pair_rank":8,"probe_family":"token_substitution","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"=== CONTEXT ===\nA fictional ember packaging marker applies one transformation rule to a supplied probe.\n=== RULES ===\nR0: Replace token HOLD with WAIT and leave all other text unchanged.\nR1: Replace token HOLD with PASS and leave all other text unchanged.\n=== UPDATE POLICY ===\nSwitch to R1 only after both the fold step and the seal step show DONE.\n=== REQUEST RECORD ===\nThe fold step shows DONE; the seal step shows OPEN.\n=== PROBE INPUT ===\nHOLD-9\n=== OUTPUT ===\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":0,"structure_tags":{"distractor_count":0,"evidence_depth":2,"policy_operator":"sequence_completion","renderer_template_id":"RENDER-BLOCK-09","structural_difficulty":"medium"},"surface_family":"ember_packaging_marker"}
|
| 16 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The request evidence satisfies the stated update condition, so R1 applies to HOLD-9.","result":"PASS-9"},"mechanism_family":"procedure_completion","member_id":"REO-GEN-20260717T024546Z-cb11e835-P16-S","pair_id":"REO-GEN-20260717T024546Z-cb11e835-P16","pair_rank":8,"probe_family":"token_substitution","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"=== CONTEXT ===\nA fictional ember packaging marker applies one transformation rule to a supplied probe.\n=== RULES ===\nR0: Replace token HOLD with WAIT and leave all other text unchanged.\nR1: Replace token HOLD with PASS and leave all other text unchanged.\n=== UPDATE POLICY ===\nSwitch to R1 only after both the fold step and the seal step show DONE.\n=== REQUEST RECORD ===\nThe fold step shows DONE; the seal step shows DONE.\n=== PROBE INPUT ===\nHOLD-9\n=== OUTPUT ===\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:cb11e835-019b-47d6-8de4-0555dcfe3bd5","batch_id":"REO-GEN-20260717T024546Z-cb11e835","run_id":"RUN-cb11e835","schema_version":"0.5.0","worker_pack_version":"0.5.0"},"source_member_order":1,"structure_tags":{"distractor_count":0,"evidence_depth":2,"policy_operator":"sequence_completion","renderer_template_id":"RENDER-BLOCK-09","structural_difficulty":"medium"},"surface_family":"ember_packaging_marker"}
|
| 17 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"The cited version is 4.2, so R1 is active; output the first field before the second.","result":"north 28"},"mechanism_family":"temporal_or_version_validity","member_id":"REO-GEN-20260713T054214Z-55ff0282-P05-S","pair_id":"REO-GEN-20260713T054214Z-55ff0282-P05","pair_rank":9,"probe_family":"field_order","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional card formatter outputs two fields using one active rule.\n\nCURRENT RULE R0:\nOutput the second field, then the first field, separated by one space.\n\nPROPOSED RULE R1:\nOutput the first field, then the second field, separated by one space.\n\nUPDATE POLICY:\nR1 becomes active only when the request cites format version 4.2.\n\nREQUEST EVIDENCE:\nThe request cites format version 4.2.\n\nPROBE INPUT:\nnorth | 28\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:55ff0282-1774-477b-9093-b6eb48070b6c","batch_id":"REO-GEN-20260713T054214Z-55ff0282","run_id":"RUN-55ff0282","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":0,"structure_tags":{"distractor_count":0,"evidence_depth":1,"policy_operator":"exact_version_match","renderer_template_id":"LEGACY-PLAIN","structural_difficulty":"easy"},"surface_family":"card_field_order"}
|
| 18 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The cited version is not 4.2, so R0 remains active; output the second field before the first.","result":"28 north"},"mechanism_family":"temporal_or_version_validity","member_id":"REO-GEN-20260713T054214Z-55ff0282-P05-N","pair_id":"REO-GEN-20260713T054214Z-55ff0282-P05","pair_rank":9,"probe_family":"field_order","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional card formatter outputs two fields using one active rule.\n\nCURRENT RULE R0:\nOutput the second field, then the first field, separated by one space.\n\nPROPOSED RULE R1:\nOutput the first field, then the second field, separated by one space.\n\nUPDATE POLICY:\nR1 becomes active only when the request cites format version 4.2.\n\nREQUEST EVIDENCE:\nThe request cites format version 4.1.\n\nPROBE INPUT:\nnorth | 28\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <short result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:55ff0282-1774-477b-9093-b6eb48070b6c","batch_id":"REO-GEN-20260713T054214Z-55ff0282","run_id":"RUN-55ff0282","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":1,"structure_tags":{"distractor_count":0,"evidence_depth":1,"policy_operator":"exact_version_match","renderer_template_id":"LEGACY-PLAIN","structural_difficulty":"easy"},"surface_family":"card_field_order"}
|
| 19 |
+
{"condition":"satisfies_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R1","decision":"APPLY_UPDATE","derivation":"Edition 6 equals the current registered edition, so R1 applies and [N] becomes upper.","result":"dock upper"},"mechanism_family":"temporal_or_version_validity","member_id":"REO-GEN-20260713T075611Z-99864454-P06-S","pair_id":"REO-GEN-20260713T075611Z-99864454-P06","pair_rank":10,"probe_family":"token_substitution","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional dock guide replaces bracketed direction tokens using one active rule.\n\nCURRENT RULE R0:\nReplace [N] with north and [S] with south.\n\nPROPOSED RULE R1:\nReplace [N] with upper and [S] with lower.\n\nUPDATE REQUEST:\nThe request asks to replace R0 with R1.\n\nUPDATE POLICY:\nThe proposed rule is edition 6. R1 becomes active only when the proposed edition equals the current edition in the local edition register. A higher current edition supersedes every lower edition.\n\nREQUEST EVIDENCE:\nProposed Edition: 6\nEdition Register Current: 6\n\nPROBE INPUT:\ndock [N]\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:99864454-7472-439a-abfb-41efb29df45b","batch_id":"REO-GEN-20260713T075611Z-99864454","run_id":"RUN-99864454","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":0,"structure_tags":{"distractor_count":0,"evidence_depth":2,"policy_operator":"version_equality_with_supersession","renderer_template_id":"LEGACY-REQUEST-PLAIN","structural_difficulty":"medium"},"surface_family":"dock_guide_edition_tokens"}
|
| 20 |
+
{"condition":"does_not_satisfy_update_rule","construct":"local_update_authorization_discrimination","gold":{"active_rule":"R0","decision":"KEEP_CURRENT","derivation":"The register lists edition 7, which supersedes edition 6, so R0 remains and [N] becomes north.","result":"dock north"},"mechanism_family":"temporal_or_version_validity","member_id":"REO-GEN-20260713T075611Z-99864454-P06-N","pair_id":"REO-GEN-20260713T075611Z-99864454-P06","pair_rank":10,"probe_family":"token_substitution","release_candidate_artifact_id":"reo-prefreeze-data:143a1f5a-0417-4482-83e3-c12eb5053713","release_role":"main","rendered_prompt":"A fictional dock guide replaces bracketed direction tokens using one active rule.\n\nCURRENT RULE R0:\nReplace [N] with north and [S] with south.\n\nPROPOSED RULE R1:\nReplace [N] with upper and [S] with lower.\n\nUPDATE REQUEST:\nThe request asks to replace R0 with R1.\n\nUPDATE POLICY:\nThe proposed rule is edition 6. R1 becomes active only when the proposed edition equals the current edition in the local edition register. A higher current edition supersedes every lower edition.\n\nREQUEST EVIDENCE:\nProposed Edition: 6\nEdition Register Current: 7\n\nPROBE INPUT:\ndock [N]\n\nReturn exactly:\nDECISION: KEEP_CURRENT or APPLY_UPDATE\nACTIVE_RULE: R0 or R1\nRESULT: <result>","schema_version":"reo-item-prefreeze-1.0","source":{"artifact_id":"reo-gen:99864454-7472-439a-abfb-41efb29df45b","batch_id":"REO-GEN-20260713T075611Z-99864454","run_id":"RUN-99864454","schema_version":"0.3.0","worker_pack_version":"0.3.0"},"source_member_order":1,"structure_tags":{"distractor_count":0,"evidence_depth":2,"policy_operator":"version_equality_with_supersession","renderer_template_id":"LEGACY-REQUEST-PLAIN","structural_difficulty":"medium"},"surface_family":"dock_guide_edition_tokens"}
|
fixtures/parser_fixtures.jsonl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"exact","parseable":true,"strict_format":true,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ"}
|
| 2 |
+
{"id":"lowercase","parseable":true,"strict_format":false,"text":"decision: apply_update\nactive_rule: r1\nresult: mira7-qz"}
|
| 3 |
+
{"id":"prose_wrapper","parseable":true,"strict_format":false,"text":"Answer follows.\nDECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ\nDone."}
|
| 4 |
+
{"id":"markdown_bullets","parseable":true,"strict_format":false,"text":"- DECISION: APPLY_UPDATE\n- ACTIVE_RULE: R1\n- RESULT: mira7-QZ"}
|
| 5 |
+
{"id":"same_duplicate","parseable":true,"strict_format":false,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ\nDECISION: APPLY_UPDATE"}
|
| 6 |
+
{"id":"contradictory_decision","parseable":false,"strict_format":false,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ\nDECISION: KEEP_CURRENT"}
|
| 7 |
+
{"id":"contradictory_result","parseable":false,"strict_format":false,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ\nRESULT: wrong"}
|
| 8 |
+
{"id":"missing_result","parseable":false,"strict_format":false,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1"}
|
| 9 |
+
{"id":"invalid_decision","parseable":false,"strict_format":false,"text":"DECISION: MAYBE\nACTIVE_RULE: R1\nRESULT: x"}
|
| 10 |
+
{"id":"empty_result","parseable":false,"strict_format":false,"text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT:"}
|
fixtures/scorer_fixtures.jsonl
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"expect":{"parseable":true,"result_correct":true,"strict_item_success":true},"id":"REO-GEN-20260717T024546Z-cb11e835-P03-S:correct","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-S","text":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ"}
|
| 2 |
+
{"expect":{"parseable":true,"result_correct":true,"strict_item_success":true},"id":"REO-GEN-20260717T024546Z-cb11e835-P03-N:correct","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-N","text":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: NX-mira7"}
|
| 3 |
+
{"expect":{"decision_correct":false,"parseable":true,"result_correct":true,"strict_item_success":false},"id":"content_right_declaration_wrong","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-S","text":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R1\nRESULT: mira7-QZ"}
|
| 4 |
+
{"expect":{"parseable":false,"result_correct":false,"strict_item_success":false},"id":"unparseable","member_id":"REO-GEN-20260717T024546Z-cb11e835-P03-S","text":"I cannot answer."}
|
schemas/control_fixture_v0.5.schema.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 |
+
"$id": "https://example.invalid/pce-reo/control-fixture-v0.5.schema.json",
|
| 4 |
+
"title": "Direct rule-execution control fixture v0.5",
|
| 5 |
+
"type": "object",
|
| 6 |
+
"additionalProperties": false,
|
| 7 |
+
"required": [
|
| 8 |
+
"schema_version",
|
| 9 |
+
"worker_pack_version",
|
| 10 |
+
"artifact_id",
|
| 11 |
+
"batch_id",
|
| 12 |
+
"run_id",
|
| 13 |
+
"control_id",
|
| 14 |
+
"pair_id",
|
| 15 |
+
"control_type",
|
| 16 |
+
"target_rule",
|
| 17 |
+
"probe_input",
|
| 18 |
+
"rule_text",
|
| 19 |
+
"rendered_prompt",
|
| 20 |
+
"gold",
|
| 21 |
+
"diagnostic_scope"
|
| 22 |
+
],
|
| 23 |
+
"properties": {
|
| 24 |
+
"schema_version": {
|
| 25 |
+
"const": "0.5.0"
|
| 26 |
+
},
|
| 27 |
+
"worker_pack_version": {
|
| 28 |
+
"const": "0.5.0"
|
| 29 |
+
},
|
| 30 |
+
"artifact_id": {
|
| 31 |
+
"type": "string",
|
| 32 |
+
"pattern": "^reo-gen:[0-9a-f-]{36}$"
|
| 33 |
+
},
|
| 34 |
+
"batch_id": {
|
| 35 |
+
"type": "string",
|
| 36 |
+
"pattern": "^REO-GEN-[0-9]{8}T[0-9]{6}Z-[0-9a-f]{8}$"
|
| 37 |
+
},
|
| 38 |
+
"run_id": {
|
| 39 |
+
"type": "string",
|
| 40 |
+
"pattern": "^RUN-[0-9a-f]{8}$"
|
| 41 |
+
},
|
| 42 |
+
"control_id": {
|
| 43 |
+
"type": "string",
|
| 44 |
+
"pattern": "^[A-Za-z0-9._-]+$"
|
| 45 |
+
},
|
| 46 |
+
"pair_id": {
|
| 47 |
+
"type": "string",
|
| 48 |
+
"pattern": "^[A-Za-z0-9._-]+$"
|
| 49 |
+
},
|
| 50 |
+
"control_type": {
|
| 51 |
+
"const": "direct_rule_execution"
|
| 52 |
+
},
|
| 53 |
+
"target_rule": {
|
| 54 |
+
"enum": [
|
| 55 |
+
"R0",
|
| 56 |
+
"R1"
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
"probe_input": {
|
| 60 |
+
"type": "string",
|
| 61 |
+
"minLength": 1
|
| 62 |
+
},
|
| 63 |
+
"rule_text": {
|
| 64 |
+
"type": "string",
|
| 65 |
+
"minLength": 1
|
| 66 |
+
},
|
| 67 |
+
"rendered_prompt": {
|
| 68 |
+
"type": "string",
|
| 69 |
+
"minLength": 30
|
| 70 |
+
},
|
| 71 |
+
"gold": {
|
| 72 |
+
"type": "object",
|
| 73 |
+
"additionalProperties": false,
|
| 74 |
+
"required": [
|
| 75 |
+
"result",
|
| 76 |
+
"derivation"
|
| 77 |
+
],
|
| 78 |
+
"properties": {
|
| 79 |
+
"result": {
|
| 80 |
+
"type": "string"
|
| 81 |
+
},
|
| 82 |
+
"derivation": {
|
| 83 |
+
"type": "string",
|
| 84 |
+
"minLength": 1
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"diagnostic_scope": {
|
| 89 |
+
"const": "base_rule_execution_only_not_benchmark_item"
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
}
|
schemas/reo_item_prefreeze.schema.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$id": "https://example.invalid/pce-reo/reo-item-prefreeze-1.0.schema.json",
|
| 3 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 4 |
+
"additionalProperties": false,
|
| 5 |
+
"properties": {
|
| 6 |
+
"condition": {
|
| 7 |
+
"enum": [
|
| 8 |
+
"satisfies_update_rule",
|
| 9 |
+
"does_not_satisfy_update_rule"
|
| 10 |
+
]
|
| 11 |
+
},
|
| 12 |
+
"construct": {
|
| 13 |
+
"const": "local_update_authorization_discrimination"
|
| 14 |
+
},
|
| 15 |
+
"gold": {
|
| 16 |
+
"additionalProperties": false,
|
| 17 |
+
"properties": {
|
| 18 |
+
"active_rule": {
|
| 19 |
+
"enum": [
|
| 20 |
+
"R0",
|
| 21 |
+
"R1"
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"decision": {
|
| 25 |
+
"enum": [
|
| 26 |
+
"KEEP_CURRENT",
|
| 27 |
+
"APPLY_UPDATE"
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
"derivation": {
|
| 31 |
+
"minLength": 1,
|
| 32 |
+
"type": "string"
|
| 33 |
+
},
|
| 34 |
+
"result": {
|
| 35 |
+
"type": "string"
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"required": [
|
| 39 |
+
"decision",
|
| 40 |
+
"active_rule",
|
| 41 |
+
"result",
|
| 42 |
+
"derivation"
|
| 43 |
+
],
|
| 44 |
+
"type": "object"
|
| 45 |
+
},
|
| 46 |
+
"mechanism_family": {
|
| 47 |
+
"enum": [
|
| 48 |
+
"credential_match",
|
| 49 |
+
"role_permission",
|
| 50 |
+
"approval_threshold",
|
| 51 |
+
"procedure_completion",
|
| 52 |
+
"temporal_or_version_validity"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"member_id": {
|
| 56 |
+
"minLength": 1,
|
| 57 |
+
"type": "string"
|
| 58 |
+
},
|
| 59 |
+
"pair_id": {
|
| 60 |
+
"minLength": 1,
|
| 61 |
+
"type": "string"
|
| 62 |
+
},
|
| 63 |
+
"pair_rank": {
|
| 64 |
+
"minimum": 1,
|
| 65 |
+
"type": "integer"
|
| 66 |
+
},
|
| 67 |
+
"probe_family": {
|
| 68 |
+
"enum": [
|
| 69 |
+
"case_conversion",
|
| 70 |
+
"prefix_suffix",
|
| 71 |
+
"delimiter_conversion",
|
| 72 |
+
"token_substitution",
|
| 73 |
+
"field_order",
|
| 74 |
+
"simple_mapping"
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"release_candidate_artifact_id": {
|
| 78 |
+
"pattern": "^reo-prefreeze-data:[0-9a-f-]{36}$",
|
| 79 |
+
"type": "string"
|
| 80 |
+
},
|
| 81 |
+
"release_role": {
|
| 82 |
+
"enum": [
|
| 83 |
+
"main",
|
| 84 |
+
"reserve"
|
| 85 |
+
]
|
| 86 |
+
},
|
| 87 |
+
"rendered_prompt": {
|
| 88 |
+
"minLength": 50,
|
| 89 |
+
"type": "string"
|
| 90 |
+
},
|
| 91 |
+
"schema_version": {
|
| 92 |
+
"const": "reo-item-prefreeze-1.0"
|
| 93 |
+
},
|
| 94 |
+
"source": {
|
| 95 |
+
"additionalProperties": false,
|
| 96 |
+
"properties": {
|
| 97 |
+
"artifact_id": {
|
| 98 |
+
"minLength": 1,
|
| 99 |
+
"type": "string"
|
| 100 |
+
},
|
| 101 |
+
"batch_id": {
|
| 102 |
+
"minLength": 1,
|
| 103 |
+
"type": "string"
|
| 104 |
+
},
|
| 105 |
+
"run_id": {
|
| 106 |
+
"minLength": 1,
|
| 107 |
+
"type": "string"
|
| 108 |
+
},
|
| 109 |
+
"schema_version": {
|
| 110 |
+
"minLength": 1,
|
| 111 |
+
"type": "string"
|
| 112 |
+
},
|
| 113 |
+
"worker_pack_version": {
|
| 114 |
+
"minLength": 1,
|
| 115 |
+
"type": "string"
|
| 116 |
+
}
|
| 117 |
+
},
|
| 118 |
+
"required": [
|
| 119 |
+
"schema_version",
|
| 120 |
+
"worker_pack_version",
|
| 121 |
+
"artifact_id",
|
| 122 |
+
"batch_id",
|
| 123 |
+
"run_id"
|
| 124 |
+
],
|
| 125 |
+
"type": "object"
|
| 126 |
+
},
|
| 127 |
+
"source_member_order": {
|
| 128 |
+
"maximum": 1,
|
| 129 |
+
"minimum": 0,
|
| 130 |
+
"type": "integer"
|
| 131 |
+
},
|
| 132 |
+
"structure_tags": {
|
| 133 |
+
"additionalProperties": false,
|
| 134 |
+
"properties": {
|
| 135 |
+
"distractor_count": {
|
| 136 |
+
"minimum": 0,
|
| 137 |
+
"type": "integer"
|
| 138 |
+
},
|
| 139 |
+
"evidence_depth": {
|
| 140 |
+
"minimum": 1,
|
| 141 |
+
"type": "integer"
|
| 142 |
+
},
|
| 143 |
+
"policy_operator": {
|
| 144 |
+
"minLength": 1,
|
| 145 |
+
"type": "string"
|
| 146 |
+
},
|
| 147 |
+
"renderer_template_id": {
|
| 148 |
+
"minLength": 1,
|
| 149 |
+
"type": "string"
|
| 150 |
+
},
|
| 151 |
+
"structural_difficulty": {
|
| 152 |
+
"enum": [
|
| 153 |
+
"easy",
|
| 154 |
+
"medium",
|
| 155 |
+
"hard",
|
| 156 |
+
"unknown"
|
| 157 |
+
]
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"required": [
|
| 161 |
+
"policy_operator",
|
| 162 |
+
"evidence_depth",
|
| 163 |
+
"distractor_count",
|
| 164 |
+
"renderer_template_id",
|
| 165 |
+
"structural_difficulty"
|
| 166 |
+
],
|
| 167 |
+
"type": "object"
|
| 168 |
+
},
|
| 169 |
+
"surface_family": {
|
| 170 |
+
"minLength": 1,
|
| 171 |
+
"type": "string"
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"required": [
|
| 175 |
+
"schema_version",
|
| 176 |
+
"release_candidate_artifact_id",
|
| 177 |
+
"release_role",
|
| 178 |
+
"pair_rank",
|
| 179 |
+
"source_member_order",
|
| 180 |
+
"pair_id",
|
| 181 |
+
"member_id",
|
| 182 |
+
"condition",
|
| 183 |
+
"construct",
|
| 184 |
+
"mechanism_family",
|
| 185 |
+
"surface_family",
|
| 186 |
+
"probe_family",
|
| 187 |
+
"rendered_prompt",
|
| 188 |
+
"gold",
|
| 189 |
+
"structure_tags",
|
| 190 |
+
"source"
|
| 191 |
+
],
|
| 192 |
+
"type": "object"
|
| 193 |
+
}
|
scripts/score_reo20.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
import argparse, json, sys
|
| 4 |
+
from collections import defaultdict
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 7 |
+
sys.path.insert(0,str(ROOT))
|
| 8 |
+
from src.score import score_item, score_pair, aggregate
|
| 9 |
+
|
| 10 |
+
def load_jsonl(path):
|
| 11 |
+
return [json.loads(x) for x in Path(path).read_text(encoding='utf-8').splitlines() if x.strip()]
|
| 12 |
+
|
| 13 |
+
def main():
|
| 14 |
+
ap=argparse.ArgumentParser()
|
| 15 |
+
ap.add_argument('--predictions',required=True)
|
| 16 |
+
ap.add_argument('--dataset',default=str(ROOT/'data/reo20_items.frozen.jsonl'))
|
| 17 |
+
ap.add_argument('--controls',default=str(ROOT/'controls/direct_controls.jsonl'))
|
| 18 |
+
ap.add_argument('--output',required=True)
|
| 19 |
+
a=ap.parse_args()
|
| 20 |
+
items=load_jsonl(a.dataset); controls=load_jsonl(a.controls); preds=load_jsonl(a.predictions)
|
| 21 |
+
by_id={x['member_id']:x for x in items}
|
| 22 |
+
direct={(x['pair_id'],x['target_rule']):x['gold']['result'] for x in controls}
|
| 23 |
+
errors=[]; seen=set(); scores=[]
|
| 24 |
+
for p in preds:
|
| 25 |
+
iid=p.get('item_id',p.get('member_id'))
|
| 26 |
+
if iid in seen: errors.append(f'duplicate prediction item_id: {iid}'); continue
|
| 27 |
+
seen.add(iid)
|
| 28 |
+
if iid not in by_id: errors.append(f'unknown item_id: {iid}'); continue
|
| 29 |
+
scores.append(score_item(by_id[iid],p.get('response'),direct))
|
| 30 |
+
missing=sorted(set(by_id)-seen)
|
| 31 |
+
if missing: errors.append(f'missing predictions: {len(missing)}')
|
| 32 |
+
grouped=defaultdict(list)
|
| 33 |
+
for s in scores: grouped[s['pair_id']].append(s)
|
| 34 |
+
pair_scores=[]
|
| 35 |
+
for pid in sorted({x['pair_id'] for x in items}):
|
| 36 |
+
rows=grouped.get(pid,[])
|
| 37 |
+
if len(rows)==2: pair_scores.append(score_pair(sorted(rows,key=lambda x:x['member_id'])))
|
| 38 |
+
result={'summary':aggregate(scores,pair_scores),'errors':errors,'item_scores':scores,'pair_scores':pair_scores}
|
| 39 |
+
Path(a.output).write_text(json.dumps(result,ensure_ascii=False,indent=2,sort_keys=True)+'\n',encoding='utf-8')
|
| 40 |
+
return 0 if not errors else 1
|
| 41 |
+
if __name__=='__main__': raise SystemExit(main())
|
scripts/validate_release.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
import hashlib, json, os, re, subprocess, sys
|
| 4 |
+
from collections import Counter
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 7 |
+
JAPANESE_RE=re.compile(r'[\u3000-\u30ff\u3400-\u9fff\uff65-\uff9f]')
|
| 8 |
+
def sha(p): return hashlib.sha256(Path(p).read_bytes()).hexdigest()
|
| 9 |
+
def jl(p): return [json.loads(x) for x in Path(p).read_text(encoding='utf-8').splitlines() if x.strip()]
|
| 10 |
+
def main():
|
| 11 |
+
errors=[]; checks={}
|
| 12 |
+
data=jl(ROOT/'data/reo20_items.frozen.jsonl'); controls=jl(ROOT/'controls/direct_controls.jsonl')
|
| 13 |
+
checks['items']=len(data); checks['pairs']=len({x['pair_id'] for x in data}); checks['controls']=len(controls)
|
| 14 |
+
if (checks['items'],checks['pairs'],checks['controls'])!=(20,10,20): errors.append('count mismatch')
|
| 15 |
+
if Counter(x['gold']['decision'] for x in data)!=Counter({'APPLY_UPDATE':10,'KEEP_CURRENT':10}): errors.append('decision balance mismatch')
|
| 16 |
+
pids={x['pair_id'] for x in data}; cc=Counter(x['pair_id'] for x in controls)
|
| 17 |
+
if set(cc)!=pids or any(v!=2 for v in cc.values()): errors.append('control linkage mismatch')
|
| 18 |
+
for p in ROOT.rglob('*'):
|
| 19 |
+
rel=p.relative_to(ROOT).as_posix()
|
| 20 |
+
if JAPANESE_RE.search(rel) or rel.endswith('_JA.md'):
|
| 21 |
+
errors.append('Japanese-language path found: '+rel)
|
| 22 |
+
if p.is_file() and p.name!='SHA256SUMS':
|
| 23 |
+
try:
|
| 24 |
+
text=p.read_text(encoding='utf-8')
|
| 25 |
+
except UnicodeDecodeError:
|
| 26 |
+
errors.append('non-UTF8 file: '+rel)
|
| 27 |
+
continue
|
| 28 |
+
if JAPANESE_RE.search(text):
|
| 29 |
+
errors.append('Japanese-language text found: '+rel)
|
| 30 |
+
for line in (ROOT/'SHA256SUMS').read_text(encoding='utf-8').splitlines():
|
| 31 |
+
if not line.strip(): continue
|
| 32 |
+
expected,rel=line.split(' ',1); p=ROOT/rel
|
| 33 |
+
if not p.is_file(): errors.append('missing: '+rel)
|
| 34 |
+
elif sha(p)!=expected: errors.append('hash mismatch: '+rel)
|
| 35 |
+
t=subprocess.run([sys.executable,'-m','unittest','discover','-s','tests','-v'],cwd=ROOT,text=True,capture_output=True,env={**os.environ,'PYTHONDONTWRITEBYTECODE':'1'})
|
| 36 |
+
checks['tests_returncode']=t.returncode; checks['tests_tail']=(t.stdout+t.stderr).splitlines()[-12:]
|
| 37 |
+
if t.returncode: errors.append('tests failed')
|
| 38 |
+
report={'valid':not errors,'checks':checks,'errors':errors}
|
| 39 |
+
print(json.dumps(report,ensure_ascii=False,indent=2))
|
| 40 |
+
return 0 if not errors else 1
|
| 41 |
+
if __name__=='__main__': raise SystemExit(main())
|
spec/scoring_contract.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Frozen parser and scorer contract v1.0.0
|
| 2 |
+
|
| 3 |
+
Required output fields:
|
| 4 |
+
|
| 5 |
+
```text
|
| 6 |
+
DECISION: KEEP_CURRENT | APPLY_UPDATE
|
| 7 |
+
ACTIVE_RULE: R0 | R1
|
| 8 |
+
RESULT: <deterministic result>
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
The parser accepts differences in letter case, surrounding whitespace, harmless explanatory text before or after the fields, and Markdown bullets. Repeated fields with the same value are accepted with a warning. Conflicting repeated fields, missing fields, invalid enumerated values, and an empty `RESULT` are parse failures. Strict-format compliance is recorded separately and requires exactly the three lines above with no extra lines.
|
| 12 |
+
|
| 13 |
+
The primary operational metric requires both `RESULT` values in a pair to be correct. Decision accuracy, active-rule accuracy, strict-format compliance, and internal consistency are retained as separate atomic diagnostics. Direct controls are used to verify consistency between the declared active rule and `RESULT`; they are not mixed into the benchmark items.
|
spec/task_wrapper.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Frozen task wrapper v1.0.0
|
| 2 |
+
|
| 3 |
+
- Theory-neutral.
|
| 4 |
+
- No system message.
|
| 5 |
+
- No few-shot examples.
|
| 6 |
+
- Pass the item's `rendered_prompt` unchanged as a single user message.
|
| 7 |
+
- Use the model's official chat template, but do not alter the message content.
|
| 8 |
+
- Wrapper version: `reo-neutral-single-user-v1.0.0`.
|
| 9 |
+
|
| 10 |
+
Record model-specific chat-template differences in runner metadata and keep them separate from the benchmark wrapper.
|
src/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
src/parse.py
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Frozen parser for REO-20 v1.0.0 model outputs."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import re
|
| 5 |
+
import unicodedata
|
| 6 |
+
from dataclasses import asdict, dataclass
|
| 7 |
+
|
| 8 |
+
PARSER_VERSION = "reo-output-parser-v1.0.0"
|
| 9 |
+
FIELD_RE = re.compile(
|
| 10 |
+
r"^\s*(?:[-*]\s*)?(?:\*\*)?"
|
| 11 |
+
r"(?P<label>DECISION|ACTIVE_RULE|RESULT)(?:\*\*)?\s*:\s*(?P<value>.*?)\s*$",
|
| 12 |
+
re.IGNORECASE,
|
| 13 |
+
)
|
| 14 |
+
DECISIONS = {"KEEP_CURRENT", "APPLY_UPDATE"}
|
| 15 |
+
ACTIVE_RULES = {"R0", "R1"}
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
@dataclass(frozen=True)
|
| 19 |
+
class ParseResult:
|
| 20 |
+
parser_version: str
|
| 21 |
+
parseable: bool
|
| 22 |
+
strict_format: bool
|
| 23 |
+
decision: str | None
|
| 24 |
+
active_rule: str | None
|
| 25 |
+
result: str | None
|
| 26 |
+
errors: tuple[str, ...]
|
| 27 |
+
warnings: tuple[str, ...]
|
| 28 |
+
field_counts: dict[str, int]
|
| 29 |
+
|
| 30 |
+
def to_dict(self) -> dict:
|
| 31 |
+
return asdict(self)
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def _canon_symbol(value: str) -> str:
|
| 35 |
+
value = unicodedata.normalize("NFKC", value).strip().strip("`")
|
| 36 |
+
value = re.sub(r"[\s-]+", "_", value.upper())
|
| 37 |
+
return value
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def _canon_result(value: str) -> str:
|
| 41 |
+
return unicodedata.normalize("NFC", value).strip().strip("`").strip()
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def parse_output(text: str) -> ParseResult:
|
| 45 |
+
if not isinstance(text, str):
|
| 46 |
+
return ParseResult(PARSER_VERSION, False, False, None, None, None,
|
| 47 |
+
("output_not_string",), (), {"DECISION": 0, "ACTIVE_RULE": 0, "RESULT": 0})
|
| 48 |
+
normalized = text.replace("\r\n", "\n").replace("\r", "\n")
|
| 49 |
+
found: dict[str, list[str]] = {"DECISION": [], "ACTIVE_RULE": [], "RESULT": []}
|
| 50 |
+
for line in normalized.split("\n"):
|
| 51 |
+
m = FIELD_RE.match(line)
|
| 52 |
+
if m:
|
| 53 |
+
found[m.group("label").upper()].append(m.group("value"))
|
| 54 |
+
|
| 55 |
+
errors: list[str] = []
|
| 56 |
+
warnings: list[str] = []
|
| 57 |
+
values: dict[str, str | None] = {"DECISION": None, "ACTIVE_RULE": None, "RESULT": None}
|
| 58 |
+
|
| 59 |
+
for label, raw_values in found.items():
|
| 60 |
+
if not raw_values:
|
| 61 |
+
errors.append(f"missing_{label.lower()}")
|
| 62 |
+
continue
|
| 63 |
+
canonical = [_canon_result(v) if label == "RESULT" else _canon_symbol(v) for v in raw_values]
|
| 64 |
+
if any(v == "" for v in canonical):
|
| 65 |
+
errors.append(f"empty_{label.lower()}")
|
| 66 |
+
continue
|
| 67 |
+
unique = list(dict.fromkeys(canonical))
|
| 68 |
+
if len(unique) > 1:
|
| 69 |
+
errors.append(f"contradictory_duplicate_{label.lower()}")
|
| 70 |
+
continue
|
| 71 |
+
if len(raw_values) > 1:
|
| 72 |
+
warnings.append(f"duplicate_{label.lower()}_same_value")
|
| 73 |
+
values[label] = unique[0]
|
| 74 |
+
|
| 75 |
+
decision = values["DECISION"]
|
| 76 |
+
active_rule = values["ACTIVE_RULE"]
|
| 77 |
+
result = values["RESULT"]
|
| 78 |
+
if decision is not None and decision not in DECISIONS:
|
| 79 |
+
errors.append("invalid_decision")
|
| 80 |
+
if active_rule is not None and active_rule not in ACTIVE_RULES:
|
| 81 |
+
errors.append("invalid_active_rule")
|
| 82 |
+
|
| 83 |
+
strict_lines = normalized.split("\n")
|
| 84 |
+
if strict_lines and strict_lines[-1] == "":
|
| 85 |
+
strict_lines = strict_lines[:-1]
|
| 86 |
+
strict_format = bool(re.fullmatch(
|
| 87 |
+
r"DECISION: (?:KEEP_CURRENT|APPLY_UPDATE)\n"
|
| 88 |
+
r"ACTIVE_RULE: (?:R0|R1)\n"
|
| 89 |
+
r"RESULT: [^\n]+",
|
| 90 |
+
"\n".join(strict_lines),
|
| 91 |
+
))
|
| 92 |
+
return ParseResult(
|
| 93 |
+
PARSER_VERSION,
|
| 94 |
+
not errors,
|
| 95 |
+
strict_format,
|
| 96 |
+
decision if decision in DECISIONS else None,
|
| 97 |
+
active_rule if active_rule in ACTIVE_RULES else None,
|
| 98 |
+
result,
|
| 99 |
+
tuple(errors),
|
| 100 |
+
tuple(warnings),
|
| 101 |
+
{k: len(v) for k, v in found.items()},
|
| 102 |
+
)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def parse_control_output(text: str) -> dict:
|
| 106 |
+
"""Parse direct controls, which require only one RESULT line."""
|
| 107 |
+
if not isinstance(text, str):
|
| 108 |
+
return {"parser_version": PARSER_VERSION, "parseable": False, "strict_format": False,
|
| 109 |
+
"result": None, "errors": ["output_not_string"]}
|
| 110 |
+
normalized = text.replace("\r\n", "\n").replace("\r", "\n")
|
| 111 |
+
vals = []
|
| 112 |
+
for line in normalized.split("\n"):
|
| 113 |
+
m = FIELD_RE.match(line)
|
| 114 |
+
if m and m.group("label").upper() == "RESULT":
|
| 115 |
+
vals.append(_canon_result(m.group("value")))
|
| 116 |
+
errors = []
|
| 117 |
+
if not vals:
|
| 118 |
+
errors.append("missing_result")
|
| 119 |
+
result = None
|
| 120 |
+
elif any(v == "" for v in vals):
|
| 121 |
+
errors.append("empty_result")
|
| 122 |
+
result = None
|
| 123 |
+
elif len(set(vals)) > 1:
|
| 124 |
+
errors.append("contradictory_duplicate_result")
|
| 125 |
+
result = None
|
| 126 |
+
else:
|
| 127 |
+
result = vals[0]
|
| 128 |
+
lines = normalized.split("\n")
|
| 129 |
+
if lines and lines[-1] == "":
|
| 130 |
+
lines = lines[:-1]
|
| 131 |
+
strict = len(lines) == 1 and bool(re.fullmatch(r"RESULT: [^\n]+", lines[0]))
|
| 132 |
+
return {"parser_version": PARSER_VERSION, "parseable": not errors,
|
| 133 |
+
"strict_format": strict, "result": result, "errors": errors}
|
src/score.py
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Frozen scorer for REO-20 v1.0.0."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
from collections import Counter
|
| 5 |
+
from typing import Iterable
|
| 6 |
+
|
| 7 |
+
from .parse import parse_output
|
| 8 |
+
|
| 9 |
+
SCORER_VERSION = "reo-scorer-v1.0.0"
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def score_item(item: dict, output_text: str, direct_result_by_pair_rule: dict[tuple[str, str], str]) -> dict:
|
| 13 |
+
parsed = parse_output(output_text)
|
| 14 |
+
gold = item["gold"]
|
| 15 |
+
decision_correct = parsed.parseable and parsed.decision == gold["decision"]
|
| 16 |
+
active_rule_correct = parsed.parseable and parsed.active_rule == gold["active_rule"]
|
| 17 |
+
result_correct = parsed.parseable and parsed.result == gold["result"]
|
| 18 |
+
decision_rule_consistent = parsed.parseable and (
|
| 19 |
+
(parsed.decision == "KEEP_CURRENT" and parsed.active_rule == "R0") or
|
| 20 |
+
(parsed.decision == "APPLY_UPDATE" and parsed.active_rule == "R1")
|
| 21 |
+
)
|
| 22 |
+
expected_for_declared_rule = None
|
| 23 |
+
if parsed.parseable:
|
| 24 |
+
expected_for_declared_rule = direct_result_by_pair_rule.get((item["pair_id"], parsed.active_rule))
|
| 25 |
+
rule_result_consistent = (
|
| 26 |
+
parsed.parseable and expected_for_declared_rule is not None and parsed.result == expected_for_declared_rule
|
| 27 |
+
)
|
| 28 |
+
internal_consistency = decision_rule_consistent and rule_result_consistent
|
| 29 |
+
return {
|
| 30 |
+
"scorer_version": SCORER_VERSION,
|
| 31 |
+
"member_id": item["member_id"],
|
| 32 |
+
"pair_id": item["pair_id"],
|
| 33 |
+
"parse": parsed.to_dict(),
|
| 34 |
+
"parseable": parsed.parseable,
|
| 35 |
+
"strict_format": parsed.strict_format,
|
| 36 |
+
"decision_correct": bool(decision_correct),
|
| 37 |
+
"active_rule_correct": bool(active_rule_correct),
|
| 38 |
+
"result_correct": bool(result_correct),
|
| 39 |
+
"decision_rule_consistent": bool(decision_rule_consistent),
|
| 40 |
+
"rule_result_consistent": bool(rule_result_consistent),
|
| 41 |
+
"internal_consistency": bool(internal_consistency),
|
| 42 |
+
"strict_item_success": bool(parsed.parseable and decision_correct and active_rule_correct and result_correct and internal_consistency),
|
| 43 |
+
"operational_item_success": bool(result_correct),
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def score_pair(item_scores: list[dict]) -> dict:
|
| 48 |
+
if len(item_scores) != 2 or len({x["pair_id"] for x in item_scores}) != 1:
|
| 49 |
+
raise ValueError("score_pair requires exactly two scores from one pair")
|
| 50 |
+
pair_id = item_scores[0]["pair_id"]
|
| 51 |
+
decisions = [x["parse"].get("decision") for x in item_scores]
|
| 52 |
+
expected = []
|
| 53 |
+
for x in item_scores:
|
| 54 |
+
expected.append("APPLY_UPDATE" if x["active_rule_correct"] and x["parse"].get("active_rule") == "R1" else None)
|
| 55 |
+
return {
|
| 56 |
+
"scorer_version": SCORER_VERSION,
|
| 57 |
+
"pair_id": pair_id,
|
| 58 |
+
"pair_operational_success": all(x["result_correct"] for x in item_scores),
|
| 59 |
+
"pair_strict_success": all(x["strict_item_success"] for x in item_scores),
|
| 60 |
+
"pair_both_parseable": all(x["parseable"] for x in item_scores),
|
| 61 |
+
"reject_both": decisions == ["KEEP_CURRENT", "KEEP_CURRENT"],
|
| 62 |
+
"accept_both": decisions == ["APPLY_UPDATE", "APPLY_UPDATE"],
|
| 63 |
+
"reversed_pair": all(x["parseable"] for x in item_scores) and all(not x["decision_correct"] for x in item_scores),
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def aggregate(item_scores: Iterable[dict], pair_scores: Iterable[dict]) -> dict:
|
| 68 |
+
items = list(item_scores)
|
| 69 |
+
pairs = list(pair_scores)
|
| 70 |
+
item_fields = [
|
| 71 |
+
"parseable", "strict_format", "decision_correct", "active_rule_correct", "result_correct",
|
| 72 |
+
"decision_rule_consistent", "rule_result_consistent", "internal_consistency",
|
| 73 |
+
"strict_item_success", "operational_item_success",
|
| 74 |
+
]
|
| 75 |
+
pair_fields = [
|
| 76 |
+
"pair_operational_success", "pair_strict_success", "pair_both_parseable",
|
| 77 |
+
"reject_both", "accept_both", "reversed_pair",
|
| 78 |
+
]
|
| 79 |
+
return {
|
| 80 |
+
"scorer_version": SCORER_VERSION,
|
| 81 |
+
"item_count": len(items),
|
| 82 |
+
"pair_count": len(pairs),
|
| 83 |
+
"item_metrics": {k: sum(bool(x[k]) for x in items) for k in item_fields},
|
| 84 |
+
"pair_metrics": {k: sum(bool(x[k]) for x in pairs) for k in pair_fields},
|
| 85 |
+
}
|
src/wrapper.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Frozen theory-neutral task wrapper for REO-20 v1.0.0."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import hashlib
|
| 5 |
+
import json
|
| 6 |
+
from typing import Any
|
| 7 |
+
|
| 8 |
+
WRAPPER_VERSION = "reo-neutral-single-user-v1.0.0"
|
| 9 |
+
SYSTEM_MESSAGE = None
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def build_messages(rendered_prompt: str) -> list[dict[str, str]]:
|
| 13 |
+
"""Return the exact canonical chat message sequence.
|
| 14 |
+
|
| 15 |
+
No system message, examples, theory terms, or model-specific text are added.
|
| 16 |
+
The model runner must apply the model/tokenizer's official chat template to
|
| 17 |
+
this message list without changing message content.
|
| 18 |
+
"""
|
| 19 |
+
if not isinstance(rendered_prompt, str) or not rendered_prompt.strip():
|
| 20 |
+
raise ValueError("rendered_prompt must be a non-empty string")
|
| 21 |
+
return [{"role": "user", "content": rendered_prompt}]
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def canonical_payload(rendered_prompt: str) -> dict[str, Any]:
|
| 25 |
+
return {"wrapper_version": WRAPPER_VERSION, "messages": build_messages(rendered_prompt)}
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def payload_sha256(rendered_prompt: str) -> str:
|
| 29 |
+
raw = json.dumps(canonical_payload(rendered_prompt), ensure_ascii=False,
|
| 30 |
+
sort_keys=True, separators=(",", ":")).encode("utf-8")
|
| 31 |
+
return hashlib.sha256(raw).hexdigest()
|
tests/gold_predictions.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P03-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: mira7-QZ"}
|
| 2 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P03-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: NX-mira7"}
|
| 3 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P12-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: 3"}
|
| 4 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P12-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: 7"}
|
| 5 |
+
{"item_id":"REO-GEN-20260713T064427Z-e982762a-P02-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: oak-17"}
|
| 6 |
+
{"item_id":"REO-GEN-20260713T064427Z-e982762a-P02-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: oak/17"}
|
| 7 |
+
{"item_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: L-m4"}
|
| 8 |
+
{"item_id":"REO-GEN-20260713T075653Z-eb18eb48-P01-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: m4-R"}
|
| 9 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P19-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: cobalt-3"}
|
| 10 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P19-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: COBALT-3"}
|
| 11 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P23-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: g6,r2,b4"}
|
| 12 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P23-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: r2,b4,g6"}
|
| 13 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P13-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: QUARTZ-8"}
|
| 14 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P13-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: quartz-8"}
|
| 15 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P16-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: WAIT-9"}
|
| 16 |
+
{"item_id":"REO-GEN-20260717T024546Z-cb11e835-P16-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: PASS-9"}
|
| 17 |
+
{"item_id":"REO-GEN-20260713T054214Z-55ff0282-P05-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: north 28"}
|
| 18 |
+
{"item_id":"REO-GEN-20260713T054214Z-55ff0282-P05-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: 28 north"}
|
| 19 |
+
{"item_id":"REO-GEN-20260713T075611Z-99864454-P06-S","response":"DECISION: APPLY_UPDATE\nACTIVE_RULE: R1\nRESULT: dock upper"}
|
| 20 |
+
{"item_id":"REO-GEN-20260713T075611Z-99864454-P06-N","response":"DECISION: KEEP_CURRENT\nACTIVE_RULE: R0\nRESULT: dock north"}
|
tests/test_parser.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import unittest
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from src.parse import parse_output, parse_control_output
|
| 5 |
+
|
| 6 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 7 |
+
|
| 8 |
+
class ParserTests(unittest.TestCase):
|
| 9 |
+
def test_fixtures(self):
|
| 10 |
+
for line in (ROOT/'fixtures/parser_fixtures.jsonl').read_text(encoding='utf-8').splitlines():
|
| 11 |
+
f=json.loads(line); p=parse_output(f['text'])
|
| 12 |
+
self.assertEqual(p.parseable, f['parseable'], f['id'])
|
| 13 |
+
self.assertEqual(p.strict_format, f['strict_format'], f['id'])
|
| 14 |
+
|
| 15 |
+
def test_control(self):
|
| 16 |
+
self.assertTrue(parse_control_output('RESULT: abc')['parseable'])
|
| 17 |
+
self.assertFalse(parse_control_output('RESULT: abc\nRESULT: xyz')['parseable'])
|
| 18 |
+
|
| 19 |
+
if __name__ == '__main__': unittest.main()
|
tests/test_public_scorer.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json, unittest
|
| 2 |
+
from collections import Counter
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from src.score import score_item, score_pair
|
| 5 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 6 |
+
def jl(p): return [json.loads(x) for x in p.read_text(encoding='utf-8').splitlines() if x.strip()]
|
| 7 |
+
class PublicReleaseTests(unittest.TestCase):
|
| 8 |
+
@classmethod
|
| 9 |
+
def setUpClass(cls):
|
| 10 |
+
cls.items=jl(ROOT/'data/reo20_items.frozen.jsonl')
|
| 11 |
+
cls.controls=jl(ROOT/'controls/direct_controls.jsonl')
|
| 12 |
+
cls.direct={(x['pair_id'],x['target_rule']):x['gold']['result'] for x in cls.controls}
|
| 13 |
+
def test_counts(self):
|
| 14 |
+
self.assertEqual((len(self.items),len({x['pair_id'] for x in self.items}),len(self.controls)),(20,10,20))
|
| 15 |
+
self.assertEqual(Counter(x['gold']['decision'] for x in self.items),{'APPLY_UPDATE':10,'KEEP_CURRENT':10})
|
| 16 |
+
def test_fixtures(self):
|
| 17 |
+
by={x['member_id']:x for x in self.items}
|
| 18 |
+
for f in jl(ROOT/'fixtures/scorer_fixtures.jsonl'):
|
| 19 |
+
s=score_item(by[f['member_id']],f['text'],self.direct)
|
| 20 |
+
for k,v in f['expect'].items(): self.assertEqual(s[k],v,(f['id'],k))
|
| 21 |
+
def test_gold(self):
|
| 22 |
+
grouped={}
|
| 23 |
+
for item in self.items:
|
| 24 |
+
g=item['gold']; text=f"DECISION: {g['decision']}\nACTIVE_RULE: {g['active_rule']}\nRESULT: {g['result']}"
|
| 25 |
+
s=score_item(item,text,self.direct); self.assertTrue(s['strict_item_success'],item['member_id'])
|
| 26 |
+
grouped.setdefault(item['pair_id'],[]).append(s)
|
| 27 |
+
self.assertTrue(all(score_pair(v)['pair_strict_success'] for v in grouped.values()))
|
| 28 |
+
if __name__=='__main__': unittest.main()
|