[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111260":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":11,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},111260,"Harness-S","DeepExperience\u002FHarness-S","DeepExperience",null,"Python",76,1,64,0,3,12,40.6,"Apache License 2.0",false,"main",true,[],"2026-11-08 04:12:27","2026-11-19 19:04:05","\u003Ch1 align=\"center\">Harness-S\u003C\u002Fh1>\n\u003Ch3 align=\"center\">Learning from Sibling Harnesses for Generalizable Agent Training\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDeepExperience\u002FHarness-S\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCode-Harness--S-334155\" alt=\"Code\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.10%2B-blue\" alt=\"Python\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache--2.0-green\" alt=\"License\">\u003C\u002Fa>\n  \u003Ca href=\"harness_pool\u002Fappworld\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FHarness%20Pool-AppWorld%20%C3%97%2020-7c3aed\" alt=\"Harness pool\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#overview\">Overview\u003C\u002Fa> · \u003Ca href=\"#harness-evolution\">Harness Evolution\u003C\u002Fa> ·\n  \u003Ca href=\"#installation\">Installation\u003C\u002Fa> ·\n  \u003Ca href=\"#quick-start\">Quick Start\u003C\u002Fa> · \u003Ca href=\"#harness-pool\">Harness Pool\u003C\u002Fa> ·\n  \u003Ca href=\"docs\u002Freproduction.md\">Reproduction\u003C\u002Fa> · \u003Ca href=\"docs\u002Farchitecture.md\">Architecture\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Overview\n\n**Harness-S** trains one agent policy using complementary trajectories from a fixed sibling harness pool. When every base-harness attempt fails, a validation-based rule selects auxiliary harnesses for fresh attempts. GRPO learns from the replacement group in each trajectory's own generating context. The trained policy can execute under the original harness or use task-specific routing at inference.\n\n[![Harness-S framework: directional harness evolution, complementary rescue training, and knowledge transfer to a shared policy.](docs\u002Ffigures\u002Fmethod_framework_text.png)](docs\u002Ffigures\u002Fmethod_framework_text.pdf)\n\n**Harness-S framework.** Directional evolution builds a reusable sibling pool; fresh sibling rollouts rescue all-failure tasks and train one shared policy; learned behaviors transfer back to the original harness H0, with optional Rank-1 routing at inference. Click the figure for the original PDF.\n\nThe figure shows the paper's full method, including behavior profiles and LLM voting. The public recipes default to validation-based rules with profile calibration disabled; the model-based path is [optional](docs\u002Freproduction.md#optional-llm-routing-and-profiles).\n\nThis first release focuses on **AppWorld**: the frozen 20-member pool, exact task partitions, portable execution assets, rule-based rescue, optional behavior profiling and voting router, training scripts and evaluation scripts. Plain GRPO, H0 rescue and Harness-S share the same sampler, scorer, optimizer, validation and checkpoint lifecycle. Offline harness search has already produced the included pool; regenerating that search is outside this release's launch commands.\n\n## Highlights\n\n- **20 reusable harnesses:** H0 and 19 evolved siblings, with prompts, skills, context, memory, hooks and tool-view settings.\n- **Selective rescue:** retain the base group when it contains a success; otherwise replace all eight trajectories with fresh auxiliary attempts.\n- **Low-cost selection:** local task similarity and validation success rates select Top-8 siblings; profile calibration and LLM voting are off by default.\n- **One training path:** established Dressage\u002FSlime backend, policy-token masks, token importance correction, and **no reference-model KL**.\n- **Portable recipes:** explicit environment variables, single seed, 32 concurrent tasks and one GPU per inference instance by default.\n- **Limited checkpoints:** keep the validation-best and latest restart point during training; best and final after completion.\n\n## Harness Evolution\n\nSibling harnesses start from a common H0 and share the same execution foundation. They vary the prompts, skills, context, memory, hooks, and tool views that support the policy. The paper identifies three properties of this evolution:\n\n[![Properties of harness evolution on AppWorld: local repairs can introduce regressions, siblings solve complementary tasks, and their utility changes across policy checkpoints.](docs\u002Ffigures\u002Fintroduction.png)](docs\u002Ffigures\u002Fintroduction.pdf)\n\n**Properties of harness evolution (Qwen3.5-4B, AppWorld).** Left: repaired and regressed tasks relative to H0. Middle: individual success, sibling oracle union coverage, and H0 pass@K at matched rollout counts. Right: paired outcomes for fixed harnesses as the policy learns. Click the figure for the original PDF.\n\n- **Locality:** a harness edit can repair some failures while introducing regressions on previously solved tasks. Different repair directions develop different strengths.\n- **Complementarity:** siblings recover one another's errors. Their oracle union covers more tasks than individual variants or repeated H0 sampling at the same rollout count; this measures the pool's potential coverage, while a router must select harnesses before observing outcomes.\n- **Nonstationarity:** a fixed harness's benefit changes with the policy. An advantage over H0 can turn into a disadvantage, and sibling rankings can reverse across checkpoints.\n\n**Directional Harness Evolution** diagnoses failure causes and branches into targeted repairs. Joint validation coverage selects the next parents, while every executable, protocol-compliant child is retained in the pool. Rescue training uses that fixed pool to explore alternative behaviors on failed tasks and transfer them into the policy. This release includes the resulting AppWorld pool; rerunning the offline evolution search is outside its launch commands.\n\n## Installation\n\nThe control commands require Python 3.10+. Training requires Linux, NVIDIA GPUs, Docker with GPU support, Node.js 22.19+ (or 24+), and a separately installed [AppWorld](https:\u002F\u002Fgithub.com\u002FStonyBrookNLP\u002Fappworld) environment and task data. The paper used eight H800 GPUs.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FDeepExperience\u002FHarness-S.git\ncd Harness-S\nbash scripts\u002Fbootstrap.sh\nbash scripts\u002Fbuild_image.sh\ncp .env.example .env\n# Edit .env with your own model, AppWorld and Node paths. Router API settings are optional.\nsource .env\n```\n\n`bootstrap.sh` retrieves the pinned Slime commit and applies the included compatibility patch. The adapted Dressage runtime and its Apache license are included under `third_party\u002F`. The Docker image supplies the GPU training stack. Model weights, AppWorld databases and credentials are external inputs.\n\nConvert your Hugging Face policy checkpoint using the pinned Slime converter before training. See [setup and conversion](docs\u002Freproduction.md). Use the matching architecture recipe for 4B or 9B.\n\n## Quick Start\n\nCheck the archive and prepare a run without allocating GPUs:\n\n```bash\nharness-s check-pool\nharness-s prepare --config configs\u002Fappworld\u002Fharness_s_4b.json \\\n  --run-dir outputs\u002Fappworld-harness-s\n\nbash scripts\u002Ftrain_appworld.sh --config configs\u002Fappworld\u002Fharness_s_4b.json \\\n  --run-dir outputs\u002Fappworld-harness-s --dry-run\n```\n\nStart or resume training:\n\n```bash\nbash scripts\u002Ftrain_appworld.sh --config configs\u002Fappworld\u002Fharness_s_4b.json \\\n  --run-dir outputs\u002Fappworld-harness-s\n```\n\nChoose `grpo_4b.json` for plain GRPO or `h0_rescue_4b.json` for fresh H0 resampling. Matching `*_9b.json` recipes are included. No default recipe requires a router API key. Each command uses the same training implementation.\n\nEvaluate the best committed policy under H0, or rank one harness per task before its three attempts:\n\n```bash\nbash scripts\u002Fevaluate_appworld.sh --run-dir outputs\u002Fappworld-harness-s \\\n  --checkpoint best --harness h0\nbash scripts\u002Fevaluate_appworld.sh --run-dir outputs\u002Fappworld-harness-s \\\n  --checkpoint best --harness rank1\n```\n\nLogs, selection evidence, optional profile\u002Frouting API returns, trajectories, metrics and restart records stay in the ignored run directory. The launcher starts an independent Ray head inside the training container and cleans up its own processes by PID. It does not stop or join the host Ray cluster.\n\nDefault selection retrieves the five nearest validation instructions using local TF-IDF cosine similarity, then ranks harnesses by their mean success on those same tasks. Ties use overall validation success, then harness ID. With no positive text similarity it uses overall validation success. Rescue excludes H0; rank-1 evaluation includes H0. Test outcomes never enter selection. Validation rollouts still run to update these statistics; the defaults remove profile-generation and voting API costs.\n\nTo enable the optional LLM\u002Fprofile path, see [configuration](docs\u002Freproduction.md#optional-llm-routing-and-profiles). This is a different selection strategy from the public rule-based default; historical experiment scores do not validate the new default.\n\n## Harness Pool\n\nThe [AppWorld pool](harness_pool\u002Fappworld) contains the complete archive of **H0 + 19 auxiliaries**. Each member includes `harness.yml`, `state.json` and any `skills\u002F`. The catalog records source identities and public-file checksums. Public YAML templates are rendered to absolute paths at preparation time.\n\nThe paper describes a 20-member routing pool. Some historical training runs used an H0-plus-nine subset; its exact [membership](harness_pool\u002Fappworld\u002Fsubsets\u002Fhistorical_top10.json) is retained separately. The default public recipe uses all 20. It does not silently substitute the historical subset or claim new measurements for the expanded setup.\n\n## Reproduction Notes\n\n| Setting | AppWorld release |\n| --- | --- |\n| Task partitions | 320 train \u002F 150 validation \u002F 262 test |\n| Training | 40 updates, task batch 8, group size 8, temperature 1 |\n| Validation | Greedy, one rollout per task and harness; steps 0, 10, 20, 30, 40 |\n| Profile calibration | Disabled by default (`profile_calibration.enabled=false`) |\n| Selection | Rules by default (`router.mode=\"rules\"`); no LLM calls or embedding model |\n| Rescue | All-failure trigger; Top-8 distinct auxiliaries by nearby validation success |\n| GRPO | Task-token mean, legacy token whitening, TIS clipped to [0, 2] |\n| Ratio clipping | 0.20 lower \u002F 0.28 upper |\n| KL | 0; no reference probabilities |\n| Test | Three attempts, temperature 1; Pass@3 and Avg@3 |\n| Randomness | One run by default; split\u002Frollout seed 42, optimizer seed 1234 |\n\nTask IDs are disjoint; sibling variants can share task families across partitions. The paper's main-table averages over three independent runs are distinct from this repository's default single-run launch.\n\nThis extraction has CPU contract tests and release checks. **The portable GPU launcher has not yet completed an end-to-end training run.** Its defaults also change inference placement to one GPU per engine; historical runs often used two. Do not treat this release as a bitwise replay or a fresh confirmation of the reported scores. See [the implementation mapping and remaining validation](docs\u002Freproduction.md).\n\n## Repository Layout\n\n```text\nconfigs\u002Fappworld\u002F        # 4B \u002F 9B recipes for all three training variants\ndata\u002Fappworld\u002F           # Frozen task IDs, order and family assignments\ndocs\u002Ffigures\u002F            # Paper figures: original PDFs and README PNG previews\nharness_pool\u002Fappworld\u002F   # Public H0 + 19 sibling implementations\nsrc\u002Fharness_s\u002F           # Shared orchestration, routing and AppWorld adapter\nruntime\u002Fappworld\u002F        # Fixed DSH composition, components and MCP replay\nscripts\u002F                # Setup, training, evaluation and release checks\nthird_party\u002F            # Adapted Dressage, pinned Slime patch and notices\ntests\u002F                  # CPU method and artifact contract tests\n```\n\n## Development\n\n```bash\npython -m pip install -e '.[test]'\npytest -q\npython scripts\u002Fcheck_release.py\n```\n\n## Acknowledgements\n\nThe execution and learning backend builds on [Dressage](https:\u002F\u002Fgithub.com\u002FAccio-Lab\u002FDressage), [Slime](https:\u002F\u002Fgithub.com\u002FTHUDM\u002Fslime), [DeepSeek Harness](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002Fdeepseek-harness), and [AppWorld](https:\u002F\u002Fgithub.com\u002FStonyBrookNLP\u002Fappworld), [SWE-Gym](https:\u002F\u002Fgithub.com\u002FSWE-Gym\u002FSWE-Gym) and [DBBench (AgentBench)](https:\u002F\u002Fgithub.com\u002FTHUDM\u002FAgentBench). See [third-party notices](third_party\u002FNOTICE.md) for versions and licensing.\n\n## Citation\n\nIf you use Harness-S in your research, please cite our [paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.04277):\n\n```bibtex\n@misc{zhang2026harnesss,\n  title         = {{Harness-S}: Learning from Sibling Harnesses for Generalizable Agent Training},\n  author        = {Kangning Zhang and Wenxiang Jiao and Bowen Fang and Shuai Shao and Jiachen Zhu and Rong Shan and Shijian Wang and Hao Wang and Yuan Lu and Weiwen Liu and Weinan Zhang},\n  year          = {2026},\n  eprint        = {2611.04277},\n  archivePrefix = {arXiv},\n  primaryClass  = {cs.AI},\n  url           = {https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.04277}\n}\n```\n","Harness-S 是一个面向通用智能体训练的框架，通过复用固定兄弟 harness 池中的互补轨迹来提升策略泛化性。其核心采用验证驱动的救援机制：当基础 harness（H0）在某任务上全部失败时，自动切换至池中其他 sibling harness 进行重试，并基于 GRPO 算法在原始生成上下文中学习替代轨迹；最终训练出单一共享策略，既可回退至 H0 执行，也支持推理时任务感知的轻量级路由。项目以 AppWorld 为基准，提供预构建的 20 个可复用 harness 配置、统一采样\u002F评分\u002F优化流程及完整训练评估脚本，适用于需要提升智能体跨配置鲁棒性与零样本迁移能力的指令遵循与工具调用场景。",2,"2026-11-24 04:40:36","CREATED_QUERY"]