Add hyperagents_dsh: DeepSeek Harness as a first-class candidate (rebase of #57) - #78
Draft
Andyyesiyu wants to merge 8 commits into
Draft
Add hyperagents_dsh: DeepSeek Harness as a first-class candidate (rebase of #57)#78Andyyesiyu wants to merge 8 commits into
Andyyesiyu wants to merge 8 commits into
Conversation
New supported recipe recipes/hyperagents_dsh (HyperAgents selection and recording over the built-in dsh target) plus its parts in their native homes: - seeds/dsh: dsh's own agent profile as the evolvable target (cordis composition + plugins + skills + lineage PLAYBOOK), with the harness pieces shipped alongside under surface.exclude — the host-side Harbor adapter (agent.py), the session-log-to-trajectory.json converter, the SDK drivers, and the frozen rollout/mutation cordis compositions. The mutate stage is runner: local — a dsh self-modification session in the child worktree rewrites its own persona, plugins, and skills. - library/validate/node_check.py: new validate operator running node --check on evolved plugins plus a tag-tolerant YAML syntax check, rejecting syntactically broken candidates before a full evaluation. - src/evolve/workspace.py: register the builtin-dsh seed. - recipe evaluator assets: prepare-runtime.sh pins Node >= 22.19 and forwards optional restricted-network compensations; doctor.json enforces it before every run. - tests and docs updated for the new inventory entry; a dedicated composition test covers builtin-dsh initialization. Recorded end-to-end run (30-task Terminal-Bench 2 subset): certified genesis 0.700, a gate rejection (0.667 < parent) and a gate acceptance (0.700 >= parent, dsh-authored skill) across three evolved generations. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: 403-error <andyyesiyu@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replace the out-of-docs relative link with a GitHub blob URL so mkdocs build --strict no longer fails on docs CI. Co-authored-by: 403-error <andyyesiyu@gmail.com>
Initialize returncode before the driver wait so timeout/cancel paths raise their intended errors instead of UnboundLocalError after the finally trajectory write. Cover timeout and nonzero-exit with unit tests. Co-authored-by: 403-error <andyyesiyu@gmail.com>
Co-authored-by: 403-error <andyyesiyu@gmail.com>
Align _BUILTIN_SEEDS with workspace.py so hyperagents_dsh init-check accepts the vendored dsh seed instead of treating it as a missing path. Co-authored-by: 403-error <andyyesiyu@gmail.com>
Replace removed session_root/cordis kwargs with dsh_home + profile + patches, convert frozen compositions into sdk-minimal overlays, and teach trajectory conversion to read session JSONL under the isolated harness home (including optional .jsonl.zst). Co-authored-by: 403-error <andyyesiyu@gmail.com>
Replace removed agent-spine-demo with system-prompt, drop foreign cordis-plugin-include of checkout/target, and materialize the candidate overlay under dsh_home so @deepseek-ai/* resolves via harness profiles/node_modules while local plugins keep absolute paths. Co-authored-by: 403-error <andyyesiyu@gmail.com>
Load the sibling candidate_overlay helper via importlib so production Python passes the import-hygiene check. Co-authored-by: 403-error <andyyesiyu@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebases / replays #57 onto current
main(post-#77 continuous evolve agent) sohyperagents_dshcan merge first.What conflicted and how it was resolved
docs/concepts/design.mdhyperagents_dshrecipes/README.mddocs/QUICKSTART.mdQUICKSTART.mdno longer exists on maindocs/QUICKSTART.mdwith corrected relative linktests/test_recipe_inventory.py,test_phase_e_recipes.py, fixtures, release artifactnode_check/builtin-dshassertions and exclude dsh from Codex-image expectationsWhat this PR keeps from #57
recipes/hyperagents_dsh/(recipe + doctor + prepare-runtime)seeds/dsh/(profile, Harbor adapter, runners, compositions)library/validate/node_check.pybuiltin-dshregistration insrc/evolve/workspace.pyFixes applied for merge readiness
prepare-runtime.sh(rejects 22.0–22.18; accepts 22.19+ / later majors). Covered bytests/test_hyperagents_dsh.py.AGENTS.md: dsh Python SDK is not the unrelated PyPI name;uv addfrom a deepseek-harness clone path.mutate_localpreflight fails nonzero ifdeepseek_harnessis not importable.workspace-write(notdanger-full-access).mutate_localfailure semantics: exhausted driver failures with notarget/changes propagate the driver exit code (no longer masquerade as cleanno_proposal). Successful no-ops still return 0 so the framework records discard /no changes to commit.library/PROTOCOL.md,library/README.md) listnode_check.Follow-ups (explicitly out of scope)
efficiency_floorgate.mjsplugins during rollout (documented as trusted eval infrastructure for now)Test plan
test_hyperagents_dsh.pyuv run --frozen pytest -q→ 1550 passed, 17 skippedSupersedes the merge path for #57.