rewardharness 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. rewardharness-0.2.0/CHANGELOG.md +200 -0
  2. rewardharness-0.2.0/CITATION.cff +72 -0
  3. rewardharness-0.2.0/LICENSE +205 -0
  4. rewardharness-0.2.0/MANIFEST.in +7 -0
  5. rewardharness-0.2.0/PKG-INFO +354 -0
  6. rewardharness-0.2.0/README.md +315 -0
  7. rewardharness-0.2.0/configs/default.yaml +32 -0
  8. rewardharness-0.2.0/configs/endpoints.txt +11 -0
  9. rewardharness-0.2.0/examples/seed_library/registry.json +24 -0
  10. rewardharness-0.2.0/examples/seed_library/skills/instruction-following-completeness/SKILL.md +30 -0
  11. rewardharness-0.2.0/examples/seed_library/skills/realism-and-artifact-penalties/SKILL.md +19 -0
  12. rewardharness-0.2.0/examples/seed_library/tools/text-and-ocr-analyzer/SKILL.md +44 -0
  13. rewardharness-0.2.0/libraries/archive/gemini-v1/registry.json +32 -0
  14. rewardharness-0.2.0/libraries/archive/gemini-v1/skills/evaluating-background-changes/SKILL.md +12 -0
  15. rewardharness-0.2.0/libraries/archive/gemini-v1/skills/evaluating-multi-step-edits/SKILL.md +13 -0
  16. rewardharness-0.2.0/libraries/archive/gemini-v1/skills/evaluating-object-replacements/SKILL.md +12 -0
  17. rewardharness-0.2.0/libraries/archive/gemini-v1/skills/evaluating-style-transfers/SKILL.md +13 -0
  18. rewardharness-0.2.0/libraries/archive/gemini-v1/skills/evaluating-text-rendering/SKILL.md +14 -0
  19. rewardharness-0.2.0/libraries/archive/gemini-v1/tools/compare_images/SKILL.md +17 -0
  20. rewardharness-0.2.0/libraries/archive/gemini-v2/registry.json +142 -0
  21. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/artifact-and-structure-preservation/SKILL.md +14 -0
  22. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/artistic-and-cultural-references/SKILL.md +15 -0
  23. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/embrace-intended-drastic-changes/SKILL.md +15 -0
  24. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/enforce-logical-consistency/SKILL.md +15 -0
  25. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/entity-definition-activation/SKILL.md +15 -0
  26. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/environmental-blending-and-lighting-adaptation/SKILL.md +16 -0
  27. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/evaluate-insertions-and-anatomical-integrity/SKILL.md +16 -0
  28. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/evaluate-physical-plausibility/SKILL.md +15 -0
  29. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/evaluate-text-additions/SKILL.md +13 -0
  30. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/holistic-evaluation-vs-tunnel-vision/SKILL.md +19 -0
  31. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/instruction-over-naturalness/SKILL.md +15 -0
  32. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/mitigate-positional-bias/SKILL.md +15 -0
  33. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/object-replacement-proportions-and-exaggeration/SKILL.md +15 -0
  34. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/overcoming-default-to-a-bias/SKILL.md +16 -0
  35. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/penalize-gibberish-text/SKILL.md +20 -0
  36. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/penalize-unintended-style-changes/SKILL.md +14 -0
  37. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/preserve-subject-interaction-and-pose/SKILL.md +16 -0
  38. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/prevent-image-feature-swapping/SKILL.md +17 -0
  39. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/reasoning-preference-alignment/SKILL.md +13 -0
  40. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/strict-semantic-and-conceptual-alignment/SKILL.md +16 -0
  41. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/subject-vs-setting-modifications/SKILL.md +16 -0
  42. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/verify-extreme-claims-and-hallucinations/SKILL.md +13 -0
  43. rewardharness-0.2.0/libraries/archive/gemini-v2/skills/verify-instruction-target-and-spatial-relations/SKILL.md +13 -0
  44. rewardharness-0.2.0/libraries/archive/gemini-v2/tools/object-locator-and-counter/SKILL.md +28 -0
  45. rewardharness-0.2.0/libraries/archive/gemini-v2/tools/side-by-side-image-comparator/SKILL.md +33 -0
  46. rewardharness-0.2.0/libraries/archive/gemini-v2/tools/text-and-spelling-checker/SKILL.md +24 -0
  47. rewardharness-0.2.0/libraries/archive/gemini-v2/tools/visual-detail-and-setting-analyzer/SKILL.md +30 -0
  48. rewardharness-0.2.0/libraries/archive/gemini-v2/tools/visual-question-answering/SKILL.md +34 -0
  49. rewardharness-0.2.0/libraries/archive/gemini-v3/registry.json +27 -0
  50. rewardharness-0.2.0/libraries/archive/gemini-v3/skills/evaluating-multiple-constraints/SKILL.md +14 -0
  51. rewardharness-0.2.0/libraries/archive/gemini-v3/skills/evaluating-style-transfers/SKILL.md +13 -0
  52. rewardharness-0.2.0/libraries/archive/gemini-v3/skills/evaluating-text-additions/SKILL.md +13 -0
  53. rewardharness-0.2.0/libraries/archive/gemini-v3/tools/image-difference-checker/SKILL.md +20 -0
  54. rewardharness-0.2.0/libraries/archive/gemini-v3/tools/visual-question-answering/SKILL.md +24 -0
  55. rewardharness-0.2.0/libraries/archive/gemini-v4/registry.json +62 -0
  56. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/artist-and-style-knowledge/SKILL.md +15 -0
  57. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/artistic-style-transfer-evaluation/SKILL.md +16 -0
  58. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/background-and-scene-transformation/SKILL.md +18 -0
  59. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/counting-and-spatial-reasoning/SKILL.md +13 -0
  60. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/direct-vision-reliance/SKILL.md +34 -0
  61. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/exclusivity-and-preservation/SKILL.md +18 -0
  62. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/multi-attribute-verification/SKILL.md +18 -0
  63. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/multi-part-instruction-evaluation/SKILL.md +14 -0
  64. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/object-extraction-evaluation/SKILL.md +13 -0
  65. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/scene-and-atmosphere-transformation/SKILL.md +14 -0
  66. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/spatial-and-relational-edits/SKILL.md +13 -0
  67. rewardharness-0.2.0/libraries/archive/gemini-v4/skills/text-rendering-evaluation/SKILL.md +13 -0
  68. rewardharness-0.2.0/libraries/archive/gemini-v5/registry.json +27 -0
  69. rewardharness-0.2.0/libraries/archive/gemini-v5/skills/penalize-over-editing/SKILL.md +19 -0
  70. rewardharness-0.2.0/libraries/archive/gemini-v5/skills/structure-and-subject-preservation/SKILL.md +16 -0
  71. rewardharness-0.2.0/libraries/archive/gemini-v5/skills/verify-image-content-and-ocr/SKILL.md +17 -0
  72. rewardharness-0.2.0/libraries/archive/gemini-v5/skills/world-knowledge-and-entities/SKILL.md +17 -0
  73. rewardharness-0.2.0/libraries/archive/gemini-v5/tools/text-and-ocr-verifier/SKILL.md +31 -0
  74. rewardharness-0.2.0/libraries/archive/gemini-v5/tools/visual-content-verifier/SKILL.md +26 -0
  75. rewardharness-0.2.0/libraries/archive/gemini-v5-broken-router/registry.json +22 -0
  76. rewardharness-0.2.0/libraries/archive/gemini-v5-broken-router/skills/mandatory-ocr-for-text/SKILL.md +17 -0
  77. rewardharness-0.2.0/libraries/archive/gemini-v5-broken-router/skills/reasoning-preference-alignment/SKILL.md +19 -0
  78. rewardharness-0.2.0/libraries/archive/gemini-v5-broken-router/skills/world-knowledge-and-style-awareness/SKILL.md +19 -0
  79. rewardharness-0.2.0/libraries/archive/gemini-v5-broken-router/tools/text-and-ocr-analyzer/SKILL.md +33 -0
  80. rewardharness-0.2.0/libraries/archive/gemini-v5-old/registry.json +32 -0
  81. rewardharness-0.2.0/libraries/archive/gemini-v5-old/skills/object-attribute-verification/SKILL.md +17 -0
  82. rewardharness-0.2.0/libraries/archive/gemini-v5-old/skills/spatial-and-relational-reasoning/SKILL.md +18 -0
  83. rewardharness-0.2.0/libraries/archive/gemini-v5-old/skills/text-rendering-evaluation/SKILL.md +18 -0
  84. rewardharness-0.2.0/libraries/archive/gemini-v5-old/skills/thematic-and-style-transformation/SKILL.md +15 -0
  85. rewardharness-0.2.0/libraries/archive/gemini-v5-old/skills/vqa-query-best-practices/SKILL.md +25 -0
  86. rewardharness-0.2.0/libraries/archive/gemini-v5-old/tools/visual-question-answering/SKILL.md +29 -0
  87. rewardharness-0.2.0/pyproject.toml +101 -0
  88. rewardharness-0.2.0/requirements-dev.txt +18 -0
  89. rewardharness-0.2.0/requirements-vllm.txt +5 -0
  90. rewardharness-0.2.0/requirements.txt +26 -0
  91. rewardharness-0.2.0/rewardharness/__init__.py +55 -0
  92. rewardharness-0.2.0/rewardharness/_version.py +3 -0
  93. rewardharness-0.2.0/rewardharness/benchmark.py +222 -0
  94. rewardharness-0.2.0/rewardharness/cli.py +158 -0
  95. rewardharness-0.2.0/rewardharness/clients/__init__.py +7 -0
  96. rewardharness-0.2.0/rewardharness/clients/endpoints.py +57 -0
  97. rewardharness-0.2.0/rewardharness/clients/gemini.py +106 -0
  98. rewardharness-0.2.0/rewardharness/clients/protocols.py +29 -0
  99. rewardharness-0.2.0/rewardharness/config.py +85 -0
  100. rewardharness-0.2.0/rewardharness/diagnostics.py +199 -0
  101. rewardharness-0.2.0/rewardharness/domain.py +86 -0
  102. rewardharness-0.2.0/rewardharness/evaluation/__init__.py +15 -0
  103. rewardharness-0.2.0/rewardharness/evaluation/engine.py +342 -0
  104. rewardharness-0.2.0/rewardharness/evaluation/metrics.py +69 -0
  105. rewardharness-0.2.0/rewardharness/evaluation/router.py +168 -0
  106. rewardharness-0.2.0/rewardharness/evolution/__init__.py +9 -0
  107. rewardharness-0.2.0/rewardharness/evolution/analyzer.py +310 -0
  108. rewardharness-0.2.0/rewardharness/evolution/evolver.py +208 -0
  109. rewardharness-0.2.0/rewardharness/evolution/pipeline.py +585 -0
  110. rewardharness-0.2.0/rewardharness/library/__init__.py +7 -0
  111. rewardharness-0.2.0/rewardharness/library/repository.py +496 -0
  112. rewardharness-0.2.0/rewardharness/paths.py +20 -0
  113. rewardharness-0.2.0/rewardharness/py.typed +1 -0
  114. rewardharness-0.2.0/rewardharness/release.py +85 -0
  115. rewardharness-0.2.0/rewardharness/resources/library/registry.json +39 -0
  116. rewardharness-0.2.0/rewardharness/resources/library/skills/evaluating-thematic-and-setting-accuracy/SKILL.md +9 -0
  117. rewardharness-0.2.0/rewardharness/resources/library/skills/score-calibration/SKILL.md +36 -0
  118. rewardharness-0.2.0/rewardharness/resources/library/skills/verifying-multi-attribute-objects/SKILL.md +18 -0
  119. rewardharness-0.2.0/rewardharness/resources/library/tools/fine-grained-object-verifier/SKILL.md +23 -0
  120. rewardharness-0.2.0/rewardharness/resources/library/tools/image-quality-and-artifact-analyzer/SKILL.md +34 -0
  121. rewardharness-0.2.0/rewardharness/resources/library/tools/visual-text-and-layout-analyzer/SKILL.md +23 -0
  122. rewardharness-0.2.0/rewardharness/resources/score_guidelines/README.md +18 -0
  123. rewardharness-0.2.0/rewardharness/resources/score_guidelines/template1_instruction_following.md +24 -0
  124. rewardharness-0.2.0/rewardharness/resources/score_guidelines/template2_visual_quality.md +24 -0
  125. rewardharness-0.2.0/rewardharness.egg-info/PKG-INFO +354 -0
  126. rewardharness-0.2.0/rewardharness.egg-info/SOURCES.txt +151 -0
  127. rewardharness-0.2.0/rewardharness.egg-info/dependency_links.txt +1 -0
  128. rewardharness-0.2.0/rewardharness.egg-info/entry_points.txt +2 -0
  129. rewardharness-0.2.0/rewardharness.egg-info/requires.txt +12 -0
  130. rewardharness-0.2.0/rewardharness.egg-info/top_level.txt +2 -0
  131. rewardharness-0.2.0/setup.cfg +4 -0
  132. rewardharness-0.2.0/src/__init__.py +9 -0
  133. rewardharness-0.2.0/src/_compat.py +13 -0
  134. rewardharness-0.2.0/src/chain_analyzer.py +9 -0
  135. rewardharness-0.2.0/src/endpoint_pool.py +9 -0
  136. rewardharness-0.2.0/src/evaluator.py +12 -0
  137. rewardharness-0.2.0/src/evolver.py +12 -0
  138. rewardharness-0.2.0/src/gemini_client.py +9 -0
  139. rewardharness-0.2.0/src/library/__init__.py +9 -0
  140. rewardharness-0.2.0/src/pipeline.py +12 -0
  141. rewardharness-0.2.0/src/router.py +9 -0
  142. rewardharness-0.2.0/src/sub_agent.py +25 -0
  143. rewardharness-0.2.0/tests/test_chain_evolver.py +715 -0
  144. rewardharness-0.2.0/tests/test_check_env.py +64 -0
  145. rewardharness-0.2.0/tests/test_evaluator.py +145 -0
  146. rewardharness-0.2.0/tests/test_infrastructure.py +174 -0
  147. rewardharness-0.2.0/tests/test_library.py +208 -0
  148. rewardharness-0.2.0/tests/test_library_integration.py +419 -0
  149. rewardharness-0.2.0/tests/test_pipeline.py +249 -0
  150. rewardharness-0.2.0/tests/test_public_api.py +99 -0
  151. rewardharness-0.2.0/tests/test_release.py +89 -0
  152. rewardharness-0.2.0/tests/test_router.py +120 -0
  153. rewardharness-0.2.0/tests/test_sub_agent.py +247 -0
