π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
ADR-173: Remote GPU Distillation via weight-eft over SSH (Dry-Run-Default, Spend-Gated)
ID: ADR-173
Status: Proposed β implemented on feat/agenticow-integration (ships in 3.21.0)
Date: 2026-07-04
Authors: rUv (drafted with Claude Code)
Related ADRs:
- ADR-171 (Provenance-tiered oracle β supplies the gold labels this pipeline trains on)
- ADR-172 (Fable harness β the Tier-2 judge that may label data fed here)
- ADR-143 / ADR-026 (Model routing cost tiers β a distilled cheap-tier adapter is what reduces escalation)
- ADR-166 (MCP bridge RCE remediation β the "no implicit remote execution / secure-by-default" discipline reused here)
1. Context
@metaharness/[email protected] turns an agent's run archive into portable LoRA training data (SFT + DPO JSONL) with contamination / reward-hacking / long-context guards β all $0, offline. Its value proposition is closing the cost flywheel: fine-tune a cheap open-weights model (GLM/Qwen/DeepSeek) on successful runs so the cascade escalates to frontier models less often.
But the flywheel did not close, for reasons verified end-to-end:
- weight-eft's own
trainemits theruvllm microloracommand string and deliberately never spawns it (no GPU job, no paid call β by design). - ruflo's native LoRA (ADR: 3.19.0 flywheel) is a different LoRA β 384-dim router-embedding pattern-alignment, not the 7-14B causal-LM attention-projection LoRA weight-eft targets. They do not plug into each other.
- It only makes sense with an open-weights cheap tier (you cannot LoRA Anthropic Haiku) β which ruflo's OpenRouter path provides.
The unlock: a real GPU host β ruvultra on tailscale (Linux, SSH open, no HTTP inference port). The tune can run there over SSH.
2. Decision
Ship ruflo neural distill export | plan | eval | train, where train --remote <host> constructs an SSH-based tune on a user-supplied GPU host β but every spending / executing path is off by default and explicitly gated.
2.1 The $0 spine (always available)
exportβ captured run records β DarwinTrajectory[] β weight-eft SFT/DPO JSONL + guard report. $0, offline.planβ print theruvllm microloraGPU training plan. $0 dry-run.evalβ cost-Pareto delta between two cascade outcome sets. $0.
2.2 Remote train (opt-in, dry-run default)
train --remote <host> [--base <model>]:
- rsync the JSONL to the host, run
ruvllm microlora sft && dpoover SSH, fetch the adapter back. - DRY-RUN by default: print the exact ssh/rsync/ruvllm commands + a preflight probe (ssh reachable?
ruvllm --version/ nvidia-smi on remote, wrapped so failure is reported not fatal). No data leaves the machine, no compute runs. - Real execution requires both
--executeand--yes(or an interactive confirm). Even then the command preview is shown first. - Host is parameterized (
--remote/RUFLO_DISTILL_REMOTE) β never hard-coded.ruvultra/ its IP appear in no source file; it is the user's infra, passed at runtime.
2.3 Honesty rule (hard)
No command, help text, or doc claims ruflo "trains a model" or "reduces escalation" as a $0/local capability. It is: export audited training data + measure the cost-Pareto + print the plan, and β as an explicit, user-triggered, remote-GPU, spend-gated step β run the tune. The residual gaps are stated plainly: (a) resolved-gold is Tier-graded (ADR-171), so SFT quality is only as good as its provenance; (b) a real adapter must clear a hand-verified holdout before it is trusted in routing.
3. Consequences
- The flywheel is buildable and user-triggerable, not falsely "done." The $0 spine ships as a real capability; the tune is one
--execute --yesaway once the user confirms the box has the GPU toolchain and accepts the spend. - Attack surface (SSH, remote exec) is added last in the merge order and reviewed adversarially: no implicit remote execution, command preview mandatory, no env-secret logging (ADR-166 discipline).
- Distilled adapters target the OpenRouter open-weights cheap tier β the escalation-reduction path is real if a tune runs and eval confirms it on held-out data.
4. Alternatives rejected
- Spawn weight-eft's train directly / claim the flywheel is done: it never spawns; that would be a false capability claim. Rejected.
- Reuse ruflo's 384-dim native LoRA: wrong LoRA (router-embedding, not causal-LM). Rejected.
- Auto-run the tune when a host is reachable: silent spend + remote execution on user infra. Rejected β dry-run default, double-flag gate.
- Hard-code ruvultra: it is user infra; parameterized only. Rejected.