mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-08-25 08:32:14 +00:00
First shippable slice of the WP9 skill/harness evolution loop (#841), following SHAPER (arXiv:2608.11350): frozen model as both planner and optimizer; only skills, context, and the execution harness evolve. - scripts/frozen-weights-check.mjs: structural (CI-enforced, not policy) frozen-weights gate. Scans the loop's mutation surfaces (harness/src, examples/mragent, sona darwin_guard.rs) against a 9-entry deny-list built from crates/ruvllm's real training entry points (training/, qat/, lora/, pretrain pipelines, weight writers, model-file references, MCP weight-mutation tools), each entry documented with why + in-repo anchor. Symlink/error hardening matches adr-index.mjs (PR #857 lessons); a missing surface directory fails loudly; --self-test builds adversarial positive/negative fixtures. Wired into CI as its own job. - harness/src/genome.ts: ADR-313's mutation-surface enumeration as a closed type union (skills | context | harness — weights unrepresentable), FrozenModelRef with loop-start sha256, and the ADR-315 capability- expansion boundary with a constitutional gate stub (models autogenous promoteAuthorized's authorized conjunct; blocks by default; WP11 integration point). - harness/src/shaperLoop.ts: one-generation orchestration propose (reusing Darwin/GEPA via runRuvectorGepa) -> evaluate (existing WP2 dreamMachine.ts adapter) -> verdict -> promotion RECOMMENDATION via the existing vetoes path. Same FrozenModelRef instance serves planner and optimizer (config-tested); capability-expanding candidates are gated before evaluation and blocked; constitutional boundary identical to WP2's (no promote/merge export, frozen data result, test-asserted). - tests: full synthetic generation, regression block, capability-expansion block, weights-surface rejection, no-promotion-export assertion, GEPA proposer reuse, frozen-weights check real-run + self-test. Suite: 26 passing (17 existing + 9 new). Refs #841, #837. ADR-313, ADR-315, ADR-306. Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_012Jib2gQyJpqCoo2xYAbb4X |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| workflows | ||
| CODEOWNERS | ||
| dependabot.yml | ||