@@ -0,0 +1,200 @@
1
+ # Changelog
2
+
3
+ All notable changes to RewardHarness are recorded here. Versions follow [SemVer](https://semver.org/). Dates are in ISO 8601 (UTC).
4
+
5
+ ## [Unreleased]
6
+
7
+ Future changes after v0.2.0.
8
+
9
+ ## [0.2.0] — 2026-08-17
10
+
11
+ Stable release of the canonical `rewardharness` package introduced in the
12
+ release candidate.
13
+
14
+ ### Added
15
+
16
+ - Published the `py.typed` marker and `Typing :: Typed` classifier so type
17
+ checkers can consume the package's inline annotations.
18
+ - Added dedicated Documentation, Changelog, and Issues links to PyPI metadata.
19
+
20
+ ### Changed
21
+
22
+ - Promoted the v0.2 package, schema-v2 Library, unified CLI, and compatibility
23
+ adapters from release candidate to stable.
24
+ - Hardened trusted publishing with full-history release builds, explicit GitHub
25
+ repository targeting, modern-pip wheel installation, and post-publish checks.
26
+
27
+ ## [0.2.0-rc1] — 2026-08-17
28
+
29
+ Large-scale architecture and release-hardening candidate. The supported API
30
+ now uses the `rewardharness` namespace, Library assets use schema v2, and the
31
+ deprecated `src` namespace remains as a compatibility layer for v0.2.
32
+
33
+ - Package metadata imports are now lazy, so version and release checks do not
34
+ initialize model, dataset, or image-processing dependencies.
35
+ - Added canonical version/tag conversion, `rewardharness release-status`,
36
+ cross-file release metadata validation, and post-publish PyPI/GitHub smoke
37
+ verification.
38
+
39
+ ### Added
40
+
41
+ - Active GitHub Actions CI now runs the test suite on Python 3.10–3.12,
42
+ smoke-tests library inspection, and builds + validates wheel/sdist artifacts.
43
+ - `requirements-dev.txt`, `make install-dev`, and `make release-check` provide a
44
+ reproducible maintainer path for testing and validating distributions.
45
+ - `scripts/check_links.sh` — audits every markdown link in the docs (relative paths always; external URLs with `--external`).
46
+ - `WALKTHROUGH.md` — 5-step Vertex AI service-account setup guide with direct GCP console deep-links; step 8 now shows the fast `python scripts/run_benchmark.py --config configs/default.yaml` paper-reproduction path against the shipped `rewardharness/resources/library/` (no evolution required first).
47
+ - README release badge auto-updates from the latest GitHub tag.
48
+ - Per-author `affiliation` entries in the JSON-LD `ScholarlyArticle` block (21 author–org links).
49
+ - `examples/score_pair.py --show-chain` flag to print the full `<think>/<tool>/<obs>/<answer>` reasoning trace.
50
+ - `REWARDHARNESS_SUBAGENT_MODEL` env var lets you swap in a non-Qwen OpenAI-compatible Sub-Agent without editing source. Honoured by **every** vLLM call site — `SubAgent._call_vllm`, `Library.call_tool`, `Evolver._validate_tool_prompt`, plus the server-side launchers `serve_vllm_multi.sh`, `_launch_all_vllm.sh`, `sbatch_vllm.sh`, and `start_vllm_remote.sh` — so VLM-swap setups are coherent end-to-end.
51
+ - `CLAUDE_API_BASE_URL` / `CLAUDE_API_KEY` env vars in `vanilla/bench_{claude,genaibench,imagenhub}.py`. Previously the URL was hardcoded to a dead internal proxy, so the Claude baselines were not reproducible without editing source.
52
+ - `.env.example` now lists every env var the code reads (13 new entries) &mdash; `REWARDHARNESS_SUBAGENT_MODEL`, the `serve_vllm_multi.sh` knobs (`NUM_GPUS`, `ENDPOINTS_PER_GPU`, `BASE_PORT`, `GPU_MEM`, `MAX_MODEL_LEN`, `VLLM_MODEL_PATH`), BCM cluster overrides (`RH_SKIP_ENV_PIN`, `SLURM_PREFIX`, `CUDA_LIBS`), Gemini gateway pair, Claude proxy pair. WALKTHROUGH step 4 (`cp .env.example .env`) is now a one-stop discovery mechanism.
53
+ - `scripts/run_evolution.py` end-of-run summary now surfaces the **best iteration** (highest `val_acc`) with a copy-paste-ready `--library-dir results/<run>/checkpoints/iter_N` hint, matching OUTPUTS.md's "pick the best post-hoc" guidance.
54
+
55
+ ### Changed
56
+
57
+ - Test and release tooling is no longer installed as package runtime
58
+ dependencies; published metadata now uses the SPDX `Apache-2.0` expression.
59
+ - `CLAUDE.md` rewritten with an explicit "for AI coding agents" preamble; dropped the internal-only `a-tool/edit-reward/` reference; tightened the no-coauthor rule to also forbid AI-attribution footers.
60
+ - `Makefile` &mdash; `make benchmark` defaults to the paper-evolved `rewardharness/resources/library/` (6 entries) instead of `examples/seed_library/` (3 entries). New users running `make benchmark` to verify paper headline numbers now see the actual paper accuracy instead of seed-library accuracy.
61
+ - README "Repository layout": `data/` row clarified (HuggingFace caches into `~/.cache/huggingface/`, not the repo's `data/` dir).
62
+ - README "Architecture": honest description of the evolution gate &mdash; replaces "kept only if held-out accuracy improves" with the actual `explore_margin` semantics (small dips permitted within tolerance).
63
+ - README "Key config" / `configs/default.yaml` &mdash; the `model:` block is now flagged INFORMATIONAL; no code reads those keys. Serving knobs are env vars consumed by `scripts/serve_vllm_multi.sh`.
64
+ - README "Updates" section now lists every released version (v0.1.0 / v0.1.1 / v0.1.2) with dates that match `CHANGELOG.md` + git tags. Previously off by one day on v0.1.0 and missing the v0.1.1 security release entirely.
65
+ - Footer on the website lists both code mirrors (TIGER-AI-Lab / KlingAIResearch).
66
+ - Website "Method" card now describes the actual phase A/B/C structure from `rewardharness/evolution/pipeline.py` instead of a fictitious "five stages" framing.
67
+ - Website figures now use `loading="lazy"` and `decoding="async"`, cutting first-paint bandwidth by ~820 KB for visitors who don't scroll past Abstract.
68
+ - Website "Try it yourself" callout now shows `--show-chain` (so the printed trace matches the section's headline example) and includes the no-image-needed fast path `python scripts/run_benchmark.py --config configs/default.yaml`.
69
+ - Website Table 2: Flux.1 Kontext [dev]'s 3.52 Overall is now marked second-best (matching the "tied at 3.52 with a smaller backbone" claim in the caption); previously RewardHarness's 3.52 was uniquely highlighted.
70
+ - Website mobile (≤735px): the dark-mode toggle stays visible (the previous CSS hid the whole `.nav-links` `<ul>`, taking the toggle with it).
71
+ - `vanilla/README.md` &mdash; backend/env-var table corrected: `gemini_bench_*.py` go through an OpenAI-compatible "Gemini gateway", not a direct Vertex AI client (their `--model` accepts Gemini or Claude ids — whatever your gateway supports).
72
+ - `rewardharness/resources/score_guidelines/README.md` rewritten: the templates ARE loaded by `rewardharness/evaluation/engine.py` at inference time (the old text claimed otherwise), and the internal scoring scale is 1-4 end-to-end (the old text claimed a 1-5 remap).
73
+ - WALKTHROUGH "Where things live" table &mdash; corrected the VLM-swap recipe: split into OpenAI-compatible (export env var, no source edit) and non-OpenAI (subclass) paths, matching what's actually in `rewardharness/evaluation/engine.py`.
74
+
75
+ ### Removed
76
+
77
+ - `vanilla/bench_wanqing.py` and hardcoded credentials from `vanilla/gemini_bench_*.py` (already shipped in v0.1.1's security patch; carrying the note here for completeness).
78
+ - Stale `data/checksums.txt` placeholder that no script ever populated.
79
+
80
+ ### Fixed
81
+
82
+ - The evolution pipeline's benchmark-data guard now raises an explicit error,
83
+ so it remains active when Python runs with optimizations enabled.
84
+ - `scripts/run_evolution.py` now has the executable bit set, matching its siblings.
85
+ - `scripts/start_vllm_remote.sh` gained a header docstring explaining the SSH/Slurm invocation pattern, and now respects the same env-var conventions as `serve_vllm_multi.sh` (`VLLM_PYTHON`, `VLLM_MODEL_PATH`, `REWARDHARNESS_SUBAGENT_MODEL` via `--served-model-name`, `MAX_MODEL_LEN`).
86
+ - `scripts/reproduce.sh` step 4 now resets the `waited` counter per vLLM port (was a shared accumulator across all 16 ports, so the last few ports got near-zero timeout budget) and bumps per-port budget to 10 min for cold-start safety. **Also major fix:** step 4 reads `configs/endpoints.txt` (the same file the pipeline reads) instead of hardcoded ports 8000-8015, which mismatched `serve_vllm_multi.sh`'s 4-endpoint default and caused ~2 hours of timeout failure on default-config runs.
87
+ - `scripts/setup_env.sh` step labels harmonised &mdash; was `[1/3]`/`[2/3]`/`[3/3]`/`[4/5]`/`[5/5]`, now consistently `[N/5]`.
88
+ - `scripts/serve_vllm_multi.sh` &mdash; Bright Cluster Manager paths (`/cm/...`) are now overridable via `SLURM_PREFIX`, `CUDA_LIBS`, or skippable entirely with `RH_SKIP_ENV_PIN=1`. Previously broke `LD_LIBRARY_PATH` on vanilla Ubuntu/RHEL hosts.
89
+ - `scripts/download_data.sh` &mdash; dropped a dead checksum-generation step that wrote a `data/checksums.txt` no other script ever read. Replaced with a one-liner showing how to compare HuggingFace's built-in `_fingerprint` instead.
90
+ - `scripts/check_env.py` &mdash; vLLM endpoint probes now run in parallel (was sequential; with 16 endpoints all timing out, preflight took 48 s instead of ~3 s).
91
+ - `scripts/_launch_all_vllm.sh`, `scripts/sbatch_vllm.sh` &mdash; respect `NUM_GPUS` / `BASE_PORT` / `GPU_MEM` / `MAX_MODEL_LEN` / `VLLM_MODEL_PATH` env vars matching the public `serve_vllm_multi.sh`; previously hardcoded 4 GPUs and 0.85 GPU-mem. `sbatch_vllm.sh` also dropped two unsubstituted `/path/to/your/...` template paths in favour of a fail-fast `$RH_ROOT` requirement.
92
+ - `scripts/run_evolution_seed.sh` &mdash; generated YAML now uses `gemini:` (matching `configs/default.yaml`) instead of `claude:`, which would have `KeyError`'d at Router construction and also violated the no-Claude-API project rule.
93
+ - `scripts/run_all_benchmarks.sh` &mdash; summary table now shows `GenAI` and `average` columns (was only K=2/K=3/K=4), so the headline "which iter scored best on average" is visible at a glance. Inline-python invocation hardened (sys.argv instead of bash-substitution into source).
94
+ - `rewardharness/library/repository.py::call_tool` and `rewardharness/evolution/evolver.py::_validate_tool_prompt` &mdash; tool dispatches and Phase-B tool validation now read the same `SUBAGENT_MODEL` constant as `rewardharness/evaluation/engine.py`, so VLM-swap setups don't silently break inside `<tool>` blocks or new-tool acceptance.
95
+ - `examples/score_pair.py --show-chain` hint replaced a dead-end `result['chain']` instruction.
96
+ - `examples/inspect_library.py` and `examples/show_reasoning_format.py` verified clean against the current `rewardharness/resources/library` API (no signature drift).
97
+ - `examples/README.md` &mdash; corrected the "7-entry final library" claim to "6-entry (3 Skills + 3 Tools)", matching what's actually committed at `rewardharness/resources/library/`. Same correction landed on the website's Limitations card.
98
+ - `TROUBLESHOOTING.md` &mdash; corrected two doc/code drifts: the `/v1/models` health check shows `Qwen2.5-VL-7B-Instruct` (no `Qwen/` prefix), and the OOM mitigation now points at the actual `GPU_MEM` env var (default 0.85) instead of a non-existent `--gpu-memory-utilization` flag with the wrong default.
99
+ - `OUTPUTS.md` &mdash; documented the `_about` / `_library_dir` / `_orchestrator` / `_sub_agent` / `average` metadata fields the sample `benchmark_results.json` carries.
100
+ - `SECURITY.md` &mdash; "Supported versions" table now reflects v0.1.2 as latest (was still pointing at v0.1.1).
101
+ - `examples/show_reasoning_format.py` &mdash; corrected the tool-call limit (`MAX_TOOL_CALLS = 5` in `rewardharness/evaluation/engine.py`; was misdocumented as "default 3, bounded by config").
102
+ - `.github/ISSUE_TEMPLATE/bug_report.md` &mdash; the version-collection command `pip show A B C | head -3` was silently dropping the second and third packages; switched to `grep -E '^(Name|Version)'` which surfaces all three.
103
+ - `tests/` &mdash; added regression coverage for `REWARDHARNESS_SUBAGENT_MODEL` on all three vLLM call sites (`SubAgent`, `Library.call_tool`, `Evolver._validate_tool_prompt`); a future refactor that re-hardcodes the model id will now fail a test. Suite grew from 100 → 103 tests, still ~2 s.
104
+ - Website `script.js` dark-mode-toggle no longer wipes the inline SVG sun/moon icons with a Unicode entity on the first call &mdash; the CSS-based icon swap (already shipped) now works as designed.
105
+ - Website gallery click-to-enlarge actually works now. The lightbox handler in `script.js` was looking for a `.gallery-placeholder` child of `.gallery-item` that doesn't exist in the current Figure-4 markup (only an `<img>`), so clicks silently did nothing despite the subtitle's "click to enlarge" promise. Now falls back to cloning the `<img>` directly.
106
+ - `examples/score_pair.py` docstring now points at `REWARDHARNESS_SUBAGENT_MODEL` for non-Qwen swaps (was undiscoverable from the file new users read first).
107
+ - `OUTPUTS.md` + `examples/sample_benchmark_results.json` now honestly distinguish keys `scripts/run_benchmark.py` writes (`k2`/`k3`/`k4` with `n_pairs` + `pair_results`) from paper-headline-only fields (`genai_bench`, `average`) that require a separate GenAI-Bench pass. Includes a one-line `jq` merge recipe.
108
+ - `scripts/run_all_benchmarks.sh` summary table now renders `—` (em-dash) for missing GenAI/Avg keys instead of `0.0000`, since `run_benchmark.py` doesn't produce them by default — previously the table lied about scores it didn't have.
109
+ - `Makefile` `benchmark` target comment aligned with the iter-106 honesty pass: `make benchmark` actually reports K=2/3/4 on EditReward-Bench; the 45.7% / 47.4% headline averages also require a separate GenAI-Bench pass.
110
+ - `.env.example` &mdash; added the last 3 undocumented user-settable env vars (`RH_ROOT`, `SLURM_NODES_DIR`, `VLLM_PYTHON`). A grep diff against the codebase now finds no read-but-undocumented vars, so `cp .env.example .env` is a genuine single-point discovery mechanism.
111
+ - README "Datasets" table now lists `TIGER-Lab/GenAI-Bench` (`image_edition`, `test_v1`) alongside `EditReward-Data-100` and `EditReward-Bench`, flagged as paper-headline-only (not read by `run_benchmark.py`). Each row now also says which script consumes it.
112
+ - Website footer "Datasets:" line gets the same `TIGER-Lab/GenAI-Bench` link; the existing `TIGER-Lab/EditReward-Bench` blurb is now `(K=2/3/4 benchmark)` so the two benchmark datasets don't read identically.
113
+ - Website citation copy buttons: unified the BibTeX and Plain-text "Copy" handlers through a shared `initCopyButton(btnId, srcId)` helper in `script.js`. Previously the Plain-text button was an inline-onclick IIFE with no clipboard fallback and no error handling &mdash; it would show "Copied!" even when the underlying `navigator.clipboard.writeText` silently failed (denied permission, http-loaded page, older browser without `navigator.clipboard`). Now both use clipboard-API → `execCommand` fallback → `showCopied` only on real success.
114
+ - `scripts/check_links.sh --external` no longer reports false positives for documentation-example URLs (`http://localhost:*`, `127.0.0.1:*`, `example.com`) or rate-limited responses (HTTP 429 from e.g. `console.cloud.google.com`). Also fixed a latent bug where `curl -fsS … -w '%{http_code}'` + `|| echo "ERR"` was producing strings like `"429ERR"` instead of `"429"`, so the accept-list never matched. Now the script exits 0 on a clean repo against both relative-only and external runs.
115
+ - `examples/sample_evolution_log.json` + `OUTPUTS.md` now document **every** key `rewardharness/evolution/pipeline.py` writes to `evolution_log.json`: previously-missing `applied` (changes-counts dict), `analysis_summary` (string), `pruned` (mostly-empty list), and `duration_s` (wall-clock per iter). All 5 sample iters carry `duration_s` so the sample's total (~8.5 min) is a realistic expectation for `make demo` runtime.
116
+ - `WALKTHROUGH.md` step 8 + step 9 now reflect what `run_benchmark.py` / `make reproduce` actually produce (K=2/3/4 on EditReward-Bench), with explicit pointers to the GenAI-Bench merge recipe in `OUTPUTS.md` for users wanting to reach the paper's 47.4% / 45.7% headline averages. Step 9 renamed from "Full paper reproduction" → "End-to-end EditReward-Bench reproduction" for accuracy.
117
+ - Website `og:description` and `twitter:description` meta tags corrected: was `"47.4% on EditReward-Bench"`, now `"47.4% on EditReward-Bench + GenAI-Bench"` matching the visible TL;DR card and the paper definition.
118
+ - `website/site/sitemap.xml`'s `<lastmod>` bumped to today's date so search engines re-crawl after 50+ post-v0.1.2 website edits.
119
+ - README + WALKTHROUGH `make demo` timing claim corrected: was misleadingly "~30 min" (a holdover from when `demo` meant 5 iters), now "~3 min of pipeline work" matching the 1-iter Makefile target, with a note that vLLM cold-start dominates first-time runtime.
120
+ - `make help` text fixed: `make evolve` no longer claims "starts from empty library" (it actually loads `rewardharness/resources/library/` by default and evolves on top); `make reproduce` renamed from "End-to-end paper reproduction" → "End-to-end EditReward-Bench reproduction" matching iter 125's WALKTHROUGH change.
121
+ - `WALKTHROUGH.md` step 6 now shows the correct vLLM health-check output (`Qwen2.5-VL-7B-Instruct`, no `Qwen/` prefix &mdash; same fix iter 71 applied to TROUBLESHOOTING.md) and points at `.env.example` + README §Swapping Sub-Agent for users wanting to swap in a non-Qwen VLM.
122
+ - `TROUBLESHOOTING.md` &mdash; new entry covering the canonical VLM-swap failure mode: client `REWARDHARNESS_SUBAGENT_MODEL` mismatched with server `--served-model-name` returns `404 model not found`. Includes the matching client+server setup and a curl verification one-liner.
123
+ - `scripts/check_env.py` preflight now detects VLM-swap mismatches at the `/v1/models` probe step: parses `data[0].id` from each endpoint's response and warns if it differs from `REWARDHARNESS_SUBAGENT_MODEL`. Catches the iter-129 failure mode in ~3 seconds during `make check` instead of after a multi-hour evolution timeout. Imports the canonical `SUBAGENT_MODEL` constant from `src.sub_agent` so the script's expected baseline can't drift from the runtime's. Locked in by 4 new unit tests in `tests/test_check_env.py` (suite now 107 tests).
124
+ - Website "Try it yourself" callout in the Reasoning Trace section now says `run_benchmark.py` reproduces "the paper's EditReward-Bench K=2/3/4 numbers" (not "the paper's headline numbers") with a parenthetical pointer to OUTPUTS.md for the GenAI-Bench merge needed for the 47.4% average. Closes the last loose-promise instance of the iter-106 honesty pass on the live site.
125
+ - Test count claim updated from `~100 tests` → `~107 tests` in `tests/README.md`, `README.md` Repository-layout tree, and `CLAUDE.md` Commands block, matching the actual suite size after iters 79/97/131 added regression coverage. `tests/README.md` per-file table also gained a `test_check_env.py` row.
126
+ - README "Updates" section now cross-links `CHANGELOG.md [Unreleased]` with a one-line summary so visitors landing on the GitHub README can discover the post-v0.1.2 polish list in one click.
127
+ - README "Repository layout" tree filled out: previously omitted `examples/` entirely + `requirements-vllm.txt` + `.env.example` + all user-facing docs (`CHANGELOG.md`, `WALKTHROUGH.md`, `OUTPUTS.md`, `TROUBLESHOOTING.md`, `CONTRIBUTING.md`, `SECURITY.md`). All now visible with one-line descriptions of what's inside.
128
+ - `.gitignore` &mdash; dropped a stale `results_new/` line (dev-only artifact), and added `slurm-*.out` + `vllm-slurm-*.log` patterns so accidental Slurm-job log commits don't happen. **Caveat**: gitignore does **not** support inline `# comment`s on the pattern line; my first attempt buried the patterns inside what gitignore parsed as literal strings &mdash; verified-then-fixed in a same-iter follow-up commit.
129
+ - `OUTPUTS.md` &mdash; "Reading evolution_log" paragraph now mentions that `scripts/run_evolution.py` automatically surfaces the best iteration at end-of-run with a copy-paste-ready `--library-dir` hint (iter-105 UX win that was discoverable only by actually running the script). Also corrected the comparison key from `best_val_acc` (running max) to `val_acc` (per-iter, the actual comparison key).
130
+ - `examples/score_pair.py` now prints the resolved `SUBAGENT_MODEL` + endpoint count before invoking the SubAgent. A user with a typo'd `REWARDHARNESS_SUBAGENT_MODEL` or forgotten `export` sees the mismatch *before* the API call (catching the iter-129 "404 model not found" failure mode at config time instead of inside the evaluation).
131
+
132
+ ## [0.1.2] — 2026-05-16
133
+
134
+ ### Added
135
+
136
+ - `examples/score_pair.py` &mdash; smallest-possible end-to-end script: Library + Router (Gemini) + SubAgent (vLLM) → 1&ndash;4 preference judgment for a single edit pair.
137
+ - `examples/sample_evolution_log.json` and `examples/sample_benchmark_results.json` &mdash; illustrative output files matching the paper's headline numbers; cross-linked from `OUTPUTS.md` so users can `jq`/diff their own runs.
138
+ - `.github/dependabot.yml` &mdash; weekly pip + monthly GitHub Actions security tracking.
139
+ - `MANIFEST.in` &mdash; ships `rewardharness/resources/score_guidelines/*.md`, `examples/seed_library/`, and `configs/` in the sdist; closes a packaging hole where wheel installs were missing the runtime templates.
140
+ - `REWARDHARNESS_TEMPLATES_DIR` env-var escape hatch in `rewardharness/evaluation/engine.py` for unusual install layouts.
141
+ - `.editorconfig` for consistent contributor style.
142
+
143
+ ### Changed
144
+
145
+ - README: new "Swapping in a different VLM as Sub-Agent" section explaining the two pluggability axes (OpenAI-compatible vs subclass); "What you can do with this code" 4-bullet hook near the top; Hardware-requirements table now lists per-workflow credentials.
146
+ - Website: new **Reasoning Trace** section showing a real `<think>/<tool>/<obs>/<answer>` chain; **"Why it works"** callout in Method section articulating the context-evolution thesis; brand SVG replaces the cross-platform-flaky 🦞 emoji in the title; Tutorial button replaces the dead `#` self-link.
147
+ - `make demo` and `make benchmark` default to `--library-dir examples/seed_library` for non-empty starting state.
148
+ - `make help` is now a credentials matrix showing what each target actually needs.
149
+
150
+ [0.2.0]: https://github.com/TIGER-AI-Lab/RewardHarness/releases/tag/v0.2.0
151
+ [0.1.2]: https://github.com/TIGER-AI-Lab/RewardHarness/releases/tag/v0.1.2
152
+ [0.2.0-rc1]: https://github.com/TIGER-AI-Lab/RewardHarness/releases/tag/v0.2.0-rc1
153
+
154
+ ## [0.1.1] — 2026-05-16
155
+
156
+ ### Security
157
+
158
+ - **Removed hardcoded internal API key** that was inadvertently shipped in `vanilla/bench_wanqing.py` and three `vanilla/gemini_bench_*.py` scripts in `v0.1.0`. The file `vanilla/bench_wanqing.py` is deleted; the three remaining scripts now read `GEMINI_GATEWAY_BASE_URL` and `GEMINI_GATEWAY_API_KEY` from the environment. See `SECURITY.md` for full disclosure timeline.
159
+
160
+ ### Added
161
+
162
+ - `SECURITY.md` &mdash; responsible-disclosure policy and supported-version matrix.
163
+ - Substantial post-release polish across docs and examples:
164
+ - `WALKTHROUGH.md` (9-step clone-to-first-judgment), `TROUBLESHOOTING.md`, `OUTPUTS.md`, `CONTRIBUTING.md`, `CHANGELOG.md`.
165
+ - `examples/seed_library/` (2 Skills + 1 Tool starter), `examples/show_reasoning_format.py`, `examples/score_pair.py`, `examples/sample_evolution_log.json`, `examples/sample_benchmark_results.json`.
166
+ - `scripts/check_env.py` preflight; `make check` target.
167
+ - `pyproject.toml` for editable install; `.env.example`; `requirements-vllm.txt` split out from the core deps.
168
+ - GitHub issue templates + repo description/topics; CI workflow file prepared but not yet pushed (waiting on workflow scope).
169
+
170
+ ### Changed
171
+
172
+ - `make demo` and `make benchmark` now default to `--library-dir examples/seed_library` so first-time users get non-trivial output without doing a 4&ndash;6 h evolution first.
173
+ - `src/__init__.py` exposes `__version__`.
174
+ - README adds a "Swapping in a different VLM as Sub-Agent" guide; Hardware-requirements table now lists credentials needed per workflow.
175
+ - Mermaid architecture diagram in README; per-folder READMEs (`tests/`, `examples/`, `vanilla/`, `rewardharness/resources/score_guidelines/`).
176
+
177
+ [0.1.1]: https://github.com/TIGER-AI-Lab/RewardHarness/releases/tag/v0.1.1
178
+
179
+ ## [0.1.0] — 2026-05-15
180
+
181
+ Initial open-source release. Paper: [arXiv 2605.08703](https://arxiv.org/abs/2605.08703). Project page: [rewardharness.com](https://rewardharness.com).
182
+
183
+ ### Added
184
+
185
+ - **Core framework** (`src/`): Orchestrator (Router + ChainAnalyzer + Evolver), frozen Sub-Agent reasoning loop, versioned Skills/Tools Library with snapshot/restore, Phase A/B/C self-evolution pipeline with gated rollback.
186
+ - **Reproduction scripts** (`scripts/`): `run_evolution.py`, `run_benchmark.py`, `reproduce.sh` (7-step end-to-end), multi-GPU vLLM launchers (`serve_vllm_multi.sh`, `sbatch_vllm.sh`), `check_env.py` preflight, `setup_env.sh`, `download_data.sh`.
187
+ - **Baseline benchmarks** (`vanilla/`): direct VLM scoring on EditReward-Bench / GenAI-Bench / ImagenHub with Claude- and Gemini-backed variants.
188
+ - **Test suite** (`tests/`, 100 tests, ~2 s): fully mocked Library / Router / SubAgent / Evolver / Pipeline / Evaluator tests with no GPU / network / API dependencies.
189
+ - **Examples** (`examples/`): `inspect_library.py` (Library data-model tour) and `show_reasoning_format.py` (annotated `<think>/<tool>/<obs>/<answer>` trace).
190
+ - **Build + packaging**: `Makefile` (install / check / test / demo / evolve / benchmark / reproduce / clean), `pyproject.toml` (editable install), split `requirements.txt` / `requirements-vllm.txt` so CPU-only workflows skip the heavy CUDA dependency, `.env.example`.
191
+ - **Docs**: `README.md` with mermaid architecture diagram, Hardware-requirements table, full `default.yaml` reference, CI/coverage-style badges; `WALKTHROUGH.md` (9-step clone-to-first-judgment); `TROUBLESHOOTING.md`; per-folder READMEs for `tests/`, `examples/`, `vanilla/`, `rewardharness/resources/score_guidelines/`; `CITATION.cff` so GitHub renders a "Cite this repository" widget.
192
+ - **License**: Apache-2.0.
193
+
194
+ ### Performance (paper headline)
195
+
196
+ - **47.4%** average accuracy on EditReward-Bench + GenAI-Bench using the Gemini-2.0-Flash Sub-Agent (best K=2: 66.2 / K=3: 45.3 / GenAI: 64.4); **45.7%** with Qwen2.5-VL-7B (best K=3: 46.7 / GenAI: 67.5).
197
+ - Surpasses GPT-5 (42.1) by **+5.3** points using only **100 preference demonstrations** (0.05% of the EditReward training data).
198
+ - As a reward signal for GRPO fine-tuning of FLUX.2-klein-base-4B, raises ImgEdit-Bench from 3.32 → **3.52**, matching the much larger Flux.1 Kontext [dev].
199
+
200
+ [0.1.0]: https://github.com/TIGER-AI-Lab/RewardHarness/releases/tag/v0.1.0
@@ -0,0 +1,72 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite the paper."
3
+ title: "RewardHarness: Self-Evolving Agentic Post-Training"
4
+ version: "0.2.0"
5
+ date-released: "2026-08-17"
6
+ type: software
7
+ authors:
8
+ - given-names: Yuxuan
9
+ family-names: Zhang
10
+ - given-names: Penghui
11
+ family-names: Du
12
+ - given-names: Bo
13
+ family-names: Li
14
+ - given-names: Cong
15
+ family-names: Wei
16
+ - given-names: Junwen
17
+ family-names: Miao
18
+ - given-names: Huaisong
19
+ family-names: Zhang
20
+ - given-names: Songcheng
21
+ family-names: Cai
22
+ - given-names: Yubo
23
+ family-names: Wang
24
+ - given-names: Dongfu
25
+ family-names: Jiang
26
+ - given-names: Yuyu
27
+ family-names: Zhang
28
+ - given-names: Ping
29
+ family-names: Nie
30
+ - given-names: Wenhu
31
+ family-names: Chen
32
+ - given-names: Changqian
33
+ family-names: Yu
34
+ - given-names: Kelsey R.
35
+ family-names: Allen
36
+ repository-code: "https://github.com/TIGER-AI-Lab/RewardHarness"
37
+ url: "https://rewardharness.com"
38
+ preferred-citation:
39
+ type: article
40
+ title: "RewardHarness: Self-Evolving Agentic Post-Training"
41
+ authors:
42
+ - given-names: Yuxuan
43
+ family-names: Zhang
44
+ - given-names: Penghui
45
+ family-names: Du
46
+ - given-names: Bo
47
+ family-names: Li
48
+ - given-names: Cong
49
+ family-names: Wei
50
+ - given-names: Junwen
51
+ family-names: Miao
52
+ - given-names: Huaisong
53
+ family-names: Zhang
54
+ - given-names: Songcheng
55
+ family-names: Cai
56
+ - given-names: Yubo
57
+ family-names: Wang
58
+ - given-names: Dongfu
59
+ family-names: Jiang
60
+ - given-names: Yuyu
61
+ family-names: Zhang
62
+ - given-names: Ping
63
+ family-names: Nie
64
+ - given-names: Wenhu
65
+ family-names: Chen
66
+ - given-names: Changqian
67
+ family-names: Yu
68
+ - given-names: Kelsey R.
69
+ family-names: Allen
70
+ journal: "arXiv preprint arXiv:2605.08703"
71
+ year: 2026
72
+ url: "https://arxiv.org/abs/2605.08703"
@@ -0,0 +1,205 @@
1
+ RewardHarness
2
+ Copyright 2026 The RewardHarness Authors.
3
+ SPDX-License-Identifier: Apache-2.0
4
+
5
+ Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for describing the origin of the Work and
145
+ reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Support. While redistributing the Work or
170
+ Derivative Works thereof, You may choose to offer, and charge a
171
+ fee for, acceptance of support, warranty, indemnity, or other
172
+ liability obligations and/or rights consistent with this License.
173
+ However, in accepting such obligations, You may act only on Your
174
+ own behalf and on Your sole responsibility, not on behalf of any
175
+ other Contributor, and only if You agree to indemnify, defend,
176
+ and hold each Contributor harmless for any liability incurred by,
177
+ or claims asserted against, such Contributor by reason of your
178
+ accepting any such warranty or support.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright 2026 The RewardHarness Authors.
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ include README.md LICENSE CITATION.cff CHANGELOG.md
2
+ include requirements.txt requirements-dev.txt requirements-vllm.txt
3
+ include configs/*.yaml configs/*.txt
4
+ recursive-include rewardharness/resources *.json *.md
5
+ include rewardharness/py.typed
6
+ recursive-include libraries/archive *.json *.md
7
+ recursive-include examples/seed_library *.json *.md