From c20192bce82fe7beb373683b9a8481b9ff496cbc Mon Sep 17 00:00:00 2001 From: host Date: Thu, 29 Oct 2026 16:32:58 +0800 Subject: [PATCH] harness2: per-role models, sweep batch, task file assets endpoint - Role models: run_improvement_via_tasks gains role_models (probe/editor/selector/reflector) plus --model- CLI flags; missing/empty falls back to shared --model, both empty means server default, so default behavior is unchanged. - Sweep: run_sweep + examples/harness2_sweep.py manifest CLI with shared library_root (library restore), per-run failure isolation and sweep-report.json summary; preflight gates task creation. - Deliverable assets: GET /tasks/{id}/files for local-executor tasks (safe path resolution, UTF-8 text <=256KB, listing <=200; docker/cloud/cross-host 409 with explicit reason, since tenant Docker shares one /app/work per project and per-task attribution would misattribute); probe rollout deliverable_files from the endpoint plus DELIVERABLE FILE reply blocks (endpoint wins on collision, bad blocks dropped), surfaced in deliverables/