Skip to main content

Module graph

Module graph 

Source
Expand description

The competition graph.

prep ──► implement ×N ──► judge ×M (blind) ──► split? ──► deliberate ──► vote (private)
                                                  │                          │
                                                  └──── unanimous ───────────┤
                                                                             ▼
  merge ◄── gate ◄── review ×R + E2E, fix, repeat ◄── fold losers ◄──────── tally

Every node persists before the next one starts, so a run can be resumed after a crash, a rate limit, or a reboot without re-spending the work that already landed.

The design decision that matters most is where the facilitator lives. There is no moderator agent: magi assigns the labels, decides the presentation order, relays the transcript, and collects the final votes one-to-one. A moderator that never learns an author cannot leak one.

Structs§

Pause
A request to park the run at its next node boundary.
Runner
Drives one run.

Enums§

FoldRefusal
Why a fold left a run alone. A typed refusal lets the automatic callers (clean::fold_one, and through it the idle janitor and the busy-time fold turn) say why in their receipts; it never changes what is deleted.

Constants§

PRE_GATE_COMMIT_MESSAGE
Fixed commit message for graph-owned mechanical verify.pre_gate commits.

Functions§

fold_run
Tear a run’s worktrees and branches down.
fold_run_overriding_recovery_retention
Explicit CLI-only retention override; automatic callers use fold_run.
fold_run_when
fold_run for the automatic callers, which decide whether the run may be folded at all, and whether its winner goes too, from the run record.
landing_subject_source
What the squash subject falls back to when the pull request title is empty or candidate-shaped: for a review-only run the derived title, never the review prompt held in instruction.
landing_title
The pull request title to hand to land::merge_subject. A review-only run opened by an earlier build titled its pull request with the review prompt; that title is dropped (empty, so the fallback applies) rather than landed. Any other title, including an operator’s rename, passes through untouched, and so does every title of a run that implements a task.
worst_open
Severity of the worst open finding in the last review round, for reporting.