Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
efb8f53
feat(harness): add an offline parallel-round coordinator
NumberWan Oct 30, 2026
6b051bb
fix(harness): close the parallel-round execution boundary
NumberWan Nov 2, 2026
77da47b
fix(harness): keep parallel-round launches inside the deadline and th…
NumberWan Nov 2, 2026
bd6ba21
fix(harness): give serve a receipt when the trial result is missing
NumberWan Nov 10, 2026
a751e76
feat(harness): let a parallel round use several devices and a declare…
NumberWan Nov 12, 2026
34f60e2
fix(harness): reject dot device and lane names, document trial placeh…
NumberWan Nov 12, 2026
f6bd069
feat(harness): let each lane declare how many devices one trial needs
NumberWan Nov 12, 2026
fb5f0fc
feat(harness): drive a cluster round end to end and close it
NumberWan Nov 12, 2026
d6bcbbc
fix(infra): mount runtime paths where the loader looks for them
NumberWan Nov 12, 2026
cdaa54d
feat(harness): drive hands in one candidate per lane per round
NumberWan Nov 12, 2026
10ab9a3
feat(harness): run cluster rounds up to the campaign round_cap
NumberWan Nov 12, 2026
fe0c191
refactor(harness): keep parallel round to prepare/submit/serve/status
NumberWan Nov 13, 2026
03a7288
fix(confinement): kill the whole namespace on timeout, isolate the su…
NumberWan Nov 13, 2026
f7a20b6
fix(harness): resume an interrupted serve without a second attempt
NumberWan Nov 13, 2026
57618db
fix(harness): quarantine devices whose command could not be reaped
NumberWan Nov 13, 2026
0c3c94d
fix(confinement): kill the namespace PID 1 directly on timeout
NumberWan Nov 13, 2026
1836d8f
fix(harness): keep the quarantine marker in the device lease store
NumberWan Nov 13, 2026
41d6fa8
fix(confinement): re-check PID 1 start time before killing it
NumberWan Nov 13, 2026
2e2d601
refactor(harness): measure parallel-round tickets with run_experiment
NumberWan Nov 13, 2026
e3b4631
feat(harness): joint single-rerun close for parallel rounds
NumberWan Nov 17, 2026
be9af6f
fix(harness): adapt parallel_round to contracts and runner ports
NumberWan Nov 17, 2026
ceb0f1f
fix(harness): enforce submit boundaries and venv namespace stdlib
NumberWan Nov 17, 2026
07817ac
fix(confinement): exclude /usr from every runtime_roots candidate
NumberWan Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions src/inferrsi/apps/parallel_round.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
"""Compose Harness parallel-round orchestration with Benchmark v0 gates.

Harness owns prepare / submit / serve / close scheduling. This package binds the
legacy assess port so ``inferrsi.harness.parallel_round`` never imports Benchmark.
"""

from collections.abc import Callable
from datetime import datetime
from pathlib import Path

from inferrsi.apps.legacy.evaluation import run_rules
from inferrsi.benchmark.legacy_run_v0 import evaluate as _evaluate
from inferrsi.contracts import RunSpec
from inferrsi.harness import parallel_round as harness


def make_assess(spec: RunSpec) -> Callable:
"""Bind v0 gates for one ``RunSpec``; the returned port matches ``runner.run_experiment``."""
rules = run_rules(spec)

def assess(baseline, candidate, validation, integrity, error):
return _evaluate(
rules, baseline, candidate, validation, integrity, run_error=error
)

return assess


def serve_ticket(
round_dir: Path,
ticket: str,
incumbent: Path,
*,
backend,
now: datetime | None = None,
clock=None,
) -> dict:
"""Serve one ticket with the v0 assess composition."""
return harness.serve_ticket(
round_dir,
ticket,
incumbent,
backend=backend,
make_assess=make_assess,
now=now,
clock=clock,
)


def close_round(
round_dir: Path,
incumbent: Path,
*,
backend,
now: datetime | None = None,
clock=None,
) -> dict:
"""Close one round with the v0 assess composition."""
return harness.close_round(
round_dir,
incumbent,
backend=backend,
make_assess=make_assess,
now=now,
clock=clock,
)
Loading
Loading