Sign in

    Ag108/MoonReduce/reducer/project does not have a README file

    Candidate

    pub(all) struct Candidate {
    id : Int
    snapshot :
    Snapshot

    }

    Snapshot request with a stable run-local sequence number.

    ResultSummary

    pub(all) struct ResultSummary {
    best :
    Snapshot

    status :
    RunStatus

    evaluations : Int
    cache_hits : Int
    baseline_passed : Int
    final_passed : Int
    }

    Session

    pub struct Session {
    // private fields
    }

    Pure deterministic project session. Batch width is always four regardless of worker count; all replies are committed together, by score then id.

    Session::baseline_statistics

    Baseline success rate and confidence from actual command observations.

    Session::checkpoint

    fn Session::checkpoint(self : Session, original :
    Snapshot
    , context : String) -> Result[Json, String]

    Serialize a settled batch boundary. The caller supplies a canonical context containing predicate configuration and toolchain identity. Pending work must finish or use the previously saved boundary; it is never marked evaluated.

    Session::final_statistics

    Final success rate; restored sessions re-collect this evidence uncached.

    Session::new

    fn Session::new(original :
    Snapshot
    , includes : Array[String], protects : Array[String], ignores : Array[String], max_tests? : Int, repeat? : Int, quorum? : Int, consecutive? : Bool, final_repeat? : Int, final_quorum? : Int, command_cost? : Int, score? : String, pass_include? : Array[String], pass_exclude? : Array[String], extra_passes? : Array[&
    ReductionPass
    ]) -> Result[Session, String]

    Session::next_batch

    fn Session::next_batch(self : Session) -> Array[Candidate]

    Get the stable pending batch. Native drivers may evaluate it sequentially or with workers, but must return every issued result before the next batch.

    Session::phase

    fn Session::phase(self : Session) -> String

    Session::record

    fn Session::record(self : Session, id : Int, matched : Bool) -> Result[Unit, String]

    Compatibility adapter for deterministic evaluators. In repeated mode the caller is responsible for evaluating the configured number of commands.

    Session::record_result

    fn Session::record_result(self : Session, id : Int, matched : Bool?, cost? : Int) -> Result[Unit, String]

    Reject unknown/duplicate replies. A batch's completion order never decides its winner; the smallest score wins, then the first stable candidate id.

    Session::restore

    fn Session::restore(document : Json, original :
    Snapshot
    , includes : Array[String], protects : Array[String], ignores : Array[String], context : String, max_tests? : Int, repeat? : Int, quorum? : Int, consecutive? : Bool, final_repeat? : Int, final_quorum? : Int, command_cost? : Int, score? : String, pass_include? : Array[String], pass_exclude? : Array[String], extra_passes? : Array[&
    ReductionPass
    ]) -> Result[Session, String]

    Restore validated state and rebuild its lazy pass iterator. Completed cache entries suppress re-execution; final verification is always performed anew. The supplied total budget may be enlarged, but must cover work already done.

    Session::result

    fn Session::result(self : Session) -> ResultSummary

    Session::stop

    default_passes

    Default pure passes in deterministic order; formatting and manifest edits are excluded unless explicitly enabled. Callers can compose these with extensions.

    pass_names

    fn pass_names() -> Array[String]

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io