Skip to content

refactor: round 2 — runstate markers, resolve_spec, versioned supervision - #71

Merged
ronaldtse merged 1 commit into
mainfrom
refactor/deepen-round-2
Aug 29, 2026
Merged

refactor: round 2 — runstate markers, resolve_spec, versioned supervision#71
ronaldtse merged 1 commit into
mainfrom
refactor/deepen-round-2

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

What

Round-2 deepening (report delivered alongside):

R1 — RunState (STRONG). The marker protocol (best/config.json, final_eval.json, chain_log.jsonl, step-N) becomes an interface: RunState with training_done()/eval_done()/latest_step()/log()/read_eval(), mkdir-safe by construction — the arm-4 orchestrator bug (first log into a not-yet-created run dir) is unrepresentable through it. The orchestrator consumes it. Pure-CPU tests cover the exact incident semantics.

R2 — supervision as versioned code (STRONG). scripts/modal_retry.sh (the generic until-loop) + scripts/watch_marker.sh (volume-marker watcher) — this campaign wrote seven bespoke /tmp loops for the same two patterns; two died silently with the workstation.

R4 — resolve_spec. Four pasted vol_map blocks (distill, evaluate, evaluate_der + final_eval write, microkimi/probe) collapse into one owner of volume-layout knowledge; verified against real specs (rababa/secryst/persian mounts, hub teachers, data_volume overrides). R3 (rababa harness vendoring + the provenance ADR) is rababa PR #58.

Suite green (runstate + harness tests; ruff clean on touched files).

…sion (R1/R2/R4)

R1 runstate: the marker protocol (best/config.json, final_eval.json,
chain_log.jsonl, step-N) gets an interface — RunState, mkdir-safe by
construction (the arm-4 bug class is unrepresentable). The orchestrator
consumes it; pure-CPU tests.

R2 supervision as code: scripts/modal_retry.sh + scripts/watch_marker.sh
replace the seven bespoke /tmp loops this campaign produced.

R4 resolve_spec: the four pasted vol_map blocks collapse into one owner
of 'which volume does this spec's teacher/student/dataset live on',
verified against real specs (rababa/secrets/persian mounts, hub
teachers, data_volume overrides).
@ronaldtse
ronaldtse merged commit 0c89b9e into main Aug 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant